azure-devops-extension-api 4.252.0 → 4.254.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.
@@ -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,103 @@ 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
+ * @param plan -
194
+ */
195
+ ManagementRestClient.prototype.createBillingSnapshot2 = function (meterUsage, plan) {
196
+ return __awaiter(this, void 0, void 0, function () {
197
+ var queryValues;
198
+ return __generator(this, function (_a) {
199
+ queryValues = {
200
+ plan: plan
201
+ };
202
+ return [2 /*return*/, this.beginRequest({
203
+ apiVersion: "7.2-preview.1",
204
+ method: "POST",
205
+ routeTemplate: "_apis/Management/MeterUsage2/{action}",
206
+ routeValues: {
207
+ action: "Default"
208
+ },
209
+ queryParams: queryValues,
210
+ body: meterUsage
211
+ })];
212
+ });
213
+ });
214
+ };
215
+ /**
216
+ * Get all billable committers details, including those not matched with a VSID.
217
+ *
218
+ * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
219
+ * @param billingDate - The date to query, or if not provided, today
220
+ */
221
+ ManagementRestClient.prototype.getBillableCommitterDetails2 = function (plan, billingDate) {
222
+ return __awaiter(this, void 0, void 0, function () {
223
+ var queryValues;
224
+ return __generator(this, function (_a) {
225
+ queryValues = {
226
+ plan: plan,
227
+ billingDate: billingDate
228
+ };
229
+ return [2 /*return*/, this.beginRequest({
230
+ apiVersion: "7.2-preview.1",
231
+ routeTemplate: "_apis/Management/MeterUsage2/{action}",
232
+ routeValues: {
233
+ action: "Details"
234
+ },
235
+ queryParams: queryValues
236
+ })];
237
+ });
238
+ });
239
+ };
240
+ /**
241
+ * @param plan -
242
+ */
243
+ ManagementRestClient.prototype.getLastMeterUsage2 = function (plan) {
244
+ return __awaiter(this, void 0, void 0, function () {
245
+ var queryValues;
246
+ return __generator(this, function (_a) {
247
+ queryValues = {
248
+ plan: plan
249
+ };
250
+ return [2 /*return*/, this.beginRequest({
251
+ apiVersion: "7.2-preview.1",
252
+ routeTemplate: "_apis/Management/MeterUsage2/{action}",
253
+ routeValues: {
254
+ action: "Last"
255
+ },
256
+ queryParams: queryValues
257
+ })];
258
+ });
259
+ });
260
+ };
261
+ /**
262
+ * Get commiters used when calculating billing information.
263
+ *
264
+ * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
265
+ * @param billingDate - The date to query, or if not provided, today
266
+ */
267
+ ManagementRestClient.prototype.getMeterUsage2 = function (plan, billingDate) {
268
+ return __awaiter(this, void 0, void 0, function () {
269
+ var queryValues;
270
+ return __generator(this, function (_a) {
271
+ queryValues = {
272
+ plan: plan,
273
+ billingDate: billingDate
274
+ };
275
+ return [2 /*return*/, this.beginRequest({
276
+ apiVersion: "7.2-preview.1",
277
+ routeTemplate: "_apis/Management/MeterUsage2/{action}",
278
+ routeValues: {
279
+ action: "Default"
280
+ },
281
+ queryParams: queryValues
282
+ })];
283
+ });
284
+ });
285
+ };
140
286
  /**
141
287
  * Get the current status of Advanced Security for the organization
142
288
  *
@@ -174,6 +320,43 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
174
320
  });
175
321
  });
176
322
  };
323
+ /**
324
+ * Get the current status of Advanced Security for the organization
325
+ *
326
+ * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
327
+ */
328
+ ManagementRestClient.prototype.getOrgEnablementStatus2 = function (includeAllProperties) {
329
+ return __awaiter(this, void 0, void 0, function () {
330
+ var queryValues;
331
+ return __generator(this, function (_a) {
332
+ queryValues = {
333
+ includeAllProperties: includeAllProperties
334
+ };
335
+ return [2 /*return*/, this.beginRequest({
336
+ apiVersion: "7.2-preview.1",
337
+ routeTemplate: "_apis/Management/enablement2",
338
+ queryParams: queryValues
339
+ })];
340
+ });
341
+ });
342
+ };
343
+ /**
344
+ * Update the status of Advanced Security for the organization
345
+ *
346
+ * @param savedAdvSecEnablementStatus - The new status
347
+ */
348
+ ManagementRestClient.prototype.updateOrgEnablementStatus2 = function (savedAdvSecEnablementStatus) {
349
+ return __awaiter(this, void 0, void 0, function () {
350
+ return __generator(this, function (_a) {
351
+ return [2 /*return*/, this.beginRequest({
352
+ apiVersion: "7.2-preview.1",
353
+ method: "PATCH",
354
+ routeTemplate: "_apis/Management/enablement2",
355
+ body: savedAdvSecEnablementStatus
356
+ })];
357
+ });
358
+ });
359
+ };
177
360
  /**
178
361
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
179
362
  *
@@ -208,6 +391,40 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
208
391
  });
209
392
  });
210
393
  };
394
+ /**
395
+ * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
396
+ *
397
+ */
398
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg2 = function () {
399
+ return __awaiter(this, void 0, void 0, function () {
400
+ return __generator(this, function (_a) {
401
+ return [2 /*return*/, this.beginRequest({
402
+ apiVersion: "7.2-preview.1",
403
+ routeTemplate: "_apis/Management/meterUsageEstimate2/{action}",
404
+ routeValues: {
405
+ action: "Details"
406
+ }
407
+ })];
408
+ });
409
+ });
410
+ };
411
+ /**
412
+ * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
413
+ *
414
+ */
415
+ ManagementRestClient.prototype.getEstimatedOrgBillablePushers2 = function () {
416
+ return __awaiter(this, void 0, void 0, function () {
417
+ return __generator(this, function (_a) {
418
+ return [2 /*return*/, this.beginRequest({
419
+ apiVersion: "7.2-preview.1",
420
+ routeTemplate: "_apis/Management/meterUsageEstimate2/{action}",
421
+ routeValues: {
422
+ action: "Default"
423
+ }
424
+ })];
425
+ });
426
+ });
427
+ };
211
428
  /**
212
429
  * Get the current status of Advanced Security for a project
213
430
  *
@@ -253,6 +470,51 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
253
470
  });
254
471
  });
255
472
  };
473
+ /**
474
+ * Get the current status of Advanced Security for a project
475
+ *
476
+ * @param project - Project ID or project name
477
+ * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
478
+ */
479
+ ManagementRestClient.prototype.getProjectEnablementStatus2 = function (project, includeAllProperties) {
480
+ return __awaiter(this, void 0, void 0, function () {
481
+ var queryValues;
482
+ return __generator(this, function (_a) {
483
+ queryValues = {
484
+ includeAllProperties: includeAllProperties
485
+ };
486
+ return [2 /*return*/, this.beginRequest({
487
+ apiVersion: "7.2-preview.1",
488
+ routeTemplate: "{project}/_apis/Management/enablement2",
489
+ routeValues: {
490
+ project: project
491
+ },
492
+ queryParams: queryValues
493
+ })];
494
+ });
495
+ });
496
+ };
497
+ /**
498
+ * Update the status of Advanced Security for the project
499
+ *
500
+ * @param savedAdvSecEnablementStatus - The new status
501
+ * @param project - Project ID or project name
502
+ */
503
+ ManagementRestClient.prototype.updateProjectEnablementStatus2 = function (savedAdvSecEnablementStatus, project) {
504
+ return __awaiter(this, void 0, void 0, function () {
505
+ return __generator(this, function (_a) {
506
+ return [2 /*return*/, this.beginRequest({
507
+ apiVersion: "7.2-preview.1",
508
+ method: "PATCH",
509
+ routeTemplate: "{project}/_apis/Management/enablement2",
510
+ routeValues: {
511
+ project: project
512
+ },
513
+ body: savedAdvSecEnablementStatus
514
+ })];
515
+ });
516
+ });
517
+ };
256
518
  /**
257
519
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
258
520
  *
@@ -291,6 +553,44 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
291
553
  });
292
554
  });
293
555
  };
556
+ /**
557
+ * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
558
+ *
559
+ * @param project - Project ID or project name
560
+ */
561
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject2 = function (project) {
562
+ return __awaiter(this, void 0, void 0, function () {
563
+ return __generator(this, function (_a) {
564
+ return [2 /*return*/, this.beginRequest({
565
+ apiVersion: "7.2-preview.1",
566
+ routeTemplate: "{project}/_apis/Management/meterUsageEstimate2/{action}",
567
+ routeValues: {
568
+ project: project,
569
+ action: "Details"
570
+ }
571
+ })];
572
+ });
573
+ });
574
+ };
575
+ /**
576
+ * Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
577
+ *
578
+ * @param project - Project ID or project name
579
+ */
580
+ ManagementRestClient.prototype.getEstimatedProjectBillablePushers2 = function (project) {
581
+ return __awaiter(this, void 0, void 0, function () {
582
+ return __generator(this, function (_a) {
583
+ return [2 /*return*/, this.beginRequest({
584
+ apiVersion: "7.2-preview.1",
585
+ routeTemplate: "{project}/_apis/Management/meterUsageEstimate2/{action}",
586
+ routeValues: {
587
+ project: project,
588
+ action: "Default"
589
+ }
590
+ })];
591
+ });
592
+ });
593
+ };
294
594
  /**
295
595
  * Determine if Advanced Security is enabled for a repository
296
596
  *
@@ -382,6 +682,48 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
382
682
  });
383
683
  });
384
684
  };
685
+ /**
686
+ * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
687
+ *
688
+ * @param project - Project ID or project name
689
+ * @param repository - The name or ID of the repository
690
+ */
691
+ ManagementRestClient.prototype.getEstimatedRepoBillableCommitters2 = function (project, repository) {
692
+ return __awaiter(this, void 0, void 0, function () {
693
+ return __generator(this, function (_a) {
694
+ return [2 /*return*/, this.beginRequest({
695
+ apiVersion: "7.2-preview.1",
696
+ routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",
697
+ routeValues: {
698
+ project: project,
699
+ repository: repository,
700
+ action: "Default"
701
+ }
702
+ })];
703
+ });
704
+ });
705
+ };
706
+ /**
707
+ * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
708
+ *
709
+ * @param project - Project ID or project name
710
+ * @param repository -
711
+ */
712
+ ManagementRestClient.prototype.getEstimatedRepoBillableCommittersDetails2 = function (project, repository) {
713
+ return __awaiter(this, void 0, void 0, function () {
714
+ return __generator(this, function (_a) {
715
+ return [2 /*return*/, this.beginRequest({
716
+ apiVersion: "7.2-preview.1",
717
+ routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",
718
+ routeValues: {
719
+ project: project,
720
+ repository: repository,
721
+ action: "Details"
722
+ }
723
+ })];
724
+ });
725
+ });
726
+ };
385
727
  return ManagementRestClient;
386
728
  }(RestClientBase_1.RestClientBase));
387
729
  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,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Default"},queryParams:r,body:e})]})})},t.prototype.getBillableCommitterDetails2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Details"},queryParams:r})]})})},t.prototype.getLastMeterUsage2=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Last"},queryParams:t})]})})},t.prototype.getMeterUsage2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Default"},queryParams:r})]})})},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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-devops-extension-api",
3
- "version": "4.252.0",
3
+ "version": "4.254.0",
4
4
  "description": "REST client libraries and contracts for Azure DevOps web extension developers.",
5
5
  "repository": {
6
6
  "type": "git",