azure-devops-extension-api 1.158.0 → 2.220.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/Accounts/AccountsClient.d.ts +1 -1
  2. package/Accounts/AccountsClient.js +4 -4
  3. package/Accounts/AccountsClient.min.js +1 -1
  4. package/Build/Build.d.ts +205 -3
  5. package/Build/Build.js +6 -2
  6. package/Build/Build.min.js +1 -1
  7. package/Build/BuildClient.d.ts +121 -13
  8. package/Build/BuildClient.js +468 -101
  9. package/Build/BuildClient.min.js +1 -1
  10. package/Contributions/Contributions.d.ts +1 -1
  11. package/Contributions/ContributionsClient.js +4 -4
  12. package/Contributions/ContributionsClient.min.js +1 -1
  13. package/Core/CoreClient.d.ts +2 -2
  14. package/Core/CoreClient.js +49 -36
  15. package/Core/CoreClient.min.js +1 -1
  16. package/Dashboard/Dashboard.d.ts +79 -2
  17. package/Dashboard/Dashboard.js +10 -0
  18. package/Dashboard/Dashboard.min.js +1 -1
  19. package/Dashboard/DashboardClient.d.ts +2 -2
  20. package/Dashboard/DashboardClient.js +15 -15
  21. package/Dashboard/DashboardClient.min.js +1 -1
  22. package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
  23. package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
  24. package/ExtensionManagement/ExtensionManagementClient.js +27 -27
  25. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  26. package/Favorite/Favorite.d.ts +124 -0
  27. package/Favorite/Favorite.js +9 -0
  28. package/Favorite/Favorite.min.js +1 -0
  29. package/Favorite/FavoriteClient.d.ts +78 -0
  30. package/Favorite/FavoriteClient.js +314 -0
  31. package/Favorite/FavoriteClient.min.js +1 -0
  32. package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
  33. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  34. package/FeatureManagement/FeatureManagementClient.js +9 -9
  35. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  36. package/FileContainer/FileContainer.d.ts +22 -0
  37. package/FileContainer/FileContainer.js +8 -0
  38. package/FileContainer/FileContainer.min.js +1 -1
  39. package/FileContainer/FileContainerClient.d.ts +5 -2
  40. package/FileContainer/FileContainerClient.js +13 -7
  41. package/FileContainer/FileContainerClient.min.js +1 -1
  42. package/FormInput/FormInput.d.ts +1 -1
  43. package/Gallery/Gallery.d.ts +92 -7
  44. package/Gallery/Gallery.js +25 -3
  45. package/Gallery/Gallery.min.js +1 -1
  46. package/Gallery/GalleryClient.d.ts +41 -9
  47. package/Gallery/GalleryClient.js +211 -90
  48. package/Gallery/GalleryClient.min.js +1 -1
  49. package/Git/Git.d.ts +121 -7
  50. package/Git/Git.js +2 -1
  51. package/Git/Git.min.js +1 -1
  52. package/Git/GitClient.d.ts +182 -28
  53. package/Git/GitClient.js +657 -162
  54. package/Git/GitClient.min.js +1 -1
  55. package/Graph/Graph.d.ts +107 -17
  56. package/Graph/GraphClient.d.ts +42 -3
  57. package/Graph/GraphClient.js +159 -38
  58. package/Graph/GraphClient.min.js +1 -1
  59. package/Identities/Identities.d.ts +15 -0
  60. package/Locations/LocationsClient.js +9 -9
  61. package/Locations/LocationsClient.min.js +1 -1
  62. package/Notification/Notification.d.ts +3 -3
  63. package/Notification/NotificationClient.d.ts +6 -0
  64. package/Notification/NotificationClient.js +40 -23
  65. package/Notification/NotificationClient.min.js +1 -1
  66. package/Operations/OperationsClient.d.ts +1 -1
  67. package/Operations/OperationsClient.js +2 -2
  68. package/Operations/OperationsClient.min.js +1 -1
  69. package/Pipelines/Pipelines.d.ts +318 -0
  70. package/Pipelines/Pipelines.js +82 -0
  71. package/Pipelines/Pipelines.min.js +1 -0
  72. package/Pipelines/PipelinesClient.d.ts +92 -0
  73. package/Pipelines/PipelinesClient.js +325 -0
  74. package/Pipelines/PipelinesClient.min.js +1 -0
  75. package/Policy/Policy.d.ts +4 -0
  76. package/Policy/PolicyClient.d.ts +3 -3
  77. package/Policy/PolicyClient.js +30 -19
  78. package/Policy/PolicyClient.min.js +1 -1
  79. package/Profile/ProfileClient.js +12 -12
  80. package/Profile/ProfileClient.min.js +1 -1
  81. package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
  82. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  83. package/Release/Release.d.ts +81 -7
  84. package/Release/Release.js +11 -0
  85. package/Release/Release.min.js +1 -1
  86. package/Release/ReleaseClient.d.ts +31 -5
  87. package/Release/ReleaseClient.js +223 -95
  88. package/Release/ReleaseClient.min.js +1 -1
  89. package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
  90. package/ServiceEndpoint/ServiceEndpoint.js +1 -0
  91. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  92. package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
  93. package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
  94. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  95. package/ServiceHooks/ServiceHooks.d.ts +2 -1
  96. package/ServiceHooks/ServiceHooksClient.js +23 -23
  97. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  98. package/TaskAgent/TaskAgent.d.ts +740 -17
  99. package/TaskAgent/TaskAgent.js +133 -0
  100. package/TaskAgent/TaskAgent.min.js +1 -1
  101. package/TaskAgent/TaskAgentClient.d.ts +28 -16
  102. package/TaskAgent/TaskAgentClient.js +336 -195
  103. package/TaskAgent/TaskAgentClient.min.js +1 -1
  104. package/Test/Test.d.ts +96 -25
  105. package/Test/Test.js +8 -0
  106. package/Test/Test.min.js +1 -1
  107. package/Test/TestClient.d.ts +17 -34
  108. package/Test/TestClient.js +163 -152
  109. package/Test/TestClient.min.js +1 -1
  110. package/TestPlan/TestPlan.d.ts +215 -18
  111. package/TestPlan/TestPlan.js +47 -1
  112. package/TestPlan/TestPlan.min.js +1 -1
  113. package/TestPlan/TestPlanClient.d.ts +48 -14
  114. package/TestPlan/TestPlanClient.js +255 -74
  115. package/TestPlan/TestPlanClient.min.js +1 -1
  116. package/TestResults/TestResultsClient.d.ts +112 -27
  117. package/TestResults/TestResultsClient.js +518 -134
  118. package/TestResults/TestResultsClient.min.js +1 -1
  119. package/Tfvc/Tfvc.d.ts +9 -1
  120. package/Tfvc/TfvcClient.d.ts +3 -2
  121. package/Tfvc/TfvcClient.js +41 -28
  122. package/Tfvc/TfvcClient.min.js +1 -1
  123. package/WebApi/WebApi.d.ts +22 -3
  124. package/Wiki/Wiki.d.ts +51 -0
  125. package/Wiki/WikiClient.d.ts +18 -0
  126. package/Wiki/WikiClient.js +71 -1
  127. package/Wiki/WikiClient.min.js +1 -1
  128. package/Work/Work.d.ts +68 -1
  129. package/Work/WorkClient.d.ts +10 -3
  130. package/Work/WorkClient.js +78 -58
  131. package/Work/WorkClient.min.js +1 -1
  132. package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
  133. package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
  134. package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
  135. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  136. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
  137. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
  138. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  139. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
  140. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
  141. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  142. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
  143. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
  144. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
  145. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  146. package/package.json +3 -3
@@ -0,0 +1,318 @@
1
+ import * as WebApi from "../WebApi/WebApi";
2
+ /**
3
+ * Artifacts are collections of files produced by a pipeline. Use artifacts to share files between stages in a pipeline or between different pipelines.
4
+ */
5
+ export interface Artifact {
6
+ /**
7
+ * The name of the artifact.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Signed url for downloading this artifact
12
+ */
13
+ signedContent: WebApi.SignedUrl;
14
+ /**
15
+ * Self-referential url
16
+ */
17
+ url: string;
18
+ }
19
+ export interface BuildResourceParameters {
20
+ version: string;
21
+ }
22
+ export declare enum ConfigurationType {
23
+ /**
24
+ * Unknown type.
25
+ */
26
+ Unknown = 0,
27
+ /**
28
+ * YAML.
29
+ */
30
+ Yaml = 1,
31
+ /**
32
+ * Designer JSON.
33
+ */
34
+ DesignerJson = 2,
35
+ /**
36
+ * Just-in-time.
37
+ */
38
+ JustInTime = 3,
39
+ /**
40
+ * Designer-JSON.
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
+ * Configuration parameters of the pipeline.
62
+ */
63
+ export interface CreatePipelineConfigurationParameters {
64
+ /**
65
+ * Type of configuration.
66
+ */
67
+ type: ConfigurationType;
68
+ }
69
+ /**
70
+ * Parameters to create a pipeline.
71
+ */
72
+ export interface CreatePipelineParameters {
73
+ /**
74
+ * Configuration parameters of the pipeline.
75
+ */
76
+ configuration: CreatePipelineConfigurationParameters;
77
+ /**
78
+ * Folder of the pipeline.
79
+ */
80
+ folder: string;
81
+ /**
82
+ * Name of the pipeline.
83
+ */
84
+ name: string;
85
+ }
86
+ /**
87
+ * Expansion options for GetArtifact and ListArtifacts.
88
+ */
89
+ export declare enum GetArtifactExpandOptions {
90
+ /**
91
+ * No expansion.
92
+ */
93
+ None = 0,
94
+ /**
95
+ * Include signed content.
96
+ */
97
+ SignedContent = 1
98
+ }
99
+ /**
100
+ * $expand options for GetLog and ListLogs.
101
+ */
102
+ export declare enum GetLogExpandOptions {
103
+ None = 0,
104
+ SignedContent = 1
105
+ }
106
+ /**
107
+ * Log for a pipeline.
108
+ */
109
+ export interface Log {
110
+ /**
111
+ * The date and time the log was created.
112
+ */
113
+ createdOn: Date;
114
+ /**
115
+ * The ID of the log.
116
+ */
117
+ id: number;
118
+ /**
119
+ * The date and time the log was last changed.
120
+ */
121
+ lastChangedOn: Date;
122
+ /**
123
+ * The number of lines in the log.
124
+ */
125
+ lineCount: number;
126
+ signedContent: WebApi.SignedUrl;
127
+ url: string;
128
+ }
129
+ /**
130
+ * A collection of logs.
131
+ */
132
+ export interface LogCollection {
133
+ /**
134
+ * The list of logs.
135
+ */
136
+ logs: Log[];
137
+ signedContent: WebApi.SignedUrl;
138
+ /**
139
+ * URL of the log.
140
+ */
141
+ url: string;
142
+ }
143
+ export interface PackageResourceParameters {
144
+ version: string;
145
+ }
146
+ /**
147
+ * Definition of a pipeline.
148
+ */
149
+ export interface Pipeline extends PipelineBase {
150
+ _links: any;
151
+ configuration: PipelineConfiguration;
152
+ /**
153
+ * URL of the pipeline
154
+ */
155
+ url: string;
156
+ }
157
+ export interface PipelineBase {
158
+ /**
159
+ * Pipeline folder
160
+ */
161
+ folder: string;
162
+ /**
163
+ * Pipeline ID
164
+ */
165
+ id: number;
166
+ /**
167
+ * Pipeline name
168
+ */
169
+ name: string;
170
+ /**
171
+ * Revision number
172
+ */
173
+ revision: number;
174
+ }
175
+ export interface PipelineConfiguration {
176
+ type: ConfigurationType;
177
+ }
178
+ /**
179
+ * A reference to a Pipeline.
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
+ * This is the security token to use when connecting to the repository.
206
+ */
207
+ token: string;
208
+ /**
209
+ * Optional. This is the type of the token given. If not provided, a type of "Bearer" is assumed. Note: Use "Basic" for a PAT token.
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
+ * Settings which influence pipeline runs.
240
+ */
241
+ export interface RunPipelineParameters {
242
+ /**
243
+ * If true, don't actually create a new run. Instead, return the final YAML document after parsing templates.
244
+ */
245
+ previewRun: boolean;
246
+ /**
247
+ * The resources the run requires.
248
+ */
249
+ resources: RunResourcesParameters;
250
+ stagesToSkip: string[];
251
+ templateParameters: {
252
+ [key: string]: string;
253
+ };
254
+ variables: {
255
+ [key: string]: Variable;
256
+ };
257
+ /**
258
+ * If you use the preview run option, you may optionally supply different YAML. This allows you to preview the final YAML document without committing a changed file.
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
+ * This is not a Flags enum because we don't want to set multiple results on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum. This will make it easier to query multiple results.
296
+ */
297
+ export declare enum RunResult {
298
+ Unknown = 0,
299
+ Succeeded = 1,
300
+ Failed = 2,
301
+ Canceled = 4
302
+ }
303
+ /**
304
+ * This is not a Flags enum because we don't want to set multiple states on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum. This will make it easier to query multiple states.
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: WebApi.SignedUrl;
314
+ }
315
+ export interface Variable {
316
+ isSecret: boolean;
317
+ value: string;
318
+ }
@@ -0,0 +1,82 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ define(["require", "exports"], function (require, exports) {
7
+ "use strict";
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ var ConfigurationType;
10
+ (function (ConfigurationType) {
11
+ /**
12
+ * Unknown type.
13
+ */
14
+ ConfigurationType[ConfigurationType["Unknown"] = 0] = "Unknown";
15
+ /**
16
+ * YAML.
17
+ */
18
+ ConfigurationType[ConfigurationType["Yaml"] = 1] = "Yaml";
19
+ /**
20
+ * Designer JSON.
21
+ */
22
+ ConfigurationType[ConfigurationType["DesignerJson"] = 2] = "DesignerJson";
23
+ /**
24
+ * Just-in-time.
25
+ */
26
+ ConfigurationType[ConfigurationType["JustInTime"] = 3] = "JustInTime";
27
+ /**
28
+ * Designer-JSON.
29
+ */
30
+ ConfigurationType[ConfigurationType["DesignerHyphenJson"] = 2] = "DesignerHyphenJson";
31
+ })(ConfigurationType = exports.ConfigurationType || (exports.ConfigurationType = {}));
32
+ /**
33
+ * Expansion options for GetArtifact and ListArtifacts.
34
+ */
35
+ var GetArtifactExpandOptions;
36
+ (function (GetArtifactExpandOptions) {
37
+ /**
38
+ * No expansion.
39
+ */
40
+ GetArtifactExpandOptions[GetArtifactExpandOptions["None"] = 0] = "None";
41
+ /**
42
+ * Include signed content.
43
+ */
44
+ GetArtifactExpandOptions[GetArtifactExpandOptions["SignedContent"] = 1] = "SignedContent";
45
+ })(GetArtifactExpandOptions = exports.GetArtifactExpandOptions || (exports.GetArtifactExpandOptions = {}));
46
+ /**
47
+ * $expand options for GetLog and ListLogs.
48
+ */
49
+ var GetLogExpandOptions;
50
+ (function (GetLogExpandOptions) {
51
+ GetLogExpandOptions[GetLogExpandOptions["None"] = 0] = "None";
52
+ GetLogExpandOptions[GetLogExpandOptions["SignedContent"] = 1] = "SignedContent";
53
+ })(GetLogExpandOptions = exports.GetLogExpandOptions || (exports.GetLogExpandOptions = {}));
54
+ var RepositoryType;
55
+ (function (RepositoryType) {
56
+ RepositoryType[RepositoryType["Unknown"] = 0] = "Unknown";
57
+ RepositoryType[RepositoryType["GitHub"] = 1] = "GitHub";
58
+ RepositoryType[RepositoryType["AzureReposGit"] = 2] = "AzureReposGit";
59
+ RepositoryType[RepositoryType["GitHubEnterprise"] = 3] = "GitHubEnterprise";
60
+ RepositoryType[RepositoryType["AzureReposGitHyphenated"] = 2] = "AzureReposGitHyphenated";
61
+ })(RepositoryType = exports.RepositoryType || (exports.RepositoryType = {}));
62
+ /**
63
+ * This is not a Flags enum because we don't want to set multiple results on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum. This will make it easier to query multiple results.
64
+ */
65
+ var RunResult;
66
+ (function (RunResult) {
67
+ RunResult[RunResult["Unknown"] = 0] = "Unknown";
68
+ RunResult[RunResult["Succeeded"] = 1] = "Succeeded";
69
+ RunResult[RunResult["Failed"] = 2] = "Failed";
70
+ RunResult[RunResult["Canceled"] = 4] = "Canceled";
71
+ })(RunResult = exports.RunResult || (exports.RunResult = {}));
72
+ /**
73
+ * This is not a Flags enum because we don't want to set multiple states on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum. This will make it easier to query multiple states.
74
+ */
75
+ var RunState;
76
+ (function (RunState) {
77
+ RunState[RunState["Unknown"] = 0] = "Unknown";
78
+ RunState[RunState["InProgress"] = 1] = "InProgress";
79
+ RunState[RunState["Canceling"] = 2] = "Canceling";
80
+ RunState[RunState["Completed"] = 4] = "Completed";
81
+ })(RunState = exports.RunState || (exports.RunState = {}));
82
+ });
@@ -0,0 +1 @@
1
+ define(["require","exports"],function(n,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(n){n[n.Unknown=0]="Unknown",n[n.Yaml=1]="Yaml",n[n.DesignerJson=2]="DesignerJson",n[n.JustInTime=3]="JustInTime",n[n.DesignerHyphenJson=2]="DesignerHyphenJson"}(e.ConfigurationType||(e.ConfigurationType={}));!function(n){n[n.None=0]="None",n[n.SignedContent=1]="SignedContent"}(e.GetArtifactExpandOptions||(e.GetArtifactExpandOptions={}));!function(n){n[n.None=0]="None",n[n.SignedContent=1]="SignedContent"}(e.GetLogExpandOptions||(e.GetLogExpandOptions={}));!function(n){n[n.Unknown=0]="Unknown",n[n.GitHub=1]="GitHub",n[n.AzureReposGit=2]="AzureReposGit",n[n.GitHubEnterprise=3]="GitHubEnterprise",n[n.AzureReposGitHyphenated=2]="AzureReposGitHyphenated"}(e.RepositoryType||(e.RepositoryType={}));!function(n){n[n.Unknown=0]="Unknown",n[n.Succeeded=1]="Succeeded",n[n.Failed=2]="Failed",n[n.Canceled=4]="Canceled"}(e.RunResult||(e.RunResult={}));!function(n){n[n.Unknown=0]="Unknown",n[n.InProgress=1]="InProgress",n[n.Canceling=2]="Canceling",n[n.Completed=4]="Completed"}(e.RunState||(e.RunState={}))});
@@ -0,0 +1,92 @@
1
+ import { IVssRestClientOptions } from "../Common/Context";
2
+ import { RestClientBase } from "../Common/RestClientBase";
3
+ import * as Pipelines from "../Pipelines/Pipelines";
4
+ export declare class PipelinesRestClient extends RestClientBase {
5
+ constructor(options: IVssRestClientOptions);
6
+ /**
7
+ * Get a specific artifact from a pipeline run
8
+ *
9
+ * @param project - Project ID or project name
10
+ * @param pipelineId - ID of the pipeline.
11
+ * @param runId - ID of the run of that pipeline.
12
+ * @param artifactName - Name of the artifact.
13
+ * @param expand - Expand options. Default is None.
14
+ */
15
+ getArtifact(project: string, pipelineId: number, runId: number, artifactName: string, expand?: Pipelines.GetArtifactExpandOptions): Promise<Pipelines.Artifact>;
16
+ /**
17
+ * Get a specific log from a pipeline run
18
+ *
19
+ * @param project - Project ID or project name
20
+ * @param pipelineId - ID of the pipeline.
21
+ * @param runId - ID of the run of that pipeline.
22
+ * @param logId - ID of the log.
23
+ * @param expand - Expand options. Default is None.
24
+ */
25
+ getLog(project: string, pipelineId: number, runId: number, logId: number, expand?: Pipelines.GetLogExpandOptions): Promise<Pipelines.Log>;
26
+ /**
27
+ * Get a list of logs from a pipeline run.
28
+ *
29
+ * @param project - Project ID or project name
30
+ * @param pipelineId - ID of the pipeline.
31
+ * @param runId - ID of the run of that pipeline.
32
+ * @param expand - Expand options. Default is None.
33
+ */
34
+ listLogs(project: string, pipelineId: number, runId: number, expand?: Pipelines.GetLogExpandOptions): Promise<Pipelines.LogCollection>;
35
+ /**
36
+ * Create a pipeline.
37
+ *
38
+ * @param inputParameters - Input parameters.
39
+ * @param project - Project ID or project name
40
+ */
41
+ createPipeline(inputParameters: Pipelines.CreatePipelineParameters, project: string): Promise<Pipelines.Pipeline>;
42
+ /**
43
+ * Gets a pipeline, optionally at the specified version
44
+ *
45
+ * @param project - Project ID or project name
46
+ * @param pipelineId - The pipeline ID
47
+ * @param pipelineVersion - The pipeline version
48
+ */
49
+ getPipeline(project: string, pipelineId: number, pipelineVersion?: number): Promise<Pipelines.Pipeline>;
50
+ /**
51
+ * Get a list of pipelines.
52
+ *
53
+ * @param project - Project ID or project name
54
+ * @param orderBy - A sort expression. Defaults to "name asc"
55
+ * @param top - The maximum number of pipelines to return
56
+ * @param continuationToken - A continuation token from a previous request, to retrieve the next page of results
57
+ */
58
+ listPipelines(project: string, orderBy?: string, top?: number, continuationToken?: string): Promise<Pipelines.Pipeline[]>;
59
+ /**
60
+ * Queues a dry run of the pipeline and returns an object containing the final yaml.
61
+ *
62
+ * @param runParameters - Optional additional parameters for this run.
63
+ * @param project - Project ID or project name
64
+ * @param pipelineId - The pipeline ID.
65
+ * @param pipelineVersion - The pipeline version.
66
+ */
67
+ preview(runParameters: Pipelines.RunPipelineParameters, project: string, pipelineId: number, pipelineVersion?: number): Promise<Pipelines.PreviewRun>;
68
+ /**
69
+ * Gets a run for a particular pipeline.
70
+ *
71
+ * @param project - Project ID or project name
72
+ * @param pipelineId - The pipeline id
73
+ * @param runId - The run id
74
+ */
75
+ getRun(project: string, pipelineId: number, runId: number): Promise<Pipelines.Run>;
76
+ /**
77
+ * Gets top 10000 runs for a particular pipeline.
78
+ *
79
+ * @param project - Project ID or project name
80
+ * @param pipelineId - The pipeline id
81
+ */
82
+ listRuns(project: string, pipelineId: number): Promise<Pipelines.Run[]>;
83
+ /**
84
+ * Runs a pipeline.
85
+ *
86
+ * @param runParameters - Optional additional parameters for this run.
87
+ * @param project - Project ID or project name
88
+ * @param pipelineId - The pipeline ID.
89
+ * @param pipelineVersion - The pipeline version.
90
+ */
91
+ runPipeline(runParameters: Pipelines.RunPipelineParameters, project: string, pipelineId: number, pipelineVersion?: number): Promise<Pipelines.Run>;
92
+ }