azure-devops-extension-api 4.248.0 → 4.250.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 (562) hide show
  1. package/{bin/Alert → Alert}/Alert.d.ts +12 -2
  2. package/{bin/Alert → Alert}/Alert.js +11 -0
  3. package/Alert/Alert.min.js +1 -0
  4. package/{bin/Alert → Alert}/AlertClient.d.ts +2 -1
  5. package/{bin/Alert → Alert}/AlertClient.js +3 -1
  6. package/Alert/AlertClient.min.js +1 -0
  7. package/{bin/Gallery → Gallery}/GalleryClient.d.ts +7 -5
  8. package/{bin/Gallery → Gallery}/GalleryClient.js +20 -19
  9. package/Gallery/GalleryClient.min.js +1 -0
  10. package/{bin/Management → Management}/Management.d.ts +4 -0
  11. package/{bin/Release → Release}/ReleaseClient.d.ts +4 -2
  12. package/{bin/Release → Release}/ReleaseClient.js +8 -4
  13. package/Release/ReleaseClient.min.js +1 -0
  14. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.d.ts +4 -0
  15. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.d.ts +3 -2
  16. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.js +5 -3
  17. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
  18. package/{bin/TestResults → TestResults}/TestResultsClient.d.ts +8 -0
  19. package/{bin/TestResults → TestResults}/TestResultsClient.js +28 -9
  20. package/{bin/TestResults → TestResults}/TestResultsClient.min.js +1 -1
  21. package/package.json +1 -1
  22. package/SECURITY.md +0 -41
  23. package/bin/Alert/Alert.min.js +0 -1
  24. package/bin/Alert/AlertClient.min.js +0 -1
  25. package/bin/Gallery/GalleryClient.min.js +0 -1
  26. package/bin/LICENSE +0 -21
  27. package/bin/README.md +0 -2
  28. package/bin/Release/ReleaseClient.min.js +0 -1
  29. package/bin/ServiceEndpoint/ServiceEndpointClient.min.js +0 -1
  30. package/bin/package.json +0 -37
  31. package/buildpackage.js +0 -80
  32. package/src/Accounts/Accounts.ts +0 -134
  33. package/src/Accounts/AccountsClient.ts +0 -83
  34. package/src/Accounts/index.ts +0 -2
  35. package/src/AdvancedSecurity.Reporting/Reporting.ts +0 -180
  36. package/src/AdvancedSecurity.Reporting/ReportingClient.ts +0 -47
  37. package/src/Alert/Alert.ts +0 -1037
  38. package/src/Alert/AlertClient.ts +0 -330
  39. package/src/Boards/Boards.ts +0 -684
  40. package/src/Boards/BoardsClient.ts +0 -593
  41. package/src/Boards/index.ts +0 -2
  42. package/src/Build/Build.ts +0 -3416
  43. package/src/Build/BuildClient.ts +0 -2740
  44. package/src/Build/BuildServices.ts +0 -39
  45. package/src/Build/index.ts +0 -3
  46. package/src/Comments/Comments.ts +0 -330
  47. package/src/Comments/index.ts +0 -1
  48. package/src/Common/Client.ts +0 -37
  49. package/src/Common/CommonServices.ts +0 -853
  50. package/src/Common/Context.d.ts +0 -46
  51. package/src/Common/Fetch.ts +0 -239
  52. package/src/Common/RestClientBase.ts +0 -186
  53. package/src/Common/System.ts +0 -36
  54. package/src/Common/SystemData.ts +0 -135
  55. package/src/Common/Util/Serialization.ts +0 -59
  56. package/src/Common/Util/Url.ts +0 -773
  57. package/src/Common/index.ts +0 -3
  58. package/src/Contributions/Contributions.ts +0 -708
  59. package/src/Contributions/ContributionsClient.ts +0 -109
  60. package/src/Contributions/index.ts +0 -2
  61. package/src/Core/Core.ts +0 -579
  62. package/src/Core/CoreClient.ts +0 -765
  63. package/src/Core/index.ts +0 -2
  64. package/src/Dashboard/Dashboard.ts +0 -419
  65. package/src/Dashboard/DashboardClient.ts +0 -370
  66. package/src/Dashboard/WidgetConfigHelpers.ts +0 -43
  67. package/src/Dashboard/WidgetContracts.ts +0 -226
  68. package/src/Dashboard/WidgetHelpers.ts +0 -145
  69. package/src/Dashboard/index.ts +0 -5
  70. package/src/DistributedTaskCommon/DistributedTaskCommon.ts +0 -108
  71. package/src/DistributedTaskCommon/index.ts +0 -1
  72. package/src/ExtensionManagement/ExtensionManagement.ts +0 -1205
  73. package/src/ExtensionManagement/ExtensionManagementClient.ts +0 -646
  74. package/src/ExtensionManagement/index.ts +0 -2
  75. package/src/Favorite/Favorite.ts +0 -136
  76. package/src/Favorite/FavoriteClient.ts +0 -301
  77. package/src/FeatureAvailability/FeatureAvailability.ts +0 -20
  78. package/src/FeatureAvailability/FeatureAvailabilityClient.ts +0 -153
  79. package/src/FeatureAvailability/index.ts +0 -2
  80. package/src/FeatureManagement/FeatureManagement.ts +0 -166
  81. package/src/FeatureManagement/FeatureManagementClient.ts +0 -246
  82. package/src/FeatureManagement/index.ts +0 -2
  83. package/src/FileContainer/FileContainer.ts +0 -205
  84. package/src/FileContainer/FileContainerClient.ts +0 -154
  85. package/src/FileContainer/index.ts +0 -2
  86. package/src/FormInput/FormInput.ts +0 -288
  87. package/src/FormInput/index.ts +0 -1
  88. package/src/Gallery/Gallery.ts +0 -1977
  89. package/src/Gallery/GalleryClient.ts +0 -2251
  90. package/src/Gallery/index.ts +0 -2
  91. package/src/Git/CodeEditorTypes.ts +0 -335
  92. package/src/Git/Git.ts +0 -4062
  93. package/src/Git/GitClient.ts +0 -4750
  94. package/src/Git/GitServices.ts +0 -18
  95. package/src/Git/index.ts +0 -4
  96. package/src/Graph/Graph.ts +0 -572
  97. package/src/Graph/GraphClient.ts +0 -846
  98. package/src/Graph/index.ts +0 -2
  99. package/src/Identities/Identities.ts +0 -261
  100. package/src/Identities/IdentityProvider.ts +0 -90
  101. package/src/Identities/IdentityService.ts +0 -89
  102. package/src/Identities/index.ts +0 -3
  103. package/src/Locations/Locations.ts +0 -165
  104. package/src/Locations/LocationsClient.ts +0 -220
  105. package/src/Locations/index.ts +0 -2
  106. package/src/Management/Management.ts +0 -176
  107. package/src/Management/ManagementClient.ts +0 -348
  108. package/src/Notification/Notification.ts +0 -1460
  109. package/src/Notification/NotificationClient.ts +0 -477
  110. package/src/Notification/index.ts +0 -2
  111. package/src/Operations/Operations.ts +0 -86
  112. package/src/Operations/OperationsClient.ts +0 -42
  113. package/src/Operations/index.ts +0 -2
  114. package/src/Pipelines/Pipelines.ts +0 -354
  115. package/src/Pipelines/PipelinesClient.ts +0 -306
  116. package/src/Policy/Policy.ts +0 -173
  117. package/src/Policy/PolicyClient.ts +0 -315
  118. package/src/Policy/index.ts +0 -2
  119. package/src/Profile/Profile.ts +0 -187
  120. package/src/Profile/ProfileClient.ts +0 -328
  121. package/src/Profile/index.ts +0 -2
  122. package/src/ProjectAnalysis/ProjectAnalysis.ts +0 -74
  123. package/src/ProjectAnalysis/ProjectAnalysisClient.ts +0 -124
  124. package/src/ProjectAnalysis/index.ts +0 -2
  125. package/src/Release/Release.ts +0 -4237
  126. package/src/Release/ReleaseClient.ts +0 -2450
  127. package/src/Release/index.ts +0 -2
  128. package/src/ResourceUsage/ResourceUsage.ts +0 -19
  129. package/src/ResourceUsage/ResourceUsageClient.ts +0 -48
  130. package/src/ServiceEndpoint/ServiceEndpoint.ts +0 -930
  131. package/src/ServiceEndpoint/ServiceEndpointClient.ts +0 -617
  132. package/src/ServiceEndpoint/index.ts +0 -2
  133. package/src/ServiceHooks/ServiceHooks.ts +0 -759
  134. package/src/ServiceHooks/ServiceHooksClient.ts +0 -499
  135. package/src/ServiceHooks/index.ts +0 -2
  136. package/src/TaskAgent/TaskAgent.ts +0 -3896
  137. package/src/TaskAgent/TaskAgentClient.ts +0 -3918
  138. package/src/TaskAgent/index.ts +0 -2
  139. package/src/Test/Test.ts +0 -5853
  140. package/src/Test/TestClient.ts +0 -2201
  141. package/src/Test/index.ts +0 -2
  142. package/src/TestPlan/TestPlan.ts +0 -1384
  143. package/src/TestPlan/TestPlanClient.ts +0 -1367
  144. package/src/TestPlan/index.ts +0 -2
  145. package/src/TestResults/TestResults.ts +0 -11
  146. package/src/TestResults/TestResultsClient.ts +0 -3506
  147. package/src/TestResults/index.ts +0 -2
  148. package/src/Tfvc/Tfvc.ts +0 -770
  149. package/src/Tfvc/TfvcClient.ts +0 -757
  150. package/src/Tfvc/index.ts +0 -2
  151. package/src/WebApi/WebApi.ts +0 -452
  152. package/src/WebApi/index.ts +0 -1
  153. package/src/Wiki/Wiki.ts +0 -352
  154. package/src/Wiki/WikiClient.ts +0 -712
  155. package/src/Wiki/index.ts +0 -2
  156. package/src/Work/Work.ts +0 -1367
  157. package/src/Work/WorkClient.ts +0 -1489
  158. package/src/Work/index.ts +0 -2
  159. package/src/WorkItemTracking/WorkItemTracking.ts +0 -2215
  160. package/src/WorkItemTracking/WorkItemTrackingClient.ts +0 -2032
  161. package/src/WorkItemTracking/WorkItemTrackingServices.ts +0 -329
  162. package/src/WorkItemTracking/index.ts +0 -3
  163. package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +0 -1295
  164. package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +0 -1455
  165. package/src/WorkItemTrackingProcess/index.ts +0 -2
  166. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +0 -606
  167. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +0 -1175
  168. package/src/WorkItemTrackingProcessDefinitions/index.ts +0 -2
  169. package/src/index.ts +0 -1
  170. package/tsconfig.json +0 -21
  171. /package/{bin/Accounts → Accounts}/Accounts.d.ts +0 -0
  172. /package/{bin/Accounts → Accounts}/Accounts.js +0 -0
  173. /package/{bin/Accounts → Accounts}/Accounts.min.js +0 -0
  174. /package/{bin/Accounts → Accounts}/AccountsClient.d.ts +0 -0
  175. /package/{bin/Accounts → Accounts}/AccountsClient.js +0 -0
  176. /package/{bin/Accounts → Accounts}/AccountsClient.min.js +0 -0
  177. /package/{bin/Accounts → Accounts}/index.d.ts +0 -0
  178. /package/{bin/Accounts → Accounts}/index.js +0 -0
  179. /package/{bin/Accounts → Accounts}/index.min.js +0 -0
  180. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.d.ts +0 -0
  181. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.js +0 -0
  182. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.min.js +0 -0
  183. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
  184. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
  185. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
  186. /package/{bin/Boards → Boards}/Boards.d.ts +0 -0
  187. /package/{bin/Boards → Boards}/Boards.js +0 -0
  188. /package/{bin/Boards → Boards}/Boards.min.js +0 -0
  189. /package/{bin/Boards → Boards}/BoardsClient.d.ts +0 -0
  190. /package/{bin/Boards → Boards}/BoardsClient.js +0 -0
  191. /package/{bin/Boards → Boards}/BoardsClient.min.js +0 -0
  192. /package/{bin/Boards → Boards}/index.d.ts +0 -0
  193. /package/{bin/Boards → Boards}/index.js +0 -0
  194. /package/{bin/Boards → Boards}/index.min.js +0 -0
  195. /package/{bin/Build → Build}/Build.d.ts +0 -0
  196. /package/{bin/Build → Build}/Build.js +0 -0
  197. /package/{bin/Build → Build}/Build.min.js +0 -0
  198. /package/{bin/Build → Build}/BuildClient.d.ts +0 -0
  199. /package/{bin/Build → Build}/BuildClient.js +0 -0
  200. /package/{bin/Build → Build}/BuildClient.min.js +0 -0
  201. /package/{bin/Build → Build}/BuildServices.d.ts +0 -0
  202. /package/{bin/Build → Build}/BuildServices.js +0 -0
  203. /package/{bin/Build → Build}/BuildServices.min.js +0 -0
  204. /package/{bin/Build → Build}/index.d.ts +0 -0
  205. /package/{bin/Build → Build}/index.js +0 -0
  206. /package/{bin/Build → Build}/index.min.js +0 -0
  207. /package/{bin/Comments → Comments}/Comments.d.ts +0 -0
  208. /package/{bin/Comments → Comments}/Comments.js +0 -0
  209. /package/{bin/Comments → Comments}/Comments.min.js +0 -0
  210. /package/{bin/Comments → Comments}/index.d.ts +0 -0
  211. /package/{bin/Comments → Comments}/index.js +0 -0
  212. /package/{bin/Comments → Comments}/index.min.js +0 -0
  213. /package/{bin/Common → Common}/Client.d.ts +0 -0
  214. /package/{bin/Common → Common}/Client.js +0 -0
  215. /package/{bin/Common → Common}/Client.min.js +0 -0
  216. /package/{bin/Common → Common}/CommonServices.d.ts +0 -0
  217. /package/{bin/Common → Common}/CommonServices.js +0 -0
  218. /package/{bin/Common → Common}/CommonServices.min.js +0 -0
  219. /package/{bin/Common → Common}/Context.d.ts +0 -0
  220. /package/{bin/Common → Common}/Fetch.d.ts +0 -0
  221. /package/{bin/Common → Common}/Fetch.js +0 -0
  222. /package/{bin/Common → Common}/Fetch.min.js +0 -0
  223. /package/{bin/Common → Common}/RestClientBase.d.ts +0 -0
  224. /package/{bin/Common → Common}/RestClientBase.js +0 -0
  225. /package/{bin/Common → Common}/RestClientBase.min.js +0 -0
  226. /package/{bin/Common → Common}/System.d.ts +0 -0
  227. /package/{bin/Common → Common}/System.js +0 -0
  228. /package/{bin/Common → Common}/System.min.js +0 -0
  229. /package/{bin/Common → Common}/SystemData.d.ts +0 -0
  230. /package/{bin/Common → Common}/SystemData.js +0 -0
  231. /package/{bin/Common → Common}/SystemData.min.js +0 -0
  232. /package/{bin/Common → Common}/Util/Serialization.d.ts +0 -0
  233. /package/{bin/Common → Common}/Util/Serialization.js +0 -0
  234. /package/{bin/Common → Common}/Util/Serialization.min.js +0 -0
  235. /package/{bin/Common → Common}/Util/Url.d.ts +0 -0
  236. /package/{bin/Common → Common}/Util/Url.js +0 -0
  237. /package/{bin/Common → Common}/Util/Url.min.js +0 -0
  238. /package/{bin/Common → Common}/index.d.ts +0 -0
  239. /package/{bin/Common → Common}/index.js +0 -0
  240. /package/{bin/Common → Common}/index.min.js +0 -0
  241. /package/{bin/Contributions → Contributions}/Contributions.d.ts +0 -0
  242. /package/{bin/Contributions → Contributions}/Contributions.js +0 -0
  243. /package/{bin/Contributions → Contributions}/Contributions.min.js +0 -0
  244. /package/{bin/Contributions → Contributions}/ContributionsClient.d.ts +0 -0
  245. /package/{bin/Contributions → Contributions}/ContributionsClient.js +0 -0
  246. /package/{bin/Contributions → Contributions}/ContributionsClient.min.js +0 -0
  247. /package/{bin/Contributions → Contributions}/index.d.ts +0 -0
  248. /package/{bin/Contributions → Contributions}/index.js +0 -0
  249. /package/{bin/Contributions → Contributions}/index.min.js +0 -0
  250. /package/{bin/Core → Core}/Core.d.ts +0 -0
  251. /package/{bin/Core → Core}/Core.js +0 -0
  252. /package/{bin/Core → Core}/Core.min.js +0 -0
  253. /package/{bin/Core → Core}/CoreClient.d.ts +0 -0
  254. /package/{bin/Core → Core}/CoreClient.js +0 -0
  255. /package/{bin/Core → Core}/CoreClient.min.js +0 -0
  256. /package/{bin/Core → Core}/index.d.ts +0 -0
  257. /package/{bin/Core → Core}/index.js +0 -0
  258. /package/{bin/Core → Core}/index.min.js +0 -0
  259. /package/{bin/Dashboard → Dashboard}/Dashboard.d.ts +0 -0
  260. /package/{bin/Dashboard → Dashboard}/Dashboard.js +0 -0
  261. /package/{bin/Dashboard → Dashboard}/Dashboard.min.js +0 -0
  262. /package/{bin/Dashboard → Dashboard}/DashboardClient.d.ts +0 -0
  263. /package/{bin/Dashboard → Dashboard}/DashboardClient.js +0 -0
  264. /package/{bin/Dashboard → Dashboard}/DashboardClient.min.js +0 -0
  265. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.d.ts +0 -0
  266. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.js +0 -0
  267. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.min.js +0 -0
  268. /package/{bin/Dashboard → Dashboard}/WidgetContracts.d.ts +0 -0
  269. /package/{bin/Dashboard → Dashboard}/WidgetContracts.js +0 -0
  270. /package/{bin/Dashboard → Dashboard}/WidgetContracts.min.js +0 -0
  271. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.d.ts +0 -0
  272. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.js +0 -0
  273. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.min.js +0 -0
  274. /package/{bin/Dashboard → Dashboard}/index.d.ts +0 -0
  275. /package/{bin/Dashboard → Dashboard}/index.js +0 -0
  276. /package/{bin/Dashboard → Dashboard}/index.min.js +0 -0
  277. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
  278. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
  279. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
  280. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.d.ts +0 -0
  281. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.js +0 -0
  282. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.min.js +0 -0
  283. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.d.ts +0 -0
  284. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.js +0 -0
  285. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.min.js +0 -0
  286. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
  287. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.js +0 -0
  288. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.min.js +0 -0
  289. /package/{bin/ExtensionManagement → ExtensionManagement}/index.d.ts +0 -0
  290. /package/{bin/ExtensionManagement → ExtensionManagement}/index.js +0 -0
  291. /package/{bin/ExtensionManagement → ExtensionManagement}/index.min.js +0 -0
  292. /package/{bin/Favorite → Favorite}/Favorite.d.ts +0 -0
  293. /package/{bin/Favorite → Favorite}/Favorite.js +0 -0
  294. /package/{bin/Favorite → Favorite}/Favorite.min.js +0 -0
  295. /package/{bin/Favorite → Favorite}/FavoriteClient.d.ts +0 -0
  296. /package/{bin/Favorite → Favorite}/FavoriteClient.js +0 -0
  297. /package/{bin/Favorite → Favorite}/FavoriteClient.min.js +0 -0
  298. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.d.ts +0 -0
  299. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.js +0 -0
  300. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.min.js +0 -0
  301. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
  302. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
  303. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
  304. /package/{bin/FeatureAvailability → FeatureAvailability}/index.d.ts +0 -0
  305. /package/{bin/FeatureAvailability → FeatureAvailability}/index.js +0 -0
  306. /package/{bin/FeatureAvailability → FeatureAvailability}/index.min.js +0 -0
  307. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.d.ts +0 -0
  308. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.js +0 -0
  309. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.min.js +0 -0
  310. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.d.ts +0 -0
  311. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.js +0 -0
  312. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.min.js +0 -0
  313. /package/{bin/FeatureManagement → FeatureManagement}/index.d.ts +0 -0
  314. /package/{bin/FeatureManagement → FeatureManagement}/index.js +0 -0
  315. /package/{bin/FeatureManagement → FeatureManagement}/index.min.js +0 -0
  316. /package/{bin/FileContainer → FileContainer}/FileContainer.d.ts +0 -0
  317. /package/{bin/FileContainer → FileContainer}/FileContainer.js +0 -0
  318. /package/{bin/FileContainer → FileContainer}/FileContainer.min.js +0 -0
  319. /package/{bin/FileContainer → FileContainer}/FileContainerClient.d.ts +0 -0
  320. /package/{bin/FileContainer → FileContainer}/FileContainerClient.js +0 -0
  321. /package/{bin/FileContainer → FileContainer}/FileContainerClient.min.js +0 -0
  322. /package/{bin/FileContainer → FileContainer}/index.d.ts +0 -0
  323. /package/{bin/FileContainer → FileContainer}/index.js +0 -0
  324. /package/{bin/FileContainer → FileContainer}/index.min.js +0 -0
  325. /package/{bin/FormInput → FormInput}/FormInput.d.ts +0 -0
  326. /package/{bin/FormInput → FormInput}/FormInput.js +0 -0
  327. /package/{bin/FormInput → FormInput}/FormInput.min.js +0 -0
  328. /package/{bin/FormInput → FormInput}/index.d.ts +0 -0
  329. /package/{bin/FormInput → FormInput}/index.js +0 -0
  330. /package/{bin/FormInput → FormInput}/index.min.js +0 -0
  331. /package/{bin/Gallery → Gallery}/Gallery.d.ts +0 -0
  332. /package/{bin/Gallery → Gallery}/Gallery.js +0 -0
  333. /package/{bin/Gallery → Gallery}/Gallery.min.js +0 -0
  334. /package/{bin/Gallery → Gallery}/index.d.ts +0 -0
  335. /package/{bin/Gallery → Gallery}/index.js +0 -0
  336. /package/{bin/Gallery → Gallery}/index.min.js +0 -0
  337. /package/{bin/Git → Git}/CodeEditorTypes.d.ts +0 -0
  338. /package/{bin/Git → Git}/CodeEditorTypes.js +0 -0
  339. /package/{bin/Git → Git}/CodeEditorTypes.min.js +0 -0
  340. /package/{bin/Git → Git}/Git.d.ts +0 -0
  341. /package/{bin/Git → Git}/Git.js +0 -0
  342. /package/{bin/Git → Git}/Git.min.js +0 -0
  343. /package/{bin/Git → Git}/GitClient.d.ts +0 -0
  344. /package/{bin/Git → Git}/GitClient.js +0 -0
  345. /package/{bin/Git → Git}/GitClient.min.js +0 -0
  346. /package/{bin/Git → Git}/GitServices.d.ts +0 -0
  347. /package/{bin/Git → Git}/GitServices.js +0 -0
  348. /package/{bin/Git → Git}/GitServices.min.js +0 -0
  349. /package/{bin/Git → Git}/index.d.ts +0 -0
  350. /package/{bin/Git → Git}/index.js +0 -0
  351. /package/{bin/Git → Git}/index.min.js +0 -0
  352. /package/{bin/Graph → Graph}/Graph.d.ts +0 -0
  353. /package/{bin/Graph → Graph}/Graph.js +0 -0
  354. /package/{bin/Graph → Graph}/Graph.min.js +0 -0
  355. /package/{bin/Graph → Graph}/GraphClient.d.ts +0 -0
  356. /package/{bin/Graph → Graph}/GraphClient.js +0 -0
  357. /package/{bin/Graph → Graph}/GraphClient.min.js +0 -0
  358. /package/{bin/Graph → Graph}/index.d.ts +0 -0
  359. /package/{bin/Graph → Graph}/index.js +0 -0
  360. /package/{bin/Graph → Graph}/index.min.js +0 -0
  361. /package/{bin/Identities → Identities}/Identities.d.ts +0 -0
  362. /package/{bin/Identities → Identities}/Identities.js +0 -0
  363. /package/{bin/Identities → Identities}/Identities.min.js +0 -0
  364. /package/{bin/Identities → Identities}/IdentityProvider.d.ts +0 -0
  365. /package/{bin/Identities → Identities}/IdentityProvider.js +0 -0
  366. /package/{bin/Identities → Identities}/IdentityProvider.min.js +0 -0
  367. /package/{bin/Identities → Identities}/IdentityService.d.ts +0 -0
  368. /package/{bin/Identities → Identities}/IdentityService.js +0 -0
  369. /package/{bin/Identities → Identities}/IdentityService.min.js +0 -0
  370. /package/{bin/Identities → Identities}/index.d.ts +0 -0
  371. /package/{bin/Identities → Identities}/index.js +0 -0
  372. /package/{bin/Identities → Identities}/index.min.js +0 -0
  373. /package/{bin/Locations → Locations}/Locations.d.ts +0 -0
  374. /package/{bin/Locations → Locations}/Locations.js +0 -0
  375. /package/{bin/Locations → Locations}/Locations.min.js +0 -0
  376. /package/{bin/Locations → Locations}/LocationsClient.d.ts +0 -0
  377. /package/{bin/Locations → Locations}/LocationsClient.js +0 -0
  378. /package/{bin/Locations → Locations}/LocationsClient.min.js +0 -0
  379. /package/{bin/Locations → Locations}/index.d.ts +0 -0
  380. /package/{bin/Locations → Locations}/index.js +0 -0
  381. /package/{bin/Locations → Locations}/index.min.js +0 -0
  382. /package/{bin/Management → Management}/Management.js +0 -0
  383. /package/{bin/Management → Management}/Management.min.js +0 -0
  384. /package/{bin/Management → Management}/ManagementClient.d.ts +0 -0
  385. /package/{bin/Management → Management}/ManagementClient.js +0 -0
  386. /package/{bin/Management → Management}/ManagementClient.min.js +0 -0
  387. /package/{bin/Notification → Notification}/Notification.d.ts +0 -0
  388. /package/{bin/Notification → Notification}/Notification.js +0 -0
  389. /package/{bin/Notification → Notification}/Notification.min.js +0 -0
  390. /package/{bin/Notification → Notification}/NotificationClient.d.ts +0 -0
  391. /package/{bin/Notification → Notification}/NotificationClient.js +0 -0
  392. /package/{bin/Notification → Notification}/NotificationClient.min.js +0 -0
  393. /package/{bin/Notification → Notification}/index.d.ts +0 -0
  394. /package/{bin/Notification → Notification}/index.js +0 -0
  395. /package/{bin/Notification → Notification}/index.min.js +0 -0
  396. /package/{bin/Operations → Operations}/Operations.d.ts +0 -0
  397. /package/{bin/Operations → Operations}/Operations.js +0 -0
  398. /package/{bin/Operations → Operations}/Operations.min.js +0 -0
  399. /package/{bin/Operations → Operations}/OperationsClient.d.ts +0 -0
  400. /package/{bin/Operations → Operations}/OperationsClient.js +0 -0
  401. /package/{bin/Operations → Operations}/OperationsClient.min.js +0 -0
  402. /package/{bin/Operations → Operations}/index.d.ts +0 -0
  403. /package/{bin/Operations → Operations}/index.js +0 -0
  404. /package/{bin/Operations → Operations}/index.min.js +0 -0
  405. /package/{bin/Pipelines → Pipelines}/Pipelines.d.ts +0 -0
  406. /package/{bin/Pipelines → Pipelines}/Pipelines.js +0 -0
  407. /package/{bin/Pipelines → Pipelines}/Pipelines.min.js +0 -0
  408. /package/{bin/Pipelines → Pipelines}/PipelinesClient.d.ts +0 -0
  409. /package/{bin/Pipelines → Pipelines}/PipelinesClient.js +0 -0
  410. /package/{bin/Pipelines → Pipelines}/PipelinesClient.min.js +0 -0
  411. /package/{bin/Policy → Policy}/Policy.d.ts +0 -0
  412. /package/{bin/Policy → Policy}/Policy.js +0 -0
  413. /package/{bin/Policy → Policy}/Policy.min.js +0 -0
  414. /package/{bin/Policy → Policy}/PolicyClient.d.ts +0 -0
  415. /package/{bin/Policy → Policy}/PolicyClient.js +0 -0
  416. /package/{bin/Policy → Policy}/PolicyClient.min.js +0 -0
  417. /package/{bin/Policy → Policy}/index.d.ts +0 -0
  418. /package/{bin/Policy → Policy}/index.js +0 -0
  419. /package/{bin/Policy → Policy}/index.min.js +0 -0
  420. /package/{bin/Profile → Profile}/Profile.d.ts +0 -0
  421. /package/{bin/Profile → Profile}/Profile.js +0 -0
  422. /package/{bin/Profile → Profile}/Profile.min.js +0 -0
  423. /package/{bin/Profile → Profile}/ProfileClient.d.ts +0 -0
  424. /package/{bin/Profile → Profile}/ProfileClient.js +0 -0
  425. /package/{bin/Profile → Profile}/ProfileClient.min.js +0 -0
  426. /package/{bin/Profile → Profile}/index.d.ts +0 -0
  427. /package/{bin/Profile → Profile}/index.js +0 -0
  428. /package/{bin/Profile → Profile}/index.min.js +0 -0
  429. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
  430. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.js +0 -0
  431. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
  432. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
  433. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
  434. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
  435. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.d.ts +0 -0
  436. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.js +0 -0
  437. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.min.js +0 -0
  438. /package/{bin/Release → Release}/Release.d.ts +0 -0
  439. /package/{bin/Release → Release}/Release.js +0 -0
  440. /package/{bin/Release → Release}/Release.min.js +0 -0
  441. /package/{bin/Release → Release}/index.d.ts +0 -0
  442. /package/{bin/Release → Release}/index.js +0 -0
  443. /package/{bin/Release → Release}/index.min.js +0 -0
  444. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.d.ts +0 -0
  445. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.js +0 -0
  446. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.min.js +0 -0
  447. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.d.ts +0 -0
  448. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.js +0 -0
  449. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.min.js +0 -0
  450. /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.js +0 -0
  451. /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
  452. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.d.ts +0 -0
  453. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.js +0 -0
  454. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.min.js +0 -0
  455. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.d.ts +0 -0
  456. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.js +0 -0
  457. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.min.js +0 -0
  458. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.d.ts +0 -0
  459. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.js +0 -0
  460. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.min.js +0 -0
  461. /package/{bin/ServiceHooks → ServiceHooks}/index.d.ts +0 -0
  462. /package/{bin/ServiceHooks → ServiceHooks}/index.js +0 -0
  463. /package/{bin/ServiceHooks → ServiceHooks}/index.min.js +0 -0
  464. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.d.ts +0 -0
  465. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.js +0 -0
  466. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.min.js +0 -0
  467. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.d.ts +0 -0
  468. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.js +0 -0
  469. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.min.js +0 -0
  470. /package/{bin/TaskAgent → TaskAgent}/index.d.ts +0 -0
  471. /package/{bin/TaskAgent → TaskAgent}/index.js +0 -0
  472. /package/{bin/TaskAgent → TaskAgent}/index.min.js +0 -0
  473. /package/{bin/Test → Test}/Test.d.ts +0 -0
  474. /package/{bin/Test → Test}/Test.js +0 -0
  475. /package/{bin/Test → Test}/Test.min.js +0 -0
  476. /package/{bin/Test → Test}/TestClient.d.ts +0 -0
  477. /package/{bin/Test → Test}/TestClient.js +0 -0
  478. /package/{bin/Test → Test}/TestClient.min.js +0 -0
  479. /package/{bin/Test → Test}/index.d.ts +0 -0
  480. /package/{bin/Test → Test}/index.js +0 -0
  481. /package/{bin/Test → Test}/index.min.js +0 -0
  482. /package/{bin/TestPlan → TestPlan}/TestPlan.d.ts +0 -0
  483. /package/{bin/TestPlan → TestPlan}/TestPlan.js +0 -0
  484. /package/{bin/TestPlan → TestPlan}/TestPlan.min.js +0 -0
  485. /package/{bin/TestPlan → TestPlan}/TestPlanClient.d.ts +0 -0
  486. /package/{bin/TestPlan → TestPlan}/TestPlanClient.js +0 -0
  487. /package/{bin/TestPlan → TestPlan}/TestPlanClient.min.js +0 -0
  488. /package/{bin/TestPlan → TestPlan}/index.d.ts +0 -0
  489. /package/{bin/TestPlan → TestPlan}/index.js +0 -0
  490. /package/{bin/TestPlan → TestPlan}/index.min.js +0 -0
  491. /package/{bin/TestResults → TestResults}/TestResults.d.ts +0 -0
  492. /package/{bin/TestResults → TestResults}/TestResults.js +0 -0
  493. /package/{bin/TestResults → TestResults}/TestResults.min.js +0 -0
  494. /package/{bin/TestResults → TestResults}/index.d.ts +0 -0
  495. /package/{bin/TestResults → TestResults}/index.js +0 -0
  496. /package/{bin/TestResults → TestResults}/index.min.js +0 -0
  497. /package/{bin/Tfvc → Tfvc}/Tfvc.d.ts +0 -0
  498. /package/{bin/Tfvc → Tfvc}/Tfvc.js +0 -0
  499. /package/{bin/Tfvc → Tfvc}/Tfvc.min.js +0 -0
  500. /package/{bin/Tfvc → Tfvc}/TfvcClient.d.ts +0 -0
  501. /package/{bin/Tfvc → Tfvc}/TfvcClient.js +0 -0
  502. /package/{bin/Tfvc → Tfvc}/TfvcClient.min.js +0 -0
  503. /package/{bin/Tfvc → Tfvc}/index.d.ts +0 -0
  504. /package/{bin/Tfvc → Tfvc}/index.js +0 -0
  505. /package/{bin/Tfvc → Tfvc}/index.min.js +0 -0
  506. /package/{bin/WebApi → WebApi}/WebApi.d.ts +0 -0
  507. /package/{bin/WebApi → WebApi}/WebApi.js +0 -0
  508. /package/{bin/WebApi → WebApi}/WebApi.min.js +0 -0
  509. /package/{bin/WebApi → WebApi}/index.d.ts +0 -0
  510. /package/{bin/WebApi → WebApi}/index.js +0 -0
  511. /package/{bin/WebApi → WebApi}/index.min.js +0 -0
  512. /package/{bin/Wiki → Wiki}/Wiki.d.ts +0 -0
  513. /package/{bin/Wiki → Wiki}/Wiki.js +0 -0
  514. /package/{bin/Wiki → Wiki}/Wiki.min.js +0 -0
  515. /package/{bin/Wiki → Wiki}/WikiClient.d.ts +0 -0
  516. /package/{bin/Wiki → Wiki}/WikiClient.js +0 -0
  517. /package/{bin/Wiki → Wiki}/WikiClient.min.js +0 -0
  518. /package/{bin/Wiki → Wiki}/index.d.ts +0 -0
  519. /package/{bin/Wiki → Wiki}/index.js +0 -0
  520. /package/{bin/Wiki → Wiki}/index.min.js +0 -0
  521. /package/{bin/Work → Work}/Work.d.ts +0 -0
  522. /package/{bin/Work → Work}/Work.js +0 -0
  523. /package/{bin/Work → Work}/Work.min.js +0 -0
  524. /package/{bin/Work → Work}/WorkClient.d.ts +0 -0
  525. /package/{bin/Work → Work}/WorkClient.js +0 -0
  526. /package/{bin/Work → Work}/WorkClient.min.js +0 -0
  527. /package/{bin/Work → Work}/index.d.ts +0 -0
  528. /package/{bin/Work → Work}/index.js +0 -0
  529. /package/{bin/Work → Work}/index.min.js +0 -0
  530. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.d.ts +0 -0
  531. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.js +0 -0
  532. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.min.js +0 -0
  533. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
  534. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.js +0 -0
  535. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
  536. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
  537. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.js +0 -0
  538. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
  539. /package/{bin/WorkItemTracking → WorkItemTracking}/index.d.ts +0 -0
  540. /package/{bin/WorkItemTracking → WorkItemTracking}/index.js +0 -0
  541. /package/{bin/WorkItemTracking → WorkItemTracking}/index.min.js +0 -0
  542. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
  543. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
  544. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
  545. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
  546. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
  547. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
  548. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.d.ts +0 -0
  549. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.js +0 -0
  550. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.min.js +0 -0
  551. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
  552. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
  553. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
  554. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
  555. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
  556. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
  557. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
  558. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.js +0 -0
  559. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
  560. /package/{bin/index.d.ts → index.d.ts} +0 -0
  561. /package/{bin/index.js → index.js} +0 -0
  562. /package/{bin/index.min.js → index.min.js} +0 -0
@@ -1,712 +0,0 @@
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
- import { deserializeVssJsonObject } from "../Common/Util/Serialization";
10
-
11
- import * as Comments_Contracts from "../Comments/Comments";
12
- import * as Git from "../Git/Git";
13
- import * as WebApi from "../WebApi/WebApi";
14
- import * as Wiki from "../Wiki/Wiki";
15
-
16
- export class WikiRestClient extends RestClientBase {
17
- constructor(options: IVssRestClientOptions) {
18
- super(options);
19
- }
20
-
21
- public static readonly RESOURCE_AREA_ID = "bf7d82a0-8aa5-4613-94ef-6172a5ea01f3";
22
-
23
- /**
24
- * Uploads an attachment on a comment on a wiki page.
25
- *
26
- * @param content - Content to upload
27
- * @param project - Project ID or project name
28
- * @param wikiIdentifier - Wiki ID or wiki name.
29
- * @param pageId - Wiki page ID.
30
- */
31
- public async createCommentAttachment(
32
- content: any,
33
- project: string,
34
- wikiIdentifier: string,
35
- pageId: number
36
- ): Promise<Comments_Contracts.CommentAttachment> {
37
-
38
- return this.beginRequest<Comments_Contracts.CommentAttachment>({
39
- apiVersion: "5.2-preview.1",
40
- method: "POST",
41
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/attachments/{attachmentId}",
42
- routeValues: {
43
- project: project,
44
- wikiIdentifier: wikiIdentifier,
45
- pageId: pageId
46
- },
47
- customHeaders: {
48
- "Content-Type": "application/octet-stream",
49
- },
50
- body: content,
51
- isRawData: true
52
- });
53
- }
54
-
55
- /**
56
- * Downloads an attachment on a comment on a wiki page.
57
- *
58
- * @param project - Project ID or project name
59
- * @param wikiIdentifier - Wiki ID or wiki name.
60
- * @param pageId - Wiki page ID.
61
- * @param attachmentId - Attachment ID.
62
- */
63
- public async getAttachmentContent(
64
- project: string,
65
- wikiIdentifier: string,
66
- pageId: number,
67
- attachmentId: string
68
- ): Promise<ArrayBuffer> {
69
-
70
- return this.beginRequest<ArrayBuffer>({
71
- apiVersion: "5.2-preview.1",
72
- httpResponseType: "application/octet-stream",
73
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/attachments/{attachmentId}",
74
- routeValues: {
75
- project: project,
76
- wikiIdentifier: wikiIdentifier,
77
- pageId: pageId,
78
- attachmentId: attachmentId
79
- }
80
- });
81
- }
82
-
83
- /**
84
- * Add a reaction on a wiki page comment.
85
- *
86
- * @param project - Project ID or project name
87
- * @param wikiIdentifier - Wiki ID or wiki name
88
- * @param pageId - Wiki page ID
89
- * @param commentId - ID of the associated comment
90
- * @param type - Type of the reaction being added
91
- */
92
- public async addCommentReaction(
93
- project: string,
94
- wikiIdentifier: string,
95
- pageId: number,
96
- commentId: number,
97
- type: Comments_Contracts.CommentReactionType
98
- ): Promise<Comments_Contracts.CommentReaction> {
99
-
100
- return this.beginRequest<Comments_Contracts.CommentReaction>({
101
- apiVersion: "5.2-preview.1",
102
- method: "PUT",
103
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}",
104
- routeValues: {
105
- project: project,
106
- wikiIdentifier: wikiIdentifier,
107
- pageId: pageId,
108
- commentId: commentId,
109
- type: type
110
- }
111
- });
112
- }
113
-
114
- /**
115
- * Delete a reaction on a wiki page comment.
116
- *
117
- * @param project - Project ID or project name
118
- * @param wikiIdentifier - Wiki ID or name
119
- * @param pageId - Wiki page ID
120
- * @param commentId - ID of the associated comment
121
- * @param type - Type of the reaction being deleted
122
- */
123
- public async deleteCommentReaction(
124
- project: string,
125
- wikiIdentifier: string,
126
- pageId: number,
127
- commentId: number,
128
- type: Comments_Contracts.CommentReactionType
129
- ): Promise<Comments_Contracts.CommentReaction> {
130
-
131
- return this.beginRequest<Comments_Contracts.CommentReaction>({
132
- apiVersion: "5.2-preview.1",
133
- method: "DELETE",
134
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}",
135
- routeValues: {
136
- project: project,
137
- wikiIdentifier: wikiIdentifier,
138
- pageId: pageId,
139
- commentId: commentId,
140
- type: type
141
- }
142
- });
143
- }
144
-
145
- /**
146
- * Gets a list of users who have reacted for the given wiki comment with a given reaction type. Supports paging, with a default page size of 100 users at a time.
147
- *
148
- * @param project - Project ID or project name
149
- * @param wikiIdentifier - Wiki ID or wiki name.
150
- * @param pageId - Wiki page ID.
151
- * @param commentId - ID of the associated comment
152
- * @param type - Type of the reaction for which the engaged users are being requested
153
- * @param top - Number of enagaged users to be returned in a given page. Optional, defaults to 100
154
- * @param skip - Number of engaged users to be skipped to page the next set of engaged users, defaults to 0
155
- */
156
- public async getEngagedUsers(
157
- project: string,
158
- wikiIdentifier: string,
159
- pageId: number,
160
- commentId: number,
161
- type: Comments_Contracts.CommentReactionType,
162
- top?: number,
163
- skip?: number
164
- ): Promise<WebApi.IdentityRef[]> {
165
-
166
- const queryValues: any = {
167
- '$top': top,
168
- '$skip': skip
169
- };
170
-
171
- return this.beginRequest<WebApi.IdentityRef[]>({
172
- apiVersion: "5.2-preview.1",
173
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}/users",
174
- routeValues: {
175
- project: project,
176
- wikiIdentifier: wikiIdentifier,
177
- pageId: pageId,
178
- commentId: commentId,
179
- type: type
180
- },
181
- queryParams: queryValues
182
- });
183
- }
184
-
185
- /**
186
- * Add a comment on a wiki page.
187
- *
188
- * @param request - Comment create request.
189
- * @param project - Project ID or project name
190
- * @param wikiIdentifier - Wiki ID or wiki name.
191
- * @param pageId - Wiki page ID.
192
- */
193
- public async addComment(
194
- request: Comments_Contracts.CommentCreateParameters,
195
- project: string,
196
- wikiIdentifier: string,
197
- pageId: number
198
- ): Promise<Comments_Contracts.Comment> {
199
-
200
- return this.beginRequest<Comments_Contracts.Comment>({
201
- apiVersion: "5.2-preview.1",
202
- method: "POST",
203
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",
204
- routeValues: {
205
- project: project,
206
- wikiIdentifier: wikiIdentifier,
207
- pageId: pageId
208
- },
209
- body: request
210
- });
211
- }
212
-
213
- /**
214
- * Delete a comment on a wiki page.
215
- *
216
- * @param project - Project ID or project name
217
- * @param wikiIdentifier - Wiki ID or name.
218
- * @param pageId - Wiki page ID.
219
- * @param id - Comment ID.
220
- */
221
- public async deleteComment(
222
- project: string,
223
- wikiIdentifier: string,
224
- pageId: number,
225
- id: number
226
- ): Promise<void> {
227
-
228
- return this.beginRequest<void>({
229
- apiVersion: "5.2-preview.1",
230
- method: "DELETE",
231
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",
232
- routeValues: {
233
- project: project,
234
- wikiIdentifier: wikiIdentifier,
235
- pageId: pageId,
236
- id: id
237
- }
238
- });
239
- }
240
-
241
- /**
242
- * Returns a comment associated with the Wiki Page.
243
- *
244
- * @param project - Project ID or project name
245
- * @param wikiIdentifier - Wiki ID or wiki name.
246
- * @param pageId - Wiki page ID.
247
- * @param id - ID of the comment to return.
248
- * @param excludeDeleted - Specify if the deleted comment should be skipped.
249
- * @param expand - Specifies the additional data retrieval options for comments.
250
- */
251
- public async getComment(
252
- project: string,
253
- wikiIdentifier: string,
254
- pageId: number,
255
- id: number,
256
- excludeDeleted?: boolean,
257
- expand?: Comments_Contracts.CommentExpandOptions
258
- ): Promise<Comments_Contracts.Comment> {
259
-
260
- const queryValues: any = {
261
- excludeDeleted: excludeDeleted,
262
- '$expand': expand
263
- };
264
-
265
- return this.beginRequest<Comments_Contracts.Comment>({
266
- apiVersion: "5.2-preview.1",
267
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",
268
- routeValues: {
269
- project: project,
270
- wikiIdentifier: wikiIdentifier,
271
- pageId: pageId,
272
- id: id
273
- },
274
- queryParams: queryValues
275
- });
276
- }
277
-
278
- /**
279
- * Returns a pageable list of comments.
280
- *
281
- * @param project - Project ID or project name
282
- * @param wikiIdentifier - Wiki ID or wiki name.
283
- * @param pageId - Wiki page ID.
284
- * @param top - Max number of comments to return.
285
- * @param continuationToken - Used to query for the next page of comments.
286
- * @param excludeDeleted - Specify if the deleted comments should be skipped.
287
- * @param expand - Specifies the additional data retrieval options for comments.
288
- * @param order - Order in which the comments should be returned.
289
- * @param parentId - CommentId of the parent comment.
290
- */
291
- public async listComments(
292
- project: string,
293
- wikiIdentifier: string,
294
- pageId: number,
295
- top?: number,
296
- continuationToken?: string,
297
- excludeDeleted?: boolean,
298
- expand?: Comments_Contracts.CommentExpandOptions,
299
- order?: Comments_Contracts.CommentSortOrder,
300
- parentId?: number
301
- ): Promise<Comments_Contracts.CommentList> {
302
-
303
- const queryValues: any = {
304
- '$top': top,
305
- continuationToken: continuationToken,
306
- excludeDeleted: excludeDeleted,
307
- '$expand': expand,
308
- order: order,
309
- parentId: parentId
310
- };
311
-
312
- return this.beginRequest<Comments_Contracts.CommentList>({
313
- apiVersion: "5.2-preview.1",
314
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",
315
- routeValues: {
316
- project: project,
317
- wikiIdentifier: wikiIdentifier,
318
- pageId: pageId
319
- },
320
- queryParams: queryValues
321
- });
322
- }
323
-
324
- /**
325
- * Update a comment on a wiki page.
326
- *
327
- * @param comment - Comment update request.
328
- * @param project - Project ID or project name
329
- * @param wikiIdentifier - Wiki ID or wiki name.
330
- * @param pageId - Wiki page ID.
331
- * @param id - Comment ID.
332
- */
333
- public async updateComment(
334
- comment: Comments_Contracts.CommentUpdateParameters,
335
- project: string,
336
- wikiIdentifier: string,
337
- pageId: number,
338
- id: number
339
- ): Promise<Comments_Contracts.Comment> {
340
-
341
- return this.beginRequest<Comments_Contracts.Comment>({
342
- apiVersion: "5.2-preview.1",
343
- method: "PATCH",
344
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",
345
- routeValues: {
346
- project: project,
347
- wikiIdentifier: wikiIdentifier,
348
- pageId: pageId,
349
- id: id
350
- },
351
- body: comment
352
- });
353
- }
354
-
355
- /**
356
- * Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the \`Accept\` header sent in the request.
357
- *
358
- * @param project - Project ID or project name
359
- * @param wikiIdentifier - Wiki ID or wiki name.
360
- * @param path - Wiki page path.
361
- * @param recursionLevel - Recursion level for subpages retrieval. Defaults to \`None\` (Optional).
362
- * @param versionDescriptor - GitVersionDescriptor for the page. Defaults to the default branch (Optional).
363
- * @param includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
364
- */
365
- public async getPageText(
366
- project: string,
367
- wikiIdentifier: string,
368
- path?: string,
369
- recursionLevel?: Git.VersionControlRecursionType,
370
- versionDescriptor?: Git.GitVersionDescriptor,
371
- includeContent?: boolean
372
- ): Promise<string> {
373
-
374
- const queryValues: any = {
375
- path: path,
376
- recursionLevel: recursionLevel,
377
- versionDescriptor: versionDescriptor,
378
- includeContent: includeContent
379
- };
380
-
381
- return this.beginRequest<string>({
382
- apiVersion: "5.2-preview.1",
383
- httpResponseType: "text/plain",
384
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{*path}",
385
- routeValues: {
386
- project: project,
387
- wikiIdentifier: wikiIdentifier
388
- },
389
- queryParams: queryValues
390
- });
391
- }
392
-
393
- /**
394
- * Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the \`Accept\` header sent in the request.
395
- *
396
- * @param project - Project ID or project name
397
- * @param wikiIdentifier - Wiki ID or wiki name.
398
- * @param path - Wiki page path.
399
- * @param recursionLevel - Recursion level for subpages retrieval. Defaults to \`None\` (Optional).
400
- * @param versionDescriptor - GitVersionDescriptor for the page. Defaults to the default branch (Optional).
401
- * @param includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
402
- */
403
- public async getPageZip(
404
- project: string,
405
- wikiIdentifier: string,
406
- path?: string,
407
- recursionLevel?: Git.VersionControlRecursionType,
408
- versionDescriptor?: Git.GitVersionDescriptor,
409
- includeContent?: boolean
410
- ): Promise<ArrayBuffer> {
411
-
412
- const queryValues: any = {
413
- path: path,
414
- recursionLevel: recursionLevel,
415
- versionDescriptor: versionDescriptor,
416
- includeContent: includeContent
417
- };
418
-
419
- return this.beginRequest<ArrayBuffer>({
420
- apiVersion: "5.2-preview.1",
421
- httpResponseType: "application/zip",
422
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{*path}",
423
- routeValues: {
424
- project: project,
425
- wikiIdentifier: wikiIdentifier
426
- },
427
- queryParams: queryValues
428
- });
429
- }
430
-
431
- /**
432
- * Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the \`Accept\` header sent in the request.
433
- *
434
- * @param project - Project ID or project name
435
- * @param wikiIdentifier - Wiki ID or wiki name..
436
- * @param id - Wiki page ID.
437
- * @param recursionLevel - Recursion level for subpages retrieval. Defaults to \`None\` (Optional).
438
- * @param includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
439
- */
440
- public async getPageByIdText(
441
- project: string,
442
- wikiIdentifier: string,
443
- id: number,
444
- recursionLevel?: Git.VersionControlRecursionType,
445
- includeContent?: boolean
446
- ): Promise<string> {
447
-
448
- const queryValues: any = {
449
- recursionLevel: recursionLevel,
450
- includeContent: includeContent
451
- };
452
-
453
- return this.beginRequest<string>({
454
- apiVersion: "5.2-preview.1",
455
- httpResponseType: "text/plain",
456
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{id}",
457
- routeValues: {
458
- project: project,
459
- wikiIdentifier: wikiIdentifier,
460
- id: id
461
- },
462
- queryParams: queryValues
463
- });
464
- }
465
-
466
- /**
467
- * Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the \`Accept\` header sent in the request.
468
- *
469
- * @param project - Project ID or project name
470
- * @param wikiIdentifier - Wiki ID or wiki name..
471
- * @param id - Wiki page ID.
472
- * @param recursionLevel - Recursion level for subpages retrieval. Defaults to \`None\` (Optional).
473
- * @param includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
474
- */
475
- public async getPageByIdZip(
476
- project: string,
477
- wikiIdentifier: string,
478
- id: number,
479
- recursionLevel?: Git.VersionControlRecursionType,
480
- includeContent?: boolean
481
- ): Promise<ArrayBuffer> {
482
-
483
- const queryValues: any = {
484
- recursionLevel: recursionLevel,
485
- includeContent: includeContent
486
- };
487
-
488
- return this.beginRequest<ArrayBuffer>({
489
- apiVersion: "5.2-preview.1",
490
- httpResponseType: "application/zip",
491
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{id}",
492
- routeValues: {
493
- project: project,
494
- wikiIdentifier: wikiIdentifier,
495
- id: id
496
- },
497
- queryParams: queryValues
498
- });
499
- }
500
-
501
- /**
502
- * Returns pageable list of Wiki Pages
503
- *
504
- * @param pagesBatchRequest - Wiki batch page request.
505
- * @param project - Project ID or project name
506
- * @param wikiIdentifier - Wiki ID or wiki name.
507
- * @param versionDescriptor - GitVersionDescriptor for the page. (Optional in case of ProjectWiki).
508
- */
509
- public async getPagesBatch(
510
- pagesBatchRequest: Wiki.WikiPagesBatchRequest,
511
- project: string,
512
- wikiIdentifier: string,
513
- versionDescriptor?: Git.GitVersionDescriptor
514
- ): Promise<WebApi.PagedList<Wiki.WikiPageDetail>> {
515
-
516
- const queryValues: any = {
517
- versionDescriptor: versionDescriptor
518
- };
519
-
520
- return this.beginRequest<Response>({
521
- apiVersion: "5.2-preview.1",
522
- method: "POST",
523
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pagesBatch",
524
- routeValues: {
525
- project: project,
526
- wikiIdentifier: wikiIdentifier
527
- },
528
- queryParams: queryValues,
529
- body: pagesBatchRequest,
530
- returnRawResponse: true
531
- }).then(async response => {
532
- const body = <WebApi.PagedList<Wiki.WikiPageDetail>>await response.text().then(deserializeVssJsonObject);
533
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
534
- return body;
535
- });
536
- }
537
-
538
- /**
539
- * Returns page detail corresponding to Page ID.
540
- *
541
- * @param project - Project ID or project name
542
- * @param wikiIdentifier - Wiki ID or wiki name.
543
- * @param pageId - Wiki page ID.
544
- * @param pageViewsForDays - last N days from the current day for which page views is to be returned. It's inclusive of current day.
545
- */
546
- public async getPageData(
547
- project: string,
548
- wikiIdentifier: string,
549
- pageId: number,
550
- pageViewsForDays?: number
551
- ): Promise<Wiki.WikiPageDetail> {
552
-
553
- const queryValues: any = {
554
- pageViewsForDays: pageViewsForDays
555
- };
556
-
557
- return this.beginRequest<Wiki.WikiPageDetail>({
558
- apiVersion: "5.2-preview.1",
559
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/stats",
560
- routeValues: {
561
- project: project,
562
- wikiIdentifier: wikiIdentifier,
563
- pageId: pageId
564
- },
565
- queryParams: queryValues
566
- });
567
- }
568
-
569
- /**
570
- * Creates a new page view stats resource or updates an existing page view stats resource.
571
- *
572
- * @param project - Project ID or project name
573
- * @param wikiIdentifier - Wiki ID or wiki name.
574
- * @param wikiVersion - Wiki version.
575
- * @param path - Wiki page path.
576
- * @param oldPath - Old page path. This is optional and required to rename path in existing page view stats.
577
- */
578
- public async createOrUpdatePageViewStats(
579
- project: string,
580
- wikiIdentifier: string,
581
- wikiVersion: Git.GitVersionDescriptor,
582
- path: string,
583
- oldPath?: string
584
- ): Promise<Wiki.WikiPageViewStats> {
585
-
586
- const queryValues: any = {
587
- wikiVersion: wikiVersion,
588
- path: path,
589
- oldPath: oldPath
590
- };
591
-
592
- return this.beginRequest<Wiki.WikiPageViewStats>({
593
- apiVersion: "5.2-preview.1",
594
- method: "POST",
595
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pageViewStats/{*path}",
596
- routeValues: {
597
- project: project,
598
- wikiIdentifier: wikiIdentifier
599
- },
600
- queryParams: queryValues
601
- });
602
- }
603
-
604
- /**
605
- * Creates the wiki resource.
606
- *
607
- * @param wikiCreateParams - Parameters for the wiki creation.
608
- * @param project - Project ID or project name
609
- */
610
- public async createWiki(
611
- wikiCreateParams: Wiki.WikiCreateParametersV2,
612
- project?: string
613
- ): Promise<Wiki.WikiV2> {
614
-
615
- return this.beginRequest<Wiki.WikiV2>({
616
- apiVersion: "5.2-preview.2",
617
- method: "POST",
618
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}",
619
- routeValues: {
620
- project: project
621
- },
622
- body: wikiCreateParams
623
- });
624
- }
625
-
626
- /**
627
- * Deletes the wiki corresponding to the wiki ID or wiki name provided.
628
- *
629
- * @param wikiIdentifier - Wiki ID or wiki name.
630
- * @param project - Project ID or project name
631
- */
632
- public async deleteWiki(
633
- wikiIdentifier: string,
634
- project?: string
635
- ): Promise<Wiki.WikiV2> {
636
-
637
- return this.beginRequest<Wiki.WikiV2>({
638
- apiVersion: "5.2-preview.2",
639
- method: "DELETE",
640
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}",
641
- routeValues: {
642
- project: project,
643
- wikiIdentifier: wikiIdentifier
644
- }
645
- });
646
- }
647
-
648
- /**
649
- * Gets all wikis in a project or collection.
650
- *
651
- * @param project - Project ID or project name
652
- */
653
- public async getAllWikis(
654
- project?: string
655
- ): Promise<Wiki.WikiV2[]> {
656
-
657
- return this.beginRequest<Wiki.WikiV2[]>({
658
- apiVersion: "5.2-preview.2",
659
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}",
660
- routeValues: {
661
- project: project
662
- }
663
- });
664
- }
665
-
666
- /**
667
- * Gets the wiki corresponding to the wiki ID or wiki name provided.
668
- *
669
- * @param wikiIdentifier - Wiki ID or wiki name.
670
- * @param project - Project ID or project name
671
- */
672
- public async getWiki(
673
- wikiIdentifier: string,
674
- project?: string
675
- ): Promise<Wiki.WikiV2> {
676
-
677
- return this.beginRequest<Wiki.WikiV2>({
678
- apiVersion: "5.2-preview.2",
679
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}",
680
- routeValues: {
681
- project: project,
682
- wikiIdentifier: wikiIdentifier
683
- }
684
- });
685
- }
686
-
687
- /**
688
- * Updates the wiki corresponding to the wiki ID or wiki name provided using the update parameters.
689
- *
690
- * @param updateParameters - Update parameters.
691
- * @param wikiIdentifier - Wiki ID or wiki name.
692
- * @param project - Project ID or project name
693
- */
694
- public async updateWiki(
695
- updateParameters: Wiki.WikiUpdateParameters,
696
- wikiIdentifier: string,
697
- project?: string
698
- ): Promise<Wiki.WikiV2> {
699
-
700
- return this.beginRequest<Wiki.WikiV2>({
701
- apiVersion: "5.2-preview.2",
702
- method: "PATCH",
703
- routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}",
704
- routeValues: {
705
- project: project,
706
- wikiIdentifier: wikiIdentifier
707
- },
708
- body: updateParameters
709
- });
710
- }
711
-
712
- }