1 | import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
|
2 |
|
3 |
|
4 |
|
5 | export interface Artifact {
|
6 | |
7 |
|
8 |
|
9 | name?: string;
|
10 | |
11 |
|
12 |
|
13 | signedContent?: VSSInterfaces.SignedUrl;
|
14 | |
15 |
|
16 |
|
17 | url?: string;
|
18 | }
|
19 | export interface BuildResourceParameters {
|
20 | version?: string;
|
21 | }
|
22 | export declare enum ConfigurationType {
|
23 | |
24 |
|
25 |
|
26 | Unknown = 0,
|
27 | |
28 |
|
29 |
|
30 | Yaml = 1,
|
31 | |
32 |
|
33 |
|
34 | DesignerJson = 2,
|
35 | |
36 |
|
37 |
|
38 | JustInTime = 3,
|
39 | |
40 |
|
41 |
|
42 | DesignerHyphenJson = 2
|
43 | }
|
44 | export interface Container {
|
45 | environment?: {
|
46 | [key: string]: string;
|
47 | };
|
48 | image?: string;
|
49 | mapDockerSocket?: boolean;
|
50 | options?: string;
|
51 | ports?: string[];
|
52 | volumes?: string[];
|
53 | }
|
54 | export interface ContainerResource {
|
55 | container?: Container;
|
56 | }
|
57 | export interface ContainerResourceParameters {
|
58 | version?: string;
|
59 | }
|
60 |
|
61 |
|
62 |
|
63 | export interface CreatePipelineConfigurationParameters {
|
64 | |
65 |
|
66 |
|
67 | type?: ConfigurationType;
|
68 | }
|
69 |
|
70 |
|
71 |
|
72 | export interface CreatePipelineParameters {
|
73 | |
74 |
|
75 |
|
76 | configuration?: CreatePipelineConfigurationParameters;
|
77 | |
78 |
|
79 |
|
80 | folder?: string;
|
81 | |
82 |
|
83 |
|
84 | name?: string;
|
85 | }
|
86 |
|
87 |
|
88 |
|
89 | export declare enum GetArtifactExpandOptions {
|
90 | |
91 |
|
92 |
|
93 | None = 0,
|
94 | |
95 |
|
96 |
|
97 | SignedContent = 1
|
98 | }
|
99 |
|
100 |
|
101 |
|
102 | export declare enum GetLogExpandOptions {
|
103 | None = 0,
|
104 | SignedContent = 1
|
105 | }
|
106 |
|
107 |
|
108 |
|
109 | export interface Log {
|
110 | |
111 |
|
112 |
|
113 | createdOn?: Date;
|
114 | |
115 |
|
116 |
|
117 | id?: number;
|
118 | |
119 |
|
120 |
|
121 | lastChangedOn?: Date;
|
122 | |
123 |
|
124 |
|
125 | lineCount?: number;
|
126 | signedContent?: VSSInterfaces.SignedUrl;
|
127 | url?: string;
|
128 | }
|
129 |
|
130 |
|
131 |
|
132 | export interface LogCollection {
|
133 | |
134 |
|
135 |
|
136 | logs?: Log[];
|
137 | signedContent?: VSSInterfaces.SignedUrl;
|
138 | |
139 |
|
140 |
|
141 | url?: string;
|
142 | }
|
143 | export interface PackageResourceParameters {
|
144 | version?: string;
|
145 | }
|
146 |
|
147 |
|
148 |
|
149 | export interface Pipeline extends PipelineBase {
|
150 | _links?: any;
|
151 | configuration?: PipelineConfiguration;
|
152 | |
153 |
|
154 |
|
155 | url?: string;
|
156 | }
|
157 | export interface PipelineBase {
|
158 | |
159 |
|
160 |
|
161 | folder?: string;
|
162 | |
163 |
|
164 |
|
165 | id?: number;
|
166 | |
167 |
|
168 |
|
169 | name?: string;
|
170 | |
171 |
|
172 |
|
173 | revision?: number;
|
174 | }
|
175 | export interface PipelineConfiguration {
|
176 | type?: ConfigurationType;
|
177 | }
|
178 |
|
179 |
|
180 |
|
181 | export interface PipelineReference extends PipelineBase {
|
182 | url?: string;
|
183 | }
|
184 | export interface PipelineResource {
|
185 | pipeline?: PipelineReference;
|
186 | version?: string;
|
187 | }
|
188 | export interface PipelineResourceParameters {
|
189 | version?: string;
|
190 | }
|
191 | export interface PreviewRun {
|
192 | finalYaml?: string;
|
193 | }
|
194 | export interface Repository {
|
195 | type?: RepositoryType;
|
196 | }
|
197 | export interface RepositoryResource {
|
198 | refName?: string;
|
199 | repository?: Repository;
|
200 | version?: string;
|
201 | }
|
202 | export interface RepositoryResourceParameters {
|
203 | refName?: string;
|
204 | |
205 |
|
206 |
|
207 | token?: string;
|
208 | |
209 |
|
210 |
|
211 | tokenType?: string;
|
212 | version?: string;
|
213 | }
|
214 | export declare enum RepositoryType {
|
215 | Unknown = 0,
|
216 | GitHub = 1,
|
217 | AzureReposGit = 2,
|
218 | GitHubEnterprise = 3,
|
219 | AzureReposGitHyphenated = 2
|
220 | }
|
221 | export interface Run extends RunReference {
|
222 | _links?: any;
|
223 | createdDate?: Date;
|
224 | finalYaml?: string;
|
225 | finishedDate?: Date;
|
226 | pipeline?: PipelineReference;
|
227 | resources?: RunResources;
|
228 | result?: RunResult;
|
229 | state?: RunState;
|
230 | templateParameters?: {
|
231 | [key: string]: any;
|
232 | };
|
233 | url?: string;
|
234 | variables?: {
|
235 | [key: string]: Variable;
|
236 | };
|
237 | }
|
238 |
|
239 |
|
240 |
|
241 | export interface RunPipelineParameters {
|
242 | |
243 |
|
244 |
|
245 | previewRun?: boolean;
|
246 | |
247 |
|
248 |
|
249 | resources?: RunResourcesParameters;
|
250 | stagesToSkip?: string[];
|
251 | templateParameters?: {
|
252 | [key: string]: string;
|
253 | };
|
254 | variables?: {
|
255 | [key: string]: Variable;
|
256 | };
|
257 | |
258 |
|
259 |
|
260 | yamlOverride?: string;
|
261 | }
|
262 | export interface RunReference {
|
263 | id?: number;
|
264 | name?: string;
|
265 | }
|
266 | export interface RunResources {
|
267 | containers?: {
|
268 | [key: string]: ContainerResource;
|
269 | };
|
270 | pipelines?: {
|
271 | [key: string]: PipelineResource;
|
272 | };
|
273 | repositories?: {
|
274 | [key: string]: RepositoryResource;
|
275 | };
|
276 | }
|
277 | export interface RunResourcesParameters {
|
278 | builds?: {
|
279 | [key: string]: BuildResourceParameters;
|
280 | };
|
281 | containers?: {
|
282 | [key: string]: ContainerResourceParameters;
|
283 | };
|
284 | packages?: {
|
285 | [key: string]: PackageResourceParameters;
|
286 | };
|
287 | pipelines?: {
|
288 | [key: string]: PipelineResourceParameters;
|
289 | };
|
290 | repositories?: {
|
291 | [key: string]: RepositoryResourceParameters;
|
292 | };
|
293 | }
|
294 |
|
295 |
|
296 |
|
297 | export declare enum RunResult {
|
298 | Unknown = 0,
|
299 | Succeeded = 1,
|
300 | Failed = 2,
|
301 | Canceled = 4
|
302 | }
|
303 |
|
304 |
|
305 |
|
306 | export declare enum RunState {
|
307 | Unknown = 0,
|
308 | InProgress = 1,
|
309 | Canceling = 2,
|
310 | Completed = 4
|
311 | }
|
312 | export interface SignalRConnection {
|
313 | signedContent?: VSSInterfaces.SignedUrl;
|
314 | }
|
315 | export interface Variable {
|
316 | isSecret?: boolean;
|
317 | value?: string;
|
318 | }
|
319 | export declare var TypeInfo: {
|
320 | Artifact: any;
|
321 | ConfigurationType: {
|
322 | enumValues: {
|
323 | unknown: number;
|
324 | yaml: number;
|
325 | designerJson: number;
|
326 | justInTime: number;
|
327 | designerHyphenJson: number;
|
328 | };
|
329 | };
|
330 | CreatePipelineConfigurationParameters: any;
|
331 | CreatePipelineParameters: any;
|
332 | GetArtifactExpandOptions: {
|
333 | enumValues: {
|
334 | none: number;
|
335 | signedContent: number;
|
336 | };
|
337 | };
|
338 | GetLogExpandOptions: {
|
339 | enumValues: {
|
340 | none: number;
|
341 | signedContent: number;
|
342 | };
|
343 | };
|
344 | Log: any;
|
345 | LogCollection: any;
|
346 | Pipeline: any;
|
347 | PipelineConfiguration: any;
|
348 | Repository: any;
|
349 | RepositoryResource: any;
|
350 | RepositoryType: {
|
351 | enumValues: {
|
352 | unknown: number;
|
353 | gitHub: number;
|
354 | azureReposGit: number;
|
355 | gitHubEnterprise: number;
|
356 | azureReposGitHyphenated: number;
|
357 | };
|
358 | };
|
359 | Run: any;
|
360 | RunResources: any;
|
361 | RunResult: {
|
362 | enumValues: {
|
363 | unknown: number;
|
364 | succeeded: number;
|
365 | failed: number;
|
366 | canceled: number;
|
367 | };
|
368 | };
|
369 | RunState: {
|
370 | enumValues: {
|
371 | unknown: number;
|
372 | inProgress: number;
|
373 | canceling: number;
|
374 | completed: number;
|
375 | };
|
376 | };
|
377 | SignalRConnection: any;
|
378 | };
|