azure-devops-extension-api 4.269.1 → 5.271.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 (694) hide show
  1. package/Accounts/Accounts.d.ts +126 -126
  2. package/Accounts/Accounts.js +61 -62
  3. package/Accounts/Accounts.min.js +1 -1
  4. package/Accounts/AccountsClient.d.ts +24 -24
  5. package/Accounts/AccountsClient.js +78 -124
  6. package/Accounts/AccountsClient.min.js +1 -1
  7. package/Accounts/index.d.ts +2 -2
  8. package/Accounts/index.js +18 -9
  9. package/Accounts/index.min.js +1 -1
  10. package/AdvancedSecurity.Reporting/Reporting.d.ts +717 -712
  11. package/AdvancedSecurity.Reporting/Reporting.js +203 -204
  12. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
  13. package/AdvancedSecurity.Reporting/ReportingClient.d.ts +83 -83
  14. package/AdvancedSecurity.Reporting/ReportingClient.js +267 -343
  15. package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
  16. package/Alert/Alert.d.ts +1265 -1245
  17. package/Alert/Alert.js +425 -426
  18. package/Alert/Alert.min.js +1 -1
  19. package/Alert/AlertClient.d.ts +184 -159
  20. package/Alert/AlertClient.js +512 -533
  21. package/Alert/AlertClient.min.js +1 -1
  22. package/Build/Build.d.ts +3318 -3292
  23. package/Build/Build.js +613 -607
  24. package/Build/Build.min.js +1 -1
  25. package/Build/BuildClient.d.ts +842 -820
  26. package/Build/BuildClient.js +2319 -2568
  27. package/Build/BuildClient.min.js +1 -1
  28. package/Build/BuildServices.d.ts +32 -32
  29. package/Build/BuildServices.js +13 -14
  30. package/Build/BuildServices.min.js +1 -1
  31. package/Build/index.d.ts +3 -3
  32. package/Build/index.js +19 -10
  33. package/Build/index.min.js +1 -1
  34. package/Comments/Comments.d.ts +309 -309
  35. package/Comments/Comments.js +93 -94
  36. package/Comments/Comments.min.js +1 -1
  37. package/Comments/index.d.ts +1 -1
  38. package/Comments/index.js +17 -8
  39. package/Comments/index.min.js +1 -1
  40. package/Common/Client.d.ts +9 -9
  41. package/Common/Client.js +25 -26
  42. package/Common/Client.min.js +1 -1
  43. package/Common/CommonServices.d.ts +774 -735
  44. package/Common/CommonServices.js +71 -72
  45. package/Common/CommonServices.min.js +1 -1
  46. package/Common/Context.js +2 -0
  47. package/Common/Fetch.d.ts +95 -95
  48. package/Common/Fetch.js +131 -169
  49. package/Common/Fetch.min.js +1 -1
  50. package/Common/RestClientBase.d.ts +96 -96
  51. package/Common/RestClientBase.js +109 -139
  52. package/Common/RestClientBase.min.js +1 -1
  53. package/Common/System.d.ts +30 -30
  54. package/Common/System.js +39 -40
  55. package/Common/System.min.js +1 -1
  56. package/Common/SystemData.d.ts +129 -129
  57. package/Common/SystemData.js +138 -139
  58. package/Common/SystemData.min.js +1 -1
  59. package/Common/Util/Serialization.d.ts +15 -15
  60. package/Common/Util/Serialization.js +51 -53
  61. package/Common/Util/Serialization.min.js +1 -1
  62. package/Common/Util/Url.d.ts +238 -236
  63. package/Common/Util/Url.js +605 -626
  64. package/Common/Util/Url.min.js +1 -1
  65. package/Common/index.d.ts +3 -3
  66. package/Common/index.js +19 -9
  67. package/Common/index.min.js +1 -1
  68. package/Contributions/Contributions.d.ts +694 -694
  69. package/Contributions/Contributions.js +185 -186
  70. package/Contributions/Contributions.min.js +1 -1
  71. package/Contributions/ContributionsClient.d.ts +31 -31
  72. package/Contributions/ContributionsClient.js +99 -147
  73. package/Contributions/ContributionsClient.min.js +1 -1
  74. package/Contributions/index.d.ts +2 -2
  75. package/Contributions/index.js +18 -9
  76. package/Contributions/index.min.js +1 -1
  77. package/Core/Core.d.ts +546 -546
  78. package/Core/Core.js +79 -80
  79. package/Core/Core.min.js +1 -1
  80. package/Core/CoreClient.d.ts +224 -224
  81. package/Core/CoreClient.js +652 -777
  82. package/Core/CoreClient.min.js +1 -1
  83. package/Core/index.d.ts +2 -2
  84. package/Core/index.js +18 -9
  85. package/Core/index.min.js +1 -1
  86. package/Dashboard/Dashboard.d.ts +393 -393
  87. package/Dashboard/Dashboard.js +56 -57
  88. package/Dashboard/Dashboard.min.js +1 -1
  89. package/Dashboard/DashboardClient.d.ts +106 -106
  90. package/Dashboard/DashboardClient.js +317 -393
  91. package/Dashboard/DashboardClient.min.js +1 -1
  92. package/Dashboard/WidgetConfigHelpers.d.ts +34 -34
  93. package/Dashboard/WidgetConfigHelpers.js +41 -45
  94. package/Dashboard/WidgetConfigHelpers.min.js +1 -1
  95. package/Dashboard/WidgetContracts.d.ts +213 -213
  96. package/Dashboard/WidgetContracts.js +24 -25
  97. package/Dashboard/WidgetContracts.min.js +1 -1
  98. package/Dashboard/WidgetHelpers.d.ts +89 -89
  99. package/Dashboard/WidgetHelpers.js +135 -146
  100. package/Dashboard/WidgetHelpers.min.js +1 -1
  101. package/Dashboard/index.d.ts +5 -5
  102. package/Dashboard/index.js +21 -12
  103. package/Dashboard/index.min.js +1 -1
  104. package/DistributedTaskCommon/DistributedTaskCommon.d.ts +103 -103
  105. package/DistributedTaskCommon/DistributedTaskCommon.js +7 -9
  106. package/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -1
  107. package/DistributedTaskCommon/index.d.ts +1 -1
  108. package/DistributedTaskCommon/index.js +17 -4
  109. package/DistributedTaskCommon/index.min.js +1 -1
  110. package/ExtensionManagement/ExtensionManagement.d.ts +1163 -1163
  111. package/ExtensionManagement/ExtensionManagement.js +284 -285
  112. package/ExtensionManagement/ExtensionManagement.min.js +1 -1
  113. package/ExtensionManagement/ExtensionManagementClient.d.ts +191 -191
  114. package/ExtensionManagement/ExtensionManagementClient.js +551 -648
  115. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  116. package/ExtensionManagement/index.d.ts +2 -2
  117. package/ExtensionManagement/index.js +18 -9
  118. package/ExtensionManagement/index.min.js +1 -1
  119. package/Favorite/Favorite.d.ts +124 -124
  120. package/Favorite/Favorite.js +7 -9
  121. package/Favorite/Favorite.min.js +1 -1
  122. package/Favorite/FavoriteClient.d.ts +78 -78
  123. package/Favorite/FavoriteClient.js +247 -314
  124. package/Favorite/FavoriteClient.min.js +1 -1
  125. package/FeatureAvailability/FeatureAvailability.d.ts +13 -13
  126. package/FeatureAvailability/FeatureAvailability.js +7 -9
  127. package/FeatureAvailability/FeatureAvailability.min.js +1 -1
  128. package/FeatureAvailability/FeatureAvailabilityClient.d.ts +45 -45
  129. package/FeatureAvailability/FeatureAvailabilityClient.js +136 -189
  130. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  131. package/FeatureAvailability/index.d.ts +2 -2
  132. package/FeatureAvailability/index.js +18 -8
  133. package/FeatureAvailability/index.min.js +1 -1
  134. package/FeatureManagement/FeatureManagement.d.ts +161 -161
  135. package/FeatureManagement/FeatureManagement.js +26 -27
  136. package/FeatureManagement/FeatureManagement.min.js +1 -1
  137. package/FeatureManagement/FeatureManagementClient.d.ts +78 -78
  138. package/FeatureManagement/FeatureManagementClient.js +214 -273
  139. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  140. package/FeatureManagement/index.d.ts +2 -2
  141. package/FeatureManagement/index.js +18 -9
  142. package/FeatureManagement/index.min.js +1 -1
  143. package/FileContainer/FileContainer.d.ts +193 -193
  144. package/FileContainer/FileContainer.js +58 -59
  145. package/FileContainer/FileContainer.min.js +1 -1
  146. package/FileContainer/FileContainerClient.d.ts +47 -47
  147. package/FileContainer/FileContainerClient.js +132 -182
  148. package/FileContainer/FileContainerClient.min.js +1 -1
  149. package/FileContainer/index.d.ts +2 -2
  150. package/FileContainer/index.js +18 -9
  151. package/FileContainer/index.min.js +1 -1
  152. package/FormInput/FormInput.d.ts +278 -278
  153. package/FormInput/FormInput.js +77 -78
  154. package/FormInput/FormInput.min.js +1 -1
  155. package/FormInput/index.d.ts +1 -1
  156. package/FormInput/index.js +17 -8
  157. package/FormInput/index.min.js +1 -1
  158. package/Gallery/Gallery.d.ts +1911 -1911
  159. package/Gallery/Gallery.js +788 -789
  160. package/Gallery/Gallery.min.js +1 -1
  161. package/Gallery/GalleryClient.d.ts +613 -603
  162. package/Gallery/GalleryClient.js +1884 -2100
  163. package/Gallery/GalleryClient.min.js +1 -1
  164. package/Gallery/index.d.ts +2 -2
  165. package/Gallery/index.js +18 -9
  166. package/Gallery/index.min.js +1 -1
  167. package/Git/CodeEditorTypes.d.ts +305 -305
  168. package/Git/CodeEditorTypes.js +27 -28
  169. package/Git/CodeEditorTypes.min.js +1 -1
  170. package/Git/Git.d.ts +3976 -3888
  171. package/Git/Git.js +830 -817
  172. package/Git/Git.min.js +1 -1
  173. package/Git/GitClient.d.ts +1468 -1454
  174. package/Git/GitClient.js +3892 -4313
  175. package/Git/GitClient.min.js +1 -1
  176. package/Git/GitServices.d.ts +16 -16
  177. package/Git/GitServices.js +10 -11
  178. package/Git/GitServices.min.js +1 -1
  179. package/Git/index.d.ts +4 -4
  180. package/Git/index.js +20 -11
  181. package/Git/index.min.js +1 -1
  182. package/Graph/Graph.d.ts +518 -518
  183. package/Graph/Graph.js +14 -15
  184. package/Graph/Graph.min.js +1 -1
  185. package/Graph/GraphClient.d.ts +261 -261
  186. package/Graph/GraphClient.js +737 -867
  187. package/Graph/GraphClient.min.js +1 -1
  188. package/Graph/index.d.ts +2 -2
  189. package/Graph/index.js +18 -9
  190. package/Graph/index.min.js +1 -1
  191. package/Identities/Identities.d.ts +242 -241
  192. package/Identities/Identities.js +49 -50
  193. package/Identities/Identities.min.js +1 -1
  194. package/Identities/IdentityProvider.d.ts +40 -40
  195. package/Identities/IdentityProvider.js +47 -49
  196. package/Identities/IdentityProvider.min.js +1 -1
  197. package/Identities/IdentityService.d.ts +72 -72
  198. package/Identities/IdentityService.js +13 -14
  199. package/Identities/IdentityService.min.js +1 -1
  200. package/Identities/index.d.ts +3 -3
  201. package/Identities/index.js +19 -10
  202. package/Identities/index.min.js +1 -1
  203. package/Locations/Locations.d.ts +150 -150
  204. package/Locations/Locations.js +28 -29
  205. package/Locations/Locations.min.js +1 -1
  206. package/Locations/LocationsClient.d.ts +65 -65
  207. package/Locations/LocationsClient.js +211 -276
  208. package/Locations/LocationsClient.min.js +1 -1
  209. package/Locations/index.d.ts +2 -2
  210. package/Locations/index.js +18 -9
  211. package/Locations/index.min.js +1 -1
  212. package/Management/Management.d.ts +424 -407
  213. package/Management/Management.js +27 -28
  214. package/Management/Management.min.js +1 -1
  215. package/Management/ManagementClient.d.ts +116 -105
  216. package/Management/ManagementClient.js +349 -398
  217. package/Management/ManagementClient.min.js +1 -1
  218. package/Notification/Notification.d.ts +1387 -1387
  219. package/Notification/Notification.js +385 -386
  220. package/Notification/Notification.min.js +1 -1
  221. package/Notification/NotificationClient.d.ts +149 -149
  222. package/Notification/NotificationClient.js +420 -511
  223. package/Notification/NotificationClient.min.js +1 -1
  224. package/Notification/index.d.ts +2 -2
  225. package/Notification/index.js +18 -9
  226. package/Notification/index.min.js +1 -1
  227. package/Operations/Operations.d.ts +77 -77
  228. package/Operations/Operations.js +38 -39
  229. package/Operations/Operations.min.js +1 -1
  230. package/Operations/OperationsClient.d.ts +13 -13
  231. package/Operations/OperationsClient.js +45 -86
  232. package/Operations/OperationsClient.min.js +1 -1
  233. package/Operations/index.d.ts +2 -2
  234. package/Operations/index.js +18 -9
  235. package/Operations/index.min.js +1 -1
  236. package/Pipelines/Pipelines.d.ts +341 -341
  237. package/Pipelines/Pipelines.js +82 -83
  238. package/Pipelines/Pipelines.min.js +1 -1
  239. package/Pipelines/PipelinesClient.d.ts +92 -92
  240. package/Pipelines/PipelinesClient.js +260 -325
  241. package/Pipelines/PipelinesClient.min.js +1 -1
  242. package/Policy/Policy.d.ts +160 -160
  243. package/Policy/Policy.js +38 -39
  244. package/Policy/Policy.min.js +1 -1
  245. package/Policy/PolicyClient.d.ts +99 -99
  246. package/Policy/PolicyClient.js +274 -346
  247. package/Policy/PolicyClient.min.js +1 -1
  248. package/Policy/index.d.ts +2 -2
  249. package/Policy/index.js +18 -9
  250. package/Policy/index.min.js +1 -1
  251. package/Profile/Profile.d.ts +175 -175
  252. package/Profile/Profile.js +35 -36
  253. package/Profile/Profile.min.js +1 -1
  254. package/Profile/ProfileClient.d.ts +86 -86
  255. package/Profile/ProfileClient.js +277 -347
  256. package/Profile/ProfileClient.min.js +1 -1
  257. package/Profile/index.d.ts +2 -2
  258. package/Profile/index.js +18 -9
  259. package/Profile/index.min.js +1 -1
  260. package/ProjectAnalysis/ProjectAnalysis.d.ts +59 -59
  261. package/ProjectAnalysis/ProjectAnalysis.js +18 -19
  262. package/ProjectAnalysis/ProjectAnalysis.min.js +1 -1
  263. package/ProjectAnalysis/ProjectAnalysisClient.d.ts +34 -34
  264. package/ProjectAnalysis/ProjectAnalysisClient.js +110 -159
  265. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  266. package/ProjectAnalysis/index.d.ts +2 -2
  267. package/ProjectAnalysis/index.js +18 -9
  268. package/ProjectAnalysis/index.min.js +1 -1
  269. package/README.md +57 -1
  270. package/Release/Release.d.ts +4068 -4068
  271. package/Release/Release.js +876 -877
  272. package/Release/Release.min.js +1 -1
  273. package/Release/ReleaseClient.d.ts +720 -720
  274. package/Release/ReleaseClient.js +2003 -2273
  275. package/Release/ReleaseClient.min.js +1 -1
  276. package/Release/index.d.ts +2 -2
  277. package/Release/index.js +18 -9
  278. package/Release/index.min.js +1 -1
  279. package/ResourceUsage/ResourceUsage.d.ts +13 -13
  280. package/ResourceUsage/ResourceUsage.js +7 -9
  281. package/ResourceUsage/ResourceUsage.min.js +1 -1
  282. package/ResourceUsage/ResourceUsageClient.d.ts +20 -20
  283. package/ResourceUsage/ResourceUsageClient.js +51 -93
  284. package/ResourceUsage/ResourceUsageClient.min.js +1 -1
  285. package/ServiceEndpoint/ServiceEndpoint.d.ts +894 -894
  286. package/ServiceEndpoint/ServiceEndpoint.js +84 -85
  287. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  288. package/ServiceEndpoint/ServiceEndpointClient.d.ts +190 -190
  289. package/ServiceEndpoint/ServiceEndpointClient.js +556 -669
  290. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  291. package/ServiceEndpoint/index.d.ts +2 -2
  292. package/ServiceEndpoint/index.js +18 -9
  293. package/ServiceEndpoint/index.min.js +1 -1
  294. package/ServiceHooks/ServiceHooks.d.ts +758 -758
  295. package/ServiceHooks/ServiceHooks.js +114 -115
  296. package/ServiceHooks/ServiceHooks.min.js +1 -1
  297. package/ServiceHooks/ServiceHooksClient.d.ts +156 -156
  298. package/ServiceHooks/ServiceHooksClient.js +434 -526
  299. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  300. package/ServiceHooks/index.d.ts +2 -2
  301. package/ServiceHooks/index.js +18 -9
  302. package/ServiceHooks/index.min.js +1 -1
  303. package/TaskAgent/TaskAgent.d.ts +3777 -3764
  304. package/TaskAgent/TaskAgent.js +594 -594
  305. package/TaskAgent/TaskAgent.min.js +1 -1
  306. package/TaskAgent/TaskAgentClient.d.ts +1085 -1073
  307. package/TaskAgent/TaskAgentClient.js +3273 -3731
  308. package/TaskAgent/TaskAgentClient.min.js +1 -1
  309. package/TaskAgent/index.d.ts +2 -2
  310. package/TaskAgent/index.js +18 -9
  311. package/TaskAgent/index.min.js +1 -1
  312. package/Test/Test.d.ts +5918 -5874
  313. package/Test/Test.js +1068 -1069
  314. package/Test/Test.min.js +1 -1
  315. package/Test/TestClient.d.ts +635 -635
  316. package/Test/TestClient.js +1822 -2088
  317. package/Test/TestClient.min.js +1 -1
  318. package/Test/index.d.ts +2 -2
  319. package/Test/index.js +18 -9
  320. package/Test/index.min.js +1 -1
  321. package/TestPlan/TestPlan.d.ts +1616 -1616
  322. package/TestPlan/TestPlan.js +270 -271
  323. package/TestPlan/TestPlan.min.js +1 -1
  324. package/TestPlan/TestPlanClient.d.ts +408 -408
  325. package/TestPlan/TestPlanClient.js +1160 -1387
  326. package/TestPlan/TestPlanClient.min.js +1 -1
  327. package/TestPlan/index.d.ts +2 -2
  328. package/TestPlan/index.js +18 -9
  329. package/TestPlan/index.min.js +1 -1
  330. package/TestResults/TestResults.d.ts +5 -5
  331. package/TestResults/TestResults.js +7 -9
  332. package/TestResults/TestResults.min.js +1 -1
  333. package/TestResults/TestResultsClient.d.ts +1060 -1039
  334. package/TestResults/TestResultsClient.js +3099 -3491
  335. package/TestResults/TestResultsClient.min.js +1 -1
  336. package/TestResults/index.d.ts +2 -2
  337. package/TestResults/index.js +18 -8
  338. package/TestResults/index.min.js +1 -1
  339. package/Tfvc/Tfvc.d.ts +730 -730
  340. package/Tfvc/Tfvc.js +106 -107
  341. package/Tfvc/Tfvc.min.js +1 -1
  342. package/Tfvc/TfvcClient.d.ts +227 -227
  343. package/Tfvc/TfvcClient.js +620 -732
  344. package/Tfvc/TfvcClient.min.js +1 -1
  345. package/Tfvc/index.d.ts +2 -2
  346. package/Tfvc/index.js +18 -9
  347. package/Tfvc/index.min.js +1 -1
  348. package/WebApi/WebApi.d.ts +408 -408
  349. package/WebApi/WebApi.js +55 -56
  350. package/WebApi/WebApi.min.js +1 -1
  351. package/WebApi/index.d.ts +1 -1
  352. package/WebApi/index.js +17 -8
  353. package/WebApi/index.min.js +1 -1
  354. package/Wiki/Wiki.d.ts +328 -328
  355. package/Wiki/Wiki.js +22 -23
  356. package/Wiki/Wiki.min.js +1 -1
  357. package/Wiki/WikiClient.d.ts +218 -218
  358. package/Wiki/WikiClient.js +585 -684
  359. package/Wiki/WikiClient.min.js +1 -1
  360. package/Wiki/index.d.ts +2 -2
  361. package/Wiki/index.js +18 -9
  362. package/Wiki/index.min.js +1 -1
  363. package/Work/Work.d.ts +1298 -1298
  364. package/Work/Work.js +187 -188
  365. package/Work/Work.min.js +1 -1
  366. package/Work/WorkClient.d.ts +421 -421
  367. package/Work/WorkClient.js +1255 -1455
  368. package/Work/WorkClient.min.js +1 -1
  369. package/Work/index.d.ts +2 -2
  370. package/Work/index.js +18 -9
  371. package/Work/index.min.js +1 -1
  372. package/WorkItemTracking/WorkItemTracking.d.ts +2158 -2124
  373. package/WorkItemTracking/WorkItemTracking.js +431 -432
  374. package/WorkItemTracking/WorkItemTracking.min.js +1 -1
  375. package/WorkItemTracking/WorkItemTrackingClient.d.ts +624 -624
  376. package/WorkItemTracking/WorkItemTrackingClient.js +1688 -1918
  377. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  378. package/WorkItemTracking/WorkItemTrackingServices.d.ts +320 -320
  379. package/WorkItemTracking/WorkItemTrackingServices.js +18 -19
  380. package/WorkItemTracking/WorkItemTrackingServices.min.js +1 -1
  381. package/WorkItemTracking/index.d.ts +3 -3
  382. package/WorkItemTracking/index.js +19 -10
  383. package/WorkItemTracking/index.min.js +1 -1
  384. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +1238 -1238
  385. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +299 -300
  386. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  387. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +462 -462
  388. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1224 -1386
  389. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  390. package/WorkItemTrackingProcess/index.d.ts +2 -2
  391. package/WorkItemTrackingProcess/index.js +18 -9
  392. package/WorkItemTrackingProcess/index.min.js +1 -1
  393. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +575 -575
  394. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +96 -97
  395. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -1
  396. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +376 -376
  397. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +991 -1126
  398. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  399. package/WorkItemTrackingProcessDefinitions/index.d.ts +2 -2
  400. package/WorkItemTrackingProcessDefinitions/index.js +18 -9
  401. package/WorkItemTrackingProcessDefinitions/index.min.js +1 -1
  402. package/_manifest/Spdx2xVs3xComparisonToolOutput.json +33 -0
  403. package/_manifest/spdx_2.2/ESRPClientLogs0504231512019.json +1 -0
  404. package/_manifest/spdx_2.2/bsi.cose +0 -0
  405. package/_manifest/spdx_2.2/bsi.json +1 -1
  406. package/_manifest/spdx_2.2/manifest.cat +0 -0
  407. package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  408. package/_manifest/spdx_2.2/manifest.spdx.json +1 -1
  409. package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
  410. package/_manifest/spdx_3.0/manifest.spdx.json +1 -1
  411. package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +1 -1
  412. package/esm/Accounts/Accounts.js +58 -0
  413. package/esm/Accounts/Accounts.min.js +1 -0
  414. package/esm/Accounts/AccountsClient.js +59 -0
  415. package/esm/Accounts/AccountsClient.min.js +1 -0
  416. package/esm/Accounts/index.js +2 -0
  417. package/esm/Accounts/index.min.js +1 -0
  418. package/esm/AdvancedSecurity.Reporting/Reporting.js +200 -0
  419. package/esm/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  420. package/esm/AdvancedSecurity.Reporting/ReportingClient.js +228 -0
  421. package/esm/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -0
  422. package/esm/Alert/Alert.js +422 -0
  423. package/esm/Alert/Alert.min.js +1 -0
  424. package/esm/Alert/AlertClient.js +457 -0
  425. package/esm/Alert/AlertClient.min.js +1 -0
  426. package/esm/Build/Build.js +610 -0
  427. package/esm/Build/Build.min.js +1 -0
  428. package/esm/Build/BuildClient.js +2108 -0
  429. package/esm/Build/BuildClient.min.js +1 -0
  430. package/esm/Build/BuildServices.js +10 -0
  431. package/esm/Build/BuildServices.min.js +1 -0
  432. package/esm/Build/index.js +3 -0
  433. package/esm/Build/index.min.js +1 -0
  434. package/esm/Comments/Comments.js +90 -0
  435. package/esm/Comments/Comments.min.js +1 -0
  436. package/esm/Comments/index.js +1 -0
  437. package/esm/Comments/index.min.js +1 -0
  438. package/esm/Common/Client.js +22 -0
  439. package/esm/Common/Client.min.js +1 -0
  440. package/esm/Common/CommonServices.js +68 -0
  441. package/esm/Common/CommonServices.min.js +1 -0
  442. package/esm/Common/Context.js +1 -0
  443. package/esm/Common/Fetch.js +117 -0
  444. package/esm/Common/Fetch.min.js +1 -0
  445. package/esm/Common/RestClientBase.js +92 -0
  446. package/esm/Common/RestClientBase.min.js +1 -0
  447. package/esm/Common/System.js +36 -0
  448. package/esm/Common/System.min.js +1 -0
  449. package/esm/Common/SystemData.js +135 -0
  450. package/esm/Common/SystemData.min.js +1 -0
  451. package/esm/Common/Util/Serialization.js +48 -0
  452. package/esm/Common/Util/Serialization.min.js +1 -0
  453. package/esm/Common/Util/Url.js +595 -0
  454. package/esm/Common/Util/Url.min.js +1 -0
  455. package/esm/Common/index.js +3 -0
  456. package/esm/Common/index.min.js +1 -0
  457. package/esm/Contributions/Contributions.js +182 -0
  458. package/esm/Contributions/Contributions.min.js +1 -0
  459. package/esm/Contributions/ContributionsClient.js +78 -0
  460. package/esm/Contributions/ContributionsClient.min.js +1 -0
  461. package/esm/Contributions/index.js +2 -0
  462. package/esm/Contributions/index.min.js +1 -0
  463. package/esm/Core/Core.js +76 -0
  464. package/esm/Core/Core.min.js +1 -0
  465. package/esm/Core/CoreClient.js +573 -0
  466. package/esm/Core/CoreClient.min.js +1 -0
  467. package/esm/Core/index.js +2 -0
  468. package/esm/Core/index.min.js +1 -0
  469. package/esm/Dashboard/Dashboard.js +53 -0
  470. package/esm/Dashboard/Dashboard.min.js +1 -0
  471. package/esm/Dashboard/DashboardClient.js +278 -0
  472. package/esm/Dashboard/DashboardClient.min.js +1 -0
  473. package/esm/Dashboard/WidgetConfigHelpers.js +37 -0
  474. package/esm/Dashboard/WidgetConfigHelpers.min.js +1 -0
  475. package/esm/Dashboard/WidgetContracts.js +21 -0
  476. package/esm/Dashboard/WidgetContracts.min.js +1 -0
  477. package/esm/Dashboard/WidgetHelpers.js +129 -0
  478. package/esm/Dashboard/WidgetHelpers.min.js +1 -0
  479. package/esm/Dashboard/index.js +5 -0
  480. package/esm/Dashboard/index.min.js +1 -0
  481. package/esm/DistributedTaskCommon/DistributedTaskCommon.js +6 -0
  482. package/esm/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -0
  483. package/esm/DistributedTaskCommon/index.js +1 -0
  484. package/esm/DistributedTaskCommon/index.min.js +1 -0
  485. package/esm/ExtensionManagement/ExtensionManagement.js +281 -0
  486. package/esm/ExtensionManagement/ExtensionManagement.min.js +1 -0
  487. package/esm/ExtensionManagement/ExtensionManagementClient.js +486 -0
  488. package/esm/ExtensionManagement/ExtensionManagementClient.min.js +1 -0
  489. package/esm/ExtensionManagement/index.js +2 -0
  490. package/esm/ExtensionManagement/index.min.js +1 -0
  491. package/esm/Favorite/Favorite.js +6 -0
  492. package/esm/Favorite/Favorite.min.js +1 -0
  493. package/esm/Favorite/FavoriteClient.js +214 -0
  494. package/esm/Favorite/FavoriteClient.min.js +1 -0
  495. package/esm/FeatureAvailability/FeatureAvailability.js +6 -0
  496. package/esm/FeatureAvailability/FeatureAvailability.min.js +1 -0
  497. package/esm/FeatureAvailability/FeatureAvailabilityClient.js +113 -0
  498. package/esm/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -0
  499. package/esm/FeatureAvailability/index.js +2 -0
  500. package/esm/FeatureAvailability/index.min.js +1 -0
  501. package/esm/FeatureManagement/FeatureManagement.js +23 -0
  502. package/esm/FeatureManagement/FeatureManagement.min.js +1 -0
  503. package/esm/FeatureManagement/FeatureManagementClient.js +183 -0
  504. package/esm/FeatureManagement/FeatureManagementClient.min.js +1 -0
  505. package/esm/FeatureManagement/index.js +2 -0
  506. package/esm/FeatureManagement/index.min.js +1 -0
  507. package/esm/FileContainer/FileContainer.js +55 -0
  508. package/esm/FileContainer/FileContainer.min.js +1 -0
  509. package/esm/FileContainer/FileContainerClient.js +111 -0
  510. package/esm/FileContainer/FileContainerClient.min.js +1 -0
  511. package/esm/FileContainer/index.js +2 -0
  512. package/esm/FileContainer/index.min.js +1 -0
  513. package/esm/FormInput/FormInput.js +74 -0
  514. package/esm/FormInput/FormInput.min.js +1 -0
  515. package/esm/FormInput/index.js +1 -0
  516. package/esm/FormInput/index.min.js +1 -0
  517. package/esm/Gallery/Gallery.js +785 -0
  518. package/esm/Gallery/Gallery.min.js +1 -0
  519. package/esm/Gallery/GalleryClient.js +1701 -0
  520. package/esm/Gallery/GalleryClient.min.js +1 -0
  521. package/esm/Gallery/index.js +2 -0
  522. package/esm/Gallery/index.min.js +1 -0
  523. package/esm/Git/CodeEditorTypes.js +24 -0
  524. package/esm/Git/CodeEditorTypes.min.js +1 -0
  525. package/esm/Git/Git.js +827 -0
  526. package/esm/Git/Git.min.js +1 -0
  527. package/esm/Git/GitClient.js +3571 -0
  528. package/esm/Git/GitClient.min.js +1 -0
  529. package/esm/Git/GitServices.js +7 -0
  530. package/esm/Git/GitServices.min.js +1 -0
  531. package/esm/Git/index.js +4 -0
  532. package/esm/Git/index.min.js +1 -0
  533. package/esm/Graph/Graph.js +11 -0
  534. package/esm/Graph/Graph.min.js +1 -0
  535. package/esm/Graph/GraphClient.js +644 -0
  536. package/esm/Graph/GraphClient.min.js +1 -0
  537. package/esm/Graph/index.js +2 -0
  538. package/esm/Graph/index.min.js +1 -0
  539. package/esm/Identities/Identities.js +46 -0
  540. package/esm/Identities/Identities.min.js +1 -0
  541. package/esm/Identities/IdentityProvider.js +43 -0
  542. package/esm/Identities/IdentityProvider.min.js +1 -0
  543. package/esm/Identities/IdentityService.js +10 -0
  544. package/esm/Identities/IdentityService.min.js +1 -0
  545. package/esm/Identities/index.js +3 -0
  546. package/esm/Identities/index.min.js +1 -0
  547. package/esm/Locations/Locations.js +25 -0
  548. package/esm/Locations/Locations.min.js +1 -0
  549. package/esm/Locations/LocationsClient.js +178 -0
  550. package/esm/Locations/LocationsClient.min.js +1 -0
  551. package/esm/Locations/index.js +2 -0
  552. package/esm/Locations/index.min.js +1 -0
  553. package/esm/Management/Management.js +24 -0
  554. package/esm/Management/Management.min.js +1 -0
  555. package/esm/Management/ManagementClient.js +302 -0
  556. package/esm/Management/ManagementClient.min.js +1 -0
  557. package/esm/Notification/Notification.js +382 -0
  558. package/esm/Notification/Notification.min.js +1 -0
  559. package/esm/Notification/NotificationClient.js +359 -0
  560. package/esm/Notification/NotificationClient.min.js +1 -0
  561. package/esm/Notification/index.js +2 -0
  562. package/esm/Notification/index.min.js +1 -0
  563. package/esm/Operations/Operations.js +35 -0
  564. package/esm/Operations/Operations.min.js +1 -0
  565. package/esm/Operations/OperationsClient.js +30 -0
  566. package/esm/Operations/OperationsClient.min.js +1 -0
  567. package/esm/Operations/index.js +2 -0
  568. package/esm/Operations/index.min.js +1 -0
  569. package/esm/Pipelines/Pipelines.js +79 -0
  570. package/esm/Pipelines/Pipelines.min.js +1 -0
  571. package/esm/Pipelines/PipelinesClient.js +227 -0
  572. package/esm/Pipelines/PipelinesClient.min.js +1 -0
  573. package/esm/Policy/Policy.js +35 -0
  574. package/esm/Policy/Policy.min.js +1 -0
  575. package/esm/Policy/PolicyClient.js +237 -0
  576. package/esm/Policy/PolicyClient.min.js +1 -0
  577. package/esm/Policy/index.js +2 -0
  578. package/esm/Policy/index.min.js +1 -0
  579. package/esm/Profile/Profile.js +32 -0
  580. package/esm/Profile/Profile.min.js +1 -0
  581. package/esm/Profile/ProfileClient.js +240 -0
  582. package/esm/Profile/ProfileClient.min.js +1 -0
  583. package/esm/Profile/index.js +2 -0
  584. package/esm/Profile/index.min.js +1 -0
  585. package/esm/ProjectAnalysis/ProjectAnalysis.js +15 -0
  586. package/esm/ProjectAnalysis/ProjectAnalysis.min.js +1 -0
  587. package/esm/ProjectAnalysis/ProjectAnalysisClient.js +89 -0
  588. package/esm/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -0
  589. package/esm/ProjectAnalysis/index.js +2 -0
  590. package/esm/ProjectAnalysis/index.min.js +1 -0
  591. package/esm/Release/Release.js +873 -0
  592. package/esm/Release/Release.min.js +1 -0
  593. package/esm/Release/ReleaseClient.js +1816 -0
  594. package/esm/Release/ReleaseClient.min.js +1 -0
  595. package/esm/Release/index.js +2 -0
  596. package/esm/Release/index.min.js +1 -0
  597. package/esm/ResourceUsage/ResourceUsage.js +6 -0
  598. package/esm/ResourceUsage/ResourceUsage.min.js +1 -0
  599. package/esm/ResourceUsage/ResourceUsageClient.js +34 -0
  600. package/esm/ResourceUsage/ResourceUsageClient.min.js +1 -0
  601. package/esm/ServiceEndpoint/ServiceEndpoint.js +81 -0
  602. package/esm/ServiceEndpoint/ServiceEndpoint.min.js +1 -0
  603. package/esm/ServiceEndpoint/ServiceEndpointClient.js +489 -0
  604. package/esm/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
  605. package/esm/ServiceEndpoint/index.js +2 -0
  606. package/esm/ServiceEndpoint/index.min.js +1 -0
  607. package/esm/ServiceHooks/ServiceHooks.js +111 -0
  608. package/esm/ServiceHooks/ServiceHooks.min.js +1 -0
  609. package/esm/ServiceHooks/ServiceHooksClient.js +375 -0
  610. package/esm/ServiceHooks/ServiceHooksClient.min.js +1 -0
  611. package/esm/ServiceHooks/index.js +2 -0
  612. package/esm/ServiceHooks/index.min.js +1 -0
  613. package/esm/TaskAgent/TaskAgent.js +590 -0
  614. package/esm/TaskAgent/TaskAgent.min.js +1 -0
  615. package/esm/TaskAgent/TaskAgentClient.js +2946 -0
  616. package/esm/TaskAgent/TaskAgentClient.min.js +1 -0
  617. package/esm/TaskAgent/index.js +2 -0
  618. package/esm/TaskAgent/index.min.js +1 -0
  619. package/esm/Test/Test.js +1065 -0
  620. package/esm/Test/Test.min.js +1 -0
  621. package/esm/Test/TestClient.js +1655 -0
  622. package/esm/Test/TestClient.min.js +1 -0
  623. package/esm/Test/index.js +2 -0
  624. package/esm/Test/index.min.js +1 -0
  625. package/esm/TestPlan/TestPlan.js +267 -0
  626. package/esm/TestPlan/TestPlan.min.js +1 -0
  627. package/esm/TestPlan/TestPlanClient.js +1051 -0
  628. package/esm/TestPlan/TestPlanClient.min.js +1 -0
  629. package/esm/TestPlan/index.js +2 -0
  630. package/esm/TestPlan/index.min.js +1 -0
  631. package/esm/TestResults/TestResults.js +6 -0
  632. package/esm/TestResults/TestResults.min.js +1 -0
  633. package/esm/TestResults/TestResultsClient.js +2822 -0
  634. package/esm/TestResults/TestResultsClient.min.js +1 -0
  635. package/esm/TestResults/index.js +2 -0
  636. package/esm/TestResults/index.min.js +1 -0
  637. package/esm/Tfvc/Tfvc.js +103 -0
  638. package/esm/Tfvc/Tfvc.min.js +1 -0
  639. package/esm/Tfvc/TfvcClient.js +559 -0
  640. package/esm/Tfvc/TfvcClient.min.js +1 -0
  641. package/esm/Tfvc/index.js +2 -0
  642. package/esm/Tfvc/index.min.js +1 -0
  643. package/esm/WebApi/WebApi.js +52 -0
  644. package/esm/WebApi/WebApi.min.js +1 -0
  645. package/esm/WebApi/index.js +1 -0
  646. package/esm/WebApi/index.min.js +1 -0
  647. package/esm/Wiki/Wiki.js +19 -0
  648. package/esm/Wiki/Wiki.min.js +1 -0
  649. package/esm/Wiki/WikiClient.js +528 -0
  650. package/esm/Wiki/WikiClient.min.js +1 -0
  651. package/esm/Wiki/index.js +2 -0
  652. package/esm/Wiki/index.min.js +1 -0
  653. package/esm/Work/Work.js +184 -0
  654. package/esm/Work/Work.min.js +1 -0
  655. package/esm/Work/WorkClient.js +1128 -0
  656. package/esm/Work/WorkClient.min.js +1 -0
  657. package/esm/Work/index.js +2 -0
  658. package/esm/Work/index.min.js +1 -0
  659. package/esm/WorkItemTracking/WorkItemTracking.js +428 -0
  660. package/esm/WorkItemTracking/WorkItemTracking.min.js +1 -0
  661. package/esm/WorkItemTracking/WorkItemTrackingClient.js +1525 -0
  662. package/esm/WorkItemTracking/WorkItemTrackingClient.min.js +1 -0
  663. package/esm/WorkItemTracking/WorkItemTrackingServices.js +15 -0
  664. package/esm/WorkItemTracking/WorkItemTrackingServices.min.js +1 -0
  665. package/esm/WorkItemTracking/index.js +3 -0
  666. package/esm/WorkItemTracking/index.min.js +1 -0
  667. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.js +296 -0
  668. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -0
  669. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1097 -0
  670. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -0
  671. package/esm/WorkItemTrackingProcess/index.js +2 -0
  672. package/esm/WorkItemTrackingProcess/index.min.js +1 -0
  673. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +93 -0
  674. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -0
  675. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +886 -0
  676. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -0
  677. package/esm/WorkItemTrackingProcessDefinitions/index.js +2 -0
  678. package/esm/WorkItemTrackingProcessDefinitions/index.min.js +1 -0
  679. package/esm/index.js +1 -0
  680. package/esm/index.min.js +1 -0
  681. package/index.d.ts +1 -1
  682. package/index.js +17 -8
  683. package/index.min.js +1 -1
  684. package/package.json +232 -37
  685. package/Boards/Boards.d.ts +0 -631
  686. package/Boards/Boards.js +0 -26
  687. package/Boards/Boards.min.js +0 -1
  688. package/Boards/BoardsClient.d.ts +0 -187
  689. package/Boards/BoardsClient.js +0 -589
  690. package/Boards/BoardsClient.min.js +0 -1
  691. package/Boards/index.d.ts +0 -2
  692. package/Boards/index.js +0 -9
  693. package/Boards/index.min.js +0 -1
  694. package/_manifest/spdx_2.2/ESRPClientLogs0305214508957.json +0 -1
@@ -1,1911 +1,1911 @@
1
- import * as WebApi from "../WebApi/WebApi";
2
- /**
3
- * How the acquisition is assigned
4
- */
5
- export declare enum AcquisitionAssignmentType {
6
- None = 0,
7
- /**
8
- * Just assign for me
9
- */
10
- Me = 1,
11
- /**
12
- * Assign for all users in the account
13
- */
14
- All = 2
15
- }
16
- export interface AcquisitionOperation {
17
- /**
18
- * State of the AcquisitionOperation for the current user
19
- */
20
- operationState: AcquisitionOperationState;
21
- /**
22
- * AcquisitionOperationType: install, request, buy, etc...
23
- */
24
- operationType: AcquisitionOperationType;
25
- /**
26
- * Optional reason to justify current state. Typically used with Disallow state.
27
- */
28
- reason: string;
29
- }
30
- export declare enum AcquisitionOperationState {
31
- /**
32
- * Not allowed to use this AcquisitionOperation
33
- */
34
- Disallow = 0,
35
- /**
36
- * Allowed to use this AcquisitionOperation
37
- */
38
- Allow = 1,
39
- /**
40
- * Operation has already been completed and is no longer available
41
- */
42
- Completed = 3
43
- }
44
- /**
45
- * Set of different types of operations that can be requested.
46
- */
47
- export declare enum AcquisitionOperationType {
48
- /**
49
- * Not yet used
50
- */
51
- Get = 0,
52
- /**
53
- * Install this extension into the host provided
54
- */
55
- Install = 1,
56
- /**
57
- * Buy licenses for this extension and install into the host provided
58
- */
59
- Buy = 2,
60
- /**
61
- * Try this extension
62
- */
63
- Try = 3,
64
- /**
65
- * Request this extension for installation
66
- */
67
- Request = 4,
68
- /**
69
- * No action found
70
- */
71
- None = 5,
72
- /**
73
- * Request admins for purchasing extension
74
- */
75
- PurchaseRequest = 6
76
- }
77
- /**
78
- * Market item acquisition options (install, buy, etc) for an installation target.
79
- */
80
- export interface AcquisitionOptions {
81
- /**
82
- * Default Operation for the ItemId in this target
83
- */
84
- defaultOperation: AcquisitionOperation;
85
- /**
86
- * The item id that this options refer to
87
- */
88
- itemId: string;
89
- /**
90
- * Operations allowed for the ItemId in this target
91
- */
92
- operations: AcquisitionOperation[];
93
- /**
94
- * The target that this options refer to
95
- */
96
- target: string;
97
- }
98
- export interface Answers {
99
- /**
100
- * Gets or sets the vs marketplace extension name
101
- */
102
- vsMarketplaceExtensionName: string;
103
- /**
104
- * Gets or sets the vs marketplace publisher name
105
- */
106
- vsMarketplacePublisherName: string;
107
- }
108
- export interface AssetDetails {
109
- /**
110
- * Gets or sets the Answers, which contains vs marketplace extension name and publisher name
111
- */
112
- answers: Answers;
113
- /**
114
- * Gets or sets the VS publisher Id
115
- */
116
- publisherNaturalIdentifier: string;
117
- }
118
- export interface AzurePublisher {
119
- azurePublisherId: string;
120
- publisherName: string;
121
- }
122
- export interface AzureRestApiRequestModel {
123
- /**
124
- * Gets or sets the Asset details
125
- */
126
- assetDetails: AssetDetails;
127
- /**
128
- * Gets or sets the asset id
129
- */
130
- assetId: string;
131
- /**
132
- * Gets or sets the asset version
133
- */
134
- assetVersion: number;
135
- /**
136
- * Gets or sets the customer support email
137
- */
138
- customerSupportEmail: string;
139
- /**
140
- * Gets or sets the integration contact email
141
- */
142
- integrationContactEmail: string;
143
- /**
144
- * Gets or sets the asset version
145
- */
146
- operation: string;
147
- /**
148
- * Gets or sets the plan identifier if any.
149
- */
150
- planId: string;
151
- /**
152
- * Gets or sets the publisher id
153
- */
154
- publisherId: string;
155
- /**
156
- * Gets or sets the resource type
157
- */
158
- type: string;
159
- }
160
- export interface AzureRestApiResponseModel extends AzureRestApiRequestModel {
161
- /**
162
- * Gets or sets the Asset operation status
163
- */
164
- operationStatus: RestApiResponseStatusModel;
165
- }
166
- /**
167
- * This is the set of categories in response to the get category query
168
- */
169
- export interface CategoriesResult {
170
- categories: ExtensionCategory[];
171
- }
172
- /**
173
- * Definition of one title of a category
174
- */
175
- export interface CategoryLanguageTitle {
176
- /**
177
- * The language for which the title is applicable
178
- */
179
- lang: string;
180
- /**
181
- * The language culture id of the lang parameter
182
- */
183
- lcid: number;
184
- /**
185
- * Actual title to be shown on the UI
186
- */
187
- title: string;
188
- }
189
- /**
190
- * The structure of a Concern Rather than defining a separate data structure having same fields as QnAItem, we are inheriting from the QnAItem.
191
- */
192
- export interface Concern extends QnAItem {
193
- /**
194
- * Category of the concern
195
- */
196
- category: ConcernCategory;
197
- }
198
- export declare enum ConcernCategory {
199
- General = 1,
200
- Abusive = 2,
201
- Spam = 4
202
- }
203
- /**
204
- * Stores Last Contact Date
205
- */
206
- export interface CustomerLastContact {
207
- /**
208
- * account for which customer was last contacted
209
- */
210
- account: string;
211
- /**
212
- * Date on which the customer was last contacted
213
- */
214
- lastContactDate: Date;
215
- }
216
- /**
217
- * An entity representing the data required to create a Customer Support Request.
218
- */
219
- export interface CustomerSupportRequest {
220
- /**
221
- * Display name of extension in concern
222
- */
223
- displayName: string;
224
- /**
225
- * Email of user making the support request
226
- */
227
- emailId: string;
228
- /**
229
- * Extension name
230
- */
231
- extensionName: string;
232
- /**
233
- * Link to the extension details page
234
- */
235
- extensionURL: string;
236
- /**
237
- * User-provided support request message.
238
- */
239
- message: string;
240
- /**
241
- * Publisher name
242
- */
243
- publisherName: string;
244
- /**
245
- * Reason for support request
246
- */
247
- reason: string;
248
- /**
249
- * ReCaptcha Token
250
- */
251
- reCaptchaToken: string;
252
- /**
253
- * VSID of the user making the support request
254
- */
255
- reporterVSID: string;
256
- /**
257
- * Review under concern
258
- */
259
- review: Review;
260
- /**
261
- * The UI source through which the request was made
262
- */
263
- sourceLink: string;
264
- }
265
- export declare enum DraftPatchOperation {
266
- Publish = 1,
267
- Cancel = 2
268
- }
269
- export declare enum DraftStateType {
270
- Unpublished = 1,
271
- Published = 2,
272
- Cancelled = 3,
273
- Error = 4
274
- }
275
- export interface EventCounts {
276
- /**
277
- * Average rating on the day for extension
278
- */
279
- averageRating: number;
280
- /**
281
- * Number of times the extension was bought in hosted scenario (applies only to VSTS extensions)
282
- */
283
- buyCount: number;
284
- /**
285
- * Number of times the extension was bought in connected scenario (applies only to VSTS extensions)
286
- */
287
- connectedBuyCount: number;
288
- /**
289
- * Number of times the extension was installed in connected scenario (applies only to VSTS extensions)
290
- */
291
- connectedInstallCount: number;
292
- /**
293
- * Number of times the extension was installed
294
- */
295
- installCount: number;
296
- /**
297
- * Number of times the extension was installed as a trial (applies only to VSTS extensions)
298
- */
299
- tryCount: number;
300
- /**
301
- * Number of times the extension was uninstalled (applies only to VSTS extensions)
302
- */
303
- uninstallCount: number;
304
- /**
305
- * Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs)
306
- */
307
- webDownloadCount: number;
308
- /**
309
- * Number of detail page views
310
- */
311
- webPageViews: number;
312
- }
313
- /**
314
- * Contract for handling the extension acquisition process
315
- */
316
- export interface ExtensionAcquisitionRequest {
317
- /**
318
- * How the item is being assigned
319
- */
320
- assignmentType: AcquisitionAssignmentType;
321
- /**
322
- * The id of the subscription used for purchase
323
- */
324
- billingId: string;
325
- /**
326
- * The marketplace id (publisherName.extensionName) for the item
327
- */
328
- itemId: string;
329
- /**
330
- * The type of operation, such as install, request, purchase
331
- */
332
- operationType: AcquisitionOperationType;
333
- /**
334
- * Additional properties which can be added to the request.
335
- */
336
- properties: any;
337
- /**
338
- * How many licenses should be purchased
339
- */
340
- quantity: number;
341
- /**
342
- * A list of target guids where the item should be acquired (installed, requested, etc.), such as account id
343
- */
344
- targets: string[];
345
- }
346
- export interface ExtensionBadge {
347
- description: string;
348
- imgUri: string;
349
- link: string;
350
- }
351
- export interface ExtensionCategory {
352
- /**
353
- * The name of the products with which this category is associated to.
354
- */
355
- associatedProducts: string[];
356
- categoryId: number;
357
- /**
358
- * This is the internal name for a category
359
- */
360
- categoryName: string;
361
- /**
362
- * This parameter is obsolete. Refer to LanguageTitles for language specific titles
363
- */
364
- language: string;
365
- /**
366
- * The list of all the titles of this category in various languages
367
- */
368
- languageTitles: CategoryLanguageTitle[];
369
- /**
370
- * This is the internal name of the parent if this is associated with a parent
371
- */
372
- parentCategoryName: string;
373
- }
374
- export interface ExtensionDailyStat {
375
- /**
376
- * Stores the event counts
377
- */
378
- counts: EventCounts;
379
- /**
380
- * Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc.
381
- */
382
- extendedStats: {
383
- [key: string]: any;
384
- };
385
- /**
386
- * Timestamp of this data point
387
- */
388
- statisticDate: Date;
389
- /**
390
- * Version of the extension
391
- */
392
- version: string;
393
- }
394
- export interface ExtensionDailyStats {
395
- /**
396
- * List of extension statistics data points
397
- */
398
- dailyStats: ExtensionDailyStat[];
399
- /**
400
- * Id of the extension, this will never be sent back to the client. For internal use only.
401
- */
402
- extensionId: string;
403
- /**
404
- * Name of the extension
405
- */
406
- extensionName: string;
407
- /**
408
- * Name of the publisher
409
- */
410
- publisherName: string;
411
- /**
412
- * Count of stats
413
- */
414
- statCount: number;
415
- }
416
- export declare enum ExtensionDeploymentTechnology {
417
- Exe = 1,
418
- Msi = 2,
419
- Vsix = 3,
420
- ReferralLink = 4
421
- }
422
- export interface ExtensionDraft {
423
- assets: ExtensionDraftAsset[];
424
- createdDate: Date;
425
- draftState: DraftStateType;
426
- extensionName: string;
427
- id: string;
428
- lastUpdated: Date;
429
- payload: ExtensionPayload;
430
- product: string;
431
- publisherName: string;
432
- validationErrors: {
433
- key: string;
434
- value: string;
435
- }[];
436
- validationWarnings: {
437
- key: string;
438
- value: string;
439
- }[];
440
- }
441
- export interface ExtensionDraftAsset extends ExtensionFile {
442
- }
443
- export interface ExtensionDraftPatch {
444
- extensionData: UnpackagedExtensionData;
445
- operation: DraftPatchOperation;
446
- reCaptchaToken: string;
447
- }
448
- /**
449
- * Stores details of each event
450
- */
451
- export interface ExtensionEvent {
452
- /**
453
- * Id which identifies each data point uniquely
454
- */
455
- id: number;
456
- /**
457
- * Generic properties container which stores the data related to each event. For well known events like uninstall, install etc. We expect the Properties object to be a List\<UninstallProperties\>, List\<InstallProperties\>
458
- */
459
- properties: any;
460
- /**
461
- * Timestamp of when the event occurred
462
- */
463
- statisticDate: Date;
464
- /**
465
- * Version of the extension
466
- */
467
- version: string;
468
- }
469
- /**
470
- * Container object for all extension events. Stores all install and uninstall events related to an extension. The events container is generic so can store data of any type of event. New event types can be added without altering the contract.
471
- */
472
- export interface ExtensionEvents {
473
- /**
474
- * Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event
475
- */
476
- events: {
477
- [key: string]: ExtensionEvent[];
478
- };
479
- /**
480
- * Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go.
481
- */
482
- extensionId: string;
483
- /**
484
- * Name of the extension
485
- */
486
- extensionName: string;
487
- /**
488
- * Name of the publisher
489
- */
490
- publisherName: string;
491
- }
492
- export interface ExtensionFile {
493
- assetType: string;
494
- language: string;
495
- source: string;
496
- }
497
- /**
498
- * The FilterResult is the set of extensions that matched a particular query filter.
499
- */
500
- export interface ExtensionFilterResult {
501
- /**
502
- * This is the set of applications that matched the query filter supplied.
503
- */
504
- extensions: PublishedExtension[];
505
- /**
506
- * The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results.
507
- */
508
- pagingToken: string;
509
- /**
510
- * This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results
511
- */
512
- resultMetadata: ExtensionFilterResultMetadata[];
513
- }
514
- /**
515
- * ExtensionFilterResultMetadata is one set of metadata for the result e.g. Total count. There can be multiple metadata items for one metadata.
516
- */
517
- export interface ExtensionFilterResultMetadata {
518
- /**
519
- * The metadata items for the category
520
- */
521
- metadataItems: MetadataItem[];
522
- /**
523
- * Defines the category of metadata items
524
- */
525
- metadataType: string;
526
- }
527
- /**
528
- * Represents the component pieces of an extensions fully qualified name, along with the fully qualified name.
529
- */
530
- export interface ExtensionIdentifier {
531
- /**
532
- * The ExtensionName component part of the fully qualified ExtensionIdentifier
533
- */
534
- extensionName: string;
535
- /**
536
- * The PublisherName component part of the fully qualified ExtensionIdentifier
537
- */
538
- publisherName: string;
539
- }
540
- /**
541
- * Type of event
542
- */
543
- export declare enum ExtensionLifecycleEventType {
544
- Uninstall = 1,
545
- Install = 2,
546
- Review = 3,
547
- Acquisition = 4,
548
- Sales = 5,
549
- Other = 999
550
- }
551
- /**
552
- * Package that will be used to create or update a published extension
553
- */
554
- export interface ExtensionPackage {
555
- /**
556
- * Base 64 encoded extension package
557
- */
558
- extensionManifest: string;
559
- }
560
- export interface ExtensionPayload {
561
- description: string;
562
- displayName: string;
563
- fileName: string;
564
- installationTargets: InstallationTarget[];
565
- isPreview: boolean;
566
- isSignedByMicrosoft: boolean;
567
- isValid: boolean;
568
- metadata: {
569
- key: string;
570
- value: string;
571
- }[];
572
- type: ExtensionDeploymentTechnology;
573
- }
574
- /**
575
- * Policy with a set of permissions on extension operations
576
- */
577
- export interface ExtensionPolicy {
578
- /**
579
- * Permissions on 'Install' operation
580
- */
581
- install: ExtensionPolicyFlags;
582
- /**
583
- * Permission on 'Request' operation
584
- */
585
- request: ExtensionPolicyFlags;
586
- }
587
- /**
588
- * Set of flags that can be associated with a given permission over an extension
589
- */
590
- export declare enum ExtensionPolicyFlags {
591
- /**
592
- * No permission
593
- */
594
- None = 0,
595
- /**
596
- * Permission on private extensions
597
- */
598
- Private = 1,
599
- /**
600
- * Permission on public extensions
601
- */
602
- Public = 2,
603
- /**
604
- * Permission in extensions that are in preview
605
- */
606
- Preview = 4,
607
- /**
608
- * Permission in released extensions
609
- */
610
- Released = 8,
611
- /**
612
- * Permission in 1st party extensions
613
- */
614
- FirstParty = 16,
615
- /**
616
- * Mask that defines all permissions
617
- */
618
- All = 31
619
- }
620
- /**
621
- * An ExtensionQuery is used to search the gallery for a set of extensions that match one of many filter values.
622
- */
623
- export interface ExtensionQuery {
624
- /**
625
- * When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned.
626
- */
627
- assetTypes: string[];
628
- /**
629
- * Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query.
630
- */
631
- filters: QueryFilter[];
632
- /**
633
- * The Flags are used to determine which set of information the caller would like returned for the matched extensions.
634
- */
635
- flags: ExtensionQueryFlags;
636
- }
637
- /**
638
- * Type of extension filters that are supported in the queries.
639
- */
640
- export declare enum ExtensionQueryFilterType {
641
- /**
642
- * The values are used as tags. All tags are treated as "OR" conditions with each other. There may be some value put on the number of matched tags from the query.
643
- */
644
- Tag = 1,
645
- /**
646
- * The Values are an ExtensionName or fragment that is used to match other extension names.
647
- */
648
- DisplayName = 2,
649
- /**
650
- * The Filter is one or more tokens that define what scope to return private extensions for.
651
- */
652
- Private = 3,
653
- /**
654
- * Retrieve a set of extensions based on their id's. The values should be the extension id's encoded as strings.
655
- */
656
- Id = 4,
657
- /**
658
- * The category is unlike other filters. It is AND'd with the other filters instead of being a separate query.
659
- */
660
- Category = 5,
661
- /**
662
- * Certain contribution types may be indexed to allow for query by type. User defined types can't be indexed at the moment.
663
- */
664
- ContributionType = 6,
665
- /**
666
- * Retrieve an set extension based on the name based identifier. This differs from the internal id (which is being deprecated).
667
- */
668
- Name = 7,
669
- /**
670
- * The InstallationTarget for an extension defines the target consumer for the extension. This may be something like VS, VSOnline, or VSCode
671
- */
672
- InstallationTarget = 8,
673
- /**
674
- * Query for featured extensions, no value is allowed when using the query type.
675
- */
676
- Featured = 9,
677
- /**
678
- * The SearchText provided by the user to search for extensions
679
- */
680
- SearchText = 10,
681
- /**
682
- * Query for extensions that are featured in their own category, The filterValue for this is name of category of extensions.
683
- */
684
- FeaturedInCategory = 11,
685
- /**
686
- * When retrieving extensions from a query, exclude the extensions which are having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be excluded. In case of multiple flags to be specified, a logical OR of the interger values should be given as value for this filter This should be at most one filter of this type. This only acts as a restrictive filter after. In case of having a particular flag in both IncludeWithFlags and ExcludeWithFlags, excludeFlags will remove the included extensions giving empty result for that flag.
687
- */
688
- ExcludeWithFlags = 12,
689
- /**
690
- * When retrieving extensions from a query, include the extensions which are having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be included. In case of multiple flags to be specified, a logical OR of the integer values should be given as value for this filter This should be at most one filter of this type. This only acts as a restrictive filter after. In case of having a particular flag in both IncludeWithFlags and ExcludeWithFlags, excludeFlags will remove the included extensions giving empty result for that flag. In case of multiple flags given in IncludeWithFlags in ORed fashion, extensions having any of the given flags will be included.
691
- */
692
- IncludeWithFlags = 13,
693
- /**
694
- * Filter the extensions based on the LCID values applicable. Any extensions which are not having any LCID values will also be filtered. This is currently only supported for VS extensions.
695
- */
696
- Lcid = 14,
697
- /**
698
- * Filter to provide the version of the installation target. This filter will be used along with InstallationTarget filter. The value should be a valid version string. Currently supported only if search text is provided.
699
- */
700
- InstallationTargetVersion = 15,
701
- /**
702
- * Filter type for specifying a range of installation target version. The filter will be used along with InstallationTarget filter. The value should be a pair of well formed version values separated by hyphen(-). Currently supported only if search text is provided.
703
- */
704
- InstallationTargetVersionRange = 16,
705
- /**
706
- * Filter type for specifying metadata key and value to be used for filtering.
707
- */
708
- VsixMetadata = 17,
709
- /**
710
- * Filter to get extensions published by a publisher having supplied internal name
711
- */
712
- PublisherName = 18,
713
- /**
714
- * Filter to get extensions published by all publishers having supplied display name
715
- */
716
- PublisherDisplayName = 19,
717
- /**
718
- * When retrieving extensions from a query, include the extensions which have a publisher having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be included. In case of multiple flags to be specified, a logical OR of the integer values should be given as value for this filter There should be at most one filter of this type. This only acts as a restrictive filter after. In case of multiple flags given in IncludeWithFlags in ORed fashion, extensions having any of the given flags will be included.
719
- */
720
- IncludeWithPublisherFlags = 20,
721
- /**
722
- * Filter to get extensions shared with particular organization
723
- */
724
- OrganizationSharedWith = 21,
725
- /**
726
- * Filter to get VS IDE extensions by Product Architecture
727
- */
728
- ProductArchitecture = 22,
729
- /**
730
- * Filter to get VS Code extensions by target platform.
731
- */
732
- TargetPlatform = 23,
733
- /**
734
- * Retrieve an extension based on the extensionName.
735
- */
736
- ExtensionName = 24
737
- }
738
- /**
739
- * Set of flags used to determine which set of information is retrieved when reading published extensions
740
- */
741
- export declare enum ExtensionQueryFlags {
742
- /**
743
- * None is used to retrieve only the basic extension details.
744
- */
745
- None = 0,
746
- /**
747
- * IncludeVersions will return version information for extensions returned
748
- */
749
- IncludeVersions = 1,
750
- /**
751
- * IncludeFiles will return information about which files were found within the extension that were stored independent of the manifest. When asking for files, versions will be included as well since files are returned as a property of the versions. These files can be retrieved using the path to the file without requiring the entire manifest be downloaded.
752
- */
753
- IncludeFiles = 2,
754
- /**
755
- * Include the Categories and Tags that were added to the extension definition.
756
- */
757
- IncludeCategoryAndTags = 4,
758
- /**
759
- * Include the details about which accounts the extension has been shared with if the extension is a private extension.
760
- */
761
- IncludeSharedAccounts = 8,
762
- /**
763
- * Include properties associated with versions of the extension
764
- */
765
- IncludeVersionProperties = 16,
766
- /**
767
- * Excluding non-validated extensions will remove any extension versions that either are in the process of being validated or have failed validation.
768
- */
769
- ExcludeNonValidated = 32,
770
- /**
771
- * Include the set of installation targets the extension has requested.
772
- */
773
- IncludeInstallationTargets = 64,
774
- /**
775
- * Include the base uri for assets of this extension
776
- */
777
- IncludeAssetUri = 128,
778
- /**
779
- * Include the statistics associated with this extension
780
- */
781
- IncludeStatistics = 256,
782
- /**
783
- * When retrieving versions from a query, only include the latest version of the extensions that matched. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
784
- */
785
- IncludeLatestVersionOnly = 512,
786
- /**
787
- * This flag switches the asset uri to use GetAssetByName instead of CDN When this is used, values of base asset uri and base asset uri fallback are switched When this is used, source of asset files are pointed to Gallery service always even if CDN is available
788
- */
789
- UseFallbackAssetUri = 1024,
790
- /**
791
- * This flag is used to get all the metadata values associated with the extension. This is not applicable to VSTS or VSCode extensions and usage is only internal.
792
- */
793
- IncludeMetadata = 2048,
794
- /**
795
- * This flag is used to indicate to return very small data for extension required by VS IDE. This flag is only compatible when querying is done by VS IDE
796
- */
797
- IncludeMinimalPayloadForVsIde = 4096,
798
- /**
799
- * This flag is used to get Lcid values associated with the extension. This is not applicable to VSTS or VSCode extensions and usage is only internal
800
- */
801
- IncludeLcids = 8192,
802
- /**
803
- * Include the details about which organizations the extension has been shared with if the extension is a private extension.
804
- */
805
- IncludeSharedOrganizations = 16384,
806
- /**
807
- * Include the details if an extension is in conflict list or not Currently being used for VSCode extensions.
808
- */
809
- IncludeNameConflictInfo = 32768,
810
- /**
811
- * When retrieving versions from a query, return the details with both latest prerelease and stable version of the extensions that matched, if not prerelease version, only return stable version. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
812
- */
813
- IncludeLatestPrereleaseAndStableVersionOnly = 65536,
814
- /**
815
- * Include deleted extensions in the result set, and usage is only internal.
816
- */
817
- IncludeDeleted = 131072,
818
- /**
819
- * AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
820
- */
821
- AllAttributes = 16863
822
- }
823
- /**
824
- * This is the set of extensions that matched a supplied query through the filters given.
825
- */
826
- export interface ExtensionQueryResult {
827
- /**
828
- * For each filter supplied in the query, a filter result will be returned in the query result.
829
- */
830
- results: ExtensionFilterResult[];
831
- }
832
- export interface ExtensionShare {
833
- id: string;
834
- isOrg: boolean;
835
- name: string;
836
- type: string;
837
- }
838
- export interface ExtensionStatistic {
839
- statisticName: string;
840
- value: number;
841
- }
842
- export declare enum ExtensionStatisticOperation {
843
- None = 0,
844
- Set = 1,
845
- Increment = 2,
846
- Decrement = 3,
847
- Delete = 4
848
- }
849
- export interface ExtensionStatisticUpdate {
850
- extensionName: string;
851
- operation: ExtensionStatisticOperation;
852
- publisherName: string;
853
- statistic: ExtensionStatistic;
854
- }
855
- /**
856
- * Stats aggregation type
857
- */
858
- export declare enum ExtensionStatsAggregateType {
859
- Daily = 1
860
- }
861
- export interface ExtensionVersion {
862
- assetUri: string;
863
- badges: ExtensionBadge[];
864
- fallbackAssetUri: string;
865
- files: ExtensionFile[];
866
- flags: ExtensionVersionFlags;
867
- lastUpdated: Date;
868
- properties: {
869
- key: string;
870
- value: string;
871
- }[];
872
- targetPlatform: string;
873
- validationResultMessage: string;
874
- version: string;
875
- versionDescription: string;
876
- }
877
- /**
878
- * Set of flags that can be associated with a given extension version. These flags apply to a specific version of the extension.
879
- */
880
- export declare enum ExtensionVersionFlags {
881
- /**
882
- * No flags exist for this version.
883
- */
884
- None = 0,
885
- /**
886
- * The Validated flag for a version means the extension version has passed validation and can be used.
887
- */
888
- Validated = 1,
889
- /**
890
- * The Prerelease flag for a version means the extension version is prerelease. This flag is runtime only.
891
- */
892
- Prerelease = 2,
893
- /**
894
- * This version has been deleted.
895
- */
896
- Deleted = 4
897
- }
898
- /**
899
- * One condition in a QueryFilter.
900
- */
901
- export interface FilterCriteria {
902
- /**
903
- * The FilterType defines how the filters are to be applied to the extensions. See the documentation on the filter type to understand how the filters are matched.
904
- */
905
- filterType: number;
906
- /**
907
- * The value used in the match based on the filter type.
908
- */
909
- value: string;
910
- }
911
- export interface InstallationTarget {
912
- extensionVersion: string;
913
- productArchitecture: string;
914
- target: string;
915
- targetPlatform: string;
916
- targetVersion: string;
917
- }
918
- /**
919
- * MetadataItem is one value of metadata under a given category of metadata
920
- */
921
- export interface MetadataItem {
922
- /**
923
- * The count of the metadata item
924
- */
925
- count: number;
926
- /**
927
- * The name of the metadata item
928
- */
929
- name: string;
930
- }
931
- /**
932
- * Information needed for sending mail notification
933
- */
934
- export interface NotificationsData {
935
- /**
936
- * Notification data needed
937
- */
938
- data: {
939
- [key: string]: any;
940
- };
941
- /**
942
- * List of users who should get the notification
943
- */
944
- identities: {
945
- [key: string]: any;
946
- };
947
- /**
948
- * Type of Mail Notification.Can be Qna , review or CustomerContact
949
- */
950
- type: NotificationTemplateType;
951
- }
952
- /**
953
- * Type of event
954
- */
955
- export declare enum NotificationTemplateType {
956
- /**
957
- * Template type for Review Notification.
958
- */
959
- ReviewNotification = 1,
960
- /**
961
- * Template type for Qna Notification.
962
- */
963
- QnaNotification = 2,
964
- /**
965
- * Template type for Customer Contact Notification.
966
- */
967
- CustomerContactNotification = 3,
968
- /**
969
- * Template type for Publisher Member Notification.
970
- */
971
- PublisherMemberUpdateNotification = 4
972
- }
973
- /**
974
- * PagingDirection is used to define which set direction to move the returned result set based on a previous query.
975
- */
976
- export declare enum PagingDirection {
977
- /**
978
- * Backward will return results from earlier in the resultset.
979
- */
980
- Backward = 1,
981
- /**
982
- * Forward will return results from later in the resultset.
983
- */
984
- Forward = 2
985
- }
986
- /**
987
- * This is the set of categories in response to the get category query
988
- */
989
- export interface ProductCategoriesResult {
990
- categories: ProductCategory[];
991
- }
992
- /**
993
- * This is the interface object to be used by Root Categories and Category Tree APIs for Visual Studio Ide.
994
- */
995
- export interface ProductCategory {
996
- children: ProductCategory[];
997
- /**
998
- * Indicator whether this is a leaf or there are children under this category
999
- */
1000
- hasChildren: boolean;
1001
- /**
1002
- * Individual Guid of the Category
1003
- */
1004
- id: string;
1005
- /**
1006
- * Category Title in the requested language
1007
- */
1008
- title: string;
1009
- }
1010
- export interface PublishedExtension {
1011
- categories: string[];
1012
- deploymentType: ExtensionDeploymentTechnology;
1013
- displayName: string;
1014
- extensionId: string;
1015
- extensionName: string;
1016
- flags: PublishedExtensionFlags;
1017
- installationTargets: InstallationTarget[];
1018
- lastUpdated: Date;
1019
- longDescription: string;
1020
- /**
1021
- * Check if Extension is in conflict list or not. Taking as String and not as boolean because we don't want end customer to see this flag and by making it Boolean it is coming as false for all the cases.
1022
- */
1023
- presentInConflictList: string;
1024
- /**
1025
- * Date on which the extension was first uploaded.
1026
- */
1027
- publishedDate: Date;
1028
- publisher: PublisherFacts;
1029
- /**
1030
- * Date on which the extension first went public.
1031
- */
1032
- releaseDate: Date;
1033
- sharedWith: ExtensionShare[];
1034
- shortDescription: string;
1035
- statistics: ExtensionStatistic[];
1036
- tags: string[];
1037
- versions: ExtensionVersion[];
1038
- }
1039
- /**
1040
- * Set of flags that can be associated with a given extension. These flags apply to all versions of the extension and not to a specific version.
1041
- */
1042
- export declare enum PublishedExtensionFlags {
1043
- /**
1044
- * No flags exist for this extension.
1045
- */
1046
- None = 0,
1047
- /**
1048
- * The Disabled flag for an extension means the extension can't be changed and won't be used by consumers. The disabled flag is managed by the service and can't be supplied by the Extension Developers.
1049
- */
1050
- Disabled = 1,
1051
- /**
1052
- * BuiltIn Extension are available to all Tenants. An explicit registration is not required. This attribute is reserved and can't be supplied by Extension Developers. BuiltIn extensions are by definition Public. There is no need to set the public flag for extensions marked BuiltIn.
1053
- */
1054
- BuiltIn = 2,
1055
- /**
1056
- * This extension has been validated by the service. The extension meets the requirements specified. This attribute is reserved and can't be supplied by the Extension Developers. Validation is a process that ensures that all contributions are well formed. They meet the requirements defined by the contribution type they are extending. Note this attribute will be updated asynchronously as the extension is validated by the developer of the contribution type. There will be restricted access to the extension while this process is performed.
1057
- */
1058
- Validated = 4,
1059
- /**
1060
- * 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.
1061
- */
1062
- Trusted = 8,
1063
- /**
1064
- * The Paid flag indicates that the commerce can be enabled for this extension. Publisher needs to setup Offer/Pricing plan in Azure. If Paid flag is set and a corresponding Offer is not available, the extension will automatically be marked as Preview. If the publisher intends to make the extension Paid in the future, it is mandatory to set the Preview flag. This is currently available only for VSTS extensions only.
1065
- */
1066
- Paid = 16,
1067
- /**
1068
- * This extension registration is public, making its visibility open to the public. This means all tenants have the ability to install this extension. Without this flag the extension will be private and will need to be shared with the tenants that can install it.
1069
- */
1070
- Public = 256,
1071
- /**
1072
- * This extension has multiple versions active at one time and version discovery should be done using the defined "Version Discovery" protocol to determine the version available to a specific user or tenant. \@TODO: Link to Version Discovery Protocol.
1073
- */
1074
- MultiVersion = 512,
1075
- /**
1076
- * The system flag is reserved, and cant be used by publishers.
1077
- */
1078
- System = 1024,
1079
- /**
1080
- * The Preview flag indicates that the extension is still under preview (not yet of "release" quality). These extensions may be decorated differently in the gallery and may have different policies applied to them.
1081
- */
1082
- Preview = 2048,
1083
- /**
1084
- * The Unpublished flag indicates that the extension can't be installed/downloaded. Users who have installed such an extension can continue to use the extension.
1085
- */
1086
- Unpublished = 4096,
1087
- /**
1088
- * The Trial flag indicates that the extension is in Trial version. The flag is right now being used only with respect to Visual Studio extensions.
1089
- */
1090
- Trial = 8192,
1091
- /**
1092
- * The Locked flag indicates that extension has been locked from Marketplace. Further updates/acquisitions are not allowed on the extension until this is present. This should be used along with making the extension private/unpublished.
1093
- */
1094
- Locked = 16384,
1095
- /**
1096
- * This flag is set for extensions we want to hide from Marketplace home and search pages. This will be used to override the exposure of builtIn flags.
1097
- */
1098
- Hidden = 32768,
1099
- /**
1100
- * This flag is set for extensions that are marked as deleted. The deleted flag is managed by the service and can't be supplied by the Extension Developers.
1101
- */
1102
- Deleted = 65536
1103
- }
1104
- export interface Publisher extends PublisherBase {
1105
- _links: any;
1106
- domain: string;
1107
- isDnsTokenVerified: boolean;
1108
- isDomainVerified: boolean;
1109
- reCaptchaToken: string;
1110
- }
1111
- /**
1112
- * Keeping base class separate since publisher DB model class and publisher contract class share these common properties
1113
- */
1114
- export interface PublisherBase {
1115
- displayName: string;
1116
- emailAddress: string[];
1117
- extensions: PublishedExtension[];
1118
- flags: PublisherFlags;
1119
- lastUpdated: Date;
1120
- longDescription: string;
1121
- publisherId: string;
1122
- publisherName: string;
1123
- shortDescription: string;
1124
- state: PublisherState;
1125
- }
1126
- /**
1127
- * High-level information about the publisher, like id's and names
1128
- */
1129
- export interface PublisherFacts {
1130
- displayName: string;
1131
- domain: string;
1132
- flags: PublisherFlags;
1133
- isDomainVerified: boolean;
1134
- publisherId: string;
1135
- publisherName: string;
1136
- }
1137
- /**
1138
- * The FilterResult is the set of publishers that matched a particular query filter.
1139
- */
1140
- export interface PublisherFilterResult {
1141
- /**
1142
- * This is the set of applications that matched the query filter supplied.
1143
- */
1144
- publishers: Publisher[];
1145
- }
1146
- export declare enum PublisherFlags {
1147
- /**
1148
- * This should never be returned, it is used to represent a publisher who's flags haven't changed during update calls.
1149
- */
1150
- UnChanged = 1073741824,
1151
- /**
1152
- * No flags exist for this publisher.
1153
- */
1154
- None = 0,
1155
- /**
1156
- * The Disabled flag for a publisher means the publisher can't be changed and won't be used by consumers, this extends to extensions owned by the publisher as well. The disabled flag is managed by the service and can't be supplied by the Extension Developers.
1157
- */
1158
- Disabled = 1,
1159
- /**
1160
- * A verified publisher is one that Microsoft has done some review of and ensured the publisher meets a set of requirements. The requirements to become a verified publisher are not listed here. They can be found in public documentation (TBD).
1161
- */
1162
- Verified = 2,
1163
- /**
1164
- * A Certified publisher is one that is Microsoft verified and in addition meets a set of requirements for its published extensions. The requirements to become a certified publisher are not listed here. They can be found in public documentation (TBD).
1165
- */
1166
- Certified = 4,
1167
- /**
1168
- * This is the set of flags that can't be supplied by the developer and is managed by the service itself.
1169
- */
1170
- ServiceFlags = 7
1171
- }
1172
- export declare enum PublisherPermissions {
1173
- /**
1174
- * This gives the bearer the rights to read Publishers and Extensions.
1175
- */
1176
- Read = 1,
1177
- /**
1178
- * This gives the bearer the rights to update, delete, and share Extensions (but not the ability to create them).
1179
- */
1180
- UpdateExtension = 2,
1181
- /**
1182
- * This gives the bearer the rights to create new Publishers at the root of the namespace.
1183
- */
1184
- CreatePublisher = 4,
1185
- /**
1186
- * This gives the bearer the rights to create new Extensions within a publisher.
1187
- */
1188
- PublishExtension = 8,
1189
- /**
1190
- * Admin gives the bearer the rights to manage restricted attributes of Publishers and Extensions.
1191
- */
1192
- Admin = 16,
1193
- /**
1194
- * TrustedPartner gives the bearer the rights to publish a extensions with restricted capabilities.
1195
- */
1196
- TrustedPartner = 32,
1197
- /**
1198
- * PrivateRead is another form of read designed to allow higher privilege accessors the ability to read private extensions.
1199
- */
1200
- PrivateRead = 64,
1201
- /**
1202
- * This gives the bearer the rights to delete any extension.
1203
- */
1204
- DeleteExtension = 128,
1205
- /**
1206
- * This gives the bearer the rights edit the publisher settings.
1207
- */
1208
- EditSettings = 256,
1209
- /**
1210
- * This gives the bearer the rights to see all permissions on the publisher.
1211
- */
1212
- ViewPermissions = 512,
1213
- /**
1214
- * This gives the bearer the rights to assign permissions on the publisher.
1215
- */
1216
- ManagePermissions = 1024,
1217
- /**
1218
- * This gives the bearer the rights to delete the publisher.
1219
- */
1220
- DeletePublisher = 2048
1221
- }
1222
- /**
1223
- * An PublisherQuery is used to search the gallery for a set of publishers that match one of many filter values.
1224
- */
1225
- export interface PublisherQuery {
1226
- /**
1227
- * Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query.
1228
- */
1229
- filters: QueryFilter[];
1230
- /**
1231
- * The Flags are used to determine which set of information the caller would like returned for the matched publishers.
1232
- */
1233
- flags: PublisherQueryFlags;
1234
- }
1235
- /**
1236
- * Set of flags used to define the attributes requested when a publisher is returned. Some API's allow the caller to specify the level of detail needed.
1237
- */
1238
- export declare enum PublisherQueryFlags {
1239
- /**
1240
- * None is used to retrieve only the basic publisher details.
1241
- */
1242
- None = 0,
1243
- /**
1244
- * Is used to include a list of basic extension details for all extensions published by the requested publisher.
1245
- */
1246
- IncludeExtensions = 1,
1247
- /**
1248
- * Is used to include email address of all the users who are marked as owners for the publisher
1249
- */
1250
- IncludeEmailAddress = 2
1251
- }
1252
- /**
1253
- * This is the set of publishers that matched a supplied query through the filters given.
1254
- */
1255
- export interface PublisherQueryResult {
1256
- /**
1257
- * For each filter supplied in the query, a filter result will be returned in the query result.
1258
- */
1259
- results: PublisherFilterResult[];
1260
- }
1261
- /**
1262
- * Access definition for a RoleAssignment.
1263
- */
1264
- export declare enum PublisherRoleAccess {
1265
- /**
1266
- * Access has been explicitly set.
1267
- */
1268
- Assigned = 1,
1269
- /**
1270
- * Access has been inherited from a higher scope.
1271
- */
1272
- Inherited = 2
1273
- }
1274
- export interface PublisherRoleAssignment {
1275
- /**
1276
- * Designates the role as explicitly assigned or inherited.
1277
- */
1278
- access: PublisherRoleAccess;
1279
- /**
1280
- * User friendly description of access assignment.
1281
- */
1282
- accessDisplayName: string;
1283
- /**
1284
- * The user to whom the role is assigned.
1285
- */
1286
- identity: WebApi.IdentityRef;
1287
- /**
1288
- * The role assigned to the user.
1289
- */
1290
- role: PublisherSecurityRole;
1291
- }
1292
- export interface PublisherSecurityRole {
1293
- /**
1294
- * Permissions the role is allowed.
1295
- */
1296
- allowPermissions: number;
1297
- /**
1298
- * Permissions the role is denied.
1299
- */
1300
- denyPermissions: number;
1301
- /**
1302
- * Description of user access defined by the role
1303
- */
1304
- description: string;
1305
- /**
1306
- * User friendly name of the role.
1307
- */
1308
- displayName: string;
1309
- /**
1310
- * Globally unique identifier for the role.
1311
- */
1312
- identifier: string;
1313
- /**
1314
- * Unique name of the role in the scope.
1315
- */
1316
- name: string;
1317
- /**
1318
- * Returns the id of the ParentScope.
1319
- */
1320
- scope: string;
1321
- }
1322
- export declare enum PublisherState {
1323
- /**
1324
- * No state exists for this publisher.
1325
- */
1326
- None = 0,
1327
- /**
1328
- * This state indicates that publisher has applied for Marketplace verification (via UI) and still not been certified. This state would be reset once the publisher is verified.
1329
- */
1330
- VerificationPending = 1,
1331
- /**
1332
- * This state indicates that publisher has applied for Marketplace certification (via UI) and still not been certified. This state would be reset once the publisher is certified.
1333
- */
1334
- CertificationPending = 2,
1335
- /**
1336
- * This state indicates that publisher had applied for Marketplace certification (via UI) but his/her certification got rejected. This state would be reset if and when the publisher is certified.
1337
- */
1338
- CertificationRejected = 4,
1339
- /**
1340
- * This state indicates that publisher was certified on the Marketplace, but his/her certification got revoked. This state would never be reset, even after publisher gets re-certified. It would indicate that the publisher certification was revoked at least once.
1341
- */
1342
- CertificationRevoked = 8
1343
- }
1344
- export interface PublisherUserRoleAssignmentRef {
1345
- /**
1346
- * The name of the role assigned.
1347
- */
1348
- roleName: string;
1349
- /**
1350
- * Identifier of the user given the role assignment.
1351
- */
1352
- uniqueName: string;
1353
- /**
1354
- * Unique id of the user given the role assignment.
1355
- */
1356
- userId: string;
1357
- }
1358
- /**
1359
- * The core structure of a QnA item
1360
- */
1361
- export interface QnAItem {
1362
- /**
1363
- * Time when the review was first created
1364
- */
1365
- createdDate: Date;
1366
- /**
1367
- * Unique identifier of a QnA item
1368
- */
1369
- id: number;
1370
- /**
1371
- * Get status of item
1372
- */
1373
- status: QnAItemStatus;
1374
- /**
1375
- * Text description of the QnA item
1376
- */
1377
- text: string;
1378
- /**
1379
- * Time when the review was edited/updated
1380
- */
1381
- updatedDate: Date;
1382
- /**
1383
- * User details for the item.
1384
- */
1385
- user: UserIdentityRef;
1386
- }
1387
- /**
1388
- * Denotes the status of the QnA Item
1389
- */
1390
- export declare enum QnAItemStatus {
1391
- None = 0,
1392
- /**
1393
- * The UserEditable flag indicates whether the item is editable by the logged in user.
1394
- */
1395
- UserEditable = 1,
1396
- /**
1397
- * The PublisherCreated flag indicates whether the item has been created by extension publisher.
1398
- */
1399
- PublisherCreated = 2
1400
- }
1401
- /**
1402
- * A filter used to define a set of extensions to return during a query.
1403
- */
1404
- export interface QueryFilter {
1405
- /**
1406
- * The filter values define the set of values in this query. They are applied based on the QueryFilterType.
1407
- */
1408
- criteria: FilterCriteria[];
1409
- /**
1410
- * The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues.
1411
- */
1412
- direction: PagingDirection;
1413
- /**
1414
- * The page number requested by the user. If not provided 1 is assumed by default.
1415
- */
1416
- pageNumber: number;
1417
- /**
1418
- * The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits.
1419
- */
1420
- pageSize: number;
1421
- /**
1422
- * The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embedded in the token.
1423
- */
1424
- pagingToken: string;
1425
- /**
1426
- * Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only.
1427
- */
1428
- sortBy: number;
1429
- /**
1430
- * Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value
1431
- */
1432
- sortOrder: number;
1433
- }
1434
- /**
1435
- * The structure of the question / thread
1436
- */
1437
- export interface Question extends QnAItem {
1438
- reCaptchaToken: string;
1439
- /**
1440
- * List of answers in for the question / thread
1441
- */
1442
- responses: Response[];
1443
- }
1444
- export interface QuestionsResult {
1445
- /**
1446
- * Flag indicating if there are more QnA threads to be shown (for paging)
1447
- */
1448
- hasMoreQuestions: boolean;
1449
- /**
1450
- * List of the QnA threads
1451
- */
1452
- questions: Question[];
1453
- }
1454
- export interface RatingCountPerRating {
1455
- /**
1456
- * Rating value
1457
- */
1458
- rating: number;
1459
- /**
1460
- * Count of total ratings
1461
- */
1462
- ratingCount: number;
1463
- }
1464
- /**
1465
- * The structure of a response
1466
- */
1467
- export interface Response extends QnAItem {
1468
- reCaptchaToken: string;
1469
- }
1470
- /**
1471
- * The status of a REST Api response status.
1472
- */
1473
- export declare enum RestApiResponseStatus {
1474
- /**
1475
- * The operation is completed.
1476
- */
1477
- Completed = 0,
1478
- /**
1479
- * The operation is failed.
1480
- */
1481
- Failed = 1,
1482
- /**
1483
- * The operation is in progress.
1484
- */
1485
- Inprogress = 2,
1486
- /**
1487
- * The operation is in skipped.
1488
- */
1489
- Skipped = 3
1490
- }
1491
- /**
1492
- * REST Api Response
1493
- */
1494
- export interface RestApiResponseStatusModel {
1495
- /**
1496
- * Gets or sets the operation details
1497
- */
1498
- operationDetails: any;
1499
- /**
1500
- * Gets or sets the operation id
1501
- */
1502
- operationId: string;
1503
- /**
1504
- * Gets or sets the completed status percentage
1505
- */
1506
- percentageCompleted: number;
1507
- /**
1508
- * Gets or sets the status
1509
- */
1510
- status: RestApiResponseStatus;
1511
- /**
1512
- * Gets or sets the status message
1513
- */
1514
- statusMessage: string;
1515
- }
1516
- export interface Review {
1517
- /**
1518
- * Admin Reply, if any, for this review
1519
- */
1520
- adminReply: ReviewReply;
1521
- /**
1522
- * Unique identifier of a review item
1523
- */
1524
- id: number;
1525
- /**
1526
- * Flag for soft deletion
1527
- */
1528
- isDeleted: boolean;
1529
- /**
1530
- * Flag for Ignoring Review from average rating calculation
1531
- */
1532
- isIgnored: boolean;
1533
- /**
1534
- * Version of the product for which review was submitted
1535
- */
1536
- productVersion: string;
1537
- /**
1538
- * Rating provided by the user
1539
- */
1540
- rating: number;
1541
- reCaptchaToken: string;
1542
- /**
1543
- * Reply, if any, for this review
1544
- */
1545
- reply: ReviewReply;
1546
- /**
1547
- * Text description of the review
1548
- */
1549
- text: string;
1550
- /**
1551
- * Title of the review
1552
- */
1553
- title: string;
1554
- /**
1555
- * Time when the review was edited/updated
1556
- */
1557
- updatedDate: Date;
1558
- /**
1559
- * Name of the user
1560
- */
1561
- userDisplayName: string;
1562
- /**
1563
- * Id of the user who submitted the review
1564
- */
1565
- userId: string;
1566
- }
1567
- /**
1568
- * Type of operation
1569
- */
1570
- export declare enum ReviewEventOperation {
1571
- Create = 1,
1572
- Update = 2,
1573
- Delete = 3
1574
- }
1575
- /**
1576
- * Properties associated with Review event
1577
- */
1578
- export interface ReviewEventProperties {
1579
- /**
1580
- * Operation performed on Event - Create\\Update
1581
- */
1582
- eventOperation: ReviewEventOperation;
1583
- /**
1584
- * Flag to see if reply is admin reply
1585
- */
1586
- isAdminReply: boolean;
1587
- /**
1588
- * Flag to record if the review is ignored
1589
- */
1590
- isIgnored: boolean;
1591
- /**
1592
- * Rating at the time of event
1593
- */
1594
- rating: number;
1595
- /**
1596
- * Reply update date
1597
- */
1598
- replyDate: Date;
1599
- /**
1600
- * Publisher reply text or admin reply text
1601
- */
1602
- replyText: string;
1603
- /**
1604
- * User who responded to the review
1605
- */
1606
- replyUserId: string;
1607
- /**
1608
- * Review Event Type - Review
1609
- */
1610
- resourceType: ReviewResourceType;
1611
- /**
1612
- * Review update date
1613
- */
1614
- reviewDate: Date;
1615
- /**
1616
- * ReviewId of the review on which the operation is performed
1617
- */
1618
- reviewId: number;
1619
- /**
1620
- * Text in Review Text
1621
- */
1622
- reviewText: string;
1623
- /**
1624
- * User display name at the time of review
1625
- */
1626
- userDisplayName: string;
1627
- /**
1628
- * User who gave review
1629
- */
1630
- userId: string;
1631
- }
1632
- /**
1633
- * Options to GetReviews query
1634
- */
1635
- export declare enum ReviewFilterOptions {
1636
- /**
1637
- * No filtering, all reviews are returned (default option)
1638
- */
1639
- None = 0,
1640
- /**
1641
- * Filter out review items with empty review text
1642
- */
1643
- FilterEmptyReviews = 1,
1644
- /**
1645
- * Filter out review items with empty usernames
1646
- */
1647
- FilterEmptyUserNames = 2
1648
- }
1649
- export interface ReviewPatch {
1650
- /**
1651
- * Denotes the patch operation type
1652
- */
1653
- operation: ReviewPatchOperation;
1654
- /**
1655
- * Use when patch operation is FlagReview
1656
- */
1657
- reportedConcern: UserReportedConcern;
1658
- /**
1659
- * Use when patch operation is EditReview
1660
- */
1661
- reviewItem: Review;
1662
- }
1663
- /**
1664
- * Denotes the patch operation type
1665
- */
1666
- export declare enum ReviewPatchOperation {
1667
- /**
1668
- * Flag a review
1669
- */
1670
- FlagReview = 1,
1671
- /**
1672
- * Update an existing review
1673
- */
1674
- UpdateReview = 2,
1675
- /**
1676
- * Submit a reply for a review
1677
- */
1678
- ReplyToReview = 3,
1679
- /**
1680
- * Submit an admin response
1681
- */
1682
- AdminResponseForReview = 4,
1683
- /**
1684
- * Delete an Admin Reply
1685
- */
1686
- DeleteAdminReply = 5,
1687
- /**
1688
- * Delete Publisher Reply
1689
- */
1690
- DeletePublisherReply = 6
1691
- }
1692
- export interface ReviewReply {
1693
- /**
1694
- * Id of the reply
1695
- */
1696
- id: number;
1697
- /**
1698
- * Flag for soft deletion
1699
- */
1700
- isDeleted: boolean;
1701
- /**
1702
- * Version of the product when the reply was submitted or updated
1703
- */
1704
- productVersion: string;
1705
- /**
1706
- * Content of the reply
1707
- */
1708
- replyText: string;
1709
- /**
1710
- * Id of the review, to which this reply belongs
1711
- */
1712
- reviewId: number;
1713
- /**
1714
- * Title of the reply
1715
- */
1716
- title: string;
1717
- /**
1718
- * Date the reply was submitted or updated
1719
- */
1720
- updatedDate: Date;
1721
- /**
1722
- * Id of the user who left the reply
1723
- */
1724
- userId: string;
1725
- }
1726
- /**
1727
- * Type of event
1728
- */
1729
- export declare enum ReviewResourceType {
1730
- Review = 1,
1731
- PublisherReply = 2,
1732
- AdminReply = 3
1733
- }
1734
- export interface ReviewsResult {
1735
- /**
1736
- * Flag indicating if there are more reviews to be shown (for paging)
1737
- */
1738
- hasMoreReviews: boolean;
1739
- /**
1740
- * List of reviews
1741
- */
1742
- reviews: Review[];
1743
- /**
1744
- * Count of total review items
1745
- */
1746
- totalReviewCount: number;
1747
- }
1748
- export interface ReviewSummary {
1749
- /**
1750
- * Average Rating
1751
- */
1752
- averageRating: number;
1753
- /**
1754
- * Count of total ratings
1755
- */
1756
- ratingCount: number;
1757
- /**
1758
- * Split of count across rating
1759
- */
1760
- ratingSplit: RatingCountPerRating[];
1761
- }
1762
- /**
1763
- * Defines the sort order that can be defined for Extensions query
1764
- */
1765
- export declare enum SortByType {
1766
- /**
1767
- * The results will be sorted by relevance in case search query is given, if no search query resutls will be provided as is
1768
- */
1769
- Relevance = 0,
1770
- /**
1771
- * The results will be sorted as per Last Updated date of the extensions with recently updated at the top
1772
- */
1773
- LastUpdatedDate = 1,
1774
- /**
1775
- * Results will be sorted Alphabetically as per the title of the extension
1776
- */
1777
- Title = 2,
1778
- /**
1779
- * Results will be sorted Alphabetically as per Publisher title
1780
- */
1781
- Publisher = 3,
1782
- /**
1783
- * Results will be sorted by Install Count
1784
- */
1785
- InstallCount = 4,
1786
- /**
1787
- * The results will be sorted as per Published date of the extensions
1788
- */
1789
- PublishedDate = 5,
1790
- /**
1791
- * The results will be sorted as per Average ratings of the extensions
1792
- */
1793
- AverageRating = 6,
1794
- /**
1795
- * The results will be sorted as per Trending Daily Score of the extensions
1796
- */
1797
- TrendingDaily = 7,
1798
- /**
1799
- * The results will be sorted as per Trending weekly Score of the extensions
1800
- */
1801
- TrendingWeekly = 8,
1802
- /**
1803
- * The results will be sorted as per Trending monthly Score of the extensions
1804
- */
1805
- TrendingMonthly = 9,
1806
- /**
1807
- * The results will be sorted as per ReleaseDate of the extensions (date on which the extension first went public)
1808
- */
1809
- ReleaseDate = 10,
1810
- /**
1811
- * The results will be sorted as per Author defined in the VSix/Metadata. If not defined, publisher name is used This is specifically needed by VS IDE, other (new and old) clients are not encouraged to use this
1812
- */
1813
- Author = 11,
1814
- /**
1815
- * The results will be sorted as per Weighted Rating of the extension.
1816
- */
1817
- WeightedRating = 12
1818
- }
1819
- /**
1820
- * Defines the sort order that can be defined for Extensions query
1821
- */
1822
- export declare enum SortOrderType {
1823
- /**
1824
- * Results will be sorted in the default order as per the sorting type defined. The default varies for each type, e.g. for Relevance, default is Descending, for Title default is Ascending etc.
1825
- */
1826
- Default = 0,
1827
- /**
1828
- * The results will be sorted in Ascending order
1829
- */
1830
- Ascending = 1,
1831
- /**
1832
- * The results will be sorted in Descending order
1833
- */
1834
- Descending = 2
1835
- }
1836
- export interface UnpackagedExtensionData {
1837
- categories: string[];
1838
- description: string;
1839
- displayName: string;
1840
- draftId: string;
1841
- extensionName: string;
1842
- installationTargets: InstallationTarget[];
1843
- isConvertedToMarkdown: boolean;
1844
- isPreview: boolean;
1845
- pricingCategory: string;
1846
- product: string;
1847
- publisherName: string;
1848
- qnAEnabled: boolean;
1849
- referralUrl: string;
1850
- repositoryUrl: string;
1851
- tags: string[];
1852
- version: string;
1853
- vsixId: string;
1854
- }
1855
- /**
1856
- * Represents the extension policy applied to a given user
1857
- */
1858
- export interface UserExtensionPolicy {
1859
- /**
1860
- * User display name that this policy refers to
1861
- */
1862
- displayName: string;
1863
- /**
1864
- * The extension policy applied to the user
1865
- */
1866
- permissions: ExtensionPolicy;
1867
- /**
1868
- * User id that this policy refers to
1869
- */
1870
- userId: string;
1871
- }
1872
- /**
1873
- * Identity reference with name and guid
1874
- */
1875
- export interface UserIdentityRef {
1876
- /**
1877
- * User display name
1878
- */
1879
- displayName: string;
1880
- /**
1881
- * User VSID
1882
- */
1883
- id: string;
1884
- }
1885
- export interface UserReportedConcern {
1886
- /**
1887
- * Category of the concern
1888
- */
1889
- category: ConcernCategory;
1890
- /**
1891
- * User comment associated with the report
1892
- */
1893
- concernText: string;
1894
- /**
1895
- * Id of the review which was reported
1896
- */
1897
- reviewId: number;
1898
- /**
1899
- * Date the report was submitted
1900
- */
1901
- submittedDate: Date;
1902
- /**
1903
- * Id of the user who reported a review
1904
- */
1905
- userId: string;
1906
- }
1907
- export declare enum VSCodeWebExtensionStatisicsType {
1908
- Install = 1,
1909
- Update = 2,
1910
- Uninstall = 3
1911
- }
1
+ import * as WebApi from "../WebApi/WebApi";
2
+ /**
3
+ * How the acquisition is assigned
4
+ */
5
+ export declare enum AcquisitionAssignmentType {
6
+ None = 0,
7
+ /**
8
+ * Just assign for me
9
+ */
10
+ Me = 1,
11
+ /**
12
+ * Assign for all users in the account
13
+ */
14
+ All = 2
15
+ }
16
+ export interface AcquisitionOperation {
17
+ /**
18
+ * State of the AcquisitionOperation for the current user
19
+ */
20
+ operationState: AcquisitionOperationState;
21
+ /**
22
+ * AcquisitionOperationType: install, request, buy, etc...
23
+ */
24
+ operationType: AcquisitionOperationType;
25
+ /**
26
+ * Optional reason to justify current state. Typically used with Disallow state.
27
+ */
28
+ reason: string;
29
+ }
30
+ export declare enum AcquisitionOperationState {
31
+ /**
32
+ * Not allowed to use this AcquisitionOperation
33
+ */
34
+ Disallow = 0,
35
+ /**
36
+ * Allowed to use this AcquisitionOperation
37
+ */
38
+ Allow = 1,
39
+ /**
40
+ * Operation has already been completed and is no longer available
41
+ */
42
+ Completed = 3
43
+ }
44
+ /**
45
+ * Set of different types of operations that can be requested.
46
+ */
47
+ export declare enum AcquisitionOperationType {
48
+ /**
49
+ * Not yet used
50
+ */
51
+ Get = 0,
52
+ /**
53
+ * Install this extension into the host provided
54
+ */
55
+ Install = 1,
56
+ /**
57
+ * Buy licenses for this extension and install into the host provided
58
+ */
59
+ Buy = 2,
60
+ /**
61
+ * Try this extension
62
+ */
63
+ Try = 3,
64
+ /**
65
+ * Request this extension for installation
66
+ */
67
+ Request = 4,
68
+ /**
69
+ * No action found
70
+ */
71
+ None = 5,
72
+ /**
73
+ * Request admins for purchasing extension
74
+ */
75
+ PurchaseRequest = 6
76
+ }
77
+ /**
78
+ * Market item acquisition options (install, buy, etc) for an installation target.
79
+ */
80
+ export interface AcquisitionOptions {
81
+ /**
82
+ * Default Operation for the ItemId in this target
83
+ */
84
+ defaultOperation: AcquisitionOperation;
85
+ /**
86
+ * The item id that this options refer to
87
+ */
88
+ itemId: string;
89
+ /**
90
+ * Operations allowed for the ItemId in this target
91
+ */
92
+ operations: AcquisitionOperation[];
93
+ /**
94
+ * The target that this options refer to
95
+ */
96
+ target: string;
97
+ }
98
+ export interface Answers {
99
+ /**
100
+ * Gets or sets the vs marketplace extension name
101
+ */
102
+ vsMarketplaceExtensionName: string;
103
+ /**
104
+ * Gets or sets the vs marketplace publisher name
105
+ */
106
+ vsMarketplacePublisherName: string;
107
+ }
108
+ export interface AssetDetails {
109
+ /**
110
+ * Gets or sets the Answers, which contains vs marketplace extension name and publisher name
111
+ */
112
+ answers: Answers;
113
+ /**
114
+ * Gets or sets the VS publisher Id
115
+ */
116
+ publisherNaturalIdentifier: string;
117
+ }
118
+ export interface AzurePublisher {
119
+ azurePublisherId: string;
120
+ publisherName: string;
121
+ }
122
+ export interface AzureRestApiRequestModel {
123
+ /**
124
+ * Gets or sets the Asset details
125
+ */
126
+ assetDetails: AssetDetails;
127
+ /**
128
+ * Gets or sets the asset id
129
+ */
130
+ assetId: string;
131
+ /**
132
+ * Gets or sets the asset version
133
+ */
134
+ assetVersion: number;
135
+ /**
136
+ * Gets or sets the customer support email
137
+ */
138
+ customerSupportEmail: string;
139
+ /**
140
+ * Gets or sets the integration contact email
141
+ */
142
+ integrationContactEmail: string;
143
+ /**
144
+ * Gets or sets the asset version
145
+ */
146
+ operation: string;
147
+ /**
148
+ * Gets or sets the plan identifier if any.
149
+ */
150
+ planId: string;
151
+ /**
152
+ * Gets or sets the publisher id
153
+ */
154
+ publisherId: string;
155
+ /**
156
+ * Gets or sets the resource type
157
+ */
158
+ type: string;
159
+ }
160
+ export interface AzureRestApiResponseModel extends AzureRestApiRequestModel {
161
+ /**
162
+ * Gets or sets the Asset operation status
163
+ */
164
+ operationStatus: RestApiResponseStatusModel;
165
+ }
166
+ /**
167
+ * This is the set of categories in response to the get category query
168
+ */
169
+ export interface CategoriesResult {
170
+ categories: ExtensionCategory[];
171
+ }
172
+ /**
173
+ * Definition of one title of a category
174
+ */
175
+ export interface CategoryLanguageTitle {
176
+ /**
177
+ * The language for which the title is applicable
178
+ */
179
+ lang: string;
180
+ /**
181
+ * The language culture id of the lang parameter
182
+ */
183
+ lcid: number;
184
+ /**
185
+ * Actual title to be shown on the UI
186
+ */
187
+ title: string;
188
+ }
189
+ /**
190
+ * The structure of a Concern Rather than defining a separate data structure having same fields as QnAItem, we are inheriting from the QnAItem.
191
+ */
192
+ export interface Concern extends QnAItem {
193
+ /**
194
+ * Category of the concern
195
+ */
196
+ category: ConcernCategory;
197
+ }
198
+ export declare enum ConcernCategory {
199
+ General = 1,
200
+ Abusive = 2,
201
+ Spam = 4
202
+ }
203
+ /**
204
+ * Stores Last Contact Date
205
+ */
206
+ export interface CustomerLastContact {
207
+ /**
208
+ * account for which customer was last contacted
209
+ */
210
+ account: string;
211
+ /**
212
+ * Date on which the customer was last contacted
213
+ */
214
+ lastContactDate: Date;
215
+ }
216
+ /**
217
+ * An entity representing the data required to create a Customer Support Request.
218
+ */
219
+ export interface CustomerSupportRequest {
220
+ /**
221
+ * Display name of extension in concern
222
+ */
223
+ displayName: string;
224
+ /**
225
+ * Email of user making the support request
226
+ */
227
+ emailId: string;
228
+ /**
229
+ * Extension name
230
+ */
231
+ extensionName: string;
232
+ /**
233
+ * Link to the extension details page
234
+ */
235
+ extensionURL: string;
236
+ /**
237
+ * User-provided support request message.
238
+ */
239
+ message: string;
240
+ /**
241
+ * Publisher name
242
+ */
243
+ publisherName: string;
244
+ /**
245
+ * Reason for support request
246
+ */
247
+ reason: string;
248
+ /**
249
+ * ReCaptcha Token
250
+ */
251
+ reCaptchaToken: string;
252
+ /**
253
+ * VSID of the user making the support request
254
+ */
255
+ reporterVSID: string;
256
+ /**
257
+ * Review under concern
258
+ */
259
+ review: Review;
260
+ /**
261
+ * The UI source through which the request was made
262
+ */
263
+ sourceLink: string;
264
+ }
265
+ export declare enum DraftPatchOperation {
266
+ Publish = 1,
267
+ Cancel = 2
268
+ }
269
+ export declare enum DraftStateType {
270
+ Unpublished = 1,
271
+ Published = 2,
272
+ Cancelled = 3,
273
+ Error = 4
274
+ }
275
+ export interface EventCounts {
276
+ /**
277
+ * Average rating on the day for extension
278
+ */
279
+ averageRating: number;
280
+ /**
281
+ * Number of times the extension was bought in hosted scenario (applies only to VSTS extensions)
282
+ */
283
+ buyCount: number;
284
+ /**
285
+ * Number of times the extension was bought in connected scenario (applies only to VSTS extensions)
286
+ */
287
+ connectedBuyCount: number;
288
+ /**
289
+ * Number of times the extension was installed in connected scenario (applies only to VSTS extensions)
290
+ */
291
+ connectedInstallCount: number;
292
+ /**
293
+ * Number of times the extension was installed
294
+ */
295
+ installCount: number;
296
+ /**
297
+ * Number of times the extension was installed as a trial (applies only to VSTS extensions)
298
+ */
299
+ tryCount: number;
300
+ /**
301
+ * Number of times the extension was uninstalled (applies only to VSTS extensions)
302
+ */
303
+ uninstallCount: number;
304
+ /**
305
+ * Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs)
306
+ */
307
+ webDownloadCount: number;
308
+ /**
309
+ * Number of detail page views
310
+ */
311
+ webPageViews: number;
312
+ }
313
+ /**
314
+ * Contract for handling the extension acquisition process
315
+ */
316
+ export interface ExtensionAcquisitionRequest {
317
+ /**
318
+ * How the item is being assigned
319
+ */
320
+ assignmentType: AcquisitionAssignmentType;
321
+ /**
322
+ * The id of the subscription used for purchase
323
+ */
324
+ billingId: string;
325
+ /**
326
+ * The marketplace id (publisherName.extensionName) for the item
327
+ */
328
+ itemId: string;
329
+ /**
330
+ * The type of operation, such as install, request, purchase
331
+ */
332
+ operationType: AcquisitionOperationType;
333
+ /**
334
+ * Additional properties which can be added to the request.
335
+ */
336
+ properties: any;
337
+ /**
338
+ * How many licenses should be purchased
339
+ */
340
+ quantity: number;
341
+ /**
342
+ * A list of target guids where the item should be acquired (installed, requested, etc.), such as account id
343
+ */
344
+ targets: string[];
345
+ }
346
+ export interface ExtensionBadge {
347
+ description: string;
348
+ imgUri: string;
349
+ link: string;
350
+ }
351
+ export interface ExtensionCategory {
352
+ /**
353
+ * The name of the products with which this category is associated to.
354
+ */
355
+ associatedProducts: string[];
356
+ categoryId: number;
357
+ /**
358
+ * This is the internal name for a category
359
+ */
360
+ categoryName: string;
361
+ /**
362
+ * This parameter is obsolete. Refer to LanguageTitles for language specific titles
363
+ */
364
+ language: string;
365
+ /**
366
+ * The list of all the titles of this category in various languages
367
+ */
368
+ languageTitles: CategoryLanguageTitle[];
369
+ /**
370
+ * This is the internal name of the parent if this is associated with a parent
371
+ */
372
+ parentCategoryName: string;
373
+ }
374
+ export interface ExtensionDailyStat {
375
+ /**
376
+ * Stores the event counts
377
+ */
378
+ counts: EventCounts;
379
+ /**
380
+ * Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc.
381
+ */
382
+ extendedStats: {
383
+ [key: string]: any;
384
+ };
385
+ /**
386
+ * Timestamp of this data point
387
+ */
388
+ statisticDate: Date;
389
+ /**
390
+ * Version of the extension
391
+ */
392
+ version: string;
393
+ }
394
+ export interface ExtensionDailyStats {
395
+ /**
396
+ * List of extension statistics data points
397
+ */
398
+ dailyStats: ExtensionDailyStat[];
399
+ /**
400
+ * Id of the extension, this will never be sent back to the client. For internal use only.
401
+ */
402
+ extensionId: string;
403
+ /**
404
+ * Name of the extension
405
+ */
406
+ extensionName: string;
407
+ /**
408
+ * Name of the publisher
409
+ */
410
+ publisherName: string;
411
+ /**
412
+ * Count of stats
413
+ */
414
+ statCount: number;
415
+ }
416
+ export declare enum ExtensionDeploymentTechnology {
417
+ Exe = 1,
418
+ Msi = 2,
419
+ Vsix = 3,
420
+ ReferralLink = 4
421
+ }
422
+ export interface ExtensionDraft {
423
+ assets: ExtensionDraftAsset[];
424
+ createdDate: Date;
425
+ draftState: DraftStateType;
426
+ extensionName: string;
427
+ id: string;
428
+ lastUpdated: Date;
429
+ payload: ExtensionPayload;
430
+ product: string;
431
+ publisherName: string;
432
+ validationErrors: {
433
+ key: string;
434
+ value: string;
435
+ }[];
436
+ validationWarnings: {
437
+ key: string;
438
+ value: string;
439
+ }[];
440
+ }
441
+ export interface ExtensionDraftAsset extends ExtensionFile {
442
+ }
443
+ export interface ExtensionDraftPatch {
444
+ extensionData: UnpackagedExtensionData;
445
+ operation: DraftPatchOperation;
446
+ reCaptchaToken: string;
447
+ }
448
+ /**
449
+ * Stores details of each event
450
+ */
451
+ export interface ExtensionEvent {
452
+ /**
453
+ * Id which identifies each data point uniquely
454
+ */
455
+ id: number;
456
+ /**
457
+ * Generic properties container which stores the data related to each event. For well known events like uninstall, install etc. We expect the Properties object to be a List\<UninstallProperties\>, List\<InstallProperties\>
458
+ */
459
+ properties: any;
460
+ /**
461
+ * Timestamp of when the event occurred
462
+ */
463
+ statisticDate: Date;
464
+ /**
465
+ * Version of the extension
466
+ */
467
+ version: string;
468
+ }
469
+ /**
470
+ * Container object for all extension events. Stores all install and uninstall events related to an extension. The events container is generic so can store data of any type of event. New event types can be added without altering the contract.
471
+ */
472
+ export interface ExtensionEvents {
473
+ /**
474
+ * Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event
475
+ */
476
+ events: {
477
+ [key: string]: ExtensionEvent[];
478
+ };
479
+ /**
480
+ * Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go.
481
+ */
482
+ extensionId: string;
483
+ /**
484
+ * Name of the extension
485
+ */
486
+ extensionName: string;
487
+ /**
488
+ * Name of the publisher
489
+ */
490
+ publisherName: string;
491
+ }
492
+ export interface ExtensionFile {
493
+ assetType: string;
494
+ language: string;
495
+ source: string;
496
+ }
497
+ /**
498
+ * The FilterResult is the set of extensions that matched a particular query filter.
499
+ */
500
+ export interface ExtensionFilterResult {
501
+ /**
502
+ * This is the set of applications that matched the query filter supplied.
503
+ */
504
+ extensions: PublishedExtension[];
505
+ /**
506
+ * The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results.
507
+ */
508
+ pagingToken: string;
509
+ /**
510
+ * This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results
511
+ */
512
+ resultMetadata: ExtensionFilterResultMetadata[];
513
+ }
514
+ /**
515
+ * ExtensionFilterResultMetadata is one set of metadata for the result e.g. Total count. There can be multiple metadata items for one metadata.
516
+ */
517
+ export interface ExtensionFilterResultMetadata {
518
+ /**
519
+ * The metadata items for the category
520
+ */
521
+ metadataItems: MetadataItem[];
522
+ /**
523
+ * Defines the category of metadata items
524
+ */
525
+ metadataType: string;
526
+ }
527
+ /**
528
+ * Represents the component pieces of an extensions fully qualified name, along with the fully qualified name.
529
+ */
530
+ export interface ExtensionIdentifier {
531
+ /**
532
+ * The ExtensionName component part of the fully qualified ExtensionIdentifier
533
+ */
534
+ extensionName: string;
535
+ /**
536
+ * The PublisherName component part of the fully qualified ExtensionIdentifier
537
+ */
538
+ publisherName: string;
539
+ }
540
+ /**
541
+ * Type of event
542
+ */
543
+ export declare enum ExtensionLifecycleEventType {
544
+ Uninstall = 1,
545
+ Install = 2,
546
+ Review = 3,
547
+ Acquisition = 4,
548
+ Sales = 5,
549
+ Other = 999
550
+ }
551
+ /**
552
+ * Package that will be used to create or update a published extension
553
+ */
554
+ export interface ExtensionPackage {
555
+ /**
556
+ * Base 64 encoded extension package
557
+ */
558
+ extensionManifest: string;
559
+ }
560
+ export interface ExtensionPayload {
561
+ description: string;
562
+ displayName: string;
563
+ fileName: string;
564
+ installationTargets: InstallationTarget[];
565
+ isPreview: boolean;
566
+ isSignedByMicrosoft: boolean;
567
+ isValid: boolean;
568
+ metadata: {
569
+ key: string;
570
+ value: string;
571
+ }[];
572
+ type: ExtensionDeploymentTechnology;
573
+ }
574
+ /**
575
+ * Policy with a set of permissions on extension operations
576
+ */
577
+ export interface ExtensionPolicy {
578
+ /**
579
+ * Permissions on 'Install' operation
580
+ */
581
+ install: ExtensionPolicyFlags;
582
+ /**
583
+ * Permission on 'Request' operation
584
+ */
585
+ request: ExtensionPolicyFlags;
586
+ }
587
+ /**
588
+ * Set of flags that can be associated with a given permission over an extension
589
+ */
590
+ export declare enum ExtensionPolicyFlags {
591
+ /**
592
+ * No permission
593
+ */
594
+ None = 0,
595
+ /**
596
+ * Permission on private extensions
597
+ */
598
+ Private = 1,
599
+ /**
600
+ * Permission on public extensions
601
+ */
602
+ Public = 2,
603
+ /**
604
+ * Permission in extensions that are in preview
605
+ */
606
+ Preview = 4,
607
+ /**
608
+ * Permission in released extensions
609
+ */
610
+ Released = 8,
611
+ /**
612
+ * Permission in 1st party extensions
613
+ */
614
+ FirstParty = 16,
615
+ /**
616
+ * Mask that defines all permissions
617
+ */
618
+ All = 31
619
+ }
620
+ /**
621
+ * An ExtensionQuery is used to search the gallery for a set of extensions that match one of many filter values.
622
+ */
623
+ export interface ExtensionQuery {
624
+ /**
625
+ * When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned.
626
+ */
627
+ assetTypes: string[];
628
+ /**
629
+ * Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query.
630
+ */
631
+ filters: QueryFilter[];
632
+ /**
633
+ * The Flags are used to determine which set of information the caller would like returned for the matched extensions.
634
+ */
635
+ flags: ExtensionQueryFlags;
636
+ }
637
+ /**
638
+ * Type of extension filters that are supported in the queries.
639
+ */
640
+ export declare enum ExtensionQueryFilterType {
641
+ /**
642
+ * The values are used as tags. All tags are treated as "OR" conditions with each other. There may be some value put on the number of matched tags from the query.
643
+ */
644
+ Tag = 1,
645
+ /**
646
+ * The Values are an ExtensionName or fragment that is used to match other extension names.
647
+ */
648
+ DisplayName = 2,
649
+ /**
650
+ * The Filter is one or more tokens that define what scope to return private extensions for.
651
+ */
652
+ Private = 3,
653
+ /**
654
+ * Retrieve a set of extensions based on their id's. The values should be the extension id's encoded as strings.
655
+ */
656
+ Id = 4,
657
+ /**
658
+ * The category is unlike other filters. It is AND'd with the other filters instead of being a separate query.
659
+ */
660
+ Category = 5,
661
+ /**
662
+ * Certain contribution types may be indexed to allow for query by type. User defined types can't be indexed at the moment.
663
+ */
664
+ ContributionType = 6,
665
+ /**
666
+ * Retrieve an set extension based on the name based identifier. This differs from the internal id (which is being deprecated).
667
+ */
668
+ Name = 7,
669
+ /**
670
+ * The InstallationTarget for an extension defines the target consumer for the extension. This may be something like VS, VSOnline, or VSCode
671
+ */
672
+ InstallationTarget = 8,
673
+ /**
674
+ * Query for featured extensions, no value is allowed when using the query type.
675
+ */
676
+ Featured = 9,
677
+ /**
678
+ * The SearchText provided by the user to search for extensions
679
+ */
680
+ SearchText = 10,
681
+ /**
682
+ * Query for extensions that are featured in their own category, The filterValue for this is name of category of extensions.
683
+ */
684
+ FeaturedInCategory = 11,
685
+ /**
686
+ * When retrieving extensions from a query, exclude the extensions which are having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be excluded. In case of multiple flags to be specified, a logical OR of the interger values should be given as value for this filter This should be at most one filter of this type. This only acts as a restrictive filter after. In case of having a particular flag in both IncludeWithFlags and ExcludeWithFlags, excludeFlags will remove the included extensions giving empty result for that flag.
687
+ */
688
+ ExcludeWithFlags = 12,
689
+ /**
690
+ * When retrieving extensions from a query, include the extensions which are having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be included. In case of multiple flags to be specified, a logical OR of the integer values should be given as value for this filter This should be at most one filter of this type. This only acts as a restrictive filter after. In case of having a particular flag in both IncludeWithFlags and ExcludeWithFlags, excludeFlags will remove the included extensions giving empty result for that flag. In case of multiple flags given in IncludeWithFlags in ORed fashion, extensions having any of the given flags will be included.
691
+ */
692
+ IncludeWithFlags = 13,
693
+ /**
694
+ * Filter the extensions based on the LCID values applicable. Any extensions which are not having any LCID values will also be filtered. This is currently only supported for VS extensions.
695
+ */
696
+ Lcid = 14,
697
+ /**
698
+ * Filter to provide the version of the installation target. This filter will be used along with InstallationTarget filter. The value should be a valid version string. Currently supported only if search text is provided.
699
+ */
700
+ InstallationTargetVersion = 15,
701
+ /**
702
+ * Filter type for specifying a range of installation target version. The filter will be used along with InstallationTarget filter. The value should be a pair of well formed version values separated by hyphen(-). Currently supported only if search text is provided.
703
+ */
704
+ InstallationTargetVersionRange = 16,
705
+ /**
706
+ * Filter type for specifying metadata key and value to be used for filtering.
707
+ */
708
+ VsixMetadata = 17,
709
+ /**
710
+ * Filter to get extensions published by a publisher having supplied internal name
711
+ */
712
+ PublisherName = 18,
713
+ /**
714
+ * Filter to get extensions published by all publishers having supplied display name
715
+ */
716
+ PublisherDisplayName = 19,
717
+ /**
718
+ * When retrieving extensions from a query, include the extensions which have a publisher having the given flags. The value specified for this filter should be a string representing the integer values of the flags to be included. In case of multiple flags to be specified, a logical OR of the integer values should be given as value for this filter There should be at most one filter of this type. This only acts as a restrictive filter after. In case of multiple flags given in IncludeWithFlags in ORed fashion, extensions having any of the given flags will be included.
719
+ */
720
+ IncludeWithPublisherFlags = 20,
721
+ /**
722
+ * Filter to get extensions shared with particular organization
723
+ */
724
+ OrganizationSharedWith = 21,
725
+ /**
726
+ * Filter to get VS IDE extensions by Product Architecture
727
+ */
728
+ ProductArchitecture = 22,
729
+ /**
730
+ * Filter to get VS Code extensions by target platform.
731
+ */
732
+ TargetPlatform = 23,
733
+ /**
734
+ * Retrieve an extension based on the extensionName.
735
+ */
736
+ ExtensionName = 24
737
+ }
738
+ /**
739
+ * Set of flags used to determine which set of information is retrieved when reading published extensions
740
+ */
741
+ export declare enum ExtensionQueryFlags {
742
+ /**
743
+ * None is used to retrieve only the basic extension details.
744
+ */
745
+ None = 0,
746
+ /**
747
+ * IncludeVersions will return version information for extensions returned
748
+ */
749
+ IncludeVersions = 1,
750
+ /**
751
+ * IncludeFiles will return information about which files were found within the extension that were stored independent of the manifest. When asking for files, versions will be included as well since files are returned as a property of the versions. These files can be retrieved using the path to the file without requiring the entire manifest be downloaded.
752
+ */
753
+ IncludeFiles = 2,
754
+ /**
755
+ * Include the Categories and Tags that were added to the extension definition.
756
+ */
757
+ IncludeCategoryAndTags = 4,
758
+ /**
759
+ * Include the details about which accounts the extension has been shared with if the extension is a private extension.
760
+ */
761
+ IncludeSharedAccounts = 8,
762
+ /**
763
+ * Include properties associated with versions of the extension
764
+ */
765
+ IncludeVersionProperties = 16,
766
+ /**
767
+ * Excluding non-validated extensions will remove any extension versions that either are in the process of being validated or have failed validation.
768
+ */
769
+ ExcludeNonValidated = 32,
770
+ /**
771
+ * Include the set of installation targets the extension has requested.
772
+ */
773
+ IncludeInstallationTargets = 64,
774
+ /**
775
+ * Include the base uri for assets of this extension
776
+ */
777
+ IncludeAssetUri = 128,
778
+ /**
779
+ * Include the statistics associated with this extension
780
+ */
781
+ IncludeStatistics = 256,
782
+ /**
783
+ * When retrieving versions from a query, only include the latest version of the extensions that matched. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
784
+ */
785
+ IncludeLatestVersionOnly = 512,
786
+ /**
787
+ * This flag switches the asset uri to use GetAssetByName instead of CDN When this is used, values of base asset uri and base asset uri fallback are switched When this is used, source of asset files are pointed to Gallery service always even if CDN is available
788
+ */
789
+ UseFallbackAssetUri = 1024,
790
+ /**
791
+ * This flag is used to get all the metadata values associated with the extension. This is not applicable to VSTS or VSCode extensions and usage is only internal.
792
+ */
793
+ IncludeMetadata = 2048,
794
+ /**
795
+ * This flag is used to indicate to return very small data for extension required by VS IDE. This flag is only compatible when querying is done by VS IDE
796
+ */
797
+ IncludeMinimalPayloadForVsIde = 4096,
798
+ /**
799
+ * This flag is used to get Lcid values associated with the extension. This is not applicable to VSTS or VSCode extensions and usage is only internal
800
+ */
801
+ IncludeLcids = 8192,
802
+ /**
803
+ * Include the details about which organizations the extension has been shared with if the extension is a private extension.
804
+ */
805
+ IncludeSharedOrganizations = 16384,
806
+ /**
807
+ * Include the details if an extension is in conflict list or not Currently being used for VSCode extensions.
808
+ */
809
+ IncludeNameConflictInfo = 32768,
810
+ /**
811
+ * When retrieving versions from a query, return the details with both latest prerelease and stable version of the extensions that matched, if not prerelease version, only return stable version. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
812
+ */
813
+ IncludeLatestPrereleaseAndStableVersionOnly = 65536,
814
+ /**
815
+ * Include deleted extensions in the result set, and usage is only internal.
816
+ */
817
+ IncludeDeleted = 131072,
818
+ /**
819
+ * AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
820
+ */
821
+ AllAttributes = 16863
822
+ }
823
+ /**
824
+ * This is the set of extensions that matched a supplied query through the filters given.
825
+ */
826
+ export interface ExtensionQueryResult {
827
+ /**
828
+ * For each filter supplied in the query, a filter result will be returned in the query result.
829
+ */
830
+ results: ExtensionFilterResult[];
831
+ }
832
+ export interface ExtensionShare {
833
+ id: string;
834
+ isOrg: boolean;
835
+ name: string;
836
+ type: string;
837
+ }
838
+ export interface ExtensionStatistic {
839
+ statisticName: string;
840
+ value: number;
841
+ }
842
+ export declare enum ExtensionStatisticOperation {
843
+ None = 0,
844
+ Set = 1,
845
+ Increment = 2,
846
+ Decrement = 3,
847
+ Delete = 4
848
+ }
849
+ export interface ExtensionStatisticUpdate {
850
+ extensionName: string;
851
+ operation: ExtensionStatisticOperation;
852
+ publisherName: string;
853
+ statistic: ExtensionStatistic;
854
+ }
855
+ /**
856
+ * Stats aggregation type
857
+ */
858
+ export declare enum ExtensionStatsAggregateType {
859
+ Daily = 1
860
+ }
861
+ export interface ExtensionVersion {
862
+ assetUri: string;
863
+ badges: ExtensionBadge[];
864
+ fallbackAssetUri: string;
865
+ files: ExtensionFile[];
866
+ flags: ExtensionVersionFlags;
867
+ lastUpdated: Date;
868
+ properties: {
869
+ key: string;
870
+ value: string;
871
+ }[];
872
+ targetPlatform: string;
873
+ validationResultMessage: string;
874
+ version: string;
875
+ versionDescription: string;
876
+ }
877
+ /**
878
+ * Set of flags that can be associated with a given extension version. These flags apply to a specific version of the extension.
879
+ */
880
+ export declare enum ExtensionVersionFlags {
881
+ /**
882
+ * No flags exist for this version.
883
+ */
884
+ None = 0,
885
+ /**
886
+ * The Validated flag for a version means the extension version has passed validation and can be used.
887
+ */
888
+ Validated = 1,
889
+ /**
890
+ * The Prerelease flag for a version means the extension version is prerelease. This flag is runtime only.
891
+ */
892
+ Prerelease = 2,
893
+ /**
894
+ * This version has been deleted.
895
+ */
896
+ Deleted = 4
897
+ }
898
+ /**
899
+ * One condition in a QueryFilter.
900
+ */
901
+ export interface FilterCriteria {
902
+ /**
903
+ * The FilterType defines how the filters are to be applied to the extensions. See the documentation on the filter type to understand how the filters are matched.
904
+ */
905
+ filterType: number;
906
+ /**
907
+ * The value used in the match based on the filter type.
908
+ */
909
+ value: string;
910
+ }
911
+ export interface InstallationTarget {
912
+ extensionVersion: string;
913
+ productArchitecture: string;
914
+ target: string;
915
+ targetPlatform: string;
916
+ targetVersion: string;
917
+ }
918
+ /**
919
+ * MetadataItem is one value of metadata under a given category of metadata
920
+ */
921
+ export interface MetadataItem {
922
+ /**
923
+ * The count of the metadata item
924
+ */
925
+ count: number;
926
+ /**
927
+ * The name of the metadata item
928
+ */
929
+ name: string;
930
+ }
931
+ /**
932
+ * Information needed for sending mail notification
933
+ */
934
+ export interface NotificationsData {
935
+ /**
936
+ * Notification data needed
937
+ */
938
+ data: {
939
+ [key: string]: any;
940
+ };
941
+ /**
942
+ * List of users who should get the notification
943
+ */
944
+ identities: {
945
+ [key: string]: any;
946
+ };
947
+ /**
948
+ * Type of Mail Notification.Can be Qna , review or CustomerContact
949
+ */
950
+ type: NotificationTemplateType;
951
+ }
952
+ /**
953
+ * Type of event
954
+ */
955
+ export declare enum NotificationTemplateType {
956
+ /**
957
+ * Template type for Review Notification.
958
+ */
959
+ ReviewNotification = 1,
960
+ /**
961
+ * Template type for Qna Notification.
962
+ */
963
+ QnaNotification = 2,
964
+ /**
965
+ * Template type for Customer Contact Notification.
966
+ */
967
+ CustomerContactNotification = 3,
968
+ /**
969
+ * Template type for Publisher Member Notification.
970
+ */
971
+ PublisherMemberUpdateNotification = 4
972
+ }
973
+ /**
974
+ * PagingDirection is used to define which set direction to move the returned result set based on a previous query.
975
+ */
976
+ export declare enum PagingDirection {
977
+ /**
978
+ * Backward will return results from earlier in the resultset.
979
+ */
980
+ Backward = 1,
981
+ /**
982
+ * Forward will return results from later in the resultset.
983
+ */
984
+ Forward = 2
985
+ }
986
+ /**
987
+ * This is the set of categories in response to the get category query
988
+ */
989
+ export interface ProductCategoriesResult {
990
+ categories: ProductCategory[];
991
+ }
992
+ /**
993
+ * This is the interface object to be used by Root Categories and Category Tree APIs for Visual Studio Ide.
994
+ */
995
+ export interface ProductCategory {
996
+ children: ProductCategory[];
997
+ /**
998
+ * Indicator whether this is a leaf or there are children under this category
999
+ */
1000
+ hasChildren: boolean;
1001
+ /**
1002
+ * Individual Guid of the Category
1003
+ */
1004
+ id: string;
1005
+ /**
1006
+ * Category Title in the requested language
1007
+ */
1008
+ title: string;
1009
+ }
1010
+ export interface PublishedExtension {
1011
+ categories: string[];
1012
+ deploymentType: ExtensionDeploymentTechnology;
1013
+ displayName: string;
1014
+ extensionId: string;
1015
+ extensionName: string;
1016
+ flags: PublishedExtensionFlags;
1017
+ installationTargets: InstallationTarget[];
1018
+ lastUpdated: Date;
1019
+ longDescription: string;
1020
+ /**
1021
+ * Check if Extension is in conflict list or not. Taking as String and not as boolean because we don't want end customer to see this flag and by making it Boolean it is coming as false for all the cases.
1022
+ */
1023
+ presentInConflictList: string;
1024
+ /**
1025
+ * Date on which the extension was first uploaded.
1026
+ */
1027
+ publishedDate: Date;
1028
+ publisher: PublisherFacts;
1029
+ /**
1030
+ * Date on which the extension first went public.
1031
+ */
1032
+ releaseDate: Date;
1033
+ sharedWith: ExtensionShare[];
1034
+ shortDescription: string;
1035
+ statistics: ExtensionStatistic[];
1036
+ tags: string[];
1037
+ versions: ExtensionVersion[];
1038
+ }
1039
+ /**
1040
+ * Set of flags that can be associated with a given extension. These flags apply to all versions of the extension and not to a specific version.
1041
+ */
1042
+ export declare enum PublishedExtensionFlags {
1043
+ /**
1044
+ * No flags exist for this extension.
1045
+ */
1046
+ None = 0,
1047
+ /**
1048
+ * The Disabled flag for an extension means the extension can't be changed and won't be used by consumers. The disabled flag is managed by the service and can't be supplied by the Extension Developers.
1049
+ */
1050
+ Disabled = 1,
1051
+ /**
1052
+ * BuiltIn Extension are available to all Tenants. An explicit registration is not required. This attribute is reserved and can't be supplied by Extension Developers. BuiltIn extensions are by definition Public. There is no need to set the public flag for extensions marked BuiltIn.
1053
+ */
1054
+ BuiltIn = 2,
1055
+ /**
1056
+ * This extension has been validated by the service. The extension meets the requirements specified. This attribute is reserved and can't be supplied by the Extension Developers. Validation is a process that ensures that all contributions are well formed. They meet the requirements defined by the contribution type they are extending. Note this attribute will be updated asynchronously as the extension is validated by the developer of the contribution type. There will be restricted access to the extension while this process is performed.
1057
+ */
1058
+ Validated = 4,
1059
+ /**
1060
+ * 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.
1061
+ */
1062
+ Trusted = 8,
1063
+ /**
1064
+ * The Paid flag indicates that the commerce can be enabled for this extension. Publisher needs to setup Offer/Pricing plan in Azure. If Paid flag is set and a corresponding Offer is not available, the extension will automatically be marked as Preview. If the publisher intends to make the extension Paid in the future, it is mandatory to set the Preview flag. This is currently available only for VSTS extensions only.
1065
+ */
1066
+ Paid = 16,
1067
+ /**
1068
+ * This extension registration is public, making its visibility open to the public. This means all tenants have the ability to install this extension. Without this flag the extension will be private and will need to be shared with the tenants that can install it.
1069
+ */
1070
+ Public = 256,
1071
+ /**
1072
+ * This extension has multiple versions active at one time and version discovery should be done using the defined "Version Discovery" protocol to determine the version available to a specific user or tenant. \@TODO: Link to Version Discovery Protocol.
1073
+ */
1074
+ MultiVersion = 512,
1075
+ /**
1076
+ * The system flag is reserved, and cant be used by publishers.
1077
+ */
1078
+ System = 1024,
1079
+ /**
1080
+ * The Preview flag indicates that the extension is still under preview (not yet of "release" quality). These extensions may be decorated differently in the gallery and may have different policies applied to them.
1081
+ */
1082
+ Preview = 2048,
1083
+ /**
1084
+ * The Unpublished flag indicates that the extension can't be installed/downloaded. Users who have installed such an extension can continue to use the extension.
1085
+ */
1086
+ Unpublished = 4096,
1087
+ /**
1088
+ * The Trial flag indicates that the extension is in Trial version. The flag is right now being used only with respect to Visual Studio extensions.
1089
+ */
1090
+ Trial = 8192,
1091
+ /**
1092
+ * The Locked flag indicates that extension has been locked from Marketplace. Further updates/acquisitions are not allowed on the extension until this is present. This should be used along with making the extension private/unpublished.
1093
+ */
1094
+ Locked = 16384,
1095
+ /**
1096
+ * This flag is set for extensions we want to hide from Marketplace home and search pages. This will be used to override the exposure of builtIn flags.
1097
+ */
1098
+ Hidden = 32768,
1099
+ /**
1100
+ * This flag is set for extensions that are marked as deleted. The deleted flag is managed by the service and can't be supplied by the Extension Developers.
1101
+ */
1102
+ Deleted = 65536
1103
+ }
1104
+ export interface Publisher extends PublisherBase {
1105
+ _links: any;
1106
+ domain: string;
1107
+ isDnsTokenVerified: boolean;
1108
+ isDomainVerified: boolean;
1109
+ reCaptchaToken: string;
1110
+ }
1111
+ /**
1112
+ * Keeping base class separate since publisher DB model class and publisher contract class share these common properties
1113
+ */
1114
+ export interface PublisherBase {
1115
+ displayName: string;
1116
+ emailAddress: string[];
1117
+ extensions: PublishedExtension[];
1118
+ flags: PublisherFlags;
1119
+ lastUpdated: Date;
1120
+ longDescription: string;
1121
+ publisherId: string;
1122
+ publisherName: string;
1123
+ shortDescription: string;
1124
+ state: PublisherState;
1125
+ }
1126
+ /**
1127
+ * High-level information about the publisher, like id's and names
1128
+ */
1129
+ export interface PublisherFacts {
1130
+ displayName: string;
1131
+ domain: string;
1132
+ flags: PublisherFlags;
1133
+ isDomainVerified: boolean;
1134
+ publisherId: string;
1135
+ publisherName: string;
1136
+ }
1137
+ /**
1138
+ * The FilterResult is the set of publishers that matched a particular query filter.
1139
+ */
1140
+ export interface PublisherFilterResult {
1141
+ /**
1142
+ * This is the set of applications that matched the query filter supplied.
1143
+ */
1144
+ publishers: Publisher[];
1145
+ }
1146
+ export declare enum PublisherFlags {
1147
+ /**
1148
+ * This should never be returned, it is used to represent a publisher who's flags haven't changed during update calls.
1149
+ */
1150
+ UnChanged = 1073741824,
1151
+ /**
1152
+ * No flags exist for this publisher.
1153
+ */
1154
+ None = 0,
1155
+ /**
1156
+ * The Disabled flag for a publisher means the publisher can't be changed and won't be used by consumers, this extends to extensions owned by the publisher as well. The disabled flag is managed by the service and can't be supplied by the Extension Developers.
1157
+ */
1158
+ Disabled = 1,
1159
+ /**
1160
+ * A verified publisher is one that Microsoft has done some review of and ensured the publisher meets a set of requirements. The requirements to become a verified publisher are not listed here. They can be found in public documentation (TBD).
1161
+ */
1162
+ Verified = 2,
1163
+ /**
1164
+ * A Certified publisher is one that is Microsoft verified and in addition meets a set of requirements for its published extensions. The requirements to become a certified publisher are not listed here. They can be found in public documentation (TBD).
1165
+ */
1166
+ Certified = 4,
1167
+ /**
1168
+ * This is the set of flags that can't be supplied by the developer and is managed by the service itself.
1169
+ */
1170
+ ServiceFlags = 7
1171
+ }
1172
+ export declare enum PublisherPermissions {
1173
+ /**
1174
+ * This gives the bearer the rights to read Publishers and Extensions.
1175
+ */
1176
+ Read = 1,
1177
+ /**
1178
+ * This gives the bearer the rights to update, delete, and share Extensions (but not the ability to create them).
1179
+ */
1180
+ UpdateExtension = 2,
1181
+ /**
1182
+ * This gives the bearer the rights to create new Publishers at the root of the namespace.
1183
+ */
1184
+ CreatePublisher = 4,
1185
+ /**
1186
+ * This gives the bearer the rights to create new Extensions within a publisher.
1187
+ */
1188
+ PublishExtension = 8,
1189
+ /**
1190
+ * Admin gives the bearer the rights to manage restricted attributes of Publishers and Extensions.
1191
+ */
1192
+ Admin = 16,
1193
+ /**
1194
+ * TrustedPartner gives the bearer the rights to publish a extensions with restricted capabilities.
1195
+ */
1196
+ TrustedPartner = 32,
1197
+ /**
1198
+ * PrivateRead is another form of read designed to allow higher privilege accessors the ability to read private extensions.
1199
+ */
1200
+ PrivateRead = 64,
1201
+ /**
1202
+ * This gives the bearer the rights to delete any extension.
1203
+ */
1204
+ DeleteExtension = 128,
1205
+ /**
1206
+ * This gives the bearer the rights edit the publisher settings.
1207
+ */
1208
+ EditSettings = 256,
1209
+ /**
1210
+ * This gives the bearer the rights to see all permissions on the publisher.
1211
+ */
1212
+ ViewPermissions = 512,
1213
+ /**
1214
+ * This gives the bearer the rights to assign permissions on the publisher.
1215
+ */
1216
+ ManagePermissions = 1024,
1217
+ /**
1218
+ * This gives the bearer the rights to delete the publisher.
1219
+ */
1220
+ DeletePublisher = 2048
1221
+ }
1222
+ /**
1223
+ * An PublisherQuery is used to search the gallery for a set of publishers that match one of many filter values.
1224
+ */
1225
+ export interface PublisherQuery {
1226
+ /**
1227
+ * Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query.
1228
+ */
1229
+ filters: QueryFilter[];
1230
+ /**
1231
+ * The Flags are used to determine which set of information the caller would like returned for the matched publishers.
1232
+ */
1233
+ flags: PublisherQueryFlags;
1234
+ }
1235
+ /**
1236
+ * Set of flags used to define the attributes requested when a publisher is returned. Some API's allow the caller to specify the level of detail needed.
1237
+ */
1238
+ export declare enum PublisherQueryFlags {
1239
+ /**
1240
+ * None is used to retrieve only the basic publisher details.
1241
+ */
1242
+ None = 0,
1243
+ /**
1244
+ * Is used to include a list of basic extension details for all extensions published by the requested publisher.
1245
+ */
1246
+ IncludeExtensions = 1,
1247
+ /**
1248
+ * Is used to include email address of all the users who are marked as owners for the publisher
1249
+ */
1250
+ IncludeEmailAddress = 2
1251
+ }
1252
+ /**
1253
+ * This is the set of publishers that matched a supplied query through the filters given.
1254
+ */
1255
+ export interface PublisherQueryResult {
1256
+ /**
1257
+ * For each filter supplied in the query, a filter result will be returned in the query result.
1258
+ */
1259
+ results: PublisherFilterResult[];
1260
+ }
1261
+ /**
1262
+ * Access definition for a RoleAssignment.
1263
+ */
1264
+ export declare enum PublisherRoleAccess {
1265
+ /**
1266
+ * Access has been explicitly set.
1267
+ */
1268
+ Assigned = 1,
1269
+ /**
1270
+ * Access has been inherited from a higher scope.
1271
+ */
1272
+ Inherited = 2
1273
+ }
1274
+ export interface PublisherRoleAssignment {
1275
+ /**
1276
+ * Designates the role as explicitly assigned or inherited.
1277
+ */
1278
+ access: PublisherRoleAccess;
1279
+ /**
1280
+ * User friendly description of access assignment.
1281
+ */
1282
+ accessDisplayName: string;
1283
+ /**
1284
+ * The user to whom the role is assigned.
1285
+ */
1286
+ identity: WebApi.IdentityRef;
1287
+ /**
1288
+ * The role assigned to the user.
1289
+ */
1290
+ role: PublisherSecurityRole;
1291
+ }
1292
+ export interface PublisherSecurityRole {
1293
+ /**
1294
+ * Permissions the role is allowed.
1295
+ */
1296
+ allowPermissions: number;
1297
+ /**
1298
+ * Permissions the role is denied.
1299
+ */
1300
+ denyPermissions: number;
1301
+ /**
1302
+ * Description of user access defined by the role
1303
+ */
1304
+ description: string;
1305
+ /**
1306
+ * User friendly name of the role.
1307
+ */
1308
+ displayName: string;
1309
+ /**
1310
+ * Globally unique identifier for the role.
1311
+ */
1312
+ identifier: string;
1313
+ /**
1314
+ * Unique name of the role in the scope.
1315
+ */
1316
+ name: string;
1317
+ /**
1318
+ * Returns the id of the ParentScope.
1319
+ */
1320
+ scope: string;
1321
+ }
1322
+ export declare enum PublisherState {
1323
+ /**
1324
+ * No state exists for this publisher.
1325
+ */
1326
+ None = 0,
1327
+ /**
1328
+ * This state indicates that publisher has applied for Marketplace verification (via UI) and still not been certified. This state would be reset once the publisher is verified.
1329
+ */
1330
+ VerificationPending = 1,
1331
+ /**
1332
+ * This state indicates that publisher has applied for Marketplace certification (via UI) and still not been certified. This state would be reset once the publisher is certified.
1333
+ */
1334
+ CertificationPending = 2,
1335
+ /**
1336
+ * This state indicates that publisher had applied for Marketplace certification (via UI) but his/her certification got rejected. This state would be reset if and when the publisher is certified.
1337
+ */
1338
+ CertificationRejected = 4,
1339
+ /**
1340
+ * This state indicates that publisher was certified on the Marketplace, but his/her certification got revoked. This state would never be reset, even after publisher gets re-certified. It would indicate that the publisher certification was revoked at least once.
1341
+ */
1342
+ CertificationRevoked = 8
1343
+ }
1344
+ export interface PublisherUserRoleAssignmentRef {
1345
+ /**
1346
+ * The name of the role assigned.
1347
+ */
1348
+ roleName: string;
1349
+ /**
1350
+ * Identifier of the user given the role assignment.
1351
+ */
1352
+ uniqueName: string;
1353
+ /**
1354
+ * Unique id of the user given the role assignment.
1355
+ */
1356
+ userId: string;
1357
+ }
1358
+ /**
1359
+ * The core structure of a QnA item
1360
+ */
1361
+ export interface QnAItem {
1362
+ /**
1363
+ * Time when the review was first created
1364
+ */
1365
+ createdDate: Date;
1366
+ /**
1367
+ * Unique identifier of a QnA item
1368
+ */
1369
+ id: number;
1370
+ /**
1371
+ * Get status of item
1372
+ */
1373
+ status: QnAItemStatus;
1374
+ /**
1375
+ * Text description of the QnA item
1376
+ */
1377
+ text: string;
1378
+ /**
1379
+ * Time when the review was edited/updated
1380
+ */
1381
+ updatedDate: Date;
1382
+ /**
1383
+ * User details for the item.
1384
+ */
1385
+ user: UserIdentityRef;
1386
+ }
1387
+ /**
1388
+ * Denotes the status of the QnA Item
1389
+ */
1390
+ export declare enum QnAItemStatus {
1391
+ None = 0,
1392
+ /**
1393
+ * The UserEditable flag indicates whether the item is editable by the logged in user.
1394
+ */
1395
+ UserEditable = 1,
1396
+ /**
1397
+ * The PublisherCreated flag indicates whether the item has been created by extension publisher.
1398
+ */
1399
+ PublisherCreated = 2
1400
+ }
1401
+ /**
1402
+ * A filter used to define a set of extensions to return during a query.
1403
+ */
1404
+ export interface QueryFilter {
1405
+ /**
1406
+ * The filter values define the set of values in this query. They are applied based on the QueryFilterType.
1407
+ */
1408
+ criteria: FilterCriteria[];
1409
+ /**
1410
+ * The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues.
1411
+ */
1412
+ direction: PagingDirection;
1413
+ /**
1414
+ * The page number requested by the user. If not provided 1 is assumed by default.
1415
+ */
1416
+ pageNumber: number;
1417
+ /**
1418
+ * The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits.
1419
+ */
1420
+ pageSize: number;
1421
+ /**
1422
+ * The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embedded in the token.
1423
+ */
1424
+ pagingToken: string;
1425
+ /**
1426
+ * Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only.
1427
+ */
1428
+ sortBy: number;
1429
+ /**
1430
+ * Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value
1431
+ */
1432
+ sortOrder: number;
1433
+ }
1434
+ /**
1435
+ * The structure of the question / thread
1436
+ */
1437
+ export interface Question extends QnAItem {
1438
+ reCaptchaToken: string;
1439
+ /**
1440
+ * List of answers in for the question / thread
1441
+ */
1442
+ responses: Response[];
1443
+ }
1444
+ export interface QuestionsResult {
1445
+ /**
1446
+ * Flag indicating if there are more QnA threads to be shown (for paging)
1447
+ */
1448
+ hasMoreQuestions: boolean;
1449
+ /**
1450
+ * List of the QnA threads
1451
+ */
1452
+ questions: Question[];
1453
+ }
1454
+ export interface RatingCountPerRating {
1455
+ /**
1456
+ * Rating value
1457
+ */
1458
+ rating: number;
1459
+ /**
1460
+ * Count of total ratings
1461
+ */
1462
+ ratingCount: number;
1463
+ }
1464
+ /**
1465
+ * The structure of a response
1466
+ */
1467
+ export interface Response extends QnAItem {
1468
+ reCaptchaToken: string;
1469
+ }
1470
+ /**
1471
+ * The status of a REST Api response status.
1472
+ */
1473
+ export declare enum RestApiResponseStatus {
1474
+ /**
1475
+ * The operation is completed.
1476
+ */
1477
+ Completed = 0,
1478
+ /**
1479
+ * The operation is failed.
1480
+ */
1481
+ Failed = 1,
1482
+ /**
1483
+ * The operation is in progress.
1484
+ */
1485
+ Inprogress = 2,
1486
+ /**
1487
+ * The operation is in skipped.
1488
+ */
1489
+ Skipped = 3
1490
+ }
1491
+ /**
1492
+ * REST Api Response
1493
+ */
1494
+ export interface RestApiResponseStatusModel {
1495
+ /**
1496
+ * Gets or sets the operation details
1497
+ */
1498
+ operationDetails: any;
1499
+ /**
1500
+ * Gets or sets the operation id
1501
+ */
1502
+ operationId: string;
1503
+ /**
1504
+ * Gets or sets the completed status percentage
1505
+ */
1506
+ percentageCompleted: number;
1507
+ /**
1508
+ * Gets or sets the status
1509
+ */
1510
+ status: RestApiResponseStatus;
1511
+ /**
1512
+ * Gets or sets the status message
1513
+ */
1514
+ statusMessage: string;
1515
+ }
1516
+ export interface Review {
1517
+ /**
1518
+ * Admin Reply, if any, for this review
1519
+ */
1520
+ adminReply: ReviewReply;
1521
+ /**
1522
+ * Unique identifier of a review item
1523
+ */
1524
+ id: number;
1525
+ /**
1526
+ * Flag for soft deletion
1527
+ */
1528
+ isDeleted: boolean;
1529
+ /**
1530
+ * Flag for Ignoring Review from average rating calculation
1531
+ */
1532
+ isIgnored: boolean;
1533
+ /**
1534
+ * Version of the product for which review was submitted
1535
+ */
1536
+ productVersion: string;
1537
+ /**
1538
+ * Rating provided by the user
1539
+ */
1540
+ rating: number;
1541
+ reCaptchaToken: string;
1542
+ /**
1543
+ * Reply, if any, for this review
1544
+ */
1545
+ reply: ReviewReply;
1546
+ /**
1547
+ * Text description of the review
1548
+ */
1549
+ text: string;
1550
+ /**
1551
+ * Title of the review
1552
+ */
1553
+ title: string;
1554
+ /**
1555
+ * Time when the review was edited/updated
1556
+ */
1557
+ updatedDate: Date;
1558
+ /**
1559
+ * Name of the user
1560
+ */
1561
+ userDisplayName: string;
1562
+ /**
1563
+ * Id of the user who submitted the review
1564
+ */
1565
+ userId: string;
1566
+ }
1567
+ /**
1568
+ * Type of operation
1569
+ */
1570
+ export declare enum ReviewEventOperation {
1571
+ Create = 1,
1572
+ Update = 2,
1573
+ Delete = 3
1574
+ }
1575
+ /**
1576
+ * Properties associated with Review event
1577
+ */
1578
+ export interface ReviewEventProperties {
1579
+ /**
1580
+ * Operation performed on Event - Create\\Update
1581
+ */
1582
+ eventOperation: ReviewEventOperation;
1583
+ /**
1584
+ * Flag to see if reply is admin reply
1585
+ */
1586
+ isAdminReply: boolean;
1587
+ /**
1588
+ * Flag to record if the review is ignored
1589
+ */
1590
+ isIgnored: boolean;
1591
+ /**
1592
+ * Rating at the time of event
1593
+ */
1594
+ rating: number;
1595
+ /**
1596
+ * Reply update date
1597
+ */
1598
+ replyDate: Date;
1599
+ /**
1600
+ * Publisher reply text or admin reply text
1601
+ */
1602
+ replyText: string;
1603
+ /**
1604
+ * User who responded to the review
1605
+ */
1606
+ replyUserId: string;
1607
+ /**
1608
+ * Review Event Type - Review
1609
+ */
1610
+ resourceType: ReviewResourceType;
1611
+ /**
1612
+ * Review update date
1613
+ */
1614
+ reviewDate: Date;
1615
+ /**
1616
+ * ReviewId of the review on which the operation is performed
1617
+ */
1618
+ reviewId: number;
1619
+ /**
1620
+ * Text in Review Text
1621
+ */
1622
+ reviewText: string;
1623
+ /**
1624
+ * User display name at the time of review
1625
+ */
1626
+ userDisplayName: string;
1627
+ /**
1628
+ * User who gave review
1629
+ */
1630
+ userId: string;
1631
+ }
1632
+ /**
1633
+ * Options to GetReviews query
1634
+ */
1635
+ export declare enum ReviewFilterOptions {
1636
+ /**
1637
+ * No filtering, all reviews are returned (default option)
1638
+ */
1639
+ None = 0,
1640
+ /**
1641
+ * Filter out review items with empty review text
1642
+ */
1643
+ FilterEmptyReviews = 1,
1644
+ /**
1645
+ * Filter out review items with empty usernames
1646
+ */
1647
+ FilterEmptyUserNames = 2
1648
+ }
1649
+ export interface ReviewPatch {
1650
+ /**
1651
+ * Denotes the patch operation type
1652
+ */
1653
+ operation: ReviewPatchOperation;
1654
+ /**
1655
+ * Use when patch operation is FlagReview
1656
+ */
1657
+ reportedConcern: UserReportedConcern;
1658
+ /**
1659
+ * Use when patch operation is EditReview
1660
+ */
1661
+ reviewItem: Review;
1662
+ }
1663
+ /**
1664
+ * Denotes the patch operation type
1665
+ */
1666
+ export declare enum ReviewPatchOperation {
1667
+ /**
1668
+ * Flag a review
1669
+ */
1670
+ FlagReview = 1,
1671
+ /**
1672
+ * Update an existing review
1673
+ */
1674
+ UpdateReview = 2,
1675
+ /**
1676
+ * Submit a reply for a review
1677
+ */
1678
+ ReplyToReview = 3,
1679
+ /**
1680
+ * Submit an admin response
1681
+ */
1682
+ AdminResponseForReview = 4,
1683
+ /**
1684
+ * Delete an Admin Reply
1685
+ */
1686
+ DeleteAdminReply = 5,
1687
+ /**
1688
+ * Delete Publisher Reply
1689
+ */
1690
+ DeletePublisherReply = 6
1691
+ }
1692
+ export interface ReviewReply {
1693
+ /**
1694
+ * Id of the reply
1695
+ */
1696
+ id: number;
1697
+ /**
1698
+ * Flag for soft deletion
1699
+ */
1700
+ isDeleted: boolean;
1701
+ /**
1702
+ * Version of the product when the reply was submitted or updated
1703
+ */
1704
+ productVersion: string;
1705
+ /**
1706
+ * Content of the reply
1707
+ */
1708
+ replyText: string;
1709
+ /**
1710
+ * Id of the review, to which this reply belongs
1711
+ */
1712
+ reviewId: number;
1713
+ /**
1714
+ * Title of the reply
1715
+ */
1716
+ title: string;
1717
+ /**
1718
+ * Date the reply was submitted or updated
1719
+ */
1720
+ updatedDate: Date;
1721
+ /**
1722
+ * Id of the user who left the reply
1723
+ */
1724
+ userId: string;
1725
+ }
1726
+ /**
1727
+ * Type of event
1728
+ */
1729
+ export declare enum ReviewResourceType {
1730
+ Review = 1,
1731
+ PublisherReply = 2,
1732
+ AdminReply = 3
1733
+ }
1734
+ export interface ReviewsResult {
1735
+ /**
1736
+ * Flag indicating if there are more reviews to be shown (for paging)
1737
+ */
1738
+ hasMoreReviews: boolean;
1739
+ /**
1740
+ * List of reviews
1741
+ */
1742
+ reviews: Review[];
1743
+ /**
1744
+ * Count of total review items
1745
+ */
1746
+ totalReviewCount: number;
1747
+ }
1748
+ export interface ReviewSummary {
1749
+ /**
1750
+ * Average Rating
1751
+ */
1752
+ averageRating: number;
1753
+ /**
1754
+ * Count of total ratings
1755
+ */
1756
+ ratingCount: number;
1757
+ /**
1758
+ * Split of count across rating
1759
+ */
1760
+ ratingSplit: RatingCountPerRating[];
1761
+ }
1762
+ /**
1763
+ * Defines the sort order that can be defined for Extensions query
1764
+ */
1765
+ export declare enum SortByType {
1766
+ /**
1767
+ * The results will be sorted by relevance in case search query is given, if no search query resutls will be provided as is
1768
+ */
1769
+ Relevance = 0,
1770
+ /**
1771
+ * The results will be sorted as per Last Updated date of the extensions with recently updated at the top
1772
+ */
1773
+ LastUpdatedDate = 1,
1774
+ /**
1775
+ * Results will be sorted Alphabetically as per the title of the extension
1776
+ */
1777
+ Title = 2,
1778
+ /**
1779
+ * Results will be sorted Alphabetically as per Publisher title
1780
+ */
1781
+ Publisher = 3,
1782
+ /**
1783
+ * Results will be sorted by Install Count
1784
+ */
1785
+ InstallCount = 4,
1786
+ /**
1787
+ * The results will be sorted as per Published date of the extensions
1788
+ */
1789
+ PublishedDate = 5,
1790
+ /**
1791
+ * The results will be sorted as per Average ratings of the extensions
1792
+ */
1793
+ AverageRating = 6,
1794
+ /**
1795
+ * The results will be sorted as per Trending Daily Score of the extensions
1796
+ */
1797
+ TrendingDaily = 7,
1798
+ /**
1799
+ * The results will be sorted as per Trending weekly Score of the extensions
1800
+ */
1801
+ TrendingWeekly = 8,
1802
+ /**
1803
+ * The results will be sorted as per Trending monthly Score of the extensions
1804
+ */
1805
+ TrendingMonthly = 9,
1806
+ /**
1807
+ * The results will be sorted as per ReleaseDate of the extensions (date on which the extension first went public)
1808
+ */
1809
+ ReleaseDate = 10,
1810
+ /**
1811
+ * The results will be sorted as per Author defined in the VSix/Metadata. If not defined, publisher name is used This is specifically needed by VS IDE, other (new and old) clients are not encouraged to use this
1812
+ */
1813
+ Author = 11,
1814
+ /**
1815
+ * The results will be sorted as per Weighted Rating of the extension.
1816
+ */
1817
+ WeightedRating = 12
1818
+ }
1819
+ /**
1820
+ * Defines the sort order that can be defined for Extensions query
1821
+ */
1822
+ export declare enum SortOrderType {
1823
+ /**
1824
+ * Results will be sorted in the default order as per the sorting type defined. The default varies for each type, e.g. for Relevance, default is Descending, for Title default is Ascending etc.
1825
+ */
1826
+ Default = 0,
1827
+ /**
1828
+ * The results will be sorted in Ascending order
1829
+ */
1830
+ Ascending = 1,
1831
+ /**
1832
+ * The results will be sorted in Descending order
1833
+ */
1834
+ Descending = 2
1835
+ }
1836
+ export interface UnpackagedExtensionData {
1837
+ categories: string[];
1838
+ description: string;
1839
+ displayName: string;
1840
+ draftId: string;
1841
+ extensionName: string;
1842
+ installationTargets: InstallationTarget[];
1843
+ isConvertedToMarkdown: boolean;
1844
+ isPreview: boolean;
1845
+ pricingCategory: string;
1846
+ product: string;
1847
+ publisherName: string;
1848
+ qnAEnabled: boolean;
1849
+ referralUrl: string;
1850
+ repositoryUrl: string;
1851
+ tags: string[];
1852
+ version: string;
1853
+ vsixId: string;
1854
+ }
1855
+ /**
1856
+ * Represents the extension policy applied to a given user
1857
+ */
1858
+ export interface UserExtensionPolicy {
1859
+ /**
1860
+ * User display name that this policy refers to
1861
+ */
1862
+ displayName: string;
1863
+ /**
1864
+ * The extension policy applied to the user
1865
+ */
1866
+ permissions: ExtensionPolicy;
1867
+ /**
1868
+ * User id that this policy refers to
1869
+ */
1870
+ userId: string;
1871
+ }
1872
+ /**
1873
+ * Identity reference with name and guid
1874
+ */
1875
+ export interface UserIdentityRef {
1876
+ /**
1877
+ * User display name
1878
+ */
1879
+ displayName: string;
1880
+ /**
1881
+ * User VSID
1882
+ */
1883
+ id: string;
1884
+ }
1885
+ export interface UserReportedConcern {
1886
+ /**
1887
+ * Category of the concern
1888
+ */
1889
+ category: ConcernCategory;
1890
+ /**
1891
+ * User comment associated with the report
1892
+ */
1893
+ concernText: string;
1894
+ /**
1895
+ * Id of the review which was reported
1896
+ */
1897
+ reviewId: number;
1898
+ /**
1899
+ * Date the report was submitted
1900
+ */
1901
+ submittedDate: Date;
1902
+ /**
1903
+ * Id of the user who reported a review
1904
+ */
1905
+ userId: string;
1906
+ }
1907
+ export declare enum VSCodeWebExtensionStatisicsType {
1908
+ Install = 1,
1909
+ Update = 2,
1910
+ Uninstall = 3
1911
+ }