azure-devops-extension-api 1.157.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.
- 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 +201 -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/Common/CommonServices.d.ts +62 -0
- 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/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 +173 -28
- package/Git/GitClient.js +630 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +41 -2
- package/Graph/GraphClient.js +158 -37
- 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 +737 -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 +170 -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
|
@@ -158,7 +158,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
158
158
|
areaPath: areaPath
|
|
159
159
|
};
|
|
160
160
|
return [2 /*return*/, this.beginRequest({
|
|
161
|
-
apiVersion: "5.0",
|
|
161
|
+
apiVersion: "5.0-preview.3",
|
|
162
162
|
method: "POST",
|
|
163
163
|
routeTemplate: "{project}/_apis/wit/attachments/{id}",
|
|
164
164
|
routeValues: {
|
|
@@ -191,7 +191,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
191
191
|
download: download
|
|
192
192
|
};
|
|
193
193
|
return [2 /*return*/, this.beginRequest({
|
|
194
|
-
apiVersion: "5.0",
|
|
194
|
+
apiVersion: "5.0-preview.3",
|
|
195
195
|
httpResponseType: "application/octet-stream",
|
|
196
196
|
routeTemplate: "{project}/_apis/wit/attachments/{id}",
|
|
197
197
|
routeValues: {
|
|
@@ -220,7 +220,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
220
220
|
download: download
|
|
221
221
|
};
|
|
222
222
|
return [2 /*return*/, this.beginRequest({
|
|
223
|
-
apiVersion: "5.0",
|
|
223
|
+
apiVersion: "5.0-preview.3",
|
|
224
224
|
httpResponseType: "application/zip",
|
|
225
225
|
routeTemplate: "{project}/_apis/wit/attachments/{id}",
|
|
226
226
|
routeValues: {
|
|
@@ -250,7 +250,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
250
250
|
errorPolicy: errorPolicy
|
|
251
251
|
};
|
|
252
252
|
return [2 /*return*/, this.beginRequest({
|
|
253
|
-
apiVersion: "5.0",
|
|
253
|
+
apiVersion: "5.0-preview.2",
|
|
254
254
|
routeTemplate: "{project}/_apis/wit/classificationNodes",
|
|
255
255
|
routeValues: {
|
|
256
256
|
project: project
|
|
@@ -274,7 +274,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
274
274
|
'$depth': depth
|
|
275
275
|
};
|
|
276
276
|
return [2 /*return*/, this.beginRequest({
|
|
277
|
-
apiVersion: "5.0",
|
|
277
|
+
apiVersion: "5.0-preview.2",
|
|
278
278
|
routeTemplate: "{project}/_apis/wit/classificationNodes",
|
|
279
279
|
routeValues: {
|
|
280
280
|
project: project
|
|
@@ -296,7 +296,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
296
296
|
return __awaiter(this, void 0, void 0, function () {
|
|
297
297
|
return __generator(this, function (_a) {
|
|
298
298
|
return [2 /*return*/, this.beginRequest({
|
|
299
|
-
apiVersion: "5.0",
|
|
299
|
+
apiVersion: "5.0-preview.2",
|
|
300
300
|
method: "POST",
|
|
301
301
|
routeTemplate: "{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",
|
|
302
302
|
routeValues: {
|
|
@@ -325,7 +325,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
325
325
|
'$reclassifyId': reclassifyId
|
|
326
326
|
};
|
|
327
327
|
return [2 /*return*/, this.beginRequest({
|
|
328
|
-
apiVersion: "5.0",
|
|
328
|
+
apiVersion: "5.0-preview.2",
|
|
329
329
|
method: "DELETE",
|
|
330
330
|
routeTemplate: "{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",
|
|
331
331
|
routeValues: {
|
|
@@ -354,7 +354,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
354
354
|
'$depth': depth
|
|
355
355
|
};
|
|
356
356
|
return [2 /*return*/, this.beginRequest({
|
|
357
|
-
apiVersion: "5.0",
|
|
357
|
+
apiVersion: "5.0-preview.2",
|
|
358
358
|
routeTemplate: "{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",
|
|
359
359
|
routeValues: {
|
|
360
360
|
project: project,
|
|
@@ -378,7 +378,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
378
378
|
return __awaiter(this, void 0, void 0, function () {
|
|
379
379
|
return __generator(this, function (_a) {
|
|
380
380
|
return [2 /*return*/, this.beginRequest({
|
|
381
|
-
apiVersion: "5.0",
|
|
381
|
+
apiVersion: "5.0-preview.2",
|
|
382
382
|
method: "PATCH",
|
|
383
383
|
routeTemplate: "{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",
|
|
384
384
|
routeValues: {
|
|
@@ -453,7 +453,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
453
453
|
return __awaiter(this, void 0, void 0, function () {
|
|
454
454
|
return __generator(this, function (_a) {
|
|
455
455
|
return [2 /*return*/, this.beginRequest({
|
|
456
|
-
apiVersion: "5.0",
|
|
456
|
+
apiVersion: "5.0-preview.2",
|
|
457
457
|
method: "POST",
|
|
458
458
|
routeTemplate: "{project}/_apis/wit/fields/{fieldNameOrRefName}",
|
|
459
459
|
routeValues: {
|
|
@@ -465,7 +465,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
465
465
|
});
|
|
466
466
|
};
|
|
467
467
|
/**
|
|
468
|
-
* Deletes the field.
|
|
468
|
+
* Deletes the field. To undelete a filed, see "Update Field" API.
|
|
469
469
|
*
|
|
470
470
|
* @param fieldNameOrRefName - Field simple name or reference name
|
|
471
471
|
* @param project - Project ID or project name
|
|
@@ -474,7 +474,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
474
474
|
return __awaiter(this, void 0, void 0, function () {
|
|
475
475
|
return __generator(this, function (_a) {
|
|
476
476
|
return [2 /*return*/, this.beginRequest({
|
|
477
|
-
apiVersion: "5.0",
|
|
477
|
+
apiVersion: "5.0-preview.2",
|
|
478
478
|
method: "DELETE",
|
|
479
479
|
routeTemplate: "{project}/_apis/wit/fields/{fieldNameOrRefName}",
|
|
480
480
|
routeValues: {
|
|
@@ -495,7 +495,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
495
495
|
return __awaiter(this, void 0, void 0, function () {
|
|
496
496
|
return __generator(this, function (_a) {
|
|
497
497
|
return [2 /*return*/, this.beginRequest({
|
|
498
|
-
apiVersion: "5.0",
|
|
498
|
+
apiVersion: "5.0-preview.2",
|
|
499
499
|
routeTemplate: "{project}/_apis/wit/fields/{fieldNameOrRefName}",
|
|
500
500
|
routeValues: {
|
|
501
501
|
project: project,
|
|
@@ -519,7 +519,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
519
519
|
'$expand': expand
|
|
520
520
|
};
|
|
521
521
|
return [2 /*return*/, this.beginRequest({
|
|
522
|
-
apiVersion: "5.0",
|
|
522
|
+
apiVersion: "5.0-preview.2",
|
|
523
523
|
routeTemplate: "{project}/_apis/wit/fields/{fieldNameOrRefName}",
|
|
524
524
|
routeValues: {
|
|
525
525
|
project: project
|
|
@@ -529,6 +529,29 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
529
529
|
});
|
|
530
530
|
});
|
|
531
531
|
};
|
|
532
|
+
/**
|
|
533
|
+
* Update a field.
|
|
534
|
+
*
|
|
535
|
+
* @param payload - Payload contains desired value of the field's properties
|
|
536
|
+
* @param fieldNameOrRefName - Name/reference name of the field to be updated
|
|
537
|
+
* @param project - Project ID or project name
|
|
538
|
+
*/
|
|
539
|
+
WorkItemTrackingRestClient.prototype.updateField = function (payload, fieldNameOrRefName, project) {
|
|
540
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
return [2 /*return*/, this.beginRequest({
|
|
543
|
+
apiVersion: "5.0-preview.2",
|
|
544
|
+
method: "PATCH",
|
|
545
|
+
routeTemplate: "{project}/_apis/wit/fields/{fieldNameOrRefName}",
|
|
546
|
+
routeValues: {
|
|
547
|
+
project: project,
|
|
548
|
+
fieldNameOrRefName: fieldNameOrRefName
|
|
549
|
+
},
|
|
550
|
+
body: payload
|
|
551
|
+
})];
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
};
|
|
532
555
|
/**
|
|
533
556
|
* Creates a query, or moves a query.
|
|
534
557
|
*
|
|
@@ -545,7 +568,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
545
568
|
validateWiqlOnly: validateWiqlOnly
|
|
546
569
|
};
|
|
547
570
|
return [2 /*return*/, this.beginRequest({
|
|
548
|
-
apiVersion: "5.0",
|
|
571
|
+
apiVersion: "5.0-preview.2",
|
|
549
572
|
method: "POST",
|
|
550
573
|
routeTemplate: "{project}/_apis/wit/queries/{*query}",
|
|
551
574
|
routeValues: {
|
|
@@ -568,7 +591,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
568
591
|
return __awaiter(this, void 0, void 0, function () {
|
|
569
592
|
return __generator(this, function (_a) {
|
|
570
593
|
return [2 /*return*/, this.beginRequest({
|
|
571
|
-
apiVersion: "5.0",
|
|
594
|
+
apiVersion: "5.0-preview.2",
|
|
572
595
|
method: "DELETE",
|
|
573
596
|
routeTemplate: "{project}/_apis/wit/queries/{*query}",
|
|
574
597
|
routeValues: {
|
|
@@ -597,7 +620,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
597
620
|
'$includeDeleted': includeDeleted
|
|
598
621
|
};
|
|
599
622
|
return [2 /*return*/, this.beginRequest({
|
|
600
|
-
apiVersion: "5.0",
|
|
623
|
+
apiVersion: "5.0-preview.2",
|
|
601
624
|
routeTemplate: "{project}/_apis/wit/queries/{*query}",
|
|
602
625
|
routeValues: {
|
|
603
626
|
project: project
|
|
@@ -615,18 +638,20 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
615
638
|
* @param expand - Include the query string (wiql), clauses, query result columns, and sort options in the results.
|
|
616
639
|
* @param depth - In the folder of queries, return child queries and folders to this depth.
|
|
617
640
|
* @param includeDeleted - Include deleted queries and folders
|
|
641
|
+
* @param useIsoDateFormat - DateTime query clauses will be formatted using a ISO 8601 compliant format
|
|
618
642
|
*/
|
|
619
|
-
WorkItemTrackingRestClient.prototype.getQuery = function (project, query, expand, depth, includeDeleted) {
|
|
643
|
+
WorkItemTrackingRestClient.prototype.getQuery = function (project, query, expand, depth, includeDeleted, useIsoDateFormat) {
|
|
620
644
|
return __awaiter(this, void 0, void 0, function () {
|
|
621
645
|
var queryValues;
|
|
622
646
|
return __generator(this, function (_a) {
|
|
623
647
|
queryValues = {
|
|
624
648
|
'$expand': expand,
|
|
625
649
|
'$depth': depth,
|
|
626
|
-
'$includeDeleted': includeDeleted
|
|
650
|
+
'$includeDeleted': includeDeleted,
|
|
651
|
+
'$useIsoDateFormat': useIsoDateFormat
|
|
627
652
|
};
|
|
628
653
|
return [2 /*return*/, this.beginRequest({
|
|
629
|
-
apiVersion: "5.0",
|
|
654
|
+
apiVersion: "5.0-preview.2",
|
|
630
655
|
routeTemplate: "{project}/_apis/wit/queries/{*query}",
|
|
631
656
|
routeValues: {
|
|
632
657
|
project: project,
|
|
@@ -657,7 +682,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
657
682
|
'$includeDeleted': includeDeleted
|
|
658
683
|
};
|
|
659
684
|
return [2 /*return*/, this.beginRequest({
|
|
660
|
-
apiVersion: "5.0",
|
|
685
|
+
apiVersion: "5.0-preview.2",
|
|
661
686
|
routeTemplate: "{project}/_apis/wit/queries/{*query}",
|
|
662
687
|
routeValues: {
|
|
663
688
|
project: project
|
|
@@ -683,7 +708,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
683
708
|
'$undeleteDescendants': undeleteDescendants
|
|
684
709
|
};
|
|
685
710
|
return [2 /*return*/, this.beginRequest({
|
|
686
|
-
apiVersion: "5.0",
|
|
711
|
+
apiVersion: "5.0-preview.2",
|
|
687
712
|
method: "PATCH",
|
|
688
713
|
routeTemplate: "{project}/_apis/wit/queries/{*query}",
|
|
689
714
|
routeValues: {
|
|
@@ -706,7 +731,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
706
731
|
return __awaiter(this, void 0, void 0, function () {
|
|
707
732
|
return __generator(this, function (_a) {
|
|
708
733
|
return [2 /*return*/, this.beginRequest({
|
|
709
|
-
apiVersion: "5.0",
|
|
734
|
+
apiVersion: "5.0-preview.1",
|
|
710
735
|
method: "POST",
|
|
711
736
|
routeTemplate: "{project}/_apis/wit/queriesBatch",
|
|
712
737
|
routeValues: {
|
|
@@ -727,7 +752,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
727
752
|
return __awaiter(this, void 0, void 0, function () {
|
|
728
753
|
return __generator(this, function (_a) {
|
|
729
754
|
return [2 /*return*/, this.beginRequest({
|
|
730
|
-
apiVersion: "5.0",
|
|
755
|
+
apiVersion: "5.0-preview.2",
|
|
731
756
|
method: "DELETE",
|
|
732
757
|
routeTemplate: "{project}/_apis/wit/recyclebin/{id}",
|
|
733
758
|
routeValues: {
|
|
@@ -748,7 +773,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
748
773
|
return __awaiter(this, void 0, void 0, function () {
|
|
749
774
|
return __generator(this, function (_a) {
|
|
750
775
|
return [2 /*return*/, this.beginRequest({
|
|
751
|
-
apiVersion: "5.0",
|
|
776
|
+
apiVersion: "5.0-preview.2",
|
|
752
777
|
routeTemplate: "{project}/_apis/wit/recyclebin/{id}",
|
|
753
778
|
routeValues: {
|
|
754
779
|
project: project,
|
|
@@ -772,7 +797,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
772
797
|
ids: ids && ids.join(",")
|
|
773
798
|
};
|
|
774
799
|
return [2 /*return*/, this.beginRequest({
|
|
775
|
-
apiVersion: "5.0",
|
|
800
|
+
apiVersion: "5.0-preview.2",
|
|
776
801
|
routeTemplate: "{project}/_apis/wit/recyclebin/{id}",
|
|
777
802
|
routeValues: {
|
|
778
803
|
project: project
|
|
@@ -791,7 +816,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
791
816
|
return __awaiter(this, void 0, void 0, function () {
|
|
792
817
|
return __generator(this, function (_a) {
|
|
793
818
|
return [2 /*return*/, this.beginRequest({
|
|
794
|
-
apiVersion: "5.0",
|
|
819
|
+
apiVersion: "5.0-preview.2",
|
|
795
820
|
routeTemplate: "{project}/_apis/wit/recyclebin/{id}",
|
|
796
821
|
routeValues: {
|
|
797
822
|
project: project
|
|
@@ -811,7 +836,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
811
836
|
return __awaiter(this, void 0, void 0, function () {
|
|
812
837
|
return __generator(this, function (_a) {
|
|
813
838
|
return [2 /*return*/, this.beginRequest({
|
|
814
|
-
apiVersion: "5.0",
|
|
839
|
+
apiVersion: "5.0-preview.2",
|
|
815
840
|
method: "PATCH",
|
|
816
841
|
routeTemplate: "{project}/_apis/wit/recyclebin/{id}",
|
|
817
842
|
routeValues: {
|
|
@@ -839,7 +864,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
839
864
|
'$expand': expand
|
|
840
865
|
};
|
|
841
866
|
return [2 /*return*/, this.beginRequest({
|
|
842
|
-
apiVersion: "5.0",
|
|
867
|
+
apiVersion: "5.0-preview.3",
|
|
843
868
|
routeTemplate: "{project}/_apis/wit/workItems/{id}/revisions/{revisionNumber}",
|
|
844
869
|
routeValues: {
|
|
845
870
|
project: project,
|
|
@@ -870,7 +895,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
870
895
|
'$expand': expand
|
|
871
896
|
};
|
|
872
897
|
return [2 /*return*/, this.beginRequest({
|
|
873
|
-
apiVersion: "5.0",
|
|
898
|
+
apiVersion: "5.0-preview.3",
|
|
874
899
|
routeTemplate: "{project}/_apis/wit/workItems/{id}/revisions/{revisionNumber}",
|
|
875
900
|
routeValues: {
|
|
876
901
|
project: project,
|
|
@@ -881,6 +906,27 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
881
906
|
});
|
|
882
907
|
});
|
|
883
908
|
};
|
|
909
|
+
/**
|
|
910
|
+
* RESTful method to send mail for selected/queried work items.
|
|
911
|
+
*
|
|
912
|
+
* @param body -
|
|
913
|
+
* @param project - Project ID or project name
|
|
914
|
+
*/
|
|
915
|
+
WorkItemTrackingRestClient.prototype.sendMail = function (body, project) {
|
|
916
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
917
|
+
return __generator(this, function (_a) {
|
|
918
|
+
return [2 /*return*/, this.beginRequest({
|
|
919
|
+
apiVersion: "5.0-preview.1",
|
|
920
|
+
method: "POST",
|
|
921
|
+
routeTemplate: "{project}/_apis/wit/sendMail",
|
|
922
|
+
routeValues: {
|
|
923
|
+
project: project
|
|
924
|
+
},
|
|
925
|
+
body: body
|
|
926
|
+
})];
|
|
927
|
+
});
|
|
928
|
+
});
|
|
929
|
+
};
|
|
884
930
|
/**
|
|
885
931
|
* Creates a template
|
|
886
932
|
*
|
|
@@ -1011,7 +1057,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1011
1057
|
return __awaiter(this, void 0, void 0, function () {
|
|
1012
1058
|
return __generator(this, function (_a) {
|
|
1013
1059
|
return [2 /*return*/, this.beginRequest({
|
|
1014
|
-
apiVersion: "5.0",
|
|
1060
|
+
apiVersion: "5.0-preview.3",
|
|
1015
1061
|
routeTemplate: "{project}/_apis/wit/workItems/{id}/updates/{updateNumber}",
|
|
1016
1062
|
routeValues: {
|
|
1017
1063
|
project: project,
|
|
@@ -1039,7 +1085,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1039
1085
|
'$skip': skip
|
|
1040
1086
|
};
|
|
1041
1087
|
return [2 /*return*/, this.beginRequest({
|
|
1042
|
-
apiVersion: "5.0",
|
|
1088
|
+
apiVersion: "5.0-preview.3",
|
|
1043
1089
|
routeTemplate: "{project}/_apis/wit/workItems/{id}/updates/{updateNumber}",
|
|
1044
1090
|
routeValues: {
|
|
1045
1091
|
project: project,
|
|
@@ -1068,7 +1114,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1068
1114
|
'$top': top
|
|
1069
1115
|
};
|
|
1070
1116
|
return [2 /*return*/, this.beginRequest({
|
|
1071
|
-
apiVersion: "5.0",
|
|
1117
|
+
apiVersion: "5.0-preview.2",
|
|
1072
1118
|
method: "POST",
|
|
1073
1119
|
routeTemplate: "{project}/{team}/_apis/wit/wiql",
|
|
1074
1120
|
routeValues: {
|
|
@@ -1100,7 +1146,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1100
1146
|
'$top': top
|
|
1101
1147
|
};
|
|
1102
1148
|
return [2 /*return*/, this.beginRequest({
|
|
1103
|
-
apiVersion: "5.0",
|
|
1149
|
+
apiVersion: "5.0-preview.2",
|
|
1104
1150
|
method: "HEAD",
|
|
1105
1151
|
routeTemplate: "{project}/{team}/_apis/wit/wiql/{id}",
|
|
1106
1152
|
routeValues: {
|
|
@@ -1108,7 +1154,8 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1108
1154
|
team: team,
|
|
1109
1155
|
id: id
|
|
1110
1156
|
},
|
|
1111
|
-
queryParams: queryValues
|
|
1157
|
+
queryParams: queryValues,
|
|
1158
|
+
returnRawResponse: true
|
|
1112
1159
|
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1113
1160
|
return __generator(this, function (_a) {
|
|
1114
1161
|
return [2 /*return*/, Number(response.headers.get("X-Total-Count"))];
|
|
@@ -1135,7 +1182,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1135
1182
|
'$top': top
|
|
1136
1183
|
};
|
|
1137
1184
|
return [2 /*return*/, this.beginRequest({
|
|
1138
|
-
apiVersion: "5.0",
|
|
1185
|
+
apiVersion: "5.0-preview.2",
|
|
1139
1186
|
routeTemplate: "{project}/{team}/_apis/wit/wiql/{id}",
|
|
1140
1187
|
routeValues: {
|
|
1141
1188
|
project: project,
|
|
@@ -1163,7 +1210,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1163
1210
|
v: v
|
|
1164
1211
|
};
|
|
1165
1212
|
return [2 /*return*/, this.beginRequest({
|
|
1166
|
-
apiVersion: "5.0",
|
|
1213
|
+
apiVersion: "5.0-preview.1",
|
|
1167
1214
|
routeTemplate: "_apis/wit/workItemIcons/{icon}",
|
|
1168
1215
|
routeValues: {
|
|
1169
1216
|
icon: icon
|
|
@@ -1181,7 +1228,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1181
1228
|
return __awaiter(this, void 0, void 0, function () {
|
|
1182
1229
|
return __generator(this, function (_a) {
|
|
1183
1230
|
return [2 /*return*/, this.beginRequest({
|
|
1184
|
-
apiVersion: "5.0",
|
|
1231
|
+
apiVersion: "5.0-preview.1",
|
|
1185
1232
|
routeTemplate: "_apis/wit/workItemIcons/{icon}"
|
|
1186
1233
|
})];
|
|
1187
1234
|
});
|
|
@@ -1203,7 +1250,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1203
1250
|
v: v
|
|
1204
1251
|
};
|
|
1205
1252
|
return [2 /*return*/, this.beginRequest({
|
|
1206
|
-
apiVersion: "5.0",
|
|
1253
|
+
apiVersion: "5.0-preview.1",
|
|
1207
1254
|
httpResponseType: "image/svg+xml",
|
|
1208
1255
|
routeTemplate: "_apis/wit/workItemIcons/{icon}",
|
|
1209
1256
|
routeValues: {
|
|
@@ -1230,7 +1277,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1230
1277
|
v: v
|
|
1231
1278
|
};
|
|
1232
1279
|
return [2 /*return*/, this.beginRequest({
|
|
1233
|
-
apiVersion: "5.0",
|
|
1280
|
+
apiVersion: "5.0-preview.1",
|
|
1234
1281
|
httpResponseType: "image/xaml+xml",
|
|
1235
1282
|
routeTemplate: "_apis/wit/workItemIcons/{icon}",
|
|
1236
1283
|
routeValues: {
|
|
@@ -1261,7 +1308,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1261
1308
|
startDateTime: startDateTime
|
|
1262
1309
|
};
|
|
1263
1310
|
return [2 /*return*/, this.beginRequest({
|
|
1264
|
-
apiVersion: "5.0",
|
|
1311
|
+
apiVersion: "5.0-preview.3",
|
|
1265
1312
|
routeTemplate: "{project}/_apis/wit/reporting/workItemLinks",
|
|
1266
1313
|
routeValues: {
|
|
1267
1314
|
project: project
|
|
@@ -1280,7 +1327,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1280
1327
|
return __awaiter(this, void 0, void 0, function () {
|
|
1281
1328
|
return __generator(this, function (_a) {
|
|
1282
1329
|
return [2 /*return*/, this.beginRequest({
|
|
1283
|
-
apiVersion: "5.0",
|
|
1330
|
+
apiVersion: "5.0-preview.2",
|
|
1284
1331
|
routeTemplate: "_apis/wit/workItemRelationTypes/{relation}",
|
|
1285
1332
|
routeValues: {
|
|
1286
1333
|
relation: relation
|
|
@@ -1297,7 +1344,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1297
1344
|
return __awaiter(this, void 0, void 0, function () {
|
|
1298
1345
|
return __generator(this, function (_a) {
|
|
1299
1346
|
return [2 /*return*/, this.beginRequest({
|
|
1300
|
-
apiVersion: "5.0",
|
|
1347
|
+
apiVersion: "5.0-preview.2",
|
|
1301
1348
|
routeTemplate: "_apis/wit/workItemRelationTypes/{relation}"
|
|
1302
1349
|
})];
|
|
1303
1350
|
});
|
|
@@ -1337,7 +1384,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1337
1384
|
'$maxPageSize': maxPageSize
|
|
1338
1385
|
};
|
|
1339
1386
|
return [2 /*return*/, this.beginRequest({
|
|
1340
|
-
apiVersion: "5.0",
|
|
1387
|
+
apiVersion: "5.0-preview.2",
|
|
1341
1388
|
routeTemplate: "{project}/_apis/wit/reporting/workItemRevisions",
|
|
1342
1389
|
routeValues: {
|
|
1343
1390
|
project: project
|
|
@@ -1366,7 +1413,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1366
1413
|
'$expand': expand
|
|
1367
1414
|
};
|
|
1368
1415
|
return [2 /*return*/, this.beginRequest({
|
|
1369
|
-
apiVersion: "5.0",
|
|
1416
|
+
apiVersion: "5.0-preview.2",
|
|
1370
1417
|
method: "POST",
|
|
1371
1418
|
routeTemplate: "{project}/_apis/wit/reporting/workItemRevisions",
|
|
1372
1419
|
routeValues: {
|
|
@@ -1400,7 +1447,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1400
1447
|
'$expand': expand
|
|
1401
1448
|
};
|
|
1402
1449
|
return [2 /*return*/, this.beginRequest({
|
|
1403
|
-
apiVersion: "5.0",
|
|
1450
|
+
apiVersion: "5.0-preview.3",
|
|
1404
1451
|
method: "POST",
|
|
1405
1452
|
routeTemplate: "{project}/_apis/wit/workItems/${type}",
|
|
1406
1453
|
routeValues: {
|
|
@@ -1435,7 +1482,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1435
1482
|
'$expand': expand
|
|
1436
1483
|
};
|
|
1437
1484
|
return [2 /*return*/, this.beginRequest({
|
|
1438
|
-
apiVersion: "5.0",
|
|
1485
|
+
apiVersion: "5.0-preview.3",
|
|
1439
1486
|
routeTemplate: "{project}/_apis/wit/workItems/${type}",
|
|
1440
1487
|
routeValues: {
|
|
1441
1488
|
project: project,
|
|
@@ -1461,7 +1508,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1461
1508
|
destroy: destroy
|
|
1462
1509
|
};
|
|
1463
1510
|
return [2 /*return*/, this.beginRequest({
|
|
1464
|
-
apiVersion: "5.0",
|
|
1511
|
+
apiVersion: "5.0-preview.3",
|
|
1465
1512
|
method: "DELETE",
|
|
1466
1513
|
routeTemplate: "{project}/_apis/wit/workItems/{id}",
|
|
1467
1514
|
routeValues: {
|
|
@@ -1492,7 +1539,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1492
1539
|
'$expand': expand
|
|
1493
1540
|
};
|
|
1494
1541
|
return [2 /*return*/, this.beginRequest({
|
|
1495
|
-
apiVersion: "5.0",
|
|
1542
|
+
apiVersion: "5.0-preview.3",
|
|
1496
1543
|
routeTemplate: "{project}/_apis/wit/workItems/{id}",
|
|
1497
1544
|
routeValues: {
|
|
1498
1545
|
project: project,
|
|
@@ -1525,7 +1572,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1525
1572
|
errorPolicy: errorPolicy
|
|
1526
1573
|
};
|
|
1527
1574
|
return [2 /*return*/, this.beginRequest({
|
|
1528
|
-
apiVersion: "5.0",
|
|
1575
|
+
apiVersion: "5.0-preview.3",
|
|
1529
1576
|
routeTemplate: "{project}/_apis/wit/workItems/{id}",
|
|
1530
1577
|
routeValues: {
|
|
1531
1578
|
project: project
|
|
@@ -1557,7 +1604,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1557
1604
|
'$expand': expand
|
|
1558
1605
|
};
|
|
1559
1606
|
return [2 /*return*/, this.beginRequest({
|
|
1560
|
-
apiVersion: "5.0",
|
|
1607
|
+
apiVersion: "5.0-preview.3",
|
|
1561
1608
|
method: "PATCH",
|
|
1562
1609
|
routeTemplate: "{project}/_apis/wit/workItems/{id}",
|
|
1563
1610
|
routeValues: {
|
|
@@ -1583,7 +1630,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1583
1630
|
return __awaiter(this, void 0, void 0, function () {
|
|
1584
1631
|
return __generator(this, function (_a) {
|
|
1585
1632
|
return [2 /*return*/, this.beginRequest({
|
|
1586
|
-
apiVersion: "5.0",
|
|
1633
|
+
apiVersion: "5.0-preview.1",
|
|
1587
1634
|
method: "POST",
|
|
1588
1635
|
routeTemplate: "{project}/_apis/wit/workItemsBatch",
|
|
1589
1636
|
routeValues: {
|
|
@@ -1642,7 +1689,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1642
1689
|
return __awaiter(this, void 0, void 0, function () {
|
|
1643
1690
|
return __generator(this, function (_a) {
|
|
1644
1691
|
return [2 /*return*/, this.beginRequest({
|
|
1645
|
-
apiVersion: "5.0",
|
|
1692
|
+
apiVersion: "5.0-preview.2",
|
|
1646
1693
|
routeTemplate: "{project}/_apis/wit/workItemTypeCategories/{category}",
|
|
1647
1694
|
routeValues: {
|
|
1648
1695
|
project: project
|
|
@@ -1661,7 +1708,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1661
1708
|
return __awaiter(this, void 0, void 0, function () {
|
|
1662
1709
|
return __generator(this, function (_a) {
|
|
1663
1710
|
return [2 /*return*/, this.beginRequest({
|
|
1664
|
-
apiVersion: "5.0",
|
|
1711
|
+
apiVersion: "5.0-preview.2",
|
|
1665
1712
|
routeTemplate: "{project}/_apis/wit/workItemTypeCategories/{category}",
|
|
1666
1713
|
routeValues: {
|
|
1667
1714
|
project: project,
|
|
@@ -1715,7 +1762,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1715
1762
|
return __awaiter(this, void 0, void 0, function () {
|
|
1716
1763
|
return __generator(this, function (_a) {
|
|
1717
1764
|
return [2 /*return*/, this.beginRequest({
|
|
1718
|
-
apiVersion: "5.0",
|
|
1765
|
+
apiVersion: "5.0-preview.2",
|
|
1719
1766
|
routeTemplate: "{project}/_apis/wit/workItemTypes/{type}",
|
|
1720
1767
|
routeValues: {
|
|
1721
1768
|
project: project,
|
|
@@ -1734,7 +1781,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1734
1781
|
return __awaiter(this, void 0, void 0, function () {
|
|
1735
1782
|
return __generator(this, function (_a) {
|
|
1736
1783
|
return [2 /*return*/, this.beginRequest({
|
|
1737
|
-
apiVersion: "5.0",
|
|
1784
|
+
apiVersion: "5.0-preview.2",
|
|
1738
1785
|
routeTemplate: "{project}/_apis/wit/workItemTypes/{type}",
|
|
1739
1786
|
routeValues: {
|
|
1740
1787
|
project: project
|
|
@@ -1758,7 +1805,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1758
1805
|
'$expand': expand
|
|
1759
1806
|
};
|
|
1760
1807
|
return [2 /*return*/, this.beginRequest({
|
|
1761
|
-
apiVersion: "5.0",
|
|
1808
|
+
apiVersion: "5.0-preview.3",
|
|
1762
1809
|
routeTemplate: "{project}/_apis/wit/workitemtypes/{type}/fields/{field}",
|
|
1763
1810
|
routeValues: {
|
|
1764
1811
|
project: project,
|
|
@@ -1785,7 +1832,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1785
1832
|
'$expand': expand
|
|
1786
1833
|
};
|
|
1787
1834
|
return [2 /*return*/, this.beginRequest({
|
|
1788
|
-
apiVersion: "5.0",
|
|
1835
|
+
apiVersion: "5.0-preview.3",
|
|
1789
1836
|
routeTemplate: "{project}/_apis/wit/workitemtypes/{type}/fields/{field}",
|
|
1790
1837
|
routeValues: {
|
|
1791
1838
|
project: project,
|
|
@@ -1832,7 +1879,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1832
1879
|
exportGlobalLists: exportGlobalLists
|
|
1833
1880
|
};
|
|
1834
1881
|
return [2 /*return*/, this.beginRequest({
|
|
1835
|
-
apiVersion: "5.0",
|
|
1882
|
+
apiVersion: "5.0-preview.1",
|
|
1836
1883
|
routeTemplate: "{project}/_apis/wit/workItemTypeTemplate/{type}",
|
|
1837
1884
|
routeValues: {
|
|
1838
1885
|
project: project,
|
|
@@ -1853,7 +1900,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1853
1900
|
return __awaiter(this, void 0, void 0, function () {
|
|
1854
1901
|
return __generator(this, function (_a) {
|
|
1855
1902
|
return [2 /*return*/, this.beginRequest({
|
|
1856
|
-
apiVersion: "5.0",
|
|
1903
|
+
apiVersion: "5.0-preview.1",
|
|
1857
1904
|
method: "POST",
|
|
1858
1905
|
routeTemplate: "{project}/_apis/wit/workItemTypeTemplate/{type}",
|
|
1859
1906
|
routeValues: {
|