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,1205 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+
7
+ import * as Gallery from "../Gallery/Gallery";
8
+ import * as WebApi from "../WebApi/WebApi";
9
+
10
+ /**
11
+ * How the acquisition is assigned
12
+ */
13
+ export enum AcquisitionAssignmentType {
14
+ None = 0,
15
+ /**
16
+ * Just assign for me
17
+ */
18
+ Me = 1,
19
+ /**
20
+ * Assign for all users in the account
21
+ */
22
+ All = 2
23
+ }
24
+
25
+ export interface AcquisitionOperation {
26
+ /**
27
+ * State of the AcquisitionOperation for the current user
28
+ */
29
+ operationState: AcquisitionOperationState;
30
+ /**
31
+ * AcquisitionOperationType: install, request, buy, etc...
32
+ */
33
+ operationType: AcquisitionOperationType;
34
+ /**
35
+ * Optional reason to justify current state. Typically used with Disallow state.
36
+ */
37
+ reason: string;
38
+ /**
39
+ * List of reasons indicating why the operation is not allowed.
40
+ */
41
+ reasons: AcquisitionOperationDisallowReason[];
42
+ }
43
+
44
+ export interface AcquisitionOperationDisallowReason {
45
+ /**
46
+ * User-friendly message clarifying the reason for disallowance
47
+ */
48
+ message: string;
49
+ /**
50
+ * Type of reason for disallowance - AlreadyInstalled, UnresolvedDemand, etc.
51
+ */
52
+ type: string;
53
+ }
54
+
55
+ export enum AcquisitionOperationState {
56
+ /**
57
+ * Not allowed to use this AcquisitionOperation
58
+ */
59
+ Disallow = 0,
60
+ /**
61
+ * Allowed to use this AcquisitionOperation
62
+ */
63
+ Allow = 1,
64
+ /**
65
+ * Operation has already been completed and is no longer available
66
+ */
67
+ Completed = 3
68
+ }
69
+
70
+ /**
71
+ * Set of different types of operations that can be requested.
72
+ */
73
+ export enum AcquisitionOperationType {
74
+ /**
75
+ * Not yet used
76
+ */
77
+ Get = 0,
78
+ /**
79
+ * Install this extension into the host provided
80
+ */
81
+ Install = 1,
82
+ /**
83
+ * Buy licenses for this extension and install into the host provided
84
+ */
85
+ Buy = 2,
86
+ /**
87
+ * Try this extension
88
+ */
89
+ Try = 3,
90
+ /**
91
+ * Request this extension for installation
92
+ */
93
+ Request = 4,
94
+ /**
95
+ * No action found
96
+ */
97
+ None = 5,
98
+ /**
99
+ * Request admins for purchasing extension
100
+ */
101
+ PurchaseRequest = 6
102
+ }
103
+
104
+ /**
105
+ * Market item acquisition options (install, buy, etc) for an installation target.
106
+ */
107
+ export interface AcquisitionOptions {
108
+ /**
109
+ * Default Operation for the ItemId in this target
110
+ */
111
+ defaultOperation: AcquisitionOperation;
112
+ /**
113
+ * The item id that this options refer to
114
+ */
115
+ itemId: string;
116
+ /**
117
+ * Operations allowed for the ItemId in this target
118
+ */
119
+ operations: AcquisitionOperation[];
120
+ /**
121
+ * Additional properties which can be added to the request.
122
+ */
123
+ properties: any;
124
+ /**
125
+ * The target that this options refer to
126
+ */
127
+ target: string;
128
+ }
129
+
130
+ /**
131
+ * Representation of a ContributionNode that can be used for serialized to clients.
132
+ */
133
+ export interface ClientContribution {
134
+ /**
135
+ * Description of the contribution/type
136
+ */
137
+ description: string;
138
+ /**
139
+ * Fully qualified identifier of the contribution/type
140
+ */
141
+ id: string;
142
+ /**
143
+ * Includes is a set of contributions that should have this contribution included in their targets list.
144
+ */
145
+ includes: string[];
146
+ /**
147
+ * Properties/attributes of this contribution
148
+ */
149
+ properties: any;
150
+ /**
151
+ * The ids of the contribution(s) that this contribution targets. (parent contributions)
152
+ */
153
+ targets: string[];
154
+ /**
155
+ * Id of the Contribution Type
156
+ */
157
+ type: string;
158
+ }
159
+
160
+ /**
161
+ * Representation of a ContributionNode that can be used for serialized to clients.
162
+ */
163
+ export interface ClientContributionNode {
164
+ /**
165
+ * List of ids for contributions which are children to the current contribution.
166
+ */
167
+ children: string[];
168
+ /**
169
+ * Contribution associated with this node.
170
+ */
171
+ contribution: ClientContribution;
172
+ /**
173
+ * List of ids for contributions which are parents to the current contribution.
174
+ */
175
+ parents: string[];
176
+ }
177
+
178
+ export interface ClientContributionProviderDetails {
179
+ /**
180
+ * Friendly name for the provider.
181
+ */
182
+ displayName: string;
183
+ /**
184
+ * Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes
185
+ */
186
+ name: string;
187
+ /**
188
+ * Properties associated with the provider
189
+ */
190
+ properties: { [key: string] : string; };
191
+ /**
192
+ * Version of contributions associated with this contribution provider.
193
+ */
194
+ version: string;
195
+ }
196
+
197
+ /**
198
+ * A client data provider are the details needed to make the data provider request from the client.
199
+ */
200
+ export interface ClientDataProviderQuery extends DataProviderQuery {
201
+ /**
202
+ * The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values.
203
+ */
204
+ queryServiceInstanceType: string;
205
+ }
206
+
207
+ /**
208
+ * An individual contribution made by an extension
209
+ */
210
+ export interface Contribution extends ContributionBase {
211
+ /**
212
+ * List of constraints (filters) that should be applied to the availability of this contribution
213
+ */
214
+ constraints: ContributionConstraint[];
215
+ /**
216
+ * Includes is a set of contributions that should have this contribution included in their targets list.
217
+ */
218
+ includes: string[];
219
+ /**
220
+ * Properties/attributes of this contribution
221
+ */
222
+ properties: any;
223
+ /**
224
+ * List of demanded claims in order for the user to see this contribution (like anonymous, public, member...).
225
+ */
226
+ restrictedTo: string[];
227
+ /**
228
+ * The ids of the contribution(s) that this contribution targets. (parent contributions)
229
+ */
230
+ targets: string[];
231
+ /**
232
+ * Id of the Contribution Type
233
+ */
234
+ type: string;
235
+ }
236
+
237
+ /**
238
+ * Base class shared by contributions and contribution types
239
+ */
240
+ export interface ContributionBase {
241
+ /**
242
+ * Description of the contribution/type
243
+ */
244
+ description: string;
245
+ /**
246
+ * Fully qualified identifier of the contribution/type
247
+ */
248
+ id: string;
249
+ /**
250
+ * VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this.
251
+ */
252
+ visibleTo: string[];
253
+ }
254
+
255
+ /**
256
+ * Specifies a constraint that can be used to dynamically include/exclude a given contribution
257
+ */
258
+ export interface ContributionConstraint {
259
+ /**
260
+ * An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included).
261
+ */
262
+ group: number;
263
+ /**
264
+ * Fully qualified identifier of a shared constraint
265
+ */
266
+ id: string;
267
+ /**
268
+ * If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true)
269
+ */
270
+ inverse: boolean;
271
+ /**
272
+ * Name of the IContributionFilter plugin
273
+ */
274
+ name: string;
275
+ /**
276
+ * Properties that are fed to the contribution filter class
277
+ */
278
+ properties: any;
279
+ /**
280
+ * Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will eliminate the contribution from the tree completely if the constraint is applied.
281
+ */
282
+ relationships: string[];
283
+ }
284
+
285
+ /**
286
+ * Represents different ways of including contributions based on licensing
287
+ */
288
+ export enum ContributionLicensingBehaviorType {
289
+ /**
290
+ * Default value - only include the contribution if the user is licensed for the extension
291
+ */
292
+ OnlyIfLicensed = 0,
293
+ /**
294
+ * Only include the contribution if the user is NOT licensed for the extension
295
+ */
296
+ OnlyIfUnlicensed = 1,
297
+ /**
298
+ * Always include the contribution regardless of whether or not the user is licensed for the extension
299
+ */
300
+ AlwaysInclude = 2
301
+ }
302
+
303
+ /**
304
+ * A query that can be issued for contribution nodes
305
+ */
306
+ export interface ContributionNodeQuery {
307
+ /**
308
+ * The contribution ids of the nodes to find.
309
+ */
310
+ contributionIds: string[];
311
+ /**
312
+ * Contextual information that can be leveraged by contribution constraints
313
+ */
314
+ dataProviderContext: DataProviderContext;
315
+ /**
316
+ * Indicator if contribution provider details should be included in the result.
317
+ */
318
+ includeProviderDetails: boolean;
319
+ /**
320
+ * Query options tpo be used when fetching ContributionNodes
321
+ */
322
+ queryOptions: ContributionQueryOptions;
323
+ }
324
+
325
+ /**
326
+ * Result of a contribution node query. Wraps the resulting contribution nodes and provider details.
327
+ */
328
+ export interface ContributionNodeQueryResult {
329
+ /**
330
+ * Map of contribution ids to corresponding node.
331
+ */
332
+ nodes: { [key: string] : ClientContributionNode; };
333
+ /**
334
+ * Map of provider ids to the corresponding provider details object.
335
+ */
336
+ providerDetails: { [key: string] : ClientContributionProviderDetails; };
337
+ }
338
+
339
+ /**
340
+ * Description about a property of a contribution type
341
+ */
342
+ export interface ContributionPropertyDescription {
343
+ /**
344
+ * Description of the property
345
+ */
346
+ description: string;
347
+ /**
348
+ * Name of the property
349
+ */
350
+ name: string;
351
+ /**
352
+ * True if this property is required
353
+ */
354
+ required: boolean;
355
+ /**
356
+ * The type of value used for this property
357
+ */
358
+ type: ContributionPropertyType;
359
+ }
360
+
361
+ /**
362
+ * The type of value used for a property
363
+ */
364
+ export enum ContributionPropertyType {
365
+ /**
366
+ * Contribution type is unknown (value may be anything)
367
+ */
368
+ Unknown = 0,
369
+ /**
370
+ * Value is a string
371
+ */
372
+ String = 1,
373
+ /**
374
+ * Value is a Uri
375
+ */
376
+ Uri = 2,
377
+ /**
378
+ * Value is a GUID
379
+ */
380
+ Guid = 4,
381
+ /**
382
+ * Value is True or False
383
+ */
384
+ Boolean = 8,
385
+ /**
386
+ * Value is an integer
387
+ */
388
+ Integer = 16,
389
+ /**
390
+ * Value is a double
391
+ */
392
+ Double = 32,
393
+ /**
394
+ * Value is a DateTime object
395
+ */
396
+ DateTime = 64,
397
+ /**
398
+ * Value is a generic Dictionary/JObject/property bag
399
+ */
400
+ Dictionary = 128,
401
+ /**
402
+ * Value is an array
403
+ */
404
+ Array = 256,
405
+ /**
406
+ * Value is an arbitrary/custom object
407
+ */
408
+ Object = 512
409
+ }
410
+
411
+ export interface ContributionProviderDetails {
412
+ /**
413
+ * Friendly name for the provider.
414
+ */
415
+ displayName: string;
416
+ /**
417
+ * Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes
418
+ */
419
+ name: string;
420
+ /**
421
+ * Properties associated with the provider
422
+ */
423
+ properties: { [key: string] : string; };
424
+ /**
425
+ * Version of contributions associated with this contribution provider.
426
+ */
427
+ version: string;
428
+ }
429
+
430
+ /**
431
+ * Options that control the contributions to include in a query
432
+ */
433
+ export enum ContributionQueryOptions {
434
+ None = 0,
435
+ /**
436
+ * Include the direct contributions that have the ids queried.
437
+ */
438
+ IncludeSelf = 16,
439
+ /**
440
+ * Include the contributions that directly target the contributions queried.
441
+ */
442
+ IncludeChildren = 32,
443
+ /**
444
+ * Include the contributions from the entire sub-tree targeting the contributions queried.
445
+ */
446
+ IncludeSubTree = 96,
447
+ /**
448
+ * Include the contribution being queried as well as all contributions that target them recursively.
449
+ */
450
+ IncludeAll = 112,
451
+ /**
452
+ * Some callers may want the entire tree back without constraint evaluation being performed.
453
+ */
454
+ IgnoreConstraints = 256
455
+ }
456
+
457
+ /**
458
+ * A contribution type, given by a json schema
459
+ */
460
+ export interface ContributionType extends ContributionBase {
461
+ /**
462
+ * Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types.
463
+ */
464
+ indexed: boolean;
465
+ /**
466
+ * Friendly name of the contribution/type
467
+ */
468
+ name: string;
469
+ /**
470
+ * Describes the allowed properties for this contribution type
471
+ */
472
+ properties: { [key: string] : ContributionPropertyDescription; };
473
+ }
474
+
475
+ /**
476
+ * Contextual information that data providers can examine when populating their data
477
+ */
478
+ export interface DataProviderContext {
479
+ /**
480
+ * Generic property bag that contains context-specific properties that data providers can use when populating their data dictionary
481
+ */
482
+ properties: { [key: string] : any; };
483
+ }
484
+
485
+ export interface DataProviderExceptionDetails {
486
+ /**
487
+ * The type of the exception that was thrown.
488
+ */
489
+ exceptionType: string;
490
+ /**
491
+ * Message that is associated with the exception.
492
+ */
493
+ message: string;
494
+ /**
495
+ * The StackTrace from the exception turned into a string.
496
+ */
497
+ stackTrace: string;
498
+ }
499
+
500
+ /**
501
+ * A query that can be issued for data provider data
502
+ */
503
+ export interface DataProviderQuery {
504
+ /**
505
+ * Contextual information to pass to the data providers
506
+ */
507
+ context: DataProviderContext;
508
+ /**
509
+ * The contribution ids of the data providers to resolve
510
+ */
511
+ contributionIds: string[];
512
+ }
513
+
514
+ /**
515
+ * Result structure from calls to GetDataProviderData
516
+ */
517
+ export interface DataProviderResult {
518
+ /**
519
+ * This is the set of data providers that were requested, but either they were defined as client providers, or as remote providers that failed and may be retried by the client.
520
+ */
521
+ clientProviders: { [key: string] : ClientDataProviderQuery; };
522
+ /**
523
+ * Property bag of data keyed off of the data provider contribution id
524
+ */
525
+ data: { [key: string] : any; };
526
+ /**
527
+ * Set of exceptions that occurred resolving the data providers.
528
+ */
529
+ exceptions: { [key: string] : DataProviderExceptionDetails; };
530
+ /**
531
+ * List of data providers resolved in the data-provider query
532
+ */
533
+ resolvedProviders: ResolvedDataProvider[];
534
+ /**
535
+ * Scope name applied to this data provider result.
536
+ */
537
+ scopeName: string;
538
+ /**
539
+ * Scope value applied to this data provider result.
540
+ */
541
+ scopeValue: string;
542
+ /**
543
+ * Property bag of shared data that was contributed to by any of the individual data providers
544
+ */
545
+ sharedData: { [key: string] : any; };
546
+ }
547
+
548
+ /**
549
+ * Data bag that any data provider can contribute to. This shared dictionary is returned in the data provider result.
550
+ */
551
+ export interface DataProviderSharedData {
552
+ }
553
+
554
+ /**
555
+ * Contract for handling the extension acquisition process
556
+ */
557
+ export interface ExtensionAcquisitionRequest {
558
+ /**
559
+ * How the item is being assigned
560
+ */
561
+ assignmentType: AcquisitionAssignmentType;
562
+ /**
563
+ * The id of the subscription used for purchase
564
+ */
565
+ billingId: string;
566
+ /**
567
+ * The marketplace id (publisherName.extensionName) for the item
568
+ */
569
+ itemId: string;
570
+ /**
571
+ * The type of operation, such as install, request, purchase
572
+ */
573
+ operationType: AcquisitionOperationType;
574
+ /**
575
+ * Additional properties which can be added to the request.
576
+ */
577
+ properties: any;
578
+ /**
579
+ * How many licenses should be purchased
580
+ */
581
+ quantity: number;
582
+ }
583
+
584
+ /**
585
+ * Audit log for an extension
586
+ */
587
+ export interface ExtensionAuditLog {
588
+ /**
589
+ * Collection of audit log entries
590
+ */
591
+ entries: ExtensionAuditLogEntry[];
592
+ /**
593
+ * Extension that the change was made for
594
+ */
595
+ extensionName: string;
596
+ /**
597
+ * Publisher that the extension is part of
598
+ */
599
+ publisherName: string;
600
+ }
601
+
602
+ /**
603
+ * An audit log entry for an extension
604
+ */
605
+ export interface ExtensionAuditLogEntry {
606
+ /**
607
+ * Change that was made to extension
608
+ */
609
+ auditAction: string;
610
+ /**
611
+ * Date at which the change was made
612
+ */
613
+ auditDate: Date;
614
+ /**
615
+ * Extra information about the change
616
+ */
617
+ comment: string;
618
+ /**
619
+ * Represents the user who made the change
620
+ */
621
+ updatedBy: WebApi.IdentityRef;
622
+ }
623
+
624
+ export interface ExtensionAuthorization {
625
+ id: string;
626
+ scopes: string[];
627
+ }
628
+
629
+ /**
630
+ * Represents a single collection for extension data documents
631
+ */
632
+ export interface ExtensionDataCollection {
633
+ /**
634
+ * The name of the collection
635
+ */
636
+ collectionName: string;
637
+ /**
638
+ * A list of documents belonging to the collection
639
+ */
640
+ documents: any[];
641
+ /**
642
+ * The type of the collection's scope, such as Default or User
643
+ */
644
+ scopeType: string;
645
+ /**
646
+ * The value of the collection's scope, such as Current or Me
647
+ */
648
+ scopeValue: string;
649
+ }
650
+
651
+ /**
652
+ * Represents a query to receive a set of extension data collections
653
+ */
654
+ export interface ExtensionDataCollectionQuery {
655
+ /**
656
+ * A list of collections to query
657
+ */
658
+ collections: ExtensionDataCollection[];
659
+ }
660
+
661
+ export interface ExtensionEvent {
662
+ /**
663
+ * The extension which has been updated
664
+ */
665
+ extension: Gallery.PublishedExtension;
666
+ /**
667
+ * The current version of the extension that was updated
668
+ */
669
+ extensionVersion: string;
670
+ /**
671
+ * Name of the collection for which the extension was requested
672
+ */
673
+ host: ExtensionHost;
674
+ /**
675
+ * Gallery host url
676
+ */
677
+ links: ExtensionEventUrls;
678
+ /**
679
+ * Represents the user who initiated the update
680
+ */
681
+ modifiedBy: WebApi.IdentityRef;
682
+ /**
683
+ * The type of update that was made
684
+ */
685
+ updateType: ExtensionUpdateType;
686
+ }
687
+
688
+ /**
689
+ * Base class for an event callback for an extension
690
+ */
691
+ export interface ExtensionEventCallback {
692
+ /**
693
+ * The uri of the endpoint that is hit when an event occurs
694
+ */
695
+ uri: string;
696
+ }
697
+
698
+ /**
699
+ * Collection of event callbacks - endpoints called when particular extension events occur.
700
+ */
701
+ export interface ExtensionEventCallbackCollection {
702
+ /**
703
+ * Optional. Defines an endpoint that gets called via a POST request to notify that an extension disable has occurred.
704
+ */
705
+ postDisable: ExtensionEventCallback;
706
+ /**
707
+ * Optional. Defines an endpoint that gets called via a POST request to notify that an extension enable has occurred.
708
+ */
709
+ postEnable: ExtensionEventCallback;
710
+ /**
711
+ * Optional. Defines an endpoint that gets called via a POST request to notify that an extension install has completed.
712
+ */
713
+ postInstall: ExtensionEventCallback;
714
+ /**
715
+ * Optional. Defines an endpoint that gets called via a POST request to notify that an extension uninstall has occurred.
716
+ */
717
+ postUninstall: ExtensionEventCallback;
718
+ /**
719
+ * Optional. Defines an endpoint that gets called via a POST request to notify that an extension update has occurred.
720
+ */
721
+ postUpdate: ExtensionEventCallback;
722
+ /**
723
+ * Optional. Defines an endpoint that gets called via a POST request to notify that an extension install is about to occur. Response indicates whether to proceed or abort.
724
+ */
725
+ preInstall: ExtensionEventCallback;
726
+ /**
727
+ * For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used
728
+ */
729
+ versionCheck: ExtensionEventCallback;
730
+ }
731
+
732
+ export interface ExtensionEventUrls extends ExtensionUrls {
733
+ /**
734
+ * Url of the extension management page
735
+ */
736
+ manageExtensionsPage: string;
737
+ }
738
+
739
+ /**
740
+ * Set of flags applied to extensions that are relevant to contribution consumers
741
+ */
742
+ export enum ExtensionFlags {
743
+ /**
744
+ * A built-in extension is installed for all VSTS accounts by default
745
+ */
746
+ BuiltIn = 1,
747
+ /**
748
+ * The extension comes from a fully-trusted publisher
749
+ */
750
+ Trusted = 2
751
+ }
752
+
753
+ export interface ExtensionHost {
754
+ id: string;
755
+ name: string;
756
+ }
757
+
758
+ /**
759
+ * How an extension should handle including contributions based on licensing
760
+ */
761
+ export interface ExtensionLicensing {
762
+ /**
763
+ * A list of contributions which deviate from the default licensing behavior
764
+ */
765
+ overrides: LicensingOverride[];
766
+ }
767
+
768
+ /**
769
+ * Base class for extension properties which are shared by the extension manifest and the extension model
770
+ */
771
+ export interface ExtensionManifest {
772
+ /**
773
+ * Uri used as base for other relative uri's defined in extension
774
+ */
775
+ baseUri: string;
776
+ /**
777
+ * List of shared constraints defined by this extension
778
+ */
779
+ constraints: ContributionConstraint[];
780
+ /**
781
+ * List of contributions made by this extension
782
+ */
783
+ contributions: Contribution[];
784
+ /**
785
+ * List of contribution types defined by this extension
786
+ */
787
+ contributionTypes: ContributionType[];
788
+ /**
789
+ * List of explicit demands required by this extension
790
+ */
791
+ demands: string[];
792
+ /**
793
+ * Collection of endpoints that get called when particular extension events occur
794
+ */
795
+ eventCallbacks: ExtensionEventCallbackCollection;
796
+ /**
797
+ * Secondary location that can be used as base for other relative uri's defined in extension
798
+ */
799
+ fallbackBaseUri: string;
800
+ /**
801
+ * Language Culture Name set by the Gallery
802
+ */
803
+ language: string;
804
+ /**
805
+ * How this extension behaves with respect to licensing
806
+ */
807
+ licensing: ExtensionLicensing;
808
+ /**
809
+ * Version of the extension manifest format/content
810
+ */
811
+ manifestVersion: number;
812
+ /**
813
+ * Default user claims applied to all contributions (except the ones which have been specified restrictedTo explicitly) to control the visibility of a contribution.
814
+ */
815
+ restrictedTo: string[];
816
+ /**
817
+ * List of all oauth scopes required by this extension
818
+ */
819
+ scopes: string[];
820
+ /**
821
+ * The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed
822
+ */
823
+ serviceInstanceType: string;
824
+ }
825
+
826
+ /**
827
+ * A request for an extension (to be installed or have a license assigned)
828
+ */
829
+ export interface ExtensionRequest {
830
+ /**
831
+ * Required message supplied if the request is rejected
832
+ */
833
+ rejectMessage: string;
834
+ /**
835
+ * Date at which the request was made
836
+ */
837
+ requestDate: Date;
838
+ /**
839
+ * Represents the user who made the request
840
+ */
841
+ requestedBy: WebApi.IdentityRef;
842
+ /**
843
+ * Optional message supplied by the requester justifying the request
844
+ */
845
+ requestMessage: string;
846
+ /**
847
+ * Represents the state of the request
848
+ */
849
+ requestState: ExtensionRequestState;
850
+ /**
851
+ * Date at which the request was resolved
852
+ */
853
+ resolveDate: Date;
854
+ /**
855
+ * Represents the user who resolved the request
856
+ */
857
+ resolvedBy: WebApi.IdentityRef;
858
+ }
859
+
860
+ export interface ExtensionRequestEvent {
861
+ /**
862
+ * The extension which has been requested
863
+ */
864
+ extension: Gallery.PublishedExtension;
865
+ /**
866
+ * Information about the host for which this extension is requested
867
+ */
868
+ host: ExtensionHost;
869
+ /**
870
+ * Name of the collection for which the extension was requested
871
+ */
872
+ hostName: string;
873
+ /**
874
+ * Gallery host url
875
+ */
876
+ links: ExtensionRequestUrls;
877
+ /**
878
+ * The extension request object
879
+ */
880
+ request: ExtensionRequest;
881
+ /**
882
+ * The type of update that was made
883
+ */
884
+ updateType: ExtensionRequestUpdateType;
885
+ }
886
+
887
+ export interface ExtensionRequestsEvent {
888
+ /**
889
+ * The extension which has been requested
890
+ */
891
+ extension: Gallery.PublishedExtension;
892
+ /**
893
+ * Information about the host for which this extension is requested
894
+ */
895
+ host: ExtensionHost;
896
+ /**
897
+ * Gallery host url
898
+ */
899
+ links: ExtensionRequestUrls;
900
+ /**
901
+ * The extension request object
902
+ */
903
+ requests: ExtensionRequest[];
904
+ /**
905
+ * The type of update that was made
906
+ */
907
+ updateType: ExtensionRequestUpdateType;
908
+ }
909
+
910
+ /**
911
+ * Represents the state of an extension request
912
+ */
913
+ export enum ExtensionRequestState {
914
+ /**
915
+ * The request has been opened, but not yet responded to
916
+ */
917
+ Open = 0,
918
+ /**
919
+ * The request was accepted (extension installed or license assigned)
920
+ */
921
+ Accepted = 1,
922
+ /**
923
+ * The request was rejected (extension not installed or license not assigned)
924
+ */
925
+ Rejected = 2
926
+ }
927
+
928
+ export enum ExtensionRequestUpdateType {
929
+ Created = 1,
930
+ Approved = 2,
931
+ Rejected = 3,
932
+ Deleted = 4
933
+ }
934
+
935
+ export interface ExtensionRequestUrls extends ExtensionUrls {
936
+ /**
937
+ * Link to view the extension request
938
+ */
939
+ requestPage: string;
940
+ }
941
+
942
+ /**
943
+ * The state of an extension
944
+ */
945
+ export interface ExtensionState extends InstalledExtensionState {
946
+ extensionName: string;
947
+ /**
948
+ * The time at which the version was last checked
949
+ */
950
+ lastVersionCheck: Date;
951
+ publisherName: string;
952
+ version: string;
953
+ }
954
+
955
+ /**
956
+ * States of an extension Note: If you add value to this enum, you need to do 2 other things. First add the back compat enum in value src\\Vssf\\Sdk\\Server\\Contributions\\InstalledExtensionMessage.cs. Second, you can not send the new value on the message bus. You need to remove it from the message bus event prior to being sent.
957
+ */
958
+ export enum ExtensionStateFlags {
959
+ /**
960
+ * No flags set
961
+ */
962
+ None = 0,
963
+ /**
964
+ * Extension is disabled
965
+ */
966
+ Disabled = 1,
967
+ /**
968
+ * Extension is a built in
969
+ */
970
+ BuiltIn = 2,
971
+ /**
972
+ * Extension has multiple versions
973
+ */
974
+ MultiVersion = 4,
975
+ /**
976
+ * Extension is not installed. This is for builtin extensions only and can not otherwise be set.
977
+ */
978
+ UnInstalled = 8,
979
+ /**
980
+ * Error performing version check
981
+ */
982
+ VersionCheckError = 16,
983
+ /**
984
+ * Trusted extensions are ones that are given special capabilities. These tend to come from Microsoft and can't be published by the general public. Note: BuiltIn extensions are always trusted.
985
+ */
986
+ Trusted = 32,
987
+ /**
988
+ * Extension is currently in an error state
989
+ */
990
+ Error = 64,
991
+ /**
992
+ * Extension scopes have changed and the extension requires re-authorization
993
+ */
994
+ NeedsReauthorization = 128,
995
+ /**
996
+ * Error performing auto-upgrade. For example, if the new version has demands not supported the extension cannot be auto-upgraded.
997
+ */
998
+ AutoUpgradeError = 256,
999
+ /**
1000
+ * Extension is currently in a warning state, that can cause a degraded experience. The degraded experience can be caused for example by some installation issues detected such as implicit demands not supported.
1001
+ */
1002
+ Warning = 512,
1003
+ /**
1004
+ * Extension is currently unpublished in the marketplace. Extension usage should be reviewed and removed if it is no longer needed
1005
+ */
1006
+ Unpublished = 1024
1007
+ }
1008
+
1009
+ export enum ExtensionUpdateType {
1010
+ Installed = 1,
1011
+ Uninstalled = 2,
1012
+ Enabled = 3,
1013
+ Disabled = 4,
1014
+ VersionUpdated = 5,
1015
+ ActionRequired = 6,
1016
+ ActionResolved = 7
1017
+ }
1018
+
1019
+ export interface ExtensionUrls {
1020
+ /**
1021
+ * Url of the extension icon
1022
+ */
1023
+ extensionIcon: string;
1024
+ /**
1025
+ * Link to view the extension details page
1026
+ */
1027
+ extensionPage: string;
1028
+ }
1029
+
1030
+ /**
1031
+ * Represents a VSTS extension along with its installation state
1032
+ */
1033
+ export interface InstalledExtension extends ExtensionManifest {
1034
+ /**
1035
+ * The friendly extension id for this extension - unique for a given publisher.
1036
+ */
1037
+ extensionId: string;
1038
+ /**
1039
+ * The display name of the extension.
1040
+ */
1041
+ extensionName: string;
1042
+ /**
1043
+ * This is the set of files available from the extension.
1044
+ */
1045
+ files: Gallery.ExtensionFile[];
1046
+ /**
1047
+ * Extension flags relevant to contribution consumers
1048
+ */
1049
+ flags: ExtensionFlags;
1050
+ /**
1051
+ * Information about this particular installation of the extension
1052
+ */
1053
+ installState: InstalledExtensionState;
1054
+ /**
1055
+ * This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension.
1056
+ */
1057
+ lastPublished: Date;
1058
+ /**
1059
+ * Unique id of the publisher of this extension
1060
+ */
1061
+ publisherId: string;
1062
+ /**
1063
+ * The display name of the publisher
1064
+ */
1065
+ publisherName: string;
1066
+ /**
1067
+ * Unique id for this extension (the same id is used for all versions of a single extension)
1068
+ */
1069
+ registrationId: string;
1070
+ /**
1071
+ * Version of this extension
1072
+ */
1073
+ version: string;
1074
+ }
1075
+
1076
+ export interface InstalledExtensionQuery {
1077
+ assetTypes: string[];
1078
+ monikers: Gallery.ExtensionIdentifier[];
1079
+ }
1080
+
1081
+ /**
1082
+ * The state of an installed extension
1083
+ */
1084
+ export interface InstalledExtensionState {
1085
+ /**
1086
+ * States of an installed extension
1087
+ */
1088
+ flags: ExtensionStateFlags;
1089
+ /**
1090
+ * List of installation issues
1091
+ */
1092
+ installationIssues: InstalledExtensionStateIssue[];
1093
+ /**
1094
+ * The time at which this installation was last updated
1095
+ */
1096
+ lastUpdated: Date;
1097
+ }
1098
+
1099
+ /**
1100
+ * Represents an installation issue
1101
+ */
1102
+ export interface InstalledExtensionStateIssue {
1103
+ /**
1104
+ * The error message
1105
+ */
1106
+ message: string;
1107
+ /**
1108
+ * Source of the installation issue, for example "Demands"
1109
+ */
1110
+ source: string;
1111
+ /**
1112
+ * Installation issue type (Warning, Error)
1113
+ */
1114
+ type: InstalledExtensionStateIssueType;
1115
+ }
1116
+
1117
+ /**
1118
+ * Installation issue type (Warning, Error)
1119
+ */
1120
+ export enum InstalledExtensionStateIssueType {
1121
+ /**
1122
+ * Represents an installation warning, for example an implicit demand not supported
1123
+ */
1124
+ Warning = 0,
1125
+ /**
1126
+ * Represents an installation error, for example an explicit demand not supported
1127
+ */
1128
+ Error = 1
1129
+ }
1130
+
1131
+ /**
1132
+ * Maps a contribution to a licensing behavior
1133
+ */
1134
+ export interface LicensingOverride {
1135
+ /**
1136
+ * How the inclusion of this contribution should change based on licensing
1137
+ */
1138
+ behavior: ContributionLicensingBehaviorType;
1139
+ /**
1140
+ * Fully qualified contribution id which we want to define licensing behavior for
1141
+ */
1142
+ id: string;
1143
+ }
1144
+
1145
+ /**
1146
+ * A request for an extension (to be installed or have a license assigned)
1147
+ */
1148
+ export interface RequestedExtension {
1149
+ /**
1150
+ * The unique name of the extension
1151
+ */
1152
+ extensionName: string;
1153
+ /**
1154
+ * A list of each request for the extension
1155
+ */
1156
+ extensionRequests: ExtensionRequest[];
1157
+ /**
1158
+ * DisplayName of the publisher that owns the extension being published.
1159
+ */
1160
+ publisherDisplayName: string;
1161
+ /**
1162
+ * Represents the Publisher of the requested extension
1163
+ */
1164
+ publisherName: string;
1165
+ /**
1166
+ * The total number of requests for an extension
1167
+ */
1168
+ requestCount: number;
1169
+ }
1170
+
1171
+ /**
1172
+ * Entry for a specific data provider's resulting data
1173
+ */
1174
+ export interface ResolvedDataProvider {
1175
+ /**
1176
+ * The total time the data provider took to resolve its data (in milliseconds)
1177
+ */
1178
+ duration: number;
1179
+ error: string;
1180
+ id: string;
1181
+ }
1182
+
1183
+ export interface Scope {
1184
+ description: string;
1185
+ title: string;
1186
+ value: string;
1187
+ }
1188
+
1189
+ /**
1190
+ * Information about the extension
1191
+ */
1192
+ export interface SupportedExtension {
1193
+ /**
1194
+ * Unique Identifier for this extension
1195
+ */
1196
+ extension: string;
1197
+ /**
1198
+ * Unique Identifier for this publisher
1199
+ */
1200
+ publisher: string;
1201
+ /**
1202
+ * Supported version for this extension
1203
+ */
1204
+ version: string;
1205
+ }