azure-devops-extension-api 1.157.0 → 2.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accounts/AccountsClient.d.ts +1 -1
- package/Accounts/AccountsClient.js +4 -4
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/Build.d.ts +201 -3
- package/Build/Build.js +6 -2
- package/Build/Build.min.js +1 -1
- package/Build/BuildClient.d.ts +121 -13
- package/Build/BuildClient.js +468 -101
- package/Build/BuildClient.min.js +1 -1
- package/Common/CommonServices.d.ts +62 -0
- package/Contributions/Contributions.d.ts +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.d.ts +2 -2
- package/Core/CoreClient.js +49 -36
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/Dashboard.d.ts +79 -2
- package/Dashboard/Dashboard.js +10 -0
- package/Dashboard/Dashboard.min.js +1 -1
- package/Dashboard/DashboardClient.d.ts +2 -2
- package/Dashboard/DashboardClient.js +15 -15
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.js +27 -27
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
- package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
- package/FeatureManagement/FeatureManagementClient.js +9 -9
- package/FeatureManagement/FeatureManagementClient.min.js +1 -1
- package/FileContainer/FileContainer.d.ts +22 -0
- package/FileContainer/FileContainer.js +8 -0
- package/FileContainer/FileContainer.min.js +1 -1
- package/FileContainer/FileContainerClient.d.ts +5 -2
- package/FileContainer/FileContainerClient.js +13 -7
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/FormInput/FormInput.d.ts +1 -1
- package/Gallery/Gallery.d.ts +92 -7
- package/Gallery/Gallery.js +25 -3
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +41 -9
- package/Gallery/GalleryClient.js +211 -90
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +121 -7
- package/Git/Git.js +2 -1
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +173 -28
- package/Git/GitClient.js +630 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +41 -2
- package/Graph/GraphClient.js +158 -37
- package/Graph/GraphClient.min.js +1 -1
- package/Identities/Identities.d.ts +15 -0
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/Notification.d.ts +3 -3
- package/Notification/NotificationClient.d.ts +6 -0
- package/Notification/NotificationClient.js +40 -23
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.d.ts +1 -1
- package/Operations/OperationsClient.js +2 -2
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +318 -0
- package/Pipelines/Pipelines.js +82 -0
- package/Pipelines/Pipelines.min.js +1 -0
- package/Pipelines/PipelinesClient.d.ts +92 -0
- package/Pipelines/PipelinesClient.js +325 -0
- package/Pipelines/PipelinesClient.min.js +1 -0
- package/Policy/Policy.d.ts +4 -0
- package/Policy/PolicyClient.d.ts +3 -3
- package/Policy/PolicyClient.js +30 -19
- package/Policy/PolicyClient.min.js +1 -1
- package/Profile/ProfileClient.js +12 -12
- package/Profile/ProfileClient.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
- package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
- package/Release/Release.d.ts +81 -7
- package/Release/Release.js +11 -0
- package/Release/Release.min.js +1 -1
- package/Release/ReleaseClient.d.ts +31 -5
- package/Release/ReleaseClient.js +223 -95
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
- package/ServiceEndpoint/ServiceEndpoint.js +1 -0
- package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
- package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +2 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +737 -17
- package/TaskAgent/TaskAgent.js +133 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/TaskAgent/TaskAgentClient.d.ts +28 -16
- package/TaskAgent/TaskAgentClient.js +336 -195
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/Test.d.ts +96 -25
- package/Test/Test.js +8 -0
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +17 -34
- package/Test/TestClient.js +163 -152
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +215 -18
- package/TestPlan/TestPlan.js +47 -1
- package/TestPlan/TestPlan.min.js +1 -1
- package/TestPlan/TestPlanClient.d.ts +48 -14
- package/TestPlan/TestPlanClient.js +255 -74
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +112 -27
- package/TestResults/TestResultsClient.js +518 -134
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +9 -1
- package/Tfvc/TfvcClient.d.ts +3 -2
- package/Tfvc/TfvcClient.js +41 -28
- package/Tfvc/TfvcClient.min.js +1 -1
- package/WebApi/WebApi.d.ts +22 -3
- package/Wiki/Wiki.d.ts +51 -0
- package/Wiki/WikiClient.d.ts +18 -0
- package/Wiki/WikiClient.js +71 -1
- package/Wiki/WikiClient.min.js +1 -1
- package/Work/Work.d.ts +68 -1
- package/Work/WorkClient.d.ts +10 -3
- package/Work/WorkClient.js +78 -58
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +170 -1
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
- package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
- package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +3 -3
|
@@ -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: "
|
|
72
|
+
apiVersion: "7.1-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: "
|
|
97
|
+
apiVersion: "7.1-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: "
|
|
122
|
+
apiVersion: "7.1-preview.3",
|
|
123
123
|
routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
|
|
124
124
|
routeValues: {
|
|
125
125
|
project: project,
|
|
@@ -131,18 +131,18 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
|
-
* Get a list of dashboards.
|
|
134
|
+
* Get a list of dashboards under a project.
|
|
135
135
|
*
|
|
136
136
|
* @param teamContext - The team context for the operation
|
|
137
137
|
*/
|
|
138
|
-
DashboardRestClient.prototype.
|
|
138
|
+
DashboardRestClient.prototype.getDashboardsByProject = function (teamContext) {
|
|
139
139
|
return __awaiter(this, void 0, void 0, function () {
|
|
140
140
|
var project, team;
|
|
141
141
|
return __generator(this, function (_a) {
|
|
142
142
|
project = teamContext.projectId || teamContext.project;
|
|
143
143
|
team = teamContext.teamId || teamContext.team;
|
|
144
144
|
return [2 /*return*/, this.beginRequest({
|
|
145
|
-
apiVersion: "
|
|
145
|
+
apiVersion: "7.1-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: "
|
|
169
|
+
apiVersion: "7.1-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: "
|
|
195
|
+
apiVersion: "7.1-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: "
|
|
221
|
+
apiVersion: "7.1-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: "
|
|
248
|
+
apiVersion: "7.1-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: "
|
|
275
|
+
apiVersion: "7.1-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: "
|
|
302
|
+
apiVersion: "7.1-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: "
|
|
331
|
+
apiVersion: "7.1-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: "
|
|
355
|
+
apiVersion: "7.1-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: "
|
|
379
|
+
apiVersion: "7.1-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:"
|
|
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-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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});
|
|
@@ -16,7 +16,7 @@ export declare enum AcquisitionAssignmentType {
|
|
|
16
16
|
}
|
|
17
17
|
export interface AcquisitionOperation {
|
|
18
18
|
/**
|
|
19
|
-
* State of the
|
|
19
|
+
* State of the AcquisitionOperation for the current user
|
|
20
20
|
*/
|
|
21
21
|
operationState: AcquisitionOperationState;
|
|
22
22
|
/**
|
|
@@ -260,7 +260,7 @@ export interface ContributionConstraint {
|
|
|
260
260
|
*/
|
|
261
261
|
properties: any;
|
|
262
262
|
/**
|
|
263
|
-
* Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will
|
|
263
|
+
* Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will eliminate the contribution from the tree completely if the constraint is applied.
|
|
264
264
|
*/
|
|
265
265
|
relationships: string[];
|
|
266
266
|
}
|
|
@@ -109,7 +109,7 @@ export declare class ExtensionManagementRestClient extends RestClientBase {
|
|
|
109
109
|
*
|
|
110
110
|
* @param includeDisabledExtensions - If true (the default), include disabled extensions in the results.
|
|
111
111
|
* @param includeErrors - If true, include installed extensions with errors.
|
|
112
|
-
* @param assetTypes -
|
|
112
|
+
* @param assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
|
|
113
113
|
* @param includeInstallationIssues -
|
|
114
114
|
*/
|
|
115
115
|
getInstalledExtensions(includeDisabledExtensions?: boolean, includeErrors?: boolean, assetTypes?: string[], includeInstallationIssues?: boolean): Promise<ExtensionManagement.InstalledExtension[]>;
|
|
@@ -124,7 +124,7 @@ export declare class ExtensionManagementRestClient extends RestClientBase {
|
|
|
124
124
|
*
|
|
125
125
|
* @param publisherName - Name of the publisher. Example: "fabrikam".
|
|
126
126
|
* @param extensionName - Name of the extension. Example: "ops-tools".
|
|
127
|
-
* @param assetTypes -
|
|
127
|
+
* @param assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
|
|
128
128
|
*/
|
|
129
129
|
getInstalledExtensionByName(publisherName: string, extensionName: string, assetTypes?: string[]): Promise<ExtensionManagement.InstalledExtension>;
|
|
130
130
|
/**
|
|
@@ -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: "
|
|
82
|
+
apiVersion: "7.1-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: "
|
|
96
|
+
apiVersion: "7.1-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: "
|
|
112
|
+
apiVersion: "7.1-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: "
|
|
131
|
+
apiVersion: "7.1-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: "
|
|
155
|
+
apiVersion: "7.1-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: "
|
|
182
|
+
apiVersion: "7.1-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: "
|
|
209
|
+
apiVersion: "7.1-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: "
|
|
234
|
+
apiVersion: "7.1-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: "
|
|
259
|
+
apiVersion: "7.1-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: "
|
|
286
|
+
apiVersion: "7.1-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: "
|
|
312
|
+
apiVersion: "7.1-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: "
|
|
343
|
+
apiVersion: "7.1-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: "
|
|
357
|
+
apiVersion: "7.1-preview.1",
|
|
358
358
|
method: "POST",
|
|
359
359
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensionQuery",
|
|
360
360
|
body: query
|
|
@@ -367,7 +367,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
367
367
|
*
|
|
368
368
|
* @param includeDisabledExtensions - If true (the default), include disabled extensions in the results.
|
|
369
369
|
* @param includeErrors - If true, include installed extensions with errors.
|
|
370
|
-
* @param assetTypes -
|
|
370
|
+
* @param assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
|
|
371
371
|
* @param includeInstallationIssues -
|
|
372
372
|
*/
|
|
373
373
|
ExtensionManagementRestClient.prototype.getInstalledExtensions = function (includeDisabledExtensions, includeErrors, assetTypes, includeInstallationIssues) {
|
|
@@ -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: "
|
|
384
|
+
apiVersion: "7.1-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: "
|
|
400
|
+
apiVersion: "7.1-preview.1",
|
|
401
401
|
method: "PATCH",
|
|
402
402
|
routeTemplate: "_apis/ExtensionManagement/InstalledExtensions/{extensionId}",
|
|
403
403
|
body: extension
|
|
@@ -410,7 +410,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
410
410
|
*
|
|
411
411
|
* @param publisherName - Name of the publisher. Example: "fabrikam".
|
|
412
412
|
* @param extensionName - Name of the extension. Example: "ops-tools".
|
|
413
|
-
* @param assetTypes -
|
|
413
|
+
* @param assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
|
|
414
414
|
*/
|
|
415
415
|
ExtensionManagementRestClient.prototype.getInstalledExtensionByName = function (publisherName, extensionName, assetTypes) {
|
|
416
416
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -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: "
|
|
423
|
+
apiVersion: "7.1-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: "
|
|
445
|
+
apiVersion: "7.1-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: "
|
|
474
|
+
apiVersion: "7.1-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: "
|
|
493
|
+
apiVersion: "7.1-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: "
|
|
517
|
+
apiVersion: "7.1-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: "
|
|
537
|
+
apiVersion: "7.1-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: "
|
|
557
|
+
apiVersion: "7.1-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: "
|
|
578
|
+
apiVersion: "7.1-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: "
|
|
598
|
+
apiVersion: "7.1-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: "
|
|
616
|
+
apiVersion: "7.1-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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.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:"5.2-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.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});
|
|
@@ -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: "
|
|
72
|
+
apiVersion: "7.1-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: "
|
|
93
|
+
apiVersion: "7.1-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: "
|
|
119
|
+
apiVersion: "7.1-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: "
|
|
145
|
+
apiVersion: "7.1-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: "
|
|
174
|
+
apiVersion: "7.1-preview.1",
|
|
175
175
|
method: "PATCH",
|
|
176
176
|
routeTemplate: "_apis/FeatureFlags/{name}",
|
|
177
177
|
routeValues: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(e){try{s(n.next(e))}catch(e){i(e)}}function u(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(o,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=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 u.label++,{value:r[1],done:!1};case 5:u.label++,a=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var n,a,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAllFeatureFlags=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={userEmail:e},[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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(e){try{s(n.next(e))}catch(e){i(e)}}function u(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(o,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=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 u.label++,{value:r[1],done:!1};case 5:u.label++,a=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var n,a,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAllFeatureFlags=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={userEmail:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",queryParams:t})]})})},t.prototype.getFeatureFlagByName=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={checkFeatureExists:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:r})]})})},t.prototype.getFeatureFlagByNameAndUserEmail=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={userEmail:t,checkFeatureExists:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:n})]})})},t.prototype.getFeatureFlagByNameAndUserId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={userId:t,checkFeatureExists:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:n})]})})},t.prototype.updateFeatureFlag=function(e,t,r,n,a){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={userEmail:r,checkFeatureExists:n,setAtApplicationLevelAlso:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:t},queryParams:i,body:e})]})})},t}(r.RestClientBase);t.FeatureAvailabilityRestClient=n});
|