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.js
CHANGED
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
|
|
51
|
+
define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serialization"], function (require, exports, RestClientBase_1, Serialization_1) {
|
|
52
52
|
"use strict";
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
var GitRestClient = /** @class */ (function (_super) {
|
|
@@ -56,6 +56,98 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
56
56
|
function GitRestClient(options) {
|
|
57
57
|
return _super.call(this, options) || this;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* DELETE Deletes Enablement status and BillableCommitters data from DB. Deleting the enablement data will effectively disable it for the repositories affected.
|
|
61
|
+
*
|
|
62
|
+
* @param allProjects -
|
|
63
|
+
* @param includeBillableCommitters -
|
|
64
|
+
* @param projectIds -
|
|
65
|
+
*/
|
|
66
|
+
GitRestClient.prototype.deleteEnablementStatus = function (allProjects, includeBillableCommitters, projectIds) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
+
var queryValues;
|
|
69
|
+
return __generator(this, function (_a) {
|
|
70
|
+
queryValues = {
|
|
71
|
+
'$allProjects': allProjects,
|
|
72
|
+
'$includeBillableCommitters': includeBillableCommitters,
|
|
73
|
+
projectIds: projectIds
|
|
74
|
+
};
|
|
75
|
+
return [2 /*return*/, this.beginRequest({
|
|
76
|
+
apiVersion: "7.1-preview.1",
|
|
77
|
+
method: "DELETE",
|
|
78
|
+
routeTemplate: "_apis/git/advsecEnablement",
|
|
79
|
+
queryParams: queryValues
|
|
80
|
+
})];
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* GET Enablement status for project's repositories.
|
|
86
|
+
*
|
|
87
|
+
* @param projectIds - Null defaults to all projects in the host, list of project's repos status to return
|
|
88
|
+
* @param billingDate - UTC expected, Null defaults to UtcNow(), can be provided for a point in time status
|
|
89
|
+
* @param skip - Skip X rows of resultset to simulate paging.
|
|
90
|
+
* @param take - Return Y rows of resultset to simulate paging.
|
|
91
|
+
*/
|
|
92
|
+
GitRestClient.prototype.getEnablementStatus = function (projectIds, billingDate, skip, take) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
94
|
+
var queryValues;
|
|
95
|
+
return __generator(this, function (_a) {
|
|
96
|
+
queryValues = {
|
|
97
|
+
projectIds: projectIds,
|
|
98
|
+
'$billingDate': billingDate,
|
|
99
|
+
'$skip': skip,
|
|
100
|
+
'$take': take
|
|
101
|
+
};
|
|
102
|
+
return [2 /*return*/, this.beginRequest({
|
|
103
|
+
apiVersion: "7.1-preview.1",
|
|
104
|
+
routeTemplate: "_apis/git/advsecEnablement",
|
|
105
|
+
queryParams: queryValues
|
|
106
|
+
})];
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* POST Enablement status for repositories.
|
|
112
|
+
*
|
|
113
|
+
* @param enablementUpdates -
|
|
114
|
+
*/
|
|
115
|
+
GitRestClient.prototype.updateEnablementStatus = function (enablementUpdates) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
return [2 /*return*/, this.beginRequest({
|
|
119
|
+
apiVersion: "7.1-preview.1",
|
|
120
|
+
method: "POST",
|
|
121
|
+
routeTemplate: "_apis/git/advsecEnablement",
|
|
122
|
+
body: enablementUpdates
|
|
123
|
+
})];
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* GET Advanced Security Permission status.
|
|
129
|
+
*
|
|
130
|
+
* @param projectName -
|
|
131
|
+
* @param repositoryId - Repository user is trying to access
|
|
132
|
+
* @param permission - Permission being requestd, must be "viewAlert" "dismissAlert" or "manage"
|
|
133
|
+
*/
|
|
134
|
+
GitRestClient.prototype.getPermission = function (projectName, repositoryId, permission) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
+
var queryValues;
|
|
137
|
+
return __generator(this, function (_a) {
|
|
138
|
+
queryValues = {
|
|
139
|
+
'$projectName': projectName,
|
|
140
|
+
'$repositoryId': repositoryId,
|
|
141
|
+
'$permission': permission
|
|
142
|
+
};
|
|
143
|
+
return [2 /*return*/, this.beginRequest({
|
|
144
|
+
apiVersion: "7.1-preview.1",
|
|
145
|
+
routeTemplate: "_apis/git/advsecPermissions",
|
|
146
|
+
queryParams: queryValues
|
|
147
|
+
})];
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
59
151
|
/**
|
|
60
152
|
* Create an annotated tag.
|
|
61
153
|
*
|
|
@@ -67,7 +159,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
67
159
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
160
|
return __generator(this, function (_a) {
|
|
69
161
|
return [2 /*return*/, this.beginRequest({
|
|
70
|
-
apiVersion: "
|
|
162
|
+
apiVersion: "7.1-preview.1",
|
|
71
163
|
method: "POST",
|
|
72
164
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",
|
|
73
165
|
routeValues: {
|
|
@@ -90,7 +182,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
90
182
|
return __awaiter(this, void 0, void 0, function () {
|
|
91
183
|
return __generator(this, function (_a) {
|
|
92
184
|
return [2 /*return*/, this.beginRequest({
|
|
93
|
-
apiVersion: "
|
|
185
|
+
apiVersion: "7.1-preview.1",
|
|
94
186
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",
|
|
95
187
|
routeValues: {
|
|
96
188
|
project: project,
|
|
@@ -101,6 +193,90 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
101
193
|
});
|
|
102
194
|
});
|
|
103
195
|
};
|
|
196
|
+
/**
|
|
197
|
+
* Retrieve actual billable committers for Advanced Security service for a given date.
|
|
198
|
+
*
|
|
199
|
+
* @param project - Project ID or project name
|
|
200
|
+
* @param billingDate - UTC expected. If not specified defaults to the previous billing day.
|
|
201
|
+
* @param skip - Skip X rows of resultset to simulate paging.
|
|
202
|
+
* @param take - Return Y rows of resultset to simulate paging.
|
|
203
|
+
*/
|
|
204
|
+
GitRestClient.prototype.getBillableCommitters = function (project, billingDate, skip, take) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
206
|
+
var queryValues;
|
|
207
|
+
return __generator(this, function (_a) {
|
|
208
|
+
queryValues = {
|
|
209
|
+
'$billingDate': billingDate,
|
|
210
|
+
'$skip': skip,
|
|
211
|
+
'$take': take
|
|
212
|
+
};
|
|
213
|
+
return [2 /*return*/, this.beginRequest({
|
|
214
|
+
apiVersion: "7.1-preview.1",
|
|
215
|
+
routeTemplate: "{project}/_apis/git/billableCommitters",
|
|
216
|
+
routeValues: {
|
|
217
|
+
project: project
|
|
218
|
+
},
|
|
219
|
+
queryParams: queryValues
|
|
220
|
+
})];
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Retrieve detailed actual billable committers for Advanced Security service for a given date.
|
|
226
|
+
*
|
|
227
|
+
* @param project - Project ID or project name
|
|
228
|
+
* @param includeDetails - Return all the details on the billable committers.
|
|
229
|
+
* @param billingDate - UTC expected. If not specified defaults to the previous billing day.
|
|
230
|
+
* @param skip - Skip X rows of resultset to simulate paging.
|
|
231
|
+
* @param take - Return Y rows of resultset to simulate paging.
|
|
232
|
+
*/
|
|
233
|
+
GitRestClient.prototype.getBillableCommittersDetail = function (project, includeDetails, billingDate, skip, take) {
|
|
234
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
235
|
+
var queryValues;
|
|
236
|
+
return __generator(this, function (_a) {
|
|
237
|
+
queryValues = {
|
|
238
|
+
'$includeDetails': includeDetails,
|
|
239
|
+
'$billingDate': billingDate,
|
|
240
|
+
'$skip': skip,
|
|
241
|
+
'$take': take
|
|
242
|
+
};
|
|
243
|
+
return [2 /*return*/, this.beginRequest({
|
|
244
|
+
apiVersion: "7.1-preview.1",
|
|
245
|
+
routeTemplate: "{project}/_apis/git/billableCommitters",
|
|
246
|
+
routeValues: {
|
|
247
|
+
project: project
|
|
248
|
+
},
|
|
249
|
+
queryParams: queryValues
|
|
250
|
+
})];
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Retrieve actual billable committers for Advanced Security service for a given date.
|
|
256
|
+
*
|
|
257
|
+
* @param project - Project ID or project name
|
|
258
|
+
* @param estimateOnly -
|
|
259
|
+
* @param repositoryId -
|
|
260
|
+
*/
|
|
261
|
+
GitRestClient.prototype.getEstimatedBillableCommitters = function (project, estimateOnly, repositoryId) {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
263
|
+
var queryValues;
|
|
264
|
+
return __generator(this, function (_a) {
|
|
265
|
+
queryValues = {
|
|
266
|
+
'$estimateOnly': estimateOnly,
|
|
267
|
+
'$repositoryId': repositoryId
|
|
268
|
+
};
|
|
269
|
+
return [2 /*return*/, this.beginRequest({
|
|
270
|
+
apiVersion: "7.1-preview.1",
|
|
271
|
+
routeTemplate: "{project}/_apis/git/billableCommitters",
|
|
272
|
+
routeValues: {
|
|
273
|
+
project: project
|
|
274
|
+
},
|
|
275
|
+
queryParams: queryValues
|
|
276
|
+
})];
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
104
280
|
/**
|
|
105
281
|
* Get a single blob.
|
|
106
282
|
*
|
|
@@ -121,7 +297,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
121
297
|
resolveLfs: resolveLfs
|
|
122
298
|
};
|
|
123
299
|
return [2 /*return*/, this.beginRequest({
|
|
124
|
-
apiVersion: "
|
|
300
|
+
apiVersion: "7.1-preview.1",
|
|
125
301
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",
|
|
126
302
|
routeValues: {
|
|
127
303
|
project: project,
|
|
@@ -153,7 +329,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
153
329
|
resolveLfs: resolveLfs
|
|
154
330
|
};
|
|
155
331
|
return [2 /*return*/, this.beginRequest({
|
|
156
|
-
apiVersion: "
|
|
332
|
+
apiVersion: "7.1-preview.1",
|
|
157
333
|
httpResponseType: "application/octet-stream",
|
|
158
334
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",
|
|
159
335
|
routeValues: {
|
|
@@ -182,7 +358,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
182
358
|
filename: filename
|
|
183
359
|
};
|
|
184
360
|
return [2 /*return*/, this.beginRequest({
|
|
185
|
-
apiVersion: "
|
|
361
|
+
apiVersion: "7.1-preview.1",
|
|
186
362
|
method: "POST",
|
|
187
363
|
httpResponseType: "application/zip",
|
|
188
364
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",
|
|
@@ -216,7 +392,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
216
392
|
resolveLfs: resolveLfs
|
|
217
393
|
};
|
|
218
394
|
return [2 /*return*/, this.beginRequest({
|
|
219
|
-
apiVersion: "
|
|
395
|
+
apiVersion: "7.1-preview.1",
|
|
220
396
|
httpResponseType: "application/zip",
|
|
221
397
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",
|
|
222
398
|
routeValues: {
|
|
@@ -246,7 +422,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
246
422
|
baseVersionDescriptor: baseVersionDescriptor
|
|
247
423
|
};
|
|
248
424
|
return [2 /*return*/, this.beginRequest({
|
|
249
|
-
apiVersion: "
|
|
425
|
+
apiVersion: "7.1-preview.1",
|
|
250
426
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/stats/branches",
|
|
251
427
|
routeValues: {
|
|
252
428
|
project: project,
|
|
@@ -272,7 +448,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
272
448
|
baseVersionDescriptor: baseVersionDescriptor
|
|
273
449
|
};
|
|
274
450
|
return [2 /*return*/, this.beginRequest({
|
|
275
|
-
apiVersion: "
|
|
451
|
+
apiVersion: "7.1-preview.1",
|
|
276
452
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/stats/branches",
|
|
277
453
|
routeValues: {
|
|
278
454
|
project: project,
|
|
@@ -292,7 +468,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
292
468
|
return __awaiter(this, void 0, void 0, function () {
|
|
293
469
|
return __generator(this, function (_a) {
|
|
294
470
|
return [2 /*return*/, this.beginRequest({
|
|
295
|
-
apiVersion: "
|
|
471
|
+
apiVersion: "7.1-preview.1",
|
|
296
472
|
method: "POST",
|
|
297
473
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/stats/branches",
|
|
298
474
|
routeValues: {
|
|
@@ -322,7 +498,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
322
498
|
skip: skip
|
|
323
499
|
};
|
|
324
500
|
return [2 /*return*/, this.beginRequest({
|
|
325
|
-
apiVersion: "
|
|
501
|
+
apiVersion: "7.1-preview.1",
|
|
326
502
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Changes",
|
|
327
503
|
routeValues: {
|
|
328
504
|
project: project,
|
|
@@ -334,6 +510,131 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
334
510
|
});
|
|
335
511
|
});
|
|
336
512
|
};
|
|
513
|
+
/**
|
|
514
|
+
* Retrieve one conflict for a cherry pick by ID
|
|
515
|
+
*
|
|
516
|
+
* @param repositoryId -
|
|
517
|
+
* @param cherryPickId -
|
|
518
|
+
* @param conflictId -
|
|
519
|
+
* @param project - Project ID or project name
|
|
520
|
+
*/
|
|
521
|
+
GitRestClient.prototype.getCherryPickConflict = function (repositoryId, cherryPickId, conflictId, project) {
|
|
522
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
523
|
+
return __generator(this, function (_a) {
|
|
524
|
+
return [2 /*return*/, this.beginRequest({
|
|
525
|
+
apiVersion: "7.1-preview.1",
|
|
526
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",
|
|
527
|
+
routeValues: {
|
|
528
|
+
project: project,
|
|
529
|
+
repositoryId: repositoryId,
|
|
530
|
+
cherryPickId: cherryPickId,
|
|
531
|
+
conflictId: conflictId
|
|
532
|
+
}
|
|
533
|
+
})];
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Retrieve all conflicts for a cherry pick
|
|
539
|
+
*
|
|
540
|
+
* @param repositoryId -
|
|
541
|
+
* @param cherryPickId -
|
|
542
|
+
* @param project - Project ID or project name
|
|
543
|
+
* @param continuationToken -
|
|
544
|
+
* @param top -
|
|
545
|
+
* @param excludeResolved -
|
|
546
|
+
* @param onlyResolved -
|
|
547
|
+
* @param includeObsolete -
|
|
548
|
+
*/
|
|
549
|
+
GitRestClient.prototype.getCherryPickConflicts = function (repositoryId, cherryPickId, project, continuationToken, top, excludeResolved, onlyResolved, includeObsolete) {
|
|
550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
551
|
+
var queryValues;
|
|
552
|
+
var _this = this;
|
|
553
|
+
return __generator(this, function (_a) {
|
|
554
|
+
queryValues = {
|
|
555
|
+
continuationToken: continuationToken,
|
|
556
|
+
'$top': top,
|
|
557
|
+
excludeResolved: excludeResolved,
|
|
558
|
+
onlyResolved: onlyResolved,
|
|
559
|
+
includeObsolete: includeObsolete
|
|
560
|
+
};
|
|
561
|
+
return [2 /*return*/, this.beginRequest({
|
|
562
|
+
apiVersion: "7.1-preview.1",
|
|
563
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",
|
|
564
|
+
routeValues: {
|
|
565
|
+
project: project,
|
|
566
|
+
repositoryId: repositoryId,
|
|
567
|
+
cherryPickId: cherryPickId
|
|
568
|
+
},
|
|
569
|
+
queryParams: queryValues,
|
|
570
|
+
returnRawResponse: true
|
|
571
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
572
|
+
var body;
|
|
573
|
+
return __generator(this, function (_a) {
|
|
574
|
+
switch (_a.label) {
|
|
575
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
576
|
+
case 1:
|
|
577
|
+
body = _a.sent();
|
|
578
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
579
|
+
return [2 /*return*/, body];
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
}); })];
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* Update merge conflict resolution
|
|
588
|
+
*
|
|
589
|
+
* @param conflict -
|
|
590
|
+
* @param repositoryId -
|
|
591
|
+
* @param cherryPickId -
|
|
592
|
+
* @param conflictId -
|
|
593
|
+
* @param project - Project ID or project name
|
|
594
|
+
*/
|
|
595
|
+
GitRestClient.prototype.updateCherryPickConflict = function (conflict, repositoryId, cherryPickId, conflictId, project) {
|
|
596
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
597
|
+
return __generator(this, function (_a) {
|
|
598
|
+
return [2 /*return*/, this.beginRequest({
|
|
599
|
+
apiVersion: "7.1-preview.1",
|
|
600
|
+
method: "PATCH",
|
|
601
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",
|
|
602
|
+
routeValues: {
|
|
603
|
+
project: project,
|
|
604
|
+
repositoryId: repositoryId,
|
|
605
|
+
cherryPickId: cherryPickId,
|
|
606
|
+
conflictId: conflictId
|
|
607
|
+
},
|
|
608
|
+
body: conflict
|
|
609
|
+
})];
|
|
610
|
+
});
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
/**
|
|
614
|
+
* Update multiple merge conflict resolutions
|
|
615
|
+
*
|
|
616
|
+
* @param conflictUpdates -
|
|
617
|
+
* @param repositoryId -
|
|
618
|
+
* @param cherryPickId -
|
|
619
|
+
* @param project - Project ID or project name
|
|
620
|
+
*/
|
|
621
|
+
GitRestClient.prototype.updateCherryPickConflicts = function (conflictUpdates, repositoryId, cherryPickId, project) {
|
|
622
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
623
|
+
return __generator(this, function (_a) {
|
|
624
|
+
return [2 /*return*/, this.beginRequest({
|
|
625
|
+
apiVersion: "7.1-preview.1",
|
|
626
|
+
method: "PATCH",
|
|
627
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",
|
|
628
|
+
routeValues: {
|
|
629
|
+
project: project,
|
|
630
|
+
repositoryId: repositoryId,
|
|
631
|
+
cherryPickId: cherryPickId
|
|
632
|
+
},
|
|
633
|
+
body: conflictUpdates
|
|
634
|
+
})];
|
|
635
|
+
});
|
|
636
|
+
});
|
|
637
|
+
};
|
|
337
638
|
/**
|
|
338
639
|
* Given a commitId, returns a list of commits that are in the same cherry-pick family.
|
|
339
640
|
*
|
|
@@ -350,7 +651,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
350
651
|
includeLinks: includeLinks
|
|
351
652
|
};
|
|
352
653
|
return [2 /*return*/, this.beginRequest({
|
|
353
|
-
apiVersion: "
|
|
654
|
+
apiVersion: "7.1-preview.1",
|
|
354
655
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/cherryPickRelationships/{commitId}",
|
|
355
656
|
routeValues: {
|
|
356
657
|
project: project,
|
|
@@ -373,7 +674,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
373
674
|
return __awaiter(this, void 0, void 0, function () {
|
|
374
675
|
return __generator(this, function (_a) {
|
|
375
676
|
return [2 /*return*/, this.beginRequest({
|
|
376
|
-
apiVersion: "
|
|
677
|
+
apiVersion: "7.1-preview.1",
|
|
377
678
|
method: "POST",
|
|
378
679
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",
|
|
379
680
|
routeValues: {
|
|
@@ -386,7 +687,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
386
687
|
});
|
|
387
688
|
};
|
|
388
689
|
/**
|
|
389
|
-
* Retrieve information about a cherry pick by cherry pick Id.
|
|
690
|
+
* Retrieve information about a cherry pick operation by cherry pick Id.
|
|
390
691
|
*
|
|
391
692
|
* @param project - Project ID or project name
|
|
392
693
|
* @param cherryPickId - ID of the cherry pick.
|
|
@@ -396,7 +697,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
396
697
|
return __awaiter(this, void 0, void 0, function () {
|
|
397
698
|
return __generator(this, function (_a) {
|
|
398
699
|
return [2 /*return*/, this.beginRequest({
|
|
399
|
-
apiVersion: "
|
|
700
|
+
apiVersion: "7.1-preview.1",
|
|
400
701
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",
|
|
401
702
|
routeValues: {
|
|
402
703
|
project: project,
|
|
@@ -408,7 +709,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
408
709
|
});
|
|
409
710
|
};
|
|
410
711
|
/**
|
|
411
|
-
* Retrieve information about a cherry pick for a specific branch.
|
|
712
|
+
* 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.
|
|
412
713
|
*
|
|
413
714
|
* @param project - Project ID or project name
|
|
414
715
|
* @param repositoryId - ID of the repository.
|
|
@@ -422,7 +723,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
422
723
|
refName: refName
|
|
423
724
|
};
|
|
424
725
|
return [2 /*return*/, this.beginRequest({
|
|
425
|
-
apiVersion: "
|
|
726
|
+
apiVersion: "7.1-preview.1",
|
|
426
727
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",
|
|
427
728
|
routeValues: {
|
|
428
729
|
project: project,
|
|
@@ -452,11 +753,19 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
452
753
|
diffCommonCommit: diffCommonCommit,
|
|
453
754
|
'$top': top,
|
|
454
755
|
'$skip': skip,
|
|
455
|
-
baseVersionDescriptor: baseVersionDescriptor,
|
|
456
|
-
targetVersionDescriptor: targetVersionDescriptor
|
|
457
756
|
};
|
|
458
|
-
|
|
459
|
-
|
|
757
|
+
if (baseVersionDescriptor) {
|
|
758
|
+
queryValues.baseVersionType = baseVersionDescriptor.versionType;
|
|
759
|
+
queryValues.baseVersion = baseVersionDescriptor.version;
|
|
760
|
+
queryValues.baseVersionOptions = baseVersionDescriptor.versionOptions;
|
|
761
|
+
}
|
|
762
|
+
if (targetVersionDescriptor) {
|
|
763
|
+
queryValues.targetVersionType = targetVersionDescriptor.versionType;
|
|
764
|
+
queryValues.targetVersion = targetVersionDescriptor.version;
|
|
765
|
+
queryValues.targetVersionOptions = targetVersionDescriptor.versionOptions;
|
|
766
|
+
}
|
|
767
|
+
return [2 /*return*/, this.beginRequest({
|
|
768
|
+
apiVersion: "7.1-preview.1",
|
|
460
769
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/diffs/commits",
|
|
461
770
|
routeValues: {
|
|
462
771
|
project: project,
|
|
@@ -483,7 +792,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
483
792
|
changeCount: changeCount
|
|
484
793
|
};
|
|
485
794
|
return [2 /*return*/, this.beginRequest({
|
|
486
|
-
apiVersion: "
|
|
795
|
+
apiVersion: "7.1-preview.1",
|
|
487
796
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",
|
|
488
797
|
routeValues: {
|
|
489
798
|
project: project,
|
|
@@ -510,7 +819,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
510
819
|
searchCriteria: searchCriteria
|
|
511
820
|
};
|
|
512
821
|
return [2 /*return*/, this.beginRequest({
|
|
513
|
-
apiVersion: "
|
|
822
|
+
apiVersion: "7.1-preview.1",
|
|
514
823
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",
|
|
515
824
|
routeValues: {
|
|
516
825
|
project: project,
|
|
@@ -542,7 +851,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
542
851
|
includeLinks: includeLinks
|
|
543
852
|
};
|
|
544
853
|
return [2 /*return*/, this.beginRequest({
|
|
545
|
-
apiVersion: "
|
|
854
|
+
apiVersion: "7.1-preview.1",
|
|
546
855
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",
|
|
547
856
|
routeValues: {
|
|
548
857
|
project: project,
|
|
@@ -573,7 +882,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
573
882
|
includeStatuses: includeStatuses
|
|
574
883
|
};
|
|
575
884
|
return [2 /*return*/, this.beginRequest({
|
|
576
|
-
apiVersion: "
|
|
885
|
+
apiVersion: "7.1-preview.1",
|
|
577
886
|
method: "POST",
|
|
578
887
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/CommitsBatch",
|
|
579
888
|
routeValues: {
|
|
@@ -595,7 +904,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
595
904
|
return __awaiter(this, void 0, void 0, function () {
|
|
596
905
|
return __generator(this, function (_a) {
|
|
597
906
|
return [2 /*return*/, this.beginRequest({
|
|
598
|
-
apiVersion: "
|
|
907
|
+
apiVersion: "7.1-preview.1",
|
|
599
908
|
routeTemplate: "{project}/_apis/git/DeletedRepositories",
|
|
600
909
|
routeValues: {
|
|
601
910
|
project: project
|
|
@@ -615,7 +924,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
615
924
|
return __awaiter(this, void 0, void 0, function () {
|
|
616
925
|
return __generator(this, function (_a) {
|
|
617
926
|
return [2 /*return*/, this.beginRequest({
|
|
618
|
-
apiVersion: "
|
|
927
|
+
apiVersion: "7.1-preview.1",
|
|
619
928
|
method: "POST",
|
|
620
929
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/FileDiffs",
|
|
621
930
|
routeValues: {
|
|
@@ -643,7 +952,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
643
952
|
includeLinks: includeLinks
|
|
644
953
|
};
|
|
645
954
|
return [2 /*return*/, this.beginRequest({
|
|
646
|
-
apiVersion: "
|
|
955
|
+
apiVersion: "7.1-preview.1",
|
|
647
956
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/forks/{collectionId}",
|
|
648
957
|
routeValues: {
|
|
649
958
|
project: project,
|
|
@@ -671,7 +980,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
671
980
|
includeLinks: includeLinks
|
|
672
981
|
};
|
|
673
982
|
return [2 /*return*/, this.beginRequest({
|
|
674
|
-
apiVersion: "
|
|
983
|
+
apiVersion: "7.1-preview.1",
|
|
675
984
|
method: "POST",
|
|
676
985
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",
|
|
677
986
|
routeValues: {
|
|
@@ -700,7 +1009,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
700
1009
|
includeLinks: includeLinks
|
|
701
1010
|
};
|
|
702
1011
|
return [2 /*return*/, this.beginRequest({
|
|
703
|
-
apiVersion: "
|
|
1012
|
+
apiVersion: "7.1-preview.1",
|
|
704
1013
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",
|
|
705
1014
|
routeValues: {
|
|
706
1015
|
project: project,
|
|
@@ -729,7 +1038,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
729
1038
|
includeLinks: includeLinks
|
|
730
1039
|
};
|
|
731
1040
|
return [2 /*return*/, this.beginRequest({
|
|
732
|
-
apiVersion: "
|
|
1041
|
+
apiVersion: "7.1-preview.1",
|
|
733
1042
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",
|
|
734
1043
|
routeValues: {
|
|
735
1044
|
project: project,
|
|
@@ -751,7 +1060,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
751
1060
|
return __awaiter(this, void 0, void 0, function () {
|
|
752
1061
|
return __generator(this, function (_a) {
|
|
753
1062
|
return [2 /*return*/, this.beginRequest({
|
|
754
|
-
apiVersion: "
|
|
1063
|
+
apiVersion: "7.1-preview.1",
|
|
755
1064
|
method: "POST",
|
|
756
1065
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",
|
|
757
1066
|
routeValues: {
|
|
@@ -774,7 +1083,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
774
1083
|
return __awaiter(this, void 0, void 0, function () {
|
|
775
1084
|
return __generator(this, function (_a) {
|
|
776
1085
|
return [2 /*return*/, this.beginRequest({
|
|
777
|
-
apiVersion: "
|
|
1086
|
+
apiVersion: "7.1-preview.1",
|
|
778
1087
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",
|
|
779
1088
|
routeValues: {
|
|
780
1089
|
project: project,
|
|
@@ -800,7 +1109,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
800
1109
|
includeAbandoned: includeAbandoned
|
|
801
1110
|
};
|
|
802
1111
|
return [2 /*return*/, this.beginRequest({
|
|
803
|
-
apiVersion: "
|
|
1112
|
+
apiVersion: "7.1-preview.1",
|
|
804
1113
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",
|
|
805
1114
|
routeValues: {
|
|
806
1115
|
project: project,
|
|
@@ -823,7 +1132,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
823
1132
|
return __awaiter(this, void 0, void 0, function () {
|
|
824
1133
|
return __generator(this, function (_a) {
|
|
825
1134
|
return [2 /*return*/, this.beginRequest({
|
|
826
|
-
apiVersion: "
|
|
1135
|
+
apiVersion: "7.1-preview.1",
|
|
827
1136
|
method: "PATCH",
|
|
828
1137
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",
|
|
829
1138
|
routeValues: {
|
|
@@ -850,8 +1159,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
850
1159
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
851
1160
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
852
1161
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
1162
|
+
* @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.
|
|
853
1163
|
*/
|
|
854
|
-
GitRestClient.prototype.getItem = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs) {
|
|
1164
|
+
GitRestClient.prototype.getItem = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
|
|
855
1165
|
return __awaiter(this, void 0, void 0, function () {
|
|
856
1166
|
var queryValues;
|
|
857
1167
|
return __generator(this, function (_a) {
|
|
@@ -864,10 +1174,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
864
1174
|
download: download,
|
|
865
1175
|
versionDescriptor: versionDescriptor,
|
|
866
1176
|
includeContent: includeContent,
|
|
867
|
-
resolveLfs: resolveLfs
|
|
1177
|
+
resolveLfs: resolveLfs,
|
|
1178
|
+
sanitize: sanitize
|
|
868
1179
|
};
|
|
869
1180
|
return [2 /*return*/, this.beginRequest({
|
|
870
|
-
apiVersion: "
|
|
1181
|
+
apiVersion: "7.1-preview.1",
|
|
871
1182
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",
|
|
872
1183
|
routeValues: {
|
|
873
1184
|
project: project,
|
|
@@ -892,8 +1203,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
892
1203
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
893
1204
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
894
1205
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
1206
|
+
* @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.
|
|
895
1207
|
*/
|
|
896
|
-
GitRestClient.prototype.getItemContent = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs) {
|
|
1208
|
+
GitRestClient.prototype.getItemContent = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
|
|
897
1209
|
return __awaiter(this, void 0, void 0, function () {
|
|
898
1210
|
var queryValues;
|
|
899
1211
|
return __generator(this, function (_a) {
|
|
@@ -906,10 +1218,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
906
1218
|
download: download,
|
|
907
1219
|
versionDescriptor: versionDescriptor,
|
|
908
1220
|
includeContent: includeContent,
|
|
909
|
-
resolveLfs: resolveLfs
|
|
1221
|
+
resolveLfs: resolveLfs,
|
|
1222
|
+
sanitize: sanitize
|
|
910
1223
|
};
|
|
911
1224
|
return [2 /*return*/, this.beginRequest({
|
|
912
|
-
apiVersion: "
|
|
1225
|
+
apiVersion: "7.1-preview.1",
|
|
913
1226
|
httpResponseType: "application/octet-stream",
|
|
914
1227
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",
|
|
915
1228
|
routeValues: {
|
|
@@ -933,8 +1246,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
933
1246
|
* @param download - Set to true to download the response as a file. Default is false.
|
|
934
1247
|
* @param includeLinks - Set to true to include links to items. Default is false.
|
|
935
1248
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
1249
|
+
* @param zipForUnix - Set to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
|
|
936
1250
|
*/
|
|
937
|
-
GitRestClient.prototype.getItems = function (repositoryId, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, includeLinks, versionDescriptor) {
|
|
1251
|
+
GitRestClient.prototype.getItems = function (repositoryId, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, includeLinks, versionDescriptor, zipForUnix) {
|
|
938
1252
|
return __awaiter(this, void 0, void 0, function () {
|
|
939
1253
|
var queryValues;
|
|
940
1254
|
return __generator(this, function (_a) {
|
|
@@ -945,10 +1259,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
945
1259
|
latestProcessedChange: latestProcessedChange,
|
|
946
1260
|
download: download,
|
|
947
1261
|
includeLinks: includeLinks,
|
|
948
|
-
versionDescriptor: versionDescriptor
|
|
1262
|
+
versionDescriptor: versionDescriptor,
|
|
1263
|
+
zipForUnix: zipForUnix
|
|
949
1264
|
};
|
|
950
1265
|
return [2 /*return*/, this.beginRequest({
|
|
951
|
-
apiVersion: "
|
|
1266
|
+
apiVersion: "7.1-preview.1",
|
|
952
1267
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",
|
|
953
1268
|
routeValues: {
|
|
954
1269
|
project: project,
|
|
@@ -973,8 +1288,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
973
1288
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
974
1289
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
975
1290
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
1291
|
+
* @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.
|
|
976
1292
|
*/
|
|
977
|
-
GitRestClient.prototype.getItemText = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs) {
|
|
1293
|
+
GitRestClient.prototype.getItemText = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
|
|
978
1294
|
return __awaiter(this, void 0, void 0, function () {
|
|
979
1295
|
var queryValues;
|
|
980
1296
|
return __generator(this, function (_a) {
|
|
@@ -987,10 +1303,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
987
1303
|
download: download,
|
|
988
1304
|
versionDescriptor: versionDescriptor,
|
|
989
1305
|
includeContent: includeContent,
|
|
990
|
-
resolveLfs: resolveLfs
|
|
1306
|
+
resolveLfs: resolveLfs,
|
|
1307
|
+
sanitize: sanitize
|
|
991
1308
|
};
|
|
992
1309
|
return [2 /*return*/, this.beginRequest({
|
|
993
|
-
apiVersion: "
|
|
1310
|
+
apiVersion: "7.1-preview.1",
|
|
994
1311
|
httpResponseType: "text/plain",
|
|
995
1312
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",
|
|
996
1313
|
routeValues: {
|
|
@@ -1016,8 +1333,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1016
1333
|
* @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
|
|
1017
1334
|
* @param includeContent - Set to true to include item content when requesting json. Default is false.
|
|
1018
1335
|
* @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
|
|
1336
|
+
* @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.
|
|
1019
1337
|
*/
|
|
1020
|
-
GitRestClient.prototype.getItemZip = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs) {
|
|
1338
|
+
GitRestClient.prototype.getItemZip = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveLfs, sanitize) {
|
|
1021
1339
|
return __awaiter(this, void 0, void 0, function () {
|
|
1022
1340
|
var queryValues;
|
|
1023
1341
|
return __generator(this, function (_a) {
|
|
@@ -1030,10 +1348,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1030
1348
|
download: download,
|
|
1031
1349
|
versionDescriptor: versionDescriptor,
|
|
1032
1350
|
includeContent: includeContent,
|
|
1033
|
-
resolveLfs: resolveLfs
|
|
1351
|
+
resolveLfs: resolveLfs,
|
|
1352
|
+
sanitize: sanitize
|
|
1034
1353
|
};
|
|
1035
1354
|
return [2 /*return*/, this.beginRequest({
|
|
1036
|
-
apiVersion: "
|
|
1355
|
+
apiVersion: "7.1-preview.1",
|
|
1037
1356
|
httpResponseType: "application/zip",
|
|
1038
1357
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",
|
|
1039
1358
|
routeValues: {
|
|
@@ -1056,7 +1375,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1056
1375
|
return __awaiter(this, void 0, void 0, function () {
|
|
1057
1376
|
return __generator(this, function (_a) {
|
|
1058
1377
|
return [2 /*return*/, this.beginRequest({
|
|
1059
|
-
apiVersion: "
|
|
1378
|
+
apiVersion: "7.1-preview.1",
|
|
1060
1379
|
method: "POST",
|
|
1061
1380
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/ItemsBatch",
|
|
1062
1381
|
routeValues: {
|
|
@@ -1088,7 +1407,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1088
1407
|
otherRepositoryId: otherRepositoryId
|
|
1089
1408
|
};
|
|
1090
1409
|
return [2 /*return*/, this.beginRequest({
|
|
1091
|
-
apiVersion: "
|
|
1410
|
+
apiVersion: "7.1-preview.1",
|
|
1092
1411
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/commits/{commitId}/mergeBases",
|
|
1093
1412
|
routeValues: {
|
|
1094
1413
|
project: project,
|
|
@@ -1116,7 +1435,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1116
1435
|
includeLinks: includeLinks
|
|
1117
1436
|
};
|
|
1118
1437
|
return [2 /*return*/, this.beginRequest({
|
|
1119
|
-
apiVersion: "
|
|
1438
|
+
apiVersion: "7.1-preview.1",
|
|
1120
1439
|
method: "POST",
|
|
1121
1440
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/merges/{mergeOperationId}",
|
|
1122
1441
|
routeValues: {
|
|
@@ -1145,7 +1464,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1145
1464
|
includeLinks: includeLinks
|
|
1146
1465
|
};
|
|
1147
1466
|
return [2 /*return*/, this.beginRequest({
|
|
1148
|
-
apiVersion: "
|
|
1467
|
+
apiVersion: "7.1-preview.1",
|
|
1149
1468
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryNameOrId}/merges/{mergeOperationId}",
|
|
1150
1469
|
routeValues: {
|
|
1151
1470
|
project: project,
|
|
@@ -1170,7 +1489,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1170
1489
|
return __awaiter(this, void 0, void 0, function () {
|
|
1171
1490
|
return __generator(this, function (_a) {
|
|
1172
1491
|
return [2 /*return*/, this.beginRequest({
|
|
1173
|
-
apiVersion: "
|
|
1492
|
+
apiVersion: "7.1-preview.1",
|
|
1174
1493
|
method: "POST",
|
|
1175
1494
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",
|
|
1176
1495
|
routeValues: {
|
|
@@ -1200,7 +1519,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1200
1519
|
return __awaiter(this, void 0, void 0, function () {
|
|
1201
1520
|
return __generator(this, function (_a) {
|
|
1202
1521
|
return [2 /*return*/, this.beginRequest({
|
|
1203
|
-
apiVersion: "
|
|
1522
|
+
apiVersion: "7.1-preview.1",
|
|
1204
1523
|
method: "DELETE",
|
|
1205
1524
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",
|
|
1206
1525
|
routeValues: {
|
|
@@ -1225,7 +1544,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1225
1544
|
return __awaiter(this, void 0, void 0, function () {
|
|
1226
1545
|
return __generator(this, function (_a) {
|
|
1227
1546
|
return [2 /*return*/, this.beginRequest({
|
|
1228
|
-
apiVersion: "
|
|
1547
|
+
apiVersion: "7.1-preview.1",
|
|
1229
1548
|
httpResponseType: "application/octet-stream",
|
|
1230
1549
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",
|
|
1231
1550
|
routeValues: {
|
|
@@ -1249,7 +1568,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1249
1568
|
return __awaiter(this, void 0, void 0, function () {
|
|
1250
1569
|
return __generator(this, function (_a) {
|
|
1251
1570
|
return [2 /*return*/, this.beginRequest({
|
|
1252
|
-
apiVersion: "
|
|
1571
|
+
apiVersion: "7.1-preview.1",
|
|
1253
1572
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",
|
|
1254
1573
|
routeValues: {
|
|
1255
1574
|
project: project,
|
|
@@ -1272,7 +1591,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1272
1591
|
return __awaiter(this, void 0, void 0, function () {
|
|
1273
1592
|
return __generator(this, function (_a) {
|
|
1274
1593
|
return [2 /*return*/, this.beginRequest({
|
|
1275
|
-
apiVersion: "
|
|
1594
|
+
apiVersion: "7.1-preview.1",
|
|
1276
1595
|
httpResponseType: "application/zip",
|
|
1277
1596
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",
|
|
1278
1597
|
routeValues: {
|
|
@@ -1298,7 +1617,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1298
1617
|
return __awaiter(this, void 0, void 0, function () {
|
|
1299
1618
|
return __generator(this, function (_a) {
|
|
1300
1619
|
return [2 /*return*/, this.beginRequest({
|
|
1301
|
-
apiVersion: "
|
|
1620
|
+
apiVersion: "7.1-preview.1",
|
|
1302
1621
|
method: "POST",
|
|
1303
1622
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",
|
|
1304
1623
|
routeValues: {
|
|
@@ -1325,7 +1644,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1325
1644
|
return __awaiter(this, void 0, void 0, function () {
|
|
1326
1645
|
return __generator(this, function (_a) {
|
|
1327
1646
|
return [2 /*return*/, this.beginRequest({
|
|
1328
|
-
apiVersion: "
|
|
1647
|
+
apiVersion: "7.1-preview.1",
|
|
1329
1648
|
method: "DELETE",
|
|
1330
1649
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",
|
|
1331
1650
|
routeValues: {
|
|
@@ -1352,7 +1671,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1352
1671
|
return __awaiter(this, void 0, void 0, function () {
|
|
1353
1672
|
return __generator(this, function (_a) {
|
|
1354
1673
|
return [2 /*return*/, this.beginRequest({
|
|
1355
|
-
apiVersion: "
|
|
1674
|
+
apiVersion: "7.1-preview.1",
|
|
1356
1675
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",
|
|
1357
1676
|
routeValues: {
|
|
1358
1677
|
project: project,
|
|
@@ -1384,7 +1703,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1384
1703
|
skip: skip
|
|
1385
1704
|
};
|
|
1386
1705
|
return [2 /*return*/, this.beginRequest({
|
|
1387
|
-
apiVersion: "
|
|
1706
|
+
apiVersion: "7.1-preview.1",
|
|
1388
1707
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/commits",
|
|
1389
1708
|
routeValues: {
|
|
1390
1709
|
project: project,
|
|
@@ -1406,16 +1725,29 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1406
1725
|
*/
|
|
1407
1726
|
GitRestClient.prototype.getPullRequestCommits = function (repositoryId, pullRequestId, project) {
|
|
1408
1727
|
return __awaiter(this, void 0, void 0, function () {
|
|
1728
|
+
var _this = this;
|
|
1409
1729
|
return __generator(this, function (_a) {
|
|
1410
1730
|
return [2 /*return*/, this.beginRequest({
|
|
1411
|
-
apiVersion: "
|
|
1731
|
+
apiVersion: "7.1-preview.1",
|
|
1412
1732
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/commits",
|
|
1413
1733
|
routeValues: {
|
|
1414
1734
|
project: project,
|
|
1415
1735
|
repositoryId: repositoryId,
|
|
1416
1736
|
pullRequestId: pullRequestId
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1737
|
+
},
|
|
1738
|
+
returnRawResponse: true
|
|
1739
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1740
|
+
var body;
|
|
1741
|
+
return __generator(this, function (_a) {
|
|
1742
|
+
switch (_a.label) {
|
|
1743
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
1744
|
+
case 1:
|
|
1745
|
+
body = _a.sent();
|
|
1746
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1747
|
+
return [2 /*return*/, body];
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
}); })];
|
|
1419
1751
|
});
|
|
1420
1752
|
});
|
|
1421
1753
|
};
|
|
@@ -1431,7 +1763,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1431
1763
|
return __awaiter(this, void 0, void 0, function () {
|
|
1432
1764
|
return __generator(this, function (_a) {
|
|
1433
1765
|
return [2 /*return*/, this.beginRequest({
|
|
1434
|
-
apiVersion: "
|
|
1766
|
+
apiVersion: "7.1-preview.1",
|
|
1435
1767
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",
|
|
1436
1768
|
routeValues: {
|
|
1437
1769
|
project: project,
|
|
@@ -1446,14 +1778,14 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1446
1778
|
/**
|
|
1447
1779
|
* Retrieve all conflicts for a pull request
|
|
1448
1780
|
*
|
|
1449
|
-
* @param repositoryId -
|
|
1450
|
-
* @param pullRequestId -
|
|
1781
|
+
* @param repositoryId - The repository of the Pull Request.
|
|
1782
|
+
* @param pullRequestId - The pull request ID.
|
|
1451
1783
|
* @param project - Project ID or project name
|
|
1452
|
-
* @param skip -
|
|
1453
|
-
* @param top -
|
|
1454
|
-
* @param includeObsolete -
|
|
1455
|
-
* @param excludeResolved -
|
|
1456
|
-
* @param onlyResolved -
|
|
1784
|
+
* @param skip - Conflicts to skip.
|
|
1785
|
+
* @param top - Conflicts to return after skip.
|
|
1786
|
+
* @param includeObsolete - Includes obsolete conflicts.
|
|
1787
|
+
* @param excludeResolved - Excludes conflicts already resolved.
|
|
1788
|
+
* @param onlyResolved - Returns only the conflicts that are resolved.
|
|
1457
1789
|
*/
|
|
1458
1790
|
GitRestClient.prototype.getPullRequestConflicts = function (repositoryId, pullRequestId, project, skip, top, includeObsolete, excludeResolved, onlyResolved) {
|
|
1459
1791
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1467,7 +1799,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1467
1799
|
onlyResolved: onlyResolved
|
|
1468
1800
|
};
|
|
1469
1801
|
return [2 /*return*/, this.beginRequest({
|
|
1470
|
-
apiVersion: "
|
|
1802
|
+
apiVersion: "7.1-preview.1",
|
|
1471
1803
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",
|
|
1472
1804
|
routeValues: {
|
|
1473
1805
|
project: project,
|
|
@@ -1492,7 +1824,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1492
1824
|
return __awaiter(this, void 0, void 0, function () {
|
|
1493
1825
|
return __generator(this, function (_a) {
|
|
1494
1826
|
return [2 /*return*/, this.beginRequest({
|
|
1495
|
-
apiVersion: "
|
|
1827
|
+
apiVersion: "7.1-preview.1",
|
|
1496
1828
|
method: "PATCH",
|
|
1497
1829
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",
|
|
1498
1830
|
routeValues: {
|
|
@@ -1518,7 +1850,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1518
1850
|
return __awaiter(this, void 0, void 0, function () {
|
|
1519
1851
|
return __generator(this, function (_a) {
|
|
1520
1852
|
return [2 /*return*/, this.beginRequest({
|
|
1521
|
-
apiVersion: "
|
|
1853
|
+
apiVersion: "7.1-preview.1",
|
|
1522
1854
|
method: "PATCH",
|
|
1523
1855
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",
|
|
1524
1856
|
routeValues: {
|
|
@@ -1536,7 +1868,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1536
1868
|
*
|
|
1537
1869
|
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
1538
1870
|
* @param pullRequestId - ID of the pull request.
|
|
1539
|
-
* @param iterationId - ID of the pull request iteration. \<br /\> Iteration
|
|
1871
|
+
* @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.
|
|
1540
1872
|
* @param project - Project ID or project name
|
|
1541
1873
|
* @param top - Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000.
|
|
1542
1874
|
* @param skip - Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100.
|
|
@@ -1552,7 +1884,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1552
1884
|
'$compareTo': compareTo
|
|
1553
1885
|
};
|
|
1554
1886
|
return [2 /*return*/, this.beginRequest({
|
|
1555
|
-
apiVersion: "
|
|
1887
|
+
apiVersion: "7.1-preview.1",
|
|
1556
1888
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/changes",
|
|
1557
1889
|
routeValues: {
|
|
1558
1890
|
project: project,
|
|
@@ -1577,7 +1909,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1577
1909
|
return __awaiter(this, void 0, void 0, function () {
|
|
1578
1910
|
return __generator(this, function (_a) {
|
|
1579
1911
|
return [2 /*return*/, this.beginRequest({
|
|
1580
|
-
apiVersion: "
|
|
1912
|
+
apiVersion: "7.1-preview.2",
|
|
1581
1913
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}",
|
|
1582
1914
|
routeValues: {
|
|
1583
1915
|
project: project,
|
|
@@ -1605,7 +1937,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1605
1937
|
includeCommits: includeCommits
|
|
1606
1938
|
};
|
|
1607
1939
|
return [2 /*return*/, this.beginRequest({
|
|
1608
|
-
apiVersion: "
|
|
1940
|
+
apiVersion: "7.1-preview.2",
|
|
1609
1941
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}",
|
|
1610
1942
|
routeValues: {
|
|
1611
1943
|
project: project,
|
|
@@ -1630,7 +1962,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1630
1962
|
return __awaiter(this, void 0, void 0, function () {
|
|
1631
1963
|
return __generator(this, function (_a) {
|
|
1632
1964
|
return [2 /*return*/, this.beginRequest({
|
|
1633
|
-
apiVersion: "
|
|
1965
|
+
apiVersion: "7.1-preview.1",
|
|
1634
1966
|
method: "POST",
|
|
1635
1967
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",
|
|
1636
1968
|
routeValues: {
|
|
@@ -1657,7 +1989,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1657
1989
|
return __awaiter(this, void 0, void 0, function () {
|
|
1658
1990
|
return __generator(this, function (_a) {
|
|
1659
1991
|
return [2 /*return*/, this.beginRequest({
|
|
1660
|
-
apiVersion: "
|
|
1992
|
+
apiVersion: "7.1-preview.1",
|
|
1661
1993
|
method: "DELETE",
|
|
1662
1994
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",
|
|
1663
1995
|
routeValues: {
|
|
@@ -1684,7 +2016,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1684
2016
|
return __awaiter(this, void 0, void 0, function () {
|
|
1685
2017
|
return __generator(this, function (_a) {
|
|
1686
2018
|
return [2 /*return*/, this.beginRequest({
|
|
1687
|
-
apiVersion: "
|
|
2019
|
+
apiVersion: "7.1-preview.1",
|
|
1688
2020
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",
|
|
1689
2021
|
routeValues: {
|
|
1690
2022
|
project: project,
|
|
@@ -1709,7 +2041,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1709
2041
|
return __awaiter(this, void 0, void 0, function () {
|
|
1710
2042
|
return __generator(this, function (_a) {
|
|
1711
2043
|
return [2 /*return*/, this.beginRequest({
|
|
1712
|
-
apiVersion: "
|
|
2044
|
+
apiVersion: "7.1-preview.1",
|
|
1713
2045
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",
|
|
1714
2046
|
routeValues: {
|
|
1715
2047
|
project: project,
|
|
@@ -1734,7 +2066,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1734
2066
|
return __awaiter(this, void 0, void 0, function () {
|
|
1735
2067
|
return __generator(this, function (_a) {
|
|
1736
2068
|
return [2 /*return*/, this.beginRequest({
|
|
1737
|
-
apiVersion: "
|
|
2069
|
+
apiVersion: "7.1-preview.1",
|
|
1738
2070
|
method: "PATCH",
|
|
1739
2071
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",
|
|
1740
2072
|
routeValues: {
|
|
@@ -1768,7 +2100,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1768
2100
|
projectId: projectId
|
|
1769
2101
|
};
|
|
1770
2102
|
return [2 /*return*/, this.beginRequest({
|
|
1771
|
-
apiVersion: "
|
|
2103
|
+
apiVersion: "7.1-preview.1",
|
|
1772
2104
|
method: "POST",
|
|
1773
2105
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",
|
|
1774
2106
|
routeValues: {
|
|
@@ -1799,7 +2131,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1799
2131
|
projectId: projectId
|
|
1800
2132
|
};
|
|
1801
2133
|
return [2 /*return*/, this.beginRequest({
|
|
1802
|
-
apiVersion: "
|
|
2134
|
+
apiVersion: "7.1-preview.1",
|
|
1803
2135
|
method: "DELETE",
|
|
1804
2136
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",
|
|
1805
2137
|
routeValues: {
|
|
@@ -1830,7 +2162,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1830
2162
|
projectId: projectId
|
|
1831
2163
|
};
|
|
1832
2164
|
return [2 /*return*/, this.beginRequest({
|
|
1833
|
-
apiVersion: "
|
|
2165
|
+
apiVersion: "7.1-preview.1",
|
|
1834
2166
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",
|
|
1835
2167
|
routeValues: {
|
|
1836
2168
|
project: project,
|
|
@@ -1859,7 +2191,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1859
2191
|
projectId: projectId
|
|
1860
2192
|
};
|
|
1861
2193
|
return [2 /*return*/, this.beginRequest({
|
|
1862
|
-
apiVersion: "
|
|
2194
|
+
apiVersion: "7.1-preview.1",
|
|
1863
2195
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",
|
|
1864
2196
|
routeValues: {
|
|
1865
2197
|
project: project,
|
|
@@ -1882,7 +2214,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1882
2214
|
return __awaiter(this, void 0, void 0, function () {
|
|
1883
2215
|
return __generator(this, function (_a) {
|
|
1884
2216
|
return [2 /*return*/, this.beginRequest({
|
|
1885
|
-
apiVersion: "
|
|
2217
|
+
apiVersion: "7.1-preview.1",
|
|
1886
2218
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/properties",
|
|
1887
2219
|
routeValues: {
|
|
1888
2220
|
project: project,
|
|
@@ -1905,7 +2237,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1905
2237
|
return __awaiter(this, void 0, void 0, function () {
|
|
1906
2238
|
return __generator(this, function (_a) {
|
|
1907
2239
|
return [2 /*return*/, this.beginRequest({
|
|
1908
|
-
apiVersion: "
|
|
2240
|
+
apiVersion: "7.1-preview.1",
|
|
1909
2241
|
method: "PATCH",
|
|
1910
2242
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/properties",
|
|
1911
2243
|
routeValues: {
|
|
@@ -1932,7 +2264,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1932
2264
|
return __awaiter(this, void 0, void 0, function () {
|
|
1933
2265
|
return __generator(this, function (_a) {
|
|
1934
2266
|
return [2 /*return*/, this.beginRequest({
|
|
1935
|
-
apiVersion: "
|
|
2267
|
+
apiVersion: "7.1-preview.1",
|
|
1936
2268
|
method: "POST",
|
|
1937
2269
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/PullRequestQuery",
|
|
1938
2270
|
routeValues: {
|
|
@@ -1948,7 +2280,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1948
2280
|
* Add a reviewer to a pull request or cast a vote.
|
|
1949
2281
|
*
|
|
1950
2282
|
* @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.
|
|
1951
|
-
* @param repositoryId - The repository ID of the pull request
|
|
2283
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
1952
2284
|
* @param pullRequestId - ID of the pull request.
|
|
1953
2285
|
* @param reviewerId - ID of the reviewer.
|
|
1954
2286
|
* @param project - Project ID or project name
|
|
@@ -1957,7 +2289,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1957
2289
|
return __awaiter(this, void 0, void 0, function () {
|
|
1958
2290
|
return __generator(this, function (_a) {
|
|
1959
2291
|
return [2 /*return*/, this.beginRequest({
|
|
1960
|
-
apiVersion: "
|
|
2292
|
+
apiVersion: "7.1-preview.1",
|
|
1961
2293
|
method: "PUT",
|
|
1962
2294
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
1963
2295
|
routeValues: {
|
|
@@ -1975,7 +2307,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1975
2307
|
* Add reviewers to a pull request.
|
|
1976
2308
|
*
|
|
1977
2309
|
* @param reviewers - Reviewers to add to the pull request.
|
|
1978
|
-
* @param repositoryId - The repository ID of the pull request
|
|
2310
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
1979
2311
|
* @param pullRequestId - ID of the pull request.
|
|
1980
2312
|
* @param project - Project ID or project name
|
|
1981
2313
|
*/
|
|
@@ -1983,7 +2315,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1983
2315
|
return __awaiter(this, void 0, void 0, function () {
|
|
1984
2316
|
return __generator(this, function (_a) {
|
|
1985
2317
|
return [2 /*return*/, this.beginRequest({
|
|
1986
|
-
apiVersion: "
|
|
2318
|
+
apiVersion: "7.1-preview.1",
|
|
1987
2319
|
method: "POST",
|
|
1988
2320
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
1989
2321
|
routeValues: {
|
|
@@ -1996,10 +2328,35 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1996
2328
|
});
|
|
1997
2329
|
});
|
|
1998
2330
|
};
|
|
2331
|
+
/**
|
|
2332
|
+
* Add an unmaterialized identity to the reviewers of a pull request.
|
|
2333
|
+
*
|
|
2334
|
+
* @param reviewer - Reviewer to add to the pull request.
|
|
2335
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
2336
|
+
* @param pullRequestId - ID of the pull request.
|
|
2337
|
+
* @param project - Project ID or project name
|
|
2338
|
+
*/
|
|
2339
|
+
GitRestClient.prototype.createUnmaterializedPullRequestReviewer = function (reviewer, repositoryId, pullRequestId, project) {
|
|
2340
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2341
|
+
return __generator(this, function (_a) {
|
|
2342
|
+
return [2 /*return*/, this.beginRequest({
|
|
2343
|
+
apiVersion: "7.1-preview.1",
|
|
2344
|
+
method: "PUT",
|
|
2345
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
2346
|
+
routeValues: {
|
|
2347
|
+
project: project,
|
|
2348
|
+
repositoryId: repositoryId,
|
|
2349
|
+
pullRequestId: pullRequestId
|
|
2350
|
+
},
|
|
2351
|
+
body: reviewer
|
|
2352
|
+
})];
|
|
2353
|
+
});
|
|
2354
|
+
});
|
|
2355
|
+
};
|
|
1999
2356
|
/**
|
|
2000
2357
|
* Remove a reviewer from a pull request.
|
|
2001
2358
|
*
|
|
2002
|
-
* @param repositoryId - The repository ID of the pull request
|
|
2359
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
2003
2360
|
* @param pullRequestId - ID of the pull request.
|
|
2004
2361
|
* @param reviewerId - ID of the reviewer to remove.
|
|
2005
2362
|
* @param project - Project ID or project name
|
|
@@ -2008,7 +2365,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2008
2365
|
return __awaiter(this, void 0, void 0, function () {
|
|
2009
2366
|
return __generator(this, function (_a) {
|
|
2010
2367
|
return [2 /*return*/, this.beginRequest({
|
|
2011
|
-
apiVersion: "
|
|
2368
|
+
apiVersion: "7.1-preview.1",
|
|
2012
2369
|
method: "DELETE",
|
|
2013
2370
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
2014
2371
|
routeValues: {
|
|
@@ -2024,7 +2381,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2024
2381
|
/**
|
|
2025
2382
|
* Retrieve information about a particular reviewer on a pull request
|
|
2026
2383
|
*
|
|
2027
|
-
* @param repositoryId - The repository ID of the pull request
|
|
2384
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
2028
2385
|
* @param pullRequestId - ID of the pull request.
|
|
2029
2386
|
* @param reviewerId - ID of the reviewer.
|
|
2030
2387
|
* @param project - Project ID or project name
|
|
@@ -2033,7 +2390,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2033
2390
|
return __awaiter(this, void 0, void 0, function () {
|
|
2034
2391
|
return __generator(this, function (_a) {
|
|
2035
2392
|
return [2 /*return*/, this.beginRequest({
|
|
2036
|
-
apiVersion: "
|
|
2393
|
+
apiVersion: "7.1-preview.1",
|
|
2037
2394
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
2038
2395
|
routeValues: {
|
|
2039
2396
|
project: project,
|
|
@@ -2048,7 +2405,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2048
2405
|
/**
|
|
2049
2406
|
* Retrieve the reviewers for a pull request
|
|
2050
2407
|
*
|
|
2051
|
-
* @param repositoryId - The repository ID of the pull request
|
|
2408
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
2052
2409
|
* @param pullRequestId - ID of the pull request.
|
|
2053
2410
|
* @param project - Project ID or project name
|
|
2054
2411
|
*/
|
|
@@ -2056,7 +2413,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2056
2413
|
return __awaiter(this, void 0, void 0, function () {
|
|
2057
2414
|
return __generator(this, function (_a) {
|
|
2058
2415
|
return [2 /*return*/, this.beginRequest({
|
|
2059
|
-
apiVersion: "
|
|
2416
|
+
apiVersion: "7.1-preview.1",
|
|
2060
2417
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
2061
2418
|
routeValues: {
|
|
2062
2419
|
project: project,
|
|
@@ -2068,10 +2425,10 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2068
2425
|
});
|
|
2069
2426
|
};
|
|
2070
2427
|
/**
|
|
2071
|
-
* Edit a reviewer entry. These fields are patchable: isFlagged
|
|
2428
|
+
* Edit a reviewer entry. These fields are patchable: isFlagged, hasDeclined
|
|
2072
2429
|
*
|
|
2073
2430
|
* @param reviewer - Reviewer data.\<br /\>If the reviewer's ID is included here, it must match the reviewerID parameter.
|
|
2074
|
-
* @param repositoryId - The repository ID of the pull request
|
|
2431
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
2075
2432
|
* @param pullRequestId - ID of the pull request.
|
|
2076
2433
|
* @param reviewerId - ID of the reviewer.
|
|
2077
2434
|
* @param project - Project ID or project name
|
|
@@ -2080,7 +2437,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2080
2437
|
return __awaiter(this, void 0, void 0, function () {
|
|
2081
2438
|
return __generator(this, function (_a) {
|
|
2082
2439
|
return [2 /*return*/, this.beginRequest({
|
|
2083
|
-
apiVersion: "
|
|
2440
|
+
apiVersion: "7.1-preview.1",
|
|
2084
2441
|
method: "PATCH",
|
|
2085
2442
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
2086
2443
|
routeValues: {
|
|
@@ -2098,7 +2455,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2098
2455
|
* 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.
|
|
2099
2456
|
*
|
|
2100
2457
|
* @param patchVotes - IDs of the reviewers whose votes will be reset to zero
|
|
2101
|
-
* @param repositoryId - The repository ID of the pull request
|
|
2458
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
2102
2459
|
* @param pullRequestId - ID of the pull request
|
|
2103
2460
|
* @param project - Project ID or project name
|
|
2104
2461
|
*/
|
|
@@ -2106,7 +2463,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2106
2463
|
return __awaiter(this, void 0, void 0, function () {
|
|
2107
2464
|
return __generator(this, function (_a) {
|
|
2108
2465
|
return [2 /*return*/, this.beginRequest({
|
|
2109
|
-
apiVersion: "
|
|
2466
|
+
apiVersion: "7.1-preview.1",
|
|
2110
2467
|
method: "PATCH",
|
|
2111
2468
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",
|
|
2112
2469
|
routeValues: {
|
|
@@ -2129,7 +2486,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2129
2486
|
return __awaiter(this, void 0, void 0, function () {
|
|
2130
2487
|
return __generator(this, function (_a) {
|
|
2131
2488
|
return [2 /*return*/, this.beginRequest({
|
|
2132
|
-
apiVersion: "
|
|
2489
|
+
apiVersion: "7.1-preview.1",
|
|
2133
2490
|
routeTemplate: "{project}/_apis/git/pullRequests/{pullRequestId}",
|
|
2134
2491
|
routeValues: {
|
|
2135
2492
|
project: project,
|
|
@@ -2159,7 +2516,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2159
2516
|
'$top': top
|
|
2160
2517
|
};
|
|
2161
2518
|
return [2 /*return*/, this.beginRequest({
|
|
2162
|
-
apiVersion: "
|
|
2519
|
+
apiVersion: "7.1-preview.1",
|
|
2163
2520
|
routeTemplate: "{project}/_apis/git/pullRequests",
|
|
2164
2521
|
routeValues: {
|
|
2165
2522
|
project: project
|
|
@@ -2185,7 +2542,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2185
2542
|
supportsIterations: supportsIterations
|
|
2186
2543
|
};
|
|
2187
2544
|
return [2 /*return*/, this.beginRequest({
|
|
2188
|
-
apiVersion: "
|
|
2545
|
+
apiVersion: "7.1-preview.1",
|
|
2189
2546
|
method: "POST",
|
|
2190
2547
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}",
|
|
2191
2548
|
routeValues: {
|
|
@@ -2222,7 +2579,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2222
2579
|
includeWorkItemRefs: includeWorkItemRefs
|
|
2223
2580
|
};
|
|
2224
2581
|
return [2 /*return*/, this.beginRequest({
|
|
2225
|
-
apiVersion: "
|
|
2582
|
+
apiVersion: "7.1-preview.1",
|
|
2226
2583
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}",
|
|
2227
2584
|
routeValues: {
|
|
2228
2585
|
project: project,
|
|
@@ -2255,7 +2612,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2255
2612
|
'$top': top
|
|
2256
2613
|
};
|
|
2257
2614
|
return [2 /*return*/, this.beginRequest({
|
|
2258
|
-
apiVersion: "
|
|
2615
|
+
apiVersion: "7.1-preview.1",
|
|
2259
2616
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}",
|
|
2260
2617
|
routeValues: {
|
|
2261
2618
|
project: project,
|
|
@@ -2278,7 +2635,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2278
2635
|
return __awaiter(this, void 0, void 0, function () {
|
|
2279
2636
|
return __generator(this, function (_a) {
|
|
2280
2637
|
return [2 /*return*/, this.beginRequest({
|
|
2281
|
-
apiVersion: "
|
|
2638
|
+
apiVersion: "7.1-preview.1",
|
|
2282
2639
|
method: "PATCH",
|
|
2283
2640
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}",
|
|
2284
2641
|
routeValues: {
|
|
@@ -2303,7 +2660,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2303
2660
|
return __awaiter(this, void 0, void 0, function () {
|
|
2304
2661
|
return __generator(this, function (_a) {
|
|
2305
2662
|
return [2 /*return*/, this.beginRequest({
|
|
2306
|
-
apiVersion: "
|
|
2663
|
+
apiVersion: "7.1-preview.1",
|
|
2307
2664
|
method: "POST",
|
|
2308
2665
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/share",
|
|
2309
2666
|
routeValues: {
|
|
@@ -2328,7 +2685,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2328
2685
|
return __awaiter(this, void 0, void 0, function () {
|
|
2329
2686
|
return __generator(this, function (_a) {
|
|
2330
2687
|
return [2 /*return*/, this.beginRequest({
|
|
2331
|
-
apiVersion: "
|
|
2688
|
+
apiVersion: "7.1-preview.1",
|
|
2332
2689
|
method: "POST",
|
|
2333
2690
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",
|
|
2334
2691
|
routeValues: {
|
|
@@ -2353,7 +2710,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2353
2710
|
return __awaiter(this, void 0, void 0, function () {
|
|
2354
2711
|
return __generator(this, function (_a) {
|
|
2355
2712
|
return [2 /*return*/, this.beginRequest({
|
|
2356
|
-
apiVersion: "
|
|
2713
|
+
apiVersion: "7.1-preview.1",
|
|
2357
2714
|
method: "DELETE",
|
|
2358
2715
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",
|
|
2359
2716
|
routeValues: {
|
|
@@ -2378,7 +2735,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2378
2735
|
return __awaiter(this, void 0, void 0, function () {
|
|
2379
2736
|
return __generator(this, function (_a) {
|
|
2380
2737
|
return [2 /*return*/, this.beginRequest({
|
|
2381
|
-
apiVersion: "
|
|
2738
|
+
apiVersion: "7.1-preview.1",
|
|
2382
2739
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",
|
|
2383
2740
|
routeValues: {
|
|
2384
2741
|
project: project,
|
|
@@ -2401,7 +2758,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2401
2758
|
return __awaiter(this, void 0, void 0, function () {
|
|
2402
2759
|
return __generator(this, function (_a) {
|
|
2403
2760
|
return [2 /*return*/, this.beginRequest({
|
|
2404
|
-
apiVersion: "
|
|
2761
|
+
apiVersion: "7.1-preview.1",
|
|
2405
2762
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",
|
|
2406
2763
|
routeValues: {
|
|
2407
2764
|
project: project,
|
|
@@ -2424,7 +2781,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2424
2781
|
return __awaiter(this, void 0, void 0, function () {
|
|
2425
2782
|
return __generator(this, function (_a) {
|
|
2426
2783
|
return [2 /*return*/, this.beginRequest({
|
|
2427
|
-
apiVersion: "
|
|
2784
|
+
apiVersion: "7.1-preview.1",
|
|
2428
2785
|
method: "PATCH",
|
|
2429
2786
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",
|
|
2430
2787
|
routeValues: {
|
|
@@ -2453,7 +2810,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2453
2810
|
return __awaiter(this, void 0, void 0, function () {
|
|
2454
2811
|
return __generator(this, function (_a) {
|
|
2455
2812
|
return [2 /*return*/, this.beginRequest({
|
|
2456
|
-
apiVersion: "
|
|
2813
|
+
apiVersion: "7.1-preview.1",
|
|
2457
2814
|
method: "POST",
|
|
2458
2815
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",
|
|
2459
2816
|
routeValues: {
|
|
@@ -2480,7 +2837,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2480
2837
|
return __awaiter(this, void 0, void 0, function () {
|
|
2481
2838
|
return __generator(this, function (_a) {
|
|
2482
2839
|
return [2 /*return*/, this.beginRequest({
|
|
2483
|
-
apiVersion: "
|
|
2840
|
+
apiVersion: "7.1-preview.1",
|
|
2484
2841
|
method: "DELETE",
|
|
2485
2842
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",
|
|
2486
2843
|
routeValues: {
|
|
@@ -2507,7 +2864,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2507
2864
|
return __awaiter(this, void 0, void 0, function () {
|
|
2508
2865
|
return __generator(this, function (_a) {
|
|
2509
2866
|
return [2 /*return*/, this.beginRequest({
|
|
2510
|
-
apiVersion: "
|
|
2867
|
+
apiVersion: "7.1-preview.1",
|
|
2511
2868
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",
|
|
2512
2869
|
routeValues: {
|
|
2513
2870
|
project: project,
|
|
@@ -2532,7 +2889,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2532
2889
|
return __awaiter(this, void 0, void 0, function () {
|
|
2533
2890
|
return __generator(this, function (_a) {
|
|
2534
2891
|
return [2 /*return*/, this.beginRequest({
|
|
2535
|
-
apiVersion: "
|
|
2892
|
+
apiVersion: "7.1-preview.1",
|
|
2536
2893
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",
|
|
2537
2894
|
routeValues: {
|
|
2538
2895
|
project: project,
|
|
@@ -2558,7 +2915,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2558
2915
|
return __awaiter(this, void 0, void 0, function () {
|
|
2559
2916
|
return __generator(this, function (_a) {
|
|
2560
2917
|
return [2 /*return*/, this.beginRequest({
|
|
2561
|
-
apiVersion: "
|
|
2918
|
+
apiVersion: "7.1-preview.1",
|
|
2562
2919
|
method: "PATCH",
|
|
2563
2920
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",
|
|
2564
2921
|
routeValues: {
|
|
@@ -2585,7 +2942,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2585
2942
|
return __awaiter(this, void 0, void 0, function () {
|
|
2586
2943
|
return __generator(this, function (_a) {
|
|
2587
2944
|
return [2 /*return*/, this.beginRequest({
|
|
2588
|
-
apiVersion: "
|
|
2945
|
+
apiVersion: "7.1-preview.1",
|
|
2589
2946
|
method: "POST",
|
|
2590
2947
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",
|
|
2591
2948
|
routeValues: {
|
|
@@ -2617,7 +2974,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2617
2974
|
'$baseIteration': baseIteration
|
|
2618
2975
|
};
|
|
2619
2976
|
return [2 /*return*/, this.beginRequest({
|
|
2620
|
-
apiVersion: "
|
|
2977
|
+
apiVersion: "7.1-preview.1",
|
|
2621
2978
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",
|
|
2622
2979
|
routeValues: {
|
|
2623
2980
|
project: project,
|
|
@@ -2648,7 +3005,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2648
3005
|
'$baseIteration': baseIteration
|
|
2649
3006
|
};
|
|
2650
3007
|
return [2 /*return*/, this.beginRequest({
|
|
2651
|
-
apiVersion: "
|
|
3008
|
+
apiVersion: "7.1-preview.1",
|
|
2652
3009
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",
|
|
2653
3010
|
routeValues: {
|
|
2654
3011
|
project: project,
|
|
@@ -2673,7 +3030,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2673
3030
|
return __awaiter(this, void 0, void 0, function () {
|
|
2674
3031
|
return __generator(this, function (_a) {
|
|
2675
3032
|
return [2 /*return*/, this.beginRequest({
|
|
2676
|
-
apiVersion: "
|
|
3033
|
+
apiVersion: "7.1-preview.1",
|
|
2677
3034
|
method: "PATCH",
|
|
2678
3035
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",
|
|
2679
3036
|
routeValues: {
|
|
@@ -2698,7 +3055,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2698
3055
|
return __awaiter(this, void 0, void 0, function () {
|
|
2699
3056
|
return __generator(this, function (_a) {
|
|
2700
3057
|
return [2 /*return*/, this.beginRequest({
|
|
2701
|
-
apiVersion: "
|
|
3058
|
+
apiVersion: "7.1-preview.1",
|
|
2702
3059
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/workitems",
|
|
2703
3060
|
routeValues: {
|
|
2704
3061
|
project: project,
|
|
@@ -2720,7 +3077,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2720
3077
|
return __awaiter(this, void 0, void 0, function () {
|
|
2721
3078
|
return __generator(this, function (_a) {
|
|
2722
3079
|
return [2 /*return*/, this.beginRequest({
|
|
2723
|
-
apiVersion: "
|
|
3080
|
+
apiVersion: "7.1-preview.2",
|
|
2724
3081
|
method: "POST",
|
|
2725
3082
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",
|
|
2726
3083
|
routeValues: {
|
|
@@ -2750,7 +3107,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2750
3107
|
includeRefUpdates: includeRefUpdates
|
|
2751
3108
|
};
|
|
2752
3109
|
return [2 /*return*/, this.beginRequest({
|
|
2753
|
-
apiVersion: "
|
|
3110
|
+
apiVersion: "7.1-preview.2",
|
|
2754
3111
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",
|
|
2755
3112
|
routeValues: {
|
|
2756
3113
|
project: project,
|
|
@@ -2781,7 +3138,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2781
3138
|
searchCriteria: searchCriteria
|
|
2782
3139
|
};
|
|
2783
3140
|
return [2 /*return*/, this.beginRequest({
|
|
2784
|
-
apiVersion: "
|
|
3141
|
+
apiVersion: "7.1-preview.2",
|
|
2785
3142
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",
|
|
2786
3143
|
routeValues: {
|
|
2787
3144
|
project: project,
|
|
@@ -2802,7 +3159,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2802
3159
|
return __awaiter(this, void 0, void 0, function () {
|
|
2803
3160
|
return __generator(this, function (_a) {
|
|
2804
3161
|
return [2 /*return*/, this.beginRequest({
|
|
2805
|
-
apiVersion: "
|
|
3162
|
+
apiVersion: "7.1-preview.1",
|
|
2806
3163
|
method: "DELETE",
|
|
2807
3164
|
routeTemplate: "{project}/_apis/git/recycleBin/repositories/{repositoryId}",
|
|
2808
3165
|
routeValues: {
|
|
@@ -2822,7 +3179,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2822
3179
|
return __awaiter(this, void 0, void 0, function () {
|
|
2823
3180
|
return __generator(this, function (_a) {
|
|
2824
3181
|
return [2 /*return*/, this.beginRequest({
|
|
2825
|
-
apiVersion: "
|
|
3182
|
+
apiVersion: "7.1-preview.1",
|
|
2826
3183
|
routeTemplate: "{project}/_apis/git/recycleBin/repositories/{repositoryId}",
|
|
2827
3184
|
routeValues: {
|
|
2828
3185
|
project: project
|
|
@@ -2842,7 +3199,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2842
3199
|
return __awaiter(this, void 0, void 0, function () {
|
|
2843
3200
|
return __generator(this, function (_a) {
|
|
2844
3201
|
return [2 /*return*/, this.beginRequest({
|
|
2845
|
-
apiVersion: "
|
|
3202
|
+
apiVersion: "7.1-preview.1",
|
|
2846
3203
|
method: "PATCH",
|
|
2847
3204
|
routeTemplate: "{project}/_apis/git/recycleBin/repositories/{repositoryId}",
|
|
2848
3205
|
routeValues: {
|
|
@@ -2870,6 +3227,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2870
3227
|
GitRestClient.prototype.getRefs = function (repositoryId, project, filter, includeLinks, includeStatuses, includeMyBranches, latestStatusesOnly, peelTags, filterContains) {
|
|
2871
3228
|
return __awaiter(this, void 0, void 0, function () {
|
|
2872
3229
|
var queryValues;
|
|
3230
|
+
var _this = this;
|
|
2873
3231
|
return __generator(this, function (_a) {
|
|
2874
3232
|
queryValues = {
|
|
2875
3233
|
filter: filter,
|
|
@@ -2881,14 +3239,26 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2881
3239
|
filterContains: filterContains
|
|
2882
3240
|
};
|
|
2883
3241
|
return [2 /*return*/, this.beginRequest({
|
|
2884
|
-
apiVersion: "
|
|
3242
|
+
apiVersion: "7.1-preview.1",
|
|
2885
3243
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",
|
|
2886
3244
|
routeValues: {
|
|
2887
3245
|
project: project,
|
|
2888
3246
|
repositoryId: repositoryId
|
|
2889
3247
|
},
|
|
2890
|
-
queryParams: queryValues
|
|
2891
|
-
|
|
3248
|
+
queryParams: queryValues,
|
|
3249
|
+
returnRawResponse: true
|
|
3250
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3251
|
+
var body;
|
|
3252
|
+
return __generator(this, function (_a) {
|
|
3253
|
+
switch (_a.label) {
|
|
3254
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
3255
|
+
case 1:
|
|
3256
|
+
body = _a.sent();
|
|
3257
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
3258
|
+
return [2 /*return*/, body];
|
|
3259
|
+
}
|
|
3260
|
+
});
|
|
3261
|
+
}); })];
|
|
2892
3262
|
});
|
|
2893
3263
|
});
|
|
2894
3264
|
};
|
|
@@ -2910,7 +3280,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2910
3280
|
projectId: projectId
|
|
2911
3281
|
};
|
|
2912
3282
|
return [2 /*return*/, this.beginRequest({
|
|
2913
|
-
apiVersion: "
|
|
3283
|
+
apiVersion: "7.1-preview.1",
|
|
2914
3284
|
method: "PATCH",
|
|
2915
3285
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",
|
|
2916
3286
|
routeValues: {
|
|
@@ -2939,7 +3309,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2939
3309
|
projectId: projectId
|
|
2940
3310
|
};
|
|
2941
3311
|
return [2 /*return*/, this.beginRequest({
|
|
2942
|
-
apiVersion: "
|
|
3312
|
+
apiVersion: "7.1-preview.1",
|
|
2943
3313
|
method: "POST",
|
|
2944
3314
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",
|
|
2945
3315
|
routeValues: {
|
|
@@ -2962,7 +3332,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2962
3332
|
return __awaiter(this, void 0, void 0, function () {
|
|
2963
3333
|
return __generator(this, function (_a) {
|
|
2964
3334
|
return [2 /*return*/, this.beginRequest({
|
|
2965
|
-
apiVersion: "
|
|
3335
|
+
apiVersion: "7.1-preview.1",
|
|
2966
3336
|
method: "POST",
|
|
2967
3337
|
routeTemplate: "{project}/_apis/git/favorites/refs/{favoriteId}",
|
|
2968
3338
|
routeValues: {
|
|
@@ -2983,7 +3353,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
2983
3353
|
return __awaiter(this, void 0, void 0, function () {
|
|
2984
3354
|
return __generator(this, function (_a) {
|
|
2985
3355
|
return [2 /*return*/, this.beginRequest({
|
|
2986
|
-
apiVersion: "
|
|
3356
|
+
apiVersion: "7.1-preview.1",
|
|
2987
3357
|
method: "DELETE",
|
|
2988
3358
|
routeTemplate: "{project}/_apis/git/favorites/refs/{favoriteId}",
|
|
2989
3359
|
routeValues: {
|
|
@@ -3004,7 +3374,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3004
3374
|
return __awaiter(this, void 0, void 0, function () {
|
|
3005
3375
|
return __generator(this, function (_a) {
|
|
3006
3376
|
return [2 /*return*/, this.beginRequest({
|
|
3007
|
-
apiVersion: "
|
|
3377
|
+
apiVersion: "7.1-preview.1",
|
|
3008
3378
|
routeTemplate: "{project}/_apis/git/favorites/refs/{favoriteId}",
|
|
3009
3379
|
routeValues: {
|
|
3010
3380
|
project: project,
|
|
@@ -3030,7 +3400,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3030
3400
|
identityId: identityId
|
|
3031
3401
|
};
|
|
3032
3402
|
return [2 /*return*/, this.beginRequest({
|
|
3033
|
-
apiVersion: "
|
|
3403
|
+
apiVersion: "7.1-preview.1",
|
|
3034
3404
|
routeTemplate: "{project}/_apis/git/favorites/refs/{favoriteId}",
|
|
3035
3405
|
routeValues: {
|
|
3036
3406
|
project: project
|
|
@@ -3043,7 +3413,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3043
3413
|
/**
|
|
3044
3414
|
* Create a git repository in a team project.
|
|
3045
3415
|
*
|
|
3046
|
-
* @param gitRepositoryToCreate - Specify the repo name, team project and/or parent repository. Team project information can be
|
|
3416
|
+
* @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).
|
|
3047
3417
|
* @param project - Project ID or project name
|
|
3048
3418
|
* @param sourceRef - [optional] Specify the source refs to use while creating a fork repo
|
|
3049
3419
|
*/
|
|
@@ -3055,7 +3425,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3055
3425
|
sourceRef: sourceRef
|
|
3056
3426
|
};
|
|
3057
3427
|
return [2 /*return*/, this.beginRequest({
|
|
3058
|
-
apiVersion: "
|
|
3428
|
+
apiVersion: "7.1-preview.1",
|
|
3059
3429
|
method: "POST",
|
|
3060
3430
|
routeTemplate: "{project}/_apis/git/Repositories/{repositoryId}",
|
|
3061
3431
|
routeValues: {
|
|
@@ -3070,14 +3440,14 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3070
3440
|
/**
|
|
3071
3441
|
* Delete a git repository
|
|
3072
3442
|
*
|
|
3073
|
-
* @param repositoryId - The
|
|
3443
|
+
* @param repositoryId - The ID of the repository.
|
|
3074
3444
|
* @param project - Project ID or project name
|
|
3075
3445
|
*/
|
|
3076
3446
|
GitRestClient.prototype.deleteRepository = function (repositoryId, project) {
|
|
3077
3447
|
return __awaiter(this, void 0, void 0, function () {
|
|
3078
3448
|
return __generator(this, function (_a) {
|
|
3079
3449
|
return [2 /*return*/, this.beginRequest({
|
|
3080
|
-
apiVersion: "
|
|
3450
|
+
apiVersion: "7.1-preview.1",
|
|
3081
3451
|
method: "DELETE",
|
|
3082
3452
|
routeTemplate: "{project}/_apis/git/Repositories/{repositoryId}",
|
|
3083
3453
|
routeValues: {
|
|
@@ -3106,7 +3476,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3106
3476
|
includeHidden: includeHidden
|
|
3107
3477
|
};
|
|
3108
3478
|
return [2 /*return*/, this.beginRequest({
|
|
3109
|
-
apiVersion: "
|
|
3479
|
+
apiVersion: "7.1-preview.1",
|
|
3110
3480
|
routeTemplate: "{project}/_apis/git/Repositories/{repositoryId}",
|
|
3111
3481
|
routeValues: {
|
|
3112
3482
|
project: project
|
|
@@ -3126,7 +3496,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3126
3496
|
return __awaiter(this, void 0, void 0, function () {
|
|
3127
3497
|
return __generator(this, function (_a) {
|
|
3128
3498
|
return [2 /*return*/, this.beginRequest({
|
|
3129
|
-
apiVersion: "
|
|
3499
|
+
apiVersion: "7.1-preview.1",
|
|
3130
3500
|
routeTemplate: "{project}/_apis/git/Repositories/{repositoryId}",
|
|
3131
3501
|
routeValues: {
|
|
3132
3502
|
project: project,
|
|
@@ -3151,7 +3521,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3151
3521
|
includeParent: includeParent
|
|
3152
3522
|
};
|
|
3153
3523
|
return [2 /*return*/, this.beginRequest({
|
|
3154
|
-
apiVersion: "
|
|
3524
|
+
apiVersion: "7.1-preview.1",
|
|
3155
3525
|
routeTemplate: "{project}/_apis/git/Repositories/{repositoryId}",
|
|
3156
3526
|
routeValues: {
|
|
3157
3527
|
project: project,
|
|
@@ -3166,14 +3536,14 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3166
3536
|
* Updates the Git repository with either a new repo name or a new default branch.
|
|
3167
3537
|
*
|
|
3168
3538
|
* @param newRepositoryInfo - Specify a new repo name or a new default branch of the repository
|
|
3169
|
-
* @param repositoryId - The
|
|
3539
|
+
* @param repositoryId - The ID of the repository.
|
|
3170
3540
|
* @param project - Project ID or project name
|
|
3171
3541
|
*/
|
|
3172
3542
|
GitRestClient.prototype.updateRepository = function (newRepositoryInfo, repositoryId, project) {
|
|
3173
3543
|
return __awaiter(this, void 0, void 0, function () {
|
|
3174
3544
|
return __generator(this, function (_a) {
|
|
3175
3545
|
return [2 /*return*/, this.beginRequest({
|
|
3176
|
-
apiVersion: "
|
|
3546
|
+
apiVersion: "7.1-preview.1",
|
|
3177
3547
|
method: "PATCH",
|
|
3178
3548
|
routeTemplate: "{project}/_apis/git/Repositories/{repositoryId}",
|
|
3179
3549
|
routeValues: {
|
|
@@ -3185,6 +3555,131 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3185
3555
|
});
|
|
3186
3556
|
});
|
|
3187
3557
|
};
|
|
3558
|
+
/**
|
|
3559
|
+
* Retrieve one conflict for a revert by ID
|
|
3560
|
+
*
|
|
3561
|
+
* @param repositoryId -
|
|
3562
|
+
* @param revertId -
|
|
3563
|
+
* @param conflictId -
|
|
3564
|
+
* @param project - Project ID or project name
|
|
3565
|
+
*/
|
|
3566
|
+
GitRestClient.prototype.getRevertConflict = function (repositoryId, revertId, conflictId, project) {
|
|
3567
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3568
|
+
return __generator(this, function (_a) {
|
|
3569
|
+
return [2 /*return*/, this.beginRequest({
|
|
3570
|
+
apiVersion: "7.1-preview.1",
|
|
3571
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",
|
|
3572
|
+
routeValues: {
|
|
3573
|
+
project: project,
|
|
3574
|
+
repositoryId: repositoryId,
|
|
3575
|
+
revertId: revertId,
|
|
3576
|
+
conflictId: conflictId
|
|
3577
|
+
}
|
|
3578
|
+
})];
|
|
3579
|
+
});
|
|
3580
|
+
});
|
|
3581
|
+
};
|
|
3582
|
+
/**
|
|
3583
|
+
* Retrieve all conflicts for a revert
|
|
3584
|
+
*
|
|
3585
|
+
* @param repositoryId -
|
|
3586
|
+
* @param revertId -
|
|
3587
|
+
* @param project - Project ID or project name
|
|
3588
|
+
* @param continuationToken -
|
|
3589
|
+
* @param top -
|
|
3590
|
+
* @param excludeResolved -
|
|
3591
|
+
* @param onlyResolved -
|
|
3592
|
+
* @param includeObsolete -
|
|
3593
|
+
*/
|
|
3594
|
+
GitRestClient.prototype.getRevertConflicts = function (repositoryId, revertId, project, continuationToken, top, excludeResolved, onlyResolved, includeObsolete) {
|
|
3595
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3596
|
+
var queryValues;
|
|
3597
|
+
var _this = this;
|
|
3598
|
+
return __generator(this, function (_a) {
|
|
3599
|
+
queryValues = {
|
|
3600
|
+
continuationToken: continuationToken,
|
|
3601
|
+
'$top': top,
|
|
3602
|
+
excludeResolved: excludeResolved,
|
|
3603
|
+
onlyResolved: onlyResolved,
|
|
3604
|
+
includeObsolete: includeObsolete
|
|
3605
|
+
};
|
|
3606
|
+
return [2 /*return*/, this.beginRequest({
|
|
3607
|
+
apiVersion: "7.1-preview.1",
|
|
3608
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",
|
|
3609
|
+
routeValues: {
|
|
3610
|
+
project: project,
|
|
3611
|
+
repositoryId: repositoryId,
|
|
3612
|
+
revertId: revertId
|
|
3613
|
+
},
|
|
3614
|
+
queryParams: queryValues,
|
|
3615
|
+
returnRawResponse: true
|
|
3616
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3617
|
+
var body;
|
|
3618
|
+
return __generator(this, function (_a) {
|
|
3619
|
+
switch (_a.label) {
|
|
3620
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
3621
|
+
case 1:
|
|
3622
|
+
body = _a.sent();
|
|
3623
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
3624
|
+
return [2 /*return*/, body];
|
|
3625
|
+
}
|
|
3626
|
+
});
|
|
3627
|
+
}); })];
|
|
3628
|
+
});
|
|
3629
|
+
});
|
|
3630
|
+
};
|
|
3631
|
+
/**
|
|
3632
|
+
* Update merge conflict resolution
|
|
3633
|
+
*
|
|
3634
|
+
* @param conflict -
|
|
3635
|
+
* @param repositoryId -
|
|
3636
|
+
* @param revertId -
|
|
3637
|
+
* @param conflictId -
|
|
3638
|
+
* @param project - Project ID or project name
|
|
3639
|
+
*/
|
|
3640
|
+
GitRestClient.prototype.updateRevertConflict = function (conflict, repositoryId, revertId, conflictId, project) {
|
|
3641
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3642
|
+
return __generator(this, function (_a) {
|
|
3643
|
+
return [2 /*return*/, this.beginRequest({
|
|
3644
|
+
apiVersion: "7.1-preview.1",
|
|
3645
|
+
method: "PATCH",
|
|
3646
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",
|
|
3647
|
+
routeValues: {
|
|
3648
|
+
project: project,
|
|
3649
|
+
repositoryId: repositoryId,
|
|
3650
|
+
revertId: revertId,
|
|
3651
|
+
conflictId: conflictId
|
|
3652
|
+
},
|
|
3653
|
+
body: conflict
|
|
3654
|
+
})];
|
|
3655
|
+
});
|
|
3656
|
+
});
|
|
3657
|
+
};
|
|
3658
|
+
/**
|
|
3659
|
+
* Update multiple merge conflict resolutions
|
|
3660
|
+
*
|
|
3661
|
+
* @param conflictUpdates -
|
|
3662
|
+
* @param repositoryId -
|
|
3663
|
+
* @param revertId -
|
|
3664
|
+
* @param project - Project ID or project name
|
|
3665
|
+
*/
|
|
3666
|
+
GitRestClient.prototype.updateRevertConflicts = function (conflictUpdates, repositoryId, revertId, project) {
|
|
3667
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3668
|
+
return __generator(this, function (_a) {
|
|
3669
|
+
return [2 /*return*/, this.beginRequest({
|
|
3670
|
+
apiVersion: "7.1-preview.1",
|
|
3671
|
+
method: "PATCH",
|
|
3672
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",
|
|
3673
|
+
routeValues: {
|
|
3674
|
+
project: project,
|
|
3675
|
+
repositoryId: repositoryId,
|
|
3676
|
+
revertId: revertId
|
|
3677
|
+
},
|
|
3678
|
+
body: conflictUpdates
|
|
3679
|
+
})];
|
|
3680
|
+
});
|
|
3681
|
+
});
|
|
3682
|
+
};
|
|
3188
3683
|
/**
|
|
3189
3684
|
* 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.
|
|
3190
3685
|
*
|
|
@@ -3196,7 +3691,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3196
3691
|
return __awaiter(this, void 0, void 0, function () {
|
|
3197
3692
|
return __generator(this, function (_a) {
|
|
3198
3693
|
return [2 /*return*/, this.beginRequest({
|
|
3199
|
-
apiVersion: "
|
|
3694
|
+
apiVersion: "7.1-preview.1",
|
|
3200
3695
|
method: "POST",
|
|
3201
3696
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",
|
|
3202
3697
|
routeValues: {
|
|
@@ -3219,7 +3714,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3219
3714
|
return __awaiter(this, void 0, void 0, function () {
|
|
3220
3715
|
return __generator(this, function (_a) {
|
|
3221
3716
|
return [2 /*return*/, this.beginRequest({
|
|
3222
|
-
apiVersion: "
|
|
3717
|
+
apiVersion: "7.1-preview.1",
|
|
3223
3718
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",
|
|
3224
3719
|
routeValues: {
|
|
3225
3720
|
project: project,
|
|
@@ -3245,7 +3740,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3245
3740
|
refName: refName
|
|
3246
3741
|
};
|
|
3247
3742
|
return [2 /*return*/, this.beginRequest({
|
|
3248
|
-
apiVersion: "
|
|
3743
|
+
apiVersion: "7.1-preview.1",
|
|
3249
3744
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",
|
|
3250
3745
|
routeValues: {
|
|
3251
3746
|
project: project,
|
|
@@ -3268,7 +3763,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3268
3763
|
return __awaiter(this, void 0, void 0, function () {
|
|
3269
3764
|
return __generator(this, function (_a) {
|
|
3270
3765
|
return [2 /*return*/, this.beginRequest({
|
|
3271
|
-
apiVersion: "
|
|
3766
|
+
apiVersion: "7.1-preview.1",
|
|
3272
3767
|
method: "POST",
|
|
3273
3768
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",
|
|
3274
3769
|
routeValues: {
|
|
@@ -3301,7 +3796,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3301
3796
|
latestOnly: latestOnly
|
|
3302
3797
|
};
|
|
3303
3798
|
return [2 /*return*/, this.beginRequest({
|
|
3304
|
-
apiVersion: "
|
|
3799
|
+
apiVersion: "7.1-preview.1",
|
|
3305
3800
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",
|
|
3306
3801
|
routeValues: {
|
|
3307
3802
|
project: project,
|
|
@@ -3323,7 +3818,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3323
3818
|
return __awaiter(this, void 0, void 0, function () {
|
|
3324
3819
|
return __generator(this, function (_a) {
|
|
3325
3820
|
return [2 /*return*/, this.beginRequest({
|
|
3326
|
-
apiVersion: "
|
|
3821
|
+
apiVersion: "7.1-preview.1",
|
|
3327
3822
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/suggestions",
|
|
3328
3823
|
routeValues: {
|
|
3329
3824
|
project: project,
|
|
@@ -3353,7 +3848,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3353
3848
|
fileName: fileName
|
|
3354
3849
|
};
|
|
3355
3850
|
return [2 /*return*/, this.beginRequest({
|
|
3356
|
-
apiVersion: "
|
|
3851
|
+
apiVersion: "7.1-preview.1",
|
|
3357
3852
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",
|
|
3358
3853
|
routeValues: {
|
|
3359
3854
|
project: project,
|
|
@@ -3385,7 +3880,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
3385
3880
|
fileName: fileName
|
|
3386
3881
|
};
|
|
3387
3882
|
return [2 /*return*/, this.beginRequest({
|
|
3388
|
-
apiVersion: "
|
|
3883
|
+
apiVersion: "7.1-preview.1",
|
|
3389
3884
|
httpResponseType: "application/zip",
|
|
3390
3885
|
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",
|
|
3391
3886
|
routeValues: {
|