azure-devops-extension-api 4.233.0 → 4.234.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/Alert/Alert.d.ts +30 -1
  2. package/Alert/Alert.js +22 -0
  3. package/Alert/Alert.min.js +1 -1
  4. package/Alert/AlertClient.d.ts +5 -3
  5. package/Alert/AlertClient.js +5 -3
  6. package/Alert/AlertClient.min.js +1 -1
  7. package/Build/Build.d.ts +6 -0
  8. package/Build/Build.js +6 -0
  9. package/Comments/Comments.d.ts +9 -0
  10. package/Comments/Comments.js +3 -0
  11. package/Core/Core.d.ts +18 -0
  12. package/Dashboard/Dashboard.d.ts +6 -0
  13. package/Dashboard/Dashboard.js +6 -0
  14. package/ExtensionManagement/ExtensionManagementClient.d.ts +8 -6
  15. package/ExtensionManagement/ExtensionManagementClient.js +8 -6
  16. package/FileContainer/FileContainerClient.d.ts +12 -10
  17. package/FileContainer/FileContainerClient.js +12 -10
  18. package/Gallery/Gallery.d.ts +13 -14
  19. package/Gallery/Gallery.js +0 -13
  20. package/Gallery/Gallery.min.js +1 -1
  21. package/Gallery/GalleryClient.d.ts +12 -1
  22. package/Gallery/GalleryClient.js +38 -1
  23. package/Gallery/GalleryClient.min.js +1 -1
  24. package/Git/Git.d.ts +3 -0
  25. package/Git/GitClient.d.ts +4 -2
  26. package/Git/GitClient.js +4 -2
  27. package/Graph/GraphClient.d.ts +5 -1
  28. package/Graph/GraphClient.js +5 -1
  29. package/Management/ManagementClient.d.ts +6 -0
  30. package/Management/ManagementClient.js +6 -0
  31. package/Notification/Notification.d.ts +9 -0
  32. package/Notification/Notification.js +6 -0
  33. package/Release/Release.d.ts +33 -0
  34. package/Release/Release.js +3 -0
  35. package/Release/ReleaseClient.d.ts +18 -16
  36. package/Release/ReleaseClient.js +17 -15
  37. package/Test/Test.d.ts +89 -14
  38. package/Test/Test.js +23 -15
  39. package/Test/Test.min.js +1 -1
  40. package/TestResults/TestResultsClient.d.ts +48 -29
  41. package/TestResults/TestResultsClient.js +110 -77
  42. package/TestResults/TestResultsClient.min.js +1 -1
  43. package/WorkItemTracking/WorkItemTracking.d.ts +6 -3
  44. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +9 -0
  45. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +9 -0
  46. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -0
  47. package/package.json +1 -1
package/Test/Test.d.ts CHANGED
@@ -954,20 +954,6 @@ export interface LastResultDetails {
954
954
  */
955
955
  runBy: WebApi.IdentityRef;
956
956
  }
957
- export declare enum LayoutType {
958
- /**
959
- * Default
960
- */
961
- None = 0,
962
- /**
963
- * Entry type for Group information
964
- */
965
- Group = 1,
966
- /**
967
- * Entry type for Job information
968
- */
969
- Job = 2
970
- }
971
957
  export interface LegacyBuildConfiguration {
972
958
  branchName: string;
973
959
  buildConfigurationId: number;
@@ -1322,6 +1308,10 @@ export interface PipelineReference {
1322
1308
  * Reference of the phase.
1323
1309
  */
1324
1310
  phaseReference: PhaseReference;
1311
+ /**
1312
+ * Reference of the BuildDefinitionId.
1313
+ */
1314
+ pipelineDefinitionId: number;
1325
1315
  /**
1326
1316
  * Reference of the pipeline with which this pipeline instance is related.
1327
1317
  */
@@ -4257,6 +4247,81 @@ export interface TestResultsQuery {
4257
4247
  results: TestCaseResult[];
4258
4248
  resultsFilter: ResultsFilter;
4259
4249
  }
4250
+ /**
4251
+ * The TestResultSession is a higher-level container for test results by encapsulating multiple TestRun objects
4252
+ */
4253
+ export interface TestResultsSession {
4254
+ /**
4255
+ * TestResultsSession end time
4256
+ */
4257
+ endTimeUTC: Date;
4258
+ /**
4259
+ * TestResultsSession layout
4260
+ */
4261
+ layout: any[];
4262
+ /**
4263
+ * TestResultsSession name
4264
+ */
4265
+ name: string;
4266
+ /**
4267
+ * TestResultsSession result
4268
+ */
4269
+ result: SessionResult;
4270
+ /**
4271
+ * TestResultsSession source pipeline details
4272
+ */
4273
+ sessionSourcePipeline: SessionSourcePipeline;
4274
+ /**
4275
+ * TestResultsSession source
4276
+ */
4277
+ source: Source;
4278
+ /**
4279
+ * TestResultsSession start time
4280
+ */
4281
+ startTimeUTC: Date;
4282
+ /**
4283
+ * TestResultsSession state
4284
+ */
4285
+ state: TestResultsSessionState;
4286
+ /**
4287
+ * List of test run ids
4288
+ */
4289
+ testRuns: number[];
4290
+ /**
4291
+ * TestResultsSession timeline
4292
+ */
4293
+ timeline: Timeline<SessionTimelineType>[];
4294
+ /**
4295
+ * TestResultsSession type
4296
+ */
4297
+ type: string;
4298
+ /**
4299
+ * TestResultsSession Uid
4300
+ */
4301
+ uid: string;
4302
+ }
4303
+ export declare enum TestResultsSessionState {
4304
+ /**
4305
+ * Default
4306
+ */
4307
+ None = 0,
4308
+ /**
4309
+ * Session state with Running
4310
+ */
4311
+ Running = 1,
4312
+ /**
4313
+ * Session state with Completed
4314
+ */
4315
+ Completed = 2,
4316
+ /**
4317
+ * Session state with Waiting
4318
+ */
4319
+ Waiting = 3,
4320
+ /**
4321
+ * Session state with Cancelled
4322
+ */
4323
+ Cancelled = 4
4324
+ }
4260
4325
  export interface TestResultsSettings {
4261
4326
  /**
4262
4327
  * IsRequired and EmitDefaultValue are passed as false as if users doesn't pass anything, should not come for serialisation and deserialisation.
@@ -4784,6 +4849,16 @@ export interface TestSession {
4784
4849
  */
4785
4850
  url: string;
4786
4851
  }
4852
+ export interface TestSessionEnvironment {
4853
+ /**
4854
+ * Environment display name
4855
+ */
4856
+ displayName: string;
4857
+ /**
4858
+ * Processor architecture
4859
+ */
4860
+ processorArchitecture: string;
4861
+ }
4787
4862
  export interface TestSessionExploredWorkItemReference extends TestSessionWorkItemReference {
4788
4863
  /**
4789
4864
  * Workitem references of workitems filed as a part of the current workitem exploration.
package/Test/Test.js CHANGED
@@ -235,21 +235,6 @@ define(["require", "exports"], function (require, exports) {
235
235
  */
236
236
  FlakyDetectionType[FlakyDetectionType["System"] = 2] = "System";
237
237
  })(FlakyDetectionType = exports.FlakyDetectionType || (exports.FlakyDetectionType = {}));
238
- var LayoutType;
239
- (function (LayoutType) {
240
- /**
241
- * Default
242
- */
243
- LayoutType[LayoutType["None"] = 0] = "None";
244
- /**
245
- * Entry type for Group information
246
- */
247
- LayoutType[LayoutType["Group"] = 1] = "Group";
248
- /**
249
- * Entry type for Job information
250
- */
251
- LayoutType[LayoutType["Job"] = 2] = "Job";
252
- })(LayoutType = exports.LayoutType || (exports.LayoutType = {}));
253
238
  /**
254
239
  * Test summary metrics.
255
240
  */
@@ -785,6 +770,29 @@ define(["require", "exports"], function (require, exports) {
785
770
  TestResultsContextType[TestResultsContextType["Release"] = 2] = "Release";
786
771
  TestResultsContextType[TestResultsContextType["Pipeline"] = 3] = "Pipeline";
787
772
  })(TestResultsContextType = exports.TestResultsContextType || (exports.TestResultsContextType = {}));
773
+ var TestResultsSessionState;
774
+ (function (TestResultsSessionState) {
775
+ /**
776
+ * Default
777
+ */
778
+ TestResultsSessionState[TestResultsSessionState["None"] = 0] = "None";
779
+ /**
780
+ * Session state with Running
781
+ */
782
+ TestResultsSessionState[TestResultsSessionState["Running"] = 1] = "Running";
783
+ /**
784
+ * Session state with Completed
785
+ */
786
+ TestResultsSessionState[TestResultsSessionState["Completed"] = 2] = "Completed";
787
+ /**
788
+ * Session state with Waiting
789
+ */
790
+ TestResultsSessionState[TestResultsSessionState["Waiting"] = 3] = "Waiting";
791
+ /**
792
+ * Session state with Cancelled
793
+ */
794
+ TestResultsSessionState[TestResultsSessionState["Cancelled"] = 4] = "Cancelled";
795
+ })(TestResultsSessionState = exports.TestResultsSessionState || (exports.TestResultsSessionState = {}));
788
796
  var TestResultsSettingsType;
789
797
  (function (TestResultsSettingsType) {
790
798
  /**
package/Test/Test.min.js CHANGED
@@ -1 +1 @@
1
- define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.GeneralAttachment=0]="GeneralAttachment",e[e.AfnStrip=1]="AfnStrip",e[e.BugFilingData=2]="BugFilingData",e[e.CodeCoverage=3]="CodeCoverage",e[e.IntermediateCollectorData=4]="IntermediateCollectorData",e[e.RunConfig=5]="RunConfig",e[e.TestImpactDetails=6]="TestImpactDetails",e[e.TmiTestRunDeploymentFiles=7]="TmiTestRunDeploymentFiles",e[e.TmiTestRunReverseDeploymentFiles=8]="TmiTestRunReverseDeploymentFiles",e[e.TmiTestResultDetail=9]="TmiTestResultDetail",e[e.TmiTestRunSummary=10]="TmiTestRunSummary",e[e.ConsoleLog=11]="ConsoleLog"}(t.AttachmentType||(t.AttachmentType={}));!function(e){e[e.Failed=2]="Failed",e[e.InProgress=1]="InProgress",e[e.Queued=0]="Queued",e[e.Succeeded=3]="Succeeded"}(t.CloneOperationState||(t.CloneOperationState={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Finalized=2]="Finalized",e[e.Pending=3]="Pending",e[e.UpdateRequestQueued=4]="UpdateRequestQueued",e[e.NoModulesFound=5]="NoModulesFound",e[e.NumberOfFilesExceeded=6]="NumberOfFilesExceeded",e[e.NoInputFiles=7]="NoInputFiles",e[e.BuildCancelled=8]="BuildCancelled",e[e.FailedJobs=9]="FailedJobs",e[e.ModuleMergeJobTimeout=10]="ModuleMergeJobTimeout",e[e.CodeCoverageSuccess=11]="CodeCoverageSuccess",e[e.InvalidBuildConfiguration=12]="InvalidBuildConfiguration",e[e.CoverageAnalyzerBuildNotFound=13]="CoverageAnalyzerBuildNotFound",e[e.FailedToRequeue=14]="FailedToRequeue",e[e.BuildBailedOut=15]="BuildBailedOut",e[e.NoCodeCoverageTask=16]="NoCodeCoverageTask",e[e.MergeJobFailed=17]="MergeJobFailed",e[e.MergeInvokerJobFailed=18]="MergeInvokerJobFailed",e[e.MonitorJobFailed=19]="MonitorJobFailed",e[e.ModuleMergeInvokerJobTimeout=20]="ModuleMergeInvokerJobTimeout",e[e.MonitorJobTimeout=21]="MonitorJobTimeout",e[e.InvalidCoverageInput=22]="InvalidCoverageInput"}(t.CoverageDetailedSummaryStatus||(t.CoverageDetailedSummaryStatus={}));!function(e){e[e.Modules=1]="Modules",e[e.Functions=2]="Functions",e[e.BlockData=4]="BlockData"}(t.CoverageQueryFlags||(t.CoverageQueryFlags={}));!function(e){e[e.Covered=0]="Covered",e[e.NotCovered=1]="NotCovered",e[e.PartiallyCovered=2]="PartiallyCovered"}(t.CoverageStatus||(t.CoverageStatus={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Finalized=3]="Finalized",e[e.Pending=4]="Pending",e[e.UpdateRequestQueued=5]="UpdateRequestQueued"}(t.CoverageSummaryStatus||(t.CoverageSummaryStatus={}));!function(e){e[e.None=0]="None",e[e.TestRun=1]="TestRun",e[e.TestResult=2]="TestResult",e[e.System=4]="System",e[e.All=7]="All"}(t.CustomTestFieldScope||(t.CustomTestFieldScope={}));!function(e){e[e.Bit=2]="Bit",e[e.DateTime=4]="DateTime",e[e.Int=8]="Int",e[e.Float=6]="Float",e[e.String=12]="String",e[e.Guid=14]="Guid"}(t.CustomTestFieldType||(t.CustomTestFieldType={}));!function(e){e[e.Custom=1]="Custom",e[e.System=2]="System"}(t.FlakyDetectionType||(t.FlakyDetectionType={}));!function(e){e[e.None=0]="None",e[e.Group=1]="Group",e[e.Job=2]="Job"}(t.LayoutType||(t.LayoutType={}));!function(e){e[e.All=1]="All",e[e.ResultSummary=2]="ResultSummary",e[e.ResultsAnalysis=3]="ResultsAnalysis",e[e.RunSummary=4]="RunSummary"}(t.Metrics||(t.Metrics={}));!function(e){e[e.None=0]="None",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e[e.Waiting=3]="Waiting",e[e.Cancelled=4]="Cancelled"}(t.OneMRXSessionState||(t.OneMRXSessionState={}));!function(e){e[e.Add=1]="Add",e[e.Delete=2]="Delete"}(t.OperationType||(t.OperationType={}));!function(e){e[e.None=0]="None",e[e.Iterations=1]="Iterations",e[e.WorkItems=2]="WorkItems",e[e.SubResults=4]="SubResults",e[e.Point=8]="Point"}(t.ResultDetails||(t.ResultDetails={}));!function(e){e[e.None=0]="None",e[e.Rerun=1]="Rerun",e[e.DataDriven=2]="DataDriven",e[e.OrderedTest=3]="OrderedTest",e[e.Generic=4]="Generic"}(t.ResultGroupType||(t.ResultGroupType={}));!function(e){e[e.Rerun=1]="Rerun",e[e.Flaky=2]="Flaky"}(t.ResultMetadata||(t.ResultMetadata={}));!function(e){e[e.None=0]="None",e[e.FlakyIdentifiers=1]="FlakyIdentifiers"}(t.ResultMetaDataDetails||(t.ResultMetaDataDetails={}));!function(e){e[e.TestSuite=0]="TestSuite",e[e.TestPlan=1]="TestPlan"}(t.ResultObjectType||(t.ResultObjectType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.Normal=1]="Normal",e[e.Blocking=2]="Blocking",e[e.Web=4]="Web",e[e.MtrRunInitiatedFromWeb=8]="MtrRunInitiatedFromWeb",e[e.RunWithDtlEnv=16]="RunWithDtlEnv",e[e.NoConfigRun=32]="NoConfigRun"}(t.RunType||(t.RunType={}));!function(e){e[e.Any=0]="Any",e[e.Tcm=1]="Tcm",e[e.Tfs=2]="Tfs"}(t.Service||(t.Service={}));!function(e){e[e.None=0]="None",e[e.SessionInfo=1]="SessionInfo"}(t.SessionLinkType||(t.SessionLinkType={}));!function(e){e[e.None=0]="None",e[e.Passed=1]="Passed",e[e.Failed=2]="Failed"}(t.SessionResult||(t.SessionResult={}));!function(e){e[e.None=0]="None",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Started=3]="Started"}(t.SessionTimelineType||(t.SessionTimelineType={}));!function(e){e[e.Children=1]="Children",e[e.DefaultTesters=2]="DefaultTesters"}(t.SuiteExpand||(t.SuiteExpand={}));!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(t.TCMServiceDataMigrationStatus||(t.TCMServiceDataMigrationStatus={}));!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(t.TestConfigurationState||(t.TestConfigurationState={}));!function(e){e[e.Run=0]="Run",e[e.Build=1]="Build",e[e.Release=2]="Release"}(t.TestLogScope||(t.TestLogScope={}));!function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.FileAlreadyExists=2]="FileAlreadyExists",e[e.InvalidInput=3]="InvalidInput",e[e.InvalidFileName=4]="InvalidFileName",e[e.InvalidContainer=5]="InvalidContainer",e[e.TransferFailed=6]="TransferFailed",e[e.FeatureDisabled=7]="FeatureDisabled",e[e.BuildDoesNotExist=8]="BuildDoesNotExist",e[e.RunDoesNotExist=9]="RunDoesNotExist",e[e.ContainerNotCreated=10]="ContainerNotCreated",e[e.APINotSupported=11]="APINotSupported",e[e.FileSizeExceeds=12]="FileSizeExceeds",e[e.ContainerNotFound=13]="ContainerNotFound",e[e.FileNotFound=14]="FileNotFound",e[e.DirectoryNotFound=15]="DirectoryNotFound",e[e.StorageCapacityExceeded=16]="StorageCapacityExceeded"}(t.TestLogStatusCode||(t.TestLogStatusCode={}));!function(e){e[e.Root=1]="Root",e[e.File=2]="File"}(t.TestLogStoreEndpointType||(t.TestLogStoreEndpointType={}));!function(e){e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.ReadAndCreate=3]="ReadAndCreate"}(t.TestLogStoreOperationType||(t.TestLogStoreOperationType={}));!function(e){e[e.GeneralAttachment=1]="GeneralAttachment",e[e.CodeCoverage=2]="CodeCoverage",e[e.TestImpact=3]="TestImpact",e[e.Intermediate=4]="Intermediate",e[e.System=5]="System",e[e.MergedCoverageFile=6]="MergedCoverageFile"}(t.TestLogType||(t.TestLogType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.None=1]="None",e[e.Passed=2]="Passed",e[e.Failed=3]="Failed",e[e.Inconclusive=4]="Inconclusive",e[e.Timeout=5]="Timeout",e[e.Aborted=6]="Aborted",e[e.Blocked=7]="Blocked",e[e.NotExecuted=8]="NotExecuted",e[e.Warning=9]="Warning",e[e.Error=10]="Error",e[e.NotApplicable=11]="NotApplicable",e[e.Paused=12]="Paused",e[e.InProgress=13]="InProgress",e[e.NotImpacted=14]="NotImpacted",e[e.MaxValue=14]="MaxValue"}(t.TestOutcome||(t.TestOutcome={}));!function(e){e[e.None=0]="None",e[e.Ready=1]="Ready",e[e.Completed=2]="Completed",e[e.NotReady=3]="NotReady",e[e.InProgress=4]="InProgress",e[e.MaxValue=4]="MaxValue"}(t.TestPointState||(t.TestPointState={}));!function(e){e[e.Branch=1]="Branch",e[e.Environment=2]="Environment"}(t.TestResultGroupBy||(t.TestResultGroupBy={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.Pipeline=3]="Pipeline"}(t.TestResultsContextType||(t.TestResultsContextType={}));!function(e){e[e.All=1]="All",e[e.Flaky=2]="Flaky",e[e.NewTestLogging=3]="NewTestLogging"}(t.TestResultsSettingsType||(t.TestResultsSettingsType={}));!function(e){e[e.Passed=0]="Passed",e[e.Failed=1]="Failed",e[e.NotImpacted=2]="NotImpacted",e[e.Others=3]="Others"}(t.TestRunOutcome||(t.TestRunOutcome={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.All=3]="All"}(t.TestRunPublishContext||(t.TestRunPublishContext={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Aborted=4]="Aborted",e[e.Waiting=5]="Waiting",e[e.NeedsInvestigation=6]="NeedsInvestigation"}(t.TestRunState||(t.TestRunState={}));!function(e){e[e.None=0]="None",e[e.CreatingEnvironment=1]="CreatingEnvironment",e[e.RunningTests=2]="RunningTests",e[e.CanceledByUser=3]="CanceledByUser",e[e.AbortedBySystem=4]="AbortedBySystem",e[e.TimedOut=5]="TimedOut",e[e.PendingAnalysis=6]="PendingAnalysis",e[e.Analyzed=7]="Analyzed",e[e.CancellationInProgress=8]="CancellationInProgress"}(t.TestRunSubstate||(t.TestRunSubstate={}));!function(e){e[e.Unknown=0]="Unknown",e[e.XTDesktop=1]="XTDesktop",e[e.FeedbackDesktop=2]="FeedbackDesktop",e[e.XTWeb=3]="XTWeb",e[e.FeedbackWeb=4]="FeedbackWeb",e[e.XTDesktop2=5]="XTDesktop2",e[e.SessionInsightsForAll=6]="SessionInsightsForAll"}(t.TestSessionSource||(t.TestSessionSource={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Paused=3]="Paused",e[e.Completed=4]="Completed",e[e.Declined=5]="Declined"}(t.TestSessionState||(t.TestSessionState={}))});
1
+ define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.GeneralAttachment=0]="GeneralAttachment",e[e.AfnStrip=1]="AfnStrip",e[e.BugFilingData=2]="BugFilingData",e[e.CodeCoverage=3]="CodeCoverage",e[e.IntermediateCollectorData=4]="IntermediateCollectorData",e[e.RunConfig=5]="RunConfig",e[e.TestImpactDetails=6]="TestImpactDetails",e[e.TmiTestRunDeploymentFiles=7]="TmiTestRunDeploymentFiles",e[e.TmiTestRunReverseDeploymentFiles=8]="TmiTestRunReverseDeploymentFiles",e[e.TmiTestResultDetail=9]="TmiTestResultDetail",e[e.TmiTestRunSummary=10]="TmiTestRunSummary",e[e.ConsoleLog=11]="ConsoleLog"}(t.AttachmentType||(t.AttachmentType={}));!function(e){e[e.Failed=2]="Failed",e[e.InProgress=1]="InProgress",e[e.Queued=0]="Queued",e[e.Succeeded=3]="Succeeded"}(t.CloneOperationState||(t.CloneOperationState={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Finalized=2]="Finalized",e[e.Pending=3]="Pending",e[e.UpdateRequestQueued=4]="UpdateRequestQueued",e[e.NoModulesFound=5]="NoModulesFound",e[e.NumberOfFilesExceeded=6]="NumberOfFilesExceeded",e[e.NoInputFiles=7]="NoInputFiles",e[e.BuildCancelled=8]="BuildCancelled",e[e.FailedJobs=9]="FailedJobs",e[e.ModuleMergeJobTimeout=10]="ModuleMergeJobTimeout",e[e.CodeCoverageSuccess=11]="CodeCoverageSuccess",e[e.InvalidBuildConfiguration=12]="InvalidBuildConfiguration",e[e.CoverageAnalyzerBuildNotFound=13]="CoverageAnalyzerBuildNotFound",e[e.FailedToRequeue=14]="FailedToRequeue",e[e.BuildBailedOut=15]="BuildBailedOut",e[e.NoCodeCoverageTask=16]="NoCodeCoverageTask",e[e.MergeJobFailed=17]="MergeJobFailed",e[e.MergeInvokerJobFailed=18]="MergeInvokerJobFailed",e[e.MonitorJobFailed=19]="MonitorJobFailed",e[e.ModuleMergeInvokerJobTimeout=20]="ModuleMergeInvokerJobTimeout",e[e.MonitorJobTimeout=21]="MonitorJobTimeout",e[e.InvalidCoverageInput=22]="InvalidCoverageInput"}(t.CoverageDetailedSummaryStatus||(t.CoverageDetailedSummaryStatus={}));!function(e){e[e.Modules=1]="Modules",e[e.Functions=2]="Functions",e[e.BlockData=4]="BlockData"}(t.CoverageQueryFlags||(t.CoverageQueryFlags={}));!function(e){e[e.Covered=0]="Covered",e[e.NotCovered=1]="NotCovered",e[e.PartiallyCovered=2]="PartiallyCovered"}(t.CoverageStatus||(t.CoverageStatus={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Finalized=3]="Finalized",e[e.Pending=4]="Pending",e[e.UpdateRequestQueued=5]="UpdateRequestQueued"}(t.CoverageSummaryStatus||(t.CoverageSummaryStatus={}));!function(e){e[e.None=0]="None",e[e.TestRun=1]="TestRun",e[e.TestResult=2]="TestResult",e[e.System=4]="System",e[e.All=7]="All"}(t.CustomTestFieldScope||(t.CustomTestFieldScope={}));!function(e){e[e.Bit=2]="Bit",e[e.DateTime=4]="DateTime",e[e.Int=8]="Int",e[e.Float=6]="Float",e[e.String=12]="String",e[e.Guid=14]="Guid"}(t.CustomTestFieldType||(t.CustomTestFieldType={}));!function(e){e[e.Custom=1]="Custom",e[e.System=2]="System"}(t.FlakyDetectionType||(t.FlakyDetectionType={}));!function(e){e[e.All=1]="All",e[e.ResultSummary=2]="ResultSummary",e[e.ResultsAnalysis=3]="ResultsAnalysis",e[e.RunSummary=4]="RunSummary"}(t.Metrics||(t.Metrics={}));!function(e){e[e.None=0]="None",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e[e.Waiting=3]="Waiting",e[e.Cancelled=4]="Cancelled"}(t.OneMRXSessionState||(t.OneMRXSessionState={}));!function(e){e[e.Add=1]="Add",e[e.Delete=2]="Delete"}(t.OperationType||(t.OperationType={}));!function(e){e[e.None=0]="None",e[e.Iterations=1]="Iterations",e[e.WorkItems=2]="WorkItems",e[e.SubResults=4]="SubResults",e[e.Point=8]="Point"}(t.ResultDetails||(t.ResultDetails={}));!function(e){e[e.None=0]="None",e[e.Rerun=1]="Rerun",e[e.DataDriven=2]="DataDriven",e[e.OrderedTest=3]="OrderedTest",e[e.Generic=4]="Generic"}(t.ResultGroupType||(t.ResultGroupType={}));!function(e){e[e.Rerun=1]="Rerun",e[e.Flaky=2]="Flaky"}(t.ResultMetadata||(t.ResultMetadata={}));!function(e){e[e.None=0]="None",e[e.FlakyIdentifiers=1]="FlakyIdentifiers"}(t.ResultMetaDataDetails||(t.ResultMetaDataDetails={}));!function(e){e[e.TestSuite=0]="TestSuite",e[e.TestPlan=1]="TestPlan"}(t.ResultObjectType||(t.ResultObjectType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.Normal=1]="Normal",e[e.Blocking=2]="Blocking",e[e.Web=4]="Web",e[e.MtrRunInitiatedFromWeb=8]="MtrRunInitiatedFromWeb",e[e.RunWithDtlEnv=16]="RunWithDtlEnv",e[e.NoConfigRun=32]="NoConfigRun"}(t.RunType||(t.RunType={}));!function(e){e[e.Any=0]="Any",e[e.Tcm=1]="Tcm",e[e.Tfs=2]="Tfs"}(t.Service||(t.Service={}));!function(e){e[e.None=0]="None",e[e.SessionInfo=1]="SessionInfo"}(t.SessionLinkType||(t.SessionLinkType={}));!function(e){e[e.None=0]="None",e[e.Passed=1]="Passed",e[e.Failed=2]="Failed"}(t.SessionResult||(t.SessionResult={}));!function(e){e[e.None=0]="None",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Started=3]="Started"}(t.SessionTimelineType||(t.SessionTimelineType={}));!function(e){e[e.Children=1]="Children",e[e.DefaultTesters=2]="DefaultTesters"}(t.SuiteExpand||(t.SuiteExpand={}));!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(t.TCMServiceDataMigrationStatus||(t.TCMServiceDataMigrationStatus={}));!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(t.TestConfigurationState||(t.TestConfigurationState={}));!function(e){e[e.Run=0]="Run",e[e.Build=1]="Build",e[e.Release=2]="Release"}(t.TestLogScope||(t.TestLogScope={}));!function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.FileAlreadyExists=2]="FileAlreadyExists",e[e.InvalidInput=3]="InvalidInput",e[e.InvalidFileName=4]="InvalidFileName",e[e.InvalidContainer=5]="InvalidContainer",e[e.TransferFailed=6]="TransferFailed",e[e.FeatureDisabled=7]="FeatureDisabled",e[e.BuildDoesNotExist=8]="BuildDoesNotExist",e[e.RunDoesNotExist=9]="RunDoesNotExist",e[e.ContainerNotCreated=10]="ContainerNotCreated",e[e.APINotSupported=11]="APINotSupported",e[e.FileSizeExceeds=12]="FileSizeExceeds",e[e.ContainerNotFound=13]="ContainerNotFound",e[e.FileNotFound=14]="FileNotFound",e[e.DirectoryNotFound=15]="DirectoryNotFound",e[e.StorageCapacityExceeded=16]="StorageCapacityExceeded"}(t.TestLogStatusCode||(t.TestLogStatusCode={}));!function(e){e[e.Root=1]="Root",e[e.File=2]="File"}(t.TestLogStoreEndpointType||(t.TestLogStoreEndpointType={}));!function(e){e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.ReadAndCreate=3]="ReadAndCreate"}(t.TestLogStoreOperationType||(t.TestLogStoreOperationType={}));!function(e){e[e.GeneralAttachment=1]="GeneralAttachment",e[e.CodeCoverage=2]="CodeCoverage",e[e.TestImpact=3]="TestImpact",e[e.Intermediate=4]="Intermediate",e[e.System=5]="System",e[e.MergedCoverageFile=6]="MergedCoverageFile"}(t.TestLogType||(t.TestLogType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.None=1]="None",e[e.Passed=2]="Passed",e[e.Failed=3]="Failed",e[e.Inconclusive=4]="Inconclusive",e[e.Timeout=5]="Timeout",e[e.Aborted=6]="Aborted",e[e.Blocked=7]="Blocked",e[e.NotExecuted=8]="NotExecuted",e[e.Warning=9]="Warning",e[e.Error=10]="Error",e[e.NotApplicable=11]="NotApplicable",e[e.Paused=12]="Paused",e[e.InProgress=13]="InProgress",e[e.NotImpacted=14]="NotImpacted",e[e.MaxValue=14]="MaxValue"}(t.TestOutcome||(t.TestOutcome={}));!function(e){e[e.None=0]="None",e[e.Ready=1]="Ready",e[e.Completed=2]="Completed",e[e.NotReady=3]="NotReady",e[e.InProgress=4]="InProgress",e[e.MaxValue=4]="MaxValue"}(t.TestPointState||(t.TestPointState={}));!function(e){e[e.Branch=1]="Branch",e[e.Environment=2]="Environment"}(t.TestResultGroupBy||(t.TestResultGroupBy={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.Pipeline=3]="Pipeline"}(t.TestResultsContextType||(t.TestResultsContextType={}));!function(e){e[e.None=0]="None",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e[e.Waiting=3]="Waiting",e[e.Cancelled=4]="Cancelled"}(t.TestResultsSessionState||(t.TestResultsSessionState={}));!function(e){e[e.All=1]="All",e[e.Flaky=2]="Flaky",e[e.NewTestLogging=3]="NewTestLogging"}(t.TestResultsSettingsType||(t.TestResultsSettingsType={}));!function(e){e[e.Passed=0]="Passed",e[e.Failed=1]="Failed",e[e.NotImpacted=2]="NotImpacted",e[e.Others=3]="Others"}(t.TestRunOutcome||(t.TestRunOutcome={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.All=3]="All"}(t.TestRunPublishContext||(t.TestRunPublishContext={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Aborted=4]="Aborted",e[e.Waiting=5]="Waiting",e[e.NeedsInvestigation=6]="NeedsInvestigation"}(t.TestRunState||(t.TestRunState={}));!function(e){e[e.None=0]="None",e[e.CreatingEnvironment=1]="CreatingEnvironment",e[e.RunningTests=2]="RunningTests",e[e.CanceledByUser=3]="CanceledByUser",e[e.AbortedBySystem=4]="AbortedBySystem",e[e.TimedOut=5]="TimedOut",e[e.PendingAnalysis=6]="PendingAnalysis",e[e.Analyzed=7]="Analyzed",e[e.CancellationInProgress=8]="CancellationInProgress"}(t.TestRunSubstate||(t.TestRunSubstate={}));!function(e){e[e.Unknown=0]="Unknown",e[e.XTDesktop=1]="XTDesktop",e[e.FeedbackDesktop=2]="FeedbackDesktop",e[e.XTWeb=3]="XTWeb",e[e.FeedbackWeb=4]="FeedbackWeb",e[e.XTDesktop2=5]="XTDesktop2",e[e.SessionInsightsForAll=6]="SessionInsightsForAll"}(t.TestSessionSource||(t.TestSessionSource={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Paused=3]="Paused",e[e.Completed=4]="Completed",e[e.Declined=5]="Declined"}(t.TestSessionState||(t.TestSessionState={}))});
@@ -160,6 +160,8 @@ export declare class TestResultsRestClient extends RestClientBase {
160
160
  */
161
161
  getBuildCodeCoverage(project: string, buildId: number, flags: number): Promise<Test.BuildCoverage[]>;
162
162
  /**
163
+ * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10&deltaBuildId=9 Request: build id and delta build id (optional)
164
+ *
163
165
  * @param project - Project ID or project name
164
166
  * @param buildId -
165
167
  * @param deltaBuildId -
@@ -210,27 +212,6 @@ export declare class TestResultsRestClient extends RestClientBase {
210
212
  * @param groupByNode - Group summary for each node of the pipleine heirarchy
211
213
  */
212
214
  getTestPipelineMetrics(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, metricNames?: Test.Metrics[], groupByNode?: boolean): Promise<Test.PipelineTestMetrics>;
213
- /**
214
- * Creates OneMRX Session object in TCM data store
215
- *
216
- * @param session - Received session object.
217
- * @param project - Project ID or project name
218
- */
219
- createOneMRXTestSession(session: Test.Session, project: string): Promise<number>;
220
- /**
221
- * Retrieves OneMRX Session metadata object in TCM data store
222
- *
223
- * @param project - Project ID or project name
224
- * @param buildId -
225
- */
226
- getOneMRXTestSession(project: string, buildId: number): Promise<Test.Session[]>;
227
- /**
228
- * Retrieves OneMRX Session Layout object in TCM data store
229
- *
230
- * @param project - Project ID or project name
231
- * @param sessionId -
232
- */
233
- getOneMRXTestSessionLayout(project: string, sessionId: string): Promise<any[]>;
234
215
  /**
235
216
  * @param project - Project ID or project name
236
217
  * @param buildId -
@@ -535,31 +516,41 @@ export declare class TestResultsRestClient extends RestClientBase {
535
516
  */
536
517
  getCoverageStatusBadge(project: string, definition: string, branchName?: string, label?: string): Promise<string>;
537
518
  /**
519
+ * Get all the tags in a build.
520
+ *
538
521
  * @param project - Project ID or project name
539
- * @param buildId -
522
+ * @param buildId - Build ID
540
523
  */
541
524
  getTestTagsForBuild(project: string, buildId: number): Promise<Test.TestTag[]>;
542
525
  /**
526
+ * Get all the tags in a release.
527
+ *
543
528
  * @param project - Project ID or project name
544
- * @param releaseId -
545
- * @param releaseEnvId -
529
+ * @param releaseId - Release ID
530
+ * @param releaseEnvId - Release environment ID
546
531
  */
547
532
  getTestTagsForRelease(project: string, releaseId: number, releaseEnvId: number): Promise<Test.TestTag[]>;
548
533
  /**
549
- * @param testTagsUpdateModel -
534
+ * Update tags of a run, Tags can be Added and Deleted
535
+ *
536
+ * @param testTagsUpdateModel - TestTagsUpdateModel
550
537
  * @param project - Project ID or project name
551
- * @param runId -
538
+ * @param runId - RunId of the run
552
539
  */
553
540
  updateTestRunTags(testTagsUpdateModel: Test.TestTagsUpdateModel, project: string, runId: number): Promise<Test.TestTag[]>;
554
541
  /**
542
+ * Get all the tags in a build.
543
+ *
555
544
  * @param project - Project ID or project name
556
- * @param buildId -
545
+ * @param buildId - Build ID
557
546
  */
558
547
  getTestTagSummaryForBuild(project: string, buildId: number): Promise<Test.TestTagSummary>;
559
548
  /**
549
+ * Get all the tags in a release.
550
+ *
560
551
  * @param project - Project ID or project name
561
- * @param releaseId -
562
- * @param releaseEnvId -
552
+ * @param releaseId - Release ID
553
+ * @param releaseEnvId - Release environment ID
563
554
  */
564
555
  getTestTagSummaryForRelease(project: string, releaseId: number, releaseEnvId: number): Promise<Test.TestTagSummary>;
565
556
  /**
@@ -759,6 +750,34 @@ export declare class TestResultsRestClient extends RestClientBase {
759
750
  * @param type - Default is GeneralAttachment, type of empty file to be created
760
751
  */
761
752
  testLogStoreEndpointDetailsForRun(project: string, runId: number, testLogStoreOperationType: Test.TestLogStoreOperationType, filePath?: string, type?: Test.TestLogType): Promise<Test.TestLogStoreEndpointDetails>;
753
+ /**
754
+ * Creates TestResultsSession object in TCM data store
755
+ *
756
+ * @param session - Received session object.
757
+ * @param project - Project ID or project name
758
+ */
759
+ createTestSession(session: Test.TestResultsSession, project: string): Promise<number>;
760
+ /**
761
+ * Retrieves TestResultsSession metadata object in TCM data store
762
+ *
763
+ * @param project - Project ID or project name
764
+ * @param buildId -
765
+ */
766
+ getTestSession(project: string, buildId: number): Promise<Test.TestResultsSession[]>;
767
+ /**
768
+ * Retrieves TestResultsSession Layout object in TCM data store
769
+ *
770
+ * @param project - Project ID or project name
771
+ * @param sessionId -
772
+ */
773
+ getTestSessionLayout(project: string, sessionId: string): Promise<any[]>;
774
+ /**
775
+ * Creates Environment object in TCM data store
776
+ *
777
+ * @param environments - Received Environment object.
778
+ * @param project - Project ID or project name
779
+ */
780
+ createEnvironment(environments: Test.TestSessionEnvironment[], project: string): Promise<void>;
762
781
  /**
763
782
  * @param testSettings -
764
783
  * @param project - Project ID or project name
@@ -557,6 +557,8 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
557
557
  });
558
558
  };
559
559
  /**
560
+ * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10&deltaBuildId=9 Request: build id and delta build id (optional)
561
+ *
560
562
  * @param project - Project ID or project name
561
563
  * @param buildId -
562
564
  * @param deltaBuildId -
@@ -726,75 +728,6 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
726
728
  });
727
729
  });
728
730
  };
729
- /**
730
- * Creates OneMRX Session object in TCM data store
731
- *
732
- * @param session - Received session object.
733
- * @param project - Project ID or project name
734
- */
735
- TestResultsRestClient.prototype.createOneMRXTestSession = function (session, project) {
736
- return __awaiter(this, void 0, void 0, function () {
737
- return __generator(this, function (_a) {
738
- return [2 /*return*/, this.beginRequest({
739
- apiVersion: "7.2-preview.1",
740
- method: "POST",
741
- routeTemplate: "{project}/_apis/testresults/onemrx",
742
- routeValues: {
743
- project: project
744
- },
745
- body: session
746
- })];
747
- });
748
- });
749
- };
750
- /**
751
- * Retrieves OneMRX Session metadata object in TCM data store
752
- *
753
- * @param project - Project ID or project name
754
- * @param buildId -
755
- */
756
- TestResultsRestClient.prototype.getOneMRXTestSession = function (project, buildId) {
757
- return __awaiter(this, void 0, void 0, function () {
758
- var queryValues;
759
- return __generator(this, function (_a) {
760
- queryValues = {
761
- buildId: buildId
762
- };
763
- return [2 /*return*/, this.beginRequest({
764
- apiVersion: "7.2-preview.1",
765
- routeTemplate: "{project}/_apis/testresults/onemrx",
766
- routeValues: {
767
- project: project
768
- },
769
- queryParams: queryValues
770
- })];
771
- });
772
- });
773
- };
774
- /**
775
- * Retrieves OneMRX Session Layout object in TCM data store
776
- *
777
- * @param project - Project ID or project name
778
- * @param sessionId -
779
- */
780
- TestResultsRestClient.prototype.getOneMRXTestSessionLayout = function (project, sessionId) {
781
- return __awaiter(this, void 0, void 0, function () {
782
- var queryValues;
783
- return __generator(this, function (_a) {
784
- queryValues = {
785
- sessionId: sessionId
786
- };
787
- return [2 /*return*/, this.beginRequest({
788
- apiVersion: "7.2-preview.1",
789
- routeTemplate: "{project}/_apis/testresults/onemrx",
790
- routeValues: {
791
- project: project
792
- },
793
- queryParams: queryValues
794
- })];
795
- });
796
- });
797
- };
798
731
  /**
799
732
  * @param project - Project ID or project name
800
733
  * @param buildId -
@@ -1851,8 +1784,10 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
1851
1784
  });
1852
1785
  };
1853
1786
  /**
1787
+ * Get all the tags in a build.
1788
+ *
1854
1789
  * @param project - Project ID or project name
1855
- * @param buildId -
1790
+ * @param buildId - Build ID
1856
1791
  */
1857
1792
  TestResultsRestClient.prototype.getTestTagsForBuild = function (project, buildId) {
1858
1793
  return __awaiter(this, void 0, void 0, function () {
@@ -1873,9 +1808,11 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
1873
1808
  });
1874
1809
  };
1875
1810
  /**
1811
+ * Get all the tags in a release.
1812
+ *
1876
1813
  * @param project - Project ID or project name
1877
- * @param releaseId -
1878
- * @param releaseEnvId -
1814
+ * @param releaseId - Release ID
1815
+ * @param releaseEnvId - Release environment ID
1879
1816
  */
1880
1817
  TestResultsRestClient.prototype.getTestTagsForRelease = function (project, releaseId, releaseEnvId) {
1881
1818
  return __awaiter(this, void 0, void 0, function () {
@@ -1897,9 +1834,11 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
1897
1834
  });
1898
1835
  };
1899
1836
  /**
1900
- * @param testTagsUpdateModel -
1837
+ * Update tags of a run, Tags can be Added and Deleted
1838
+ *
1839
+ * @param testTagsUpdateModel - TestTagsUpdateModel
1901
1840
  * @param project - Project ID or project name
1902
- * @param runId -
1841
+ * @param runId - RunId of the run
1903
1842
  */
1904
1843
  TestResultsRestClient.prototype.updateTestRunTags = function (testTagsUpdateModel, project, runId) {
1905
1844
  return __awaiter(this, void 0, void 0, function () {
@@ -1918,8 +1857,10 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
1918
1857
  });
1919
1858
  };
1920
1859
  /**
1860
+ * Get all the tags in a build.
1861
+ *
1921
1862
  * @param project - Project ID or project name
1922
- * @param buildId -
1863
+ * @param buildId - Build ID
1923
1864
  */
1924
1865
  TestResultsRestClient.prototype.getTestTagSummaryForBuild = function (project, buildId) {
1925
1866
  return __awaiter(this, void 0, void 0, function () {
@@ -1940,9 +1881,11 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
1940
1881
  });
1941
1882
  };
1942
1883
  /**
1884
+ * Get all the tags in a release.
1885
+ *
1943
1886
  * @param project - Project ID or project name
1944
- * @param releaseId -
1945
- * @param releaseEnvId -
1887
+ * @param releaseId - Release ID
1888
+ * @param releaseEnvId - Release environment ID
1946
1889
  */
1947
1890
  TestResultsRestClient.prototype.getTestTagSummaryForRelease = function (project, releaseId, releaseEnvId) {
1948
1891
  return __awaiter(this, void 0, void 0, function () {
@@ -2610,6 +2553,96 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2610
2553
  });
2611
2554
  });
2612
2555
  };
2556
+ /**
2557
+ * Creates TestResultsSession object in TCM data store
2558
+ *
2559
+ * @param session - Received session object.
2560
+ * @param project - Project ID or project name
2561
+ */
2562
+ TestResultsRestClient.prototype.createTestSession = function (session, project) {
2563
+ return __awaiter(this, void 0, void 0, function () {
2564
+ return __generator(this, function (_a) {
2565
+ return [2 /*return*/, this.beginRequest({
2566
+ apiVersion: "7.2-preview.1",
2567
+ method: "POST",
2568
+ routeTemplate: "{project}/_apis/testresults/testsession/session",
2569
+ routeValues: {
2570
+ project: project
2571
+ },
2572
+ body: session
2573
+ })];
2574
+ });
2575
+ });
2576
+ };
2577
+ /**
2578
+ * Retrieves TestResultsSession metadata object in TCM data store
2579
+ *
2580
+ * @param project - Project ID or project name
2581
+ * @param buildId -
2582
+ */
2583
+ TestResultsRestClient.prototype.getTestSession = function (project, buildId) {
2584
+ return __awaiter(this, void 0, void 0, function () {
2585
+ var queryValues;
2586
+ return __generator(this, function (_a) {
2587
+ queryValues = {
2588
+ buildId: buildId
2589
+ };
2590
+ return [2 /*return*/, this.beginRequest({
2591
+ apiVersion: "7.2-preview.1",
2592
+ routeTemplate: "{project}/_apis/testresults/testsession/session",
2593
+ routeValues: {
2594
+ project: project
2595
+ },
2596
+ queryParams: queryValues
2597
+ })];
2598
+ });
2599
+ });
2600
+ };
2601
+ /**
2602
+ * Retrieves TestResultsSession Layout object in TCM data store
2603
+ *
2604
+ * @param project - Project ID or project name
2605
+ * @param sessionId -
2606
+ */
2607
+ TestResultsRestClient.prototype.getTestSessionLayout = function (project, sessionId) {
2608
+ return __awaiter(this, void 0, void 0, function () {
2609
+ var queryValues;
2610
+ return __generator(this, function (_a) {
2611
+ queryValues = {
2612
+ sessionId: sessionId
2613
+ };
2614
+ return [2 /*return*/, this.beginRequest({
2615
+ apiVersion: "7.2-preview.1",
2616
+ routeTemplate: "{project}/_apis/testresults/testsession/session",
2617
+ routeValues: {
2618
+ project: project
2619
+ },
2620
+ queryParams: queryValues
2621
+ })];
2622
+ });
2623
+ });
2624
+ };
2625
+ /**
2626
+ * Creates Environment object in TCM data store
2627
+ *
2628
+ * @param environments - Received Environment object.
2629
+ * @param project - Project ID or project name
2630
+ */
2631
+ TestResultsRestClient.prototype.createEnvironment = function (environments, project) {
2632
+ return __awaiter(this, void 0, void 0, function () {
2633
+ return __generator(this, function (_a) {
2634
+ return [2 /*return*/, this.beginRequest({
2635
+ apiVersion: "7.2-preview.1",
2636
+ method: "POST",
2637
+ routeTemplate: "{project}/_apis/testresults/testsession/environment",
2638
+ routeValues: {
2639
+ project: project
2640
+ },
2641
+ body: environments
2642
+ })];
2643
+ });
2644
+ });
2645
+ };
2613
2646
  /**
2614
2647
  * @param testSettings -
2615
2648
  * @param project - Project ID or project name