azure-devops-extension-api 4.234.0 → 4.236.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 (39) hide show
  1. package/AdvancedSecurity.Reporting/Reporting.d.ts +119 -0
  2. package/AdvancedSecurity.Reporting/Reporting.js +9 -0
  3. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  4. package/AdvancedSecurity.Reporting/ReportingClient.d.ts +14 -0
  5. package/AdvancedSecurity.Reporting/ReportingClient.js +94 -0
  6. package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -0
  7. package/Alert/Alert.d.ts +111 -18
  8. package/Alert/Alert.js +29 -0
  9. package/Alert/Alert.min.js +1 -1
  10. package/Alert/AlertClient.d.ts +8 -0
  11. package/Alert/AlertClient.js +23 -0
  12. package/Alert/AlertClient.min.js +1 -1
  13. package/Dashboard/Dashboard.d.ts +4 -0
  14. package/Git/Git.d.ts +8 -4
  15. package/Git/GitClient.d.ts +2 -1
  16. package/Git/GitClient.js +8 -2
  17. package/Git/GitClient.min.js +1 -1
  18. package/Management/Management.d.ts +25 -3
  19. package/Management/ManagementClient.d.ts +6 -4
  20. package/Management/ManagementClient.js +20 -18
  21. package/Management/ManagementClient.min.js +1 -1
  22. package/Release/ReleaseClient.js +2 -2
  23. package/Release/ReleaseClient.min.js +1 -1
  24. package/TaskAgent/TaskAgent.d.ts +7 -1
  25. package/TaskAgent/TaskAgent.js +2 -0
  26. package/TaskAgent/TaskAgent.min.js +1 -1
  27. package/TaskAgent/TaskAgentClient.d.ts +2 -1
  28. package/TaskAgent/TaskAgentClient.js +4 -2
  29. package/TaskAgent/TaskAgentClient.min.js +1 -1
  30. package/Test/Test.d.ts +104 -91
  31. package/Test/Test.js +0 -34
  32. package/Test/Test.min.js +1 -1
  33. package/TestResults/TestResultsClient.d.ts +69 -0
  34. package/TestResults/TestResultsClient.js +224 -0
  35. package/TestResults/TestResultsClient.min.js +1 -1
  36. package/WebApi/WebApi.d.ts +4 -0
  37. package/WebApi/WebApi.js +5 -0
  38. package/WebApi/WebApi.min.js +1 -1
  39. package/package.json +1 -1
package/Test/Test.js CHANGED
@@ -257,29 +257,6 @@ define(["require", "exports"], function (require, exports) {
257
257
  */
258
258
  Metrics[Metrics["RunSummary"] = 4] = "RunSummary";
259
259
  })(Metrics = exports.Metrics || (exports.Metrics = {}));
260
- var OneMRXSessionState;
261
- (function (OneMRXSessionState) {
262
- /**
263
- * Default
264
- */
265
- OneMRXSessionState[OneMRXSessionState["None"] = 0] = "None";
266
- /**
267
- * Session state with Running
268
- */
269
- OneMRXSessionState[OneMRXSessionState["Running"] = 1] = "Running";
270
- /**
271
- * Session state with Completed
272
- */
273
- OneMRXSessionState[OneMRXSessionState["Completed"] = 2] = "Completed";
274
- /**
275
- * Session state with Waiting
276
- */
277
- OneMRXSessionState[OneMRXSessionState["Waiting"] = 3] = "Waiting";
278
- /**
279
- * Session state with Cancelled
280
- */
281
- OneMRXSessionState[OneMRXSessionState["Cancelled"] = 4] = "Cancelled";
282
- })(OneMRXSessionState = exports.OneMRXSessionState || (exports.OneMRXSessionState = {}));
283
260
  var OperationType;
284
261
  (function (OperationType) {
285
262
  OperationType[OperationType["Add"] = 1] = "Add";
@@ -413,17 +390,6 @@ define(["require", "exports"], function (require, exports) {
413
390
  Service[Service["Tcm"] = 1] = "Tcm";
414
391
  Service[Service["Tfs"] = 2] = "Tfs";
415
392
  })(Service = exports.Service || (exports.Service = {}));
416
- var SessionLinkType;
417
- (function (SessionLinkType) {
418
- /**
419
- * Default
420
- */
421
- SessionLinkType[SessionLinkType["None"] = 0] = "None";
422
- /**
423
- * Link type for Session information
424
- */
425
- SessionLinkType[SessionLinkType["SessionInfo"] = 1] = "SessionInfo";
426
- })(SessionLinkType = exports.SessionLinkType || (exports.SessionLinkType = {}));
427
393
  var SessionResult;
428
394
  (function (SessionResult) {
429
395
  /**
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.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={}))});
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.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.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={}))});
@@ -181,6 +181,16 @@ export declare class TestResultsRestClient extends RestClientBase {
181
181
  * @param flags -
182
182
  */
183
183
  getTestRunCodeCoverage(project: string, runId: number, flags: number): Promise<Test.TestRunCoverage[]>;
184
+ /**
185
+ * @param newFields -
186
+ * @param project - Project ID or project name
187
+ */
188
+ addCustomFields(newFields: Test.CustomTestFieldDefinition[], project: string): Promise<Test.CustomTestFieldDefinition[]>;
189
+ /**
190
+ * @param project - Project ID or project name
191
+ * @param scopeFilter -
192
+ */
193
+ queryCustomFields(project: string, scopeFilter: Test.CustomTestFieldScope): Promise<Test.CustomTestFieldDefinition[]>;
184
194
  /**
185
195
  * Get file coverage for the specified file
186
196
  *
@@ -188,6 +198,17 @@ export declare class TestResultsRestClient extends RestClientBase {
188
198
  * @param project - Project ID or project name
189
199
  */
190
200
  getFileLevelCodeCoverage(fileCoverageRequest: Test.FileCoverageRequest, project: string): Promise<string>;
201
+ /**
202
+ * @param project - Project ID or project name
203
+ * @param buildDefinitionId -
204
+ * @param minBuildCreatedDate -
205
+ */
206
+ getFlakyTestResultsByBuildDefinitionId(project: string, buildDefinitionId: number, minBuildCreatedDate: Date): Promise<Test.TestCaseResult[]>;
207
+ /**
208
+ * @param project - Project ID or project name
209
+ * @param runId -
210
+ */
211
+ getFlakyTestResultsByTestRun(project: string, runId: number): Promise<Test.TestCaseResult[]>;
191
212
  /**
192
213
  * @param filter -
193
214
  * @param project - Project ID or project name
@@ -750,6 +771,13 @@ export declare class TestResultsRestClient extends RestClientBase {
750
771
  * @param type - Default is GeneralAttachment, type of empty file to be created
751
772
  */
752
773
  testLogStoreEndpointDetailsForRun(project: string, runId: number, testLogStoreOperationType: Test.TestLogStoreOperationType, filePath?: string, type?: Test.TestLogType): Promise<Test.TestLogStoreEndpointDetails>;
774
+ /**
775
+ * Retrieves Test runs associated to a session
776
+ *
777
+ * @param project - Project ID or project name
778
+ * @param sessionId - Id of TestResults session to obtain Test Runs for.
779
+ */
780
+ getTestRunsBySessionId(project: string, sessionId: number): Promise<number[]>;
753
781
  /**
754
782
  * Creates TestResultsSession object in TCM data store
755
783
  *
@@ -778,6 +806,47 @@ export declare class TestResultsRestClient extends RestClientBase {
778
806
  * @param project - Project ID or project name
779
807
  */
780
808
  createEnvironment(environments: Test.TestSessionEnvironment[], project: string): Promise<void>;
809
+ /**
810
+ * Creates Notification object in TCM data store for a given session
811
+ *
812
+ * @param notifications - Notification(s) to add for the specified sessionId
813
+ * @param project - Project ID or project name
814
+ * @param sessionId - ID of Session to add Notification
815
+ */
816
+ createNotification(notifications: Test.TestSessionNotification[], project: string, sessionId: number): Promise<number[]>;
817
+ /**
818
+ * Retrieves TestResultsSession Notification objects in TCM data store
819
+ *
820
+ * @param project - Project ID or project name
821
+ * @param sessionId - Id of TestResults session to obtain Notifications for.
822
+ */
823
+ getSessionNotifications(project: string, sessionId: number): Promise<Test.TestSessionNotification[]>;
824
+ /**
825
+ * Add Test Results to test run session
826
+ *
827
+ * @param results -
828
+ * @param project - Project ID or project name
829
+ * @param runId - RunId of test run
830
+ */
831
+ addTestResultsToTestRunSession(results: Test.TestCaseResult[], project: string, runId: number): Promise<Test.TestCaseResult[]>;
832
+ /**
833
+ * @param project - Project ID or project name
834
+ * @param runId -
835
+ * @param detailsToInclude -
836
+ * @param skip -
837
+ * @param top -
838
+ * @param outcomes -
839
+ * @param newTestsOnly -
840
+ */
841
+ getTestSessionResults(project: string, runId: number, detailsToInclude?: Test.ResultDetails, skip?: number, top?: number, outcomes?: Test.TestOutcome[], newTestsOnly?: boolean): Promise<Test.TestCaseResult[]>;
842
+ /**
843
+ * Creates TestResultsMRX objects in TCM data store for existing test results
844
+ *
845
+ * @param results - Results object with only test results MRX properties and existing testResultId
846
+ * @param project - Project ID or project name
847
+ * @param runId - RunId of test run
848
+ */
849
+ updateTestResultsToTestRunSession(results: Test.TestCaseResult[], project: string, runId: number): Promise<number[]>;
781
850
  /**
782
851
  * @param testSettings -
783
852
  * @param project - Project ID or project name
@@ -633,6 +633,47 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
633
633
  });
634
634
  });
635
635
  };
636
+ /**
637
+ * @param newFields -
638
+ * @param project - Project ID or project name
639
+ */
640
+ TestResultsRestClient.prototype.addCustomFields = function (newFields, project) {
641
+ return __awaiter(this, void 0, void 0, function () {
642
+ return __generator(this, function (_a) {
643
+ return [2 /*return*/, this.beginRequest({
644
+ apiVersion: "7.2-preview.1",
645
+ method: "POST",
646
+ routeTemplate: "{project}/_apis/testresults/extensionfields",
647
+ routeValues: {
648
+ project: project
649
+ },
650
+ body: newFields
651
+ })];
652
+ });
653
+ });
654
+ };
655
+ /**
656
+ * @param project - Project ID or project name
657
+ * @param scopeFilter -
658
+ */
659
+ TestResultsRestClient.prototype.queryCustomFields = function (project, scopeFilter) {
660
+ return __awaiter(this, void 0, void 0, function () {
661
+ var queryValues;
662
+ return __generator(this, function (_a) {
663
+ queryValues = {
664
+ scopeFilter: scopeFilter
665
+ };
666
+ return [2 /*return*/, this.beginRequest({
667
+ apiVersion: "7.2-preview.1",
668
+ routeTemplate: "{project}/_apis/testresults/extensionfields",
669
+ routeValues: {
670
+ project: project
671
+ },
672
+ queryParams: queryValues
673
+ })];
674
+ });
675
+ });
676
+ };
636
677
  /**
637
678
  * Get file coverage for the specified file
638
679
  *
@@ -655,6 +696,48 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
655
696
  });
656
697
  });
657
698
  };
699
+ /**
700
+ * @param project - Project ID or project name
701
+ * @param buildDefinitionId -
702
+ * @param minBuildCreatedDate -
703
+ */
704
+ TestResultsRestClient.prototype.getFlakyTestResultsByBuildDefinitionId = function (project, buildDefinitionId, minBuildCreatedDate) {
705
+ return __awaiter(this, void 0, void 0, function () {
706
+ var queryValues;
707
+ return __generator(this, function (_a) {
708
+ queryValues = {
709
+ buildDefinitionId: buildDefinitionId,
710
+ minBuildCreatedDate: minBuildCreatedDate
711
+ };
712
+ return [2 /*return*/, this.beginRequest({
713
+ apiVersion: "7.2-preview.1",
714
+ routeTemplate: "{project}/_apis/testresults/flakytestresults/builddefinition",
715
+ routeValues: {
716
+ project: project
717
+ },
718
+ queryParams: queryValues
719
+ })];
720
+ });
721
+ });
722
+ };
723
+ /**
724
+ * @param project - Project ID or project name
725
+ * @param runId -
726
+ */
727
+ TestResultsRestClient.prototype.getFlakyTestResultsByTestRun = function (project, runId) {
728
+ return __awaiter(this, void 0, void 0, function () {
729
+ return __generator(this, function (_a) {
730
+ return [2 /*return*/, this.beginRequest({
731
+ apiVersion: "7.2-preview.1",
732
+ routeTemplate: "{project}/_apis/testresults/flakytestresults/runs/{runId}",
733
+ routeValues: {
734
+ project: project,
735
+ runId: runId
736
+ }
737
+ })];
738
+ });
739
+ });
740
+ };
658
741
  /**
659
742
  * @param filter -
660
743
  * @param project - Project ID or project name
@@ -2553,6 +2636,26 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2553
2636
  });
2554
2637
  });
2555
2638
  };
2639
+ /**
2640
+ * Retrieves Test runs associated to a session
2641
+ *
2642
+ * @param project - Project ID or project name
2643
+ * @param sessionId - Id of TestResults session to obtain Test Runs for.
2644
+ */
2645
+ TestResultsRestClient.prototype.getTestRunsBySessionId = function (project, sessionId) {
2646
+ return __awaiter(this, void 0, void 0, function () {
2647
+ return __generator(this, function (_a) {
2648
+ return [2 /*return*/, this.beginRequest({
2649
+ apiVersion: "7.2-preview.1",
2650
+ routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/runs",
2651
+ routeValues: {
2652
+ project: project,
2653
+ sessionId: sessionId
2654
+ }
2655
+ })];
2656
+ });
2657
+ });
2658
+ };
2556
2659
  /**
2557
2660
  * Creates TestResultsSession object in TCM data store
2558
2661
  *
@@ -2643,6 +2746,127 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2643
2746
  });
2644
2747
  });
2645
2748
  };
2749
+ /**
2750
+ * Creates Notification object in TCM data store for a given session
2751
+ *
2752
+ * @param notifications - Notification(s) to add for the specified sessionId
2753
+ * @param project - Project ID or project name
2754
+ * @param sessionId - ID of Session to add Notification
2755
+ */
2756
+ TestResultsRestClient.prototype.createNotification = function (notifications, project, sessionId) {
2757
+ return __awaiter(this, void 0, void 0, function () {
2758
+ return __generator(this, function (_a) {
2759
+ return [2 /*return*/, this.beginRequest({
2760
+ apiVersion: "7.2-preview.1",
2761
+ method: "POST",
2762
+ routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/notifications",
2763
+ routeValues: {
2764
+ project: project,
2765
+ sessionId: sessionId
2766
+ },
2767
+ body: notifications
2768
+ })];
2769
+ });
2770
+ });
2771
+ };
2772
+ /**
2773
+ * Retrieves TestResultsSession Notification objects in TCM data store
2774
+ *
2775
+ * @param project - Project ID or project name
2776
+ * @param sessionId - Id of TestResults session to obtain Notifications for.
2777
+ */
2778
+ TestResultsRestClient.prototype.getSessionNotifications = function (project, sessionId) {
2779
+ return __awaiter(this, void 0, void 0, function () {
2780
+ return __generator(this, function (_a) {
2781
+ return [2 /*return*/, this.beginRequest({
2782
+ apiVersion: "7.2-preview.1",
2783
+ routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/notifications",
2784
+ routeValues: {
2785
+ project: project,
2786
+ sessionId: sessionId
2787
+ }
2788
+ })];
2789
+ });
2790
+ });
2791
+ };
2792
+ /**
2793
+ * Add Test Results to test run session
2794
+ *
2795
+ * @param results -
2796
+ * @param project - Project ID or project name
2797
+ * @param runId - RunId of test run
2798
+ */
2799
+ TestResultsRestClient.prototype.addTestResultsToTestRunSession = function (results, project, runId) {
2800
+ return __awaiter(this, void 0, void 0, function () {
2801
+ return __generator(this, function (_a) {
2802
+ return [2 /*return*/, this.beginRequest({
2803
+ apiVersion: "7.2-preview.1",
2804
+ method: "POST",
2805
+ routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
2806
+ routeValues: {
2807
+ project: project,
2808
+ runId: runId
2809
+ },
2810
+ body: results
2811
+ })];
2812
+ });
2813
+ });
2814
+ };
2815
+ /**
2816
+ * @param project - Project ID or project name
2817
+ * @param runId -
2818
+ * @param detailsToInclude -
2819
+ * @param skip -
2820
+ * @param top -
2821
+ * @param outcomes -
2822
+ * @param newTestsOnly -
2823
+ */
2824
+ TestResultsRestClient.prototype.getTestSessionResults = function (project, runId, detailsToInclude, skip, top, outcomes, newTestsOnly) {
2825
+ return __awaiter(this, void 0, void 0, function () {
2826
+ var queryValues;
2827
+ return __generator(this, function (_a) {
2828
+ queryValues = {
2829
+ detailsToInclude: detailsToInclude,
2830
+ '$skip': skip,
2831
+ '$top': top,
2832
+ outcomes: outcomes && outcomes.join(","),
2833
+ '$newTestsOnly': newTestsOnly
2834
+ };
2835
+ return [2 /*return*/, this.beginRequest({
2836
+ apiVersion: "7.2-preview.1",
2837
+ routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
2838
+ routeValues: {
2839
+ project: project,
2840
+ runId: runId
2841
+ },
2842
+ queryParams: queryValues
2843
+ })];
2844
+ });
2845
+ });
2846
+ };
2847
+ /**
2848
+ * Creates TestResultsMRX objects in TCM data store for existing test results
2849
+ *
2850
+ * @param results - Results object with only test results MRX properties and existing testResultId
2851
+ * @param project - Project ID or project name
2852
+ * @param runId - RunId of test run
2853
+ */
2854
+ TestResultsRestClient.prototype.updateTestResultsToTestRunSession = function (results, project, runId) {
2855
+ return __awaiter(this, void 0, void 0, function () {
2856
+ return __generator(this, function (_a) {
2857
+ return [2 /*return*/, this.beginRequest({
2858
+ apiVersion: "7.2-preview.1",
2859
+ method: "PATCH",
2860
+ routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
2861
+ routeValues: {
2862
+ project: project,
2863
+ runId: runId
2864
+ },
2865
+ body: results
2866
+ })];
2867
+ });
2868
+ });
2869
+ };
2646
2870
  /**
2647
2871
  * @param testSettings -
2648
2872
  * @param project - Project ID or project name