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.
- package/Accounts/AccountsClient.d.ts +1 -1
- package/Accounts/AccountsClient.js +4 -4
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/Build.d.ts +205 -3
- package/Build/Build.js +6 -2
- package/Build/Build.min.js +1 -1
- package/Build/BuildClient.d.ts +121 -13
- package/Build/BuildClient.js +468 -101
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/Contributions.d.ts +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.d.ts +2 -2
- package/Core/CoreClient.js +49 -36
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/Dashboard.d.ts +79 -2
- package/Dashboard/Dashboard.js +10 -0
- package/Dashboard/Dashboard.min.js +1 -1
- package/Dashboard/DashboardClient.d.ts +2 -2
- package/Dashboard/DashboardClient.js +15 -15
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.js +27 -27
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/Favorite.d.ts +124 -0
- package/Favorite/Favorite.js +9 -0
- package/Favorite/Favorite.min.js +1 -0
- package/Favorite/FavoriteClient.d.ts +78 -0
- package/Favorite/FavoriteClient.js +314 -0
- package/Favorite/FavoriteClient.min.js +1 -0
- package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
- package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
- package/FeatureManagement/FeatureManagementClient.js +9 -9
- package/FeatureManagement/FeatureManagementClient.min.js +1 -1
- package/FileContainer/FileContainer.d.ts +22 -0
- package/FileContainer/FileContainer.js +8 -0
- package/FileContainer/FileContainer.min.js +1 -1
- package/FileContainer/FileContainerClient.d.ts +5 -2
- package/FileContainer/FileContainerClient.js +13 -7
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/FormInput/FormInput.d.ts +1 -1
- package/Gallery/Gallery.d.ts +92 -7
- package/Gallery/Gallery.js +25 -3
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +41 -9
- package/Gallery/GalleryClient.js +211 -90
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +121 -7
- package/Git/Git.js +2 -1
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +182 -28
- package/Git/GitClient.js +657 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +42 -3
- package/Graph/GraphClient.js +159 -38
- package/Graph/GraphClient.min.js +1 -1
- package/Identities/Identities.d.ts +15 -0
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/Notification.d.ts +3 -3
- package/Notification/NotificationClient.d.ts +6 -0
- package/Notification/NotificationClient.js +40 -23
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.d.ts +1 -1
- package/Operations/OperationsClient.js +2 -2
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +318 -0
- package/Pipelines/Pipelines.js +82 -0
- package/Pipelines/Pipelines.min.js +1 -0
- package/Pipelines/PipelinesClient.d.ts +92 -0
- package/Pipelines/PipelinesClient.js +325 -0
- package/Pipelines/PipelinesClient.min.js +1 -0
- package/Policy/Policy.d.ts +4 -0
- package/Policy/PolicyClient.d.ts +3 -3
- package/Policy/PolicyClient.js +30 -19
- package/Policy/PolicyClient.min.js +1 -1
- package/Profile/ProfileClient.js +12 -12
- package/Profile/ProfileClient.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
- package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
- package/Release/Release.d.ts +81 -7
- package/Release/Release.js +11 -0
- package/Release/Release.min.js +1 -1
- package/Release/ReleaseClient.d.ts +31 -5
- package/Release/ReleaseClient.js +223 -95
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
- package/ServiceEndpoint/ServiceEndpoint.js +1 -0
- package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
- package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +2 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +740 -17
- package/TaskAgent/TaskAgent.js +133 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/TaskAgent/TaskAgentClient.d.ts +28 -16
- package/TaskAgent/TaskAgentClient.js +336 -195
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/Test.d.ts +96 -25
- package/Test/Test.js +8 -0
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +17 -34
- package/Test/TestClient.js +163 -152
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +215 -18
- package/TestPlan/TestPlan.js +47 -1
- package/TestPlan/TestPlan.min.js +1 -1
- package/TestPlan/TestPlanClient.d.ts +48 -14
- package/TestPlan/TestPlanClient.js +255 -74
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +112 -27
- package/TestResults/TestResultsClient.js +518 -134
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +9 -1
- package/Tfvc/TfvcClient.d.ts +3 -2
- package/Tfvc/TfvcClient.js +41 -28
- package/Tfvc/TfvcClient.min.js +1 -1
- package/WebApi/WebApi.d.ts +22 -3
- package/Wiki/Wiki.d.ts +51 -0
- package/Wiki/WikiClient.d.ts +18 -0
- package/Wiki/WikiClient.js +71 -1
- package/Wiki/WikiClient.min.js +1 -1
- package/Work/Work.d.ts +68 -1
- package/Work/WorkClient.d.ts +10 -3
- package/Work/WorkClient.js +78 -58
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
- package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
- package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +3 -3
package/Build/BuildClient.d.ts
CHANGED
|
@@ -112,6 +112,13 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
112
112
|
* @param branchName - The branch name.
|
|
113
113
|
*/
|
|
114
114
|
getBuildBadgeData(project: string, repoType: string, repoId?: string, branchName?: string): Promise<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Gets all retention leases that apply to a specific build.
|
|
117
|
+
*
|
|
118
|
+
* @param project - Project ID or project name
|
|
119
|
+
* @param buildId - The ID of the build.
|
|
120
|
+
*/
|
|
121
|
+
getRetentionLeasesForBuild(project: string, buildId: number): Promise<Build.RetentionLease[]>;
|
|
115
122
|
/**
|
|
116
123
|
* Deletes a build.
|
|
117
124
|
*
|
|
@@ -152,7 +159,7 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
152
159
|
* @param repositoryId - If specified, filters to builds that built from this repository.
|
|
153
160
|
* @param repositoryType - If specified, filters to builds that built from repositories of this type.
|
|
154
161
|
*/
|
|
155
|
-
getBuilds(project: string, definitions?: number[], queues?: number[], buildNumber?: string, minTime?: Date, maxTime?: Date, requestedFor?: string, reasonFilter?: Build.BuildReason, statusFilter?: Build.BuildStatus, resultFilter?: Build.BuildResult, tagFilters?: string[], properties?: string[], top?: number, continuationToken?: string, maxBuildsPerDefinition?: number, deletedFilter?: Build.QueryDeletedOption, queryOrder?: Build.BuildQueryOrder, branchName?: string, buildIds?: number[], repositoryId?: string, repositoryType?: string): Promise<Build.Build
|
|
162
|
+
getBuilds(project: string, definitions?: number[], queues?: number[], buildNumber?: string, minTime?: Date, maxTime?: Date, requestedFor?: string, reasonFilter?: Build.BuildReason, statusFilter?: Build.BuildStatus, resultFilter?: Build.BuildResult, tagFilters?: string[], properties?: string[], top?: number, continuationToken?: string, maxBuildsPerDefinition?: number, deletedFilter?: Build.QueryDeletedOption, queryOrder?: Build.BuildQueryOrder, branchName?: string, buildIds?: number[], repositoryId?: string, repositoryType?: string): Promise<WebApi.PagedList<Build.Build>>;
|
|
156
163
|
/**
|
|
157
164
|
* Queues a build
|
|
158
165
|
*
|
|
@@ -161,8 +168,9 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
161
168
|
* @param ignoreWarnings -
|
|
162
169
|
* @param checkInTicket -
|
|
163
170
|
* @param sourceBuildId -
|
|
171
|
+
* @param definitionId - Optional definition id to queue a build without a body. Ignored if there's a valid body
|
|
164
172
|
*/
|
|
165
|
-
queueBuild(build: Build.Build, project: string, ignoreWarnings?: boolean, checkInTicket?: string, sourceBuildId?: number): Promise<Build.Build>;
|
|
173
|
+
queueBuild(build: Build.Build, project: string, ignoreWarnings?: boolean, checkInTicket?: string, sourceBuildId?: number, definitionId?: number): Promise<Build.Build>;
|
|
166
174
|
/**
|
|
167
175
|
* Updates a build.
|
|
168
176
|
*
|
|
@@ -188,7 +196,7 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
188
196
|
* @param top - The maximum number of changes to return
|
|
189
197
|
* @param includeSourceChange -
|
|
190
198
|
*/
|
|
191
|
-
getBuildChanges(project: string, buildId: number, continuationToken?: string, top?: number, includeSourceChange?: boolean): Promise<Build.Change
|
|
199
|
+
getBuildChanges(project: string, buildId: number, continuationToken?: string, top?: number, includeSourceChange?: boolean): Promise<WebApi.PagedList<Build.Change>>;
|
|
192
200
|
/**
|
|
193
201
|
* Gets the changes made to the repository between two given builds.
|
|
194
202
|
*
|
|
@@ -256,9 +264,9 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
256
264
|
* @param includeLatestBuilds - Indicates whether to return the latest and latest completed builds for this definition.
|
|
257
265
|
* @param taskIdFilter - If specified, filters to definitions that use the specified task.
|
|
258
266
|
* @param processType - If specified, filters to definitions with the given process type.
|
|
259
|
-
* @param yamlFilename - If specified, filters to YAML definitions that match the given filename.
|
|
267
|
+
* @param yamlFilename - If specified, filters to YAML definitions that match the given filename. To use this filter includeAllProperties should be set to true
|
|
260
268
|
*/
|
|
261
|
-
getDefinitions(project: string, name?: string, repositoryId?: string, repositoryType?: string, queryOrder?: Build.DefinitionQueryOrder, top?: number, continuationToken?: string, minMetricsTime?: Date, definitionIds?: number[], path?: string, builtAfter?: Date, notBuiltAfter?: Date, includeAllProperties?: boolean, includeLatestBuilds?: boolean, taskIdFilter?: string, processType?: number, yamlFilename?: string): Promise<Build.BuildDefinitionReference
|
|
269
|
+
getDefinitions(project: string, name?: string, repositoryId?: string, repositoryType?: string, queryOrder?: Build.DefinitionQueryOrder, top?: number, continuationToken?: string, minMetricsTime?: Date, definitionIds?: number[], path?: string, builtAfter?: Date, notBuiltAfter?: Date, includeAllProperties?: boolean, includeLatestBuilds?: boolean, taskIdFilter?: string, processType?: number, yamlFilename?: string): Promise<WebApi.PagedList<Build.BuildDefinitionReference>>;
|
|
262
270
|
/**
|
|
263
271
|
* Restores a deleted definition
|
|
264
272
|
*
|
|
@@ -268,9 +276,9 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
268
276
|
*/
|
|
269
277
|
restoreDefinition(project: string, definitionId: number, deleted: boolean): Promise<Build.BuildDefinition>;
|
|
270
278
|
/**
|
|
271
|
-
* Updates an existing definition.
|
|
279
|
+
* Updates an existing build definition. In order for this operation to succeed, the value of the "Revision" property of the request body must match the existing build definition's. It is recommended that you obtain the existing build definition by using GET, modify the build definition as necessary, and then submit the modified definition with PUT.
|
|
272
280
|
*
|
|
273
|
-
* @param definition - The new version of the
|
|
281
|
+
* @param definition - The new version of the definition. Its "Revision" property must match the existing definition for the update to be accepted.
|
|
274
282
|
* @param project - Project ID or project name
|
|
275
283
|
* @param definitionId - The ID of the definition.
|
|
276
284
|
* @param secretsSourceDefinitionId -
|
|
@@ -319,14 +327,87 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
319
327
|
* @param path - The full path to the folder.
|
|
320
328
|
*/
|
|
321
329
|
updateFolder(folder: Build.Folder, project: string, path: string): Promise<Build.Folder>;
|
|
330
|
+
/**
|
|
331
|
+
* Gets pipeline general settings.
|
|
332
|
+
*
|
|
333
|
+
* @param project - Project ID or project name
|
|
334
|
+
*/
|
|
335
|
+
getBuildGeneralSettings(project: string): Promise<Build.PipelineGeneralSettings>;
|
|
336
|
+
/**
|
|
337
|
+
* Updates pipeline general settings.
|
|
338
|
+
*
|
|
339
|
+
* @param newSettings -
|
|
340
|
+
* @param project - Project ID or project name
|
|
341
|
+
*/
|
|
342
|
+
updateBuildGeneralSettings(newSettings: Build.PipelineGeneralSettings, project: string): Promise<Build.PipelineGeneralSettings>;
|
|
343
|
+
/**
|
|
344
|
+
* Returns the retention history for the project collection. This includes pipelines that have custom retention rules that may prevent the retention job from cleaning them up, runs per pipeline with retention type, files associated with pipelines owned by the collection with retention type, and the number of files per pipeline.
|
|
345
|
+
*
|
|
346
|
+
* @param daysToLookback -
|
|
347
|
+
*/
|
|
348
|
+
getRetentionHistory(daysToLookback?: number): Promise<Build.BuildRetentionHistory>;
|
|
322
349
|
/**
|
|
323
350
|
* Gets the latest build for a definition, optionally scoped to a specific branch.
|
|
324
351
|
*
|
|
325
352
|
* @param project - Project ID or project name
|
|
326
353
|
* @param definition - definition name with optional leading folder path, or the definition id
|
|
327
|
-
* @param branchName - optional parameter that indicates the specific branch to use
|
|
354
|
+
* @param branchName - optional parameter that indicates the specific branch to use. If not specified, the default branch is used.
|
|
328
355
|
*/
|
|
329
356
|
getLatestBuild(project: string, definition: string, branchName?: string): Promise<Build.Build>;
|
|
357
|
+
/**
|
|
358
|
+
* Adds new leases for pipeline runs.
|
|
359
|
+
*
|
|
360
|
+
* @param newLeases -
|
|
361
|
+
* @param project - Project ID or project name
|
|
362
|
+
*/
|
|
363
|
+
addRetentionLeases(newLeases: Build.NewRetentionLease[], project: string): Promise<Build.RetentionLease[]>;
|
|
364
|
+
/**
|
|
365
|
+
* Removes specific retention leases.
|
|
366
|
+
*
|
|
367
|
+
* @param project - Project ID or project name
|
|
368
|
+
* @param ids -
|
|
369
|
+
*/
|
|
370
|
+
deleteRetentionLeasesById(project: string, ids: number[]): Promise<void>;
|
|
371
|
+
/**
|
|
372
|
+
* Returns the details of the retention lease given a lease id.
|
|
373
|
+
*
|
|
374
|
+
* @param project - Project ID or project name
|
|
375
|
+
* @param leaseId -
|
|
376
|
+
*/
|
|
377
|
+
getRetentionLease(project: string, leaseId: number): Promise<Build.RetentionLease>;
|
|
378
|
+
/**
|
|
379
|
+
* Returns any leases matching the specified MinimalRetentionLeases
|
|
380
|
+
*
|
|
381
|
+
* @param project - Project ID or project name
|
|
382
|
+
* @param leasesToFetch - List of JSON-serialized MinimalRetentionLeases separated by '|'
|
|
383
|
+
*/
|
|
384
|
+
getRetentionLeasesByMinimalRetentionLeases(project: string, leasesToFetch: Build.MinimalRetentionLease[]): Promise<Build.RetentionLease[]>;
|
|
385
|
+
/**
|
|
386
|
+
* Returns any leases owned by the specified entity, optionally scoped to a single pipeline definition and run.
|
|
387
|
+
*
|
|
388
|
+
* @param project - Project ID or project name
|
|
389
|
+
* @param ownerId -
|
|
390
|
+
* @param definitionId - An optional parameter to limit the search to a specific pipeline definition.
|
|
391
|
+
* @param runId - An optional parameter to limit the search to a single pipeline run. Requires definitionId.
|
|
392
|
+
*/
|
|
393
|
+
getRetentionLeasesByOwnerId(project: string, ownerId?: string, definitionId?: number, runId?: number): Promise<Build.RetentionLease[]>;
|
|
394
|
+
/**
|
|
395
|
+
* Returns any leases owned by the specified user, optionally scoped to a single pipeline definition and run.
|
|
396
|
+
*
|
|
397
|
+
* @param project - Project ID or project name
|
|
398
|
+
* @param userOwnerId - The user id to search for.
|
|
399
|
+
* @param definitionId - An optional parameter to limit the search to a specific pipeline definition.
|
|
400
|
+
* @param runId - An optional parameter to limit the search to a single pipeline run. Requires definitionId.
|
|
401
|
+
*/
|
|
402
|
+
getRetentionLeasesByUserId(project: string, userOwnerId: string, definitionId?: number, runId?: number): Promise<Build.RetentionLease[]>;
|
|
403
|
+
/**
|
|
404
|
+
* Updates the duration or pipeline protection status of a retention lease.
|
|
405
|
+
*
|
|
406
|
+
* @param leaseUpdate - The new data for the retention lease.
|
|
407
|
+
* @param project - Project ID or project name
|
|
408
|
+
* @param leaseId - The ID of the lease to update.
|
|
409
|
+
*/
|
|
410
|
+
updateRetentionLease(leaseUpdate: Build.RetentionLeaseUpdate, project: string, leaseId: number): Promise<Build.RetentionLease>;
|
|
330
411
|
/**
|
|
331
412
|
* Gets an individual log file for a build.
|
|
332
413
|
*
|
|
@@ -543,7 +624,7 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
543
624
|
*
|
|
544
625
|
* @param project - Project ID or project name
|
|
545
626
|
* @param definition - Either the definition name with optional leading folder path, or the definition id.
|
|
546
|
-
* @param branchName - Only consider the most recent build for this branch.
|
|
627
|
+
* @param branchName - Only consider the most recent build for this branch. If not specified, the default branch is used.
|
|
547
628
|
* @param stageName - Use this stage within the pipeline to render the status.
|
|
548
629
|
* @param jobName - Use this job within a stage of the pipeline to render the status.
|
|
549
630
|
* @param configuration - Use this job configuration to render the status
|
|
@@ -561,13 +642,13 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
561
642
|
/**
|
|
562
643
|
* Adds tags to a build.
|
|
563
644
|
*
|
|
564
|
-
* @param tags - The tags to add.
|
|
645
|
+
* @param tags - The tags to add. Request body is composed directly from listed tags.
|
|
565
646
|
* @param project - Project ID or project name
|
|
566
647
|
* @param buildId - The ID of the build.
|
|
567
648
|
*/
|
|
568
649
|
addBuildTags(tags: string[], project: string, buildId: number): Promise<string[]>;
|
|
569
650
|
/**
|
|
570
|
-
* Removes a tag from a build.
|
|
651
|
+
* Removes a tag from a build. NOTE: This API will not work for tags with special characters. To remove tags with special characters, use the PATCH method instead (in 6.0+)
|
|
571
652
|
*
|
|
572
653
|
* @param project - Project ID or project name
|
|
573
654
|
* @param buildId - The ID of the build.
|
|
@@ -581,6 +662,14 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
581
662
|
* @param buildId - The ID of the build.
|
|
582
663
|
*/
|
|
583
664
|
getBuildTags(project: string, buildId: number): Promise<string[]>;
|
|
665
|
+
/**
|
|
666
|
+
* Adds/Removes tags from a build.
|
|
667
|
+
*
|
|
668
|
+
* @param updateParameters - The tags to add/remove.
|
|
669
|
+
* @param project - Project ID or project name
|
|
670
|
+
* @param buildId - The ID of the build.
|
|
671
|
+
*/
|
|
672
|
+
updateBuildTags(updateParameters: Build.UpdateTagParameters, project: string, buildId: number): Promise<string[]>;
|
|
584
673
|
/**
|
|
585
674
|
* Adds a tag to a definition
|
|
586
675
|
*
|
|
@@ -598,7 +687,7 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
598
687
|
*/
|
|
599
688
|
addDefinitionTags(tags: string[], project: string, definitionId: number): Promise<string[]>;
|
|
600
689
|
/**
|
|
601
|
-
* Removes a tag from a definition.
|
|
690
|
+
* Removes a tag from a definition. NOTE: This API will not work for tags with special characters. To remove tags with special characters, use the PATCH method instead (in 6.0+)
|
|
602
691
|
*
|
|
603
692
|
* @param project - Project ID or project name
|
|
604
693
|
* @param definitionId - The ID of the definition.
|
|
@@ -613,6 +702,14 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
613
702
|
* @param revision - The definition revision number. If not specified, uses the latest revision of the definition.
|
|
614
703
|
*/
|
|
615
704
|
getDefinitionTags(project: string, definitionId: number, revision?: number): Promise<string[]>;
|
|
705
|
+
/**
|
|
706
|
+
* Adds/Removes tags from a definition.
|
|
707
|
+
*
|
|
708
|
+
* @param updateParameters - The tags to add/remove.
|
|
709
|
+
* @param project - Project ID or project name
|
|
710
|
+
* @param definitionId - The ID of the definition.
|
|
711
|
+
*/
|
|
712
|
+
updateDefinitionTags(updateParameters: Build.UpdateTagParameters, project: string, definitionId: number): Promise<string[]>;
|
|
616
713
|
/**
|
|
617
714
|
* Removes a tag from builds, definitions, and from the tag store
|
|
618
715
|
*
|
|
@@ -684,7 +781,7 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
684
781
|
*/
|
|
685
782
|
listWebhooks(project: string, providerName: string, serviceEndpointId?: string, repository?: string): Promise<Build.RepositoryWebhook[]>;
|
|
686
783
|
/**
|
|
687
|
-
* Gets the work items associated with a build.
|
|
784
|
+
* Gets the work items associated with a build. Only work items in the same project are returned.
|
|
688
785
|
*
|
|
689
786
|
* @param project - Project ID or project name
|
|
690
787
|
* @param buildId - The ID of the build.
|
|
@@ -709,4 +806,15 @@ export declare class BuildRestClient extends RestClientBase {
|
|
|
709
806
|
* @param top - The maximum number of work items to return.
|
|
710
807
|
*/
|
|
711
808
|
getWorkItemsBetweenBuilds(project: string, fromBuildId: number, toBuildId: number, top?: number): Promise<WebApi.ResourceRef[]>;
|
|
809
|
+
/**
|
|
810
|
+
* Converts a definition to YAML, optionally at a specific revision.
|
|
811
|
+
*
|
|
812
|
+
* @param project - Project ID or project name
|
|
813
|
+
* @param definitionId - The ID of the definition.
|
|
814
|
+
* @param revision - The revision number to retrieve. If this is not specified, the latest version will be returned.
|
|
815
|
+
* @param minMetricsTime - If specified, indicates the date from which metrics should be included.
|
|
816
|
+
* @param propertyFilters - A comma-delimited list of properties to include in the results.
|
|
817
|
+
* @param includeLatestBuilds -
|
|
818
|
+
*/
|
|
819
|
+
getDefinitionYaml(project: string, definitionId: number, revision?: number, minMetricsTime?: Date, propertyFilters?: string[], includeLatestBuilds?: boolean): Promise<Build.YamlBuild>;
|
|
712
820
|
}
|