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
@@ -0,0 +1,1701 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ import { RestClientBase } from "../Common/RestClientBase";
7
+ export class GalleryRestClient extends RestClientBase {
8
+ constructor(options) {
9
+ super(options);
10
+ }
11
+ /**
12
+ * @param extensionId -
13
+ * @param accountName -
14
+ */
15
+ async shareExtensionById(extensionId, accountName) {
16
+ return this.beginRequest({
17
+ apiVersion: "7.2-preview.1",
18
+ method: "POST",
19
+ routeTemplate: "_apis/gallery/extensions/{extensionId}/accounts/{accountName}",
20
+ routeValues: {
21
+ extensionId: extensionId,
22
+ accountName: accountName
23
+ }
24
+ });
25
+ }
26
+ /**
27
+ * @param extensionId -
28
+ * @param accountName -
29
+ */
30
+ async unshareExtensionById(extensionId, accountName) {
31
+ return this.beginRequest({
32
+ apiVersion: "7.2-preview.1",
33
+ method: "DELETE",
34
+ routeTemplate: "_apis/gallery/extensions/{extensionId}/accounts/{accountName}",
35
+ routeValues: {
36
+ extensionId: extensionId,
37
+ accountName: accountName
38
+ }
39
+ });
40
+ }
41
+ /**
42
+ * @param publisherName -
43
+ * @param extensionName -
44
+ * @param accountName -
45
+ */
46
+ async shareExtension(publisherName, extensionName, accountName) {
47
+ return this.beginRequest({
48
+ apiVersion: "7.2-preview.1",
49
+ method: "POST",
50
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",
51
+ routeValues: {
52
+ publisherName: publisherName,
53
+ extensionName: extensionName,
54
+ accountName: accountName
55
+ }
56
+ });
57
+ }
58
+ /**
59
+ * @param publisherName -
60
+ * @param extensionName -
61
+ * @param accountName -
62
+ */
63
+ async unshareExtension(publisherName, extensionName, accountName) {
64
+ return this.beginRequest({
65
+ apiVersion: "7.2-preview.1",
66
+ method: "DELETE",
67
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",
68
+ routeValues: {
69
+ publisherName: publisherName,
70
+ extensionName: extensionName,
71
+ accountName: accountName
72
+ }
73
+ });
74
+ }
75
+ /**
76
+ * @param itemId -
77
+ * @param installationTarget -
78
+ * @param testCommerce -
79
+ * @param isFreeOrTrialInstall -
80
+ */
81
+ async getAcquisitionOptions(itemId, installationTarget, testCommerce, isFreeOrTrialInstall) {
82
+ const queryValues = {
83
+ installationTarget: installationTarget,
84
+ testCommerce: testCommerce,
85
+ isFreeOrTrialInstall: isFreeOrTrialInstall
86
+ };
87
+ return this.beginRequest({
88
+ apiVersion: "7.2-preview.1",
89
+ routeTemplate: "_apis/gallery/acquisitionoptions/{itemId}",
90
+ routeValues: {
91
+ itemId: itemId
92
+ },
93
+ queryParams: queryValues
94
+ });
95
+ }
96
+ /**
97
+ * @param acquisitionRequest -
98
+ */
99
+ async requestAcquisition(acquisitionRequest) {
100
+ return this.beginRequest({
101
+ apiVersion: "7.2-preview.1",
102
+ method: "POST",
103
+ routeTemplate: "_apis/gallery/acquisitionrequests",
104
+ body: acquisitionRequest
105
+ });
106
+ }
107
+ /**
108
+ * @param publisherName -
109
+ * @param extensionName -
110
+ * @param version -
111
+ * @param assetType -
112
+ * @param accountToken -
113
+ * @param acceptDefault -
114
+ * @param accountTokenHeader - Header to pass the account token
115
+ */
116
+ async getAssetByName(publisherName, extensionName, version, assetType, accountToken, acceptDefault, accountTokenHeader) {
117
+ const queryValues = {
118
+ accountToken: accountToken,
119
+ acceptDefault: acceptDefault
120
+ };
121
+ return this.beginRequest({
122
+ apiVersion: "7.2-preview.1",
123
+ httpResponseType: "application/octet-stream",
124
+ routeTemplate: "_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assetbyname/{*assetType}",
125
+ routeValues: {
126
+ publisherName: publisherName,
127
+ extensionName: extensionName,
128
+ version: version,
129
+ assetType: assetType
130
+ },
131
+ customHeaders: {
132
+ "X-Market-AccountToken": accountTokenHeader,
133
+ },
134
+ queryParams: queryValues
135
+ });
136
+ }
137
+ /**
138
+ * @param extensionId -
139
+ * @param version -
140
+ * @param assetType -
141
+ * @param accountToken -
142
+ * @param acceptDefault -
143
+ * @param accountTokenHeader - Header to pass the account token
144
+ */
145
+ async getAsset(extensionId, version, assetType, accountToken, acceptDefault, accountTokenHeader) {
146
+ const queryValues = {
147
+ accountToken: accountToken,
148
+ acceptDefault: acceptDefault
149
+ };
150
+ return this.beginRequest({
151
+ apiVersion: "7.2-preview.1",
152
+ httpResponseType: "application/octet-stream",
153
+ routeTemplate: "_apis/public/gallery/extensions/{extensionId}/{version}/assets/{assetType}",
154
+ routeValues: {
155
+ extensionId: extensionId,
156
+ version: version,
157
+ assetType: assetType
158
+ },
159
+ customHeaders: {
160
+ "X-Market-AccountToken": accountTokenHeader,
161
+ },
162
+ queryParams: queryValues
163
+ });
164
+ }
165
+ /**
166
+ * @param publisherName -
167
+ * @param extensionName -
168
+ * @param version -
169
+ * @param assetType -
170
+ * @param accountToken -
171
+ * @param accountTokenHeader - Header to pass the account token
172
+ */
173
+ async getAssetAuthenticated(publisherName, extensionName, version, assetType, accountToken, accountTokenHeader) {
174
+ const queryValues = {
175
+ accountToken: accountToken
176
+ };
177
+ return this.beginRequest({
178
+ apiVersion: "7.2-preview.1",
179
+ httpResponseType: "application/octet-stream",
180
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assets/{*assetType}",
181
+ routeValues: {
182
+ publisherName: publisherName,
183
+ extensionName: extensionName,
184
+ version: version,
185
+ assetType: assetType
186
+ },
187
+ customHeaders: {
188
+ "X-Market-AccountToken": accountTokenHeader,
189
+ },
190
+ queryParams: queryValues
191
+ });
192
+ }
193
+ /**
194
+ * @param publisherName -
195
+ * @param azurePublisherId -
196
+ */
197
+ async associateAzurePublisher(publisherName, azurePublisherId) {
198
+ const queryValues = {
199
+ azurePublisherId: azurePublisherId
200
+ };
201
+ return this.beginRequest({
202
+ apiVersion: "7.2-preview.1",
203
+ method: "PUT",
204
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/azurepublisher",
205
+ routeValues: {
206
+ publisherName: publisherName
207
+ },
208
+ queryParams: queryValues
209
+ });
210
+ }
211
+ /**
212
+ * @param publisherName -
213
+ */
214
+ async queryAssociatedAzurePublisher(publisherName) {
215
+ return this.beginRequest({
216
+ apiVersion: "7.2-preview.1",
217
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/azurepublisher",
218
+ routeValues: {
219
+ publisherName: publisherName
220
+ }
221
+ });
222
+ }
223
+ /**
224
+ * @param languages -
225
+ */
226
+ async getCategories(languages) {
227
+ const queryValues = {
228
+ languages: languages
229
+ };
230
+ return this.beginRequest({
231
+ apiVersion: "7.2-preview.1",
232
+ routeTemplate: "_apis/public/gallery/categories",
233
+ queryParams: queryValues
234
+ });
235
+ }
236
+ /**
237
+ * @param categoryName -
238
+ * @param languages -
239
+ * @param product -
240
+ */
241
+ async getCategoryDetails(categoryName, languages, product) {
242
+ const queryValues = {
243
+ languages: languages,
244
+ product: product
245
+ };
246
+ return this.beginRequest({
247
+ apiVersion: "7.2-preview.1",
248
+ routeTemplate: "_apis/public/gallery/categories/{categoryName}",
249
+ routeValues: {
250
+ categoryName: categoryName
251
+ },
252
+ queryParams: queryValues
253
+ });
254
+ }
255
+ /**
256
+ * @param product -
257
+ * @param categoryId -
258
+ * @param lcid -
259
+ * @param source -
260
+ * @param productVersion -
261
+ * @param skus -
262
+ * @param subSkus -
263
+ * @param productArchitecture -
264
+ */
265
+ async getCategoryTree(product, categoryId, lcid, source, productVersion, skus, subSkus, productArchitecture) {
266
+ const queryValues = {
267
+ lcid: lcid,
268
+ source: source,
269
+ productVersion: productVersion,
270
+ skus: skus,
271
+ subSkus: subSkus,
272
+ productArchitecture: productArchitecture
273
+ };
274
+ return this.beginRequest({
275
+ apiVersion: "7.2-preview.1",
276
+ routeTemplate: "_apis/public/gallery/{product}/categories/{categoryId}",
277
+ routeValues: {
278
+ product: product,
279
+ categoryId: categoryId
280
+ },
281
+ queryParams: queryValues
282
+ });
283
+ }
284
+ /**
285
+ * @param product -
286
+ * @param lcid -
287
+ * @param source -
288
+ * @param productVersion -
289
+ * @param skus -
290
+ * @param subSkus -
291
+ */
292
+ async getRootCategories(product, lcid, source, productVersion, skus, subSkus) {
293
+ const queryValues = {
294
+ lcid: lcid,
295
+ source: source,
296
+ productVersion: productVersion,
297
+ skus: skus,
298
+ subSkus: subSkus
299
+ };
300
+ return this.beginRequest({
301
+ apiVersion: "7.2-preview.1",
302
+ routeTemplate: "_apis/public/gallery/{product}/categories/root",
303
+ routeValues: {
304
+ product: product
305
+ },
306
+ queryParams: queryValues
307
+ });
308
+ }
309
+ /**
310
+ * @param publisherName -
311
+ * @param extensionName -
312
+ * @param version -
313
+ */
314
+ async getCertificate(publisherName, extensionName, version) {
315
+ return this.beginRequest({
316
+ apiVersion: "7.2-preview.1",
317
+ httpResponseType: "application/octet-stream",
318
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/certificates/{version}",
319
+ routeValues: {
320
+ publisherName: publisherName,
321
+ extensionName: extensionName,
322
+ version: version
323
+ }
324
+ });
325
+ }
326
+ /**
327
+ * @param customerSupportRequest -
328
+ */
329
+ async createSupportRequest(customerSupportRequest) {
330
+ return this.beginRequest({
331
+ apiVersion: "7.2-preview.1",
332
+ method: "POST",
333
+ routeTemplate: "_apis/public/support",
334
+ body: customerSupportRequest
335
+ });
336
+ }
337
+ /**
338
+ * @param publisherName -
339
+ * @param extensionName -
340
+ */
341
+ async createDraftForEditExtension(publisherName, extensionName) {
342
+ return this.beginRequest({
343
+ apiVersion: "7.2-preview.1",
344
+ method: "POST",
345
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
346
+ routeValues: {
347
+ publisherName: publisherName,
348
+ extensionName: extensionName
349
+ }
350
+ });
351
+ }
352
+ /**
353
+ * @param draftPatch -
354
+ * @param publisherName -
355
+ * @param extensionName -
356
+ * @param draftId -
357
+ */
358
+ async performEditExtensionDraftOperation(draftPatch, publisherName, extensionName, draftId) {
359
+ return this.beginRequest({
360
+ apiVersion: "7.2-preview.1",
361
+ method: "PATCH",
362
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
363
+ routeValues: {
364
+ publisherName: publisherName,
365
+ extensionName: extensionName,
366
+ draftId: draftId
367
+ },
368
+ body: draftPatch
369
+ });
370
+ }
371
+ /**
372
+ * @param content - Content to upload
373
+ * @param publisherName -
374
+ * @param extensionName -
375
+ * @param draftId -
376
+ * @param fileName - Header to pass the filename of the uploaded data
377
+ */
378
+ async updatePayloadInDraftForEditExtension(content, publisherName, extensionName, draftId, fileName) {
379
+ return this.beginRequest({
380
+ apiVersion: "7.2-preview.1",
381
+ method: "PUT",
382
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
383
+ routeValues: {
384
+ publisherName: publisherName,
385
+ extensionName: extensionName,
386
+ draftId: draftId
387
+ },
388
+ customHeaders: {
389
+ "Content-Type": "application/octet-stream",
390
+ "X-Market-UploadFileName": fileName,
391
+ },
392
+ body: content,
393
+ isRawData: true
394
+ });
395
+ }
396
+ /**
397
+ * @param content - Content to upload
398
+ * @param publisherName -
399
+ * @param extensionName -
400
+ * @param draftId -
401
+ * @param assetType -
402
+ */
403
+ async addAssetForEditExtensionDraft(content, publisherName, extensionName, draftId, assetType) {
404
+ return this.beginRequest({
405
+ apiVersion: "7.2-preview.1",
406
+ method: "PUT",
407
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}/assets/{*assetType}",
408
+ routeValues: {
409
+ publisherName: publisherName,
410
+ extensionName: extensionName,
411
+ draftId: draftId,
412
+ assetType: assetType
413
+ },
414
+ customHeaders: {
415
+ "Content-Type": "application/octet-stream",
416
+ },
417
+ body: content,
418
+ isRawData: true
419
+ });
420
+ }
421
+ /**
422
+ * @param content - Content to upload
423
+ * @param publisherName -
424
+ * @param product - Header to pass the product type of the payload file
425
+ * @param fileName - Header to pass the filename of the uploaded data
426
+ */
427
+ async createDraftForNewExtension(content, publisherName, product, fileName) {
428
+ return this.beginRequest({
429
+ apiVersion: "7.2-preview.1",
430
+ method: "POST",
431
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
432
+ routeValues: {
433
+ publisherName: publisherName
434
+ },
435
+ customHeaders: {
436
+ "Content-Type": "application/octet-stream",
437
+ "X-Market-UploadFileProduct": product,
438
+ "X-Market-UploadFileName": fileName,
439
+ },
440
+ body: content,
441
+ isRawData: true
442
+ });
443
+ }
444
+ /**
445
+ * @param draftPatch -
446
+ * @param publisherName -
447
+ * @param draftId -
448
+ */
449
+ async performNewExtensionDraftOperation(draftPatch, publisherName, draftId) {
450
+ return this.beginRequest({
451
+ apiVersion: "7.2-preview.1",
452
+ method: "PATCH",
453
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
454
+ routeValues: {
455
+ publisherName: publisherName,
456
+ draftId: draftId
457
+ },
458
+ body: draftPatch
459
+ });
460
+ }
461
+ /**
462
+ * @param content - Content to upload
463
+ * @param publisherName -
464
+ * @param draftId -
465
+ * @param fileName - Header to pass the filename of the uploaded data
466
+ */
467
+ async updatePayloadInDraftForNewExtension(content, publisherName, draftId, fileName) {
468
+ return this.beginRequest({
469
+ apiVersion: "7.2-preview.1",
470
+ method: "PUT",
471
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
472
+ routeValues: {
473
+ publisherName: publisherName,
474
+ draftId: draftId
475
+ },
476
+ customHeaders: {
477
+ "Content-Type": "application/octet-stream",
478
+ "X-Market-UploadFileName": fileName,
479
+ },
480
+ body: content,
481
+ isRawData: true
482
+ });
483
+ }
484
+ /**
485
+ * @param content - Content to upload
486
+ * @param publisherName -
487
+ * @param draftId -
488
+ * @param assetType -
489
+ */
490
+ async addAssetForNewExtensionDraft(content, publisherName, draftId, assetType) {
491
+ return this.beginRequest({
492
+ apiVersion: "7.2-preview.1",
493
+ method: "PUT",
494
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
495
+ routeValues: {
496
+ publisherName: publisherName,
497
+ draftId: draftId,
498
+ assetType: assetType
499
+ },
500
+ customHeaders: {
501
+ "Content-Type": "application/octet-stream",
502
+ },
503
+ body: content,
504
+ isRawData: true
505
+ });
506
+ }
507
+ /**
508
+ * @param publisherName -
509
+ * @param draftId -
510
+ * @param assetType -
511
+ * @param extensionName -
512
+ */
513
+ async getAssetFromEditExtensionDraft(publisherName, draftId, assetType, extensionName) {
514
+ const queryValues = {
515
+ extensionName: extensionName
516
+ };
517
+ return this.beginRequest({
518
+ apiVersion: "7.2-preview.1",
519
+ httpResponseType: "application/octet-stream",
520
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
521
+ routeValues: {
522
+ publisherName: publisherName,
523
+ draftId: draftId,
524
+ assetType: assetType
525
+ },
526
+ queryParams: queryValues
527
+ });
528
+ }
529
+ /**
530
+ * @param publisherName -
531
+ * @param draftId -
532
+ * @param assetType -
533
+ */
534
+ async getAssetFromNewExtensionDraft(publisherName, draftId, assetType) {
535
+ return this.beginRequest({
536
+ apiVersion: "7.2-preview.1",
537
+ httpResponseType: "application/octet-stream",
538
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
539
+ routeValues: {
540
+ publisherName: publisherName,
541
+ draftId: draftId,
542
+ assetType: assetType
543
+ }
544
+ });
545
+ }
546
+ /**
547
+ * Get install/uninstall events of an extension. If both count and afterDate parameters are specified, count takes precedence.
548
+ *
549
+ * @param publisherName - Name of the publisher
550
+ * @param extensionName - Name of the extension
551
+ * @param count - Count of events to fetch, applies to each event type.
552
+ * @param afterDate - Fetch events that occurred on or after this date
553
+ * @param include - Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events
554
+ * @param includeProperty - Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events
555
+ */
556
+ async getExtensionEvents(publisherName, extensionName, count, afterDate, include, includeProperty) {
557
+ const queryValues = {
558
+ count: count,
559
+ afterDate: afterDate,
560
+ include: include,
561
+ includeProperty: includeProperty
562
+ };
563
+ return this.beginRequest({
564
+ apiVersion: "7.2-preview.1",
565
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/events",
566
+ routeValues: {
567
+ publisherName: publisherName,
568
+ extensionName: extensionName
569
+ },
570
+ queryParams: queryValues
571
+ });
572
+ }
573
+ /**
574
+ * API endpoint to publish extension install/uninstall events. This is meant to be invoked by EMS only for sending us data related to install/uninstall of an extension.
575
+ *
576
+ * @param extensionEvents -
577
+ */
578
+ async publishExtensionEvents(extensionEvents) {
579
+ return this.beginRequest({
580
+ apiVersion: "7.2-preview.1",
581
+ method: "POST",
582
+ routeTemplate: "_apis/gallery/events",
583
+ body: extensionEvents
584
+ });
585
+ }
586
+ /**
587
+ * @param extensionQuery -
588
+ * @param accountToken -
589
+ * @param accountTokenHeader - Header to pass the account token
590
+ */
591
+ async queryExtensions(extensionQuery, accountToken, accountTokenHeader) {
592
+ const queryValues = {
593
+ accountToken: accountToken
594
+ };
595
+ return this.beginRequest({
596
+ apiVersion: "7.2-preview.1",
597
+ method: "POST",
598
+ routeTemplate: "_apis/public/gallery/extensionquery",
599
+ customHeaders: {
600
+ "X-Market-AccountToken": accountTokenHeader,
601
+ },
602
+ queryParams: queryValues,
603
+ body: extensionQuery
604
+ });
605
+ }
606
+ /**
607
+ * @param content - Content to upload
608
+ * @param extensionType -
609
+ * @param reCaptchaToken -
610
+ */
611
+ async createExtension(content, extensionType, reCaptchaToken) {
612
+ const queryValues = {
613
+ extensionType: extensionType,
614
+ reCaptchaToken: reCaptchaToken
615
+ };
616
+ return this.beginRequest({
617
+ apiVersion: "7.2-preview.2",
618
+ method: "POST",
619
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
620
+ customHeaders: {
621
+ "Content-Type": "application/octet-stream",
622
+ },
623
+ queryParams: queryValues,
624
+ body: content,
625
+ isRawData: true
626
+ });
627
+ }
628
+ /**
629
+ * @param extensionId -
630
+ * @param version -
631
+ */
632
+ async deleteExtensionById(extensionId, version) {
633
+ const queryValues = {
634
+ version: version
635
+ };
636
+ return this.beginRequest({
637
+ apiVersion: "7.2-preview.2",
638
+ method: "DELETE",
639
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
640
+ routeValues: {
641
+ extensionId: extensionId
642
+ },
643
+ queryParams: queryValues
644
+ });
645
+ }
646
+ /**
647
+ * @param extensionId -
648
+ * @param version -
649
+ * @param flags -
650
+ */
651
+ async getExtensionById(extensionId, version, flags) {
652
+ const queryValues = {
653
+ version: version,
654
+ flags: flags
655
+ };
656
+ return this.beginRequest({
657
+ apiVersion: "7.2-preview.2",
658
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
659
+ routeValues: {
660
+ extensionId: extensionId
661
+ },
662
+ queryParams: queryValues
663
+ });
664
+ }
665
+ /**
666
+ * @param extensionId -
667
+ * @param reCaptchaToken -
668
+ */
669
+ async updateExtensionById(extensionId, reCaptchaToken) {
670
+ const queryValues = {
671
+ reCaptchaToken: reCaptchaToken
672
+ };
673
+ return this.beginRequest({
674
+ apiVersion: "7.2-preview.2",
675
+ method: "PUT",
676
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
677
+ routeValues: {
678
+ extensionId: extensionId
679
+ },
680
+ queryParams: queryValues
681
+ });
682
+ }
683
+ /**
684
+ * @param content - Content to upload
685
+ * @param publisherName -
686
+ * @param extensionType -
687
+ * @param reCaptchaToken -
688
+ */
689
+ async createExtensionWithPublisher(content, publisherName, extensionType, reCaptchaToken) {
690
+ const queryValues = {
691
+ extensionType: extensionType,
692
+ reCaptchaToken: reCaptchaToken
693
+ };
694
+ return this.beginRequest({
695
+ apiVersion: "7.2-preview.2",
696
+ method: "POST",
697
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
698
+ routeValues: {
699
+ publisherName: publisherName
700
+ },
701
+ customHeaders: {
702
+ "Content-Type": "application/octet-stream",
703
+ },
704
+ queryParams: queryValues,
705
+ body: content,
706
+ isRawData: true
707
+ });
708
+ }
709
+ /**
710
+ * @param publisherName -
711
+ * @param extensionName -
712
+ * @param version -
713
+ */
714
+ async deleteExtension(publisherName, extensionName, version) {
715
+ const queryValues = {
716
+ version: version
717
+ };
718
+ return this.beginRequest({
719
+ apiVersion: "7.2-preview.2",
720
+ method: "DELETE",
721
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
722
+ routeValues: {
723
+ publisherName: publisherName,
724
+ extensionName: extensionName
725
+ },
726
+ queryParams: queryValues
727
+ });
728
+ }
729
+ /**
730
+ * @param publisherName -
731
+ * @param extensionName -
732
+ * @param version -
733
+ * @param flags -
734
+ * @param accountToken -
735
+ * @param accountTokenHeader - Header to pass the account token
736
+ */
737
+ async getExtension(publisherName, extensionName, version, flags, accountToken, accountTokenHeader) {
738
+ const queryValues = {
739
+ version: version,
740
+ flags: flags,
741
+ accountToken: accountToken
742
+ };
743
+ return this.beginRequest({
744
+ apiVersion: "7.2-preview.2",
745
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
746
+ routeValues: {
747
+ publisherName: publisherName,
748
+ extensionName: extensionName
749
+ },
750
+ customHeaders: {
751
+ "X-Market-AccountToken": accountTokenHeader,
752
+ },
753
+ queryParams: queryValues
754
+ });
755
+ }
756
+ /**
757
+ * REST endpoint to update an extension.
758
+ *
759
+ * @param content - Content to upload
760
+ * @param publisherName - Name of the publisher
761
+ * @param extensionName - Name of the extension
762
+ * @param extensionType -
763
+ * @param reCaptchaToken -
764
+ * @param bypassScopeCheck - This parameter decides if the scope change check needs to be invoked or not
765
+ */
766
+ async updateExtension(content, publisherName, extensionName, extensionType, reCaptchaToken, bypassScopeCheck) {
767
+ const queryValues = {
768
+ extensionType: extensionType,
769
+ reCaptchaToken: reCaptchaToken,
770
+ bypassScopeCheck: bypassScopeCheck
771
+ };
772
+ return this.beginRequest({
773
+ apiVersion: "7.2-preview.2",
774
+ method: "PUT",
775
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
776
+ routeValues: {
777
+ publisherName: publisherName,
778
+ extensionName: extensionName
779
+ },
780
+ customHeaders: {
781
+ "Content-Type": "application/octet-stream",
782
+ },
783
+ queryParams: queryValues,
784
+ body: content,
785
+ isRawData: true
786
+ });
787
+ }
788
+ /**
789
+ * @param publisherName -
790
+ * @param extensionName -
791
+ * @param flags -
792
+ */
793
+ async updateExtensionProperties(publisherName, extensionName, flags) {
794
+ const queryValues = {
795
+ flags: flags
796
+ };
797
+ return this.beginRequest({
798
+ apiVersion: "7.2-preview.2",
799
+ method: "PATCH",
800
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
801
+ routeValues: {
802
+ publisherName: publisherName,
803
+ extensionName: extensionName
804
+ },
805
+ queryParams: queryValues
806
+ });
807
+ }
808
+ /**
809
+ * @param publisherName -
810
+ * @param extensionName -
811
+ * @param hostType -
812
+ * @param hostName -
813
+ */
814
+ async shareExtensionWithHost(publisherName, extensionName, hostType, hostName) {
815
+ return this.beginRequest({
816
+ apiVersion: "7.2-preview.1",
817
+ method: "POST",
818
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",
819
+ routeValues: {
820
+ publisherName: publisherName,
821
+ extensionName: extensionName,
822
+ hostType: hostType,
823
+ hostName: hostName
824
+ }
825
+ });
826
+ }
827
+ /**
828
+ * @param publisherName -
829
+ * @param extensionName -
830
+ * @param hostType -
831
+ * @param hostName -
832
+ */
833
+ async unshareExtensionWithHost(publisherName, extensionName, hostType, hostName) {
834
+ return this.beginRequest({
835
+ apiVersion: "7.2-preview.1",
836
+ method: "DELETE",
837
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",
838
+ routeValues: {
839
+ publisherName: publisherName,
840
+ extensionName: extensionName,
841
+ hostType: hostType,
842
+ hostName: hostName
843
+ }
844
+ });
845
+ }
846
+ /**
847
+ * Rest end point to validate if an Azure publisher owns an extension for 3rd party commerce scenario. Azure only supports POST operations and the above signature is not typical of the REST operations. http://sharepoint/sites/AzureUX/_layouts/15/WopiFrame2.aspx?sourcedoc=\{A793D31E-6DC6-4174-8FA3-DE3F82B51642\}&file=Data%20Market%20Partner%20integration%20with%20Marketplace%20service.docx&action=default
848
+ *
849
+ * @param azureRestApiRequestModel - All the parameters are sent in the request body
850
+ */
851
+ async extensionValidator(azureRestApiRequestModel) {
852
+ return this.beginRequest({
853
+ apiVersion: "7.2-preview.1",
854
+ method: "POST",
855
+ routeTemplate: "_apis/gallery/extensionValidator",
856
+ body: azureRestApiRequestModel
857
+ });
858
+ }
859
+ /**
860
+ * Send Notification
861
+ *
862
+ * @param notificationData - Denoting the data needed to send notification
863
+ */
864
+ async sendNotifications(notificationData) {
865
+ return this.beginRequest({
866
+ apiVersion: "7.2-preview.1",
867
+ method: "POST",
868
+ routeTemplate: "_apis/gallery/notifications",
869
+ body: notificationData
870
+ });
871
+ }
872
+ /**
873
+ * This endpoint gets hit when you download a VSTS extension from the Web UI
874
+ *
875
+ * @param publisherName -
876
+ * @param extensionName -
877
+ * @param version -
878
+ * @param accountToken -
879
+ * @param acceptDefault -
880
+ * @param accountTokenHeader - Header to pass the account token
881
+ */
882
+ async getPackage(publisherName, extensionName, version, accountToken, acceptDefault, accountTokenHeader) {
883
+ const queryValues = {
884
+ accountToken: accountToken,
885
+ acceptDefault: acceptDefault
886
+ };
887
+ return this.beginRequest({
888
+ apiVersion: "7.2-preview.1",
889
+ httpResponseType: "application/octet-stream",
890
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/package",
891
+ routeValues: {
892
+ publisherName: publisherName,
893
+ extensionName: extensionName,
894
+ version: version
895
+ },
896
+ customHeaders: {
897
+ "X-Market-AccountToken": accountTokenHeader,
898
+ },
899
+ queryParams: queryValues
900
+ });
901
+ }
902
+ /**
903
+ * @param publisherName -
904
+ * @param extensionName -
905
+ * @param version -
906
+ * @param assetType -
907
+ * @param assetToken -
908
+ * @param accountToken -
909
+ * @param acceptDefault -
910
+ * @param accountTokenHeader - Header to pass the account token
911
+ */
912
+ async getAssetWithToken(publisherName, extensionName, version, assetType, assetToken, accountToken, acceptDefault, accountTokenHeader) {
913
+ const queryValues = {
914
+ accountToken: accountToken,
915
+ acceptDefault: acceptDefault
916
+ };
917
+ return this.beginRequest({
918
+ apiVersion: "7.2-preview.1",
919
+ httpResponseType: "application/octet-stream",
920
+ routeTemplate: "_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/privateasset/{assetToken}/{*assetType}",
921
+ routeValues: {
922
+ publisherName: publisherName,
923
+ extensionName: extensionName,
924
+ version: version,
925
+ assetType: assetType,
926
+ assetToken: assetToken
927
+ },
928
+ customHeaders: {
929
+ "X-Market-AccountToken": accountTokenHeader,
930
+ },
931
+ queryParams: queryValues
932
+ });
933
+ }
934
+ /**
935
+ * Delete publisher asset like logo
936
+ *
937
+ * @param publisherName - Internal name of the publisher
938
+ * @param assetType - Type of asset. Default value is 'logo'.
939
+ */
940
+ async deletePublisherAsset(publisherName, assetType) {
941
+ const queryValues = {
942
+ assetType: assetType
943
+ };
944
+ return this.beginRequest({
945
+ apiVersion: "7.2-preview.1",
946
+ method: "DELETE",
947
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
948
+ routeValues: {
949
+ publisherName: publisherName
950
+ },
951
+ queryParams: queryValues
952
+ });
953
+ }
954
+ /**
955
+ * Get publisher asset like logo as a stream
956
+ *
957
+ * @param publisherName - Internal name of the publisher
958
+ * @param assetType - Type of asset. Default value is 'logo'.
959
+ */
960
+ async getPublisherAsset(publisherName, assetType) {
961
+ const queryValues = {
962
+ assetType: assetType
963
+ };
964
+ return this.beginRequest({
965
+ apiVersion: "7.2-preview.1",
966
+ httpResponseType: "application/octet-stream",
967
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
968
+ routeValues: {
969
+ publisherName: publisherName
970
+ },
971
+ queryParams: queryValues
972
+ });
973
+ }
974
+ /**
975
+ * Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values.
976
+ *
977
+ * @param content - Content to upload
978
+ * @param publisherName - Internal name of the publisher
979
+ * @param assetType - Type of asset. Default value is 'logo'.
980
+ * @param fileName - Header to pass the filename of the uploaded data
981
+ */
982
+ async updatePublisherAsset(content, publisherName, assetType, fileName) {
983
+ const queryValues = {
984
+ assetType: assetType
985
+ };
986
+ return this.beginRequest({
987
+ apiVersion: "7.2-preview.1",
988
+ method: "PUT",
989
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
990
+ routeValues: {
991
+ publisherName: publisherName
992
+ },
993
+ customHeaders: {
994
+ "Content-Type": "application/octet-stream",
995
+ "X-Market-UploadFileName": fileName,
996
+ },
997
+ queryParams: queryValues,
998
+ body: content,
999
+ isRawData: true
1000
+ });
1001
+ }
1002
+ /**
1003
+ * @param publisherName -
1004
+ */
1005
+ async fetchDomainToken(publisherName) {
1006
+ return this.beginRequest({
1007
+ apiVersion: "7.2-preview.1",
1008
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/verify/token",
1009
+ routeValues: {
1010
+ publisherName: publisherName
1011
+ }
1012
+ });
1013
+ }
1014
+ /**
1015
+ * @param publisherName -
1016
+ */
1017
+ async verifyDomainToken(publisherName) {
1018
+ return this.beginRequest({
1019
+ apiVersion: "7.2-preview.1",
1020
+ method: "PUT",
1021
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/verify/token",
1022
+ routeValues: {
1023
+ publisherName: publisherName
1024
+ }
1025
+ });
1026
+ }
1027
+ /**
1028
+ * @param publisherQuery -
1029
+ */
1030
+ async queryPublishers(publisherQuery) {
1031
+ return this.beginRequest({
1032
+ apiVersion: "7.2-preview.1",
1033
+ method: "POST",
1034
+ routeTemplate: "_apis/public/gallery/publisherquery",
1035
+ body: publisherQuery
1036
+ });
1037
+ }
1038
+ /**
1039
+ * @param publisher -
1040
+ */
1041
+ async createPublisher(publisher) {
1042
+ return this.beginRequest({
1043
+ apiVersion: "7.2-preview.1",
1044
+ method: "POST",
1045
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1046
+ body: publisher
1047
+ });
1048
+ }
1049
+ /**
1050
+ * @param publisherName -
1051
+ */
1052
+ async deletePublisher(publisherName) {
1053
+ return this.beginRequest({
1054
+ apiVersion: "7.2-preview.1",
1055
+ method: "DELETE",
1056
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1057
+ routeValues: {
1058
+ publisherName: publisherName
1059
+ }
1060
+ });
1061
+ }
1062
+ /**
1063
+ * @param publisherName -
1064
+ * @param flags -
1065
+ */
1066
+ async getPublisher(publisherName, flags) {
1067
+ const queryValues = {
1068
+ flags: flags
1069
+ };
1070
+ return this.beginRequest({
1071
+ apiVersion: "7.2-preview.1",
1072
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1073
+ routeValues: {
1074
+ publisherName: publisherName
1075
+ },
1076
+ queryParams: queryValues
1077
+ });
1078
+ }
1079
+ /**
1080
+ * @param publisher -
1081
+ * @param publisherName -
1082
+ */
1083
+ async updatePublisher(publisher, publisherName) {
1084
+ return this.beginRequest({
1085
+ apiVersion: "7.2-preview.1",
1086
+ method: "PUT",
1087
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1088
+ routeValues: {
1089
+ publisherName: publisherName
1090
+ },
1091
+ body: publisher
1092
+ });
1093
+ }
1094
+ /**
1095
+ * Endpoint to add/modify publisher membership. Currently Supports only addition/modification of 1 user at a time Works only for adding members of same tenant.
1096
+ *
1097
+ * @param roleAssignments - List of user identifiers(email address) and role to be added. Currently only one entry is supported.
1098
+ * @param publisherName - The name/id of publisher to which users have to be added
1099
+ * @param limitToCallerIdentityDomain - Should cross tenant addtions be allowed or not.
1100
+ */
1101
+ async updatePublisherMembers(roleAssignments, publisherName, limitToCallerIdentityDomain) {
1102
+ const queryValues = {
1103
+ limitToCallerIdentityDomain: limitToCallerIdentityDomain
1104
+ };
1105
+ return this.beginRequest({
1106
+ apiVersion: "7.2-preview.1",
1107
+ method: "POST",
1108
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1109
+ routeValues: {
1110
+ publisherName: publisherName
1111
+ },
1112
+ queryParams: queryValues,
1113
+ body: roleAssignments
1114
+ });
1115
+ }
1116
+ /**
1117
+ * @param content - Content to upload
1118
+ * @param publisherName -
1119
+ * @param extensionName -
1120
+ * @param extensionType -
1121
+ * @param reCaptchaToken -
1122
+ * @param bypassScopeCheck -
1123
+ */
1124
+ async publishExtensionWithPublisherSignature(content, publisherName, extensionName, extensionType, reCaptchaToken, bypassScopeCheck) {
1125
+ const queryValues = {
1126
+ extensionType: extensionType,
1127
+ reCaptchaToken: reCaptchaToken,
1128
+ bypassScopeCheck: bypassScopeCheck
1129
+ };
1130
+ return this.beginRequest({
1131
+ apiVersion: "7.2-preview.1",
1132
+ method: "PUT",
1133
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publishersignedextension/{extensionName}",
1134
+ routeValues: {
1135
+ publisherName: publisherName,
1136
+ extensionName: extensionName
1137
+ },
1138
+ customHeaders: {
1139
+ "Content-Type": "multipart/related",
1140
+ },
1141
+ queryParams: queryValues,
1142
+ body: content,
1143
+ isRawData: true
1144
+ });
1145
+ }
1146
+ /**
1147
+ * @param publisherName -
1148
+ */
1149
+ async getPublisherWithoutToken(publisherName) {
1150
+ return this.beginRequest({
1151
+ apiVersion: "7.2-preview.1",
1152
+ routeTemplate: "_apis/public/gallery/publisherWithoutToken/{publisherName}",
1153
+ routeValues: {
1154
+ publisherName: publisherName
1155
+ }
1156
+ });
1157
+ }
1158
+ /**
1159
+ * Returns a list of questions with their responses associated with an extension.
1160
+ *
1161
+ * @param publisherName - Name of the publisher who published the extension.
1162
+ * @param extensionName - Name of the extension.
1163
+ * @param count - Number of questions to retrieve (defaults to 10).
1164
+ * @param page - Page number from which set of questions are to be retrieved.
1165
+ * @param afterDate - If provided, results questions are returned which were posted after this date
1166
+ */
1167
+ async getQuestions(publisherName, extensionName, count, page, afterDate) {
1168
+ const queryValues = {
1169
+ count: count,
1170
+ page: page,
1171
+ afterDate: afterDate
1172
+ };
1173
+ return this.beginRequest({
1174
+ apiVersion: "7.2-preview.1",
1175
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/qna",
1176
+ routeValues: {
1177
+ publisherName: publisherName,
1178
+ extensionName: extensionName
1179
+ },
1180
+ queryParams: queryValues
1181
+ });
1182
+ }
1183
+ /**
1184
+ * Flags a concern with an existing question for an extension.
1185
+ *
1186
+ * @param concern - User reported concern with a question for the extension.
1187
+ * @param pubName - Name of the publisher who published the extension.
1188
+ * @param extName - Name of the extension.
1189
+ * @param questionId - Identifier of the question to be updated for the extension.
1190
+ */
1191
+ async reportQuestion(concern, pubName, extName, questionId) {
1192
+ return this.beginRequest({
1193
+ apiVersion: "7.2-preview.1",
1194
+ method: "POST",
1195
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/qna/{questionId}/concern",
1196
+ routeValues: {
1197
+ pubName: pubName,
1198
+ extName: extName,
1199
+ questionId: questionId
1200
+ },
1201
+ body: concern
1202
+ });
1203
+ }
1204
+ /**
1205
+ * Creates a new question for an extension.
1206
+ *
1207
+ * @param question - Question to be created for the extension.
1208
+ * @param publisherName - Name of the publisher who published the extension.
1209
+ * @param extensionName - Name of the extension.
1210
+ */
1211
+ async createQuestion(question, publisherName, extensionName) {
1212
+ return this.beginRequest({
1213
+ apiVersion: "7.2-preview.1",
1214
+ method: "POST",
1215
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
1216
+ routeValues: {
1217
+ publisherName: publisherName,
1218
+ extensionName: extensionName
1219
+ },
1220
+ body: question
1221
+ });
1222
+ }
1223
+ /**
1224
+ * Deletes an existing question and all its associated responses for an extension. (soft delete)
1225
+ *
1226
+ * @param publisherName - Name of the publisher who published the extension.
1227
+ * @param extensionName - Name of the extension.
1228
+ * @param questionId - Identifier of the question to be deleted for the extension.
1229
+ */
1230
+ async deleteQuestion(publisherName, extensionName, questionId) {
1231
+ return this.beginRequest({
1232
+ apiVersion: "7.2-preview.1",
1233
+ method: "DELETE",
1234
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
1235
+ routeValues: {
1236
+ publisherName: publisherName,
1237
+ extensionName: extensionName,
1238
+ questionId: questionId
1239
+ }
1240
+ });
1241
+ }
1242
+ /**
1243
+ * Updates an existing question for an extension.
1244
+ *
1245
+ * @param question - Updated question to be set for the extension.
1246
+ * @param publisherName - Name of the publisher who published the extension.
1247
+ * @param extensionName - Name of the extension.
1248
+ * @param questionId - Identifier of the question to be updated for the extension.
1249
+ */
1250
+ async updateQuestion(question, publisherName, extensionName, questionId) {
1251
+ return this.beginRequest({
1252
+ apiVersion: "7.2-preview.1",
1253
+ method: "PATCH",
1254
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
1255
+ routeValues: {
1256
+ publisherName: publisherName,
1257
+ extensionName: extensionName,
1258
+ questionId: questionId
1259
+ },
1260
+ body: question
1261
+ });
1262
+ }
1263
+ /**
1264
+ * Creates a new response for a given question for an extension.
1265
+ *
1266
+ * @param response - Response to be created for the extension.
1267
+ * @param publisherName - Name of the publisher who published the extension.
1268
+ * @param extensionName - Name of the extension.
1269
+ * @param questionId - Identifier of the question for which response is to be created for the extension.
1270
+ */
1271
+ async createResponse(response, publisherName, extensionName, questionId) {
1272
+ return this.beginRequest({
1273
+ apiVersion: "7.2-preview.1",
1274
+ method: "POST",
1275
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
1276
+ routeValues: {
1277
+ publisherName: publisherName,
1278
+ extensionName: extensionName,
1279
+ questionId: questionId
1280
+ },
1281
+ body: response
1282
+ });
1283
+ }
1284
+ /**
1285
+ * Deletes a response for an extension. (soft delete)
1286
+ *
1287
+ * @param publisherName - Name of the publisher who published the extension.
1288
+ * @param extensionName - Name of the extension.
1289
+ * @param questionId - Identifies the question whose response is to be deleted.
1290
+ * @param responseId - Identifies the response to be deleted.
1291
+ */
1292
+ async deleteResponse(publisherName, extensionName, questionId, responseId) {
1293
+ return this.beginRequest({
1294
+ apiVersion: "7.2-preview.1",
1295
+ method: "DELETE",
1296
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
1297
+ routeValues: {
1298
+ publisherName: publisherName,
1299
+ extensionName: extensionName,
1300
+ questionId: questionId,
1301
+ responseId: responseId
1302
+ }
1303
+ });
1304
+ }
1305
+ /**
1306
+ * Updates an existing response for a given question for an extension.
1307
+ *
1308
+ * @param response - Updated response to be set for the extension.
1309
+ * @param publisherName - Name of the publisher who published the extension.
1310
+ * @param extensionName - Name of the extension.
1311
+ * @param questionId - Identifier of the question for which response is to be updated for the extension.
1312
+ * @param responseId - Identifier of the response which has to be updated.
1313
+ */
1314
+ async updateResponse(response, publisherName, extensionName, questionId, responseId) {
1315
+ return this.beginRequest({
1316
+ apiVersion: "7.2-preview.1",
1317
+ method: "PATCH",
1318
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
1319
+ routeValues: {
1320
+ publisherName: publisherName,
1321
+ extensionName: extensionName,
1322
+ questionId: questionId,
1323
+ responseId: responseId
1324
+ },
1325
+ body: response
1326
+ });
1327
+ }
1328
+ /**
1329
+ * Returns extension reports
1330
+ *
1331
+ * @param publisherName - Name of the publisher who published the extension
1332
+ * @param extensionName - Name of the extension
1333
+ * @param days - Last n days report. If afterDate and days are specified, days will take priority
1334
+ * @param count - Number of events to be returned
1335
+ * @param afterDate - Use if you want to fetch events newer than the specified date
1336
+ */
1337
+ async getExtensionReports(publisherName, extensionName, days, count, afterDate) {
1338
+ const queryValues = {
1339
+ days: days,
1340
+ count: count,
1341
+ afterDate: afterDate
1342
+ };
1343
+ return this.beginRequest({
1344
+ apiVersion: "7.2-preview.1",
1345
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/reports",
1346
+ routeValues: {
1347
+ publisherName: publisherName,
1348
+ extensionName: extensionName
1349
+ },
1350
+ queryParams: queryValues
1351
+ });
1352
+ }
1353
+ /**
1354
+ * Returns a list of reviews associated with an extension
1355
+ *
1356
+ * @param publisherName - Name of the publisher who published the extension
1357
+ * @param extensionName - Name of the extension
1358
+ * @param count - Number of reviews to retrieve (defaults to 5)
1359
+ * @param filterOptions - FilterOptions to filter out empty reviews etcetera, defaults to none
1360
+ * @param beforeDate - Use if you want to fetch reviews older than the specified date, defaults to null
1361
+ * @param afterDate - Use if you want to fetch reviews newer than the specified date, defaults to null
1362
+ */
1363
+ async getReviews(publisherName, extensionName, count, filterOptions, beforeDate, afterDate) {
1364
+ const queryValues = {
1365
+ count: count,
1366
+ filterOptions: filterOptions,
1367
+ beforeDate: beforeDate,
1368
+ afterDate: afterDate
1369
+ };
1370
+ return this.beginRequest({
1371
+ apiVersion: "7.2-preview.1",
1372
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/reviews",
1373
+ routeValues: {
1374
+ publisherName: publisherName,
1375
+ extensionName: extensionName
1376
+ },
1377
+ queryParams: queryValues
1378
+ });
1379
+ }
1380
+ /**
1381
+ * Returns a summary of the reviews
1382
+ *
1383
+ * @param pubName - Name of the publisher who published the extension
1384
+ * @param extName - Name of the extension
1385
+ * @param beforeDate - Use if you want to fetch summary of reviews older than the specified date, defaults to null
1386
+ * @param afterDate - Use if you want to fetch summary of reviews newer than the specified date, defaults to null
1387
+ */
1388
+ async getReviewsSummary(pubName, extName, beforeDate, afterDate) {
1389
+ const queryValues = {
1390
+ beforeDate: beforeDate,
1391
+ afterDate: afterDate
1392
+ };
1393
+ return this.beginRequest({
1394
+ apiVersion: "7.2-preview.1",
1395
+ routeTemplate: "_apis/public/gallery/publishers/{pubName}/extensions/{extName}/reviews/summary",
1396
+ routeValues: {
1397
+ pubName: pubName,
1398
+ extName: extName
1399
+ },
1400
+ queryParams: queryValues
1401
+ });
1402
+ }
1403
+ /**
1404
+ * Creates a new review for an extension
1405
+ *
1406
+ * @param review - Review to be created for the extension
1407
+ * @param pubName - Name of the publisher who published the extension
1408
+ * @param extName - Name of the extension
1409
+ */
1410
+ async createReview(review, pubName, extName) {
1411
+ return this.beginRequest({
1412
+ apiVersion: "7.2-preview.1",
1413
+ method: "POST",
1414
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
1415
+ routeValues: {
1416
+ pubName: pubName,
1417
+ extName: extName
1418
+ },
1419
+ body: review
1420
+ });
1421
+ }
1422
+ /**
1423
+ * Deletes a review
1424
+ *
1425
+ * @param pubName - Name of the publisher who published the extension
1426
+ * @param extName - Name of the extension
1427
+ * @param reviewId - Id of the review which needs to be updated
1428
+ */
1429
+ async deleteReview(pubName, extName, reviewId) {
1430
+ return this.beginRequest({
1431
+ apiVersion: "7.2-preview.1",
1432
+ method: "DELETE",
1433
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
1434
+ routeValues: {
1435
+ pubName: pubName,
1436
+ extName: extName,
1437
+ reviewId: reviewId
1438
+ }
1439
+ });
1440
+ }
1441
+ /**
1442
+ * Updates or Flags a review
1443
+ *
1444
+ * @param reviewPatch - ReviewPatch object which contains the changes to be applied to the review
1445
+ * @param pubName - Name of the publisher who published the extension
1446
+ * @param extName - Name of the extension
1447
+ * @param reviewId - Id of the review which needs to be updated
1448
+ */
1449
+ async updateReview(reviewPatch, pubName, extName, reviewId) {
1450
+ return this.beginRequest({
1451
+ apiVersion: "7.2-preview.1",
1452
+ method: "PATCH",
1453
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
1454
+ routeValues: {
1455
+ pubName: pubName,
1456
+ extName: extName,
1457
+ reviewId: reviewId
1458
+ },
1459
+ body: reviewPatch
1460
+ });
1461
+ }
1462
+ /**
1463
+ * @param category -
1464
+ */
1465
+ async createCategory(category) {
1466
+ return this.beginRequest({
1467
+ apiVersion: "7.2-preview.1",
1468
+ method: "POST",
1469
+ routeTemplate: "_apis/gallery/categories",
1470
+ body: category
1471
+ });
1472
+ }
1473
+ /**
1474
+ * Get all setting entries for the given user/all-users scope
1475
+ *
1476
+ * @param userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
1477
+ * @param key - Optional key under which to filter all the entries
1478
+ */
1479
+ async getGalleryUserSettings(userScope, key) {
1480
+ return this.beginRequest({
1481
+ apiVersion: "7.2-preview.1",
1482
+ routeTemplate: "_apis/gallery/settings/{userScope}/{*key}",
1483
+ routeValues: {
1484
+ userScope: userScope,
1485
+ key: key
1486
+ }
1487
+ });
1488
+ }
1489
+ /**
1490
+ * Set all setting entries for the given user/all-users scope
1491
+ *
1492
+ * @param entries - A key-value pair of all settings that need to be set
1493
+ * @param userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
1494
+ */
1495
+ async setGalleryUserSettings(entries, userScope) {
1496
+ return this.beginRequest({
1497
+ apiVersion: "7.2-preview.1",
1498
+ method: "PATCH",
1499
+ routeTemplate: "_apis/gallery/settings/{userScope}/{*key}",
1500
+ routeValues: {
1501
+ userScope: userScope
1502
+ },
1503
+ body: entries
1504
+ });
1505
+ }
1506
+ /**
1507
+ * @param keyType -
1508
+ * @param expireCurrentSeconds -
1509
+ */
1510
+ async generateKey(keyType, expireCurrentSeconds) {
1511
+ const queryValues = {
1512
+ expireCurrentSeconds: expireCurrentSeconds
1513
+ };
1514
+ return this.beginRequest({
1515
+ apiVersion: "7.2-preview.1",
1516
+ method: "POST",
1517
+ routeTemplate: "_apis/gallery/signingkey/{keyType}",
1518
+ routeValues: {
1519
+ keyType: keyType
1520
+ },
1521
+ queryParams: queryValues
1522
+ });
1523
+ }
1524
+ /**
1525
+ * @param keyType -
1526
+ */
1527
+ async getSigningKey(keyType) {
1528
+ return this.beginRequest({
1529
+ apiVersion: "7.2-preview.1",
1530
+ routeTemplate: "_apis/gallery/signingkey/{keyType}",
1531
+ routeValues: {
1532
+ keyType: keyType
1533
+ }
1534
+ });
1535
+ }
1536
+ /**
1537
+ * @param extensionStatisticsUpdate -
1538
+ * @param publisherName -
1539
+ * @param extensionName -
1540
+ */
1541
+ async updateExtensionStatistics(extensionStatisticsUpdate, publisherName, extensionName) {
1542
+ return this.beginRequest({
1543
+ apiVersion: "7.2-preview.1",
1544
+ method: "PATCH",
1545
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/statistics",
1546
+ routeValues: {
1547
+ publisherName: publisherName,
1548
+ extensionName: extensionName
1549
+ },
1550
+ body: extensionStatisticsUpdate
1551
+ });
1552
+ }
1553
+ /**
1554
+ * @param publisherName -
1555
+ * @param extensionName -
1556
+ * @param days -
1557
+ * @param aggregate -
1558
+ * @param afterDate -
1559
+ */
1560
+ async getExtensionDailyStats(publisherName, extensionName, days, aggregate, afterDate) {
1561
+ const queryValues = {
1562
+ days: days,
1563
+ aggregate: aggregate,
1564
+ afterDate: afterDate
1565
+ };
1566
+ return this.beginRequest({
1567
+ apiVersion: "7.2-preview.1",
1568
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/stats",
1569
+ routeValues: {
1570
+ publisherName: publisherName,
1571
+ extensionName: extensionName
1572
+ },
1573
+ queryParams: queryValues
1574
+ });
1575
+ }
1576
+ /**
1577
+ * This route/location id only supports HTTP POST anonymously, so that the page view daily stat can be incremented from Marketplace client. Trying to call GET on this route should result in an exception. Without this explicit implementation, calling GET on this public route invokes the above GET implementation GetExtensionDailyStats.
1578
+ *
1579
+ * @param publisherName - Name of the publisher
1580
+ * @param extensionName - Name of the extension
1581
+ * @param version - Version of the extension
1582
+ */
1583
+ async getExtensionDailyStatsAnonymous(publisherName, extensionName, version) {
1584
+ return this.beginRequest({
1585
+ apiVersion: "7.2-preview.1",
1586
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",
1587
+ routeValues: {
1588
+ publisherName: publisherName,
1589
+ extensionName: extensionName,
1590
+ version: version
1591
+ }
1592
+ });
1593
+ }
1594
+ /**
1595
+ * Increments a daily statistic associated with the extension
1596
+ *
1597
+ * @param publisherName - Name of the publisher
1598
+ * @param extensionName - Name of the extension
1599
+ * @param version - Version of the extension
1600
+ * @param statType - Type of stat to increment
1601
+ * @param targetPlatform -
1602
+ */
1603
+ async incrementExtensionDailyStat(publisherName, extensionName, version, statType, targetPlatform) {
1604
+ const queryValues = {
1605
+ statType: statType,
1606
+ targetPlatform: targetPlatform
1607
+ };
1608
+ return this.beginRequest({
1609
+ apiVersion: "7.2-preview.1",
1610
+ method: "POST",
1611
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",
1612
+ routeValues: {
1613
+ publisherName: publisherName,
1614
+ extensionName: extensionName,
1615
+ version: version
1616
+ },
1617
+ queryParams: queryValues
1618
+ });
1619
+ }
1620
+ /**
1621
+ * @param publisherName -
1622
+ * @param extensionName -
1623
+ * @param version -
1624
+ * @param targetPlatform -
1625
+ */
1626
+ async getVerificationLog(publisherName, extensionName, version, targetPlatform) {
1627
+ const queryValues = {
1628
+ targetPlatform: targetPlatform
1629
+ };
1630
+ return this.beginRequest({
1631
+ apiVersion: "7.2-preview.1",
1632
+ httpResponseType: "application/octet-stream",
1633
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/verificationlog",
1634
+ routeValues: {
1635
+ publisherName: publisherName,
1636
+ extensionName: extensionName,
1637
+ version: version
1638
+ },
1639
+ queryParams: queryValues
1640
+ });
1641
+ }
1642
+ /**
1643
+ * Endpoint to get the latest version(s) of a VS Code extension.
1644
+ *
1645
+ * @param publisherName - The name of the publisher of the requested VS Code extension.
1646
+ * @param extensionName - The extension name.
1647
+ */
1648
+ async getVSCodeExtensionLatestVersion(publisherName, extensionName) {
1649
+ return this.beginRequest({
1650
+ apiVersion: "7.2-preview.1",
1651
+ routeTemplate: "_apis/public/gallery/vscode/{publisherName}/{extensionName}/latest",
1652
+ routeValues: {
1653
+ publisherName: publisherName,
1654
+ extensionName: extensionName
1655
+ }
1656
+ });
1657
+ }
1658
+ /**
1659
+ * @param itemName -
1660
+ * @param version -
1661
+ * @param statType -
1662
+ */
1663
+ async updateVSCodeWebExtensionStatistics(itemName, version, statType) {
1664
+ return this.beginRequest({
1665
+ apiVersion: "7.2-preview.1",
1666
+ method: "POST",
1667
+ routeTemplate: "_apis/public/gallery/itemName/{itemName}/version/{version}/statType/{statType}/vscodewebextension",
1668
+ routeValues: {
1669
+ itemName: itemName,
1670
+ version: version,
1671
+ statType: statType
1672
+ }
1673
+ });
1674
+ }
1675
+ /**
1676
+ * Query a single VS extension by its VSIX ID, with optional filtering by architecture, version range, and SKU.
1677
+ *
1678
+ * @param vsixId - The VSIX ID of the extension to query.
1679
+ * @param arch - Architecture filter (e.g., "amd64", "arm64", "x86").
1680
+ * @param versionRange - Installation target version range formatted as "\{min\}-\{max\}". Either bound may be omitted (e.g., "17.0-" or "-18.4").
1681
+ * @param sku - VS SKU filter (e.g., "VisualStudio"). Defaults to broad match.
1682
+ * @param flags - Bitwise response flags controlling the shape of the response data.
1683
+ */
1684
+ async queryExtensionByVsixId(vsixId, arch, versionRange, sku, flags) {
1685
+ const queryValues = {
1686
+ arch: arch,
1687
+ versionRange: versionRange,
1688
+ sku: sku,
1689
+ flags: flags
1690
+ };
1691
+ return this.beginRequest({
1692
+ apiVersion: "7.2-preview.1",
1693
+ routeTemplate: "_apis/public/gallery/vs/extensions/vsixId/{vsixId}",
1694
+ routeValues: {
1695
+ vsixId: vsixId
1696
+ },
1697
+ queryParams: queryValues
1698
+ });
1699
+ }
1700
+ }
1701
+ GalleryRestClient.RESOURCE_AREA_ID = "69d21c00-f135-441b-b5ce-3626378e0819";