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/Git/GitClient.d.ts
CHANGED
|
@@ -6,6 +6,37 @@ import * as WebApi from "../WebApi/WebApi";
|
|
|
6
6
|
export declare class GitRestClient extends RestClientBase {
|
|
7
7
|
constructor(options: IVssRestClientOptions);
|
|
8
8
|
static readonly RESOURCE_AREA_ID: string;
|
|
9
|
+
/**
|
|
10
|
+
* DELETE Deletes Enablement status and BillableCommitters data from DB. Deleting the enablement data will effectively disable it for the repositories affected.
|
|
11
|
+
*
|
|
12
|
+
* @param allProjects -
|
|
13
|
+
* @param includeBillableCommitters -
|
|
14
|
+
* @param projectIds -
|
|
15
|
+
*/
|
|
16
|
+
deleteEnablementStatus(allProjects: boolean, includeBillableCommitters?: boolean, projectIds?: string[]): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* GET Enablement status for project's repositories.
|
|
19
|
+
*
|
|
20
|
+
* @param projectIds - Null defaults to all projects in the host, list of project's repos status to return
|
|
21
|
+
* @param billingDate - UTC expected, Null defaults to UtcNow(), can be provided for a point in time status
|
|
22
|
+
* @param skip - Skip X rows of resultset to simulate paging.
|
|
23
|
+
* @param take - Return Y rows of resultset to simulate paging.
|
|
24
|
+
*/
|
|
25
|
+
getEnablementStatus(projectIds?: string[], billingDate?: Date, skip?: number, take?: number): Promise<Git.AdvSecEnablementStatus[]>;
|
|
26
|
+
/**
|
|
27
|
+
* POST Enablement status for repositories.
|
|
28
|
+
*
|
|
29
|
+
* @param enablementUpdates -
|
|
30
|
+
*/
|
|
31
|
+
updateEnablementStatus(enablementUpdates: Git.AdvSecEnablementUpdate[]): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* GET Advanced Security Permission status.
|
|
34
|
+
*
|
|
35
|
+
* @param projectName -
|
|
36
|
+
* @param repositoryId - Repository user is trying to access
|
|
37
|
+
* @param permission - Permission being requestd, must be "viewAlert" "dismissAlert" or "manage"
|
|
38
|
+
*/
|
|
39
|
+
getPermission(projectName?: string, repositoryId?: string, permission?: string): Promise<boolean>;
|
|
9
40
|
/**
|
|
10
41
|
* Create an annotated tag.
|
|
11
42
|
*
|
|
@@ -22,6 +53,33 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
22
53
|
* @param objectId - ObjectId (Sha1Id) of tag to get.
|
|
23
54
|
*/
|
|
24
55
|
getAnnotatedTag(project: string, repositoryId: string, objectId: string): Promise<Git.GitAnnotatedTag>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieve actual billable committers for Advanced Security service for a given date.
|
|
58
|
+
*
|
|
59
|
+
* @param project - Project ID or project name
|
|
60
|
+
* @param billingDate - UTC expected. If not specified defaults to the previous billing day.
|
|
61
|
+
* @param skip - Skip X rows of resultset to simulate paging.
|
|
62
|
+
* @param take - Return Y rows of resultset to simulate paging.
|
|
63
|
+
*/
|
|
64
|
+
getBillableCommitters(project: string, billingDate?: Date, skip?: number, take?: number): Promise<Git.BillableCommitter[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieve detailed actual billable committers for Advanced Security service for a given date.
|
|
67
|
+
*
|
|
68
|
+
* @param project - Project ID or project name
|
|
69
|
+
* @param includeDetails - Return all the details on the billable committers.
|
|
70
|
+
* @param billingDate - UTC expected. If not specified defaults to the previous billing day.
|
|
71
|
+
* @param skip - Skip X rows of resultset to simulate paging.
|
|
72
|
+
* @param take - Return Y rows of resultset to simulate paging.
|
|
73
|
+
*/
|
|
74
|
+
getBillableCommittersDetail(project: string, includeDetails: string, billingDate?: Date, skip?: number, take?: number): Promise<Git.BillableCommitterDetail[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieve actual billable committers for Advanced Security service for a given date.
|
|
77
|
+
*
|
|
78
|
+
* @param project - Project ID or project name
|
|
79
|
+
* @param estimateOnly -
|
|
80
|
+
* @param repositoryId -
|
|
81
|
+
*/
|
|
82
|
+
getEstimatedBillableCommitters(project: string, estimateOnly: string, repositoryId?: string): Promise<Git.BillableCommitter[]>;
|
|
25
83
|
/**
|
|
26
84
|
* Get a single blob.
|
|
27
85
|
*
|
|
@@ -97,6 +155,47 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
97
155
|
* @param skip - The number of changes to skip.
|
|
98
156
|
*/
|
|
99
157
|
getChanges(commitId: string, repositoryId: string, project?: string, top?: number, skip?: number): Promise<Git.GitCommitChanges>;
|
|
158
|
+
/**
|
|
159
|
+
* Retrieve one conflict for a cherry pick by ID
|
|
160
|
+
*
|
|
161
|
+
* @param repositoryId -
|
|
162
|
+
* @param cherryPickId -
|
|
163
|
+
* @param conflictId -
|
|
164
|
+
* @param project - Project ID or project name
|
|
165
|
+
*/
|
|
166
|
+
getCherryPickConflict(repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
|
|
167
|
+
/**
|
|
168
|
+
* Retrieve all conflicts for a cherry pick
|
|
169
|
+
*
|
|
170
|
+
* @param repositoryId -
|
|
171
|
+
* @param cherryPickId -
|
|
172
|
+
* @param project - Project ID or project name
|
|
173
|
+
* @param continuationToken -
|
|
174
|
+
* @param top -
|
|
175
|
+
* @param excludeResolved -
|
|
176
|
+
* @param onlyResolved -
|
|
177
|
+
* @param includeObsolete -
|
|
178
|
+
*/
|
|
179
|
+
getCherryPickConflicts(repositoryId: string, cherryPickId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<WebApi.PagedList<Git.GitConflict>>;
|
|
180
|
+
/**
|
|
181
|
+
* Update merge conflict resolution
|
|
182
|
+
*
|
|
183
|
+
* @param conflict -
|
|
184
|
+
* @param repositoryId -
|
|
185
|
+
* @param cherryPickId -
|
|
186
|
+
* @param conflictId -
|
|
187
|
+
* @param project - Project ID or project name
|
|
188
|
+
*/
|
|
189
|
+
updateCherryPickConflict(conflict: Git.GitConflict, repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
|
|
190
|
+
/**
|
|
191
|
+
* Update multiple merge conflict resolutions
|
|
192
|
+
*
|
|
193
|
+
* @param conflictUpdates -
|
|
194
|
+
* @param repositoryId -
|
|
195
|
+
* @param cherryPickId -
|
|
196
|
+
* @param project - Project ID or project name
|
|
197
|
+
*/
|
|
198
|
+
updateCherryPickConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, cherryPickId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
|
|
100
199
|
/**
|
|
101
200
|
* Given a commitId, returns a list of commits that are in the same cherry-pick family.
|
|
102
201
|
*
|
|
@@ -115,7 +214,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
115
214
|
*/
|
|
116
215
|
createCherryPick(cherryPickToCreate: Git.GitAsyncRefOperationParameters, project: string, repositoryId: string): Promise<Git.GitCherryPick>;
|
|
117
216
|
/**
|
|
118
|
-
* Retrieve information about a cherry pick by cherry pick Id.
|
|
217
|
+
* Retrieve information about a cherry pick operation by cherry pick Id.
|
|
119
218
|
*
|
|
120
219
|
* @param project - Project ID or project name
|
|
121
220
|
* @param cherryPickId - ID of the cherry pick.
|
|
@@ -123,7 +222,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
123
222
|
*/
|
|
124
223
|
getCherryPick(project: string, cherryPickId: number, repositoryId: string): Promise<Git.GitCherryPick>;
|
|
125
224
|
/**
|
|
126
|
-
* Retrieve information about a cherry pick for a specific branch.
|
|
225
|
+
* Retrieve information about a cherry pick operation for a specific branch. This operation is expensive due to the underlying object structure, so this API only looks at the 1000 most recent cherry pick operations.
|
|
127
226
|
*
|
|
128
227
|
* @param project - Project ID or project name
|
|
129
228
|
* @param repositoryId - ID of the repository.
|
|
@@ -278,8 +377,9 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
278
377
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
279
378
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
280
379
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
380
|
+
* @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
|
|
281
381
|
*/
|
|
282
|
-
getItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean): Promise<Git.GitItem>;
|
|
382
|
+
getItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<Git.GitItem>;
|
|
283
383
|
/**
|
|
284
384
|
* Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
|
|
285
385
|
*
|
|
@@ -294,8 +394,9 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
294
394
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
295
395
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
296
396
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
397
|
+
* @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
|
|
297
398
|
*/
|
|
298
|
-
getItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean): Promise<ArrayBuffer>;
|
|
399
|
+
getItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
|
|
299
400
|
/**
|
|
300
401
|
* Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
|
|
301
402
|
*
|
|
@@ -308,8 +409,9 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
308
409
|
* @param download - Set to true to download the response as a file. Default is false.
|
|
309
410
|
* @param includeLinks - Set to true to include links to items. Default is false.
|
|
310
411
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
412
|
+
* @param zipForUnix - Set to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
|
|
311
413
|
*/
|
|
312
|
-
getItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: Git.GitVersionDescriptor): Promise<Git.GitItem[]>;
|
|
414
|
+
getItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: Git.GitVersionDescriptor, zipForUnix?: boolean): Promise<Git.GitItem[]>;
|
|
313
415
|
/**
|
|
314
416
|
* Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
|
|
315
417
|
*
|
|
@@ -324,8 +426,9 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
324
426
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
325
427
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
326
428
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
429
|
+
* @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
|
|
327
430
|
*/
|
|
328
|
-
getItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean): Promise<string>;
|
|
431
|
+
getItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<string>;
|
|
329
432
|
/**
|
|
330
433
|
* Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
|
|
331
434
|
*
|
|
@@ -340,8 +443,9 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
340
443
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
341
444
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
342
445
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
446
|
+
* @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
|
|
343
447
|
*/
|
|
344
|
-
getItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean): Promise<ArrayBuffer>;
|
|
448
|
+
getItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
|
|
345
449
|
/**
|
|
346
450
|
* Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path
|
|
347
451
|
*
|
|
@@ -472,7 +576,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
472
576
|
* @param pullRequestId - ID of the pull request.
|
|
473
577
|
* @param project - Project ID or project name
|
|
474
578
|
*/
|
|
475
|
-
getPullRequestCommits(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitCommitRef
|
|
579
|
+
getPullRequestCommits(repositoryId: string, pullRequestId: number, project?: string): Promise<WebApi.PagedList<Git.GitCommitRef>>;
|
|
476
580
|
/**
|
|
477
581
|
* Retrieve one conflict for a pull request by ID
|
|
478
582
|
*
|
|
@@ -485,14 +589,14 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
485
589
|
/**
|
|
486
590
|
* Retrieve all conflicts for a pull request
|
|
487
591
|
*
|
|
488
|
-
* @param repositoryId -
|
|
489
|
-
* @param pullRequestId -
|
|
592
|
+
* @param repositoryId - The repository of the Pull Request.
|
|
593
|
+
* @param pullRequestId - The pull request ID.
|
|
490
594
|
* @param project - Project ID or project name
|
|
491
|
-
* @param skip -
|
|
492
|
-
* @param top -
|
|
493
|
-
* @param includeObsolete -
|
|
494
|
-
* @param excludeResolved -
|
|
495
|
-
* @param onlyResolved -
|
|
595
|
+
* @param skip - Conflicts to skip.
|
|
596
|
+
* @param top - Conflicts to return after skip.
|
|
597
|
+
* @param includeObsolete - Includes obsolete conflicts.
|
|
598
|
+
* @param excludeResolved - Excludes conflicts already resolved.
|
|
599
|
+
* @param onlyResolved - Returns only the conflicts that are resolved.
|
|
496
600
|
*/
|
|
497
601
|
getPullRequestConflicts(repositoryId: string, pullRequestId: number, project?: string, skip?: number, top?: number, includeObsolete?: boolean, excludeResolved?: boolean, onlyResolved?: boolean): Promise<Git.GitConflict[]>;
|
|
498
602
|
/**
|
|
@@ -519,7 +623,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
519
623
|
*
|
|
520
624
|
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
521
625
|
* @param pullRequestId - ID of the pull request.
|
|
522
|
-
* @param iterationId - ID of the pull request iteration. \<br /\> Iteration
|
|
626
|
+
* @param iterationId - ID of the pull request iteration. \<br /\> Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. Allowed values are between 1 and the maximum iteration on this pull request.
|
|
523
627
|
* @param project - Project ID or project name
|
|
524
628
|
* @param top - Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000.
|
|
525
629
|
* @param skip - Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100.
|
|
@@ -661,7 +765,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
661
765
|
* Add a reviewer to a pull request or cast a vote.
|
|
662
766
|
*
|
|
663
767
|
* @param reviewer - Reviewer's vote.\<br /\>If the reviewer's ID is included here, it must match the reviewerID parameter.\<br /\>Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
|
|
664
|
-
* @param repositoryId - The repository ID of the pull request
|
|
768
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
665
769
|
* @param pullRequestId - ID of the pull request.
|
|
666
770
|
* @param reviewerId - ID of the reviewer.
|
|
667
771
|
* @param project - Project ID or project name
|
|
@@ -671,15 +775,24 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
671
775
|
* Add reviewers to a pull request.
|
|
672
776
|
*
|
|
673
777
|
* @param reviewers - Reviewers to add to the pull request.
|
|
674
|
-
* @param repositoryId - The repository ID of the pull request
|
|
778
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
675
779
|
* @param pullRequestId - ID of the pull request.
|
|
676
780
|
* @param project - Project ID or project name
|
|
677
781
|
*/
|
|
678
782
|
createPullRequestReviewers(reviewers: WebApi.IdentityRef[], repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote[]>;
|
|
783
|
+
/**
|
|
784
|
+
* Add an unmaterialized identity to the reviewers of a pull request.
|
|
785
|
+
*
|
|
786
|
+
* @param reviewer - Reviewer to add to the pull request.
|
|
787
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
788
|
+
* @param pullRequestId - ID of the pull request.
|
|
789
|
+
* @param project - Project ID or project name
|
|
790
|
+
*/
|
|
791
|
+
createUnmaterializedPullRequestReviewer(reviewer: Git.IdentityRefWithVote, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote>;
|
|
679
792
|
/**
|
|
680
793
|
* Remove a reviewer from a pull request.
|
|
681
794
|
*
|
|
682
|
-
* @param repositoryId - The repository ID of the pull request
|
|
795
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
683
796
|
* @param pullRequestId - ID of the pull request.
|
|
684
797
|
* @param reviewerId - ID of the reviewer to remove.
|
|
685
798
|
* @param project - Project ID or project name
|
|
@@ -688,7 +801,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
688
801
|
/**
|
|
689
802
|
* Retrieve information about a particular reviewer on a pull request
|
|
690
803
|
*
|
|
691
|
-
* @param repositoryId - The repository ID of the pull request
|
|
804
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
692
805
|
* @param pullRequestId - ID of the pull request.
|
|
693
806
|
* @param reviewerId - ID of the reviewer.
|
|
694
807
|
* @param project - Project ID or project name
|
|
@@ -697,16 +810,16 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
697
810
|
/**
|
|
698
811
|
* Retrieve the reviewers for a pull request
|
|
699
812
|
*
|
|
700
|
-
* @param repositoryId - The repository ID of the pull request
|
|
813
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
701
814
|
* @param pullRequestId - ID of the pull request.
|
|
702
815
|
* @param project - Project ID or project name
|
|
703
816
|
*/
|
|
704
817
|
getPullRequestReviewers(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote[]>;
|
|
705
818
|
/**
|
|
706
|
-
* Edit a reviewer entry. These fields are patchable: isFlagged
|
|
819
|
+
* Edit a reviewer entry. These fields are patchable: isFlagged, hasDeclined
|
|
707
820
|
*
|
|
708
821
|
* @param reviewer - Reviewer data.\<br /\>If the reviewer's ID is included here, it must match the reviewerID parameter.
|
|
709
|
-
* @param repositoryId - The repository ID of the pull request
|
|
822
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
710
823
|
* @param pullRequestId - ID of the pull request.
|
|
711
824
|
* @param reviewerId - ID of the reviewer.
|
|
712
825
|
* @param project - Project ID or project name
|
|
@@ -716,7 +829,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
716
829
|
* Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.
|
|
717
830
|
*
|
|
718
831
|
* @param patchVotes - IDs of the reviewers whose votes will be reset to zero
|
|
719
|
-
* @param repositoryId - The repository ID of the pull request
|
|
832
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
720
833
|
* @param pullRequestId - ID of the pull request
|
|
721
834
|
* @param project - Project ID or project name
|
|
722
835
|
*/
|
|
@@ -993,7 +1106,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
993
1106
|
* @param peelTags - [optional] Annotated tags will populate the PeeledObjectId property. default is false.
|
|
994
1107
|
* @param filterContains - [optional] A filter to apply to the refs (contains).
|
|
995
1108
|
*/
|
|
996
|
-
getRefs(repositoryId: string, project?: string, filter?: string, includeLinks?: boolean, includeStatuses?: boolean, includeMyBranches?: boolean, latestStatusesOnly?: boolean, peelTags?: boolean, filterContains?: string): Promise<Git.GitRef
|
|
1109
|
+
getRefs(repositoryId: string, project?: string, filter?: string, includeLinks?: boolean, includeStatuses?: boolean, includeMyBranches?: boolean, latestStatusesOnly?: boolean, peelTags?: boolean, filterContains?: string): Promise<WebApi.PagedList<Git.GitRef>>;
|
|
997
1110
|
/**
|
|
998
1111
|
* Lock or Unlock a branch.
|
|
999
1112
|
*
|
|
@@ -1045,7 +1158,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
1045
1158
|
/**
|
|
1046
1159
|
* Create a git repository in a team project.
|
|
1047
1160
|
*
|
|
1048
|
-
* @param gitRepositoryToCreate - Specify the repo name, team project and/or parent repository. Team project information can be
|
|
1161
|
+
* @param gitRepositoryToCreate - Specify the repo name, team project and/or parent repository. Team project information can be omitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id).
|
|
1049
1162
|
* @param project - Project ID or project name
|
|
1050
1163
|
* @param sourceRef - [optional] Specify the source refs to use while creating a fork repo
|
|
1051
1164
|
*/
|
|
@@ -1053,7 +1166,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
1053
1166
|
/**
|
|
1054
1167
|
* Delete a git repository
|
|
1055
1168
|
*
|
|
1056
|
-
* @param repositoryId - The
|
|
1169
|
+
* @param repositoryId - The ID of the repository.
|
|
1057
1170
|
* @param project - Project ID or project name
|
|
1058
1171
|
*/
|
|
1059
1172
|
deleteRepository(repositoryId: string, project?: string): Promise<void>;
|
|
@@ -1085,10 +1198,51 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
1085
1198
|
* Updates the Git repository with either a new repo name or a new default branch.
|
|
1086
1199
|
*
|
|
1087
1200
|
* @param newRepositoryInfo - Specify a new repo name or a new default branch of the repository
|
|
1088
|
-
* @param repositoryId - The
|
|
1201
|
+
* @param repositoryId - The ID of the repository.
|
|
1089
1202
|
* @param project - Project ID or project name
|
|
1090
1203
|
*/
|
|
1091
1204
|
updateRepository(newRepositoryInfo: Git.GitRepository, repositoryId: string, project?: string): Promise<Git.GitRepository>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Retrieve one conflict for a revert by ID
|
|
1207
|
+
*
|
|
1208
|
+
* @param repositoryId -
|
|
1209
|
+
* @param revertId -
|
|
1210
|
+
* @param conflictId -
|
|
1211
|
+
* @param project - Project ID or project name
|
|
1212
|
+
*/
|
|
1213
|
+
getRevertConflict(repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Retrieve all conflicts for a revert
|
|
1216
|
+
*
|
|
1217
|
+
* @param repositoryId -
|
|
1218
|
+
* @param revertId -
|
|
1219
|
+
* @param project - Project ID or project name
|
|
1220
|
+
* @param continuationToken -
|
|
1221
|
+
* @param top -
|
|
1222
|
+
* @param excludeResolved -
|
|
1223
|
+
* @param onlyResolved -
|
|
1224
|
+
* @param includeObsolete -
|
|
1225
|
+
*/
|
|
1226
|
+
getRevertConflicts(repositoryId: string, revertId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<WebApi.PagedList<Git.GitConflict>>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Update merge conflict resolution
|
|
1229
|
+
*
|
|
1230
|
+
* @param conflict -
|
|
1231
|
+
* @param repositoryId -
|
|
1232
|
+
* @param revertId -
|
|
1233
|
+
* @param conflictId -
|
|
1234
|
+
* @param project - Project ID or project name
|
|
1235
|
+
*/
|
|
1236
|
+
updateRevertConflict(conflict: Git.GitConflict, repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Update multiple merge conflict resolutions
|
|
1239
|
+
*
|
|
1240
|
+
* @param conflictUpdates -
|
|
1241
|
+
* @param repositoryId -
|
|
1242
|
+
* @param revertId -
|
|
1243
|
+
* @param project - Project ID or project name
|
|
1244
|
+
*/
|
|
1245
|
+
updateRevertConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, revertId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
|
|
1092
1246
|
/**
|
|
1093
1247
|
* Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.
|
|
1094
1248
|
*
|