azure-devops-extension-api 5.271.0 → 5.272.1
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 +7 -0
- package/Alert/AlertClient.d.ts +17 -0
- package/Alert/AlertClient.js +46 -0
- package/Alert/AlertClient.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +1 -2
- package/Gallery/GalleryClient.js +2 -4
- package/Gallery/GalleryClient.min.js +1 -1
- package/Management/ManagementClient.d.ts +21 -0
- package/Management/ManagementClient.js +65 -1
- package/Management/ManagementClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +1 -0
- package/ServiceHooks/ServiceHooks.d.ts +4 -0
- package/Tfvc/Tfvc.d.ts +43 -0
- package/Tfvc/Tfvc.js +46 -1
- package/Tfvc/Tfvc.min.js +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0513191939658.json +1 -0
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +1 -1
- package/_manifest/spdx_2.2/manifest.cat +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.json +1 -1
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/_manifest/spdx_3.0/manifest.spdx.json +1 -1
- package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +1 -1
- package/esm/Alert/AlertClient.js +42 -0
- package/esm/Alert/AlertClient.min.js +1 -1
- package/esm/Gallery/GalleryClient.js +2 -4
- package/esm/Gallery/GalleryClient.min.js +1 -1
- package/esm/Management/ManagementClient.js +57 -1
- package/esm/Management/ManagementClient.min.js +1 -1
- package/esm/Tfvc/Tfvc.js +45 -0
- package/esm/Tfvc/Tfvc.min.js +1 -1
- package/index.d.ts +72 -0
- package/package.json +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0504231512019.json +0 -1
package/Alert/Alert.d.ts
CHANGED
|
@@ -387,6 +387,13 @@ export interface AnalysisResult {
|
|
|
387
387
|
result: Result;
|
|
388
388
|
state: State;
|
|
389
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* Represents an autofix request resource.
|
|
392
|
+
*/
|
|
393
|
+
export interface AutofixRequest {
|
|
394
|
+
createdDate: Date;
|
|
395
|
+
requestId: number;
|
|
396
|
+
}
|
|
390
397
|
export interface Branch {
|
|
391
398
|
branchId: number;
|
|
392
399
|
deletedDate: Date;
|
package/Alert/AlertClient.d.ts
CHANGED
|
@@ -71,6 +71,14 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
71
71
|
* @param alertType -
|
|
72
72
|
*/
|
|
73
73
|
getUxFilters(project: string, repository: string, alertType: Alert.AlertType): Promise<Alert.UxFilters>;
|
|
74
|
+
/**
|
|
75
|
+
* Create an autofix request for the specified alert.
|
|
76
|
+
*
|
|
77
|
+
* @param project - Project ID or project name
|
|
78
|
+
* @param alertId - The ID of the alert to create an autofix for.
|
|
79
|
+
* @param repository - The name or ID of the repository.
|
|
80
|
+
*/
|
|
81
|
+
createAutofixRequest(project: string, alertId: number, repository: string): Promise<Alert.AutofixRequest>;
|
|
74
82
|
/**
|
|
75
83
|
* Upload a SARIF to GitHub Code Scanning via a GitOps app.
|
|
76
84
|
*
|
|
@@ -144,6 +152,15 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
144
152
|
* @param adoPipelineId - The ID of the ADO pipeline whose analysis data should be cleaned up.
|
|
145
153
|
*/
|
|
146
154
|
deletePipelineAnalysis(project: string, repository: string, adoPipelineId: number): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Export alerts as a single SARIF file
|
|
157
|
+
*
|
|
158
|
+
* @param project - Project ID or project name
|
|
159
|
+
* @param repository - The name or ID of a repository
|
|
160
|
+
* @param alertIds - List of alert IDs to export
|
|
161
|
+
* @param branchName - The branch name of the target alerts. If not specified, the default branch will be used.
|
|
162
|
+
*/
|
|
163
|
+
exportSarif(project: string, repository: string, alertIds: number[], branchName?: string): Promise<any>;
|
|
147
164
|
/**
|
|
148
165
|
* Upload a Sarif containing security alerts
|
|
149
166
|
*
|
package/Alert/AlertClient.js
CHANGED
|
@@ -209,6 +209,27 @@ class AlertRestClient extends RestClientBase_1.RestClientBase {
|
|
|
209
209
|
});
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* Create an autofix request for the specified alert.
|
|
214
|
+
*
|
|
215
|
+
* @param project - Project ID or project name
|
|
216
|
+
* @param alertId - The ID of the alert to create an autofix for.
|
|
217
|
+
* @param repository - The name or ID of the repository.
|
|
218
|
+
*/
|
|
219
|
+
createAutofixRequest(project, alertId, repository) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
return this.beginRequest({
|
|
222
|
+
apiVersion: "7.2-preview.1",
|
|
223
|
+
method: "POST",
|
|
224
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Autofix",
|
|
225
|
+
routeValues: {
|
|
226
|
+
project: project,
|
|
227
|
+
alertId: alertId,
|
|
228
|
+
repository: repository
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
}
|
|
212
233
|
/**
|
|
213
234
|
* Upload a SARIF to GitHub Code Scanning via a GitOps app.
|
|
214
235
|
*
|
|
@@ -407,6 +428,31 @@ class AlertRestClient extends RestClientBase_1.RestClientBase {
|
|
|
407
428
|
});
|
|
408
429
|
});
|
|
409
430
|
}
|
|
431
|
+
/**
|
|
432
|
+
* Export alerts as a single SARIF file
|
|
433
|
+
*
|
|
434
|
+
* @param project - Project ID or project name
|
|
435
|
+
* @param repository - The name or ID of a repository
|
|
436
|
+
* @param alertIds - List of alert IDs to export
|
|
437
|
+
* @param branchName - The branch name of the target alerts. If not specified, the default branch will be used.
|
|
438
|
+
*/
|
|
439
|
+
exportSarif(project, repository, alertIds, branchName) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
const queryValues = {
|
|
442
|
+
alertIds: alertIds,
|
|
443
|
+
branchName: branchName
|
|
444
|
+
};
|
|
445
|
+
return this.beginRequest({
|
|
446
|
+
apiVersion: "7.2-preview.1",
|
|
447
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/sarifs",
|
|
448
|
+
routeValues: {
|
|
449
|
+
project: project,
|
|
450
|
+
repository: repository
|
|
451
|
+
},
|
|
452
|
+
queryParams: queryValues
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
}
|
|
410
456
|
/**
|
|
411
457
|
* Upload a Sarif containing security alerts
|
|
412
458
|
*
|
package/Alert/AlertClient.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,s){function a(e){try{p(i.next(e))}catch(e){s(e)}}function n(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){e.done?o(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(a,n)}p((i=i.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AlertRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase"),Serialization_1=require("../Common/Util/Serialization");class AlertRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}getAlert(e,t,r,i,o){return __awaiter(this,void 0,void 0,function*(){const s={ref:i,expand:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:s})})}getAlerts(e,t,r,i,o,s,a){return __awaiter(this,void 0,void 0,function*(){const n={top:r,orderBy:i,criteria:o,expand:s,continuationToken:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:n,returnRawResponse:!0}).then(e=>__awaiter(this,void 0,void 0,function*(){const t=yield e.text().then(Serialization_1.deserializeVssJsonObject);return t.continuationToken=e.headers.get("x-ms-continuationtoken"),t}))})}getAlertSarif(e,t,r,i,o){return __awaiter(this,void 0,void 0,function*(){const s={ref:i,expand:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:s})})}updateAlert(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:t,alertId:r,repository:i},body:e})})}getAlertsByIds(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/AlertsBatch",routeValues:{project:t,repository:r},body:e})})}getBranches(e,t,r,i,o,s,a){return __awaiter(this,void 0,void 0,function*(){const n={alertType:r,continuationToken:i,branchNameContains:o,top:s,includePullRequestBranches:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:n})})}getUxFilters(e,t,r){return __awaiter(this,void 0,void 0,function*(){const i={alertType:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:i})})}uploadSarifToGitHub(e,t,r,i,o){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/github/{hostname}/{owner}/{repo}/sarifs",routeValues:{project:t,hostname:r,owner:i,repo:o},customHeaders:{"Content-Type":"application/octet-stream"},body:e})})}getAlertInstances(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){const o={ref:i};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:o})})}createLegalReview(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){const o={alertId:r,ref:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:e,repository:t},queryParams:o})})}updateAlertsMetadata(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})})}getAlertMetadata(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/metadata",routeValues:{project:e,alertId:t,repository:r}})})}getAlertMetadataBatch(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/MetadataBatch",routeValues:{project:t,repository:r},body:e})})}getOrgLevelAlertsByIds(e){return __awaiter(this,void 0,void 0,function*(){const t={alertIds:e&&e.join(",")};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})})}deleteAllPipelineAnalyses(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/pipelineAnalyses",routeValues:{project:e,repository:t}})})}deletePipelineAnalysis(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/pipelineAnalysis/{adoPipelineId}",routeValues:{project:e,repository:t,adoPipelineId:r}})})}uploadSarif(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){return 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","X-AdvSec-NotificationSarif":i},body:e})})}getSarif(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})})}uploadOrgSarif(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",customHeaders:{"Content-Type":"application/octet-stream"},body:e})})}getValidityData(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})})}initiateValidation(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})})}}exports.AlertRestClient=AlertRestClient;
|
|
1
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,s){function a(e){try{p(i.next(e))}catch(e){s(e)}}function n(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){e.done?o(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(a,n)}p((i=i.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AlertRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase"),Serialization_1=require("../Common/Util/Serialization");class AlertRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}getAlert(e,t,r,i,o){return __awaiter(this,void 0,void 0,function*(){const s={ref:i,expand:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:s})})}getAlerts(e,t,r,i,o,s,a){return __awaiter(this,void 0,void 0,function*(){const n={top:r,orderBy:i,criteria:o,expand:s,continuationToken:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:n,returnRawResponse:!0}).then(e=>__awaiter(this,void 0,void 0,function*(){const t=yield e.text().then(Serialization_1.deserializeVssJsonObject);return t.continuationToken=e.headers.get("x-ms-continuationtoken"),t}))})}getAlertSarif(e,t,r,i,o){return __awaiter(this,void 0,void 0,function*(){const s={ref:i,expand:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:s})})}updateAlert(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:t,alertId:r,repository:i},body:e})})}getAlertsByIds(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/AlertsBatch",routeValues:{project:t,repository:r},body:e})})}getBranches(e,t,r,i,o,s,a){return __awaiter(this,void 0,void 0,function*(){const n={alertType:r,continuationToken:i,branchNameContains:o,top:s,includePullRequestBranches:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:n})})}getUxFilters(e,t,r){return __awaiter(this,void 0,void 0,function*(){const i={alertType:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:i})})}createAutofixRequest(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Autofix",routeValues:{project:e,alertId:t,repository:r}})})}uploadSarifToGitHub(e,t,r,i,o){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/github/{hostname}/{owner}/{repo}/sarifs",routeValues:{project:t,hostname:r,owner:i,repo:o},customHeaders:{"Content-Type":"application/octet-stream"},body:e})})}getAlertInstances(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){const o={ref:i};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:o})})}createLegalReview(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){const o={alertId:r,ref:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:e,repository:t},queryParams:o})})}updateAlertsMetadata(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})})}getAlertMetadata(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/metadata",routeValues:{project:e,alertId:t,repository:r}})})}getAlertMetadataBatch(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/MetadataBatch",routeValues:{project:t,repository:r},body:e})})}getOrgLevelAlertsByIds(e){return __awaiter(this,void 0,void 0,function*(){const t={alertIds:e&&e.join(",")};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})})}deleteAllPipelineAnalyses(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/pipelineAnalyses",routeValues:{project:e,repository:t}})})}deletePipelineAnalysis(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/pipelineAnalysis/{adoPipelineId}",routeValues:{project:e,repository:t,adoPipelineId:r}})})}exportSarif(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){const o={alertIds:r,branchName:i};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/sarifs",routeValues:{project:e,repository:t},queryParams:o})})}uploadSarif(e,t,r,i){return __awaiter(this,void 0,void 0,function*(){return 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","X-AdvSec-NotificationSarif":i},body:e})})}getSarif(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})})}uploadOrgSarif(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",customHeaders:{"Content-Type":"application/octet-stream"},body:e})})}getValidityData(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})})}initiateValidation(e,t,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})})}}exports.AlertRestClient=AlertRestClient;
|
|
@@ -607,7 +607,6 @@ export declare class GalleryRestClient extends RestClientBase {
|
|
|
607
607
|
* @param arch - Architecture filter (e.g., "amd64", "arm64", "x86").
|
|
608
608
|
* @param versionRange - Installation target version range formatted as "\{min\}-\{max\}". Either bound may be omitted (e.g., "17.0-" or "-18.4").
|
|
609
609
|
* @param sku - VS SKU filter (e.g., "VisualStudio"). Defaults to broad match.
|
|
610
|
-
* @param flags - Bitwise response flags controlling the shape of the response data.
|
|
611
610
|
*/
|
|
612
|
-
queryExtensionByVsixId(vsixId: string, arch?: string, versionRange?: string, sku?: string
|
|
611
|
+
queryExtensionByVsixId(vsixId: string, arch?: string, versionRange?: string, sku?: string): Promise<Gallery.ExtensionQueryResult>;
|
|
613
612
|
}
|
package/Gallery/GalleryClient.js
CHANGED
|
@@ -1859,15 +1859,13 @@ class GalleryRestClient extends RestClientBase_1.RestClientBase {
|
|
|
1859
1859
|
* @param arch - Architecture filter (e.g., "amd64", "arm64", "x86").
|
|
1860
1860
|
* @param versionRange - Installation target version range formatted as "\{min\}-\{max\}". Either bound may be omitted (e.g., "17.0-" or "-18.4").
|
|
1861
1861
|
* @param sku - VS SKU filter (e.g., "VisualStudio"). Defaults to broad match.
|
|
1862
|
-
* @param flags - Bitwise response flags controlling the shape of the response data.
|
|
1863
1862
|
*/
|
|
1864
|
-
queryExtensionByVsixId(vsixId, arch, versionRange, sku
|
|
1863
|
+
queryExtensionByVsixId(vsixId, arch, versionRange, sku) {
|
|
1865
1864
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1866
1865
|
const queryValues = {
|
|
1867
1866
|
arch: arch,
|
|
1868
1867
|
versionRange: versionRange,
|
|
1869
|
-
sku: sku
|
|
1870
|
-
flags: flags
|
|
1868
|
+
sku: sku
|
|
1871
1869
|
};
|
|
1872
1870
|
return this.beginRequest({
|
|
1873
1871
|
apiVersion: "7.2-preview.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))(function(r,a){function n(e){try{u(s.next(e))}catch(e){a(e)}}function o(e){try{u(s.throw(e))}catch(e){a(e)}}function u(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(n,o)}u((s=s.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.GalleryRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase");class GalleryRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}shareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}unshareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}shareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}unshareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}getAcquisitionOptions(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={installationTarget:t,testCommerce:i,isFreeOrTrialInstall:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/acquisitionoptions/{itemId}",routeValues:{itemId:e},queryParams:r})})}requestAcquisition(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/acquisitionrequests",body:e})})}getAssetByName(e,t,i,s,r,a,n){return __awaiter(this,void 0,void 0,function*(){const o={accountToken:r,acceptDefault:a};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assetbyname/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":n},queryParams:o})})}getAsset(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/extensions/{extensionId}/{version}/assets/{assetType}",routeValues:{extensionId:e,version:t,assetType:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetAuthenticated(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assets/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}associateAzurePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={azurePublisherId:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e},queryParams:i})})}queryAssociatedAzurePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e}})})}getCategories(e){return __awaiter(this,void 0,void 0,function*(){const t={languages:e};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories",queryParams:t})})}getCategoryDetails(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={languages:t,product:i};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories/{categoryName}",routeValues:{categoryName:e},queryParams:s})})}getCategoryTree(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={lcid:i,source:s,productVersion:r,skus:a,subSkus:n,productArchitecture:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/{categoryId}",routeValues:{product:e,categoryId:t},queryParams:u})})}getRootCategories(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={lcid:t,source:i,productVersion:s,skus:r,subSkus:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/root",routeValues:{product:e},queryParams:n})})}getCertificate(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/certificates/{version}",routeValues:{publisherName:e,extensionName:t,version:i}})})}createSupportRequest(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/support",body:e})})}createDraftForEditExtension(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:e,extensionName:t}})})}performEditExtensionDraftOperation(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},body:e})})}updatePayloadInDraftForEditExtension(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":r},body:e,isRawData:!0})})}addAssetForEditExtensionDraft(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,extensionName:i,draftId:s,assetType:r},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}createDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileProduct":i,"X-Market-UploadFileName":s},body:e,isRawData:!0})})}performNewExtensionDraftOperation(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},body:e})})}updatePayloadInDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},body:e,isRawData:!0})})}addAssetForNewExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,draftId:i,assetType:s},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}getAssetFromEditExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionName:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i},queryParams:r})})}getAssetFromNewExtensionDraft(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i}})})}getExtensionEvents(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,afterDate:s,include:r,includeProperty:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/events",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}publishExtensionEvents(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/events",body:e})})}queryExtensions(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={accountToken:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/extensionquery",customHeaders:{"X-Market-AccountToken":i},queryParams:s,body:e})})}createExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={extensionType:t,reCaptchaToken:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}",customHeaders:{"Content-Type":"application/octet-stream"},queryParams:s,body:e,isRawData:!0})})}deleteExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={version:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}getExtensionById(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:t,flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:s})})}updateExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={reCaptchaToken:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}createExtensionWithPublisher(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionType:i,reCaptchaToken:s};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:r,body:e,isRawData:!0})})}deleteExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}getExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={version:i,flags:s,accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}updateExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:n,body:e,isRawData:!0})})}updateExtensionProperties(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}shareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}unshareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}extensionValidator(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensionValidator",body:e})})}sendNotifications(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/notifications",body:e})})}getPackage(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/package",routeValues:{publisherName:e,extensionName:t,version:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetWithToken(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={accountToken:a,acceptDefault:n};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/privateasset/{assetToken}/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s,assetToken:r},customHeaders:{"X-Market-AccountToken":o},queryParams:u})})}deletePublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}getPublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}updatePublisherAsset(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={assetType:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},queryParams:r,body:e,isRawData:!0})})}fetchDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}verifyDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}queryPublishers(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publisherquery",body:e})})}createPublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",body:e})})}deletePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e}})})}getPublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={flags:t};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e},queryParams:i})})}updatePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},body:e})})}updatePublisherMembers(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={limitToCallerIdentityDomain:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},queryParams:s,body:e})})}publishExtensionWithPublisherSignature(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publishersignedextension/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"multipart/related"},queryParams:n,body:e,isRawData:!0})})}getPublisherWithoutToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publisherWithoutToken/{publisherName}",routeValues:{publisherName:e}})})}getQuestions(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={count:i,page:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/qna",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}reportQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/qna/{questionId}/concern",routeValues:{pubName:t,extName:i,questionId:s},body:e})})}createQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i},body:e})})}deleteQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:e,extensionName:t,questionId:i}})})}updateQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}createResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}deleteResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:e,extensionName:t,questionId:i,responseId:s}})})}updateResponse(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s,responseId:r},body:e})})}getExtensionReports(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,count:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/reports",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getReviews(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,filterOptions:s,beforeDate:r,afterDate:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/reviews",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}getReviewsSummary(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={beforeDate:i,afterDate:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{pubName}/extensions/{extName}/reviews/summary",routeValues:{pubName:e,extName:t},queryParams:r})})}createReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i},body:e})})}deleteReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:e,extName:t,reviewId:i}})})}updateReview(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i,reviewId:s},body:e})})}createCategory(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/categories",body:e})})}getGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:e,key:t}})})}setGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:t},body:e})})}generateKey(e,t){return __awaiter(this,void 0,void 0,function*(){const i={expireCurrentSeconds:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e},queryParams:i})})}getSigningKey(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e}})})}updateExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/statistics",routeValues:{publisherName:t,extensionName:i},body:e})})}getExtensionDailyStats(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,aggregate:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/stats",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getExtensionDailyStatsAnonymous(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i}})})}incrementExtensionDailyStat(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={statType:s,targetPlatform:r};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:a})})}getVerificationLog(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={targetPlatform:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/verificationlog",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:r})})}getVSCodeExtensionLatestVersion(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vscode/{publisherName}/{extensionName}/latest",routeValues:{publisherName:e,extensionName:t}})})}updateVSCodeWebExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/itemName/{itemName}/version/{version}/statType/{statType}/vscodewebextension",routeValues:{itemName:e,version:t,statType:i}})})}queryExtensionByVsixId(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={arch:t,versionRange:i,sku:s,flags:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vs/extensions/vsixId/{vsixId}",routeValues:{vsixId:e},queryParams:a})})}}exports.GalleryRestClient=GalleryRestClient,GalleryRestClient.RESOURCE_AREA_ID="69d21c00-f135-441b-b5ce-3626378e0819";
|
|
1
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))(function(r,a){function n(e){try{u(s.next(e))}catch(e){a(e)}}function o(e){try{u(s.throw(e))}catch(e){a(e)}}function u(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(n,o)}u((s=s.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.GalleryRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase");class GalleryRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}shareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}unshareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}shareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}unshareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}getAcquisitionOptions(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={installationTarget:t,testCommerce:i,isFreeOrTrialInstall:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/acquisitionoptions/{itemId}",routeValues:{itemId:e},queryParams:r})})}requestAcquisition(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/acquisitionrequests",body:e})})}getAssetByName(e,t,i,s,r,a,n){return __awaiter(this,void 0,void 0,function*(){const o={accountToken:r,acceptDefault:a};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assetbyname/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":n},queryParams:o})})}getAsset(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/extensions/{extensionId}/{version}/assets/{assetType}",routeValues:{extensionId:e,version:t,assetType:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetAuthenticated(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assets/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}associateAzurePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={azurePublisherId:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e},queryParams:i})})}queryAssociatedAzurePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e}})})}getCategories(e){return __awaiter(this,void 0,void 0,function*(){const t={languages:e};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories",queryParams:t})})}getCategoryDetails(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={languages:t,product:i};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories/{categoryName}",routeValues:{categoryName:e},queryParams:s})})}getCategoryTree(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={lcid:i,source:s,productVersion:r,skus:a,subSkus:n,productArchitecture:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/{categoryId}",routeValues:{product:e,categoryId:t},queryParams:u})})}getRootCategories(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={lcid:t,source:i,productVersion:s,skus:r,subSkus:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/root",routeValues:{product:e},queryParams:n})})}getCertificate(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/certificates/{version}",routeValues:{publisherName:e,extensionName:t,version:i}})})}createSupportRequest(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/support",body:e})})}createDraftForEditExtension(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:e,extensionName:t}})})}performEditExtensionDraftOperation(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},body:e})})}updatePayloadInDraftForEditExtension(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":r},body:e,isRawData:!0})})}addAssetForEditExtensionDraft(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,extensionName:i,draftId:s,assetType:r},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}createDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileProduct":i,"X-Market-UploadFileName":s},body:e,isRawData:!0})})}performNewExtensionDraftOperation(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},body:e})})}updatePayloadInDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},body:e,isRawData:!0})})}addAssetForNewExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,draftId:i,assetType:s},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}getAssetFromEditExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionName:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i},queryParams:r})})}getAssetFromNewExtensionDraft(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i}})})}getExtensionEvents(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,afterDate:s,include:r,includeProperty:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/events",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}publishExtensionEvents(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/events",body:e})})}queryExtensions(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={accountToken:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/extensionquery",customHeaders:{"X-Market-AccountToken":i},queryParams:s,body:e})})}createExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={extensionType:t,reCaptchaToken:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}",customHeaders:{"Content-Type":"application/octet-stream"},queryParams:s,body:e,isRawData:!0})})}deleteExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={version:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}getExtensionById(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:t,flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:s})})}updateExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={reCaptchaToken:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}createExtensionWithPublisher(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionType:i,reCaptchaToken:s};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:r,body:e,isRawData:!0})})}deleteExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}getExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={version:i,flags:s,accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}updateExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:n,body:e,isRawData:!0})})}updateExtensionProperties(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}shareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}unshareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}extensionValidator(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensionValidator",body:e})})}sendNotifications(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/notifications",body:e})})}getPackage(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/package",routeValues:{publisherName:e,extensionName:t,version:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetWithToken(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={accountToken:a,acceptDefault:n};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/privateasset/{assetToken}/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s,assetToken:r},customHeaders:{"X-Market-AccountToken":o},queryParams:u})})}deletePublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}getPublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}updatePublisherAsset(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={assetType:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},queryParams:r,body:e,isRawData:!0})})}fetchDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}verifyDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}queryPublishers(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publisherquery",body:e})})}createPublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",body:e})})}deletePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e}})})}getPublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={flags:t};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e},queryParams:i})})}updatePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},body:e})})}updatePublisherMembers(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={limitToCallerIdentityDomain:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},queryParams:s,body:e})})}publishExtensionWithPublisherSignature(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publishersignedextension/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"multipart/related"},queryParams:n,body:e,isRawData:!0})})}getPublisherWithoutToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publisherWithoutToken/{publisherName}",routeValues:{publisherName:e}})})}getQuestions(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={count:i,page:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/qna",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}reportQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/qna/{questionId}/concern",routeValues:{pubName:t,extName:i,questionId:s},body:e})})}createQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i},body:e})})}deleteQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:e,extensionName:t,questionId:i}})})}updateQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}createResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}deleteResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:e,extensionName:t,questionId:i,responseId:s}})})}updateResponse(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s,responseId:r},body:e})})}getExtensionReports(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,count:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/reports",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getReviews(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,filterOptions:s,beforeDate:r,afterDate:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/reviews",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}getReviewsSummary(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={beforeDate:i,afterDate:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{pubName}/extensions/{extName}/reviews/summary",routeValues:{pubName:e,extName:t},queryParams:r})})}createReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i},body:e})})}deleteReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:e,extName:t,reviewId:i}})})}updateReview(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i,reviewId:s},body:e})})}createCategory(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/categories",body:e})})}getGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:e,key:t}})})}setGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:t},body:e})})}generateKey(e,t){return __awaiter(this,void 0,void 0,function*(){const i={expireCurrentSeconds:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e},queryParams:i})})}getSigningKey(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e}})})}updateExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/statistics",routeValues:{publisherName:t,extensionName:i},body:e})})}getExtensionDailyStats(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,aggregate:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/stats",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getExtensionDailyStatsAnonymous(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i}})})}incrementExtensionDailyStat(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={statType:s,targetPlatform:r};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:a})})}getVerificationLog(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={targetPlatform:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/verificationlog",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:r})})}getVSCodeExtensionLatestVersion(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vscode/{publisherName}/{extensionName}/latest",routeValues:{publisherName:e,extensionName:t}})})}updateVSCodeWebExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/itemName/{itemName}/version/{version}/statType/{statType}/vscodewebextension",routeValues:{itemName:e,version:t,statType:i}})})}queryExtensionByVsixId(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={arch:t,versionRange:i,sku:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vs/extensions/vsixId/{vsixId}",routeValues:{vsixId:e},queryParams:r})})}}exports.GalleryRestClient=GalleryRestClient,GalleryRestClient.RESOURCE_AREA_ID="69d21c00-f135-441b-b5ce-3626378e0819";
|
|
@@ -14,6 +14,16 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
14
14
|
* @param agentPoolName -
|
|
15
15
|
*/
|
|
16
16
|
updateAdvancedSecurityAgentPoolSelection(agentPoolName: string): Promise<Management.AgentPoolDetails>;
|
|
17
|
+
/**
|
|
18
|
+
* Cancels all running and queued CodeQL jobs and in-flight Dynamic Pipeline runs for the organization.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
cancelCodeQLJobs(): Promise<number>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the count of running and queued CodeQL jobs and in-flight Dynamic Pipeline runs for the organization.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
getCodeQLJobCount(): Promise<number>;
|
|
17
27
|
/**
|
|
18
28
|
* Gets the current CodeQL default setup schedule configuration for the organization.
|
|
19
29
|
*
|
|
@@ -25,6 +35,17 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
25
35
|
* @param scheduleDayOfWeek - Day of week as an integer: 0=Sunday, 1=Monday, ..., 6=Saturday.
|
|
26
36
|
*/
|
|
27
37
|
updateCodeQLSchedule(scheduleDayOfWeek: number): Promise<Management.CodeQLScheduleDetails>;
|
|
38
|
+
/**
|
|
39
|
+
* Gets the current CodeQL default setup schedule configuration for the organization.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
getCodeQLScheduleLegacy(): Promise<Management.CodeQLScheduleDetails>;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the day of the week when the CodeQL default setup scan should run for the organization.
|
|
45
|
+
*
|
|
46
|
+
* @param scheduleDayOfWeek - Day of week as an integer: 0=Sunday, 1=Monday, ..., 6=Saturday.
|
|
47
|
+
*/
|
|
48
|
+
updateCodeQLScheduleLegacy(scheduleDayOfWeek: number): Promise<Management.CodeQLScheduleDetails>;
|
|
28
49
|
/**
|
|
29
50
|
* During multi-org billing computation in primary scale unit(EUS21), this API is used to create billing snapshot for a specific org. Primary scale unit will call this API for each org in different scsle units to create billing snapshot. Data will be stored in the org specific partition DB -\> billing snapshot table. This is needed as customers will fetch billing data from their org specific partition DB.
|
|
30
51
|
*
|
|
@@ -49,6 +49,37 @@ class ManagementRestClient extends RestClientBase_1.RestClientBase {
|
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Cancels all running and queued CodeQL jobs and in-flight Dynamic Pipeline runs for the organization.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
cancelCodeQLJobs() {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return this.beginRequest({
|
|
59
|
+
apiVersion: "7.2-preview.1",
|
|
60
|
+
method: "POST",
|
|
61
|
+
routeTemplate: "_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",
|
|
62
|
+
routeValues: {
|
|
63
|
+
action: "Cancel"
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Gets the count of running and queued CodeQL jobs and in-flight Dynamic Pipeline runs for the organization.
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
getCodeQLJobCount() {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return this.beginRequest({
|
|
75
|
+
apiVersion: "7.2-preview.1",
|
|
76
|
+
routeTemplate: "_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",
|
|
77
|
+
routeValues: {
|
|
78
|
+
action: "Count"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
52
83
|
/**
|
|
53
84
|
* Gets the current CodeQL default setup schedule configuration for the organization.
|
|
54
85
|
*
|
|
@@ -57,7 +88,10 @@ class ManagementRestClient extends RestClientBase_1.RestClientBase {
|
|
|
57
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
89
|
return this.beginRequest({
|
|
59
90
|
apiVersion: "7.2-preview.1",
|
|
60
|
-
routeTemplate: "_apis/Management/
|
|
91
|
+
routeTemplate: "_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",
|
|
92
|
+
routeValues: {
|
|
93
|
+
action: "Schedule"
|
|
94
|
+
}
|
|
61
95
|
});
|
|
62
96
|
});
|
|
63
97
|
}
|
|
@@ -67,6 +101,36 @@ class ManagementRestClient extends RestClientBase_1.RestClientBase {
|
|
|
67
101
|
* @param scheduleDayOfWeek - Day of week as an integer: 0=Sunday, 1=Monday, ..., 6=Saturday.
|
|
68
102
|
*/
|
|
69
103
|
updateCodeQLSchedule(scheduleDayOfWeek) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
return this.beginRequest({
|
|
106
|
+
apiVersion: "7.2-preview.1",
|
|
107
|
+
method: "POST",
|
|
108
|
+
routeTemplate: "_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",
|
|
109
|
+
routeValues: {
|
|
110
|
+
scheduleDayOfWeek: scheduleDayOfWeek,
|
|
111
|
+
action: "Schedule"
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Gets the current CodeQL default setup schedule configuration for the organization.
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
getCodeQLScheduleLegacy() {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
return this.beginRequest({
|
|
123
|
+
apiVersion: "7.2-preview.1",
|
|
124
|
+
routeTemplate: "_apis/Management/codeQLSchedule/{scheduleDayOfWeek}"
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Sets the day of the week when the CodeQL default setup scan should run for the organization.
|
|
130
|
+
*
|
|
131
|
+
* @param scheduleDayOfWeek - Day of week as an integer: 0=Sunday, 1=Monday, ..., 6=Saturday.
|
|
132
|
+
*/
|
|
133
|
+
updateCodeQLScheduleLegacy(scheduleDayOfWeek) {
|
|
70
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
135
|
return this.beginRequest({
|
|
72
136
|
apiVersion: "7.2-preview.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,a){return new(i||(i=Promise))(function(n,r){function o(e){try{u(a.next(e))}catch(e){r(e)}}function s(e){try{u(a.throw(e))}catch(e){r(e)}}function u(e){e.done?n(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(o,s)}u((a=a.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ManagementRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase");class ManagementRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}getAdvancedSecurityAgentPoolSelection(){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/pools/{agentPoolName}"})})}updateAdvancedSecurityAgentPoolSelection(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/pools/{agentPoolName}",routeValues:{agentPoolName:e}})})}getCodeQLSchedule(){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/
|
|
1
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,a){return new(i||(i=Promise))(function(n,r){function o(e){try{u(a.next(e))}catch(e){r(e)}}function s(e){try{u(a.throw(e))}catch(e){r(e)}}function u(e){e.done?n(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(o,s)}u((a=a.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ManagementRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase");class ManagementRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}getAdvancedSecurityAgentPoolSelection(){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/pools/{agentPoolName}"})})}updateAdvancedSecurityAgentPoolSelection(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/pools/{agentPoolName}",routeValues:{agentPoolName:e}})})}cancelCodeQLJobs(){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",routeValues:{action:"Cancel"}})})}getCodeQLJobCount(){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",routeValues:{action:"Count"}})})}getCodeQLSchedule(){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",routeValues:{action:"Schedule"}})})}updateCodeQLSchedule(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/codeQLJobs/{action}/{scheduleDayOfWeek}",routeValues:{scheduleDayOfWeek:e,action:"Schedule"}})})}getCodeQLScheduleLegacy(){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/codeQLSchedule/{scheduleDayOfWeek}"})})}updateCodeQLScheduleLegacy(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/codeQLSchedule/{scheduleDayOfWeek}",routeValues:{scheduleDayOfWeek:e}})})}createBillingSnapshot2(e,t){return __awaiter(this,void 0,void 0,function*(){const i={plan:t};return this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:i,body:e})})}getBillableCommitterDetails2(e,t){return __awaiter(this,void 0,void 0,function*(){const i={plan:e,billingDate:t};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Details"},queryParams:i})})}getLastMeterUsage2(e){return __awaiter(this,void 0,void 0,function*(){const t={plan:e};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Last"},queryParams:t})})}getMeterUsage2(e,t){return __awaiter(this,void 0,void 0,function*(){const i={plan:e,billingDate:t};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:i})})}getOrgEnablementStatus2(e){return __awaiter(this,void 0,void 0,function*(){const t={includeAllProperties:e};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/enablement",queryParams:t})})}updateOrgEnablementStatus2(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"_apis/Management/enablement",body:e})})}getEstimatedBillablePushersDetailsForOrg2(e){return __awaiter(this,void 0,void 0,function*(){const t={plan:e};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/meterUsageEstimate/{action}",routeValues:{action:"Default"},queryParams:t})})}getProjectEnablementStatus2(e,t){return __awaiter(this,void 0,void 0,function*(){const i={includeAllProperties:t};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:i})})}updateProjectEnablementStatus2(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})})}getEstimatedBillablePushersDetailsForProject2(e,t){return __awaiter(this,void 0,void 0,function*(){const i={plan:t};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/meterUsageEstimate/{action}",routeValues:{project:e,action:"Default"},queryParams:i})})}getRepoEnablementStatus2(e,t,i){return __awaiter(this,void 0,void 0,function*(){const a={includeAllProperties:i};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:a})})}updateRepoAdvSecEnablementStatus2(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:t,repository:i},body:e})})}getEstimatedBillableCommittersDetailsForRepo2(e,t,i){return __awaiter(this,void 0,void 0,function*(){const a={plan:i};return this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:a})})}}exports.ManagementRestClient=ManagementRestClient;
|
package/Pipelines/Pipelines.d.ts
CHANGED
|
@@ -632,6 +632,10 @@ export interface Subscription {
|
|
|
632
632
|
eventType: string;
|
|
633
633
|
id: string;
|
|
634
634
|
lastProbationRetryDate: Date;
|
|
635
|
+
/**
|
|
636
|
+
* Date of the last successful notification delivery attempt.
|
|
637
|
+
*/
|
|
638
|
+
lastSuccessfulAttemptDate: Date;
|
|
635
639
|
modifiedBy: WebApi.IdentityRef;
|
|
636
640
|
modifiedDate: Date;
|
|
637
641
|
probationRetries: number;
|
package/Tfvc/Tfvc.d.ts
CHANGED
|
@@ -50,6 +50,16 @@ export interface FileContentMetadata {
|
|
|
50
50
|
isImage: boolean;
|
|
51
51
|
vsLink: string;
|
|
52
52
|
}
|
|
53
|
+
export declare enum GitObjectType {
|
|
54
|
+
Bad = 0,
|
|
55
|
+
Commit = 1,
|
|
56
|
+
Tree = 2,
|
|
57
|
+
Blob = 3,
|
|
58
|
+
Tag = 4,
|
|
59
|
+
Ext2 = 5,
|
|
60
|
+
OfsDelta = 6,
|
|
61
|
+
RefDelta = 7
|
|
62
|
+
}
|
|
53
63
|
export interface GitRepository {
|
|
54
64
|
_links: any;
|
|
55
65
|
/**
|
|
@@ -99,6 +109,39 @@ export interface GitRepositoryRef {
|
|
|
99
109
|
sshUrl: string;
|
|
100
110
|
url: string;
|
|
101
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* State of the status.
|
|
114
|
+
*/
|
|
115
|
+
export declare enum GitStatusState {
|
|
116
|
+
/**
|
|
117
|
+
* Status state not set. Default state.
|
|
118
|
+
*/
|
|
119
|
+
NotSet = 0,
|
|
120
|
+
/**
|
|
121
|
+
* Status pending.
|
|
122
|
+
*/
|
|
123
|
+
Pending = 1,
|
|
124
|
+
/**
|
|
125
|
+
* Status succeeded.
|
|
126
|
+
*/
|
|
127
|
+
Succeeded = 2,
|
|
128
|
+
/**
|
|
129
|
+
* Status failed.
|
|
130
|
+
*/
|
|
131
|
+
Failed = 3,
|
|
132
|
+
/**
|
|
133
|
+
* Status with an error.
|
|
134
|
+
*/
|
|
135
|
+
Error = 4,
|
|
136
|
+
/**
|
|
137
|
+
* Status is not applicable to the target object.
|
|
138
|
+
*/
|
|
139
|
+
NotApplicable = 5,
|
|
140
|
+
/**
|
|
141
|
+
* Status Partially Succeeded, build finished with warnings.
|
|
142
|
+
*/
|
|
143
|
+
PartiallySucceeded = 6
|
|
144
|
+
}
|
|
102
145
|
export interface ItemContent {
|
|
103
146
|
content: string;
|
|
104
147
|
contentType: ItemContentType;
|
package/Tfvc/Tfvc.js
CHANGED
|
@@ -5,7 +5,52 @@
|
|
|
5
5
|
* ---------------------------------------------------------
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.VersionControlRecursionType = exports.VersionControlChangeType = exports.TfvcVersionType = exports.TfvcVersionOption = exports.ItemContentType = void 0;
|
|
8
|
+
exports.VersionControlRecursionType = exports.VersionControlChangeType = exports.TfvcVersionType = exports.TfvcVersionOption = exports.ItemContentType = exports.GitStatusState = exports.GitObjectType = void 0;
|
|
9
|
+
var GitObjectType;
|
|
10
|
+
(function (GitObjectType) {
|
|
11
|
+
GitObjectType[GitObjectType["Bad"] = 0] = "Bad";
|
|
12
|
+
GitObjectType[GitObjectType["Commit"] = 1] = "Commit";
|
|
13
|
+
GitObjectType[GitObjectType["Tree"] = 2] = "Tree";
|
|
14
|
+
GitObjectType[GitObjectType["Blob"] = 3] = "Blob";
|
|
15
|
+
GitObjectType[GitObjectType["Tag"] = 4] = "Tag";
|
|
16
|
+
GitObjectType[GitObjectType["Ext2"] = 5] = "Ext2";
|
|
17
|
+
GitObjectType[GitObjectType["OfsDelta"] = 6] = "OfsDelta";
|
|
18
|
+
GitObjectType[GitObjectType["RefDelta"] = 7] = "RefDelta";
|
|
19
|
+
})(GitObjectType || (exports.GitObjectType = GitObjectType = {}));
|
|
20
|
+
/**
|
|
21
|
+
* State of the status.
|
|
22
|
+
*/
|
|
23
|
+
var GitStatusState;
|
|
24
|
+
(function (GitStatusState) {
|
|
25
|
+
/**
|
|
26
|
+
* Status state not set. Default state.
|
|
27
|
+
*/
|
|
28
|
+
GitStatusState[GitStatusState["NotSet"] = 0] = "NotSet";
|
|
29
|
+
/**
|
|
30
|
+
* Status pending.
|
|
31
|
+
*/
|
|
32
|
+
GitStatusState[GitStatusState["Pending"] = 1] = "Pending";
|
|
33
|
+
/**
|
|
34
|
+
* Status succeeded.
|
|
35
|
+
*/
|
|
36
|
+
GitStatusState[GitStatusState["Succeeded"] = 2] = "Succeeded";
|
|
37
|
+
/**
|
|
38
|
+
* Status failed.
|
|
39
|
+
*/
|
|
40
|
+
GitStatusState[GitStatusState["Failed"] = 3] = "Failed";
|
|
41
|
+
/**
|
|
42
|
+
* Status with an error.
|
|
43
|
+
*/
|
|
44
|
+
GitStatusState[GitStatusState["Error"] = 4] = "Error";
|
|
45
|
+
/**
|
|
46
|
+
* Status is not applicable to the target object.
|
|
47
|
+
*/
|
|
48
|
+
GitStatusState[GitStatusState["NotApplicable"] = 5] = "NotApplicable";
|
|
49
|
+
/**
|
|
50
|
+
* Status Partially Succeeded, build finished with warnings.
|
|
51
|
+
*/
|
|
52
|
+
GitStatusState[GitStatusState["PartiallySucceeded"] = 6] = "PartiallySucceeded";
|
|
53
|
+
})(GitStatusState || (exports.GitStatusState = GitStatusState = {}));
|
|
9
54
|
var ItemContentType;
|
|
10
55
|
(function (ItemContentType) {
|
|
11
56
|
ItemContentType[ItemContentType["RawText"] = 0] = "RawText";
|
package/Tfvc/Tfvc.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VersionControlRecursionType=exports.VersionControlChangeType=exports.TfvcVersionType=exports.TfvcVersionOption=exports.ItemContentType=void 0;var ItemContentType;!function(e){e[e.RawText=0]="RawText",e[e.Base64Encoded=1]="Base64Encoded"}(ItemContentType||(exports.ItemContentType=ItemContentType={}));var TfvcVersionOption;!function(e){e[e.None=0]="None",e[e.Previous=1]="Previous",e[e.UseRename=2]="UseRename"}(TfvcVersionOption||(exports.TfvcVersionOption=TfvcVersionOption={}));var TfvcVersionType;!function(e){e[e.None=0]="None",e[e.Changeset=1]="Changeset",e[e.Shelveset=2]="Shelveset",e[e.Change=3]="Change",e[e.Date=4]="Date",e[e.Latest=5]="Latest",e[e.Tip=6]="Tip",e[e.MergeSource=7]="MergeSource"}(TfvcVersionType||(exports.TfvcVersionType=TfvcVersionType={}));var VersionControlChangeType;!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Edit=2]="Edit",e[e.Encoding=4]="Encoding",e[e.Rename=8]="Rename",e[e.Delete=16]="Delete",e[e.Undelete=32]="Undelete",e[e.Branch=64]="Branch",e[e.Merge=128]="Merge",e[e.Lock=256]="Lock",e[e.Rollback=512]="Rollback",e[e.SourceRename=1024]="SourceRename",e[e.TargetRename=2048]="TargetRename",e[e.Property=4096]="Property",e[e.All=8191]="All"}(VersionControlChangeType||(exports.VersionControlChangeType=VersionControlChangeType={}));var VersionControlRecursionType;!function(e){e[e.None=0]="None",e[e.OneLevel=1]="OneLevel",e[e.OneLevelPlusNestedEmptyFolders=4]="OneLevelPlusNestedEmptyFolders",e[e.Full=120]="Full"}(VersionControlRecursionType||(exports.VersionControlRecursionType=VersionControlRecursionType={}));
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VersionControlRecursionType=exports.VersionControlChangeType=exports.TfvcVersionType=exports.TfvcVersionOption=exports.ItemContentType=exports.GitStatusState=exports.GitObjectType=void 0;var GitObjectType;!function(e){e[e.Bad=0]="Bad",e[e.Commit=1]="Commit",e[e.Tree=2]="Tree",e[e.Blob=3]="Blob",e[e.Tag=4]="Tag",e[e.Ext2=5]="Ext2",e[e.OfsDelta=6]="OfsDelta",e[e.RefDelta=7]="RefDelta"}(GitObjectType||(exports.GitObjectType=GitObjectType={}));var GitStatusState;!function(e){e[e.NotSet=0]="NotSet",e[e.Pending=1]="Pending",e[e.Succeeded=2]="Succeeded",e[e.Failed=3]="Failed",e[e.Error=4]="Error",e[e.NotApplicable=5]="NotApplicable",e[e.PartiallySucceeded=6]="PartiallySucceeded"}(GitStatusState||(exports.GitStatusState=GitStatusState={}));var ItemContentType;!function(e){e[e.RawText=0]="RawText",e[e.Base64Encoded=1]="Base64Encoded"}(ItemContentType||(exports.ItemContentType=ItemContentType={}));var TfvcVersionOption;!function(e){e[e.None=0]="None",e[e.Previous=1]="Previous",e[e.UseRename=2]="UseRename"}(TfvcVersionOption||(exports.TfvcVersionOption=TfvcVersionOption={}));var TfvcVersionType;!function(e){e[e.None=0]="None",e[e.Changeset=1]="Changeset",e[e.Shelveset=2]="Shelveset",e[e.Change=3]="Change",e[e.Date=4]="Date",e[e.Latest=5]="Latest",e[e.Tip=6]="Tip",e[e.MergeSource=7]="MergeSource"}(TfvcVersionType||(exports.TfvcVersionType=TfvcVersionType={}));var VersionControlChangeType;!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Edit=2]="Edit",e[e.Encoding=4]="Encoding",e[e.Rename=8]="Rename",e[e.Delete=16]="Delete",e[e.Undelete=32]="Undelete",e[e.Branch=64]="Branch",e[e.Merge=128]="Merge",e[e.Lock=256]="Lock",e[e.Rollback=512]="Rollback",e[e.SourceRename=1024]="SourceRename",e[e.TargetRename=2048]="TargetRename",e[e.Property=4096]="Property",e[e.All=8191]="All"}(VersionControlChangeType||(exports.VersionControlChangeType=VersionControlChangeType={}));var VersionControlRecursionType;!function(e){e[e.None=0]="None",e[e.OneLevel=1]="OneLevel",e[e.OneLevelPlusNestedEmptyFolders=4]="OneLevelPlusNestedEmptyFolders",e[e.Full=120]="Full"}(VersionControlRecursionType||(exports.VersionControlRecursionType=VersionControlRecursionType={}));
|