azure-devops-extension-api 1.158.0 → 2.218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/Accounts/AccountsClient.d.ts +1 -1
  2. package/Accounts/AccountsClient.js +4 -4
  3. package/Accounts/AccountsClient.min.js +1 -1
  4. package/Build/Build.d.ts +201 -3
  5. package/Build/Build.js +6 -2
  6. package/Build/Build.min.js +1 -1
  7. package/Build/BuildClient.d.ts +121 -13
  8. package/Build/BuildClient.js +468 -101
  9. package/Build/BuildClient.min.js +1 -1
  10. package/Contributions/Contributions.d.ts +1 -1
  11. package/Contributions/ContributionsClient.js +4 -4
  12. package/Contributions/ContributionsClient.min.js +1 -1
  13. package/Core/CoreClient.d.ts +2 -2
  14. package/Core/CoreClient.js +49 -36
  15. package/Core/CoreClient.min.js +1 -1
  16. package/Dashboard/Dashboard.d.ts +79 -2
  17. package/Dashboard/Dashboard.js +10 -0
  18. package/Dashboard/Dashboard.min.js +1 -1
  19. package/Dashboard/DashboardClient.d.ts +2 -2
  20. package/Dashboard/DashboardClient.js +15 -15
  21. package/Dashboard/DashboardClient.min.js +1 -1
  22. package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
  23. package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
  24. package/ExtensionManagement/ExtensionManagementClient.js +27 -27
  25. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  26. package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
  27. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  28. package/FeatureManagement/FeatureManagementClient.js +9 -9
  29. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  30. package/FileContainer/FileContainer.d.ts +22 -0
  31. package/FileContainer/FileContainer.js +8 -0
  32. package/FileContainer/FileContainer.min.js +1 -1
  33. package/FileContainer/FileContainerClient.d.ts +5 -2
  34. package/FileContainer/FileContainerClient.js +13 -7
  35. package/FileContainer/FileContainerClient.min.js +1 -1
  36. package/FormInput/FormInput.d.ts +1 -1
  37. package/Gallery/Gallery.d.ts +92 -7
  38. package/Gallery/Gallery.js +25 -3
  39. package/Gallery/Gallery.min.js +1 -1
  40. package/Gallery/GalleryClient.d.ts +41 -9
  41. package/Gallery/GalleryClient.js +211 -90
  42. package/Gallery/GalleryClient.min.js +1 -1
  43. package/Git/Git.d.ts +121 -7
  44. package/Git/Git.js +2 -1
  45. package/Git/Git.min.js +1 -1
  46. package/Git/GitClient.d.ts +173 -28
  47. package/Git/GitClient.js +630 -162
  48. package/Git/GitClient.min.js +1 -1
  49. package/Graph/Graph.d.ts +107 -17
  50. package/Graph/GraphClient.d.ts +41 -2
  51. package/Graph/GraphClient.js +158 -37
  52. package/Graph/GraphClient.min.js +1 -1
  53. package/Identities/Identities.d.ts +15 -0
  54. package/Locations/LocationsClient.js +9 -9
  55. package/Locations/LocationsClient.min.js +1 -1
  56. package/Notification/Notification.d.ts +3 -3
  57. package/Notification/NotificationClient.d.ts +6 -0
  58. package/Notification/NotificationClient.js +40 -23
  59. package/Notification/NotificationClient.min.js +1 -1
  60. package/Operations/OperationsClient.d.ts +1 -1
  61. package/Operations/OperationsClient.js +2 -2
  62. package/Operations/OperationsClient.min.js +1 -1
  63. package/Pipelines/Pipelines.d.ts +318 -0
  64. package/Pipelines/Pipelines.js +82 -0
  65. package/Pipelines/Pipelines.min.js +1 -0
  66. package/Pipelines/PipelinesClient.d.ts +92 -0
  67. package/Pipelines/PipelinesClient.js +325 -0
  68. package/Pipelines/PipelinesClient.min.js +1 -0
  69. package/Policy/Policy.d.ts +4 -0
  70. package/Policy/PolicyClient.d.ts +3 -3
  71. package/Policy/PolicyClient.js +30 -19
  72. package/Policy/PolicyClient.min.js +1 -1
  73. package/Profile/ProfileClient.js +12 -12
  74. package/Profile/ProfileClient.min.js +1 -1
  75. package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
  76. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  77. package/Release/Release.d.ts +81 -7
  78. package/Release/Release.js +11 -0
  79. package/Release/Release.min.js +1 -1
  80. package/Release/ReleaseClient.d.ts +31 -5
  81. package/Release/ReleaseClient.js +223 -95
  82. package/Release/ReleaseClient.min.js +1 -1
  83. package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
  84. package/ServiceEndpoint/ServiceEndpoint.js +1 -0
  85. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  86. package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
  87. package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
  88. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  89. package/ServiceHooks/ServiceHooks.d.ts +2 -1
  90. package/ServiceHooks/ServiceHooksClient.js +23 -23
  91. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  92. package/TaskAgent/TaskAgent.d.ts +737 -17
  93. package/TaskAgent/TaskAgent.js +133 -0
  94. package/TaskAgent/TaskAgent.min.js +1 -1
  95. package/TaskAgent/TaskAgentClient.d.ts +28 -16
  96. package/TaskAgent/TaskAgentClient.js +336 -195
  97. package/TaskAgent/TaskAgentClient.min.js +1 -1
  98. package/Test/Test.d.ts +96 -25
  99. package/Test/Test.js +8 -0
  100. package/Test/Test.min.js +1 -1
  101. package/Test/TestClient.d.ts +17 -34
  102. package/Test/TestClient.js +163 -152
  103. package/Test/TestClient.min.js +1 -1
  104. package/TestPlan/TestPlan.d.ts +215 -18
  105. package/TestPlan/TestPlan.js +47 -1
  106. package/TestPlan/TestPlan.min.js +1 -1
  107. package/TestPlan/TestPlanClient.d.ts +48 -14
  108. package/TestPlan/TestPlanClient.js +255 -74
  109. package/TestPlan/TestPlanClient.min.js +1 -1
  110. package/TestResults/TestResultsClient.d.ts +112 -27
  111. package/TestResults/TestResultsClient.js +518 -134
  112. package/TestResults/TestResultsClient.min.js +1 -1
  113. package/Tfvc/Tfvc.d.ts +9 -1
  114. package/Tfvc/TfvcClient.d.ts +3 -2
  115. package/Tfvc/TfvcClient.js +41 -28
  116. package/Tfvc/TfvcClient.min.js +1 -1
  117. package/WebApi/WebApi.d.ts +22 -3
  118. package/Wiki/Wiki.d.ts +51 -0
  119. package/Wiki/WikiClient.d.ts +18 -0
  120. package/Wiki/WikiClient.js +71 -1
  121. package/Wiki/WikiClient.min.js +1 -1
  122. package/Work/Work.d.ts +68 -1
  123. package/Work/WorkClient.d.ts +10 -3
  124. package/Work/WorkClient.js +78 -58
  125. package/Work/WorkClient.min.js +1 -1
  126. package/WorkItemTracking/WorkItemTracking.d.ts +170 -1
  127. package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
  128. package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
  129. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  130. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
  131. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
  132. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  133. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
  134. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
  135. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  136. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
  137. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
  138. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
  139. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  140. 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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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.getTestPointCountByPlanId = function (project, planId, states, outcome, configurations, testers, assignedTo) {
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.2",
599
+ apiVersion: "7.1-preview.3",
534
600
  method: "POST",
535
- routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
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 Cases For a Suite.
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 testCaseIds - Test Case Ids to be fetched.
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, testCaseIds, witFields, returnIdentityRef) {
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: "5.2-preview.2",
566
- routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
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
- testCaseIds: testCaseIds
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 paramter. If configuration Ids is null, it return all the test cases
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: "5.2-preview.2",
607
- routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
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: "5.2-preview.2",
715
+ apiVersion: "7.1-preview.3",
631
716
  method: "DELETE",
632
- routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
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
- testCaseIds: testCaseIds
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: "5.2-preview.2",
769
+ apiVersion: "7.1-preview.3",
656
770
  method: "PATCH",
657
- routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
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: "5.2-preview.1",
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: "5.2-preview.2",
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: "5.2-preview.2",
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 list of points based on point Ids provided.
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 pointIds - ID of test points to be fetched.
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, pointIds, returnIdentityRef, includePointDetails) {
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: "5.2-preview.2",
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: "5.2-preview.2",
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: "5.2-preview.2",
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: "5.2-preview.2",
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: "5.2-preview.2",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
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: "5.2-preview.1",
1162
+ apiVersion: "7.1-preview.1",
982
1163
  method: "PATCH",
983
1164
  routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
984
1165
  routeValues: {