azure-devops-extension-api 4.241.0 → 4.242.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/Git/Git.d.ts +8 -0
- package/Management/Management.d.ts +4 -0
- package/Management/ManagementClient.d.ts +21 -3
- package/Management/ManagementClient.js +70 -8
- package/Management/ManagementClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +10 -0
- package/Release/Release.d.ts +5 -1
- package/Release/Release.js +4 -0
- package/Release/Release.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +5 -0
- package/TaskAgent/TaskAgent.d.ts +2 -0
- package/Test/Test.d.ts +8 -0
- package/TestPlan/TestPlan.d.ts +4 -0
- package/WorkItemTracking/WorkItemTracking.d.ts +13 -0
- package/package.json +1 -1
- package/ManagementInternal/ManagementInternal.d.ts +0 -32
- package/ManagementInternal/ManagementInternal.js +0 -24
- package/ManagementInternal/ManagementInternal.min.js +0 -1
- package/ManagementInternal/ManagementInternalClient.d.ts +0 -31
- package/ManagementInternal/ManagementInternalClient.js +0 -143
- package/ManagementInternal/ManagementInternalClient.min.js +0 -1
package/Git/Git.d.ts
CHANGED
|
@@ -1423,6 +1423,10 @@ export interface GitItem extends ItemModel {
|
|
|
1423
1423
|
* Git object id
|
|
1424
1424
|
*/
|
|
1425
1425
|
originalObjectId: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* Web URL if the item is a Git submodule and target service is supported. Supported services are Azure Repos, GitHub, GitLab, Bitbucket.
|
|
1428
|
+
*/
|
|
1429
|
+
submoduleWebUrl: string;
|
|
1426
1430
|
}
|
|
1427
1431
|
export interface GitItemDescriptor {
|
|
1428
1432
|
/**
|
|
@@ -1646,6 +1650,10 @@ export interface GitPullRequest {
|
|
|
1646
1650
|
* Multiple mergebases warning
|
|
1647
1651
|
*/
|
|
1648
1652
|
hasMultipleMergeBases: boolean;
|
|
1653
|
+
/**
|
|
1654
|
+
* This optional parameter allows clients to use server-side dynamic choices for the target ref. Due to preexisting contracts, users _must_ specify a target ref, but this option will cause the server to ignore it and choose dynamically from the user's favorites (or the default branch).
|
|
1655
|
+
*/
|
|
1656
|
+
ignoreTargetRefAndChooseDynamically: boolean;
|
|
1649
1657
|
/**
|
|
1650
1658
|
* Draft / WIP pull request.
|
|
1651
1659
|
*/
|
|
@@ -4,6 +4,10 @@ export interface AdvSecEnablementFeatures {
|
|
|
4
4
|
* Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>Setting Dependabot enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
5
5
|
*/
|
|
6
6
|
dependabotEnabled: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* ForceRepoSecretScanning will be set to true when Enabled, false when Disabled, and null when not set. \<br /\> If GHAzDO is NOT already enabled, behavior will depend on if GHAzDO is to be enabled/disabled. ForceRepoSecretScanning will not affect anything in this scenario. \<br /\> If GHAzDO is to be disabled, the value of ForceRepoSecretScan will have no effect. \<br /\> If GHAzDO is to be enabled for the first time on a repo, then ForceRepoSecretScanning will have no effect. \<br /\> If GHAzDO is to be enabled and the repo is already enabled, then ForceRepoSecretScanning will force the secret scanning job to be run if it is set to true. \<br /\> In all cases where ForceRepoSecretScanning is not expected to affect behavior, it will be set to false before being sent to Tfs.
|
|
9
|
+
*/
|
|
10
|
+
forceRepoSecretScanning: boolean;
|
|
7
11
|
}
|
|
8
12
|
export interface AdvSecEnablementSettings {
|
|
9
13
|
/**
|
|
@@ -4,7 +4,7 @@ import * as Management from "../Management/Management";
|
|
|
4
4
|
export declare class ManagementRestClient extends RestClientBase {
|
|
5
5
|
constructor(options: IVssRestClientOptions);
|
|
6
6
|
/**
|
|
7
|
-
* Delete the billing info for an organization.
|
|
7
|
+
* Delete the billing info for an organization from config DB.
|
|
8
8
|
*
|
|
9
9
|
* @param organizationId -
|
|
10
10
|
*/
|
|
@@ -16,13 +16,13 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
16
16
|
*/
|
|
17
17
|
deleteMeterUsageHistory(organizationId: string): Promise<void>;
|
|
18
18
|
/**
|
|
19
|
-
* Get the billing info for an organization.
|
|
19
|
+
* Get the billing info for an organization from config DB.
|
|
20
20
|
*
|
|
21
21
|
* @param organizationId - Organization ID to get billing info for.
|
|
22
22
|
*/
|
|
23
23
|
getBillingInfo(organizationId: string): Promise<Management.BillingInfo>;
|
|
24
24
|
/**
|
|
25
|
-
* Save the billing info for an organization.
|
|
25
|
+
* Save the billing info for an organization in config DB.
|
|
26
26
|
*
|
|
27
27
|
* @param billingInfo -
|
|
28
28
|
* @param organizationId -
|
|
@@ -61,6 +61,11 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
61
61
|
* @param savedAdvSecEnablementStatus - The new status
|
|
62
62
|
*/
|
|
63
63
|
updateOrgEnablementStatus(savedAdvSecEnablementStatus: Management.AdvSecEnablementSettingsUpdate): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
getEstimatedBillablePushersDetailsForOrg(): Promise<Management.BilledCommitter[]>;
|
|
64
69
|
/**
|
|
65
70
|
* Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
66
71
|
*
|
|
@@ -80,6 +85,12 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
80
85
|
* @param project - Project ID or project name
|
|
81
86
|
*/
|
|
82
87
|
updateProjectEnablementStatus(savedAdvSecEnablementStatus: Management.AdvSecEnablementSettingsUpdate, project: string): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
90
|
+
*
|
|
91
|
+
* @param project - Project ID or project name
|
|
92
|
+
*/
|
|
93
|
+
getEstimatedBillablePushersDetailsForProject(project: string): Promise<Management.BilledCommitter[]>;
|
|
83
94
|
/**
|
|
84
95
|
* Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
85
96
|
*
|
|
@@ -109,4 +120,11 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
109
120
|
* @param repository - The name or ID of the repository
|
|
110
121
|
*/
|
|
111
122
|
getEstimatedRepoBillableCommitters(project: string, repository: string): Promise<string[]>;
|
|
123
|
+
/**
|
|
124
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
125
|
+
*
|
|
126
|
+
* @param project - Project ID or project name
|
|
127
|
+
* @param repository -
|
|
128
|
+
*/
|
|
129
|
+
getEstimatedRepoBillablePushersDetails(project: string, repository: string): Promise<Management.BilledCommitter[]>;
|
|
112
130
|
}
|
|
@@ -57,7 +57,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
57
57
|
return _super.call(this, options) || this;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Delete the billing info for an organization.
|
|
60
|
+
* Delete the billing info for an organization from config DB.
|
|
61
61
|
*
|
|
62
62
|
* @param organizationId -
|
|
63
63
|
*/
|
|
@@ -97,7 +97,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
|
-
* Get the billing info for an organization.
|
|
100
|
+
* Get the billing info for an organization from config DB.
|
|
101
101
|
*
|
|
102
102
|
* @param organizationId - Organization ID to get billing info for.
|
|
103
103
|
*/
|
|
@@ -116,7 +116,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
118
|
/**
|
|
119
|
-
* Save the billing info for an organization.
|
|
119
|
+
* Save the billing info for an organization in config DB.
|
|
120
120
|
*
|
|
121
121
|
* @param billingInfo -
|
|
122
122
|
* @param organizationId -
|
|
@@ -255,6 +255,23 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
255
255
|
});
|
|
256
256
|
});
|
|
257
257
|
};
|
|
258
|
+
/**
|
|
259
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg = function () {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
return __generator(this, function (_a) {
|
|
265
|
+
return [2 /*return*/, this.beginRequest({
|
|
266
|
+
apiVersion: "7.2-preview.1",
|
|
267
|
+
routeTemplate: "_apis/Management/meterUsageEstimate/{action}",
|
|
268
|
+
routeValues: {
|
|
269
|
+
action: "Details"
|
|
270
|
+
}
|
|
271
|
+
})];
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
};
|
|
258
275
|
/**
|
|
259
276
|
* Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
260
277
|
*
|
|
@@ -264,7 +281,10 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
264
281
|
return __generator(this, function (_a) {
|
|
265
282
|
return [2 /*return*/, this.beginRequest({
|
|
266
283
|
apiVersion: "7.2-preview.1",
|
|
267
|
-
routeTemplate: "_apis/Management/meterUsageEstimate"
|
|
284
|
+
routeTemplate: "_apis/Management/meterUsageEstimate/{action}",
|
|
285
|
+
routeValues: {
|
|
286
|
+
action: "Default"
|
|
287
|
+
}
|
|
268
288
|
})];
|
|
269
289
|
});
|
|
270
290
|
});
|
|
@@ -314,6 +334,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
314
334
|
});
|
|
315
335
|
});
|
|
316
336
|
};
|
|
337
|
+
/**
|
|
338
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
339
|
+
*
|
|
340
|
+
* @param project - Project ID or project name
|
|
341
|
+
*/
|
|
342
|
+
ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject = function (project) {
|
|
343
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
344
|
+
return __generator(this, function (_a) {
|
|
345
|
+
return [2 /*return*/, this.beginRequest({
|
|
346
|
+
apiVersion: "7.2-preview.1",
|
|
347
|
+
routeTemplate: "{project}/_apis/Management/meterUsageEstimate/{action}",
|
|
348
|
+
routeValues: {
|
|
349
|
+
project: project,
|
|
350
|
+
action: "Details"
|
|
351
|
+
}
|
|
352
|
+
})];
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
};
|
|
317
356
|
/**
|
|
318
357
|
* Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
319
358
|
*
|
|
@@ -324,9 +363,10 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
324
363
|
return __generator(this, function (_a) {
|
|
325
364
|
return [2 /*return*/, this.beginRequest({
|
|
326
365
|
apiVersion: "7.2-preview.1",
|
|
327
|
-
routeTemplate: "{project}/_apis/Management/meterUsageEstimate",
|
|
366
|
+
routeTemplate: "{project}/_apis/Management/meterUsageEstimate/{action}",
|
|
328
367
|
routeValues: {
|
|
329
|
-
project: project
|
|
368
|
+
project: project,
|
|
369
|
+
action: "Default"
|
|
330
370
|
}
|
|
331
371
|
})];
|
|
332
372
|
});
|
|
@@ -392,10 +432,32 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
392
432
|
return __generator(this, function (_a) {
|
|
393
433
|
return [2 /*return*/, this.beginRequest({
|
|
394
434
|
apiVersion: "7.2-preview.1",
|
|
395
|
-
routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate",
|
|
435
|
+
routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
|
|
396
436
|
routeValues: {
|
|
397
437
|
project: project,
|
|
398
|
-
repository: repository
|
|
438
|
+
repository: repository,
|
|
439
|
+
action: "Default"
|
|
440
|
+
}
|
|
441
|
+
})];
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
447
|
+
*
|
|
448
|
+
* @param project - Project ID or project name
|
|
449
|
+
* @param repository -
|
|
450
|
+
*/
|
|
451
|
+
ManagementRestClient.prototype.getEstimatedRepoBillablePushersDetails = function (project, repository) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
453
|
+
return __generator(this, function (_a) {
|
|
454
|
+
return [2 /*return*/, this.beginRequest({
|
|
455
|
+
apiVersion: "7.2-preview.1",
|
|
456
|
+
routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
|
|
457
|
+
routeValues: {
|
|
458
|
+
project: project,
|
|
459
|
+
repository: repository,
|
|
460
|
+
action: "Details"
|
|
399
461
|
}
|
|
400
462
|
})];
|
|
401
463
|
});
|
|
@@ -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
|
|
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(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.deleteBillingInfo=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:"DELETE",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"Default"}})]})})},t.prototype.deleteMeterUsageHistory=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:"DELETE",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"MeterUsageHistory"}})]})})},t.prototype.getBillingInfo=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:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"Default"}})]})})},t.prototype.saveBillingInfo=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:t,action:"Default"},body:e})]})})},t.prototype.createBillingSnapshot=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/Management/MeterUsage/{action}",routeValues:{action:"Default"},body:e})]})})},t.prototype.getBillableCommitterDetails=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Details"},queryParams:t})]})})},t.prototype.getLastMeterUsage=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/Management/MeterUsage/{action}",routeValues:{action:"Last"}})]})})},t.prototype.getMeterUsage=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.getOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={includeAllProperties:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/enablement",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus=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/Management/enablement",body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForOrg=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/Management/meterUsageEstimate/{action}",routeValues:{action:"Details"}})]})})},t.prototype.getEstimatedOrgBillablePushers=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/Management/meterUsageEstimate/{action}",routeValues:{action:"Default"}})]})})},t.prototype.getProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForProject=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:"{project}/_apis/Management/meterUsageEstimate/{action}",routeValues:{project:e,action:"Details"}})]})})},t.prototype.getEstimatedProjectBillablePushers=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:"{project}/_apis/Management/meterUsageEstimate/{action}",routeValues:{project:e,action:"Default"}})]})})},t.prototype.getRepoEnablementStatus=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:n})]})})},t.prototype.updateRepoAdvSecEnablementStatus=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getEstimatedRepoBillableCommitters=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/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Default"}})]})})},t.prototype.getEstimatedRepoBillablePushersDetails=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/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Details"}})]})})},t}(r.RestClientBase);t.ManagementRestClient=n});
|
package/Pipelines/Pipelines.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export interface Artifact {
|
|
|
16
16
|
*/
|
|
17
17
|
url: string;
|
|
18
18
|
}
|
|
19
|
+
export interface Build {
|
|
20
|
+
artifactSourceVersionUrl: string;
|
|
21
|
+
type: string;
|
|
22
|
+
versionId: string;
|
|
23
|
+
versionName: string;
|
|
24
|
+
}
|
|
19
25
|
export interface BuildResourceParameters {
|
|
20
26
|
version: string;
|
|
21
27
|
}
|
|
@@ -186,6 +192,7 @@ export interface PipelineResource {
|
|
|
186
192
|
version: string;
|
|
187
193
|
}
|
|
188
194
|
export interface PipelineResourceParameters {
|
|
195
|
+
branch: string;
|
|
189
196
|
version: string;
|
|
190
197
|
}
|
|
191
198
|
export interface PreviewRun {
|
|
@@ -265,6 +272,9 @@ export interface RunReference {
|
|
|
265
272
|
name: string;
|
|
266
273
|
}
|
|
267
274
|
export interface RunResources {
|
|
275
|
+
builds: {
|
|
276
|
+
[key: string]: Build;
|
|
277
|
+
};
|
|
268
278
|
containers: {
|
|
269
279
|
[key: string]: ContainerResource;
|
|
270
280
|
};
|
package/Release/Release.d.ts
CHANGED
|
@@ -1861,7 +1861,11 @@ export declare enum ManualInterventionStatus {
|
|
|
1861
1861
|
/**
|
|
1862
1862
|
* The manual intervention is canceled.
|
|
1863
1863
|
*/
|
|
1864
|
-
Canceled = 8
|
|
1864
|
+
Canceled = 8,
|
|
1865
|
+
/**
|
|
1866
|
+
* The manual intervention is bypassed.
|
|
1867
|
+
*/
|
|
1868
|
+
Bypassed = 16
|
|
1865
1869
|
}
|
|
1866
1870
|
/**
|
|
1867
1871
|
* Describes manual intervention status
|
package/Release/Release.js
CHANGED
|
@@ -540,6 +540,10 @@ define(["require", "exports"], function (require, exports) {
|
|
|
540
540
|
* The manual intervention is canceled.
|
|
541
541
|
*/
|
|
542
542
|
ManualInterventionStatus[ManualInterventionStatus["Canceled"] = 8] = "Canceled";
|
|
543
|
+
/**
|
|
544
|
+
* The manual intervention is bypassed.
|
|
545
|
+
*/
|
|
546
|
+
ManualInterventionStatus[ManualInterventionStatus["Bypassed"] = 16] = "Bypassed";
|
|
543
547
|
})(ManualInterventionStatus = exports.ManualInterventionStatus || (exports.ManualInterventionStatus = {}));
|
|
544
548
|
/**
|
|
545
549
|
* Describes manual intervention status
|
package/Release/Release.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.XamlBuild=0]="XamlBuild",e[e.Build=1]="Build",e[e.Jenkins=2]="Jenkins",e[e.FileShare=3]="FileShare",e[e.Nuget=4]="Nuget",e[e.TfsOnPrem=5]="TfsOnPrem",e[e.GitHub=6]="GitHub",e[e.TFGit=7]="TFGit",e[e.ExternalTfsBuild=8]="ExternalTfsBuild",e[e.Custom=9]="Custom",e[e.Tfvc=10]="Tfvc"}(n.AgentArtifactType||(n.AgentArtifactType={}));!function(e){e[e.BeforeGates=1]="BeforeGates",e[e.AfterSuccessfulGates=2]="AfterSuccessfulGates",e[e.AfterGatesAlways=4]="AfterGatesAlways"}(n.ApprovalExecutionOrder||(n.ApprovalExecutionOrder={}));!function(e){e[e.None=0]="None",e[e.ManualApprovals=1]="ManualApprovals",e[e.AutomatedApprovals=2]="AutomatedApprovals",e[e.ApprovalSnapshots=4]="ApprovalSnapshots",e[e.All=7]="All"}(n.ApprovalFilters||(n.ApprovalFilters={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Pending=1]="Pending",e[e.Approved=2]="Approved",e[e.Rejected=4]="Rejected",e[e.Reassigned=6]="Reassigned",e[e.Canceled=7]="Canceled",e[e.Skipped=8]="Skipped"}(n.ApprovalStatus||(n.ApprovalStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.PreDeploy=1]="PreDeploy",e[e.PostDeploy=2]="PostDeploy",e[e.All=3]="All"}(n.ApprovalType||(n.ApprovalType={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.RevalidateApproverIdentity=0]="RevalidateApproverIdentity",e[e.OnBehalfOf=1]="OnBehalfOf"}(n.AuthorizationHeaderFor||(n.AuthorizationHeaderFor={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Event=1]="Event",e[e.EnvironmentState=2]="EnvironmentState",e[e.Artifact=4]="Artifact"}(n.ConditionType||(n.ConditionType={}));!function(e){e[e.Automatic=0]="Automatic",e[e.DeploymentSubmitter=1]="DeploymentSubmitter",e[e.FirstPreDeploymentApprover=2]="FirstPreDeploymentApprover"}(n.DeploymentAuthorizationOwner||(n.DeploymentAuthorizationOwner={}));!function(e){e[e.All=0]="All",e[e.DeploymentOnly=1]="DeploymentOnly",e[e.Approvals=2]="Approvals",e[e.Artifacts=4]="Artifacts"}(n.DeploymentExpands||(n.DeploymentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Queued=1]="Queued",e[e.Scheduled=2]="Scheduled",e[e.Pending=4]="Pending",e[e.Approved=8]="Approved",e[e.Rejected=16]="Rejected",e[e.Deferred=32]="Deferred",e[e.QueuedForAgent=64]="QueuedForAgent",e[e.PhaseInProgress=128]="PhaseInProgress",e[e.PhaseSucceeded=256]="PhaseSucceeded",e[e.PhasePartiallySucceeded=512]="PhasePartiallySucceeded",e[e.PhaseFailed=1024]="PhaseFailed",e[e.Canceled=2048]="Canceled",e[e.PhaseCanceled=4096]="PhaseCanceled",e[e.ManualInterventionPending=8192]="ManualInterventionPending",e[e.QueuedForPipeline=16384]="QueuedForPipeline",e[e.Cancelling=32768]="Cancelling",e[e.EvaluatingGates=65536]="EvaluatingGates",e[e.GateFailed=131072]="GateFailed",e[e.All=258047]="All"}(n.DeploymentOperationStatus||(n.DeploymentOperationStatus={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.Automated=2]="Automated",e[e.Scheduled=4]="Scheduled",e[e.RedeployTrigger=8]="RedeployTrigger"}(n.DeploymentReason||(n.DeploymentReason={}));!function(e){e[e.Regular=1]="Regular",e[e.FailingSince=2]="FailingSince"}(n.DeploymentsQueryType||(n.DeploymentsQueryType={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotDeployed=1]="NotDeployed",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.PartiallySucceeded=8]="PartiallySucceeded",e[e.Failed=16]="Failed",e[e.All=31]="All"}(n.DeploymentStatus||(n.DeploymentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Succeeded=8]="Succeeded",e[e.Failed=16]="Failed",e[e.Canceled=32]="Canceled",e[e.Skipped=64]="Skipped",e[e.Cancelling=128]="Cancelling"}(n.DeployPhaseStatus||(n.DeployPhaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.AgentBasedDeployment=1]="AgentBasedDeployment",e[e.RunOnServer=2]="RunOnServer",e[e.MachineGroupBasedDeployment=4]="MachineGroupBasedDeployment",e[e.DeploymentGates=8]="DeploymentGates"}(n.DeployPhaseTypes||(n.DeployPhaseTypes={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Canceled=8]="Canceled",e[e.Rejected=16]="Rejected",e[e.Queued=32]="Queued",e[e.Scheduled=64]="Scheduled",e[e.PartiallySucceeded=128]="PartiallySucceeded"}(n.EnvironmentStatus||(n.EnvironmentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.DeploymentGroupRedeploy=1]="DeploymentGroupRedeploy",e[e.RollbackRedeploy=2]="RollbackRedeploy"}(n.EnvironmentTriggerType||(n.EnvironmentTriggerType={}));!function(e){e[e.None=0]="None",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(n.FolderPathQueryOrder||(n.FolderPathQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Failed=8]="Failed",e[e.Canceled=16]="Canceled"}(n.GateStatus||(n.GateStatus={}));!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.System=2]="System"}(n.IssueSource||(n.IssueSource={}));!function(e){e[e.Details=0]="Details",e[e.Environments=1]="Environments",e[e.Issues=2]="Issues",e[e.TestResults=3]="TestResults",e[e.WorkItems=4]="WorkItems",e[e.ReleaseInfo=5]="ReleaseInfo"}(n.MailSectionType||(n.MailSectionType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.Rejected=2]="Rejected",e[e.Approved=4]="Approved",e[e.Canceled=8]="Canceled"}(n.ManualInterventionStatus||(n.ManualInterventionStatus={}));!function(e){e[e.Task=1]="Task",e[e.ProofOfPresence=2]="ProofOfPresence"}(n.ManualInterventionType||(n.ManualInterventionType={}));!function(e){e[e.None=0]="None",e[e.MultiConfiguration=1]="MultiConfiguration",e[e.MultiMachine=2]="MultiMachine"}(n.ParallelExecutionTypes||(n.ParallelExecutionTypes={}));!function(e){e[e.Designer=1]="Designer",e[e.Yaml=2]="Yaml"}(n.PipelineProcessTypes||(n.PipelineProcessTypes={}));!function(e){e[e.Inclusion=0]="Inclusion",e[e.Exclusion=1]="Exclusion"}(n.PropertySelectorType||(n.PropertySelectorType={}));!function(e){e[e.None=0]="None",e[e.TfsGit=1]="TfsGit",e[e.GitHub=2]="GitHub"}(n.PullRequestSystemType||(n.PullRequestSystemType={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Triggers=8]="Triggers",e[e.Variables=16]="Variables",e[e.Tags=32]="Tags",e[e.LastRelease=64]="LastRelease"}(n.ReleaseDefinitionExpands||(n.ReleaseDefinitionExpands={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending",e[e.NameAscending=2]="NameAscending",e[e.NameDescending=3]="NameDescending"}(n.ReleaseDefinitionQueryOrder||(n.ReleaseDefinitionQueryOrder={}));!function(e){e[e.Undefined=0]="Undefined",e[e.RestApi=1]="RestApi",e[e.UserInterface=2]="UserInterface",e[e.Ibiza=4]="Ibiza",e[e.PortalExtensionApi=8]="PortalExtensionApi"}(n.ReleaseDefinitionSource||(n.ReleaseDefinitionSource={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.ReleaseEnvironmentExpands||(n.ReleaseEnvironmentExpands={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Approvals=8]="Approvals",e[e.ManualInterventions=16]="ManualInterventions",e[e.Variables=32]="Variables",e[e.Tags=64]="Tags"}(n.ReleaseExpands||(n.ReleaseExpands={}));!function(e){e[e.Descending=0]="Descending",e[e.Ascending=1]="Ascending"}(n.ReleaseQueryOrder||(n.ReleaseQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.Schedule=3]="Schedule",e[e.PullRequest=4]="PullRequest"}(n.ReleaseReason||(n.ReleaseReason={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Draft=1]="Draft",e[e.Active=2]="Active",e[e.Abandoned=4]="Abandoned"}(n.ReleaseStatus||(n.ReleaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.ArtifactSource=1]="ArtifactSource",e[e.Schedule=2]="Schedule",e[e.SourceRepo=3]="SourceRepo",e[e.ContainerImage=4]="ContainerImage",e[e.Package=5]="Package",e[e.PullRequest=6]="PullRequest"}(n.ReleaseTriggerType||(n.ReleaseTriggerType={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.ScheduleDays||(n.ScheduleDays={}));!function(e){e[e.ServiceAccount=1]="ServiceAccount",e[e.RequestingUser=2]="RequestingUser"}(n.SenderType||(n.SenderType={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.SingleReleaseExpands||(n.SingleReleaseExpands={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Success=3]="Success",e[e.Failure=4]="Failure",e[e.Canceled=5]="Canceled",e[e.Skipped=6]="Skipped",e[e.Succeeded=7]="Succeeded",e[e.Failed=8]="Failed",e[e.PartiallySucceeded=9]="PartiallySucceeded"}(n.TaskStatus||(n.TaskStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.TFSGit=1]="TFSGit"}(n.YamlFileSourceTypes||(n.YamlFileSourceTypes={}))});
|
|
1
|
+
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.XamlBuild=0]="XamlBuild",e[e.Build=1]="Build",e[e.Jenkins=2]="Jenkins",e[e.FileShare=3]="FileShare",e[e.Nuget=4]="Nuget",e[e.TfsOnPrem=5]="TfsOnPrem",e[e.GitHub=6]="GitHub",e[e.TFGit=7]="TFGit",e[e.ExternalTfsBuild=8]="ExternalTfsBuild",e[e.Custom=9]="Custom",e[e.Tfvc=10]="Tfvc"}(n.AgentArtifactType||(n.AgentArtifactType={}));!function(e){e[e.BeforeGates=1]="BeforeGates",e[e.AfterSuccessfulGates=2]="AfterSuccessfulGates",e[e.AfterGatesAlways=4]="AfterGatesAlways"}(n.ApprovalExecutionOrder||(n.ApprovalExecutionOrder={}));!function(e){e[e.None=0]="None",e[e.ManualApprovals=1]="ManualApprovals",e[e.AutomatedApprovals=2]="AutomatedApprovals",e[e.ApprovalSnapshots=4]="ApprovalSnapshots",e[e.All=7]="All"}(n.ApprovalFilters||(n.ApprovalFilters={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Pending=1]="Pending",e[e.Approved=2]="Approved",e[e.Rejected=4]="Rejected",e[e.Reassigned=6]="Reassigned",e[e.Canceled=7]="Canceled",e[e.Skipped=8]="Skipped"}(n.ApprovalStatus||(n.ApprovalStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.PreDeploy=1]="PreDeploy",e[e.PostDeploy=2]="PostDeploy",e[e.All=3]="All"}(n.ApprovalType||(n.ApprovalType={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.RevalidateApproverIdentity=0]="RevalidateApproverIdentity",e[e.OnBehalfOf=1]="OnBehalfOf"}(n.AuthorizationHeaderFor||(n.AuthorizationHeaderFor={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Event=1]="Event",e[e.EnvironmentState=2]="EnvironmentState",e[e.Artifact=4]="Artifact"}(n.ConditionType||(n.ConditionType={}));!function(e){e[e.Automatic=0]="Automatic",e[e.DeploymentSubmitter=1]="DeploymentSubmitter",e[e.FirstPreDeploymentApprover=2]="FirstPreDeploymentApprover"}(n.DeploymentAuthorizationOwner||(n.DeploymentAuthorizationOwner={}));!function(e){e[e.All=0]="All",e[e.DeploymentOnly=1]="DeploymentOnly",e[e.Approvals=2]="Approvals",e[e.Artifacts=4]="Artifacts"}(n.DeploymentExpands||(n.DeploymentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Queued=1]="Queued",e[e.Scheduled=2]="Scheduled",e[e.Pending=4]="Pending",e[e.Approved=8]="Approved",e[e.Rejected=16]="Rejected",e[e.Deferred=32]="Deferred",e[e.QueuedForAgent=64]="QueuedForAgent",e[e.PhaseInProgress=128]="PhaseInProgress",e[e.PhaseSucceeded=256]="PhaseSucceeded",e[e.PhasePartiallySucceeded=512]="PhasePartiallySucceeded",e[e.PhaseFailed=1024]="PhaseFailed",e[e.Canceled=2048]="Canceled",e[e.PhaseCanceled=4096]="PhaseCanceled",e[e.ManualInterventionPending=8192]="ManualInterventionPending",e[e.QueuedForPipeline=16384]="QueuedForPipeline",e[e.Cancelling=32768]="Cancelling",e[e.EvaluatingGates=65536]="EvaluatingGates",e[e.GateFailed=131072]="GateFailed",e[e.All=258047]="All"}(n.DeploymentOperationStatus||(n.DeploymentOperationStatus={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.Automated=2]="Automated",e[e.Scheduled=4]="Scheduled",e[e.RedeployTrigger=8]="RedeployTrigger"}(n.DeploymentReason||(n.DeploymentReason={}));!function(e){e[e.Regular=1]="Regular",e[e.FailingSince=2]="FailingSince"}(n.DeploymentsQueryType||(n.DeploymentsQueryType={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotDeployed=1]="NotDeployed",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.PartiallySucceeded=8]="PartiallySucceeded",e[e.Failed=16]="Failed",e[e.All=31]="All"}(n.DeploymentStatus||(n.DeploymentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Succeeded=8]="Succeeded",e[e.Failed=16]="Failed",e[e.Canceled=32]="Canceled",e[e.Skipped=64]="Skipped",e[e.Cancelling=128]="Cancelling"}(n.DeployPhaseStatus||(n.DeployPhaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.AgentBasedDeployment=1]="AgentBasedDeployment",e[e.RunOnServer=2]="RunOnServer",e[e.MachineGroupBasedDeployment=4]="MachineGroupBasedDeployment",e[e.DeploymentGates=8]="DeploymentGates"}(n.DeployPhaseTypes||(n.DeployPhaseTypes={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Canceled=8]="Canceled",e[e.Rejected=16]="Rejected",e[e.Queued=32]="Queued",e[e.Scheduled=64]="Scheduled",e[e.PartiallySucceeded=128]="PartiallySucceeded"}(n.EnvironmentStatus||(n.EnvironmentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.DeploymentGroupRedeploy=1]="DeploymentGroupRedeploy",e[e.RollbackRedeploy=2]="RollbackRedeploy"}(n.EnvironmentTriggerType||(n.EnvironmentTriggerType={}));!function(e){e[e.None=0]="None",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(n.FolderPathQueryOrder||(n.FolderPathQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Failed=8]="Failed",e[e.Canceled=16]="Canceled"}(n.GateStatus||(n.GateStatus={}));!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.System=2]="System"}(n.IssueSource||(n.IssueSource={}));!function(e){e[e.Details=0]="Details",e[e.Environments=1]="Environments",e[e.Issues=2]="Issues",e[e.TestResults=3]="TestResults",e[e.WorkItems=4]="WorkItems",e[e.ReleaseInfo=5]="ReleaseInfo"}(n.MailSectionType||(n.MailSectionType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.Rejected=2]="Rejected",e[e.Approved=4]="Approved",e[e.Canceled=8]="Canceled",e[e.Bypassed=16]="Bypassed"}(n.ManualInterventionStatus||(n.ManualInterventionStatus={}));!function(e){e[e.Task=1]="Task",e[e.ProofOfPresence=2]="ProofOfPresence"}(n.ManualInterventionType||(n.ManualInterventionType={}));!function(e){e[e.None=0]="None",e[e.MultiConfiguration=1]="MultiConfiguration",e[e.MultiMachine=2]="MultiMachine"}(n.ParallelExecutionTypes||(n.ParallelExecutionTypes={}));!function(e){e[e.Designer=1]="Designer",e[e.Yaml=2]="Yaml"}(n.PipelineProcessTypes||(n.PipelineProcessTypes={}));!function(e){e[e.Inclusion=0]="Inclusion",e[e.Exclusion=1]="Exclusion"}(n.PropertySelectorType||(n.PropertySelectorType={}));!function(e){e[e.None=0]="None",e[e.TfsGit=1]="TfsGit",e[e.GitHub=2]="GitHub"}(n.PullRequestSystemType||(n.PullRequestSystemType={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Triggers=8]="Triggers",e[e.Variables=16]="Variables",e[e.Tags=32]="Tags",e[e.LastRelease=64]="LastRelease"}(n.ReleaseDefinitionExpands||(n.ReleaseDefinitionExpands={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending",e[e.NameAscending=2]="NameAscending",e[e.NameDescending=3]="NameDescending"}(n.ReleaseDefinitionQueryOrder||(n.ReleaseDefinitionQueryOrder={}));!function(e){e[e.Undefined=0]="Undefined",e[e.RestApi=1]="RestApi",e[e.UserInterface=2]="UserInterface",e[e.Ibiza=4]="Ibiza",e[e.PortalExtensionApi=8]="PortalExtensionApi"}(n.ReleaseDefinitionSource||(n.ReleaseDefinitionSource={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.ReleaseEnvironmentExpands||(n.ReleaseEnvironmentExpands={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Approvals=8]="Approvals",e[e.ManualInterventions=16]="ManualInterventions",e[e.Variables=32]="Variables",e[e.Tags=64]="Tags"}(n.ReleaseExpands||(n.ReleaseExpands={}));!function(e){e[e.Descending=0]="Descending",e[e.Ascending=1]="Ascending"}(n.ReleaseQueryOrder||(n.ReleaseQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.Schedule=3]="Schedule",e[e.PullRequest=4]="PullRequest"}(n.ReleaseReason||(n.ReleaseReason={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Draft=1]="Draft",e[e.Active=2]="Active",e[e.Abandoned=4]="Abandoned"}(n.ReleaseStatus||(n.ReleaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.ArtifactSource=1]="ArtifactSource",e[e.Schedule=2]="Schedule",e[e.SourceRepo=3]="SourceRepo",e[e.ContainerImage=4]="ContainerImage",e[e.Package=5]="Package",e[e.PullRequest=6]="PullRequest"}(n.ReleaseTriggerType||(n.ReleaseTriggerType={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.ScheduleDays||(n.ScheduleDays={}));!function(e){e[e.ServiceAccount=1]="ServiceAccount",e[e.RequestingUser=2]="RequestingUser"}(n.SenderType||(n.SenderType={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.SingleReleaseExpands||(n.SingleReleaseExpands={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Success=3]="Success",e[e.Failure=4]="Failure",e[e.Canceled=5]="Canceled",e[e.Skipped=6]="Skipped",e[e.Succeeded=7]="Succeeded",e[e.Failed=8]="Failed",e[e.PartiallySucceeded=9]="PartiallySucceeded"}(n.TaskStatus||(n.TaskStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.TFSGit=1]="TFSGit"}(n.YamlFileSourceTypes||(n.YamlFileSourceTypes={}))});
|
|
@@ -81,6 +81,11 @@ export interface AzureAppService {
|
|
|
81
81
|
export interface AzureKeyVaultPermission extends AzureResourcePermission {
|
|
82
82
|
vault: string;
|
|
83
83
|
}
|
|
84
|
+
export interface AzureManagedIdentity {
|
|
85
|
+
clientId: string;
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
}
|
|
84
89
|
/**
|
|
85
90
|
* Azure Management Group
|
|
86
91
|
*/
|
package/TaskAgent/TaskAgent.d.ts
CHANGED
|
@@ -3267,6 +3267,8 @@ export interface TaskReference {
|
|
|
3267
3267
|
* The build config of the task definition. Corresponds to the version value of task.json file. \<br /\>Example: CmdLineV2 \{ "_buildConfigMapping": \{ "Default": "2.232.2", "Node20_229_7": "2.232.3" \} \}
|
|
3268
3268
|
*/
|
|
3269
3269
|
buildConfig: string;
|
|
3270
|
+
contributionIdentifier: string;
|
|
3271
|
+
contributionVersion: string;
|
|
3270
3272
|
/**
|
|
3271
3273
|
* The ID of the task definition. Corresponds to the id value of task.json file. \<br /\>Example: CmdLineV2 \{ "id": "D9BAFED4-0B18-4F58-968D-86655B4D2CE9" \}
|
|
3272
3274
|
*/
|
package/Test/Test.d.ts
CHANGED
|
@@ -1429,6 +1429,10 @@ export interface PlanUpdateModel {
|
|
|
1429
1429
|
* Test Outcome settings
|
|
1430
1430
|
*/
|
|
1431
1431
|
testOutcomeSettings: TestOutcomeSettings;
|
|
1432
|
+
/**
|
|
1433
|
+
* The Yaml Build DefinitionId that generates a build associated with this test plan.
|
|
1434
|
+
*/
|
|
1435
|
+
yamlBuildDefinitionId: number;
|
|
1432
1436
|
}
|
|
1433
1437
|
/**
|
|
1434
1438
|
* Adding test cases to a suite creates one of more test points based on the default configurations and testers assigned to the test suite. PointAssignment is the list of test points that were created for each of the test cases that were added to the test suite.
|
|
@@ -3779,6 +3783,10 @@ export interface TestPlan {
|
|
|
3779
3783
|
* URL of the test plan resource.
|
|
3780
3784
|
*/
|
|
3781
3785
|
url: string;
|
|
3786
|
+
/**
|
|
3787
|
+
* The Yaml Build DefinitionId that generates a build associated with this test plan.
|
|
3788
|
+
*/
|
|
3789
|
+
yamlBuildDefinitionId: number;
|
|
3782
3790
|
}
|
|
3783
3791
|
export interface TestPlanCloneRequest {
|
|
3784
3792
|
destinationTestPlan: TestPlan;
|
package/TestPlan/TestPlan.d.ts
CHANGED
|
@@ -840,6 +840,10 @@ export interface TestPlanCreateParams {
|
|
|
840
840
|
* Value to configure how same tests across test suites under a test plan need to behave
|
|
841
841
|
*/
|
|
842
842
|
testOutcomeSettings: Test.TestOutcomeSettings;
|
|
843
|
+
/**
|
|
844
|
+
* The Yaml Build Definition associated with this test plan.
|
|
845
|
+
*/
|
|
846
|
+
yamlBuildDefinitionId: number;
|
|
843
847
|
}
|
|
844
848
|
/**
|
|
845
849
|
* The test plan detailed reference resource. Contains additional workitem realted information
|
|
@@ -384,6 +384,19 @@ export interface CommentVersion extends WorkItemTrackingResource {
|
|
|
384
384
|
*/
|
|
385
385
|
version: number;
|
|
386
386
|
}
|
|
387
|
+
/**
|
|
388
|
+
* Describes permanently deleted attachment and work items that had links to this attachment.
|
|
389
|
+
*/
|
|
390
|
+
export interface DestroyedAttachment {
|
|
391
|
+
/**
|
|
392
|
+
* Work items with attachment references that have been marked as deleted.
|
|
393
|
+
*/
|
|
394
|
+
affectedWorkItems: WorkItemReference[];
|
|
395
|
+
/**
|
|
396
|
+
* Permanently deleted attachment.
|
|
397
|
+
*/
|
|
398
|
+
attachment: AttachmentReference;
|
|
399
|
+
}
|
|
387
400
|
export interface EmailRecipients {
|
|
388
401
|
/**
|
|
389
402
|
* Plaintext email addresses.
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BillingInfo contains an organization, its enablement status and the Azure Subscription for it.
|
|
3
|
-
*/
|
|
4
|
-
export interface BillingInfo {
|
|
5
|
-
advSecEnabled: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* The most recent time the enablement state was modified.
|
|
8
|
-
*/
|
|
9
|
-
advSecEnabledChangedOnDate: Date;
|
|
10
|
-
/**
|
|
11
|
-
* The first time the enablement state was modified.
|
|
12
|
-
*/
|
|
13
|
-
advSecEnabledFirstChangedOnDate: Date;
|
|
14
|
-
azureSubscriptionId: string;
|
|
15
|
-
billingMode: BillingMode;
|
|
16
|
-
organizationId: string;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
}
|
|
19
|
-
export declare enum BillingMode {
|
|
20
|
-
/**
|
|
21
|
-
* None implies the organization is not billable because no Azure Subscription has been set.
|
|
22
|
-
*/
|
|
23
|
-
None = 0,
|
|
24
|
-
/**
|
|
25
|
-
* When an organization is the only organization mapped to an Azure Subscription.
|
|
26
|
-
*/
|
|
27
|
-
SingleOrg = 1,
|
|
28
|
-
/**
|
|
29
|
-
* When an organization is mapped to an Azure Subscription to which at least one other org is mapped.
|
|
30
|
-
*/
|
|
31
|
-
MultiOrg = 2
|
|
32
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ---------------------------------------------------------
|
|
3
|
-
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* ---------------------------------------------------------
|
|
5
|
-
*/
|
|
6
|
-
define(["require", "exports"], function (require, exports) {
|
|
7
|
-
"use strict";
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
var BillingMode;
|
|
10
|
-
(function (BillingMode) {
|
|
11
|
-
/**
|
|
12
|
-
* None implies the organization is not billable because no Azure Subscription has been set.
|
|
13
|
-
*/
|
|
14
|
-
BillingMode[BillingMode["None"] = 0] = "None";
|
|
15
|
-
/**
|
|
16
|
-
* When an organization is the only organization mapped to an Azure Subscription.
|
|
17
|
-
*/
|
|
18
|
-
BillingMode[BillingMode["SingleOrg"] = 1] = "SingleOrg";
|
|
19
|
-
/**
|
|
20
|
-
* When an organization is mapped to an Azure Subscription to which at least one other org is mapped.
|
|
21
|
-
*/
|
|
22
|
-
BillingMode[BillingMode["MultiOrg"] = 2] = "MultiOrg";
|
|
23
|
-
})(BillingMode = exports.BillingMode || (exports.BillingMode = {}));
|
|
24
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.SingleOrg=1]="SingleOrg",e[e.MultiOrg=2]="MultiOrg"}(i.BillingMode||(i.BillingMode={}))});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IVssRestClientOptions } from "../Common/Context";
|
|
2
|
-
import { RestClientBase } from "../Common/RestClientBase";
|
|
3
|
-
import * as ManagementInternal from "../ManagementInternal/ManagementInternal";
|
|
4
|
-
export declare class ManagementInternalRestClient extends RestClientBase {
|
|
5
|
-
constructor(options: IVssRestClientOptions);
|
|
6
|
-
/**
|
|
7
|
-
* Delete the billing info for an organization.
|
|
8
|
-
*
|
|
9
|
-
* @param organizationId -
|
|
10
|
-
*/
|
|
11
|
-
deleteBillingInfo(organizationId: string): Promise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* Delete the meter usage history from Primary SU for an organization.
|
|
14
|
-
*
|
|
15
|
-
* @param organizationId -
|
|
16
|
-
*/
|
|
17
|
-
deleteMeterUsageHistory(organizationId: string): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Get the billing info for an organization.
|
|
20
|
-
*
|
|
21
|
-
* @param organizationId - Organization ID to get billing info for.
|
|
22
|
-
*/
|
|
23
|
-
getBillingInfo(organizationId: string): Promise<ManagementInternal.BillingInfo>;
|
|
24
|
-
/**
|
|
25
|
-
* Save the billing info for an organization.
|
|
26
|
-
*
|
|
27
|
-
* @param billingInfo -
|
|
28
|
-
* @param organizationId -
|
|
29
|
-
*/
|
|
30
|
-
saveBillingInfo(billingInfo: ManagementInternal.BillingInfo, organizationId: string): Promise<void>;
|
|
31
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ---------------------------------------------------------
|
|
3
|
-
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* ---------------------------------------------------------
|
|
5
|
-
*/
|
|
6
|
-
var __extends = (this && this.__extends) || (function () {
|
|
7
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
8
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
26
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
27
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
|
-
function step(op) {
|
|
29
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
-
while (_) try {
|
|
31
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
|
-
switch (op[0]) {
|
|
34
|
-
case 0: case 1: t = op; break;
|
|
35
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
36
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
37
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
38
|
-
default:
|
|
39
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
40
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
41
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
42
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
43
|
-
if (t[2]) _.ops.pop();
|
|
44
|
-
_.trys.pop(); continue;
|
|
45
|
-
}
|
|
46
|
-
op = body.call(thisArg, _);
|
|
47
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
48
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
|
|
52
|
-
"use strict";
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
var ManagementInternalRestClient = /** @class */ (function (_super) {
|
|
55
|
-
__extends(ManagementInternalRestClient, _super);
|
|
56
|
-
function ManagementInternalRestClient(options) {
|
|
57
|
-
return _super.call(this, options) || this;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Delete the billing info for an organization.
|
|
61
|
-
*
|
|
62
|
-
* @param organizationId -
|
|
63
|
-
*/
|
|
64
|
-
ManagementInternalRestClient.prototype.deleteBillingInfo = function (organizationId) {
|
|
65
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
66
|
-
return __generator(this, function (_a) {
|
|
67
|
-
return [2 /*return*/, this.beginRequest({
|
|
68
|
-
apiVersion: "7.2-preview.1",
|
|
69
|
-
method: "DELETE",
|
|
70
|
-
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
71
|
-
routeValues: {
|
|
72
|
-
organizationId: organizationId,
|
|
73
|
-
action: "Default"
|
|
74
|
-
}
|
|
75
|
-
})];
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Delete the meter usage history from Primary SU for an organization.
|
|
81
|
-
*
|
|
82
|
-
* @param organizationId -
|
|
83
|
-
*/
|
|
84
|
-
ManagementInternalRestClient.prototype.deleteMeterUsageHistory = function (organizationId) {
|
|
85
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
-
return __generator(this, function (_a) {
|
|
87
|
-
return [2 /*return*/, this.beginRequest({
|
|
88
|
-
apiVersion: "7.2-preview.1",
|
|
89
|
-
method: "DELETE",
|
|
90
|
-
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
91
|
-
routeValues: {
|
|
92
|
-
organizationId: organizationId,
|
|
93
|
-
action: "MeterUsageHistory"
|
|
94
|
-
}
|
|
95
|
-
})];
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Get the billing info for an organization.
|
|
101
|
-
*
|
|
102
|
-
* @param organizationId - Organization ID to get billing info for.
|
|
103
|
-
*/
|
|
104
|
-
ManagementInternalRestClient.prototype.getBillingInfo = function (organizationId) {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
-
return __generator(this, function (_a) {
|
|
107
|
-
return [2 /*return*/, this.beginRequest({
|
|
108
|
-
apiVersion: "7.2-preview.1",
|
|
109
|
-
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
110
|
-
routeValues: {
|
|
111
|
-
organizationId: organizationId,
|
|
112
|
-
action: "Default"
|
|
113
|
-
}
|
|
114
|
-
})];
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Save the billing info for an organization.
|
|
120
|
-
*
|
|
121
|
-
* @param billingInfo -
|
|
122
|
-
* @param organizationId -
|
|
123
|
-
*/
|
|
124
|
-
ManagementInternalRestClient.prototype.saveBillingInfo = function (billingInfo, organizationId) {
|
|
125
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
-
return __generator(this, function (_a) {
|
|
127
|
-
return [2 /*return*/, this.beginRequest({
|
|
128
|
-
apiVersion: "7.2-preview.1",
|
|
129
|
-
method: "POST",
|
|
130
|
-
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
131
|
-
routeValues: {
|
|
132
|
-
organizationId: organizationId,
|
|
133
|
-
action: "Default"
|
|
134
|
-
},
|
|
135
|
-
body: billingInfo
|
|
136
|
-
})];
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
};
|
|
140
|
-
return ManagementInternalRestClient;
|
|
141
|
-
}(RestClientBase_1.RestClientBase));
|
|
142
|
-
exports.ManagementInternalRestClient = ManagementInternalRestClient;
|
|
143
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function u(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,u)}l((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.deleteBillingInfo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"Default"}})]})})},e.prototype.deleteMeterUsageHistory=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"MeterUsageHistory"}})]})})},e.prototype.getBillingInfo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"Default"}})]})})},e.prototype.saveBillingInfo=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:e,action:"Default"},body:t})]})})},e}(n.RestClientBase);e.ManagementInternalRestClient=r});
|