azure-devops-extension-api 4.251.0 → 4.253.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/AdvancedSecurity.Reporting/Reporting.d.ts +65 -0
- package/AdvancedSecurity.Reporting/Reporting.js +20 -0
- package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
- package/AdvancedSecurity.Reporting/ReportingClient.d.ts +2 -1
- package/AdvancedSecurity.Reporting/ReportingClient.js +8 -2
- package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
- package/Alert/Alert.d.ts +39 -2
- package/Alert/Alert.js +20 -0
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +17 -0
- package/Alert/AlertClient.js +51 -0
- package/Alert/AlertClient.min.js +1 -1
- package/Build/Build.d.ts +1 -1
- package/Gallery/Gallery.d.ts +10 -2
- package/Gallery/Gallery.js +9 -1
- package/Gallery/Gallery.min.js +1 -1
- package/Management/Management.d.ts +200 -0
- package/Management/ManagementClient.d.ts +99 -0
- package/Management/ManagementClient.js +326 -0
- package/Management/ManagementClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +42 -2
- package/package.json +1 -1
|
@@ -56,6 +56,55 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
56
56
|
function ManagementRestClient(options) {
|
|
57
57
|
return _super.call(this, options) || this;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Determine if Advanced Security is enabled for a repository
|
|
61
|
+
*
|
|
62
|
+
* @param project - Project ID or project name
|
|
63
|
+
* @param repository - The name or ID of the repository
|
|
64
|
+
* @param includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
|
|
65
|
+
*/
|
|
66
|
+
ManagementRestClient.prototype.getRepoEnablementStatus2 = function (project, repository, includeAllProperties) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
+
var queryValues;
|
|
69
|
+
return __generator(this, function (_a) {
|
|
70
|
+
queryValues = {
|
|
71
|
+
includeAllProperties: includeAllProperties
|
|
72
|
+
};
|
|
73
|
+
return [2 /*return*/, this.beginRequest({
|
|
74
|
+
apiVersion: "7.2-preview.1",
|
|
75
|
+
routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement2",
|
|
76
|
+
routeValues: {
|
|
77
|
+
project: project,
|
|
78
|
+
repository: repository
|
|
79
|
+
},
|
|
80
|
+
queryParams: queryValues
|
|
81
|
+
})];
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Update the enablement of Advanced Security for a repository
|
|
87
|
+
*
|
|
88
|
+
* @param savedAdvSecEnablementStatus - new status
|
|
89
|
+
* @param project - Project ID or project name
|
|
90
|
+
* @param repository - Name or ID of the repository
|
|
91
|
+
*/
|
|
92
|
+
ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus2 = function (savedAdvSecEnablementStatus, project, repository) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
94
|
+
return __generator(this, function (_a) {
|
|
95
|
+
return [2 /*return*/, this.beginRequest({
|
|
96
|
+
apiVersion: "7.2-preview.1",
|
|
97
|
+
method: "PATCH",
|
|
98
|
+
routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement2",
|
|
99
|
+
routeValues: {
|
|
100
|
+
project: project,
|
|
101
|
+
repository: repository
|
|
102
|
+
},
|
|
103
|
+
body: savedAdvSecEnablementStatus
|
|
104
|
+
})];
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
};
|
|
59
108
|
/**
|
|
60
109
|
* During multi-org billing computation in primary scale unit(EUS21), this API is used to create billing snapshot for a specific org. Primary scale unit will call this API for each org in different scsle units to create billing snapshot. Data will be stored in the org specific partition DB -\> billing snapshot table. This is needed as customers will fetch billing data from their org specific partition DB.
|
|
61
110
|
*
|
|
@@ -137,6 +186,87 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
137
186
|
});
|
|
138
187
|
});
|
|
139
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* During multi-org billing computation in primary scale unit(EUS21), this API is used to create billing snapshot for a specific org. Primary scale unit will call this API for each org in different scsle units to create billing snapshot. Data will be stored in the org specific partition DB -\> billing snapshot table. This is needed as customers will fetch billing data from their org specific partition DB.
|
|
191
|
+
*
|
|
192
|
+
* @param meterUsage -
|
|
193
|
+
*/
|
|
194
|
+
ManagementRestClient.prototype.createBillingSnapshot2 = function (meterUsage) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
196
|
+
return __generator(this, function (_a) {
|
|
197
|
+
return [2 /*return*/, this.beginRequest({
|
|
198
|
+
apiVersion: "7.2-preview.1",
|
|
199
|
+
method: "POST",
|
|
200
|
+
routeTemplate: "_apis/Management/MeterUsage2/{action}",
|
|
201
|
+
routeValues: {
|
|
202
|
+
action: "Default"
|
|
203
|
+
},
|
|
204
|
+
body: meterUsage
|
|
205
|
+
})];
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Get all billable committers details, including those not matched with a VSID.
|
|
211
|
+
*
|
|
212
|
+
* @param billingDate - The date to query, or if not provided, today
|
|
213
|
+
*/
|
|
214
|
+
ManagementRestClient.prototype.getBillableCommitterDetails2 = function (billingDate) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
216
|
+
var queryValues;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
queryValues = {
|
|
219
|
+
billingDate: billingDate
|
|
220
|
+
};
|
|
221
|
+
return [2 /*return*/, this.beginRequest({
|
|
222
|
+
apiVersion: "7.2-preview.1",
|
|
223
|
+
routeTemplate: "_apis/Management/MeterUsage2/{action}",
|
|
224
|
+
routeValues: {
|
|
225
|
+
action: "Details"
|
|
226
|
+
},
|
|
227
|
+
queryParams: queryValues
|
|
228
|
+
})];
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
*/
|
|
234
|
+
ManagementRestClient.prototype.getLastMeterUsage2 = function () {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
236
|
+
return __generator(this, function (_a) {
|
|
237
|
+
return [2 /*return*/, this.beginRequest({
|
|
238
|
+
apiVersion: "7.2-preview.1",
|
|
239
|
+
routeTemplate: "_apis/Management/MeterUsage2/{action}",
|
|
240
|
+
routeValues: {
|
|
241
|
+
action: "Last"
|
|
242
|
+
}
|
|
243
|
+
})];
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Get commiters used when calculating billing information.
|
|
249
|
+
*
|
|
250
|
+
* @param billingDate - The date to query, or if not provided, today
|
|
251
|
+
*/
|
|
252
|
+
ManagementRestClient.prototype.getMeterUsage2 = function (billingDate) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
254
|
+
var queryValues;
|
|
255
|
+
return __generator(this, function (_a) {
|
|
256
|
+
queryValues = {
|
|
257
|
+
billingDate: billingDate
|
|
258
|
+
};
|
|
259
|
+
return [2 /*return*/, this.beginRequest({
|
|
260
|
+
apiVersion: "7.2-preview.1",
|
|
261
|
+
routeTemplate: "_apis/Management/MeterUsage2/{action}",
|
|
262
|
+
routeValues: {
|
|
263
|
+
action: "Default"
|
|
264
|
+
},
|
|
265
|
+
queryParams: queryValues
|
|
266
|
+
})];
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
};
|
|
140
270
|
/**
|
|
141
271
|
* Get the current status of Advanced Security for the organization
|
|
142
272
|
*
|
|
@@ -174,6 +304,43 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
174
304
|
});
|
|
175
305
|
});
|
|
176
306
|
};
|
|
307
|
+
/**
|
|
308
|
+
* Get the current status of Advanced Security for the organization
|
|
309
|
+
*
|
|
310
|
+
* @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
|
|
311
|
+
*/
|
|
312
|
+
ManagementRestClient.prototype.getOrgEnablementStatus2 = function (includeAllProperties) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
314
|
+
var queryValues;
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
queryValues = {
|
|
317
|
+
includeAllProperties: includeAllProperties
|
|
318
|
+
};
|
|
319
|
+
return [2 /*return*/, this.beginRequest({
|
|
320
|
+
apiVersion: "7.2-preview.1",
|
|
321
|
+
routeTemplate: "_apis/Management/enablement2",
|
|
322
|
+
queryParams: queryValues
|
|
323
|
+
})];
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* Update the status of Advanced Security for the organization
|
|
329
|
+
*
|
|
330
|
+
* @param savedAdvSecEnablementStatus - The new status
|
|
331
|
+
*/
|
|
332
|
+
ManagementRestClient.prototype.updateOrgEnablementStatus2 = function (savedAdvSecEnablementStatus) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
334
|
+
return __generator(this, function (_a) {
|
|
335
|
+
return [2 /*return*/, this.beginRequest({
|
|
336
|
+
apiVersion: "7.2-preview.1",
|
|
337
|
+
method: "PATCH",
|
|
338
|
+
routeTemplate: "_apis/Management/enablement2",
|
|
339
|
+
body: savedAdvSecEnablementStatus
|
|
340
|
+
})];
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
};
|
|
177
344
|
/**
|
|
178
345
|
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
179
346
|
*
|
|
@@ -208,6 +375,40 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
208
375
|
});
|
|
209
376
|
});
|
|
210
377
|
};
|
|
378
|
+
/**
|
|
379
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
380
|
+
*
|
|
381
|
+
*/
|
|
382
|
+
ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg2 = function () {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
384
|
+
return __generator(this, function (_a) {
|
|
385
|
+
return [2 /*return*/, this.beginRequest({
|
|
386
|
+
apiVersion: "7.2-preview.1",
|
|
387
|
+
routeTemplate: "_apis/Management/meterUsageEstimate2/{action}",
|
|
388
|
+
routeValues: {
|
|
389
|
+
action: "Details"
|
|
390
|
+
}
|
|
391
|
+
})];
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
397
|
+
*
|
|
398
|
+
*/
|
|
399
|
+
ManagementRestClient.prototype.getEstimatedOrgBillablePushers2 = function () {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
401
|
+
return __generator(this, function (_a) {
|
|
402
|
+
return [2 /*return*/, this.beginRequest({
|
|
403
|
+
apiVersion: "7.2-preview.1",
|
|
404
|
+
routeTemplate: "_apis/Management/meterUsageEstimate2/{action}",
|
|
405
|
+
routeValues: {
|
|
406
|
+
action: "Default"
|
|
407
|
+
}
|
|
408
|
+
})];
|
|
409
|
+
});
|
|
410
|
+
});
|
|
411
|
+
};
|
|
211
412
|
/**
|
|
212
413
|
* Get the current status of Advanced Security for a project
|
|
213
414
|
*
|
|
@@ -253,6 +454,51 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
253
454
|
});
|
|
254
455
|
});
|
|
255
456
|
};
|
|
457
|
+
/**
|
|
458
|
+
* Get the current status of Advanced Security for a project
|
|
459
|
+
*
|
|
460
|
+
* @param project - Project ID or project name
|
|
461
|
+
* @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
|
|
462
|
+
*/
|
|
463
|
+
ManagementRestClient.prototype.getProjectEnablementStatus2 = function (project, includeAllProperties) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
465
|
+
var queryValues;
|
|
466
|
+
return __generator(this, function (_a) {
|
|
467
|
+
queryValues = {
|
|
468
|
+
includeAllProperties: includeAllProperties
|
|
469
|
+
};
|
|
470
|
+
return [2 /*return*/, this.beginRequest({
|
|
471
|
+
apiVersion: "7.2-preview.1",
|
|
472
|
+
routeTemplate: "{project}/_apis/Management/enablement2",
|
|
473
|
+
routeValues: {
|
|
474
|
+
project: project
|
|
475
|
+
},
|
|
476
|
+
queryParams: queryValues
|
|
477
|
+
})];
|
|
478
|
+
});
|
|
479
|
+
});
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Update the status of Advanced Security for the project
|
|
483
|
+
*
|
|
484
|
+
* @param savedAdvSecEnablementStatus - The new status
|
|
485
|
+
* @param project - Project ID or project name
|
|
486
|
+
*/
|
|
487
|
+
ManagementRestClient.prototype.updateProjectEnablementStatus2 = function (savedAdvSecEnablementStatus, project) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
489
|
+
return __generator(this, function (_a) {
|
|
490
|
+
return [2 /*return*/, this.beginRequest({
|
|
491
|
+
apiVersion: "7.2-preview.1",
|
|
492
|
+
method: "PATCH",
|
|
493
|
+
routeTemplate: "{project}/_apis/Management/enablement2",
|
|
494
|
+
routeValues: {
|
|
495
|
+
project: project
|
|
496
|
+
},
|
|
497
|
+
body: savedAdvSecEnablementStatus
|
|
498
|
+
})];
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
};
|
|
256
502
|
/**
|
|
257
503
|
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
258
504
|
*
|
|
@@ -291,6 +537,44 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
291
537
|
});
|
|
292
538
|
});
|
|
293
539
|
};
|
|
540
|
+
/**
|
|
541
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
542
|
+
*
|
|
543
|
+
* @param project - Project ID or project name
|
|
544
|
+
*/
|
|
545
|
+
ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject2 = function (project) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
547
|
+
return __generator(this, function (_a) {
|
|
548
|
+
return [2 /*return*/, this.beginRequest({
|
|
549
|
+
apiVersion: "7.2-preview.1",
|
|
550
|
+
routeTemplate: "{project}/_apis/Management/meterUsageEstimate2/{action}",
|
|
551
|
+
routeValues: {
|
|
552
|
+
project: project,
|
|
553
|
+
action: "Details"
|
|
554
|
+
}
|
|
555
|
+
})];
|
|
556
|
+
});
|
|
557
|
+
});
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
561
|
+
*
|
|
562
|
+
* @param project - Project ID or project name
|
|
563
|
+
*/
|
|
564
|
+
ManagementRestClient.prototype.getEstimatedProjectBillablePushers2 = function (project) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
566
|
+
return __generator(this, function (_a) {
|
|
567
|
+
return [2 /*return*/, this.beginRequest({
|
|
568
|
+
apiVersion: "7.2-preview.1",
|
|
569
|
+
routeTemplate: "{project}/_apis/Management/meterUsageEstimate2/{action}",
|
|
570
|
+
routeValues: {
|
|
571
|
+
project: project,
|
|
572
|
+
action: "Default"
|
|
573
|
+
}
|
|
574
|
+
})];
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
};
|
|
294
578
|
/**
|
|
295
579
|
* Determine if Advanced Security is enabled for a repository
|
|
296
580
|
*
|
|
@@ -382,6 +666,48 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
382
666
|
});
|
|
383
667
|
});
|
|
384
668
|
};
|
|
669
|
+
/**
|
|
670
|
+
* Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
671
|
+
*
|
|
672
|
+
* @param project - Project ID or project name
|
|
673
|
+
* @param repository - The name or ID of the repository
|
|
674
|
+
*/
|
|
675
|
+
ManagementRestClient.prototype.getEstimatedRepoBillableCommitters2 = function (project, repository) {
|
|
676
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
677
|
+
return __generator(this, function (_a) {
|
|
678
|
+
return [2 /*return*/, this.beginRequest({
|
|
679
|
+
apiVersion: "7.2-preview.1",
|
|
680
|
+
routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",
|
|
681
|
+
routeValues: {
|
|
682
|
+
project: project,
|
|
683
|
+
repository: repository,
|
|
684
|
+
action: "Default"
|
|
685
|
+
}
|
|
686
|
+
})];
|
|
687
|
+
});
|
|
688
|
+
});
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
692
|
+
*
|
|
693
|
+
* @param project - Project ID or project name
|
|
694
|
+
* @param repository -
|
|
695
|
+
*/
|
|
696
|
+
ManagementRestClient.prototype.getEstimatedRepoBillableCommittersDetails2 = function (project, repository) {
|
|
697
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
698
|
+
return __generator(this, function (_a) {
|
|
699
|
+
return [2 /*return*/, this.beginRequest({
|
|
700
|
+
apiVersion: "7.2-preview.1",
|
|
701
|
+
routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",
|
|
702
|
+
routeValues: {
|
|
703
|
+
project: project,
|
|
704
|
+
repository: repository,
|
|
705
|
+
action: "Details"
|
|
706
|
+
}
|
|
707
|
+
})];
|
|
708
|
+
});
|
|
709
|
+
});
|
|
710
|
+
};
|
|
385
711
|
return ManagementRestClient;
|
|
386
712
|
}(RestClientBase_1.RestClientBase));
|
|
387
713
|
exports.ManagementRestClient = ManagementRestClient;
|
|
@@ -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(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.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});
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{s(i.next(e))}catch(e){o(e)}}function u(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(a,u)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,n=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var i,n,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getRepoEnablementStatus2=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement2",routeValues:{project:e,repository:t},queryParams:i})]})})},t.prototype.updateRepoAdvSecEnablementStatus2=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement2",routeValues:{project:t,repository:r},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.createBillingSnapshot2=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/MeterUsage2/{action}",routeValues:{action:"Default"},body:e})]})})},t.prototype.getBillableCommitterDetails2=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/MeterUsage2/{action}",routeValues:{action:"Details"},queryParams:t})]})})},t.prototype.getLastMeterUsage2=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/MeterUsage2/{action}",routeValues:{action:"Last"}})]})})},t.prototype.getMeterUsage2=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/MeterUsage2/{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.getOrgEnablementStatus2=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/enablement2",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus2=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/enablement2",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.getEstimatedBillablePushersDetailsForOrg2=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/meterUsageEstimate2/{action}",routeValues:{action:"Details"}})]})})},t.prototype.getEstimatedOrgBillablePushers2=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/meterUsageEstimate2/{action}",routeValues:{action:"Default"}})]})})},t.prototype.getProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){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.getProjectEnablementStatus2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement2",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateProjectEnablementStatus2=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/enablement2",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.getEstimatedBillablePushersDetailsForProject2=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/meterUsageEstimate2/{action}",routeValues:{project:e,action:"Details"}})]})})},t.prototype.getEstimatedProjectBillablePushers2=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/meterUsageEstimate2/{action}",routeValues:{project:e,action:"Default"}})]})})},t.prototype.getRepoEnablementStatus=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:i})]})})},t.prototype.updateRepoAdvSecEnablementStatus=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",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.prototype.getEstimatedRepoBillableCommitters2=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}/meterUsageEstimate2/{action}",routeValues:{project:e,repository:t,action:"Default"}})]})})},t.prototype.getEstimatedRepoBillableCommittersDetails2=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}/meterUsageEstimate2/{action}",routeValues:{project:e,repository:t,action:"Details"}})]})})},t}(r.RestClientBase);t.ManagementRestClient=i});
|
package/TestPlan/TestPlan.d.ts
CHANGED
|
@@ -191,6 +191,22 @@ export interface CustomTestCaseResultData {
|
|
|
191
191
|
* Reference to area path of test.
|
|
192
192
|
*/
|
|
193
193
|
area: Test.ShallowReference;
|
|
194
|
+
/**
|
|
195
|
+
* Fully qualified name of test executed.
|
|
196
|
+
*/
|
|
197
|
+
automatedTestName: string;
|
|
198
|
+
/**
|
|
199
|
+
* Container to which test belongs.
|
|
200
|
+
*/
|
|
201
|
+
automatedTestStorage: string;
|
|
202
|
+
/**
|
|
203
|
+
* Shallow reference to build associated with test result.
|
|
204
|
+
*/
|
|
205
|
+
build: Test.ShallowReference;
|
|
206
|
+
/**
|
|
207
|
+
* Machine name where test executed.
|
|
208
|
+
*/
|
|
209
|
+
computerName: string;
|
|
194
210
|
/**
|
|
195
211
|
* Reference to test configuration. Type ShallowReference.
|
|
196
212
|
*/
|
|
@@ -203,6 +219,10 @@ export interface CustomTestCaseResultData {
|
|
|
203
219
|
* Duration of test execution in milliseconds. If not provided value will be set as CompletedDate - StartedDate
|
|
204
220
|
*/
|
|
205
221
|
durationInMs: number;
|
|
222
|
+
/**
|
|
223
|
+
* Error message in test execution.
|
|
224
|
+
*/
|
|
225
|
+
errorMessage: string;
|
|
206
226
|
/**
|
|
207
227
|
* ID of a test result.
|
|
208
228
|
*/
|
|
@@ -219,10 +239,22 @@ export interface CustomTestCaseResultData {
|
|
|
219
239
|
* Priority of test executed.
|
|
220
240
|
*/
|
|
221
241
|
priority: number;
|
|
242
|
+
/**
|
|
243
|
+
* Stacktrace with maxSize= 1000 chars.
|
|
244
|
+
*/
|
|
245
|
+
stackTrace: string;
|
|
222
246
|
/**
|
|
223
247
|
* Reference to the test executed.
|
|
224
248
|
*/
|
|
225
249
|
testCase: Test.ShallowReference;
|
|
250
|
+
/**
|
|
251
|
+
* Reference ID of test used by test result. Type TestResultMetaData
|
|
252
|
+
*/
|
|
253
|
+
testCaseReferenceId: number;
|
|
254
|
+
/**
|
|
255
|
+
* Reference to test run.
|
|
256
|
+
*/
|
|
257
|
+
testRun: Test.ShallowReference;
|
|
226
258
|
/**
|
|
227
259
|
* Reference to test suite test case workitem is part of.
|
|
228
260
|
*/
|
|
@@ -249,11 +281,11 @@ export interface CustomTestRunData {
|
|
|
249
281
|
*/
|
|
250
282
|
failedTestsCount: number;
|
|
251
283
|
/**
|
|
252
|
-
* ID of the
|
|
284
|
+
* ID of the Test run.
|
|
253
285
|
*/
|
|
254
286
|
id: number;
|
|
255
287
|
/**
|
|
256
|
-
* Name of the
|
|
288
|
+
* Name of the Test run.
|
|
257
289
|
*/
|
|
258
290
|
name: string;
|
|
259
291
|
/**
|
|
@@ -268,6 +300,14 @@ export interface CustomTestRunData {
|
|
|
268
300
|
* The state of the run. Type TestRunState Valid states - Unspecified ,NotStarted, InProgress, Completed, Waiting, Aborted, NeedsInvestigation
|
|
269
301
|
*/
|
|
270
302
|
state: string;
|
|
303
|
+
/**
|
|
304
|
+
* Id of the Test plan associated with this Test run.
|
|
305
|
+
*/
|
|
306
|
+
testPlanId: number;
|
|
307
|
+
/**
|
|
308
|
+
* Name of the Test plan associated with this Test run.
|
|
309
|
+
*/
|
|
310
|
+
testPlanName: string;
|
|
271
311
|
}
|
|
272
312
|
/**
|
|
273
313
|
* Destination Test Plan create parameters
|