UNPKG

3.44 kBJavaScriptView Raw
1/*
2 * ---------------------------------------------------------
3 * Copyright(C) Microsoft Corporation. All rights reserved.
4 * ---------------------------------------------------------
5 *
6 * ---------------------------------------------------------
7 * Generated file, DO NOT EDIT
8 * ---------------------------------------------------------
9 */
10"use strict";
11Object.defineProperty(exports, "__esModule", { value: true });
12exports.TypeInfo = exports.ContainerOptions = exports.ContainerItemType = exports.ContainerItemStatus = exports.BlobCompressionType = void 0;
13/**
14 * Compression type for file stored in Blobstore
15 */
16var BlobCompressionType;
17(function (BlobCompressionType) {
18 BlobCompressionType[BlobCompressionType["None"] = 0] = "None";
19 BlobCompressionType[BlobCompressionType["GZip"] = 1] = "GZip";
20})(BlobCompressionType = exports.BlobCompressionType || (exports.BlobCompressionType = {}));
21/**
22 * Status of a container item.
23 */
24var ContainerItemStatus;
25(function (ContainerItemStatus) {
26 /**
27 * Item is created.
28 */
29 ContainerItemStatus[ContainerItemStatus["Created"] = 1] = "Created";
30 /**
31 * Item is a file pending for upload.
32 */
33 ContainerItemStatus[ContainerItemStatus["PendingUpload"] = 2] = "PendingUpload";
34})(ContainerItemStatus = exports.ContainerItemStatus || (exports.ContainerItemStatus = {}));
35/**
36 * Type of a container item.
37 */
38var ContainerItemType;
39(function (ContainerItemType) {
40 /**
41 * Any item type.
42 */
43 ContainerItemType[ContainerItemType["Any"] = 0] = "Any";
44 /**
45 * Item is a folder which can have child items.
46 */
47 ContainerItemType[ContainerItemType["Folder"] = 1] = "Folder";
48 /**
49 * Item is a file which is stored in the file service.
50 */
51 ContainerItemType[ContainerItemType["File"] = 2] = "File";
52})(ContainerItemType = exports.ContainerItemType || (exports.ContainerItemType = {}));
53/**
54 * Options a container can have.
55 */
56var ContainerOptions;
57(function (ContainerOptions) {
58 /**
59 * No option.
60 */
61 ContainerOptions[ContainerOptions["None"] = 0] = "None";
62})(ContainerOptions = exports.ContainerOptions || (exports.ContainerOptions = {}));
63exports.TypeInfo = {
64 BlobCompressionType: {
65 enumValues: {
66 "none": 0,
67 "gZip": 1
68 }
69 },
70 ContainerItemBlobReference: {},
71 ContainerItemStatus: {
72 enumValues: {
73 "created": 1,
74 "pendingUpload": 2
75 }
76 },
77 ContainerItemType: {
78 enumValues: {
79 "any": 0,
80 "folder": 1,
81 "file": 2
82 }
83 },
84 ContainerOptions: {
85 enumValues: {
86 "none": 0
87 }
88 },
89 FileContainer: {},
90 FileContainerItem: {},
91};
92exports.TypeInfo.ContainerItemBlobReference.fields = {
93 compressionType: {
94 enumType: exports.TypeInfo.BlobCompressionType
95 }
96};
97exports.TypeInfo.FileContainer.fields = {
98 dateCreated: {
99 isDate: true,
100 },
101 options: {
102 enumType: exports.TypeInfo.ContainerOptions
103 }
104};
105exports.TypeInfo.FileContainerItem.fields = {
106 blobMetadata: {
107 typeInfo: exports.TypeInfo.ContainerItemBlobReference
108 },
109 dateCreated: {
110 isDate: true,
111 },
112 dateLastModified: {
113 isDate: true,
114 },
115 itemType: {
116 enumType: exports.TypeInfo.ContainerItemType
117 },
118 status: {
119 enumType: exports.TypeInfo.ContainerItemStatus
120 }
121};