azure-devops-extension-api 1.158.0 → 2.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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
|
@@ -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 a(e){try{s(i.next(e))}catch(e){o(e)}}function u(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(a,u)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){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,a])}}var i,n,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};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.getConnectionData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={connectOptions:e,lastChangeId:t,lastChangeId64:r},[2,this.beginRequest({apiVersion:"
|
|
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 a(e){try{s(i.next(e))}catch(e){o(e)}}function u(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(a,u)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){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,a])}}var i,n,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};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.getConnectionData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={connectOptions:e,lastChangeId:t,lastChangeId64:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ConnectionData",queryParams:i})]})})},t.prototype.getResourceArea=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={enterpriseName:t,organizationName:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ResourceAreas/{areaId}",routeValues:{areaId:e},queryParams:i})]})})},t.prototype.getResourceAreaByHost=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={hostId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ResourceAreas/{areaId}",routeValues:{areaId:e},queryParams:r})]})})},t.prototype.getResourceAreas=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={enterpriseName:e,organizationName:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ResourceAreas/{areaId}",queryParams:r})]})})},t.prototype.getResourceAreasByHost=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={hostId:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ResourceAreas/{areaId}",queryParams:t})]})})},t.prototype.deleteServiceDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/ServiceDefinitions/{serviceType}/{identifier}",routeValues:{serviceType:e,identifier:t}})]})})},t.prototype.getServiceDefinition=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(o){return n={allowFaultIn:r,previewFaultIn:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ServiceDefinitions/{serviceType}/{identifier}",routeValues:{serviceType:e,identifier:t},queryParams:n})]})})},t.prototype.getServiceDefinitions=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ServiceDefinitions/{serviceType}/{identifier}",routeValues:{serviceType:e}})]})})},t.prototype.updateServiceDefinitions=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/ServiceDefinitions/{serviceType}/{identifier}",body:e})]})})},t}(r.RestClientBase);t.LocationsRestClient=i});
|
|
@@ -752,7 +752,7 @@ export interface NotificationSubscription {
|
|
|
752
752
|
*/
|
|
753
753
|
subscriber: WebApi.IdentityRef;
|
|
754
754
|
/**
|
|
755
|
-
* REST API URL of the
|
|
755
|
+
* REST API URL of the subscription.
|
|
756
756
|
*/
|
|
757
757
|
url: string;
|
|
758
758
|
/**
|
|
@@ -942,7 +942,7 @@ export interface SubscriptionChannelWithAddress {
|
|
|
942
942
|
useCustomAddress: boolean;
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
|
-
* Contains all the
|
|
945
|
+
* Contains all the diagnostics settings for a subscription.
|
|
946
946
|
*/
|
|
947
947
|
export interface SubscriptionDiagnostics {
|
|
948
948
|
/**
|
|
@@ -1118,7 +1118,7 @@ export interface SubscriptionQueryCondition {
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
filter: ISubscriptionFilter;
|
|
1120
1120
|
/**
|
|
1121
|
-
* Flags to specify the
|
|
1121
|
+
* Flags to specify the type subscriptions to query for.
|
|
1122
1122
|
*/
|
|
1123
1123
|
flags: SubscriptionFlags;
|
|
1124
1124
|
/**
|
|
@@ -132,6 +132,12 @@ export declare class NotificationRestClient extends RestClientBase {
|
|
|
132
132
|
*
|
|
133
133
|
*/
|
|
134
134
|
getSubscriptionTemplates(): Promise<Notification.NotificationSubscriptionTemplate[]>;
|
|
135
|
+
/**
|
|
136
|
+
* Publish an event. This request is only for the Token service since it's a deploy only service.
|
|
137
|
+
*
|
|
138
|
+
* @param notificationEvent -
|
|
139
|
+
*/
|
|
140
|
+
publishTokenEvent(notificationEvent: WebApi.VssNotificationEvent): Promise<WebApi.VssNotificationEvent>;
|
|
135
141
|
/**
|
|
136
142
|
* Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions.
|
|
137
143
|
*
|
|
@@ -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: "
|
|
66
|
+
apiVersion: "7.1-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: "
|
|
91
|
+
apiVersion: "7.1-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: "
|
|
111
|
+
apiVersion: "7.1-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: "
|
|
130
|
+
apiVersion: "7.1-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: "
|
|
150
|
+
apiVersion: "7.1-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: "
|
|
167
|
+
apiVersion: "7.1-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: "
|
|
183
|
+
apiVersion: "7.1-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: "
|
|
203
|
+
apiVersion: "7.1-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: "
|
|
225
|
+
apiVersion: "7.1-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: "
|
|
239
|
+
apiVersion: "7.1-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: "
|
|
259
|
+
apiVersion: "7.1-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: "
|
|
272
|
+
apiVersion: "7.1-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: "
|
|
285
|
+
apiVersion: "7.1-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: "
|
|
302
|
+
apiVersion: "7.1-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: "
|
|
321
|
+
apiVersion: "7.1-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: "
|
|
341
|
+
apiVersion: "7.1-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: "
|
|
358
|
+
apiVersion: "7.1-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: "
|
|
375
|
+
apiVersion: "7.1-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: "
|
|
399
|
+
apiVersion: "7.1-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: "
|
|
426
|
+
apiVersion: "7.1-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: "
|
|
443
|
+
apiVersion: "7.1-preview.1",
|
|
444
444
|
method: "PATCH",
|
|
445
445
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}",
|
|
446
446
|
routeValues: {
|
|
@@ -459,12 +459,29 @@ 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: "
|
|
462
|
+
apiVersion: "7.1-preview.1",
|
|
463
463
|
routeTemplate: "_apis/notification/SubscriptionTemplates"
|
|
464
464
|
})];
|
|
465
465
|
});
|
|
466
466
|
});
|
|
467
467
|
};
|
|
468
|
+
/**
|
|
469
|
+
* Publish an event. This request is only for the Token service since it's a deploy only service.
|
|
470
|
+
*
|
|
471
|
+
* @param notificationEvent -
|
|
472
|
+
*/
|
|
473
|
+
NotificationRestClient.prototype.publishTokenEvent = function (notificationEvent) {
|
|
474
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
475
|
+
return __generator(this, function (_a) {
|
|
476
|
+
return [2 /*return*/, this.beginRequest({
|
|
477
|
+
apiVersion: "7.1-preview.1",
|
|
478
|
+
method: "POST",
|
|
479
|
+
routeTemplate: "_apis/notification/TokenNotificationEvent",
|
|
480
|
+
body: notificationEvent
|
|
481
|
+
})];
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
};
|
|
468
485
|
/**
|
|
469
486
|
* Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions.
|
|
470
487
|
*
|
|
@@ -476,7 +493,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
476
493
|
return __awaiter(this, void 0, void 0, function () {
|
|
477
494
|
return __generator(this, function (_a) {
|
|
478
495
|
return [2 /*return*/, this.beginRequest({
|
|
479
|
-
apiVersion: "
|
|
496
|
+
apiVersion: "7.1-preview.1",
|
|
480
497
|
method: "PUT",
|
|
481
498
|
routeTemplate: "_apis/notification/Subscriptions/{subscriptionId}/UserSettings/{userId}",
|
|
482
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:"
|
|
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-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-preview.1",method:"PUT",routeTemplate:"_apis/notification/Subscriptions/{subscriptionId}/UserSettings/{userId}",routeValues:{subscriptionId:e,userId:i},body:t})]})})},e}(i.RestClientBase);e.NotificationRestClient=n});
|
|
@@ -4,7 +4,7 @@ import * as Operations from "../Operations/Operations";
|
|
|
4
4
|
export declare class OperationsRestClient extends RestClientBase {
|
|
5
5
|
constructor(options: IVssRestClientOptions);
|
|
6
6
|
/**
|
|
7
|
-
* Gets an operation from the
|
|
7
|
+
* Gets an operation from the operationId using the given pluginId.
|
|
8
8
|
*
|
|
9
9
|
* @param operationId - The ID for the operation.
|
|
10
10
|
* @param pluginId - The ID for the plugin.
|
|
@@ -57,7 +57,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
57
57
|
return _super.call(this, options) || this;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Gets an operation from the
|
|
60
|
+
* Gets an operation from the operationId using the given pluginId.
|
|
61
61
|
*
|
|
62
62
|
* @param operationId - The ID for the operation.
|
|
63
63
|
* @param pluginId - The ID for the plugin.
|
|
@@ -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: "
|
|
73
|
+
apiVersion: "7.1-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:"
|
|
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-preview.1",routeTemplate:"_apis/operations/{operationId}",routeValues:{operationId:t},queryParams:n})]})})},e}(n.RestClientBase);e.OperationsRestClient=r});
|