azure-devops-extension-api 4.270.0 → 5.272.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 (699) 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 -717
  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 +1272 -1265
  17. package/Alert/Alert.js +425 -426
  18. package/Alert/Alert.min.js +1 -1
  19. package/Alert/AlertClient.d.ts +201 -159
  20. package/Alert/AlertClient.js +558 -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 -168
  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 +612 -603
  162. package/Gallery/GalleryClient.js +1882 -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 -4071
  171. package/Git/Git.js +830 -839
  172. package/Git/Git.min.js +1 -1
  173. package/Git/GitClient.d.ts +1468 -1466
  174. package/Git/GitClient.js +3892 -4347
  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 -242
  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 +137 -105
  216. package/Management/ManagementClient.js +413 -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 +342 -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 +762 -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 -3777
  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 +773 -730
  340. package/Tfvc/Tfvc.js +151 -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 -2158
  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 +4 -4
  403. package/_manifest/spdx_2.2/ESRPClientLogs0512212427548.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 +499 -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 +1699 -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 +358 -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 +148 -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/ESRPClientLogs0331143549591.json +0 -1
  695. package/_manifest/spdx_3.0/ESRPClientLogs0331143549461.json +0 -1
  696. package/_manifest/spdx_3.0/bsi.cose +0 -0
  697. package/_manifest/spdx_3.0/bsi.json +0 -1
  698. package/_manifest/spdx_3.0/manifest.cat +0 -0
  699. package/_manifest/spdx_3.0/manifest.spdx.cose +0 -0
@@ -1,1455 +1,1255 @@
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"], function (require, exports, RestClientBase_1) {
52
- "use strict";
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var WorkRestClient = /** @class */ (function (_super) {
55
- __extends(WorkRestClient, _super);
56
- function WorkRestClient(options) {
57
- return _super.call(this, options) || this;
58
- }
59
- /**
60
- * Creates/updates an automation rules settings
61
- *
62
- * @param ruleRequestModel - Required parameters to create/update an automation rules settings
63
- * @param teamContext - The team context for the operation
64
- */
65
- WorkRestClient.prototype.updateAutomationRule = function (ruleRequestModel, teamContext) {
66
- return __awaiter(this, void 0, void 0, function () {
67
- var project, team;
68
- return __generator(this, function (_a) {
69
- project = teamContext.projectId || teamContext.project;
70
- team = teamContext.teamId || teamContext.team;
71
- return [2 /*return*/, this.beginRequest({
72
- apiVersion: "7.2-preview.2",
73
- method: "PATCH",
74
- routeTemplate: "{project}/{team}/_apis/work/automationrules",
75
- routeValues: {
76
- project: project,
77
- team: team
78
- },
79
- body: ruleRequestModel
80
- })];
81
- });
82
- });
83
- };
84
- /**
85
- * Gets backlog configuration for a team
86
- *
87
- * @param teamContext - The team context for the operation
88
- */
89
- WorkRestClient.prototype.getBacklogConfigurations = function (teamContext) {
90
- return __awaiter(this, void 0, void 0, function () {
91
- var project, team;
92
- return __generator(this, function (_a) {
93
- project = teamContext.projectId || teamContext.project;
94
- team = teamContext.teamId || teamContext.team;
95
- return [2 /*return*/, this.beginRequest({
96
- apiVersion: "7.2-preview.1",
97
- routeTemplate: "{project}/{team}/_apis/work/backlogconfiguration",
98
- routeValues: {
99
- project: project,
100
- team: team
101
- }
102
- })];
103
- });
104
- });
105
- };
106
- /**
107
- * Get a list of work items within a backlog level
108
- *
109
- * @param teamContext - The team context for the operation
110
- * @param backlogId -
111
- */
112
- WorkRestClient.prototype.getBacklogLevelWorkItems = function (teamContext, backlogId) {
113
- return __awaiter(this, void 0, void 0, function () {
114
- var project, team;
115
- return __generator(this, function (_a) {
116
- project = teamContext.projectId || teamContext.project;
117
- team = teamContext.teamId || teamContext.team;
118
- return [2 /*return*/, this.beginRequest({
119
- apiVersion: "7.2-preview.1",
120
- routeTemplate: "{project}/{team}/_apis/work/backlogs/{backlogId}/workItems",
121
- routeValues: {
122
- project: project,
123
- team: team,
124
- backlogId: backlogId
125
- }
126
- })];
127
- });
128
- });
129
- };
130
- /**
131
- * Get a backlog level
132
- *
133
- * @param teamContext - The team context for the operation
134
- * @param id - The id of the backlog level
135
- */
136
- WorkRestClient.prototype.getBacklog = function (teamContext, id) {
137
- return __awaiter(this, void 0, void 0, function () {
138
- var project, team;
139
- return __generator(this, function (_a) {
140
- project = teamContext.projectId || teamContext.project;
141
- team = teamContext.teamId || teamContext.team;
142
- return [2 /*return*/, this.beginRequest({
143
- apiVersion: "7.2-preview.1",
144
- routeTemplate: "{project}/{team}/_apis/work/backlogs/{id}",
145
- routeValues: {
146
- project: project,
147
- team: team,
148
- id: id
149
- }
150
- })];
151
- });
152
- });
153
- };
154
- /**
155
- * List all backlog levels
156
- *
157
- * @param teamContext - The team context for the operation
158
- */
159
- WorkRestClient.prototype.getBacklogs = function (teamContext) {
160
- return __awaiter(this, void 0, void 0, function () {
161
- var project, team;
162
- return __generator(this, function (_a) {
163
- project = teamContext.projectId || teamContext.project;
164
- team = teamContext.teamId || teamContext.team;
165
- return [2 /*return*/, this.beginRequest({
166
- apiVersion: "7.2-preview.1",
167
- routeTemplate: "{project}/{team}/_apis/work/backlogs/{id}",
168
- routeValues: {
169
- project: project,
170
- team: team
171
- }
172
- })];
173
- });
174
- });
175
- };
176
- /**
177
- * Gets a badge that displays the status of columns on the board.
178
- *
179
- * @param teamContext - The team context for the operation
180
- * @param id - The id of the board.
181
- * @param columnOptions - Determines what columns to show.
182
- * @param columns - If columnOptions is set to custom, specify the list of column names.
183
- */
184
- WorkRestClient.prototype.getBoardBadge = function (teamContext, id, columnOptions, columns) {
185
- return __awaiter(this, void 0, void 0, function () {
186
- var queryValues, project, team;
187
- return __generator(this, function (_a) {
188
- queryValues = {
189
- columnOptions: columnOptions,
190
- columns: columns && columns.join(",")
191
- };
192
- project = teamContext.projectId || teamContext.project;
193
- team = teamContext.teamId || teamContext.team;
194
- return [2 /*return*/, this.beginRequest({
195
- apiVersion: "7.2-preview.1",
196
- routeTemplate: "{project}/{team}/_apis/work/boardbadge/{id}",
197
- routeValues: {
198
- project: project,
199
- team: team,
200
- id: id
201
- },
202
- queryParams: queryValues
203
- })];
204
- });
205
- });
206
- };
207
- /**
208
- * Gets a badge that displays the status of columns on the board.
209
- *
210
- * @param teamContext - The team context for the operation
211
- * @param id - The id of the board.
212
- * @param columnOptions - Determines what columns to show.
213
- * @param columns - If columnOptions is set to custom, specify the list of column names.
214
- */
215
- WorkRestClient.prototype.getBoardBadgeData = function (teamContext, id, columnOptions, columns) {
216
- return __awaiter(this, void 0, void 0, function () {
217
- var queryValues, project, team;
218
- return __generator(this, function (_a) {
219
- queryValues = {
220
- columnOptions: columnOptions,
221
- columns: columns && columns.join(",")
222
- };
223
- project = teamContext.projectId || teamContext.project;
224
- team = teamContext.teamId || teamContext.team;
225
- return [2 /*return*/, this.beginRequest({
226
- apiVersion: "7.2-preview.1",
227
- routeTemplate: "{project}/{team}/_apis/work/boardbadge/{id}",
228
- routeValues: {
229
- project: project,
230
- team: team,
231
- id: id
232
- },
233
- queryParams: queryValues
234
- })];
235
- });
236
- });
237
- };
238
- /**
239
- * Get available board columns in a project
240
- *
241
- * @param project - Project ID or project name
242
- */
243
- WorkRestClient.prototype.getColumnSuggestedValues = function (project) {
244
- return __awaiter(this, void 0, void 0, function () {
245
- return __generator(this, function (_a) {
246
- return [2 /*return*/, this.beginRequest({
247
- apiVersion: "7.2-preview.1",
248
- routeTemplate: "{project}/_apis/work/boardcolumns",
249
- routeValues: {
250
- project: project
251
- }
252
- })];
253
- });
254
- });
255
- };
256
- /**
257
- * Returns the list of parent field filter model for the given list of workitem ids
258
- *
259
- * @param teamContext - The team context for the operation
260
- * @param childBacklogContextCategoryRefName -
261
- * @param workitemIds -
262
- */
263
- WorkRestClient.prototype.getBoardMappingParentItems = function (teamContext, childBacklogContextCategoryRefName, workitemIds) {
264
- return __awaiter(this, void 0, void 0, function () {
265
- var queryValues, project, team;
266
- return __generator(this, function (_a) {
267
- queryValues = {
268
- childBacklogContextCategoryRefName: childBacklogContextCategoryRefName,
269
- workitemIds: workitemIds && workitemIds.join(",")
270
- };
271
- project = teamContext.projectId || teamContext.project;
272
- team = teamContext.teamId || teamContext.team;
273
- return [2 /*return*/, this.beginRequest({
274
- apiVersion: "7.2-preview.1",
275
- routeTemplate: "{project}/{team}/_apis/work/boards/boardparents",
276
- routeValues: {
277
- project: project,
278
- team: team
279
- },
280
- queryParams: queryValues
281
- })];
282
- });
283
- });
284
- };
285
- /**
286
- * Get available board rows in a project
287
- *
288
- * @param project - Project ID or project name
289
- */
290
- WorkRestClient.prototype.getRowSuggestedValues = function (project) {
291
- return __awaiter(this, void 0, void 0, function () {
292
- return __generator(this, function (_a) {
293
- return [2 /*return*/, this.beginRequest({
294
- apiVersion: "7.2-preview.1",
295
- routeTemplate: "{project}/_apis/work/boardrows",
296
- routeValues: {
297
- project: project
298
- }
299
- })];
300
- });
301
- });
302
- };
303
- /**
304
- * Get board
305
- *
306
- * @param teamContext - The team context for the operation
307
- * @param id - identifier for board, either board's backlog level name (Eg:"Stories") or Id
308
- */
309
- WorkRestClient.prototype.getBoard = function (teamContext, id) {
310
- return __awaiter(this, void 0, void 0, function () {
311
- var project, team;
312
- return __generator(this, function (_a) {
313
- project = teamContext.projectId || teamContext.project;
314
- team = teamContext.teamId || teamContext.team;
315
- return [2 /*return*/, this.beginRequest({
316
- apiVersion: "7.2-preview.1",
317
- routeTemplate: "{project}/{team}/_apis/work/boards/{id}",
318
- routeValues: {
319
- project: project,
320
- team: team,
321
- id: id
322
- }
323
- })];
324
- });
325
- });
326
- };
327
- /**
328
- * Get boards
329
- *
330
- * @param teamContext - The team context for the operation
331
- */
332
- WorkRestClient.prototype.getBoards = function (teamContext) {
333
- return __awaiter(this, void 0, void 0, function () {
334
- var project, team;
335
- return __generator(this, function (_a) {
336
- project = teamContext.projectId || teamContext.project;
337
- team = teamContext.teamId || teamContext.team;
338
- return [2 /*return*/, this.beginRequest({
339
- apiVersion: "7.2-preview.1",
340
- routeTemplate: "{project}/{team}/_apis/work/boards/{id}",
341
- routeValues: {
342
- project: project,
343
- team: team
344
- }
345
- })];
346
- });
347
- });
348
- };
349
- /**
350
- * Update board options
351
- *
352
- * @param options - options to updated
353
- * @param teamContext - The team context for the operation
354
- * @param id - identifier for board, either category plural name (Eg:"Stories") or guid
355
- */
356
- WorkRestClient.prototype.setBoardOptions = function (options, teamContext, id) {
357
- return __awaiter(this, void 0, void 0, function () {
358
- var project, team;
359
- return __generator(this, function (_a) {
360
- project = teamContext.projectId || teamContext.project;
361
- team = teamContext.teamId || teamContext.team;
362
- return [2 /*return*/, this.beginRequest({
363
- apiVersion: "7.2-preview.1",
364
- method: "PUT",
365
- routeTemplate: "{project}/{team}/_apis/work/boards/{id}",
366
- routeValues: {
367
- project: project,
368
- team: team,
369
- id: id
370
- },
371
- body: options
372
- })];
373
- });
374
- });
375
- };
376
- /**
377
- * Get board user settings for a board id
378
- *
379
- * @param teamContext - The team context for the operation
380
- * @param board - Board ID or Name
381
- */
382
- WorkRestClient.prototype.getBoardUserSettings = function (teamContext, board) {
383
- return __awaiter(this, void 0, void 0, function () {
384
- var project, team;
385
- return __generator(this, function (_a) {
386
- project = teamContext.projectId || teamContext.project;
387
- team = teamContext.teamId || teamContext.team;
388
- return [2 /*return*/, this.beginRequest({
389
- apiVersion: "7.2-preview.1",
390
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/boardusersettings",
391
- routeValues: {
392
- project: project,
393
- team: team,
394
- board: board
395
- }
396
- })];
397
- });
398
- });
399
- };
400
- /**
401
- * Update board user settings for the board id
402
- *
403
- * @param boardUserSettings -
404
- * @param teamContext - The team context for the operation
405
- * @param board -
406
- */
407
- WorkRestClient.prototype.updateBoardUserSettings = function (boardUserSettings, teamContext, board) {
408
- return __awaiter(this, void 0, void 0, function () {
409
- var project, team;
410
- return __generator(this, function (_a) {
411
- project = teamContext.projectId || teamContext.project;
412
- team = teamContext.teamId || teamContext.team;
413
- return [2 /*return*/, this.beginRequest({
414
- apiVersion: "7.2-preview.1",
415
- method: "PATCH",
416
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/boardusersettings",
417
- routeValues: {
418
- project: project,
419
- team: team,
420
- board: board
421
- },
422
- body: boardUserSettings
423
- })];
424
- });
425
- });
426
- };
427
- /**
428
- * Get a team's capacity including total capacity and days off
429
- *
430
- * @param teamContext - The team context for the operation
431
- * @param iterationId - ID of the iteration
432
- */
433
- WorkRestClient.prototype.getCapacitiesWithIdentityRefAndTotals = function (teamContext, iterationId) {
434
- return __awaiter(this, void 0, void 0, function () {
435
- var project, team;
436
- return __generator(this, function (_a) {
437
- project = teamContext.projectId || teamContext.project;
438
- team = teamContext.teamId || teamContext.team;
439
- return [2 /*return*/, this.beginRequest({
440
- apiVersion: "7.2-preview.3",
441
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
442
- routeValues: {
443
- project: project,
444
- team: team,
445
- iterationId: iterationId
446
- }
447
- })];
448
- });
449
- });
450
- };
451
- /**
452
- * Get a team member's capacity
453
- *
454
- * @param teamContext - The team context for the operation
455
- * @param iterationId - ID of the iteration
456
- * @param teamMemberId - ID of the team member
457
- */
458
- WorkRestClient.prototype.getCapacityWithIdentityRef = function (teamContext, iterationId, teamMemberId) {
459
- return __awaiter(this, void 0, void 0, function () {
460
- var project, team;
461
- return __generator(this, function (_a) {
462
- project = teamContext.projectId || teamContext.project;
463
- team = teamContext.teamId || teamContext.team;
464
- return [2 /*return*/, this.beginRequest({
465
- apiVersion: "7.2-preview.3",
466
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
467
- routeValues: {
468
- project: project,
469
- team: team,
470
- iterationId: iterationId,
471
- teamMemberId: teamMemberId
472
- }
473
- })];
474
- });
475
- });
476
- };
477
- /**
478
- * Replace a team's capacity
479
- *
480
- * @param capacities - Team capacity to replace
481
- * @param teamContext - The team context for the operation
482
- * @param iterationId - ID of the iteration
483
- */
484
- WorkRestClient.prototype.replaceCapacitiesWithIdentityRef = function (capacities, teamContext, iterationId) {
485
- return __awaiter(this, void 0, void 0, function () {
486
- var project, team;
487
- return __generator(this, function (_a) {
488
- project = teamContext.projectId || teamContext.project;
489
- team = teamContext.teamId || teamContext.team;
490
- return [2 /*return*/, this.beginRequest({
491
- apiVersion: "7.2-preview.3",
492
- method: "PUT",
493
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
494
- routeValues: {
495
- project: project,
496
- team: team,
497
- iterationId: iterationId
498
- },
499
- body: capacities
500
- })];
501
- });
502
- });
503
- };
504
- /**
505
- * Update a team member's capacity
506
- *
507
- * @param patch - Updated capacity
508
- * @param teamContext - The team context for the operation
509
- * @param iterationId - ID of the iteration
510
- * @param teamMemberId - ID of the team member
511
- */
512
- WorkRestClient.prototype.updateCapacityWithIdentityRef = function (patch, teamContext, iterationId, teamMemberId) {
513
- return __awaiter(this, void 0, void 0, function () {
514
- var project, team;
515
- return __generator(this, function (_a) {
516
- project = teamContext.projectId || teamContext.project;
517
- team = teamContext.teamId || teamContext.team;
518
- return [2 /*return*/, this.beginRequest({
519
- apiVersion: "7.2-preview.3",
520
- method: "PATCH",
521
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
522
- routeValues: {
523
- project: project,
524
- team: team,
525
- iterationId: iterationId,
526
- teamMemberId: teamMemberId
527
- },
528
- body: patch
529
- })];
530
- });
531
- });
532
- };
533
- /**
534
- * Get board card Rule settings for the board id or board by name
535
- *
536
- * @param teamContext - The team context for the operation
537
- * @param board -
538
- */
539
- WorkRestClient.prototype.getBoardCardRuleSettings = function (teamContext, board) {
540
- return __awaiter(this, void 0, void 0, function () {
541
- var project, team;
542
- return __generator(this, function (_a) {
543
- project = teamContext.projectId || teamContext.project;
544
- team = teamContext.teamId || teamContext.team;
545
- return [2 /*return*/, this.beginRequest({
546
- apiVersion: "7.2-preview.2",
547
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardrulesettings",
548
- routeValues: {
549
- project: project,
550
- team: team,
551
- board: board
552
- }
553
- })];
554
- });
555
- });
556
- };
557
- /**
558
- * Update board card Rule settings for the board id or board by name
559
- *
560
- * @param boardCardRuleSettings -
561
- * @param teamContext - The team context for the operation
562
- * @param board -
563
- */
564
- WorkRestClient.prototype.updateBoardCardRuleSettings = function (boardCardRuleSettings, teamContext, board) {
565
- return __awaiter(this, void 0, void 0, function () {
566
- var project, team;
567
- return __generator(this, function (_a) {
568
- project = teamContext.projectId || teamContext.project;
569
- team = teamContext.teamId || teamContext.team;
570
- return [2 /*return*/, this.beginRequest({
571
- apiVersion: "7.2-preview.2",
572
- method: "PATCH",
573
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardrulesettings",
574
- routeValues: {
575
- project: project,
576
- team: team,
577
- board: board
578
- },
579
- body: boardCardRuleSettings
580
- })];
581
- });
582
- });
583
- };
584
- /**
585
- * Update taskboard card Rule settings
586
- *
587
- * @param boardCardRuleSettings -
588
- * @param teamContext - The team context for the operation
589
- */
590
- WorkRestClient.prototype.updateTaskboardCardRuleSettings = function (boardCardRuleSettings, teamContext) {
591
- return __awaiter(this, void 0, void 0, function () {
592
- var project, team;
593
- return __generator(this, function (_a) {
594
- project = teamContext.projectId || teamContext.project;
595
- team = teamContext.teamId || teamContext.team;
596
- return [2 /*return*/, this.beginRequest({
597
- apiVersion: "7.2-preview.2",
598
- method: "PATCH",
599
- routeTemplate: "{project}/{team}/_apis/work/taskboard/cardrulesettings",
600
- routeValues: {
601
- project: project,
602
- team: team
603
- },
604
- body: boardCardRuleSettings
605
- })];
606
- });
607
- });
608
- };
609
- /**
610
- * Get board card settings for the board id or board by name
611
- *
612
- * @param teamContext - The team context for the operation
613
- * @param board -
614
- */
615
- WorkRestClient.prototype.getBoardCardSettings = function (teamContext, board) {
616
- return __awaiter(this, void 0, void 0, function () {
617
- var project, team;
618
- return __generator(this, function (_a) {
619
- project = teamContext.projectId || teamContext.project;
620
- team = teamContext.teamId || teamContext.team;
621
- return [2 /*return*/, this.beginRequest({
622
- apiVersion: "7.2-preview.2",
623
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardsettings",
624
- routeValues: {
625
- project: project,
626
- team: team,
627
- board: board
628
- }
629
- })];
630
- });
631
- });
632
- };
633
- /**
634
- * Update board card settings for the board id or board by name
635
- *
636
- * @param boardCardSettingsToSave -
637
- * @param teamContext - The team context for the operation
638
- * @param board -
639
- */
640
- WorkRestClient.prototype.updateBoardCardSettings = function (boardCardSettingsToSave, teamContext, board) {
641
- return __awaiter(this, void 0, void 0, function () {
642
- var project, team;
643
- return __generator(this, function (_a) {
644
- project = teamContext.projectId || teamContext.project;
645
- team = teamContext.teamId || teamContext.team;
646
- return [2 /*return*/, this.beginRequest({
647
- apiVersion: "7.2-preview.2",
648
- method: "PUT",
649
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardsettings",
650
- routeValues: {
651
- project: project,
652
- team: team,
653
- board: board
654
- },
655
- body: boardCardSettingsToSave
656
- })];
657
- });
658
- });
659
- };
660
- /**
661
- * Update taskboard card settings
662
- *
663
- * @param boardCardSettingsToSave -
664
- * @param teamContext - The team context for the operation
665
- */
666
- WorkRestClient.prototype.updateTaskboardCardSettings = function (boardCardSettingsToSave, teamContext) {
667
- return __awaiter(this, void 0, void 0, function () {
668
- var project, team;
669
- return __generator(this, function (_a) {
670
- project = teamContext.projectId || teamContext.project;
671
- team = teamContext.teamId || teamContext.team;
672
- return [2 /*return*/, this.beginRequest({
673
- apiVersion: "7.2-preview.2",
674
- method: "PUT",
675
- routeTemplate: "{project}/{team}/_apis/work/taskboard/cardsettings",
676
- routeValues: {
677
- project: project,
678
- team: team
679
- },
680
- body: boardCardSettingsToSave
681
- })];
682
- });
683
- });
684
- };
685
- /**
686
- * Get a board chart
687
- *
688
- * @param teamContext - The team context for the operation
689
- * @param board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
690
- * @param name - The chart name
691
- */
692
- WorkRestClient.prototype.getBoardChart = function (teamContext, board, name) {
693
- return __awaiter(this, void 0, void 0, function () {
694
- var project, team;
695
- return __generator(this, function (_a) {
696
- project = teamContext.projectId || teamContext.project;
697
- team = teamContext.teamId || teamContext.team;
698
- return [2 /*return*/, this.beginRequest({
699
- apiVersion: "7.2-preview.1",
700
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/charts/{name}",
701
- routeValues: {
702
- project: project,
703
- team: team,
704
- board: board,
705
- name: name
706
- }
707
- })];
708
- });
709
- });
710
- };
711
- /**
712
- * Get board charts
713
- *
714
- * @param teamContext - The team context for the operation
715
- * @param board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
716
- */
717
- WorkRestClient.prototype.getBoardCharts = function (teamContext, board) {
718
- return __awaiter(this, void 0, void 0, function () {
719
- var project, team;
720
- return __generator(this, function (_a) {
721
- project = teamContext.projectId || teamContext.project;
722
- team = teamContext.teamId || teamContext.team;
723
- return [2 /*return*/, this.beginRequest({
724
- apiVersion: "7.2-preview.1",
725
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/charts/{name}",
726
- routeValues: {
727
- project: project,
728
- team: team,
729
- board: board
730
- }
731
- })];
732
- });
733
- });
734
- };
735
- /**
736
- * Update a board chart
737
- *
738
- * @param chart -
739
- * @param teamContext - The team context for the operation
740
- * @param board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
741
- * @param name - The chart name
742
- */
743
- WorkRestClient.prototype.updateBoardChart = function (chart, teamContext, board, name) {
744
- return __awaiter(this, void 0, void 0, function () {
745
- var project, team;
746
- return __generator(this, function (_a) {
747
- project = teamContext.projectId || teamContext.project;
748
- team = teamContext.teamId || teamContext.team;
749
- return [2 /*return*/, this.beginRequest({
750
- apiVersion: "7.2-preview.1",
751
- method: "PATCH",
752
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/charts/{name}",
753
- routeValues: {
754
- project: project,
755
- team: team,
756
- board: board,
757
- name: name
758
- },
759
- body: chart
760
- })];
761
- });
762
- });
763
- };
764
- /**
765
- * Get columns on a board
766
- *
767
- * @param teamContext - The team context for the operation
768
- * @param board - Name or ID of the specific board
769
- */
770
- WorkRestClient.prototype.getBoardColumns = function (teamContext, board) {
771
- return __awaiter(this, void 0, void 0, function () {
772
- var project, team;
773
- return __generator(this, function (_a) {
774
- project = teamContext.projectId || teamContext.project;
775
- team = teamContext.teamId || teamContext.team;
776
- return [2 /*return*/, this.beginRequest({
777
- apiVersion: "7.2-preview.1",
778
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/columns/{id}",
779
- routeValues: {
780
- project: project,
781
- team: team,
782
- board: board
783
- }
784
- })];
785
- });
786
- });
787
- };
788
- /**
789
- * Update columns on a board
790
- *
791
- * @param boardColumns - List of board columns to update
792
- * @param teamContext - The team context for the operation
793
- * @param board - Name or ID of the specific board
794
- */
795
- WorkRestClient.prototype.updateBoardColumns = function (boardColumns, teamContext, board) {
796
- return __awaiter(this, void 0, void 0, function () {
797
- var project, team;
798
- return __generator(this, function (_a) {
799
- project = teamContext.projectId || teamContext.project;
800
- team = teamContext.teamId || teamContext.team;
801
- return [2 /*return*/, this.beginRequest({
802
- apiVersion: "7.2-preview.1",
803
- method: "PUT",
804
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/columns/{id}",
805
- routeValues: {
806
- project: project,
807
- team: team,
808
- board: board
809
- },
810
- body: boardColumns
811
- })];
812
- });
813
- });
814
- };
815
- /**
816
- * Get Delivery View Data
817
- *
818
- * @param project - Project ID or project name
819
- * @param id - Identifier for delivery view
820
- * @param revision - Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision.
821
- * @param startDate - The start date of timeline
822
- * @param endDate - The end date of timeline
823
- */
824
- WorkRestClient.prototype.getDeliveryTimelineData = function (project, id, revision, startDate, endDate) {
825
- return __awaiter(this, void 0, void 0, function () {
826
- var queryValues;
827
- return __generator(this, function (_a) {
828
- queryValues = {
829
- revision: revision,
830
- startDate: startDate,
831
- endDate: endDate
832
- };
833
- return [2 /*return*/, this.beginRequest({
834
- apiVersion: "7.2-preview.1",
835
- routeTemplate: "{project}/_apis/work/plans/{id}/deliverytimeline",
836
- routeValues: {
837
- project: project,
838
- id: id
839
- },
840
- queryParams: queryValues
841
- })];
842
- });
843
- });
844
- };
845
- /**
846
- * Get an iteration's capacity for all teams in iteration
847
- *
848
- * @param project - Project ID or project name
849
- * @param iterationId - ID of the iteration
850
- */
851
- WorkRestClient.prototype.getTotalIterationCapacities = function (project, iterationId) {
852
- return __awaiter(this, void 0, void 0, function () {
853
- return __generator(this, function (_a) {
854
- return [2 /*return*/, this.beginRequest({
855
- apiVersion: "7.2-preview.1",
856
- routeTemplate: "{project}/_apis/work/iterations/{iterationId}/iterationcapacities",
857
- routeValues: {
858
- project: project,
859
- iterationId: iterationId
860
- }
861
- })];
862
- });
863
- });
864
- };
865
- /**
866
- * Delete a team's iteration by iterationId
867
- *
868
- * @param teamContext - The team context for the operation
869
- * @param id - ID of the iteration
870
- */
871
- WorkRestClient.prototype.deleteTeamIteration = function (teamContext, id) {
872
- return __awaiter(this, void 0, void 0, function () {
873
- var project, team;
874
- return __generator(this, function (_a) {
875
- project = teamContext.projectId || teamContext.project;
876
- team = teamContext.teamId || teamContext.team;
877
- return [2 /*return*/, this.beginRequest({
878
- apiVersion: "7.2-preview.1",
879
- method: "DELETE",
880
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
881
- routeValues: {
882
- project: project,
883
- team: team,
884
- id: id
885
- }
886
- })];
887
- });
888
- });
889
- };
890
- /**
891
- * Get team's iteration by iterationId
892
- *
893
- * @param teamContext - The team context for the operation
894
- * @param id - ID of the iteration
895
- */
896
- WorkRestClient.prototype.getTeamIteration = function (teamContext, id) {
897
- return __awaiter(this, void 0, void 0, function () {
898
- var project, team;
899
- return __generator(this, function (_a) {
900
- project = teamContext.projectId || teamContext.project;
901
- team = teamContext.teamId || teamContext.team;
902
- return [2 /*return*/, this.beginRequest({
903
- apiVersion: "7.2-preview.1",
904
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
905
- routeValues: {
906
- project: project,
907
- team: team,
908
- id: id
909
- }
910
- })];
911
- });
912
- });
913
- };
914
- /**
915
- * Get a team's iterations using timeframe filter
916
- *
917
- * @param teamContext - The team context for the operation
918
- * @param timeframe - A filter for which iterations are returned based on relative time. Only Current is supported currently.
919
- */
920
- WorkRestClient.prototype.getTeamIterations = function (teamContext, timeframe) {
921
- return __awaiter(this, void 0, void 0, function () {
922
- var queryValues, project, team;
923
- return __generator(this, function (_a) {
924
- queryValues = {
925
- '$timeframe': timeframe
926
- };
927
- project = teamContext.projectId || teamContext.project;
928
- team = teamContext.teamId || teamContext.team;
929
- return [2 /*return*/, this.beginRequest({
930
- apiVersion: "7.2-preview.1",
931
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
932
- routeValues: {
933
- project: project,
934
- team: team
935
- },
936
- queryParams: queryValues
937
- })];
938
- });
939
- });
940
- };
941
- /**
942
- * Add an iteration to the team
943
- *
944
- * @param iteration - Iteration to add
945
- * @param teamContext - The team context for the operation
946
- */
947
- WorkRestClient.prototype.postTeamIteration = function (iteration, teamContext) {
948
- return __awaiter(this, void 0, void 0, function () {
949
- var project, team;
950
- return __generator(this, function (_a) {
951
- project = teamContext.projectId || teamContext.project;
952
- team = teamContext.teamId || teamContext.team;
953
- return [2 /*return*/, this.beginRequest({
954
- apiVersion: "7.2-preview.1",
955
- method: "POST",
956
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
957
- routeValues: {
958
- project: project,
959
- team: team
960
- },
961
- body: iteration
962
- })];
963
- });
964
- });
965
- };
966
- /**
967
- * Add a new plan for the team
968
- *
969
- * @param postedPlan - Plan definition
970
- * @param project - Project ID or project name
971
- */
972
- WorkRestClient.prototype.createPlan = function (postedPlan, project) {
973
- return __awaiter(this, void 0, void 0, function () {
974
- return __generator(this, function (_a) {
975
- return [2 /*return*/, this.beginRequest({
976
- apiVersion: "7.2-preview.1",
977
- method: "POST",
978
- routeTemplate: "{project}/_apis/work/plans/{id}",
979
- routeValues: {
980
- project: project
981
- },
982
- body: postedPlan
983
- })];
984
- });
985
- });
986
- };
987
- /**
988
- * Delete the specified plan
989
- *
990
- * @param project - Project ID or project name
991
- * @param id - Identifier of the plan
992
- */
993
- WorkRestClient.prototype.deletePlan = function (project, id) {
994
- return __awaiter(this, void 0, void 0, function () {
995
- return __generator(this, function (_a) {
996
- return [2 /*return*/, this.beginRequest({
997
- apiVersion: "7.2-preview.1",
998
- method: "DELETE",
999
- routeTemplate: "{project}/_apis/work/plans/{id}",
1000
- routeValues: {
1001
- project: project,
1002
- id: id
1003
- }
1004
- })];
1005
- });
1006
- });
1007
- };
1008
- /**
1009
- * Get the information for the specified plan
1010
- *
1011
- * @param project - Project ID or project name
1012
- * @param id - Identifier of the plan
1013
- */
1014
- WorkRestClient.prototype.getPlan = function (project, id) {
1015
- return __awaiter(this, void 0, void 0, function () {
1016
- return __generator(this, function (_a) {
1017
- return [2 /*return*/, this.beginRequest({
1018
- apiVersion: "7.2-preview.1",
1019
- routeTemplate: "{project}/_apis/work/plans/{id}",
1020
- routeValues: {
1021
- project: project,
1022
- id: id
1023
- }
1024
- })];
1025
- });
1026
- });
1027
- };
1028
- /**
1029
- * Get the information for all the plans configured for the given team
1030
- *
1031
- * @param project - Project ID or project name
1032
- */
1033
- WorkRestClient.prototype.getPlans = function (project) {
1034
- return __awaiter(this, void 0, void 0, function () {
1035
- return __generator(this, function (_a) {
1036
- return [2 /*return*/, this.beginRequest({
1037
- apiVersion: "7.2-preview.1",
1038
- routeTemplate: "{project}/_apis/work/plans/{id}",
1039
- routeValues: {
1040
- project: project
1041
- }
1042
- })];
1043
- });
1044
- });
1045
- };
1046
- /**
1047
- * Update the information for the specified plan
1048
- *
1049
- * @param updatedPlan - Plan definition to be updated
1050
- * @param project - Project ID or project name
1051
- * @param id - Identifier of the plan
1052
- */
1053
- WorkRestClient.prototype.updatePlan = function (updatedPlan, project, id) {
1054
- return __awaiter(this, void 0, void 0, function () {
1055
- return __generator(this, function (_a) {
1056
- return [2 /*return*/, this.beginRequest({
1057
- apiVersion: "7.2-preview.1",
1058
- method: "PUT",
1059
- routeTemplate: "{project}/_apis/work/plans/{id}",
1060
- routeValues: {
1061
- project: project,
1062
- id: id
1063
- },
1064
- body: updatedPlan
1065
- })];
1066
- });
1067
- });
1068
- };
1069
- /**
1070
- * Get process configuration
1071
- *
1072
- * @param project - Project ID or project name
1073
- */
1074
- WorkRestClient.prototype.getProcessConfiguration = function (project) {
1075
- return __awaiter(this, void 0, void 0, function () {
1076
- return __generator(this, function (_a) {
1077
- return [2 /*return*/, this.beginRequest({
1078
- apiVersion: "7.2-preview.1",
1079
- routeTemplate: "{project}/_apis/work/processconfiguration",
1080
- routeValues: {
1081
- project: project
1082
- }
1083
- })];
1084
- });
1085
- });
1086
- };
1087
- /**
1088
- * Get rows on a board
1089
- *
1090
- * @param teamContext - The team context for the operation
1091
- * @param board - Name or ID of the specific board
1092
- */
1093
- WorkRestClient.prototype.getBoardRows = function (teamContext, board) {
1094
- return __awaiter(this, void 0, void 0, function () {
1095
- var project, team;
1096
- return __generator(this, function (_a) {
1097
- project = teamContext.projectId || teamContext.project;
1098
- team = teamContext.teamId || teamContext.team;
1099
- return [2 /*return*/, this.beginRequest({
1100
- apiVersion: "7.2-preview.1",
1101
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/rows/{id}",
1102
- routeValues: {
1103
- project: project,
1104
- team: team,
1105
- board: board
1106
- }
1107
- })];
1108
- });
1109
- });
1110
- };
1111
- /**
1112
- * Update rows on a board
1113
- *
1114
- * @param boardRows - List of board rows to update
1115
- * @param teamContext - The team context for the operation
1116
- * @param board - Name or ID of the specific board
1117
- */
1118
- WorkRestClient.prototype.updateBoardRows = function (boardRows, teamContext, board) {
1119
- return __awaiter(this, void 0, void 0, function () {
1120
- var project, team;
1121
- return __generator(this, function (_a) {
1122
- project = teamContext.projectId || teamContext.project;
1123
- team = teamContext.teamId || teamContext.team;
1124
- return [2 /*return*/, this.beginRequest({
1125
- apiVersion: "7.2-preview.1",
1126
- method: "PUT",
1127
- routeTemplate: "{project}/{team}/_apis/work/boards/{board}/rows/{id}",
1128
- routeValues: {
1129
- project: project,
1130
- team: team,
1131
- board: board
1132
- },
1133
- body: boardRows
1134
- })];
1135
- });
1136
- });
1137
- };
1138
- /**
1139
- * @param teamContext - The team context for the operation
1140
- */
1141
- WorkRestClient.prototype.getColumns = function (teamContext) {
1142
- return __awaiter(this, void 0, void 0, function () {
1143
- var project, team;
1144
- return __generator(this, function (_a) {
1145
- project = teamContext.projectId || teamContext.project;
1146
- team = teamContext.teamId || teamContext.team;
1147
- return [2 /*return*/, this.beginRequest({
1148
- apiVersion: "7.2-preview.1",
1149
- routeTemplate: "{project}/{team}/_apis/work/taskboardColumns",
1150
- routeValues: {
1151
- project: project,
1152
- team: team
1153
- }
1154
- })];
1155
- });
1156
- });
1157
- };
1158
- /**
1159
- * @param updateColumns -
1160
- * @param teamContext - The team context for the operation
1161
- */
1162
- WorkRestClient.prototype.updateColumns = function (updateColumns, teamContext) {
1163
- return __awaiter(this, void 0, void 0, function () {
1164
- var project, team;
1165
- return __generator(this, function (_a) {
1166
- project = teamContext.projectId || teamContext.project;
1167
- team = teamContext.teamId || teamContext.team;
1168
- return [2 /*return*/, this.beginRequest({
1169
- apiVersion: "7.2-preview.1",
1170
- method: "PUT",
1171
- routeTemplate: "{project}/{team}/_apis/work/taskboardColumns",
1172
- routeValues: {
1173
- project: project,
1174
- team: team
1175
- },
1176
- body: updateColumns
1177
- })];
1178
- });
1179
- });
1180
- };
1181
- /**
1182
- * @param teamContext - The team context for the operation
1183
- * @param iterationId -
1184
- */
1185
- WorkRestClient.prototype.getWorkItemColumns = function (teamContext, iterationId) {
1186
- return __awaiter(this, void 0, void 0, function () {
1187
- var project, team;
1188
- return __generator(this, function (_a) {
1189
- project = teamContext.projectId || teamContext.project;
1190
- team = teamContext.teamId || teamContext.team;
1191
- return [2 /*return*/, this.beginRequest({
1192
- apiVersion: "7.2-preview.1",
1193
- routeTemplate: "{project}/{team}/_apis/work/taskboardWorkItems/{iterationId}/{workItemId}",
1194
- routeValues: {
1195
- project: project,
1196
- team: team,
1197
- iterationId: iterationId
1198
- }
1199
- })];
1200
- });
1201
- });
1202
- };
1203
- /**
1204
- * @param updateColumn -
1205
- * @param teamContext - The team context for the operation
1206
- * @param iterationId -
1207
- * @param workItemId -
1208
- */
1209
- WorkRestClient.prototype.updateWorkItemColumn = function (updateColumn, teamContext, iterationId, workItemId) {
1210
- return __awaiter(this, void 0, void 0, function () {
1211
- var project, team;
1212
- return __generator(this, function (_a) {
1213
- project = teamContext.projectId || teamContext.project;
1214
- team = teamContext.teamId || teamContext.team;
1215
- return [2 /*return*/, this.beginRequest({
1216
- apiVersion: "7.2-preview.1",
1217
- method: "PATCH",
1218
- routeTemplate: "{project}/{team}/_apis/work/taskboardWorkItems/{iterationId}/{workItemId}",
1219
- routeValues: {
1220
- project: project,
1221
- team: team,
1222
- iterationId: iterationId,
1223
- workItemId: workItemId
1224
- },
1225
- body: updateColumn
1226
- })];
1227
- });
1228
- });
1229
- };
1230
- /**
1231
- * Get team's days off for an iteration
1232
- *
1233
- * @param teamContext - The team context for the operation
1234
- * @param iterationId - ID of the iteration
1235
- */
1236
- WorkRestClient.prototype.getTeamDaysOff = function (teamContext, iterationId) {
1237
- return __awaiter(this, void 0, void 0, function () {
1238
- var project, team;
1239
- return __generator(this, function (_a) {
1240
- project = teamContext.projectId || teamContext.project;
1241
- team = teamContext.teamId || teamContext.team;
1242
- return [2 /*return*/, this.beginRequest({
1243
- apiVersion: "7.2-preview.1",
1244
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/teamdaysoff",
1245
- routeValues: {
1246
- project: project,
1247
- team: team,
1248
- iterationId: iterationId
1249
- }
1250
- })];
1251
- });
1252
- });
1253
- };
1254
- /**
1255
- * Set a team's days off for an iteration
1256
- *
1257
- * @param daysOffPatch - Team's days off patch containing a list of start and end dates
1258
- * @param teamContext - The team context for the operation
1259
- * @param iterationId - ID of the iteration
1260
- */
1261
- WorkRestClient.prototype.updateTeamDaysOff = function (daysOffPatch, teamContext, iterationId) {
1262
- return __awaiter(this, void 0, void 0, function () {
1263
- var project, team;
1264
- return __generator(this, function (_a) {
1265
- project = teamContext.projectId || teamContext.project;
1266
- team = teamContext.teamId || teamContext.team;
1267
- return [2 /*return*/, this.beginRequest({
1268
- apiVersion: "7.2-preview.1",
1269
- method: "PATCH",
1270
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/teamdaysoff",
1271
- routeValues: {
1272
- project: project,
1273
- team: team,
1274
- iterationId: iterationId
1275
- },
1276
- body: daysOffPatch
1277
- })];
1278
- });
1279
- });
1280
- };
1281
- /**
1282
- * Get a collection of team field values
1283
- *
1284
- * @param teamContext - The team context for the operation
1285
- */
1286
- WorkRestClient.prototype.getTeamFieldValues = function (teamContext) {
1287
- return __awaiter(this, void 0, void 0, function () {
1288
- var project, team;
1289
- return __generator(this, function (_a) {
1290
- project = teamContext.projectId || teamContext.project;
1291
- team = teamContext.teamId || teamContext.team;
1292
- return [2 /*return*/, this.beginRequest({
1293
- apiVersion: "7.2-preview.1",
1294
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/teamfieldvalues",
1295
- routeValues: {
1296
- project: project,
1297
- team: team
1298
- }
1299
- })];
1300
- });
1301
- });
1302
- };
1303
- /**
1304
- * Update team field values
1305
- *
1306
- * @param patch -
1307
- * @param teamContext - The team context for the operation
1308
- */
1309
- WorkRestClient.prototype.updateTeamFieldValues = function (patch, teamContext) {
1310
- return __awaiter(this, void 0, void 0, function () {
1311
- var project, team;
1312
- return __generator(this, function (_a) {
1313
- project = teamContext.projectId || teamContext.project;
1314
- team = teamContext.teamId || teamContext.team;
1315
- return [2 /*return*/, this.beginRequest({
1316
- apiVersion: "7.2-preview.1",
1317
- method: "PATCH",
1318
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/teamfieldvalues",
1319
- routeValues: {
1320
- project: project,
1321
- team: team
1322
- },
1323
- body: patch
1324
- })];
1325
- });
1326
- });
1327
- };
1328
- /**
1329
- * Get a team's settings
1330
- *
1331
- * @param teamContext - The team context for the operation
1332
- */
1333
- WorkRestClient.prototype.getTeamSettings = function (teamContext) {
1334
- return __awaiter(this, void 0, void 0, function () {
1335
- var project, team;
1336
- return __generator(this, function (_a) {
1337
- project = teamContext.projectId || teamContext.project;
1338
- team = teamContext.teamId || teamContext.team;
1339
- return [2 /*return*/, this.beginRequest({
1340
- apiVersion: "7.2-preview.1",
1341
- routeTemplate: "{project}/{team}/_apis/work/teamsettings",
1342
- routeValues: {
1343
- project: project,
1344
- team: team
1345
- }
1346
- })];
1347
- });
1348
- });
1349
- };
1350
- /**
1351
- * Update a team's settings
1352
- *
1353
- * @param teamSettingsPatch - TeamSettings changes
1354
- * @param teamContext - The team context for the operation
1355
- */
1356
- WorkRestClient.prototype.updateTeamSettings = function (teamSettingsPatch, teamContext) {
1357
- return __awaiter(this, void 0, void 0, function () {
1358
- var project, team;
1359
- return __generator(this, function (_a) {
1360
- project = teamContext.projectId || teamContext.project;
1361
- team = teamContext.teamId || teamContext.team;
1362
- return [2 /*return*/, this.beginRequest({
1363
- apiVersion: "7.2-preview.1",
1364
- method: "PATCH",
1365
- routeTemplate: "{project}/{team}/_apis/work/teamsettings",
1366
- routeValues: {
1367
- project: project,
1368
- team: team
1369
- },
1370
- body: teamSettingsPatch
1371
- })];
1372
- });
1373
- });
1374
- };
1375
- /**
1376
- * Get work items for iteration
1377
- *
1378
- * @param teamContext - The team context for the operation
1379
- * @param iterationId - ID of the iteration
1380
- */
1381
- WorkRestClient.prototype.getIterationWorkItems = function (teamContext, iterationId) {
1382
- return __awaiter(this, void 0, void 0, function () {
1383
- var project, team;
1384
- return __generator(this, function (_a) {
1385
- project = teamContext.projectId || teamContext.project;
1386
- team = teamContext.teamId || teamContext.team;
1387
- return [2 /*return*/, this.beginRequest({
1388
- apiVersion: "7.2-preview.1",
1389
- routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/workitems",
1390
- routeValues: {
1391
- project: project,
1392
- team: team,
1393
- iterationId: iterationId
1394
- }
1395
- })];
1396
- });
1397
- });
1398
- };
1399
- /**
1400
- * Reorder Product Backlog/Boards Work Items
1401
- *
1402
- * @param operation -
1403
- * @param teamContext - The team context for the operation
1404
- */
1405
- WorkRestClient.prototype.reorderBacklogWorkItems = function (operation, teamContext) {
1406
- return __awaiter(this, void 0, void 0, function () {
1407
- var project, team;
1408
- return __generator(this, function (_a) {
1409
- project = teamContext.projectId || teamContext.project;
1410
- team = teamContext.teamId || teamContext.team;
1411
- return [2 /*return*/, this.beginRequest({
1412
- apiVersion: "7.2-preview.1",
1413
- method: "PATCH",
1414
- routeTemplate: "{project}/{team}/_apis/work/workitemsorder",
1415
- routeValues: {
1416
- project: project,
1417
- team: team
1418
- },
1419
- body: operation
1420
- })];
1421
- });
1422
- });
1423
- };
1424
- /**
1425
- * Reorder Sprint Backlog/Taskboard Work Items
1426
- *
1427
- * @param operation -
1428
- * @param teamContext - The team context for the operation
1429
- * @param iterationId - The id of the iteration
1430
- */
1431
- WorkRestClient.prototype.reorderIterationWorkItems = function (operation, teamContext, iterationId) {
1432
- return __awaiter(this, void 0, void 0, function () {
1433
- var project, team;
1434
- return __generator(this, function (_a) {
1435
- project = teamContext.projectId || teamContext.project;
1436
- team = teamContext.teamId || teamContext.team;
1437
- return [2 /*return*/, this.beginRequest({
1438
- apiVersion: "7.2-preview.1",
1439
- method: "PATCH",
1440
- routeTemplate: "{project}/{team}/_apis/work/iterations/{iterationId}/workitemsorder",
1441
- routeValues: {
1442
- project: project,
1443
- team: team,
1444
- iterationId: iterationId
1445
- },
1446
- body: operation
1447
- })];
1448
- });
1449
- });
1450
- };
1451
- WorkRestClient.RESOURCE_AREA_ID = "1d4f49f9-02b9-4e26-b826-2cdb6195f2a9";
1452
- return WorkRestClient;
1453
- }(RestClientBase_1.RestClientBase));
1454
- exports.WorkRestClient = WorkRestClient;
1455
- });
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.WorkRestClient = void 0;
18
+ const RestClientBase_1 = require("../Common/RestClientBase");
19
+ class WorkRestClient extends RestClientBase_1.RestClientBase {
20
+ constructor(options) {
21
+ super(options);
22
+ }
23
+ /**
24
+ * Creates/updates an automation rules settings
25
+ *
26
+ * @param ruleRequestModel - Required parameters to create/update an automation rules settings
27
+ * @param teamContext - The team context for the operation
28
+ */
29
+ updateAutomationRule(ruleRequestModel, teamContext) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const project = teamContext.projectId || teamContext.project;
32
+ const team = teamContext.teamId || teamContext.team;
33
+ return this.beginRequest({
34
+ apiVersion: "7.2-preview.2",
35
+ method: "PATCH",
36
+ routeTemplate: "{project}/{team}/_apis/work/automationrules",
37
+ routeValues: {
38
+ project: project,
39
+ team: team
40
+ },
41
+ body: ruleRequestModel
42
+ });
43
+ });
44
+ }
45
+ /**
46
+ * Gets backlog configuration for a team
47
+ *
48
+ * @param teamContext - The team context for the operation
49
+ */
50
+ getBacklogConfigurations(teamContext) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ const project = teamContext.projectId || teamContext.project;
53
+ const team = teamContext.teamId || teamContext.team;
54
+ return this.beginRequest({
55
+ apiVersion: "7.2-preview.1",
56
+ routeTemplate: "{project}/{team}/_apis/work/backlogconfiguration",
57
+ routeValues: {
58
+ project: project,
59
+ team: team
60
+ }
61
+ });
62
+ });
63
+ }
64
+ /**
65
+ * Get a list of work items within a backlog level
66
+ *
67
+ * @param teamContext - The team context for the operation
68
+ * @param backlogId -
69
+ */
70
+ getBacklogLevelWorkItems(teamContext, backlogId) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const project = teamContext.projectId || teamContext.project;
73
+ const team = teamContext.teamId || teamContext.team;
74
+ return this.beginRequest({
75
+ apiVersion: "7.2-preview.1",
76
+ routeTemplate: "{project}/{team}/_apis/work/backlogs/{backlogId}/workItems",
77
+ routeValues: {
78
+ project: project,
79
+ team: team,
80
+ backlogId: backlogId
81
+ }
82
+ });
83
+ });
84
+ }
85
+ /**
86
+ * Get a backlog level
87
+ *
88
+ * @param teamContext - The team context for the operation
89
+ * @param id - The id of the backlog level
90
+ */
91
+ getBacklog(teamContext, id) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const project = teamContext.projectId || teamContext.project;
94
+ const team = teamContext.teamId || teamContext.team;
95
+ return this.beginRequest({
96
+ apiVersion: "7.2-preview.1",
97
+ routeTemplate: "{project}/{team}/_apis/work/backlogs/{id}",
98
+ routeValues: {
99
+ project: project,
100
+ team: team,
101
+ id: id
102
+ }
103
+ });
104
+ });
105
+ }
106
+ /**
107
+ * List all backlog levels
108
+ *
109
+ * @param teamContext - The team context for the operation
110
+ */
111
+ getBacklogs(teamContext) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const project = teamContext.projectId || teamContext.project;
114
+ const team = teamContext.teamId || teamContext.team;
115
+ return this.beginRequest({
116
+ apiVersion: "7.2-preview.1",
117
+ routeTemplate: "{project}/{team}/_apis/work/backlogs/{id}",
118
+ routeValues: {
119
+ project: project,
120
+ team: team
121
+ }
122
+ });
123
+ });
124
+ }
125
+ /**
126
+ * Gets a badge that displays the status of columns on the board.
127
+ *
128
+ * @param teamContext - The team context for the operation
129
+ * @param id - The id of the board.
130
+ * @param columnOptions - Determines what columns to show.
131
+ * @param columns - If columnOptions is set to custom, specify the list of column names.
132
+ */
133
+ getBoardBadge(teamContext, id, columnOptions, columns) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ const queryValues = {
136
+ columnOptions: columnOptions,
137
+ columns: columns && columns.join(",")
138
+ };
139
+ const project = teamContext.projectId || teamContext.project;
140
+ const team = teamContext.teamId || teamContext.team;
141
+ return this.beginRequest({
142
+ apiVersion: "7.2-preview.1",
143
+ routeTemplate: "{project}/{team}/_apis/work/boardbadge/{id}",
144
+ routeValues: {
145
+ project: project,
146
+ team: team,
147
+ id: id
148
+ },
149
+ queryParams: queryValues
150
+ });
151
+ });
152
+ }
153
+ /**
154
+ * Gets a badge that displays the status of columns on the board.
155
+ *
156
+ * @param teamContext - The team context for the operation
157
+ * @param id - The id of the board.
158
+ * @param columnOptions - Determines what columns to show.
159
+ * @param columns - If columnOptions is set to custom, specify the list of column names.
160
+ */
161
+ getBoardBadgeData(teamContext, id, columnOptions, columns) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ const queryValues = {
164
+ columnOptions: columnOptions,
165
+ columns: columns && columns.join(",")
166
+ };
167
+ const project = teamContext.projectId || teamContext.project;
168
+ const team = teamContext.teamId || teamContext.team;
169
+ return this.beginRequest({
170
+ apiVersion: "7.2-preview.1",
171
+ routeTemplate: "{project}/{team}/_apis/work/boardbadge/{id}",
172
+ routeValues: {
173
+ project: project,
174
+ team: team,
175
+ id: id
176
+ },
177
+ queryParams: queryValues
178
+ });
179
+ });
180
+ }
181
+ /**
182
+ * Get available board columns in a project
183
+ *
184
+ * @param project - Project ID or project name
185
+ */
186
+ getColumnSuggestedValues(project) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ return this.beginRequest({
189
+ apiVersion: "7.2-preview.1",
190
+ routeTemplate: "{project}/_apis/work/boardcolumns",
191
+ routeValues: {
192
+ project: project
193
+ }
194
+ });
195
+ });
196
+ }
197
+ /**
198
+ * Returns the list of parent field filter model for the given list of workitem ids
199
+ *
200
+ * @param teamContext - The team context for the operation
201
+ * @param childBacklogContextCategoryRefName -
202
+ * @param workitemIds -
203
+ */
204
+ getBoardMappingParentItems(teamContext, childBacklogContextCategoryRefName, workitemIds) {
205
+ return __awaiter(this, void 0, void 0, function* () {
206
+ const queryValues = {
207
+ childBacklogContextCategoryRefName: childBacklogContextCategoryRefName,
208
+ workitemIds: workitemIds && workitemIds.join(",")
209
+ };
210
+ const project = teamContext.projectId || teamContext.project;
211
+ const team = teamContext.teamId || teamContext.team;
212
+ return this.beginRequest({
213
+ apiVersion: "7.2-preview.1",
214
+ routeTemplate: "{project}/{team}/_apis/work/boards/boardparents",
215
+ routeValues: {
216
+ project: project,
217
+ team: team
218
+ },
219
+ queryParams: queryValues
220
+ });
221
+ });
222
+ }
223
+ /**
224
+ * Get available board rows in a project
225
+ *
226
+ * @param project - Project ID or project name
227
+ */
228
+ getRowSuggestedValues(project) {
229
+ return __awaiter(this, void 0, void 0, function* () {
230
+ return this.beginRequest({
231
+ apiVersion: "7.2-preview.1",
232
+ routeTemplate: "{project}/_apis/work/boardrows",
233
+ routeValues: {
234
+ project: project
235
+ }
236
+ });
237
+ });
238
+ }
239
+ /**
240
+ * Get board
241
+ *
242
+ * @param teamContext - The team context for the operation
243
+ * @param id - identifier for board, either board's backlog level name (Eg:"Stories") or Id
244
+ */
245
+ getBoard(teamContext, id) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ const project = teamContext.projectId || teamContext.project;
248
+ const team = teamContext.teamId || teamContext.team;
249
+ return this.beginRequest({
250
+ apiVersion: "7.2-preview.1",
251
+ routeTemplate: "{project}/{team}/_apis/work/boards/{id}",
252
+ routeValues: {
253
+ project: project,
254
+ team: team,
255
+ id: id
256
+ }
257
+ });
258
+ });
259
+ }
260
+ /**
261
+ * Get boards
262
+ *
263
+ * @param teamContext - The team context for the operation
264
+ */
265
+ getBoards(teamContext) {
266
+ return __awaiter(this, void 0, void 0, function* () {
267
+ const project = teamContext.projectId || teamContext.project;
268
+ const team = teamContext.teamId || teamContext.team;
269
+ return this.beginRequest({
270
+ apiVersion: "7.2-preview.1",
271
+ routeTemplate: "{project}/{team}/_apis/work/boards/{id}",
272
+ routeValues: {
273
+ project: project,
274
+ team: team
275
+ }
276
+ });
277
+ });
278
+ }
279
+ /**
280
+ * Update board options
281
+ *
282
+ * @param options - options to updated
283
+ * @param teamContext - The team context for the operation
284
+ * @param id - identifier for board, either category plural name (Eg:"Stories") or guid
285
+ */
286
+ setBoardOptions(options, teamContext, id) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ const project = teamContext.projectId || teamContext.project;
289
+ const team = teamContext.teamId || teamContext.team;
290
+ return this.beginRequest({
291
+ apiVersion: "7.2-preview.1",
292
+ method: "PUT",
293
+ routeTemplate: "{project}/{team}/_apis/work/boards/{id}",
294
+ routeValues: {
295
+ project: project,
296
+ team: team,
297
+ id: id
298
+ },
299
+ body: options
300
+ });
301
+ });
302
+ }
303
+ /**
304
+ * Get board user settings for a board id
305
+ *
306
+ * @param teamContext - The team context for the operation
307
+ * @param board - Board ID or Name
308
+ */
309
+ getBoardUserSettings(teamContext, board) {
310
+ return __awaiter(this, void 0, void 0, function* () {
311
+ const project = teamContext.projectId || teamContext.project;
312
+ const team = teamContext.teamId || teamContext.team;
313
+ return this.beginRequest({
314
+ apiVersion: "7.2-preview.1",
315
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/boardusersettings",
316
+ routeValues: {
317
+ project: project,
318
+ team: team,
319
+ board: board
320
+ }
321
+ });
322
+ });
323
+ }
324
+ /**
325
+ * Update board user settings for the board id
326
+ *
327
+ * @param boardUserSettings -
328
+ * @param teamContext - The team context for the operation
329
+ * @param board -
330
+ */
331
+ updateBoardUserSettings(boardUserSettings, teamContext, board) {
332
+ return __awaiter(this, void 0, void 0, function* () {
333
+ const project = teamContext.projectId || teamContext.project;
334
+ const team = teamContext.teamId || teamContext.team;
335
+ return this.beginRequest({
336
+ apiVersion: "7.2-preview.1",
337
+ method: "PATCH",
338
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/boardusersettings",
339
+ routeValues: {
340
+ project: project,
341
+ team: team,
342
+ board: board
343
+ },
344
+ body: boardUserSettings
345
+ });
346
+ });
347
+ }
348
+ /**
349
+ * Get a team's capacity including total capacity and days off
350
+ *
351
+ * @param teamContext - The team context for the operation
352
+ * @param iterationId - ID of the iteration
353
+ */
354
+ getCapacitiesWithIdentityRefAndTotals(teamContext, iterationId) {
355
+ return __awaiter(this, void 0, void 0, function* () {
356
+ const project = teamContext.projectId || teamContext.project;
357
+ const team = teamContext.teamId || teamContext.team;
358
+ return this.beginRequest({
359
+ apiVersion: "7.2-preview.3",
360
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
361
+ routeValues: {
362
+ project: project,
363
+ team: team,
364
+ iterationId: iterationId
365
+ }
366
+ });
367
+ });
368
+ }
369
+ /**
370
+ * Get a team member's capacity
371
+ *
372
+ * @param teamContext - The team context for the operation
373
+ * @param iterationId - ID of the iteration
374
+ * @param teamMemberId - ID of the team member
375
+ */
376
+ getCapacityWithIdentityRef(teamContext, iterationId, teamMemberId) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const project = teamContext.projectId || teamContext.project;
379
+ const team = teamContext.teamId || teamContext.team;
380
+ return this.beginRequest({
381
+ apiVersion: "7.2-preview.3",
382
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
383
+ routeValues: {
384
+ project: project,
385
+ team: team,
386
+ iterationId: iterationId,
387
+ teamMemberId: teamMemberId
388
+ }
389
+ });
390
+ });
391
+ }
392
+ /**
393
+ * Replace a team's capacity
394
+ *
395
+ * @param capacities - Team capacity to replace
396
+ * @param teamContext - The team context for the operation
397
+ * @param iterationId - ID of the iteration
398
+ */
399
+ replaceCapacitiesWithIdentityRef(capacities, teamContext, iterationId) {
400
+ return __awaiter(this, void 0, void 0, function* () {
401
+ const project = teamContext.projectId || teamContext.project;
402
+ const team = teamContext.teamId || teamContext.team;
403
+ return this.beginRequest({
404
+ apiVersion: "7.2-preview.3",
405
+ method: "PUT",
406
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
407
+ routeValues: {
408
+ project: project,
409
+ team: team,
410
+ iterationId: iterationId
411
+ },
412
+ body: capacities
413
+ });
414
+ });
415
+ }
416
+ /**
417
+ * Update a team member's capacity
418
+ *
419
+ * @param patch - Updated capacity
420
+ * @param teamContext - The team context for the operation
421
+ * @param iterationId - ID of the iteration
422
+ * @param teamMemberId - ID of the team member
423
+ */
424
+ updateCapacityWithIdentityRef(patch, teamContext, iterationId, teamMemberId) {
425
+ return __awaiter(this, void 0, void 0, function* () {
426
+ const project = teamContext.projectId || teamContext.project;
427
+ const team = teamContext.teamId || teamContext.team;
428
+ return this.beginRequest({
429
+ apiVersion: "7.2-preview.3",
430
+ method: "PATCH",
431
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}",
432
+ routeValues: {
433
+ project: project,
434
+ team: team,
435
+ iterationId: iterationId,
436
+ teamMemberId: teamMemberId
437
+ },
438
+ body: patch
439
+ });
440
+ });
441
+ }
442
+ /**
443
+ * Get board card Rule settings for the board id or board by name
444
+ *
445
+ * @param teamContext - The team context for the operation
446
+ * @param board -
447
+ */
448
+ getBoardCardRuleSettings(teamContext, board) {
449
+ return __awaiter(this, void 0, void 0, function* () {
450
+ const project = teamContext.projectId || teamContext.project;
451
+ const team = teamContext.teamId || teamContext.team;
452
+ return this.beginRequest({
453
+ apiVersion: "7.2-preview.2",
454
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardrulesettings",
455
+ routeValues: {
456
+ project: project,
457
+ team: team,
458
+ board: board
459
+ }
460
+ });
461
+ });
462
+ }
463
+ /**
464
+ * Update board card Rule settings for the board id or board by name
465
+ *
466
+ * @param boardCardRuleSettings -
467
+ * @param teamContext - The team context for the operation
468
+ * @param board -
469
+ */
470
+ updateBoardCardRuleSettings(boardCardRuleSettings, teamContext, board) {
471
+ return __awaiter(this, void 0, void 0, function* () {
472
+ const project = teamContext.projectId || teamContext.project;
473
+ const team = teamContext.teamId || teamContext.team;
474
+ return this.beginRequest({
475
+ apiVersion: "7.2-preview.2",
476
+ method: "PATCH",
477
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardrulesettings",
478
+ routeValues: {
479
+ project: project,
480
+ team: team,
481
+ board: board
482
+ },
483
+ body: boardCardRuleSettings
484
+ });
485
+ });
486
+ }
487
+ /**
488
+ * Update taskboard card Rule settings
489
+ *
490
+ * @param boardCardRuleSettings -
491
+ * @param teamContext - The team context for the operation
492
+ */
493
+ updateTaskboardCardRuleSettings(boardCardRuleSettings, teamContext) {
494
+ return __awaiter(this, void 0, void 0, function* () {
495
+ const project = teamContext.projectId || teamContext.project;
496
+ const team = teamContext.teamId || teamContext.team;
497
+ return this.beginRequest({
498
+ apiVersion: "7.2-preview.2",
499
+ method: "PATCH",
500
+ routeTemplate: "{project}/{team}/_apis/work/taskboard/cardrulesettings",
501
+ routeValues: {
502
+ project: project,
503
+ team: team
504
+ },
505
+ body: boardCardRuleSettings
506
+ });
507
+ });
508
+ }
509
+ /**
510
+ * Get board card settings for the board id or board by name
511
+ *
512
+ * @param teamContext - The team context for the operation
513
+ * @param board -
514
+ */
515
+ getBoardCardSettings(teamContext, board) {
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ const project = teamContext.projectId || teamContext.project;
518
+ const team = teamContext.teamId || teamContext.team;
519
+ return this.beginRequest({
520
+ apiVersion: "7.2-preview.2",
521
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardsettings",
522
+ routeValues: {
523
+ project: project,
524
+ team: team,
525
+ board: board
526
+ }
527
+ });
528
+ });
529
+ }
530
+ /**
531
+ * Update board card settings for the board id or board by name
532
+ *
533
+ * @param boardCardSettingsToSave -
534
+ * @param teamContext - The team context for the operation
535
+ * @param board -
536
+ */
537
+ updateBoardCardSettings(boardCardSettingsToSave, teamContext, board) {
538
+ return __awaiter(this, void 0, void 0, function* () {
539
+ const project = teamContext.projectId || teamContext.project;
540
+ const team = teamContext.teamId || teamContext.team;
541
+ return this.beginRequest({
542
+ apiVersion: "7.2-preview.2",
543
+ method: "PUT",
544
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/cardsettings",
545
+ routeValues: {
546
+ project: project,
547
+ team: team,
548
+ board: board
549
+ },
550
+ body: boardCardSettingsToSave
551
+ });
552
+ });
553
+ }
554
+ /**
555
+ * Update taskboard card settings
556
+ *
557
+ * @param boardCardSettingsToSave -
558
+ * @param teamContext - The team context for the operation
559
+ */
560
+ updateTaskboardCardSettings(boardCardSettingsToSave, teamContext) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ const project = teamContext.projectId || teamContext.project;
563
+ const team = teamContext.teamId || teamContext.team;
564
+ return this.beginRequest({
565
+ apiVersion: "7.2-preview.2",
566
+ method: "PUT",
567
+ routeTemplate: "{project}/{team}/_apis/work/taskboard/cardsettings",
568
+ routeValues: {
569
+ project: project,
570
+ team: team
571
+ },
572
+ body: boardCardSettingsToSave
573
+ });
574
+ });
575
+ }
576
+ /**
577
+ * Get a board chart
578
+ *
579
+ * @param teamContext - The team context for the operation
580
+ * @param board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
581
+ * @param name - The chart name
582
+ */
583
+ getBoardChart(teamContext, board, name) {
584
+ return __awaiter(this, void 0, void 0, function* () {
585
+ const project = teamContext.projectId || teamContext.project;
586
+ const team = teamContext.teamId || teamContext.team;
587
+ return this.beginRequest({
588
+ apiVersion: "7.2-preview.1",
589
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/charts/{name}",
590
+ routeValues: {
591
+ project: project,
592
+ team: team,
593
+ board: board,
594
+ name: name
595
+ }
596
+ });
597
+ });
598
+ }
599
+ /**
600
+ * Get board charts
601
+ *
602
+ * @param teamContext - The team context for the operation
603
+ * @param board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
604
+ */
605
+ getBoardCharts(teamContext, board) {
606
+ return __awaiter(this, void 0, void 0, function* () {
607
+ const project = teamContext.projectId || teamContext.project;
608
+ const team = teamContext.teamId || teamContext.team;
609
+ return this.beginRequest({
610
+ apiVersion: "7.2-preview.1",
611
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/charts/{name}",
612
+ routeValues: {
613
+ project: project,
614
+ team: team,
615
+ board: board
616
+ }
617
+ });
618
+ });
619
+ }
620
+ /**
621
+ * Update a board chart
622
+ *
623
+ * @param chart -
624
+ * @param teamContext - The team context for the operation
625
+ * @param board - Identifier for board, either board's backlog level name (Eg:"Stories") or Id
626
+ * @param name - The chart name
627
+ */
628
+ updateBoardChart(chart, teamContext, board, name) {
629
+ return __awaiter(this, void 0, void 0, function* () {
630
+ const project = teamContext.projectId || teamContext.project;
631
+ const team = teamContext.teamId || teamContext.team;
632
+ return this.beginRequest({
633
+ apiVersion: "7.2-preview.1",
634
+ method: "PATCH",
635
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/charts/{name}",
636
+ routeValues: {
637
+ project: project,
638
+ team: team,
639
+ board: board,
640
+ name: name
641
+ },
642
+ body: chart
643
+ });
644
+ });
645
+ }
646
+ /**
647
+ * Get columns on a board
648
+ *
649
+ * @param teamContext - The team context for the operation
650
+ * @param board - Name or ID of the specific board
651
+ */
652
+ getBoardColumns(teamContext, board) {
653
+ return __awaiter(this, void 0, void 0, function* () {
654
+ const project = teamContext.projectId || teamContext.project;
655
+ const team = teamContext.teamId || teamContext.team;
656
+ return this.beginRequest({
657
+ apiVersion: "7.2-preview.1",
658
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/columns/{id}",
659
+ routeValues: {
660
+ project: project,
661
+ team: team,
662
+ board: board
663
+ }
664
+ });
665
+ });
666
+ }
667
+ /**
668
+ * Update columns on a board
669
+ *
670
+ * @param boardColumns - List of board columns to update
671
+ * @param teamContext - The team context for the operation
672
+ * @param board - Name or ID of the specific board
673
+ */
674
+ updateBoardColumns(boardColumns, teamContext, board) {
675
+ return __awaiter(this, void 0, void 0, function* () {
676
+ const project = teamContext.projectId || teamContext.project;
677
+ const team = teamContext.teamId || teamContext.team;
678
+ return this.beginRequest({
679
+ apiVersion: "7.2-preview.1",
680
+ method: "PUT",
681
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/columns/{id}",
682
+ routeValues: {
683
+ project: project,
684
+ team: team,
685
+ board: board
686
+ },
687
+ body: boardColumns
688
+ });
689
+ });
690
+ }
691
+ /**
692
+ * Get Delivery View Data
693
+ *
694
+ * @param project - Project ID or project name
695
+ * @param id - Identifier for delivery view
696
+ * @param revision - Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision.
697
+ * @param startDate - The start date of timeline
698
+ * @param endDate - The end date of timeline
699
+ */
700
+ getDeliveryTimelineData(project, id, revision, startDate, endDate) {
701
+ return __awaiter(this, void 0, void 0, function* () {
702
+ const queryValues = {
703
+ revision: revision,
704
+ startDate: startDate,
705
+ endDate: endDate
706
+ };
707
+ return this.beginRequest({
708
+ apiVersion: "7.2-preview.1",
709
+ routeTemplate: "{project}/_apis/work/plans/{id}/deliverytimeline",
710
+ routeValues: {
711
+ project: project,
712
+ id: id
713
+ },
714
+ queryParams: queryValues
715
+ });
716
+ });
717
+ }
718
+ /**
719
+ * Get an iteration's capacity for all teams in iteration
720
+ *
721
+ * @param project - Project ID or project name
722
+ * @param iterationId - ID of the iteration
723
+ */
724
+ getTotalIterationCapacities(project, iterationId) {
725
+ return __awaiter(this, void 0, void 0, function* () {
726
+ return this.beginRequest({
727
+ apiVersion: "7.2-preview.1",
728
+ routeTemplate: "{project}/_apis/work/iterations/{iterationId}/iterationcapacities",
729
+ routeValues: {
730
+ project: project,
731
+ iterationId: iterationId
732
+ }
733
+ });
734
+ });
735
+ }
736
+ /**
737
+ * Delete a team's iteration by iterationId
738
+ *
739
+ * @param teamContext - The team context for the operation
740
+ * @param id - ID of the iteration
741
+ */
742
+ deleteTeamIteration(teamContext, id) {
743
+ return __awaiter(this, void 0, void 0, function* () {
744
+ const project = teamContext.projectId || teamContext.project;
745
+ const team = teamContext.teamId || teamContext.team;
746
+ return this.beginRequest({
747
+ apiVersion: "7.2-preview.1",
748
+ method: "DELETE",
749
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
750
+ routeValues: {
751
+ project: project,
752
+ team: team,
753
+ id: id
754
+ }
755
+ });
756
+ });
757
+ }
758
+ /**
759
+ * Get team's iteration by iterationId
760
+ *
761
+ * @param teamContext - The team context for the operation
762
+ * @param id - ID of the iteration
763
+ */
764
+ getTeamIteration(teamContext, id) {
765
+ return __awaiter(this, void 0, void 0, function* () {
766
+ const project = teamContext.projectId || teamContext.project;
767
+ const team = teamContext.teamId || teamContext.team;
768
+ return this.beginRequest({
769
+ apiVersion: "7.2-preview.1",
770
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
771
+ routeValues: {
772
+ project: project,
773
+ team: team,
774
+ id: id
775
+ }
776
+ });
777
+ });
778
+ }
779
+ /**
780
+ * Get a team's iterations using timeframe filter
781
+ *
782
+ * @param teamContext - The team context for the operation
783
+ * @param timeframe - A filter for which iterations are returned based on relative time. Only Current is supported currently.
784
+ */
785
+ getTeamIterations(teamContext, timeframe) {
786
+ return __awaiter(this, void 0, void 0, function* () {
787
+ const queryValues = {
788
+ '$timeframe': timeframe
789
+ };
790
+ const project = teamContext.projectId || teamContext.project;
791
+ const team = teamContext.teamId || teamContext.team;
792
+ return this.beginRequest({
793
+ apiVersion: "7.2-preview.1",
794
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
795
+ routeValues: {
796
+ project: project,
797
+ team: team
798
+ },
799
+ queryParams: queryValues
800
+ });
801
+ });
802
+ }
803
+ /**
804
+ * Add an iteration to the team
805
+ *
806
+ * @param iteration - Iteration to add
807
+ * @param teamContext - The team context for the operation
808
+ */
809
+ postTeamIteration(iteration, teamContext) {
810
+ return __awaiter(this, void 0, void 0, function* () {
811
+ const project = teamContext.projectId || teamContext.project;
812
+ const team = teamContext.teamId || teamContext.team;
813
+ return this.beginRequest({
814
+ apiVersion: "7.2-preview.1",
815
+ method: "POST",
816
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{id}",
817
+ routeValues: {
818
+ project: project,
819
+ team: team
820
+ },
821
+ body: iteration
822
+ });
823
+ });
824
+ }
825
+ /**
826
+ * Add a new plan for the team
827
+ *
828
+ * @param postedPlan - Plan definition
829
+ * @param project - Project ID or project name
830
+ */
831
+ createPlan(postedPlan, project) {
832
+ return __awaiter(this, void 0, void 0, function* () {
833
+ return this.beginRequest({
834
+ apiVersion: "7.2-preview.1",
835
+ method: "POST",
836
+ routeTemplate: "{project}/_apis/work/plans/{id}",
837
+ routeValues: {
838
+ project: project
839
+ },
840
+ body: postedPlan
841
+ });
842
+ });
843
+ }
844
+ /**
845
+ * Delete the specified plan
846
+ *
847
+ * @param project - Project ID or project name
848
+ * @param id - Identifier of the plan
849
+ */
850
+ deletePlan(project, id) {
851
+ return __awaiter(this, void 0, void 0, function* () {
852
+ return this.beginRequest({
853
+ apiVersion: "7.2-preview.1",
854
+ method: "DELETE",
855
+ routeTemplate: "{project}/_apis/work/plans/{id}",
856
+ routeValues: {
857
+ project: project,
858
+ id: id
859
+ }
860
+ });
861
+ });
862
+ }
863
+ /**
864
+ * Get the information for the specified plan
865
+ *
866
+ * @param project - Project ID or project name
867
+ * @param id - Identifier of the plan
868
+ */
869
+ getPlan(project, id) {
870
+ return __awaiter(this, void 0, void 0, function* () {
871
+ return this.beginRequest({
872
+ apiVersion: "7.2-preview.1",
873
+ routeTemplate: "{project}/_apis/work/plans/{id}",
874
+ routeValues: {
875
+ project: project,
876
+ id: id
877
+ }
878
+ });
879
+ });
880
+ }
881
+ /**
882
+ * Get the information for all the plans configured for the given team
883
+ *
884
+ * @param project - Project ID or project name
885
+ */
886
+ getPlans(project) {
887
+ return __awaiter(this, void 0, void 0, function* () {
888
+ return this.beginRequest({
889
+ apiVersion: "7.2-preview.1",
890
+ routeTemplate: "{project}/_apis/work/plans/{id}",
891
+ routeValues: {
892
+ project: project
893
+ }
894
+ });
895
+ });
896
+ }
897
+ /**
898
+ * Update the information for the specified plan
899
+ *
900
+ * @param updatedPlan - Plan definition to be updated
901
+ * @param project - Project ID or project name
902
+ * @param id - Identifier of the plan
903
+ */
904
+ updatePlan(updatedPlan, project, id) {
905
+ return __awaiter(this, void 0, void 0, function* () {
906
+ return this.beginRequest({
907
+ apiVersion: "7.2-preview.1",
908
+ method: "PUT",
909
+ routeTemplate: "{project}/_apis/work/plans/{id}",
910
+ routeValues: {
911
+ project: project,
912
+ id: id
913
+ },
914
+ body: updatedPlan
915
+ });
916
+ });
917
+ }
918
+ /**
919
+ * Get process configuration
920
+ *
921
+ * @param project - Project ID or project name
922
+ */
923
+ getProcessConfiguration(project) {
924
+ return __awaiter(this, void 0, void 0, function* () {
925
+ return this.beginRequest({
926
+ apiVersion: "7.2-preview.1",
927
+ routeTemplate: "{project}/_apis/work/processconfiguration",
928
+ routeValues: {
929
+ project: project
930
+ }
931
+ });
932
+ });
933
+ }
934
+ /**
935
+ * Get rows on a board
936
+ *
937
+ * @param teamContext - The team context for the operation
938
+ * @param board - Name or ID of the specific board
939
+ */
940
+ getBoardRows(teamContext, board) {
941
+ return __awaiter(this, void 0, void 0, function* () {
942
+ const project = teamContext.projectId || teamContext.project;
943
+ const team = teamContext.teamId || teamContext.team;
944
+ return this.beginRequest({
945
+ apiVersion: "7.2-preview.1",
946
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/rows/{id}",
947
+ routeValues: {
948
+ project: project,
949
+ team: team,
950
+ board: board
951
+ }
952
+ });
953
+ });
954
+ }
955
+ /**
956
+ * Update rows on a board
957
+ *
958
+ * @param boardRows - List of board rows to update
959
+ * @param teamContext - The team context for the operation
960
+ * @param board - Name or ID of the specific board
961
+ */
962
+ updateBoardRows(boardRows, teamContext, board) {
963
+ return __awaiter(this, void 0, void 0, function* () {
964
+ const project = teamContext.projectId || teamContext.project;
965
+ const team = teamContext.teamId || teamContext.team;
966
+ return this.beginRequest({
967
+ apiVersion: "7.2-preview.1",
968
+ method: "PUT",
969
+ routeTemplate: "{project}/{team}/_apis/work/boards/{board}/rows/{id}",
970
+ routeValues: {
971
+ project: project,
972
+ team: team,
973
+ board: board
974
+ },
975
+ body: boardRows
976
+ });
977
+ });
978
+ }
979
+ /**
980
+ * @param teamContext - The team context for the operation
981
+ */
982
+ getColumns(teamContext) {
983
+ return __awaiter(this, void 0, void 0, function* () {
984
+ const project = teamContext.projectId || teamContext.project;
985
+ const team = teamContext.teamId || teamContext.team;
986
+ return this.beginRequest({
987
+ apiVersion: "7.2-preview.1",
988
+ routeTemplate: "{project}/{team}/_apis/work/taskboardColumns",
989
+ routeValues: {
990
+ project: project,
991
+ team: team
992
+ }
993
+ });
994
+ });
995
+ }
996
+ /**
997
+ * @param updateColumns -
998
+ * @param teamContext - The team context for the operation
999
+ */
1000
+ updateColumns(updateColumns, teamContext) {
1001
+ return __awaiter(this, void 0, void 0, function* () {
1002
+ const project = teamContext.projectId || teamContext.project;
1003
+ const team = teamContext.teamId || teamContext.team;
1004
+ return this.beginRequest({
1005
+ apiVersion: "7.2-preview.1",
1006
+ method: "PUT",
1007
+ routeTemplate: "{project}/{team}/_apis/work/taskboardColumns",
1008
+ routeValues: {
1009
+ project: project,
1010
+ team: team
1011
+ },
1012
+ body: updateColumns
1013
+ });
1014
+ });
1015
+ }
1016
+ /**
1017
+ * @param teamContext - The team context for the operation
1018
+ * @param iterationId -
1019
+ */
1020
+ getWorkItemColumns(teamContext, iterationId) {
1021
+ return __awaiter(this, void 0, void 0, function* () {
1022
+ const project = teamContext.projectId || teamContext.project;
1023
+ const team = teamContext.teamId || teamContext.team;
1024
+ return this.beginRequest({
1025
+ apiVersion: "7.2-preview.1",
1026
+ routeTemplate: "{project}/{team}/_apis/work/taskboardWorkItems/{iterationId}/{workItemId}",
1027
+ routeValues: {
1028
+ project: project,
1029
+ team: team,
1030
+ iterationId: iterationId
1031
+ }
1032
+ });
1033
+ });
1034
+ }
1035
+ /**
1036
+ * @param updateColumn -
1037
+ * @param teamContext - The team context for the operation
1038
+ * @param iterationId -
1039
+ * @param workItemId -
1040
+ */
1041
+ updateWorkItemColumn(updateColumn, teamContext, iterationId, workItemId) {
1042
+ return __awaiter(this, void 0, void 0, function* () {
1043
+ const project = teamContext.projectId || teamContext.project;
1044
+ const team = teamContext.teamId || teamContext.team;
1045
+ return this.beginRequest({
1046
+ apiVersion: "7.2-preview.1",
1047
+ method: "PATCH",
1048
+ routeTemplate: "{project}/{team}/_apis/work/taskboardWorkItems/{iterationId}/{workItemId}",
1049
+ routeValues: {
1050
+ project: project,
1051
+ team: team,
1052
+ iterationId: iterationId,
1053
+ workItemId: workItemId
1054
+ },
1055
+ body: updateColumn
1056
+ });
1057
+ });
1058
+ }
1059
+ /**
1060
+ * Get team's days off for an iteration
1061
+ *
1062
+ * @param teamContext - The team context for the operation
1063
+ * @param iterationId - ID of the iteration
1064
+ */
1065
+ getTeamDaysOff(teamContext, iterationId) {
1066
+ return __awaiter(this, void 0, void 0, function* () {
1067
+ const project = teamContext.projectId || teamContext.project;
1068
+ const team = teamContext.teamId || teamContext.team;
1069
+ return this.beginRequest({
1070
+ apiVersion: "7.2-preview.1",
1071
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/teamdaysoff",
1072
+ routeValues: {
1073
+ project: project,
1074
+ team: team,
1075
+ iterationId: iterationId
1076
+ }
1077
+ });
1078
+ });
1079
+ }
1080
+ /**
1081
+ * Set a team's days off for an iteration
1082
+ *
1083
+ * @param daysOffPatch - Team's days off patch containing a list of start and end dates
1084
+ * @param teamContext - The team context for the operation
1085
+ * @param iterationId - ID of the iteration
1086
+ */
1087
+ updateTeamDaysOff(daysOffPatch, teamContext, iterationId) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ const project = teamContext.projectId || teamContext.project;
1090
+ const team = teamContext.teamId || teamContext.team;
1091
+ return this.beginRequest({
1092
+ apiVersion: "7.2-preview.1",
1093
+ method: "PATCH",
1094
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/teamdaysoff",
1095
+ routeValues: {
1096
+ project: project,
1097
+ team: team,
1098
+ iterationId: iterationId
1099
+ },
1100
+ body: daysOffPatch
1101
+ });
1102
+ });
1103
+ }
1104
+ /**
1105
+ * Get a collection of team field values
1106
+ *
1107
+ * @param teamContext - The team context for the operation
1108
+ */
1109
+ getTeamFieldValues(teamContext) {
1110
+ return __awaiter(this, void 0, void 0, function* () {
1111
+ const project = teamContext.projectId || teamContext.project;
1112
+ const team = teamContext.teamId || teamContext.team;
1113
+ return this.beginRequest({
1114
+ apiVersion: "7.2-preview.1",
1115
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/teamfieldvalues",
1116
+ routeValues: {
1117
+ project: project,
1118
+ team: team
1119
+ }
1120
+ });
1121
+ });
1122
+ }
1123
+ /**
1124
+ * Update team field values
1125
+ *
1126
+ * @param patch -
1127
+ * @param teamContext - The team context for the operation
1128
+ */
1129
+ updateTeamFieldValues(patch, teamContext) {
1130
+ return __awaiter(this, void 0, void 0, function* () {
1131
+ const project = teamContext.projectId || teamContext.project;
1132
+ const team = teamContext.teamId || teamContext.team;
1133
+ return this.beginRequest({
1134
+ apiVersion: "7.2-preview.1",
1135
+ method: "PATCH",
1136
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/teamfieldvalues",
1137
+ routeValues: {
1138
+ project: project,
1139
+ team: team
1140
+ },
1141
+ body: patch
1142
+ });
1143
+ });
1144
+ }
1145
+ /**
1146
+ * Get a team's settings
1147
+ *
1148
+ * @param teamContext - The team context for the operation
1149
+ */
1150
+ getTeamSettings(teamContext) {
1151
+ return __awaiter(this, void 0, void 0, function* () {
1152
+ const project = teamContext.projectId || teamContext.project;
1153
+ const team = teamContext.teamId || teamContext.team;
1154
+ return this.beginRequest({
1155
+ apiVersion: "7.2-preview.1",
1156
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings",
1157
+ routeValues: {
1158
+ project: project,
1159
+ team: team
1160
+ }
1161
+ });
1162
+ });
1163
+ }
1164
+ /**
1165
+ * Update a team's settings
1166
+ *
1167
+ * @param teamSettingsPatch - TeamSettings changes
1168
+ * @param teamContext - The team context for the operation
1169
+ */
1170
+ updateTeamSettings(teamSettingsPatch, teamContext) {
1171
+ return __awaiter(this, void 0, void 0, function* () {
1172
+ const project = teamContext.projectId || teamContext.project;
1173
+ const team = teamContext.teamId || teamContext.team;
1174
+ return this.beginRequest({
1175
+ apiVersion: "7.2-preview.1",
1176
+ method: "PATCH",
1177
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings",
1178
+ routeValues: {
1179
+ project: project,
1180
+ team: team
1181
+ },
1182
+ body: teamSettingsPatch
1183
+ });
1184
+ });
1185
+ }
1186
+ /**
1187
+ * Get work items for iteration
1188
+ *
1189
+ * @param teamContext - The team context for the operation
1190
+ * @param iterationId - ID of the iteration
1191
+ */
1192
+ getIterationWorkItems(teamContext, iterationId) {
1193
+ return __awaiter(this, void 0, void 0, function* () {
1194
+ const project = teamContext.projectId || teamContext.project;
1195
+ const team = teamContext.teamId || teamContext.team;
1196
+ return this.beginRequest({
1197
+ apiVersion: "7.2-preview.1",
1198
+ routeTemplate: "{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/workitems",
1199
+ routeValues: {
1200
+ project: project,
1201
+ team: team,
1202
+ iterationId: iterationId
1203
+ }
1204
+ });
1205
+ });
1206
+ }
1207
+ /**
1208
+ * Reorder Product Backlog/Boards Work Items
1209
+ *
1210
+ * @param operation -
1211
+ * @param teamContext - The team context for the operation
1212
+ */
1213
+ reorderBacklogWorkItems(operation, teamContext) {
1214
+ return __awaiter(this, void 0, void 0, function* () {
1215
+ const project = teamContext.projectId || teamContext.project;
1216
+ const team = teamContext.teamId || teamContext.team;
1217
+ return this.beginRequest({
1218
+ apiVersion: "7.2-preview.1",
1219
+ method: "PATCH",
1220
+ routeTemplate: "{project}/{team}/_apis/work/workitemsorder",
1221
+ routeValues: {
1222
+ project: project,
1223
+ team: team
1224
+ },
1225
+ body: operation
1226
+ });
1227
+ });
1228
+ }
1229
+ /**
1230
+ * Reorder Sprint Backlog/Taskboard Work Items
1231
+ *
1232
+ * @param operation -
1233
+ * @param teamContext - The team context for the operation
1234
+ * @param iterationId - The id of the iteration
1235
+ */
1236
+ reorderIterationWorkItems(operation, teamContext, iterationId) {
1237
+ return __awaiter(this, void 0, void 0, function* () {
1238
+ const project = teamContext.projectId || teamContext.project;
1239
+ const team = teamContext.teamId || teamContext.team;
1240
+ return this.beginRequest({
1241
+ apiVersion: "7.2-preview.1",
1242
+ method: "PATCH",
1243
+ routeTemplate: "{project}/{team}/_apis/work/iterations/{iterationId}/workitemsorder",
1244
+ routeValues: {
1245
+ project: project,
1246
+ team: team,
1247
+ iterationId: iterationId
1248
+ },
1249
+ body: operation
1250
+ });
1251
+ });
1252
+ }
1253
+ }
1254
+ exports.WorkRestClient = WorkRestClient;
1255
+ WorkRestClient.RESOURCE_AREA_ID = "1d4f49f9-02b9-4e26-b826-2cdb6195f2a9";