azure-devops-extension-api 4.246.0 → 4.248.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 (559) hide show
  1. package/SECURITY.md +41 -0
  2. package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/Reporting.d.ts +48 -0
  3. package/bin/AdvancedSecurity.Reporting/Reporting.js +32 -0
  4. package/bin/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  5. package/{Alert → bin/Alert}/Alert.d.ts +8 -8
  6. package/{Contributions → bin/Contributions}/ContributionsClient.js +2 -2
  7. package/{Contributions → bin/Contributions}/ContributionsClient.min.js +1 -1
  8. package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.js +7 -7
  9. package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.min.js +1 -1
  10. package/{Git → bin/Git}/Git.d.ts +4 -0
  11. package/bin/LICENSE +21 -0
  12. package/{Management → bin/Management}/Management.d.ts +4 -0
  13. package/bin/README.md +2 -0
  14. package/{TaskAgent → bin/TaskAgent}/TaskAgent.d.ts +8 -0
  15. package/{Test → bin/Test}/Test.d.ts +31 -7
  16. package/{TestPlan → bin/TestPlan}/TestPlan.d.ts +6 -2
  17. package/{TestResults → bin/TestResults}/TestResultsClient.d.ts +24 -1
  18. package/{TestResults → bin/TestResults}/TestResultsClient.js +79 -1
  19. package/bin/TestResults/TestResultsClient.min.js +1 -0
  20. package/bin/package.json +37 -0
  21. package/buildpackage.js +80 -0
  22. package/package.json +1 -1
  23. package/src/Accounts/Accounts.ts +134 -0
  24. package/src/Accounts/AccountsClient.ts +83 -0
  25. package/src/Accounts/index.ts +2 -0
  26. package/src/AdvancedSecurity.Reporting/Reporting.ts +180 -0
  27. package/src/AdvancedSecurity.Reporting/ReportingClient.ts +47 -0
  28. package/src/Alert/Alert.ts +1037 -0
  29. package/src/Alert/AlertClient.ts +330 -0
  30. package/src/Boards/Boards.ts +684 -0
  31. package/src/Boards/BoardsClient.ts +593 -0
  32. package/src/Boards/index.ts +2 -0
  33. package/src/Build/Build.ts +3416 -0
  34. package/src/Build/BuildClient.ts +2740 -0
  35. package/src/Build/BuildServices.ts +39 -0
  36. package/src/Build/index.ts +3 -0
  37. package/src/Comments/Comments.ts +330 -0
  38. package/src/Comments/index.ts +1 -0
  39. package/src/Common/Client.ts +37 -0
  40. package/src/Common/CommonServices.ts +853 -0
  41. package/src/Common/Context.d.ts +46 -0
  42. package/src/Common/Fetch.ts +239 -0
  43. package/src/Common/RestClientBase.ts +186 -0
  44. package/src/Common/System.ts +36 -0
  45. package/src/Common/SystemData.ts +135 -0
  46. package/src/Common/Util/Serialization.ts +59 -0
  47. package/src/Common/Util/Url.ts +773 -0
  48. package/src/Common/index.ts +3 -0
  49. package/src/Contributions/Contributions.ts +708 -0
  50. package/src/Contributions/ContributionsClient.ts +109 -0
  51. package/src/Contributions/index.ts +2 -0
  52. package/src/Core/Core.ts +579 -0
  53. package/src/Core/CoreClient.ts +765 -0
  54. package/src/Core/index.ts +2 -0
  55. package/src/Dashboard/Dashboard.ts +419 -0
  56. package/src/Dashboard/DashboardClient.ts +370 -0
  57. package/src/Dashboard/WidgetConfigHelpers.ts +43 -0
  58. package/src/Dashboard/WidgetContracts.ts +226 -0
  59. package/src/Dashboard/WidgetHelpers.ts +145 -0
  60. package/src/Dashboard/index.ts +5 -0
  61. package/src/DistributedTaskCommon/DistributedTaskCommon.ts +108 -0
  62. package/src/DistributedTaskCommon/index.ts +1 -0
  63. package/src/ExtensionManagement/ExtensionManagement.ts +1205 -0
  64. package/src/ExtensionManagement/ExtensionManagementClient.ts +646 -0
  65. package/src/ExtensionManagement/index.ts +2 -0
  66. package/src/Favorite/Favorite.ts +136 -0
  67. package/src/Favorite/FavoriteClient.ts +301 -0
  68. package/src/FeatureAvailability/FeatureAvailability.ts +20 -0
  69. package/src/FeatureAvailability/FeatureAvailabilityClient.ts +153 -0
  70. package/src/FeatureAvailability/index.ts +2 -0
  71. package/src/FeatureManagement/FeatureManagement.ts +166 -0
  72. package/src/FeatureManagement/FeatureManagementClient.ts +246 -0
  73. package/src/FeatureManagement/index.ts +2 -0
  74. package/src/FileContainer/FileContainer.ts +205 -0
  75. package/src/FileContainer/FileContainerClient.ts +154 -0
  76. package/src/FileContainer/index.ts +2 -0
  77. package/src/FormInput/FormInput.ts +288 -0
  78. package/src/FormInput/index.ts +1 -0
  79. package/src/Gallery/Gallery.ts +1977 -0
  80. package/src/Gallery/GalleryClient.ts +2251 -0
  81. package/src/Gallery/index.ts +2 -0
  82. package/src/Git/CodeEditorTypes.ts +335 -0
  83. package/src/Git/Git.ts +4062 -0
  84. package/src/Git/GitClient.ts +4750 -0
  85. package/src/Git/GitServices.ts +18 -0
  86. package/src/Git/index.ts +4 -0
  87. package/src/Graph/Graph.ts +572 -0
  88. package/src/Graph/GraphClient.ts +846 -0
  89. package/src/Graph/index.ts +2 -0
  90. package/src/Identities/Identities.ts +261 -0
  91. package/src/Identities/IdentityProvider.ts +90 -0
  92. package/src/Identities/IdentityService.ts +89 -0
  93. package/src/Identities/index.ts +3 -0
  94. package/src/Locations/Locations.ts +165 -0
  95. package/src/Locations/LocationsClient.ts +220 -0
  96. package/src/Locations/index.ts +2 -0
  97. package/src/Management/Management.ts +176 -0
  98. package/src/Management/ManagementClient.ts +348 -0
  99. package/src/Notification/Notification.ts +1460 -0
  100. package/src/Notification/NotificationClient.ts +477 -0
  101. package/src/Notification/index.ts +2 -0
  102. package/src/Operations/Operations.ts +86 -0
  103. package/src/Operations/OperationsClient.ts +42 -0
  104. package/src/Operations/index.ts +2 -0
  105. package/src/Pipelines/Pipelines.ts +354 -0
  106. package/src/Pipelines/PipelinesClient.ts +306 -0
  107. package/src/Policy/Policy.ts +173 -0
  108. package/src/Policy/PolicyClient.ts +315 -0
  109. package/src/Policy/index.ts +2 -0
  110. package/src/Profile/Profile.ts +187 -0
  111. package/src/Profile/ProfileClient.ts +328 -0
  112. package/src/Profile/index.ts +2 -0
  113. package/src/ProjectAnalysis/ProjectAnalysis.ts +74 -0
  114. package/src/ProjectAnalysis/ProjectAnalysisClient.ts +124 -0
  115. package/src/ProjectAnalysis/index.ts +2 -0
  116. package/src/Release/Release.ts +4237 -0
  117. package/src/Release/ReleaseClient.ts +2450 -0
  118. package/src/Release/index.ts +2 -0
  119. package/src/ResourceUsage/ResourceUsage.ts +19 -0
  120. package/src/ResourceUsage/ResourceUsageClient.ts +48 -0
  121. package/src/ServiceEndpoint/ServiceEndpoint.ts +930 -0
  122. package/src/ServiceEndpoint/ServiceEndpointClient.ts +617 -0
  123. package/src/ServiceEndpoint/index.ts +2 -0
  124. package/src/ServiceHooks/ServiceHooks.ts +759 -0
  125. package/src/ServiceHooks/ServiceHooksClient.ts +499 -0
  126. package/src/ServiceHooks/index.ts +2 -0
  127. package/src/TaskAgent/TaskAgent.ts +3896 -0
  128. package/src/TaskAgent/TaskAgentClient.ts +3918 -0
  129. package/src/TaskAgent/index.ts +2 -0
  130. package/src/Test/Test.ts +5853 -0
  131. package/src/Test/TestClient.ts +2201 -0
  132. package/src/Test/index.ts +2 -0
  133. package/src/TestPlan/TestPlan.ts +1384 -0
  134. package/src/TestPlan/TestPlanClient.ts +1367 -0
  135. package/src/TestPlan/index.ts +2 -0
  136. package/{AdvancedSecurity.Reporting/Reporting.js → src/TestResults/TestResults.ts} +7 -5
  137. package/src/TestResults/TestResultsClient.ts +3506 -0
  138. package/src/TestResults/index.ts +2 -0
  139. package/src/Tfvc/Tfvc.ts +770 -0
  140. package/src/Tfvc/TfvcClient.ts +757 -0
  141. package/src/Tfvc/index.ts +2 -0
  142. package/src/WebApi/WebApi.ts +452 -0
  143. package/src/WebApi/index.ts +1 -0
  144. package/src/Wiki/Wiki.ts +352 -0
  145. package/src/Wiki/WikiClient.ts +712 -0
  146. package/src/Wiki/index.ts +2 -0
  147. package/src/Work/Work.ts +1367 -0
  148. package/src/Work/WorkClient.ts +1489 -0
  149. package/src/Work/index.ts +2 -0
  150. package/src/WorkItemTracking/WorkItemTracking.ts +2215 -0
  151. package/src/WorkItemTracking/WorkItemTrackingClient.ts +2032 -0
  152. package/src/WorkItemTracking/WorkItemTrackingServices.ts +329 -0
  153. package/src/WorkItemTracking/index.ts +3 -0
  154. package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +1295 -0
  155. package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +1455 -0
  156. package/src/WorkItemTrackingProcess/index.ts +2 -0
  157. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +606 -0
  158. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +1175 -0
  159. package/src/WorkItemTrackingProcessDefinitions/index.ts +2 -0
  160. package/src/index.ts +1 -0
  161. package/tsconfig.json +21 -0
  162. package/AdvancedSecurity.Reporting/Reporting.min.js +0 -1
  163. package/TestResults/TestResultsClient.min.js +0 -1
  164. /package/{Accounts → bin/Accounts}/Accounts.d.ts +0 -0
  165. /package/{Accounts → bin/Accounts}/Accounts.js +0 -0
  166. /package/{Accounts → bin/Accounts}/Accounts.min.js +0 -0
  167. /package/{Accounts → bin/Accounts}/AccountsClient.d.ts +0 -0
  168. /package/{Accounts → bin/Accounts}/AccountsClient.js +0 -0
  169. /package/{Accounts → bin/Accounts}/AccountsClient.min.js +0 -0
  170. /package/{Accounts → bin/Accounts}/index.d.ts +0 -0
  171. /package/{Accounts → bin/Accounts}/index.js +0 -0
  172. /package/{Accounts → bin/Accounts}/index.min.js +0 -0
  173. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
  174. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
  175. /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
  176. /package/{Alert → bin/Alert}/Alert.js +0 -0
  177. /package/{Alert → bin/Alert}/Alert.min.js +0 -0
  178. /package/{Alert → bin/Alert}/AlertClient.d.ts +0 -0
  179. /package/{Alert → bin/Alert}/AlertClient.js +0 -0
  180. /package/{Alert → bin/Alert}/AlertClient.min.js +0 -0
  181. /package/{Boards → bin/Boards}/Boards.d.ts +0 -0
  182. /package/{Boards → bin/Boards}/Boards.js +0 -0
  183. /package/{Boards → bin/Boards}/Boards.min.js +0 -0
  184. /package/{Boards → bin/Boards}/BoardsClient.d.ts +0 -0
  185. /package/{Boards → bin/Boards}/BoardsClient.js +0 -0
  186. /package/{Boards → bin/Boards}/BoardsClient.min.js +0 -0
  187. /package/{Boards → bin/Boards}/index.d.ts +0 -0
  188. /package/{Boards → bin/Boards}/index.js +0 -0
  189. /package/{Boards → bin/Boards}/index.min.js +0 -0
  190. /package/{Build → bin/Build}/Build.d.ts +0 -0
  191. /package/{Build → bin/Build}/Build.js +0 -0
  192. /package/{Build → bin/Build}/Build.min.js +0 -0
  193. /package/{Build → bin/Build}/BuildClient.d.ts +0 -0
  194. /package/{Build → bin/Build}/BuildClient.js +0 -0
  195. /package/{Build → bin/Build}/BuildClient.min.js +0 -0
  196. /package/{Build → bin/Build}/BuildServices.d.ts +0 -0
  197. /package/{Build → bin/Build}/BuildServices.js +0 -0
  198. /package/{Build → bin/Build}/BuildServices.min.js +0 -0
  199. /package/{Build → bin/Build}/index.d.ts +0 -0
  200. /package/{Build → bin/Build}/index.js +0 -0
  201. /package/{Build → bin/Build}/index.min.js +0 -0
  202. /package/{Comments → bin/Comments}/Comments.d.ts +0 -0
  203. /package/{Comments → bin/Comments}/Comments.js +0 -0
  204. /package/{Comments → bin/Comments}/Comments.min.js +0 -0
  205. /package/{Comments → bin/Comments}/index.d.ts +0 -0
  206. /package/{Comments → bin/Comments}/index.js +0 -0
  207. /package/{Comments → bin/Comments}/index.min.js +0 -0
  208. /package/{Common → bin/Common}/Client.d.ts +0 -0
  209. /package/{Common → bin/Common}/Client.js +0 -0
  210. /package/{Common → bin/Common}/Client.min.js +0 -0
  211. /package/{Common → bin/Common}/CommonServices.d.ts +0 -0
  212. /package/{Common → bin/Common}/CommonServices.js +0 -0
  213. /package/{Common → bin/Common}/CommonServices.min.js +0 -0
  214. /package/{Common → bin/Common}/Context.d.ts +0 -0
  215. /package/{Common → bin/Common}/Fetch.d.ts +0 -0
  216. /package/{Common → bin/Common}/Fetch.js +0 -0
  217. /package/{Common → bin/Common}/Fetch.min.js +0 -0
  218. /package/{Common → bin/Common}/RestClientBase.d.ts +0 -0
  219. /package/{Common → bin/Common}/RestClientBase.js +0 -0
  220. /package/{Common → bin/Common}/RestClientBase.min.js +0 -0
  221. /package/{Common → bin/Common}/System.d.ts +0 -0
  222. /package/{Common → bin/Common}/System.js +0 -0
  223. /package/{Common → bin/Common}/System.min.js +0 -0
  224. /package/{Common → bin/Common}/SystemData.d.ts +0 -0
  225. /package/{Common → bin/Common}/SystemData.js +0 -0
  226. /package/{Common → bin/Common}/SystemData.min.js +0 -0
  227. /package/{Common → bin/Common}/Util/Serialization.d.ts +0 -0
  228. /package/{Common → bin/Common}/Util/Serialization.js +0 -0
  229. /package/{Common → bin/Common}/Util/Serialization.min.js +0 -0
  230. /package/{Common → bin/Common}/Util/Url.d.ts +0 -0
  231. /package/{Common → bin/Common}/Util/Url.js +0 -0
  232. /package/{Common → bin/Common}/Util/Url.min.js +0 -0
  233. /package/{Common → bin/Common}/index.d.ts +0 -0
  234. /package/{Common → bin/Common}/index.js +0 -0
  235. /package/{Common → bin/Common}/index.min.js +0 -0
  236. /package/{Contributions → bin/Contributions}/Contributions.d.ts +0 -0
  237. /package/{Contributions → bin/Contributions}/Contributions.js +0 -0
  238. /package/{Contributions → bin/Contributions}/Contributions.min.js +0 -0
  239. /package/{Contributions → bin/Contributions}/ContributionsClient.d.ts +0 -0
  240. /package/{Contributions → bin/Contributions}/index.d.ts +0 -0
  241. /package/{Contributions → bin/Contributions}/index.js +0 -0
  242. /package/{Contributions → bin/Contributions}/index.min.js +0 -0
  243. /package/{Core → bin/Core}/Core.d.ts +0 -0
  244. /package/{Core → bin/Core}/Core.js +0 -0
  245. /package/{Core → bin/Core}/Core.min.js +0 -0
  246. /package/{Core → bin/Core}/CoreClient.d.ts +0 -0
  247. /package/{Core → bin/Core}/CoreClient.js +0 -0
  248. /package/{Core → bin/Core}/CoreClient.min.js +0 -0
  249. /package/{Core → bin/Core}/index.d.ts +0 -0
  250. /package/{Core → bin/Core}/index.js +0 -0
  251. /package/{Core → bin/Core}/index.min.js +0 -0
  252. /package/{Dashboard → bin/Dashboard}/Dashboard.d.ts +0 -0
  253. /package/{Dashboard → bin/Dashboard}/Dashboard.js +0 -0
  254. /package/{Dashboard → bin/Dashboard}/Dashboard.min.js +0 -0
  255. /package/{Dashboard → bin/Dashboard}/DashboardClient.d.ts +0 -0
  256. /package/{Dashboard → bin/Dashboard}/DashboardClient.js +0 -0
  257. /package/{Dashboard → bin/Dashboard}/DashboardClient.min.js +0 -0
  258. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.d.ts +0 -0
  259. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.js +0 -0
  260. /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.min.js +0 -0
  261. /package/{Dashboard → bin/Dashboard}/WidgetContracts.d.ts +0 -0
  262. /package/{Dashboard → bin/Dashboard}/WidgetContracts.js +0 -0
  263. /package/{Dashboard → bin/Dashboard}/WidgetContracts.min.js +0 -0
  264. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.d.ts +0 -0
  265. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.js +0 -0
  266. /package/{Dashboard → bin/Dashboard}/WidgetHelpers.min.js +0 -0
  267. /package/{Dashboard → bin/Dashboard}/index.d.ts +0 -0
  268. /package/{Dashboard → bin/Dashboard}/index.js +0 -0
  269. /package/{Dashboard → bin/Dashboard}/index.min.js +0 -0
  270. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
  271. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
  272. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
  273. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.d.ts +0 -0
  274. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.js +0 -0
  275. /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.min.js +0 -0
  276. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.d.ts +0 -0
  277. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.js +0 -0
  278. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.min.js +0 -0
  279. /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
  280. /package/{ExtensionManagement → bin/ExtensionManagement}/index.d.ts +0 -0
  281. /package/{ExtensionManagement → bin/ExtensionManagement}/index.js +0 -0
  282. /package/{ExtensionManagement → bin/ExtensionManagement}/index.min.js +0 -0
  283. /package/{Favorite → bin/Favorite}/Favorite.d.ts +0 -0
  284. /package/{Favorite → bin/Favorite}/Favorite.js +0 -0
  285. /package/{Favorite → bin/Favorite}/Favorite.min.js +0 -0
  286. /package/{Favorite → bin/Favorite}/FavoriteClient.d.ts +0 -0
  287. /package/{Favorite → bin/Favorite}/FavoriteClient.js +0 -0
  288. /package/{Favorite → bin/Favorite}/FavoriteClient.min.js +0 -0
  289. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.d.ts +0 -0
  290. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.js +0 -0
  291. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.min.js +0 -0
  292. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
  293. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
  294. /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
  295. /package/{FeatureAvailability → bin/FeatureAvailability}/index.d.ts +0 -0
  296. /package/{FeatureAvailability → bin/FeatureAvailability}/index.js +0 -0
  297. /package/{FeatureAvailability → bin/FeatureAvailability}/index.min.js +0 -0
  298. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.d.ts +0 -0
  299. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.js +0 -0
  300. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.min.js +0 -0
  301. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.d.ts +0 -0
  302. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.js +0 -0
  303. /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.min.js +0 -0
  304. /package/{FeatureManagement → bin/FeatureManagement}/index.d.ts +0 -0
  305. /package/{FeatureManagement → bin/FeatureManagement}/index.js +0 -0
  306. /package/{FeatureManagement → bin/FeatureManagement}/index.min.js +0 -0
  307. /package/{FileContainer → bin/FileContainer}/FileContainer.d.ts +0 -0
  308. /package/{FileContainer → bin/FileContainer}/FileContainer.js +0 -0
  309. /package/{FileContainer → bin/FileContainer}/FileContainer.min.js +0 -0
  310. /package/{FileContainer → bin/FileContainer}/FileContainerClient.d.ts +0 -0
  311. /package/{FileContainer → bin/FileContainer}/FileContainerClient.js +0 -0
  312. /package/{FileContainer → bin/FileContainer}/FileContainerClient.min.js +0 -0
  313. /package/{FileContainer → bin/FileContainer}/index.d.ts +0 -0
  314. /package/{FileContainer → bin/FileContainer}/index.js +0 -0
  315. /package/{FileContainer → bin/FileContainer}/index.min.js +0 -0
  316. /package/{FormInput → bin/FormInput}/FormInput.d.ts +0 -0
  317. /package/{FormInput → bin/FormInput}/FormInput.js +0 -0
  318. /package/{FormInput → bin/FormInput}/FormInput.min.js +0 -0
  319. /package/{FormInput → bin/FormInput}/index.d.ts +0 -0
  320. /package/{FormInput → bin/FormInput}/index.js +0 -0
  321. /package/{FormInput → bin/FormInput}/index.min.js +0 -0
  322. /package/{Gallery → bin/Gallery}/Gallery.d.ts +0 -0
  323. /package/{Gallery → bin/Gallery}/Gallery.js +0 -0
  324. /package/{Gallery → bin/Gallery}/Gallery.min.js +0 -0
  325. /package/{Gallery → bin/Gallery}/GalleryClient.d.ts +0 -0
  326. /package/{Gallery → bin/Gallery}/GalleryClient.js +0 -0
  327. /package/{Gallery → bin/Gallery}/GalleryClient.min.js +0 -0
  328. /package/{Gallery → bin/Gallery}/index.d.ts +0 -0
  329. /package/{Gallery → bin/Gallery}/index.js +0 -0
  330. /package/{Gallery → bin/Gallery}/index.min.js +0 -0
  331. /package/{Git → bin/Git}/CodeEditorTypes.d.ts +0 -0
  332. /package/{Git → bin/Git}/CodeEditorTypes.js +0 -0
  333. /package/{Git → bin/Git}/CodeEditorTypes.min.js +0 -0
  334. /package/{Git → bin/Git}/Git.js +0 -0
  335. /package/{Git → bin/Git}/Git.min.js +0 -0
  336. /package/{Git → bin/Git}/GitClient.d.ts +0 -0
  337. /package/{Git → bin/Git}/GitClient.js +0 -0
  338. /package/{Git → bin/Git}/GitClient.min.js +0 -0
  339. /package/{Git → bin/Git}/GitServices.d.ts +0 -0
  340. /package/{Git → bin/Git}/GitServices.js +0 -0
  341. /package/{Git → bin/Git}/GitServices.min.js +0 -0
  342. /package/{Git → bin/Git}/index.d.ts +0 -0
  343. /package/{Git → bin/Git}/index.js +0 -0
  344. /package/{Git → bin/Git}/index.min.js +0 -0
  345. /package/{Graph → bin/Graph}/Graph.d.ts +0 -0
  346. /package/{Graph → bin/Graph}/Graph.js +0 -0
  347. /package/{Graph → bin/Graph}/Graph.min.js +0 -0
  348. /package/{Graph → bin/Graph}/GraphClient.d.ts +0 -0
  349. /package/{Graph → bin/Graph}/GraphClient.js +0 -0
  350. /package/{Graph → bin/Graph}/GraphClient.min.js +0 -0
  351. /package/{Graph → bin/Graph}/index.d.ts +0 -0
  352. /package/{Graph → bin/Graph}/index.js +0 -0
  353. /package/{Graph → bin/Graph}/index.min.js +0 -0
  354. /package/{Identities → bin/Identities}/Identities.d.ts +0 -0
  355. /package/{Identities → bin/Identities}/Identities.js +0 -0
  356. /package/{Identities → bin/Identities}/Identities.min.js +0 -0
  357. /package/{Identities → bin/Identities}/IdentityProvider.d.ts +0 -0
  358. /package/{Identities → bin/Identities}/IdentityProvider.js +0 -0
  359. /package/{Identities → bin/Identities}/IdentityProvider.min.js +0 -0
  360. /package/{Identities → bin/Identities}/IdentityService.d.ts +0 -0
  361. /package/{Identities → bin/Identities}/IdentityService.js +0 -0
  362. /package/{Identities → bin/Identities}/IdentityService.min.js +0 -0
  363. /package/{Identities → bin/Identities}/index.d.ts +0 -0
  364. /package/{Identities → bin/Identities}/index.js +0 -0
  365. /package/{Identities → bin/Identities}/index.min.js +0 -0
  366. /package/{Locations → bin/Locations}/Locations.d.ts +0 -0
  367. /package/{Locations → bin/Locations}/Locations.js +0 -0
  368. /package/{Locations → bin/Locations}/Locations.min.js +0 -0
  369. /package/{Locations → bin/Locations}/LocationsClient.d.ts +0 -0
  370. /package/{Locations → bin/Locations}/LocationsClient.js +0 -0
  371. /package/{Locations → bin/Locations}/LocationsClient.min.js +0 -0
  372. /package/{Locations → bin/Locations}/index.d.ts +0 -0
  373. /package/{Locations → bin/Locations}/index.js +0 -0
  374. /package/{Locations → bin/Locations}/index.min.js +0 -0
  375. /package/{Management → bin/Management}/Management.js +0 -0
  376. /package/{Management → bin/Management}/Management.min.js +0 -0
  377. /package/{Management → bin/Management}/ManagementClient.d.ts +0 -0
  378. /package/{Management → bin/Management}/ManagementClient.js +0 -0
  379. /package/{Management → bin/Management}/ManagementClient.min.js +0 -0
  380. /package/{Notification → bin/Notification}/Notification.d.ts +0 -0
  381. /package/{Notification → bin/Notification}/Notification.js +0 -0
  382. /package/{Notification → bin/Notification}/Notification.min.js +0 -0
  383. /package/{Notification → bin/Notification}/NotificationClient.d.ts +0 -0
  384. /package/{Notification → bin/Notification}/NotificationClient.js +0 -0
  385. /package/{Notification → bin/Notification}/NotificationClient.min.js +0 -0
  386. /package/{Notification → bin/Notification}/index.d.ts +0 -0
  387. /package/{Notification → bin/Notification}/index.js +0 -0
  388. /package/{Notification → bin/Notification}/index.min.js +0 -0
  389. /package/{Operations → bin/Operations}/Operations.d.ts +0 -0
  390. /package/{Operations → bin/Operations}/Operations.js +0 -0
  391. /package/{Operations → bin/Operations}/Operations.min.js +0 -0
  392. /package/{Operations → bin/Operations}/OperationsClient.d.ts +0 -0
  393. /package/{Operations → bin/Operations}/OperationsClient.js +0 -0
  394. /package/{Operations → bin/Operations}/OperationsClient.min.js +0 -0
  395. /package/{Operations → bin/Operations}/index.d.ts +0 -0
  396. /package/{Operations → bin/Operations}/index.js +0 -0
  397. /package/{Operations → bin/Operations}/index.min.js +0 -0
  398. /package/{Pipelines → bin/Pipelines}/Pipelines.d.ts +0 -0
  399. /package/{Pipelines → bin/Pipelines}/Pipelines.js +0 -0
  400. /package/{Pipelines → bin/Pipelines}/Pipelines.min.js +0 -0
  401. /package/{Pipelines → bin/Pipelines}/PipelinesClient.d.ts +0 -0
  402. /package/{Pipelines → bin/Pipelines}/PipelinesClient.js +0 -0
  403. /package/{Pipelines → bin/Pipelines}/PipelinesClient.min.js +0 -0
  404. /package/{Policy → bin/Policy}/Policy.d.ts +0 -0
  405. /package/{Policy → bin/Policy}/Policy.js +0 -0
  406. /package/{Policy → bin/Policy}/Policy.min.js +0 -0
  407. /package/{Policy → bin/Policy}/PolicyClient.d.ts +0 -0
  408. /package/{Policy → bin/Policy}/PolicyClient.js +0 -0
  409. /package/{Policy → bin/Policy}/PolicyClient.min.js +0 -0
  410. /package/{Policy → bin/Policy}/index.d.ts +0 -0
  411. /package/{Policy → bin/Policy}/index.js +0 -0
  412. /package/{Policy → bin/Policy}/index.min.js +0 -0
  413. /package/{Profile → bin/Profile}/Profile.d.ts +0 -0
  414. /package/{Profile → bin/Profile}/Profile.js +0 -0
  415. /package/{Profile → bin/Profile}/Profile.min.js +0 -0
  416. /package/{Profile → bin/Profile}/ProfileClient.d.ts +0 -0
  417. /package/{Profile → bin/Profile}/ProfileClient.js +0 -0
  418. /package/{Profile → bin/Profile}/ProfileClient.min.js +0 -0
  419. /package/{Profile → bin/Profile}/index.d.ts +0 -0
  420. /package/{Profile → bin/Profile}/index.js +0 -0
  421. /package/{Profile → bin/Profile}/index.min.js +0 -0
  422. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
  423. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.js +0 -0
  424. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
  425. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
  426. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
  427. /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
  428. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.d.ts +0 -0
  429. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.js +0 -0
  430. /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.min.js +0 -0
  431. /package/{Release → bin/Release}/Release.d.ts +0 -0
  432. /package/{Release → bin/Release}/Release.js +0 -0
  433. /package/{Release → bin/Release}/Release.min.js +0 -0
  434. /package/{Release → bin/Release}/ReleaseClient.d.ts +0 -0
  435. /package/{Release → bin/Release}/ReleaseClient.js +0 -0
  436. /package/{Release → bin/Release}/ReleaseClient.min.js +0 -0
  437. /package/{Release → bin/Release}/index.d.ts +0 -0
  438. /package/{Release → bin/Release}/index.js +0 -0
  439. /package/{Release → bin/Release}/index.min.js +0 -0
  440. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.d.ts +0 -0
  441. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.js +0 -0
  442. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.min.js +0 -0
  443. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.d.ts +0 -0
  444. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.js +0 -0
  445. /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.min.js +0 -0
  446. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.d.ts +0 -0
  447. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.js +0 -0
  448. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
  449. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.d.ts +0 -0
  450. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.js +0 -0
  451. /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.min.js +0 -0
  452. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.d.ts +0 -0
  453. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.js +0 -0
  454. /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.min.js +0 -0
  455. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.d.ts +0 -0
  456. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.js +0 -0
  457. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.min.js +0 -0
  458. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.d.ts +0 -0
  459. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.js +0 -0
  460. /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.min.js +0 -0
  461. /package/{ServiceHooks → bin/ServiceHooks}/index.d.ts +0 -0
  462. /package/{ServiceHooks → bin/ServiceHooks}/index.js +0 -0
  463. /package/{ServiceHooks → bin/ServiceHooks}/index.min.js +0 -0
  464. /package/{TaskAgent → bin/TaskAgent}/TaskAgent.js +0 -0
  465. /package/{TaskAgent → bin/TaskAgent}/TaskAgent.min.js +0 -0
  466. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.d.ts +0 -0
  467. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.js +0 -0
  468. /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.min.js +0 -0
  469. /package/{TaskAgent → bin/TaskAgent}/index.d.ts +0 -0
  470. /package/{TaskAgent → bin/TaskAgent}/index.js +0 -0
  471. /package/{TaskAgent → bin/TaskAgent}/index.min.js +0 -0
  472. /package/{Test → bin/Test}/Test.js +0 -0
  473. /package/{Test → bin/Test}/Test.min.js +0 -0
  474. /package/{Test → bin/Test}/TestClient.d.ts +0 -0
  475. /package/{Test → bin/Test}/TestClient.js +0 -0
  476. /package/{Test → bin/Test}/TestClient.min.js +0 -0
  477. /package/{Test → bin/Test}/index.d.ts +0 -0
  478. /package/{Test → bin/Test}/index.js +0 -0
  479. /package/{Test → bin/Test}/index.min.js +0 -0
  480. /package/{TestPlan → bin/TestPlan}/TestPlan.js +0 -0
  481. /package/{TestPlan → bin/TestPlan}/TestPlan.min.js +0 -0
  482. /package/{TestPlan → bin/TestPlan}/TestPlanClient.d.ts +0 -0
  483. /package/{TestPlan → bin/TestPlan}/TestPlanClient.js +0 -0
  484. /package/{TestPlan → bin/TestPlan}/TestPlanClient.min.js +0 -0
  485. /package/{TestPlan → bin/TestPlan}/index.d.ts +0 -0
  486. /package/{TestPlan → bin/TestPlan}/index.js +0 -0
  487. /package/{TestPlan → bin/TestPlan}/index.min.js +0 -0
  488. /package/{TestResults → bin/TestResults}/TestResults.d.ts +0 -0
  489. /package/{TestResults → bin/TestResults}/TestResults.js +0 -0
  490. /package/{TestResults → bin/TestResults}/TestResults.min.js +0 -0
  491. /package/{TestResults → bin/TestResults}/index.d.ts +0 -0
  492. /package/{TestResults → bin/TestResults}/index.js +0 -0
  493. /package/{TestResults → bin/TestResults}/index.min.js +0 -0
  494. /package/{Tfvc → bin/Tfvc}/Tfvc.d.ts +0 -0
  495. /package/{Tfvc → bin/Tfvc}/Tfvc.js +0 -0
  496. /package/{Tfvc → bin/Tfvc}/Tfvc.min.js +0 -0
  497. /package/{Tfvc → bin/Tfvc}/TfvcClient.d.ts +0 -0
  498. /package/{Tfvc → bin/Tfvc}/TfvcClient.js +0 -0
  499. /package/{Tfvc → bin/Tfvc}/TfvcClient.min.js +0 -0
  500. /package/{Tfvc → bin/Tfvc}/index.d.ts +0 -0
  501. /package/{Tfvc → bin/Tfvc}/index.js +0 -0
  502. /package/{Tfvc → bin/Tfvc}/index.min.js +0 -0
  503. /package/{WebApi → bin/WebApi}/WebApi.d.ts +0 -0
  504. /package/{WebApi → bin/WebApi}/WebApi.js +0 -0
  505. /package/{WebApi → bin/WebApi}/WebApi.min.js +0 -0
  506. /package/{WebApi → bin/WebApi}/index.d.ts +0 -0
  507. /package/{WebApi → bin/WebApi}/index.js +0 -0
  508. /package/{WebApi → bin/WebApi}/index.min.js +0 -0
  509. /package/{Wiki → bin/Wiki}/Wiki.d.ts +0 -0
  510. /package/{Wiki → bin/Wiki}/Wiki.js +0 -0
  511. /package/{Wiki → bin/Wiki}/Wiki.min.js +0 -0
  512. /package/{Wiki → bin/Wiki}/WikiClient.d.ts +0 -0
  513. /package/{Wiki → bin/Wiki}/WikiClient.js +0 -0
  514. /package/{Wiki → bin/Wiki}/WikiClient.min.js +0 -0
  515. /package/{Wiki → bin/Wiki}/index.d.ts +0 -0
  516. /package/{Wiki → bin/Wiki}/index.js +0 -0
  517. /package/{Wiki → bin/Wiki}/index.min.js +0 -0
  518. /package/{Work → bin/Work}/Work.d.ts +0 -0
  519. /package/{Work → bin/Work}/Work.js +0 -0
  520. /package/{Work → bin/Work}/Work.min.js +0 -0
  521. /package/{Work → bin/Work}/WorkClient.d.ts +0 -0
  522. /package/{Work → bin/Work}/WorkClient.js +0 -0
  523. /package/{Work → bin/Work}/WorkClient.min.js +0 -0
  524. /package/{Work → bin/Work}/index.d.ts +0 -0
  525. /package/{Work → bin/Work}/index.js +0 -0
  526. /package/{Work → bin/Work}/index.min.js +0 -0
  527. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.d.ts +0 -0
  528. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.js +0 -0
  529. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.min.js +0 -0
  530. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
  531. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.js +0 -0
  532. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
  533. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
  534. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.js +0 -0
  535. /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
  536. /package/{WorkItemTracking → bin/WorkItemTracking}/index.d.ts +0 -0
  537. /package/{WorkItemTracking → bin/WorkItemTracking}/index.js +0 -0
  538. /package/{WorkItemTracking → bin/WorkItemTracking}/index.min.js +0 -0
  539. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
  540. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
  541. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
  542. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
  543. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
  544. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
  545. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.d.ts +0 -0
  546. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.js +0 -0
  547. /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.min.js +0 -0
  548. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
  549. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
  550. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
  551. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
  552. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
  553. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
  554. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
  555. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.js +0 -0
  556. /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
  557. /package/{index.d.ts → bin/index.d.ts} +0 -0
  558. /package/{index.js → bin/index.js} +0 -0
  559. /package/{index.min.js → bin/index.min.js} +0 -0
@@ -0,0 +1,2251 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+
7
+ import { IVssRestClientOptions } from "../Common/Context";
8
+ import { RestClientBase } from "../Common/RestClientBase";
9
+
10
+ import * as Gallery from "../Gallery/Gallery";
11
+
12
+ export class GalleryRestClient extends RestClientBase {
13
+ constructor(options: IVssRestClientOptions) {
14
+ super(options);
15
+ }
16
+
17
+ public static readonly RESOURCE_AREA_ID = "69d21c00-f135-441b-b5ce-3626378e0819";
18
+
19
+ /**
20
+ * @param extensionId -
21
+ * @param accountName -
22
+ */
23
+ public async shareExtensionById(
24
+ extensionId: string,
25
+ accountName: string
26
+ ): Promise<void> {
27
+
28
+ return this.beginRequest<void>({
29
+ apiVersion: "7.2-preview.1",
30
+ method: "POST",
31
+ routeTemplate: "_apis/gallery/extensions/{extensionId}/accounts/{accountName}",
32
+ routeValues: {
33
+ extensionId: extensionId,
34
+ accountName: accountName
35
+ }
36
+ });
37
+ }
38
+
39
+ /**
40
+ * @param extensionId -
41
+ * @param accountName -
42
+ */
43
+ public async unshareExtensionById(
44
+ extensionId: string,
45
+ accountName: string
46
+ ): Promise<void> {
47
+
48
+ return this.beginRequest<void>({
49
+ apiVersion: "7.2-preview.1",
50
+ method: "DELETE",
51
+ routeTemplate: "_apis/gallery/extensions/{extensionId}/accounts/{accountName}",
52
+ routeValues: {
53
+ extensionId: extensionId,
54
+ accountName: accountName
55
+ }
56
+ });
57
+ }
58
+
59
+ /**
60
+ * @param publisherName -
61
+ * @param extensionName -
62
+ * @param accountName -
63
+ */
64
+ public async shareExtension(
65
+ publisherName: string,
66
+ extensionName: string,
67
+ accountName: string
68
+ ): Promise<void> {
69
+
70
+ return this.beginRequest<void>({
71
+ apiVersion: "7.2-preview.1",
72
+ method: "POST",
73
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",
74
+ routeValues: {
75
+ publisherName: publisherName,
76
+ extensionName: extensionName,
77
+ accountName: accountName
78
+ }
79
+ });
80
+ }
81
+
82
+ /**
83
+ * @param publisherName -
84
+ * @param extensionName -
85
+ * @param accountName -
86
+ */
87
+ public async unshareExtension(
88
+ publisherName: string,
89
+ extensionName: string,
90
+ accountName: string
91
+ ): Promise<void> {
92
+
93
+ return this.beginRequest<void>({
94
+ apiVersion: "7.2-preview.1",
95
+ method: "DELETE",
96
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",
97
+ routeValues: {
98
+ publisherName: publisherName,
99
+ extensionName: extensionName,
100
+ accountName: accountName
101
+ }
102
+ });
103
+ }
104
+
105
+ /**
106
+ * @param itemId -
107
+ * @param installationTarget -
108
+ * @param testCommerce -
109
+ * @param isFreeOrTrialInstall -
110
+ */
111
+ public async getAcquisitionOptions(
112
+ itemId: string,
113
+ installationTarget: string,
114
+ testCommerce?: boolean,
115
+ isFreeOrTrialInstall?: boolean
116
+ ): Promise<Gallery.AcquisitionOptions> {
117
+
118
+ const queryValues: any = {
119
+ installationTarget: installationTarget,
120
+ testCommerce: testCommerce,
121
+ isFreeOrTrialInstall: isFreeOrTrialInstall
122
+ };
123
+
124
+ return this.beginRequest<Gallery.AcquisitionOptions>({
125
+ apiVersion: "7.2-preview.1",
126
+ routeTemplate: "_apis/gallery/acquisitionoptions/{itemId}",
127
+ routeValues: {
128
+ itemId: itemId
129
+ },
130
+ queryParams: queryValues
131
+ });
132
+ }
133
+
134
+ /**
135
+ * @param acquisitionRequest -
136
+ */
137
+ public async requestAcquisition(
138
+ acquisitionRequest: Gallery.ExtensionAcquisitionRequest
139
+ ): Promise<Gallery.ExtensionAcquisitionRequest> {
140
+
141
+ return this.beginRequest<Gallery.ExtensionAcquisitionRequest>({
142
+ apiVersion: "7.2-preview.1",
143
+ method: "POST",
144
+ routeTemplate: "_apis/gallery/acquisitionrequests",
145
+ body: acquisitionRequest
146
+ });
147
+ }
148
+
149
+ /**
150
+ * @param publisherName -
151
+ * @param extensionName -
152
+ * @param version -
153
+ * @param assetType -
154
+ * @param accountToken -
155
+ * @param acceptDefault -
156
+ * @param accountTokenHeader - Header to pass the account token
157
+ */
158
+ public async getAssetByName(
159
+ publisherName: string,
160
+ extensionName: string,
161
+ version: string,
162
+ assetType: string,
163
+ accountToken?: string,
164
+ acceptDefault?: boolean,
165
+ accountTokenHeader?: String
166
+ ): Promise<ArrayBuffer> {
167
+
168
+ const queryValues: any = {
169
+ accountToken: accountToken,
170
+ acceptDefault: acceptDefault
171
+ };
172
+
173
+ return this.beginRequest<ArrayBuffer>({
174
+ apiVersion: "7.2-preview.1",
175
+ httpResponseType: "application/octet-stream",
176
+ routeTemplate: "_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assetbyname/{*assetType}",
177
+ routeValues: {
178
+ publisherName: publisherName,
179
+ extensionName: extensionName,
180
+ version: version,
181
+ assetType: assetType
182
+ },
183
+ customHeaders: {
184
+ "X-Market-AccountToken": accountTokenHeader,
185
+ },
186
+ queryParams: queryValues
187
+ });
188
+ }
189
+
190
+ /**
191
+ * @param extensionId -
192
+ * @param version -
193
+ * @param assetType -
194
+ * @param accountToken -
195
+ * @param acceptDefault -
196
+ * @param accountTokenHeader - Header to pass the account token
197
+ */
198
+ public async getAsset(
199
+ extensionId: string,
200
+ version: string,
201
+ assetType: string,
202
+ accountToken?: string,
203
+ acceptDefault?: boolean,
204
+ accountTokenHeader?: String
205
+ ): Promise<ArrayBuffer> {
206
+
207
+ const queryValues: any = {
208
+ accountToken: accountToken,
209
+ acceptDefault: acceptDefault
210
+ };
211
+
212
+ return this.beginRequest<ArrayBuffer>({
213
+ apiVersion: "7.2-preview.1",
214
+ httpResponseType: "application/octet-stream",
215
+ routeTemplate: "_apis/public/gallery/extensions/{extensionId}/{version}/assets/{assetType}",
216
+ routeValues: {
217
+ extensionId: extensionId,
218
+ version: version,
219
+ assetType: assetType
220
+ },
221
+ customHeaders: {
222
+ "X-Market-AccountToken": accountTokenHeader,
223
+ },
224
+ queryParams: queryValues
225
+ });
226
+ }
227
+
228
+ /**
229
+ * @param publisherName -
230
+ * @param extensionName -
231
+ * @param version -
232
+ * @param assetType -
233
+ * @param accountToken -
234
+ * @param accountTokenHeader - Header to pass the account token
235
+ */
236
+ public async getAssetAuthenticated(
237
+ publisherName: string,
238
+ extensionName: string,
239
+ version: string,
240
+ assetType: string,
241
+ accountToken?: string,
242
+ accountTokenHeader?: String
243
+ ): Promise<ArrayBuffer> {
244
+
245
+ const queryValues: any = {
246
+ accountToken: accountToken
247
+ };
248
+
249
+ return this.beginRequest<ArrayBuffer>({
250
+ apiVersion: "7.2-preview.1",
251
+ httpResponseType: "application/octet-stream",
252
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assets/{*assetType}",
253
+ routeValues: {
254
+ publisherName: publisherName,
255
+ extensionName: extensionName,
256
+ version: version,
257
+ assetType: assetType
258
+ },
259
+ customHeaders: {
260
+ "X-Market-AccountToken": accountTokenHeader,
261
+ },
262
+ queryParams: queryValues
263
+ });
264
+ }
265
+
266
+ /**
267
+ * @param publisherName -
268
+ * @param azurePublisherId -
269
+ */
270
+ public async associateAzurePublisher(
271
+ publisherName: string,
272
+ azurePublisherId: string
273
+ ): Promise<Gallery.AzurePublisher> {
274
+
275
+ const queryValues: any = {
276
+ azurePublisherId: azurePublisherId
277
+ };
278
+
279
+ return this.beginRequest<Gallery.AzurePublisher>({
280
+ apiVersion: "7.2-preview.1",
281
+ method: "PUT",
282
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/azurepublisher",
283
+ routeValues: {
284
+ publisherName: publisherName
285
+ },
286
+ queryParams: queryValues
287
+ });
288
+ }
289
+
290
+ /**
291
+ * @param publisherName -
292
+ */
293
+ public async queryAssociatedAzurePublisher(
294
+ publisherName: string
295
+ ): Promise<Gallery.AzurePublisher> {
296
+
297
+ return this.beginRequest<Gallery.AzurePublisher>({
298
+ apiVersion: "7.2-preview.1",
299
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/azurepublisher",
300
+ routeValues: {
301
+ publisherName: publisherName
302
+ }
303
+ });
304
+ }
305
+
306
+ /**
307
+ * @param languages -
308
+ */
309
+ public async getCategories(
310
+ languages?: string
311
+ ): Promise<string[]> {
312
+
313
+ const queryValues: any = {
314
+ languages: languages
315
+ };
316
+
317
+ return this.beginRequest<string[]>({
318
+ apiVersion: "7.2-preview.1",
319
+ routeTemplate: "_apis/public/gallery/categories",
320
+ queryParams: queryValues
321
+ });
322
+ }
323
+
324
+ /**
325
+ * @param categoryName -
326
+ * @param languages -
327
+ * @param product -
328
+ */
329
+ public async getCategoryDetails(
330
+ categoryName: string,
331
+ languages?: string,
332
+ product?: string
333
+ ): Promise<Gallery.CategoriesResult> {
334
+
335
+ const queryValues: any = {
336
+ languages: languages,
337
+ product: product
338
+ };
339
+
340
+ return this.beginRequest<Gallery.CategoriesResult>({
341
+ apiVersion: "7.2-preview.1",
342
+ routeTemplate: "_apis/public/gallery/categories/{categoryName}",
343
+ routeValues: {
344
+ categoryName: categoryName
345
+ },
346
+ queryParams: queryValues
347
+ });
348
+ }
349
+
350
+ /**
351
+ * @param product -
352
+ * @param categoryId -
353
+ * @param lcid -
354
+ * @param source -
355
+ * @param productVersion -
356
+ * @param skus -
357
+ * @param subSkus -
358
+ * @param productArchitecture -
359
+ */
360
+ public async getCategoryTree(
361
+ product: string,
362
+ categoryId: string,
363
+ lcid?: number,
364
+ source?: string,
365
+ productVersion?: string,
366
+ skus?: string,
367
+ subSkus?: string,
368
+ productArchitecture?: string
369
+ ): Promise<Gallery.ProductCategory> {
370
+
371
+ const queryValues: any = {
372
+ lcid: lcid,
373
+ source: source,
374
+ productVersion: productVersion,
375
+ skus: skus,
376
+ subSkus: subSkus,
377
+ productArchitecture: productArchitecture
378
+ };
379
+
380
+ return this.beginRequest<Gallery.ProductCategory>({
381
+ apiVersion: "7.2-preview.1",
382
+ routeTemplate: "_apis/public/gallery/{product}/categories/{categoryId}",
383
+ routeValues: {
384
+ product: product,
385
+ categoryId: categoryId
386
+ },
387
+ queryParams: queryValues
388
+ });
389
+ }
390
+
391
+ /**
392
+ * @param product -
393
+ * @param lcid -
394
+ * @param source -
395
+ * @param productVersion -
396
+ * @param skus -
397
+ * @param subSkus -
398
+ */
399
+ public async getRootCategories(
400
+ product: string,
401
+ lcid?: number,
402
+ source?: string,
403
+ productVersion?: string,
404
+ skus?: string,
405
+ subSkus?: string
406
+ ): Promise<Gallery.ProductCategoriesResult> {
407
+
408
+ const queryValues: any = {
409
+ lcid: lcid,
410
+ source: source,
411
+ productVersion: productVersion,
412
+ skus: skus,
413
+ subSkus: subSkus
414
+ };
415
+
416
+ return this.beginRequest<Gallery.ProductCategoriesResult>({
417
+ apiVersion: "7.2-preview.1",
418
+ routeTemplate: "_apis/public/gallery/{product}/categories/root",
419
+ routeValues: {
420
+ product: product
421
+ },
422
+ queryParams: queryValues
423
+ });
424
+ }
425
+
426
+ /**
427
+ * @param publisherName -
428
+ * @param extensionName -
429
+ * @param version -
430
+ */
431
+ public async getCertificate(
432
+ publisherName: string,
433
+ extensionName: string,
434
+ version?: string
435
+ ): Promise<ArrayBuffer> {
436
+
437
+ return this.beginRequest<ArrayBuffer>({
438
+ apiVersion: "7.2-preview.1",
439
+ httpResponseType: "application/octet-stream",
440
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/certificates/{version}",
441
+ routeValues: {
442
+ publisherName: publisherName,
443
+ extensionName: extensionName,
444
+ version: version
445
+ }
446
+ });
447
+ }
448
+
449
+ /**
450
+ * @param publisherName -
451
+ * @param extensionName -
452
+ */
453
+ public async getContentVerificationLog(
454
+ publisherName: string,
455
+ extensionName: string
456
+ ): Promise<ArrayBuffer> {
457
+
458
+ return this.beginRequest<ArrayBuffer>({
459
+ apiVersion: "7.2-preview.1",
460
+ httpResponseType: "application/octet-stream",
461
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/contentverificationlog",
462
+ routeValues: {
463
+ publisherName: publisherName,
464
+ extensionName: extensionName
465
+ }
466
+ });
467
+ }
468
+
469
+ /**
470
+ * @param customerSupportRequest -
471
+ */
472
+ public async createSupportRequest(
473
+ customerSupportRequest: Gallery.CustomerSupportRequest
474
+ ): Promise<void> {
475
+
476
+ return this.beginRequest<void>({
477
+ apiVersion: "7.2-preview.1",
478
+ method: "POST",
479
+ routeTemplate: "_apis/public/support",
480
+ body: customerSupportRequest
481
+ });
482
+ }
483
+
484
+ /**
485
+ * @param publisherName -
486
+ * @param extensionName -
487
+ */
488
+ public async createDraftForEditExtension(
489
+ publisherName: string,
490
+ extensionName: string
491
+ ): Promise<Gallery.ExtensionDraft> {
492
+
493
+ return this.beginRequest<Gallery.ExtensionDraft>({
494
+ apiVersion: "7.2-preview.1",
495
+ method: "POST",
496
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
497
+ routeValues: {
498
+ publisherName: publisherName,
499
+ extensionName: extensionName
500
+ }
501
+ });
502
+ }
503
+
504
+ /**
505
+ * @param draftPatch -
506
+ * @param publisherName -
507
+ * @param extensionName -
508
+ * @param draftId -
509
+ */
510
+ public async performEditExtensionDraftOperation(
511
+ draftPatch: Gallery.ExtensionDraftPatch,
512
+ publisherName: string,
513
+ extensionName: string,
514
+ draftId: string
515
+ ): Promise<Gallery.ExtensionDraft> {
516
+
517
+ return this.beginRequest<Gallery.ExtensionDraft>({
518
+ apiVersion: "7.2-preview.1",
519
+ method: "PATCH",
520
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
521
+ routeValues: {
522
+ publisherName: publisherName,
523
+ extensionName: extensionName,
524
+ draftId: draftId
525
+ },
526
+ body: draftPatch
527
+ });
528
+ }
529
+
530
+ /**
531
+ * @param content - Content to upload
532
+ * @param publisherName -
533
+ * @param extensionName -
534
+ * @param draftId -
535
+ * @param fileName - Header to pass the filename of the uploaded data
536
+ */
537
+ public async updatePayloadInDraftForEditExtension(
538
+ content: any,
539
+ publisherName: string,
540
+ extensionName: string,
541
+ draftId: string,
542
+ fileName?: String
543
+ ): Promise<Gallery.ExtensionDraft> {
544
+
545
+ return this.beginRequest<Gallery.ExtensionDraft>({
546
+ apiVersion: "7.2-preview.1",
547
+ method: "PUT",
548
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
549
+ routeValues: {
550
+ publisherName: publisherName,
551
+ extensionName: extensionName,
552
+ draftId: draftId
553
+ },
554
+ customHeaders: {
555
+ "Content-Type": "application/octet-stream",
556
+ "X-Market-UploadFileName": fileName,
557
+ },
558
+ body: content,
559
+ isRawData: true
560
+ });
561
+ }
562
+
563
+ /**
564
+ * @param content - Content to upload
565
+ * @param publisherName -
566
+ * @param extensionName -
567
+ * @param draftId -
568
+ * @param assetType -
569
+ */
570
+ public async addAssetForEditExtensionDraft(
571
+ content: string,
572
+ publisherName: string,
573
+ extensionName: string,
574
+ draftId: string,
575
+ assetType: string
576
+ ): Promise<Gallery.ExtensionDraftAsset> {
577
+
578
+ return this.beginRequest<Gallery.ExtensionDraftAsset>({
579
+ apiVersion: "7.2-preview.1",
580
+ method: "PUT",
581
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}/assets/{*assetType}",
582
+ routeValues: {
583
+ publisherName: publisherName,
584
+ extensionName: extensionName,
585
+ draftId: draftId,
586
+ assetType: assetType
587
+ },
588
+ customHeaders: {
589
+ "Content-Type": "application/octet-stream",
590
+ },
591
+ body: content,
592
+ isRawData: true
593
+ });
594
+ }
595
+
596
+ /**
597
+ * @param content - Content to upload
598
+ * @param publisherName -
599
+ * @param product - Header to pass the product type of the payload file
600
+ * @param fileName - Header to pass the filename of the uploaded data
601
+ */
602
+ public async createDraftForNewExtension(
603
+ content: any,
604
+ publisherName: string,
605
+ product: String,
606
+ fileName?: String
607
+ ): Promise<Gallery.ExtensionDraft> {
608
+
609
+ return this.beginRequest<Gallery.ExtensionDraft>({
610
+ apiVersion: "7.2-preview.1",
611
+ method: "POST",
612
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
613
+ routeValues: {
614
+ publisherName: publisherName
615
+ },
616
+ customHeaders: {
617
+ "Content-Type": "application/octet-stream",
618
+ "X-Market-UploadFileProduct": product,
619
+ "X-Market-UploadFileName": fileName,
620
+ },
621
+ body: content,
622
+ isRawData: true
623
+ });
624
+ }
625
+
626
+ /**
627
+ * @param draftPatch -
628
+ * @param publisherName -
629
+ * @param draftId -
630
+ */
631
+ public async performNewExtensionDraftOperation(
632
+ draftPatch: Gallery.ExtensionDraftPatch,
633
+ publisherName: string,
634
+ draftId: string
635
+ ): Promise<Gallery.ExtensionDraft> {
636
+
637
+ return this.beginRequest<Gallery.ExtensionDraft>({
638
+ apiVersion: "7.2-preview.1",
639
+ method: "PATCH",
640
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
641
+ routeValues: {
642
+ publisherName: publisherName,
643
+ draftId: draftId
644
+ },
645
+ body: draftPatch
646
+ });
647
+ }
648
+
649
+ /**
650
+ * @param content - Content to upload
651
+ * @param publisherName -
652
+ * @param draftId -
653
+ * @param fileName - Header to pass the filename of the uploaded data
654
+ */
655
+ public async updatePayloadInDraftForNewExtension(
656
+ content: any,
657
+ publisherName: string,
658
+ draftId: string,
659
+ fileName?: String
660
+ ): Promise<Gallery.ExtensionDraft> {
661
+
662
+ return this.beginRequest<Gallery.ExtensionDraft>({
663
+ apiVersion: "7.2-preview.1",
664
+ method: "PUT",
665
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
666
+ routeValues: {
667
+ publisherName: publisherName,
668
+ draftId: draftId
669
+ },
670
+ customHeaders: {
671
+ "Content-Type": "application/octet-stream",
672
+ "X-Market-UploadFileName": fileName,
673
+ },
674
+ body: content,
675
+ isRawData: true
676
+ });
677
+ }
678
+
679
+ /**
680
+ * @param content - Content to upload
681
+ * @param publisherName -
682
+ * @param draftId -
683
+ * @param assetType -
684
+ */
685
+ public async addAssetForNewExtensionDraft(
686
+ content: string,
687
+ publisherName: string,
688
+ draftId: string,
689
+ assetType: string
690
+ ): Promise<Gallery.ExtensionDraftAsset> {
691
+
692
+ return this.beginRequest<Gallery.ExtensionDraftAsset>({
693
+ apiVersion: "7.2-preview.1",
694
+ method: "PUT",
695
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
696
+ routeValues: {
697
+ publisherName: publisherName,
698
+ draftId: draftId,
699
+ assetType: assetType
700
+ },
701
+ customHeaders: {
702
+ "Content-Type": "application/octet-stream",
703
+ },
704
+ body: content,
705
+ isRawData: true
706
+ });
707
+ }
708
+
709
+ /**
710
+ * @param publisherName -
711
+ * @param draftId -
712
+ * @param assetType -
713
+ * @param extensionName -
714
+ */
715
+ public async getAssetFromEditExtensionDraft(
716
+ publisherName: string,
717
+ draftId: string,
718
+ assetType: string,
719
+ extensionName: string
720
+ ): Promise<ArrayBuffer> {
721
+
722
+ const queryValues: any = {
723
+ extensionName: extensionName
724
+ };
725
+
726
+ return this.beginRequest<ArrayBuffer>({
727
+ apiVersion: "7.2-preview.1",
728
+ httpResponseType: "application/octet-stream",
729
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
730
+ routeValues: {
731
+ publisherName: publisherName,
732
+ draftId: draftId,
733
+ assetType: assetType
734
+ },
735
+ queryParams: queryValues
736
+ });
737
+ }
738
+
739
+ /**
740
+ * @param publisherName -
741
+ * @param draftId -
742
+ * @param assetType -
743
+ */
744
+ public async getAssetFromNewExtensionDraft(
745
+ publisherName: string,
746
+ draftId: string,
747
+ assetType: string
748
+ ): Promise<ArrayBuffer> {
749
+
750
+ return this.beginRequest<ArrayBuffer>({
751
+ apiVersion: "7.2-preview.1",
752
+ httpResponseType: "application/octet-stream",
753
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
754
+ routeValues: {
755
+ publisherName: publisherName,
756
+ draftId: draftId,
757
+ assetType: assetType
758
+ }
759
+ });
760
+ }
761
+
762
+ /**
763
+ * Get install/uninstall events of an extension. If both count and afterDate parameters are specified, count takes precedence.
764
+ *
765
+ * @param publisherName - Name of the publisher
766
+ * @param extensionName - Name of the extension
767
+ * @param count - Count of events to fetch, applies to each event type.
768
+ * @param afterDate - Fetch events that occurred on or after this date
769
+ * @param include - Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events
770
+ * @param includeProperty - Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events
771
+ */
772
+ public async getExtensionEvents(
773
+ publisherName: string,
774
+ extensionName: string,
775
+ count?: number,
776
+ afterDate?: Date,
777
+ include?: string,
778
+ includeProperty?: string
779
+ ): Promise<Gallery.ExtensionEvents> {
780
+
781
+ const queryValues: any = {
782
+ count: count,
783
+ afterDate: afterDate,
784
+ include: include,
785
+ includeProperty: includeProperty
786
+ };
787
+
788
+ return this.beginRequest<Gallery.ExtensionEvents>({
789
+ apiVersion: "7.2-preview.1",
790
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/events",
791
+ routeValues: {
792
+ publisherName: publisherName,
793
+ extensionName: extensionName
794
+ },
795
+ queryParams: queryValues
796
+ });
797
+ }
798
+
799
+ /**
800
+ * 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.
801
+ *
802
+ * @param extensionEvents -
803
+ */
804
+ public async publishExtensionEvents(
805
+ extensionEvents: Gallery.ExtensionEvents[]
806
+ ): Promise<void> {
807
+
808
+ return this.beginRequest<void>({
809
+ apiVersion: "7.2-preview.1",
810
+ method: "POST",
811
+ routeTemplate: "_apis/gallery/events",
812
+ body: extensionEvents
813
+ });
814
+ }
815
+
816
+ /**
817
+ * @param extensionQuery -
818
+ * @param accountToken -
819
+ * @param accountTokenHeader - Header to pass the account token
820
+ */
821
+ public async queryExtensions(
822
+ extensionQuery: Gallery.ExtensionQuery,
823
+ accountToken?: string,
824
+ accountTokenHeader?: String
825
+ ): Promise<Gallery.ExtensionQueryResult> {
826
+
827
+ const queryValues: any = {
828
+ accountToken: accountToken
829
+ };
830
+
831
+ return this.beginRequest<Gallery.ExtensionQueryResult>({
832
+ apiVersion: "7.2-preview.1",
833
+ method: "POST",
834
+ routeTemplate: "_apis/public/gallery/extensionquery",
835
+ customHeaders: {
836
+ "X-Market-AccountToken": accountTokenHeader,
837
+ },
838
+ queryParams: queryValues,
839
+ body: extensionQuery
840
+ });
841
+ }
842
+
843
+ /**
844
+ * @param content - Content to upload
845
+ * @param extensionType -
846
+ * @param reCaptchaToken -
847
+ */
848
+ public async createExtension(
849
+ content: any,
850
+ extensionType?: string,
851
+ reCaptchaToken?: string
852
+ ): Promise<Gallery.PublishedExtension> {
853
+
854
+ const queryValues: any = {
855
+ extensionType: extensionType,
856
+ reCaptchaToken: reCaptchaToken
857
+ };
858
+
859
+ return this.beginRequest<Gallery.PublishedExtension>({
860
+ apiVersion: "7.2-preview.2",
861
+ method: "POST",
862
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
863
+ customHeaders: {
864
+ "Content-Type": "application/octet-stream",
865
+ },
866
+ queryParams: queryValues,
867
+ body: content,
868
+ isRawData: true
869
+ });
870
+ }
871
+
872
+ /**
873
+ * @param extensionId -
874
+ * @param version -
875
+ */
876
+ public async deleteExtensionById(
877
+ extensionId: string,
878
+ version?: string
879
+ ): Promise<void> {
880
+
881
+ const queryValues: any = {
882
+ version: version
883
+ };
884
+
885
+ return this.beginRequest<void>({
886
+ apiVersion: "7.2-preview.2",
887
+ method: "DELETE",
888
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
889
+ routeValues: {
890
+ extensionId: extensionId
891
+ },
892
+ queryParams: queryValues
893
+ });
894
+ }
895
+
896
+ /**
897
+ * @param extensionId -
898
+ * @param version -
899
+ * @param flags -
900
+ */
901
+ public async getExtensionById(
902
+ extensionId: string,
903
+ version?: string,
904
+ flags?: Gallery.ExtensionQueryFlags
905
+ ): Promise<Gallery.PublishedExtension> {
906
+
907
+ const queryValues: any = {
908
+ version: version,
909
+ flags: flags
910
+ };
911
+
912
+ return this.beginRequest<Gallery.PublishedExtension>({
913
+ apiVersion: "7.2-preview.2",
914
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
915
+ routeValues: {
916
+ extensionId: extensionId
917
+ },
918
+ queryParams: queryValues
919
+ });
920
+ }
921
+
922
+ /**
923
+ * @param extensionId -
924
+ * @param reCaptchaToken -
925
+ */
926
+ public async updateExtensionById(
927
+ extensionId: string,
928
+ reCaptchaToken?: string
929
+ ): Promise<Gallery.PublishedExtension> {
930
+
931
+ const queryValues: any = {
932
+ reCaptchaToken: reCaptchaToken
933
+ };
934
+
935
+ return this.beginRequest<Gallery.PublishedExtension>({
936
+ apiVersion: "7.2-preview.2",
937
+ method: "PUT",
938
+ routeTemplate: "_apis/gallery/extensions/{extensionId}",
939
+ routeValues: {
940
+ extensionId: extensionId
941
+ },
942
+ queryParams: queryValues
943
+ });
944
+ }
945
+
946
+ /**
947
+ * @param content - Content to upload
948
+ * @param publisherName -
949
+ * @param extensionType -
950
+ * @param reCaptchaToken -
951
+ */
952
+ public async createExtensionWithPublisher(
953
+ content: any,
954
+ publisherName: string,
955
+ extensionType?: string,
956
+ reCaptchaToken?: string
957
+ ): Promise<Gallery.PublishedExtension> {
958
+
959
+ const queryValues: any = {
960
+ extensionType: extensionType,
961
+ reCaptchaToken: reCaptchaToken
962
+ };
963
+
964
+ return this.beginRequest<Gallery.PublishedExtension>({
965
+ apiVersion: "7.2-preview.2",
966
+ method: "POST",
967
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
968
+ routeValues: {
969
+ publisherName: publisherName
970
+ },
971
+ customHeaders: {
972
+ "Content-Type": "application/octet-stream",
973
+ },
974
+ queryParams: queryValues,
975
+ body: content,
976
+ isRawData: true
977
+ });
978
+ }
979
+
980
+ /**
981
+ * @param publisherName -
982
+ * @param extensionName -
983
+ * @param version -
984
+ */
985
+ public async deleteExtension(
986
+ publisherName: string,
987
+ extensionName: string,
988
+ version?: string
989
+ ): Promise<void> {
990
+
991
+ const queryValues: any = {
992
+ version: version
993
+ };
994
+
995
+ return this.beginRequest<void>({
996
+ apiVersion: "7.2-preview.2",
997
+ method: "DELETE",
998
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
999
+ routeValues: {
1000
+ publisherName: publisherName,
1001
+ extensionName: extensionName
1002
+ },
1003
+ queryParams: queryValues
1004
+ });
1005
+ }
1006
+
1007
+ /**
1008
+ * @param publisherName -
1009
+ * @param extensionName -
1010
+ * @param version -
1011
+ * @param flags -
1012
+ * @param accountToken -
1013
+ * @param accountTokenHeader - Header to pass the account token
1014
+ */
1015
+ public async getExtension(
1016
+ publisherName: string,
1017
+ extensionName: string,
1018
+ version?: string,
1019
+ flags?: Gallery.ExtensionQueryFlags,
1020
+ accountToken?: string,
1021
+ accountTokenHeader?: String
1022
+ ): Promise<Gallery.PublishedExtension> {
1023
+
1024
+ const queryValues: any = {
1025
+ version: version,
1026
+ flags: flags,
1027
+ accountToken: accountToken
1028
+ };
1029
+
1030
+ return this.beginRequest<Gallery.PublishedExtension>({
1031
+ apiVersion: "7.2-preview.2",
1032
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
1033
+ routeValues: {
1034
+ publisherName: publisherName,
1035
+ extensionName: extensionName
1036
+ },
1037
+ customHeaders: {
1038
+ "X-Market-AccountToken": accountTokenHeader,
1039
+ },
1040
+ queryParams: queryValues
1041
+ });
1042
+ }
1043
+
1044
+ /**
1045
+ * REST endpoint to update an extension.
1046
+ *
1047
+ * @param content - Content to upload
1048
+ * @param publisherName - Name of the publisher
1049
+ * @param extensionName - Name of the extension
1050
+ * @param extensionType -
1051
+ * @param reCaptchaToken -
1052
+ * @param bypassScopeCheck - This parameter decides if the scope change check needs to be invoked or not
1053
+ */
1054
+ public async updateExtension(
1055
+ content: any,
1056
+ publisherName: string,
1057
+ extensionName: string,
1058
+ extensionType?: string,
1059
+ reCaptchaToken?: string,
1060
+ bypassScopeCheck?: boolean
1061
+ ): Promise<Gallery.PublishedExtension> {
1062
+
1063
+ const queryValues: any = {
1064
+ extensionType: extensionType,
1065
+ reCaptchaToken: reCaptchaToken,
1066
+ bypassScopeCheck: bypassScopeCheck
1067
+ };
1068
+
1069
+ return this.beginRequest<Gallery.PublishedExtension>({
1070
+ apiVersion: "7.2-preview.2",
1071
+ method: "PUT",
1072
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
1073
+ routeValues: {
1074
+ publisherName: publisherName,
1075
+ extensionName: extensionName
1076
+ },
1077
+ customHeaders: {
1078
+ "Content-Type": "application/octet-stream",
1079
+ },
1080
+ queryParams: queryValues,
1081
+ body: content,
1082
+ isRawData: true
1083
+ });
1084
+ }
1085
+
1086
+ /**
1087
+ * @param publisherName -
1088
+ * @param extensionName -
1089
+ * @param flags -
1090
+ */
1091
+ public async updateExtensionProperties(
1092
+ publisherName: string,
1093
+ extensionName: string,
1094
+ flags: Gallery.PublishedExtensionFlags
1095
+ ): Promise<Gallery.PublishedExtension> {
1096
+
1097
+ const queryValues: any = {
1098
+ flags: flags
1099
+ };
1100
+
1101
+ return this.beginRequest<Gallery.PublishedExtension>({
1102
+ apiVersion: "7.2-preview.2",
1103
+ method: "PATCH",
1104
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
1105
+ routeValues: {
1106
+ publisherName: publisherName,
1107
+ extensionName: extensionName
1108
+ },
1109
+ queryParams: queryValues
1110
+ });
1111
+ }
1112
+
1113
+ /**
1114
+ * @param publisherName -
1115
+ * @param extensionName -
1116
+ * @param hostType -
1117
+ * @param hostName -
1118
+ */
1119
+ public async shareExtensionWithHost(
1120
+ publisherName: string,
1121
+ extensionName: string,
1122
+ hostType: string,
1123
+ hostName: string
1124
+ ): Promise<void> {
1125
+
1126
+ return this.beginRequest<void>({
1127
+ apiVersion: "7.2-preview.1",
1128
+ method: "POST",
1129
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",
1130
+ routeValues: {
1131
+ publisherName: publisherName,
1132
+ extensionName: extensionName,
1133
+ hostType: hostType,
1134
+ hostName: hostName
1135
+ }
1136
+ });
1137
+ }
1138
+
1139
+ /**
1140
+ * @param publisherName -
1141
+ * @param extensionName -
1142
+ * @param hostType -
1143
+ * @param hostName -
1144
+ */
1145
+ public async unshareExtensionWithHost(
1146
+ publisherName: string,
1147
+ extensionName: string,
1148
+ hostType: string,
1149
+ hostName: string
1150
+ ): Promise<void> {
1151
+
1152
+ return this.beginRequest<void>({
1153
+ apiVersion: "7.2-preview.1",
1154
+ method: "DELETE",
1155
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",
1156
+ routeValues: {
1157
+ publisherName: publisherName,
1158
+ extensionName: extensionName,
1159
+ hostType: hostType,
1160
+ hostName: hostName
1161
+ }
1162
+ });
1163
+ }
1164
+
1165
+ /**
1166
+ * 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
1167
+ *
1168
+ * @param azureRestApiRequestModel - All the parameters are sent in the request body
1169
+ */
1170
+ public async extensionValidator(
1171
+ azureRestApiRequestModel: Gallery.AzureRestApiRequestModel
1172
+ ): Promise<void> {
1173
+
1174
+ return this.beginRequest<void>({
1175
+ apiVersion: "7.2-preview.1",
1176
+ method: "POST",
1177
+ routeTemplate: "_apis/gallery/extensionValidator",
1178
+ body: azureRestApiRequestModel
1179
+ });
1180
+ }
1181
+
1182
+ /**
1183
+ * Send Notification
1184
+ *
1185
+ * @param notificationData - Denoting the data needed to send notification
1186
+ */
1187
+ public async sendNotifications(
1188
+ notificationData: Gallery.NotificationsData
1189
+ ): Promise<void> {
1190
+
1191
+ return this.beginRequest<void>({
1192
+ apiVersion: "7.2-preview.1",
1193
+ method: "POST",
1194
+ routeTemplate: "_apis/gallery/notifications",
1195
+ body: notificationData
1196
+ });
1197
+ }
1198
+
1199
+ /**
1200
+ * This endpoint gets hit when you download a VSTS extension from the Web UI
1201
+ *
1202
+ * @param publisherName -
1203
+ * @param extensionName -
1204
+ * @param version -
1205
+ * @param accountToken -
1206
+ * @param acceptDefault -
1207
+ * @param accountTokenHeader - Header to pass the account token
1208
+ */
1209
+ public async getPackage(
1210
+ publisherName: string,
1211
+ extensionName: string,
1212
+ version: string,
1213
+ accountToken?: string,
1214
+ acceptDefault?: boolean,
1215
+ accountTokenHeader?: String
1216
+ ): Promise<ArrayBuffer> {
1217
+
1218
+ const queryValues: any = {
1219
+ accountToken: accountToken,
1220
+ acceptDefault: acceptDefault
1221
+ };
1222
+
1223
+ return this.beginRequest<ArrayBuffer>({
1224
+ apiVersion: "7.2-preview.1",
1225
+ httpResponseType: "application/octet-stream",
1226
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/package",
1227
+ routeValues: {
1228
+ publisherName: publisherName,
1229
+ extensionName: extensionName,
1230
+ version: version
1231
+ },
1232
+ customHeaders: {
1233
+ "X-Market-AccountToken": accountTokenHeader,
1234
+ },
1235
+ queryParams: queryValues
1236
+ });
1237
+ }
1238
+
1239
+ /**
1240
+ * @param publisherName -
1241
+ * @param extensionName -
1242
+ * @param version -
1243
+ * @param assetType -
1244
+ * @param assetToken -
1245
+ * @param accountToken -
1246
+ * @param acceptDefault -
1247
+ * @param accountTokenHeader - Header to pass the account token
1248
+ */
1249
+ public async getAssetWithToken(
1250
+ publisherName: string,
1251
+ extensionName: string,
1252
+ version: string,
1253
+ assetType: string,
1254
+ assetToken?: string,
1255
+ accountToken?: string,
1256
+ acceptDefault?: boolean,
1257
+ accountTokenHeader?: String
1258
+ ): Promise<ArrayBuffer> {
1259
+
1260
+ const queryValues: any = {
1261
+ accountToken: accountToken,
1262
+ acceptDefault: acceptDefault
1263
+ };
1264
+
1265
+ return this.beginRequest<ArrayBuffer>({
1266
+ apiVersion: "7.2-preview.1",
1267
+ httpResponseType: "application/octet-stream",
1268
+ routeTemplate: "_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/privateasset/{assetToken}/{*assetType}",
1269
+ routeValues: {
1270
+ publisherName: publisherName,
1271
+ extensionName: extensionName,
1272
+ version: version,
1273
+ assetType: assetType,
1274
+ assetToken: assetToken
1275
+ },
1276
+ customHeaders: {
1277
+ "X-Market-AccountToken": accountTokenHeader,
1278
+ },
1279
+ queryParams: queryValues
1280
+ });
1281
+ }
1282
+
1283
+ /**
1284
+ * Delete publisher asset like logo
1285
+ *
1286
+ * @param publisherName - Internal name of the publisher
1287
+ * @param assetType - Type of asset. Default value is 'logo'.
1288
+ */
1289
+ public async deletePublisherAsset(
1290
+ publisherName: string,
1291
+ assetType?: string
1292
+ ): Promise<void> {
1293
+
1294
+ const queryValues: any = {
1295
+ assetType: assetType
1296
+ };
1297
+
1298
+ return this.beginRequest<void>({
1299
+ apiVersion: "7.2-preview.1",
1300
+ method: "DELETE",
1301
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
1302
+ routeValues: {
1303
+ publisherName: publisherName
1304
+ },
1305
+ queryParams: queryValues
1306
+ });
1307
+ }
1308
+
1309
+ /**
1310
+ * Get publisher asset like logo as a stream
1311
+ *
1312
+ * @param publisherName - Internal name of the publisher
1313
+ * @param assetType - Type of asset. Default value is 'logo'.
1314
+ */
1315
+ public async getPublisherAsset(
1316
+ publisherName: string,
1317
+ assetType?: string
1318
+ ): Promise<ArrayBuffer> {
1319
+
1320
+ const queryValues: any = {
1321
+ assetType: assetType
1322
+ };
1323
+
1324
+ return this.beginRequest<ArrayBuffer>({
1325
+ apiVersion: "7.2-preview.1",
1326
+ httpResponseType: "application/octet-stream",
1327
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
1328
+ routeValues: {
1329
+ publisherName: publisherName
1330
+ },
1331
+ queryParams: queryValues
1332
+ });
1333
+ }
1334
+
1335
+ /**
1336
+ * Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values.
1337
+ *
1338
+ * @param content - Content to upload
1339
+ * @param publisherName - Internal name of the publisher
1340
+ * @param assetType - Type of asset. Default value is 'logo'.
1341
+ * @param fileName - Header to pass the filename of the uploaded data
1342
+ */
1343
+ public async updatePublisherAsset(
1344
+ content: any,
1345
+ publisherName: string,
1346
+ assetType?: string,
1347
+ fileName?: String
1348
+ ): Promise<{ [key: string] : string; }> {
1349
+
1350
+ const queryValues: any = {
1351
+ assetType: assetType
1352
+ };
1353
+
1354
+ return this.beginRequest<{ [key: string] : string; }>({
1355
+ apiVersion: "7.2-preview.1",
1356
+ method: "PUT",
1357
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
1358
+ routeValues: {
1359
+ publisherName: publisherName
1360
+ },
1361
+ customHeaders: {
1362
+ "Content-Type": "application/octet-stream",
1363
+ "X-Market-UploadFileName": fileName,
1364
+ },
1365
+ queryParams: queryValues,
1366
+ body: content,
1367
+ isRawData: true
1368
+ });
1369
+ }
1370
+
1371
+ /**
1372
+ * @param publisherName -
1373
+ */
1374
+ public async fetchDomainToken(
1375
+ publisherName: string
1376
+ ): Promise<string> {
1377
+
1378
+ return this.beginRequest<string>({
1379
+ apiVersion: "7.2-preview.1",
1380
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/verify/token",
1381
+ routeValues: {
1382
+ publisherName: publisherName
1383
+ }
1384
+ });
1385
+ }
1386
+
1387
+ /**
1388
+ * @param publisherName -
1389
+ */
1390
+ public async verifyDomainToken(
1391
+ publisherName: string
1392
+ ): Promise<void> {
1393
+
1394
+ return this.beginRequest<void>({
1395
+ apiVersion: "7.2-preview.1",
1396
+ method: "PUT",
1397
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/verify/token",
1398
+ routeValues: {
1399
+ publisherName: publisherName
1400
+ }
1401
+ });
1402
+ }
1403
+
1404
+ /**
1405
+ * @param publisherQuery -
1406
+ */
1407
+ public async queryPublishers(
1408
+ publisherQuery: Gallery.PublisherQuery
1409
+ ): Promise<Gallery.PublisherQueryResult> {
1410
+
1411
+ return this.beginRequest<Gallery.PublisherQueryResult>({
1412
+ apiVersion: "7.2-preview.1",
1413
+ method: "POST",
1414
+ routeTemplate: "_apis/public/gallery/publisherquery",
1415
+ body: publisherQuery
1416
+ });
1417
+ }
1418
+
1419
+ /**
1420
+ * @param publisher -
1421
+ */
1422
+ public async createPublisher(
1423
+ publisher: Gallery.Publisher
1424
+ ): Promise<Gallery.Publisher> {
1425
+
1426
+ return this.beginRequest<Gallery.Publisher>({
1427
+ apiVersion: "7.2-preview.1",
1428
+ method: "POST",
1429
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1430
+ body: publisher
1431
+ });
1432
+ }
1433
+
1434
+ /**
1435
+ * @param publisherName -
1436
+ */
1437
+ public async deletePublisher(
1438
+ publisherName: string
1439
+ ): Promise<void> {
1440
+
1441
+ return this.beginRequest<void>({
1442
+ apiVersion: "7.2-preview.1",
1443
+ method: "DELETE",
1444
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1445
+ routeValues: {
1446
+ publisherName: publisherName
1447
+ }
1448
+ });
1449
+ }
1450
+
1451
+ /**
1452
+ * @param publisherName -
1453
+ * @param flags -
1454
+ */
1455
+ public async getPublisher(
1456
+ publisherName: string,
1457
+ flags?: number
1458
+ ): Promise<Gallery.Publisher> {
1459
+
1460
+ const queryValues: any = {
1461
+ flags: flags
1462
+ };
1463
+
1464
+ return this.beginRequest<Gallery.Publisher>({
1465
+ apiVersion: "7.2-preview.1",
1466
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1467
+ routeValues: {
1468
+ publisherName: publisherName
1469
+ },
1470
+ queryParams: queryValues
1471
+ });
1472
+ }
1473
+
1474
+ /**
1475
+ * @param publisher -
1476
+ * @param publisherName -
1477
+ */
1478
+ public async updatePublisher(
1479
+ publisher: Gallery.Publisher,
1480
+ publisherName: string
1481
+ ): Promise<Gallery.Publisher> {
1482
+
1483
+ return this.beginRequest<Gallery.Publisher>({
1484
+ apiVersion: "7.2-preview.1",
1485
+ method: "PUT",
1486
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1487
+ routeValues: {
1488
+ publisherName: publisherName
1489
+ },
1490
+ body: publisher
1491
+ });
1492
+ }
1493
+
1494
+ /**
1495
+ * 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.
1496
+ *
1497
+ * @param roleAssignments - List of user identifiers(email address) and role to be added. Currently only one entry is supported.
1498
+ * @param publisherName - The name/id of publisher to which users have to be added
1499
+ * @param limitToCallerIdentityDomain - Should cross tenant addtions be allowed or not.
1500
+ */
1501
+ public async updatePublisherMembers(
1502
+ roleAssignments: Gallery.PublisherUserRoleAssignmentRef[],
1503
+ publisherName: string,
1504
+ limitToCallerIdentityDomain?: boolean
1505
+ ): Promise<Gallery.PublisherRoleAssignment[]> {
1506
+
1507
+ const queryValues: any = {
1508
+ limitToCallerIdentityDomain: limitToCallerIdentityDomain
1509
+ };
1510
+
1511
+ return this.beginRequest<Gallery.PublisherRoleAssignment[]>({
1512
+ apiVersion: "7.2-preview.1",
1513
+ method: "POST",
1514
+ routeTemplate: "_apis/gallery/publishers/{publisherName}",
1515
+ routeValues: {
1516
+ publisherName: publisherName
1517
+ },
1518
+ queryParams: queryValues,
1519
+ body: roleAssignments
1520
+ });
1521
+ }
1522
+
1523
+ /**
1524
+ * @param content - Content to upload
1525
+ * @param publisherName -
1526
+ * @param extensionName -
1527
+ * @param extensionType -
1528
+ * @param reCaptchaToken -
1529
+ * @param bypassScopeCheck -
1530
+ */
1531
+ public async publishExtensionWithPublisherSignature(
1532
+ content: any,
1533
+ publisherName: string,
1534
+ extensionName: string,
1535
+ extensionType?: string,
1536
+ reCaptchaToken?: string,
1537
+ bypassScopeCheck?: boolean
1538
+ ): Promise<Gallery.PublishedExtension> {
1539
+
1540
+ const queryValues: any = {
1541
+ extensionType: extensionType,
1542
+ reCaptchaToken: reCaptchaToken,
1543
+ bypassScopeCheck: bypassScopeCheck
1544
+ };
1545
+
1546
+ return this.beginRequest<Gallery.PublishedExtension>({
1547
+ apiVersion: "7.2-preview.1",
1548
+ method: "PUT",
1549
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/publishersignedextension/{extensionName}",
1550
+ routeValues: {
1551
+ publisherName: publisherName,
1552
+ extensionName: extensionName
1553
+ },
1554
+ customHeaders: {
1555
+ "Content-Type": "multipart/related",
1556
+ },
1557
+ queryParams: queryValues,
1558
+ body: content,
1559
+ isRawData: true
1560
+ });
1561
+ }
1562
+
1563
+ /**
1564
+ * @param publisherName -
1565
+ */
1566
+ public async getPublisherWithoutToken(
1567
+ publisherName: string
1568
+ ): Promise<Gallery.Publisher> {
1569
+
1570
+ return this.beginRequest<Gallery.Publisher>({
1571
+ apiVersion: "7.2-preview.1",
1572
+ routeTemplate: "_apis/public/gallery/publisherWithoutToken/{publisherName}",
1573
+ routeValues: {
1574
+ publisherName: publisherName
1575
+ }
1576
+ });
1577
+ }
1578
+
1579
+ /**
1580
+ * Returns a list of questions with their responses associated with an extension.
1581
+ *
1582
+ * @param publisherName - Name of the publisher who published the extension.
1583
+ * @param extensionName - Name of the extension.
1584
+ * @param count - Number of questions to retrieve (defaults to 10).
1585
+ * @param page - Page number from which set of questions are to be retrieved.
1586
+ * @param afterDate - If provided, results questions are returned which were posted after this date
1587
+ */
1588
+ public async getQuestions(
1589
+ publisherName: string,
1590
+ extensionName: string,
1591
+ count?: number,
1592
+ page?: number,
1593
+ afterDate?: Date
1594
+ ): Promise<Gallery.QuestionsResult> {
1595
+
1596
+ const queryValues: any = {
1597
+ count: count,
1598
+ page: page,
1599
+ afterDate: afterDate
1600
+ };
1601
+
1602
+ return this.beginRequest<Gallery.QuestionsResult>({
1603
+ apiVersion: "7.2-preview.1",
1604
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/qna",
1605
+ routeValues: {
1606
+ publisherName: publisherName,
1607
+ extensionName: extensionName
1608
+ },
1609
+ queryParams: queryValues
1610
+ });
1611
+ }
1612
+
1613
+ /**
1614
+ * Flags a concern with an existing question for an extension.
1615
+ *
1616
+ * @param concern - User reported concern with a question for the extension.
1617
+ * @param pubName - Name of the publisher who published the extension.
1618
+ * @param extName - Name of the extension.
1619
+ * @param questionId - Identifier of the question to be updated for the extension.
1620
+ */
1621
+ public async reportQuestion(
1622
+ concern: Gallery.Concern,
1623
+ pubName: string,
1624
+ extName: string,
1625
+ questionId: number
1626
+ ): Promise<Gallery.Concern> {
1627
+
1628
+ return this.beginRequest<Gallery.Concern>({
1629
+ apiVersion: "7.2-preview.1",
1630
+ method: "POST",
1631
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/qna/{questionId}/concern",
1632
+ routeValues: {
1633
+ pubName: pubName,
1634
+ extName: extName,
1635
+ questionId: questionId
1636
+ },
1637
+ body: concern
1638
+ });
1639
+ }
1640
+
1641
+ /**
1642
+ * Creates a new question for an extension.
1643
+ *
1644
+ * @param question - Question to be created for the extension.
1645
+ * @param publisherName - Name of the publisher who published the extension.
1646
+ * @param extensionName - Name of the extension.
1647
+ */
1648
+ public async createQuestion(
1649
+ question: Gallery.Question,
1650
+ publisherName: string,
1651
+ extensionName: string
1652
+ ): Promise<Gallery.Question> {
1653
+
1654
+ return this.beginRequest<Gallery.Question>({
1655
+ apiVersion: "7.2-preview.1",
1656
+ method: "POST",
1657
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
1658
+ routeValues: {
1659
+ publisherName: publisherName,
1660
+ extensionName: extensionName
1661
+ },
1662
+ body: question
1663
+ });
1664
+ }
1665
+
1666
+ /**
1667
+ * Deletes an existing question and all its associated responses for an extension. (soft delete)
1668
+ *
1669
+ * @param publisherName - Name of the publisher who published the extension.
1670
+ * @param extensionName - Name of the extension.
1671
+ * @param questionId - Identifier of the question to be deleted for the extension.
1672
+ */
1673
+ public async deleteQuestion(
1674
+ publisherName: string,
1675
+ extensionName: string,
1676
+ questionId: number
1677
+ ): Promise<void> {
1678
+
1679
+ return this.beginRequest<void>({
1680
+ apiVersion: "7.2-preview.1",
1681
+ method: "DELETE",
1682
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
1683
+ routeValues: {
1684
+ publisherName: publisherName,
1685
+ extensionName: extensionName,
1686
+ questionId: questionId
1687
+ }
1688
+ });
1689
+ }
1690
+
1691
+ /**
1692
+ * Updates an existing question for an extension.
1693
+ *
1694
+ * @param question - Updated question to be set for the extension.
1695
+ * @param publisherName - Name of the publisher who published the extension.
1696
+ * @param extensionName - Name of the extension.
1697
+ * @param questionId - Identifier of the question to be updated for the extension.
1698
+ */
1699
+ public async updateQuestion(
1700
+ question: Gallery.Question,
1701
+ publisherName: string,
1702
+ extensionName: string,
1703
+ questionId: number
1704
+ ): Promise<Gallery.Question> {
1705
+
1706
+ return this.beginRequest<Gallery.Question>({
1707
+ apiVersion: "7.2-preview.1",
1708
+ method: "PATCH",
1709
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
1710
+ routeValues: {
1711
+ publisherName: publisherName,
1712
+ extensionName: extensionName,
1713
+ questionId: questionId
1714
+ },
1715
+ body: question
1716
+ });
1717
+ }
1718
+
1719
+ /**
1720
+ * Creates a new response for a given question for an extension.
1721
+ *
1722
+ * @param response - Response to be created for the extension.
1723
+ * @param publisherName - Name of the publisher who published the extension.
1724
+ * @param extensionName - Name of the extension.
1725
+ * @param questionId - Identifier of the question for which response is to be created for the extension.
1726
+ */
1727
+ public async createResponse(
1728
+ response: Gallery.Response,
1729
+ publisherName: string,
1730
+ extensionName: string,
1731
+ questionId: number
1732
+ ): Promise<Gallery.Response> {
1733
+
1734
+ return this.beginRequest<Gallery.Response>({
1735
+ apiVersion: "7.2-preview.1",
1736
+ method: "POST",
1737
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
1738
+ routeValues: {
1739
+ publisherName: publisherName,
1740
+ extensionName: extensionName,
1741
+ questionId: questionId
1742
+ },
1743
+ body: response
1744
+ });
1745
+ }
1746
+
1747
+ /**
1748
+ * Deletes a response for an extension. (soft delete)
1749
+ *
1750
+ * @param publisherName - Name of the publisher who published the extension.
1751
+ * @param extensionName - Name of the extension.
1752
+ * @param questionId - Identifies the question whose response is to be deleted.
1753
+ * @param responseId - Identifies the response to be deleted.
1754
+ */
1755
+ public async deleteResponse(
1756
+ publisherName: string,
1757
+ extensionName: string,
1758
+ questionId: number,
1759
+ responseId: number
1760
+ ): Promise<void> {
1761
+
1762
+ return this.beginRequest<void>({
1763
+ apiVersion: "7.2-preview.1",
1764
+ method: "DELETE",
1765
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
1766
+ routeValues: {
1767
+ publisherName: publisherName,
1768
+ extensionName: extensionName,
1769
+ questionId: questionId,
1770
+ responseId: responseId
1771
+ }
1772
+ });
1773
+ }
1774
+
1775
+ /**
1776
+ * Updates an existing response for a given question for an extension.
1777
+ *
1778
+ * @param response - Updated response to be set for the extension.
1779
+ * @param publisherName - Name of the publisher who published the extension.
1780
+ * @param extensionName - Name of the extension.
1781
+ * @param questionId - Identifier of the question for which response is to be updated for the extension.
1782
+ * @param responseId - Identifier of the response which has to be updated.
1783
+ */
1784
+ public async updateResponse(
1785
+ response: Gallery.Response,
1786
+ publisherName: string,
1787
+ extensionName: string,
1788
+ questionId: number,
1789
+ responseId: number
1790
+ ): Promise<Gallery.Response> {
1791
+
1792
+ return this.beginRequest<Gallery.Response>({
1793
+ apiVersion: "7.2-preview.1",
1794
+ method: "PATCH",
1795
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
1796
+ routeValues: {
1797
+ publisherName: publisherName,
1798
+ extensionName: extensionName,
1799
+ questionId: questionId,
1800
+ responseId: responseId
1801
+ },
1802
+ body: response
1803
+ });
1804
+ }
1805
+
1806
+ /**
1807
+ * Returns extension reports
1808
+ *
1809
+ * @param publisherName - Name of the publisher who published the extension
1810
+ * @param extensionName - Name of the extension
1811
+ * @param days - Last n days report. If afterDate and days are specified, days will take priority
1812
+ * @param count - Number of events to be returned
1813
+ * @param afterDate - Use if you want to fetch events newer than the specified date
1814
+ */
1815
+ public async getExtensionReports(
1816
+ publisherName: string,
1817
+ extensionName: string,
1818
+ days?: number,
1819
+ count?: number,
1820
+ afterDate?: Date
1821
+ ): Promise<any> {
1822
+
1823
+ const queryValues: any = {
1824
+ days: days,
1825
+ count: count,
1826
+ afterDate: afterDate
1827
+ };
1828
+
1829
+ return this.beginRequest<any>({
1830
+ apiVersion: "7.2-preview.1",
1831
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/reports",
1832
+ routeValues: {
1833
+ publisherName: publisherName,
1834
+ extensionName: extensionName
1835
+ },
1836
+ queryParams: queryValues
1837
+ });
1838
+ }
1839
+
1840
+ /**
1841
+ * Returns a list of reviews associated with an extension
1842
+ *
1843
+ * @param publisherName - Name of the publisher who published the extension
1844
+ * @param extensionName - Name of the extension
1845
+ * @param count - Number of reviews to retrieve (defaults to 5)
1846
+ * @param filterOptions - FilterOptions to filter out empty reviews etcetera, defaults to none
1847
+ * @param beforeDate - Use if you want to fetch reviews older than the specified date, defaults to null
1848
+ * @param afterDate - Use if you want to fetch reviews newer than the specified date, defaults to null
1849
+ */
1850
+ public async getReviews(
1851
+ publisherName: string,
1852
+ extensionName: string,
1853
+ count?: number,
1854
+ filterOptions?: Gallery.ReviewFilterOptions,
1855
+ beforeDate?: Date,
1856
+ afterDate?: Date
1857
+ ): Promise<Gallery.ReviewsResult> {
1858
+
1859
+ const queryValues: any = {
1860
+ count: count,
1861
+ filterOptions: filterOptions,
1862
+ beforeDate: beforeDate,
1863
+ afterDate: afterDate
1864
+ };
1865
+
1866
+ return this.beginRequest<Gallery.ReviewsResult>({
1867
+ apiVersion: "7.2-preview.1",
1868
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/reviews",
1869
+ routeValues: {
1870
+ publisherName: publisherName,
1871
+ extensionName: extensionName
1872
+ },
1873
+ queryParams: queryValues
1874
+ });
1875
+ }
1876
+
1877
+ /**
1878
+ * Returns a summary of the reviews
1879
+ *
1880
+ * @param pubName - Name of the publisher who published the extension
1881
+ * @param extName - Name of the extension
1882
+ * @param beforeDate - Use if you want to fetch summary of reviews older than the specified date, defaults to null
1883
+ * @param afterDate - Use if you want to fetch summary of reviews newer than the specified date, defaults to null
1884
+ */
1885
+ public async getReviewsSummary(
1886
+ pubName: string,
1887
+ extName: string,
1888
+ beforeDate?: Date,
1889
+ afterDate?: Date
1890
+ ): Promise<Gallery.ReviewSummary> {
1891
+
1892
+ const queryValues: any = {
1893
+ beforeDate: beforeDate,
1894
+ afterDate: afterDate
1895
+ };
1896
+
1897
+ return this.beginRequest<Gallery.ReviewSummary>({
1898
+ apiVersion: "7.2-preview.1",
1899
+ routeTemplate: "_apis/public/gallery/publishers/{pubName}/extensions/{extName}/reviews/summary",
1900
+ routeValues: {
1901
+ pubName: pubName,
1902
+ extName: extName
1903
+ },
1904
+ queryParams: queryValues
1905
+ });
1906
+ }
1907
+
1908
+ /**
1909
+ * Creates a new review for an extension
1910
+ *
1911
+ * @param review - Review to be created for the extension
1912
+ * @param pubName - Name of the publisher who published the extension
1913
+ * @param extName - Name of the extension
1914
+ */
1915
+ public async createReview(
1916
+ review: Gallery.Review,
1917
+ pubName: string,
1918
+ extName: string
1919
+ ): Promise<Gallery.Review> {
1920
+
1921
+ return this.beginRequest<Gallery.Review>({
1922
+ apiVersion: "7.2-preview.1",
1923
+ method: "POST",
1924
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
1925
+ routeValues: {
1926
+ pubName: pubName,
1927
+ extName: extName
1928
+ },
1929
+ body: review
1930
+ });
1931
+ }
1932
+
1933
+ /**
1934
+ * Deletes a review
1935
+ *
1936
+ * @param pubName - Name of the publisher who published the extension
1937
+ * @param extName - Name of the extension
1938
+ * @param reviewId - Id of the review which needs to be updated
1939
+ */
1940
+ public async deleteReview(
1941
+ pubName: string,
1942
+ extName: string,
1943
+ reviewId: number
1944
+ ): Promise<void> {
1945
+
1946
+ return this.beginRequest<void>({
1947
+ apiVersion: "7.2-preview.1",
1948
+ method: "DELETE",
1949
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
1950
+ routeValues: {
1951
+ pubName: pubName,
1952
+ extName: extName,
1953
+ reviewId: reviewId
1954
+ }
1955
+ });
1956
+ }
1957
+
1958
+ /**
1959
+ * Updates or Flags a review
1960
+ *
1961
+ * @param reviewPatch - ReviewPatch object which contains the changes to be applied to the review
1962
+ * @param pubName - Name of the publisher who published the extension
1963
+ * @param extName - Name of the extension
1964
+ * @param reviewId - Id of the review which needs to be updated
1965
+ */
1966
+ public async updateReview(
1967
+ reviewPatch: Gallery.ReviewPatch,
1968
+ pubName: string,
1969
+ extName: string,
1970
+ reviewId: number
1971
+ ): Promise<Gallery.ReviewPatch> {
1972
+
1973
+ return this.beginRequest<Gallery.ReviewPatch>({
1974
+ apiVersion: "7.2-preview.1",
1975
+ method: "PATCH",
1976
+ routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
1977
+ routeValues: {
1978
+ pubName: pubName,
1979
+ extName: extName,
1980
+ reviewId: reviewId
1981
+ },
1982
+ body: reviewPatch
1983
+ });
1984
+ }
1985
+
1986
+ /**
1987
+ * @param category -
1988
+ */
1989
+ public async createCategory(
1990
+ category: Gallery.ExtensionCategory
1991
+ ): Promise<Gallery.ExtensionCategory> {
1992
+
1993
+ return this.beginRequest<Gallery.ExtensionCategory>({
1994
+ apiVersion: "7.2-preview.1",
1995
+ method: "POST",
1996
+ routeTemplate: "_apis/gallery/categories",
1997
+ body: category
1998
+ });
1999
+ }
2000
+
2001
+ /**
2002
+ * Get all setting entries for the given user/all-users scope
2003
+ *
2004
+ * @param userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
2005
+ * @param key - Optional key under which to filter all the entries
2006
+ */
2007
+ public async getGalleryUserSettings(
2008
+ userScope: string,
2009
+ key?: string
2010
+ ): Promise<{ [key: string] : any; }> {
2011
+
2012
+ return this.beginRequest<{ [key: string] : any; }>({
2013
+ apiVersion: "7.2-preview.1",
2014
+ routeTemplate: "_apis/gallery/settings/{userScope}/{*key}",
2015
+ routeValues: {
2016
+ userScope: userScope,
2017
+ key: key
2018
+ }
2019
+ });
2020
+ }
2021
+
2022
+ /**
2023
+ * Set all setting entries for the given user/all-users scope
2024
+ *
2025
+ * @param entries - A key-value pair of all settings that need to be set
2026
+ * @param userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
2027
+ */
2028
+ public async setGalleryUserSettings(
2029
+ entries: { [key: string] : any; },
2030
+ userScope: string
2031
+ ): Promise<void> {
2032
+
2033
+ return this.beginRequest<void>({
2034
+ apiVersion: "7.2-preview.1",
2035
+ method: "PATCH",
2036
+ routeTemplate: "_apis/gallery/settings/{userScope}/{*key}",
2037
+ routeValues: {
2038
+ userScope: userScope
2039
+ },
2040
+ body: entries
2041
+ });
2042
+ }
2043
+
2044
+ /**
2045
+ * @param keyType -
2046
+ * @param expireCurrentSeconds -
2047
+ */
2048
+ public async generateKey(
2049
+ keyType: string,
2050
+ expireCurrentSeconds?: number
2051
+ ): Promise<void> {
2052
+
2053
+ const queryValues: any = {
2054
+ expireCurrentSeconds: expireCurrentSeconds
2055
+ };
2056
+
2057
+ return this.beginRequest<void>({
2058
+ apiVersion: "7.2-preview.1",
2059
+ method: "POST",
2060
+ routeTemplate: "_apis/gallery/signingkey/{keyType}",
2061
+ routeValues: {
2062
+ keyType: keyType
2063
+ },
2064
+ queryParams: queryValues
2065
+ });
2066
+ }
2067
+
2068
+ /**
2069
+ * @param keyType -
2070
+ */
2071
+ public async getSigningKey(
2072
+ keyType: string
2073
+ ): Promise<string> {
2074
+
2075
+ return this.beginRequest<string>({
2076
+ apiVersion: "7.2-preview.1",
2077
+ routeTemplate: "_apis/gallery/signingkey/{keyType}",
2078
+ routeValues: {
2079
+ keyType: keyType
2080
+ }
2081
+ });
2082
+ }
2083
+
2084
+ /**
2085
+ * @param extensionStatisticsUpdate -
2086
+ * @param publisherName -
2087
+ * @param extensionName -
2088
+ */
2089
+ public async updateExtensionStatistics(
2090
+ extensionStatisticsUpdate: Gallery.ExtensionStatisticUpdate,
2091
+ publisherName: string,
2092
+ extensionName: string
2093
+ ): Promise<void> {
2094
+
2095
+ return this.beginRequest<void>({
2096
+ apiVersion: "7.2-preview.1",
2097
+ method: "PATCH",
2098
+ routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/statistics",
2099
+ routeValues: {
2100
+ publisherName: publisherName,
2101
+ extensionName: extensionName
2102
+ },
2103
+ body: extensionStatisticsUpdate
2104
+ });
2105
+ }
2106
+
2107
+ /**
2108
+ * @param publisherName -
2109
+ * @param extensionName -
2110
+ * @param days -
2111
+ * @param aggregate -
2112
+ * @param afterDate -
2113
+ */
2114
+ public async getExtensionDailyStats(
2115
+ publisherName: string,
2116
+ extensionName: string,
2117
+ days?: number,
2118
+ aggregate?: Gallery.ExtensionStatsAggregateType,
2119
+ afterDate?: Date
2120
+ ): Promise<Gallery.ExtensionDailyStats> {
2121
+
2122
+ const queryValues: any = {
2123
+ days: days,
2124
+ aggregate: aggregate,
2125
+ afterDate: afterDate
2126
+ };
2127
+
2128
+ return this.beginRequest<Gallery.ExtensionDailyStats>({
2129
+ apiVersion: "7.2-preview.1",
2130
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/stats",
2131
+ routeValues: {
2132
+ publisherName: publisherName,
2133
+ extensionName: extensionName
2134
+ },
2135
+ queryParams: queryValues
2136
+ });
2137
+ }
2138
+
2139
+ /**
2140
+ * 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.
2141
+ *
2142
+ * @param publisherName - Name of the publisher
2143
+ * @param extensionName - Name of the extension
2144
+ * @param version - Version of the extension
2145
+ */
2146
+ public async getExtensionDailyStatsAnonymous(
2147
+ publisherName: string,
2148
+ extensionName: string,
2149
+ version: string
2150
+ ): Promise<Gallery.ExtensionDailyStats> {
2151
+
2152
+ return this.beginRequest<Gallery.ExtensionDailyStats>({
2153
+ apiVersion: "7.2-preview.1",
2154
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",
2155
+ routeValues: {
2156
+ publisherName: publisherName,
2157
+ extensionName: extensionName,
2158
+ version: version
2159
+ }
2160
+ });
2161
+ }
2162
+
2163
+ /**
2164
+ * Increments a daily statistic associated with the extension
2165
+ *
2166
+ * @param publisherName - Name of the publisher
2167
+ * @param extensionName - Name of the extension
2168
+ * @param version - Version of the extension
2169
+ * @param statType - Type of stat to increment
2170
+ * @param targetPlatform -
2171
+ */
2172
+ public async incrementExtensionDailyStat(
2173
+ publisherName: string,
2174
+ extensionName: string,
2175
+ version: string,
2176
+ statType: string,
2177
+ targetPlatform?: string
2178
+ ): Promise<void> {
2179
+
2180
+ const queryValues: any = {
2181
+ statType: statType,
2182
+ targetPlatform: targetPlatform
2183
+ };
2184
+
2185
+ return this.beginRequest<void>({
2186
+ apiVersion: "7.2-preview.1",
2187
+ method: "POST",
2188
+ routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",
2189
+ routeValues: {
2190
+ publisherName: publisherName,
2191
+ extensionName: extensionName,
2192
+ version: version
2193
+ },
2194
+ queryParams: queryValues
2195
+ });
2196
+ }
2197
+
2198
+ /**
2199
+ * @param publisherName -
2200
+ * @param extensionName -
2201
+ * @param version -
2202
+ * @param targetPlatform -
2203
+ */
2204
+ public async getVerificationLog(
2205
+ publisherName: string,
2206
+ extensionName: string,
2207
+ version: string,
2208
+ targetPlatform?: string
2209
+ ): Promise<ArrayBuffer> {
2210
+
2211
+ const queryValues: any = {
2212
+ targetPlatform: targetPlatform
2213
+ };
2214
+
2215
+ return this.beginRequest<ArrayBuffer>({
2216
+ apiVersion: "7.2-preview.1",
2217
+ httpResponseType: "application/octet-stream",
2218
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/verificationlog",
2219
+ routeValues: {
2220
+ publisherName: publisherName,
2221
+ extensionName: extensionName,
2222
+ version: version
2223
+ },
2224
+ queryParams: queryValues
2225
+ });
2226
+ }
2227
+
2228
+ /**
2229
+ * @param itemName -
2230
+ * @param version -
2231
+ * @param statType -
2232
+ */
2233
+ public async updateVSCodeWebExtensionStatistics(
2234
+ itemName: string,
2235
+ version: string,
2236
+ statType: Gallery.VSCodeWebExtensionStatisicsType
2237
+ ): Promise<void> {
2238
+
2239
+ return this.beginRequest<void>({
2240
+ apiVersion: "7.2-preview.1",
2241
+ method: "POST",
2242
+ routeTemplate: "_apis/public/gallery/itemName/{itemName}/version/{version}/statType/{statType}/vscodewebextension",
2243
+ routeValues: {
2244
+ itemName: itemName,
2245
+ version: version,
2246
+ statType: statType
2247
+ }
2248
+ });
2249
+ }
2250
+
2251
+ }