azure-devops-extension-api 4.269.1 → 5.271.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 (694) hide show
  1. package/Accounts/Accounts.d.ts +126 -126
  2. package/Accounts/Accounts.js +61 -62
  3. package/Accounts/Accounts.min.js +1 -1
  4. package/Accounts/AccountsClient.d.ts +24 -24
  5. package/Accounts/AccountsClient.js +78 -124
  6. package/Accounts/AccountsClient.min.js +1 -1
  7. package/Accounts/index.d.ts +2 -2
  8. package/Accounts/index.js +18 -9
  9. package/Accounts/index.min.js +1 -1
  10. package/AdvancedSecurity.Reporting/Reporting.d.ts +717 -712
  11. package/AdvancedSecurity.Reporting/Reporting.js +203 -204
  12. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
  13. package/AdvancedSecurity.Reporting/ReportingClient.d.ts +83 -83
  14. package/AdvancedSecurity.Reporting/ReportingClient.js +267 -343
  15. package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
  16. package/Alert/Alert.d.ts +1265 -1245
  17. package/Alert/Alert.js +425 -426
  18. package/Alert/Alert.min.js +1 -1
  19. package/Alert/AlertClient.d.ts +184 -159
  20. package/Alert/AlertClient.js +512 -533
  21. package/Alert/AlertClient.min.js +1 -1
  22. package/Build/Build.d.ts +3318 -3292
  23. package/Build/Build.js +613 -607
  24. package/Build/Build.min.js +1 -1
  25. package/Build/BuildClient.d.ts +842 -820
  26. package/Build/BuildClient.js +2319 -2568
  27. package/Build/BuildClient.min.js +1 -1
  28. package/Build/BuildServices.d.ts +32 -32
  29. package/Build/BuildServices.js +13 -14
  30. package/Build/BuildServices.min.js +1 -1
  31. package/Build/index.d.ts +3 -3
  32. package/Build/index.js +19 -10
  33. package/Build/index.min.js +1 -1
  34. package/Comments/Comments.d.ts +309 -309
  35. package/Comments/Comments.js +93 -94
  36. package/Comments/Comments.min.js +1 -1
  37. package/Comments/index.d.ts +1 -1
  38. package/Comments/index.js +17 -8
  39. package/Comments/index.min.js +1 -1
  40. package/Common/Client.d.ts +9 -9
  41. package/Common/Client.js +25 -26
  42. package/Common/Client.min.js +1 -1
  43. package/Common/CommonServices.d.ts +774 -735
  44. package/Common/CommonServices.js +71 -72
  45. package/Common/CommonServices.min.js +1 -1
  46. package/Common/Context.js +2 -0
  47. package/Common/Fetch.d.ts +95 -95
  48. package/Common/Fetch.js +131 -169
  49. package/Common/Fetch.min.js +1 -1
  50. package/Common/RestClientBase.d.ts +96 -96
  51. package/Common/RestClientBase.js +109 -139
  52. package/Common/RestClientBase.min.js +1 -1
  53. package/Common/System.d.ts +30 -30
  54. package/Common/System.js +39 -40
  55. package/Common/System.min.js +1 -1
  56. package/Common/SystemData.d.ts +129 -129
  57. package/Common/SystemData.js +138 -139
  58. package/Common/SystemData.min.js +1 -1
  59. package/Common/Util/Serialization.d.ts +15 -15
  60. package/Common/Util/Serialization.js +51 -53
  61. package/Common/Util/Serialization.min.js +1 -1
  62. package/Common/Util/Url.d.ts +238 -236
  63. package/Common/Util/Url.js +605 -626
  64. package/Common/Util/Url.min.js +1 -1
  65. package/Common/index.d.ts +3 -3
  66. package/Common/index.js +19 -9
  67. package/Common/index.min.js +1 -1
  68. package/Contributions/Contributions.d.ts +694 -694
  69. package/Contributions/Contributions.js +185 -186
  70. package/Contributions/Contributions.min.js +1 -1
  71. package/Contributions/ContributionsClient.d.ts +31 -31
  72. package/Contributions/ContributionsClient.js +99 -147
  73. package/Contributions/ContributionsClient.min.js +1 -1
  74. package/Contributions/index.d.ts +2 -2
  75. package/Contributions/index.js +18 -9
  76. package/Contributions/index.min.js +1 -1
  77. package/Core/Core.d.ts +546 -546
  78. package/Core/Core.js +79 -80
  79. package/Core/Core.min.js +1 -1
  80. package/Core/CoreClient.d.ts +224 -224
  81. package/Core/CoreClient.js +652 -777
  82. package/Core/CoreClient.min.js +1 -1
  83. package/Core/index.d.ts +2 -2
  84. package/Core/index.js +18 -9
  85. package/Core/index.min.js +1 -1
  86. package/Dashboard/Dashboard.d.ts +393 -393
  87. package/Dashboard/Dashboard.js +56 -57
  88. package/Dashboard/Dashboard.min.js +1 -1
  89. package/Dashboard/DashboardClient.d.ts +106 -106
  90. package/Dashboard/DashboardClient.js +317 -393
  91. package/Dashboard/DashboardClient.min.js +1 -1
  92. package/Dashboard/WidgetConfigHelpers.d.ts +34 -34
  93. package/Dashboard/WidgetConfigHelpers.js +41 -45
  94. package/Dashboard/WidgetConfigHelpers.min.js +1 -1
  95. package/Dashboard/WidgetContracts.d.ts +213 -213
  96. package/Dashboard/WidgetContracts.js +24 -25
  97. package/Dashboard/WidgetContracts.min.js +1 -1
  98. package/Dashboard/WidgetHelpers.d.ts +89 -89
  99. package/Dashboard/WidgetHelpers.js +135 -146
  100. package/Dashboard/WidgetHelpers.min.js +1 -1
  101. package/Dashboard/index.d.ts +5 -5
  102. package/Dashboard/index.js +21 -12
  103. package/Dashboard/index.min.js +1 -1
  104. package/DistributedTaskCommon/DistributedTaskCommon.d.ts +103 -103
  105. package/DistributedTaskCommon/DistributedTaskCommon.js +7 -9
  106. package/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -1
  107. package/DistributedTaskCommon/index.d.ts +1 -1
  108. package/DistributedTaskCommon/index.js +17 -4
  109. package/DistributedTaskCommon/index.min.js +1 -1
  110. package/ExtensionManagement/ExtensionManagement.d.ts +1163 -1163
  111. package/ExtensionManagement/ExtensionManagement.js +284 -285
  112. package/ExtensionManagement/ExtensionManagement.min.js +1 -1
  113. package/ExtensionManagement/ExtensionManagementClient.d.ts +191 -191
  114. package/ExtensionManagement/ExtensionManagementClient.js +551 -648
  115. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  116. package/ExtensionManagement/index.d.ts +2 -2
  117. package/ExtensionManagement/index.js +18 -9
  118. package/ExtensionManagement/index.min.js +1 -1
  119. package/Favorite/Favorite.d.ts +124 -124
  120. package/Favorite/Favorite.js +7 -9
  121. package/Favorite/Favorite.min.js +1 -1
  122. package/Favorite/FavoriteClient.d.ts +78 -78
  123. package/Favorite/FavoriteClient.js +247 -314
  124. package/Favorite/FavoriteClient.min.js +1 -1
  125. package/FeatureAvailability/FeatureAvailability.d.ts +13 -13
  126. package/FeatureAvailability/FeatureAvailability.js +7 -9
  127. package/FeatureAvailability/FeatureAvailability.min.js +1 -1
  128. package/FeatureAvailability/FeatureAvailabilityClient.d.ts +45 -45
  129. package/FeatureAvailability/FeatureAvailabilityClient.js +136 -189
  130. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  131. package/FeatureAvailability/index.d.ts +2 -2
  132. package/FeatureAvailability/index.js +18 -8
  133. package/FeatureAvailability/index.min.js +1 -1
  134. package/FeatureManagement/FeatureManagement.d.ts +161 -161
  135. package/FeatureManagement/FeatureManagement.js +26 -27
  136. package/FeatureManagement/FeatureManagement.min.js +1 -1
  137. package/FeatureManagement/FeatureManagementClient.d.ts +78 -78
  138. package/FeatureManagement/FeatureManagementClient.js +214 -273
  139. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  140. package/FeatureManagement/index.d.ts +2 -2
  141. package/FeatureManagement/index.js +18 -9
  142. package/FeatureManagement/index.min.js +1 -1
  143. package/FileContainer/FileContainer.d.ts +193 -193
  144. package/FileContainer/FileContainer.js +58 -59
  145. package/FileContainer/FileContainer.min.js +1 -1
  146. package/FileContainer/FileContainerClient.d.ts +47 -47
  147. package/FileContainer/FileContainerClient.js +132 -182
  148. package/FileContainer/FileContainerClient.min.js +1 -1
  149. package/FileContainer/index.d.ts +2 -2
  150. package/FileContainer/index.js +18 -9
  151. package/FileContainer/index.min.js +1 -1
  152. package/FormInput/FormInput.d.ts +278 -278
  153. package/FormInput/FormInput.js +77 -78
  154. package/FormInput/FormInput.min.js +1 -1
  155. package/FormInput/index.d.ts +1 -1
  156. package/FormInput/index.js +17 -8
  157. package/FormInput/index.min.js +1 -1
  158. package/Gallery/Gallery.d.ts +1911 -1911
  159. package/Gallery/Gallery.js +788 -789
  160. package/Gallery/Gallery.min.js +1 -1
  161. package/Gallery/GalleryClient.d.ts +613 -603
  162. package/Gallery/GalleryClient.js +1884 -2100
  163. package/Gallery/GalleryClient.min.js +1 -1
  164. package/Gallery/index.d.ts +2 -2
  165. package/Gallery/index.js +18 -9
  166. package/Gallery/index.min.js +1 -1
  167. package/Git/CodeEditorTypes.d.ts +305 -305
  168. package/Git/CodeEditorTypes.js +27 -28
  169. package/Git/CodeEditorTypes.min.js +1 -1
  170. package/Git/Git.d.ts +3976 -3888
  171. package/Git/Git.js +830 -817
  172. package/Git/Git.min.js +1 -1
  173. package/Git/GitClient.d.ts +1468 -1454
  174. package/Git/GitClient.js +3892 -4313
  175. package/Git/GitClient.min.js +1 -1
  176. package/Git/GitServices.d.ts +16 -16
  177. package/Git/GitServices.js +10 -11
  178. package/Git/GitServices.min.js +1 -1
  179. package/Git/index.d.ts +4 -4
  180. package/Git/index.js +20 -11
  181. package/Git/index.min.js +1 -1
  182. package/Graph/Graph.d.ts +518 -518
  183. package/Graph/Graph.js +14 -15
  184. package/Graph/Graph.min.js +1 -1
  185. package/Graph/GraphClient.d.ts +261 -261
  186. package/Graph/GraphClient.js +737 -867
  187. package/Graph/GraphClient.min.js +1 -1
  188. package/Graph/index.d.ts +2 -2
  189. package/Graph/index.js +18 -9
  190. package/Graph/index.min.js +1 -1
  191. package/Identities/Identities.d.ts +242 -241
  192. package/Identities/Identities.js +49 -50
  193. package/Identities/Identities.min.js +1 -1
  194. package/Identities/IdentityProvider.d.ts +40 -40
  195. package/Identities/IdentityProvider.js +47 -49
  196. package/Identities/IdentityProvider.min.js +1 -1
  197. package/Identities/IdentityService.d.ts +72 -72
  198. package/Identities/IdentityService.js +13 -14
  199. package/Identities/IdentityService.min.js +1 -1
  200. package/Identities/index.d.ts +3 -3
  201. package/Identities/index.js +19 -10
  202. package/Identities/index.min.js +1 -1
  203. package/Locations/Locations.d.ts +150 -150
  204. package/Locations/Locations.js +28 -29
  205. package/Locations/Locations.min.js +1 -1
  206. package/Locations/LocationsClient.d.ts +65 -65
  207. package/Locations/LocationsClient.js +211 -276
  208. package/Locations/LocationsClient.min.js +1 -1
  209. package/Locations/index.d.ts +2 -2
  210. package/Locations/index.js +18 -9
  211. package/Locations/index.min.js +1 -1
  212. package/Management/Management.d.ts +424 -407
  213. package/Management/Management.js +27 -28
  214. package/Management/Management.min.js +1 -1
  215. package/Management/ManagementClient.d.ts +116 -105
  216. package/Management/ManagementClient.js +349 -398
  217. package/Management/ManagementClient.min.js +1 -1
  218. package/Notification/Notification.d.ts +1387 -1387
  219. package/Notification/Notification.js +385 -386
  220. package/Notification/Notification.min.js +1 -1
  221. package/Notification/NotificationClient.d.ts +149 -149
  222. package/Notification/NotificationClient.js +420 -511
  223. package/Notification/NotificationClient.min.js +1 -1
  224. package/Notification/index.d.ts +2 -2
  225. package/Notification/index.js +18 -9
  226. package/Notification/index.min.js +1 -1
  227. package/Operations/Operations.d.ts +77 -77
  228. package/Operations/Operations.js +38 -39
  229. package/Operations/Operations.min.js +1 -1
  230. package/Operations/OperationsClient.d.ts +13 -13
  231. package/Operations/OperationsClient.js +45 -86
  232. package/Operations/OperationsClient.min.js +1 -1
  233. package/Operations/index.d.ts +2 -2
  234. package/Operations/index.js +18 -9
  235. package/Operations/index.min.js +1 -1
  236. package/Pipelines/Pipelines.d.ts +341 -341
  237. package/Pipelines/Pipelines.js +82 -83
  238. package/Pipelines/Pipelines.min.js +1 -1
  239. package/Pipelines/PipelinesClient.d.ts +92 -92
  240. package/Pipelines/PipelinesClient.js +260 -325
  241. package/Pipelines/PipelinesClient.min.js +1 -1
  242. package/Policy/Policy.d.ts +160 -160
  243. package/Policy/Policy.js +38 -39
  244. package/Policy/Policy.min.js +1 -1
  245. package/Policy/PolicyClient.d.ts +99 -99
  246. package/Policy/PolicyClient.js +274 -346
  247. package/Policy/PolicyClient.min.js +1 -1
  248. package/Policy/index.d.ts +2 -2
  249. package/Policy/index.js +18 -9
  250. package/Policy/index.min.js +1 -1
  251. package/Profile/Profile.d.ts +175 -175
  252. package/Profile/Profile.js +35 -36
  253. package/Profile/Profile.min.js +1 -1
  254. package/Profile/ProfileClient.d.ts +86 -86
  255. package/Profile/ProfileClient.js +277 -347
  256. package/Profile/ProfileClient.min.js +1 -1
  257. package/Profile/index.d.ts +2 -2
  258. package/Profile/index.js +18 -9
  259. package/Profile/index.min.js +1 -1
  260. package/ProjectAnalysis/ProjectAnalysis.d.ts +59 -59
  261. package/ProjectAnalysis/ProjectAnalysis.js +18 -19
  262. package/ProjectAnalysis/ProjectAnalysis.min.js +1 -1
  263. package/ProjectAnalysis/ProjectAnalysisClient.d.ts +34 -34
  264. package/ProjectAnalysis/ProjectAnalysisClient.js +110 -159
  265. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  266. package/ProjectAnalysis/index.d.ts +2 -2
  267. package/ProjectAnalysis/index.js +18 -9
  268. package/ProjectAnalysis/index.min.js +1 -1
  269. package/README.md +57 -1
  270. package/Release/Release.d.ts +4068 -4068
  271. package/Release/Release.js +876 -877
  272. package/Release/Release.min.js +1 -1
  273. package/Release/ReleaseClient.d.ts +720 -720
  274. package/Release/ReleaseClient.js +2003 -2273
  275. package/Release/ReleaseClient.min.js +1 -1
  276. package/Release/index.d.ts +2 -2
  277. package/Release/index.js +18 -9
  278. package/Release/index.min.js +1 -1
  279. package/ResourceUsage/ResourceUsage.d.ts +13 -13
  280. package/ResourceUsage/ResourceUsage.js +7 -9
  281. package/ResourceUsage/ResourceUsage.min.js +1 -1
  282. package/ResourceUsage/ResourceUsageClient.d.ts +20 -20
  283. package/ResourceUsage/ResourceUsageClient.js +51 -93
  284. package/ResourceUsage/ResourceUsageClient.min.js +1 -1
  285. package/ServiceEndpoint/ServiceEndpoint.d.ts +894 -894
  286. package/ServiceEndpoint/ServiceEndpoint.js +84 -85
  287. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  288. package/ServiceEndpoint/ServiceEndpointClient.d.ts +190 -190
  289. package/ServiceEndpoint/ServiceEndpointClient.js +556 -669
  290. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  291. package/ServiceEndpoint/index.d.ts +2 -2
  292. package/ServiceEndpoint/index.js +18 -9
  293. package/ServiceEndpoint/index.min.js +1 -1
  294. package/ServiceHooks/ServiceHooks.d.ts +758 -758
  295. package/ServiceHooks/ServiceHooks.js +114 -115
  296. package/ServiceHooks/ServiceHooks.min.js +1 -1
  297. package/ServiceHooks/ServiceHooksClient.d.ts +156 -156
  298. package/ServiceHooks/ServiceHooksClient.js +434 -526
  299. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  300. package/ServiceHooks/index.d.ts +2 -2
  301. package/ServiceHooks/index.js +18 -9
  302. package/ServiceHooks/index.min.js +1 -1
  303. package/TaskAgent/TaskAgent.d.ts +3777 -3764
  304. package/TaskAgent/TaskAgent.js +594 -594
  305. package/TaskAgent/TaskAgent.min.js +1 -1
  306. package/TaskAgent/TaskAgentClient.d.ts +1085 -1073
  307. package/TaskAgent/TaskAgentClient.js +3273 -3731
  308. package/TaskAgent/TaskAgentClient.min.js +1 -1
  309. package/TaskAgent/index.d.ts +2 -2
  310. package/TaskAgent/index.js +18 -9
  311. package/TaskAgent/index.min.js +1 -1
  312. package/Test/Test.d.ts +5918 -5874
  313. package/Test/Test.js +1068 -1069
  314. package/Test/Test.min.js +1 -1
  315. package/Test/TestClient.d.ts +635 -635
  316. package/Test/TestClient.js +1822 -2088
  317. package/Test/TestClient.min.js +1 -1
  318. package/Test/index.d.ts +2 -2
  319. package/Test/index.js +18 -9
  320. package/Test/index.min.js +1 -1
  321. package/TestPlan/TestPlan.d.ts +1616 -1616
  322. package/TestPlan/TestPlan.js +270 -271
  323. package/TestPlan/TestPlan.min.js +1 -1
  324. package/TestPlan/TestPlanClient.d.ts +408 -408
  325. package/TestPlan/TestPlanClient.js +1160 -1387
  326. package/TestPlan/TestPlanClient.min.js +1 -1
  327. package/TestPlan/index.d.ts +2 -2
  328. package/TestPlan/index.js +18 -9
  329. package/TestPlan/index.min.js +1 -1
  330. package/TestResults/TestResults.d.ts +5 -5
  331. package/TestResults/TestResults.js +7 -9
  332. package/TestResults/TestResults.min.js +1 -1
  333. package/TestResults/TestResultsClient.d.ts +1060 -1039
  334. package/TestResults/TestResultsClient.js +3099 -3491
  335. package/TestResults/TestResultsClient.min.js +1 -1
  336. package/TestResults/index.d.ts +2 -2
  337. package/TestResults/index.js +18 -8
  338. package/TestResults/index.min.js +1 -1
  339. package/Tfvc/Tfvc.d.ts +730 -730
  340. package/Tfvc/Tfvc.js +106 -107
  341. package/Tfvc/Tfvc.min.js +1 -1
  342. package/Tfvc/TfvcClient.d.ts +227 -227
  343. package/Tfvc/TfvcClient.js +620 -732
  344. package/Tfvc/TfvcClient.min.js +1 -1
  345. package/Tfvc/index.d.ts +2 -2
  346. package/Tfvc/index.js +18 -9
  347. package/Tfvc/index.min.js +1 -1
  348. package/WebApi/WebApi.d.ts +408 -408
  349. package/WebApi/WebApi.js +55 -56
  350. package/WebApi/WebApi.min.js +1 -1
  351. package/WebApi/index.d.ts +1 -1
  352. package/WebApi/index.js +17 -8
  353. package/WebApi/index.min.js +1 -1
  354. package/Wiki/Wiki.d.ts +328 -328
  355. package/Wiki/Wiki.js +22 -23
  356. package/Wiki/Wiki.min.js +1 -1
  357. package/Wiki/WikiClient.d.ts +218 -218
  358. package/Wiki/WikiClient.js +585 -684
  359. package/Wiki/WikiClient.min.js +1 -1
  360. package/Wiki/index.d.ts +2 -2
  361. package/Wiki/index.js +18 -9
  362. package/Wiki/index.min.js +1 -1
  363. package/Work/Work.d.ts +1298 -1298
  364. package/Work/Work.js +187 -188
  365. package/Work/Work.min.js +1 -1
  366. package/Work/WorkClient.d.ts +421 -421
  367. package/Work/WorkClient.js +1255 -1455
  368. package/Work/WorkClient.min.js +1 -1
  369. package/Work/index.d.ts +2 -2
  370. package/Work/index.js +18 -9
  371. package/Work/index.min.js +1 -1
  372. package/WorkItemTracking/WorkItemTracking.d.ts +2158 -2124
  373. package/WorkItemTracking/WorkItemTracking.js +431 -432
  374. package/WorkItemTracking/WorkItemTracking.min.js +1 -1
  375. package/WorkItemTracking/WorkItemTrackingClient.d.ts +624 -624
  376. package/WorkItemTracking/WorkItemTrackingClient.js +1688 -1918
  377. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  378. package/WorkItemTracking/WorkItemTrackingServices.d.ts +320 -320
  379. package/WorkItemTracking/WorkItemTrackingServices.js +18 -19
  380. package/WorkItemTracking/WorkItemTrackingServices.min.js +1 -1
  381. package/WorkItemTracking/index.d.ts +3 -3
  382. package/WorkItemTracking/index.js +19 -10
  383. package/WorkItemTracking/index.min.js +1 -1
  384. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +1238 -1238
  385. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +299 -300
  386. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  387. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +462 -462
  388. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1224 -1386
  389. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  390. package/WorkItemTrackingProcess/index.d.ts +2 -2
  391. package/WorkItemTrackingProcess/index.js +18 -9
  392. package/WorkItemTrackingProcess/index.min.js +1 -1
  393. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +575 -575
  394. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +96 -97
  395. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -1
  396. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +376 -376
  397. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +991 -1126
  398. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  399. package/WorkItemTrackingProcessDefinitions/index.d.ts +2 -2
  400. package/WorkItemTrackingProcessDefinitions/index.js +18 -9
  401. package/WorkItemTrackingProcessDefinitions/index.min.js +1 -1
  402. package/_manifest/Spdx2xVs3xComparisonToolOutput.json +33 -0
  403. package/_manifest/spdx_2.2/ESRPClientLogs0504231512019.json +1 -0
  404. package/_manifest/spdx_2.2/bsi.cose +0 -0
  405. package/_manifest/spdx_2.2/bsi.json +1 -1
  406. package/_manifest/spdx_2.2/manifest.cat +0 -0
  407. package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  408. package/_manifest/spdx_2.2/manifest.spdx.json +1 -1
  409. package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
  410. package/_manifest/spdx_3.0/manifest.spdx.json +1 -1
  411. package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +1 -1
  412. package/esm/Accounts/Accounts.js +58 -0
  413. package/esm/Accounts/Accounts.min.js +1 -0
  414. package/esm/Accounts/AccountsClient.js +59 -0
  415. package/esm/Accounts/AccountsClient.min.js +1 -0
  416. package/esm/Accounts/index.js +2 -0
  417. package/esm/Accounts/index.min.js +1 -0
  418. package/esm/AdvancedSecurity.Reporting/Reporting.js +200 -0
  419. package/esm/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  420. package/esm/AdvancedSecurity.Reporting/ReportingClient.js +228 -0
  421. package/esm/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -0
  422. package/esm/Alert/Alert.js +422 -0
  423. package/esm/Alert/Alert.min.js +1 -0
  424. package/esm/Alert/AlertClient.js +457 -0
  425. package/esm/Alert/AlertClient.min.js +1 -0
  426. package/esm/Build/Build.js +610 -0
  427. package/esm/Build/Build.min.js +1 -0
  428. package/esm/Build/BuildClient.js +2108 -0
  429. package/esm/Build/BuildClient.min.js +1 -0
  430. package/esm/Build/BuildServices.js +10 -0
  431. package/esm/Build/BuildServices.min.js +1 -0
  432. package/esm/Build/index.js +3 -0
  433. package/esm/Build/index.min.js +1 -0
  434. package/esm/Comments/Comments.js +90 -0
  435. package/esm/Comments/Comments.min.js +1 -0
  436. package/esm/Comments/index.js +1 -0
  437. package/esm/Comments/index.min.js +1 -0
  438. package/esm/Common/Client.js +22 -0
  439. package/esm/Common/Client.min.js +1 -0
  440. package/esm/Common/CommonServices.js +68 -0
  441. package/esm/Common/CommonServices.min.js +1 -0
  442. package/esm/Common/Context.js +1 -0
  443. package/esm/Common/Fetch.js +117 -0
  444. package/esm/Common/Fetch.min.js +1 -0
  445. package/esm/Common/RestClientBase.js +92 -0
  446. package/esm/Common/RestClientBase.min.js +1 -0
  447. package/esm/Common/System.js +36 -0
  448. package/esm/Common/System.min.js +1 -0
  449. package/esm/Common/SystemData.js +135 -0
  450. package/esm/Common/SystemData.min.js +1 -0
  451. package/esm/Common/Util/Serialization.js +48 -0
  452. package/esm/Common/Util/Serialization.min.js +1 -0
  453. package/esm/Common/Util/Url.js +595 -0
  454. package/esm/Common/Util/Url.min.js +1 -0
  455. package/esm/Common/index.js +3 -0
  456. package/esm/Common/index.min.js +1 -0
  457. package/esm/Contributions/Contributions.js +182 -0
  458. package/esm/Contributions/Contributions.min.js +1 -0
  459. package/esm/Contributions/ContributionsClient.js +78 -0
  460. package/esm/Contributions/ContributionsClient.min.js +1 -0
  461. package/esm/Contributions/index.js +2 -0
  462. package/esm/Contributions/index.min.js +1 -0
  463. package/esm/Core/Core.js +76 -0
  464. package/esm/Core/Core.min.js +1 -0
  465. package/esm/Core/CoreClient.js +573 -0
  466. package/esm/Core/CoreClient.min.js +1 -0
  467. package/esm/Core/index.js +2 -0
  468. package/esm/Core/index.min.js +1 -0
  469. package/esm/Dashboard/Dashboard.js +53 -0
  470. package/esm/Dashboard/Dashboard.min.js +1 -0
  471. package/esm/Dashboard/DashboardClient.js +278 -0
  472. package/esm/Dashboard/DashboardClient.min.js +1 -0
  473. package/esm/Dashboard/WidgetConfigHelpers.js +37 -0
  474. package/esm/Dashboard/WidgetConfigHelpers.min.js +1 -0
  475. package/esm/Dashboard/WidgetContracts.js +21 -0
  476. package/esm/Dashboard/WidgetContracts.min.js +1 -0
  477. package/esm/Dashboard/WidgetHelpers.js +129 -0
  478. package/esm/Dashboard/WidgetHelpers.min.js +1 -0
  479. package/esm/Dashboard/index.js +5 -0
  480. package/esm/Dashboard/index.min.js +1 -0
  481. package/esm/DistributedTaskCommon/DistributedTaskCommon.js +6 -0
  482. package/esm/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -0
  483. package/esm/DistributedTaskCommon/index.js +1 -0
  484. package/esm/DistributedTaskCommon/index.min.js +1 -0
  485. package/esm/ExtensionManagement/ExtensionManagement.js +281 -0
  486. package/esm/ExtensionManagement/ExtensionManagement.min.js +1 -0
  487. package/esm/ExtensionManagement/ExtensionManagementClient.js +486 -0
  488. package/esm/ExtensionManagement/ExtensionManagementClient.min.js +1 -0
  489. package/esm/ExtensionManagement/index.js +2 -0
  490. package/esm/ExtensionManagement/index.min.js +1 -0
  491. package/esm/Favorite/Favorite.js +6 -0
  492. package/esm/Favorite/Favorite.min.js +1 -0
  493. package/esm/Favorite/FavoriteClient.js +214 -0
  494. package/esm/Favorite/FavoriteClient.min.js +1 -0
  495. package/esm/FeatureAvailability/FeatureAvailability.js +6 -0
  496. package/esm/FeatureAvailability/FeatureAvailability.min.js +1 -0
  497. package/esm/FeatureAvailability/FeatureAvailabilityClient.js +113 -0
  498. package/esm/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -0
  499. package/esm/FeatureAvailability/index.js +2 -0
  500. package/esm/FeatureAvailability/index.min.js +1 -0
  501. package/esm/FeatureManagement/FeatureManagement.js +23 -0
  502. package/esm/FeatureManagement/FeatureManagement.min.js +1 -0
  503. package/esm/FeatureManagement/FeatureManagementClient.js +183 -0
  504. package/esm/FeatureManagement/FeatureManagementClient.min.js +1 -0
  505. package/esm/FeatureManagement/index.js +2 -0
  506. package/esm/FeatureManagement/index.min.js +1 -0
  507. package/esm/FileContainer/FileContainer.js +55 -0
  508. package/esm/FileContainer/FileContainer.min.js +1 -0
  509. package/esm/FileContainer/FileContainerClient.js +111 -0
  510. package/esm/FileContainer/FileContainerClient.min.js +1 -0
  511. package/esm/FileContainer/index.js +2 -0
  512. package/esm/FileContainer/index.min.js +1 -0
  513. package/esm/FormInput/FormInput.js +74 -0
  514. package/esm/FormInput/FormInput.min.js +1 -0
  515. package/esm/FormInput/index.js +1 -0
  516. package/esm/FormInput/index.min.js +1 -0
  517. package/esm/Gallery/Gallery.js +785 -0
  518. package/esm/Gallery/Gallery.min.js +1 -0
  519. package/esm/Gallery/GalleryClient.js +1701 -0
  520. package/esm/Gallery/GalleryClient.min.js +1 -0
  521. package/esm/Gallery/index.js +2 -0
  522. package/esm/Gallery/index.min.js +1 -0
  523. package/esm/Git/CodeEditorTypes.js +24 -0
  524. package/esm/Git/CodeEditorTypes.min.js +1 -0
  525. package/esm/Git/Git.js +827 -0
  526. package/esm/Git/Git.min.js +1 -0
  527. package/esm/Git/GitClient.js +3571 -0
  528. package/esm/Git/GitClient.min.js +1 -0
  529. package/esm/Git/GitServices.js +7 -0
  530. package/esm/Git/GitServices.min.js +1 -0
  531. package/esm/Git/index.js +4 -0
  532. package/esm/Git/index.min.js +1 -0
  533. package/esm/Graph/Graph.js +11 -0
  534. package/esm/Graph/Graph.min.js +1 -0
  535. package/esm/Graph/GraphClient.js +644 -0
  536. package/esm/Graph/GraphClient.min.js +1 -0
  537. package/esm/Graph/index.js +2 -0
  538. package/esm/Graph/index.min.js +1 -0
  539. package/esm/Identities/Identities.js +46 -0
  540. package/esm/Identities/Identities.min.js +1 -0
  541. package/esm/Identities/IdentityProvider.js +43 -0
  542. package/esm/Identities/IdentityProvider.min.js +1 -0
  543. package/esm/Identities/IdentityService.js +10 -0
  544. package/esm/Identities/IdentityService.min.js +1 -0
  545. package/esm/Identities/index.js +3 -0
  546. package/esm/Identities/index.min.js +1 -0
  547. package/esm/Locations/Locations.js +25 -0
  548. package/esm/Locations/Locations.min.js +1 -0
  549. package/esm/Locations/LocationsClient.js +178 -0
  550. package/esm/Locations/LocationsClient.min.js +1 -0
  551. package/esm/Locations/index.js +2 -0
  552. package/esm/Locations/index.min.js +1 -0
  553. package/esm/Management/Management.js +24 -0
  554. package/esm/Management/Management.min.js +1 -0
  555. package/esm/Management/ManagementClient.js +302 -0
  556. package/esm/Management/ManagementClient.min.js +1 -0
  557. package/esm/Notification/Notification.js +382 -0
  558. package/esm/Notification/Notification.min.js +1 -0
  559. package/esm/Notification/NotificationClient.js +359 -0
  560. package/esm/Notification/NotificationClient.min.js +1 -0
  561. package/esm/Notification/index.js +2 -0
  562. package/esm/Notification/index.min.js +1 -0
  563. package/esm/Operations/Operations.js +35 -0
  564. package/esm/Operations/Operations.min.js +1 -0
  565. package/esm/Operations/OperationsClient.js +30 -0
  566. package/esm/Operations/OperationsClient.min.js +1 -0
  567. package/esm/Operations/index.js +2 -0
  568. package/esm/Operations/index.min.js +1 -0
  569. package/esm/Pipelines/Pipelines.js +79 -0
  570. package/esm/Pipelines/Pipelines.min.js +1 -0
  571. package/esm/Pipelines/PipelinesClient.js +227 -0
  572. package/esm/Pipelines/PipelinesClient.min.js +1 -0
  573. package/esm/Policy/Policy.js +35 -0
  574. package/esm/Policy/Policy.min.js +1 -0
  575. package/esm/Policy/PolicyClient.js +237 -0
  576. package/esm/Policy/PolicyClient.min.js +1 -0
  577. package/esm/Policy/index.js +2 -0
  578. package/esm/Policy/index.min.js +1 -0
  579. package/esm/Profile/Profile.js +32 -0
  580. package/esm/Profile/Profile.min.js +1 -0
  581. package/esm/Profile/ProfileClient.js +240 -0
  582. package/esm/Profile/ProfileClient.min.js +1 -0
  583. package/esm/Profile/index.js +2 -0
  584. package/esm/Profile/index.min.js +1 -0
  585. package/esm/ProjectAnalysis/ProjectAnalysis.js +15 -0
  586. package/esm/ProjectAnalysis/ProjectAnalysis.min.js +1 -0
  587. package/esm/ProjectAnalysis/ProjectAnalysisClient.js +89 -0
  588. package/esm/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -0
  589. package/esm/ProjectAnalysis/index.js +2 -0
  590. package/esm/ProjectAnalysis/index.min.js +1 -0
  591. package/esm/Release/Release.js +873 -0
  592. package/esm/Release/Release.min.js +1 -0
  593. package/esm/Release/ReleaseClient.js +1816 -0
  594. package/esm/Release/ReleaseClient.min.js +1 -0
  595. package/esm/Release/index.js +2 -0
  596. package/esm/Release/index.min.js +1 -0
  597. package/esm/ResourceUsage/ResourceUsage.js +6 -0
  598. package/esm/ResourceUsage/ResourceUsage.min.js +1 -0
  599. package/esm/ResourceUsage/ResourceUsageClient.js +34 -0
  600. package/esm/ResourceUsage/ResourceUsageClient.min.js +1 -0
  601. package/esm/ServiceEndpoint/ServiceEndpoint.js +81 -0
  602. package/esm/ServiceEndpoint/ServiceEndpoint.min.js +1 -0
  603. package/esm/ServiceEndpoint/ServiceEndpointClient.js +489 -0
  604. package/esm/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
  605. package/esm/ServiceEndpoint/index.js +2 -0
  606. package/esm/ServiceEndpoint/index.min.js +1 -0
  607. package/esm/ServiceHooks/ServiceHooks.js +111 -0
  608. package/esm/ServiceHooks/ServiceHooks.min.js +1 -0
  609. package/esm/ServiceHooks/ServiceHooksClient.js +375 -0
  610. package/esm/ServiceHooks/ServiceHooksClient.min.js +1 -0
  611. package/esm/ServiceHooks/index.js +2 -0
  612. package/esm/ServiceHooks/index.min.js +1 -0
  613. package/esm/TaskAgent/TaskAgent.js +590 -0
  614. package/esm/TaskAgent/TaskAgent.min.js +1 -0
  615. package/esm/TaskAgent/TaskAgentClient.js +2946 -0
  616. package/esm/TaskAgent/TaskAgentClient.min.js +1 -0
  617. package/esm/TaskAgent/index.js +2 -0
  618. package/esm/TaskAgent/index.min.js +1 -0
  619. package/esm/Test/Test.js +1065 -0
  620. package/esm/Test/Test.min.js +1 -0
  621. package/esm/Test/TestClient.js +1655 -0
  622. package/esm/Test/TestClient.min.js +1 -0
  623. package/esm/Test/index.js +2 -0
  624. package/esm/Test/index.min.js +1 -0
  625. package/esm/TestPlan/TestPlan.js +267 -0
  626. package/esm/TestPlan/TestPlan.min.js +1 -0
  627. package/esm/TestPlan/TestPlanClient.js +1051 -0
  628. package/esm/TestPlan/TestPlanClient.min.js +1 -0
  629. package/esm/TestPlan/index.js +2 -0
  630. package/esm/TestPlan/index.min.js +1 -0
  631. package/esm/TestResults/TestResults.js +6 -0
  632. package/esm/TestResults/TestResults.min.js +1 -0
  633. package/esm/TestResults/TestResultsClient.js +2822 -0
  634. package/esm/TestResults/TestResultsClient.min.js +1 -0
  635. package/esm/TestResults/index.js +2 -0
  636. package/esm/TestResults/index.min.js +1 -0
  637. package/esm/Tfvc/Tfvc.js +103 -0
  638. package/esm/Tfvc/Tfvc.min.js +1 -0
  639. package/esm/Tfvc/TfvcClient.js +559 -0
  640. package/esm/Tfvc/TfvcClient.min.js +1 -0
  641. package/esm/Tfvc/index.js +2 -0
  642. package/esm/Tfvc/index.min.js +1 -0
  643. package/esm/WebApi/WebApi.js +52 -0
  644. package/esm/WebApi/WebApi.min.js +1 -0
  645. package/esm/WebApi/index.js +1 -0
  646. package/esm/WebApi/index.min.js +1 -0
  647. package/esm/Wiki/Wiki.js +19 -0
  648. package/esm/Wiki/Wiki.min.js +1 -0
  649. package/esm/Wiki/WikiClient.js +528 -0
  650. package/esm/Wiki/WikiClient.min.js +1 -0
  651. package/esm/Wiki/index.js +2 -0
  652. package/esm/Wiki/index.min.js +1 -0
  653. package/esm/Work/Work.js +184 -0
  654. package/esm/Work/Work.min.js +1 -0
  655. package/esm/Work/WorkClient.js +1128 -0
  656. package/esm/Work/WorkClient.min.js +1 -0
  657. package/esm/Work/index.js +2 -0
  658. package/esm/Work/index.min.js +1 -0
  659. package/esm/WorkItemTracking/WorkItemTracking.js +428 -0
  660. package/esm/WorkItemTracking/WorkItemTracking.min.js +1 -0
  661. package/esm/WorkItemTracking/WorkItemTrackingClient.js +1525 -0
  662. package/esm/WorkItemTracking/WorkItemTrackingClient.min.js +1 -0
  663. package/esm/WorkItemTracking/WorkItemTrackingServices.js +15 -0
  664. package/esm/WorkItemTracking/WorkItemTrackingServices.min.js +1 -0
  665. package/esm/WorkItemTracking/index.js +3 -0
  666. package/esm/WorkItemTracking/index.min.js +1 -0
  667. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.js +296 -0
  668. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -0
  669. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1097 -0
  670. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -0
  671. package/esm/WorkItemTrackingProcess/index.js +2 -0
  672. package/esm/WorkItemTrackingProcess/index.min.js +1 -0
  673. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +93 -0
  674. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -0
  675. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +886 -0
  676. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -0
  677. package/esm/WorkItemTrackingProcessDefinitions/index.js +2 -0
  678. package/esm/WorkItemTrackingProcessDefinitions/index.min.js +1 -0
  679. package/esm/index.js +1 -0
  680. package/esm/index.min.js +1 -0
  681. package/index.d.ts +1 -1
  682. package/index.js +17 -8
  683. package/index.min.js +1 -1
  684. package/package.json +232 -37
  685. package/Boards/Boards.d.ts +0 -631
  686. package/Boards/Boards.js +0 -26
  687. package/Boards/Boards.min.js +0 -1
  688. package/Boards/BoardsClient.d.ts +0 -187
  689. package/Boards/BoardsClient.js +0 -589
  690. package/Boards/BoardsClient.min.js +0 -1
  691. package/Boards/index.d.ts +0 -2
  692. package/Boards/index.js +0 -9
  693. package/Boards/index.min.js +0 -1
  694. package/_manifest/spdx_2.2/ESRPClientLogs0305214508957.json +0 -1
@@ -1,2088 +1,1822 @@
1
- /*
2
- * ---------------------------------------------------------
3
- * Copyright(C) Microsoft Corporation. All rights reserved.
4
- * ---------------------------------------------------------
5
- */
6
- var __extends = (this && this.__extends) || (function () {
7
- var extendStatics = Object.setPrototypeOf ||
8
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10
- return function (d, b) {
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- var __generator = (this && this.__generator) || function (thisArg, body) {
25
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
26
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
- function verb(n) { return function (v) { return step([n, v]); }; }
28
- function step(op) {
29
- if (f) throw new TypeError("Generator is already executing.");
30
- while (_) try {
31
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
32
- if (y = 0, t) op = [op[0] & 2, t.value];
33
- switch (op[0]) {
34
- case 0: case 1: t = op; break;
35
- case 4: _.label++; return { value: op[1], done: false };
36
- case 5: _.label++; y = op[1]; op = [0]; continue;
37
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
38
- default:
39
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
40
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
42
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
43
- if (t[2]) _.ops.pop();
44
- _.trys.pop(); continue;
45
- }
46
- op = body.call(thisArg, _);
47
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
48
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
- }
50
- };
51
- define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serialization"], function (require, exports, RestClientBase_1, Serialization_1) {
52
- "use strict";
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var TestRestClient = /** @class */ (function (_super) {
55
- __extends(TestRestClient, _super);
56
- function TestRestClient(options) {
57
- return _super.call(this, options) || this;
58
- }
59
- /**
60
- * Processes a collection of test suites and returns a response model containing suite and test case details.
61
- *
62
- * @param request - The request model containing the test suites to be processed. Cannot be null.
63
- * @param project - Project ID or project name
64
- * @param workItemId -
65
- */
66
- TestRestClient.prototype.processSuitesForStaging = function (request, project, workItemId) {
67
- return __awaiter(this, void 0, void 0, function () {
68
- return __generator(this, function (_a) {
69
- return [2 /*return*/, this.beginRequest({
70
- apiVersion: "7.2-preview.7",
71
- method: "POST",
72
- routeTemplate: "{project}/_apis/test/ai/workitem/testsuitedata/{workItemId}",
73
- routeValues: {
74
- project: project,
75
- workItemId: workItemId
76
- },
77
- body: request
78
- })];
79
- });
80
- });
81
- };
82
- /**
83
- * Attach a file to test step result
84
- *
85
- * @param attachmentRequestModel - Attachment details TestAttachmentRequestModel
86
- * @param project - Project ID or project name
87
- * @param runId - ID of the test run that contains the result.
88
- * @param testCaseResultId - ID of the test result that contains the iteration
89
- * @param iterationId - ID of the test result iteration.
90
- * @param actionPath - Hex value of test result action path.
91
- */
92
- TestRestClient.prototype.createTestIterationResultAttachment = function (attachmentRequestModel, project, runId, testCaseResultId, iterationId, actionPath) {
93
- return __awaiter(this, void 0, void 0, function () {
94
- var queryValues;
95
- return __generator(this, function (_a) {
96
- queryValues = {
97
- iterationId: iterationId,
98
- actionPath: actionPath
99
- };
100
- return [2 /*return*/, this.beginRequest({
101
- apiVersion: "7.2-preview.1",
102
- method: "POST",
103
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
104
- routeValues: {
105
- project: project,
106
- runId: runId,
107
- testCaseResultId: testCaseResultId
108
- },
109
- queryParams: queryValues,
110
- body: attachmentRequestModel
111
- })];
112
- });
113
- });
114
- };
115
- /**
116
- * Attach a file to a test result.
117
- *
118
- * @param attachmentRequestModel - Attachment details TestAttachmentRequestModel
119
- * @param project - Project ID or project name
120
- * @param runId - ID of the test run that contains the result.
121
- * @param testCaseResultId - ID of the test result against which attachment has to be uploaded.
122
- */
123
- TestRestClient.prototype.createTestResultAttachment = function (attachmentRequestModel, project, runId, testCaseResultId) {
124
- return __awaiter(this, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2 /*return*/, this.beginRequest({
127
- apiVersion: "7.2-preview.1",
128
- method: "POST",
129
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
130
- routeValues: {
131
- project: project,
132
- runId: runId,
133
- testCaseResultId: testCaseResultId
134
- },
135
- body: attachmentRequestModel
136
- })];
137
- });
138
- });
139
- };
140
- /**
141
- * Attach a file to a test result
142
- *
143
- * @param attachmentRequestModel - Attachment Request Model.
144
- * @param project - Project ID or project name
145
- * @param runId - ID of the test run that contains the result.
146
- * @param testCaseResultId - ID of the test results that contains sub result.
147
- * @param testSubResultId - ID of the test sub results against which attachment has to be uploaded.
148
- */
149
- TestRestClient.prototype.createTestSubResultAttachment = function (attachmentRequestModel, project, runId, testCaseResultId, testSubResultId) {
150
- return __awaiter(this, void 0, void 0, function () {
151
- var queryValues;
152
- return __generator(this, function (_a) {
153
- queryValues = {
154
- testSubResultId: testSubResultId
155
- };
156
- return [2 /*return*/, this.beginRequest({
157
- apiVersion: "7.2-preview.1",
158
- method: "POST",
159
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
160
- routeValues: {
161
- project: project,
162
- runId: runId,
163
- testCaseResultId: testCaseResultId
164
- },
165
- queryParams: queryValues,
166
- body: attachmentRequestModel
167
- })];
168
- });
169
- });
170
- };
171
- /**
172
- * Download a test result attachment by its ID.
173
- *
174
- * @param project - Project ID or project name
175
- * @param runId - ID of the test run that contains the testCaseResultId.
176
- * @param testCaseResultId - ID of the test result whose attachment has to be downloaded.
177
- * @param attachmentId - ID of the test result attachment to be downloaded.
178
- */
179
- TestRestClient.prototype.getTestResultAttachmentContent = function (project, runId, testCaseResultId, attachmentId) {
180
- return __awaiter(this, void 0, void 0, function () {
181
- return __generator(this, function (_a) {
182
- return [2 /*return*/, this.beginRequest({
183
- apiVersion: "7.2-preview.1",
184
- httpResponseType: "application/octet-stream",
185
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
186
- routeValues: {
187
- project: project,
188
- runId: runId,
189
- testCaseResultId: testCaseResultId,
190
- attachmentId: attachmentId
191
- }
192
- })];
193
- });
194
- });
195
- };
196
- /**
197
- * Get list of test result attachments reference.
198
- *
199
- * @param project - Project ID or project name
200
- * @param runId - ID of the test run that contains the result.
201
- * @param testCaseResultId - ID of the test result.
202
- */
203
- TestRestClient.prototype.getTestResultAttachments = function (project, runId, testCaseResultId) {
204
- return __awaiter(this, void 0, void 0, function () {
205
- return __generator(this, function (_a) {
206
- return [2 /*return*/, this.beginRequest({
207
- apiVersion: "7.2-preview.1",
208
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
209
- routeValues: {
210
- project: project,
211
- runId: runId,
212
- testCaseResultId: testCaseResultId
213
- }
214
- })];
215
- });
216
- });
217
- };
218
- /**
219
- * Download a test result attachment by its ID.
220
- *
221
- * @param project - Project ID or project name
222
- * @param runId - ID of the test run that contains the testCaseResultId.
223
- * @param testCaseResultId - ID of the test result whose attachment has to be downloaded.
224
- * @param attachmentId - ID of the test result attachment to be downloaded.
225
- */
226
- TestRestClient.prototype.getTestResultAttachmentZip = function (project, runId, testCaseResultId, attachmentId) {
227
- return __awaiter(this, void 0, void 0, function () {
228
- return __generator(this, function (_a) {
229
- return [2 /*return*/, this.beginRequest({
230
- apiVersion: "7.2-preview.1",
231
- httpResponseType: "application/zip",
232
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
233
- routeValues: {
234
- project: project,
235
- runId: runId,
236
- testCaseResultId: testCaseResultId,
237
- attachmentId: attachmentId
238
- }
239
- })];
240
- });
241
- });
242
- };
243
- /**
244
- * Download a test sub result attachment
245
- *
246
- * @param project - Project ID or project name
247
- * @param runId - ID of the test run that contains the result.
248
- * @param testCaseResultId - ID of the test results that contains sub result.
249
- * @param attachmentId - ID of the test result attachment to be downloaded
250
- * @param testSubResultId - ID of the test sub result whose attachment has to be downloaded
251
- */
252
- TestRestClient.prototype.getTestSubResultAttachmentContent = function (project, runId, testCaseResultId, attachmentId, testSubResultId) {
253
- return __awaiter(this, void 0, void 0, function () {
254
- var queryValues;
255
- return __generator(this, function (_a) {
256
- queryValues = {
257
- testSubResultId: testSubResultId
258
- };
259
- return [2 /*return*/, this.beginRequest({
260
- apiVersion: "7.2-preview.1",
261
- httpResponseType: "application/octet-stream",
262
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
263
- routeValues: {
264
- project: project,
265
- runId: runId,
266
- testCaseResultId: testCaseResultId,
267
- attachmentId: attachmentId
268
- },
269
- queryParams: queryValues
270
- })];
271
- });
272
- });
273
- };
274
- /**
275
- * Get list of test sub result attachments
276
- *
277
- * @param project - Project ID or project name
278
- * @param runId - ID of the test run that contains the result.
279
- * @param testCaseResultId - ID of the test results that contains sub result.
280
- * @param testSubResultId - ID of the test sub result whose attachment has to be downloaded
281
- */
282
- TestRestClient.prototype.getTestSubResultAttachments = function (project, runId, testCaseResultId, testSubResultId) {
283
- return __awaiter(this, void 0, void 0, function () {
284
- var queryValues;
285
- return __generator(this, function (_a) {
286
- queryValues = {
287
- testSubResultId: testSubResultId
288
- };
289
- return [2 /*return*/, this.beginRequest({
290
- apiVersion: "7.2-preview.1",
291
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
292
- routeValues: {
293
- project: project,
294
- runId: runId,
295
- testCaseResultId: testCaseResultId
296
- },
297
- queryParams: queryValues
298
- })];
299
- });
300
- });
301
- };
302
- /**
303
- * Download a test sub result attachment
304
- *
305
- * @param project - Project ID or project name
306
- * @param runId - ID of the test run that contains the result.
307
- * @param testCaseResultId - ID of the test results that contains sub result.
308
- * @param attachmentId - ID of the test result attachment to be downloaded
309
- * @param testSubResultId - ID of the test sub result whose attachment has to be downloaded
310
- */
311
- TestRestClient.prototype.getTestSubResultAttachmentZip = function (project, runId, testCaseResultId, attachmentId, testSubResultId) {
312
- return __awaiter(this, void 0, void 0, function () {
313
- var queryValues;
314
- return __generator(this, function (_a) {
315
- queryValues = {
316
- testSubResultId: testSubResultId
317
- };
318
- return [2 /*return*/, this.beginRequest({
319
- apiVersion: "7.2-preview.1",
320
- httpResponseType: "application/zip",
321
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
322
- routeValues: {
323
- project: project,
324
- runId: runId,
325
- testCaseResultId: testCaseResultId,
326
- attachmentId: attachmentId
327
- },
328
- queryParams: queryValues
329
- })];
330
- });
331
- });
332
- };
333
- /**
334
- * Attach a file to a test run.
335
- *
336
- * @param attachmentRequestModel - Attachment details TestAttachmentRequestModel
337
- * @param project - Project ID or project name
338
- * @param runId - ID of the test run against which attachment has to be uploaded.
339
- */
340
- TestRestClient.prototype.createTestRunAttachment = function (attachmentRequestModel, project, runId) {
341
- return __awaiter(this, void 0, void 0, function () {
342
- return __generator(this, function (_a) {
343
- return [2 /*return*/, this.beginRequest({
344
- apiVersion: "7.2-preview.1",
345
- method: "POST",
346
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
347
- routeValues: {
348
- project: project,
349
- runId: runId
350
- },
351
- body: attachmentRequestModel
352
- })];
353
- });
354
- });
355
- };
356
- /**
357
- * Download a test run attachment by its ID.
358
- *
359
- * @param project - Project ID or project name
360
- * @param runId - ID of the test run whose attachment has to be downloaded.
361
- * @param attachmentId - ID of the test run attachment to be downloaded.
362
- */
363
- TestRestClient.prototype.getTestRunAttachmentContent = function (project, runId, attachmentId) {
364
- return __awaiter(this, void 0, void 0, function () {
365
- return __generator(this, function (_a) {
366
- return [2 /*return*/, this.beginRequest({
367
- apiVersion: "7.2-preview.1",
368
- httpResponseType: "application/octet-stream",
369
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
370
- routeValues: {
371
- project: project,
372
- runId: runId,
373
- attachmentId: attachmentId
374
- }
375
- })];
376
- });
377
- });
378
- };
379
- /**
380
- * Get list of test run attachments reference.
381
- *
382
- * @param project - Project ID or project name
383
- * @param runId - ID of the test run.
384
- */
385
- TestRestClient.prototype.getTestRunAttachments = function (project, runId) {
386
- return __awaiter(this, void 0, void 0, function () {
387
- return __generator(this, function (_a) {
388
- return [2 /*return*/, this.beginRequest({
389
- apiVersion: "7.2-preview.1",
390
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
391
- routeValues: {
392
- project: project,
393
- runId: runId
394
- }
395
- })];
396
- });
397
- });
398
- };
399
- /**
400
- * Download a test run attachment by its ID.
401
- *
402
- * @param project - Project ID or project name
403
- * @param runId - ID of the test run whose attachment has to be downloaded.
404
- * @param attachmentId - ID of the test run attachment to be downloaded.
405
- */
406
- TestRestClient.prototype.getTestRunAttachmentZip = function (project, runId, attachmentId) {
407
- return __awaiter(this, void 0, void 0, function () {
408
- return __generator(this, function (_a) {
409
- return [2 /*return*/, this.beginRequest({
410
- apiVersion: "7.2-preview.1",
411
- httpResponseType: "application/zip",
412
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
413
- routeValues: {
414
- project: project,
415
- runId: runId,
416
- attachmentId: attachmentId
417
- }
418
- })];
419
- });
420
- });
421
- };
422
- /**
423
- * @param project - Project ID or project name
424
- * @param runId -
425
- * @param testCaseResultId -
426
- */
427
- TestRestClient.prototype.getBugsLinkedToTestResult = function (project, runId, testCaseResultId) {
428
- return __awaiter(this, void 0, void 0, function () {
429
- return __generator(this, function (_a) {
430
- return [2 /*return*/, this.beginRequest({
431
- apiVersion: "7.2-preview.1",
432
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Bugs",
433
- routeValues: {
434
- project: project,
435
- runId: runId,
436
- testCaseResultId: testCaseResultId
437
- }
438
- })];
439
- });
440
- });
441
- };
442
- /**
443
- * Get code coverage data for a build.
444
- *
445
- * @param project - Project ID or project name
446
- * @param buildId - ID of the build for which code coverage data needs to be fetched.
447
- * @param flags - Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
448
- */
449
- TestRestClient.prototype.getBuildCodeCoverage = function (project, buildId, flags) {
450
- return __awaiter(this, void 0, void 0, function () {
451
- var queryValues;
452
- return __generator(this, function (_a) {
453
- queryValues = {
454
- buildId: buildId,
455
- flags: flags
456
- };
457
- return [2 /*return*/, this.beginRequest({
458
- apiVersion: "7.2-preview.1",
459
- routeTemplate: "{project}/_apis/test/CodeCoverage",
460
- routeValues: {
461
- project: project
462
- },
463
- queryParams: queryValues
464
- })];
465
- });
466
- });
467
- };
468
- /**
469
- * Get Code Coverage Summary for Build.
470
- *
471
- * @param project - Project ID or project name
472
- * @param buildId - ID of the build for which code coverage data needs to be fetched.
473
- * @param deltaBuildId - Delta Build id (optional)
474
- */
475
- TestRestClient.prototype.getCodeCoverageSummary = function (project, buildId, deltaBuildId) {
476
- return __awaiter(this, void 0, void 0, function () {
477
- var queryValues;
478
- return __generator(this, function (_a) {
479
- queryValues = {
480
- buildId: buildId,
481
- deltaBuildId: deltaBuildId
482
- };
483
- return [2 /*return*/, this.beginRequest({
484
- apiVersion: "7.2-preview.1",
485
- routeTemplate: "{project}/_apis/test/CodeCoverage",
486
- routeValues: {
487
- project: project
488
- },
489
- queryParams: queryValues
490
- })];
491
- });
492
- });
493
- };
494
- /**
495
- * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary
496
- *
497
- * @param coverageData -
498
- * @param project - Project ID or project name
499
- * @param buildId -
500
- */
501
- TestRestClient.prototype.updateCodeCoverageSummary = function (coverageData, project, buildId) {
502
- return __awaiter(this, void 0, void 0, function () {
503
- var queryValues;
504
- return __generator(this, function (_a) {
505
- queryValues = {
506
- buildId: buildId
507
- };
508
- return [2 /*return*/, this.beginRequest({
509
- apiVersion: "7.2-preview.1",
510
- method: "POST",
511
- routeTemplate: "{project}/_apis/test/CodeCoverage",
512
- routeValues: {
513
- project: project
514
- },
515
- queryParams: queryValues,
516
- body: coverageData
517
- })];
518
- });
519
- });
520
- };
521
- /**
522
- * Get code coverage data for a test run
523
- *
524
- * @param project - Project ID or project name
525
- * @param runId - ID of the test run for which code coverage data needs to be fetched.
526
- * @param flags - Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
527
- */
528
- TestRestClient.prototype.getTestRunCodeCoverage = function (project, runId, flags) {
529
- return __awaiter(this, void 0, void 0, function () {
530
- var queryValues;
531
- return __generator(this, function (_a) {
532
- queryValues = {
533
- flags: flags
534
- };
535
- return [2 /*return*/, this.beginRequest({
536
- apiVersion: "7.2-preview.1",
537
- routeTemplate: "{project}/_apis/test/Runs/{runId}/CodeCoverage",
538
- routeValues: {
539
- project: project,
540
- runId: runId
541
- },
542
- queryParams: queryValues
543
- })];
544
- });
545
- });
546
- };
547
- /**
548
- * @param newFields -
549
- * @param project - Project ID or project name
550
- */
551
- TestRestClient.prototype.addCustomFields = function (newFields, project) {
552
- return __awaiter(this, void 0, void 0, function () {
553
- return __generator(this, function (_a) {
554
- return [2 /*return*/, this.beginRequest({
555
- apiVersion: "7.2-preview.1",
556
- method: "POST",
557
- routeTemplate: "{project}/_apis/test/ExtensionFields",
558
- routeValues: {
559
- project: project
560
- },
561
- body: newFields
562
- })];
563
- });
564
- });
565
- };
566
- /**
567
- * @param project - Project ID or project name
568
- * @param scopeFilter -
569
- */
570
- TestRestClient.prototype.queryCustomFields = function (project, scopeFilter) {
571
- return __awaiter(this, void 0, void 0, function () {
572
- var queryValues;
573
- return __generator(this, function (_a) {
574
- queryValues = {
575
- scopeFilter: scopeFilter
576
- };
577
- return [2 /*return*/, this.beginRequest({
578
- apiVersion: "7.2-preview.1",
579
- routeTemplate: "{project}/_apis/test/ExtensionFields",
580
- routeValues: {
581
- project: project
582
- },
583
- queryParams: queryValues
584
- })];
585
- });
586
- });
587
- };
588
- /**
589
- * @param filter -
590
- * @param project - Project ID or project name
591
- */
592
- TestRestClient.prototype.queryTestResultHistory = function (filter, project) {
593
- return __awaiter(this, void 0, void 0, function () {
594
- return __generator(this, function (_a) {
595
- return [2 /*return*/, this.beginRequest({
596
- apiVersion: "7.2-preview.1",
597
- method: "POST",
598
- routeTemplate: "{project}/_apis/test/Results/History",
599
- routeValues: {
600
- project: project
601
- },
602
- body: filter
603
- })];
604
- });
605
- });
606
- };
607
- /**
608
- * Get iteration for a result
609
- *
610
- * @param project - Project ID or project name
611
- * @param runId - ID of the test run that contains the result.
612
- * @param testCaseResultId - ID of the test result that contains the iterations.
613
- * @param iterationId - Id of the test results Iteration.
614
- * @param includeActionResults - Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
615
- */
616
- TestRestClient.prototype.getTestIteration = function (project, runId, testCaseResultId, iterationId, includeActionResults) {
617
- return __awaiter(this, void 0, void 0, function () {
618
- var queryValues;
619
- return __generator(this, function (_a) {
620
- queryValues = {
621
- includeActionResults: includeActionResults
622
- };
623
- return [2 /*return*/, this.beginRequest({
624
- apiVersion: "7.2-preview.3",
625
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",
626
- routeValues: {
627
- project: project,
628
- runId: runId,
629
- testCaseResultId: testCaseResultId,
630
- iterationId: iterationId
631
- },
632
- queryParams: queryValues
633
- })];
634
- });
635
- });
636
- };
637
- /**
638
- * Get iterations for a result
639
- *
640
- * @param project - Project ID or project name
641
- * @param runId - ID of the test run that contains the result.
642
- * @param testCaseResultId - ID of the test result that contains the iterations.
643
- * @param includeActionResults - Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
644
- */
645
- TestRestClient.prototype.getTestIterations = function (project, runId, testCaseResultId, includeActionResults) {
646
- return __awaiter(this, void 0, void 0, function () {
647
- var queryValues;
648
- return __generator(this, function (_a) {
649
- queryValues = {
650
- includeActionResults: includeActionResults
651
- };
652
- return [2 /*return*/, this.beginRequest({
653
- apiVersion: "7.2-preview.3",
654
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",
655
- routeValues: {
656
- project: project,
657
- runId: runId,
658
- testCaseResultId: testCaseResultId
659
- },
660
- queryParams: queryValues
661
- })];
662
- });
663
- });
664
- };
665
- /**
666
- * @param workItemQuery -
667
- * @param project - Project ID or project name
668
- */
669
- TestRestClient.prototype.getLinkedWorkItemsByQuery = function (workItemQuery, project) {
670
- return __awaiter(this, void 0, void 0, function () {
671
- return __generator(this, function (_a) {
672
- return [2 /*return*/, this.beginRequest({
673
- apiVersion: "7.2-preview.1",
674
- method: "POST",
675
- routeTemplate: "{project}/_apis/test/LinkedWorkItemsQuery",
676
- routeValues: {
677
- project: project
678
- },
679
- body: workItemQuery
680
- })];
681
- });
682
- });
683
- };
684
- /**
685
- * Get test run message logs
686
- *
687
- * @param project - Project ID or project name
688
- * @param runId - ID of the run to get.
689
- */
690
- TestRestClient.prototype.getTestRunLogs = function (project, runId) {
691
- return __awaiter(this, void 0, void 0, function () {
692
- return __generator(this, function (_a) {
693
- return [2 /*return*/, this.beginRequest({
694
- apiVersion: "7.2-preview.1",
695
- routeTemplate: "{project}/_apis/test/Runs/{runId}/MessageLogs",
696
- routeValues: {
697
- project: project,
698
- runId: runId
699
- }
700
- })];
701
- });
702
- });
703
- };
704
- /**
705
- * Get a test point.
706
- *
707
- * @param project - Project ID or project name
708
- * @param planId - ID of the test plan.
709
- * @param suiteId - ID of the suite that contains the point.
710
- * @param pointIds - ID of the test point to get.
711
- * @param witFields - Comma-separated list of work item field names.
712
- */
713
- TestRestClient.prototype.getPoint = function (project, planId, suiteId, pointIds, witFields) {
714
- return __awaiter(this, void 0, void 0, function () {
715
- var queryValues;
716
- return __generator(this, function (_a) {
717
- queryValues = {
718
- witFields: witFields
719
- };
720
- return [2 /*return*/, this.beginRequest({
721
- apiVersion: "7.2-preview.2",
722
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",
723
- routeValues: {
724
- project: project,
725
- planId: planId,
726
- suiteId: suiteId,
727
- pointIds: pointIds
728
- },
729
- queryParams: queryValues
730
- })];
731
- });
732
- });
733
- };
734
- /**
735
- * Get a list of test points.
736
- *
737
- * @param project - Project ID or project name
738
- * @param planId - ID of the test plan.
739
- * @param suiteId - ID of the suite that contains the points.
740
- * @param witFields - Comma-separated list of work item field names.
741
- * @param configurationId - Get test points for specific configuration.
742
- * @param testCaseId - Get test points for a specific test case, valid when configurationId is not set.
743
- * @param testPointIds - Get test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set.
744
- * @param includePointDetails - Include all properties for the test point.
745
- * @param skip - Number of test points to skip..
746
- * @param top - Number of test points to return.
747
- */
748
- TestRestClient.prototype.getPoints = function (project, planId, suiteId, witFields, configurationId, testCaseId, testPointIds, includePointDetails, skip, top) {
749
- return __awaiter(this, void 0, void 0, function () {
750
- var queryValues;
751
- return __generator(this, function (_a) {
752
- queryValues = {
753
- witFields: witFields,
754
- configurationId: configurationId,
755
- testCaseId: testCaseId,
756
- testPointIds: testPointIds,
757
- includePointDetails: includePointDetails,
758
- '$skip': skip,
759
- '$top': top
760
- };
761
- return [2 /*return*/, this.beginRequest({
762
- apiVersion: "7.2-preview.2",
763
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",
764
- routeValues: {
765
- project: project,
766
- planId: planId,
767
- suiteId: suiteId
768
- },
769
- queryParams: queryValues
770
- })];
771
- });
772
- });
773
- };
774
- /**
775
- * Update test points.
776
- *
777
- * @param pointUpdateModel - Data to update.
778
- * @param project - Project ID or project name
779
- * @param planId - ID of the test plan.
780
- * @param suiteId - ID of the suite that contains the points.
781
- * @param pointIds - ID of the test point to get. Use a comma-separated list of IDs to update multiple test points.
782
- */
783
- TestRestClient.prototype.updateTestPoints = function (pointUpdateModel, project, planId, suiteId, pointIds) {
784
- return __awaiter(this, void 0, void 0, function () {
785
- return __generator(this, function (_a) {
786
- return [2 /*return*/, this.beginRequest({
787
- apiVersion: "7.2-preview.2",
788
- method: "PATCH",
789
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",
790
- routeValues: {
791
- project: project,
792
- planId: planId,
793
- suiteId: suiteId,
794
- pointIds: pointIds
795
- },
796
- body: pointUpdateModel
797
- })];
798
- });
799
- });
800
- };
801
- /**
802
- * Get test points using query.
803
- *
804
- * @param query - TestPointsQuery to get test points.
805
- * @param project - Project ID or project name
806
- * @param skip - Number of test points to skip..
807
- * @param top - Number of test points to return.
808
- */
809
- TestRestClient.prototype.getPointsByQuery = function (query, project, skip, top) {
810
- return __awaiter(this, void 0, void 0, function () {
811
- var queryValues;
812
- return __generator(this, function (_a) {
813
- queryValues = {
814
- '$skip': skip,
815
- '$top': top
816
- };
817
- return [2 /*return*/, this.beginRequest({
818
- apiVersion: "7.2-preview.2",
819
- method: "POST",
820
- routeTemplate: "{project}/_apis/test/Points",
821
- routeValues: {
822
- project: project
823
- },
824
- queryParams: queryValues,
825
- body: query
826
- })];
827
- });
828
- });
829
- };
830
- /**
831
- * @param project - Project ID or project name
832
- * @param buildId -
833
- * @param publishContext -
834
- * @param groupBy -
835
- * @param filter -
836
- * @param orderby -
837
- * @param shouldIncludeResults -
838
- * @param queryRunSummaryForInProgress -
839
- */
840
- TestRestClient.prototype.getTestResultDetailsForBuild = function (project, buildId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
841
- return __awaiter(this, void 0, void 0, function () {
842
- var queryValues;
843
- return __generator(this, function (_a) {
844
- queryValues = {
845
- buildId: buildId,
846
- publishContext: publishContext,
847
- groupBy: groupBy,
848
- '$filter': filter,
849
- '$orderby': orderby,
850
- shouldIncludeResults: shouldIncludeResults,
851
- queryRunSummaryForInProgress: queryRunSummaryForInProgress
852
- };
853
- return [2 /*return*/, this.beginRequest({
854
- apiVersion: "7.2-preview.2",
855
- routeTemplate: "{project}/_apis/test/ResultDetailsByBuild",
856
- routeValues: {
857
- project: project
858
- },
859
- queryParams: queryValues
860
- })];
861
- });
862
- });
863
- };
864
- /**
865
- * @param project - Project ID or project name
866
- * @param releaseId -
867
- * @param releaseEnvId -
868
- * @param publishContext -
869
- * @param groupBy -
870
- * @param filter -
871
- * @param orderby -
872
- * @param shouldIncludeResults -
873
- * @param queryRunSummaryForInProgress -
874
- */
875
- TestRestClient.prototype.getTestResultDetailsForRelease = function (project, releaseId, releaseEnvId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
876
- return __awaiter(this, void 0, void 0, function () {
877
- var queryValues;
878
- return __generator(this, function (_a) {
879
- queryValues = {
880
- releaseId: releaseId,
881
- releaseEnvId: releaseEnvId,
882
- publishContext: publishContext,
883
- groupBy: groupBy,
884
- '$filter': filter,
885
- '$orderby': orderby,
886
- shouldIncludeResults: shouldIncludeResults,
887
- queryRunSummaryForInProgress: queryRunSummaryForInProgress
888
- };
889
- return [2 /*return*/, this.beginRequest({
890
- apiVersion: "7.2-preview.2",
891
- routeTemplate: "{project}/_apis/test/ResultDetailsByRelease",
892
- routeValues: {
893
- project: project
894
- },
895
- queryParams: queryValues
896
- })];
897
- });
898
- });
899
- };
900
- /**
901
- * @param document -
902
- * @param project - Project ID or project name
903
- * @param runId -
904
- */
905
- TestRestClient.prototype.publishTestResultDocument = function (document, project, runId) {
906
- return __awaiter(this, void 0, void 0, function () {
907
- return __generator(this, function (_a) {
908
- return [2 /*return*/, this.beginRequest({
909
- apiVersion: "7.2-preview.1",
910
- method: "POST",
911
- routeTemplate: "{project}/_apis/test/Runs/{runId}/ResultDocument",
912
- routeValues: {
913
- project: project,
914
- runId: runId
915
- },
916
- body: document
917
- })];
918
- });
919
- });
920
- };
921
- /**
922
- * @param project - Project ID or project name
923
- * @param buildId -
924
- * @param publishContext -
925
- * @param fields -
926
- * @param continuationToken -
927
- */
928
- TestRestClient.prototype.getResultGroupsByBuild = function (project, buildId, publishContext, fields, continuationToken) {
929
- return __awaiter(this, void 0, void 0, function () {
930
- var queryValues;
931
- var _this = this;
932
- return __generator(this, function (_a) {
933
- queryValues = {
934
- buildId: buildId,
935
- publishContext: publishContext,
936
- fields: fields && fields.join(","),
937
- continuationToken: continuationToken
938
- };
939
- return [2 /*return*/, this.beginRequest({
940
- apiVersion: "7.2-preview.2",
941
- routeTemplate: "{project}/_apis/test/ResultGroupsByBuild",
942
- routeValues: {
943
- project: project
944
- },
945
- queryParams: queryValues,
946
- returnRawResponse: true
947
- }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
948
- var body;
949
- return __generator(this, function (_a) {
950
- switch (_a.label) {
951
- case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
952
- case 1:
953
- body = _a.sent();
954
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
955
- return [2 /*return*/, body];
956
- }
957
- });
958
- }); })];
959
- });
960
- });
961
- };
962
- /**
963
- * @param project - Project ID or project name
964
- * @param releaseId -
965
- * @param publishContext -
966
- * @param releaseEnvId -
967
- * @param fields -
968
- * @param continuationToken -
969
- */
970
- TestRestClient.prototype.getResultGroupsByRelease = function (project, releaseId, publishContext, releaseEnvId, fields, continuationToken) {
971
- return __awaiter(this, void 0, void 0, function () {
972
- var queryValues;
973
- var _this = this;
974
- return __generator(this, function (_a) {
975
- queryValues = {
976
- releaseId: releaseId,
977
- publishContext: publishContext,
978
- releaseEnvId: releaseEnvId,
979
- fields: fields && fields.join(","),
980
- continuationToken: continuationToken
981
- };
982
- return [2 /*return*/, this.beginRequest({
983
- apiVersion: "7.2-preview.2",
984
- routeTemplate: "{project}/_apis/test/ResultGroupsByRelease",
985
- routeValues: {
986
- project: project
987
- },
988
- queryParams: queryValues,
989
- returnRawResponse: true
990
- }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
991
- var body;
992
- return __generator(this, function (_a) {
993
- switch (_a.label) {
994
- case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
995
- case 1:
996
- body = _a.sent();
997
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
998
- return [2 /*return*/, body];
999
- }
1000
- });
1001
- }); })];
1002
- });
1003
- });
1004
- };
1005
- /**
1006
- * Get list of test Result meta data details for corresponding testcasereferenceId
1007
- *
1008
- * @param testReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
1009
- * @param project - Project ID or project name
1010
- */
1011
- TestRestClient.prototype.queryTestResultsMetaData = function (testReferenceIds, project) {
1012
- return __awaiter(this, void 0, void 0, function () {
1013
- return __generator(this, function (_a) {
1014
- return [2 /*return*/, this.beginRequest({
1015
- apiVersion: "7.2-preview.2",
1016
- method: "POST",
1017
- routeTemplate: "{project}/_apis/test/Results/ResultMetaData",
1018
- routeValues: {
1019
- project: project
1020
- },
1021
- body: testReferenceIds
1022
- })];
1023
- });
1024
- });
1025
- };
1026
- /**
1027
- * Get test result retention settings
1028
- *
1029
- * @param project - Project ID or project name
1030
- */
1031
- TestRestClient.prototype.getResultRetentionSettings = function (project) {
1032
- return __awaiter(this, void 0, void 0, function () {
1033
- return __generator(this, function (_a) {
1034
- return [2 /*return*/, this.beginRequest({
1035
- apiVersion: "7.2-preview.1",
1036
- routeTemplate: "{project}/_apis/test/ResultRetentionSettings",
1037
- routeValues: {
1038
- project: project
1039
- }
1040
- })];
1041
- });
1042
- });
1043
- };
1044
- /**
1045
- * Update test result retention settings
1046
- *
1047
- * @param retentionSettings - Test result retention settings details to be updated
1048
- * @param project - Project ID or project name
1049
- */
1050
- TestRestClient.prototype.updateResultRetentionSettings = function (retentionSettings, project) {
1051
- return __awaiter(this, void 0, void 0, function () {
1052
- return __generator(this, function (_a) {
1053
- return [2 /*return*/, this.beginRequest({
1054
- apiVersion: "7.2-preview.1",
1055
- method: "PATCH",
1056
- routeTemplate: "{project}/_apis/test/ResultRetentionSettings",
1057
- routeValues: {
1058
- project: project
1059
- },
1060
- body: retentionSettings
1061
- })];
1062
- });
1063
- });
1064
- };
1065
- /**
1066
- * Add test results to a test run.
1067
- *
1068
- * @param results - List of test results to add.
1069
- * @param project - Project ID or project name
1070
- * @param runId - Test run ID into which test results to add.
1071
- */
1072
- TestRestClient.prototype.addTestResultsToTestRun = function (results, project, runId) {
1073
- return __awaiter(this, void 0, void 0, function () {
1074
- return __generator(this, function (_a) {
1075
- return [2 /*return*/, this.beginRequest({
1076
- apiVersion: "7.2-preview.6",
1077
- method: "POST",
1078
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
1079
- routeValues: {
1080
- project: project,
1081
- runId: runId
1082
- },
1083
- body: results
1084
- })];
1085
- });
1086
- });
1087
- };
1088
- /**
1089
- * Get a test result for a test run.
1090
- *
1091
- * @param project - Project ID or project name
1092
- * @param runId - Test run ID of a test result to fetch.
1093
- * @param testCaseResultId - Test result ID.
1094
- * @param detailsToInclude - Details to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults.
1095
- */
1096
- TestRestClient.prototype.getTestResultById = function (project, runId, testCaseResultId, detailsToInclude) {
1097
- return __awaiter(this, void 0, void 0, function () {
1098
- var queryValues;
1099
- return __generator(this, function (_a) {
1100
- queryValues = {
1101
- detailsToInclude: detailsToInclude
1102
- };
1103
- return [2 /*return*/, this.beginRequest({
1104
- apiVersion: "7.2-preview.6",
1105
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
1106
- routeValues: {
1107
- project: project,
1108
- runId: runId,
1109
- testCaseResultId: testCaseResultId
1110
- },
1111
- queryParams: queryValues
1112
- })];
1113
- });
1114
- });
1115
- };
1116
- /**
1117
- * Get test results for a test run.
1118
- *
1119
- * @param project - Project ID or project name
1120
- * @param runId - Test run ID of test results to fetch.
1121
- * @param detailsToInclude - Details to include with test results. Default is None. Other values are Iterations and WorkItems.
1122
- * @param skip - Number of test results to skip from beginning.
1123
- * @param top - Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.
1124
- * @param outcomes - Comma separated list of test outcomes to filter test results.
1125
- */
1126
- TestRestClient.prototype.getTestResults = function (project, runId, detailsToInclude, skip, top, outcomes) {
1127
- return __awaiter(this, void 0, void 0, function () {
1128
- var queryValues;
1129
- return __generator(this, function (_a) {
1130
- queryValues = {
1131
- detailsToInclude: detailsToInclude,
1132
- '$skip': skip,
1133
- '$top': top,
1134
- outcomes: outcomes && outcomes.join(",")
1135
- };
1136
- return [2 /*return*/, this.beginRequest({
1137
- apiVersion: "7.2-preview.6",
1138
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
1139
- routeValues: {
1140
- project: project,
1141
- runId: runId
1142
- },
1143
- queryParams: queryValues
1144
- })];
1145
- });
1146
- });
1147
- };
1148
- /**
1149
- * Update test results in a test run.
1150
- *
1151
- * @param results - List of test results to update.
1152
- * @param project - Project ID or project name
1153
- * @param runId - Test run ID whose test results to update.
1154
- */
1155
- TestRestClient.prototype.updateTestResults = function (results, project, runId) {
1156
- return __awaiter(this, void 0, void 0, function () {
1157
- return __generator(this, function (_a) {
1158
- return [2 /*return*/, this.beginRequest({
1159
- apiVersion: "7.2-preview.6",
1160
- method: "PATCH",
1161
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
1162
- routeValues: {
1163
- project: project,
1164
- runId: runId
1165
- },
1166
- body: results
1167
- })];
1168
- });
1169
- });
1170
- };
1171
- /**
1172
- * This API will return results by Ids with fields specified/trend for particular automated test method. We are still improving this API and have not finalized proper signature and contract.
1173
- *
1174
- * @param query -
1175
- * @param project - Project ID or project name
1176
- */
1177
- TestRestClient.prototype.getTestResultsByQuery = function (query, project) {
1178
- return __awaiter(this, void 0, void 0, function () {
1179
- return __generator(this, function (_a) {
1180
- return [2 /*return*/, this.beginRequest({
1181
- apiVersion: "7.2-preview.6",
1182
- method: "POST",
1183
- routeTemplate: "{project}/_apis/test/Results",
1184
- routeValues: {
1185
- project: project
1186
- },
1187
- body: query
1188
- })];
1189
- });
1190
- });
1191
- };
1192
- /**
1193
- * @param project - Project ID or project name
1194
- * @param buildId -
1195
- * @param publishContext -
1196
- * @param outcomes -
1197
- * @param top -
1198
- * @param continuationToken -
1199
- */
1200
- TestRestClient.prototype.getTestResultsByBuild = function (project, buildId, publishContext, outcomes, top, continuationToken) {
1201
- return __awaiter(this, void 0, void 0, function () {
1202
- var queryValues;
1203
- var _this = this;
1204
- return __generator(this, function (_a) {
1205
- queryValues = {
1206
- buildId: buildId,
1207
- publishContext: publishContext,
1208
- outcomes: outcomes && outcomes.join(","),
1209
- '$top': top,
1210
- continuationToken: continuationToken
1211
- };
1212
- return [2 /*return*/, this.beginRequest({
1213
- apiVersion: "7.2-preview.1",
1214
- routeTemplate: "{project}/_apis/test/ResultsByBuild",
1215
- routeValues: {
1216
- project: project
1217
- },
1218
- queryParams: queryValues,
1219
- returnRawResponse: true
1220
- }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
1221
- var body;
1222
- return __generator(this, function (_a) {
1223
- switch (_a.label) {
1224
- case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
1225
- case 1:
1226
- body = _a.sent();
1227
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1228
- return [2 /*return*/, body];
1229
- }
1230
- });
1231
- }); })];
1232
- });
1233
- });
1234
- };
1235
- /**
1236
- * @param project - Project ID or project name
1237
- * @param releaseId -
1238
- * @param releaseEnvid -
1239
- * @param publishContext -
1240
- * @param outcomes -
1241
- * @param top -
1242
- * @param continuationToken -
1243
- */
1244
- TestRestClient.prototype.getTestResultsByRelease = function (project, releaseId, releaseEnvid, publishContext, outcomes, top, continuationToken) {
1245
- return __awaiter(this, void 0, void 0, function () {
1246
- var queryValues;
1247
- var _this = this;
1248
- return __generator(this, function (_a) {
1249
- queryValues = {
1250
- releaseId: releaseId,
1251
- releaseEnvid: releaseEnvid,
1252
- publishContext: publishContext,
1253
- outcomes: outcomes && outcomes.join(","),
1254
- '$top': top,
1255
- continuationToken: continuationToken
1256
- };
1257
- return [2 /*return*/, this.beginRequest({
1258
- apiVersion: "7.2-preview.1",
1259
- routeTemplate: "{project}/_apis/test/ResultsByRelease",
1260
- routeValues: {
1261
- project: project
1262
- },
1263
- queryParams: queryValues,
1264
- returnRawResponse: true
1265
- }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
1266
- var body;
1267
- return __generator(this, function (_a) {
1268
- switch (_a.label) {
1269
- case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
1270
- case 1:
1271
- body = _a.sent();
1272
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1273
- return [2 /*return*/, body];
1274
- }
1275
- });
1276
- }); })];
1277
- });
1278
- });
1279
- };
1280
- /**
1281
- * @param project - Project ID or project name
1282
- * @param buildId -
1283
- * @param publishContext -
1284
- * @param includeFailureDetails -
1285
- * @param buildToCompare -
1286
- */
1287
- TestRestClient.prototype.queryTestResultsReportForBuild = function (project, buildId, publishContext, includeFailureDetails, buildToCompare) {
1288
- return __awaiter(this, void 0, void 0, function () {
1289
- var queryValues;
1290
- return __generator(this, function (_a) {
1291
- queryValues = {
1292
- buildId: buildId,
1293
- publishContext: publishContext,
1294
- includeFailureDetails: includeFailureDetails,
1295
- buildToCompare: buildToCompare
1296
- };
1297
- return [2 /*return*/, this.beginRequest({
1298
- apiVersion: "7.2-preview.3",
1299
- routeTemplate: "{project}/_apis/test/ResultSummaryByBuild",
1300
- routeValues: {
1301
- project: project
1302
- },
1303
- queryParams: queryValues
1304
- })];
1305
- });
1306
- });
1307
- };
1308
- /**
1309
- * @param project - Project ID or project name
1310
- * @param releaseId -
1311
- * @param releaseEnvId -
1312
- * @param publishContext -
1313
- * @param includeFailureDetails -
1314
- * @param releaseToCompare -
1315
- */
1316
- TestRestClient.prototype.queryTestResultsReportForRelease = function (project, releaseId, releaseEnvId, publishContext, includeFailureDetails, releaseToCompare) {
1317
- return __awaiter(this, void 0, void 0, function () {
1318
- var queryValues;
1319
- return __generator(this, function (_a) {
1320
- queryValues = {
1321
- releaseId: releaseId,
1322
- releaseEnvId: releaseEnvId,
1323
- publishContext: publishContext,
1324
- includeFailureDetails: includeFailureDetails,
1325
- releaseToCompare: releaseToCompare
1326
- };
1327
- return [2 /*return*/, this.beginRequest({
1328
- apiVersion: "7.2-preview.3",
1329
- routeTemplate: "{project}/_apis/test/ResultSummaryByRelease",
1330
- routeValues: {
1331
- project: project
1332
- },
1333
- queryParams: queryValues
1334
- })];
1335
- });
1336
- });
1337
- };
1338
- /**
1339
- * @param releases -
1340
- * @param project - Project ID or project name
1341
- */
1342
- TestRestClient.prototype.queryTestResultsSummaryForReleases = function (releases, project) {
1343
- return __awaiter(this, void 0, void 0, function () {
1344
- return __generator(this, function (_a) {
1345
- return [2 /*return*/, this.beginRequest({
1346
- apiVersion: "7.2-preview.3",
1347
- method: "POST",
1348
- routeTemplate: "{project}/_apis/test/ResultSummaryByRelease",
1349
- routeValues: {
1350
- project: project
1351
- },
1352
- body: releases
1353
- })];
1354
- });
1355
- });
1356
- };
1357
- /**
1358
- * @param resultsContext -
1359
- * @param project - Project ID or project name
1360
- * @param workItemIds -
1361
- */
1362
- TestRestClient.prototype.queryTestSummaryByRequirement = function (resultsContext, project, workItemIds) {
1363
- return __awaiter(this, void 0, void 0, function () {
1364
- var queryValues;
1365
- return __generator(this, function (_a) {
1366
- queryValues = {
1367
- workItemIds: workItemIds && workItemIds.join(",")
1368
- };
1369
- return [2 /*return*/, this.beginRequest({
1370
- apiVersion: "7.2-preview.1",
1371
- method: "POST",
1372
- routeTemplate: "{project}/_apis/test/ResultSummaryByRequirement",
1373
- routeValues: {
1374
- project: project
1375
- },
1376
- queryParams: queryValues,
1377
- body: resultsContext
1378
- })];
1379
- });
1380
- });
1381
- };
1382
- /**
1383
- * @param filter -
1384
- * @param project - Project ID or project name
1385
- */
1386
- TestRestClient.prototype.queryResultTrendForBuild = function (filter, project) {
1387
- return __awaiter(this, void 0, void 0, function () {
1388
- return __generator(this, function (_a) {
1389
- return [2 /*return*/, this.beginRequest({
1390
- apiVersion: "7.2-preview.1",
1391
- method: "POST",
1392
- routeTemplate: "{project}/_apis/test/ResultTrendByBuild",
1393
- routeValues: {
1394
- project: project
1395
- },
1396
- body: filter
1397
- })];
1398
- });
1399
- });
1400
- };
1401
- /**
1402
- * @param filter -
1403
- * @param project - Project ID or project name
1404
- */
1405
- TestRestClient.prototype.queryResultTrendForRelease = function (filter, project) {
1406
- return __awaiter(this, void 0, void 0, function () {
1407
- return __generator(this, function (_a) {
1408
- return [2 /*return*/, this.beginRequest({
1409
- apiVersion: "7.2-preview.1",
1410
- method: "POST",
1411
- routeTemplate: "{project}/_apis/test/ResultTrendByRelease",
1412
- routeValues: {
1413
- project: project
1414
- },
1415
- body: filter
1416
- })];
1417
- });
1418
- });
1419
- };
1420
- /**
1421
- * Get test run statistics , used when we want to get summary of a run by outcome.
1422
- *
1423
- * @param project - Project ID or project name
1424
- * @param runId - ID of the run to get.
1425
- */
1426
- TestRestClient.prototype.getTestRunStatistics = function (project, runId) {
1427
- return __awaiter(this, void 0, void 0, function () {
1428
- return __generator(this, function (_a) {
1429
- return [2 /*return*/, this.beginRequest({
1430
- apiVersion: "7.2-preview.3",
1431
- routeTemplate: "{project}/_apis/test/Runs/{runId}/Statistics",
1432
- routeValues: {
1433
- project: project,
1434
- runId: runId
1435
- }
1436
- })];
1437
- });
1438
- });
1439
- };
1440
- /**
1441
- * Create new test run.
1442
- *
1443
- * @param testRun - Run details RunCreateModel
1444
- * @param project - Project ID or project name
1445
- */
1446
- TestRestClient.prototype.createTestRun = function (testRun, project) {
1447
- return __awaiter(this, void 0, void 0, function () {
1448
- return __generator(this, function (_a) {
1449
- return [2 /*return*/, this.beginRequest({
1450
- apiVersion: "7.2-preview.3",
1451
- method: "POST",
1452
- routeTemplate: "{project}/_apis/test/Runs/{runId}",
1453
- routeValues: {
1454
- project: project
1455
- },
1456
- body: testRun
1457
- })];
1458
- });
1459
- });
1460
- };
1461
- /**
1462
- * Delete a test run by its ID.
1463
- *
1464
- * @param project - Project ID or project name
1465
- * @param runId - ID of the run to delete.
1466
- */
1467
- TestRestClient.prototype.deleteTestRun = function (project, runId) {
1468
- return __awaiter(this, void 0, void 0, function () {
1469
- return __generator(this, function (_a) {
1470
- return [2 /*return*/, this.beginRequest({
1471
- apiVersion: "7.2-preview.3",
1472
- method: "DELETE",
1473
- routeTemplate: "{project}/_apis/test/Runs/{runId}",
1474
- routeValues: {
1475
- project: project,
1476
- runId: runId
1477
- }
1478
- })];
1479
- });
1480
- });
1481
- };
1482
- /**
1483
- * Get a test run by its ID.
1484
- *
1485
- * @param project - Project ID or project name
1486
- * @param runId - ID of the run to get.
1487
- * @param includeDetails - Default value is true. It includes details like run statistics, release, build, test environment, post process state, and more.
1488
- */
1489
- TestRestClient.prototype.getTestRunById = function (project, runId, includeDetails) {
1490
- return __awaiter(this, void 0, void 0, function () {
1491
- var queryValues;
1492
- return __generator(this, function (_a) {
1493
- queryValues = {
1494
- includeDetails: includeDetails
1495
- };
1496
- return [2 /*return*/, this.beginRequest({
1497
- apiVersion: "7.2-preview.3",
1498
- routeTemplate: "{project}/_apis/test/Runs/{runId}",
1499
- routeValues: {
1500
- project: project,
1501
- runId: runId
1502
- },
1503
- queryParams: queryValues
1504
- })];
1505
- });
1506
- });
1507
- };
1508
- /**
1509
- * Get a list of test runs.
1510
- *
1511
- * @param project - Project ID or project name
1512
- * @param buildUri - URI of the build that the runs used.
1513
- * @param owner - Team foundation ID of the owner of the runs.
1514
- * @param tmiRunId -
1515
- * @param planId - ID of the test plan that the runs are a part of.
1516
- * @param includeRunDetails - If true, include all the properties of the runs.
1517
- * @param automated - If true, only returns automated runs.
1518
- * @param skip - Number of test runs to skip.
1519
- * @param top - Number of test runs to return.
1520
- */
1521
- TestRestClient.prototype.getTestRuns = function (project, buildUri, owner, tmiRunId, planId, includeRunDetails, automated, skip, top) {
1522
- return __awaiter(this, void 0, void 0, function () {
1523
- var queryValues;
1524
- return __generator(this, function (_a) {
1525
- queryValues = {
1526
- buildUri: buildUri,
1527
- owner: owner,
1528
- tmiRunId: tmiRunId,
1529
- planId: planId,
1530
- includeRunDetails: includeRunDetails,
1531
- automated: automated,
1532
- '$skip': skip,
1533
- '$top': top
1534
- };
1535
- return [2 /*return*/, this.beginRequest({
1536
- apiVersion: "7.2-preview.3",
1537
- routeTemplate: "{project}/_apis/test/Runs/{runId}",
1538
- routeValues: {
1539
- project: project
1540
- },
1541
- queryParams: queryValues
1542
- })];
1543
- });
1544
- });
1545
- };
1546
- /**
1547
- * Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
1548
- *
1549
- * @param project - Project ID or project name
1550
- * @param minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
1551
- * @param maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
1552
- * @param state - Current state of the Runs to be queried.
1553
- * @param planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1554
- * @param isAutomated - Automation type of the Runs to be queried.
1555
- * @param publishContext - PublishContext of the Runs to be queried.
1556
- * @param buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1557
- * @param buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1558
- * @param branchName - Source Branch name of the Runs to be queried.
1559
- * @param releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1560
- * @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1561
- * @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1562
- * @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1563
- * @param runTitle - Run Title of the Runs to be queried.
1564
- * @param top - Number of runs to be queried. Limit is 100
1565
- * @param continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
1566
- */
1567
- TestRestClient.prototype.queryTestRuns = function (project, minLastUpdatedDate, maxLastUpdatedDate, state, planIds, isAutomated, publishContext, buildIds, buildDefIds, branchName, releaseIds, releaseDefIds, releaseEnvIds, releaseEnvDefIds, runTitle, top, continuationToken) {
1568
- return __awaiter(this, void 0, void 0, function () {
1569
- var queryValues;
1570
- var _this = this;
1571
- return __generator(this, function (_a) {
1572
- queryValues = {
1573
- minLastUpdatedDate: minLastUpdatedDate,
1574
- maxLastUpdatedDate: maxLastUpdatedDate,
1575
- state: state,
1576
- planIds: planIds && planIds.join(","),
1577
- isAutomated: isAutomated,
1578
- publishContext: publishContext,
1579
- buildIds: buildIds && buildIds.join(","),
1580
- buildDefIds: buildDefIds && buildDefIds.join(","),
1581
- branchName: branchName,
1582
- releaseIds: releaseIds && releaseIds.join(","),
1583
- releaseDefIds: releaseDefIds && releaseDefIds.join(","),
1584
- releaseEnvIds: releaseEnvIds && releaseEnvIds.join(","),
1585
- releaseEnvDefIds: releaseEnvDefIds && releaseEnvDefIds.join(","),
1586
- runTitle: runTitle,
1587
- '$top': top,
1588
- continuationToken: continuationToken
1589
- };
1590
- return [2 /*return*/, this.beginRequest({
1591
- apiVersion: "7.2-preview.3",
1592
- routeTemplate: "{project}/_apis/test/Runs/{runId}",
1593
- routeValues: {
1594
- project: project
1595
- },
1596
- queryParams: queryValues,
1597
- returnRawResponse: true
1598
- }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
1599
- var body;
1600
- return __generator(this, function (_a) {
1601
- switch (_a.label) {
1602
- case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
1603
- case 1:
1604
- body = _a.sent();
1605
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1606
- return [2 /*return*/, body];
1607
- }
1608
- });
1609
- }); })];
1610
- });
1611
- });
1612
- };
1613
- /**
1614
- * Update test run by its ID.
1615
- *
1616
- * @param runUpdateModel - Run details RunUpdateModel
1617
- * @param project - Project ID or project name
1618
- * @param runId - ID of the run to update.
1619
- */
1620
- TestRestClient.prototype.updateTestRun = function (runUpdateModel, project, runId) {
1621
- return __awaiter(this, void 0, void 0, function () {
1622
- return __generator(this, function (_a) {
1623
- return [2 /*return*/, this.beginRequest({
1624
- apiVersion: "7.2-preview.3",
1625
- method: "PATCH",
1626
- routeTemplate: "{project}/_apis/test/Runs/{runId}",
1627
- routeValues: {
1628
- project: project,
1629
- runId: runId
1630
- },
1631
- body: runUpdateModel
1632
- })];
1633
- });
1634
- });
1635
- };
1636
- /**
1637
- * Create a test session
1638
- *
1639
- * @param testSession - Test session details for creation
1640
- * @param teamContext - The team context for the operation
1641
- */
1642
- TestRestClient.prototype.createTestSession = function (testSession, teamContext) {
1643
- return __awaiter(this, void 0, void 0, function () {
1644
- var project, team;
1645
- return __generator(this, function (_a) {
1646
- project = teamContext.projectId || teamContext.project;
1647
- team = teamContext.teamId || teamContext.team;
1648
- return [2 /*return*/, this.beginRequest({
1649
- apiVersion: "7.2-preview.1",
1650
- method: "POST",
1651
- routeTemplate: "{project}/{team}/_apis/test/Session/{testSessionId}",
1652
- routeValues: {
1653
- project: project,
1654
- team: team
1655
- },
1656
- body: testSession
1657
- })];
1658
- });
1659
- });
1660
- };
1661
- /**
1662
- * Get a list of test sessions
1663
- *
1664
- * @param teamContext - The team context for the operation
1665
- * @param period - Period in days from now, for which test sessions are fetched.
1666
- * @param allSessions - If false, returns test sessions for current user. Otherwise, it returns test sessions for all users
1667
- * @param includeAllProperties - If true, it returns all properties of the test sessions. Otherwise, it returns the skinny version.
1668
- * @param source - Source of the test session.
1669
- * @param includeOnlyCompletedSessions - If true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states
1670
- */
1671
- TestRestClient.prototype.getTestSessions = function (teamContext, period, allSessions, includeAllProperties, source, includeOnlyCompletedSessions) {
1672
- return __awaiter(this, void 0, void 0, function () {
1673
- var queryValues, project, team;
1674
- return __generator(this, function (_a) {
1675
- queryValues = {
1676
- period: period,
1677
- allSessions: allSessions,
1678
- includeAllProperties: includeAllProperties,
1679
- source: source,
1680
- includeOnlyCompletedSessions: includeOnlyCompletedSessions
1681
- };
1682
- project = teamContext.projectId || teamContext.project;
1683
- team = teamContext.teamId || teamContext.team;
1684
- return [2 /*return*/, this.beginRequest({
1685
- apiVersion: "7.2-preview.1",
1686
- routeTemplate: "{project}/{team}/_apis/test/Session/{testSessionId}",
1687
- routeValues: {
1688
- project: project,
1689
- team: team
1690
- },
1691
- queryParams: queryValues
1692
- })];
1693
- });
1694
- });
1695
- };
1696
- /**
1697
- * Update a test session
1698
- *
1699
- * @param testSession - Test session details for update
1700
- * @param teamContext - The team context for the operation
1701
- */
1702
- TestRestClient.prototype.updateTestSession = function (testSession, teamContext) {
1703
- return __awaiter(this, void 0, void 0, function () {
1704
- var project, team;
1705
- return __generator(this, function (_a) {
1706
- project = teamContext.projectId || teamContext.project;
1707
- team = teamContext.teamId || teamContext.team;
1708
- return [2 /*return*/, this.beginRequest({
1709
- apiVersion: "7.2-preview.1",
1710
- method: "PATCH",
1711
- routeTemplate: "{project}/{team}/_apis/test/Session/{testSessionId}",
1712
- routeValues: {
1713
- project: project,
1714
- team: team
1715
- },
1716
- body: testSession
1717
- })];
1718
- });
1719
- });
1720
- };
1721
- /**
1722
- * @param project - Project ID or project name
1723
- * @param sharedParameterId -
1724
- */
1725
- TestRestClient.prototype.deleteSharedParameter = function (project, sharedParameterId) {
1726
- return __awaiter(this, void 0, void 0, function () {
1727
- return __generator(this, function (_a) {
1728
- return [2 /*return*/, this.beginRequest({
1729
- apiVersion: "7.2-preview.1",
1730
- method: "DELETE",
1731
- routeTemplate: "{project}/_apis/test/SharedParameter/{sharedParameterId}",
1732
- routeValues: {
1733
- project: project,
1734
- sharedParameterId: sharedParameterId
1735
- }
1736
- })];
1737
- });
1738
- });
1739
- };
1740
- /**
1741
- * @param project - Project ID or project name
1742
- * @param sharedStepId -
1743
- */
1744
- TestRestClient.prototype.deleteSharedStep = function (project, sharedStepId) {
1745
- return __awaiter(this, void 0, void 0, function () {
1746
- return __generator(this, function (_a) {
1747
- return [2 /*return*/, this.beginRequest({
1748
- apiVersion: "7.2-preview.1",
1749
- method: "DELETE",
1750
- routeTemplate: "{project}/_apis/test/SharedStep/{sharedStepId}",
1751
- routeValues: {
1752
- project: project,
1753
- sharedStepId: sharedStepId
1754
- }
1755
- })];
1756
- });
1757
- });
1758
- };
1759
- /**
1760
- * Add test cases to suite.
1761
- *
1762
- * @param project - Project ID or project name
1763
- * @param planId - ID of the test plan that contains the suite.
1764
- * @param suiteId - ID of the test suite to which the test cases must be added.
1765
- * @param testCaseIds - IDs of the test cases to add to the suite. Ids are specified in comma separated format.
1766
- */
1767
- TestRestClient.prototype.addTestCasesToSuite = function (project, planId, suiteId, testCaseIds) {
1768
- return __awaiter(this, void 0, void 0, function () {
1769
- return __generator(this, function (_a) {
1770
- return [2 /*return*/, this.beginRequest({
1771
- apiVersion: "7.2-preview.3",
1772
- method: "POST",
1773
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1774
- routeValues: {
1775
- project: project,
1776
- planId: planId,
1777
- suiteId: suiteId,
1778
- testCaseIds: testCaseIds,
1779
- action: "TestCases"
1780
- }
1781
- })];
1782
- });
1783
- });
1784
- };
1785
- /**
1786
- * Get a specific test case in a test suite with test case id.
1787
- *
1788
- * @param project - Project ID or project name
1789
- * @param planId - ID of the test plan that contains the suites.
1790
- * @param suiteId - ID of the suite that contains the test case.
1791
- * @param testCaseIds - ID of the test case to get.
1792
- */
1793
- TestRestClient.prototype.getTestCaseById = function (project, planId, suiteId, testCaseIds) {
1794
- return __awaiter(this, void 0, void 0, function () {
1795
- return __generator(this, function (_a) {
1796
- return [2 /*return*/, this.beginRequest({
1797
- apiVersion: "7.2-preview.3",
1798
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1799
- routeValues: {
1800
- project: project,
1801
- planId: planId,
1802
- suiteId: suiteId,
1803
- testCaseIds: testCaseIds,
1804
- action: "TestCases"
1805
- }
1806
- })];
1807
- });
1808
- });
1809
- };
1810
- /**
1811
- * Get all test cases in a suite.
1812
- *
1813
- * @param project - Project ID or project name
1814
- * @param planId - ID of the test plan that contains the suites.
1815
- * @param suiteId - ID of the suite to get.
1816
- */
1817
- TestRestClient.prototype.getTestCases = function (project, planId, suiteId) {
1818
- return __awaiter(this, void 0, void 0, function () {
1819
- return __generator(this, function (_a) {
1820
- return [2 /*return*/, this.beginRequest({
1821
- apiVersion: "7.2-preview.3",
1822
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1823
- routeValues: {
1824
- project: project,
1825
- planId: planId,
1826
- suiteId: suiteId,
1827
- action: "TestCases"
1828
- }
1829
- })];
1830
- });
1831
- });
1832
- };
1833
- /**
1834
- * The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently.
1835
- *
1836
- * @param project - Project ID or project name
1837
- * @param planId - ID of the test plan that contains the suite.
1838
- * @param suiteId - ID of the suite to get.
1839
- * @param testCaseIds - IDs of the test cases to remove from the suite.
1840
- */
1841
- TestRestClient.prototype.removeTestCasesFromSuiteUrl = function (project, planId, suiteId, testCaseIds) {
1842
- return __awaiter(this, void 0, void 0, function () {
1843
- return __generator(this, function (_a) {
1844
- return [2 /*return*/, this.beginRequest({
1845
- apiVersion: "7.2-preview.3",
1846
- method: "DELETE",
1847
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1848
- routeValues: {
1849
- project: project,
1850
- planId: planId,
1851
- suiteId: suiteId,
1852
- testCaseIds: testCaseIds,
1853
- action: "TestCases"
1854
- }
1855
- })];
1856
- });
1857
- });
1858
- };
1859
- /**
1860
- * Updates the properties of the test case association in a suite.
1861
- *
1862
- * @param suiteTestCaseUpdateModel - Model for updation of the properties of test case suite association.
1863
- * @param project - Project ID or project name
1864
- * @param planId - ID of the test plan that contains the suite.
1865
- * @param suiteId - ID of the test suite to which the test cases must be added.
1866
- * @param testCaseIds - IDs of the test cases to add to the suite. Ids are specified in comma separated format.
1867
- */
1868
- TestRestClient.prototype.updateSuiteTestCases = function (suiteTestCaseUpdateModel, project, planId, suiteId, testCaseIds) {
1869
- return __awaiter(this, void 0, void 0, function () {
1870
- return __generator(this, function (_a) {
1871
- return [2 /*return*/, this.beginRequest({
1872
- apiVersion: "7.2-preview.3",
1873
- method: "PATCH",
1874
- routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1875
- routeValues: {
1876
- project: project,
1877
- planId: planId,
1878
- suiteId: suiteId,
1879
- testCaseIds: testCaseIds,
1880
- action: "TestCases"
1881
- },
1882
- body: suiteTestCaseUpdateModel
1883
- })];
1884
- });
1885
- });
1886
- };
1887
- /**
1888
- * Delete a test case.
1889
- *
1890
- * @param project - Project ID or project name
1891
- * @param testCaseId - Id of test case to delete.
1892
- */
1893
- TestRestClient.prototype.deleteTestCase = function (project, testCaseId) {
1894
- return __awaiter(this, void 0, void 0, function () {
1895
- return __generator(this, function (_a) {
1896
- return [2 /*return*/, this.beginRequest({
1897
- apiVersion: "7.2-preview.1",
1898
- method: "DELETE",
1899
- routeTemplate: "{project}/_apis/test/TestCases/{testCaseId}",
1900
- routeValues: {
1901
- project: project,
1902
- testCaseId: testCaseId
1903
- }
1904
- })];
1905
- });
1906
- });
1907
- };
1908
- /**
1909
- * Get history of a test method using TestHistoryQuery
1910
- *
1911
- * @param filter - TestHistoryQuery to get history
1912
- * @param project - Project ID or project name
1913
- */
1914
- TestRestClient.prototype.queryTestHistory = function (filter, project) {
1915
- return __awaiter(this, void 0, void 0, function () {
1916
- return __generator(this, function (_a) {
1917
- return [2 /*return*/, this.beginRequest({
1918
- apiVersion: "7.2-preview.2",
1919
- method: "POST",
1920
- routeTemplate: "{project}/_apis/test/Results/TestHistory",
1921
- routeValues: {
1922
- project: project
1923
- },
1924
- body: filter
1925
- })];
1926
- });
1927
- });
1928
- };
1929
- /**
1930
- * @param testSettings -
1931
- * @param project - Project ID or project name
1932
- */
1933
- TestRestClient.prototype.createTestSettings = function (testSettings, project) {
1934
- return __awaiter(this, void 0, void 0, function () {
1935
- return __generator(this, function (_a) {
1936
- return [2 /*return*/, this.beginRequest({
1937
- apiVersion: "7.2-preview.1",
1938
- method: "POST",
1939
- routeTemplate: "{project}/_apis/test/TestSettings/{testSettingsId}",
1940
- routeValues: {
1941
- project: project
1942
- },
1943
- body: testSettings
1944
- })];
1945
- });
1946
- });
1947
- };
1948
- /**
1949
- * @param project - Project ID or project name
1950
- * @param testSettingsId -
1951
- */
1952
- TestRestClient.prototype.deleteTestSettings = function (project, testSettingsId) {
1953
- return __awaiter(this, void 0, void 0, function () {
1954
- return __generator(this, function (_a) {
1955
- return [2 /*return*/, this.beginRequest({
1956
- apiVersion: "7.2-preview.1",
1957
- method: "DELETE",
1958
- routeTemplate: "{project}/_apis/test/TestSettings/{testSettingsId}",
1959
- routeValues: {
1960
- project: project,
1961
- testSettingsId: testSettingsId
1962
- }
1963
- })];
1964
- });
1965
- });
1966
- };
1967
- /**
1968
- * @param project - Project ID or project name
1969
- * @param testSettingsId -
1970
- */
1971
- TestRestClient.prototype.getTestSettingsById = function (project, testSettingsId) {
1972
- return __awaiter(this, void 0, void 0, function () {
1973
- return __generator(this, function (_a) {
1974
- return [2 /*return*/, this.beginRequest({
1975
- apiVersion: "7.2-preview.1",
1976
- routeTemplate: "{project}/_apis/test/TestSettings/{testSettingsId}",
1977
- routeValues: {
1978
- project: project,
1979
- testSettingsId: testSettingsId
1980
- }
1981
- })];
1982
- });
1983
- });
1984
- };
1985
- /**
1986
- * @param workItemToTestLinks -
1987
- * @param project - Project ID or project name
1988
- */
1989
- TestRestClient.prototype.addWorkItemToTestLinks = function (workItemToTestLinks, project) {
1990
- return __awaiter(this, void 0, void 0, function () {
1991
- return __generator(this, function (_a) {
1992
- return [2 /*return*/, this.beginRequest({
1993
- apiVersion: "7.2-preview.1",
1994
- method: "POST",
1995
- routeTemplate: "{project}/_apis/test/TestMethods/WorkItems",
1996
- routeValues: {
1997
- project: project
1998
- },
1999
- body: workItemToTestLinks
2000
- })];
2001
- });
2002
- });
2003
- };
2004
- /**
2005
- * @param project - Project ID or project name
2006
- * @param testName -
2007
- * @param workItemId -
2008
- */
2009
- TestRestClient.prototype.deleteTestMethodToWorkItemLink = function (project, testName, workItemId) {
2010
- return __awaiter(this, void 0, void 0, function () {
2011
- var queryValues;
2012
- return __generator(this, function (_a) {
2013
- queryValues = {
2014
- testName: testName,
2015
- workItemId: workItemId
2016
- };
2017
- return [2 /*return*/, this.beginRequest({
2018
- apiVersion: "7.2-preview.1",
2019
- method: "DELETE",
2020
- routeTemplate: "{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",
2021
- routeValues: {
2022
- project: project
2023
- },
2024
- queryParams: queryValues
2025
- })];
2026
- });
2027
- });
2028
- };
2029
- /**
2030
- * @param project - Project ID or project name
2031
- * @param testName -
2032
- */
2033
- TestRestClient.prototype.queryTestMethodLinkedWorkItems = function (project, testName) {
2034
- return __awaiter(this, void 0, void 0, function () {
2035
- var queryValues;
2036
- return __generator(this, function (_a) {
2037
- queryValues = {
2038
- testName: testName
2039
- };
2040
- return [2 /*return*/, this.beginRequest({
2041
- apiVersion: "7.2-preview.1",
2042
- method: "POST",
2043
- routeTemplate: "{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",
2044
- routeValues: {
2045
- project: project
2046
- },
2047
- queryParams: queryValues
2048
- })];
2049
- });
2050
- });
2051
- };
2052
- /**
2053
- * @param project - Project ID or project name
2054
- * @param workItemCategory -
2055
- * @param automatedTestName -
2056
- * @param testCaseId -
2057
- * @param maxCompleteDate -
2058
- * @param days -
2059
- * @param workItemCount -
2060
- */
2061
- TestRestClient.prototype.queryTestResultWorkItems = function (project, workItemCategory, automatedTestName, testCaseId, maxCompleteDate, days, workItemCount) {
2062
- return __awaiter(this, void 0, void 0, function () {
2063
- var queryValues;
2064
- return __generator(this, function (_a) {
2065
- queryValues = {
2066
- workItemCategory: workItemCategory,
2067
- automatedTestName: automatedTestName,
2068
- testCaseId: testCaseId,
2069
- maxCompleteDate: maxCompleteDate,
2070
- days: days,
2071
- '$workItemCount': workItemCount
2072
- };
2073
- return [2 /*return*/, this.beginRequest({
2074
- apiVersion: "7.2-preview.1",
2075
- routeTemplate: "{project}/_apis/test/Results/WorkItems",
2076
- routeValues: {
2077
- project: project
2078
- },
2079
- queryParams: queryValues
2080
- })];
2081
- });
2082
- });
2083
- };
2084
- TestRestClient.RESOURCE_AREA_ID = "c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e";
2085
- return TestRestClient;
2086
- }(RestClientBase_1.RestClientBase));
2087
- exports.TestRestClient = TestRestClient;
2088
- });
1
+ "use strict";
2
+ /*
3
+ * ---------------------------------------------------------
4
+ * Copyright(C) Microsoft Corporation. All rights reserved.
5
+ * ---------------------------------------------------------
6
+ */
7
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
+ return new (P || (P = Promise))(function (resolve, reject) {
10
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
14
+ });
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.TestRestClient = void 0;
18
+ const RestClientBase_1 = require("../Common/RestClientBase");
19
+ const Serialization_1 = require("../Common/Util/Serialization");
20
+ class TestRestClient extends RestClientBase_1.RestClientBase {
21
+ constructor(options) {
22
+ super(options);
23
+ }
24
+ /**
25
+ * Processes a collection of test suites and returns a response model containing suite and test case details.
26
+ *
27
+ * @param request - The request model containing the test suites to be processed. Cannot be null.
28
+ * @param project - Project ID or project name
29
+ * @param workItemId -
30
+ */
31
+ processSuitesForStaging(request, project, workItemId) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ return this.beginRequest({
34
+ apiVersion: "7.2-preview.7",
35
+ method: "POST",
36
+ routeTemplate: "{project}/_apis/test/ai/workitem/testsuitedata/{workItemId}",
37
+ routeValues: {
38
+ project: project,
39
+ workItemId: workItemId
40
+ },
41
+ body: request
42
+ });
43
+ });
44
+ }
45
+ /**
46
+ * Attach a file to test step result
47
+ *
48
+ * @param attachmentRequestModel - Attachment details TestAttachmentRequestModel
49
+ * @param project - Project ID or project name
50
+ * @param runId - ID of the test run that contains the result.
51
+ * @param testCaseResultId - ID of the test result that contains the iteration
52
+ * @param iterationId - ID of the test result iteration.
53
+ * @param actionPath - Hex value of test result action path.
54
+ */
55
+ createTestIterationResultAttachment(attachmentRequestModel, project, runId, testCaseResultId, iterationId, actionPath) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const queryValues = {
58
+ iterationId: iterationId,
59
+ actionPath: actionPath
60
+ };
61
+ return this.beginRequest({
62
+ apiVersion: "7.2-preview.1",
63
+ method: "POST",
64
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
65
+ routeValues: {
66
+ project: project,
67
+ runId: runId,
68
+ testCaseResultId: testCaseResultId
69
+ },
70
+ queryParams: queryValues,
71
+ body: attachmentRequestModel
72
+ });
73
+ });
74
+ }
75
+ /**
76
+ * Attach a file to a test result.
77
+ *
78
+ * @param attachmentRequestModel - Attachment details TestAttachmentRequestModel
79
+ * @param project - Project ID or project name
80
+ * @param runId - ID of the test run that contains the result.
81
+ * @param testCaseResultId - ID of the test result against which attachment has to be uploaded.
82
+ */
83
+ createTestResultAttachment(attachmentRequestModel, project, runId, testCaseResultId) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ return this.beginRequest({
86
+ apiVersion: "7.2-preview.1",
87
+ method: "POST",
88
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
89
+ routeValues: {
90
+ project: project,
91
+ runId: runId,
92
+ testCaseResultId: testCaseResultId
93
+ },
94
+ body: attachmentRequestModel
95
+ });
96
+ });
97
+ }
98
+ /**
99
+ * Attach a file to a test result
100
+ *
101
+ * @param attachmentRequestModel - Attachment Request Model.
102
+ * @param project - Project ID or project name
103
+ * @param runId - ID of the test run that contains the result.
104
+ * @param testCaseResultId - ID of the test results that contains sub result.
105
+ * @param testSubResultId - ID of the test sub results against which attachment has to be uploaded.
106
+ */
107
+ createTestSubResultAttachment(attachmentRequestModel, project, runId, testCaseResultId, testSubResultId) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ const queryValues = {
110
+ testSubResultId: testSubResultId
111
+ };
112
+ return this.beginRequest({
113
+ apiVersion: "7.2-preview.1",
114
+ method: "POST",
115
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
116
+ routeValues: {
117
+ project: project,
118
+ runId: runId,
119
+ testCaseResultId: testCaseResultId
120
+ },
121
+ queryParams: queryValues,
122
+ body: attachmentRequestModel
123
+ });
124
+ });
125
+ }
126
+ /**
127
+ * Download a test result attachment by its ID.
128
+ *
129
+ * @param project - Project ID or project name
130
+ * @param runId - ID of the test run that contains the testCaseResultId.
131
+ * @param testCaseResultId - ID of the test result whose attachment has to be downloaded.
132
+ * @param attachmentId - ID of the test result attachment to be downloaded.
133
+ */
134
+ getTestResultAttachmentContent(project, runId, testCaseResultId, attachmentId) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ return this.beginRequest({
137
+ apiVersion: "7.2-preview.1",
138
+ httpResponseType: "application/octet-stream",
139
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
140
+ routeValues: {
141
+ project: project,
142
+ runId: runId,
143
+ testCaseResultId: testCaseResultId,
144
+ attachmentId: attachmentId
145
+ }
146
+ });
147
+ });
148
+ }
149
+ /**
150
+ * Get list of test result attachments reference.
151
+ *
152
+ * @param project - Project ID or project name
153
+ * @param runId - ID of the test run that contains the result.
154
+ * @param testCaseResultId - ID of the test result.
155
+ */
156
+ getTestResultAttachments(project, runId, testCaseResultId) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ return this.beginRequest({
159
+ apiVersion: "7.2-preview.1",
160
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
161
+ routeValues: {
162
+ project: project,
163
+ runId: runId,
164
+ testCaseResultId: testCaseResultId
165
+ }
166
+ });
167
+ });
168
+ }
169
+ /**
170
+ * Download a test result attachment by its ID.
171
+ *
172
+ * @param project - Project ID or project name
173
+ * @param runId - ID of the test run that contains the testCaseResultId.
174
+ * @param testCaseResultId - ID of the test result whose attachment has to be downloaded.
175
+ * @param attachmentId - ID of the test result attachment to be downloaded.
176
+ */
177
+ getTestResultAttachmentZip(project, runId, testCaseResultId, attachmentId) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ return this.beginRequest({
180
+ apiVersion: "7.2-preview.1",
181
+ httpResponseType: "application/zip",
182
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
183
+ routeValues: {
184
+ project: project,
185
+ runId: runId,
186
+ testCaseResultId: testCaseResultId,
187
+ attachmentId: attachmentId
188
+ }
189
+ });
190
+ });
191
+ }
192
+ /**
193
+ * Download a test sub result attachment
194
+ *
195
+ * @param project - Project ID or project name
196
+ * @param runId - ID of the test run that contains the result.
197
+ * @param testCaseResultId - ID of the test results that contains sub result.
198
+ * @param attachmentId - ID of the test result attachment to be downloaded
199
+ * @param testSubResultId - ID of the test sub result whose attachment has to be downloaded
200
+ */
201
+ getTestSubResultAttachmentContent(project, runId, testCaseResultId, attachmentId, testSubResultId) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ const queryValues = {
204
+ testSubResultId: testSubResultId
205
+ };
206
+ return this.beginRequest({
207
+ apiVersion: "7.2-preview.1",
208
+ httpResponseType: "application/octet-stream",
209
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
210
+ routeValues: {
211
+ project: project,
212
+ runId: runId,
213
+ testCaseResultId: testCaseResultId,
214
+ attachmentId: attachmentId
215
+ },
216
+ queryParams: queryValues
217
+ });
218
+ });
219
+ }
220
+ /**
221
+ * Get list of test sub result attachments
222
+ *
223
+ * @param project - Project ID or project name
224
+ * @param runId - ID of the test run that contains the result.
225
+ * @param testCaseResultId - ID of the test results that contains sub result.
226
+ * @param testSubResultId - ID of the test sub result whose attachment has to be downloaded
227
+ */
228
+ getTestSubResultAttachments(project, runId, testCaseResultId, testSubResultId) {
229
+ return __awaiter(this, void 0, void 0, function* () {
230
+ const queryValues = {
231
+ testSubResultId: testSubResultId
232
+ };
233
+ return this.beginRequest({
234
+ apiVersion: "7.2-preview.1",
235
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
236
+ routeValues: {
237
+ project: project,
238
+ runId: runId,
239
+ testCaseResultId: testCaseResultId
240
+ },
241
+ queryParams: queryValues
242
+ });
243
+ });
244
+ }
245
+ /**
246
+ * Download a test sub result attachment
247
+ *
248
+ * @param project - Project ID or project name
249
+ * @param runId - ID of the test run that contains the result.
250
+ * @param testCaseResultId - ID of the test results that contains sub result.
251
+ * @param attachmentId - ID of the test result attachment to be downloaded
252
+ * @param testSubResultId - ID of the test sub result whose attachment has to be downloaded
253
+ */
254
+ getTestSubResultAttachmentZip(project, runId, testCaseResultId, attachmentId, testSubResultId) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ const queryValues = {
257
+ testSubResultId: testSubResultId
258
+ };
259
+ return this.beginRequest({
260
+ apiVersion: "7.2-preview.1",
261
+ httpResponseType: "application/zip",
262
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",
263
+ routeValues: {
264
+ project: project,
265
+ runId: runId,
266
+ testCaseResultId: testCaseResultId,
267
+ attachmentId: attachmentId
268
+ },
269
+ queryParams: queryValues
270
+ });
271
+ });
272
+ }
273
+ /**
274
+ * Attach a file to a test run.
275
+ *
276
+ * @param attachmentRequestModel - Attachment details TestAttachmentRequestModel
277
+ * @param project - Project ID or project name
278
+ * @param runId - ID of the test run against which attachment has to be uploaded.
279
+ */
280
+ createTestRunAttachment(attachmentRequestModel, project, runId) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ return this.beginRequest({
283
+ apiVersion: "7.2-preview.1",
284
+ method: "POST",
285
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
286
+ routeValues: {
287
+ project: project,
288
+ runId: runId
289
+ },
290
+ body: attachmentRequestModel
291
+ });
292
+ });
293
+ }
294
+ /**
295
+ * Download a test run attachment by its ID.
296
+ *
297
+ * @param project - Project ID or project name
298
+ * @param runId - ID of the test run whose attachment has to be downloaded.
299
+ * @param attachmentId - ID of the test run attachment to be downloaded.
300
+ */
301
+ getTestRunAttachmentContent(project, runId, attachmentId) {
302
+ return __awaiter(this, void 0, void 0, function* () {
303
+ return this.beginRequest({
304
+ apiVersion: "7.2-preview.1",
305
+ httpResponseType: "application/octet-stream",
306
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
307
+ routeValues: {
308
+ project: project,
309
+ runId: runId,
310
+ attachmentId: attachmentId
311
+ }
312
+ });
313
+ });
314
+ }
315
+ /**
316
+ * Get list of test run attachments reference.
317
+ *
318
+ * @param project - Project ID or project name
319
+ * @param runId - ID of the test run.
320
+ */
321
+ getTestRunAttachments(project, runId) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ return this.beginRequest({
324
+ apiVersion: "7.2-preview.1",
325
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
326
+ routeValues: {
327
+ project: project,
328
+ runId: runId
329
+ }
330
+ });
331
+ });
332
+ }
333
+ /**
334
+ * Download a test run attachment by its ID.
335
+ *
336
+ * @param project - Project ID or project name
337
+ * @param runId - ID of the test run whose attachment has to be downloaded.
338
+ * @param attachmentId - ID of the test run attachment to be downloaded.
339
+ */
340
+ getTestRunAttachmentZip(project, runId, attachmentId) {
341
+ return __awaiter(this, void 0, void 0, function* () {
342
+ return this.beginRequest({
343
+ apiVersion: "7.2-preview.1",
344
+ httpResponseType: "application/zip",
345
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",
346
+ routeValues: {
347
+ project: project,
348
+ runId: runId,
349
+ attachmentId: attachmentId
350
+ }
351
+ });
352
+ });
353
+ }
354
+ /**
355
+ * @param project - Project ID or project name
356
+ * @param runId -
357
+ * @param testCaseResultId -
358
+ */
359
+ getBugsLinkedToTestResult(project, runId, testCaseResultId) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ return this.beginRequest({
362
+ apiVersion: "7.2-preview.1",
363
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Bugs",
364
+ routeValues: {
365
+ project: project,
366
+ runId: runId,
367
+ testCaseResultId: testCaseResultId
368
+ }
369
+ });
370
+ });
371
+ }
372
+ /**
373
+ * Get code coverage data for a build.
374
+ *
375
+ * @param project - Project ID or project name
376
+ * @param buildId - ID of the build for which code coverage data needs to be fetched.
377
+ * @param flags - Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
378
+ */
379
+ getBuildCodeCoverage(project, buildId, flags) {
380
+ return __awaiter(this, void 0, void 0, function* () {
381
+ const queryValues = {
382
+ buildId: buildId,
383
+ flags: flags
384
+ };
385
+ return this.beginRequest({
386
+ apiVersion: "7.2-preview.1",
387
+ routeTemplate: "{project}/_apis/test/CodeCoverage",
388
+ routeValues: {
389
+ project: project
390
+ },
391
+ queryParams: queryValues
392
+ });
393
+ });
394
+ }
395
+ /**
396
+ * Get Code Coverage Summary for Build.
397
+ *
398
+ * @param project - Project ID or project name
399
+ * @param buildId - ID of the build for which code coverage data needs to be fetched.
400
+ * @param deltaBuildId - Delta Build id (optional)
401
+ */
402
+ getCodeCoverageSummary(project, buildId, deltaBuildId) {
403
+ return __awaiter(this, void 0, void 0, function* () {
404
+ const queryValues = {
405
+ buildId: buildId,
406
+ deltaBuildId: deltaBuildId
407
+ };
408
+ return this.beginRequest({
409
+ apiVersion: "7.2-preview.1",
410
+ routeTemplate: "{project}/_apis/test/CodeCoverage",
411
+ routeValues: {
412
+ project: project
413
+ },
414
+ queryParams: queryValues
415
+ });
416
+ });
417
+ }
418
+ /**
419
+ * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary
420
+ *
421
+ * @param coverageData -
422
+ * @param project - Project ID or project name
423
+ * @param buildId -
424
+ */
425
+ updateCodeCoverageSummary(coverageData, project, buildId) {
426
+ return __awaiter(this, void 0, void 0, function* () {
427
+ const queryValues = {
428
+ buildId: buildId
429
+ };
430
+ return this.beginRequest({
431
+ apiVersion: "7.2-preview.1",
432
+ method: "POST",
433
+ routeTemplate: "{project}/_apis/test/CodeCoverage",
434
+ routeValues: {
435
+ project: project
436
+ },
437
+ queryParams: queryValues,
438
+ body: coverageData
439
+ });
440
+ });
441
+ }
442
+ /**
443
+ * Get code coverage data for a test run
444
+ *
445
+ * @param project - Project ID or project name
446
+ * @param runId - ID of the test run for which code coverage data needs to be fetched.
447
+ * @param flags - Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
448
+ */
449
+ getTestRunCodeCoverage(project, runId, flags) {
450
+ return __awaiter(this, void 0, void 0, function* () {
451
+ const queryValues = {
452
+ flags: flags
453
+ };
454
+ return this.beginRequest({
455
+ apiVersion: "7.2-preview.1",
456
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/CodeCoverage",
457
+ routeValues: {
458
+ project: project,
459
+ runId: runId
460
+ },
461
+ queryParams: queryValues
462
+ });
463
+ });
464
+ }
465
+ /**
466
+ * @param newFields -
467
+ * @param project - Project ID or project name
468
+ */
469
+ addCustomFields(newFields, project) {
470
+ return __awaiter(this, void 0, void 0, function* () {
471
+ return this.beginRequest({
472
+ apiVersion: "7.2-preview.1",
473
+ method: "POST",
474
+ routeTemplate: "{project}/_apis/test/ExtensionFields",
475
+ routeValues: {
476
+ project: project
477
+ },
478
+ body: newFields
479
+ });
480
+ });
481
+ }
482
+ /**
483
+ * @param project - Project ID or project name
484
+ * @param scopeFilter -
485
+ */
486
+ queryCustomFields(project, scopeFilter) {
487
+ return __awaiter(this, void 0, void 0, function* () {
488
+ const queryValues = {
489
+ scopeFilter: scopeFilter
490
+ };
491
+ return this.beginRequest({
492
+ apiVersion: "7.2-preview.1",
493
+ routeTemplate: "{project}/_apis/test/ExtensionFields",
494
+ routeValues: {
495
+ project: project
496
+ },
497
+ queryParams: queryValues
498
+ });
499
+ });
500
+ }
501
+ /**
502
+ * @param filter -
503
+ * @param project - Project ID or project name
504
+ */
505
+ queryTestResultHistory(filter, project) {
506
+ return __awaiter(this, void 0, void 0, function* () {
507
+ return this.beginRequest({
508
+ apiVersion: "7.2-preview.1",
509
+ method: "POST",
510
+ routeTemplate: "{project}/_apis/test/Results/History",
511
+ routeValues: {
512
+ project: project
513
+ },
514
+ body: filter
515
+ });
516
+ });
517
+ }
518
+ /**
519
+ * Get iteration for a result
520
+ *
521
+ * @param project - Project ID or project name
522
+ * @param runId - ID of the test run that contains the result.
523
+ * @param testCaseResultId - ID of the test result that contains the iterations.
524
+ * @param iterationId - Id of the test results Iteration.
525
+ * @param includeActionResults - Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
526
+ */
527
+ getTestIteration(project, runId, testCaseResultId, iterationId, includeActionResults) {
528
+ return __awaiter(this, void 0, void 0, function* () {
529
+ const queryValues = {
530
+ includeActionResults: includeActionResults
531
+ };
532
+ return this.beginRequest({
533
+ apiVersion: "7.2-preview.3",
534
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",
535
+ routeValues: {
536
+ project: project,
537
+ runId: runId,
538
+ testCaseResultId: testCaseResultId,
539
+ iterationId: iterationId
540
+ },
541
+ queryParams: queryValues
542
+ });
543
+ });
544
+ }
545
+ /**
546
+ * Get iterations for a result
547
+ *
548
+ * @param project - Project ID or project name
549
+ * @param runId - ID of the test run that contains the result.
550
+ * @param testCaseResultId - ID of the test result that contains the iterations.
551
+ * @param includeActionResults - Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
552
+ */
553
+ getTestIterations(project, runId, testCaseResultId, includeActionResults) {
554
+ return __awaiter(this, void 0, void 0, function* () {
555
+ const queryValues = {
556
+ includeActionResults: includeActionResults
557
+ };
558
+ return this.beginRequest({
559
+ apiVersion: "7.2-preview.3",
560
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",
561
+ routeValues: {
562
+ project: project,
563
+ runId: runId,
564
+ testCaseResultId: testCaseResultId
565
+ },
566
+ queryParams: queryValues
567
+ });
568
+ });
569
+ }
570
+ /**
571
+ * @param workItemQuery -
572
+ * @param project - Project ID or project name
573
+ */
574
+ getLinkedWorkItemsByQuery(workItemQuery, project) {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ return this.beginRequest({
577
+ apiVersion: "7.2-preview.1",
578
+ method: "POST",
579
+ routeTemplate: "{project}/_apis/test/LinkedWorkItemsQuery",
580
+ routeValues: {
581
+ project: project
582
+ },
583
+ body: workItemQuery
584
+ });
585
+ });
586
+ }
587
+ /**
588
+ * Get test run message logs
589
+ *
590
+ * @param project - Project ID or project name
591
+ * @param runId - ID of the run to get.
592
+ */
593
+ getTestRunLogs(project, runId) {
594
+ return __awaiter(this, void 0, void 0, function* () {
595
+ return this.beginRequest({
596
+ apiVersion: "7.2-preview.1",
597
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/MessageLogs",
598
+ routeValues: {
599
+ project: project,
600
+ runId: runId
601
+ }
602
+ });
603
+ });
604
+ }
605
+ /**
606
+ * Get a test point.
607
+ *
608
+ * @param project - Project ID or project name
609
+ * @param planId - ID of the test plan.
610
+ * @param suiteId - ID of the suite that contains the point.
611
+ * @param pointIds - ID of the test point to get.
612
+ * @param witFields - Comma-separated list of work item field names.
613
+ */
614
+ getPoint(project, planId, suiteId, pointIds, witFields) {
615
+ return __awaiter(this, void 0, void 0, function* () {
616
+ const queryValues = {
617
+ witFields: witFields
618
+ };
619
+ return this.beginRequest({
620
+ apiVersion: "7.2-preview.2",
621
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",
622
+ routeValues: {
623
+ project: project,
624
+ planId: planId,
625
+ suiteId: suiteId,
626
+ pointIds: pointIds
627
+ },
628
+ queryParams: queryValues
629
+ });
630
+ });
631
+ }
632
+ /**
633
+ * Get a list of test points.
634
+ *
635
+ * @param project - Project ID or project name
636
+ * @param planId - ID of the test plan.
637
+ * @param suiteId - ID of the suite that contains the points.
638
+ * @param witFields - Comma-separated list of work item field names.
639
+ * @param configurationId - Get test points for specific configuration.
640
+ * @param testCaseId - Get test points for a specific test case, valid when configurationId is not set.
641
+ * @param testPointIds - Get test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set.
642
+ * @param includePointDetails - Include all properties for the test point.
643
+ * @param skip - Number of test points to skip..
644
+ * @param top - Number of test points to return.
645
+ */
646
+ getPoints(project, planId, suiteId, witFields, configurationId, testCaseId, testPointIds, includePointDetails, skip, top) {
647
+ return __awaiter(this, void 0, void 0, function* () {
648
+ const queryValues = {
649
+ witFields: witFields,
650
+ configurationId: configurationId,
651
+ testCaseId: testCaseId,
652
+ testPointIds: testPointIds,
653
+ includePointDetails: includePointDetails,
654
+ '$skip': skip,
655
+ '$top': top
656
+ };
657
+ return this.beginRequest({
658
+ apiVersion: "7.2-preview.2",
659
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",
660
+ routeValues: {
661
+ project: project,
662
+ planId: planId,
663
+ suiteId: suiteId
664
+ },
665
+ queryParams: queryValues
666
+ });
667
+ });
668
+ }
669
+ /**
670
+ * Update test points.
671
+ *
672
+ * @param pointUpdateModel - Data to update.
673
+ * @param project - Project ID or project name
674
+ * @param planId - ID of the test plan.
675
+ * @param suiteId - ID of the suite that contains the points.
676
+ * @param pointIds - ID of the test point to get. Use a comma-separated list of IDs to update multiple test points.
677
+ */
678
+ updateTestPoints(pointUpdateModel, project, planId, suiteId, pointIds) {
679
+ return __awaiter(this, void 0, void 0, function* () {
680
+ return this.beginRequest({
681
+ apiVersion: "7.2-preview.2",
682
+ method: "PATCH",
683
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",
684
+ routeValues: {
685
+ project: project,
686
+ planId: planId,
687
+ suiteId: suiteId,
688
+ pointIds: pointIds
689
+ },
690
+ body: pointUpdateModel
691
+ });
692
+ });
693
+ }
694
+ /**
695
+ * Get test points using query.
696
+ *
697
+ * @param query - TestPointsQuery to get test points.
698
+ * @param project - Project ID or project name
699
+ * @param skip - Number of test points to skip..
700
+ * @param top - Number of test points to return.
701
+ */
702
+ getPointsByQuery(query, project, skip, top) {
703
+ return __awaiter(this, void 0, void 0, function* () {
704
+ const queryValues = {
705
+ '$skip': skip,
706
+ '$top': top
707
+ };
708
+ return this.beginRequest({
709
+ apiVersion: "7.2-preview.2",
710
+ method: "POST",
711
+ routeTemplate: "{project}/_apis/test/Points",
712
+ routeValues: {
713
+ project: project
714
+ },
715
+ queryParams: queryValues,
716
+ body: query
717
+ });
718
+ });
719
+ }
720
+ /**
721
+ * @param project - Project ID or project name
722
+ * @param buildId -
723
+ * @param publishContext -
724
+ * @param groupBy -
725
+ * @param filter -
726
+ * @param orderby -
727
+ * @param shouldIncludeResults -
728
+ * @param queryRunSummaryForInProgress -
729
+ */
730
+ getTestResultDetailsForBuild(project, buildId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
731
+ return __awaiter(this, void 0, void 0, function* () {
732
+ const queryValues = {
733
+ buildId: buildId,
734
+ publishContext: publishContext,
735
+ groupBy: groupBy,
736
+ '$filter': filter,
737
+ '$orderby': orderby,
738
+ shouldIncludeResults: shouldIncludeResults,
739
+ queryRunSummaryForInProgress: queryRunSummaryForInProgress
740
+ };
741
+ return this.beginRequest({
742
+ apiVersion: "7.2-preview.2",
743
+ routeTemplate: "{project}/_apis/test/ResultDetailsByBuild",
744
+ routeValues: {
745
+ project: project
746
+ },
747
+ queryParams: queryValues
748
+ });
749
+ });
750
+ }
751
+ /**
752
+ * @param project - Project ID or project name
753
+ * @param releaseId -
754
+ * @param releaseEnvId -
755
+ * @param publishContext -
756
+ * @param groupBy -
757
+ * @param filter -
758
+ * @param orderby -
759
+ * @param shouldIncludeResults -
760
+ * @param queryRunSummaryForInProgress -
761
+ */
762
+ getTestResultDetailsForRelease(project, releaseId, releaseEnvId, publishContext, groupBy, filter, orderby, shouldIncludeResults, queryRunSummaryForInProgress) {
763
+ return __awaiter(this, void 0, void 0, function* () {
764
+ const queryValues = {
765
+ releaseId: releaseId,
766
+ releaseEnvId: releaseEnvId,
767
+ publishContext: publishContext,
768
+ groupBy: groupBy,
769
+ '$filter': filter,
770
+ '$orderby': orderby,
771
+ shouldIncludeResults: shouldIncludeResults,
772
+ queryRunSummaryForInProgress: queryRunSummaryForInProgress
773
+ };
774
+ return this.beginRequest({
775
+ apiVersion: "7.2-preview.2",
776
+ routeTemplate: "{project}/_apis/test/ResultDetailsByRelease",
777
+ routeValues: {
778
+ project: project
779
+ },
780
+ queryParams: queryValues
781
+ });
782
+ });
783
+ }
784
+ /**
785
+ * @param document -
786
+ * @param project - Project ID or project name
787
+ * @param runId -
788
+ */
789
+ publishTestResultDocument(document, project, runId) {
790
+ return __awaiter(this, void 0, void 0, function* () {
791
+ return this.beginRequest({
792
+ apiVersion: "7.2-preview.1",
793
+ method: "POST",
794
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/ResultDocument",
795
+ routeValues: {
796
+ project: project,
797
+ runId: runId
798
+ },
799
+ body: document
800
+ });
801
+ });
802
+ }
803
+ /**
804
+ * @param project - Project ID or project name
805
+ * @param buildId -
806
+ * @param publishContext -
807
+ * @param fields -
808
+ * @param continuationToken -
809
+ */
810
+ getResultGroupsByBuild(project, buildId, publishContext, fields, continuationToken) {
811
+ return __awaiter(this, void 0, void 0, function* () {
812
+ const queryValues = {
813
+ buildId: buildId,
814
+ publishContext: publishContext,
815
+ fields: fields && fields.join(","),
816
+ continuationToken: continuationToken
817
+ };
818
+ return this.beginRequest({
819
+ apiVersion: "7.2-preview.2",
820
+ routeTemplate: "{project}/_apis/test/ResultGroupsByBuild",
821
+ routeValues: {
822
+ project: project
823
+ },
824
+ queryParams: queryValues,
825
+ returnRawResponse: true
826
+ }).then((response) => __awaiter(this, void 0, void 0, function* () {
827
+ const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
828
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
829
+ return body;
830
+ }));
831
+ });
832
+ }
833
+ /**
834
+ * @param project - Project ID or project name
835
+ * @param releaseId -
836
+ * @param publishContext -
837
+ * @param releaseEnvId -
838
+ * @param fields -
839
+ * @param continuationToken -
840
+ */
841
+ getResultGroupsByRelease(project, releaseId, publishContext, releaseEnvId, fields, continuationToken) {
842
+ return __awaiter(this, void 0, void 0, function* () {
843
+ const queryValues = {
844
+ releaseId: releaseId,
845
+ publishContext: publishContext,
846
+ releaseEnvId: releaseEnvId,
847
+ fields: fields && fields.join(","),
848
+ continuationToken: continuationToken
849
+ };
850
+ return this.beginRequest({
851
+ apiVersion: "7.2-preview.2",
852
+ routeTemplate: "{project}/_apis/test/ResultGroupsByRelease",
853
+ routeValues: {
854
+ project: project
855
+ },
856
+ queryParams: queryValues,
857
+ returnRawResponse: true
858
+ }).then((response) => __awaiter(this, void 0, void 0, function* () {
859
+ const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
860
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
861
+ return body;
862
+ }));
863
+ });
864
+ }
865
+ /**
866
+ * Get list of test Result meta data details for corresponding testcasereferenceId
867
+ *
868
+ * @param testReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
869
+ * @param project - Project ID or project name
870
+ */
871
+ queryTestResultsMetaData(testReferenceIds, project) {
872
+ return __awaiter(this, void 0, void 0, function* () {
873
+ return this.beginRequest({
874
+ apiVersion: "7.2-preview.2",
875
+ method: "POST",
876
+ routeTemplate: "{project}/_apis/test/Results/ResultMetaData",
877
+ routeValues: {
878
+ project: project
879
+ },
880
+ body: testReferenceIds
881
+ });
882
+ });
883
+ }
884
+ /**
885
+ * Get test result retention settings
886
+ *
887
+ * @param project - Project ID or project name
888
+ */
889
+ getResultRetentionSettings(project) {
890
+ return __awaiter(this, void 0, void 0, function* () {
891
+ return this.beginRequest({
892
+ apiVersion: "7.2-preview.1",
893
+ routeTemplate: "{project}/_apis/test/ResultRetentionSettings",
894
+ routeValues: {
895
+ project: project
896
+ }
897
+ });
898
+ });
899
+ }
900
+ /**
901
+ * Update test result retention settings
902
+ *
903
+ * @param retentionSettings - Test result retention settings details to be updated
904
+ * @param project - Project ID or project name
905
+ */
906
+ updateResultRetentionSettings(retentionSettings, project) {
907
+ return __awaiter(this, void 0, void 0, function* () {
908
+ return this.beginRequest({
909
+ apiVersion: "7.2-preview.1",
910
+ method: "PATCH",
911
+ routeTemplate: "{project}/_apis/test/ResultRetentionSettings",
912
+ routeValues: {
913
+ project: project
914
+ },
915
+ body: retentionSettings
916
+ });
917
+ });
918
+ }
919
+ /**
920
+ * Add test results to a test run.
921
+ *
922
+ * @param results - List of test results to add.
923
+ * @param project - Project ID or project name
924
+ * @param runId - Test run ID into which test results to add.
925
+ */
926
+ addTestResultsToTestRun(results, project, runId) {
927
+ return __awaiter(this, void 0, void 0, function* () {
928
+ return this.beginRequest({
929
+ apiVersion: "7.2-preview.6",
930
+ method: "POST",
931
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
932
+ routeValues: {
933
+ project: project,
934
+ runId: runId
935
+ },
936
+ body: results
937
+ });
938
+ });
939
+ }
940
+ /**
941
+ * Get a test result for a test run.
942
+ *
943
+ * @param project - Project ID or project name
944
+ * @param runId - Test run ID of a test result to fetch.
945
+ * @param testCaseResultId - Test result ID.
946
+ * @param detailsToInclude - Details to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults.
947
+ */
948
+ getTestResultById(project, runId, testCaseResultId, detailsToInclude) {
949
+ return __awaiter(this, void 0, void 0, function* () {
950
+ const queryValues = {
951
+ detailsToInclude: detailsToInclude
952
+ };
953
+ return this.beginRequest({
954
+ apiVersion: "7.2-preview.6",
955
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
956
+ routeValues: {
957
+ project: project,
958
+ runId: runId,
959
+ testCaseResultId: testCaseResultId
960
+ },
961
+ queryParams: queryValues
962
+ });
963
+ });
964
+ }
965
+ /**
966
+ * Get test results for a test run.
967
+ *
968
+ * @param project - Project ID or project name
969
+ * @param runId - Test run ID of test results to fetch.
970
+ * @param detailsToInclude - Details to include with test results. Default is None. Other values are Iterations and WorkItems.
971
+ * @param skip - Number of test results to skip from beginning.
972
+ * @param top - Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.
973
+ * @param outcomes - Comma separated list of test outcomes to filter test results.
974
+ */
975
+ getTestResults(project, runId, detailsToInclude, skip, top, outcomes) {
976
+ return __awaiter(this, void 0, void 0, function* () {
977
+ const queryValues = {
978
+ detailsToInclude: detailsToInclude,
979
+ '$skip': skip,
980
+ '$top': top,
981
+ outcomes: outcomes && outcomes.join(",")
982
+ };
983
+ return this.beginRequest({
984
+ apiVersion: "7.2-preview.6",
985
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
986
+ routeValues: {
987
+ project: project,
988
+ runId: runId
989
+ },
990
+ queryParams: queryValues
991
+ });
992
+ });
993
+ }
994
+ /**
995
+ * Update test results in a test run.
996
+ *
997
+ * @param results - List of test results to update.
998
+ * @param project - Project ID or project name
999
+ * @param runId - Test run ID whose test results to update.
1000
+ */
1001
+ updateTestResults(results, project, runId) {
1002
+ return __awaiter(this, void 0, void 0, function* () {
1003
+ return this.beginRequest({
1004
+ apiVersion: "7.2-preview.6",
1005
+ method: "PATCH",
1006
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",
1007
+ routeValues: {
1008
+ project: project,
1009
+ runId: runId
1010
+ },
1011
+ body: results
1012
+ });
1013
+ });
1014
+ }
1015
+ /**
1016
+ * This API will return results by Ids with fields specified/trend for particular automated test method. We are still improving this API and have not finalized proper signature and contract.
1017
+ *
1018
+ * @param query -
1019
+ * @param project - Project ID or project name
1020
+ */
1021
+ getTestResultsByQuery(query, project) {
1022
+ return __awaiter(this, void 0, void 0, function* () {
1023
+ return this.beginRequest({
1024
+ apiVersion: "7.2-preview.6",
1025
+ method: "POST",
1026
+ routeTemplate: "{project}/_apis/test/Results",
1027
+ routeValues: {
1028
+ project: project
1029
+ },
1030
+ body: query
1031
+ });
1032
+ });
1033
+ }
1034
+ /**
1035
+ * @param project - Project ID or project name
1036
+ * @param buildId -
1037
+ * @param publishContext -
1038
+ * @param outcomes -
1039
+ * @param top -
1040
+ * @param continuationToken -
1041
+ */
1042
+ getTestResultsByBuild(project, buildId, publishContext, outcomes, top, continuationToken) {
1043
+ return __awaiter(this, void 0, void 0, function* () {
1044
+ const queryValues = {
1045
+ buildId: buildId,
1046
+ publishContext: publishContext,
1047
+ outcomes: outcomes && outcomes.join(","),
1048
+ '$top': top,
1049
+ continuationToken: continuationToken
1050
+ };
1051
+ return this.beginRequest({
1052
+ apiVersion: "7.2-preview.1",
1053
+ routeTemplate: "{project}/_apis/test/ResultsByBuild",
1054
+ routeValues: {
1055
+ project: project
1056
+ },
1057
+ queryParams: queryValues,
1058
+ returnRawResponse: true
1059
+ }).then((response) => __awaiter(this, void 0, void 0, function* () {
1060
+ const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
1061
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
1062
+ return body;
1063
+ }));
1064
+ });
1065
+ }
1066
+ /**
1067
+ * @param project - Project ID or project name
1068
+ * @param releaseId -
1069
+ * @param releaseEnvid -
1070
+ * @param publishContext -
1071
+ * @param outcomes -
1072
+ * @param top -
1073
+ * @param continuationToken -
1074
+ */
1075
+ getTestResultsByRelease(project, releaseId, releaseEnvid, publishContext, outcomes, top, continuationToken) {
1076
+ return __awaiter(this, void 0, void 0, function* () {
1077
+ const queryValues = {
1078
+ releaseId: releaseId,
1079
+ releaseEnvid: releaseEnvid,
1080
+ publishContext: publishContext,
1081
+ outcomes: outcomes && outcomes.join(","),
1082
+ '$top': top,
1083
+ continuationToken: continuationToken
1084
+ };
1085
+ return this.beginRequest({
1086
+ apiVersion: "7.2-preview.1",
1087
+ routeTemplate: "{project}/_apis/test/ResultsByRelease",
1088
+ routeValues: {
1089
+ project: project
1090
+ },
1091
+ queryParams: queryValues,
1092
+ returnRawResponse: true
1093
+ }).then((response) => __awaiter(this, void 0, void 0, function* () {
1094
+ const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
1095
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
1096
+ return body;
1097
+ }));
1098
+ });
1099
+ }
1100
+ /**
1101
+ * @param project - Project ID or project name
1102
+ * @param buildId -
1103
+ * @param publishContext -
1104
+ * @param includeFailureDetails -
1105
+ * @param buildToCompare -
1106
+ */
1107
+ queryTestResultsReportForBuild(project, buildId, publishContext, includeFailureDetails, buildToCompare) {
1108
+ return __awaiter(this, void 0, void 0, function* () {
1109
+ const queryValues = {
1110
+ buildId: buildId,
1111
+ publishContext: publishContext,
1112
+ includeFailureDetails: includeFailureDetails,
1113
+ buildToCompare: buildToCompare
1114
+ };
1115
+ return this.beginRequest({
1116
+ apiVersion: "7.2-preview.3",
1117
+ routeTemplate: "{project}/_apis/test/ResultSummaryByBuild",
1118
+ routeValues: {
1119
+ project: project
1120
+ },
1121
+ queryParams: queryValues
1122
+ });
1123
+ });
1124
+ }
1125
+ /**
1126
+ * @param project - Project ID or project name
1127
+ * @param releaseId -
1128
+ * @param releaseEnvId -
1129
+ * @param publishContext -
1130
+ * @param includeFailureDetails -
1131
+ * @param releaseToCompare -
1132
+ */
1133
+ queryTestResultsReportForRelease(project, releaseId, releaseEnvId, publishContext, includeFailureDetails, releaseToCompare) {
1134
+ return __awaiter(this, void 0, void 0, function* () {
1135
+ const queryValues = {
1136
+ releaseId: releaseId,
1137
+ releaseEnvId: releaseEnvId,
1138
+ publishContext: publishContext,
1139
+ includeFailureDetails: includeFailureDetails,
1140
+ releaseToCompare: releaseToCompare
1141
+ };
1142
+ return this.beginRequest({
1143
+ apiVersion: "7.2-preview.3",
1144
+ routeTemplate: "{project}/_apis/test/ResultSummaryByRelease",
1145
+ routeValues: {
1146
+ project: project
1147
+ },
1148
+ queryParams: queryValues
1149
+ });
1150
+ });
1151
+ }
1152
+ /**
1153
+ * @param releases -
1154
+ * @param project - Project ID or project name
1155
+ */
1156
+ queryTestResultsSummaryForReleases(releases, project) {
1157
+ return __awaiter(this, void 0, void 0, function* () {
1158
+ return this.beginRequest({
1159
+ apiVersion: "7.2-preview.3",
1160
+ method: "POST",
1161
+ routeTemplate: "{project}/_apis/test/ResultSummaryByRelease",
1162
+ routeValues: {
1163
+ project: project
1164
+ },
1165
+ body: releases
1166
+ });
1167
+ });
1168
+ }
1169
+ /**
1170
+ * @param resultsContext -
1171
+ * @param project - Project ID or project name
1172
+ * @param workItemIds -
1173
+ */
1174
+ queryTestSummaryByRequirement(resultsContext, project, workItemIds) {
1175
+ return __awaiter(this, void 0, void 0, function* () {
1176
+ const queryValues = {
1177
+ workItemIds: workItemIds && workItemIds.join(",")
1178
+ };
1179
+ return this.beginRequest({
1180
+ apiVersion: "7.2-preview.1",
1181
+ method: "POST",
1182
+ routeTemplate: "{project}/_apis/test/ResultSummaryByRequirement",
1183
+ routeValues: {
1184
+ project: project
1185
+ },
1186
+ queryParams: queryValues,
1187
+ body: resultsContext
1188
+ });
1189
+ });
1190
+ }
1191
+ /**
1192
+ * @param filter -
1193
+ * @param project - Project ID or project name
1194
+ */
1195
+ queryResultTrendForBuild(filter, project) {
1196
+ return __awaiter(this, void 0, void 0, function* () {
1197
+ return this.beginRequest({
1198
+ apiVersion: "7.2-preview.1",
1199
+ method: "POST",
1200
+ routeTemplate: "{project}/_apis/test/ResultTrendByBuild",
1201
+ routeValues: {
1202
+ project: project
1203
+ },
1204
+ body: filter
1205
+ });
1206
+ });
1207
+ }
1208
+ /**
1209
+ * @param filter -
1210
+ * @param project - Project ID or project name
1211
+ */
1212
+ queryResultTrendForRelease(filter, project) {
1213
+ return __awaiter(this, void 0, void 0, function* () {
1214
+ return this.beginRequest({
1215
+ apiVersion: "7.2-preview.1",
1216
+ method: "POST",
1217
+ routeTemplate: "{project}/_apis/test/ResultTrendByRelease",
1218
+ routeValues: {
1219
+ project: project
1220
+ },
1221
+ body: filter
1222
+ });
1223
+ });
1224
+ }
1225
+ /**
1226
+ * Get test run statistics , used when we want to get summary of a run by outcome.
1227
+ *
1228
+ * @param project - Project ID or project name
1229
+ * @param runId - ID of the run to get.
1230
+ */
1231
+ getTestRunStatistics(project, runId) {
1232
+ return __awaiter(this, void 0, void 0, function* () {
1233
+ return this.beginRequest({
1234
+ apiVersion: "7.2-preview.3",
1235
+ routeTemplate: "{project}/_apis/test/Runs/{runId}/Statistics",
1236
+ routeValues: {
1237
+ project: project,
1238
+ runId: runId
1239
+ }
1240
+ });
1241
+ });
1242
+ }
1243
+ /**
1244
+ * Create new test run.
1245
+ *
1246
+ * @param testRun - Run details RunCreateModel
1247
+ * @param project - Project ID or project name
1248
+ */
1249
+ createTestRun(testRun, project) {
1250
+ return __awaiter(this, void 0, void 0, function* () {
1251
+ return this.beginRequest({
1252
+ apiVersion: "7.2-preview.3",
1253
+ method: "POST",
1254
+ routeTemplate: "{project}/_apis/test/Runs/{runId}",
1255
+ routeValues: {
1256
+ project: project
1257
+ },
1258
+ body: testRun
1259
+ });
1260
+ });
1261
+ }
1262
+ /**
1263
+ * Delete a test run by its ID.
1264
+ *
1265
+ * @param project - Project ID or project name
1266
+ * @param runId - ID of the run to delete.
1267
+ */
1268
+ deleteTestRun(project, runId) {
1269
+ return __awaiter(this, void 0, void 0, function* () {
1270
+ return this.beginRequest({
1271
+ apiVersion: "7.2-preview.3",
1272
+ method: "DELETE",
1273
+ routeTemplate: "{project}/_apis/test/Runs/{runId}",
1274
+ routeValues: {
1275
+ project: project,
1276
+ runId: runId
1277
+ }
1278
+ });
1279
+ });
1280
+ }
1281
+ /**
1282
+ * Get a test run by its ID.
1283
+ *
1284
+ * @param project - Project ID or project name
1285
+ * @param runId - ID of the run to get.
1286
+ * @param includeDetails - Default value is true. It includes details like run statistics, release, build, test environment, post process state, and more.
1287
+ */
1288
+ getTestRunById(project, runId, includeDetails) {
1289
+ return __awaiter(this, void 0, void 0, function* () {
1290
+ const queryValues = {
1291
+ includeDetails: includeDetails
1292
+ };
1293
+ return this.beginRequest({
1294
+ apiVersion: "7.2-preview.3",
1295
+ routeTemplate: "{project}/_apis/test/Runs/{runId}",
1296
+ routeValues: {
1297
+ project: project,
1298
+ runId: runId
1299
+ },
1300
+ queryParams: queryValues
1301
+ });
1302
+ });
1303
+ }
1304
+ /**
1305
+ * Get a list of test runs.
1306
+ *
1307
+ * @param project - Project ID or project name
1308
+ * @param buildUri - URI of the build that the runs used.
1309
+ * @param owner - Team foundation ID of the owner of the runs.
1310
+ * @param tmiRunId -
1311
+ * @param planId - ID of the test plan that the runs are a part of.
1312
+ * @param includeRunDetails - If true, include all the properties of the runs.
1313
+ * @param automated - If true, only returns automated runs.
1314
+ * @param skip - Number of test runs to skip.
1315
+ * @param top - Number of test runs to return.
1316
+ */
1317
+ getTestRuns(project, buildUri, owner, tmiRunId, planId, includeRunDetails, automated, skip, top) {
1318
+ return __awaiter(this, void 0, void 0, function* () {
1319
+ const queryValues = {
1320
+ buildUri: buildUri,
1321
+ owner: owner,
1322
+ tmiRunId: tmiRunId,
1323
+ planId: planId,
1324
+ includeRunDetails: includeRunDetails,
1325
+ automated: automated,
1326
+ '$skip': skip,
1327
+ '$top': top
1328
+ };
1329
+ return this.beginRequest({
1330
+ apiVersion: "7.2-preview.3",
1331
+ routeTemplate: "{project}/_apis/test/Runs/{runId}",
1332
+ routeValues: {
1333
+ project: project
1334
+ },
1335
+ queryParams: queryValues
1336
+ });
1337
+ });
1338
+ }
1339
+ /**
1340
+ * Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
1341
+ *
1342
+ * @param project - Project ID or project name
1343
+ * @param minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
1344
+ * @param maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
1345
+ * @param state - Current state of the Runs to be queried.
1346
+ * @param planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1347
+ * @param isAutomated - Automation type of the Runs to be queried.
1348
+ * @param publishContext - PublishContext of the Runs to be queried.
1349
+ * @param buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1350
+ * @param buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1351
+ * @param branchName - Source Branch name of the Runs to be queried.
1352
+ * @param releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1353
+ * @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1354
+ * @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1355
+ * @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
1356
+ * @param runTitle - Run Title of the Runs to be queried.
1357
+ * @param top - Number of runs to be queried. Limit is 100
1358
+ * @param continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
1359
+ */
1360
+ queryTestRuns(project, minLastUpdatedDate, maxLastUpdatedDate, state, planIds, isAutomated, publishContext, buildIds, buildDefIds, branchName, releaseIds, releaseDefIds, releaseEnvIds, releaseEnvDefIds, runTitle, top, continuationToken) {
1361
+ return __awaiter(this, void 0, void 0, function* () {
1362
+ const queryValues = {
1363
+ minLastUpdatedDate: minLastUpdatedDate,
1364
+ maxLastUpdatedDate: maxLastUpdatedDate,
1365
+ state: state,
1366
+ planIds: planIds && planIds.join(","),
1367
+ isAutomated: isAutomated,
1368
+ publishContext: publishContext,
1369
+ buildIds: buildIds && buildIds.join(","),
1370
+ buildDefIds: buildDefIds && buildDefIds.join(","),
1371
+ branchName: branchName,
1372
+ releaseIds: releaseIds && releaseIds.join(","),
1373
+ releaseDefIds: releaseDefIds && releaseDefIds.join(","),
1374
+ releaseEnvIds: releaseEnvIds && releaseEnvIds.join(","),
1375
+ releaseEnvDefIds: releaseEnvDefIds && releaseEnvDefIds.join(","),
1376
+ runTitle: runTitle,
1377
+ '$top': top,
1378
+ continuationToken: continuationToken
1379
+ };
1380
+ return this.beginRequest({
1381
+ apiVersion: "7.2-preview.3",
1382
+ routeTemplate: "{project}/_apis/test/Runs/{runId}",
1383
+ routeValues: {
1384
+ project: project
1385
+ },
1386
+ queryParams: queryValues,
1387
+ returnRawResponse: true
1388
+ }).then((response) => __awaiter(this, void 0, void 0, function* () {
1389
+ const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
1390
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
1391
+ return body;
1392
+ }));
1393
+ });
1394
+ }
1395
+ /**
1396
+ * Update test run by its ID.
1397
+ *
1398
+ * @param runUpdateModel - Run details RunUpdateModel
1399
+ * @param project - Project ID or project name
1400
+ * @param runId - ID of the run to update.
1401
+ */
1402
+ updateTestRun(runUpdateModel, project, runId) {
1403
+ return __awaiter(this, void 0, void 0, function* () {
1404
+ return this.beginRequest({
1405
+ apiVersion: "7.2-preview.3",
1406
+ method: "PATCH",
1407
+ routeTemplate: "{project}/_apis/test/Runs/{runId}",
1408
+ routeValues: {
1409
+ project: project,
1410
+ runId: runId
1411
+ },
1412
+ body: runUpdateModel
1413
+ });
1414
+ });
1415
+ }
1416
+ /**
1417
+ * Create a test session
1418
+ *
1419
+ * @param testSession - Test session details for creation
1420
+ * @param teamContext - The team context for the operation
1421
+ */
1422
+ createTestSession(testSession, teamContext) {
1423
+ return __awaiter(this, void 0, void 0, function* () {
1424
+ const project = teamContext.projectId || teamContext.project;
1425
+ const team = teamContext.teamId || teamContext.team;
1426
+ return this.beginRequest({
1427
+ apiVersion: "7.2-preview.1",
1428
+ method: "POST",
1429
+ routeTemplate: "{project}/{team}/_apis/test/Session/{testSessionId}",
1430
+ routeValues: {
1431
+ project: project,
1432
+ team: team
1433
+ },
1434
+ body: testSession
1435
+ });
1436
+ });
1437
+ }
1438
+ /**
1439
+ * Get a list of test sessions
1440
+ *
1441
+ * @param teamContext - The team context for the operation
1442
+ * @param period - Period in days from now, for which test sessions are fetched.
1443
+ * @param allSessions - If false, returns test sessions for current user. Otherwise, it returns test sessions for all users
1444
+ * @param includeAllProperties - If true, it returns all properties of the test sessions. Otherwise, it returns the skinny version.
1445
+ * @param source - Source of the test session.
1446
+ * @param includeOnlyCompletedSessions - If true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states
1447
+ */
1448
+ getTestSessions(teamContext, period, allSessions, includeAllProperties, source, includeOnlyCompletedSessions) {
1449
+ return __awaiter(this, void 0, void 0, function* () {
1450
+ const queryValues = {
1451
+ period: period,
1452
+ allSessions: allSessions,
1453
+ includeAllProperties: includeAllProperties,
1454
+ source: source,
1455
+ includeOnlyCompletedSessions: includeOnlyCompletedSessions
1456
+ };
1457
+ const project = teamContext.projectId || teamContext.project;
1458
+ const team = teamContext.teamId || teamContext.team;
1459
+ return this.beginRequest({
1460
+ apiVersion: "7.2-preview.1",
1461
+ routeTemplate: "{project}/{team}/_apis/test/Session/{testSessionId}",
1462
+ routeValues: {
1463
+ project: project,
1464
+ team: team
1465
+ },
1466
+ queryParams: queryValues
1467
+ });
1468
+ });
1469
+ }
1470
+ /**
1471
+ * Update a test session
1472
+ *
1473
+ * @param testSession - Test session details for update
1474
+ * @param teamContext - The team context for the operation
1475
+ */
1476
+ updateTestSession(testSession, teamContext) {
1477
+ return __awaiter(this, void 0, void 0, function* () {
1478
+ const project = teamContext.projectId || teamContext.project;
1479
+ const team = teamContext.teamId || teamContext.team;
1480
+ return this.beginRequest({
1481
+ apiVersion: "7.2-preview.1",
1482
+ method: "PATCH",
1483
+ routeTemplate: "{project}/{team}/_apis/test/Session/{testSessionId}",
1484
+ routeValues: {
1485
+ project: project,
1486
+ team: team
1487
+ },
1488
+ body: testSession
1489
+ });
1490
+ });
1491
+ }
1492
+ /**
1493
+ * @param project - Project ID or project name
1494
+ * @param sharedParameterId -
1495
+ */
1496
+ deleteSharedParameter(project, sharedParameterId) {
1497
+ return __awaiter(this, void 0, void 0, function* () {
1498
+ return this.beginRequest({
1499
+ apiVersion: "7.2-preview.1",
1500
+ method: "DELETE",
1501
+ routeTemplate: "{project}/_apis/test/SharedParameter/{sharedParameterId}",
1502
+ routeValues: {
1503
+ project: project,
1504
+ sharedParameterId: sharedParameterId
1505
+ }
1506
+ });
1507
+ });
1508
+ }
1509
+ /**
1510
+ * @param project - Project ID or project name
1511
+ * @param sharedStepId -
1512
+ */
1513
+ deleteSharedStep(project, sharedStepId) {
1514
+ return __awaiter(this, void 0, void 0, function* () {
1515
+ return this.beginRequest({
1516
+ apiVersion: "7.2-preview.1",
1517
+ method: "DELETE",
1518
+ routeTemplate: "{project}/_apis/test/SharedStep/{sharedStepId}",
1519
+ routeValues: {
1520
+ project: project,
1521
+ sharedStepId: sharedStepId
1522
+ }
1523
+ });
1524
+ });
1525
+ }
1526
+ /**
1527
+ * Add test cases to suite.
1528
+ *
1529
+ * @param project - Project ID or project name
1530
+ * @param planId - ID of the test plan that contains the suite.
1531
+ * @param suiteId - ID of the test suite to which the test cases must be added.
1532
+ * @param testCaseIds - IDs of the test cases to add to the suite. Ids are specified in comma separated format.
1533
+ */
1534
+ addTestCasesToSuite(project, planId, suiteId, testCaseIds) {
1535
+ return __awaiter(this, void 0, void 0, function* () {
1536
+ return this.beginRequest({
1537
+ apiVersion: "7.2-preview.3",
1538
+ method: "POST",
1539
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1540
+ routeValues: {
1541
+ project: project,
1542
+ planId: planId,
1543
+ suiteId: suiteId,
1544
+ testCaseIds: testCaseIds,
1545
+ action: "TestCases"
1546
+ }
1547
+ });
1548
+ });
1549
+ }
1550
+ /**
1551
+ * Get a specific test case in a test suite with test case id.
1552
+ *
1553
+ * @param project - Project ID or project name
1554
+ * @param planId - ID of the test plan that contains the suites.
1555
+ * @param suiteId - ID of the suite that contains the test case.
1556
+ * @param testCaseIds - ID of the test case to get.
1557
+ */
1558
+ getTestCaseById(project, planId, suiteId, testCaseIds) {
1559
+ return __awaiter(this, void 0, void 0, function* () {
1560
+ return this.beginRequest({
1561
+ apiVersion: "7.2-preview.3",
1562
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1563
+ routeValues: {
1564
+ project: project,
1565
+ planId: planId,
1566
+ suiteId: suiteId,
1567
+ testCaseIds: testCaseIds,
1568
+ action: "TestCases"
1569
+ }
1570
+ });
1571
+ });
1572
+ }
1573
+ /**
1574
+ * Get all test cases in a suite.
1575
+ *
1576
+ * @param project - Project ID or project name
1577
+ * @param planId - ID of the test plan that contains the suites.
1578
+ * @param suiteId - ID of the suite to get.
1579
+ */
1580
+ getTestCases(project, planId, suiteId) {
1581
+ return __awaiter(this, void 0, void 0, function* () {
1582
+ return this.beginRequest({
1583
+ apiVersion: "7.2-preview.3",
1584
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1585
+ routeValues: {
1586
+ project: project,
1587
+ planId: planId,
1588
+ suiteId: suiteId,
1589
+ action: "TestCases"
1590
+ }
1591
+ });
1592
+ });
1593
+ }
1594
+ /**
1595
+ * The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently.
1596
+ *
1597
+ * @param project - Project ID or project name
1598
+ * @param planId - ID of the test plan that contains the suite.
1599
+ * @param suiteId - ID of the suite to get.
1600
+ * @param testCaseIds - IDs of the test cases to remove from the suite.
1601
+ */
1602
+ removeTestCasesFromSuiteUrl(project, planId, suiteId, testCaseIds) {
1603
+ return __awaiter(this, void 0, void 0, function* () {
1604
+ return this.beginRequest({
1605
+ apiVersion: "7.2-preview.3",
1606
+ method: "DELETE",
1607
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1608
+ routeValues: {
1609
+ project: project,
1610
+ planId: planId,
1611
+ suiteId: suiteId,
1612
+ testCaseIds: testCaseIds,
1613
+ action: "TestCases"
1614
+ }
1615
+ });
1616
+ });
1617
+ }
1618
+ /**
1619
+ * Updates the properties of the test case association in a suite.
1620
+ *
1621
+ * @param suiteTestCaseUpdateModel - Model for updation of the properties of test case suite association.
1622
+ * @param project - Project ID or project name
1623
+ * @param planId - ID of the test plan that contains the suite.
1624
+ * @param suiteId - ID of the test suite to which the test cases must be added.
1625
+ * @param testCaseIds - IDs of the test cases to add to the suite. Ids are specified in comma separated format.
1626
+ */
1627
+ updateSuiteTestCases(suiteTestCaseUpdateModel, project, planId, suiteId, testCaseIds) {
1628
+ return __awaiter(this, void 0, void 0, function* () {
1629
+ return this.beginRequest({
1630
+ apiVersion: "7.2-preview.3",
1631
+ method: "PATCH",
1632
+ routeTemplate: "{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",
1633
+ routeValues: {
1634
+ project: project,
1635
+ planId: planId,
1636
+ suiteId: suiteId,
1637
+ testCaseIds: testCaseIds,
1638
+ action: "TestCases"
1639
+ },
1640
+ body: suiteTestCaseUpdateModel
1641
+ });
1642
+ });
1643
+ }
1644
+ /**
1645
+ * Delete a test case.
1646
+ *
1647
+ * @param project - Project ID or project name
1648
+ * @param testCaseId - Id of test case to delete.
1649
+ */
1650
+ deleteTestCase(project, testCaseId) {
1651
+ return __awaiter(this, void 0, void 0, function* () {
1652
+ return this.beginRequest({
1653
+ apiVersion: "7.2-preview.1",
1654
+ method: "DELETE",
1655
+ routeTemplate: "{project}/_apis/test/TestCases/{testCaseId}",
1656
+ routeValues: {
1657
+ project: project,
1658
+ testCaseId: testCaseId
1659
+ }
1660
+ });
1661
+ });
1662
+ }
1663
+ /**
1664
+ * Get history of a test method using TestHistoryQuery
1665
+ *
1666
+ * @param filter - TestHistoryQuery to get history
1667
+ * @param project - Project ID or project name
1668
+ */
1669
+ queryTestHistory(filter, project) {
1670
+ return __awaiter(this, void 0, void 0, function* () {
1671
+ return this.beginRequest({
1672
+ apiVersion: "7.2-preview.2",
1673
+ method: "POST",
1674
+ routeTemplate: "{project}/_apis/test/Results/TestHistory",
1675
+ routeValues: {
1676
+ project: project
1677
+ },
1678
+ body: filter
1679
+ });
1680
+ });
1681
+ }
1682
+ /**
1683
+ * @param testSettings -
1684
+ * @param project - Project ID or project name
1685
+ */
1686
+ createTestSettings(testSettings, project) {
1687
+ return __awaiter(this, void 0, void 0, function* () {
1688
+ return this.beginRequest({
1689
+ apiVersion: "7.2-preview.1",
1690
+ method: "POST",
1691
+ routeTemplate: "{project}/_apis/test/TestSettings/{testSettingsId}",
1692
+ routeValues: {
1693
+ project: project
1694
+ },
1695
+ body: testSettings
1696
+ });
1697
+ });
1698
+ }
1699
+ /**
1700
+ * @param project - Project ID or project name
1701
+ * @param testSettingsId -
1702
+ */
1703
+ deleteTestSettings(project, testSettingsId) {
1704
+ return __awaiter(this, void 0, void 0, function* () {
1705
+ return this.beginRequest({
1706
+ apiVersion: "7.2-preview.1",
1707
+ method: "DELETE",
1708
+ routeTemplate: "{project}/_apis/test/TestSettings/{testSettingsId}",
1709
+ routeValues: {
1710
+ project: project,
1711
+ testSettingsId: testSettingsId
1712
+ }
1713
+ });
1714
+ });
1715
+ }
1716
+ /**
1717
+ * @param project - Project ID or project name
1718
+ * @param testSettingsId -
1719
+ */
1720
+ getTestSettingsById(project, testSettingsId) {
1721
+ return __awaiter(this, void 0, void 0, function* () {
1722
+ return this.beginRequest({
1723
+ apiVersion: "7.2-preview.1",
1724
+ routeTemplate: "{project}/_apis/test/TestSettings/{testSettingsId}",
1725
+ routeValues: {
1726
+ project: project,
1727
+ testSettingsId: testSettingsId
1728
+ }
1729
+ });
1730
+ });
1731
+ }
1732
+ /**
1733
+ * @param workItemToTestLinks -
1734
+ * @param project - Project ID or project name
1735
+ */
1736
+ addWorkItemToTestLinks(workItemToTestLinks, project) {
1737
+ return __awaiter(this, void 0, void 0, function* () {
1738
+ return this.beginRequest({
1739
+ apiVersion: "7.2-preview.1",
1740
+ method: "POST",
1741
+ routeTemplate: "{project}/_apis/test/TestMethods/WorkItems",
1742
+ routeValues: {
1743
+ project: project
1744
+ },
1745
+ body: workItemToTestLinks
1746
+ });
1747
+ });
1748
+ }
1749
+ /**
1750
+ * @param project - Project ID or project name
1751
+ * @param testName -
1752
+ * @param workItemId -
1753
+ */
1754
+ deleteTestMethodToWorkItemLink(project, testName, workItemId) {
1755
+ return __awaiter(this, void 0, void 0, function* () {
1756
+ const queryValues = {
1757
+ testName: testName,
1758
+ workItemId: workItemId
1759
+ };
1760
+ return this.beginRequest({
1761
+ apiVersion: "7.2-preview.1",
1762
+ method: "DELETE",
1763
+ routeTemplate: "{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",
1764
+ routeValues: {
1765
+ project: project
1766
+ },
1767
+ queryParams: queryValues
1768
+ });
1769
+ });
1770
+ }
1771
+ /**
1772
+ * @param project - Project ID or project name
1773
+ * @param testName -
1774
+ */
1775
+ queryTestMethodLinkedWorkItems(project, testName) {
1776
+ return __awaiter(this, void 0, void 0, function* () {
1777
+ const queryValues = {
1778
+ testName: testName
1779
+ };
1780
+ return this.beginRequest({
1781
+ apiVersion: "7.2-preview.1",
1782
+ method: "POST",
1783
+ routeTemplate: "{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",
1784
+ routeValues: {
1785
+ project: project
1786
+ },
1787
+ queryParams: queryValues
1788
+ });
1789
+ });
1790
+ }
1791
+ /**
1792
+ * @param project - Project ID or project name
1793
+ * @param workItemCategory -
1794
+ * @param automatedTestName -
1795
+ * @param testCaseId -
1796
+ * @param maxCompleteDate -
1797
+ * @param days -
1798
+ * @param workItemCount -
1799
+ */
1800
+ queryTestResultWorkItems(project, workItemCategory, automatedTestName, testCaseId, maxCompleteDate, days, workItemCount) {
1801
+ return __awaiter(this, void 0, void 0, function* () {
1802
+ const queryValues = {
1803
+ workItemCategory: workItemCategory,
1804
+ automatedTestName: automatedTestName,
1805
+ testCaseId: testCaseId,
1806
+ maxCompleteDate: maxCompleteDate,
1807
+ days: days,
1808
+ '$workItemCount': workItemCount
1809
+ };
1810
+ return this.beginRequest({
1811
+ apiVersion: "7.2-preview.1",
1812
+ routeTemplate: "{project}/_apis/test/Results/WorkItems",
1813
+ routeValues: {
1814
+ project: project
1815
+ },
1816
+ queryParams: queryValues
1817
+ });
1818
+ });
1819
+ }
1820
+ }
1821
+ exports.TestRestClient = TestRestClient;
1822
+ TestRestClient.RESOURCE_AREA_ID = "c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e";