azure-devops-extension-api 4.231.0 → 4.234.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 +34 -1
- package/Alert/Alert.js +22 -0
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +5 -3
- package/Alert/AlertClient.js +5 -3
- package/Alert/AlertClient.min.js +1 -1
- package/Build/Build.d.ts +7 -0
- package/Build/Build.js +6 -0
- package/Comments/Comments.d.ts +9 -0
- package/Comments/Comments.js +3 -0
- package/Core/Core.d.ts +18 -0
- package/Dashboard/Dashboard.d.ts +6 -0
- package/Dashboard/Dashboard.js +6 -0
- package/ExtensionManagement/ExtensionManagementClient.d.ts +8 -6
- package/ExtensionManagement/ExtensionManagementClient.js +8 -6
- package/FileContainer/FileContainerClient.d.ts +12 -10
- package/FileContainer/FileContainerClient.js +12 -10
- package/Gallery/Gallery.d.ts +13 -14
- package/Gallery/Gallery.js +0 -13
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +12 -1
- package/Gallery/GalleryClient.js +38 -1
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +4 -1
- package/Git/GitClient.d.ts +4 -2
- package/Git/GitClient.js +4 -2
- package/Graph/GraphClient.d.ts +5 -1
- package/Graph/GraphClient.js +5 -1
- package/Management/ManagementClient.d.ts +6 -0
- package/Management/ManagementClient.js +6 -0
- package/Notification/Notification.d.ts +9 -0
- package/Notification/Notification.js +6 -0
- package/Release/Release.d.ts +33 -0
- package/Release/Release.js +3 -0
- package/Release/ReleaseClient.d.ts +18 -16
- package/Release/ReleaseClient.js +17 -15
- package/ServiceEndpoint/ServiceEndpoint.d.ts +8 -0
- package/TaskAgent/TaskAgent.d.ts +4 -0
- package/TaskAgent/TaskAgentClient.d.ts +7 -8
- package/TaskAgent/TaskAgentClient.js +20 -26
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/Test.d.ts +89 -14
- package/Test/Test.js +23 -15
- package/Test/Test.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +48 -29
- package/TestResults/TestResultsClient.js +110 -77
- package/TestResults/TestResultsClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +6 -3
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +9 -0
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +9 -0
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -0
- package/package.json +1 -1
package/Alert/Alert.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface Alert {
|
|
|
65
65
|
*/
|
|
66
66
|
truncatedSecret: string;
|
|
67
67
|
/**
|
|
68
|
-
* ValidationFingerprints for the secret liveness check. Only
|
|
68
|
+
* ValidationFingerprints for the secret liveness check. Only returned on demand in Get API with Expand parameter set to be ValidationFingerprint (not returned in List API)
|
|
69
69
|
*/
|
|
70
70
|
validationFingerprints: ValidationFingerprint[];
|
|
71
71
|
}
|
|
@@ -263,6 +263,9 @@ export declare enum ComponentType {
|
|
|
263
263
|
* Indicates the component is a loose file. Not a package as understood by different package managers.
|
|
264
264
|
*/
|
|
265
265
|
File = 9,
|
|
266
|
+
/**
|
|
267
|
+
* Indicates the component is a Go package.
|
|
268
|
+
*/
|
|
266
269
|
Go = 10,
|
|
267
270
|
/**
|
|
268
271
|
* Indicates the component is a Docker Image
|
|
@@ -543,6 +546,32 @@ export interface Rule {
|
|
|
543
546
|
*/
|
|
544
547
|
tags: string[];
|
|
545
548
|
}
|
|
549
|
+
export declare enum SarifJobStatus {
|
|
550
|
+
/**
|
|
551
|
+
* The job type when it is new
|
|
552
|
+
*/
|
|
553
|
+
New = 0,
|
|
554
|
+
/**
|
|
555
|
+
* The job type when it is queued
|
|
556
|
+
*/
|
|
557
|
+
Queued = 1,
|
|
558
|
+
/**
|
|
559
|
+
* The job type when it is completed
|
|
560
|
+
*/
|
|
561
|
+
Completed = 2,
|
|
562
|
+
/**
|
|
563
|
+
* The job type when it fails
|
|
564
|
+
*/
|
|
565
|
+
Failed = 3
|
|
566
|
+
}
|
|
567
|
+
export interface SarifUploadStatus {
|
|
568
|
+
errors: SarifValidationError[];
|
|
569
|
+
processingStatus: SarifJobStatus;
|
|
570
|
+
}
|
|
571
|
+
export interface SarifValidationError {
|
|
572
|
+
nodePointer: string;
|
|
573
|
+
validationError: string;
|
|
574
|
+
}
|
|
546
575
|
export interface SearchCriteria {
|
|
547
576
|
/**
|
|
548
577
|
* If provided, only return alerts of this type. Otherwise, return alerts of all types.
|
|
@@ -560,6 +589,10 @@ export interface SearchCriteria {
|
|
|
560
589
|
* If provided, only return alerts whose titles match this pattern.
|
|
561
590
|
*/
|
|
562
591
|
keywords: string;
|
|
592
|
+
/**
|
|
593
|
+
* If provided, only return alerts that were modified since this date. \<br /\>Otherwise return all alerts.
|
|
594
|
+
*/
|
|
595
|
+
modifiedSince: Date;
|
|
563
596
|
/**
|
|
564
597
|
* If true, only return alerts found on the default branch of the repository. \<br /\>If there have been no runs completed on the default branch, the last run is used instead regardless of the branch used for that run. \<br /\>This option is ignored if ref is provided.
|
|
565
598
|
*/
|
package/Alert/Alert.js
CHANGED
|
@@ -75,6 +75,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
75
75
|
* Indicates the component is a loose file. Not a package as understood by different package managers.
|
|
76
76
|
*/
|
|
77
77
|
ComponentType[ComponentType["File"] = 9] = "File";
|
|
78
|
+
/**
|
|
79
|
+
* Indicates the component is a Go package.
|
|
80
|
+
*/
|
|
78
81
|
ComponentType[ComponentType["Go"] = 10] = "Go";
|
|
79
82
|
/**
|
|
80
83
|
* Indicates the component is a Docker Image
|
|
@@ -149,6 +152,25 @@ define(["require", "exports"], function (require, exports) {
|
|
|
149
152
|
*/
|
|
150
153
|
ResultType[ResultType["VersionControl"] = 2] = "VersionControl";
|
|
151
154
|
})(ResultType = exports.ResultType || (exports.ResultType = {}));
|
|
155
|
+
var SarifJobStatus;
|
|
156
|
+
(function (SarifJobStatus) {
|
|
157
|
+
/**
|
|
158
|
+
* The job type when it is new
|
|
159
|
+
*/
|
|
160
|
+
SarifJobStatus[SarifJobStatus["New"] = 0] = "New";
|
|
161
|
+
/**
|
|
162
|
+
* The job type when it is queued
|
|
163
|
+
*/
|
|
164
|
+
SarifJobStatus[SarifJobStatus["Queued"] = 1] = "Queued";
|
|
165
|
+
/**
|
|
166
|
+
* The job type when it is completed
|
|
167
|
+
*/
|
|
168
|
+
SarifJobStatus[SarifJobStatus["Completed"] = 2] = "Completed";
|
|
169
|
+
/**
|
|
170
|
+
* The job type when it fails
|
|
171
|
+
*/
|
|
172
|
+
SarifJobStatus[SarifJobStatus["Failed"] = 3] = "Failed";
|
|
173
|
+
})(SarifJobStatus = exports.SarifJobStatus || (exports.SarifJobStatus = {}));
|
|
152
174
|
var Severity;
|
|
153
175
|
(function (Severity) {
|
|
154
176
|
Severity[Severity["Low"] = 0] = "Low";
|
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.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",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error"}(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.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error"}(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
|
@@ -45,9 +45,11 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
45
45
|
*/
|
|
46
46
|
updateAlert(stateUpdate: Alert.AlertStateUpdate, project: string, alertId: number, repository: string): Promise<Alert.Alert>;
|
|
47
47
|
/**
|
|
48
|
+
* Get instances of an alert.
|
|
49
|
+
*
|
|
48
50
|
* @param project - Project ID or project name
|
|
49
|
-
* @param alertId -
|
|
50
|
-
* @param repository -
|
|
51
|
+
* @param alertId - ID of alert to retrieve
|
|
52
|
+
* @param repository - Name or id of a repository that alert is part of
|
|
51
53
|
* @param ref -
|
|
52
54
|
*/
|
|
53
55
|
getAlertInstances(project: string, alertId: number, repository: string, ref?: string): Promise<Alert.AlertAnalysisInstance[]>;
|
|
@@ -70,5 +72,5 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
70
72
|
*
|
|
71
73
|
* @param sarifId - Sarif ID returned when the Sarif was uploaded
|
|
72
74
|
*/
|
|
73
|
-
getSarif(sarifId: number): Promise<
|
|
75
|
+
getSarif(sarifId: number): Promise<Alert.SarifUploadStatus>;
|
|
74
76
|
}
|
package/Alert/AlertClient.js
CHANGED
|
@@ -187,9 +187,11 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
187
187
|
});
|
|
188
188
|
};
|
|
189
189
|
/**
|
|
190
|
+
* Get instances of an alert.
|
|
191
|
+
*
|
|
190
192
|
* @param project - Project ID or project name
|
|
191
|
-
* @param alertId -
|
|
192
|
-
* @param repository -
|
|
193
|
+
* @param alertId - ID of alert to retrieve
|
|
194
|
+
* @param repository - Name or id of a repository that alert is part of
|
|
193
195
|
* @param ref -
|
|
194
196
|
*/
|
|
195
197
|
AlertRestClient.prototype.getAlertInstances = function (project, alertId, repository, ref) {
|
|
@@ -271,7 +273,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
271
273
|
return __awaiter(this, void 0, void 0, function () {
|
|
272
274
|
return __generator(this, function (_a) {
|
|
273
275
|
return [2 /*return*/, this.beginRequest({
|
|
274
|
-
apiVersion: "7.2-preview.
|
|
276
|
+
apiVersion: "7.2-preview.2",
|
|
275
277
|
routeTemplate: "_apis/Alert/Sarifs/{sarifId}",
|
|
276
278
|
routeValues: {
|
|
277
279
|
sarifId: sarifId
|
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(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
|
+
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.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})]})})},t}(r.RestClientBase);t.AlertRestClient=n});
|
package/Build/Build.d.ts
CHANGED
|
@@ -2307,7 +2307,13 @@ export interface RealtimeBuildEvent {
|
|
|
2307
2307
|
buildId: number;
|
|
2308
2308
|
}
|
|
2309
2309
|
export declare enum RepositoryCleanOptions {
|
|
2310
|
+
/**
|
|
2311
|
+
* Run git clean -fdx && git reset --hard or Tf /scorch on $(build.sourcesDirectory)
|
|
2312
|
+
*/
|
|
2310
2313
|
Source = 0,
|
|
2314
|
+
/**
|
|
2315
|
+
* Run git clean -fdx && git reset --hard or Tf /scorch on $(build.sourcesDirectory), also re-create $(build.binariesDirectory)
|
|
2316
|
+
*/
|
|
2311
2317
|
SourceAndOutputDir = 1,
|
|
2312
2318
|
/**
|
|
2313
2319
|
* Re-create $(build.sourcesDirectory)
|
|
@@ -3012,6 +3018,7 @@ export interface UpdateRetentionSettingModel {
|
|
|
3012
3018
|
}
|
|
3013
3019
|
export interface UpdateStageParameters {
|
|
3014
3020
|
forceRetryAllJobs: boolean;
|
|
3021
|
+
retryDependencies: boolean;
|
|
3015
3022
|
state: StageUpdateType;
|
|
3016
3023
|
}
|
|
3017
3024
|
export interface UpdateTagParameters {
|
package/Build/Build.js
CHANGED
|
@@ -452,7 +452,13 @@ define(["require", "exports"], function (require, exports) {
|
|
|
452
452
|
})(QueuePriority = exports.QueuePriority || (exports.QueuePriority = {}));
|
|
453
453
|
var RepositoryCleanOptions;
|
|
454
454
|
(function (RepositoryCleanOptions) {
|
|
455
|
+
/**
|
|
456
|
+
* Run git clean -fdx && git reset --hard or Tf /scorch on $(build.sourcesDirectory)
|
|
457
|
+
*/
|
|
455
458
|
RepositoryCleanOptions[RepositoryCleanOptions["Source"] = 0] = "Source";
|
|
459
|
+
/**
|
|
460
|
+
* Run git clean -fdx && git reset --hard or Tf /scorch on $(build.sourcesDirectory), also re-create $(build.binariesDirectory)
|
|
461
|
+
*/
|
|
456
462
|
RepositoryCleanOptions[RepositoryCleanOptions["SourceAndOutputDir"] = 1] = "SourceAndOutputDir";
|
|
457
463
|
/**
|
|
458
464
|
* Re-create $(build.sourcesDirectory)
|
package/Comments/Comments.d.ts
CHANGED
|
@@ -89,6 +89,9 @@ export interface CommentCreateParameters {
|
|
|
89
89
|
* Optional CommentId of the parent in order to add a reply for an existing comment
|
|
90
90
|
*/
|
|
91
91
|
parentId: number;
|
|
92
|
+
/**
|
|
93
|
+
* Text of the comment
|
|
94
|
+
*/
|
|
92
95
|
text: string;
|
|
93
96
|
}
|
|
94
97
|
/**
|
|
@@ -107,6 +110,9 @@ export declare enum CommentExpandOptions {
|
|
|
107
110
|
* Include the rendered text (html) in addition to markdown text
|
|
108
111
|
*/
|
|
109
112
|
RenderedText = 8,
|
|
113
|
+
/**
|
|
114
|
+
* If specified, then ONLY rendered text (html) will be returned, w/o markdown. Supposed to be used internally from data provides for optimization purposes.
|
|
115
|
+
*/
|
|
110
116
|
RenderedTextOnly = 16,
|
|
111
117
|
/**
|
|
112
118
|
* If specified, then responses will be expanded in the results
|
|
@@ -220,6 +226,9 @@ export declare enum CommentReactionType {
|
|
|
220
226
|
* Base class for comment resource references
|
|
221
227
|
*/
|
|
222
228
|
export interface CommentResourceReference {
|
|
229
|
+
/**
|
|
230
|
+
* REST URL for the resource.
|
|
231
|
+
*/
|
|
223
232
|
url: string;
|
|
224
233
|
}
|
|
225
234
|
export declare enum CommentSortOrder {
|
package/Comments/Comments.js
CHANGED
|
@@ -23,6 +23,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
23
23
|
* Include the rendered text (html) in addition to markdown text
|
|
24
24
|
*/
|
|
25
25
|
CommentExpandOptions[CommentExpandOptions["RenderedText"] = 8] = "RenderedText";
|
|
26
|
+
/**
|
|
27
|
+
* If specified, then ONLY rendered text (html) will be returned, w/o markdown. Supposed to be used internally from data provides for optimization purposes.
|
|
28
|
+
*/
|
|
26
29
|
CommentExpandOptions[CommentExpandOptions["RenderedTextOnly"] = 16] = "RenderedTextOnly";
|
|
27
30
|
/**
|
|
28
31
|
* If specified, then responses will be expanded in the results
|
package/Core/Core.d.ts
CHANGED
|
@@ -347,16 +347,34 @@ export interface TeamProjectReference {
|
|
|
347
347
|
* A data transfer object that stores the metadata associated with the creation of temporary data.
|
|
348
348
|
*/
|
|
349
349
|
export interface TemporaryDataCreatedDTO extends TemporaryDataDTO {
|
|
350
|
+
/**
|
|
351
|
+
* Temporary data expiration date.
|
|
352
|
+
*/
|
|
350
353
|
expirationDate: Date;
|
|
354
|
+
/**
|
|
355
|
+
* Temporary data id.
|
|
356
|
+
*/
|
|
351
357
|
id: string;
|
|
358
|
+
/**
|
|
359
|
+
* Rest url for the temporary data.
|
|
360
|
+
*/
|
|
352
361
|
url: string;
|
|
353
362
|
}
|
|
354
363
|
/**
|
|
355
364
|
* A data transfer object that stores the metadata associated with the temporary data.
|
|
356
365
|
*/
|
|
357
366
|
export interface TemporaryDataDTO {
|
|
367
|
+
/**
|
|
368
|
+
* Temporary data expire in seconds
|
|
369
|
+
*/
|
|
358
370
|
expirationSeconds: number;
|
|
371
|
+
/**
|
|
372
|
+
* Temporary data origin
|
|
373
|
+
*/
|
|
359
374
|
origin: string;
|
|
375
|
+
/**
|
|
376
|
+
* Temporary data.
|
|
377
|
+
*/
|
|
360
378
|
value: any;
|
|
361
379
|
}
|
|
362
380
|
/**
|
package/Dashboard/Dashboard.d.ts
CHANGED
|
@@ -152,6 +152,9 @@ export declare enum DashboardScope {
|
|
|
152
152
|
*/
|
|
153
153
|
Project = 2
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* None - Team member cannot edit dashboard Edit - Team member can add, configure and delete widgets Manage - Team member can add, reorder, delete dashboards Manage Permissions - Team member can manage membership of other members to perform group operations.
|
|
157
|
+
*/
|
|
155
158
|
export declare enum GroupMemberPermission {
|
|
156
159
|
None = 0,
|
|
157
160
|
Edit = 1,
|
|
@@ -192,6 +195,9 @@ export interface SemanticVersion {
|
|
|
192
195
|
*/
|
|
193
196
|
patch: number;
|
|
194
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Read - User can see dashboards Create - User can create dashboards Edit - User can add, configure and delete widgets, and edit dashboard settings. Delete - User can delete dashboards Manage Permissions - Team member can manage membership of other members to perform group operations.
|
|
200
|
+
*/
|
|
195
201
|
export declare enum TeamDashboardPermission {
|
|
196
202
|
None = 0,
|
|
197
203
|
Read = 1,
|
package/Dashboard/Dashboard.js
CHANGED
|
@@ -24,6 +24,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
24
24
|
*/
|
|
25
25
|
DashboardScope[DashboardScope["Project"] = 2] = "Project";
|
|
26
26
|
})(DashboardScope = exports.DashboardScope || (exports.DashboardScope = {}));
|
|
27
|
+
/**
|
|
28
|
+
* None - Team member cannot edit dashboard Edit - Team member can add, configure and delete widgets Manage - Team member can add, reorder, delete dashboards Manage Permissions - Team member can manage membership of other members to perform group operations.
|
|
29
|
+
*/
|
|
27
30
|
var GroupMemberPermission;
|
|
28
31
|
(function (GroupMemberPermission) {
|
|
29
32
|
GroupMemberPermission[GroupMemberPermission["None"] = 0] = "None";
|
|
@@ -31,6 +34,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
31
34
|
GroupMemberPermission[GroupMemberPermission["Manage"] = 2] = "Manage";
|
|
32
35
|
GroupMemberPermission[GroupMemberPermission["ManagePermissions"] = 3] = "ManagePermissions";
|
|
33
36
|
})(GroupMemberPermission = exports.GroupMemberPermission || (exports.GroupMemberPermission = {}));
|
|
37
|
+
/**
|
|
38
|
+
* Read - User can see dashboards Create - User can create dashboards Edit - User can add, configure and delete widgets, and edit dashboard settings. Delete - User can delete dashboards Manage Permissions - Team member can manage membership of other members to perform group operations.
|
|
39
|
+
*/
|
|
34
40
|
var TeamDashboardPermission;
|
|
35
41
|
(function (TeamDashboardPermission) {
|
|
36
42
|
TeamDashboardPermission[TeamDashboardPermission["None"] = 0] = "None";
|
|
@@ -6,12 +6,14 @@ export declare class ExtensionManagementRestClient extends RestClientBase {
|
|
|
6
6
|
constructor(options: IVssRestClientOptions);
|
|
7
7
|
static readonly RESOURCE_AREA_ID: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
-
* @param
|
|
9
|
+
* This API is called by acquisition/install page to get possible user actions like Buy/Request
|
|
10
|
+
*
|
|
11
|
+
* @param itemId - Fully qualified name of extension (\<publisher_id\>.\<extension_id\>)
|
|
12
|
+
* @param testCommerce - Parameter to test paid preview extension without making azure plans public
|
|
13
|
+
* @param isFreeOrTrialInstall - Parameter represents install or trial workflow (required for legacy install flows)
|
|
14
|
+
* @param isAccountOwner - Parameter represents whether user is owner or PCA of an account
|
|
15
|
+
* @param isLinked - Parameter represents whether account is linked with a subscription
|
|
16
|
+
* @param isConnectedServer - Parameter represents whether Buy operation should be evaluated
|
|
15
17
|
* @param isBuyOperationValid -
|
|
16
18
|
*/
|
|
17
19
|
getAcquisitionOptions(itemId: string, testCommerce?: boolean, isFreeOrTrialInstall?: boolean, isAccountOwner?: boolean, isLinked?: boolean, isConnectedServer?: boolean, isBuyOperationValid?: boolean): Promise<ExtensionManagement.AcquisitionOptions>;
|
|
@@ -57,12 +57,14 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
57
57
|
return _super.call(this, options) || this;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* @param
|
|
63
|
-
* @param
|
|
64
|
-
* @param
|
|
65
|
-
* @param
|
|
60
|
+
* This API is called by acquisition/install page to get possible user actions like Buy/Request
|
|
61
|
+
*
|
|
62
|
+
* @param itemId - Fully qualified name of extension (\<publisher_id\>.\<extension_id\>)
|
|
63
|
+
* @param testCommerce - Parameter to test paid preview extension without making azure plans public
|
|
64
|
+
* @param isFreeOrTrialInstall - Parameter represents install or trial workflow (required for legacy install flows)
|
|
65
|
+
* @param isAccountOwner - Parameter represents whether user is owner or PCA of an account
|
|
66
|
+
* @param isLinked - Parameter represents whether account is linked with a subscription
|
|
67
|
+
* @param isConnectedServer - Parameter represents whether Buy operation should be evaluated
|
|
66
68
|
* @param isBuyOperationValid -
|
|
67
69
|
*/
|
|
68
70
|
ExtensionManagementRestClient.prototype.getAcquisitionOptions = function (itemId, testCommerce, isFreeOrTrialInstall, isAccountOwner, isLinked, isConnectedServer, isBuyOperationValid) {
|
|
@@ -28,18 +28,20 @@ export declare class FileContainerRestClient extends RestClientBase {
|
|
|
28
28
|
*/
|
|
29
29
|
getContainers(scope?: string, artifactUris?: string): Promise<FileContainer.FileContainer[]>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
31
|
+
* Gets the specified file container object in a format dependent upon the given parameters or HTTP Accept request header
|
|
32
|
+
*
|
|
33
|
+
* @param containerId - The requested container Id
|
|
34
|
+
* @param scope - A guid representing the scope of the container. This is often the project id.
|
|
35
|
+
* @param itemPath - The path to the item of interest
|
|
36
|
+
* @param metadata - If true, this overrides any specified format parameter or HTTP Accept request header to provide non-recursive information for the given itemPath
|
|
37
|
+
* @param format - If specified, this overrides the HTTP Accept request header to return either 'json' or 'zip'. If $format is specified, then api-version should also be specified as a query parameter.
|
|
38
|
+
* @param downloadFileName - If specified and returning other than JSON format, then this download name will be used (else defaults to itemPath)
|
|
37
39
|
* @param includeDownloadTickets -
|
|
38
|
-
* @param isShallow -
|
|
39
|
-
* @param ignoreRequestedMediaType -
|
|
40
|
+
* @param isShallow - If true, returns only immediate children(files & folders) for the given itemPath. False will return all items recursively within itemPath.
|
|
41
|
+
* @param ignoreRequestedMediaType - Set to true to ignore the HTTP Accept request header. Default is false.
|
|
40
42
|
* @param includeBlobMetadata -
|
|
41
|
-
* @param saveAbsolutePath -
|
|
42
|
-
* @param preferRedirect -
|
|
43
|
+
* @param saveAbsolutePath - Set to false to not save the absolute path to the specified directory of the artifact in the returned archive. Works only for artifact directories. Default is true.
|
|
44
|
+
* @param preferRedirect - Set to true to get the redirect response which leads to the stream with content. Default is false.
|
|
43
45
|
*/
|
|
44
46
|
getItems(containerId: number, scope?: string, itemPath?: string, metadata?: boolean, format?: string, downloadFileName?: string, includeDownloadTickets?: boolean, isShallow?: boolean, ignoreRequestedMediaType?: boolean, includeBlobMetadata?: boolean, saveAbsolutePath?: boolean, preferRedirect?: boolean): Promise<FileContainer.FileContainerItem[]>;
|
|
45
47
|
}
|
|
@@ -133,18 +133,20 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @param
|
|
139
|
-
* @param
|
|
140
|
-
* @param
|
|
141
|
-
* @param
|
|
136
|
+
* Gets the specified file container object in a format dependent upon the given parameters or HTTP Accept request header
|
|
137
|
+
*
|
|
138
|
+
* @param containerId - The requested container Id
|
|
139
|
+
* @param scope - A guid representing the scope of the container. This is often the project id.
|
|
140
|
+
* @param itemPath - The path to the item of interest
|
|
141
|
+
* @param metadata - If true, this overrides any specified format parameter or HTTP Accept request header to provide non-recursive information for the given itemPath
|
|
142
|
+
* @param format - If specified, this overrides the HTTP Accept request header to return either 'json' or 'zip'. If $format is specified, then api-version should also be specified as a query parameter.
|
|
143
|
+
* @param downloadFileName - If specified and returning other than JSON format, then this download name will be used (else defaults to itemPath)
|
|
142
144
|
* @param includeDownloadTickets -
|
|
143
|
-
* @param isShallow -
|
|
144
|
-
* @param ignoreRequestedMediaType -
|
|
145
|
+
* @param isShallow - If true, returns only immediate children(files & folders) for the given itemPath. False will return all items recursively within itemPath.
|
|
146
|
+
* @param ignoreRequestedMediaType - Set to true to ignore the HTTP Accept request header. Default is false.
|
|
145
147
|
* @param includeBlobMetadata -
|
|
146
|
-
* @param saveAbsolutePath -
|
|
147
|
-
* @param preferRedirect -
|
|
148
|
+
* @param saveAbsolutePath - Set to false to not save the absolute path to the specified directory of the artifact in the returned archive. Works only for artifact directories. Default is true.
|
|
149
|
+
* @param preferRedirect - Set to true to get the redirect response which leads to the stream with content. Default is false.
|
|
148
150
|
*/
|
|
149
151
|
FileContainerRestClient.prototype.getItems = function (containerId, scope, itemPath, metadata, format, downloadFileName, includeDownloadTickets, isShallow, ignoreRequestedMediaType, includeBlobMetadata, saveAbsolutePath, preferRedirect) {
|
|
150
152
|
return __awaiter(this, void 0, void 0, function () {
|
package/Gallery/Gallery.d.ts
CHANGED
|
@@ -245,6 +245,9 @@ export interface CustomerSupportRequest {
|
|
|
245
245
|
* Reason for support request
|
|
246
246
|
*/
|
|
247
247
|
reason: string;
|
|
248
|
+
/**
|
|
249
|
+
* ReCaptcha Token
|
|
250
|
+
*/
|
|
248
251
|
reCaptchaToken: string;
|
|
249
252
|
/**
|
|
250
253
|
* VSID of the user making the support request
|
|
@@ -450,6 +453,9 @@ export interface ExtensionEvent {
|
|
|
450
453
|
* Id which identifies each data point uniquely
|
|
451
454
|
*/
|
|
452
455
|
id: number;
|
|
456
|
+
/**
|
|
457
|
+
* Generic properties container which stores the data related to each event. For well known events like uninstall, install etc. We expect the Properties object to be a List\<UninstallProperties\>, List\<InstallProperties\>
|
|
458
|
+
*/
|
|
453
459
|
properties: any;
|
|
454
460
|
/**
|
|
455
461
|
* Timestamp of when the event occurred
|
|
@@ -804,20 +810,7 @@ export declare enum ExtensionQueryFlags {
|
|
|
804
810
|
/**
|
|
805
811
|
* AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
|
|
806
812
|
*/
|
|
807
|
-
AllAttributes = 16863
|
|
808
|
-
/**
|
|
809
|
-
* Excluding unpublished extensions from acquisition flow. The flag indicates whether an extension is unpublished or locked.
|
|
810
|
-
*/
|
|
811
|
-
ExcludeUnpublished1 = 4356,
|
|
812
|
-
ExcludeUnpublished2 = 4372,
|
|
813
|
-
ExcludeUnpublished3 = 6404,
|
|
814
|
-
ExcludeUnpublished4 = 6420,
|
|
815
|
-
ExcludeUnpublished5 = 8196,
|
|
816
|
-
ExcludeUnpublished6 = 20740,
|
|
817
|
-
ExcludeUnpublished7 = 20756,
|
|
818
|
-
ExcludeUnpublished8 = 22788,
|
|
819
|
-
ExcludeUnpublished9 = 22804,
|
|
820
|
-
ExcludeUnpublished10 = 37124
|
|
813
|
+
AllAttributes = 16863
|
|
821
814
|
}
|
|
822
815
|
/**
|
|
823
816
|
* This is the set of extensions that matched a supplied query through the filters given.
|
|
@@ -890,6 +883,9 @@ export declare enum ExtensionVersionFlags {
|
|
|
890
883
|
* One condition in a QueryFilter.
|
|
891
884
|
*/
|
|
892
885
|
export interface FilterCriteria {
|
|
886
|
+
/**
|
|
887
|
+
* The FilterType defines how the filters are to be applied to the extensions. See the documentation on the filter type to understand how the filters are matched.
|
|
888
|
+
*/
|
|
893
889
|
filterType: number;
|
|
894
890
|
/**
|
|
895
891
|
* The value used in the match based on the filter type.
|
|
@@ -1510,6 +1506,9 @@ export interface Review {
|
|
|
1510
1506
|
* Flag for soft deletion
|
|
1511
1507
|
*/
|
|
1512
1508
|
isDeleted: boolean;
|
|
1509
|
+
/**
|
|
1510
|
+
* Flag for Ignoring Review from average rating calculation
|
|
1511
|
+
*/
|
|
1513
1512
|
isIgnored: boolean;
|
|
1514
1513
|
/**
|
|
1515
1514
|
* Version of the product for which review was submitted
|
package/Gallery/Gallery.js
CHANGED
|
@@ -320,19 +320,6 @@ define(["require", "exports"], function (require, exports) {
|
|
|
320
320
|
* AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
|
|
321
321
|
*/
|
|
322
322
|
ExtensionQueryFlags[ExtensionQueryFlags["AllAttributes"] = 16863] = "AllAttributes";
|
|
323
|
-
/**
|
|
324
|
-
* Excluding unpublished extensions from acquisition flow. The flag indicates whether an extension is unpublished or locked.
|
|
325
|
-
*/
|
|
326
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished1"] = 4356] = "ExcludeUnpublished1";
|
|
327
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished2"] = 4372] = "ExcludeUnpublished2";
|
|
328
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished3"] = 6404] = "ExcludeUnpublished3";
|
|
329
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished4"] = 6420] = "ExcludeUnpublished4";
|
|
330
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished5"] = 8196] = "ExcludeUnpublished5";
|
|
331
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished6"] = 20740] = "ExcludeUnpublished6";
|
|
332
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished7"] = 20756] = "ExcludeUnpublished7";
|
|
333
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished8"] = 22788] = "ExcludeUnpublished8";
|
|
334
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished9"] = 22804] = "ExcludeUnpublished9";
|
|
335
|
-
ExtensionQueryFlags[ExtensionQueryFlags["ExcludeUnpublished10"] = 37124] = "ExcludeUnpublished10";
|
|
336
323
|
})(ExtensionQueryFlags = exports.ExtensionQueryFlags || (exports.ExtensionQueryFlags = {}));
|
|
337
324
|
var ExtensionStatisticOperation;
|
|
338
325
|
(function (ExtensionStatisticOperation) {
|
package/Gallery/Gallery.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Me=1]="Me",e[e.All=2]="All"}(i.AcquisitionAssignmentType||(i.AcquisitionAssignmentType={}));!function(e){e[e.Disallow=0]="Disallow",e[e.Allow=1]="Allow",e[e.Completed=3]="Completed"}(i.AcquisitionOperationState||(i.AcquisitionOperationState={}));!function(e){e[e.Get=0]="Get",e[e.Install=1]="Install",e[e.Buy=2]="Buy",e[e.Try=3]="Try",e[e.Request=4]="Request",e[e.None=5]="None",e[e.PurchaseRequest=6]="PurchaseRequest"}(i.AcquisitionOperationType||(i.AcquisitionOperationType={}));!function(e){e[e.General=1]="General",e[e.Abusive=2]="Abusive",e[e.Spam=4]="Spam"}(i.ConcernCategory||(i.ConcernCategory={}));!function(e){e[e.Publish=1]="Publish",e[e.Cancel=2]="Cancel"}(i.DraftPatchOperation||(i.DraftPatchOperation={}));!function(e){e[e.Unpublished=1]="Unpublished",e[e.Published=2]="Published",e[e.Cancelled=3]="Cancelled",e[e.Error=4]="Error"}(i.DraftStateType||(i.DraftStateType={}));!function(e){e[e.Exe=1]="Exe",e[e.Msi=2]="Msi",e[e.Vsix=3]="Vsix",e[e.ReferralLink=4]="ReferralLink"}(i.ExtensionDeploymentTechnology||(i.ExtensionDeploymentTechnology={}));!function(e){e[e.Uninstall=1]="Uninstall",e[e.Install=2]="Install",e[e.Review=3]="Review",e[e.Acquisition=4]="Acquisition",e[e.Sales=5]="Sales",e[e.Other=999]="Other"}(i.ExtensionLifecycleEventType||(i.ExtensionLifecycleEventType={}));!function(e){e[e.None=0]="None",e[e.Private=1]="Private",e[e.Public=2]="Public",e[e.Preview=4]="Preview",e[e.Released=8]="Released",e[e.FirstParty=16]="FirstParty",e[e.All=31]="All"}(i.ExtensionPolicyFlags||(i.ExtensionPolicyFlags={}));!function(e){e[e.Tag=1]="Tag",e[e.DisplayName=2]="DisplayName",e[e.Private=3]="Private",e[e.Id=4]="Id",e[e.Category=5]="Category",e[e.ContributionType=6]="ContributionType",e[e.Name=7]="Name",e[e.InstallationTarget=8]="InstallationTarget",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.FeaturedInCategory=11]="FeaturedInCategory",e[e.ExcludeWithFlags=12]="ExcludeWithFlags",e[e.IncludeWithFlags=13]="IncludeWithFlags",e[e.Lcid=14]="Lcid",e[e.InstallationTargetVersion=15]="InstallationTargetVersion",e[e.InstallationTargetVersionRange=16]="InstallationTargetVersionRange",e[e.VsixMetadata=17]="VsixMetadata",e[e.PublisherName=18]="PublisherName",e[e.PublisherDisplayName=19]="PublisherDisplayName",e[e.IncludeWithPublisherFlags=20]="IncludeWithPublisherFlags",e[e.OrganizationSharedWith=21]="OrganizationSharedWith",e[e.ProductArchitecture=22]="ProductArchitecture",e[e.TargetPlatform=23]="TargetPlatform",e[e.ExtensionName=24]="ExtensionName"}(i.ExtensionQueryFilterType||(i.ExtensionQueryFilterType={}));!function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.UseFallbackAssetUri=1024]="UseFallbackAssetUri",e[e.IncludeMetadata=2048]="IncludeMetadata",e[e.IncludeMinimalPayloadForVsIde=4096]="IncludeMinimalPayloadForVsIde",e[e.IncludeLcids=8192]="IncludeLcids",e[e.IncludeSharedOrganizations=16384]="IncludeSharedOrganizations",e[e.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo",e[e.AllAttributes=16863]="AllAttributes"
|
|
1
|
+
define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Me=1]="Me",e[e.All=2]="All"}(i.AcquisitionAssignmentType||(i.AcquisitionAssignmentType={}));!function(e){e[e.Disallow=0]="Disallow",e[e.Allow=1]="Allow",e[e.Completed=3]="Completed"}(i.AcquisitionOperationState||(i.AcquisitionOperationState={}));!function(e){e[e.Get=0]="Get",e[e.Install=1]="Install",e[e.Buy=2]="Buy",e[e.Try=3]="Try",e[e.Request=4]="Request",e[e.None=5]="None",e[e.PurchaseRequest=6]="PurchaseRequest"}(i.AcquisitionOperationType||(i.AcquisitionOperationType={}));!function(e){e[e.General=1]="General",e[e.Abusive=2]="Abusive",e[e.Spam=4]="Spam"}(i.ConcernCategory||(i.ConcernCategory={}));!function(e){e[e.Publish=1]="Publish",e[e.Cancel=2]="Cancel"}(i.DraftPatchOperation||(i.DraftPatchOperation={}));!function(e){e[e.Unpublished=1]="Unpublished",e[e.Published=2]="Published",e[e.Cancelled=3]="Cancelled",e[e.Error=4]="Error"}(i.DraftStateType||(i.DraftStateType={}));!function(e){e[e.Exe=1]="Exe",e[e.Msi=2]="Msi",e[e.Vsix=3]="Vsix",e[e.ReferralLink=4]="ReferralLink"}(i.ExtensionDeploymentTechnology||(i.ExtensionDeploymentTechnology={}));!function(e){e[e.Uninstall=1]="Uninstall",e[e.Install=2]="Install",e[e.Review=3]="Review",e[e.Acquisition=4]="Acquisition",e[e.Sales=5]="Sales",e[e.Other=999]="Other"}(i.ExtensionLifecycleEventType||(i.ExtensionLifecycleEventType={}));!function(e){e[e.None=0]="None",e[e.Private=1]="Private",e[e.Public=2]="Public",e[e.Preview=4]="Preview",e[e.Released=8]="Released",e[e.FirstParty=16]="FirstParty",e[e.All=31]="All"}(i.ExtensionPolicyFlags||(i.ExtensionPolicyFlags={}));!function(e){e[e.Tag=1]="Tag",e[e.DisplayName=2]="DisplayName",e[e.Private=3]="Private",e[e.Id=4]="Id",e[e.Category=5]="Category",e[e.ContributionType=6]="ContributionType",e[e.Name=7]="Name",e[e.InstallationTarget=8]="InstallationTarget",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.FeaturedInCategory=11]="FeaturedInCategory",e[e.ExcludeWithFlags=12]="ExcludeWithFlags",e[e.IncludeWithFlags=13]="IncludeWithFlags",e[e.Lcid=14]="Lcid",e[e.InstallationTargetVersion=15]="InstallationTargetVersion",e[e.InstallationTargetVersionRange=16]="InstallationTargetVersionRange",e[e.VsixMetadata=17]="VsixMetadata",e[e.PublisherName=18]="PublisherName",e[e.PublisherDisplayName=19]="PublisherDisplayName",e[e.IncludeWithPublisherFlags=20]="IncludeWithPublisherFlags",e[e.OrganizationSharedWith=21]="OrganizationSharedWith",e[e.ProductArchitecture=22]="ProductArchitecture",e[e.TargetPlatform=23]="TargetPlatform",e[e.ExtensionName=24]="ExtensionName"}(i.ExtensionQueryFilterType||(i.ExtensionQueryFilterType={}));!function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.UseFallbackAssetUri=1024]="UseFallbackAssetUri",e[e.IncludeMetadata=2048]="IncludeMetadata",e[e.IncludeMinimalPayloadForVsIde=4096]="IncludeMinimalPayloadForVsIde",e[e.IncludeLcids=8192]="IncludeLcids",e[e.IncludeSharedOrganizations=16384]="IncludeSharedOrganizations",e[e.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo",e[e.AllAttributes=16863]="AllAttributes"}(i.ExtensionQueryFlags||(i.ExtensionQueryFlags={}));!function(e){e[e.None=0]="None",e[e.Set=1]="Set",e[e.Increment=2]="Increment",e[e.Decrement=3]="Decrement",e[e.Delete=4]="Delete"}(i.ExtensionStatisticOperation||(i.ExtensionStatisticOperation={}));!function(e){e[e.Daily=1]="Daily"}(i.ExtensionStatsAggregateType||(i.ExtensionStatsAggregateType={}));!function(e){e[e.None=0]="None",e[e.Validated=1]="Validated"}(i.ExtensionVersionFlags||(i.ExtensionVersionFlags={}));!function(e){e[e.ReviewNotification=1]="ReviewNotification",e[e.QnaNotification=2]="QnaNotification",e[e.CustomerContactNotification=3]="CustomerContactNotification",e[e.PublisherMemberUpdateNotification=4]="PublisherMemberUpdateNotification"}(i.NotificationTemplateType||(i.NotificationTemplateType={}));!function(e){e[e.Backward=1]="Backward",e[e.Forward=2]="Forward"}(i.PagingDirection||(i.PagingDirection={}));!function(e){e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.BuiltIn=2]="BuiltIn",e[e.Validated=4]="Validated",e[e.Trusted=8]="Trusted",e[e.Paid=16]="Paid",e[e.Public=256]="Public",e[e.MultiVersion=512]="MultiVersion",e[e.System=1024]="System",e[e.Preview=2048]="Preview",e[e.Unpublished=4096]="Unpublished",e[e.Trial=8192]="Trial",e[e.Locked=16384]="Locked",e[e.Hidden=32768]="Hidden"}(i.PublishedExtensionFlags||(i.PublishedExtensionFlags={}));!function(e){e[e.UnChanged=1073741824]="UnChanged",e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.Verified=2]="Verified",e[e.Certified=4]="Certified",e[e.ServiceFlags=7]="ServiceFlags"}(i.PublisherFlags||(i.PublisherFlags={}));!function(e){e[e.Read=1]="Read",e[e.UpdateExtension=2]="UpdateExtension",e[e.CreatePublisher=4]="CreatePublisher",e[e.PublishExtension=8]="PublishExtension",e[e.Admin=16]="Admin",e[e.TrustedPartner=32]="TrustedPartner",e[e.PrivateRead=64]="PrivateRead",e[e.DeleteExtension=128]="DeleteExtension",e[e.EditSettings=256]="EditSettings",e[e.ViewPermissions=512]="ViewPermissions",e[e.ManagePermissions=1024]="ManagePermissions",e[e.DeletePublisher=2048]="DeletePublisher"}(i.PublisherPermissions||(i.PublisherPermissions={}));!function(e){e[e.None=0]="None",e[e.IncludeExtensions=1]="IncludeExtensions",e[e.IncludeEmailAddress=2]="IncludeEmailAddress"}(i.PublisherQueryFlags||(i.PublisherQueryFlags={}));!function(e){e[e.Assigned=1]="Assigned",e[e.Inherited=2]="Inherited"}(i.PublisherRoleAccess||(i.PublisherRoleAccess={}));!function(e){e[e.None=0]="None",e[e.VerificationPending=1]="VerificationPending",e[e.CertificationPending=2]="CertificationPending",e[e.CertificationRejected=4]="CertificationRejected",e[e.CertificationRevoked=8]="CertificationRevoked"}(i.PublisherState||(i.PublisherState={}));!function(e){e[e.None=0]="None",e[e.UserEditable=1]="UserEditable",e[e.PublisherCreated=2]="PublisherCreated"}(i.QnAItemStatus||(i.QnAItemStatus={}));!function(e){e[e.Completed=0]="Completed",e[e.Failed=1]="Failed",e[e.Inprogress=2]="Inprogress",e[e.Skipped=3]="Skipped"}(i.RestApiResponseStatus||(i.RestApiResponseStatus={}));!function(e){e[e.Create=1]="Create",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(i.ReviewEventOperation||(i.ReviewEventOperation={}));!function(e){e[e.None=0]="None",e[e.FilterEmptyReviews=1]="FilterEmptyReviews",e[e.FilterEmptyUserNames=2]="FilterEmptyUserNames"}(i.ReviewFilterOptions||(i.ReviewFilterOptions={}));!function(e){e[e.FlagReview=1]="FlagReview",e[e.UpdateReview=2]="UpdateReview",e[e.ReplyToReview=3]="ReplyToReview",e[e.AdminResponseForReview=4]="AdminResponseForReview",e[e.DeleteAdminReply=5]="DeleteAdminReply",e[e.DeletePublisherReply=6]="DeletePublisherReply"}(i.ReviewPatchOperation||(i.ReviewPatchOperation={}));!function(e){e[e.Review=1]="Review",e[e.PublisherReply=2]="PublisherReply",e[e.AdminReply=3]="AdminReply"}(i.ReviewResourceType||(i.ReviewResourceType={}));!function(e){e[e.Relevance=0]="Relevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.Publisher=3]="Publisher",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.TrendingDaily=7]="TrendingDaily",e[e.TrendingWeekly=8]="TrendingWeekly",e[e.TrendingMonthly=9]="TrendingMonthly",e[e.ReleaseDate=10]="ReleaseDate",e[e.Author=11]="Author",e[e.WeightedRating=12]="WeightedRating"}(i.SortByType||(i.SortByType={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(i.SortOrderType||(i.SortOrderType={}));!function(e){e[e.Install=1]="Install",e[e.Update=2]="Update",e[e.Uninstall=3]="Uninstall"}(i.VSCodeWebExtensionStatisicsType||(i.VSCodeWebExtensionStatisicsType={}))});
|
|
@@ -286,7 +286,9 @@ export declare class GalleryRestClient extends RestClientBase {
|
|
|
286
286
|
*/
|
|
287
287
|
unshareExtensionWithHost(publisherName: string, extensionName: string, hostType: string, hostName: string): Promise<void>;
|
|
288
288
|
/**
|
|
289
|
-
*
|
|
289
|
+
* Rest end point to validate if an Azure publisher owns an extension for 3rd party commerce scenario. Azure only supports POST operations and the above signature is not typical of the REST operations. http://sharepoint/sites/AzureUX/_layouts/15/WopiFrame2.aspx?sourcedoc=\{A793D31E-6DC6-4174-8FA3-DE3F82B51642\}&file=Data%20Market%20Partner%20integration%20with%20Marketplace%20service.docx&action=default
|
|
290
|
+
*
|
|
291
|
+
* @param azureRestApiRequestModel - All the parameters are sent in the request body
|
|
290
292
|
*/
|
|
291
293
|
extensionValidator(azureRestApiRequestModel: Gallery.AzureRestApiRequestModel): Promise<void>;
|
|
292
294
|
/**
|
|
@@ -380,6 +382,15 @@ export declare class GalleryRestClient extends RestClientBase {
|
|
|
380
382
|
* @param limitToCallerIdentityDomain - Should cross tenant addtions be allowed or not.
|
|
381
383
|
*/
|
|
382
384
|
updatePublisherMembers(roleAssignments: Gallery.PublisherUserRoleAssignmentRef[], publisherName: string, limitToCallerIdentityDomain?: boolean): Promise<Gallery.PublisherRoleAssignment[]>;
|
|
385
|
+
/**
|
|
386
|
+
* @param content - Content to upload
|
|
387
|
+
* @param publisherName -
|
|
388
|
+
* @param extensionName -
|
|
389
|
+
* @param extensionType -
|
|
390
|
+
* @param reCaptchaToken -
|
|
391
|
+
* @param bypassScopeCheck -
|
|
392
|
+
*/
|
|
393
|
+
publishExtensionWithPublisherSignature(content: any, publisherName: string, extensionName: string, extensionType?: string, reCaptchaToken?: string, bypassScopeCheck?: boolean): Promise<Gallery.PublishedExtension>;
|
|
383
394
|
/**
|
|
384
395
|
* @param publisherName -
|
|
385
396
|
*/
|