azure-devops-extension-api 4.257.0 → 4.259.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alert/Alert.d.ts +7 -2
- package/Alert/Alert.js +4 -0
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +2 -2
- package/Alert/AlertClient.js +2 -2
- package/Git/GitClient.d.ts +1 -1
- package/Git/GitClient.js +1 -1
- package/Management/Management.d.ts +99 -0
- package/Management/ManagementClient.d.ts +1 -1
- package/TaskAgent/TaskAgent.d.ts +22 -0
- package/TaskAgent/TaskAgent.js +14 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/Test/Test.d.ts +3 -0
- package/TestPlan/TestPlan.d.ts +87 -0
- package/TestPlan/TestPlanClient.d.ts +7 -0
- package/TestPlan/TestPlanClient.js +21 -0
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +8 -0
- package/TestResults/TestResultsClient.js +23 -0
- package/TestResults/TestResultsClient.min.js +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0825211641838.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 +2210 -2210
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/package.json +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0716204008091.json +0 -1
package/Alert/Alert.d.ts
CHANGED
|
@@ -205,6 +205,7 @@ export declare enum AlertValidationRequestStatus {
|
|
|
205
205
|
* Validity data for an alert that will be part of Alerts APIs and UI.
|
|
206
206
|
*/
|
|
207
207
|
export interface AlertValidityInfo {
|
|
208
|
+
isDynamicAnalysisSupported: boolean;
|
|
208
209
|
validityLastCheckedDate: Date;
|
|
209
210
|
validityStatus: AlertValidityStatus;
|
|
210
211
|
}
|
|
@@ -1068,7 +1069,7 @@ export interface ValidationFingerprint {
|
|
|
1068
1069
|
*/
|
|
1069
1070
|
validationFingerprintHash: string;
|
|
1070
1071
|
/**
|
|
1071
|
-
* The JSON representation of the secret.
|
|
1072
|
+
* The JSON representation of the secret. Be aware that this field may contain the secret in its unencrypted form. Please exercise caution when using this field.
|
|
1072
1073
|
*/
|
|
1073
1074
|
validationFingerprintJson: string;
|
|
1074
1075
|
/**
|
|
@@ -1102,7 +1103,11 @@ export declare enum ValidationResult {
|
|
|
1102
1103
|
/**
|
|
1103
1104
|
* Represents a secret where no determination can be made about its exploitability.
|
|
1104
1105
|
*/
|
|
1105
|
-
Inconclusive = 3
|
|
1106
|
+
Inconclusive = 3,
|
|
1107
|
+
/**
|
|
1108
|
+
* Represents a secret where we are unable to validate, e.g. dynamic validator missing.
|
|
1109
|
+
*/
|
|
1110
|
+
ValidationNotSupported = 4
|
|
1106
1111
|
}
|
|
1107
1112
|
/**
|
|
1108
1113
|
* Information for locating files in a source control system
|
package/Alert/Alert.js
CHANGED
|
@@ -400,5 +400,9 @@ define(["require", "exports"], function (require, exports) {
|
|
|
400
400
|
* Represents a secret where no determination can be made about its exploitability.
|
|
401
401
|
*/
|
|
402
402
|
ValidationResult[ValidationResult["Inconclusive"] = 3] = "Inconclusive";
|
|
403
|
+
/**
|
|
404
|
+
* Represents a secret where we are unable to validate, e.g. dynamic validator missing.
|
|
405
|
+
*/
|
|
406
|
+
ValidationResult[ValidationResult["ValidationNotSupported"] = 4] = "ValidationNotSupported";
|
|
403
407
|
})(ValidationResult = exports.ValidationResult || (exports.ValidationResult = {}));
|
|
404
408
|
});
|
package/Alert/Alert.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal"}(n.AlertListExpandOption||(n.AlertListExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License"}(n.AlertType||(n.AlertType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(n.AlertValidationRequestStatus||(n.AlertValidationRequestStatus={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(n.DependencyKind||(n.DependencyKind={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(n.LicenseState||(n.LicenseState={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(n.LicenseType||(n.LicenseType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Requeued=4]="Requeued"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}));!function(e){e[e.None=0]="None",e[e.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive"}(n.ValidationResult||(n.ValidationResult={}))});
|
|
1
|
+
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal"}(n.AlertListExpandOption||(n.AlertListExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License"}(n.AlertType||(n.AlertType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(n.AlertValidationRequestStatus||(n.AlertValidationRequestStatus={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(n.DependencyKind||(n.DependencyKind={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(n.LicenseState||(n.LicenseState={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(n.LicenseType||(n.LicenseType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Requeued=4]="Requeued"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}));!function(e){e[e.None=0]="None",e[e.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive",e[e.ValidationNotSupported=4]="ValidationNotSupported"}(n.ValidationResult||(n.ValidationResult={}))});
|
package/Alert/AlertClient.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
11
11
|
* @param alertId - ID of alert to retrieve
|
|
12
12
|
* @param repository - Name or id of a repository that alert is part of
|
|
13
13
|
* @param ref -
|
|
14
|
-
* @param expand - Expand alert
|
|
14
|
+
* @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
|
|
15
15
|
*/
|
|
16
16
|
getAlert(project: string, alertId: number, repository: string, ref?: string, expand?: Alert.ExpandOption): Promise<Alert.Alert>;
|
|
17
17
|
/**
|
|
@@ -33,7 +33,7 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
33
33
|
* @param alertId - ID of alert to retrieve
|
|
34
34
|
* @param repository - Name or id of a repository that alert is part of
|
|
35
35
|
* @param ref -
|
|
36
|
-
* @param expand - Expand alert
|
|
36
|
+
* @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
|
|
37
37
|
*/
|
|
38
38
|
getAlertSarif(project: string, alertId: number, repository: string, ref?: string, expand?: Alert.ExpandOption): Promise<string>;
|
|
39
39
|
/**
|
package/Alert/AlertClient.js
CHANGED
|
@@ -63,7 +63,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
63
63
|
* @param alertId - ID of alert to retrieve
|
|
64
64
|
* @param repository - Name or id of a repository that alert is part of
|
|
65
65
|
* @param ref -
|
|
66
|
-
* @param expand - Expand alert
|
|
66
|
+
* @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
|
|
67
67
|
*/
|
|
68
68
|
AlertRestClient.prototype.getAlert = function (project, alertId, repository, ref, expand) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -140,7 +140,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
140
140
|
* @param alertId - ID of alert to retrieve
|
|
141
141
|
* @param repository - Name or id of a repository that alert is part of
|
|
142
142
|
* @param ref -
|
|
143
|
-
* @param expand - Expand alert
|
|
143
|
+
* @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
|
|
144
144
|
*/
|
|
145
145
|
AlertRestClient.prototype.getAlertSarif = function (project, alertId, repository, ref, expand) {
|
|
146
146
|
return __awaiter(this, void 0, void 0, function () {
|
package/Git/GitClient.d.ts
CHANGED
|
@@ -557,7 +557,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
557
557
|
*/
|
|
558
558
|
getItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
|
|
559
559
|
/**
|
|
560
|
-
*
|
|
560
|
+
* Retrieves a batch of items in a repo / project for a given list of paths or a long path
|
|
561
561
|
*
|
|
562
562
|
* @param requestData - Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references.
|
|
563
563
|
* @param repositoryId - The name or ID of the repository
|
package/Git/GitClient.js
CHANGED
|
@@ -1684,7 +1684,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
1684
1684
|
});
|
|
1685
1685
|
};
|
|
1686
1686
|
/**
|
|
1687
|
-
*
|
|
1687
|
+
* Retrieves a batch of items in a repo / project for a given list of paths or a long path
|
|
1688
1688
|
*
|
|
1689
1689
|
* @param requestData - Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references.
|
|
1690
1690
|
* @param repositoryId - The name or ID of the repository
|
|
@@ -1,4 +1,57 @@
|
|
|
1
1
|
import * as WebApi from "../WebApi/WebApi";
|
|
2
|
+
export interface AdvSecEnablementFeatures {
|
|
3
|
+
/**
|
|
4
|
+
* Auto enablement of AdvSec for new projects or repos will be enabled when set to true and will be unchanged when set to false.
|
|
5
|
+
*/
|
|
6
|
+
autoEnableNewProjectOrRepos: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* CodeQL enablement status set to False when disabled and True when enabled; Null is never explicitly set.
|
|
9
|
+
*/
|
|
10
|
+
codeQLEnabled: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>Setting Dependabot enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
13
|
+
*/
|
|
14
|
+
dependabotEnabled: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Dependency Scanning Injection enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If Advanced Security is NOT already enabled, behavior will depend on if Advanced Security is to be enabled/disabled. DependencyScanningInjectionEnabled will not affect anything in this scenario. \<br /\> If Advanced Security is to be disabled, the value of DependencyScanningInjectionEnabled will have no effect. \<br /\> Setting Dependency Scanning enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
17
|
+
*/
|
|
18
|
+
dependencyScanningInjectionEnabled: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface AdvSecEnablementSettings {
|
|
21
|
+
/**
|
|
22
|
+
* Automatically enable Advanced Security on newly created repositories.
|
|
23
|
+
*/
|
|
24
|
+
enableOnCreate: boolean;
|
|
25
|
+
reposEnablementStatus: AdvSecEnablementStatus[];
|
|
26
|
+
}
|
|
27
|
+
export interface AdvSecEnablementSettingsUpdate extends AdvSecEnablementStatusUpdate {
|
|
28
|
+
/**
|
|
29
|
+
* Automatically enable Advanced Security on newly created repositories.
|
|
30
|
+
*/
|
|
31
|
+
enableOnCreate: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface AdvSecEnablementStatus extends AdvSecEnablementStatusUpdate {
|
|
34
|
+
/**
|
|
35
|
+
* The last time the status of Advanced Security for this repository was updated
|
|
36
|
+
*/
|
|
37
|
+
advSecEnablementLastChangedDate: Date;
|
|
38
|
+
projectId: string;
|
|
39
|
+
repositoryId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface AdvSecEnablementStatusUpdate {
|
|
42
|
+
/**
|
|
43
|
+
* Advanced Security enablement status set to False when disabled and True when enabled; Null is never explicitly set.
|
|
44
|
+
*/
|
|
45
|
+
advSecEnabled: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Includes additional features that can be enabled alongside Advanced Security.
|
|
48
|
+
*/
|
|
49
|
+
advSecEnablementFeatures: AdvSecEnablementFeatures;
|
|
50
|
+
/**
|
|
51
|
+
* When true, pushes containing secrets will be blocked. \<br /\>When false, pushes are scanned for secrets and are not blocked. \<br /\>If includeAllProperties in the request is false, this value will be null.
|
|
52
|
+
*/
|
|
53
|
+
blockPushes: boolean;
|
|
54
|
+
}
|
|
2
55
|
/**
|
|
3
56
|
* Billable Committers Details for Advanced Security Services
|
|
4
57
|
*/
|
|
@@ -122,6 +175,52 @@ export interface EnablementOnCreateSettings {
|
|
|
122
175
|
*/
|
|
123
176
|
enableSecretProtectionOnCreate: boolean;
|
|
124
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Information related to billing for Advanced Security services
|
|
180
|
+
*/
|
|
181
|
+
export interface MeterUsage {
|
|
182
|
+
/**
|
|
183
|
+
* The Azure DevOps account
|
|
184
|
+
*/
|
|
185
|
+
accountId: string;
|
|
186
|
+
azureSubscriptionId: string;
|
|
187
|
+
/**
|
|
188
|
+
* Deprecated - use BilledCommittersIdentities instead A list of Cuids for the commiters to the repositories that have Advanced Security features enabled
|
|
189
|
+
*/
|
|
190
|
+
billedCommitters: string[];
|
|
191
|
+
/**
|
|
192
|
+
* A list of BilledCommitter objects that contain the identityRef of committers that have AdvSec enabled
|
|
193
|
+
*/
|
|
194
|
+
billedUsers: BilledCommitter[];
|
|
195
|
+
/**
|
|
196
|
+
* The date this billing information pertains to
|
|
197
|
+
*/
|
|
198
|
+
billingDate: Date;
|
|
199
|
+
/**
|
|
200
|
+
* A list of BilledCommitter objects that contain the identityRef of committers that have Code Security Plan enabled. This list is populated only for organizations that can enable or disable the Code Security Plan.
|
|
201
|
+
*/
|
|
202
|
+
codeSecurityBilledUsers: BilledCommitter[];
|
|
203
|
+
/**
|
|
204
|
+
* True when a bill is generated for Advanced Security feature usage in this organziation
|
|
205
|
+
*/
|
|
206
|
+
isAdvSecBillable: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* True when Advanced Security features are enabled in this organization
|
|
209
|
+
*/
|
|
210
|
+
isAdvSecEnabled: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* A list of BilledCommitter objects that contain the identityRef of committers that have Secret Protection Plan enabled. This list is populated only for organizations that can enable or disable the Secret Protection Plan.
|
|
213
|
+
*/
|
|
214
|
+
secretProtectionBilledUsers: BilledCommitter[];
|
|
215
|
+
/**
|
|
216
|
+
* The Azure subscription
|
|
217
|
+
*/
|
|
218
|
+
tenantId: string;
|
|
219
|
+
/**
|
|
220
|
+
* The number of commiters to repositories that have Advanced Security features enabled
|
|
221
|
+
*/
|
|
222
|
+
uniqueCommitterCount: number;
|
|
223
|
+
}
|
|
125
224
|
/**
|
|
126
225
|
* Information related to meter usage estimate for Code Security plan and/or Secret Protection plan
|
|
127
226
|
*/
|
|
@@ -45,7 +45,7 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
45
45
|
*
|
|
46
46
|
* @param plan - The plan to query.
|
|
47
47
|
*/
|
|
48
|
-
getEstimatedBillablePushersDetailsForOrg3(plan
|
|
48
|
+
getEstimatedBillablePushersDetailsForOrg3(plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
|
|
49
49
|
/**
|
|
50
50
|
* Get the current status of Advanced Security for a project
|
|
51
51
|
*
|
package/TaskAgent/TaskAgent.d.ts
CHANGED
|
@@ -3722,3 +3722,25 @@ export interface WorkloadIdentityFederationDetailsData {
|
|
|
3722
3722
|
federationIssuer: string;
|
|
3723
3723
|
federationSubject: string;
|
|
3724
3724
|
}
|
|
3725
|
+
/**
|
|
3726
|
+
* Represents a reference to a check configuration defined in pipeline YAML. Persisted stage is the resource that contains the check configuration reference.
|
|
3727
|
+
*/
|
|
3728
|
+
export interface YamlCheckReference {
|
|
3729
|
+
/**
|
|
3730
|
+
* Gets or sets the type of the check configuration reference.
|
|
3731
|
+
*/
|
|
3732
|
+
type: YamlCheckType;
|
|
3733
|
+
}
|
|
3734
|
+
/**
|
|
3735
|
+
* Enumeration of check types for configuration references.
|
|
3736
|
+
*/
|
|
3737
|
+
export declare enum YamlCheckType {
|
|
3738
|
+
/**
|
|
3739
|
+
* Unsupported YAML type
|
|
3740
|
+
*/
|
|
3741
|
+
None = 0,
|
|
3742
|
+
/**
|
|
3743
|
+
* Production Readiness Check
|
|
3744
|
+
*/
|
|
3745
|
+
ProductionReadiness = 1
|
|
3746
|
+
}
|
package/TaskAgent/TaskAgent.js
CHANGED
|
@@ -573,4 +573,18 @@ define(["require", "exports"], function (require, exports) {
|
|
|
573
573
|
*/
|
|
574
574
|
VariableGroupQueryOrder[VariableGroupQueryOrder["IdDescending"] = 1] = "IdDescending";
|
|
575
575
|
})(VariableGroupQueryOrder = exports.VariableGroupQueryOrder || (exports.VariableGroupQueryOrder = {}));
|
|
576
|
+
/**
|
|
577
|
+
* Enumeration of check types for configuration references.
|
|
578
|
+
*/
|
|
579
|
+
var YamlCheckType;
|
|
580
|
+
(function (YamlCheckType) {
|
|
581
|
+
/**
|
|
582
|
+
* Unsupported YAML type
|
|
583
|
+
*/
|
|
584
|
+
YamlCheckType[YamlCheckType["None"] = 0] = "None";
|
|
585
|
+
/**
|
|
586
|
+
* Production Readiness Check
|
|
587
|
+
*/
|
|
588
|
+
YamlCheckType[YamlCheckType["ProductionReadiness"] = 1] = "ProductionReadiness";
|
|
589
|
+
})(YamlCheckType = exports.YamlCheckType || (exports.YamlCheckType = {}));
|
|
576
590
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.Task=0]="Task",e[e.Feature=1]="Feature"}(n.DemandSourceType||(n.DemandSourceType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups",e[e.Resource=4]="Resource"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.Enabled=1]="Enabled",e[e.Online=2]="Online",e[e.Assigned=4]="Assigned"}(n.ElasticAgentState||(n.ElasticAgentState={}));!function(e){e[e.None=0]="None",e[e.Healthy=1]="Healthy",e[e.Creating=2]="Creating",e[e.Deleting=3]="Deleting",e[e.Failed=4]="Failed",e[e.Stopped=5]="Stopped",e[e.Reimaging=6]="Reimaging",e[e.UnhealthyVm=7]="UnhealthyVm",e[e.UnhealthyVmssVm=8]="UnhealthyVmssVm"}(n.ElasticComputeState||(n.ElasticComputeState={}));!function(e){e[e.None=0]="None",e[e.New=1]="New",e[e.CreatingCompute=2]="CreatingCompute",e[e.StartingAgent=3]="StartingAgent",e[e.Idle=4]="Idle",e[e.Assigned=5]="Assigned",e[e.Offline=6]="Offline",e[e.PendingReimage=7]="PendingReimage",e[e.PendingDelete=8]="PendingDelete",e[e.Saved=9]="Saved",e[e.DeletingCompute=10]="DeletingCompute",e[e.Deleted=11]="Deleted",e[e.Lost=12]="Lost",e[e.ReimagingCompute=13]="ReimagingCompute",e[e.RestartingAgent=14]="RestartingAgent",e[e.FailedToStartPendingDelete=15]="FailedToStartPendingDelete",e[e.FailedToRestartPendingDelete=16]="FailedToRestartPendingDelete",e[e.FailedVMPendingDelete=17]="FailedVMPendingDelete",e[e.AssignedPendingDelete=18]="AssignedPendingDelete",e[e.RetryDelete=19]="RetryDelete",e[e.UnhealthyVm=20]="UnhealthyVm",e[e.UnhealthyVmPendingDelete=21]="UnhealthyVmPendingDelete",e[e.PendingReimageCandidate=22]="PendingReimageCandidate"}(n.ElasticNodeState||(n.ElasticNodeState={}));!function(e){e[e.Online=0]="Online",e[e.Offline=1]="Offline",e[e.Unhealthy=2]="Unhealthy",e[e.New=3]="New"}(n.ElasticPoolState||(n.ElasticPoolState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.EnvironmentActionFilter||(n.EnvironmentActionFilter={}));!function(e){e[e.None=0]="None",e[e.ResourceReferences=1]="ResourceReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.EnvironmentResourceType||(n.EnvironmentResourceType={}));!function(e){e[e.RunLatest=0]="RunLatest",e[e.Sequential=1]="Sequential",e[e.BranchRunLatest=2]="BranchRunLatest",e[e.Parallel=3]="Parallel"}(n.ExclusiveLockType||(n.ExclusiveLockType={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info"}(n.LogLevel||(n.LogLevel={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Windows=0]="Windows",e[e.Linux=1]="Linux"}(n.OperatingSystemType||(n.OperatingSystemType={}));!function(e){e[e.ConfigurationJob=0]="ConfigurationJob",e[e.SizingJob=1]="SizingJob",e[e.IncreaseCapacity=2]="IncreaseCapacity",e[e.Reimage=3]="Reimage",e[e.DeleteVMs=4]="DeleteVMs"}(n.OperationType||(n.OperationType={}));!function(e){e[e.Uniform=0]="Uniform",e[e.Flexible=1]="Flexible"}(n.OrchestrationType||(n.OrchestrationType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.Queued=0]="Queued",e[e.InUse=1]="InUse",e[e.Finished=2]="Finished",e[e.TimedOut=3]="TimedOut",e[e.Canceled=4]="Canceled",e[e.Abandoned=5]="Abandoned",e[e.WaitingOnChecks=6]="WaitingOnChecks"}(n.ResourceLockStatus||(n.ResourceLockStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Automatic=0]="Automatic",e[e.Manual=1]="Manual"}(n.StageTriggerType||(n.StageTriggerType={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.Task=1]="Task",e[e.Action=2]="Action"}(n.TaskAgentJobStepType||(n.TaskAgentJobStepType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.None=0]="None",e[e.ElasticPool=1]="ElasticPool",e[e.SingleUseAgents=2]="SingleUseAgents",e[e.PreserveAgentOnJobFailure=4]="PreserveAgentOnJobFailure"}(n.TaskAgentPoolOptions||(n.TaskAgentPoolOptions={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.None=0]="None",e[e.BumpRequestToTop=1]="BumpRequestToTop"}(n.TaskAgentRequestUpdateOptions||(n.TaskAgentRequestUpdateOptions={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired",e[e.Downgrade=3]="Downgrade"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Any=0]="Any",e[e.Restricted=1]="Restricted"}(n.TaskCommandMode||(n.TaskCommandMode={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed",e[e.Throttled=8]="Throttled"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned",e[e.ManuallyQueued=6]="ManuallyQueued",e[e.DependentOnManualQueue=7]="DependentOnManualQueue"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}))});
|
|
1
|
+
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.Task=0]="Task",e[e.Feature=1]="Feature"}(n.DemandSourceType||(n.DemandSourceType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups",e[e.Resource=4]="Resource"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.Enabled=1]="Enabled",e[e.Online=2]="Online",e[e.Assigned=4]="Assigned"}(n.ElasticAgentState||(n.ElasticAgentState={}));!function(e){e[e.None=0]="None",e[e.Healthy=1]="Healthy",e[e.Creating=2]="Creating",e[e.Deleting=3]="Deleting",e[e.Failed=4]="Failed",e[e.Stopped=5]="Stopped",e[e.Reimaging=6]="Reimaging",e[e.UnhealthyVm=7]="UnhealthyVm",e[e.UnhealthyVmssVm=8]="UnhealthyVmssVm"}(n.ElasticComputeState||(n.ElasticComputeState={}));!function(e){e[e.None=0]="None",e[e.New=1]="New",e[e.CreatingCompute=2]="CreatingCompute",e[e.StartingAgent=3]="StartingAgent",e[e.Idle=4]="Idle",e[e.Assigned=5]="Assigned",e[e.Offline=6]="Offline",e[e.PendingReimage=7]="PendingReimage",e[e.PendingDelete=8]="PendingDelete",e[e.Saved=9]="Saved",e[e.DeletingCompute=10]="DeletingCompute",e[e.Deleted=11]="Deleted",e[e.Lost=12]="Lost",e[e.ReimagingCompute=13]="ReimagingCompute",e[e.RestartingAgent=14]="RestartingAgent",e[e.FailedToStartPendingDelete=15]="FailedToStartPendingDelete",e[e.FailedToRestartPendingDelete=16]="FailedToRestartPendingDelete",e[e.FailedVMPendingDelete=17]="FailedVMPendingDelete",e[e.AssignedPendingDelete=18]="AssignedPendingDelete",e[e.RetryDelete=19]="RetryDelete",e[e.UnhealthyVm=20]="UnhealthyVm",e[e.UnhealthyVmPendingDelete=21]="UnhealthyVmPendingDelete",e[e.PendingReimageCandidate=22]="PendingReimageCandidate"}(n.ElasticNodeState||(n.ElasticNodeState={}));!function(e){e[e.Online=0]="Online",e[e.Offline=1]="Offline",e[e.Unhealthy=2]="Unhealthy",e[e.New=3]="New"}(n.ElasticPoolState||(n.ElasticPoolState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.EnvironmentActionFilter||(n.EnvironmentActionFilter={}));!function(e){e[e.None=0]="None",e[e.ResourceReferences=1]="ResourceReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.EnvironmentResourceType||(n.EnvironmentResourceType={}));!function(e){e[e.RunLatest=0]="RunLatest",e[e.Sequential=1]="Sequential",e[e.BranchRunLatest=2]="BranchRunLatest",e[e.Parallel=3]="Parallel"}(n.ExclusiveLockType||(n.ExclusiveLockType={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info"}(n.LogLevel||(n.LogLevel={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Windows=0]="Windows",e[e.Linux=1]="Linux"}(n.OperatingSystemType||(n.OperatingSystemType={}));!function(e){e[e.ConfigurationJob=0]="ConfigurationJob",e[e.SizingJob=1]="SizingJob",e[e.IncreaseCapacity=2]="IncreaseCapacity",e[e.Reimage=3]="Reimage",e[e.DeleteVMs=4]="DeleteVMs"}(n.OperationType||(n.OperationType={}));!function(e){e[e.Uniform=0]="Uniform",e[e.Flexible=1]="Flexible"}(n.OrchestrationType||(n.OrchestrationType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.Queued=0]="Queued",e[e.InUse=1]="InUse",e[e.Finished=2]="Finished",e[e.TimedOut=3]="TimedOut",e[e.Canceled=4]="Canceled",e[e.Abandoned=5]="Abandoned",e[e.WaitingOnChecks=6]="WaitingOnChecks"}(n.ResourceLockStatus||(n.ResourceLockStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Automatic=0]="Automatic",e[e.Manual=1]="Manual"}(n.StageTriggerType||(n.StageTriggerType={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.Task=1]="Task",e[e.Action=2]="Action"}(n.TaskAgentJobStepType||(n.TaskAgentJobStepType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.None=0]="None",e[e.ElasticPool=1]="ElasticPool",e[e.SingleUseAgents=2]="SingleUseAgents",e[e.PreserveAgentOnJobFailure=4]="PreserveAgentOnJobFailure"}(n.TaskAgentPoolOptions||(n.TaskAgentPoolOptions={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.None=0]="None",e[e.BumpRequestToTop=1]="BumpRequestToTop"}(n.TaskAgentRequestUpdateOptions||(n.TaskAgentRequestUpdateOptions={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired",e[e.Downgrade=3]="Downgrade"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Any=0]="Any",e[e.Restricted=1]="Restricted"}(n.TaskCommandMode||(n.TaskCommandMode={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed",e[e.Throttled=8]="Throttled"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned",e[e.ManuallyQueued=6]="ManuallyQueued",e[e.DependentOnManualQueue=7]="DependentOnManualQueue"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}));!function(e){e[e.None=0]="None",e[e.ProductionReadiness=1]="ProductionReadiness"}(n.YamlCheckType||(n.YamlCheckType={}))});
|
package/Test/Test.d.ts
CHANGED
|
@@ -999,6 +999,9 @@ export interface FunctionCoverage2 {
|
|
|
999
999
|
namespace: string;
|
|
1000
1000
|
sourceFile: string;
|
|
1001
1001
|
}
|
|
1002
|
+
export interface GenerateTestPlanFromWorkItemModel {
|
|
1003
|
+
userInstructions: string;
|
|
1004
|
+
}
|
|
1002
1005
|
export interface HttpPostedTcmAttachment {
|
|
1003
1006
|
attachmentContent: string;
|
|
1004
1007
|
contentLength: number;
|
package/TestPlan/TestPlan.d.ts
CHANGED
|
@@ -304,6 +304,22 @@ export interface CustomTestRunData {
|
|
|
304
304
|
* Pass rate of the run
|
|
305
305
|
*/
|
|
306
306
|
passRate: string;
|
|
307
|
+
/**
|
|
308
|
+
* Pipeline run Id where test run is executed. It can either be a build or a release.
|
|
309
|
+
*/
|
|
310
|
+
pipelineRunId: string;
|
|
311
|
+
/**
|
|
312
|
+
* Pipeline run name where test run is executed. It can either be a build or a release.
|
|
313
|
+
*/
|
|
314
|
+
pipelineRunName: string;
|
|
315
|
+
/**
|
|
316
|
+
* Release Id where test run is executed.
|
|
317
|
+
*/
|
|
318
|
+
releaseId: number;
|
|
319
|
+
/**
|
|
320
|
+
* Release Name where test run is executed.
|
|
321
|
+
*/
|
|
322
|
+
releaseUri: string;
|
|
307
323
|
/**
|
|
308
324
|
* Start date time of the run.
|
|
309
325
|
*/
|
|
@@ -611,6 +627,39 @@ export declare enum ResultState {
|
|
|
611
627
|
Completed = 5,
|
|
612
628
|
MaxValue = 5
|
|
613
629
|
}
|
|
630
|
+
/**
|
|
631
|
+
* This data model is used in SkinnyTestCaseResultDataProvider and provides the skinny TestCaseResultsData for a Test run
|
|
632
|
+
*/
|
|
633
|
+
export interface SkinnyTestCaseResultData {
|
|
634
|
+
/**
|
|
635
|
+
* Container to which test belongs.
|
|
636
|
+
*/
|
|
637
|
+
automatedTestStorage: string;
|
|
638
|
+
/**
|
|
639
|
+
* Reference to test configuration. Type ShallowReference.
|
|
640
|
+
*/
|
|
641
|
+
configuration: Test.ShallowReference;
|
|
642
|
+
/**
|
|
643
|
+
* ID of a test result.
|
|
644
|
+
*/
|
|
645
|
+
id: number;
|
|
646
|
+
/**
|
|
647
|
+
* Test outcome of test result. Valid values = (Unspecified, None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, NotExecuted, Warning, Error, NotApplicable, Paused, InProgress, NotImpacted)
|
|
648
|
+
*/
|
|
649
|
+
outcome: string;
|
|
650
|
+
/**
|
|
651
|
+
* Owner of the test case result.
|
|
652
|
+
*/
|
|
653
|
+
owner: WebApi.IdentityRef;
|
|
654
|
+
/**
|
|
655
|
+
* Priority of the test case result.
|
|
656
|
+
*/
|
|
657
|
+
priority: number;
|
|
658
|
+
/**
|
|
659
|
+
* Reference to the test executed.
|
|
660
|
+
*/
|
|
661
|
+
testCase: Test.ShallowReference;
|
|
662
|
+
}
|
|
614
663
|
/**
|
|
615
664
|
* Source Test Plan information for Test Plan clone operation
|
|
616
665
|
*/
|
|
@@ -776,6 +825,19 @@ export interface TestCaseAssociatedResultExtended extends TestCaseAssociatedResu
|
|
|
776
825
|
iterationPath: string;
|
|
777
826
|
owner: WebApi.IdentityRef;
|
|
778
827
|
}
|
|
828
|
+
/**
|
|
829
|
+
* Data for a test case.
|
|
830
|
+
*/
|
|
831
|
+
export interface TestCaseData {
|
|
832
|
+
/**
|
|
833
|
+
* Steps for the test case.
|
|
834
|
+
*/
|
|
835
|
+
steps: string;
|
|
836
|
+
/**
|
|
837
|
+
* Title of the test case.
|
|
838
|
+
*/
|
|
839
|
+
title: string;
|
|
840
|
+
}
|
|
779
841
|
/**
|
|
780
842
|
* Test Case Reference
|
|
781
843
|
*/
|
|
@@ -1122,6 +1184,31 @@ export interface TestPlanUpdateParams extends TestPlanCreateParams {
|
|
|
1122
1184
|
*/
|
|
1123
1185
|
revision: number;
|
|
1124
1186
|
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Parameters for creating a test plan with test cases.
|
|
1189
|
+
*/
|
|
1190
|
+
export interface TestPlanWithTestCasesCreateParams {
|
|
1191
|
+
/**
|
|
1192
|
+
* Area path for the test plan.
|
|
1193
|
+
*/
|
|
1194
|
+
areaPath: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* Feature work item ID associated with the test plan.
|
|
1197
|
+
*/
|
|
1198
|
+
featureWorkItemId: number;
|
|
1199
|
+
/**
|
|
1200
|
+
* List of test case data.
|
|
1201
|
+
*/
|
|
1202
|
+
testCaseData: TestCaseData[];
|
|
1203
|
+
/**
|
|
1204
|
+
* Description of the test plan.
|
|
1205
|
+
*/
|
|
1206
|
+
testPlanDescription: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* Name of the test plan.
|
|
1209
|
+
*/
|
|
1210
|
+
testPlanName: string;
|
|
1211
|
+
}
|
|
1125
1212
|
/**
|
|
1126
1213
|
* Test Point Class
|
|
1127
1214
|
*/
|
|
@@ -284,6 +284,13 @@ export declare class TestPlanRestClient extends RestClientBase {
|
|
|
284
284
|
* @param cloneOperationId - Operation ID returned when we queue a clone operation
|
|
285
285
|
*/
|
|
286
286
|
getCloneInformation(project: string, cloneOperationId: number): Promise<TestPlan.CloneTestPlanOperationInformation>;
|
|
287
|
+
/**
|
|
288
|
+
* Create a test plan with test cases by queueing a job.
|
|
289
|
+
*
|
|
290
|
+
* @param creationParams - Parameters for creating the test plan and test cases.
|
|
291
|
+
* @param project - Project ID or project name
|
|
292
|
+
*/
|
|
293
|
+
createTestPlanWithTestCases(creationParams: TestPlan.TestPlanWithTestCasesCreateParams, project: string): Promise<boolean>;
|
|
287
294
|
/**
|
|
288
295
|
* Get a particular Test Point from a suite.
|
|
289
296
|
*
|
|
@@ -968,6 +968,27 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
968
968
|
});
|
|
969
969
|
});
|
|
970
970
|
};
|
|
971
|
+
/**
|
|
972
|
+
* Create a test plan with test cases by queueing a job.
|
|
973
|
+
*
|
|
974
|
+
* @param creationParams - Parameters for creating the test plan and test cases.
|
|
975
|
+
* @param project - Project ID or project name
|
|
976
|
+
*/
|
|
977
|
+
TestPlanRestClient.prototype.createTestPlanWithTestCases = function (creationParams, project) {
|
|
978
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
979
|
+
return __generator(this, function (_a) {
|
|
980
|
+
return [2 /*return*/, this.beginRequest({
|
|
981
|
+
apiVersion: "7.2-preview.1",
|
|
982
|
+
method: "POST",
|
|
983
|
+
routeTemplate: "{project}/_apis/testplan/TestPlanWithTestCases",
|
|
984
|
+
routeValues: {
|
|
985
|
+
project: project
|
|
986
|
+
},
|
|
987
|
+
body: creationParams
|
|
988
|
+
})];
|
|
989
|
+
});
|
|
990
|
+
});
|
|
991
|
+
};
|
|
971
992
|
/**
|
|
972
993
|
* Get a particular Test Point from a suite.
|
|
973
994
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestConfguration=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={testConfiguartionId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.getTestConfigurationById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e,testConfigurationId:t}})]})})},t.prototype.getTestConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestConfiguration=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={testConfiguartionId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getTestEntityCountByPlanId=function(e,t,n,r,i,o,s,a){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={states:n,outcome:r,configurations:i,testers:o,assignedTo:s,entity:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Count/{planId}",routeValues:{project:e,planId:t},queryParams:u})]})})},t.prototype.createTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlanById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlans=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,a=this;return __generator(this,function(u){return s={owner:t,continuationToken:n,includePlanDetails:i,filterActivePlans:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.getSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={suiteEntryType:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:e,suiteId:t},queryParams:r})]})})},t.prototype.reorderSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:t,suiteId:n},body:e})]})})},t.prototype.createBulkTestSuites=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{parentSuiteId}/bulk",routeValues:{project:t,planId:n,parentSuiteId:r},body:e})]})})},t.prototype.createTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.deleteTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n}})]})})},t.prototype.getTestSuiteById=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={expand:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.getTestSuitesForPlan=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,a=this;return __generator(this,function(u){return s={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getSuitesByTestCaseId=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={testCaseId:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/testplan/Suites",queryParams:t})]})})},t.prototype.addTestCasesToSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getTestCase=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={witFields:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n,testCaseId:r},queryParams:s})]})})},t.prototype.getTestCaseList=function(e,t,n,i,o,s,a,u,p,c,l){return __awaiter(this,void 0,void 0,function(){var d,_=this;return __generator(this,function(h){return d={testIds:i,configurationIds:o,witFields:s,continuationToken:a,returnIdentityRef:u,expand:p,excludeFlags:c,isRecursive:l},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:d,returnRawResponse:!0}).then(function(e){return __awaiter(_,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.removeTestCasesFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testCaseIds:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.removeTestCasesListFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testIds:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.updateSuiteTestCases=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.cloneTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:t},body:e})]})})},t.prototype.getTestCaseCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.exportTestCases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testplan/TestCases/TestCaseFile",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.getDeletedTestPlans=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/recycleBin/TestPlan/{planId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.restoreDeletedTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/recycleBin/TestPlan/{planId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.cloneTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.getPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={pointId:r,returnIdentityRef:i,includePointDetails:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:s})]})})},t.prototype.getPointsList=function(e,t,n,i,o,s,a,u,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={testPointIds:i,testCaseId:o,continuationToken:s,returnIdentityRef:a,includePointDetails:u,isRecursive:p},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={includePointDetails:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:t,planId:n,suiteId:r},queryParams:s,body:e})]})})},t.prototype.getDeletedTestSuitesForPlan=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,a=this;return __generator(this,function(u){return s={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/recycleBin/TestPlan/{planId}/TestSuite/{suiteId}",routeValues:{project:e,planId:t},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getDeletedTestSuitesForProject=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o,s=this;return __generator(this,function(a){return o={expand:t,continuationToken:n,asTreeView:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",routeValues:{project:e},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.restoreDeletedTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",routeValues:{project:t,suiteId:n},body:e})]})})},t.prototype.cloneTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getSuiteCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.createTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariableById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariables=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestVariable=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t,testVariableId:n},body:e})]})})},t}(n.RestClientBase);t.TestPlanRestClient=i});
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestConfguration=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={testConfiguartionId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.getTestConfigurationById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e,testConfigurationId:t}})]})})},t.prototype.getTestConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestConfiguration=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={testConfiguartionId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getTestEntityCountByPlanId=function(e,t,n,r,i,o,s,a){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={states:n,outcome:r,configurations:i,testers:o,assignedTo:s,entity:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Count/{planId}",routeValues:{project:e,planId:t},queryParams:u})]})})},t.prototype.createTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlanById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlans=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,a=this;return __generator(this,function(u){return s={owner:t,continuationToken:n,includePlanDetails:i,filterActivePlans:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.getSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={suiteEntryType:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:e,suiteId:t},queryParams:r})]})})},t.prototype.reorderSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:t,suiteId:n},body:e})]})})},t.prototype.createBulkTestSuites=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{parentSuiteId}/bulk",routeValues:{project:t,planId:n,parentSuiteId:r},body:e})]})})},t.prototype.createTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.deleteTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n}})]})})},t.prototype.getTestSuiteById=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={expand:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.getTestSuitesForPlan=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,a=this;return __generator(this,function(u){return s={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getSuitesByTestCaseId=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={testCaseId:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/testplan/Suites",queryParams:t})]})})},t.prototype.addTestCasesToSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getTestCase=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={witFields:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n,testCaseId:r},queryParams:s})]})})},t.prototype.getTestCaseList=function(e,t,n,i,o,s,a,u,p,c,l){return __awaiter(this,void 0,void 0,function(){var d,_=this;return __generator(this,function(h){return d={testIds:i,configurationIds:o,witFields:s,continuationToken:a,returnIdentityRef:u,expand:p,excludeFlags:c,isRecursive:l},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:d,returnRawResponse:!0}).then(function(e){return __awaiter(_,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.removeTestCasesFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testCaseIds:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.removeTestCasesListFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testIds:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.updateSuiteTestCases=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.cloneTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:t},body:e})]})})},t.prototype.getTestCaseCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.exportTestCases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testplan/TestCases/TestCaseFile",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.getDeletedTestPlans=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/recycleBin/TestPlan/{planId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.restoreDeletedTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/recycleBin/TestPlan/{planId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.cloneTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.createTestPlanWithTestCases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/TestPlanWithTestCases",routeValues:{project:t},body:e})]})})},t.prototype.getPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={pointId:r,returnIdentityRef:i,includePointDetails:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:s})]})})},t.prototype.getPointsList=function(e,t,n,i,o,s,a,u,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={testPointIds:i,testCaseId:o,continuationToken:s,returnIdentityRef:a,includePointDetails:u,isRecursive:p},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={includePointDetails:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:t,planId:n,suiteId:r},queryParams:s,body:e})]})})},t.prototype.getDeletedTestSuitesForPlan=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,a=this;return __generator(this,function(u){return s={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/recycleBin/TestPlan/{planId}/TestSuite/{suiteId}",routeValues:{project:e,planId:t},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getDeletedTestSuitesForProject=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o,s=this;return __generator(this,function(a){return o={expand:t,continuationToken:n,asTreeView:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",routeValues:{project:e},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.restoreDeletedTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",routeValues:{project:t,suiteId:n},body:e})]})})},t.prototype.cloneTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getSuiteCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.createTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariableById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariables=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestVariable=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t,testVariableId:n},body:e})]})})},t}(n.RestClientBase);t.TestPlanRestClient=i});
|