1 | /**
|
2 | * Compression type for file stored in Blobstore
|
3 | */
|
4 | export declare enum BlobCompressionType {
|
5 | None = 0,
|
6 | GZip = 1
|
7 | }
|
8 | /**
|
9 | * Represents an reference to a file in Blobstore
|
10 | */
|
11 | export interface ContainerItemBlobReference {
|
12 | artifactHash?: string;
|
13 | artifactId?: number;
|
14 | compressionType?: BlobCompressionType;
|
15 | scopeIdentifier?: string;
|
16 | sessionId?: string;
|
17 | }
|
18 | /**
|
19 | * Status of a container item.
|
20 | */
|
21 | export declare enum ContainerItemStatus {
|
22 | /**
|
23 | * Item is created.
|
24 | */
|
25 | Created = 1,
|
26 | /**
|
27 | * Item is a file pending for upload.
|
28 | */
|
29 | PendingUpload = 2
|
30 | }
|
31 | /**
|
32 | * Type of a container item.
|
33 | */
|
34 | export declare enum ContainerItemType {
|
35 | /**
|
36 | * Any item type.
|
37 | */
|
38 | Any = 0,
|
39 | /**
|
40 | * Item is a folder which can have child items.
|
41 | */
|
42 | Folder = 1,
|
43 | /**
|
44 | * Item is a file which is stored in the file service.
|
45 | */
|
46 | File = 2
|
47 | }
|
48 | /**
|
49 | * Options a container can have.
|
50 | */
|
51 | export declare enum ContainerOptions {
|
52 | /**
|
53 | * No option.
|
54 | */
|
55 | None = 0
|
56 | }
|
57 | /**
|
58 | * Represents a container that encapsulates a hierarchical file system.
|
59 | */
|
60 | export interface FileContainer {
|
61 | /**
|
62 | * Uri of the artifact associated with the container.
|
63 | */
|
64 | artifactUri: string;
|
65 | /**
|
66 | * Download Url for the content of this item.
|
67 | */
|
68 | contentLocation?: string;
|
69 | /**
|
70 | * Owner.
|
71 | */
|
72 | createdBy?: string;
|
73 | /**
|
74 | * Creation date.
|
75 | */
|
76 | dateCreated?: Date;
|
77 | /**
|
78 | * Description.
|
79 | */
|
80 | description?: string;
|
81 | /**
|
82 | * Id.
|
83 | */
|
84 | id: number;
|
85 | /**
|
86 | * Location of the item resource.
|
87 | */
|
88 | itemLocation?: string;
|
89 | /**
|
90 | * ItemStore Locator for this container.
|
91 | */
|
92 | locatorPath?: string;
|
93 | /**
|
94 | * Name.
|
95 | */
|
96 | name?: string;
|
97 | /**
|
98 | * Options the container can have.
|
99 | */
|
100 | options?: ContainerOptions;
|
101 | /**
|
102 | * Project Id.
|
103 | */
|
104 | scopeIdentifier?: string;
|
105 | /**
|
106 | * Security token of the artifact associated with the container.
|
107 | */
|
108 | securityToken?: string;
|
109 | /**
|
110 | * Identifier of the optional encryption key.
|
111 | */
|
112 | signingKeyId?: string;
|
113 | /**
|
114 | * Total size of the files in bytes.
|
115 | */
|
116 | size?: number;
|
117 | }
|
118 | /**
|
119 | * Represents an item in a container.
|
120 | */
|
121 | export interface FileContainerItem {
|
122 | /**
|
123 | * Id for Blobstore reference
|
124 | */
|
125 | artifactId?: number;
|
126 | blobMetadata?: ContainerItemBlobReference;
|
127 | /**
|
128 | * Container Id.
|
129 | */
|
130 | containerId: number;
|
131 | contentId?: number[];
|
132 | /**
|
133 | * Download Url for the content of this item.
|
134 | */
|
135 | contentLocation?: string;
|
136 | /**
|
137 | * Creator.
|
138 | */
|
139 | createdBy?: string;
|
140 | /**
|
141 | * Creation date.
|
142 | */
|
143 | dateCreated?: Date;
|
144 | /**
|
145 | * Last modified date.
|
146 | */
|
147 | dateLastModified?: Date;
|
148 | /**
|
149 | * Encoding of the file. Zero if not a file.
|
150 | */
|
151 | fileEncoding?: number;
|
152 | /**
|
153 | * Hash value of the file. Null if not a file.
|
154 | */
|
155 | fileHash?: number[];
|
156 | /**
|
157 | * Id of the file content.
|
158 | */
|
159 | fileId?: number;
|
160 | /**
|
161 | * Length of the file. Zero if not of a file.
|
162 | */
|
163 | fileLength?: number;
|
164 | /**
|
165 | * Type of the file. Zero if not a file.
|
166 | */
|
167 | fileType?: number;
|
168 | /**
|
169 | * Location of the item resource.
|
170 | */
|
171 | itemLocation?: string;
|
172 | /**
|
173 | * Type of the item: Folder, File or String.
|
174 | */
|
175 | itemType: ContainerItemType;
|
176 | /**
|
177 | * Modifier.
|
178 | */
|
179 | lastModifiedBy?: string;
|
180 | /**
|
181 | * Unique path that identifies the item.
|
182 | */
|
183 | path: string;
|
184 | /**
|
185 | * Project Id.
|
186 | */
|
187 | scopeIdentifier?: string;
|
188 | /**
|
189 | * Status of the item: Created or Pending Upload.
|
190 | */
|
191 | status: ContainerItemStatus;
|
192 | ticket?: string;
|
193 | }
|
194 | export declare var TypeInfo: {
|
195 | BlobCompressionType: {
|
196 | enumValues: {
|
197 | none: number;
|
198 | gZip: number;
|
199 | };
|
200 | };
|
201 | ContainerItemBlobReference: any;
|
202 | ContainerItemStatus: {
|
203 | enumValues: {
|
204 | created: number;
|
205 | pendingUpload: number;
|
206 | };
|
207 | };
|
208 | ContainerItemType: {
|
209 | enumValues: {
|
210 | any: number;
|
211 | folder: number;
|
212 | file: number;
|
213 | };
|
214 | };
|
215 | ContainerOptions: {
|
216 | enumValues: {
|
217 | none: number;
|
218 | };
|
219 | };
|
220 | FileContainer: any;
|
221 | FileContainerItem: any;
|
222 | };
|