azure-devops-extension-api 2.224.0 → 2.226.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.js +3 -3
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/Build.d.ts +70 -0
- package/Build/BuildClient.js +97 -97
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.js +33 -33
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/DashboardClient.js +13 -13
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagementClient.js +25 -25
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/FavoriteClient.js +10 -10
- package/Favorite/FavoriteClient.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/FileContainerClient.js +4 -4
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/Gallery/GalleryClient.js +83 -83
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +17 -0
- package/Git/GitClient.d.ts +38 -11
- package/Git/GitClient.js +269 -167
- package/Git/GitClient.min.js +1 -1
- package/Graph/GraphClient.js +40 -40
- package/Graph/GraphClient.min.js +1 -1
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/NotificationClient.js +24 -24
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.js +1 -1
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/PipelinesClient.js +10 -10
- package/Pipelines/PipelinesClient.min.js +1 -1
- package/Policy/PolicyClient.js +12 -12
- 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/ReleaseClient.js +88 -88
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.js +25 -25
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgentClient.js +155 -155
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/TestClient.js +76 -76
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +17 -0
- package/TestPlan/TestPlanClient.d.ts +7 -0
- package/TestPlan/TestPlanClient.js +63 -41
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.js +96 -96
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/TfvcClient.js +24 -24
- package/Tfvc/TfvcClient.min.js +1 -1
- package/Work/WorkClient.js +56 -56
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +3 -0
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +1 -1
- package/WorkItemTracking/WorkItemTrackingClient.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +57 -57
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +46 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
63
63
|
return __awaiter(this, void 0, void 0, function () {
|
|
64
64
|
return __generator(this, function (_a) {
|
|
65
65
|
return [2 /*return*/, this.beginRequest({
|
|
66
|
-
apiVersion: "7.
|
|
66
|
+
apiVersion: "7.2-preview.1",
|
|
67
67
|
method: "POST",
|
|
68
68
|
routeTemplate: "_apis/notification/BatchNotificationOperations",
|
|
69
69
|
body: operation
|
|
@@ -88,7 +88,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
88
88
|
endTime: endTime
|
|
89
89
|
};
|
|
90
90
|
return [2 /*return*/, this.beginRequest({
|
|
91
|
-
apiVersion: "7.
|
|
91
|
+
apiVersion: "7.2-preview.1",
|
|
92
92
|
routeTemplate: "_apis/notification/DiagnosticLogs/{source}/entries/{entryId}",
|
|
93
93
|
routeValues: {
|
|
94
94
|
source: source,
|
|
@@ -108,7 +108,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
108
108
|
return __awaiter(this, void 0, void 0, function () {
|
|
109
109
|
return __generator(this, function (_a) {
|
|
110
110
|
return [2 /*return*/, this.beginRequest({
|
|
111
|
-
apiVersion: "7.
|
|
111
|
+
apiVersion: "7.2-preview.1",
|
|
112
112
|
routeTemplate: "_apis/notification/subscriptions/{subscriptionId}/diagnostics",
|
|
113
113
|
routeValues: {
|
|
114
114
|
subscriptionId: subscriptionId
|
|
@@ -127,7 +127,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
127
127
|
return __awaiter(this, void 0, void 0, function () {
|
|
128
128
|
return __generator(this, function (_a) {
|
|
129
129
|
return [2 /*return*/, this.beginRequest({
|
|
130
|
-
apiVersion: "7.
|
|
130
|
+
apiVersion: "7.2-preview.1",
|
|
131
131
|
method: "PUT",
|
|
132
132
|
routeTemplate: "_apis/notification/subscriptions/{subscriptionId}/diagnostics",
|
|
133
133
|
routeValues: {
|
|
@@ -147,7 +147,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
147
147
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
148
|
return __generator(this, function (_a) {
|
|
149
149
|
return [2 /*return*/, this.beginRequest({
|
|
150
|
-
apiVersion: "7.
|
|
150
|
+
apiVersion: "7.2-preview.1",
|
|
151
151
|
method: "POST",
|
|
152
152
|
routeTemplate: "_apis/notification/Events",
|
|
153
153
|
body: notificationEvent
|
|
@@ -164,7 +164,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
164
164
|
return __awaiter(this, void 0, void 0, function () {
|
|
165
165
|
return __generator(this, function (_a) {
|
|
166
166
|
return [2 /*return*/, this.beginRequest({
|
|
167
|
-
apiVersion: "7.
|
|
167
|
+
apiVersion: "7.2-preview.1",
|
|
168
168
|
method: "POST",
|
|
169
169
|
routeTemplate: "_apis/notification/EventTransforms",
|
|
170
170
|
body: transformRequest
|
|
@@ -180,7 +180,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
180
180
|
return __awaiter(this, void 0, void 0, function () {
|
|
181
181
|
return __generator(this, function (_a) {
|
|
182
182
|
return [2 /*return*/, this.beginRequest({
|
|
183
|
-
apiVersion: "7.
|
|
183
|
+
apiVersion: "7.2-preview.1",
|
|
184
184
|
method: "POST",
|
|
185
185
|
routeTemplate: "_apis/notification/eventTypes/{eventType}/fieldValuesQuery",
|
|
186
186
|
routeValues: {
|
|
@@ -200,7 +200,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
200
200
|
return __awaiter(this, void 0, void 0, function () {
|
|
201
201
|
return __generator(this, function (_a) {
|
|
202
202
|
return [2 /*return*/, this.beginRequest({
|
|
203
|
-
apiVersion: "7.
|
|
203
|
+
apiVersion: "7.2-preview.1",
|
|
204
204
|
routeTemplate: "_apis/notification/EventTypes/{eventType}",
|
|
205
205
|
routeValues: {
|
|
206
206
|
eventType: eventType
|
|
@@ -222,7 +222,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
222
222
|
publisherId: publisherId
|
|
223
223
|
};
|
|
224
224
|
return [2 /*return*/, this.beginRequest({
|
|
225
|
-
apiVersion: "7.
|
|
225
|
+
apiVersion: "7.2-preview.1",
|
|
226
226
|
routeTemplate: "_apis/notification/EventTypes/{eventType}",
|
|
227
227
|
queryParams: queryValues
|
|
228
228
|
})];
|
|
@@ -236,7 +236,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
236
236
|
return __awaiter(this, void 0, void 0, function () {
|
|
237
237
|
return __generator(this, function (_a) {
|
|
238
238
|
return [2 /*return*/, this.beginRequest({
|
|
239
|
-
apiVersion: "7.
|
|
239
|
+
apiVersion: "7.2-preview.1",
|
|
240
240
|
routeTemplate: "_apis/notification/NotificationReasons/{notificationId}",
|
|
241
241
|
routeValues: {
|
|
242
242
|
notificationId: notificationId
|
|
@@ -256,7 +256,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
256
256
|
notificationIds: notificationIds
|
|
257
257
|
};
|
|
258
258
|
return [2 /*return*/, this.beginRequest({
|
|
259
|
-
apiVersion: "7.
|
|
259
|
+
apiVersion: "7.2-preview.1",
|
|
260
260
|
routeTemplate: "_apis/notification/NotificationReasons/{notificationId}",
|
|
261
261
|
queryParams: queryValues
|
|
262
262
|
})];
|
|
@@ -269,7 +269,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
269
269
|
return __awaiter(this, void 0, void 0, function () {
|
|
270
270
|
return __generator(this, function (_a) {
|
|
271
271
|
return [2 /*return*/, this.beginRequest({
|
|
272
|
-
apiVersion: "7.
|
|
272
|
+
apiVersion: "7.2-preview.1",
|
|
273
273
|
routeTemplate: "_apis/notification/Settings"
|
|
274
274
|
})];
|
|
275
275
|
});
|
|
@@ -282,7 +282,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
282
282
|
return __awaiter(this, void 0, void 0, function () {
|
|
283
283
|
return __generator(this, function (_a) {
|
|
284
284
|
return [2 /*return*/, this.beginRequest({
|
|
285
|
-
apiVersion: "7.
|
|
285
|
+
apiVersion: "7.2-preview.1",
|
|
286
286
|
method: "PATCH",
|
|
287
287
|
routeTemplate: "_apis/notification/Settings",
|
|
288
288
|
body: updateParameters
|
|
@@ -299,7 +299,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
299
299
|
return __awaiter(this, void 0, void 0, function () {
|
|
300
300
|
return __generator(this, function (_a) {
|
|
301
301
|
return [2 /*return*/, this.beginRequest({
|
|
302
|
-
apiVersion: "7.
|
|
302
|
+
apiVersion: "7.2-preview.1",
|
|
303
303
|
routeTemplate: "_apis/notification/Subscribers/{subscriberId}",
|
|
304
304
|
routeValues: {
|
|
305
305
|
subscriberId: subscriberId
|
|
@@ -318,7 +318,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
318
318
|
return __awaiter(this, void 0, void 0, function () {
|
|
319
319
|
return __generator(this, function (_a) {
|
|
320
320
|
return [2 /*return*/, this.beginRequest({
|
|
321
|
-
apiVersion: "7.
|
|
321
|
+
apiVersion: "7.2-preview.1",
|
|
322
322
|
method: "PATCH",
|
|
323
323
|
routeTemplate: "_apis/notification/Subscribers/{subscriberId}",
|
|
324
324
|
routeValues: {
|
|
@@ -338,7 +338,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
338
338
|
return __awaiter(this, void 0, void 0, function () {
|
|
339
339
|
return __generator(this, function (_a) {
|
|
340
340
|
return [2 /*return*/, this.beginRequest({
|
|
341
|
-
apiVersion: "7.
|
|
341
|
+
apiVersion: "7.2-preview.1",
|
|
342
342
|
method: "POST",
|
|
343
343
|
routeTemplate: "_apis/notification/SubscriptionQuery",
|
|
344
344
|
body: subscriptionQuery
|
|
@@ -355,7 +355,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
355
355
|
return __awaiter(this, void 0, void 0, function () {
|
|
356
356
|
return __generator(this, function (_a) {
|
|
357
357
|
return [2 /*return*/, this.beginRequest({
|
|
358
|
-
apiVersion: "7.
|
|
358
|
+
apiVersion: "7.2-preview.1",
|
|
359
359
|
method: "POST",
|
|
360
360
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}",
|
|
361
361
|
body: createParameters
|
|
@@ -372,7 +372,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
372
372
|
return __awaiter(this, void 0, void 0, function () {
|
|
373
373
|
return __generator(this, function (_a) {
|
|
374
374
|
return [2 /*return*/, this.beginRequest({
|
|
375
|
-
apiVersion: "7.
|
|
375
|
+
apiVersion: "7.2-preview.1",
|
|
376
376
|
method: "DELETE",
|
|
377
377
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}",
|
|
378
378
|
routeValues: {
|
|
@@ -396,7 +396,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
396
396
|
queryFlags: queryFlags
|
|
397
397
|
};
|
|
398
398
|
return [2 /*return*/, this.beginRequest({
|
|
399
|
-
apiVersion: "7.
|
|
399
|
+
apiVersion: "7.2-preview.1",
|
|
400
400
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}",
|
|
401
401
|
routeValues: {
|
|
402
402
|
subscriptionId: subscriptionId
|
|
@@ -423,7 +423,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
423
423
|
queryFlags: queryFlags
|
|
424
424
|
};
|
|
425
425
|
return [2 /*return*/, this.beginRequest({
|
|
426
|
-
apiVersion: "7.
|
|
426
|
+
apiVersion: "7.2-preview.1",
|
|
427
427
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}",
|
|
428
428
|
queryParams: queryValues
|
|
429
429
|
})];
|
|
@@ -440,7 +440,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
440
440
|
return __awaiter(this, void 0, void 0, function () {
|
|
441
441
|
return __generator(this, function (_a) {
|
|
442
442
|
return [2 /*return*/, this.beginRequest({
|
|
443
|
-
apiVersion: "7.
|
|
443
|
+
apiVersion: "7.2-preview.1",
|
|
444
444
|
method: "PATCH",
|
|
445
445
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}",
|
|
446
446
|
routeValues: {
|
|
@@ -459,7 +459,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
459
459
|
return __awaiter(this, void 0, void 0, function () {
|
|
460
460
|
return __generator(this, function (_a) {
|
|
461
461
|
return [2 /*return*/, this.beginRequest({
|
|
462
|
-
apiVersion: "7.
|
|
462
|
+
apiVersion: "7.2-preview.1",
|
|
463
463
|
routeTemplate: "_apis/notification/SubscriptionTemplates"
|
|
464
464
|
})];
|
|
465
465
|
});
|
|
@@ -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: "7.
|
|
477
|
+
apiVersion: "7.2-preview.1",
|
|
478
478
|
method: "POST",
|
|
479
479
|
routeTemplate: "_apis/notification/TokenNotificationEvent",
|
|
480
480
|
body: notificationEvent
|
|
@@ -493,7 +493,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
493
493
|
return __awaiter(this, void 0, void 0, function () {
|
|
494
494
|
return __generator(this, function (_a) {
|
|
495
495
|
return [2 /*return*/, this.beginRequest({
|
|
496
|
-
apiVersion: "7.
|
|
496
|
+
apiVersion: "7.2-preview.1",
|
|
497
497
|
method: "PUT",
|
|
498
498
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}/UserSettings/{userId}",
|
|
499
499
|
routeValues: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function s(t){try{a(n.next(t))}catch(t){o(t)}}function u(t){try{a(n.throw(t))}catch(t){o(t)}}function a(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(s,u)}a((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function i(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}var n,r,o,s,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase"],function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.performBatchNotificationOperations=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function s(t){try{a(n.next(t))}catch(t){o(t)}}function u(t){try{a(n.throw(t))}catch(t){o(t)}}function a(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(s,u)}a((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function i(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}var n,r,o,s,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase"],function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.performBatchNotificationOperations=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/notification/BatchNotificationOperations",body:t})]})})},e.prototype.listLogs=function(t,e,i,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={startTime:i,endTime:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/DiagnosticLogs/{source}/entries/{entryId}",routeValues:{source:t,entryId:e},queryParams:r})]})})},e.prototype.getSubscriptionDiagnostics=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/subscriptions/{subscriptionId}/diagnostics",routeValues:{subscriptionId:t}})]})})},e.prototype.updateSubscriptionDiagnostics=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/notification/subscriptions/{subscriptionId}/diagnostics",routeValues:{subscriptionId:e},body:t})]})})},e.prototype.publishEvent=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/notification/Events",body:t})]})})},e.prototype.transformEvent=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/notification/EventTransforms",body:t})]})})},e.prototype.queryEventTypes=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/notification/eventTypes/{eventType}/fieldValuesQuery",routeValues:{eventType:e},body:t})]})})},e.prototype.getEventType=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/EventTypes/{eventType}",routeValues:{eventType:t}})]})})},e.prototype.listEventTypes=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(i){return e={publisherId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/EventTypes/{eventType}",queryParams:e})]})})},e.prototype.getNotificationReasons=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/NotificationReasons/{notificationId}",routeValues:{notificationId:t}})]})})},e.prototype.listNotificationReasons=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(i){return e={notificationIds:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/NotificationReasons/{notificationId}",queryParams:e})]})})},e.prototype.getSettings=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/Settings"})]})})},e.prototype.updateSettings=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/notification/Settings",body:t})]})})},e.prototype.getSubscriber=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/Subscribers/{subscriberId}",routeValues:{subscriberId:t}})]})})},e.prototype.updateSubscriber=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/notification/Subscribers/{subscriberId}",routeValues:{subscriberId:e},body:t})]})})},e.prototype.querySubscriptions=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/notification/SubscriptionQuery",body:t})]})})},e.prototype.createSubscription=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/notification/Subscriptions/{subscriptionId}",body:t})]})})},e.prototype.deleteSubscription=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/notification/Subscriptions/{subscriptionId}",routeValues:{subscriptionId:t}})]})})},e.prototype.getSubscription=function(t,e){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={queryFlags:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/Subscriptions/{subscriptionId}",routeValues:{subscriptionId:t},queryParams:i})]})})},e.prototype.listSubscriptions=function(t,e,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={targetId:t,ids:e&&e.join(","),queryFlags:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/Subscriptions/{subscriptionId}",queryParams:n})]})})},e.prototype.updateSubscription=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/notification/Subscriptions/{subscriptionId}",routeValues:{subscriptionId:e},body:t})]})})},e.prototype.getSubscriptionTemplates=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/notification/SubscriptionTemplates"})]})})},e.prototype.publishTokenEvent=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/notification/TokenNotificationEvent",body:t})]})})},e.prototype.updateSubscriptionUserSettings=function(t,e,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/notification/Subscriptions/{subscriptionId}/UserSettings/{userId}",routeValues:{subscriptionId:e,userId:i},body:t})]})})},e}(i.RestClientBase);e.NotificationRestClient=n});
|
|
@@ -70,7 +70,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
70
70
|
pluginId: pluginId
|
|
71
71
|
};
|
|
72
72
|
return [2 /*return*/, this.beginRequest({
|
|
73
|
-
apiVersion: "7.
|
|
73
|
+
apiVersion: "7.2-preview.1",
|
|
74
74
|
routeTemplate: "_apis/operations/{operationId}",
|
|
75
75
|
routeValues: {
|
|
76
76
|
operationId: operationId
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){u.label=n[1];break}if(6===n[0]&&u.label<i[1]){u.label=i[1],i=n;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(n);break}i[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getOperation=function(t,e){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={pluginId:e},[2,this.beginRequest({apiVersion:"7.
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){u.label=n[1];break}if(6===n[0]&&u.label<i[1]){u.label=i[1],i=n;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(n);break}i[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getOperation=function(t,e){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={pluginId:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/operations/{operationId}",routeValues:{operationId:t},queryParams:n})]})})},e}(n.RestClientBase);e.OperationsRestClient=r});
|
|
@@ -74,7 +74,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
74
74
|
'$expand': expand
|
|
75
75
|
};
|
|
76
76
|
return [2 /*return*/, this.beginRequest({
|
|
77
|
-
apiVersion: "7.
|
|
77
|
+
apiVersion: "7.2-preview.1",
|
|
78
78
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}/runs/{runId}/artifacts",
|
|
79
79
|
routeValues: {
|
|
80
80
|
project: project,
|
|
@@ -103,7 +103,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
103
103
|
'$expand': expand
|
|
104
104
|
};
|
|
105
105
|
return [2 /*return*/, this.beginRequest({
|
|
106
|
-
apiVersion: "7.
|
|
106
|
+
apiVersion: "7.2-preview.1",
|
|
107
107
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs/{logId}",
|
|
108
108
|
routeValues: {
|
|
109
109
|
project: project,
|
|
@@ -132,7 +132,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
132
132
|
'$expand': expand
|
|
133
133
|
};
|
|
134
134
|
return [2 /*return*/, this.beginRequest({
|
|
135
|
-
apiVersion: "7.
|
|
135
|
+
apiVersion: "7.2-preview.1",
|
|
136
136
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs/{logId}",
|
|
137
137
|
routeValues: {
|
|
138
138
|
project: project,
|
|
@@ -154,7 +154,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
154
154
|
return __awaiter(this, void 0, void 0, function () {
|
|
155
155
|
return __generator(this, function (_a) {
|
|
156
156
|
return [2 /*return*/, this.beginRequest({
|
|
157
|
-
apiVersion: "7.
|
|
157
|
+
apiVersion: "7.2-preview.1",
|
|
158
158
|
method: "POST",
|
|
159
159
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}",
|
|
160
160
|
routeValues: {
|
|
@@ -180,7 +180,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
180
180
|
pipelineVersion: pipelineVersion
|
|
181
181
|
};
|
|
182
182
|
return [2 /*return*/, this.beginRequest({
|
|
183
|
-
apiVersion: "7.
|
|
183
|
+
apiVersion: "7.2-preview.1",
|
|
184
184
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}",
|
|
185
185
|
routeValues: {
|
|
186
186
|
project: project,
|
|
@@ -209,7 +209,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
209
209
|
continuationToken: continuationToken
|
|
210
210
|
};
|
|
211
211
|
return [2 /*return*/, this.beginRequest({
|
|
212
|
-
apiVersion: "7.
|
|
212
|
+
apiVersion: "7.2-preview.1",
|
|
213
213
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}",
|
|
214
214
|
routeValues: {
|
|
215
215
|
project: project
|
|
@@ -235,7 +235,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
235
235
|
pipelineVersion: pipelineVersion
|
|
236
236
|
};
|
|
237
237
|
return [2 /*return*/, this.beginRequest({
|
|
238
|
-
apiVersion: "7.
|
|
238
|
+
apiVersion: "7.2-preview.1",
|
|
239
239
|
method: "POST",
|
|
240
240
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}/preview",
|
|
241
241
|
routeValues: {
|
|
@@ -259,7 +259,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
259
259
|
return __awaiter(this, void 0, void 0, function () {
|
|
260
260
|
return __generator(this, function (_a) {
|
|
261
261
|
return [2 /*return*/, this.beginRequest({
|
|
262
|
-
apiVersion: "7.
|
|
262
|
+
apiVersion: "7.2-preview.1",
|
|
263
263
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}/runs/{runId}",
|
|
264
264
|
routeValues: {
|
|
265
265
|
project: project,
|
|
@@ -280,7 +280,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
280
280
|
return __awaiter(this, void 0, void 0, function () {
|
|
281
281
|
return __generator(this, function (_a) {
|
|
282
282
|
return [2 /*return*/, this.beginRequest({
|
|
283
|
-
apiVersion: "7.
|
|
283
|
+
apiVersion: "7.2-preview.1",
|
|
284
284
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}/runs/{runId}",
|
|
285
285
|
routeValues: {
|
|
286
286
|
project: project,
|
|
@@ -306,7 +306,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
306
306
|
pipelineVersion: pipelineVersion
|
|
307
307
|
};
|
|
308
308
|
return [2 /*return*/, this.beginRequest({
|
|
309
|
-
apiVersion: "7.
|
|
309
|
+
apiVersion: "7.2-preview.1",
|
|
310
310
|
method: "POST",
|
|
311
311
|
routeTemplate: "{project}/_apis/pipelines/{pipelineId}/runs/{runId}",
|
|
312
312
|
routeValues: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function p(e){try{a(i.next(e))}catch(e){o(e)}}function u(e){try{a(i.throw(e))}catch(e){o(e)}}function a(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(p,u)}a((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(p){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,n=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,p])}}var i,n,o,p,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return p={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getArtifact=function(e,t,r,i,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(p){return o={artifactName:i,$expand:n},[2,this.beginRequest({apiVersion:"7.
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function p(e){try{a(i.next(e))}catch(e){o(e)}}function u(e){try{a(i.throw(e))}catch(e){o(e)}}function a(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(p,u)}a((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(p){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,n=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,p])}}var i,n,o,p,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return p={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getArtifact=function(e,t,r,i,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(p){return o={artifactName:i,$expand:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/pipelines/{pipelineId}/runs/{runId}/artifacts",routeValues:{project:e,pipelineId:t,runId:r},queryParams:o})]})})},t.prototype.getLog=function(e,t,r,i,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(p){return o={$expand:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs/{logId}",routeValues:{project:e,pipelineId:t,runId:r,logId:i},queryParams:o})]})})},t.prototype.listLogs=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(o){return n={$expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs/{logId}",routeValues:{project:e,pipelineId:t,runId:r},queryParams:n})]})})},t.prototype.createPipeline=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/pipelines/{pipelineId}",routeValues:{project:t},body:e})]})})},t.prototype.getPipeline=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={pipelineVersion:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/pipelines/{pipelineId}",routeValues:{project:e,pipelineId:t},queryParams:i})]})})},t.prototype.listPipelines=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(o){return n={orderBy:t,$top:r,continuationToken:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/pipelines/{pipelineId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.preview=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(o){return n={pipelineVersion:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/pipelines/{pipelineId}/preview",routeValues:{project:t,pipelineId:r},queryParams:n,body:e})]})})},t.prototype.getRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/pipelines/{pipelineId}/runs/{runId}",routeValues:{project:e,pipelineId:t,runId:r}})]})})},t.prototype.listRuns=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/pipelines/{pipelineId}/runs/{runId}",routeValues:{project:e,pipelineId:t}})]})})},t.prototype.runPipeline=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(o){return n={pipelineVersion:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/pipelines/{pipelineId}/runs/{runId}",routeValues:{project:t,pipelineId:r},queryParams:n,body:e})]})})},t}(r.RestClientBase);t.PipelinesRestClient=i});
|
package/Policy/PolicyClient.js
CHANGED
|
@@ -66,7 +66,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
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: "7.
|
|
69
|
+
apiVersion: "7.2-preview.1",
|
|
70
70
|
method: "POST",
|
|
71
71
|
routeTemplate: "{project}/_apis/policy/Configurations/{configurationId}",
|
|
72
72
|
routeValues: {
|
|
@@ -87,7 +87,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
87
87
|
return __awaiter(this, void 0, void 0, function () {
|
|
88
88
|
return __generator(this, function (_a) {
|
|
89
89
|
return [2 /*return*/, this.beginRequest({
|
|
90
|
-
apiVersion: "7.
|
|
90
|
+
apiVersion: "7.2-preview.1",
|
|
91
91
|
method: "DELETE",
|
|
92
92
|
routeTemplate: "{project}/_apis/policy/Configurations/{configurationId}",
|
|
93
93
|
routeValues: {
|
|
@@ -108,7 +108,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
108
108
|
return __awaiter(this, void 0, void 0, function () {
|
|
109
109
|
return __generator(this, function (_a) {
|
|
110
110
|
return [2 /*return*/, this.beginRequest({
|
|
111
|
-
apiVersion: "7.
|
|
111
|
+
apiVersion: "7.2-preview.1",
|
|
112
112
|
routeTemplate: "{project}/_apis/policy/Configurations/{configurationId}",
|
|
113
113
|
routeValues: {
|
|
114
114
|
project: project,
|
|
@@ -135,7 +135,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
135
135
|
policyType: policyType
|
|
136
136
|
};
|
|
137
137
|
return [2 /*return*/, this.beginRequest({
|
|
138
|
-
apiVersion: "7.
|
|
138
|
+
apiVersion: "7.2-preview.1",
|
|
139
139
|
routeTemplate: "{project}/_apis/policy/Configurations/{configurationId}",
|
|
140
140
|
routeValues: {
|
|
141
141
|
project: project
|
|
@@ -168,7 +168,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
168
168
|
return __awaiter(this, void 0, void 0, function () {
|
|
169
169
|
return __generator(this, function (_a) {
|
|
170
170
|
return [2 /*return*/, this.beginRequest({
|
|
171
|
-
apiVersion: "7.
|
|
171
|
+
apiVersion: "7.2-preview.1",
|
|
172
172
|
method: "PUT",
|
|
173
173
|
routeTemplate: "{project}/_apis/policy/Configurations/{configurationId}",
|
|
174
174
|
routeValues: {
|
|
@@ -190,7 +190,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
190
190
|
return __awaiter(this, void 0, void 0, function () {
|
|
191
191
|
return __generator(this, function (_a) {
|
|
192
192
|
return [2 /*return*/, this.beginRequest({
|
|
193
|
-
apiVersion: "7.
|
|
193
|
+
apiVersion: "7.2-preview.1",
|
|
194
194
|
routeTemplate: "{project}/_apis/policy/Evaluations/{evaluationId}",
|
|
195
195
|
routeValues: {
|
|
196
196
|
project: project,
|
|
@@ -210,7 +210,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
210
210
|
return __awaiter(this, void 0, void 0, function () {
|
|
211
211
|
return __generator(this, function (_a) {
|
|
212
212
|
return [2 /*return*/, this.beginRequest({
|
|
213
|
-
apiVersion: "7.
|
|
213
|
+
apiVersion: "7.2-preview.1",
|
|
214
214
|
method: "PATCH",
|
|
215
215
|
routeTemplate: "{project}/_apis/policy/Evaluations/{evaluationId}",
|
|
216
216
|
routeValues: {
|
|
@@ -241,7 +241,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
241
241
|
'$skip': skip
|
|
242
242
|
};
|
|
243
243
|
return [2 /*return*/, this.beginRequest({
|
|
244
|
-
apiVersion: "7.
|
|
244
|
+
apiVersion: "7.2-preview.1",
|
|
245
245
|
routeTemplate: "{project}/_apis/policy/Evaluations",
|
|
246
246
|
routeValues: {
|
|
247
247
|
project: project
|
|
@@ -262,7 +262,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
262
262
|
return __awaiter(this, void 0, void 0, function () {
|
|
263
263
|
return __generator(this, function (_a) {
|
|
264
264
|
return [2 /*return*/, this.beginRequest({
|
|
265
|
-
apiVersion: "7.
|
|
265
|
+
apiVersion: "7.2-preview.1",
|
|
266
266
|
routeTemplate: "{project}/_apis/policy/configurations/{configurationId}/Revisions/{revisionId}",
|
|
267
267
|
routeValues: {
|
|
268
268
|
project: project,
|
|
@@ -290,7 +290,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
290
290
|
'$skip': skip
|
|
291
291
|
};
|
|
292
292
|
return [2 /*return*/, this.beginRequest({
|
|
293
|
-
apiVersion: "7.
|
|
293
|
+
apiVersion: "7.2-preview.1",
|
|
294
294
|
routeTemplate: "{project}/_apis/policy/configurations/{configurationId}/Revisions/{revisionId}",
|
|
295
295
|
routeValues: {
|
|
296
296
|
project: project,
|
|
@@ -311,7 +311,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
311
311
|
return __awaiter(this, void 0, void 0, function () {
|
|
312
312
|
return __generator(this, function (_a) {
|
|
313
313
|
return [2 /*return*/, this.beginRequest({
|
|
314
|
-
apiVersion: "7.
|
|
314
|
+
apiVersion: "7.2-preview.1",
|
|
315
315
|
routeTemplate: "{project}/_apis/policy/Types/{typeId}",
|
|
316
316
|
routeValues: {
|
|
317
317
|
project: project,
|
|
@@ -330,7 +330,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
330
330
|
return __awaiter(this, void 0, void 0, function () {
|
|
331
331
|
return __generator(this, function (_a) {
|
|
332
332
|
return [2 /*return*/, this.beginRequest({
|
|
333
|
-
apiVersion: "7.
|
|
333
|
+
apiVersion: "7.2-preview.1",
|
|
334
334
|
routeTemplate: "{project}/_apis/policy/Types/{typeId}",
|
|
335
335
|
routeValues: {
|
|
336
336
|
project: project
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(t,e,i,o){return new(i||(i=Promise))(function(n,r){function u(t){try{s(o.next(t))}catch(t){r(t)}}function a(t){try{s(o.throw(t))}catch(t){r(t)}}function s(t){t.done?n(t.value):new i(function(e){e(t.value)}).then(u,a)}s((o=o.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function i(i){return function(u){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}var o,n,r,u,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(t,e,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.createPolicyConfiguration=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(t,e,i,o){return new(i||(i=Promise))(function(n,r){function u(t){try{s(o.next(t))}catch(t){r(t)}}function a(t){try{s(o.throw(t))}catch(t){r(t)}}function s(t){t.done?n(t.value):new i(function(e){e(t.value)}).then(u,a)}s((o=o.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function i(i){return function(u){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}var o,n,r,u,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(t,e,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.createPolicyConfiguration=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/policy/Configurations/{configurationId}",routeValues:{project:e},body:t})]})})},e.prototype.deletePolicyConfiguration=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/policy/Configurations/{configurationId}",routeValues:{project:t,configurationId:e}})]})})},e.prototype.getPolicyConfiguration=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/Configurations/{configurationId}",routeValues:{project:t,configurationId:e}})]})})},e.prototype.getPolicyConfigurations=function(t,e,i){return __awaiter(this,void 0,void 0,function(){var n,r=this;return __generator(this,function(u){return n={scope:e,policyType:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/Configurations/{configurationId}",routeValues:{project:t},queryParams:n,returnRawResponse:!0}).then(function(t){return __awaiter(r,void 0,void 0,function(){var e;return __generator(this,function(i){switch(i.label){case 0:return[4,t.text().then(o.deserializeVssJsonObject)];case 1:return e=i.sent(),e.continuationToken=t.headers.get("x-ms-continuationtoken"),[2,e]}})})})]})})},e.prototype.updatePolicyConfiguration=function(t,e,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"{project}/_apis/policy/Configurations/{configurationId}",routeValues:{project:e,configurationId:i},body:t})]})})},e.prototype.getPolicyEvaluation=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/Evaluations/{evaluationId}",routeValues:{project:t,evaluationId:e}})]})})},e.prototype.requeuePolicyEvaluation=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/policy/Evaluations/{evaluationId}",routeValues:{project:t,evaluationId:e}})]})})},e.prototype.getPolicyEvaluations=function(t,e,i,o,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(u){return r={artifactId:e,includeNotApplicable:i,$top:o,$skip:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/Evaluations",routeValues:{project:t},queryParams:r})]})})},e.prototype.getPolicyConfigurationRevision=function(t,e,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/configurations/{configurationId}/Revisions/{revisionId}",routeValues:{project:t,configurationId:e,revisionId:i}})]})})},e.prototype.getPolicyConfigurationRevisions=function(t,e,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={$top:i,$skip:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/configurations/{configurationId}/Revisions/{revisionId}",routeValues:{project:t,configurationId:e},queryParams:n})]})})},e.prototype.getPolicyType=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/Types/{typeId}",routeValues:{project:t,typeId:e}})]})})},e.prototype.getPolicyTypes=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/policy/Types/{typeId}",routeValues:{project:t}})]})})},e.RESOURCE_AREA_ID="fb13a388-40dd-4a04-b530-013a739c72ef",e}(i.RestClientBase);e.PolicyRestClient=n});
|