azure-devops-extension-api 4.245.1 → 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/{Alert → bin/Alert}/AlertClient.d.ts +1 -1
  7. package/{Alert → bin/Alert}/AlertClient.js +1 -1
  8. package/{Contributions → bin/Contributions}/ContributionsClient.js +2 -2
  9. package/{Contributions → bin/Contributions}/ContributionsClient.min.js +1 -1
  10. package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.js +7 -7
  11. package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.min.js +1 -1
  12. package/{FormInput → bin/FormInput}/FormInput.d.ts +8 -0
  13. package/bin/LICENSE +21 -0
  14. package/bin/README.md +2 -0
  15. package/{TaskAgent → bin/TaskAgent}/TaskAgent.d.ts +12 -0
  16. package/{Test → bin/Test}/Test.d.ts +31 -7
  17. package/{TestPlan → bin/TestPlan}/TestPlan.d.ts +6 -2
  18. package/{TestPlan → bin/TestPlan}/TestPlanClient.d.ts +19 -0
  19. package/{TestPlan → bin/TestPlan}/TestPlanClient.js +84 -0
  20. package/{TestPlan → bin/TestPlan}/TestPlanClient.min.js +1 -1
  21. package/{TestResults → bin/TestResults}/TestResultsClient.d.ts +8 -0
  22. package/{TestResults → bin/TestResults}/TestResultsClient.js +23 -0
  23. package/{TestResults → bin/TestResults}/TestResultsClient.min.js +1 -1
  24. package/bin/package.json +37 -0
  25. package/buildpackage.js +80 -0
  26. package/package.json +1 -1
  27. package/src/Accounts/Accounts.ts +134 -0
  28. package/src/Accounts/AccountsClient.ts +83 -0
  29. package/src/Accounts/index.ts +2 -0
  30. package/src/AdvancedSecurity.Reporting/Reporting.ts +180 -0
  31. package/src/AdvancedSecurity.Reporting/ReportingClient.ts +47 -0
  32. package/src/Alert/Alert.ts +1037 -0
  33. package/src/Alert/AlertClient.ts +330 -0
  34. package/src/Boards/Boards.ts +684 -0
  35. package/src/Boards/BoardsClient.ts +593 -0
  36. package/src/Boards/index.ts +2 -0
  37. package/src/Build/Build.ts +3416 -0
  38. package/src/Build/BuildClient.ts +2740 -0
  39. package/src/Build/BuildServices.ts +39 -0
  40. package/src/Build/index.ts +3 -0
  41. package/src/Comments/Comments.ts +330 -0
  42. package/src/Comments/index.ts +1 -0
  43. package/src/Common/Client.ts +37 -0
  44. package/src/Common/CommonServices.ts +853 -0
  45. package/src/Common/Context.d.ts +46 -0
  46. package/src/Common/Fetch.ts +239 -0
  47. package/src/Common/RestClientBase.ts +186 -0
  48. package/src/Common/System.ts +36 -0
  49. package/src/Common/SystemData.ts +135 -0
  50. package/src/Common/Util/Serialization.ts +59 -0
  51. package/src/Common/Util/Url.ts +773 -0
  52. package/src/Common/index.ts +3 -0
  53. package/src/Contributions/Contributions.ts +708 -0
  54. package/src/Contributions/ContributionsClient.ts +109 -0
  55. package/src/Contributions/index.ts +2 -0
  56. package/src/Core/Core.ts +579 -0
  57. package/src/Core/CoreClient.ts +765 -0
  58. package/src/Core/index.ts +2 -0
  59. package/src/Dashboard/Dashboard.ts +419 -0
  60. package/src/Dashboard/DashboardClient.ts +370 -0
  61. package/src/Dashboard/WidgetConfigHelpers.ts +43 -0
  62. package/src/Dashboard/WidgetContracts.ts +226 -0
  63. package/src/Dashboard/WidgetHelpers.ts +145 -0
  64. package/src/Dashboard/index.ts +5 -0
  65. package/src/DistributedTaskCommon/DistributedTaskCommon.ts +108 -0
  66. package/src/DistributedTaskCommon/index.ts +1 -0
  67. package/src/ExtensionManagement/ExtensionManagement.ts +1205 -0
  68. package/src/ExtensionManagement/ExtensionManagementClient.ts +646 -0
  69. package/src/ExtensionManagement/index.ts +2 -0
  70. package/src/Favorite/Favorite.ts +136 -0
  71. package/src/Favorite/FavoriteClient.ts +301 -0
  72. package/src/FeatureAvailability/FeatureAvailability.ts +20 -0
  73. package/src/FeatureAvailability/FeatureAvailabilityClient.ts +153 -0
  74. package/src/FeatureAvailability/index.ts +2 -0
  75. package/src/FeatureManagement/FeatureManagement.ts +166 -0
  76. package/src/FeatureManagement/FeatureManagementClient.ts +246 -0
  77. package/src/FeatureManagement/index.ts +2 -0
  78. package/src/FileContainer/FileContainer.ts +205 -0
  79. package/src/FileContainer/FileContainerClient.ts +154 -0
  80. package/src/FileContainer/index.ts +2 -0
  81. package/src/FormInput/FormInput.ts +288 -0
  82. package/src/FormInput/index.ts +1 -0
  83. package/src/Gallery/Gallery.ts +1977 -0
  84. package/src/Gallery/GalleryClient.ts +2251 -0
  85. package/src/Gallery/index.ts +2 -0
  86. package/src/Git/CodeEditorTypes.ts +335 -0
  87. package/src/Git/Git.ts +4058 -0
  88. package/src/Git/GitClient.ts +4750 -0
  89. package/src/Git/GitServices.ts +18 -0
  90. package/src/Git/index.ts +4 -0
  91. package/src/Graph/Graph.ts +572 -0
  92. package/src/Graph/GraphClient.ts +846 -0
  93. package/src/Graph/index.ts +2 -0
  94. package/src/Identities/Identities.ts +261 -0
  95. package/src/Identities/IdentityProvider.ts +90 -0
  96. package/src/Identities/IdentityService.ts +89 -0
  97. package/src/Identities/index.ts +3 -0
  98. package/src/Locations/Locations.ts +165 -0
  99. package/src/Locations/LocationsClient.ts +220 -0
  100. package/src/Locations/index.ts +2 -0
  101. package/src/Management/Management.ts +172 -0
  102. package/src/Management/ManagementClient.ts +348 -0
  103. package/src/Notification/Notification.ts +1460 -0
  104. package/src/Notification/NotificationClient.ts +477 -0
  105. package/src/Notification/index.ts +2 -0
  106. package/src/Operations/Operations.ts +86 -0
  107. package/src/Operations/OperationsClient.ts +42 -0
  108. package/src/Operations/index.ts +2 -0
  109. package/src/Pipelines/Pipelines.ts +354 -0
  110. package/src/Pipelines/PipelinesClient.ts +306 -0
  111. package/src/Policy/Policy.ts +173 -0
  112. package/src/Policy/PolicyClient.ts +315 -0
  113. package/src/Policy/index.ts +2 -0
  114. package/src/Profile/Profile.ts +187 -0
  115. package/src/Profile/ProfileClient.ts +328 -0
  116. package/src/Profile/index.ts +2 -0
  117. package/src/ProjectAnalysis/ProjectAnalysis.ts +74 -0
  118. package/src/ProjectAnalysis/ProjectAnalysisClient.ts +124 -0
  119. package/src/ProjectAnalysis/index.ts +2 -0
  120. package/src/Release/Release.ts +4237 -0
  121. package/src/Release/ReleaseClient.ts +2450 -0
  122. package/src/Release/index.ts +2 -0
  123. package/src/ResourceUsage/ResourceUsage.ts +19 -0
  124. package/src/ResourceUsage/ResourceUsageClient.ts +48 -0
  125. package/src/ServiceEndpoint/ServiceEndpoint.ts +930 -0
  126. package/src/ServiceEndpoint/ServiceEndpointClient.ts +617 -0
  127. package/src/ServiceEndpoint/index.ts +2 -0
  128. package/src/ServiceHooks/ServiceHooks.ts +759 -0
  129. package/src/ServiceHooks/ServiceHooksClient.ts +499 -0
  130. package/src/ServiceHooks/index.ts +2 -0
  131. package/src/TaskAgent/TaskAgent.ts +3896 -0
  132. package/src/TaskAgent/TaskAgentClient.ts +3918 -0
  133. package/src/TaskAgent/index.ts +2 -0
  134. package/src/Test/Test.ts +5853 -0
  135. package/src/Test/TestClient.ts +2201 -0
  136. package/src/Test/index.ts +2 -0
  137. package/src/TestPlan/TestPlan.ts +1384 -0
  138. package/src/TestPlan/TestPlanClient.ts +1367 -0
  139. package/src/TestPlan/index.ts +2 -0
  140. package/{AdvancedSecurity.Reporting/Reporting.js → src/TestResults/TestResults.ts} +7 -5
  141. package/src/TestResults/TestResultsClient.ts +3450 -0
  142. package/src/TestResults/index.ts +2 -0
  143. package/src/Tfvc/Tfvc.ts +770 -0
  144. package/src/Tfvc/TfvcClient.ts +757 -0
  145. package/src/Tfvc/index.ts +2 -0
  146. package/src/WebApi/WebApi.ts +452 -0
  147. package/src/WebApi/index.ts +1 -0
  148. package/src/Wiki/Wiki.ts +352 -0
  149. package/src/Wiki/WikiClient.ts +712 -0
  150. package/src/Wiki/index.ts +2 -0
  151. package/src/Work/Work.ts +1367 -0
  152. package/src/Work/WorkClient.ts +1489 -0
  153. package/src/Work/index.ts +2 -0
  154. package/src/WorkItemTracking/WorkItemTracking.ts +2215 -0
  155. package/src/WorkItemTracking/WorkItemTrackingClient.ts +2032 -0
  156. package/src/WorkItemTracking/WorkItemTrackingServices.ts +329 -0
  157. package/src/WorkItemTracking/index.ts +3 -0
  158. package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +1295 -0
  159. package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +1455 -0
  160. package/src/WorkItemTrackingProcess/index.ts +2 -0
  161. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +606 -0
  162. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +1175 -0
  163. package/src/WorkItemTrackingProcessDefinitions/index.ts +2 -0
  164. package/src/index.ts +1 -0
  165. package/tsconfig.json +21 -0
  166. package/AdvancedSecurity.Reporting/Reporting.min.js +0 -1
  167. /package/{Accounts → bin/Accounts}/Accounts.d.ts +0 -0
  168. /package/{Accounts → bin/Accounts}/Accounts.js +0 -0
  169. /package/{Accounts → bin/Accounts}/Accounts.min.js +0 -0
  170. /package/{Accounts → bin/Accounts}/AccountsClient.d.ts +0 -0
  171. /package/{Accounts → bin/Accounts}/AccountsClient.js +0 -0
  172. /package/{Accounts → bin/Accounts}/AccountsClient.min.js +0 -0
  173. /package/{Accounts → bin/Accounts}/index.d.ts +0 -0
  174. /package/{Accounts → bin/Accounts}/index.js +0 -0
  175. /package/{Accounts → bin/Accounts}/index.min.js +0 -0
  176. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
  177. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
  178. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
  179. /package/{Alert → bin/Alert}/Alert.js +0 -0
  180. /package/{Alert → bin/Alert}/Alert.min.js +0 -0
  181. /package/{Alert → bin/Alert}/AlertClient.min.js +0 -0
  182. /package/{Boards → bin/Boards}/Boards.d.ts +0 -0
  183. /package/{Boards → bin/Boards}/Boards.js +0 -0
  184. /package/{Boards → bin/Boards}/Boards.min.js +0 -0
  185. /package/{Boards → bin/Boards}/BoardsClient.d.ts +0 -0
  186. /package/{Boards → bin/Boards}/BoardsClient.js +0 -0
  187. /package/{Boards → bin/Boards}/BoardsClient.min.js +0 -0
  188. /package/{Boards → bin/Boards}/index.d.ts +0 -0
  189. /package/{Boards → bin/Boards}/index.js +0 -0
  190. /package/{Boards → bin/Boards}/index.min.js +0 -0
  191. /package/{Build → bin/Build}/Build.d.ts +0 -0
  192. /package/{Build → bin/Build}/Build.js +0 -0
  193. /package/{Build → bin/Build}/Build.min.js +0 -0
  194. /package/{Build → bin/Build}/BuildClient.d.ts +0 -0
  195. /package/{Build → bin/Build}/BuildClient.js +0 -0
  196. /package/{Build → bin/Build}/BuildClient.min.js +0 -0
  197. /package/{Build → bin/Build}/BuildServices.d.ts +0 -0
  198. /package/{Build → bin/Build}/BuildServices.js +0 -0
  199. /package/{Build → bin/Build}/BuildServices.min.js +0 -0
  200. /package/{Build → bin/Build}/index.d.ts +0 -0
  201. /package/{Build → bin/Build}/index.js +0 -0
  202. /package/{Build → bin/Build}/index.min.js +0 -0
  203. /package/{Comments → bin/Comments}/Comments.d.ts +0 -0
  204. /package/{Comments → bin/Comments}/Comments.js +0 -0
  205. /package/{Comments → bin/Comments}/Comments.min.js +0 -0
  206. /package/{Comments → bin/Comments}/index.d.ts +0 -0
  207. /package/{Comments → bin/Comments}/index.js +0 -0
  208. /package/{Comments → bin/Comments}/index.min.js +0 -0
  209. /package/{Common → bin/Common}/Client.d.ts +0 -0
  210. /package/{Common → bin/Common}/Client.js +0 -0
  211. /package/{Common → bin/Common}/Client.min.js +0 -0
  212. /package/{Common → bin/Common}/CommonServices.d.ts +0 -0
  213. /package/{Common → bin/Common}/CommonServices.js +0 -0
  214. /package/{Common → bin/Common}/CommonServices.min.js +0 -0
  215. /package/{Common → bin/Common}/Context.d.ts +0 -0
  216. /package/{Common → bin/Common}/Fetch.d.ts +0 -0
  217. /package/{Common → bin/Common}/Fetch.js +0 -0
  218. /package/{Common → bin/Common}/Fetch.min.js +0 -0
  219. /package/{Common → bin/Common}/RestClientBase.d.ts +0 -0
  220. /package/{Common → bin/Common}/RestClientBase.js +0 -0
  221. /package/{Common → bin/Common}/RestClientBase.min.js +0 -0
  222. /package/{Common → bin/Common}/System.d.ts +0 -0
  223. /package/{Common → bin/Common}/System.js +0 -0
  224. /package/{Common → bin/Common}/System.min.js +0 -0
  225. /package/{Common → bin/Common}/SystemData.d.ts +0 -0
  226. /package/{Common → bin/Common}/SystemData.js +0 -0
  227. /package/{Common → bin/Common}/SystemData.min.js +0 -0
  228. /package/{Common → bin/Common}/Util/Serialization.d.ts +0 -0
  229. /package/{Common → bin/Common}/Util/Serialization.js +0 -0
  230. /package/{Common → bin/Common}/Util/Serialization.min.js +0 -0
  231. /package/{Common → bin/Common}/Util/Url.d.ts +0 -0
  232. /package/{Common → bin/Common}/Util/Url.js +0 -0
  233. /package/{Common → bin/Common}/Util/Url.min.js +0 -0
  234. /package/{Common → bin/Common}/index.d.ts +0 -0
  235. /package/{Common → bin/Common}/index.js +0 -0
  236. /package/{Common → bin/Common}/index.min.js +0 -0
  237. /package/{Contributions → bin/Contributions}/Contributions.d.ts +0 -0
  238. /package/{Contributions → bin/Contributions}/Contributions.js +0 -0
  239. /package/{Contributions → bin/Contributions}/Contributions.min.js +0 -0
  240. /package/{Contributions → bin/Contributions}/ContributionsClient.d.ts +0 -0
  241. /package/{Contributions → bin/Contributions}/index.d.ts +0 -0
  242. /package/{Contributions → bin/Contributions}/index.js +0 -0
  243. /package/{Contributions → bin/Contributions}/index.min.js +0 -0
  244. /package/{Core → bin/Core}/Core.d.ts +0 -0
  245. /package/{Core → bin/Core}/Core.js +0 -0
  246. /package/{Core → bin/Core}/Core.min.js +0 -0
  247. /package/{Core → bin/Core}/CoreClient.d.ts +0 -0
  248. /package/{Core → bin/Core}/CoreClient.js +0 -0
  249. /package/{Core → bin/Core}/CoreClient.min.js +0 -0
  250. /package/{Core → bin/Core}/index.d.ts +0 -0
  251. /package/{Core → bin/Core}/index.js +0 -0
  252. /package/{Core → bin/Core}/index.min.js +0 -0
  253. /package/{Dashboard → bin/Dashboard}/Dashboard.d.ts +0 -0
  254. /package/{Dashboard → bin/Dashboard}/Dashboard.js +0 -0
  255. /package/{Dashboard → bin/Dashboard}/Dashboard.min.js +0 -0
  256. /package/{Dashboard → bin/Dashboard}/DashboardClient.d.ts +0 -0
  257. /package/{Dashboard → bin/Dashboard}/DashboardClient.js +0 -0
  258. /package/{Dashboard → bin/Dashboard}/DashboardClient.min.js +0 -0
  259. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.d.ts +0 -0
  260. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.js +0 -0
  261. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.min.js +0 -0
  262. /package/{Dashboard → bin/Dashboard}/WidgetContracts.d.ts +0 -0
  263. /package/{Dashboard → bin/Dashboard}/WidgetContracts.js +0 -0
  264. /package/{Dashboard → bin/Dashboard}/WidgetContracts.min.js +0 -0
  265. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.d.ts +0 -0
  266. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.js +0 -0
  267. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.min.js +0 -0
  268. /package/{Dashboard → bin/Dashboard}/index.d.ts +0 -0
  269. /package/{Dashboard → bin/Dashboard}/index.js +0 -0
  270. /package/{Dashboard → bin/Dashboard}/index.min.js +0 -0
  271. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
  272. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
  273. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
  274. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.d.ts +0 -0
  275. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.js +0 -0
  276. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.min.js +0 -0
  277. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.d.ts +0 -0
  278. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.js +0 -0
  279. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.min.js +0 -0
  280. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
  281. /package/{ExtensionManagement → bin/ExtensionManagement}/index.d.ts +0 -0
  282. /package/{ExtensionManagement → bin/ExtensionManagement}/index.js +0 -0
  283. /package/{ExtensionManagement → bin/ExtensionManagement}/index.min.js +0 -0
  284. /package/{Favorite → bin/Favorite}/Favorite.d.ts +0 -0
  285. /package/{Favorite → bin/Favorite}/Favorite.js +0 -0
  286. /package/{Favorite → bin/Favorite}/Favorite.min.js +0 -0
  287. /package/{Favorite → bin/Favorite}/FavoriteClient.d.ts +0 -0
  288. /package/{Favorite → bin/Favorite}/FavoriteClient.js +0 -0
  289. /package/{Favorite → bin/Favorite}/FavoriteClient.min.js +0 -0
  290. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.d.ts +0 -0
  291. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.js +0 -0
  292. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.min.js +0 -0
  293. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
  294. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
  295. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
  296. /package/{FeatureAvailability → bin/FeatureAvailability}/index.d.ts +0 -0
  297. /package/{FeatureAvailability → bin/FeatureAvailability}/index.js +0 -0
  298. /package/{FeatureAvailability → bin/FeatureAvailability}/index.min.js +0 -0
  299. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.d.ts +0 -0
  300. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.js +0 -0
  301. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.min.js +0 -0
  302. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.d.ts +0 -0
  303. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.js +0 -0
  304. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.min.js +0 -0
  305. /package/{FeatureManagement → bin/FeatureManagement}/index.d.ts +0 -0
  306. /package/{FeatureManagement → bin/FeatureManagement}/index.js +0 -0
  307. /package/{FeatureManagement → bin/FeatureManagement}/index.min.js +0 -0
  308. /package/{FileContainer → bin/FileContainer}/FileContainer.d.ts +0 -0
  309. /package/{FileContainer → bin/FileContainer}/FileContainer.js +0 -0
  310. /package/{FileContainer → bin/FileContainer}/FileContainer.min.js +0 -0
  311. /package/{FileContainer → bin/FileContainer}/FileContainerClient.d.ts +0 -0
  312. /package/{FileContainer → bin/FileContainer}/FileContainerClient.js +0 -0
  313. /package/{FileContainer → bin/FileContainer}/FileContainerClient.min.js +0 -0
  314. /package/{FileContainer → bin/FileContainer}/index.d.ts +0 -0
  315. /package/{FileContainer → bin/FileContainer}/index.js +0 -0
  316. /package/{FileContainer → bin/FileContainer}/index.min.js +0 -0
  317. /package/{FormInput → bin/FormInput}/FormInput.js +0 -0
  318. /package/{FormInput → bin/FormInput}/FormInput.min.js +0 -0
  319. /package/{FormInput → bin/FormInput}/index.d.ts +0 -0
  320. /package/{FormInput → bin/FormInput}/index.js +0 -0
  321. /package/{FormInput → bin/FormInput}/index.min.js +0 -0
  322. /package/{Gallery → bin/Gallery}/Gallery.d.ts +0 -0
  323. /package/{Gallery → bin/Gallery}/Gallery.js +0 -0
  324. /package/{Gallery → bin/Gallery}/Gallery.min.js +0 -0
  325. /package/{Gallery → bin/Gallery}/GalleryClient.d.ts +0 -0
  326. /package/{Gallery → bin/Gallery}/GalleryClient.js +0 -0
  327. /package/{Gallery → bin/Gallery}/GalleryClient.min.js +0 -0
  328. /package/{Gallery → bin/Gallery}/index.d.ts +0 -0
  329. /package/{Gallery → bin/Gallery}/index.js +0 -0
  330. /package/{Gallery → bin/Gallery}/index.min.js +0 -0
  331. /package/{Git → bin/Git}/CodeEditorTypes.d.ts +0 -0
  332. /package/{Git → bin/Git}/CodeEditorTypes.js +0 -0
  333. /package/{Git → bin/Git}/CodeEditorTypes.min.js +0 -0
  334. /package/{Git → bin/Git}/Git.d.ts +0 -0
  335. /package/{Git → bin/Git}/Git.js +0 -0
  336. /package/{Git → bin/Git}/Git.min.js +0 -0
  337. /package/{Git → bin/Git}/GitClient.d.ts +0 -0
  338. /package/{Git → bin/Git}/GitClient.js +0 -0
  339. /package/{Git → bin/Git}/GitClient.min.js +0 -0
  340. /package/{Git → bin/Git}/GitServices.d.ts +0 -0
  341. /package/{Git → bin/Git}/GitServices.js +0 -0
  342. /package/{Git → bin/Git}/GitServices.min.js +0 -0
  343. /package/{Git → bin/Git}/index.d.ts +0 -0
  344. /package/{Git → bin/Git}/index.js +0 -0
  345. /package/{Git → bin/Git}/index.min.js +0 -0
  346. /package/{Graph → bin/Graph}/Graph.d.ts +0 -0
  347. /package/{Graph → bin/Graph}/Graph.js +0 -0
  348. /package/{Graph → bin/Graph}/Graph.min.js +0 -0
  349. /package/{Graph → bin/Graph}/GraphClient.d.ts +0 -0
  350. /package/{Graph → bin/Graph}/GraphClient.js +0 -0
  351. /package/{Graph → bin/Graph}/GraphClient.min.js +0 -0
  352. /package/{Graph → bin/Graph}/index.d.ts +0 -0
  353. /package/{Graph → bin/Graph}/index.js +0 -0
  354. /package/{Graph → bin/Graph}/index.min.js +0 -0
  355. /package/{Identities → bin/Identities}/Identities.d.ts +0 -0
  356. /package/{Identities → bin/Identities}/Identities.js +0 -0
  357. /package/{Identities → bin/Identities}/Identities.min.js +0 -0
  358. /package/{Identities → bin/Identities}/IdentityProvider.d.ts +0 -0
  359. /package/{Identities → bin/Identities}/IdentityProvider.js +0 -0
  360. /package/{Identities → bin/Identities}/IdentityProvider.min.js +0 -0
  361. /package/{Identities → bin/Identities}/IdentityService.d.ts +0 -0
  362. /package/{Identities → bin/Identities}/IdentityService.js +0 -0
  363. /package/{Identities → bin/Identities}/IdentityService.min.js +0 -0
  364. /package/{Identities → bin/Identities}/index.d.ts +0 -0
  365. /package/{Identities → bin/Identities}/index.js +0 -0
  366. /package/{Identities → bin/Identities}/index.min.js +0 -0
  367. /package/{Locations → bin/Locations}/Locations.d.ts +0 -0
  368. /package/{Locations → bin/Locations}/Locations.js +0 -0
  369. /package/{Locations → bin/Locations}/Locations.min.js +0 -0
  370. /package/{Locations → bin/Locations}/LocationsClient.d.ts +0 -0
  371. /package/{Locations → bin/Locations}/LocationsClient.js +0 -0
  372. /package/{Locations → bin/Locations}/LocationsClient.min.js +0 -0
  373. /package/{Locations → bin/Locations}/index.d.ts +0 -0
  374. /package/{Locations → bin/Locations}/index.js +0 -0
  375. /package/{Locations → bin/Locations}/index.min.js +0 -0
  376. /package/{Management → bin/Management}/Management.d.ts +0 -0
  377. /package/{Management → bin/Management}/Management.js +0 -0
  378. /package/{Management → bin/Management}/Management.min.js +0 -0
  379. /package/{Management → bin/Management}/ManagementClient.d.ts +0 -0
  380. /package/{Management → bin/Management}/ManagementClient.js +0 -0
  381. /package/{Management → bin/Management}/ManagementClient.min.js +0 -0
  382. /package/{Notification → bin/Notification}/Notification.d.ts +0 -0
  383. /package/{Notification → bin/Notification}/Notification.js +0 -0
  384. /package/{Notification → bin/Notification}/Notification.min.js +0 -0
  385. /package/{Notification → bin/Notification}/NotificationClient.d.ts +0 -0
  386. /package/{Notification → bin/Notification}/NotificationClient.js +0 -0
  387. /package/{Notification → bin/Notification}/NotificationClient.min.js +0 -0
  388. /package/{Notification → bin/Notification}/index.d.ts +0 -0
  389. /package/{Notification → bin/Notification}/index.js +0 -0
  390. /package/{Notification → bin/Notification}/index.min.js +0 -0
  391. /package/{Operations → bin/Operations}/Operations.d.ts +0 -0
  392. /package/{Operations → bin/Operations}/Operations.js +0 -0
  393. /package/{Operations → bin/Operations}/Operations.min.js +0 -0
  394. /package/{Operations → bin/Operations}/OperationsClient.d.ts +0 -0
  395. /package/{Operations → bin/Operations}/OperationsClient.js +0 -0
  396. /package/{Operations → bin/Operations}/OperationsClient.min.js +0 -0
  397. /package/{Operations → bin/Operations}/index.d.ts +0 -0
  398. /package/{Operations → bin/Operations}/index.js +0 -0
  399. /package/{Operations → bin/Operations}/index.min.js +0 -0
  400. /package/{Pipelines → bin/Pipelines}/Pipelines.d.ts +0 -0
  401. /package/{Pipelines → bin/Pipelines}/Pipelines.js +0 -0
  402. /package/{Pipelines → bin/Pipelines}/Pipelines.min.js +0 -0
  403. /package/{Pipelines → bin/Pipelines}/PipelinesClient.d.ts +0 -0
  404. /package/{Pipelines → bin/Pipelines}/PipelinesClient.js +0 -0
  405. /package/{Pipelines → bin/Pipelines}/PipelinesClient.min.js +0 -0
  406. /package/{Policy → bin/Policy}/Policy.d.ts +0 -0
  407. /package/{Policy → bin/Policy}/Policy.js +0 -0
  408. /package/{Policy → bin/Policy}/Policy.min.js +0 -0
  409. /package/{Policy → bin/Policy}/PolicyClient.d.ts +0 -0
  410. /package/{Policy → bin/Policy}/PolicyClient.js +0 -0
  411. /package/{Policy → bin/Policy}/PolicyClient.min.js +0 -0
  412. /package/{Policy → bin/Policy}/index.d.ts +0 -0
  413. /package/{Policy → bin/Policy}/index.js +0 -0
  414. /package/{Policy → bin/Policy}/index.min.js +0 -0
  415. /package/{Profile → bin/Profile}/Profile.d.ts +0 -0
  416. /package/{Profile → bin/Profile}/Profile.js +0 -0
  417. /package/{Profile → bin/Profile}/Profile.min.js +0 -0
  418. /package/{Profile → bin/Profile}/ProfileClient.d.ts +0 -0
  419. /package/{Profile → bin/Profile}/ProfileClient.js +0 -0
  420. /package/{Profile → bin/Profile}/ProfileClient.min.js +0 -0
  421. /package/{Profile → bin/Profile}/index.d.ts +0 -0
  422. /package/{Profile → bin/Profile}/index.js +0 -0
  423. /package/{Profile → bin/Profile}/index.min.js +0 -0
  424. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
  425. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.js +0 -0
  426. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
  427. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
  428. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
  429. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
  430. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.d.ts +0 -0
  431. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.js +0 -0
  432. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.min.js +0 -0
  433. /package/{Release → bin/Release}/Release.d.ts +0 -0
  434. /package/{Release → bin/Release}/Release.js +0 -0
  435. /package/{Release → bin/Release}/Release.min.js +0 -0
  436. /package/{Release → bin/Release}/ReleaseClient.d.ts +0 -0
  437. /package/{Release → bin/Release}/ReleaseClient.js +0 -0
  438. /package/{Release → bin/Release}/ReleaseClient.min.js +0 -0
  439. /package/{Release → bin/Release}/index.d.ts +0 -0
  440. /package/{Release → bin/Release}/index.js +0 -0
  441. /package/{Release → bin/Release}/index.min.js +0 -0
  442. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.d.ts +0 -0
  443. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.js +0 -0
  444. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.min.js +0 -0
  445. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.d.ts +0 -0
  446. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.js +0 -0
  447. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.min.js +0 -0
  448. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.d.ts +0 -0
  449. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.js +0 -0
  450. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
  451. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.d.ts +0 -0
  452. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.js +0 -0
  453. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.min.js +0 -0
  454. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.d.ts +0 -0
  455. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.js +0 -0
  456. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.min.js +0 -0
  457. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.d.ts +0 -0
  458. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.js +0 -0
  459. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.min.js +0 -0
  460. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.d.ts +0 -0
  461. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.js +0 -0
  462. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.min.js +0 -0
  463. /package/{ServiceHooks → bin/ServiceHooks}/index.d.ts +0 -0
  464. /package/{ServiceHooks → bin/ServiceHooks}/index.js +0 -0
  465. /package/{ServiceHooks → bin/ServiceHooks}/index.min.js +0 -0
  466. /package/{TaskAgent → bin/TaskAgent}/TaskAgent.js +0 -0
  467. /package/{TaskAgent → bin/TaskAgent}/TaskAgent.min.js +0 -0
  468. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.d.ts +0 -0
  469. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.js +0 -0
  470. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.min.js +0 -0
  471. /package/{TaskAgent → bin/TaskAgent}/index.d.ts +0 -0
  472. /package/{TaskAgent → bin/TaskAgent}/index.js +0 -0
  473. /package/{TaskAgent → bin/TaskAgent}/index.min.js +0 -0
  474. /package/{Test → bin/Test}/Test.js +0 -0
  475. /package/{Test → bin/Test}/Test.min.js +0 -0
  476. /package/{Test → bin/Test}/TestClient.d.ts +0 -0
  477. /package/{Test → bin/Test}/TestClient.js +0 -0
  478. /package/{Test → bin/Test}/TestClient.min.js +0 -0
  479. /package/{Test → bin/Test}/index.d.ts +0 -0
  480. /package/{Test → bin/Test}/index.js +0 -0
  481. /package/{Test → bin/Test}/index.min.js +0 -0
  482. /package/{TestPlan → bin/TestPlan}/TestPlan.js +0 -0
  483. /package/{TestPlan → bin/TestPlan}/TestPlan.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,39 @@
1
+ import { BuildDefinitionReference, BuildReference } from "./Build";
2
+
3
+ /**
4
+ * Contribution ids of Azure Pipelines services which can be obtained from DevOps.getService
5
+ */
6
+ export enum BuildServiceIds {
7
+
8
+ /**
9
+ * Service for getting contextual information when on a builds page
10
+ */
11
+ BuildPageDataService = "ms.vss-build-web.build-page-data-service"
12
+ }
13
+
14
+ /**
15
+ * Contextual information for a build page
16
+ */
17
+ export interface IBuildPageData {
18
+
19
+ /**
20
+ * The currently selected build result when on a build page
21
+ */
22
+ build?: BuildReference;
23
+
24
+ /**
25
+ * The currently selected build definition when on a build page
26
+ */
27
+ definition?: BuildDefinitionReference;
28
+ }
29
+
30
+ /**
31
+ * Service for getting contextual information when on a builds page
32
+ */
33
+ export interface IBuildPageDataService {
34
+
35
+ /**
36
+ * Gets contextual information for a build page
37
+ */
38
+ getBuildPageData(): IBuildPageData | undefined;
39
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./Build";
2
+ export * from "./BuildClient";
3
+ export * from "./BuildServices";
@@ -0,0 +1,330 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+
7
+ import * as WebApi from "../WebApi/WebApi";
8
+
9
+ /**
10
+ * Comment on an artifact like Work Item or Wiki, etc.
11
+ */
12
+ export interface Comment extends CommentResourceReference {
13
+ /**
14
+ * The id of the artifact this comment belongs to
15
+ */
16
+ artifactId: string;
17
+ /**
18
+ * IdentityRef of the creator of the comment.
19
+ */
20
+ createdBy: WebApi.IdentityRef;
21
+ /**
22
+ * The creation date of the comment.
23
+ */
24
+ createdDate: Date;
25
+ /**
26
+ * The id assigned to the comment.
27
+ */
28
+ id: number;
29
+ /**
30
+ * Indicates if the comment has been deleted.
31
+ */
32
+ isDeleted: boolean;
33
+ /**
34
+ * The mentions of the comment.
35
+ */
36
+ mentions: CommentMention[];
37
+ /**
38
+ * IdentityRef of the user who last modified the comment.
39
+ */
40
+ modifiedBy: WebApi.IdentityRef;
41
+ /**
42
+ * The last modification date of the comment.
43
+ */
44
+ modifiedDate: Date;
45
+ /**
46
+ * The comment id of the parent comment, if any
47
+ */
48
+ parentId: number;
49
+ /**
50
+ * The reactions on the comment.
51
+ */
52
+ reactions: CommentReaction[];
53
+ /**
54
+ * The rendered text of the comment
55
+ */
56
+ renderedText: string;
57
+ /**
58
+ * Replies for this comment
59
+ */
60
+ replies: CommentList;
61
+ /**
62
+ * Indicates the current state of the comment
63
+ */
64
+ state: CommentState;
65
+ /**
66
+ * The plaintext/markdown version of the comment
67
+ */
68
+ text: string;
69
+ /**
70
+ * The current version of the comment
71
+ */
72
+ version: number;
73
+ }
74
+
75
+ /**
76
+ * Represents an attachment to a comment.
77
+ */
78
+ export interface CommentAttachment extends CommentResourceReference {
79
+ /**
80
+ * IdentityRef of the creator of the attachment.
81
+ */
82
+ createdBy: WebApi.IdentityRef;
83
+ /**
84
+ * The creation date of the attachment.
85
+ */
86
+ createdDate: Date;
87
+ /**
88
+ * Unique Id of the attachment.
89
+ */
90
+ id: string;
91
+ }
92
+
93
+ /**
94
+ * Represents a request to create a work item comment.
95
+ */
96
+ export interface CommentCreateParameters {
97
+ /**
98
+ * Optional CommentId of the parent in order to add a reply for an existing comment
99
+ */
100
+ parentId: number;
101
+ /**
102
+ * Text of the comment
103
+ */
104
+ text: string;
105
+ }
106
+
107
+ /**
108
+ * Specifies the additional data retrieval options for comments.
109
+ */
110
+ export enum CommentExpandOptions {
111
+ /**
112
+ * Include comments only, no mentions, reactions or rendered text
113
+ */
114
+ None = 0,
115
+ /**
116
+ * Include comment reactions
117
+ */
118
+ Reactions = 1,
119
+ /**
120
+ * Include the rendered text (html) in addition to markdown text
121
+ */
122
+ RenderedText = 8,
123
+ /**
124
+ * If specified, then ONLY rendered text (html) will be returned, w/o markdown. Supposed to be used internally from data provides for optimization purposes.
125
+ */
126
+ RenderedTextOnly = 16,
127
+ /**
128
+ * If specified, then responses will be expanded in the results
129
+ */
130
+ Children = 32,
131
+ /**
132
+ * Expand everything including Reactions, Mentions and also include RenderedText (HTML) for markdown comments
133
+ */
134
+ All = -17
135
+ }
136
+
137
+ /**
138
+ * Format of the comment. Ex. Markdown, Html.
139
+ */
140
+ export enum CommentFormat {
141
+ Markdown = 0,
142
+ Html = 1
143
+ }
144
+
145
+ /**
146
+ * Represents a list of comments.
147
+ */
148
+ export interface CommentList extends CommentResourceReference {
149
+ /**
150
+ * List of comments in the current batch.
151
+ */
152
+ comments: Comment[];
153
+ /**
154
+ * A string token that can be used to retrieving next page of comments if available. Otherwise null.
155
+ */
156
+ continuationToken: string;
157
+ /**
158
+ * The count of comments in the current batch.
159
+ */
160
+ count: number;
161
+ /**
162
+ * Uri to the next page of comments if it is available. Otherwise null.
163
+ */
164
+ nextPage: string;
165
+ /**
166
+ * Total count of comments on a work item.
167
+ */
168
+ totalCount: number;
169
+ }
170
+
171
+ /**
172
+ * Contains information about various artifacts mentioned in the comment
173
+ */
174
+ export interface CommentMention extends CommentResourceReference {
175
+ /**
176
+ * Id of the artifact this mention belongs to
177
+ */
178
+ artifactId: string;
179
+ /**
180
+ * Id of the comment associated with this mention. Nullable to support legacy mentions which can potentially have null commentId
181
+ */
182
+ commentId: number;
183
+ /**
184
+ * Value of the mentioned artifact. Expected Value varies by CommentMentionType: Person: VSID associated with the identity Work Item: ID of the work item Pull Request: ID of the Pull Request
185
+ */
186
+ mentionedArtifact: string;
187
+ /**
188
+ * The context which represent where this mentioned was parsed from
189
+ */
190
+ type: CommentMentionType;
191
+ }
192
+
193
+ export enum CommentMentionType {
194
+ /**
195
+ * An identity was mentioned by using the format \@\{VSID\}
196
+ */
197
+ Person = 0,
198
+ /**
199
+ * A work item was mentioned by using the format #\{Work Item ID\}
200
+ */
201
+ WorkItem = 1,
202
+ /**
203
+ * A Pull Request was mentioned by using the format !\{PR Number\}
204
+ */
205
+ PullRequest = 2
206
+ }
207
+
208
+ /**
209
+ * Contains information about comment reaction for a particular reaction type.
210
+ */
211
+ export interface CommentReaction extends CommentResourceReference {
212
+ /**
213
+ * The id of the comment this reaction belongs to.
214
+ */
215
+ commentId: number;
216
+ /**
217
+ * Total number of reactions for the CommentReactionType.
218
+ */
219
+ count: number;
220
+ /**
221
+ * Flag to indicate if the current user has engaged on this particular EngagementType (e.g. if they liked the associated comment).
222
+ */
223
+ isCurrentUserEngaged: boolean;
224
+ /**
225
+ * Type of the reaction.
226
+ */
227
+ type: CommentReactionType;
228
+ }
229
+
230
+ /**
231
+ * Represents different reaction types for a comment
232
+ */
233
+ export enum CommentReactionType {
234
+ Like = 0,
235
+ Dislike = 1,
236
+ Heart = 2,
237
+ Hooray = 3,
238
+ Smile = 4,
239
+ Confused = 5
240
+ }
241
+
242
+ /**
243
+ * Base class for comment resource references
244
+ */
245
+ export interface CommentResourceReference {
246
+ /**
247
+ * REST URL for the resource.
248
+ */
249
+ url: string;
250
+ }
251
+
252
+ export enum CommentSortOrder {
253
+ /**
254
+ * The results will be sorted in Ascending order.
255
+ */
256
+ Asc = 1,
257
+ /**
258
+ * The results will be sorted in Descending order.
259
+ */
260
+ Desc = 2
261
+ }
262
+
263
+ /**
264
+ * Represents the possible comment states.
265
+ */
266
+ export enum CommentState {
267
+ Active = 0,
268
+ Resolved = 1,
269
+ Closed = 2
270
+ }
271
+
272
+ /**
273
+ * Represents a request to update a comment.
274
+ */
275
+ export interface CommentUpdateParameters {
276
+ /**
277
+ * Set the current state of the comment
278
+ */
279
+ state: CommentState;
280
+ /**
281
+ * The updated text of the comment
282
+ */
283
+ text: string;
284
+ }
285
+
286
+ /**
287
+ * Represents a specific version of a comment on a work item.
288
+ */
289
+ export interface CommentVersion extends CommentResourceReference {
290
+ /**
291
+ * IdentityRef of the creator of the comment.
292
+ */
293
+ createdBy: WebApi.IdentityRef;
294
+ /**
295
+ * The creation date of the comment.
296
+ */
297
+ createdDate: Date;
298
+ /**
299
+ * The id assigned to the comment.
300
+ */
301
+ id: number;
302
+ /**
303
+ * Indicates if the comment has been deleted at this version.
304
+ */
305
+ isDeleted: boolean;
306
+ /**
307
+ * IdentityRef of the user who modified the comment at this version.
308
+ */
309
+ modifiedBy: WebApi.IdentityRef;
310
+ /**
311
+ * The modification date of the comment for this version.
312
+ */
313
+ modifiedDate: Date;
314
+ /**
315
+ * The rendered content of the comment at this version.
316
+ */
317
+ renderedText: string;
318
+ /**
319
+ * Indicates the current state of the comment
320
+ */
321
+ state: CommentState;
322
+ /**
323
+ * The text of the comment at this version.
324
+ */
325
+ text: string;
326
+ /**
327
+ * The version number.
328
+ */
329
+ version: number;
330
+ }
@@ -0,0 +1 @@
1
+ export * from "./Comments";
@@ -0,0 +1,37 @@
1
+ import { getAccessToken, getService } from "azure-devops-extension-sdk";
2
+ import { IVssRestClientOptions } from "./Context";
3
+ import { CommonServiceIds, ILocationService } from "./CommonServices";
4
+
5
+ /**
6
+ * A REST client factory is the method used to create and initialize an IVssRestClient.
7
+ */
8
+ export type RestClientFactory<T> = {
9
+ new (options: IVssRestClientOptions): T;
10
+ RESOURCE_AREA_ID?: string;
11
+ }
12
+
13
+ export function getClient<T>(clientClass: RestClientFactory<T>, clientOptions?: IVssRestClientOptions) {
14
+
15
+ const options = clientOptions || {};
16
+
17
+ if (!options.rootPath) {
18
+ options.rootPath = getService<ILocationService>(CommonServiceIds.LocationService).then(locationService => {
19
+ if (clientClass.RESOURCE_AREA_ID) {
20
+ return locationService.getResourceAreaLocation(clientClass.RESOURCE_AREA_ID);
21
+ }
22
+ else {
23
+ return locationService.getServiceLocation();
24
+ }
25
+ });
26
+ }
27
+
28
+ if (!options.authTokenProvider) {
29
+ options.authTokenProvider = {
30
+ getAuthorizationHeader: (): Promise<string> => {
31
+ return getAccessToken().then(token => token ? ("Bearer " + token) : "");
32
+ }
33
+ };
34
+ }
35
+
36
+ return new clientClass(options);
37
+ }