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
|
@@ -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 TestPlanRestClient = /** @class */ (function (_super) {
|
|
@@ -66,7 +66,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
66
66
|
return __awaiter(this, void 0, void 0, function () {
|
|
67
67
|
return __generator(this, function (_a) {
|
|
68
68
|
return [2 /*return*/, this.beginRequest({
|
|
69
|
-
apiVersion: "
|
|
69
|
+
apiVersion: "7.1-preview.1",
|
|
70
70
|
method: "POST",
|
|
71
71
|
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
72
72
|
routeValues: {
|
|
@@ -91,7 +91,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
91
91
|
testConfiguartionId: testConfiguartionId
|
|
92
92
|
};
|
|
93
93
|
return [2 /*return*/, this.beginRequest({
|
|
94
|
-
apiVersion: "
|
|
94
|
+
apiVersion: "7.1-preview.1",
|
|
95
95
|
method: "DELETE",
|
|
96
96
|
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
97
97
|
routeValues: {
|
|
@@ -112,7 +112,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
112
112
|
return __awaiter(this, void 0, void 0, function () {
|
|
113
113
|
return __generator(this, function (_a) {
|
|
114
114
|
return [2 /*return*/, this.beginRequest({
|
|
115
|
-
apiVersion: "
|
|
115
|
+
apiVersion: "7.1-preview.1",
|
|
116
116
|
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
117
117
|
routeValues: {
|
|
118
118
|
project: project,
|
|
@@ -131,18 +131,31 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
131
131
|
TestPlanRestClient.prototype.getTestConfigurations = function (project, continuationToken) {
|
|
132
132
|
return __awaiter(this, void 0, void 0, function () {
|
|
133
133
|
var queryValues;
|
|
134
|
+
var _this = this;
|
|
134
135
|
return __generator(this, function (_a) {
|
|
135
136
|
queryValues = {
|
|
136
137
|
continuationToken: continuationToken
|
|
137
138
|
};
|
|
138
139
|
return [2 /*return*/, this.beginRequest({
|
|
139
|
-
apiVersion: "
|
|
140
|
+
apiVersion: "7.1-preview.1",
|
|
140
141
|
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
141
142
|
routeValues: {
|
|
142
143
|
project: project
|
|
143
144
|
},
|
|
144
|
-
queryParams: queryValues
|
|
145
|
-
|
|
145
|
+
queryParams: queryValues,
|
|
146
|
+
returnRawResponse: true
|
|
147
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
148
|
+
var body;
|
|
149
|
+
return __generator(this, function (_a) {
|
|
150
|
+
switch (_a.label) {
|
|
151
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
152
|
+
case 1:
|
|
153
|
+
body = _a.sent();
|
|
154
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
155
|
+
return [2 /*return*/, body];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}); })];
|
|
146
159
|
});
|
|
147
160
|
});
|
|
148
161
|
};
|
|
@@ -161,7 +174,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
161
174
|
testConfiguartionId: testConfiguartionId
|
|
162
175
|
};
|
|
163
176
|
return [2 /*return*/, this.beginRequest({
|
|
164
|
-
apiVersion: "
|
|
177
|
+
apiVersion: "7.1-preview.1",
|
|
165
178
|
method: "PATCH",
|
|
166
179
|
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
167
180
|
routeValues: {
|
|
@@ -181,8 +194,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
181
194
|
* @param configurations -
|
|
182
195
|
* @param testers -
|
|
183
196
|
* @param assignedTo -
|
|
197
|
+
* @param entity -
|
|
184
198
|
*/
|
|
185
|
-
TestPlanRestClient.prototype.
|
|
199
|
+
TestPlanRestClient.prototype.getTestEntityCountByPlanId = function (project, planId, states, outcome, configurations, testers, assignedTo, entity) {
|
|
186
200
|
return __awaiter(this, void 0, void 0, function () {
|
|
187
201
|
var queryValues;
|
|
188
202
|
return __generator(this, function (_a) {
|
|
@@ -191,10 +205,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
191
205
|
outcome: outcome,
|
|
192
206
|
configurations: configurations,
|
|
193
207
|
testers: testers,
|
|
194
|
-
assignedTo: assignedTo
|
|
208
|
+
assignedTo: assignedTo,
|
|
209
|
+
entity: entity
|
|
195
210
|
};
|
|
196
211
|
return [2 /*return*/, this.beginRequest({
|
|
197
|
-
apiVersion: "
|
|
212
|
+
apiVersion: "7.1-preview.1",
|
|
198
213
|
routeTemplate: "{project}/_apis/testplan/Count/{planId}",
|
|
199
214
|
routeValues: {
|
|
200
215
|
project: project,
|
|
@@ -215,7 +230,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
215
230
|
return __awaiter(this, void 0, void 0, function () {
|
|
216
231
|
return __generator(this, function (_a) {
|
|
217
232
|
return [2 /*return*/, this.beginRequest({
|
|
218
|
-
apiVersion: "
|
|
233
|
+
apiVersion: "7.1-preview.1",
|
|
219
234
|
method: "POST",
|
|
220
235
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
221
236
|
routeValues: {
|
|
@@ -236,7 +251,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
236
251
|
return __awaiter(this, void 0, void 0, function () {
|
|
237
252
|
return __generator(this, function (_a) {
|
|
238
253
|
return [2 /*return*/, this.beginRequest({
|
|
239
|
-
apiVersion: "
|
|
254
|
+
apiVersion: "7.1-preview.1",
|
|
240
255
|
method: "DELETE",
|
|
241
256
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
242
257
|
routeValues: {
|
|
@@ -257,7 +272,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
257
272
|
return __awaiter(this, void 0, void 0, function () {
|
|
258
273
|
return __generator(this, function (_a) {
|
|
259
274
|
return [2 /*return*/, this.beginRequest({
|
|
260
|
-
apiVersion: "
|
|
275
|
+
apiVersion: "7.1-preview.1",
|
|
261
276
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
262
277
|
routeValues: {
|
|
263
278
|
project: project,
|
|
@@ -279,6 +294,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
279
294
|
TestPlanRestClient.prototype.getTestPlans = function (project, owner, continuationToken, includePlanDetails, filterActivePlans) {
|
|
280
295
|
return __awaiter(this, void 0, void 0, function () {
|
|
281
296
|
var queryValues;
|
|
297
|
+
var _this = this;
|
|
282
298
|
return __generator(this, function (_a) {
|
|
283
299
|
queryValues = {
|
|
284
300
|
owner: owner,
|
|
@@ -287,13 +303,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
287
303
|
filterActivePlans: filterActivePlans
|
|
288
304
|
};
|
|
289
305
|
return [2 /*return*/, this.beginRequest({
|
|
290
|
-
apiVersion: "
|
|
306
|
+
apiVersion: "7.1-preview.1",
|
|
291
307
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
292
308
|
routeValues: {
|
|
293
309
|
project: project
|
|
294
310
|
},
|
|
295
|
-
queryParams: queryValues
|
|
296
|
-
|
|
311
|
+
queryParams: queryValues,
|
|
312
|
+
returnRawResponse: true
|
|
313
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
314
|
+
var body;
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
switch (_a.label) {
|
|
317
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
318
|
+
case 1:
|
|
319
|
+
body = _a.sent();
|
|
320
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
321
|
+
return [2 /*return*/, body];
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
}); })];
|
|
297
325
|
});
|
|
298
326
|
});
|
|
299
327
|
};
|
|
@@ -308,7 +336,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
308
336
|
return __awaiter(this, void 0, void 0, function () {
|
|
309
337
|
return __generator(this, function (_a) {
|
|
310
338
|
return [2 /*return*/, this.beginRequest({
|
|
311
|
-
apiVersion: "
|
|
339
|
+
apiVersion: "7.1-preview.1",
|
|
312
340
|
method: "PATCH",
|
|
313
341
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
314
342
|
routeValues: {
|
|
@@ -335,7 +363,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
335
363
|
suiteEntryType: suiteEntryType
|
|
336
364
|
};
|
|
337
365
|
return [2 /*return*/, this.beginRequest({
|
|
338
|
-
apiVersion: "
|
|
366
|
+
apiVersion: "7.1-preview.1",
|
|
339
367
|
routeTemplate: "{project}/_apis/testplan/SuiteEntry/{suiteId}",
|
|
340
368
|
routeValues: {
|
|
341
369
|
project: project,
|
|
@@ -357,7 +385,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
357
385
|
return __awaiter(this, void 0, void 0, function () {
|
|
358
386
|
return __generator(this, function (_a) {
|
|
359
387
|
return [2 /*return*/, this.beginRequest({
|
|
360
|
-
apiVersion: "
|
|
388
|
+
apiVersion: "7.1-preview.1",
|
|
361
389
|
method: "PATCH",
|
|
362
390
|
routeTemplate: "{project}/_apis/testplan/SuiteEntry/{suiteId}",
|
|
363
391
|
routeValues: {
|
|
@@ -369,6 +397,31 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
369
397
|
});
|
|
370
398
|
});
|
|
371
399
|
};
|
|
400
|
+
/**
|
|
401
|
+
* Create bulk requirement based test suites.
|
|
402
|
+
*
|
|
403
|
+
* @param testSuiteCreateParams - Parameters for suite creation
|
|
404
|
+
* @param project - Project ID or project name
|
|
405
|
+
* @param planId - ID of the test plan where requirement based suites need to be created.
|
|
406
|
+
* @param parentSuiteId - ID of the parent suite under which requirement based suites will be created
|
|
407
|
+
*/
|
|
408
|
+
TestPlanRestClient.prototype.createBulkTestSuites = function (testSuiteCreateParams, project, planId, parentSuiteId) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
410
|
+
return __generator(this, function (_a) {
|
|
411
|
+
return [2 /*return*/, this.beginRequest({
|
|
412
|
+
apiVersion: "7.1-preview.1",
|
|
413
|
+
method: "POST",
|
|
414
|
+
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{parentSuiteId}/bulk",
|
|
415
|
+
routeValues: {
|
|
416
|
+
project: project,
|
|
417
|
+
planId: planId,
|
|
418
|
+
parentSuiteId: parentSuiteId
|
|
419
|
+
},
|
|
420
|
+
body: testSuiteCreateParams
|
|
421
|
+
})];
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
};
|
|
372
425
|
/**
|
|
373
426
|
* Create test suite.
|
|
374
427
|
*
|
|
@@ -380,7 +433,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
380
433
|
return __awaiter(this, void 0, void 0, function () {
|
|
381
434
|
return __generator(this, function (_a) {
|
|
382
435
|
return [2 /*return*/, this.beginRequest({
|
|
383
|
-
apiVersion: "
|
|
436
|
+
apiVersion: "7.1-preview.1",
|
|
384
437
|
method: "POST",
|
|
385
438
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
386
439
|
routeValues: {
|
|
@@ -403,7 +456,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
403
456
|
return __awaiter(this, void 0, void 0, function () {
|
|
404
457
|
return __generator(this, function (_a) {
|
|
405
458
|
return [2 /*return*/, this.beginRequest({
|
|
406
|
-
apiVersion: "
|
|
459
|
+
apiVersion: "7.1-preview.1",
|
|
407
460
|
method: "DELETE",
|
|
408
461
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
409
462
|
routeValues: {
|
|
@@ -431,7 +484,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
431
484
|
expand: expand
|
|
432
485
|
};
|
|
433
486
|
return [2 /*return*/, this.beginRequest({
|
|
434
|
-
apiVersion: "
|
|
487
|
+
apiVersion: "7.1-preview.1",
|
|
435
488
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
436
489
|
routeValues: {
|
|
437
490
|
project: project,
|
|
@@ -455,6 +508,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
455
508
|
TestPlanRestClient.prototype.getTestSuitesForPlan = function (project, planId, expand, continuationToken, asTreeView) {
|
|
456
509
|
return __awaiter(this, void 0, void 0, function () {
|
|
457
510
|
var queryValues;
|
|
511
|
+
var _this = this;
|
|
458
512
|
return __generator(this, function (_a) {
|
|
459
513
|
queryValues = {
|
|
460
514
|
expand: expand,
|
|
@@ -462,14 +516,26 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
462
516
|
asTreeView: asTreeView
|
|
463
517
|
};
|
|
464
518
|
return [2 /*return*/, this.beginRequest({
|
|
465
|
-
apiVersion: "
|
|
519
|
+
apiVersion: "7.1-preview.1",
|
|
466
520
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
467
521
|
routeValues: {
|
|
468
522
|
project: project,
|
|
469
523
|
planId: planId
|
|
470
524
|
},
|
|
471
|
-
queryParams: queryValues
|
|
472
|
-
|
|
525
|
+
queryParams: queryValues,
|
|
526
|
+
returnRawResponse: true
|
|
527
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
528
|
+
var body;
|
|
529
|
+
return __generator(this, function (_a) {
|
|
530
|
+
switch (_a.label) {
|
|
531
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
532
|
+
case 1:
|
|
533
|
+
body = _a.sent();
|
|
534
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
535
|
+
return [2 /*return*/, body];
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}); })];
|
|
473
539
|
});
|
|
474
540
|
});
|
|
475
541
|
};
|
|
@@ -485,7 +551,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
485
551
|
return __awaiter(this, void 0, void 0, function () {
|
|
486
552
|
return __generator(this, function (_a) {
|
|
487
553
|
return [2 /*return*/, this.beginRequest({
|
|
488
|
-
apiVersion: "
|
|
554
|
+
apiVersion: "7.1-preview.1",
|
|
489
555
|
method: "PATCH",
|
|
490
556
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
491
557
|
routeValues: {
|
|
@@ -511,7 +577,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
511
577
|
testCaseId: testCaseId
|
|
512
578
|
};
|
|
513
579
|
return [2 /*return*/, this.beginRequest({
|
|
514
|
-
apiVersion: "
|
|
580
|
+
apiVersion: "7.1-preview.1",
|
|
515
581
|
routeTemplate: "_apis/testplan/Suites",
|
|
516
582
|
queryParams: queryValues
|
|
517
583
|
})];
|
|
@@ -530,9 +596,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
530
596
|
return __awaiter(this, void 0, void 0, function () {
|
|
531
597
|
return __generator(this, function (_a) {
|
|
532
598
|
return [2 /*return*/, this.beginRequest({
|
|
533
|
-
apiVersion: "
|
|
599
|
+
apiVersion: "7.1-preview.3",
|
|
534
600
|
method: "POST",
|
|
535
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{
|
|
601
|
+
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
536
602
|
routeValues: {
|
|
537
603
|
project: project,
|
|
538
604
|
planId: planId,
|
|
@@ -544,16 +610,16 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
544
610
|
});
|
|
545
611
|
};
|
|
546
612
|
/**
|
|
547
|
-
* Get Test
|
|
613
|
+
* Get a particular Test Case from a Suite.
|
|
548
614
|
*
|
|
549
615
|
* @param project - Project ID or project name
|
|
550
616
|
* @param planId - ID of the test plan for which test cases are requested.
|
|
551
617
|
* @param suiteId - ID of the test suite for which test cases are requested.
|
|
552
|
-
* @param
|
|
618
|
+
* @param testCaseId - Test Case Id to be fetched.
|
|
553
619
|
* @param witFields - Get the list of witFields.
|
|
554
620
|
* @param returnIdentityRef - If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.
|
|
555
621
|
*/
|
|
556
|
-
TestPlanRestClient.prototype.getTestCase = function (project, planId, suiteId,
|
|
622
|
+
TestPlanRestClient.prototype.getTestCase = function (project, planId, suiteId, testCaseId, witFields, returnIdentityRef) {
|
|
557
623
|
return __awaiter(this, void 0, void 0, function () {
|
|
558
624
|
var queryValues;
|
|
559
625
|
return __generator(this, function (_a) {
|
|
@@ -562,13 +628,13 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
562
628
|
returnIdentityRef: returnIdentityRef
|
|
563
629
|
};
|
|
564
630
|
return [2 /*return*/, this.beginRequest({
|
|
565
|
-
apiVersion: "
|
|
566
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{
|
|
631
|
+
apiVersion: "7.1-preview.3",
|
|
632
|
+
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
567
633
|
routeValues: {
|
|
568
634
|
project: project,
|
|
569
635
|
planId: planId,
|
|
570
636
|
suiteId: suiteId,
|
|
571
|
-
|
|
637
|
+
testCaseId: testCaseId
|
|
572
638
|
},
|
|
573
639
|
queryParams: queryValues
|
|
574
640
|
})];
|
|
@@ -576,7 +642,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
576
642
|
});
|
|
577
643
|
};
|
|
578
644
|
/**
|
|
579
|
-
* Get Test Case List return those test cases which have all the configuration Ids as mentioned in the optional
|
|
645
|
+
* Get Test Case List return those test cases which have all the configuration Ids as mentioned in the optional parameter. If configuration Ids is null, it return all the test cases
|
|
580
646
|
*
|
|
581
647
|
* @param project - Project ID or project name
|
|
582
648
|
* @param planId - ID of the test plan for which test cases are requested.
|
|
@@ -588,10 +654,12 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
588
654
|
* @param returnIdentityRef - If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.
|
|
589
655
|
* @param expand - If set to false, will get a smaller payload containing only basic details about the suite test case object
|
|
590
656
|
* @param excludeFlags - Flag to exclude various values from payload. For example to remove point assignments pass exclude = 1. To remove extra information (links, test plan , test suite) pass exclude = 2. To remove both extra information and point assignments pass exclude = 3 (1 + 2).
|
|
657
|
+
* @param isRecursive -
|
|
591
658
|
*/
|
|
592
|
-
TestPlanRestClient.prototype.getTestCaseList = function (project, planId, suiteId, testIds, configurationIds, witFields, continuationToken, returnIdentityRef, expand, excludeFlags) {
|
|
659
|
+
TestPlanRestClient.prototype.getTestCaseList = function (project, planId, suiteId, testIds, configurationIds, witFields, continuationToken, returnIdentityRef, expand, excludeFlags, isRecursive) {
|
|
593
660
|
return __awaiter(this, void 0, void 0, function () {
|
|
594
661
|
var queryValues;
|
|
662
|
+
var _this = this;
|
|
595
663
|
return __generator(this, function (_a) {
|
|
596
664
|
queryValues = {
|
|
597
665
|
testIds: testIds,
|
|
@@ -600,18 +668,31 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
600
668
|
continuationToken: continuationToken,
|
|
601
669
|
returnIdentityRef: returnIdentityRef,
|
|
602
670
|
expand: expand,
|
|
603
|
-
excludeFlags: excludeFlags
|
|
671
|
+
excludeFlags: excludeFlags,
|
|
672
|
+
isRecursive: isRecursive
|
|
604
673
|
};
|
|
605
674
|
return [2 /*return*/, this.beginRequest({
|
|
606
|
-
apiVersion: "
|
|
607
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{
|
|
675
|
+
apiVersion: "7.1-preview.3",
|
|
676
|
+
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
608
677
|
routeValues: {
|
|
609
678
|
project: project,
|
|
610
679
|
planId: planId,
|
|
611
680
|
suiteId: suiteId
|
|
612
681
|
},
|
|
613
|
-
queryParams: queryValues
|
|
614
|
-
|
|
682
|
+
queryParams: queryValues,
|
|
683
|
+
returnRawResponse: true
|
|
684
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
685
|
+
var body;
|
|
686
|
+
return __generator(this, function (_a) {
|
|
687
|
+
switch (_a.label) {
|
|
688
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
689
|
+
case 1:
|
|
690
|
+
body = _a.sent();
|
|
691
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
692
|
+
return [2 /*return*/, body];
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
}); })];
|
|
615
696
|
});
|
|
616
697
|
});
|
|
617
698
|
};
|
|
@@ -625,17 +706,50 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
625
706
|
*/
|
|
626
707
|
TestPlanRestClient.prototype.removeTestCasesFromSuite = function (project, planId, suiteId, testCaseIds) {
|
|
627
708
|
return __awaiter(this, void 0, void 0, function () {
|
|
709
|
+
var queryValues;
|
|
628
710
|
return __generator(this, function (_a) {
|
|
711
|
+
queryValues = {
|
|
712
|
+
testCaseIds: testCaseIds
|
|
713
|
+
};
|
|
629
714
|
return [2 /*return*/, this.beginRequest({
|
|
630
|
-
apiVersion: "
|
|
715
|
+
apiVersion: "7.1-preview.3",
|
|
631
716
|
method: "DELETE",
|
|
632
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{
|
|
717
|
+
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
633
718
|
routeValues: {
|
|
634
719
|
project: project,
|
|
635
720
|
planId: planId,
|
|
636
|
-
suiteId: suiteId
|
|
637
|
-
|
|
638
|
-
|
|
721
|
+
suiteId: suiteId
|
|
722
|
+
},
|
|
723
|
+
queryParams: queryValues
|
|
724
|
+
})];
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* Removes test cases from a suite based on the list of test case Ids provided. This API can be used to remove a larger number of test cases.
|
|
730
|
+
*
|
|
731
|
+
* @param project - Project ID or project name
|
|
732
|
+
* @param planId - ID of the test plan from which test cases are to be removed.
|
|
733
|
+
* @param suiteId - ID of the test suite from which test cases are to be removed.
|
|
734
|
+
* @param testIds - Comma separated string of Test Case Ids to be removed.
|
|
735
|
+
*/
|
|
736
|
+
TestPlanRestClient.prototype.removeTestCasesListFromSuite = function (project, planId, suiteId, testIds) {
|
|
737
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
738
|
+
var queryValues;
|
|
739
|
+
return __generator(this, function (_a) {
|
|
740
|
+
queryValues = {
|
|
741
|
+
testIds: testIds
|
|
742
|
+
};
|
|
743
|
+
return [2 /*return*/, this.beginRequest({
|
|
744
|
+
apiVersion: "7.1-preview.3",
|
|
745
|
+
method: "DELETE",
|
|
746
|
+
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
747
|
+
routeValues: {
|
|
748
|
+
project: project,
|
|
749
|
+
planId: planId,
|
|
750
|
+
suiteId: suiteId
|
|
751
|
+
},
|
|
752
|
+
queryParams: queryValues
|
|
639
753
|
})];
|
|
640
754
|
});
|
|
641
755
|
});
|
|
@@ -652,9 +766,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
652
766
|
return __awaiter(this, void 0, void 0, function () {
|
|
653
767
|
return __generator(this, function (_a) {
|
|
654
768
|
return [2 /*return*/, this.beginRequest({
|
|
655
|
-
apiVersion: "
|
|
769
|
+
apiVersion: "7.1-preview.3",
|
|
656
770
|
method: "PATCH",
|
|
657
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{
|
|
771
|
+
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
658
772
|
routeValues: {
|
|
659
773
|
project: project,
|
|
660
774
|
planId: planId,
|
|
@@ -665,6 +779,45 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
665
779
|
});
|
|
666
780
|
});
|
|
667
781
|
};
|
|
782
|
+
/**
|
|
783
|
+
* @param cloneRequestBody -
|
|
784
|
+
* @param project - Project ID or project name
|
|
785
|
+
*/
|
|
786
|
+
TestPlanRestClient.prototype.cloneTestCase = function (cloneRequestBody, project) {
|
|
787
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
788
|
+
return __generator(this, function (_a) {
|
|
789
|
+
return [2 /*return*/, this.beginRequest({
|
|
790
|
+
apiVersion: "7.1-preview.2",
|
|
791
|
+
method: "POST",
|
|
792
|
+
routeTemplate: "{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",
|
|
793
|
+
routeValues: {
|
|
794
|
+
project: project
|
|
795
|
+
},
|
|
796
|
+
body: cloneRequestBody
|
|
797
|
+
})];
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
};
|
|
801
|
+
/**
|
|
802
|
+
* Get clone information.
|
|
803
|
+
*
|
|
804
|
+
* @param project - Project ID or project name
|
|
805
|
+
* @param cloneOperationId - Operation ID returned when we queue a clone operation
|
|
806
|
+
*/
|
|
807
|
+
TestPlanRestClient.prototype.getTestCaseCloneInformation = function (project, cloneOperationId) {
|
|
808
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
809
|
+
return __generator(this, function (_a) {
|
|
810
|
+
return [2 /*return*/, this.beginRequest({
|
|
811
|
+
apiVersion: "7.1-preview.2",
|
|
812
|
+
routeTemplate: "{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",
|
|
813
|
+
routeValues: {
|
|
814
|
+
project: project,
|
|
815
|
+
cloneOperationId: cloneOperationId
|
|
816
|
+
}
|
|
817
|
+
})];
|
|
818
|
+
});
|
|
819
|
+
});
|
|
820
|
+
};
|
|
668
821
|
/**
|
|
669
822
|
* Delete a test case.
|
|
670
823
|
*
|
|
@@ -675,7 +828,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
675
828
|
return __awaiter(this, void 0, void 0, function () {
|
|
676
829
|
return __generator(this, function (_a) {
|
|
677
830
|
return [2 /*return*/, this.beginRequest({
|
|
678
|
-
apiVersion: "
|
|
831
|
+
apiVersion: "7.1-preview.1",
|
|
679
832
|
method: "DELETE",
|
|
680
833
|
routeTemplate: "{project}/_apis/testplan/TestCases/{testCaseId}",
|
|
681
834
|
routeValues: {
|
|
@@ -701,7 +854,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
701
854
|
deepClone: deepClone
|
|
702
855
|
};
|
|
703
856
|
return [2 /*return*/, this.beginRequest({
|
|
704
|
-
apiVersion: "
|
|
857
|
+
apiVersion: "7.1-preview.2",
|
|
705
858
|
method: "POST",
|
|
706
859
|
routeTemplate: "{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",
|
|
707
860
|
routeValues: {
|
|
@@ -723,7 +876,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
723
876
|
return __awaiter(this, void 0, void 0, function () {
|
|
724
877
|
return __generator(this, function (_a) {
|
|
725
878
|
return [2 /*return*/, this.beginRequest({
|
|
726
|
-
apiVersion: "
|
|
879
|
+
apiVersion: "7.1-preview.2",
|
|
727
880
|
routeTemplate: "{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",
|
|
728
881
|
routeValues: {
|
|
729
882
|
project: project,
|
|
@@ -734,31 +887,31 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
734
887
|
});
|
|
735
888
|
};
|
|
736
889
|
/**
|
|
737
|
-
* Get a
|
|
890
|
+
* Get a particular Test Point from a suite.
|
|
738
891
|
*
|
|
739
892
|
* @param project - Project ID or project name
|
|
740
893
|
* @param planId - ID of the test plan for which test points are requested.
|
|
741
894
|
* @param suiteId - ID of the test suite for which test points are requested.
|
|
742
|
-
* @param
|
|
895
|
+
* @param pointId - ID of test point to be fetched.
|
|
743
896
|
* @param returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
|
|
744
897
|
* @param includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
|
|
745
898
|
*/
|
|
746
|
-
TestPlanRestClient.prototype.getPoints = function (project, planId, suiteId,
|
|
899
|
+
TestPlanRestClient.prototype.getPoints = function (project, planId, suiteId, pointId, returnIdentityRef, includePointDetails) {
|
|
747
900
|
return __awaiter(this, void 0, void 0, function () {
|
|
748
901
|
var queryValues;
|
|
749
902
|
return __generator(this, function (_a) {
|
|
750
903
|
queryValues = {
|
|
904
|
+
pointId: pointId,
|
|
751
905
|
returnIdentityRef: returnIdentityRef,
|
|
752
906
|
includePointDetails: includePointDetails
|
|
753
907
|
};
|
|
754
908
|
return [2 /*return*/, this.beginRequest({
|
|
755
|
-
apiVersion: "
|
|
909
|
+
apiVersion: "7.1-preview.2",
|
|
756
910
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
|
|
757
911
|
routeValues: {
|
|
758
912
|
project: project,
|
|
759
913
|
planId: planId,
|
|
760
|
-
suiteId: suiteId
|
|
761
|
-
pointIds: pointIds
|
|
914
|
+
suiteId: suiteId
|
|
762
915
|
},
|
|
763
916
|
queryParams: queryValues
|
|
764
917
|
})];
|
|
@@ -776,28 +929,43 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
776
929
|
* @param continuationToken - If the list of test point returned is not complete, a continuation token to query next batch of test points is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test points.
|
|
777
930
|
* @param returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
|
|
778
931
|
* @param includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
|
|
932
|
+
* @param isRecursive - If set to true, will also fetch test points belonging to child suites recursively.
|
|
779
933
|
*/
|
|
780
|
-
TestPlanRestClient.prototype.getPointsList = function (project, planId, suiteId, testPointIds, testCaseId, continuationToken, returnIdentityRef, includePointDetails) {
|
|
934
|
+
TestPlanRestClient.prototype.getPointsList = function (project, planId, suiteId, testPointIds, testCaseId, continuationToken, returnIdentityRef, includePointDetails, isRecursive) {
|
|
781
935
|
return __awaiter(this, void 0, void 0, function () {
|
|
782
936
|
var queryValues;
|
|
937
|
+
var _this = this;
|
|
783
938
|
return __generator(this, function (_a) {
|
|
784
939
|
queryValues = {
|
|
785
940
|
testPointIds: testPointIds,
|
|
786
941
|
testCaseId: testCaseId,
|
|
787
942
|
continuationToken: continuationToken,
|
|
788
943
|
returnIdentityRef: returnIdentityRef,
|
|
789
|
-
includePointDetails: includePointDetails
|
|
944
|
+
includePointDetails: includePointDetails,
|
|
945
|
+
isRecursive: isRecursive
|
|
790
946
|
};
|
|
791
947
|
return [2 /*return*/, this.beginRequest({
|
|
792
|
-
apiVersion: "
|
|
948
|
+
apiVersion: "7.1-preview.2",
|
|
793
949
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
|
|
794
950
|
routeValues: {
|
|
795
951
|
project: project,
|
|
796
952
|
planId: planId,
|
|
797
953
|
suiteId: suiteId
|
|
798
954
|
},
|
|
799
|
-
queryParams: queryValues
|
|
800
|
-
|
|
955
|
+
queryParams: queryValues,
|
|
956
|
+
returnRawResponse: true
|
|
957
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
958
|
+
var body;
|
|
959
|
+
return __generator(this, function (_a) {
|
|
960
|
+
switch (_a.label) {
|
|
961
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
962
|
+
case 1:
|
|
963
|
+
body = _a.sent();
|
|
964
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
965
|
+
return [2 /*return*/, body];
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
}); })];
|
|
801
969
|
});
|
|
802
970
|
});
|
|
803
971
|
};
|
|
@@ -820,7 +988,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
820
988
|
returnIdentityRef: returnIdentityRef
|
|
821
989
|
};
|
|
822
990
|
return [2 /*return*/, this.beginRequest({
|
|
823
|
-
apiVersion: "
|
|
991
|
+
apiVersion: "7.1-preview.2",
|
|
824
992
|
method: "PATCH",
|
|
825
993
|
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
|
|
826
994
|
routeValues: {
|
|
@@ -849,7 +1017,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
849
1017
|
deepClone: deepClone
|
|
850
1018
|
};
|
|
851
1019
|
return [2 /*return*/, this.beginRequest({
|
|
852
|
-
apiVersion: "
|
|
1020
|
+
apiVersion: "7.1-preview.2",
|
|
853
1021
|
method: "POST",
|
|
854
1022
|
routeTemplate: "{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",
|
|
855
1023
|
routeValues: {
|
|
@@ -871,7 +1039,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
871
1039
|
return __awaiter(this, void 0, void 0, function () {
|
|
872
1040
|
return __generator(this, function (_a) {
|
|
873
1041
|
return [2 /*return*/, this.beginRequest({
|
|
874
|
-
apiVersion: "
|
|
1042
|
+
apiVersion: "7.1-preview.2",
|
|
875
1043
|
routeTemplate: "{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",
|
|
876
1044
|
routeValues: {
|
|
877
1045
|
project: project,
|
|
@@ -891,7 +1059,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
891
1059
|
return __awaiter(this, void 0, void 0, function () {
|
|
892
1060
|
return __generator(this, function (_a) {
|
|
893
1061
|
return [2 /*return*/, this.beginRequest({
|
|
894
|
-
apiVersion: "
|
|
1062
|
+
apiVersion: "7.1-preview.1",
|
|
895
1063
|
method: "POST",
|
|
896
1064
|
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
897
1065
|
routeValues: {
|
|
@@ -912,7 +1080,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
912
1080
|
return __awaiter(this, void 0, void 0, function () {
|
|
913
1081
|
return __generator(this, function (_a) {
|
|
914
1082
|
return [2 /*return*/, this.beginRequest({
|
|
915
|
-
apiVersion: "
|
|
1083
|
+
apiVersion: "7.1-preview.1",
|
|
916
1084
|
method: "DELETE",
|
|
917
1085
|
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
918
1086
|
routeValues: {
|
|
@@ -933,7 +1101,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
933
1101
|
return __awaiter(this, void 0, void 0, function () {
|
|
934
1102
|
return __generator(this, function (_a) {
|
|
935
1103
|
return [2 /*return*/, this.beginRequest({
|
|
936
|
-
apiVersion: "
|
|
1104
|
+
apiVersion: "7.1-preview.1",
|
|
937
1105
|
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
938
1106
|
routeValues: {
|
|
939
1107
|
project: project,
|
|
@@ -952,18 +1120,31 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
952
1120
|
TestPlanRestClient.prototype.getTestVariables = function (project, continuationToken) {
|
|
953
1121
|
return __awaiter(this, void 0, void 0, function () {
|
|
954
1122
|
var queryValues;
|
|
1123
|
+
var _this = this;
|
|
955
1124
|
return __generator(this, function (_a) {
|
|
956
1125
|
queryValues = {
|
|
957
1126
|
continuationToken: continuationToken
|
|
958
1127
|
};
|
|
959
1128
|
return [2 /*return*/, this.beginRequest({
|
|
960
|
-
apiVersion: "
|
|
1129
|
+
apiVersion: "7.1-preview.1",
|
|
961
1130
|
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
962
1131
|
routeValues: {
|
|
963
1132
|
project: project
|
|
964
1133
|
},
|
|
965
|
-
queryParams: queryValues
|
|
966
|
-
|
|
1134
|
+
queryParams: queryValues,
|
|
1135
|
+
returnRawResponse: true
|
|
1136
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1137
|
+
var body;
|
|
1138
|
+
return __generator(this, function (_a) {
|
|
1139
|
+
switch (_a.label) {
|
|
1140
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
1141
|
+
case 1:
|
|
1142
|
+
body = _a.sent();
|
|
1143
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1144
|
+
return [2 /*return*/, body];
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
}); })];
|
|
967
1148
|
});
|
|
968
1149
|
});
|
|
969
1150
|
};
|
|
@@ -978,7 +1159,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
978
1159
|
return __awaiter(this, void 0, void 0, function () {
|
|
979
1160
|
return __generator(this, function (_a) {
|
|
980
1161
|
return [2 /*return*/, this.beginRequest({
|
|
981
|
-
apiVersion: "
|
|
1162
|
+
apiVersion: "7.1-preview.1",
|
|
982
1163
|
method: "PATCH",
|
|
983
1164
|
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
984
1165
|
routeValues: {
|