azure-devops-extension-api 4.246.0 → 4.247.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 (558) hide show
  1. package/SECURITY.md +41 -0
  2. package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/Reporting.d.ts +48 -0
  3. package/bin/AdvancedSecurity.Reporting/Reporting.js +32 -0
  4. package/bin/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  5. package/{Alert → bin/Alert}/Alert.d.ts +8 -8
  6. package/{Contributions → bin/Contributions}/ContributionsClient.js +2 -2
  7. package/{Contributions → bin/Contributions}/ContributionsClient.min.js +1 -1
  8. package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.js +7 -7
  9. package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.min.js +1 -1
  10. package/bin/LICENSE +21 -0
  11. package/bin/README.md +2 -0
  12. package/{TaskAgent → bin/TaskAgent}/TaskAgent.d.ts +8 -0
  13. package/{Test → bin/Test}/Test.d.ts +31 -7
  14. package/{TestPlan → bin/TestPlan}/TestPlan.d.ts +6 -2
  15. package/{TestResults → bin/TestResults}/TestResultsClient.d.ts +8 -0
  16. package/{TestResults → bin/TestResults}/TestResultsClient.js +23 -0
  17. package/{TestResults → bin/TestResults}/TestResultsClient.min.js +1 -1
  18. package/bin/package.json +37 -0
  19. package/buildpackage.js +80 -0
  20. package/package.json +1 -1
  21. package/src/Accounts/Accounts.ts +134 -0
  22. package/src/Accounts/AccountsClient.ts +83 -0
  23. package/src/Accounts/index.ts +2 -0
  24. package/src/AdvancedSecurity.Reporting/Reporting.ts +180 -0
  25. package/src/AdvancedSecurity.Reporting/ReportingClient.ts +47 -0
  26. package/src/Alert/Alert.ts +1037 -0
  27. package/src/Alert/AlertClient.ts +330 -0
  28. package/src/Boards/Boards.ts +684 -0
  29. package/src/Boards/BoardsClient.ts +593 -0
  30. package/src/Boards/index.ts +2 -0
  31. package/src/Build/Build.ts +3416 -0
  32. package/src/Build/BuildClient.ts +2740 -0
  33. package/src/Build/BuildServices.ts +39 -0
  34. package/src/Build/index.ts +3 -0
  35. package/src/Comments/Comments.ts +330 -0
  36. package/src/Comments/index.ts +1 -0
  37. package/src/Common/Client.ts +37 -0
  38. package/src/Common/CommonServices.ts +853 -0
  39. package/src/Common/Context.d.ts +46 -0
  40. package/src/Common/Fetch.ts +239 -0
  41. package/src/Common/RestClientBase.ts +186 -0
  42. package/src/Common/System.ts +36 -0
  43. package/src/Common/SystemData.ts +135 -0
  44. package/src/Common/Util/Serialization.ts +59 -0
  45. package/src/Common/Util/Url.ts +773 -0
  46. package/src/Common/index.ts +3 -0
  47. package/src/Contributions/Contributions.ts +708 -0
  48. package/src/Contributions/ContributionsClient.ts +109 -0
  49. package/src/Contributions/index.ts +2 -0
  50. package/src/Core/Core.ts +579 -0
  51. package/src/Core/CoreClient.ts +765 -0
  52. package/src/Core/index.ts +2 -0
  53. package/src/Dashboard/Dashboard.ts +419 -0
  54. package/src/Dashboard/DashboardClient.ts +370 -0
  55. package/src/Dashboard/WidgetConfigHelpers.ts +43 -0
  56. package/src/Dashboard/WidgetContracts.ts +226 -0
  57. package/src/Dashboard/WidgetHelpers.ts +145 -0
  58. package/src/Dashboard/index.ts +5 -0
  59. package/src/DistributedTaskCommon/DistributedTaskCommon.ts +108 -0
  60. package/src/DistributedTaskCommon/index.ts +1 -0
  61. package/src/ExtensionManagement/ExtensionManagement.ts +1205 -0
  62. package/src/ExtensionManagement/ExtensionManagementClient.ts +646 -0
  63. package/src/ExtensionManagement/index.ts +2 -0
  64. package/src/Favorite/Favorite.ts +136 -0
  65. package/src/Favorite/FavoriteClient.ts +301 -0
  66. package/src/FeatureAvailability/FeatureAvailability.ts +20 -0
  67. package/src/FeatureAvailability/FeatureAvailabilityClient.ts +153 -0
  68. package/src/FeatureAvailability/index.ts +2 -0
  69. package/src/FeatureManagement/FeatureManagement.ts +166 -0
  70. package/src/FeatureManagement/FeatureManagementClient.ts +246 -0
  71. package/src/FeatureManagement/index.ts +2 -0
  72. package/src/FileContainer/FileContainer.ts +205 -0
  73. package/src/FileContainer/FileContainerClient.ts +154 -0
  74. package/src/FileContainer/index.ts +2 -0
  75. package/src/FormInput/FormInput.ts +288 -0
  76. package/src/FormInput/index.ts +1 -0
  77. package/src/Gallery/Gallery.ts +1977 -0
  78. package/src/Gallery/GalleryClient.ts +2251 -0
  79. package/src/Gallery/index.ts +2 -0
  80. package/src/Git/CodeEditorTypes.ts +335 -0
  81. package/src/Git/Git.ts +4058 -0
  82. package/src/Git/GitClient.ts +4750 -0
  83. package/src/Git/GitServices.ts +18 -0
  84. package/src/Git/index.ts +4 -0
  85. package/src/Graph/Graph.ts +572 -0
  86. package/src/Graph/GraphClient.ts +846 -0
  87. package/src/Graph/index.ts +2 -0
  88. package/src/Identities/Identities.ts +261 -0
  89. package/src/Identities/IdentityProvider.ts +90 -0
  90. package/src/Identities/IdentityService.ts +89 -0
  91. package/src/Identities/index.ts +3 -0
  92. package/src/Locations/Locations.ts +165 -0
  93. package/src/Locations/LocationsClient.ts +220 -0
  94. package/src/Locations/index.ts +2 -0
  95. package/src/Management/Management.ts +172 -0
  96. package/src/Management/ManagementClient.ts +348 -0
  97. package/src/Notification/Notification.ts +1460 -0
  98. package/src/Notification/NotificationClient.ts +477 -0
  99. package/src/Notification/index.ts +2 -0
  100. package/src/Operations/Operations.ts +86 -0
  101. package/src/Operations/OperationsClient.ts +42 -0
  102. package/src/Operations/index.ts +2 -0
  103. package/src/Pipelines/Pipelines.ts +354 -0
  104. package/src/Pipelines/PipelinesClient.ts +306 -0
  105. package/src/Policy/Policy.ts +173 -0
  106. package/src/Policy/PolicyClient.ts +315 -0
  107. package/src/Policy/index.ts +2 -0
  108. package/src/Profile/Profile.ts +187 -0
  109. package/src/Profile/ProfileClient.ts +328 -0
  110. package/src/Profile/index.ts +2 -0
  111. package/src/ProjectAnalysis/ProjectAnalysis.ts +74 -0
  112. package/src/ProjectAnalysis/ProjectAnalysisClient.ts +124 -0
  113. package/src/ProjectAnalysis/index.ts +2 -0
  114. package/src/Release/Release.ts +4237 -0
  115. package/src/Release/ReleaseClient.ts +2450 -0
  116. package/src/Release/index.ts +2 -0
  117. package/src/ResourceUsage/ResourceUsage.ts +19 -0
  118. package/src/ResourceUsage/ResourceUsageClient.ts +48 -0
  119. package/src/ServiceEndpoint/ServiceEndpoint.ts +930 -0
  120. package/src/ServiceEndpoint/ServiceEndpointClient.ts +617 -0
  121. package/src/ServiceEndpoint/index.ts +2 -0
  122. package/src/ServiceHooks/ServiceHooks.ts +759 -0
  123. package/src/ServiceHooks/ServiceHooksClient.ts +499 -0
  124. package/src/ServiceHooks/index.ts +2 -0
  125. package/src/TaskAgent/TaskAgent.ts +3896 -0
  126. package/src/TaskAgent/TaskAgentClient.ts +3918 -0
  127. package/src/TaskAgent/index.ts +2 -0
  128. package/src/Test/Test.ts +5853 -0
  129. package/src/Test/TestClient.ts +2201 -0
  130. package/src/Test/index.ts +2 -0
  131. package/src/TestPlan/TestPlan.ts +1384 -0
  132. package/src/TestPlan/TestPlanClient.ts +1367 -0
  133. package/src/TestPlan/index.ts +2 -0
  134. package/{AdvancedSecurity.Reporting/Reporting.js → src/TestResults/TestResults.ts} +7 -5
  135. package/src/TestResults/TestResultsClient.ts +3450 -0
  136. package/src/TestResults/index.ts +2 -0
  137. package/src/Tfvc/Tfvc.ts +770 -0
  138. package/src/Tfvc/TfvcClient.ts +757 -0
  139. package/src/Tfvc/index.ts +2 -0
  140. package/src/WebApi/WebApi.ts +452 -0
  141. package/src/WebApi/index.ts +1 -0
  142. package/src/Wiki/Wiki.ts +352 -0
  143. package/src/Wiki/WikiClient.ts +712 -0
  144. package/src/Wiki/index.ts +2 -0
  145. package/src/Work/Work.ts +1367 -0
  146. package/src/Work/WorkClient.ts +1489 -0
  147. package/src/Work/index.ts +2 -0
  148. package/src/WorkItemTracking/WorkItemTracking.ts +2215 -0
  149. package/src/WorkItemTracking/WorkItemTrackingClient.ts +2032 -0
  150. package/src/WorkItemTracking/WorkItemTrackingServices.ts +329 -0
  151. package/src/WorkItemTracking/index.ts +3 -0
  152. package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +1295 -0
  153. package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +1455 -0
  154. package/src/WorkItemTrackingProcess/index.ts +2 -0
  155. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +606 -0
  156. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +1175 -0
  157. package/src/WorkItemTrackingProcessDefinitions/index.ts +2 -0
  158. package/src/index.ts +1 -0
  159. package/tsconfig.json +21 -0
  160. package/AdvancedSecurity.Reporting/Reporting.min.js +0 -1
  161. /package/{Accounts → bin/Accounts}/Accounts.d.ts +0 -0
  162. /package/{Accounts → bin/Accounts}/Accounts.js +0 -0
  163. /package/{Accounts → bin/Accounts}/Accounts.min.js +0 -0
  164. /package/{Accounts → bin/Accounts}/AccountsClient.d.ts +0 -0
  165. /package/{Accounts → bin/Accounts}/AccountsClient.js +0 -0
  166. /package/{Accounts → bin/Accounts}/AccountsClient.min.js +0 -0
  167. /package/{Accounts → bin/Accounts}/index.d.ts +0 -0
  168. /package/{Accounts → bin/Accounts}/index.js +0 -0
  169. /package/{Accounts → bin/Accounts}/index.min.js +0 -0
  170. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
  171. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
  172. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
  173. /package/{Alert → bin/Alert}/Alert.js +0 -0
  174. /package/{Alert → bin/Alert}/Alert.min.js +0 -0
  175. /package/{Alert → bin/Alert}/AlertClient.d.ts +0 -0
  176. /package/{Alert → bin/Alert}/AlertClient.js +0 -0
  177. /package/{Alert → bin/Alert}/AlertClient.min.js +0 -0
  178. /package/{Boards → bin/Boards}/Boards.d.ts +0 -0
  179. /package/{Boards → bin/Boards}/Boards.js +0 -0
  180. /package/{Boards → bin/Boards}/Boards.min.js +0 -0
  181. /package/{Boards → bin/Boards}/BoardsClient.d.ts +0 -0
  182. /package/{Boards → bin/Boards}/BoardsClient.js +0 -0
  183. /package/{Boards → bin/Boards}/BoardsClient.min.js +0 -0
  184. /package/{Boards → bin/Boards}/index.d.ts +0 -0
  185. /package/{Boards → bin/Boards}/index.js +0 -0
  186. /package/{Boards → bin/Boards}/index.min.js +0 -0
  187. /package/{Build → bin/Build}/Build.d.ts +0 -0
  188. /package/{Build → bin/Build}/Build.js +0 -0
  189. /package/{Build → bin/Build}/Build.min.js +0 -0
  190. /package/{Build → bin/Build}/BuildClient.d.ts +0 -0
  191. /package/{Build → bin/Build}/BuildClient.js +0 -0
  192. /package/{Build → bin/Build}/BuildClient.min.js +0 -0
  193. /package/{Build → bin/Build}/BuildServices.d.ts +0 -0
  194. /package/{Build → bin/Build}/BuildServices.js +0 -0
  195. /package/{Build → bin/Build}/BuildServices.min.js +0 -0
  196. /package/{Build → bin/Build}/index.d.ts +0 -0
  197. /package/{Build → bin/Build}/index.js +0 -0
  198. /package/{Build → bin/Build}/index.min.js +0 -0
  199. /package/{Comments → bin/Comments}/Comments.d.ts +0 -0
  200. /package/{Comments → bin/Comments}/Comments.js +0 -0
  201. /package/{Comments → bin/Comments}/Comments.min.js +0 -0
  202. /package/{Comments → bin/Comments}/index.d.ts +0 -0
  203. /package/{Comments → bin/Comments}/index.js +0 -0
  204. /package/{Comments → bin/Comments}/index.min.js +0 -0
  205. /package/{Common → bin/Common}/Client.d.ts +0 -0
  206. /package/{Common → bin/Common}/Client.js +0 -0
  207. /package/{Common → bin/Common}/Client.min.js +0 -0
  208. /package/{Common → bin/Common}/CommonServices.d.ts +0 -0
  209. /package/{Common → bin/Common}/CommonServices.js +0 -0
  210. /package/{Common → bin/Common}/CommonServices.min.js +0 -0
  211. /package/{Common → bin/Common}/Context.d.ts +0 -0
  212. /package/{Common → bin/Common}/Fetch.d.ts +0 -0
  213. /package/{Common → bin/Common}/Fetch.js +0 -0
  214. /package/{Common → bin/Common}/Fetch.min.js +0 -0
  215. /package/{Common → bin/Common}/RestClientBase.d.ts +0 -0
  216. /package/{Common → bin/Common}/RestClientBase.js +0 -0
  217. /package/{Common → bin/Common}/RestClientBase.min.js +0 -0
  218. /package/{Common → bin/Common}/System.d.ts +0 -0
  219. /package/{Common → bin/Common}/System.js +0 -0
  220. /package/{Common → bin/Common}/System.min.js +0 -0
  221. /package/{Common → bin/Common}/SystemData.d.ts +0 -0
  222. /package/{Common → bin/Common}/SystemData.js +0 -0
  223. /package/{Common → bin/Common}/SystemData.min.js +0 -0
  224. /package/{Common → bin/Common}/Util/Serialization.d.ts +0 -0
  225. /package/{Common → bin/Common}/Util/Serialization.js +0 -0
  226. /package/{Common → bin/Common}/Util/Serialization.min.js +0 -0
  227. /package/{Common → bin/Common}/Util/Url.d.ts +0 -0
  228. /package/{Common → bin/Common}/Util/Url.js +0 -0
  229. /package/{Common → bin/Common}/Util/Url.min.js +0 -0
  230. /package/{Common → bin/Common}/index.d.ts +0 -0
  231. /package/{Common → bin/Common}/index.js +0 -0
  232. /package/{Common → bin/Common}/index.min.js +0 -0
  233. /package/{Contributions → bin/Contributions}/Contributions.d.ts +0 -0
  234. /package/{Contributions → bin/Contributions}/Contributions.js +0 -0
  235. /package/{Contributions → bin/Contributions}/Contributions.min.js +0 -0
  236. /package/{Contributions → bin/Contributions}/ContributionsClient.d.ts +0 -0
  237. /package/{Contributions → bin/Contributions}/index.d.ts +0 -0
  238. /package/{Contributions → bin/Contributions}/index.js +0 -0
  239. /package/{Contributions → bin/Contributions}/index.min.js +0 -0
  240. /package/{Core → bin/Core}/Core.d.ts +0 -0
  241. /package/{Core → bin/Core}/Core.js +0 -0
  242. /package/{Core → bin/Core}/Core.min.js +0 -0
  243. /package/{Core → bin/Core}/CoreClient.d.ts +0 -0
  244. /package/{Core → bin/Core}/CoreClient.js +0 -0
  245. /package/{Core → bin/Core}/CoreClient.min.js +0 -0
  246. /package/{Core → bin/Core}/index.d.ts +0 -0
  247. /package/{Core → bin/Core}/index.js +0 -0
  248. /package/{Core → bin/Core}/index.min.js +0 -0
  249. /package/{Dashboard → bin/Dashboard}/Dashboard.d.ts +0 -0
  250. /package/{Dashboard → bin/Dashboard}/Dashboard.js +0 -0
  251. /package/{Dashboard → bin/Dashboard}/Dashboard.min.js +0 -0
  252. /package/{Dashboard → bin/Dashboard}/DashboardClient.d.ts +0 -0
  253. /package/{Dashboard → bin/Dashboard}/DashboardClient.js +0 -0
  254. /package/{Dashboard → bin/Dashboard}/DashboardClient.min.js +0 -0
  255. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.d.ts +0 -0
  256. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.js +0 -0
  257. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.min.js +0 -0
  258. /package/{Dashboard → bin/Dashboard}/WidgetContracts.d.ts +0 -0
  259. /package/{Dashboard → bin/Dashboard}/WidgetContracts.js +0 -0
  260. /package/{Dashboard → bin/Dashboard}/WidgetContracts.min.js +0 -0
  261. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.d.ts +0 -0
  262. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.js +0 -0
  263. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.min.js +0 -0
  264. /package/{Dashboard → bin/Dashboard}/index.d.ts +0 -0
  265. /package/{Dashboard → bin/Dashboard}/index.js +0 -0
  266. /package/{Dashboard → bin/Dashboard}/index.min.js +0 -0
  267. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
  268. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
  269. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
  270. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.d.ts +0 -0
  271. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.js +0 -0
  272. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.min.js +0 -0
  273. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.d.ts +0 -0
  274. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.js +0 -0
  275. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.min.js +0 -0
  276. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
  277. /package/{ExtensionManagement → bin/ExtensionManagement}/index.d.ts +0 -0
  278. /package/{ExtensionManagement → bin/ExtensionManagement}/index.js +0 -0
  279. /package/{ExtensionManagement → bin/ExtensionManagement}/index.min.js +0 -0
  280. /package/{Favorite → bin/Favorite}/Favorite.d.ts +0 -0
  281. /package/{Favorite → bin/Favorite}/Favorite.js +0 -0
  282. /package/{Favorite → bin/Favorite}/Favorite.min.js +0 -0
  283. /package/{Favorite → bin/Favorite}/FavoriteClient.d.ts +0 -0
  284. /package/{Favorite → bin/Favorite}/FavoriteClient.js +0 -0
  285. /package/{Favorite → bin/Favorite}/FavoriteClient.min.js +0 -0
  286. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.d.ts +0 -0
  287. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.js +0 -0
  288. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.min.js +0 -0
  289. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
  290. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
  291. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
  292. /package/{FeatureAvailability → bin/FeatureAvailability}/index.d.ts +0 -0
  293. /package/{FeatureAvailability → bin/FeatureAvailability}/index.js +0 -0
  294. /package/{FeatureAvailability → bin/FeatureAvailability}/index.min.js +0 -0
  295. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.d.ts +0 -0
  296. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.js +0 -0
  297. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.min.js +0 -0
  298. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.d.ts +0 -0
  299. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.js +0 -0
  300. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.min.js +0 -0
  301. /package/{FeatureManagement → bin/FeatureManagement}/index.d.ts +0 -0
  302. /package/{FeatureManagement → bin/FeatureManagement}/index.js +0 -0
  303. /package/{FeatureManagement → bin/FeatureManagement}/index.min.js +0 -0
  304. /package/{FileContainer → bin/FileContainer}/FileContainer.d.ts +0 -0
  305. /package/{FileContainer → bin/FileContainer}/FileContainer.js +0 -0
  306. /package/{FileContainer → bin/FileContainer}/FileContainer.min.js +0 -0
  307. /package/{FileContainer → bin/FileContainer}/FileContainerClient.d.ts +0 -0
  308. /package/{FileContainer → bin/FileContainer}/FileContainerClient.js +0 -0
  309. /package/{FileContainer → bin/FileContainer}/FileContainerClient.min.js +0 -0
  310. /package/{FileContainer → bin/FileContainer}/index.d.ts +0 -0
  311. /package/{FileContainer → bin/FileContainer}/index.js +0 -0
  312. /package/{FileContainer → bin/FileContainer}/index.min.js +0 -0
  313. /package/{FormInput → bin/FormInput}/FormInput.d.ts +0 -0
  314. /package/{FormInput → bin/FormInput}/FormInput.js +0 -0
  315. /package/{FormInput → bin/FormInput}/FormInput.min.js +0 -0
  316. /package/{FormInput → bin/FormInput}/index.d.ts +0 -0
  317. /package/{FormInput → bin/FormInput}/index.js +0 -0
  318. /package/{FormInput → bin/FormInput}/index.min.js +0 -0
  319. /package/{Gallery → bin/Gallery}/Gallery.d.ts +0 -0
  320. /package/{Gallery → bin/Gallery}/Gallery.js +0 -0
  321. /package/{Gallery → bin/Gallery}/Gallery.min.js +0 -0
  322. /package/{Gallery → bin/Gallery}/GalleryClient.d.ts +0 -0
  323. /package/{Gallery → bin/Gallery}/GalleryClient.js +0 -0
  324. /package/{Gallery → bin/Gallery}/GalleryClient.min.js +0 -0
  325. /package/{Gallery → bin/Gallery}/index.d.ts +0 -0
  326. /package/{Gallery → bin/Gallery}/index.js +0 -0
  327. /package/{Gallery → bin/Gallery}/index.min.js +0 -0
  328. /package/{Git → bin/Git}/CodeEditorTypes.d.ts +0 -0
  329. /package/{Git → bin/Git}/CodeEditorTypes.js +0 -0
  330. /package/{Git → bin/Git}/CodeEditorTypes.min.js +0 -0
  331. /package/{Git → bin/Git}/Git.d.ts +0 -0
  332. /package/{Git → bin/Git}/Git.js +0 -0
  333. /package/{Git → bin/Git}/Git.min.js +0 -0
  334. /package/{Git → bin/Git}/GitClient.d.ts +0 -0
  335. /package/{Git → bin/Git}/GitClient.js +0 -0
  336. /package/{Git → bin/Git}/GitClient.min.js +0 -0
  337. /package/{Git → bin/Git}/GitServices.d.ts +0 -0
  338. /package/{Git → bin/Git}/GitServices.js +0 -0
  339. /package/{Git → bin/Git}/GitServices.min.js +0 -0
  340. /package/{Git → bin/Git}/index.d.ts +0 -0
  341. /package/{Git → bin/Git}/index.js +0 -0
  342. /package/{Git → bin/Git}/index.min.js +0 -0
  343. /package/{Graph → bin/Graph}/Graph.d.ts +0 -0
  344. /package/{Graph → bin/Graph}/Graph.js +0 -0
  345. /package/{Graph → bin/Graph}/Graph.min.js +0 -0
  346. /package/{Graph → bin/Graph}/GraphClient.d.ts +0 -0
  347. /package/{Graph → bin/Graph}/GraphClient.js +0 -0
  348. /package/{Graph → bin/Graph}/GraphClient.min.js +0 -0
  349. /package/{Graph → bin/Graph}/index.d.ts +0 -0
  350. /package/{Graph → bin/Graph}/index.js +0 -0
  351. /package/{Graph → bin/Graph}/index.min.js +0 -0
  352. /package/{Identities → bin/Identities}/Identities.d.ts +0 -0
  353. /package/{Identities → bin/Identities}/Identities.js +0 -0
  354. /package/{Identities → bin/Identities}/Identities.min.js +0 -0
  355. /package/{Identities → bin/Identities}/IdentityProvider.d.ts +0 -0
  356. /package/{Identities → bin/Identities}/IdentityProvider.js +0 -0
  357. /package/{Identities → bin/Identities}/IdentityProvider.min.js +0 -0
  358. /package/{Identities → bin/Identities}/IdentityService.d.ts +0 -0
  359. /package/{Identities → bin/Identities}/IdentityService.js +0 -0
  360. /package/{Identities → bin/Identities}/IdentityService.min.js +0 -0
  361. /package/{Identities → bin/Identities}/index.d.ts +0 -0
  362. /package/{Identities → bin/Identities}/index.js +0 -0
  363. /package/{Identities → bin/Identities}/index.min.js +0 -0
  364. /package/{Locations → bin/Locations}/Locations.d.ts +0 -0
  365. /package/{Locations → bin/Locations}/Locations.js +0 -0
  366. /package/{Locations → bin/Locations}/Locations.min.js +0 -0
  367. /package/{Locations → bin/Locations}/LocationsClient.d.ts +0 -0
  368. /package/{Locations → bin/Locations}/LocationsClient.js +0 -0
  369. /package/{Locations → bin/Locations}/LocationsClient.min.js +0 -0
  370. /package/{Locations → bin/Locations}/index.d.ts +0 -0
  371. /package/{Locations → bin/Locations}/index.js +0 -0
  372. /package/{Locations → bin/Locations}/index.min.js +0 -0
  373. /package/{Management → bin/Management}/Management.d.ts +0 -0
  374. /package/{Management → bin/Management}/Management.js +0 -0
  375. /package/{Management → bin/Management}/Management.min.js +0 -0
  376. /package/{Management → bin/Management}/ManagementClient.d.ts +0 -0
  377. /package/{Management → bin/Management}/ManagementClient.js +0 -0
  378. /package/{Management → bin/Management}/ManagementClient.min.js +0 -0
  379. /package/{Notification → bin/Notification}/Notification.d.ts +0 -0
  380. /package/{Notification → bin/Notification}/Notification.js +0 -0
  381. /package/{Notification → bin/Notification}/Notification.min.js +0 -0
  382. /package/{Notification → bin/Notification}/NotificationClient.d.ts +0 -0
  383. /package/{Notification → bin/Notification}/NotificationClient.js +0 -0
  384. /package/{Notification → bin/Notification}/NotificationClient.min.js +0 -0
  385. /package/{Notification → bin/Notification}/index.d.ts +0 -0
  386. /package/{Notification → bin/Notification}/index.js +0 -0
  387. /package/{Notification → bin/Notification}/index.min.js +0 -0
  388. /package/{Operations → bin/Operations}/Operations.d.ts +0 -0
  389. /package/{Operations → bin/Operations}/Operations.js +0 -0
  390. /package/{Operations → bin/Operations}/Operations.min.js +0 -0
  391. /package/{Operations → bin/Operations}/OperationsClient.d.ts +0 -0
  392. /package/{Operations → bin/Operations}/OperationsClient.js +0 -0
  393. /package/{Operations → bin/Operations}/OperationsClient.min.js +0 -0
  394. /package/{Operations → bin/Operations}/index.d.ts +0 -0
  395. /package/{Operations → bin/Operations}/index.js +0 -0
  396. /package/{Operations → bin/Operations}/index.min.js +0 -0
  397. /package/{Pipelines → bin/Pipelines}/Pipelines.d.ts +0 -0
  398. /package/{Pipelines → bin/Pipelines}/Pipelines.js +0 -0
  399. /package/{Pipelines → bin/Pipelines}/Pipelines.min.js +0 -0
  400. /package/{Pipelines → bin/Pipelines}/PipelinesClient.d.ts +0 -0
  401. /package/{Pipelines → bin/Pipelines}/PipelinesClient.js +0 -0
  402. /package/{Pipelines → bin/Pipelines}/PipelinesClient.min.js +0 -0
  403. /package/{Policy → bin/Policy}/Policy.d.ts +0 -0
  404. /package/{Policy → bin/Policy}/Policy.js +0 -0
  405. /package/{Policy → bin/Policy}/Policy.min.js +0 -0
  406. /package/{Policy → bin/Policy}/PolicyClient.d.ts +0 -0
  407. /package/{Policy → bin/Policy}/PolicyClient.js +0 -0
  408. /package/{Policy → bin/Policy}/PolicyClient.min.js +0 -0
  409. /package/{Policy → bin/Policy}/index.d.ts +0 -0
  410. /package/{Policy → bin/Policy}/index.js +0 -0
  411. /package/{Policy → bin/Policy}/index.min.js +0 -0
  412. /package/{Profile → bin/Profile}/Profile.d.ts +0 -0
  413. /package/{Profile → bin/Profile}/Profile.js +0 -0
  414. /package/{Profile → bin/Profile}/Profile.min.js +0 -0
  415. /package/{Profile → bin/Profile}/ProfileClient.d.ts +0 -0
  416. /package/{Profile → bin/Profile}/ProfileClient.js +0 -0
  417. /package/{Profile → bin/Profile}/ProfileClient.min.js +0 -0
  418. /package/{Profile → bin/Profile}/index.d.ts +0 -0
  419. /package/{Profile → bin/Profile}/index.js +0 -0
  420. /package/{Profile → bin/Profile}/index.min.js +0 -0
  421. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
  422. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.js +0 -0
  423. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
  424. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
  425. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
  426. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
  427. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.d.ts +0 -0
  428. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.js +0 -0
  429. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.min.js +0 -0
  430. /package/{Release → bin/Release}/Release.d.ts +0 -0
  431. /package/{Release → bin/Release}/Release.js +0 -0
  432. /package/{Release → bin/Release}/Release.min.js +0 -0
  433. /package/{Release → bin/Release}/ReleaseClient.d.ts +0 -0
  434. /package/{Release → bin/Release}/ReleaseClient.js +0 -0
  435. /package/{Release → bin/Release}/ReleaseClient.min.js +0 -0
  436. /package/{Release → bin/Release}/index.d.ts +0 -0
  437. /package/{Release → bin/Release}/index.js +0 -0
  438. /package/{Release → bin/Release}/index.min.js +0 -0
  439. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.d.ts +0 -0
  440. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.js +0 -0
  441. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.min.js +0 -0
  442. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.d.ts +0 -0
  443. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.js +0 -0
  444. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.min.js +0 -0
  445. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.d.ts +0 -0
  446. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.js +0 -0
  447. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
  448. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.d.ts +0 -0
  449. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.js +0 -0
  450. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.min.js +0 -0
  451. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.d.ts +0 -0
  452. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.js +0 -0
  453. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.min.js +0 -0
  454. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.d.ts +0 -0
  455. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.js +0 -0
  456. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.min.js +0 -0
  457. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.d.ts +0 -0
  458. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.js +0 -0
  459. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.min.js +0 -0
  460. /package/{ServiceHooks → bin/ServiceHooks}/index.d.ts +0 -0
  461. /package/{ServiceHooks → bin/ServiceHooks}/index.js +0 -0
  462. /package/{ServiceHooks → bin/ServiceHooks}/index.min.js +0 -0
  463. /package/{TaskAgent → bin/TaskAgent}/TaskAgent.js +0 -0
  464. /package/{TaskAgent → bin/TaskAgent}/TaskAgent.min.js +0 -0
  465. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.d.ts +0 -0
  466. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.js +0 -0
  467. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.min.js +0 -0
  468. /package/{TaskAgent → bin/TaskAgent}/index.d.ts +0 -0
  469. /package/{TaskAgent → bin/TaskAgent}/index.js +0 -0
  470. /package/{TaskAgent → bin/TaskAgent}/index.min.js +0 -0
  471. /package/{Test → bin/Test}/Test.js +0 -0
  472. /package/{Test → bin/Test}/Test.min.js +0 -0
  473. /package/{Test → bin/Test}/TestClient.d.ts +0 -0
  474. /package/{Test → bin/Test}/TestClient.js +0 -0
  475. /package/{Test → bin/Test}/TestClient.min.js +0 -0
  476. /package/{Test → bin/Test}/index.d.ts +0 -0
  477. /package/{Test → bin/Test}/index.js +0 -0
  478. /package/{Test → bin/Test}/index.min.js +0 -0
  479. /package/{TestPlan → bin/TestPlan}/TestPlan.js +0 -0
  480. /package/{TestPlan → bin/TestPlan}/TestPlan.min.js +0 -0
  481. /package/{TestPlan → bin/TestPlan}/TestPlanClient.d.ts +0 -0
  482. /package/{TestPlan → bin/TestPlan}/TestPlanClient.js +0 -0
  483. /package/{TestPlan → bin/TestPlan}/TestPlanClient.min.js +0 -0
  484. /package/{TestPlan → bin/TestPlan}/index.d.ts +0 -0
  485. /package/{TestPlan → bin/TestPlan}/index.js +0 -0
  486. /package/{TestPlan → bin/TestPlan}/index.min.js +0 -0
  487. /package/{TestResults → bin/TestResults}/TestResults.d.ts +0 -0
  488. /package/{TestResults → bin/TestResults}/TestResults.js +0 -0
  489. /package/{TestResults → bin/TestResults}/TestResults.min.js +0 -0
  490. /package/{TestResults → bin/TestResults}/index.d.ts +0 -0
  491. /package/{TestResults → bin/TestResults}/index.js +0 -0
  492. /package/{TestResults → bin/TestResults}/index.min.js +0 -0
  493. /package/{Tfvc → bin/Tfvc}/Tfvc.d.ts +0 -0
  494. /package/{Tfvc → bin/Tfvc}/Tfvc.js +0 -0
  495. /package/{Tfvc → bin/Tfvc}/Tfvc.min.js +0 -0
  496. /package/{Tfvc → bin/Tfvc}/TfvcClient.d.ts +0 -0
  497. /package/{Tfvc → bin/Tfvc}/TfvcClient.js +0 -0
  498. /package/{Tfvc → bin/Tfvc}/TfvcClient.min.js +0 -0
  499. /package/{Tfvc → bin/Tfvc}/index.d.ts +0 -0
  500. /package/{Tfvc → bin/Tfvc}/index.js +0 -0
  501. /package/{Tfvc → bin/Tfvc}/index.min.js +0 -0
  502. /package/{WebApi → bin/WebApi}/WebApi.d.ts +0 -0
  503. /package/{WebApi → bin/WebApi}/WebApi.js +0 -0
  504. /package/{WebApi → bin/WebApi}/WebApi.min.js +0 -0
  505. /package/{WebApi → bin/WebApi}/index.d.ts +0 -0
  506. /package/{WebApi → bin/WebApi}/index.js +0 -0
  507. /package/{WebApi → bin/WebApi}/index.min.js +0 -0
  508. /package/{Wiki → bin/Wiki}/Wiki.d.ts +0 -0
  509. /package/{Wiki → bin/Wiki}/Wiki.js +0 -0
  510. /package/{Wiki → bin/Wiki}/Wiki.min.js +0 -0
  511. /package/{Wiki → bin/Wiki}/WikiClient.d.ts +0 -0
  512. /package/{Wiki → bin/Wiki}/WikiClient.js +0 -0
  513. /package/{Wiki → bin/Wiki}/WikiClient.min.js +0 -0
  514. /package/{Wiki → bin/Wiki}/index.d.ts +0 -0
  515. /package/{Wiki → bin/Wiki}/index.js +0 -0
  516. /package/{Wiki → bin/Wiki}/index.min.js +0 -0
  517. /package/{Work → bin/Work}/Work.d.ts +0 -0
  518. /package/{Work → bin/Work}/Work.js +0 -0
  519. /package/{Work → bin/Work}/Work.min.js +0 -0
  520. /package/{Work → bin/Work}/WorkClient.d.ts +0 -0
  521. /package/{Work → bin/Work}/WorkClient.js +0 -0
  522. /package/{Work → bin/Work}/WorkClient.min.js +0 -0
  523. /package/{Work → bin/Work}/index.d.ts +0 -0
  524. /package/{Work → bin/Work}/index.js +0 -0
  525. /package/{Work → bin/Work}/index.min.js +0 -0
  526. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.d.ts +0 -0
  527. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.js +0 -0
  528. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.min.js +0 -0
  529. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
  530. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.js +0 -0
  531. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
  532. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
  533. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.js +0 -0
  534. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
  535. /package/{WorkItemTracking → bin/WorkItemTracking}/index.d.ts +0 -0
  536. /package/{WorkItemTracking → bin/WorkItemTracking}/index.js +0 -0
  537. /package/{WorkItemTracking → bin/WorkItemTracking}/index.min.js +0 -0
  538. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
  539. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
  540. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
  541. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
  542. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
  543. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
  544. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.d.ts +0 -0
  545. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.js +0 -0
  546. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.min.js +0 -0
  547. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
  548. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
  549. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
  550. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
  551. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
  552. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
  553. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
  554. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.js +0 -0
  555. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
  556. /package/{index.d.ts → bin/index.d.ts} +0 -0
  557. /package/{index.js → bin/index.js} +0 -0
  558. /package/{index.min.js → bin/index.min.js} +0 -0
@@ -0,0 +1,1175 @@
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 WorkItemTrackingProcessDefinitions from "../WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions";
11
+
12
+ export class WorkItemTrackingProcessDefinitionsRestClient extends RestClientBase {
13
+ constructor(options: IVssRestClientOptions) {
14
+ super(options);
15
+ }
16
+
17
+ public static readonly RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
18
+
19
+ /**
20
+ * Creates a single behavior in the given process.
21
+ *
22
+ * @param behavior -
23
+ * @param processId - The ID of the process
24
+ */
25
+ public async createBehavior(
26
+ behavior: WorkItemTrackingProcessDefinitions.BehaviorCreateModel,
27
+ processId: string
28
+ ): Promise<WorkItemTrackingProcessDefinitions.BehaviorModel> {
29
+
30
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.BehaviorModel>({
31
+ apiVersion: "7.2-preview.1",
32
+ method: "POST",
33
+ routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
34
+ routeValues: {
35
+ processId: processId
36
+ },
37
+ body: behavior
38
+ });
39
+ }
40
+
41
+ /**
42
+ * Removes a behavior in the process.
43
+ *
44
+ * @param processId - The ID of the process
45
+ * @param behaviorId - The ID of the behavior
46
+ */
47
+ public async deleteBehavior(
48
+ processId: string,
49
+ behaviorId: string
50
+ ): Promise<void> {
51
+
52
+ return this.beginRequest<void>({
53
+ apiVersion: "7.2-preview.1",
54
+ method: "DELETE",
55
+ routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
56
+ routeValues: {
57
+ processId: processId,
58
+ behaviorId: behaviorId
59
+ }
60
+ });
61
+ }
62
+
63
+ /**
64
+ * Returns a single behavior in the process.
65
+ *
66
+ * @param processId - The ID of the process
67
+ * @param behaviorId - The ID of the behavior
68
+ */
69
+ public async getBehavior(
70
+ processId: string,
71
+ behaviorId: string
72
+ ): Promise<WorkItemTrackingProcessDefinitions.BehaviorModel> {
73
+
74
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.BehaviorModel>({
75
+ apiVersion: "7.2-preview.1",
76
+ routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
77
+ routeValues: {
78
+ processId: processId,
79
+ behaviorId: behaviorId
80
+ }
81
+ });
82
+ }
83
+
84
+ /**
85
+ * Returns a list of all behaviors in the process.
86
+ *
87
+ * @param processId - The ID of the process
88
+ */
89
+ public async getBehaviors(
90
+ processId: string
91
+ ): Promise<WorkItemTrackingProcessDefinitions.BehaviorModel[]> {
92
+
93
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.BehaviorModel[]>({
94
+ apiVersion: "7.2-preview.1",
95
+ routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
96
+ routeValues: {
97
+ processId: processId
98
+ }
99
+ });
100
+ }
101
+
102
+ /**
103
+ * Replaces a behavior in the process.
104
+ *
105
+ * @param behaviorData -
106
+ * @param processId - The ID of the process
107
+ * @param behaviorId - The ID of the behavior
108
+ */
109
+ public async replaceBehavior(
110
+ behaviorData: WorkItemTrackingProcessDefinitions.BehaviorReplaceModel,
111
+ processId: string,
112
+ behaviorId: string
113
+ ): Promise<WorkItemTrackingProcessDefinitions.BehaviorModel> {
114
+
115
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.BehaviorModel>({
116
+ apiVersion: "7.2-preview.1",
117
+ method: "PUT",
118
+ routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
119
+ routeValues: {
120
+ processId: processId,
121
+ behaviorId: behaviorId
122
+ },
123
+ body: behaviorData
124
+ });
125
+ }
126
+
127
+ /**
128
+ * Creates a control in a group
129
+ *
130
+ * @param control - The control
131
+ * @param processId - The ID of the process
132
+ * @param witRefName - The reference name of the work item type
133
+ * @param groupId - The ID of the group to add the control to
134
+ */
135
+ public async addControlToGroup(
136
+ control: WorkItemTrackingProcessDefinitions.Control,
137
+ processId: string,
138
+ witRefName: string,
139
+ groupId: string
140
+ ): Promise<WorkItemTrackingProcessDefinitions.Control> {
141
+
142
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Control>({
143
+ apiVersion: "7.2-preview.1",
144
+ method: "POST",
145
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
146
+ routeValues: {
147
+ processId: processId,
148
+ witRefName: witRefName,
149
+ groupId: groupId
150
+ },
151
+ body: control
152
+ });
153
+ }
154
+
155
+ /**
156
+ * Updates a control on the work item form
157
+ *
158
+ * @param control - The updated control
159
+ * @param processId - The ID of the process
160
+ * @param witRefName - The reference name of the work item type
161
+ * @param groupId - The ID of the group
162
+ * @param controlId - The ID of the control
163
+ */
164
+ public async editControl(
165
+ control: WorkItemTrackingProcessDefinitions.Control,
166
+ processId: string,
167
+ witRefName: string,
168
+ groupId: string,
169
+ controlId: string
170
+ ): Promise<WorkItemTrackingProcessDefinitions.Control> {
171
+
172
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Control>({
173
+ apiVersion: "7.2-preview.1",
174
+ method: "PATCH",
175
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
176
+ routeValues: {
177
+ processId: processId,
178
+ witRefName: witRefName,
179
+ groupId: groupId,
180
+ controlId: controlId
181
+ },
182
+ body: control
183
+ });
184
+ }
185
+
186
+ /**
187
+ * Removes a control from the work item form
188
+ *
189
+ * @param processId - The ID of the process
190
+ * @param witRefName - The reference name of the work item type
191
+ * @param groupId - The ID of the group
192
+ * @param controlId - The ID of the control to remove
193
+ */
194
+ public async removeControlFromGroup(
195
+ processId: string,
196
+ witRefName: string,
197
+ groupId: string,
198
+ controlId: string
199
+ ): Promise<void> {
200
+
201
+ return this.beginRequest<void>({
202
+ apiVersion: "7.2-preview.1",
203
+ method: "DELETE",
204
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
205
+ routeValues: {
206
+ processId: processId,
207
+ witRefName: witRefName,
208
+ groupId: groupId,
209
+ controlId: controlId
210
+ }
211
+ });
212
+ }
213
+
214
+ /**
215
+ * Moves a control to a new group
216
+ *
217
+ * @param control - The control
218
+ * @param processId - The ID of the process
219
+ * @param witRefName - The reference name of the work item type
220
+ * @param groupId - The ID of the group to move the control to
221
+ * @param controlId - The id of the control
222
+ * @param removeFromGroupId - The group to remove the control from
223
+ */
224
+ public async setControlInGroup(
225
+ control: WorkItemTrackingProcessDefinitions.Control,
226
+ processId: string,
227
+ witRefName: string,
228
+ groupId: string,
229
+ controlId: string,
230
+ removeFromGroupId?: string
231
+ ): Promise<WorkItemTrackingProcessDefinitions.Control> {
232
+
233
+ const queryValues: any = {
234
+ removeFromGroupId: removeFromGroupId
235
+ };
236
+
237
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Control>({
238
+ apiVersion: "7.2-preview.1",
239
+ method: "PUT",
240
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
241
+ routeValues: {
242
+ processId: processId,
243
+ witRefName: witRefName,
244
+ groupId: groupId,
245
+ controlId: controlId
246
+ },
247
+ queryParams: queryValues,
248
+ body: control
249
+ });
250
+ }
251
+
252
+ /**
253
+ * Creates a single field in the process.
254
+ *
255
+ * @param field -
256
+ * @param processId - The ID of the process
257
+ */
258
+ public async createField(
259
+ field: WorkItemTrackingProcessDefinitions.FieldModel,
260
+ processId: string
261
+ ): Promise<WorkItemTrackingProcessDefinitions.FieldModel> {
262
+
263
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.FieldModel>({
264
+ apiVersion: "7.2-preview.1",
265
+ method: "POST",
266
+ routeTemplate: "_apis/work/processDefinitions/{processId}/fields/{field}",
267
+ routeValues: {
268
+ processId: processId
269
+ },
270
+ body: field
271
+ });
272
+ }
273
+
274
+ /**
275
+ * Updates a given field in the process.
276
+ *
277
+ * @param field -
278
+ * @param processId - The ID of the process
279
+ */
280
+ public async updateField(
281
+ field: WorkItemTrackingProcessDefinitions.FieldUpdate,
282
+ processId: string
283
+ ): Promise<WorkItemTrackingProcessDefinitions.FieldModel> {
284
+
285
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.FieldModel>({
286
+ apiVersion: "7.2-preview.1",
287
+ method: "PATCH",
288
+ routeTemplate: "_apis/work/processDefinitions/{processId}/fields/{field}",
289
+ routeValues: {
290
+ processId: processId
291
+ },
292
+ body: field
293
+ });
294
+ }
295
+
296
+ /**
297
+ * Adds a group to the work item form
298
+ *
299
+ * @param group - The group
300
+ * @param processId - The ID of the process
301
+ * @param witRefName - The reference name of the work item type
302
+ * @param pageId - The ID of the page to add the group to
303
+ * @param sectionId - The ID of the section to add the group to
304
+ */
305
+ public async addGroup(
306
+ group: WorkItemTrackingProcessDefinitions.Group,
307
+ processId: string,
308
+ witRefName: string,
309
+ pageId: string,
310
+ sectionId: string
311
+ ): Promise<WorkItemTrackingProcessDefinitions.Group> {
312
+
313
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Group>({
314
+ apiVersion: "7.2-preview.1",
315
+ method: "POST",
316
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
317
+ routeValues: {
318
+ processId: processId,
319
+ witRefName: witRefName,
320
+ pageId: pageId,
321
+ sectionId: sectionId
322
+ },
323
+ body: group
324
+ });
325
+ }
326
+
327
+ /**
328
+ * Updates a group in the work item form
329
+ *
330
+ * @param group - The updated group
331
+ * @param processId - The ID of the process
332
+ * @param witRefName - The reference name of the work item type
333
+ * @param pageId - The ID of the page the group is in
334
+ * @param sectionId - The ID of the section the group is in
335
+ * @param groupId - The ID of the group
336
+ */
337
+ public async editGroup(
338
+ group: WorkItemTrackingProcessDefinitions.Group,
339
+ processId: string,
340
+ witRefName: string,
341
+ pageId: string,
342
+ sectionId: string,
343
+ groupId: string
344
+ ): Promise<WorkItemTrackingProcessDefinitions.Group> {
345
+
346
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Group>({
347
+ apiVersion: "7.2-preview.1",
348
+ method: "PATCH",
349
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
350
+ routeValues: {
351
+ processId: processId,
352
+ witRefName: witRefName,
353
+ pageId: pageId,
354
+ sectionId: sectionId,
355
+ groupId: groupId
356
+ },
357
+ body: group
358
+ });
359
+ }
360
+
361
+ /**
362
+ * Removes a group from the work item form
363
+ *
364
+ * @param processId - The ID of the process
365
+ * @param witRefName - The reference name of the work item type
366
+ * @param pageId - The ID of the page the group is in
367
+ * @param sectionId - The ID of the section to the group is in
368
+ * @param groupId - The ID of the group
369
+ */
370
+ public async removeGroup(
371
+ processId: string,
372
+ witRefName: string,
373
+ pageId: string,
374
+ sectionId: string,
375
+ groupId: string
376
+ ): Promise<void> {
377
+
378
+ return this.beginRequest<void>({
379
+ apiVersion: "7.2-preview.1",
380
+ method: "DELETE",
381
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
382
+ routeValues: {
383
+ processId: processId,
384
+ witRefName: witRefName,
385
+ pageId: pageId,
386
+ sectionId: sectionId,
387
+ groupId: groupId
388
+ }
389
+ });
390
+ }
391
+
392
+ /**
393
+ * Moves a group to a different page and section
394
+ *
395
+ * @param group - The updated group
396
+ * @param processId - The ID of the process
397
+ * @param witRefName - The reference name of the work item type
398
+ * @param pageId - The ID of the page the group is in
399
+ * @param sectionId - The ID of the section the group is in
400
+ * @param groupId - The ID of the group
401
+ * @param removeFromPageId - ID of the page to remove the group from
402
+ * @param removeFromSectionId - ID of the section to remove the group from
403
+ */
404
+ public async setGroupInPage(
405
+ group: WorkItemTrackingProcessDefinitions.Group,
406
+ processId: string,
407
+ witRefName: string,
408
+ pageId: string,
409
+ sectionId: string,
410
+ groupId: string,
411
+ removeFromPageId: string,
412
+ removeFromSectionId: string
413
+ ): Promise<WorkItemTrackingProcessDefinitions.Group> {
414
+
415
+ const queryValues: any = {
416
+ removeFromPageId: removeFromPageId,
417
+ removeFromSectionId: removeFromSectionId
418
+ };
419
+
420
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Group>({
421
+ apiVersion: "7.2-preview.1",
422
+ method: "PUT",
423
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
424
+ routeValues: {
425
+ processId: processId,
426
+ witRefName: witRefName,
427
+ pageId: pageId,
428
+ sectionId: sectionId,
429
+ groupId: groupId
430
+ },
431
+ queryParams: queryValues,
432
+ body: group
433
+ });
434
+ }
435
+
436
+ /**
437
+ * Moves a group to a different section
438
+ *
439
+ * @param group - The updated group
440
+ * @param processId - The ID of the process
441
+ * @param witRefName - The reference name of the work item type
442
+ * @param pageId - The ID of the page the group is in
443
+ * @param sectionId - The ID of the section the group is in
444
+ * @param groupId - The ID of the group
445
+ * @param removeFromSectionId - ID of the section to remove the group from
446
+ */
447
+ public async setGroupInSection(
448
+ group: WorkItemTrackingProcessDefinitions.Group,
449
+ processId: string,
450
+ witRefName: string,
451
+ pageId: string,
452
+ sectionId: string,
453
+ groupId: string,
454
+ removeFromSectionId: string
455
+ ): Promise<WorkItemTrackingProcessDefinitions.Group> {
456
+
457
+ const queryValues: any = {
458
+ removeFromSectionId: removeFromSectionId
459
+ };
460
+
461
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Group>({
462
+ apiVersion: "7.2-preview.1",
463
+ method: "PUT",
464
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
465
+ routeValues: {
466
+ processId: processId,
467
+ witRefName: witRefName,
468
+ pageId: pageId,
469
+ sectionId: sectionId,
470
+ groupId: groupId
471
+ },
472
+ queryParams: queryValues,
473
+ body: group
474
+ });
475
+ }
476
+
477
+ /**
478
+ * Gets the form layout
479
+ *
480
+ * @param processId - The ID of the process
481
+ * @param witRefName - The reference name of the work item type
482
+ */
483
+ public async getFormLayout(
484
+ processId: string,
485
+ witRefName: string
486
+ ): Promise<WorkItemTrackingProcessDefinitions.FormLayout> {
487
+
488
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.FormLayout>({
489
+ apiVersion: "7.2-preview.1",
490
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout",
491
+ routeValues: {
492
+ processId: processId,
493
+ witRefName: witRefName
494
+ }
495
+ });
496
+ }
497
+
498
+ /**
499
+ * Returns meta data of the picklist.
500
+ *
501
+ */
502
+ public async getListsMetadata(
503
+ ): Promise<WorkItemTrackingProcessDefinitions.PickListMetadataModel[]> {
504
+
505
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.PickListMetadataModel[]>({
506
+ apiVersion: "7.2-preview.1",
507
+ routeTemplate: "_apis/work/processDefinitions/lists"
508
+ });
509
+ }
510
+
511
+ /**
512
+ * Creates a picklist.
513
+ *
514
+ * @param picklist -
515
+ */
516
+ public async createList(
517
+ picklist: WorkItemTrackingProcessDefinitions.PickListModel
518
+ ): Promise<WorkItemTrackingProcessDefinitions.PickListModel> {
519
+
520
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.PickListModel>({
521
+ apiVersion: "7.2-preview.1",
522
+ method: "POST",
523
+ routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
524
+ body: picklist
525
+ });
526
+ }
527
+
528
+ /**
529
+ * Removes a picklist.
530
+ *
531
+ * @param listId - The ID of the list
532
+ */
533
+ public async deleteList(
534
+ listId: string
535
+ ): Promise<void> {
536
+
537
+ return this.beginRequest<void>({
538
+ apiVersion: "7.2-preview.1",
539
+ method: "DELETE",
540
+ routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
541
+ routeValues: {
542
+ listId: listId
543
+ }
544
+ });
545
+ }
546
+
547
+ /**
548
+ * Returns a picklist.
549
+ *
550
+ * @param listId - The ID of the list
551
+ */
552
+ public async getList(
553
+ listId: string
554
+ ): Promise<WorkItemTrackingProcessDefinitions.PickListModel> {
555
+
556
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.PickListModel>({
557
+ apiVersion: "7.2-preview.1",
558
+ routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
559
+ routeValues: {
560
+ listId: listId
561
+ }
562
+ });
563
+ }
564
+
565
+ /**
566
+ * Updates a list.
567
+ *
568
+ * @param picklist -
569
+ * @param listId - The ID of the list
570
+ */
571
+ public async updateList(
572
+ picklist: WorkItemTrackingProcessDefinitions.PickListModel,
573
+ listId: string
574
+ ): Promise<WorkItemTrackingProcessDefinitions.PickListModel> {
575
+
576
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.PickListModel>({
577
+ apiVersion: "7.2-preview.1",
578
+ method: "PUT",
579
+ routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
580
+ routeValues: {
581
+ listId: listId
582
+ },
583
+ body: picklist
584
+ });
585
+ }
586
+
587
+ /**
588
+ * Adds a page to the work item form
589
+ *
590
+ * @param page - The page
591
+ * @param processId - The ID of the process
592
+ * @param witRefName - The reference name of the work item type
593
+ */
594
+ public async addPage(
595
+ page: WorkItemTrackingProcessDefinitions.Page,
596
+ processId: string,
597
+ witRefName: string
598
+ ): Promise<WorkItemTrackingProcessDefinitions.Page> {
599
+
600
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Page>({
601
+ apiVersion: "7.2-preview.1",
602
+ method: "POST",
603
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
604
+ routeValues: {
605
+ processId: processId,
606
+ witRefName: witRefName
607
+ },
608
+ body: page
609
+ });
610
+ }
611
+
612
+ /**
613
+ * Updates a page on the work item form
614
+ *
615
+ * @param page - The page
616
+ * @param processId - The ID of the process
617
+ * @param witRefName - The reference name of the work item type
618
+ */
619
+ public async editPage(
620
+ page: WorkItemTrackingProcessDefinitions.Page,
621
+ processId: string,
622
+ witRefName: string
623
+ ): Promise<WorkItemTrackingProcessDefinitions.Page> {
624
+
625
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.Page>({
626
+ apiVersion: "7.2-preview.1",
627
+ method: "PATCH",
628
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
629
+ routeValues: {
630
+ processId: processId,
631
+ witRefName: witRefName
632
+ },
633
+ body: page
634
+ });
635
+ }
636
+
637
+ /**
638
+ * Removes a page from the work item form
639
+ *
640
+ * @param processId - The ID of the process
641
+ * @param witRefName - The reference name of the work item type
642
+ * @param pageId - The ID of the page
643
+ */
644
+ public async removePage(
645
+ processId: string,
646
+ witRefName: string,
647
+ pageId: string
648
+ ): Promise<void> {
649
+
650
+ return this.beginRequest<void>({
651
+ apiVersion: "7.2-preview.1",
652
+ method: "DELETE",
653
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
654
+ routeValues: {
655
+ processId: processId,
656
+ witRefName: witRefName,
657
+ pageId: pageId
658
+ }
659
+ });
660
+ }
661
+
662
+ /**
663
+ * Creates a state definition in the work item type of the process.
664
+ *
665
+ * @param stateModel -
666
+ * @param processId - The ID of the process
667
+ * @param witRefName - The reference name of the work item type
668
+ */
669
+ public async createStateDefinition(
670
+ stateModel: WorkItemTrackingProcessDefinitions.WorkItemStateInputModel,
671
+ processId: string,
672
+ witRefName: string
673
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel> {
674
+
675
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel>({
676
+ apiVersion: "7.2-preview.1",
677
+ method: "POST",
678
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
679
+ routeValues: {
680
+ processId: processId,
681
+ witRefName: witRefName
682
+ },
683
+ body: stateModel
684
+ });
685
+ }
686
+
687
+ /**
688
+ * Removes a state definition in the work item type of the process.
689
+ *
690
+ * @param processId - ID of the process
691
+ * @param witRefName - The reference name of the work item type
692
+ * @param stateId - ID of the state
693
+ */
694
+ public async deleteStateDefinition(
695
+ processId: string,
696
+ witRefName: string,
697
+ stateId: string
698
+ ): Promise<void> {
699
+
700
+ return this.beginRequest<void>({
701
+ apiVersion: "7.2-preview.1",
702
+ method: "DELETE",
703
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
704
+ routeValues: {
705
+ processId: processId,
706
+ witRefName: witRefName,
707
+ stateId: stateId
708
+ }
709
+ });
710
+ }
711
+
712
+ /**
713
+ * Returns a state definition in the work item type of the process.
714
+ *
715
+ * @param processId - The ID of the process
716
+ * @param witRefName - The reference name of the work item type
717
+ * @param stateId - The ID of the state
718
+ */
719
+ public async getStateDefinition(
720
+ processId: string,
721
+ witRefName: string,
722
+ stateId: string
723
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel> {
724
+
725
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel>({
726
+ apiVersion: "7.2-preview.1",
727
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
728
+ routeValues: {
729
+ processId: processId,
730
+ witRefName: witRefName,
731
+ stateId: stateId
732
+ }
733
+ });
734
+ }
735
+
736
+ /**
737
+ * Returns a list of all state definitions in the work item type of the process.
738
+ *
739
+ * @param processId - The ID of the process
740
+ * @param witRefName - The reference name of the work item type
741
+ */
742
+ public async getStateDefinitions(
743
+ processId: string,
744
+ witRefName: string
745
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel[]> {
746
+
747
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel[]>({
748
+ apiVersion: "7.2-preview.1",
749
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
750
+ routeValues: {
751
+ processId: processId,
752
+ witRefName: witRefName
753
+ }
754
+ });
755
+ }
756
+
757
+ /**
758
+ * Hides a state definition in the work item type of the process.
759
+ *
760
+ * @param hideStateModel -
761
+ * @param processId - The ID of the process
762
+ * @param witRefName - The reference name of the work item type
763
+ * @param stateId - The ID of the state
764
+ */
765
+ public async hideStateDefinition(
766
+ hideStateModel: WorkItemTrackingProcessDefinitions.HideStateModel,
767
+ processId: string,
768
+ witRefName: string,
769
+ stateId: string
770
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel> {
771
+
772
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel>({
773
+ apiVersion: "7.2-preview.1",
774
+ method: "PUT",
775
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
776
+ routeValues: {
777
+ processId: processId,
778
+ witRefName: witRefName,
779
+ stateId: stateId
780
+ },
781
+ body: hideStateModel
782
+ });
783
+ }
784
+
785
+ /**
786
+ * Updates a given state definition in the work item type of the process.
787
+ *
788
+ * @param stateModel -
789
+ * @param processId - ID of the process
790
+ * @param witRefName - The reference name of the work item type
791
+ * @param stateId - ID of the state
792
+ */
793
+ public async updateStateDefinition(
794
+ stateModel: WorkItemTrackingProcessDefinitions.WorkItemStateInputModel,
795
+ processId: string,
796
+ witRefName: string,
797
+ stateId: string
798
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel> {
799
+
800
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemStateResultModel>({
801
+ apiVersion: "7.2-preview.1",
802
+ method: "PATCH",
803
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
804
+ routeValues: {
805
+ processId: processId,
806
+ witRefName: witRefName,
807
+ stateId: stateId
808
+ },
809
+ body: stateModel
810
+ });
811
+ }
812
+
813
+ /**
814
+ * Adds a behavior to the work item type of the process.
815
+ *
816
+ * @param behavior -
817
+ * @param processId - The ID of the process
818
+ * @param witRefNameForBehaviors - Work item type reference name for the behavior
819
+ */
820
+ public async addBehaviorToWorkItemType(
821
+ behavior: WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior,
822
+ processId: string,
823
+ witRefNameForBehaviors: string
824
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior> {
825
+
826
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior>({
827
+ apiVersion: "7.2-preview.1",
828
+ method: "POST",
829
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
830
+ routeValues: {
831
+ processId: processId,
832
+ witRefNameForBehaviors: witRefNameForBehaviors
833
+ },
834
+ body: behavior
835
+ });
836
+ }
837
+
838
+ /**
839
+ * Returns a behavior for the work item type of the process.
840
+ *
841
+ * @param processId - The ID of the process
842
+ * @param witRefNameForBehaviors - Work item type reference name for the behavior
843
+ * @param behaviorRefName - The reference name of the behavior
844
+ */
845
+ public async getBehaviorForWorkItemType(
846
+ processId: string,
847
+ witRefNameForBehaviors: string,
848
+ behaviorRefName: string
849
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior> {
850
+
851
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior>({
852
+ apiVersion: "7.2-preview.1",
853
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
854
+ routeValues: {
855
+ processId: processId,
856
+ witRefNameForBehaviors: witRefNameForBehaviors,
857
+ behaviorRefName: behaviorRefName
858
+ }
859
+ });
860
+ }
861
+
862
+ /**
863
+ * Returns a list of all behaviors for the work item type of the process.
864
+ *
865
+ * @param processId - The ID of the process
866
+ * @param witRefNameForBehaviors - Work item type reference name for the behavior
867
+ */
868
+ public async getBehaviorsForWorkItemType(
869
+ processId: string,
870
+ witRefNameForBehaviors: string
871
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior[]> {
872
+
873
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior[]>({
874
+ apiVersion: "7.2-preview.1",
875
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
876
+ routeValues: {
877
+ processId: processId,
878
+ witRefNameForBehaviors: witRefNameForBehaviors
879
+ }
880
+ });
881
+ }
882
+
883
+ /**
884
+ * Removes a behavior for the work item type of the process.
885
+ *
886
+ * @param processId - The ID of the process
887
+ * @param witRefNameForBehaviors - Work item type reference name for the behavior
888
+ * @param behaviorRefName - The reference name of the behavior
889
+ */
890
+ public async removeBehaviorFromWorkItemType(
891
+ processId: string,
892
+ witRefNameForBehaviors: string,
893
+ behaviorRefName: string
894
+ ): Promise<void> {
895
+
896
+ return this.beginRequest<void>({
897
+ apiVersion: "7.2-preview.1",
898
+ method: "DELETE",
899
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
900
+ routeValues: {
901
+ processId: processId,
902
+ witRefNameForBehaviors: witRefNameForBehaviors,
903
+ behaviorRefName: behaviorRefName
904
+ }
905
+ });
906
+ }
907
+
908
+ /**
909
+ * Updates default work item type for the behavior of the process.
910
+ *
911
+ * @param behavior -
912
+ * @param processId - The ID of the process
913
+ * @param witRefNameForBehaviors - Work item type reference name for the behavior
914
+ */
915
+ public async updateBehaviorToWorkItemType(
916
+ behavior: WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior,
917
+ processId: string,
918
+ witRefNameForBehaviors: string
919
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior> {
920
+
921
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeBehavior>({
922
+ apiVersion: "7.2-preview.1",
923
+ method: "PATCH",
924
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
925
+ routeValues: {
926
+ processId: processId,
927
+ witRefNameForBehaviors: witRefNameForBehaviors
928
+ },
929
+ body: behavior
930
+ });
931
+ }
932
+
933
+ /**
934
+ * Creates a work item type in the process.
935
+ *
936
+ * @param workItemType -
937
+ * @param processId - The ID of the process
938
+ */
939
+ public async createWorkItemType(
940
+ workItemType: WorkItemTrackingProcessDefinitions.WorkItemTypeModel,
941
+ processId: string
942
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeModel> {
943
+
944
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeModel>({
945
+ apiVersion: "7.2-preview.1",
946
+ method: "POST",
947
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
948
+ routeValues: {
949
+ processId: processId
950
+ },
951
+ body: workItemType
952
+ });
953
+ }
954
+
955
+ /**
956
+ * Removes a work item type in the process.
957
+ *
958
+ * @param processId - The ID of the process
959
+ * @param witRefName - The reference name of the work item type
960
+ */
961
+ public async deleteWorkItemType(
962
+ processId: string,
963
+ witRefName: string
964
+ ): Promise<void> {
965
+
966
+ return this.beginRequest<void>({
967
+ apiVersion: "7.2-preview.1",
968
+ method: "DELETE",
969
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
970
+ routeValues: {
971
+ processId: processId,
972
+ witRefName: witRefName
973
+ }
974
+ });
975
+ }
976
+
977
+ /**
978
+ * Returns a work item type of the process.
979
+ *
980
+ * @param processId - The ID of the process
981
+ * @param witRefName - The reference name of the work item type
982
+ * @param expand -
983
+ */
984
+ public async getWorkItemType(
985
+ processId: string,
986
+ witRefName: string,
987
+ expand?: WorkItemTrackingProcessDefinitions.GetWorkItemTypeExpand
988
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeModel> {
989
+
990
+ const queryValues: any = {
991
+ '$expand': expand
992
+ };
993
+
994
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeModel>({
995
+ apiVersion: "7.2-preview.1",
996
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
997
+ routeValues: {
998
+ processId: processId,
999
+ witRefName: witRefName
1000
+ },
1001
+ queryParams: queryValues
1002
+ });
1003
+ }
1004
+
1005
+ /**
1006
+ * Returns a list of all work item types in the process.
1007
+ *
1008
+ * @param processId - The ID of the process
1009
+ * @param expand -
1010
+ */
1011
+ public async getWorkItemTypes(
1012
+ processId: string,
1013
+ expand?: WorkItemTrackingProcessDefinitions.GetWorkItemTypeExpand
1014
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeModel[]> {
1015
+
1016
+ const queryValues: any = {
1017
+ '$expand': expand
1018
+ };
1019
+
1020
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeModel[]>({
1021
+ apiVersion: "7.2-preview.1",
1022
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
1023
+ routeValues: {
1024
+ processId: processId
1025
+ },
1026
+ queryParams: queryValues
1027
+ });
1028
+ }
1029
+
1030
+ /**
1031
+ * Updates a work item type of the process.
1032
+ *
1033
+ * @param workItemTypeUpdate -
1034
+ * @param processId - The ID of the process
1035
+ * @param witRefName - The reference name of the work item type
1036
+ */
1037
+ public async updateWorkItemType(
1038
+ workItemTypeUpdate: WorkItemTrackingProcessDefinitions.WorkItemTypeUpdateModel,
1039
+ processId: string,
1040
+ witRefName: string
1041
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeModel> {
1042
+
1043
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeModel>({
1044
+ apiVersion: "7.2-preview.1",
1045
+ method: "PATCH",
1046
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
1047
+ routeValues: {
1048
+ processId: processId,
1049
+ witRefName: witRefName
1050
+ },
1051
+ body: workItemTypeUpdate
1052
+ });
1053
+ }
1054
+
1055
+ /**
1056
+ * Adds a field to the work item type in the process.
1057
+ *
1058
+ * @param field -
1059
+ * @param processId - The ID of the process
1060
+ * @param witRefNameForFields - Work item type reference name for the field
1061
+ */
1062
+ public async addFieldToWorkItemType(
1063
+ field: WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2,
1064
+ processId: string,
1065
+ witRefNameForFields: string
1066
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2> {
1067
+
1068
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2>({
1069
+ apiVersion: "7.2-preview.1",
1070
+ method: "POST",
1071
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
1072
+ routeValues: {
1073
+ processId: processId,
1074
+ witRefNameForFields: witRefNameForFields
1075
+ },
1076
+ body: field
1077
+ });
1078
+ }
1079
+
1080
+ /**
1081
+ * Returns a single field in the work item type of the process.
1082
+ *
1083
+ * @param processId - The ID of the process
1084
+ * @param witRefNameForFields - Work item type reference name for fields
1085
+ * @param fieldRefName - The reference name of the field
1086
+ */
1087
+ public async getWorkItemTypeField(
1088
+ processId: string,
1089
+ witRefNameForFields: string,
1090
+ fieldRefName: string
1091
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2> {
1092
+
1093
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2>({
1094
+ apiVersion: "7.2-preview.1",
1095
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
1096
+ routeValues: {
1097
+ processId: processId,
1098
+ witRefNameForFields: witRefNameForFields,
1099
+ fieldRefName: fieldRefName
1100
+ }
1101
+ });
1102
+ }
1103
+
1104
+ /**
1105
+ * Returns a list of all fields in the work item type of the process.
1106
+ *
1107
+ * @param processId - The ID of the process
1108
+ * @param witRefNameForFields - Work item type reference name for fields
1109
+ */
1110
+ public async getWorkItemTypeFields(
1111
+ processId: string,
1112
+ witRefNameForFields: string
1113
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2[]> {
1114
+
1115
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2[]>({
1116
+ apiVersion: "7.2-preview.1",
1117
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
1118
+ routeValues: {
1119
+ processId: processId,
1120
+ witRefNameForFields: witRefNameForFields
1121
+ }
1122
+ });
1123
+ }
1124
+
1125
+ /**
1126
+ * Removes a field in the work item type of the process.
1127
+ *
1128
+ * @param processId - The ID of the process
1129
+ * @param witRefNameForFields - Work item type reference name for fields
1130
+ * @param fieldRefName - The reference name of the field
1131
+ */
1132
+ public async removeFieldFromWorkItemType(
1133
+ processId: string,
1134
+ witRefNameForFields: string,
1135
+ fieldRefName: string
1136
+ ): Promise<void> {
1137
+
1138
+ return this.beginRequest<void>({
1139
+ apiVersion: "7.2-preview.1",
1140
+ method: "DELETE",
1141
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
1142
+ routeValues: {
1143
+ processId: processId,
1144
+ witRefNameForFields: witRefNameForFields,
1145
+ fieldRefName: fieldRefName
1146
+ }
1147
+ });
1148
+ }
1149
+
1150
+ /**
1151
+ * Updates a single field in the scope of the given process and work item type.
1152
+ *
1153
+ * @param field - The model with which to update the field
1154
+ * @param processId - The ID of the process
1155
+ * @param witRefNameForFields - Work item type reference name for fields
1156
+ */
1157
+ public async updateWorkItemTypeField(
1158
+ field: WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2,
1159
+ processId: string,
1160
+ witRefNameForFields: string
1161
+ ): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2> {
1162
+
1163
+ return this.beginRequest<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2>({
1164
+ apiVersion: "7.2-preview.1",
1165
+ method: "PATCH",
1166
+ routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
1167
+ routeValues: {
1168
+ processId: processId,
1169
+ witRefNameForFields: witRefNameForFields
1170
+ },
1171
+ body: field
1172
+ });
1173
+ }
1174
+
1175
+ }