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
|
@@ -69,7 +69,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
69
69
|
project = teamContext.projectId || teamContext.project;
|
|
70
70
|
team = teamContext.teamId || teamContext.team;
|
|
71
71
|
return [2 /*return*/, this.beginRequest({
|
|
72
|
-
apiVersion: "7.
|
|
72
|
+
apiVersion: "7.2-preview.3",
|
|
73
73
|
method: "POST",
|
|
74
74
|
routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
|
|
75
75
|
routeValues: {
|
|
@@ -94,7 +94,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
94
94
|
project = teamContext.projectId || teamContext.project;
|
|
95
95
|
team = teamContext.teamId || teamContext.team;
|
|
96
96
|
return [2 /*return*/, this.beginRequest({
|
|
97
|
-
apiVersion: "7.
|
|
97
|
+
apiVersion: "7.2-preview.3",
|
|
98
98
|
method: "DELETE",
|
|
99
99
|
routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
|
|
100
100
|
routeValues: {
|
|
@@ -119,7 +119,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
119
119
|
project = teamContext.projectId || teamContext.project;
|
|
120
120
|
team = teamContext.teamId || teamContext.team;
|
|
121
121
|
return [2 /*return*/, this.beginRequest({
|
|
122
|
-
apiVersion: "7.
|
|
122
|
+
apiVersion: "7.2-preview.3",
|
|
123
123
|
routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
|
|
124
124
|
routeValues: {
|
|
125
125
|
project: project,
|
|
@@ -142,7 +142,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
142
142
|
project = teamContext.projectId || teamContext.project;
|
|
143
143
|
team = teamContext.teamId || teamContext.team;
|
|
144
144
|
return [2 /*return*/, this.beginRequest({
|
|
145
|
-
apiVersion: "7.
|
|
145
|
+
apiVersion: "7.2-preview.3",
|
|
146
146
|
routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
|
|
147
147
|
routeValues: {
|
|
148
148
|
project: project,
|
|
@@ -166,7 +166,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
166
166
|
project = teamContext.projectId || teamContext.project;
|
|
167
167
|
team = teamContext.teamId || teamContext.team;
|
|
168
168
|
return [2 /*return*/, this.beginRequest({
|
|
169
|
-
apiVersion: "7.
|
|
169
|
+
apiVersion: "7.2-preview.3",
|
|
170
170
|
method: "PUT",
|
|
171
171
|
routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
|
|
172
172
|
routeValues: {
|
|
@@ -192,7 +192,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
192
192
|
project = teamContext.projectId || teamContext.project;
|
|
193
193
|
team = teamContext.teamId || teamContext.team;
|
|
194
194
|
return [2 /*return*/, this.beginRequest({
|
|
195
|
-
apiVersion: "7.
|
|
195
|
+
apiVersion: "7.2-preview.3",
|
|
196
196
|
method: "PUT",
|
|
197
197
|
routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
|
|
198
198
|
routeValues: {
|
|
@@ -218,7 +218,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
218
218
|
project = teamContext.projectId || teamContext.project;
|
|
219
219
|
team = teamContext.teamId || teamContext.team;
|
|
220
220
|
return [2 /*return*/, this.beginRequest({
|
|
221
|
-
apiVersion: "7.
|
|
221
|
+
apiVersion: "7.2-preview.2",
|
|
222
222
|
method: "POST",
|
|
223
223
|
routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
|
|
224
224
|
routeValues: {
|
|
@@ -245,7 +245,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
245
245
|
project = teamContext.projectId || teamContext.project;
|
|
246
246
|
team = teamContext.teamId || teamContext.team;
|
|
247
247
|
return [2 /*return*/, this.beginRequest({
|
|
248
|
-
apiVersion: "7.
|
|
248
|
+
apiVersion: "7.2-preview.2",
|
|
249
249
|
method: "DELETE",
|
|
250
250
|
routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
|
|
251
251
|
routeValues: {
|
|
@@ -272,7 +272,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
272
272
|
project = teamContext.projectId || teamContext.project;
|
|
273
273
|
team = teamContext.teamId || teamContext.team;
|
|
274
274
|
return [2 /*return*/, this.beginRequest({
|
|
275
|
-
apiVersion: "7.
|
|
275
|
+
apiVersion: "7.2-preview.2",
|
|
276
276
|
routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
|
|
277
277
|
routeValues: {
|
|
278
278
|
project: project,
|
|
@@ -299,7 +299,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
299
299
|
project = teamContext.projectId || teamContext.project;
|
|
300
300
|
team = teamContext.teamId || teamContext.team;
|
|
301
301
|
return [2 /*return*/, this.beginRequest({
|
|
302
|
-
apiVersion: "7.
|
|
302
|
+
apiVersion: "7.2-preview.2",
|
|
303
303
|
method: "PUT",
|
|
304
304
|
routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
|
|
305
305
|
routeValues: {
|
|
@@ -328,7 +328,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
328
328
|
project = teamContext.projectId || teamContext.project;
|
|
329
329
|
team = teamContext.teamId || teamContext.team;
|
|
330
330
|
return [2 /*return*/, this.beginRequest({
|
|
331
|
-
apiVersion: "7.
|
|
331
|
+
apiVersion: "7.2-preview.2",
|
|
332
332
|
method: "PATCH",
|
|
333
333
|
routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
|
|
334
334
|
routeValues: {
|
|
@@ -352,7 +352,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
352
352
|
return __awaiter(this, void 0, void 0, function () {
|
|
353
353
|
return __generator(this, function (_a) {
|
|
354
354
|
return [2 /*return*/, this.beginRequest({
|
|
355
|
-
apiVersion: "7.
|
|
355
|
+
apiVersion: "7.2-preview.1",
|
|
356
356
|
routeTemplate: "{project}/_apis/Dashboard/WidgetTypes/{contributionId}",
|
|
357
357
|
routeValues: {
|
|
358
358
|
project: project,
|
|
@@ -376,7 +376,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
376
376
|
'$scope': scope
|
|
377
377
|
};
|
|
378
378
|
return [2 /*return*/, this.beginRequest({
|
|
379
|
-
apiVersion: "7.
|
|
379
|
+
apiVersion: "7.2-preview.1",
|
|
380
380
|
routeTemplate: "{project}/_apis/Dashboard/WidgetTypes/{contributionId}",
|
|
381
381
|
routeValues: {
|
|
382
382
|
project: project
|
|
@@ -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 o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(a,i){function n(e){try{s(o.next(e))}catch(e){i(e)}}function d(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(n,d)}s((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(n){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;d;)try{if(o=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return d.label++,{value:r[1],done:!1};case 5:d.label++,a=r[1],r=[0];continue;case 7:r=d.ops.pop(),d.trys.pop();continue;default:if(i=d.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){d=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){d.label=r[1];break}if(6===r[0]&&d.label<i[1]){d.label=i[1],i=r;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(r);break}i[2]&&d.ops.pop(),d.trys.pop();continue}r=t.call(e,d)}catch(e){r=[6,e],a=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,n])}}var o,a,i,n,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=t.projectId||t.project,o=t.teamId||t.team,[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 o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(a,i){function n(e){try{s(o.next(e))}catch(e){i(e)}}function d(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(n,d)}s((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(n){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;d;)try{if(o=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return d.label++,{value:r[1],done:!1};case 5:d.label++,a=r[1],r=[0];continue;case 7:r=d.ops.pop(),d.trys.pop();continue;default:if(i=d.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){d=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){d.label=r[1];break}if(6===r[0]&&d.label<i[1]){d.label=i[1],i=r;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(r);break}i[2]&&d.ops.pop(),d.trys.pop();continue}r=t.call(e,d)}catch(e){r=[6,e],a=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,n])}}var o,a,i,n,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=t.projectId||t.project,o=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o},body:e})]})})},t.prototype.deleteDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=e.projectId||e.project,o=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"DELETE",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o,dashboardId:t}})]})})},t.prototype.getDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=e.projectId||e.project,o=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o,dashboardId:t}})]})})},t.prototype.getDashboardsByProject=function(e){return __awaiter(this,void 0,void 0,function(){var t,r;return __generator(this,function(o){return t=e.projectId||e.project,r=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:t,team:r}})]})})},t.prototype.replaceDashboard=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=t.projectId||t.project,a=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:o,team:a,dashboardId:r},body:e})]})})},t.prototype.replaceDashboards=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=t.projectId||t.project,o=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o},body:e})]})})},t.prototype.createWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=t.projectId||t.project,a=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:r},body:e})]})})},t.prototype.deleteWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:t,widgetId:r}})]})})},t.prototype.getWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:t,widgetId:r}})]})})},t.prototype.replaceWidget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var a,i;return __generator(this,function(n){return a=t.projectId||t.project,i=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:a,team:i,dashboardId:r,widgetId:o},body:e})]})})},t.prototype.updateWidget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var a,i;return __generator(this,function(n){return a=t.projectId||t.project,i=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:a,team:i,dashboardId:r,widgetId:o},body:e})]})})},t.prototype.getWidgetMetadata=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/Dashboard/WidgetTypes/{contributionId}",routeValues:{project:t,contributionId:e}})]})})},t.prototype.getWidgetTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$scope:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Dashboard/WidgetTypes/{contributionId}",routeValues:{project:t},queryParams:r})]})})},t.RESOURCE_AREA_ID="31c84e0a-3ece-48fd-a29d-100849af99ba",t}(r.RestClientBase);t.DashboardRestClient=o});
|
|
@@ -79,7 +79,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
79
79
|
isBuyOperationValid: isBuyOperationValid
|
|
80
80
|
};
|
|
81
81
|
return [2 /*return*/, this.beginRequest({
|
|
82
|
-
apiVersion: "7.
|
|
82
|
+
apiVersion: "7.2-preview.1",
|
|
83
83
|
routeTemplate: "_apis/ExtensionManagement/AcquisitionOptions",
|
|
84
84
|
queryParams: queryValues
|
|
85
85
|
})];
|
|
@@ -93,7 +93,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
93
93
|
return __awaiter(this, void 0, void 0, function () {
|
|
94
94
|
return __generator(this, function (_a) {
|
|
95
95
|
return [2 /*return*/, this.beginRequest({
|
|
96
|
-
apiVersion: "7.
|
|
96
|
+
apiVersion: "7.2-preview.1",
|
|
97
97
|
method: "POST",
|
|
98
98
|
routeTemplate: "_apis/ExtensionManagement/AcquisitionRequests",
|
|
99
99
|
body: acquisitionRequest
|
|
@@ -109,7 +109,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
109
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
110
110
|
return __generator(this, function (_a) {
|
|
111
111
|
return [2 /*return*/, this.beginRequest({
|
|
112
|
-
apiVersion: "7.
|
|
112
|
+
apiVersion: "7.2-preview.1",
|
|
113
113
|
routeTemplate: "_apis/ExtensionManagement/AuditLog/{publisherName}/{extensionName}",
|
|
114
114
|
routeValues: {
|
|
115
115
|
publisherName: publisherName,
|
|
@@ -128,7 +128,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
128
128
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
129
|
return __generator(this, function (_a) {
|
|
130
130
|
return [2 /*return*/, this.beginRequest({
|
|
131
|
-
apiVersion: "7.
|
|
131
|
+
apiVersion: "7.2-preview.1",
|
|
132
132
|
method: "PUT",
|
|
133
133
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Authorizations/{registrationId}",
|
|
134
134
|
routeValues: {
|
|
@@ -152,7 +152,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
152
152
|
return __awaiter(this, void 0, void 0, function () {
|
|
153
153
|
return __generator(this, function (_a) {
|
|
154
154
|
return [2 /*return*/, this.beginRequest({
|
|
155
|
-
apiVersion: "7.
|
|
155
|
+
apiVersion: "7.2-preview.1",
|
|
156
156
|
method: "POST",
|
|
157
157
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",
|
|
158
158
|
routeValues: {
|
|
@@ -179,7 +179,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
179
179
|
return __awaiter(this, void 0, void 0, function () {
|
|
180
180
|
return __generator(this, function (_a) {
|
|
181
181
|
return [2 /*return*/, this.beginRequest({
|
|
182
|
-
apiVersion: "7.
|
|
182
|
+
apiVersion: "7.2-preview.1",
|
|
183
183
|
method: "DELETE",
|
|
184
184
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",
|
|
185
185
|
routeValues: {
|
|
@@ -206,7 +206,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
206
206
|
return __awaiter(this, void 0, void 0, function () {
|
|
207
207
|
return __generator(this, function (_a) {
|
|
208
208
|
return [2 /*return*/, this.beginRequest({
|
|
209
|
-
apiVersion: "7.
|
|
209
|
+
apiVersion: "7.2-preview.1",
|
|
210
210
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",
|
|
211
211
|
routeValues: {
|
|
212
212
|
publisherName: publisherName,
|
|
@@ -231,7 +231,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
231
231
|
return __awaiter(this, void 0, void 0, function () {
|
|
232
232
|
return __generator(this, function (_a) {
|
|
233
233
|
return [2 /*return*/, this.beginRequest({
|
|
234
|
-
apiVersion: "7.
|
|
234
|
+
apiVersion: "7.2-preview.1",
|
|
235
235
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",
|
|
236
236
|
routeValues: {
|
|
237
237
|
publisherName: publisherName,
|
|
@@ -256,7 +256,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
256
256
|
return __awaiter(this, void 0, void 0, function () {
|
|
257
257
|
return __generator(this, function (_a) {
|
|
258
258
|
return [2 /*return*/, this.beginRequest({
|
|
259
|
-
apiVersion: "7.
|
|
259
|
+
apiVersion: "7.2-preview.1",
|
|
260
260
|
method: "PUT",
|
|
261
261
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",
|
|
262
262
|
routeValues: {
|
|
@@ -283,7 +283,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
283
283
|
return __awaiter(this, void 0, void 0, function () {
|
|
284
284
|
return __generator(this, function (_a) {
|
|
285
285
|
return [2 /*return*/, this.beginRequest({
|
|
286
|
-
apiVersion: "7.
|
|
286
|
+
apiVersion: "7.2-preview.1",
|
|
287
287
|
method: "PATCH",
|
|
288
288
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",
|
|
289
289
|
routeValues: {
|
|
@@ -309,7 +309,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
309
309
|
return __awaiter(this, void 0, void 0, function () {
|
|
310
310
|
return __generator(this, function (_a) {
|
|
311
311
|
return [2 /*return*/, this.beginRequest({
|
|
312
|
-
apiVersion: "7.
|
|
312
|
+
apiVersion: "7.2-preview.1",
|
|
313
313
|
method: "POST",
|
|
314
314
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/ExtensionDataCollectionQuery",
|
|
315
315
|
routeValues: {
|
|
@@ -340,7 +340,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
340
340
|
forceRefresh: forceRefresh
|
|
341
341
|
};
|
|
342
342
|
return [2 /*return*/, this.beginRequest({
|
|
343
|
-
apiVersion: "7.
|
|
343
|
+
apiVersion: "7.2-preview.1",
|
|
344
344
|
routeTemplate: "_apis/ExtensionManagement/ExtensionStates",
|
|
345
345
|
queryParams: queryValues
|
|
346
346
|
})];
|
|
@@ -354,7 +354,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
354
354
|
return __awaiter(this, void 0, void 0, function () {
|
|
355
355
|
return __generator(this, function (_a) {
|
|
356
356
|
return [2 /*return*/, this.beginRequest({
|
|
357
|
-
apiVersion: "7.
|
|
357
|
+
apiVersion: "7.2-preview.1",
|
|
358
358
|
method: "POST",
|
|
359
359
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensionQuery",
|
|
360
360
|
body: query
|
|
@@ -381,7 +381,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
381
381
|
includeInstallationIssues: includeInstallationIssues
|
|
382
382
|
};
|
|
383
383
|
return [2 /*return*/, this.beginRequest({
|
|
384
|
-
apiVersion: "7.
|
|
384
|
+
apiVersion: "7.2-preview.1",
|
|
385
385
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{extensionId}",
|
|
386
386
|
queryParams: queryValues
|
|
387
387
|
})];
|
|
@@ -397,7 +397,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
397
397
|
return __awaiter(this, void 0, void 0, function () {
|
|
398
398
|
return __generator(this, function (_a) {
|
|
399
399
|
return [2 /*return*/, this.beginRequest({
|
|
400
|
-
apiVersion: "7.
|
|
400
|
+
apiVersion: "7.2-preview.1",
|
|
401
401
|
method: "PATCH",
|
|
402
402
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{extensionId}",
|
|
403
403
|
body: extension
|
|
@@ -420,7 +420,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
420
420
|
assetTypes: assetTypes && assetTypes.join(":")
|
|
421
421
|
};
|
|
422
422
|
return [2 /*return*/, this.beginRequest({
|
|
423
|
-
apiVersion: "7.
|
|
423
|
+
apiVersion: "7.2-preview.1",
|
|
424
424
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",
|
|
425
425
|
routeValues: {
|
|
426
426
|
publisherName: publisherName,
|
|
@@ -442,7 +442,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
442
442
|
return __awaiter(this, void 0, void 0, function () {
|
|
443
443
|
return __generator(this, function (_a) {
|
|
444
444
|
return [2 /*return*/, this.beginRequest({
|
|
445
|
-
apiVersion: "7.
|
|
445
|
+
apiVersion: "7.2-preview.1",
|
|
446
446
|
method: "POST",
|
|
447
447
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",
|
|
448
448
|
routeValues: {
|
|
@@ -471,7 +471,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
471
471
|
reasonCode: reasonCode
|
|
472
472
|
};
|
|
473
473
|
return [2 /*return*/, this.beginRequest({
|
|
474
|
-
apiVersion: "7.
|
|
474
|
+
apiVersion: "7.2-preview.1",
|
|
475
475
|
method: "DELETE",
|
|
476
476
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",
|
|
477
477
|
routeValues: {
|
|
@@ -490,7 +490,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
490
490
|
return __awaiter(this, void 0, void 0, function () {
|
|
491
491
|
return __generator(this, function (_a) {
|
|
492
492
|
return [2 /*return*/, this.beginRequest({
|
|
493
|
-
apiVersion: "7.
|
|
493
|
+
apiVersion: "7.2-preview.1",
|
|
494
494
|
routeTemplate: "_apis/ExtensionManagement/Policies/{userId}",
|
|
495
495
|
routeValues: {
|
|
496
496
|
userId: userId
|
|
@@ -514,7 +514,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
514
514
|
state: state
|
|
515
515
|
};
|
|
516
516
|
return [2 /*return*/, this.beginRequest({
|
|
517
|
-
apiVersion: "7.
|
|
517
|
+
apiVersion: "7.2-preview.1",
|
|
518
518
|
method: "PATCH",
|
|
519
519
|
routeTemplate: "_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/{requesterId}",
|
|
520
520
|
routeValues: {
|
|
@@ -534,7 +534,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
534
534
|
return __awaiter(this, void 0, void 0, function () {
|
|
535
535
|
return __generator(this, function (_a) {
|
|
536
536
|
return [2 /*return*/, this.beginRequest({
|
|
537
|
-
apiVersion: "7.
|
|
537
|
+
apiVersion: "7.2-preview.1",
|
|
538
538
|
routeTemplate: "_apis/ExtensionManagement/RequestedExtensions"
|
|
539
539
|
})];
|
|
540
540
|
});
|
|
@@ -554,7 +554,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
554
554
|
state: state
|
|
555
555
|
};
|
|
556
556
|
return [2 /*return*/, this.beginRequest({
|
|
557
|
-
apiVersion: "7.
|
|
557
|
+
apiVersion: "7.2-preview.1",
|
|
558
558
|
method: "PATCH",
|
|
559
559
|
routeTemplate: "_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}",
|
|
560
560
|
routeValues: {
|
|
@@ -575,7 +575,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
575
575
|
return __awaiter(this, void 0, void 0, function () {
|
|
576
576
|
return __generator(this, function (_a) {
|
|
577
577
|
return [2 /*return*/, this.beginRequest({
|
|
578
|
-
apiVersion: "7.
|
|
578
|
+
apiVersion: "7.2-preview.1",
|
|
579
579
|
method: "DELETE",
|
|
580
580
|
routeTemplate: "_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/me",
|
|
581
581
|
routeValues: {
|
|
@@ -595,7 +595,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
595
595
|
return __awaiter(this, void 0, void 0, function () {
|
|
596
596
|
return __generator(this, function (_a) {
|
|
597
597
|
return [2 /*return*/, this.beginRequest({
|
|
598
|
-
apiVersion: "7.
|
|
598
|
+
apiVersion: "7.2-preview.1",
|
|
599
599
|
method: "POST",
|
|
600
600
|
routeTemplate: "_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/me",
|
|
601
601
|
routeValues: {
|
|
@@ -613,7 +613,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
613
613
|
return __awaiter(this, void 0, void 0, function () {
|
|
614
614
|
return __generator(this, function (_a) {
|
|
615
615
|
return [2 /*return*/, this.beginRequest({
|
|
616
|
-
apiVersion: "7.
|
|
616
|
+
apiVersion: "7.2-preview.1",
|
|
617
617
|
routeTemplate: "_apis/ExtensionManagement/Token"
|
|
618
618
|
})];
|
|
619
619
|
});
|
|
@@ -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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var i,o,r,s,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase"],function(e,t,n){"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.getAcquisitionOptions=function(e,t,n,i,o,r,s){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={itemId:e,testCommerce:t,isFreeOrTrialInstall:n,isAccountOwner:i,isLinked:o,isConnectedServer:r,isBuyOperationValid:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/AcquisitionOptions",queryParams:a})]})})},t.prototype.requestAcquisition=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:"POST",routeTemplate:"_apis/ExtensionManagement/AcquisitionRequests",body:e})]})})},t.prototype.getAuditLog=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/AuditLog/{publisherName}/{extensionName}",routeValues:{publisherName:e,extensionName:t}})]})})},t.prototype.registerAuthorization=function(e,t,n){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/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Authorizations/{registrationId}",routeValues:{publisherName:e,extensionName:t,registrationId:n}})]})})},t.prototype.createDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:t,extensionName:n,scopeType:i,scopeValue:o,collectionName:r},body:e})]})})},t.prototype.deleteDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:e,extensionName:t,scopeType:n,scopeValue:i,collectionName:o,documentId:r}})]})})},t.prototype.getDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:e,extensionName:t,scopeType:n,scopeValue:i,collectionName:o,documentId:r}})]})})},t.prototype.getDocumentsByName=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:e,extensionName:t,scopeType:n,scopeValue:i,collectionName:o}})]})})},t.prototype.setDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:t,extensionName:n,scopeType:i,scopeValue:o,collectionName:r},body:e})]})})},t.prototype.updateDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:t,extensionName:n,scopeType:i,scopeValue:o,collectionName:r},body:e})]})})},t.prototype.queryCollectionsByName=function(e,t,n){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/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/ExtensionDataCollectionQuery",routeValues:{publisherName:t,extensionName:n},body:e})]})})},t.prototype.getStates=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={includeDisabled:e,includeErrors:t,includeInstallationIssues:n,forceRefresh:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/ExtensionStates",queryParams:o})]})})},t.prototype.queryExtensions=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:"POST",routeTemplate:"_apis/ExtensionManagement/InstalledExtensionQuery",body:e})]})})},t.prototype.getInstalledExtensions=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={includeDisabledExtensions:e,includeErrors:t,assetTypes:n&&n.join(":"),includeInstallationIssues:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{extensionId}",queryParams:o})]})})},t.prototype.updateInstalledExtension=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/ExtensionManagement/InstalledExtensions/{extensionId}",body:e})]})})},t.prototype.getInstalledExtensionByName=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={assetTypes:n&&n.join(":")},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",routeValues:{publisherName:e,extensionName:t},queryParams:i})]})})},t.prototype.installExtensionByName=function(e,t,n){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/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",routeValues:{publisherName:e,extensionName:t,version:n}})]})})},t.prototype.uninstallExtensionByName=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={reason:n,reasonCode:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",routeValues:{publisherName:e,extensionName:t},queryParams:o})]})})},t.prototype.getPolicies=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/ExtensionManagement/Policies/{userId}",routeValues:{userId:e}})]})})},t.prototype.resolveRequest=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={state:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/{requesterId}",routeValues:{publisherName:t,extensionName:n,requesterId:i},queryParams:r,body:e})]})})},t.prototype.getRequests=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions"})]})})},t.prototype.resolveAllRequests=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={state:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}",routeValues:{publisherName:t,extensionName:n},queryParams:o,body:e})]})})},t.prototype.deleteRequest=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/me",routeValues:{publisherName:e,extensionName:t}})]})})},t.prototype.requestExtension=function(e,t,n){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/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/me",routeValues:{publisherName:e,extensionName:t},body:n})]})})},t.prototype.getToken=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/ExtensionManagement/Token"})]})})},t.RESOURCE_AREA_ID="6c2b0933-3600-42ae-bf8b-93d4f7e83594",t}(n.RestClientBase);t.ExtensionManagementRestClient=i});
|
|
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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var i,o,r,s,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase"],function(e,t,n){"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.getAcquisitionOptions=function(e,t,n,i,o,r,s){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={itemId:e,testCommerce:t,isFreeOrTrialInstall:n,isAccountOwner:i,isLinked:o,isConnectedServer:r,isBuyOperationValid:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/AcquisitionOptions",queryParams:a})]})})},t.prototype.requestAcquisition=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/ExtensionManagement/AcquisitionRequests",body:e})]})})},t.prototype.getAuditLog=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/AuditLog/{publisherName}/{extensionName}",routeValues:{publisherName:e,extensionName:t}})]})})},t.prototype.registerAuthorization=function(e,t,n){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/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Authorizations/{registrationId}",routeValues:{publisherName:e,extensionName:t,registrationId:n}})]})})},t.prototype.createDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:t,extensionName:n,scopeType:i,scopeValue:o,collectionName:r},body:e})]})})},t.prototype.deleteDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:e,extensionName:t,scopeType:n,scopeValue:i,collectionName:o,documentId:r}})]})})},t.prototype.getDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:e,extensionName:t,scopeType:n,scopeValue:i,collectionName:o,documentId:r}})]})})},t.prototype.getDocumentsByName=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:e,extensionName:t,scopeType:n,scopeValue:i,collectionName:o}})]})})},t.prototype.setDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:t,extensionName:n,scopeType:i,scopeValue:o,collectionName:r},body:e})]})})},t.prototype.updateDocumentByName=function(e,t,n,i,o,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/Data/Scopes/{scopeType}/{scopeValue}/Collections/{collectionName}/Documents/{documentId}",routeValues:{publisherName:t,extensionName:n,scopeType:i,scopeValue:o,collectionName:r},body:e})]})})},t.prototype.queryCollectionsByName=function(e,t,n){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/ExtensionManagement/InstalledExtensions/{publisherName}/{extensionName}/ExtensionDataCollectionQuery",routeValues:{publisherName:t,extensionName:n},body:e})]})})},t.prototype.getStates=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={includeDisabled:e,includeErrors:t,includeInstallationIssues:n,forceRefresh:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/ExtensionStates",queryParams:o})]})})},t.prototype.queryExtensions=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/ExtensionManagement/InstalledExtensionQuery",body:e})]})})},t.prototype.getInstalledExtensions=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={includeDisabledExtensions:e,includeErrors:t,assetTypes:n&&n.join(":"),includeInstallationIssues:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{extensionId}",queryParams:o})]})})},t.prototype.updateInstalledExtension=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/ExtensionManagement/InstalledExtensions/{extensionId}",body:e})]})})},t.prototype.getInstalledExtensionByName=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={assetTypes:n&&n.join(":")},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",routeValues:{publisherName:e,extensionName:t},queryParams:i})]})})},t.prototype.installExtensionByName=function(e,t,n){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/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",routeValues:{publisherName:e,extensionName:t,version:n}})]})})},t.prototype.uninstallExtensionByName=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={reason:n,reasonCode:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionName}/{version}",routeValues:{publisherName:e,extensionName:t},queryParams:o})]})})},t.prototype.getPolicies=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/Policies/{userId}",routeValues:{userId:e}})]})})},t.prototype.resolveRequest=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={state:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/{requesterId}",routeValues:{publisherName:t,extensionName:n,requesterId:i},queryParams:r,body:e})]})})},t.prototype.getRequests=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions"})]})})},t.prototype.resolveAllRequests=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(r){return o={state:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}",routeValues:{publisherName:t,extensionName:n},queryParams:o,body:e})]})})},t.prototype.deleteRequest=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/me",routeValues:{publisherName:e,extensionName:t}})]})})},t.prototype.requestExtension=function(e,t,n){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/ExtensionManagement/RequestedExtensions/{publisherName}/{extensionName}/requests/me",routeValues:{publisherName:e,extensionName:t},body:n})]})})},t.prototype.getToken=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/ExtensionManagement/Token"})]})})},t.RESOURCE_AREA_ID="6c2b0933-3600-42ae-bf8b-93d4f7e83594",t}(n.RestClientBase);t.ExtensionManagementRestClient=i});
|
|
@@ -67,7 +67,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
67
67
|
faultInMissingHost: faultInMissingHost
|
|
68
68
|
};
|
|
69
69
|
return [2 /*return*/, this.beginRequest({
|
|
70
|
-
apiVersion: "7.
|
|
70
|
+
apiVersion: "7.2-preview.1",
|
|
71
71
|
routeTemplate: "_apis/Favorite/FavoriteProviders",
|
|
72
72
|
queryParams: queryValues
|
|
73
73
|
})];
|
|
@@ -81,7 +81,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
81
81
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
82
|
return __generator(this, function (_a) {
|
|
83
83
|
return [2 /*return*/, this.beginRequest({
|
|
84
|
-
apiVersion: "7.
|
|
84
|
+
apiVersion: "7.2-preview.1",
|
|
85
85
|
method: "POST",
|
|
86
86
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
87
87
|
body: favorite
|
|
@@ -103,7 +103,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
103
103
|
ownerScopeId: ownerScopeId
|
|
104
104
|
};
|
|
105
105
|
return [2 /*return*/, this.beginRequest({
|
|
106
|
-
apiVersion: "7.
|
|
106
|
+
apiVersion: "7.2-preview.1",
|
|
107
107
|
method: "POST",
|
|
108
108
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
109
109
|
queryParams: queryValues,
|
|
@@ -128,7 +128,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
128
128
|
artifactScopeId: artifactScopeId
|
|
129
129
|
};
|
|
130
130
|
return [2 /*return*/, this.beginRequest({
|
|
131
|
-
apiVersion: "7.
|
|
131
|
+
apiVersion: "7.2-preview.1",
|
|
132
132
|
method: "DELETE",
|
|
133
133
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
134
134
|
routeValues: {
|
|
@@ -159,7 +159,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
159
159
|
artifactScopeId: artifactScopeId
|
|
160
160
|
};
|
|
161
161
|
return [2 /*return*/, this.beginRequest({
|
|
162
|
-
apiVersion: "7.
|
|
162
|
+
apiVersion: "7.2-preview.1",
|
|
163
163
|
method: "DELETE",
|
|
164
164
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
165
165
|
routeValues: {
|
|
@@ -189,7 +189,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
189
189
|
includeExtendedDetails: includeExtendedDetails
|
|
190
190
|
};
|
|
191
191
|
return [2 /*return*/, this.beginRequest({
|
|
192
|
-
apiVersion: "7.
|
|
192
|
+
apiVersion: "7.2-preview.1",
|
|
193
193
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
194
194
|
queryParams: queryValues
|
|
195
195
|
})];
|
|
@@ -214,7 +214,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
214
214
|
includeExtendedDetails: includeExtendedDetails
|
|
215
215
|
};
|
|
216
216
|
return [2 /*return*/, this.beginRequest({
|
|
217
|
-
apiVersion: "7.
|
|
217
|
+
apiVersion: "7.2-preview.1",
|
|
218
218
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
219
219
|
routeValues: {
|
|
220
220
|
favoriteId: favoriteId
|
|
@@ -246,7 +246,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
246
246
|
includeExtendedDetails: includeExtendedDetails
|
|
247
247
|
};
|
|
248
248
|
return [2 /*return*/, this.beginRequest({
|
|
249
|
-
apiVersion: "7.
|
|
249
|
+
apiVersion: "7.2-preview.1",
|
|
250
250
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
251
251
|
routeValues: {
|
|
252
252
|
favoriteId: favoriteId
|
|
@@ -273,7 +273,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
273
273
|
includeExtendedDetails: includeExtendedDetails
|
|
274
274
|
};
|
|
275
275
|
return [2 /*return*/, this.beginRequest({
|
|
276
|
-
apiVersion: "7.
|
|
276
|
+
apiVersion: "7.2-preview.1",
|
|
277
277
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
278
278
|
queryParams: queryValues
|
|
279
279
|
})];
|
|
@@ -301,7 +301,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
301
301
|
includeExtendedDetails: includeExtendedDetails
|
|
302
302
|
};
|
|
303
303
|
return [2 /*return*/, this.beginRequest({
|
|
304
|
-
apiVersion: "7.
|
|
304
|
+
apiVersion: "7.2-preview.1",
|
|
305
305
|
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
306
306
|
queryParams: queryValues
|
|
307
307
|
})];
|
|
@@ -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(o,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function u(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){e.done?o(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,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){u.label=r[1];break}if(6===r[0]&&u.label<n[1]){u.label=n[1],n=r;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(r);break}n[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var i,o,n,a,u={label:0,sent:function(){if(1&n[0])throw n[1];return n[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.getFavoriteProviders=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={faultInMissingHost:e},[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(o,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function u(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){e.done?o(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,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){u.label=r[1];break}if(6===r[0]&&u.label<n[1]){u.label=n[1],n=r;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(r);break}n[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var i,o,n,a,u={label:0,sent:function(){if(1&n[0])throw n[1];return n[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.getFavoriteProviders=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={faultInMissingHost:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Favorite/FavoriteProviders",queryParams:t})]})})},t.prototype.createFavorite=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",body:e})]})})},t.prototype.createFavoriteOfOwner=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={ownerScopeType:t,ownerScopeId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:i,body:e})]})})},t.prototype.deleteFavoriteById=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={artifactType:t,artifactScopeType:r,artifactScopeId:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:o})]})})},t.prototype.deleteFavoriteOfOwnerById=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={ownerScopeType:t,ownerScopeId:r,artifactType:i,artifactScopeType:o,artifactScopeId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:a})]})})},t.prototype.getFavoriteByArtifact=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={artifactType:e,artifactId:t,artifactScopeType:r,artifactScopeId:i,includeExtendedDetails:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:n})]})})},t.prototype.getFavoriteById=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={artifactScopeType:t,artifactType:r,artifactScopeId:i,includeExtendedDetails:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:n})]})})},t.prototype.getFavoriteOfOwnerById=function(e,t,r,i,o,n,a){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={ownerScopeType:t,ownerScopeId:r,artifactScopeType:i,artifactType:o,artifactScopeId:n,includeExtendedDetails:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:u})]})})},t.prototype.getFavorites=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={artifactType:e,artifactScopeType:t,artifactScopeId:r,includeExtendedDetails:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:o})]})})},t.prototype.getFavoritesOfOwner=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={ownerScopeType:e,ownerScopeId:t,artifactType:r,artifactScopeType:i,artifactScopeId:o,includeExtendedDetails:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:a})]})})},t}(r.RestClientBase);t.FavoriteRestClient=i});
|
|
@@ -69,7 +69,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
69
69
|
userEmail: userEmail
|
|
70
70
|
};
|
|
71
71
|
return [2 /*return*/, this.beginRequest({
|
|
72
|
-
apiVersion: "7.
|
|
72
|
+
apiVersion: "7.2-preview.1",
|
|
73
73
|
routeTemplate: "_apis/FeatureFlags/{name}",
|
|
74
74
|
queryParams: queryValues
|
|
75
75
|
})];
|
|
@@ -90,7 +90,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
90
90
|
checkFeatureExists: checkFeatureExists
|
|
91
91
|
};
|
|
92
92
|
return [2 /*return*/, this.beginRequest({
|
|
93
|
-
apiVersion: "7.
|
|
93
|
+
apiVersion: "7.2-preview.1",
|
|
94
94
|
routeTemplate: "_apis/FeatureFlags/{name}",
|
|
95
95
|
routeValues: {
|
|
96
96
|
name: name
|
|
@@ -116,7 +116,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
116
116
|
checkFeatureExists: checkFeatureExists
|
|
117
117
|
};
|
|
118
118
|
return [2 /*return*/, this.beginRequest({
|
|
119
|
-
apiVersion: "7.
|
|
119
|
+
apiVersion: "7.2-preview.1",
|
|
120
120
|
routeTemplate: "_apis/FeatureFlags/{name}",
|
|
121
121
|
routeValues: {
|
|
122
122
|
name: name
|
|
@@ -142,7 +142,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
142
142
|
checkFeatureExists: checkFeatureExists
|
|
143
143
|
};
|
|
144
144
|
return [2 /*return*/, this.beginRequest({
|
|
145
|
-
apiVersion: "7.
|
|
145
|
+
apiVersion: "7.2-preview.1",
|
|
146
146
|
routeTemplate: "_apis/FeatureFlags/{name}",
|
|
147
147
|
routeValues: {
|
|
148
148
|
name: name
|
|
@@ -171,7 +171,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
171
171
|
setAtApplicationLevelAlso: setAtApplicationLevelAlso
|
|
172
172
|
};
|
|
173
173
|
return [2 /*return*/, this.beginRequest({
|
|
174
|
-
apiVersion: "7.
|
|
174
|
+
apiVersion: "7.2-preview.1",
|
|
175
175
|
method: "PATCH",
|
|
176
176
|
routeTemplate: "_apis/FeatureFlags/{name}",
|
|
177
177
|
routeValues: {
|