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