azure-devops-extension-api 4.229.0 → 4.230.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/Alert/Alert.d.ts +18 -0
- package/Alert/Alert.js +11 -0
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +4 -2
- package/Alert/AlertClient.js +8 -4
- package/Alert/AlertClient.min.js +1 -1
- package/Management/Management.d.ts +61 -0
- package/Management/ManagementClient.d.ts +6 -0
- package/Management/ManagementClient.js +23 -0
- package/Management/ManagementClient.min.js +1 -1
- package/WebApi/WebApi.d.ts +9 -0
- package/WebApi/WebApi.js +10 -0
- package/WebApi/WebApi.min.js +1 -1
- package/package.json +1 -1
package/Alert/Alert.d.ts
CHANGED
|
@@ -60,6 +60,10 @@ export interface Alert {
|
|
|
60
60
|
* Tools that have detected this issue.
|
|
61
61
|
*/
|
|
62
62
|
tools: Tool[];
|
|
63
|
+
/**
|
|
64
|
+
* ValidationFingerprints for the secret liveness check. Only return on demanded
|
|
65
|
+
*/
|
|
66
|
+
validationFingerprints: ValidationFingerprint[];
|
|
63
67
|
}
|
|
64
68
|
/**
|
|
65
69
|
* Summary of the state of the alert for a given analysis configuration.
|
|
@@ -371,6 +375,16 @@ export declare enum DismissalType {
|
|
|
371
375
|
*/
|
|
372
376
|
FalsePositive = 3
|
|
373
377
|
}
|
|
378
|
+
export declare enum ExpandOption {
|
|
379
|
+
/**
|
|
380
|
+
* No Expands.
|
|
381
|
+
*/
|
|
382
|
+
None = 0,
|
|
383
|
+
/**
|
|
384
|
+
* Return validationFingerprints in Alert.
|
|
385
|
+
*/
|
|
386
|
+
ValidationFingerprint = 1
|
|
387
|
+
}
|
|
374
388
|
export interface LogicalLocation {
|
|
375
389
|
fullyQualifiedName: string;
|
|
376
390
|
/**
|
|
@@ -646,6 +660,10 @@ export interface UxFilters {
|
|
|
646
660
|
*/
|
|
647
661
|
states: State[];
|
|
648
662
|
}
|
|
663
|
+
export interface ValidationFingerprint {
|
|
664
|
+
validationFingerprintHash: string;
|
|
665
|
+
validationFingerprintJson: string;
|
|
666
|
+
}
|
|
649
667
|
/**
|
|
650
668
|
* Information for locating files in a source control system
|
|
651
669
|
*/
|
package/Alert/Alert.js
CHANGED
|
@@ -120,6 +120,17 @@ define(["require", "exports"], function (require, exports) {
|
|
|
120
120
|
*/
|
|
121
121
|
DismissalType[DismissalType["FalsePositive"] = 3] = "FalsePositive";
|
|
122
122
|
})(DismissalType = exports.DismissalType || (exports.DismissalType = {}));
|
|
123
|
+
var ExpandOption;
|
|
124
|
+
(function (ExpandOption) {
|
|
125
|
+
/**
|
|
126
|
+
* No Expands.
|
|
127
|
+
*/
|
|
128
|
+
ExpandOption[ExpandOption["None"] = 0] = "None";
|
|
129
|
+
/**
|
|
130
|
+
* Return validationFingerprints in Alert.
|
|
131
|
+
*/
|
|
132
|
+
ExpandOption[ExpandOption["ValidationFingerprint"] = 1] = "ValidationFingerprint";
|
|
133
|
+
})(ExpandOption = exports.ExpandOption || (exports.ExpandOption = {}));
|
|
123
134
|
/**
|
|
124
135
|
* This enum defines the different result types.
|
|
125
136
|
*/
|
package/Alert/Alert.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code"}(n.AlertType||(n.AlertType={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}))});
|
|
1
|
+
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code"}(n.AlertType||(n.AlertType={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}))});
|
package/Alert/AlertClient.d.ts
CHANGED
|
@@ -11,8 +11,9 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
11
11
|
* @param alertId - ID of alert to retrieve
|
|
12
12
|
* @param repository - Name or id of a repository that alert is part of
|
|
13
13
|
* @param ref -
|
|
14
|
+
* @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
|
|
14
15
|
*/
|
|
15
|
-
getAlert(project: string, alertId: number, repository: string, ref?: string): Promise<Alert.Alert>;
|
|
16
|
+
getAlert(project: string, alertId: number, repository: string, ref?: string, expand?: Alert.ExpandOption): Promise<Alert.Alert>;
|
|
16
17
|
/**
|
|
17
18
|
* Get alerts for a repository
|
|
18
19
|
*
|
|
@@ -31,8 +32,9 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
31
32
|
* @param alertId - ID of alert to retrieve
|
|
32
33
|
* @param repository - Name or id of a repository that alert is part of
|
|
33
34
|
* @param ref -
|
|
35
|
+
* @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
|
|
34
36
|
*/
|
|
35
|
-
getAlertSarif(project: string, alertId: number, repository: string, ref?: string): Promise<string>;
|
|
37
|
+
getAlertSarif(project: string, alertId: number, repository: string, ref?: string, expand?: Alert.ExpandOption): Promise<string>;
|
|
36
38
|
/**
|
|
37
39
|
* Update the status of an alert
|
|
38
40
|
*
|
package/Alert/AlertClient.js
CHANGED
|
@@ -63,13 +63,15 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
63
63
|
* @param alertId - ID of alert to retrieve
|
|
64
64
|
* @param repository - Name or id of a repository that alert is part of
|
|
65
65
|
* @param ref -
|
|
66
|
+
* @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
|
|
66
67
|
*/
|
|
67
|
-
AlertRestClient.prototype.getAlert = function (project, alertId, repository, ref) {
|
|
68
|
+
AlertRestClient.prototype.getAlert = function (project, alertId, repository, ref, expand) {
|
|
68
69
|
return __awaiter(this, void 0, void 0, function () {
|
|
69
70
|
var queryValues;
|
|
70
71
|
return __generator(this, function (_a) {
|
|
71
72
|
queryValues = {
|
|
72
|
-
ref: ref
|
|
73
|
+
ref: ref,
|
|
74
|
+
expand: expand
|
|
73
75
|
};
|
|
74
76
|
return [2 /*return*/, this.beginRequest({
|
|
75
77
|
apiVersion: "7.2-preview.1",
|
|
@@ -136,13 +138,15 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
136
138
|
* @param alertId - ID of alert to retrieve
|
|
137
139
|
* @param repository - Name or id of a repository that alert is part of
|
|
138
140
|
* @param ref -
|
|
141
|
+
* @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
|
|
139
142
|
*/
|
|
140
|
-
AlertRestClient.prototype.getAlertSarif = function (project, alertId, repository, ref) {
|
|
143
|
+
AlertRestClient.prototype.getAlertSarif = function (project, alertId, repository, ref, expand) {
|
|
141
144
|
return __awaiter(this, void 0, void 0, function () {
|
|
142
145
|
var queryValues;
|
|
143
146
|
return __generator(this, function (_a) {
|
|
144
147
|
queryValues = {
|
|
145
|
-
ref: ref
|
|
148
|
+
ref: ref,
|
|
149
|
+
expand: expand
|
|
146
150
|
};
|
|
147
151
|
return [2 /*return*/, this.beginRequest({
|
|
148
152
|
apiVersion: "7.2-preview.1",
|
package/Alert/AlertClient.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(a,s)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[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","../Common/Util/Serialization"],function(e,t,r,o){"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.getAlert=function(e,t,r,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(a){return i={ref:o,expand:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:i})]})})},t.prototype.getAlerts=function(e,t,r,n,i,a){return __awaiter(this,void 0,void 0,function(){var s,u=this;return __generator(this,function(p){return s={top:r,orderBy:n,criteria:i,continuationToken:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getAlertSarif=function(e,t,r,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(a){return i={ref:o,expand:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:i})]})})},t.prototype.updateAlert=function(e,t,r,o){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/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:t,alertId:r,repository:o},body:e})]})})},t.prototype.getAlertInstances=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.uploadSarif=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/sarifs",routeValues:{project:t,repository:r},customHeaders:{"Content-Type":"application/octet-stream"},body:e})]})})},t.prototype.getUxFilters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={alertType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters",routeValues:{project:e,repository:t},queryParams:o})]})})},t.prototype.getSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})]})})},t}(r.RestClientBase);t.AlertRestClient=n});
|
|
@@ -29,6 +29,67 @@ export interface AdvSecEnablementStatusUpdate {
|
|
|
29
29
|
*/
|
|
30
30
|
blockPushes: boolean;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Billable Committers Details for Advanced Security Services
|
|
34
|
+
*/
|
|
35
|
+
export interface BillableCommitterDetails {
|
|
36
|
+
/**
|
|
37
|
+
* ID (SHA-1) of the commit.
|
|
38
|
+
*/
|
|
39
|
+
commitId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Committer email address after parsing.
|
|
42
|
+
*/
|
|
43
|
+
committerEmail: string;
|
|
44
|
+
/**
|
|
45
|
+
* Time reported by the commit.
|
|
46
|
+
*/
|
|
47
|
+
commitTime: Date;
|
|
48
|
+
/**
|
|
49
|
+
* DisplayName of the Pusher.
|
|
50
|
+
*/
|
|
51
|
+
displayName: string;
|
|
52
|
+
/**
|
|
53
|
+
* MailNickName of the Pusher.
|
|
54
|
+
*/
|
|
55
|
+
mailNickName: string;
|
|
56
|
+
/**
|
|
57
|
+
* Project Id commit was pushed to.
|
|
58
|
+
*/
|
|
59
|
+
projectId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Project name commit was pushed to.
|
|
62
|
+
*/
|
|
63
|
+
projectName: string;
|
|
64
|
+
/**
|
|
65
|
+
* Time of the push that contained the commit.
|
|
66
|
+
*/
|
|
67
|
+
pushedTime: Date;
|
|
68
|
+
/**
|
|
69
|
+
* Pusher Id for the push.
|
|
70
|
+
*/
|
|
71
|
+
pusherId: string;
|
|
72
|
+
/**
|
|
73
|
+
* Push Id that contained the commit.
|
|
74
|
+
*/
|
|
75
|
+
pushId: number;
|
|
76
|
+
/**
|
|
77
|
+
* RepositoryId commit was pushed to.
|
|
78
|
+
*/
|
|
79
|
+
repoId: string;
|
|
80
|
+
/**
|
|
81
|
+
* Repository name commit was pushed to.
|
|
82
|
+
*/
|
|
83
|
+
repoName: string;
|
|
84
|
+
/**
|
|
85
|
+
* SamAccountName of the Pusher.
|
|
86
|
+
*/
|
|
87
|
+
samAccountName: string;
|
|
88
|
+
/**
|
|
89
|
+
* Visual Studio ID /Team Foundation ID
|
|
90
|
+
*/
|
|
91
|
+
vsid: string;
|
|
92
|
+
}
|
|
32
93
|
/**
|
|
33
94
|
* BillingInfo contains an organization, its enablement status and the Azure Subscription for it.
|
|
34
95
|
*/
|
|
@@ -22,6 +22,12 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
22
22
|
* @param organizationId -
|
|
23
23
|
*/
|
|
24
24
|
saveBillingInfo(billingInfo: Management.BillingInfo, organizationId: string): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Get all billable committers details, including those not matched with a VSID.
|
|
27
|
+
*
|
|
28
|
+
* @param billingDate - The date to query, or if not provided, today
|
|
29
|
+
*/
|
|
30
|
+
getBillableCommitterDetails(billingDate?: Date): Promise<Management.BillableCommitterDetails[]>;
|
|
25
31
|
/**
|
|
26
32
|
*/
|
|
27
33
|
getLastMeterUsage(): Promise<Management.MeterUsage>;
|
|
@@ -131,6 +131,29 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* Get all billable committers details, including those not matched with a VSID.
|
|
136
|
+
*
|
|
137
|
+
* @param billingDate - The date to query, or if not provided, today
|
|
138
|
+
*/
|
|
139
|
+
ManagementRestClient.prototype.getBillableCommitterDetails = function (billingDate) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
+
var queryValues;
|
|
142
|
+
return __generator(this, function (_a) {
|
|
143
|
+
queryValues = {
|
|
144
|
+
billingDate: billingDate
|
|
145
|
+
};
|
|
146
|
+
return [2 /*return*/, this.beginRequest({
|
|
147
|
+
apiVersion: "7.2-preview.1",
|
|
148
|
+
routeTemplate: "_apis/Management/MeterUsage/{action}",
|
|
149
|
+
routeValues: {
|
|
150
|
+
action: "Details"
|
|
151
|
+
},
|
|
152
|
+
queryParams: queryValues
|
|
153
|
+
})];
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
};
|
|
134
157
|
/**
|
|
135
158
|
*/
|
|
136
159
|
ManagementRestClient.prototype.getLastMeterUsage = function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){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=t.call(e,u)}catch(e){n=[6,e],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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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(n){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.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(n){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.setBillingSnapshot=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.getOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){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.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"})]})})},t.prototype.getProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},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",routeValues:{project:e}})]})})},t.prototype.getRepoEnablementStatus=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={includeAllProperties:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:r})]})})},t.prototype.updateRepoAdvSecEnablementStatus=function(e,t,n){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/repositories/{repository}/enablement",routeValues:{project:t,repository:n},body:e})]})})},t.prototype.getEstimatedRepoBillableCommitters=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate",routeValues:{project:e,repository:t}})]})})},t}(n.RestClientBase);t.ManagementRestClient=r});
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){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=t.call(e,u)}catch(e){n=[6,e],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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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(n){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.getBillableCommitterDetails=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){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(n){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.setBillingSnapshot=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.getOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){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.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"})]})})},t.prototype.getProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},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",routeValues:{project:e}})]})})},t.prototype.getRepoEnablementStatus=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={includeAllProperties:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:r})]})})},t.prototype.updateRepoAdvSecEnablementStatus=function(e,t,n){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/repositories/{repository}/enablement",routeValues:{project:t,repository:n},body:e})]})})},t.prototype.getEstimatedRepoBillableCommitters=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate",routeValues:{project:e,repository:t}})]})})},t}(n.RestClientBase);t.ManagementRestClient=r});
|
package/WebApi/WebApi.d.ts
CHANGED
|
@@ -334,6 +334,15 @@ export interface TraceFilter {
|
|
|
334
334
|
userAgent: string;
|
|
335
335
|
userLogin: string;
|
|
336
336
|
}
|
|
337
|
+
export declare enum UserProfileSyncState {
|
|
338
|
+
None = 0,
|
|
339
|
+
Completed = 1,
|
|
340
|
+
NewProfileDataAndImageRetrieved = 2,
|
|
341
|
+
ProfileDataBackupDone = 3,
|
|
342
|
+
NewProfileDataSet = 4,
|
|
343
|
+
NewProfileDataUpdateFailed = 5,
|
|
344
|
+
NewProfileImageUpdateFailed = 6
|
|
345
|
+
}
|
|
337
346
|
export interface VssJsonCollectionWrapper extends VssJsonCollectionWrapperBase {
|
|
338
347
|
value: any[];
|
|
339
348
|
}
|
package/WebApi/WebApi.js
CHANGED
|
@@ -53,4 +53,14 @@ define(["require", "exports"], function (require, exports) {
|
|
|
53
53
|
Operation[Operation["Copy"] = 4] = "Copy";
|
|
54
54
|
Operation[Operation["Test"] = 5] = "Test";
|
|
55
55
|
})(Operation = exports.Operation || (exports.Operation = {}));
|
|
56
|
+
var UserProfileSyncState;
|
|
57
|
+
(function (UserProfileSyncState) {
|
|
58
|
+
UserProfileSyncState[UserProfileSyncState["None"] = 0] = "None";
|
|
59
|
+
UserProfileSyncState[UserProfileSyncState["Completed"] = 1] = "Completed";
|
|
60
|
+
UserProfileSyncState[UserProfileSyncState["NewProfileDataAndImageRetrieved"] = 2] = "NewProfileDataAndImageRetrieved";
|
|
61
|
+
UserProfileSyncState[UserProfileSyncState["ProfileDataBackupDone"] = 3] = "ProfileDataBackupDone";
|
|
62
|
+
UserProfileSyncState[UserProfileSyncState["NewProfileDataSet"] = 4] = "NewProfileDataSet";
|
|
63
|
+
UserProfileSyncState[UserProfileSyncState["NewProfileDataUpdateFailed"] = 5] = "NewProfileDataUpdateFailed";
|
|
64
|
+
UserProfileSyncState[UserProfileSyncState["NewProfileImageUpdateFailed"] = 6] = "NewProfileImageUpdateFailed";
|
|
65
|
+
})(UserProfileSyncState = exports.UserProfileSyncState || (exports.UserProfileSyncState = {}));
|
|
56
66
|
});
|
package/WebApi/WebApi.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.IncludeServices=1]="IncludeServices",e[e.IncludeLastUserAccess=2]="IncludeLastUserAccess",e[e.IncludeInheritedDefinitionsOnly=4]="IncludeInheritedDefinitionsOnly",e[e.IncludeNonInheritedDefinitionsOnly=8]="IncludeNonInheritedDefinitionsOnly"}(n.ConnectOptions||(n.ConnectOptions={}));!function(e){e[e.None=0]="None",e[e.Hosted=1]="Hosted",e[e.OnPremises=2]="OnPremises"}(n.DeploymentFlags||(n.DeploymentFlags={}));!function(e){e[e.None=0]="None",e[e.HS256=1]="HS256",e[e.RS256=2]="RS256"}(n.JWTAlgorithm||(n.JWTAlgorithm={}));!function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove",e[e.Replace=2]="Replace",e[e.Move=3]="Move",e[e.Copy=4]="Copy",e[e.Test=5]="Test"}(n.Operation||(n.Operation={}))});
|
|
1
|
+
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.IncludeServices=1]="IncludeServices",e[e.IncludeLastUserAccess=2]="IncludeLastUserAccess",e[e.IncludeInheritedDefinitionsOnly=4]="IncludeInheritedDefinitionsOnly",e[e.IncludeNonInheritedDefinitionsOnly=8]="IncludeNonInheritedDefinitionsOnly"}(n.ConnectOptions||(n.ConnectOptions={}));!function(e){e[e.None=0]="None",e[e.Hosted=1]="Hosted",e[e.OnPremises=2]="OnPremises"}(n.DeploymentFlags||(n.DeploymentFlags={}));!function(e){e[e.None=0]="None",e[e.HS256=1]="HS256",e[e.RS256=2]="RS256"}(n.JWTAlgorithm||(n.JWTAlgorithm={}));!function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove",e[e.Replace=2]="Replace",e[e.Move=3]="Move",e[e.Copy=4]="Copy",e[e.Test=5]="Test"}(n.Operation||(n.Operation={}));!function(e){e[e.None=0]="None",e[e.Completed=1]="Completed",e[e.NewProfileDataAndImageRetrieved=2]="NewProfileDataAndImageRetrieved",e[e.ProfileDataBackupDone=3]="ProfileDataBackupDone",e[e.NewProfileDataSet=4]="NewProfileDataSet",e[e.NewProfileDataUpdateFailed=5]="NewProfileDataUpdateFailed",e[e.NewProfileImageUpdateFailed=6]="NewProfileImageUpdateFailed"}(n.UserProfileSyncState||(n.UserProfileSyncState={}))});
|