azure-devops-extension-api 4.270.0 → 5.271.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (699) hide show
  1. package/Accounts/Accounts.d.ts +126 -126
  2. package/Accounts/Accounts.js +61 -62
  3. package/Accounts/Accounts.min.js +1 -1
  4. package/Accounts/AccountsClient.d.ts +24 -24
  5. package/Accounts/AccountsClient.js +78 -124
  6. package/Accounts/AccountsClient.min.js +1 -1
  7. package/Accounts/index.d.ts +2 -2
  8. package/Accounts/index.js +18 -9
  9. package/Accounts/index.min.js +1 -1
  10. package/AdvancedSecurity.Reporting/Reporting.d.ts +717 -717
  11. package/AdvancedSecurity.Reporting/Reporting.js +203 -204
  12. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
  13. package/AdvancedSecurity.Reporting/ReportingClient.d.ts +83 -83
  14. package/AdvancedSecurity.Reporting/ReportingClient.js +267 -343
  15. package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
  16. package/Alert/Alert.d.ts +1265 -1265
  17. package/Alert/Alert.js +425 -426
  18. package/Alert/Alert.min.js +1 -1
  19. package/Alert/AlertClient.d.ts +184 -159
  20. package/Alert/AlertClient.js +512 -533
  21. package/Alert/AlertClient.min.js +1 -1
  22. package/Build/Build.d.ts +3318 -3292
  23. package/Build/Build.js +613 -607
  24. package/Build/Build.min.js +1 -1
  25. package/Build/BuildClient.d.ts +842 -820
  26. package/Build/BuildClient.js +2319 -2568
  27. package/Build/BuildClient.min.js +1 -1
  28. package/Build/BuildServices.d.ts +32 -32
  29. package/Build/BuildServices.js +13 -14
  30. package/Build/BuildServices.min.js +1 -1
  31. package/Build/index.d.ts +3 -3
  32. package/Build/index.js +19 -10
  33. package/Build/index.min.js +1 -1
  34. package/Comments/Comments.d.ts +309 -309
  35. package/Comments/Comments.js +93 -94
  36. package/Comments/Comments.min.js +1 -1
  37. package/Comments/index.d.ts +1 -1
  38. package/Comments/index.js +17 -8
  39. package/Comments/index.min.js +1 -1
  40. package/Common/Client.d.ts +9 -9
  41. package/Common/Client.js +25 -26
  42. package/Common/Client.min.js +1 -1
  43. package/Common/CommonServices.d.ts +774 -735
  44. package/Common/CommonServices.js +71 -72
  45. package/Common/CommonServices.min.js +1 -1
  46. package/Common/Context.js +2 -0
  47. package/Common/Fetch.d.ts +95 -95
  48. package/Common/Fetch.js +131 -168
  49. package/Common/Fetch.min.js +1 -1
  50. package/Common/RestClientBase.d.ts +96 -96
  51. package/Common/RestClientBase.js +109 -139
  52. package/Common/RestClientBase.min.js +1 -1
  53. package/Common/System.d.ts +30 -30
  54. package/Common/System.js +39 -40
  55. package/Common/System.min.js +1 -1
  56. package/Common/SystemData.d.ts +129 -129
  57. package/Common/SystemData.js +138 -139
  58. package/Common/SystemData.min.js +1 -1
  59. package/Common/Util/Serialization.d.ts +15 -15
  60. package/Common/Util/Serialization.js +51 -53
  61. package/Common/Util/Serialization.min.js +1 -1
  62. package/Common/Util/Url.d.ts +238 -236
  63. package/Common/Util/Url.js +605 -626
  64. package/Common/Util/Url.min.js +1 -1
  65. package/Common/index.d.ts +3 -3
  66. package/Common/index.js +19 -9
  67. package/Common/index.min.js +1 -1
  68. package/Contributions/Contributions.d.ts +694 -694
  69. package/Contributions/Contributions.js +185 -186
  70. package/Contributions/Contributions.min.js +1 -1
  71. package/Contributions/ContributionsClient.d.ts +31 -31
  72. package/Contributions/ContributionsClient.js +99 -147
  73. package/Contributions/ContributionsClient.min.js +1 -1
  74. package/Contributions/index.d.ts +2 -2
  75. package/Contributions/index.js +18 -9
  76. package/Contributions/index.min.js +1 -1
  77. package/Core/Core.d.ts +546 -546
  78. package/Core/Core.js +79 -80
  79. package/Core/Core.min.js +1 -1
  80. package/Core/CoreClient.d.ts +224 -224
  81. package/Core/CoreClient.js +652 -777
  82. package/Core/CoreClient.min.js +1 -1
  83. package/Core/index.d.ts +2 -2
  84. package/Core/index.js +18 -9
  85. package/Core/index.min.js +1 -1
  86. package/Dashboard/Dashboard.d.ts +393 -393
  87. package/Dashboard/Dashboard.js +56 -57
  88. package/Dashboard/Dashboard.min.js +1 -1
  89. package/Dashboard/DashboardClient.d.ts +106 -106
  90. package/Dashboard/DashboardClient.js +317 -393
  91. package/Dashboard/DashboardClient.min.js +1 -1
  92. package/Dashboard/WidgetConfigHelpers.d.ts +34 -34
  93. package/Dashboard/WidgetConfigHelpers.js +41 -45
  94. package/Dashboard/WidgetConfigHelpers.min.js +1 -1
  95. package/Dashboard/WidgetContracts.d.ts +213 -213
  96. package/Dashboard/WidgetContracts.js +24 -25
  97. package/Dashboard/WidgetContracts.min.js +1 -1
  98. package/Dashboard/WidgetHelpers.d.ts +89 -89
  99. package/Dashboard/WidgetHelpers.js +135 -146
  100. package/Dashboard/WidgetHelpers.min.js +1 -1
  101. package/Dashboard/index.d.ts +5 -5
  102. package/Dashboard/index.js +21 -12
  103. package/Dashboard/index.min.js +1 -1
  104. package/DistributedTaskCommon/DistributedTaskCommon.d.ts +103 -103
  105. package/DistributedTaskCommon/DistributedTaskCommon.js +7 -9
  106. package/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -1
  107. package/DistributedTaskCommon/index.d.ts +1 -1
  108. package/DistributedTaskCommon/index.js +17 -4
  109. package/DistributedTaskCommon/index.min.js +1 -1
  110. package/ExtensionManagement/ExtensionManagement.d.ts +1163 -1163
  111. package/ExtensionManagement/ExtensionManagement.js +284 -285
  112. package/ExtensionManagement/ExtensionManagement.min.js +1 -1
  113. package/ExtensionManagement/ExtensionManagementClient.d.ts +191 -191
  114. package/ExtensionManagement/ExtensionManagementClient.js +551 -648
  115. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  116. package/ExtensionManagement/index.d.ts +2 -2
  117. package/ExtensionManagement/index.js +18 -9
  118. package/ExtensionManagement/index.min.js +1 -1
  119. package/Favorite/Favorite.d.ts +124 -124
  120. package/Favorite/Favorite.js +7 -9
  121. package/Favorite/Favorite.min.js +1 -1
  122. package/Favorite/FavoriteClient.d.ts +78 -78
  123. package/Favorite/FavoriteClient.js +247 -314
  124. package/Favorite/FavoriteClient.min.js +1 -1
  125. package/FeatureAvailability/FeatureAvailability.d.ts +13 -13
  126. package/FeatureAvailability/FeatureAvailability.js +7 -9
  127. package/FeatureAvailability/FeatureAvailability.min.js +1 -1
  128. package/FeatureAvailability/FeatureAvailabilityClient.d.ts +45 -45
  129. package/FeatureAvailability/FeatureAvailabilityClient.js +136 -189
  130. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  131. package/FeatureAvailability/index.d.ts +2 -2
  132. package/FeatureAvailability/index.js +18 -8
  133. package/FeatureAvailability/index.min.js +1 -1
  134. package/FeatureManagement/FeatureManagement.d.ts +161 -161
  135. package/FeatureManagement/FeatureManagement.js +26 -27
  136. package/FeatureManagement/FeatureManagement.min.js +1 -1
  137. package/FeatureManagement/FeatureManagementClient.d.ts +78 -78
  138. package/FeatureManagement/FeatureManagementClient.js +214 -273
  139. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  140. package/FeatureManagement/index.d.ts +2 -2
  141. package/FeatureManagement/index.js +18 -9
  142. package/FeatureManagement/index.min.js +1 -1
  143. package/FileContainer/FileContainer.d.ts +193 -193
  144. package/FileContainer/FileContainer.js +58 -59
  145. package/FileContainer/FileContainer.min.js +1 -1
  146. package/FileContainer/FileContainerClient.d.ts +47 -47
  147. package/FileContainer/FileContainerClient.js +132 -182
  148. package/FileContainer/FileContainerClient.min.js +1 -1
  149. package/FileContainer/index.d.ts +2 -2
  150. package/FileContainer/index.js +18 -9
  151. package/FileContainer/index.min.js +1 -1
  152. package/FormInput/FormInput.d.ts +278 -278
  153. package/FormInput/FormInput.js +77 -78
  154. package/FormInput/FormInput.min.js +1 -1
  155. package/FormInput/index.d.ts +1 -1
  156. package/FormInput/index.js +17 -8
  157. package/FormInput/index.min.js +1 -1
  158. package/Gallery/Gallery.d.ts +1911 -1911
  159. package/Gallery/Gallery.js +788 -789
  160. package/Gallery/Gallery.min.js +1 -1
  161. package/Gallery/GalleryClient.d.ts +613 -603
  162. package/Gallery/GalleryClient.js +1884 -2100
  163. package/Gallery/GalleryClient.min.js +1 -1
  164. package/Gallery/index.d.ts +2 -2
  165. package/Gallery/index.js +18 -9
  166. package/Gallery/index.min.js +1 -1
  167. package/Git/CodeEditorTypes.d.ts +305 -305
  168. package/Git/CodeEditorTypes.js +27 -28
  169. package/Git/CodeEditorTypes.min.js +1 -1
  170. package/Git/Git.d.ts +3976 -4071
  171. package/Git/Git.js +830 -839
  172. package/Git/Git.min.js +1 -1
  173. package/Git/GitClient.d.ts +1468 -1466
  174. package/Git/GitClient.js +3892 -4347
  175. package/Git/GitClient.min.js +1 -1
  176. package/Git/GitServices.d.ts +16 -16
  177. package/Git/GitServices.js +10 -11
  178. package/Git/GitServices.min.js +1 -1
  179. package/Git/index.d.ts +4 -4
  180. package/Git/index.js +20 -11
  181. package/Git/index.min.js +1 -1
  182. package/Graph/Graph.d.ts +518 -518
  183. package/Graph/Graph.js +14 -15
  184. package/Graph/Graph.min.js +1 -1
  185. package/Graph/GraphClient.d.ts +261 -261
  186. package/Graph/GraphClient.js +737 -867
  187. package/Graph/GraphClient.min.js +1 -1
  188. package/Graph/index.d.ts +2 -2
  189. package/Graph/index.js +18 -9
  190. package/Graph/index.min.js +1 -1
  191. package/Identities/Identities.d.ts +242 -242
  192. package/Identities/Identities.js +49 -50
  193. package/Identities/Identities.min.js +1 -1
  194. package/Identities/IdentityProvider.d.ts +40 -40
  195. package/Identities/IdentityProvider.js +47 -49
  196. package/Identities/IdentityProvider.min.js +1 -1
  197. package/Identities/IdentityService.d.ts +72 -72
  198. package/Identities/IdentityService.js +13 -14
  199. package/Identities/IdentityService.min.js +1 -1
  200. package/Identities/index.d.ts +3 -3
  201. package/Identities/index.js +19 -10
  202. package/Identities/index.min.js +1 -1
  203. package/Locations/Locations.d.ts +150 -150
  204. package/Locations/Locations.js +28 -29
  205. package/Locations/Locations.min.js +1 -1
  206. package/Locations/LocationsClient.d.ts +65 -65
  207. package/Locations/LocationsClient.js +211 -276
  208. package/Locations/LocationsClient.min.js +1 -1
  209. package/Locations/index.d.ts +2 -2
  210. package/Locations/index.js +18 -9
  211. package/Locations/index.min.js +1 -1
  212. package/Management/Management.d.ts +424 -407
  213. package/Management/Management.js +27 -28
  214. package/Management/Management.min.js +1 -1
  215. package/Management/ManagementClient.d.ts +116 -105
  216. package/Management/ManagementClient.js +349 -398
  217. package/Management/ManagementClient.min.js +1 -1
  218. package/Notification/Notification.d.ts +1387 -1387
  219. package/Notification/Notification.js +385 -386
  220. package/Notification/Notification.min.js +1 -1
  221. package/Notification/NotificationClient.d.ts +149 -149
  222. package/Notification/NotificationClient.js +420 -511
  223. package/Notification/NotificationClient.min.js +1 -1
  224. package/Notification/index.d.ts +2 -2
  225. package/Notification/index.js +18 -9
  226. package/Notification/index.min.js +1 -1
  227. package/Operations/Operations.d.ts +77 -77
  228. package/Operations/Operations.js +38 -39
  229. package/Operations/Operations.min.js +1 -1
  230. package/Operations/OperationsClient.d.ts +13 -13
  231. package/Operations/OperationsClient.js +45 -86
  232. package/Operations/OperationsClient.min.js +1 -1
  233. package/Operations/index.d.ts +2 -2
  234. package/Operations/index.js +18 -9
  235. package/Operations/index.min.js +1 -1
  236. package/Pipelines/Pipelines.d.ts +341 -341
  237. package/Pipelines/Pipelines.js +82 -83
  238. package/Pipelines/Pipelines.min.js +1 -1
  239. package/Pipelines/PipelinesClient.d.ts +92 -92
  240. package/Pipelines/PipelinesClient.js +260 -325
  241. package/Pipelines/PipelinesClient.min.js +1 -1
  242. package/Policy/Policy.d.ts +160 -160
  243. package/Policy/Policy.js +38 -39
  244. package/Policy/Policy.min.js +1 -1
  245. package/Policy/PolicyClient.d.ts +99 -99
  246. package/Policy/PolicyClient.js +274 -346
  247. package/Policy/PolicyClient.min.js +1 -1
  248. package/Policy/index.d.ts +2 -2
  249. package/Policy/index.js +18 -9
  250. package/Policy/index.min.js +1 -1
  251. package/Profile/Profile.d.ts +175 -175
  252. package/Profile/Profile.js +35 -36
  253. package/Profile/Profile.min.js +1 -1
  254. package/Profile/ProfileClient.d.ts +86 -86
  255. package/Profile/ProfileClient.js +277 -347
  256. package/Profile/ProfileClient.min.js +1 -1
  257. package/Profile/index.d.ts +2 -2
  258. package/Profile/index.js +18 -9
  259. package/Profile/index.min.js +1 -1
  260. package/ProjectAnalysis/ProjectAnalysis.d.ts +59 -59
  261. package/ProjectAnalysis/ProjectAnalysis.js +18 -19
  262. package/ProjectAnalysis/ProjectAnalysis.min.js +1 -1
  263. package/ProjectAnalysis/ProjectAnalysisClient.d.ts +34 -34
  264. package/ProjectAnalysis/ProjectAnalysisClient.js +110 -159
  265. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  266. package/ProjectAnalysis/index.d.ts +2 -2
  267. package/ProjectAnalysis/index.js +18 -9
  268. package/ProjectAnalysis/index.min.js +1 -1
  269. package/README.md +57 -1
  270. package/Release/Release.d.ts +4068 -4068
  271. package/Release/Release.js +876 -877
  272. package/Release/Release.min.js +1 -1
  273. package/Release/ReleaseClient.d.ts +720 -720
  274. package/Release/ReleaseClient.js +2003 -2273
  275. package/Release/ReleaseClient.min.js +1 -1
  276. package/Release/index.d.ts +2 -2
  277. package/Release/index.js +18 -9
  278. package/Release/index.min.js +1 -1
  279. package/ResourceUsage/ResourceUsage.d.ts +13 -13
  280. package/ResourceUsage/ResourceUsage.js +7 -9
  281. package/ResourceUsage/ResourceUsage.min.js +1 -1
  282. package/ResourceUsage/ResourceUsageClient.d.ts +20 -20
  283. package/ResourceUsage/ResourceUsageClient.js +51 -93
  284. package/ResourceUsage/ResourceUsageClient.min.js +1 -1
  285. package/ServiceEndpoint/ServiceEndpoint.d.ts +894 -894
  286. package/ServiceEndpoint/ServiceEndpoint.js +84 -85
  287. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  288. package/ServiceEndpoint/ServiceEndpointClient.d.ts +190 -190
  289. package/ServiceEndpoint/ServiceEndpointClient.js +556 -669
  290. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  291. package/ServiceEndpoint/index.d.ts +2 -2
  292. package/ServiceEndpoint/index.js +18 -9
  293. package/ServiceEndpoint/index.min.js +1 -1
  294. package/ServiceHooks/ServiceHooks.d.ts +758 -758
  295. package/ServiceHooks/ServiceHooks.js +114 -115
  296. package/ServiceHooks/ServiceHooks.min.js +1 -1
  297. package/ServiceHooks/ServiceHooksClient.d.ts +156 -156
  298. package/ServiceHooks/ServiceHooksClient.js +434 -526
  299. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  300. package/ServiceHooks/index.d.ts +2 -2
  301. package/ServiceHooks/index.js +18 -9
  302. package/ServiceHooks/index.min.js +1 -1
  303. package/TaskAgent/TaskAgent.d.ts +3777 -3777
  304. package/TaskAgent/TaskAgent.js +594 -594
  305. package/TaskAgent/TaskAgent.min.js +1 -1
  306. package/TaskAgent/TaskAgentClient.d.ts +1085 -1073
  307. package/TaskAgent/TaskAgentClient.js +3273 -3731
  308. package/TaskAgent/TaskAgentClient.min.js +1 -1
  309. package/TaskAgent/index.d.ts +2 -2
  310. package/TaskAgent/index.js +18 -9
  311. package/TaskAgent/index.min.js +1 -1
  312. package/Test/Test.d.ts +5918 -5874
  313. package/Test/Test.js +1068 -1069
  314. package/Test/Test.min.js +1 -1
  315. package/Test/TestClient.d.ts +635 -635
  316. package/Test/TestClient.js +1822 -2088
  317. package/Test/TestClient.min.js +1 -1
  318. package/Test/index.d.ts +2 -2
  319. package/Test/index.js +18 -9
  320. package/Test/index.min.js +1 -1
  321. package/TestPlan/TestPlan.d.ts +1616 -1616
  322. package/TestPlan/TestPlan.js +270 -271
  323. package/TestPlan/TestPlan.min.js +1 -1
  324. package/TestPlan/TestPlanClient.d.ts +408 -408
  325. package/TestPlan/TestPlanClient.js +1160 -1387
  326. package/TestPlan/TestPlanClient.min.js +1 -1
  327. package/TestPlan/index.d.ts +2 -2
  328. package/TestPlan/index.js +18 -9
  329. package/TestPlan/index.min.js +1 -1
  330. package/TestResults/TestResults.d.ts +5 -5
  331. package/TestResults/TestResults.js +7 -9
  332. package/TestResults/TestResults.min.js +1 -1
  333. package/TestResults/TestResultsClient.d.ts +1060 -1039
  334. package/TestResults/TestResultsClient.js +3099 -3491
  335. package/TestResults/TestResultsClient.min.js +1 -1
  336. package/TestResults/index.d.ts +2 -2
  337. package/TestResults/index.js +18 -8
  338. package/TestResults/index.min.js +1 -1
  339. package/Tfvc/Tfvc.d.ts +730 -730
  340. package/Tfvc/Tfvc.js +106 -107
  341. package/Tfvc/Tfvc.min.js +1 -1
  342. package/Tfvc/TfvcClient.d.ts +227 -227
  343. package/Tfvc/TfvcClient.js +620 -732
  344. package/Tfvc/TfvcClient.min.js +1 -1
  345. package/Tfvc/index.d.ts +2 -2
  346. package/Tfvc/index.js +18 -9
  347. package/Tfvc/index.min.js +1 -1
  348. package/WebApi/WebApi.d.ts +408 -408
  349. package/WebApi/WebApi.js +55 -56
  350. package/WebApi/WebApi.min.js +1 -1
  351. package/WebApi/index.d.ts +1 -1
  352. package/WebApi/index.js +17 -8
  353. package/WebApi/index.min.js +1 -1
  354. package/Wiki/Wiki.d.ts +328 -328
  355. package/Wiki/Wiki.js +22 -23
  356. package/Wiki/Wiki.min.js +1 -1
  357. package/Wiki/WikiClient.d.ts +218 -218
  358. package/Wiki/WikiClient.js +585 -684
  359. package/Wiki/WikiClient.min.js +1 -1
  360. package/Wiki/index.d.ts +2 -2
  361. package/Wiki/index.js +18 -9
  362. package/Wiki/index.min.js +1 -1
  363. package/Work/Work.d.ts +1298 -1298
  364. package/Work/Work.js +187 -188
  365. package/Work/Work.min.js +1 -1
  366. package/Work/WorkClient.d.ts +421 -421
  367. package/Work/WorkClient.js +1255 -1455
  368. package/Work/WorkClient.min.js +1 -1
  369. package/Work/index.d.ts +2 -2
  370. package/Work/index.js +18 -9
  371. package/Work/index.min.js +1 -1
  372. package/WorkItemTracking/WorkItemTracking.d.ts +2158 -2158
  373. package/WorkItemTracking/WorkItemTracking.js +431 -432
  374. package/WorkItemTracking/WorkItemTracking.min.js +1 -1
  375. package/WorkItemTracking/WorkItemTrackingClient.d.ts +624 -624
  376. package/WorkItemTracking/WorkItemTrackingClient.js +1688 -1918
  377. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  378. package/WorkItemTracking/WorkItemTrackingServices.d.ts +320 -320
  379. package/WorkItemTracking/WorkItemTrackingServices.js +18 -19
  380. package/WorkItemTracking/WorkItemTrackingServices.min.js +1 -1
  381. package/WorkItemTracking/index.d.ts +3 -3
  382. package/WorkItemTracking/index.js +19 -10
  383. package/WorkItemTracking/index.min.js +1 -1
  384. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +1238 -1238
  385. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +299 -300
  386. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  387. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +462 -462
  388. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1224 -1386
  389. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  390. package/WorkItemTrackingProcess/index.d.ts +2 -2
  391. package/WorkItemTrackingProcess/index.js +18 -9
  392. package/WorkItemTrackingProcess/index.min.js +1 -1
  393. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +575 -575
  394. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +96 -97
  395. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -1
  396. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +376 -376
  397. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +991 -1126
  398. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  399. package/WorkItemTrackingProcessDefinitions/index.d.ts +2 -2
  400. package/WorkItemTrackingProcessDefinitions/index.js +18 -9
  401. package/WorkItemTrackingProcessDefinitions/index.min.js +1 -1
  402. package/_manifest/Spdx2xVs3xComparisonToolOutput.json +4 -4
  403. package/_manifest/spdx_2.2/ESRPClientLogs0504231512019.json +1 -0
  404. package/_manifest/spdx_2.2/bsi.cose +0 -0
  405. package/_manifest/spdx_2.2/bsi.json +1 -1
  406. package/_manifest/spdx_2.2/manifest.cat +0 -0
  407. package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  408. package/_manifest/spdx_2.2/manifest.spdx.json +1 -1
  409. package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
  410. package/_manifest/spdx_3.0/manifest.spdx.json +1 -1
  411. package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +1 -1
  412. package/esm/Accounts/Accounts.js +58 -0
  413. package/esm/Accounts/Accounts.min.js +1 -0
  414. package/esm/Accounts/AccountsClient.js +59 -0
  415. package/esm/Accounts/AccountsClient.min.js +1 -0
  416. package/esm/Accounts/index.js +2 -0
  417. package/esm/Accounts/index.min.js +1 -0
  418. package/esm/AdvancedSecurity.Reporting/Reporting.js +200 -0
  419. package/esm/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  420. package/esm/AdvancedSecurity.Reporting/ReportingClient.js +228 -0
  421. package/esm/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -0
  422. package/esm/Alert/Alert.js +422 -0
  423. package/esm/Alert/Alert.min.js +1 -0
  424. package/esm/Alert/AlertClient.js +457 -0
  425. package/esm/Alert/AlertClient.min.js +1 -0
  426. package/esm/Build/Build.js +610 -0
  427. package/esm/Build/Build.min.js +1 -0
  428. package/esm/Build/BuildClient.js +2108 -0
  429. package/esm/Build/BuildClient.min.js +1 -0
  430. package/esm/Build/BuildServices.js +10 -0
  431. package/esm/Build/BuildServices.min.js +1 -0
  432. package/esm/Build/index.js +3 -0
  433. package/esm/Build/index.min.js +1 -0
  434. package/esm/Comments/Comments.js +90 -0
  435. package/esm/Comments/Comments.min.js +1 -0
  436. package/esm/Comments/index.js +1 -0
  437. package/esm/Comments/index.min.js +1 -0
  438. package/esm/Common/Client.js +22 -0
  439. package/esm/Common/Client.min.js +1 -0
  440. package/esm/Common/CommonServices.js +68 -0
  441. package/esm/Common/CommonServices.min.js +1 -0
  442. package/esm/Common/Context.js +1 -0
  443. package/esm/Common/Fetch.js +117 -0
  444. package/esm/Common/Fetch.min.js +1 -0
  445. package/esm/Common/RestClientBase.js +92 -0
  446. package/esm/Common/RestClientBase.min.js +1 -0
  447. package/esm/Common/System.js +36 -0
  448. package/esm/Common/System.min.js +1 -0
  449. package/esm/Common/SystemData.js +135 -0
  450. package/esm/Common/SystemData.min.js +1 -0
  451. package/esm/Common/Util/Serialization.js +48 -0
  452. package/esm/Common/Util/Serialization.min.js +1 -0
  453. package/esm/Common/Util/Url.js +595 -0
  454. package/esm/Common/Util/Url.min.js +1 -0
  455. package/esm/Common/index.js +3 -0
  456. package/esm/Common/index.min.js +1 -0
  457. package/esm/Contributions/Contributions.js +182 -0
  458. package/esm/Contributions/Contributions.min.js +1 -0
  459. package/esm/Contributions/ContributionsClient.js +78 -0
  460. package/esm/Contributions/ContributionsClient.min.js +1 -0
  461. package/esm/Contributions/index.js +2 -0
  462. package/esm/Contributions/index.min.js +1 -0
  463. package/esm/Core/Core.js +76 -0
  464. package/esm/Core/Core.min.js +1 -0
  465. package/esm/Core/CoreClient.js +573 -0
  466. package/esm/Core/CoreClient.min.js +1 -0
  467. package/esm/Core/index.js +2 -0
  468. package/esm/Core/index.min.js +1 -0
  469. package/esm/Dashboard/Dashboard.js +53 -0
  470. package/esm/Dashboard/Dashboard.min.js +1 -0
  471. package/esm/Dashboard/DashboardClient.js +278 -0
  472. package/esm/Dashboard/DashboardClient.min.js +1 -0
  473. package/esm/Dashboard/WidgetConfigHelpers.js +37 -0
  474. package/esm/Dashboard/WidgetConfigHelpers.min.js +1 -0
  475. package/esm/Dashboard/WidgetContracts.js +21 -0
  476. package/esm/Dashboard/WidgetContracts.min.js +1 -0
  477. package/esm/Dashboard/WidgetHelpers.js +129 -0
  478. package/esm/Dashboard/WidgetHelpers.min.js +1 -0
  479. package/esm/Dashboard/index.js +5 -0
  480. package/esm/Dashboard/index.min.js +1 -0
  481. package/esm/DistributedTaskCommon/DistributedTaskCommon.js +6 -0
  482. package/esm/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -0
  483. package/esm/DistributedTaskCommon/index.js +1 -0
  484. package/esm/DistributedTaskCommon/index.min.js +1 -0
  485. package/esm/ExtensionManagement/ExtensionManagement.js +281 -0
  486. package/esm/ExtensionManagement/ExtensionManagement.min.js +1 -0
  487. package/esm/ExtensionManagement/ExtensionManagementClient.js +486 -0
  488. package/esm/ExtensionManagement/ExtensionManagementClient.min.js +1 -0
  489. package/esm/ExtensionManagement/index.js +2 -0
  490. package/esm/ExtensionManagement/index.min.js +1 -0
  491. package/esm/Favorite/Favorite.js +6 -0
  492. package/esm/Favorite/Favorite.min.js +1 -0
  493. package/esm/Favorite/FavoriteClient.js +214 -0
  494. package/esm/Favorite/FavoriteClient.min.js +1 -0
  495. package/esm/FeatureAvailability/FeatureAvailability.js +6 -0
  496. package/esm/FeatureAvailability/FeatureAvailability.min.js +1 -0
  497. package/esm/FeatureAvailability/FeatureAvailabilityClient.js +113 -0
  498. package/esm/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -0
  499. package/esm/FeatureAvailability/index.js +2 -0
  500. package/esm/FeatureAvailability/index.min.js +1 -0
  501. package/esm/FeatureManagement/FeatureManagement.js +23 -0
  502. package/esm/FeatureManagement/FeatureManagement.min.js +1 -0
  503. package/esm/FeatureManagement/FeatureManagementClient.js +183 -0
  504. package/esm/FeatureManagement/FeatureManagementClient.min.js +1 -0
  505. package/esm/FeatureManagement/index.js +2 -0
  506. package/esm/FeatureManagement/index.min.js +1 -0
  507. package/esm/FileContainer/FileContainer.js +55 -0
  508. package/esm/FileContainer/FileContainer.min.js +1 -0
  509. package/esm/FileContainer/FileContainerClient.js +111 -0
  510. package/esm/FileContainer/FileContainerClient.min.js +1 -0
  511. package/esm/FileContainer/index.js +2 -0
  512. package/esm/FileContainer/index.min.js +1 -0
  513. package/esm/FormInput/FormInput.js +74 -0
  514. package/esm/FormInput/FormInput.min.js +1 -0
  515. package/esm/FormInput/index.js +1 -0
  516. package/esm/FormInput/index.min.js +1 -0
  517. package/esm/Gallery/Gallery.js +785 -0
  518. package/esm/Gallery/Gallery.min.js +1 -0
  519. package/esm/Gallery/GalleryClient.js +1701 -0
  520. package/esm/Gallery/GalleryClient.min.js +1 -0
  521. package/esm/Gallery/index.js +2 -0
  522. package/esm/Gallery/index.min.js +1 -0
  523. package/esm/Git/CodeEditorTypes.js +24 -0
  524. package/esm/Git/CodeEditorTypes.min.js +1 -0
  525. package/esm/Git/Git.js +827 -0
  526. package/esm/Git/Git.min.js +1 -0
  527. package/esm/Git/GitClient.js +3571 -0
  528. package/esm/Git/GitClient.min.js +1 -0
  529. package/esm/Git/GitServices.js +7 -0
  530. package/esm/Git/GitServices.min.js +1 -0
  531. package/esm/Git/index.js +4 -0
  532. package/esm/Git/index.min.js +1 -0
  533. package/esm/Graph/Graph.js +11 -0
  534. package/esm/Graph/Graph.min.js +1 -0
  535. package/esm/Graph/GraphClient.js +644 -0
  536. package/esm/Graph/GraphClient.min.js +1 -0
  537. package/esm/Graph/index.js +2 -0
  538. package/esm/Graph/index.min.js +1 -0
  539. package/esm/Identities/Identities.js +46 -0
  540. package/esm/Identities/Identities.min.js +1 -0
  541. package/esm/Identities/IdentityProvider.js +43 -0
  542. package/esm/Identities/IdentityProvider.min.js +1 -0
  543. package/esm/Identities/IdentityService.js +10 -0
  544. package/esm/Identities/IdentityService.min.js +1 -0
  545. package/esm/Identities/index.js +3 -0
  546. package/esm/Identities/index.min.js +1 -0
  547. package/esm/Locations/Locations.js +25 -0
  548. package/esm/Locations/Locations.min.js +1 -0
  549. package/esm/Locations/LocationsClient.js +178 -0
  550. package/esm/Locations/LocationsClient.min.js +1 -0
  551. package/esm/Locations/index.js +2 -0
  552. package/esm/Locations/index.min.js +1 -0
  553. package/esm/Management/Management.js +24 -0
  554. package/esm/Management/Management.min.js +1 -0
  555. package/esm/Management/ManagementClient.js +302 -0
  556. package/esm/Management/ManagementClient.min.js +1 -0
  557. package/esm/Notification/Notification.js +382 -0
  558. package/esm/Notification/Notification.min.js +1 -0
  559. package/esm/Notification/NotificationClient.js +359 -0
  560. package/esm/Notification/NotificationClient.min.js +1 -0
  561. package/esm/Notification/index.js +2 -0
  562. package/esm/Notification/index.min.js +1 -0
  563. package/esm/Operations/Operations.js +35 -0
  564. package/esm/Operations/Operations.min.js +1 -0
  565. package/esm/Operations/OperationsClient.js +30 -0
  566. package/esm/Operations/OperationsClient.min.js +1 -0
  567. package/esm/Operations/index.js +2 -0
  568. package/esm/Operations/index.min.js +1 -0
  569. package/esm/Pipelines/Pipelines.js +79 -0
  570. package/esm/Pipelines/Pipelines.min.js +1 -0
  571. package/esm/Pipelines/PipelinesClient.js +227 -0
  572. package/esm/Pipelines/PipelinesClient.min.js +1 -0
  573. package/esm/Policy/Policy.js +35 -0
  574. package/esm/Policy/Policy.min.js +1 -0
  575. package/esm/Policy/PolicyClient.js +237 -0
  576. package/esm/Policy/PolicyClient.min.js +1 -0
  577. package/esm/Policy/index.js +2 -0
  578. package/esm/Policy/index.min.js +1 -0
  579. package/esm/Profile/Profile.js +32 -0
  580. package/esm/Profile/Profile.min.js +1 -0
  581. package/esm/Profile/ProfileClient.js +240 -0
  582. package/esm/Profile/ProfileClient.min.js +1 -0
  583. package/esm/Profile/index.js +2 -0
  584. package/esm/Profile/index.min.js +1 -0
  585. package/esm/ProjectAnalysis/ProjectAnalysis.js +15 -0
  586. package/esm/ProjectAnalysis/ProjectAnalysis.min.js +1 -0
  587. package/esm/ProjectAnalysis/ProjectAnalysisClient.js +89 -0
  588. package/esm/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -0
  589. package/esm/ProjectAnalysis/index.js +2 -0
  590. package/esm/ProjectAnalysis/index.min.js +1 -0
  591. package/esm/Release/Release.js +873 -0
  592. package/esm/Release/Release.min.js +1 -0
  593. package/esm/Release/ReleaseClient.js +1816 -0
  594. package/esm/Release/ReleaseClient.min.js +1 -0
  595. package/esm/Release/index.js +2 -0
  596. package/esm/Release/index.min.js +1 -0
  597. package/esm/ResourceUsage/ResourceUsage.js +6 -0
  598. package/esm/ResourceUsage/ResourceUsage.min.js +1 -0
  599. package/esm/ResourceUsage/ResourceUsageClient.js +34 -0
  600. package/esm/ResourceUsage/ResourceUsageClient.min.js +1 -0
  601. package/esm/ServiceEndpoint/ServiceEndpoint.js +81 -0
  602. package/esm/ServiceEndpoint/ServiceEndpoint.min.js +1 -0
  603. package/esm/ServiceEndpoint/ServiceEndpointClient.js +489 -0
  604. package/esm/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
  605. package/esm/ServiceEndpoint/index.js +2 -0
  606. package/esm/ServiceEndpoint/index.min.js +1 -0
  607. package/esm/ServiceHooks/ServiceHooks.js +111 -0
  608. package/esm/ServiceHooks/ServiceHooks.min.js +1 -0
  609. package/esm/ServiceHooks/ServiceHooksClient.js +375 -0
  610. package/esm/ServiceHooks/ServiceHooksClient.min.js +1 -0
  611. package/esm/ServiceHooks/index.js +2 -0
  612. package/esm/ServiceHooks/index.min.js +1 -0
  613. package/esm/TaskAgent/TaskAgent.js +590 -0
  614. package/esm/TaskAgent/TaskAgent.min.js +1 -0
  615. package/esm/TaskAgent/TaskAgentClient.js +2946 -0
  616. package/esm/TaskAgent/TaskAgentClient.min.js +1 -0
  617. package/esm/TaskAgent/index.js +2 -0
  618. package/esm/TaskAgent/index.min.js +1 -0
  619. package/esm/Test/Test.js +1065 -0
  620. package/esm/Test/Test.min.js +1 -0
  621. package/esm/Test/TestClient.js +1655 -0
  622. package/esm/Test/TestClient.min.js +1 -0
  623. package/esm/Test/index.js +2 -0
  624. package/esm/Test/index.min.js +1 -0
  625. package/esm/TestPlan/TestPlan.js +267 -0
  626. package/esm/TestPlan/TestPlan.min.js +1 -0
  627. package/esm/TestPlan/TestPlanClient.js +1051 -0
  628. package/esm/TestPlan/TestPlanClient.min.js +1 -0
  629. package/esm/TestPlan/index.js +2 -0
  630. package/esm/TestPlan/index.min.js +1 -0
  631. package/esm/TestResults/TestResults.js +6 -0
  632. package/esm/TestResults/TestResults.min.js +1 -0
  633. package/esm/TestResults/TestResultsClient.js +2822 -0
  634. package/esm/TestResults/TestResultsClient.min.js +1 -0
  635. package/esm/TestResults/index.js +2 -0
  636. package/esm/TestResults/index.min.js +1 -0
  637. package/esm/Tfvc/Tfvc.js +103 -0
  638. package/esm/Tfvc/Tfvc.min.js +1 -0
  639. package/esm/Tfvc/TfvcClient.js +559 -0
  640. package/esm/Tfvc/TfvcClient.min.js +1 -0
  641. package/esm/Tfvc/index.js +2 -0
  642. package/esm/Tfvc/index.min.js +1 -0
  643. package/esm/WebApi/WebApi.js +52 -0
  644. package/esm/WebApi/WebApi.min.js +1 -0
  645. package/esm/WebApi/index.js +1 -0
  646. package/esm/WebApi/index.min.js +1 -0
  647. package/esm/Wiki/Wiki.js +19 -0
  648. package/esm/Wiki/Wiki.min.js +1 -0
  649. package/esm/Wiki/WikiClient.js +528 -0
  650. package/esm/Wiki/WikiClient.min.js +1 -0
  651. package/esm/Wiki/index.js +2 -0
  652. package/esm/Wiki/index.min.js +1 -0
  653. package/esm/Work/Work.js +184 -0
  654. package/esm/Work/Work.min.js +1 -0
  655. package/esm/Work/WorkClient.js +1128 -0
  656. package/esm/Work/WorkClient.min.js +1 -0
  657. package/esm/Work/index.js +2 -0
  658. package/esm/Work/index.min.js +1 -0
  659. package/esm/WorkItemTracking/WorkItemTracking.js +428 -0
  660. package/esm/WorkItemTracking/WorkItemTracking.min.js +1 -0
  661. package/esm/WorkItemTracking/WorkItemTrackingClient.js +1525 -0
  662. package/esm/WorkItemTracking/WorkItemTrackingClient.min.js +1 -0
  663. package/esm/WorkItemTracking/WorkItemTrackingServices.js +15 -0
  664. package/esm/WorkItemTracking/WorkItemTrackingServices.min.js +1 -0
  665. package/esm/WorkItemTracking/index.js +3 -0
  666. package/esm/WorkItemTracking/index.min.js +1 -0
  667. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.js +296 -0
  668. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -0
  669. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1097 -0
  670. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -0
  671. package/esm/WorkItemTrackingProcess/index.js +2 -0
  672. package/esm/WorkItemTrackingProcess/index.min.js +1 -0
  673. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +93 -0
  674. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -0
  675. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +886 -0
  676. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -0
  677. package/esm/WorkItemTrackingProcessDefinitions/index.js +2 -0
  678. package/esm/WorkItemTrackingProcessDefinitions/index.min.js +1 -0
  679. package/esm/index.js +1 -0
  680. package/esm/index.min.js +1 -0
  681. package/index.d.ts +1 -1
  682. package/index.js +17 -8
  683. package/index.min.js +1 -1
  684. package/package.json +232 -37
  685. package/Boards/Boards.d.ts +0 -631
  686. package/Boards/Boards.js +0 -26
  687. package/Boards/Boards.min.js +0 -1
  688. package/Boards/BoardsClient.d.ts +0 -187
  689. package/Boards/BoardsClient.js +0 -589
  690. package/Boards/BoardsClient.min.js +0 -1
  691. package/Boards/index.d.ts +0 -2
  692. package/Boards/index.js +0 -9
  693. package/Boards/index.min.js +0 -1
  694. package/_manifest/spdx_2.2/ESRPClientLogs0331143549591.json +0 -1
  695. package/_manifest/spdx_3.0/ESRPClientLogs0331143549461.json +0 -1
  696. package/_manifest/spdx_3.0/bsi.cose +0 -0
  697. package/_manifest/spdx_3.0/bsi.json +0 -1
  698. package/_manifest/spdx_3.0/manifest.cat +0 -0
  699. package/_manifest/spdx_3.0/manifest.spdx.cose +0 -0
@@ -1,1466 +1,1468 @@
1
- import { IVssRestClientOptions } from "../Common/Context";
2
- import { RestClientBase } from "../Common/RestClientBase";
3
- import * as TfsCore from "../Core/Core";
4
- import * as Git from "../Git/Git";
5
- import * as WebApi from "../WebApi/WebApi";
6
- export declare class GitRestClient extends RestClientBase {
7
- constructor(options: IVssRestClientOptions);
8
- static readonly RESOURCE_AREA_ID: string;
9
- /**
10
- * DELETE Deletes Enablement status and BillableCommitters data from DB. Deleting the enablement data will effectively disable it for the repositories affected.
11
- *
12
- * @param allProjects -
13
- * @param includeBillableCommitters -
14
- * @param projectIds -
15
- */
16
- deleteEnablementStatus(allProjects: boolean, includeBillableCommitters?: boolean, projectIds?: string[]): Promise<void>;
17
- /**
18
- * GET Enablement status for project's repositories.
19
- *
20
- * @param projectIds - Null defaults to all projects in the host, list of project's repos status to return
21
- * @param billingDate - UTC expected, Null defaults to UtcNow(), can be provided for a point in time status
22
- * @param skip - Skip X rows of resultset to simulate paging.
23
- * @param take - Return Y rows of resultset to simulate paging.
24
- */
25
- getEnablementStatus(projectIds?: string[], billingDate?: Date, skip?: number, take?: number): Promise<Git.AdvSecEnablementStatus[]>;
26
- /**
27
- * @param enableOnCreateHost -
28
- */
29
- getEnableOnCreateHost(enableOnCreateHost: boolean): Promise<boolean>;
30
- /**
31
- * @param enableOnCreateProjectId -
32
- */
33
- getEnableOnCreateProject(enableOnCreateProjectId: string): Promise<boolean>;
34
- /**
35
- * @param enableOnCreateHost -
36
- */
37
- setEnableOnCreateHost(enableOnCreateHost: boolean): Promise<void>;
38
- /**
39
- * @param enableOnCreateProjectId -
40
- * @param enableOnStatus -
41
- */
42
- setEnableOnCreateProject(enableOnCreateProjectId: string, enableOnStatus: boolean): Promise<void>;
43
- /**
44
- * POST Enablement status for repositories.
45
- *
46
- * @param enablementUpdates -
47
- */
48
- updateEnablementStatus(enablementUpdates: Git.AdvSecEnablementUpdate[]): Promise<void>;
49
- /**
50
- * Get estimated billable pushers for an Organization for last 90 days.
51
- *
52
- */
53
- getEstimatedBillablePushersOrg(): Promise<Git.BillablePusher[]>;
54
- /**
55
- * Get estimated billable pushers for a project for last 90 days.
56
- *
57
- * @param project - Project ID or project name
58
- */
59
- getEstimatedBillablePushersProject(project: string): Promise<Git.BillablePusher[]>;
60
- /**
61
- * Get estimated billable committers for a repository for the last 90 days.
62
- *
63
- * @param project - Project ID or project name
64
- * @param repositoryId -
65
- */
66
- getEstimatedBillableCommittersRepo(project: string, repositoryId: string): Promise<Git.BillableCommitter[]>;
67
- /**
68
- * GET Advanced Security Permission status.
69
- *
70
- * @param projectName -
71
- * @param repositoryId - Repository user is trying to access
72
- * @param permission - Permission being requestd, must be "viewAlert" "dismissAlert" "manage" "viewEnablement" or "repoRead"
73
- */
74
- getPermission(projectName?: string, repositoryId?: string, permission?: string): Promise<boolean>;
75
- /**
76
- * POST request to get accessible repositories based on permission (batch operation).
77
- *
78
- * @param request - Request containing permission and repository IDs to check
79
- */
80
- getAccessibleRepositories(request: Git.GetAccessibleRepositoriesRequest): Promise<Git.GetAccessibleRepositoriesResponse>;
81
- /**
82
- * Create an annotated tag.
83
- *
84
- * @param tagObject - Object containing details of tag to be created.
85
- * @param project - Project ID or project name
86
- * @param repositoryId - ID or name of the repository.
87
- */
88
- createAnnotatedTag(tagObject: Git.GitAnnotatedTag, project: string, repositoryId: string): Promise<Git.GitAnnotatedTag>;
89
- /**
90
- * Get an annotated tag.
91
- *
92
- * @param project - Project ID or project name
93
- * @param repositoryId - ID or name of the repository.
94
- * @param objectId - ObjectId (Sha1Id) of tag to get.
95
- */
96
- getAnnotatedTag(project: string, repositoryId: string, objectId: string): Promise<Git.GitAnnotatedTag>;
97
- /**
98
- * Retrieve actual billable committers for Advanced Security service for a given date.
99
- *
100
- * @param project - Project ID or project name
101
- * @param billingDate - UTC expected. If not specified defaults to the previous billing day.
102
- * @param skip - Skip X rows of resultset to simulate paging.
103
- * @param take - Return Y rows of resultset to simulate paging.
104
- */
105
- getBillableCommitters(project: string, billingDate?: Date, skip?: number, take?: number): Promise<Git.BillableCommitter[]>;
106
- /**
107
- * Retrieve detailed actual billable committers for Advanced Security service for a given date. Detailed results intentionally does not filter out soft deleted projects and repositories to help diagnose billing issues.
108
- *
109
- * @param project - Project ID or project name
110
- * @param includeDetails - Return all the details on the billable committers.
111
- * @param billingDate - UTC expected. If not specified defaults to the previous billing day.
112
- */
113
- getBillableCommittersDetail(project: string, includeDetails: string, billingDate?: Date): Promise<Git.BillableCommitterDetail[]>;
114
- /**
115
- * Get a single blob.
116
- *
117
- * @param repositoryId - The name or ID of the repository.
118
- * @param sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
119
- * @param project - Project ID or project name
120
- * @param download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
121
- * @param fileName - Provide a fileName to use for a download.
122
- * @param resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
123
- */
124
- getBlob(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<Git.GitBlobRef>;
125
- /**
126
- * Get a single blob.
127
- *
128
- * @param repositoryId - The name or ID of the repository.
129
- * @param sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
130
- * @param project - Project ID or project name
131
- * @param download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
132
- * @param fileName - Provide a fileName to use for a download.
133
- * @param resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
134
- */
135
- getBlobContent(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<ArrayBuffer>;
136
- /**
137
- * Gets one or more blobs in a zip file download.
138
- *
139
- * @param blobIds - Blob IDs (SHA1 hashes) to be returned in the zip file.
140
- * @param repositoryId - The name or ID of the repository.
141
- * @param project - Project ID or project name
142
- * @param filename -
143
- */
144
- getBlobsZip(blobIds: string[], repositoryId: string, project?: string, filename?: string): Promise<ArrayBuffer>;
145
- /**
146
- * Get a single blob.
147
- *
148
- * @param repositoryId - The name or ID of the repository.
149
- * @param sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
150
- * @param project - Project ID or project name
151
- * @param download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
152
- * @param fileName - Provide a fileName to use for a download.
153
- * @param resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
154
- */
155
- getBlobZip(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<ArrayBuffer>;
156
- /**
157
- * Retrieve statistics about a single branch.
158
- *
159
- * @param repositoryId - The name or ID of the repository.
160
- * @param name - Name of the branch.
161
- * @param project - Project ID or project name
162
- * @param baseVersionDescriptor - Identifies the commit or branch to use as the base.
163
- */
164
- getBranch(repositoryId: string, name: string, project?: string, baseVersionDescriptor?: Git.GitVersionDescriptor): Promise<Git.GitBranchStats>;
165
- /**
166
- * Retrieve statistics about all branches within a repository.
167
- *
168
- * @param repositoryId - The name or ID of the repository.
169
- * @param project - Project ID or project name
170
- * @param baseVersionDescriptor - Identifies the commit or branch to use as the base.
171
- */
172
- getBranches(repositoryId: string, project?: string, baseVersionDescriptor?: Git.GitVersionDescriptor): Promise<Git.GitBranchStats[]>;
173
- /**
174
- * Retrieve statistics for multiple commits
175
- *
176
- * @param searchCriteria - Base Commit and List of Target Commits to compare.
177
- * @param repositoryId - The name or ID of the repository.
178
- * @param project - Project ID or project name
179
- */
180
- getBranchStatsBatch(searchCriteria: Git.GitQueryBranchStatsCriteria, repositoryId: string, project?: string): Promise<Git.GitBranchStats[]>;
181
- /**
182
- * Retrieve changes for a particular commit.
183
- *
184
- * @param commitId - The id of the commit.
185
- * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
186
- * @param project - Project ID or project name
187
- * @param top - The maximum number of changes to return.
188
- * @param skip - The number of changes to skip.
189
- */
190
- getChanges(commitId: string, repositoryId: string, project?: string, top?: number, skip?: number): Promise<Git.GitCommitChanges>;
191
- /**
192
- * Retrieve one conflict for a cherry pick by ID
193
- *
194
- * @param repositoryId -
195
- * @param cherryPickId -
196
- * @param conflictId -
197
- * @param project - Project ID or project name
198
- */
199
- getCherryPickConflict(repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
200
- /**
201
- * Retrieve all conflicts for a cherry pick
202
- *
203
- * @param repositoryId -
204
- * @param cherryPickId -
205
- * @param project - Project ID or project name
206
- * @param continuationToken -
207
- * @param top -
208
- * @param excludeResolved -
209
- * @param onlyResolved -
210
- * @param includeObsolete -
211
- */
212
- getCherryPickConflicts(repositoryId: string, cherryPickId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<WebApi.PagedList<Git.GitConflict>>;
213
- /**
214
- * Update merge conflict resolution
215
- *
216
- * @param conflict -
217
- * @param repositoryId -
218
- * @param cherryPickId -
219
- * @param conflictId -
220
- * @param project - Project ID or project name
221
- */
222
- updateCherryPickConflict(conflict: Git.GitConflict, repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
223
- /**
224
- * Update multiple merge conflict resolutions
225
- *
226
- * @param conflictUpdates -
227
- * @param repositoryId -
228
- * @param cherryPickId -
229
- * @param project - Project ID or project name
230
- */
231
- updateCherryPickConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, cherryPickId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
232
- /**
233
- * Given a commitId, returns a list of commits that are in the same cherry-pick family.
234
- *
235
- * @param repositoryNameOrId -
236
- * @param commitId -
237
- * @param project - Project ID or project name
238
- * @param includeLinks -
239
- */
240
- getCherryPickRelationships(repositoryNameOrId: string, commitId: string, project?: string, includeLinks?: boolean): Promise<Git.GitCommitRef[]>;
241
- /**
242
- * Cherry pick a specific commit or commits that are associated to a pull request into a new branch.
243
- *
244
- * @param cherryPickToCreate -
245
- * @param project - Project ID or project name
246
- * @param repositoryId - ID of the repository.
247
- */
248
- createCherryPick(cherryPickToCreate: Git.GitAsyncRefOperationParameters, project: string, repositoryId: string): Promise<Git.GitCherryPick>;
249
- /**
250
- * Retrieve information about a cherry pick operation by cherry pick Id.
251
- *
252
- * @param project - Project ID or project name
253
- * @param cherryPickId - ID of the cherry pick.
254
- * @param repositoryId - ID of the repository.
255
- */
256
- getCherryPick(project: string, cherryPickId: number, repositoryId: string): Promise<Git.GitCherryPick>;
257
- /**
258
- * Retrieve information about a cherry pick operation for a specific branch. This operation is expensive due to the underlying object structure, so this API only looks at the 1000 most recent cherry pick operations.
259
- *
260
- * @param project - Project ID or project name
261
- * @param repositoryId - ID of the repository.
262
- * @param refName - The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation.
263
- */
264
- getCherryPickForRefName(project: string, repositoryId: string, refName: string): Promise<Git.GitCherryPick>;
265
- /**
266
- * Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.
267
- *
268
- * @param repositoryId - The name or ID of the repository.
269
- * @param project - Project ID or project name
270
- * @param diffCommonCommit - If true, diff between common and target commits. If false, diff between base and target commits.
271
- * @param top - Maximum number of changes to return. Defaults to 100.
272
- * @param skip - Number of changes to skip
273
- * @param baseVersionDescriptor - Descriptor for base commit.
274
- * @param targetVersionDescriptor - Descriptor for target commit.
275
- */
276
- getCommitDiffs(repositoryId: string, project?: string, diffCommonCommit?: boolean, top?: number, skip?: number, baseVersionDescriptor?: Git.GitBaseVersionDescriptor, targetVersionDescriptor?: Git.GitTargetVersionDescriptor): Promise<Git.GitCommitDiffs>;
277
- /**
278
- * Retrieve a particular commit.
279
- *
280
- * @param commitId - The id of the commit.
281
- * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
282
- * @param project - Project ID or project name
283
- * @param changeCount - The number of changes to include in the result.
284
- */
285
- getCommit(commitId: string, repositoryId: string, project?: string, changeCount?: number): Promise<Git.GitCommit>;
286
- /**
287
- * Retrieve git commits for a project
288
- *
289
- * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
290
- * @param searchCriteria -
291
- * @param project - Project ID or project name
292
- */
293
- getCommits(repositoryId: string, searchCriteria: Git.GitQueryCommitsCriteria, project?: string): Promise<Git.GitCommitRef[]>;
294
- /**
295
- * Retrieve a list of commits associated with a particular push.
296
- *
297
- * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
298
- * @param pushId - The id of the push.
299
- * @param project - Project ID or project name
300
- * @param top - The maximum number of commits to return ("get the top x commits").
301
- * @param skip - The number of commits to skip.
302
- * @param includeLinks - Set to false to avoid including REST Url links for resources. Defaults to true.
303
- */
304
- getPushCommits(repositoryId: string, pushId: number, project?: string, top?: number, skip?: number, includeLinks?: boolean): Promise<Git.GitCommitRef[]>;
305
- /**
306
- * Retrieve git commits for a project matching the search criteria
307
- *
308
- * @param searchCriteria - Search options
309
- * @param repositoryId - The name or ID of the repository.
310
- * @param project - Project ID or project name
311
- * @param skip - Number of commits to skip. The value cannot exceed 3,000,000.
312
- * @param top - Maximum number of commits to return. The value cannot exceed 50,000.
313
- * @param includeStatuses - True to include additional commit status information.
314
- */
315
- getCommitsBatch(searchCriteria: Git.GitQueryCommitsCriteria, repositoryId: string, project?: string, skip?: number, top?: number, includeStatuses?: boolean): Promise<Git.GitCommitRef[]>;
316
- /**
317
- * Retrieve deleted git repositories.
318
- *
319
- * @param project - Project ID or project name
320
- */
321
- getDeletedRepositories(project: string): Promise<Git.GitDeletedRepository[]>;
322
- /**
323
- * Get the file diffs for each of the specified files
324
- *
325
- * @param fileDiffsCriteria - List of file parameters objects
326
- * @param project - Project ID or project name
327
- * @param repositoryId - The name or ID of the repository
328
- */
329
- getFileDiffs(fileDiffsCriteria: Git.FileDiffsCriteria, project: string, repositoryId: string): Promise<Git.FileDiff[]>;
330
- /**
331
- * Retrieve all forks of a repository in the collection.
332
- *
333
- * @param repositoryNameOrId - The name or ID of the repository.
334
- * @param collectionId - Team project collection ID.
335
- * @param project - Project ID or project name
336
- * @param includeLinks - True to include links.
337
- */
338
- getForks(repositoryNameOrId: string, collectionId: string, project?: string, includeLinks?: boolean): Promise<Git.GitRepositoryRef[]>;
339
- /**
340
- * Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the \<a href="https://docs.microsoft.com/en-us/rest/api/vsts/git/repositories/create?view=azure-devops-rest-5.1"\> repositories endpoint\</a\>
341
- *
342
- * @param syncParams - Source repository and ref mapping.
343
- * @param repositoryNameOrId - The name or ID of the repository.
344
- * @param project - Project ID or project name
345
- * @param includeLinks - True to include links
346
- */
347
- createForkSyncRequest(syncParams: Git.GitForkSyncRequestParameters, repositoryNameOrId: string, project?: string, includeLinks?: boolean): Promise<Git.GitForkSyncRequest>;
348
- /**
349
- * Get a specific fork sync operation's details.
350
- *
351
- * @param repositoryNameOrId - The name or ID of the repository.
352
- * @param forkSyncOperationId - OperationId of the sync request.
353
- * @param project - Project ID or project name
354
- * @param includeLinks - True to include links.
355
- */
356
- getForkSyncRequest(repositoryNameOrId: string, forkSyncOperationId: number, project?: string, includeLinks?: boolean): Promise<Git.GitForkSyncRequest>;
357
- /**
358
- * Retrieve all requested fork sync operations on this repository.
359
- *
360
- * @param repositoryNameOrId - The name or ID of the repository.
361
- * @param project - Project ID or project name
362
- * @param includeAbandoned - True to include abandoned requests.
363
- * @param includeLinks - True to include links.
364
- */
365
- getForkSyncRequests(repositoryNameOrId: string, project?: string, includeAbandoned?: boolean, includeLinks?: boolean): Promise<Git.GitForkSyncRequest[]>;
366
- /**
367
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
368
- *
369
- * @param repositoryId - The name or ID of the repository.
370
- * @param path - The item path.
371
- * @param project - Project ID or project name
372
- * @param scopePath - The path scope. The default is null.
373
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
374
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
375
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
376
- * @param download - Set to true to download the response as a file. Default is false.
377
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
378
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
379
- * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
380
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
381
- */
382
- getHfsItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<Git.GitItem>;
383
- /**
384
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
385
- *
386
- * @param repositoryId - The name or ID of the repository.
387
- * @param path - The item path.
388
- * @param project - Project ID or project name
389
- * @param scopePath - The path scope. The default is null.
390
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
391
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
392
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
393
- * @param download - Set to true to download the response as a file. Default is false.
394
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
395
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
396
- * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
397
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
398
- */
399
- getHfsItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
400
- /**
401
- * Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
402
- *
403
- * @param repositoryId - The name or ID of the repository.
404
- * @param project - Project ID or project name
405
- * @param scopePath - The path scope. The default is null.
406
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
407
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
408
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
409
- * @param download - Set to true to download the response as a file. Default is false.
410
- * @param includeLinks - Set to true to include links to items. Default is false.
411
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
412
- * @param zipForUnix - Set to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
413
- */
414
- getHfsItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: Git.GitVersionDescriptor, zipForUnix?: boolean): Promise<Git.GitItem[]>;
415
- /**
416
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
417
- *
418
- * @param repositoryId - The name or ID of the repository.
419
- * @param path - The item path.
420
- * @param project - Project ID or project name
421
- * @param scopePath - The path scope. The default is null.
422
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
423
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
424
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
425
- * @param download - Set to true to download the response as a file. Default is false.
426
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
427
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
428
- * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
429
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
430
- */
431
- getHfsItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<string>;
432
- /**
433
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
434
- *
435
- * @param repositoryId - The name or ID of the repository.
436
- * @param path - The item path.
437
- * @param project - Project ID or project name
438
- * @param scopePath - The path scope. The default is null.
439
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
440
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
441
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
442
- * @param download - Set to true to download the response as a file. Default is false.
443
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
444
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
445
- * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
446
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
447
- */
448
- getHfsItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
449
- /**
450
- * Create an import request.
451
- *
452
- * @param importRequest - The import request to create.
453
- * @param project - Project ID or project name
454
- * @param repositoryId - The name or ID of the repository.
455
- */
456
- createImportRequest(importRequest: Git.GitImportRequest, project: string, repositoryId: string): Promise<Git.GitImportRequest>;
457
- /**
458
- * Retrieve a particular import request.
459
- *
460
- * @param project - Project ID or project name
461
- * @param repositoryId - The name or ID of the repository.
462
- * @param importRequestId - The unique identifier for the import request.
463
- */
464
- getImportRequest(project: string, repositoryId: string, importRequestId: number): Promise<Git.GitImportRequest>;
465
- /**
466
- * Retrieve import requests for a repository.
467
- *
468
- * @param project - Project ID or project name
469
- * @param repositoryId - The name or ID of the repository.
470
- * @param includeAbandoned - True to include abandoned import requests in the results.
471
- */
472
- queryImportRequests(project: string, repositoryId: string, includeAbandoned?: boolean): Promise<Git.GitImportRequest[]>;
473
- /**
474
- * Retry or abandon a failed import request.
475
- *
476
- * @param importRequestToUpdate - The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned.
477
- * @param project - Project ID or project name
478
- * @param repositoryId - The name or ID of the repository.
479
- * @param importRequestId - The unique identifier for the import request to update.
480
- */
481
- updateImportRequest(importRequestToUpdate: Git.GitImportRequest, project: string, repositoryId: string, importRequestId: number): Promise<Git.GitImportRequest>;
482
- /**
483
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
484
- *
485
- * @param repositoryId - The name or ID of the repository.
486
- * @param path - The item path.
487
- * @param project - Project ID or project name
488
- * @param scopePath - The path scope. The default is null.
489
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
490
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
491
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
492
- * @param download - Set to true to download the response as a file. Default is false.
493
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
494
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
495
- * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
496
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
497
- */
498
- getItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<Git.GitItem>;
499
- /**
500
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
501
- *
502
- * @param repositoryId - The name or ID of the repository.
503
- * @param path - The item path.
504
- * @param project - Project ID or project name
505
- * @param scopePath - The path scope. The default is null.
506
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
507
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
508
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
509
- * @param download - Set to true to download the response as a file. Default is false.
510
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
511
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
512
- * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
513
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
514
- */
515
- getItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
516
- /**
517
- * Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
518
- *
519
- * @param repositoryId - The name or ID of the repository.
520
- * @param project - Project ID or project name
521
- * @param scopePath - The path scope. The default is null.
522
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
523
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
524
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
525
- * @param download - Set to true to download the response as a file. Default is false.
526
- * @param includeLinks - Set to true to include links to items. Default is false.
527
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
528
- * @param zipForUnix - Set to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
529
- */
530
- getItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: Git.GitVersionDescriptor, zipForUnix?: boolean): Promise<Git.GitItem[]>;
531
- /**
532
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
533
- *
534
- * @param repositoryId - The name or ID of the repository.
535
- * @param path - The item path.
536
- * @param project - Project ID or project name
537
- * @param scopePath - The path scope. The default is null.
538
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
539
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
540
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
541
- * @param download - Set to true to download the response as a file. Default is false.
542
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
543
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
544
- * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
545
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
546
- */
547
- getItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<string>;
548
- /**
549
- * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
550
- *
551
- * @param repositoryId - The name or ID of the repository.
552
- * @param path - The item path.
553
- * @param project - Project ID or project name
554
- * @param scopePath - The path scope. The default is null.
555
- * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
556
- * @param includeContentMetadata - Set to true to include content metadata. Default is false.
557
- * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
558
- * @param download - Set to true to download the response as a file. Default is false.
559
- * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
560
- * @param includeContent - Set to true to include item content when requesting json. Default is false.
561
- * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
562
- * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
563
- */
564
- getItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
565
- /**
566
- * Retrieves a batch of items in a repo / project for a given list of paths or a long path
567
- *
568
- * @param requestData - Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references.
569
- * @param repositoryId - The name or ID of the repository
570
- * @param project - Project ID or project name
571
- */
572
- getItemsBatch(requestData: Git.GitItemRequestData, repositoryId: string, project?: string): Promise<Git.GitItem[][]>;
573
- /**
574
- * Find the merge bases of two commits, optionally across forks. If otherRepositoryId is not specified, the merge bases will only be calculated within the context of the local repositoryNameOrId.
575
- *
576
- * @param repositoryNameOrId - ID or name of the local repository.
577
- * @param commitId - First commit, usually the tip of the target branch of the potential merge.
578
- * @param otherCommitId - Other commit, usually the tip of the source branch of the potential merge.
579
- * @param project - Project ID or project name
580
- * @param otherCollectionId - The collection ID where otherCommitId lives.
581
- * @param otherRepositoryId - The repository ID where otherCommitId lives.
582
- */
583
- getMergeBases(repositoryNameOrId: string, commitId: string, otherCommitId: string, project?: string, otherCollectionId?: string, otherRepositoryId?: string): Promise<Git.GitCommitRef[]>;
584
- /**
585
- * Request a git merge operation. Currently we support merging only 2 commits.
586
- *
587
- * @param mergeParameters - Parents commitIds and merge commit messsage.
588
- * @param project - Project ID or project name
589
- * @param repositoryNameOrId - The name or ID of the repository.
590
- * @param includeLinks - True to include links
591
- */
592
- createMergeRequest(mergeParameters: Git.GitMergeParameters, project: string, repositoryNameOrId: string, includeLinks?: boolean): Promise<Git.GitMerge>;
593
- /**
594
- * Get a specific merge operation's details.
595
- *
596
- * @param project - Project ID or project name
597
- * @param repositoryNameOrId - The name or ID of the repository.
598
- * @param mergeOperationId - OperationId of the merge request.
599
- * @param includeLinks - True to include links
600
- */
601
- getMergeRequest(project: string, repositoryNameOrId: string, mergeOperationId: number, includeLinks?: boolean): Promise<Git.GitMerge>;
602
- /**
603
- * Attach a new file to a pull request.
604
- *
605
- * @param content - Content to upload
606
- * @param fileName - The name of the file.
607
- * @param repositoryId - The repository ID of the pull request’s target branch.
608
- * @param pullRequestId - ID of the pull request.
609
- * @param project - Project ID or project name
610
- */
611
- createAttachment(content: any, fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.Attachment>;
612
- /**
613
- * Delete a pull request attachment.
614
- *
615
- * @param fileName - The name of the attachment to delete.
616
- * @param repositoryId - The repository ID of the pull request’s target branch.
617
- * @param pullRequestId - ID of the pull request.
618
- * @param project - Project ID or project name
619
- */
620
- deleteAttachment(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
621
- /**
622
- * Get the file content of a pull request attachment.
623
- *
624
- * @param fileName - The name of the attachment.
625
- * @param repositoryId - The repository ID of the pull request’s target branch.
626
- * @param pullRequestId - ID of the pull request.
627
- * @param project - Project ID or project name
628
- */
629
- getAttachmentContent(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<ArrayBuffer>;
630
- /**
631
- * Get a list of files attached to a given pull request.
632
- *
633
- * @param repositoryId - The repository ID of the pull request’s target branch.
634
- * @param pullRequestId - ID of the pull request.
635
- * @param project - Project ID or project name
636
- */
637
- getAttachments(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.Attachment[]>;
638
- /**
639
- * Get the file content of a pull request attachment.
640
- *
641
- * @param fileName - The name of the attachment.
642
- * @param repositoryId - The repository ID of the pull request’s target branch.
643
- * @param pullRequestId - ID of the pull request.
644
- * @param project - Project ID or project name
645
- */
646
- getAttachmentZip(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<ArrayBuffer>;
647
- /**
648
- * Add a like on a comment.
649
- *
650
- * @param repositoryId - The repository ID of the pull request's target branch.
651
- * @param pullRequestId - ID of the pull request.
652
- * @param threadId - The ID of the thread that contains the comment.
653
- * @param commentId - The ID of the comment.
654
- * @param project - Project ID or project name
655
- */
656
- createLike(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>;
657
- /**
658
- * Delete a like on a comment.
659
- *
660
- * @param repositoryId - The repository ID of the pull request's target branch.
661
- * @param pullRequestId - ID of the pull request.
662
- * @param threadId - The ID of the thread that contains the comment.
663
- * @param commentId - The ID of the comment.
664
- * @param project - Project ID or project name
665
- */
666
- deleteLike(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>;
667
- /**
668
- * Get likes for a comment.
669
- *
670
- * @param repositoryId - The repository ID of the pull request's target branch.
671
- * @param pullRequestId - ID of the pull request.
672
- * @param threadId - The ID of the thread that contains the comment.
673
- * @param commentId - The ID of the comment.
674
- * @param project - Project ID or project name
675
- */
676
- getLikes(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<WebApi.IdentityRef[]>;
677
- /**
678
- * Get the commits for the specified iteration of a pull request.
679
- *
680
- * @param repositoryId - ID or name of the repository.
681
- * @param pullRequestId - ID of the pull request.
682
- * @param iterationId - ID of the iteration from which to get the commits.
683
- * @param project - Project ID or project name
684
- * @param top - Maximum number of commits to return. The maximum number of commits that can be returned per batch is 500.
685
- * @param skip - Number of commits to skip.
686
- */
687
- getPullRequestIterationCommits(repositoryId: string, pullRequestId: number, iterationId: number, project?: string, top?: number, skip?: number): Promise<Git.GitCommitRef[]>;
688
- /**
689
- * Get the commits for the specified pull request.
690
- *
691
- * @param repositoryId - ID or name of the repository.
692
- * @param pullRequestId - ID of the pull request.
693
- * @param project - Project ID or project name
694
- */
695
- getPullRequestCommits(repositoryId: string, pullRequestId: number, project?: string): Promise<WebApi.PagedList<Git.GitCommitRef>>;
696
- /**
697
- * Retrieve one conflict for a pull request by ID
698
- *
699
- * @param repositoryId -
700
- * @param pullRequestId -
701
- * @param conflictId -
702
- * @param project - Project ID or project name
703
- */
704
- getPullRequestConflict(repositoryId: string, pullRequestId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
705
- /**
706
- * Retrieve all conflicts for a pull request
707
- *
708
- * @param repositoryId - The repository of the Pull Request.
709
- * @param pullRequestId - The pull request ID.
710
- * @param project - Project ID or project name
711
- * @param skip - Conflicts to skip.
712
- * @param top - Conflicts to return after skip.
713
- * @param includeObsolete - Includes obsolete conflicts.
714
- * @param excludeResolved - Excludes conflicts already resolved.
715
- * @param onlyResolved - Returns only the conflicts that are resolved.
716
- */
717
- getPullRequestConflicts(repositoryId: string, pullRequestId: number, project?: string, skip?: number, top?: number, includeObsolete?: boolean, excludeResolved?: boolean, onlyResolved?: boolean): Promise<Git.GitConflict[]>;
718
- /**
719
- * Update merge conflict resolution
720
- *
721
- * @param conflict -
722
- * @param repositoryId -
723
- * @param pullRequestId -
724
- * @param conflictId -
725
- * @param project - Project ID or project name
726
- */
727
- updatePullRequestConflict(conflict: Git.GitConflict, repositoryId: string, pullRequestId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
728
- /**
729
- * Update multiple merge conflict resolutions
730
- *
731
- * @param conflictUpdates -
732
- * @param repositoryId -
733
- * @param pullRequestId -
734
- * @param project - Project ID or project name
735
- */
736
- updatePullRequestConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
737
- /**
738
- * Retrieve the file diffs for all changes in a pull request.
739
- *
740
- * @param repositoryId - The repository ID of the pull request's target branch.
741
- * @param pullRequestId - ID of the pull request.
742
- * @param project - Project ID or project name
743
- * @param iteration - If specified, file diffs will be retrieved for this iteration. If not specified, uses the latest iteration.
744
- * @param baseIteration - If specified, file diffs will be compared against this iteration. The default value is zero which indicates the comparison is made against the common commit between the source and target branches.
745
- * @param top - Optional. The number of file diffs to retrieve. The default value is 100 and the maximum value is 300.
746
- * @param skip - Optional. The number of file diffs to ignore. For example, to retrieve file diffs 101-150, set top to 50 and skip to 100.
747
- */
748
- getPullRequestFilesDiff(repositoryId: string, pullRequestId: number, project?: string, iteration?: number, baseIteration?: number, top?: number, skip?: number): Promise<Git.GitPullRequestFilesDiff>;
749
- /**
750
- * Retrieve the changes made in a pull request between two iterations.
751
- *
752
- * @param repositoryId - The repository ID of the pull request's target branch.
753
- * @param pullRequestId - ID of the pull request.
754
- * @param iterationId - ID of the pull request iteration. \<br /\> Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. Allowed values are between 1 and the maximum iteration on this pull request.
755
- * @param project - Project ID or project name
756
- * @param top - Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000.
757
- * @param skip - Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100.
758
- * @param compareTo - ID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches
759
- */
760
- getPullRequestIterationChanges(repositoryId: string, pullRequestId: number, iterationId: number, project?: string, top?: number, skip?: number, compareTo?: number): Promise<Git.GitPullRequestIterationChanges>;
761
- /**
762
- * Get the specified iteration for a pull request.
763
- *
764
- * @param repositoryId - ID or name of the repository.
765
- * @param pullRequestId - ID of the pull request.
766
- * @param iterationId - ID of the pull request iteration to return.
767
- * @param project - Project ID or project name
768
- */
769
- getPullRequestIteration(repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<Git.GitPullRequestIteration>;
770
- /**
771
- * Get the list of iterations for the specified pull request.
772
- *
773
- * @param repositoryId - ID or name of the repository.
774
- * @param pullRequestId - ID of the pull request.
775
- * @param project - Project ID or project name
776
- * @param includeCommits - If true, include the commits associated with each iteration in the response.
777
- */
778
- getPullRequestIterations(repositoryId: string, pullRequestId: number, project?: string, includeCommits?: boolean): Promise<Git.GitPullRequestIteration[]>;
779
- /**
780
- * Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body.
781
- *
782
- * @param status - Pull request status to create.
783
- * @param repositoryId - The repository ID of the pull request’s target branch.
784
- * @param pullRequestId - ID of the pull request.
785
- * @param iterationId - ID of the pull request iteration.
786
- * @param project - Project ID or project name
787
- */
788
- createPullRequestIterationStatus(status: Git.GitPullRequestStatus, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<Git.GitPullRequestStatus>;
789
- /**
790
- * Delete pull request iteration status.
791
- *
792
- * @param repositoryId - The repository ID of the pull request’s target branch.
793
- * @param pullRequestId - ID of the pull request.
794
- * @param iterationId - ID of the pull request iteration.
795
- * @param statusId - ID of the pull request status.
796
- * @param project - Project ID or project name
797
- */
798
- deletePullRequestIterationStatus(repositoryId: string, pullRequestId: number, iterationId: number, statusId: number, project?: string): Promise<void>;
799
- /**
800
- * Get the specific pull request iteration status by ID. The status ID is unique within the pull request across all iterations.
801
- *
802
- * @param repositoryId - The repository ID of the pull request’s target branch.
803
- * @param pullRequestId - ID of the pull request.
804
- * @param iterationId - ID of the pull request iteration.
805
- * @param statusId - ID of the pull request status.
806
- * @param project - Project ID or project name
807
- */
808
- getPullRequestIterationStatus(repositoryId: string, pullRequestId: number, iterationId: number, statusId: number, project?: string): Promise<Git.GitPullRequestStatus>;
809
- /**
810
- * Get all the statuses associated with a pull request iteration.
811
- *
812
- * @param repositoryId - The repository ID of the pull request’s target branch.
813
- * @param pullRequestId - ID of the pull request.
814
- * @param iterationId - ID of the pull request iteration.
815
- * @param project - Project ID or project name
816
- */
817
- getPullRequestIterationStatuses(repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<Git.GitPullRequestStatus[]>;
818
- /**
819
- * Update pull request iteration statuses collection. The only supported operation type is \`remove\`.
820
- *
821
- * @param patchDocument - Operations to apply to the pull request statuses in JSON Patch format.
822
- * @param repositoryId - The repository ID of the pull request’s target branch.
823
- * @param pullRequestId - ID of the pull request.
824
- * @param iterationId - ID of the pull request iteration.
825
- * @param project - Project ID or project name
826
- */
827
- updatePullRequestIterationStatuses(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<void>;
828
- /**
829
- * Create a tag (if that does not exists yet) and add that as a label (tag) for a specified pull request. The only required field is the name of the new label (tag).
830
- *
831
- * @param label - Label to assign to the pull request.
832
- * @param repositoryId - The repository ID of the pull request’s target branch.
833
- * @param pullRequestId - ID of the pull request.
834
- * @param project - Project ID or project name
835
- * @param projectId - Project ID or project name.
836
- */
837
- createPullRequestLabel(label: TfsCore.WebApiCreateTagRequestData, repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
838
- /**
839
- * Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
840
- *
841
- * @param repositoryId - The repository ID of the pull request’s target branch.
842
- * @param pullRequestId - ID of the pull request.
843
- * @param labelIdOrName - The name or ID of the label requested.
844
- * @param project - Project ID or project name
845
- * @param projectId - Project ID or project name.
846
- */
847
- deletePullRequestLabels(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<void>;
848
- /**
849
- * Retrieves a single label (tag) that has been assigned to a pull request.
850
- *
851
- * @param repositoryId - The repository ID of the pull request’s target branch.
852
- * @param pullRequestId - ID of the pull request.
853
- * @param labelIdOrName - The name or ID of the label requested.
854
- * @param project - Project ID or project name
855
- * @param projectId - Project ID or project name.
856
- */
857
- getPullRequestLabel(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
858
- /**
859
- * Get all the labels (tags) assigned to a pull request.
860
- *
861
- * @param repositoryId - The repository ID of the pull request’s target branch.
862
- * @param pullRequestId - ID of the pull request.
863
- * @param project - Project ID or project name
864
- * @param projectId - Project ID or project name.
865
- */
866
- getPullRequestLabels(repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition[]>;
867
- /**
868
- * Get external properties of the pull request.
869
- *
870
- * @param repositoryId - The repository ID of the pull request’s target branch.
871
- * @param pullRequestId - ID of the pull request.
872
- * @param project - Project ID or project name
873
- */
874
- getPullRequestProperties(repositoryId: string, pullRequestId: number, project?: string): Promise<any>;
875
- /**
876
- * Create or update pull request external properties. The patch operation can be \`add\`, \`replace\` or \`remove\`. For \`add\` operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For \`replace\` operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For \`remove\` operation, the path cannot be empty. If the path does not exist, no action will be performed.
877
- *
878
- * @param patchDocument - Properties to add, replace or remove in JSON Patch format.
879
- * @param repositoryId - The repository ID of the pull request’s target branch.
880
- * @param pullRequestId - ID of the pull request.
881
- * @param project - Project ID or project name
882
- */
883
- updatePullRequestProperties(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, project?: string): Promise<any>;
884
- /**
885
- * This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -\> pull requests.
886
- *
887
- * @param queries - The list of queries to perform.
888
- * @param repositoryId - ID of the repository.
889
- * @param project - Project ID or project name
890
- */
891
- getPullRequestQuery(queries: Git.GitPullRequestQuery, repositoryId: string, project?: string): Promise<Git.GitPullRequestQuery>;
892
- /**
893
- * Add a reviewer to a pull request or cast a vote.
894
- *
895
- * @param reviewer - Reviewer's vote.\<br /\>If the reviewer's ID is included here, it must match the reviewerID parameter.\<br /\>Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
896
- * @param repositoryId - The repository ID of the pull request's target branch.
897
- * @param pullRequestId - ID of the pull request.
898
- * @param reviewerId - ID of the reviewer.
899
- * @param project - Project ID or project name
900
- */
901
- createPullRequestReviewer(reviewer: Git.IdentityRefWithVote, repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<Git.IdentityRefWithVote>;
902
- /**
903
- * Add reviewers to a pull request.
904
- *
905
- * @param reviewers - Reviewers to add to the pull request.
906
- * @param repositoryId - The repository ID of the pull request's target branch.
907
- * @param pullRequestId - ID of the pull request.
908
- * @param project - Project ID or project name
909
- */
910
- createPullRequestReviewers(reviewers: WebApi.IdentityRef[], repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote[]>;
911
- /**
912
- * Add an unmaterialized identity to the reviewers of a pull request.
913
- *
914
- * @param reviewer - Reviewer to add to the pull request.
915
- * @param repositoryId - The repository ID of the pull request's target branch.
916
- * @param pullRequestId - ID of the pull request.
917
- * @param project - Project ID or project name
918
- */
919
- createUnmaterializedPullRequestReviewer(reviewer: Git.IdentityRefWithVote, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote>;
920
- /**
921
- * Remove a reviewer from a pull request.
922
- *
923
- * @param repositoryId - The repository ID of the pull request's target branch.
924
- * @param pullRequestId - ID of the pull request.
925
- * @param reviewerId - ID of the reviewer to remove.
926
- * @param project - Project ID or project name
927
- */
928
- deletePullRequestReviewer(repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<void>;
929
- /**
930
- * Retrieve information about a particular reviewer on a pull request
931
- *
932
- * @param repositoryId - The repository ID of the pull request's target branch.
933
- * @param pullRequestId - ID of the pull request.
934
- * @param reviewerId - ID of the reviewer.
935
- * @param project - Project ID or project name
936
- */
937
- getPullRequestReviewer(repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<Git.IdentityRefWithVote>;
938
- /**
939
- * Retrieve the reviewers for a pull request
940
- *
941
- * @param repositoryId - The repository ID of the pull request's target branch.
942
- * @param pullRequestId - ID of the pull request.
943
- * @param project - Project ID or project name
944
- */
945
- getPullRequestReviewers(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote[]>;
946
- /**
947
- * Edit a reviewer entry. These fields are patchable: isFlagged, hasDeclined
948
- *
949
- * @param reviewer - Reviewer data.\<br /\>If the reviewer's ID is included here, it must match the reviewerID parameter.
950
- * @param repositoryId - The repository ID of the pull request's target branch.
951
- * @param pullRequestId - ID of the pull request.
952
- * @param reviewerId - ID of the reviewer.
953
- * @param project - Project ID or project name
954
- */
955
- updatePullRequestReviewer(reviewer: Git.IdentityRefWithVote, repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<Git.IdentityRefWithVote>;
956
- /**
957
- * Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.
958
- *
959
- * @param patchVotes - IDs of the reviewers whose votes will be reset to zero
960
- * @param repositoryId - The repository ID of the pull request's target branch.
961
- * @param pullRequestId - ID of the pull request
962
- * @param project - Project ID or project name
963
- */
964
- updatePullRequestReviewers(patchVotes: Git.IdentityRefWithVote[], repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
965
- /**
966
- * Retrieve a pull request.
967
- *
968
- * @param pullRequestId - The ID of the pull request to retrieve.
969
- * @param project - Project ID or project name
970
- */
971
- getPullRequestById(pullRequestId: number, project?: string): Promise<Git.GitPullRequest>;
972
- /**
973
- * Retrieve all pull requests matching a specified criteria.
974
- *
975
- * @param project - Project ID or project name
976
- * @param searchCriteria - Pull requests will be returned that match this search criteria.
977
- * @param maxCommentLength - Not used.
978
- * @param skip - The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
979
- * @param top - The number of pull requests to retrieve.
980
- */
981
- getPullRequestsByProject(project: string, searchCriteria: Git.GitPullRequestSearchCriteria, maxCommentLength?: number, skip?: number, top?: number): Promise<Git.GitPullRequest[]>;
982
- /**
983
- * Create a pull request.
984
- *
985
- * @param gitPullRequestToCreate - The pull request to create.
986
- * @param repositoryId - The repository ID of the pull request's target branch.
987
- * @param project - Project ID or project name
988
- * @param supportsIterations - If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.
989
- */
990
- createPullRequest(gitPullRequestToCreate: Git.GitPullRequest, repositoryId: string, project?: string, supportsIterations?: boolean): Promise<Git.GitPullRequest>;
991
- /**
992
- * Retrieve a pull request.
993
- *
994
- * @param repositoryId - The repository ID of the pull request's target branch.
995
- * @param pullRequestId - The ID of the pull request to retrieve.
996
- * @param project - Project ID or project name
997
- * @param maxCommentLength - Not used.
998
- * @param skip - Not used.
999
- * @param top - Not used.
1000
- * @param includeCommits - If true, the pull request will be returned with the associated commits.
1001
- * @param includeWorkItemRefs - If true, the pull request will be returned with the associated work item references.
1002
- */
1003
- getPullRequest(repositoryId: string, pullRequestId: number, project?: string, maxCommentLength?: number, skip?: number, top?: number, includeCommits?: boolean, includeWorkItemRefs?: boolean): Promise<Git.GitPullRequest>;
1004
- /**
1005
- * Retrieve all pull requests matching a specified criteria.
1006
- *
1007
- * @param repositoryId - The repository ID of the pull request's target branch.
1008
- * @param searchCriteria - Pull requests will be returned that match this search criteria.
1009
- * @param project - Project ID or project name
1010
- * @param maxCommentLength - Not used.
1011
- * @param skip - The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
1012
- * @param top - The number of pull requests to retrieve.
1013
- */
1014
- getPullRequests(repositoryId: string, searchCriteria: Git.GitPullRequestSearchCriteria, project?: string, maxCommentLength?: number, skip?: number, top?: number): Promise<Git.GitPullRequest[]>;
1015
- /**
1016
- * Update a pull request
1017
- *
1018
- * @param gitPullRequestToUpdate - The pull request content that should be updated.
1019
- * @param repositoryId - The repository ID of the pull request's target branch.
1020
- * @param pullRequestId - ID of the pull request to update.
1021
- * @param project - Project ID or project name
1022
- */
1023
- updatePullRequest(gitPullRequestToUpdate: Git.GitPullRequest, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequest>;
1024
- /**
1025
- * Sends an e-mail notification about a specific pull request to a set of recipients
1026
- *
1027
- * @param userMessage -
1028
- * @param repositoryId - ID of the git repository.
1029
- * @param pullRequestId - ID of the pull request.
1030
- * @param project - Project ID or project name
1031
- */
1032
- sharePullRequest(userMessage: Git.ShareNotificationContext, repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
1033
- /**
1034
- * Create a pull request status.
1035
- *
1036
- * @param status - Pull request status to create.
1037
- * @param repositoryId - The repository ID of the pull request’s target branch.
1038
- * @param pullRequestId - ID of the pull request.
1039
- * @param project - Project ID or project name
1040
- */
1041
- createPullRequestStatus(status: Git.GitPullRequestStatus, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequestStatus>;
1042
- /**
1043
- * Delete pull request status.
1044
- *
1045
- * @param repositoryId - The repository ID of the pull request’s target branch.
1046
- * @param pullRequestId - ID of the pull request.
1047
- * @param statusId - ID of the pull request status.
1048
- * @param project - Project ID or project name
1049
- */
1050
- deletePullRequestStatus(repositoryId: string, pullRequestId: number, statusId: number, project?: string): Promise<void>;
1051
- /**
1052
- * Get the specific pull request status by ID. The status ID is unique within the pull request across all iterations.
1053
- *
1054
- * @param repositoryId - The repository ID of the pull request’s target branch.
1055
- * @param pullRequestId - ID of the pull request.
1056
- * @param statusId - ID of the pull request status.
1057
- * @param project - Project ID or project name
1058
- */
1059
- getPullRequestStatus(repositoryId: string, pullRequestId: number, statusId: number, project?: string): Promise<Git.GitPullRequestStatus>;
1060
- /**
1061
- * Get all the statuses associated with a pull request.
1062
- *
1063
- * @param repositoryId - The repository ID of the pull request’s target branch.
1064
- * @param pullRequestId - ID of the pull request.
1065
- * @param project - Project ID or project name
1066
- */
1067
- getPullRequestStatuses(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequestStatus[]>;
1068
- /**
1069
- * Update pull request statuses collection. The only supported operation type is \`remove\`.
1070
- *
1071
- * @param patchDocument - Operations to apply to the pull request statuses in JSON Patch format.
1072
- * @param repositoryId - The repository ID of the pull request’s target branch.
1073
- * @param pullRequestId - ID of the pull request.
1074
- * @param project - Project ID or project name
1075
- */
1076
- updatePullRequestStatuses(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
1077
- /**
1078
- * Create a comment on a specific thread in a pull request (up to 500 comments can be created per thread).
1079
- *
1080
- * @param comment - The comment to create. Comments can be up to 150,000 characters.
1081
- * @param repositoryId - The repository ID of the pull request's target branch.
1082
- * @param pullRequestId - ID of the pull request.
1083
- * @param threadId - ID of the thread that the desired comment is in.
1084
- * @param project - Project ID or project name
1085
- */
1086
- createComment(comment: Git.Comment, repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Git.Comment>;
1087
- /**
1088
- * Delete a comment associated with a specific thread in a pull request.
1089
- *
1090
- * @param repositoryId - The repository ID of the pull request's target branch.
1091
- * @param pullRequestId - ID of the pull request.
1092
- * @param threadId - ID of the thread that the desired comment is in.
1093
- * @param commentId - ID of the comment.
1094
- * @param project - Project ID or project name
1095
- */
1096
- deleteComment(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>;
1097
- /**
1098
- * Retrieve a comment associated with a specific thread in a pull request.
1099
- *
1100
- * @param repositoryId - The repository ID of the pull request's target branch.
1101
- * @param pullRequestId - ID of the pull request.
1102
- * @param threadId - ID of the thread that the desired comment is in.
1103
- * @param commentId - ID of the comment.
1104
- * @param project - Project ID or project name
1105
- */
1106
- getComment(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<Git.Comment>;
1107
- /**
1108
- * Retrieve all comments associated with a specific thread in a pull request.
1109
- *
1110
- * @param repositoryId - The repository ID of the pull request's target branch.
1111
- * @param pullRequestId - ID of the pull request.
1112
- * @param threadId - ID of the thread.
1113
- * @param project - Project ID or project name
1114
- */
1115
- getComments(repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Git.Comment[]>;
1116
- /**
1117
- * Update a comment associated with a specific thread in a pull request.
1118
- *
1119
- * @param comment - The comment content that should be updated. Comments can be up to 150,000 characters.
1120
- * @param repositoryId - The repository ID of the pull request's target branch.
1121
- * @param pullRequestId - ID of the pull request.
1122
- * @param threadId - ID of the thread that the desired comment is in.
1123
- * @param commentId - ID of the comment to update.
1124
- * @param project - Project ID or project name
1125
- */
1126
- updateComment(comment: Git.Comment, repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<Git.Comment>;
1127
- /**
1128
- * Create a thread in a pull request.
1129
- *
1130
- * @param commentThread - The thread to create. Thread must contain at least one comment.
1131
- * @param repositoryId - Repository ID of the pull request's target branch.
1132
- * @param pullRequestId - ID of the pull request.
1133
- * @param project - Project ID or project name
1134
- */
1135
- createThread(commentThread: Git.GitPullRequestCommentThread, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequestCommentThread>;
1136
- /**
1137
- * Retrieve a thread in a pull request.
1138
- *
1139
- * @param repositoryId - The repository ID of the pull request's target branch.
1140
- * @param pullRequestId - ID of the pull request.
1141
- * @param threadId - ID of the thread.
1142
- * @param project - Project ID or project name
1143
- * @param iteration - If specified, thread position will be tracked using this iteration as the right side of the diff.
1144
- * @param baseIteration - If specified, thread position will be tracked using this iteration as the left side of the diff.
1145
- */
1146
- getPullRequestThread(repositoryId: string, pullRequestId: number, threadId: number, project?: string, iteration?: number, baseIteration?: number): Promise<Git.GitPullRequestCommentThread>;
1147
- /**
1148
- * Retrieve all threads in a pull request.
1149
- *
1150
- * @param repositoryId - The repository ID of the pull request's target branch.
1151
- * @param pullRequestId - ID of the pull request.
1152
- * @param project - Project ID or project name
1153
- * @param iteration - If specified, thread positions will be tracked using this iteration as the right side of the diff.
1154
- * @param baseIteration - If specified, thread positions will be tracked using this iteration as the left side of the diff.
1155
- */
1156
- getThreads(repositoryId: string, pullRequestId: number, project?: string, iteration?: number, baseIteration?: number): Promise<Git.GitPullRequestCommentThread[]>;
1157
- /**
1158
- * Update a thread in a pull request.
1159
- *
1160
- * @param commentThread - The thread content that should be updated.
1161
- * @param repositoryId - The repository ID of the pull request's target branch.
1162
- * @param pullRequestId - ID of the pull request.
1163
- * @param threadId - ID of the thread to update.
1164
- * @param project - Project ID or project name
1165
- */
1166
- updateThread(commentThread: Git.GitPullRequestCommentThread, repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Git.GitPullRequestCommentThread>;
1167
- /**
1168
- * Retrieve a list of work items associated with a pull request.
1169
- *
1170
- * @param repositoryId - ID or name of the repository.
1171
- * @param pullRequestId - ID of the pull request.
1172
- * @param project - Project ID or project name
1173
- */
1174
- getPullRequestWorkItemRefs(repositoryId: string, pullRequestId: number, project?: string): Promise<WebApi.ResourceRef[]>;
1175
- /**
1176
- * Push changes to the repository.
1177
- *
1178
- * @param push -
1179
- * @param repositoryId - The name or ID of the repository.
1180
- * @param project - Project ID or project name
1181
- */
1182
- createPush(push: Git.GitPush, repositoryId: string, project?: string): Promise<Git.GitPush>;
1183
- /**
1184
- * Retrieves a particular push.
1185
- *
1186
- * @param repositoryId - The name or ID of the repository.
1187
- * @param pushId - ID of the push.
1188
- * @param project - Project ID or project name
1189
- * @param includeCommits - The number of commits to include in the result.
1190
- * @param includeRefUpdates - If true, include the list of refs that were updated by the push.
1191
- */
1192
- getPush(repositoryId: string, pushId: number, project?: string, includeCommits?: number, includeRefUpdates?: boolean): Promise<Git.GitPush>;
1193
- /**
1194
- * Retrieves pushes associated with the specified repository.
1195
- *
1196
- * @param repositoryId - The name or ID of the repository.
1197
- * @param project - Project ID or project name
1198
- * @param skip - Number of pushes to skip.
1199
- * @param top - Number of pushes to return.
1200
- * @param searchCriteria - Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
1201
- */
1202
- getPushes(repositoryId: string, project?: string, skip?: number, top?: number, searchCriteria?: Git.GitPushSearchCriteria): Promise<Git.GitPush[]>;
1203
- /**
1204
- * Destroy (hard delete) a soft-deleted Git repository.
1205
- *
1206
- * @param project - Project ID or project name
1207
- * @param repositoryId - The ID of the repository.
1208
- */
1209
- deleteRepositoryFromRecycleBin(project: string, repositoryId: string): Promise<void>;
1210
- /**
1211
- * Retrieve soft-deleted git repositories from the recycle bin.
1212
- *
1213
- * @param project - Project ID or project name
1214
- */
1215
- getRecycleBinRepositories(project: string): Promise<Git.GitDeletedRepository[]>;
1216
- /**
1217
- * Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.
1218
- *
1219
- * @param repositoryDetails -
1220
- * @param project - Project ID or project name
1221
- * @param repositoryId - The ID of the repository.
1222
- */
1223
- restoreRepositoryFromRecycleBin(repositoryDetails: Git.GitRecycleBinRepositoryDetails, project: string, repositoryId: string): Promise<Git.GitRepository>;
1224
- /**
1225
- * Queries the provided repository for its refs and returns them.
1226
- *
1227
- * @param repositoryId - The name or ID of the repository.
1228
- * @param project - Project ID or project name
1229
- * @param filter - [optional] A filter to apply to the refs (starts with).
1230
- * @param includeLinks - [optional] Specifies if referenceLinks should be included in the result. default is false.
1231
- * @param includeStatuses - [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false.
1232
- * @param includeMyBranches - [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter.
1233
- * @param latestStatusesOnly - [optional] True to include only the tip commit status for each ref. This option requires \`includeStatuses\` to be true. The default value is false.
1234
- * @param peelTags - [optional] Annotated tags will populate the PeeledObjectId property. default is false.
1235
- * @param filterContains - [optional] A filter to apply to the refs (contains).
1236
- * @param includeTargetBranches - [optional] Includes target branches defined by patterns in pull_request_targets.yml.
1237
- */
1238
- getRefs(repositoryId: string, project?: string, filter?: string, includeLinks?: boolean, includeStatuses?: boolean, includeMyBranches?: boolean, latestStatusesOnly?: boolean, peelTags?: boolean, filterContains?: string, includeTargetBranches?: boolean): Promise<WebApi.PagedList<Git.GitRef>>;
1239
- /**
1240
- * Lock or Unlock a branch.
1241
- *
1242
- * @param newRefInfo - The ref update action (lock/unlock) to perform
1243
- * @param repositoryId - The name or ID of the repository.
1244
- * @param filter - The name of the branch to lock/unlock
1245
- * @param project - Project ID or project name
1246
- * @param projectId - ID or name of the team project. Optional if specifying an ID for repository.
1247
- */
1248
- updateRef(newRefInfo: Git.GitRefUpdate, repositoryId: string, filter: string, project?: string, projectId?: string): Promise<Git.GitRef>;
1249
- /**
1250
- * Creating, updating, or deleting refs(branches).
1251
- *
1252
- * @param refUpdates - List of ref updates to attempt to perform
1253
- * @param repositoryId - The name or ID of the repository.
1254
- * @param project - Project ID or project name
1255
- * @param projectId - ID or name of the team project. Optional if specifying an ID for repository.
1256
- */
1257
- updateRefs(refUpdates: Git.GitRefUpdate[], repositoryId: string, project?: string, projectId?: string): Promise<Git.GitRefUpdateResult[]>;
1258
- /**
1259
- * Creates a ref favorite
1260
- *
1261
- * @param favorite - The ref favorite to create.
1262
- * @param project - Project ID or project name
1263
- */
1264
- createFavorite(favorite: Git.GitRefFavorite, project: string): Promise<Git.GitRefFavorite>;
1265
- /**
1266
- * Deletes the refs favorite specified
1267
- *
1268
- * @param project - Project ID or project name
1269
- * @param favoriteId - The Id of the ref favorite to delete.
1270
- */
1271
- deleteRefFavorite(project: string, favoriteId: number): Promise<void>;
1272
- /**
1273
- * Gets the refs favorite for a favorite Id.
1274
- *
1275
- * @param project - Project ID or project name
1276
- * @param favoriteId - The Id of the requested ref favorite.
1277
- */
1278
- getRefFavorite(project: string, favoriteId: number): Promise<Git.GitRefFavorite>;
1279
- /**
1280
- * Gets the refs favorites for a repo and an identity.
1281
- *
1282
- * @param project - Project ID or project name
1283
- * @param repositoryId - The id of the repository.
1284
- * @param identityId - The id of the identity whose favorites are to be retrieved. If null, the requesting identity is used.
1285
- */
1286
- getRefFavorites(project: string, repositoryId?: string, identityId?: string): Promise<Git.GitRefFavorite[]>;
1287
- /**
1288
- * @param project - Project ID or project name
1289
- * @param identityId -
1290
- */
1291
- getRefFavoritesForProject(project: string, identityId?: string): Promise<Git.GitRefFavorite[]>;
1292
- /**
1293
- * Create a git repository in a team project.
1294
- *
1295
- * @param gitRepositoryToCreate - Specify the repo name, team project and/or parent repository. Team project information can be omitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id).
1296
- * @param project - Project ID or project name
1297
- * @param sourceRef - [optional] Specify the source refs to use while creating a fork repo
1298
- */
1299
- createRepository(gitRepositoryToCreate: Git.GitRepositoryCreateOptions, project?: string, sourceRef?: string): Promise<Git.GitRepository>;
1300
- /**
1301
- * Delete a git repository
1302
- *
1303
- * @param repositoryId - The ID of the repository.
1304
- * @param project - Project ID or project name
1305
- */
1306
- deleteRepository(repositoryId: string, project?: string): Promise<void>;
1307
- /**
1308
- * Retrieve git repositories.
1309
- *
1310
- * @param project - Project ID or project name
1311
- * @param includeLinks - [optional] True to include reference links. The default value is false.
1312
- * @param includeAllUrls - [optional] True to include all remote URLs. The default value is false.
1313
- * @param includeHidden - [optional] True to include hidden repositories. The default value is false.
1314
- */
1315
- getRepositories(project?: string, includeLinks?: boolean, includeAllUrls?: boolean, includeHidden?: boolean): Promise<Git.GitRepository[]>;
1316
- /**
1317
- * Retrieve a git repository.
1318
- *
1319
- * @param repositoryId - The name or ID of the repository.
1320
- * @param project - Project ID or project name
1321
- */
1322
- getRepository(repositoryId: string, project?: string): Promise<Git.GitRepository>;
1323
- /**
1324
- * Retrieve a git repository.
1325
- *
1326
- * @param repositoryId - The name or ID of the repository.
1327
- * @param includeParent - True to include parent repository. Only available in authenticated calls.
1328
- * @param project - Project ID or project name
1329
- */
1330
- getRepositoryWithParent(repositoryId: string, includeParent: boolean, project?: string): Promise<Git.GitRepository>;
1331
- /**
1332
- * Updates the Git repository with either a new repo name or a new default branch.
1333
- *
1334
- * @param newRepositoryInfo - Specify a new repo name or a new default branch of the repository
1335
- * @param repositoryId - The ID of the repository.
1336
- * @param project - Project ID or project name
1337
- */
1338
- updateRepository(newRepositoryInfo: Git.GitRepository, repositoryId: string, project?: string): Promise<Git.GitRepository>;
1339
- /**
1340
- * Retrieve git repositories with filter by name and pagination.
1341
- *
1342
- * @param projectId - ID or name of the team project.
1343
- * @param includeLinks - [optional] True to include reference links. The default value is false.
1344
- * @param includeAllUrls - [optional] True to include all remote URLs. The default value is false.
1345
- * @param includeHidden - [optional] True to include hidden repositories. The default value is false.
1346
- * @param filterContains - [optional] A filter to apply to the refs (contains).
1347
- * @param top - [optional] Maximum number of repositories to return. It cannot be bigger than 500. If it is not provided but continuationToken is, top will default to 100.
1348
- * @param continuationToken - The continuation token used for pagination.
1349
- */
1350
- getRepositoriesPaged(projectId: string, includeLinks?: boolean, includeAllUrls?: boolean, includeHidden?: boolean, filterContains?: string, top?: number, continuationToken?: string): Promise<WebApi.PagedList<Git.GitRepository>>;
1351
- /**
1352
- * Retrieve one conflict for a revert by ID
1353
- *
1354
- * @param repositoryId -
1355
- * @param revertId -
1356
- * @param conflictId -
1357
- * @param project - Project ID or project name
1358
- */
1359
- getRevertConflict(repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
1360
- /**
1361
- * Retrieve all conflicts for a revert
1362
- *
1363
- * @param repositoryId -
1364
- * @param revertId -
1365
- * @param project - Project ID or project name
1366
- * @param continuationToken -
1367
- * @param top -
1368
- * @param excludeResolved -
1369
- * @param onlyResolved -
1370
- * @param includeObsolete -
1371
- */
1372
- getRevertConflicts(repositoryId: string, revertId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<WebApi.PagedList<Git.GitConflict>>;
1373
- /**
1374
- * Update merge conflict resolution
1375
- *
1376
- * @param conflict -
1377
- * @param repositoryId -
1378
- * @param revertId -
1379
- * @param conflictId -
1380
- * @param project - Project ID or project name
1381
- */
1382
- updateRevertConflict(conflict: Git.GitConflict, repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
1383
- /**
1384
- * Update multiple merge conflict resolutions
1385
- *
1386
- * @param conflictUpdates -
1387
- * @param repositoryId -
1388
- * @param revertId -
1389
- * @param project - Project ID or project name
1390
- */
1391
- updateRevertConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, revertId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
1392
- /**
1393
- * Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.
1394
- *
1395
- * @param revertToCreate -
1396
- * @param project - Project ID or project name
1397
- * @param repositoryId - ID of the repository.
1398
- */
1399
- createRevert(revertToCreate: Git.GitAsyncRefOperationParameters, project: string, repositoryId: string): Promise<Git.GitRevert>;
1400
- /**
1401
- * Retrieve information about a revert operation by revert Id.
1402
- *
1403
- * @param project - Project ID or project name
1404
- * @param revertId - ID of the revert operation.
1405
- * @param repositoryId - ID of the repository.
1406
- */
1407
- getRevert(project: string, revertId: number, repositoryId: string): Promise<Git.GitRevert>;
1408
- /**
1409
- * Retrieve information about a revert operation for a specific branch.
1410
- *
1411
- * @param project - Project ID or project name
1412
- * @param repositoryId - ID of the repository.
1413
- * @param refName - The GitAsyncRefOperationParameters generatedRefName used for the revert operation.
1414
- */
1415
- getRevertForRefName(project: string, repositoryId: string, refName: string): Promise<Git.GitRevert>;
1416
- /**
1417
- * Create Git commit status.
1418
- *
1419
- * @param gitCommitStatusToCreate - Git commit status object to create.
1420
- * @param commitId - ID of the Git commit.
1421
- * @param repositoryId - ID of the repository.
1422
- * @param project - Project ID or project name
1423
- */
1424
- createCommitStatus(gitCommitStatusToCreate: Git.GitStatus, commitId: string, repositoryId: string, project?: string): Promise<Git.GitStatus>;
1425
- /**
1426
- * Get statuses associated with the Git commit.
1427
- *
1428
- * @param commitId - ID of the Git commit.
1429
- * @param repositoryId - ID of the repository.
1430
- * @param project - Project ID or project name
1431
- * @param top - Optional. The number of statuses to retrieve. Default is 1000.
1432
- * @param skip - Optional. The number of statuses to ignore. Default is 0. For example, to retrieve results 101-150, set top to 50 and skip to 100.
1433
- * @param latestOnly - The flag indicates whether to get only latest statuses grouped by \`Context.Name\` and \`Context.Genre\`.
1434
- */
1435
- getStatuses(commitId: string, repositoryId: string, project?: string, top?: number, skip?: number, latestOnly?: boolean): Promise<Git.GitStatus[]>;
1436
- /**
1437
- * Retrieve a pull request suggestion for a particular repository or team project.
1438
- *
1439
- * @param repositoryId - ID of the git repository.
1440
- * @param project - Project ID or project name
1441
- * @param preferCompareBranch - If true, prefer the compare branch over the default branch as target branch for pull requests.
1442
- */
1443
- getSuggestions(repositoryId: string, project?: string, preferCompareBranch?: boolean): Promise<Git.GitSuggestion[]>;
1444
- /**
1445
- * The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
1446
- *
1447
- * @param repositoryId - Repository Id.
1448
- * @param sha1 - SHA1 hash of the tree object.
1449
- * @param project - Project ID or project name
1450
- * @param projectId - Project Id.
1451
- * @param recursive - Search recursively. Include trees underneath this tree. Default is false.
1452
- * @param fileName - Name to use if a .zip file is returned. Default is the object ID.
1453
- */
1454
- getTree(repositoryId: string, sha1: string, project?: string, projectId?: string, recursive?: boolean, fileName?: string): Promise<Git.GitTreeRef>;
1455
- /**
1456
- * The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
1457
- *
1458
- * @param repositoryId - Repository Id.
1459
- * @param sha1 - SHA1 hash of the tree object.
1460
- * @param project - Project ID or project name
1461
- * @param projectId - Project Id.
1462
- * @param recursive - Search recursively. Include trees underneath this tree. Default is false.
1463
- * @param fileName - Name to use if a .zip file is returned. Default is the object ID.
1464
- */
1465
- getTreeZip(repositoryId: string, sha1: string, project?: string, projectId?: string, recursive?: boolean, fileName?: string): Promise<ArrayBuffer>;
1466
- }
1
+ import { IVssRestClientOptions } from "../Common/Context";
2
+ import { RestClientBase } from "../Common/RestClientBase";
3
+ import * as TfsCore from "../Core/Core";
4
+ import * as Git from "../Git/Git";
5
+ import * as WebApi from "../WebApi/WebApi";
6
+ export declare class GitRestClient extends RestClientBase {
7
+ constructor(options: IVssRestClientOptions);
8
+ static readonly RESOURCE_AREA_ID = "4e080c62-fa21-4fbc-8fef-2a10a2b38049";
9
+ /**
10
+ * DELETE Deletes Enablement status and BillableCommitters data from DB. Deleting the enablement data will effectively disable it for the repositories affected.
11
+ *
12
+ * @param allProjects -
13
+ * @param includeBillableCommitters -
14
+ * @param projectIds -
15
+ */
16
+ deleteEnablementStatus(allProjects: boolean, includeBillableCommitters?: boolean, projectIds?: string[]): Promise<void>;
17
+ /**
18
+ * GET Enablement status for project's repositories.
19
+ *
20
+ * @param projectIds - Null defaults to all projects in the host, list of project's repos status to return
21
+ * @param billingDate - UTC expected, Null defaults to UtcNow(), can be provided for a point in time status
22
+ * @param skip - Skip X rows of resultset to simulate paging.
23
+ * @param take - Return Y rows of resultset to simulate paging.
24
+ */
25
+ getEnablementStatus(projectIds?: string[], billingDate?: Date, skip?: number, take?: number): Promise<Git.AdvSecEnablementStatus[]>;
26
+ /**
27
+ * @param enableOnCreateHost -
28
+ */
29
+ getEnableOnCreateHost(enableOnCreateHost: boolean): Promise<boolean>;
30
+ /**
31
+ * @param enableOnCreateProjectId -
32
+ */
33
+ getEnableOnCreateProject(enableOnCreateProjectId: string): Promise<boolean>;
34
+ /**
35
+ * @param enableOnCreateHost -
36
+ */
37
+ setEnableOnCreateHost(enableOnCreateHost: boolean): Promise<void>;
38
+ /**
39
+ * @param enableOnCreateProjectId -
40
+ * @param enableOnStatus -
41
+ */
42
+ setEnableOnCreateProject(enableOnCreateProjectId: string, enableOnStatus: boolean): Promise<void>;
43
+ /**
44
+ * POST Enablement status for repositories.
45
+ *
46
+ * @param enablementUpdates -
47
+ */
48
+ updateEnablementStatus(enablementUpdates: Git.AdvSecEnablementUpdate[]): Promise<void>;
49
+ /**
50
+ * Get estimated billable pushers for an Organization for last 90 days.
51
+ *
52
+ */
53
+ getEstimatedBillablePushersOrg(): Promise<Git.BillablePusher[]>;
54
+ /**
55
+ * Get estimated billable pushers for a project for last 90 days.
56
+ *
57
+ * @param project - Project ID or project name
58
+ */
59
+ getEstimatedBillablePushersProject(project: string): Promise<Git.BillablePusher[]>;
60
+ /**
61
+ * Get estimated billable committers for a repository for the last 90 days.
62
+ *
63
+ * @param project - Project ID or project name
64
+ * @param repositoryId -
65
+ */
66
+ getEstimatedBillableCommittersRepo(project: string, repositoryId: string): Promise<Git.BillableCommitter[]>;
67
+ /**
68
+ * GET Advanced Security Permission status.
69
+ *
70
+ * @param projectName -
71
+ * @param repositoryId - Repository user is trying to access
72
+ * @param permission - Permission being requestd, must be "viewAlert" "dismissAlert" "manage" "viewEnablement" or "repoRead"
73
+ */
74
+ getPermission(projectName?: string, repositoryId?: string, permission?: string): Promise<boolean>;
75
+ /**
76
+ * POST request to get accessible repositories based on permission (batch operation).
77
+ *
78
+ * @param request - Request containing permission and repository IDs to check
79
+ */
80
+ getAccessibleRepositories(request: Git.GetAccessibleRepositoriesRequest): Promise<Git.GetAccessibleRepositoriesResponse>;
81
+ /**
82
+ * Create an annotated tag.
83
+ *
84
+ * @param tagObject - Object containing details of tag to be created.
85
+ * @param project - Project ID or project name
86
+ * @param repositoryId - ID or name of the repository.
87
+ */
88
+ createAnnotatedTag(tagObject: Git.GitAnnotatedTag, project: string, repositoryId: string): Promise<Git.GitAnnotatedTag>;
89
+ /**
90
+ * Get an annotated tag.
91
+ *
92
+ * @param project - Project ID or project name
93
+ * @param repositoryId - ID or name of the repository.
94
+ * @param objectId - ObjectId (Sha1Id) of tag to get.
95
+ */
96
+ getAnnotatedTag(project: string, repositoryId: string, objectId: string): Promise<Git.GitAnnotatedTag>;
97
+ /**
98
+ * Retrieve actual billable committers for Advanced Security service for a given date.
99
+ *
100
+ * @param project - Project ID or project name
101
+ * @param billingDate - UTC expected. If not specified defaults to the previous billing day.
102
+ * @param skip - Skip X rows of resultset to simulate paging.
103
+ * @param take - Return Y rows of resultset to simulate paging.
104
+ */
105
+ getBillableCommitters(project: string, billingDate?: Date, skip?: number, take?: number): Promise<Git.BillableCommitter[]>;
106
+ /**
107
+ * Retrieve detailed actual billable committers for Advanced Security service for a given date. Detailed results intentionally does not filter out soft deleted projects and repositories to help diagnose billing issues.
108
+ *
109
+ * @param project - Project ID or project name
110
+ * @param includeDetails - Return all the details on the billable committers.
111
+ * @param billingDate - UTC expected. If not specified defaults to the previous billing day.
112
+ */
113
+ getBillableCommittersDetail(project: string, includeDetails: string, billingDate?: Date): Promise<Git.BillableCommitterDetail[]>;
114
+ /**
115
+ * Get a single blob.
116
+ *
117
+ * @param repositoryId - The name or ID of the repository.
118
+ * @param sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
119
+ * @param project - Project ID or project name
120
+ * @param download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
121
+ * @param fileName - Provide a fileName to use for a download.
122
+ * @param resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
123
+ */
124
+ getBlob(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<Git.GitBlobRef>;
125
+ /**
126
+ * Get a single blob.
127
+ *
128
+ * @param repositoryId - The name or ID of the repository.
129
+ * @param sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
130
+ * @param project - Project ID or project name
131
+ * @param download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
132
+ * @param fileName - Provide a fileName to use for a download.
133
+ * @param resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
134
+ */
135
+ getBlobContent(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<ArrayBuffer>;
136
+ /**
137
+ * Gets one or more blobs in a zip file download.
138
+ *
139
+ * @param blobIds - Blob IDs (SHA1 hashes) to be returned in the zip file.
140
+ * @param repositoryId - The name or ID of the repository.
141
+ * @param project - Project ID or project name
142
+ * @param filename -
143
+ */
144
+ getBlobsZip(blobIds: string[], repositoryId: string, project?: string, filename?: string): Promise<ArrayBuffer>;
145
+ /**
146
+ * Get a single blob.
147
+ *
148
+ * @param repositoryId - The name or ID of the repository.
149
+ * @param sha1 - SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
150
+ * @param project - Project ID or project name
151
+ * @param download - If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
152
+ * @param fileName - Provide a fileName to use for a download.
153
+ * @param resolveLfs - If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
154
+ */
155
+ getBlobZip(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<ArrayBuffer>;
156
+ /**
157
+ * Retrieve statistics about a single branch.
158
+ *
159
+ * @param repositoryId - The name or ID of the repository.
160
+ * @param name - Name of the branch.
161
+ * @param project - Project ID or project name
162
+ * @param baseVersionDescriptor - Identifies the commit or branch to use as the base.
163
+ */
164
+ getBranch(repositoryId: string, name: string, project?: string, baseVersionDescriptor?: Git.GitVersionDescriptor): Promise<Git.GitBranchStats>;
165
+ /**
166
+ * Retrieve statistics about all branches within a repository.
167
+ *
168
+ * @param repositoryId - The name or ID of the repository.
169
+ * @param project - Project ID or project name
170
+ * @param baseVersionDescriptor - Identifies the commit or branch to use as the base.
171
+ */
172
+ getBranches(repositoryId: string, project?: string, baseVersionDescriptor?: Git.GitVersionDescriptor): Promise<Git.GitBranchStats[]>;
173
+ /**
174
+ * Retrieve statistics for multiple commits
175
+ *
176
+ * @param searchCriteria - Base Commit and List of Target Commits to compare.
177
+ * @param repositoryId - The name or ID of the repository.
178
+ * @param project - Project ID or project name
179
+ */
180
+ getBranchStatsBatch(searchCriteria: Git.GitQueryBranchStatsCriteria, repositoryId: string, project?: string): Promise<Git.GitBranchStats[]>;
181
+ /**
182
+ * Retrieve changes for a particular commit.
183
+ *
184
+ * @param commitId - The id of the commit.
185
+ * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
186
+ * @param project - Project ID or project name
187
+ * @param top - The maximum number of changes to return.
188
+ * @param skip - The number of changes to skip.
189
+ */
190
+ getChanges(commitId: string, repositoryId: string, project?: string, top?: number, skip?: number): Promise<Git.GitCommitChanges>;
191
+ /**
192
+ * Retrieve one conflict for a cherry pick by ID
193
+ *
194
+ * @param repositoryId -
195
+ * @param cherryPickId -
196
+ * @param conflictId -
197
+ * @param project - Project ID or project name
198
+ */
199
+ getCherryPickConflict(repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
200
+ /**
201
+ * Retrieve all conflicts for a cherry pick
202
+ *
203
+ * @param repositoryId -
204
+ * @param cherryPickId -
205
+ * @param project - Project ID or project name
206
+ * @param continuationToken -
207
+ * @param top -
208
+ * @param excludeResolved -
209
+ * @param onlyResolved -
210
+ * @param includeObsolete -
211
+ */
212
+ getCherryPickConflicts(repositoryId: string, cherryPickId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<WebApi.PagedList<Git.GitConflict>>;
213
+ /**
214
+ * Update merge conflict resolution
215
+ *
216
+ * @param conflict -
217
+ * @param repositoryId -
218
+ * @param cherryPickId -
219
+ * @param conflictId -
220
+ * @param project - Project ID or project name
221
+ */
222
+ updateCherryPickConflict(conflict: Git.GitConflict, repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
223
+ /**
224
+ * Update multiple merge conflict resolutions
225
+ *
226
+ * @param conflictUpdates -
227
+ * @param repositoryId -
228
+ * @param cherryPickId -
229
+ * @param project - Project ID or project name
230
+ */
231
+ updateCherryPickConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, cherryPickId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
232
+ /**
233
+ * Given a commitId, returns a list of commits that are in the same cherry-pick family.
234
+ *
235
+ * @param repositoryNameOrId -
236
+ * @param commitId -
237
+ * @param project - Project ID or project name
238
+ * @param includeLinks -
239
+ */
240
+ getCherryPickRelationships(repositoryNameOrId: string, commitId: string, project?: string, includeLinks?: boolean): Promise<Git.GitCommitRef[]>;
241
+ /**
242
+ * Cherry pick a specific commit or commits that are associated to a pull request into a new branch.
243
+ *
244
+ * @param cherryPickToCreate -
245
+ * @param project - Project ID or project name
246
+ * @param repositoryId - ID of the repository.
247
+ */
248
+ createCherryPick(cherryPickToCreate: Git.GitAsyncRefOperationParameters, project: string, repositoryId: string): Promise<Git.GitCherryPick>;
249
+ /**
250
+ * Retrieve information about a cherry pick operation by cherry pick Id.
251
+ *
252
+ * @param project - Project ID or project name
253
+ * @param cherryPickId - ID of the cherry pick.
254
+ * @param repositoryId - ID of the repository.
255
+ */
256
+ getCherryPick(project: string, cherryPickId: number, repositoryId: string): Promise<Git.GitCherryPick>;
257
+ /**
258
+ * Retrieve information about a cherry pick operation for a specific branch. This operation is expensive due to the underlying object structure, so this API only looks at the 1000 most recent cherry pick operations.
259
+ *
260
+ * @param project - Project ID or project name
261
+ * @param repositoryId - ID of the repository.
262
+ * @param refName - The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation.
263
+ */
264
+ getCherryPickForRefName(project: string, repositoryId: string, refName: string): Promise<Git.GitCherryPick>;
265
+ /**
266
+ * Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.
267
+ *
268
+ * @param repositoryId - The name or ID of the repository.
269
+ * @param project - Project ID or project name
270
+ * @param diffCommonCommit - If true, diff between common and target commits. If false, diff between base and target commits.
271
+ * @param top - Maximum number of changes to return. Defaults to 100.
272
+ * @param skip - Number of changes to skip
273
+ * @param baseVersionDescriptor - Descriptor for base commit.
274
+ * @param targetVersionDescriptor - Descriptor for target commit.
275
+ */
276
+ getCommitDiffs(repositoryId: string, project?: string, diffCommonCommit?: boolean, top?: number, skip?: number, baseVersionDescriptor?: Git.GitBaseVersionDescriptor, targetVersionDescriptor?: Git.GitTargetVersionDescriptor): Promise<Git.GitCommitDiffs>;
277
+ /**
278
+ * Retrieve a particular commit.
279
+ *
280
+ * @param commitId - The id of the commit.
281
+ * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
282
+ * @param project - Project ID or project name
283
+ * @param changeCount - The number of changes to include in the result.
284
+ */
285
+ getCommit(commitId: string, repositoryId: string, project?: string, changeCount?: number): Promise<Git.GitCommit>;
286
+ /**
287
+ * Retrieve git commits for a project
288
+ *
289
+ * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
290
+ * @param searchCriteria -
291
+ * @param project - Project ID or project name
292
+ * @param skip -
293
+ * @param top -
294
+ */
295
+ getCommits(repositoryId: string, searchCriteria: Git.GitQueryCommitsCriteria, project?: string, skip?: number, top?: number): Promise<Git.GitCommitRef[]>;
296
+ /**
297
+ * Retrieve a list of commits associated with a particular push.
298
+ *
299
+ * @param repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
300
+ * @param pushId - The id of the push.
301
+ * @param project - Project ID or project name
302
+ * @param top - The maximum number of commits to return ("get the top x commits").
303
+ * @param skip - The number of commits to skip.
304
+ * @param includeLinks - Set to false to avoid including REST Url links for resources. Defaults to true.
305
+ */
306
+ getPushCommits(repositoryId: string, pushId: number, project?: string, top?: number, skip?: number, includeLinks?: boolean): Promise<Git.GitCommitRef[]>;
307
+ /**
308
+ * Retrieve git commits for a project matching the search criteria
309
+ *
310
+ * @param searchCriteria - Search options
311
+ * @param repositoryId - The name or ID of the repository.
312
+ * @param project - Project ID or project name
313
+ * @param skip - Number of commits to skip. The value cannot exceed 3,000,000.
314
+ * @param top - Maximum number of commits to return. The value cannot exceed 50,000.
315
+ * @param includeStatuses - True to include additional commit status information.
316
+ */
317
+ getCommitsBatch(searchCriteria: Git.GitQueryCommitsCriteria, repositoryId: string, project?: string, skip?: number, top?: number, includeStatuses?: boolean): Promise<Git.GitCommitRef[]>;
318
+ /**
319
+ * Retrieve deleted git repositories.
320
+ *
321
+ * @param project - Project ID or project name
322
+ */
323
+ getDeletedRepositories(project: string): Promise<Git.GitDeletedRepository[]>;
324
+ /**
325
+ * Get the file diffs for each of the specified files
326
+ *
327
+ * @param fileDiffsCriteria - List of file parameters objects
328
+ * @param project - Project ID or project name
329
+ * @param repositoryId - The name or ID of the repository
330
+ */
331
+ getFileDiffs(fileDiffsCriteria: Git.FileDiffsCriteria, project: string, repositoryId: string): Promise<Git.FileDiff[]>;
332
+ /**
333
+ * Retrieve all forks of a repository in the collection.
334
+ *
335
+ * @param repositoryNameOrId - The name or ID of the repository.
336
+ * @param collectionId - Team project collection ID.
337
+ * @param project - Project ID or project name
338
+ * @param includeLinks - True to include links.
339
+ */
340
+ getForks(repositoryNameOrId: string, collectionId: string, project?: string, includeLinks?: boolean): Promise<Git.GitRepositoryRef[]>;
341
+ /**
342
+ * Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the \<a href="https://docs.microsoft.com/en-us/rest/api/vsts/git/repositories/create?view=azure-devops-rest-5.1"\> repositories endpoint\</a\>
343
+ *
344
+ * @param syncParams - Source repository and ref mapping.
345
+ * @param repositoryNameOrId - The name or ID of the repository.
346
+ * @param project - Project ID or project name
347
+ * @param includeLinks - True to include links
348
+ */
349
+ createForkSyncRequest(syncParams: Git.GitForkSyncRequestParameters, repositoryNameOrId: string, project?: string, includeLinks?: boolean): Promise<Git.GitForkSyncRequest>;
350
+ /**
351
+ * Get a specific fork sync operation's details.
352
+ *
353
+ * @param repositoryNameOrId - The name or ID of the repository.
354
+ * @param forkSyncOperationId - OperationId of the sync request.
355
+ * @param project - Project ID or project name
356
+ * @param includeLinks - True to include links.
357
+ */
358
+ getForkSyncRequest(repositoryNameOrId: string, forkSyncOperationId: number, project?: string, includeLinks?: boolean): Promise<Git.GitForkSyncRequest>;
359
+ /**
360
+ * Retrieve all requested fork sync operations on this repository.
361
+ *
362
+ * @param repositoryNameOrId - The name or ID of the repository.
363
+ * @param project - Project ID or project name
364
+ * @param includeAbandoned - True to include abandoned requests.
365
+ * @param includeLinks - True to include links.
366
+ */
367
+ getForkSyncRequests(repositoryNameOrId: string, project?: string, includeAbandoned?: boolean, includeLinks?: boolean): Promise<Git.GitForkSyncRequest[]>;
368
+ /**
369
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
370
+ *
371
+ * @param repositoryId - The name or ID of the repository.
372
+ * @param path - The item path.
373
+ * @param project - Project ID or project name
374
+ * @param scopePath - The path scope. The default is null.
375
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
376
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
377
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
378
+ * @param download - Set to true to download the response as a file. Default is false.
379
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
380
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
381
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
382
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
383
+ */
384
+ getHfsItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<Git.GitItem>;
385
+ /**
386
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
387
+ *
388
+ * @param repositoryId - The name or ID of the repository.
389
+ * @param path - The item path.
390
+ * @param project - Project ID or project name
391
+ * @param scopePath - The path scope. The default is null.
392
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
393
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
394
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
395
+ * @param download - Set to true to download the response as a file. Default is false.
396
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
397
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
398
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
399
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
400
+ */
401
+ getHfsItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
402
+ /**
403
+ * Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
404
+ *
405
+ * @param repositoryId - The name or ID of the repository.
406
+ * @param project - Project ID or project name
407
+ * @param scopePath - The path scope. The default is null.
408
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
409
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
410
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
411
+ * @param download - Set to true to download the response as a file. Default is false.
412
+ * @param includeLinks - Set to true to include links to items. Default is false.
413
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
414
+ * @param zipForUnix - Set to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
415
+ */
416
+ getHfsItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: Git.GitVersionDescriptor, zipForUnix?: boolean): Promise<Git.GitItem[]>;
417
+ /**
418
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
419
+ *
420
+ * @param repositoryId - The name or ID of the repository.
421
+ * @param path - The item path.
422
+ * @param project - Project ID or project name
423
+ * @param scopePath - The path scope. The default is null.
424
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
425
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
426
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
427
+ * @param download - Set to true to download the response as a file. Default is false.
428
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
429
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
430
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
431
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
432
+ */
433
+ getHfsItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<string>;
434
+ /**
435
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
436
+ *
437
+ * @param repositoryId - The name or ID of the repository.
438
+ * @param path - The item path.
439
+ * @param project - Project ID or project name
440
+ * @param scopePath - The path scope. The default is null.
441
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
442
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
443
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
444
+ * @param download - Set to true to download the response as a file. Default is false.
445
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
446
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
447
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
448
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
449
+ */
450
+ getHfsItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
451
+ /**
452
+ * Create an import request.
453
+ *
454
+ * @param importRequest - The import request to create.
455
+ * @param project - Project ID or project name
456
+ * @param repositoryId - The name or ID of the repository.
457
+ */
458
+ createImportRequest(importRequest: Git.GitImportRequest, project: string, repositoryId: string): Promise<Git.GitImportRequest>;
459
+ /**
460
+ * Retrieve a particular import request.
461
+ *
462
+ * @param project - Project ID or project name
463
+ * @param repositoryId - The name or ID of the repository.
464
+ * @param importRequestId - The unique identifier for the import request.
465
+ */
466
+ getImportRequest(project: string, repositoryId: string, importRequestId: number): Promise<Git.GitImportRequest>;
467
+ /**
468
+ * Retrieve import requests for a repository.
469
+ *
470
+ * @param project - Project ID or project name
471
+ * @param repositoryId - The name or ID of the repository.
472
+ * @param includeAbandoned - True to include abandoned import requests in the results.
473
+ */
474
+ queryImportRequests(project: string, repositoryId: string, includeAbandoned?: boolean): Promise<Git.GitImportRequest[]>;
475
+ /**
476
+ * Retry or abandon a failed import request.
477
+ *
478
+ * @param importRequestToUpdate - The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned.
479
+ * @param project - Project ID or project name
480
+ * @param repositoryId - The name or ID of the repository.
481
+ * @param importRequestId - The unique identifier for the import request to update.
482
+ */
483
+ updateImportRequest(importRequestToUpdate: Git.GitImportRequest, project: string, repositoryId: string, importRequestId: number): Promise<Git.GitImportRequest>;
484
+ /**
485
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
486
+ *
487
+ * @param repositoryId - The name or ID of the repository.
488
+ * @param path - The item path.
489
+ * @param project - Project ID or project name
490
+ * @param scopePath - The path scope. The default is null.
491
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
492
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
493
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
494
+ * @param download - Set to true to download the response as a file. Default is false.
495
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
496
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
497
+ * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
498
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
499
+ */
500
+ getItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<Git.GitItem>;
501
+ /**
502
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
503
+ *
504
+ * @param repositoryId - The name or ID of the repository.
505
+ * @param path - The item path.
506
+ * @param project - Project ID or project name
507
+ * @param scopePath - The path scope. The default is null.
508
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
509
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
510
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
511
+ * @param download - Set to true to download the response as a file. Default is false.
512
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
513
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
514
+ * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
515
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
516
+ */
517
+ getItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
518
+ /**
519
+ * Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
520
+ *
521
+ * @param repositoryId - The name or ID of the repository.
522
+ * @param project - Project ID or project name
523
+ * @param scopePath - The path scope. The default is null.
524
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
525
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
526
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
527
+ * @param download - Set to true to download the response as a file. Default is false.
528
+ * @param includeLinks - Set to true to include links to items. Default is false.
529
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
530
+ * @param zipForUnix - Set to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
531
+ */
532
+ getItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: Git.GitVersionDescriptor, zipForUnix?: boolean): Promise<Git.GitItem[]>;
533
+ /**
534
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
535
+ *
536
+ * @param repositoryId - The name or ID of the repository.
537
+ * @param path - The item path.
538
+ * @param project - Project ID or project name
539
+ * @param scopePath - The path scope. The default is null.
540
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
541
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
542
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
543
+ * @param download - Set to true to download the response as a file. Default is false.
544
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
545
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
546
+ * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
547
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
548
+ */
549
+ getItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<string>;
550
+ /**
551
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
552
+ *
553
+ * @param repositoryId - The name or ID of the repository.
554
+ * @param path - The item path.
555
+ * @param project - Project ID or project name
556
+ * @param scopePath - The path scope. The default is null.
557
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
558
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
559
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
560
+ * @param download - Set to true to download the response as a file. Default is false.
561
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
562
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
563
+ * @param resolveLfs - Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
564
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
565
+ */
566
+ getItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
567
+ /**
568
+ * Retrieves a batch of items in a repo / project for a given list of paths or a long path
569
+ *
570
+ * @param requestData - Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references.
571
+ * @param repositoryId - The name or ID of the repository
572
+ * @param project - Project ID or project name
573
+ */
574
+ getItemsBatch(requestData: Git.GitItemRequestData, repositoryId: string, project?: string): Promise<Git.GitItem[][]>;
575
+ /**
576
+ * Find the merge bases of two commits, optionally across forks. If otherRepositoryId is not specified, the merge bases will only be calculated within the context of the local repositoryNameOrId.
577
+ *
578
+ * @param repositoryNameOrId - ID or name of the local repository.
579
+ * @param commitId - First commit, usually the tip of the target branch of the potential merge.
580
+ * @param otherCommitId - Other commit, usually the tip of the source branch of the potential merge.
581
+ * @param project - Project ID or project name
582
+ * @param otherCollectionId - The collection ID where otherCommitId lives.
583
+ * @param otherRepositoryId - The repository ID where otherCommitId lives.
584
+ */
585
+ getMergeBases(repositoryNameOrId: string, commitId: string, otherCommitId: string, project?: string, otherCollectionId?: string, otherRepositoryId?: string): Promise<Git.GitCommitRef[]>;
586
+ /**
587
+ * Request a git merge operation. Currently we support merging only 2 commits.
588
+ *
589
+ * @param mergeParameters - Parents commitIds and merge commit messsage.
590
+ * @param project - Project ID or project name
591
+ * @param repositoryNameOrId - The name or ID of the repository.
592
+ * @param includeLinks - True to include links
593
+ */
594
+ createMergeRequest(mergeParameters: Git.GitMergeParameters, project: string, repositoryNameOrId: string, includeLinks?: boolean): Promise<Git.GitMerge>;
595
+ /**
596
+ * Get a specific merge operation's details.
597
+ *
598
+ * @param project - Project ID or project name
599
+ * @param repositoryNameOrId - The name or ID of the repository.
600
+ * @param mergeOperationId - OperationId of the merge request.
601
+ * @param includeLinks - True to include links
602
+ */
603
+ getMergeRequest(project: string, repositoryNameOrId: string, mergeOperationId: number, includeLinks?: boolean): Promise<Git.GitMerge>;
604
+ /**
605
+ * Attach a new file to a pull request.
606
+ *
607
+ * @param content - Content to upload
608
+ * @param fileName - The name of the file.
609
+ * @param repositoryId - The repository ID of the pull request’s target branch.
610
+ * @param pullRequestId - ID of the pull request.
611
+ * @param project - Project ID or project name
612
+ */
613
+ createAttachment(content: any, fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.Attachment>;
614
+ /**
615
+ * Delete a pull request attachment.
616
+ *
617
+ * @param fileName - The name of the attachment to delete.
618
+ * @param repositoryId - The repository ID of the pull request’s target branch.
619
+ * @param pullRequestId - ID of the pull request.
620
+ * @param project - Project ID or project name
621
+ */
622
+ deleteAttachment(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
623
+ /**
624
+ * Get the file content of a pull request attachment.
625
+ *
626
+ * @param fileName - The name of the attachment.
627
+ * @param repositoryId - The repository ID of the pull request’s target branch.
628
+ * @param pullRequestId - ID of the pull request.
629
+ * @param project - Project ID or project name
630
+ */
631
+ getAttachmentContent(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<ArrayBuffer>;
632
+ /**
633
+ * Get a list of files attached to a given pull request.
634
+ *
635
+ * @param repositoryId - The repository ID of the pull request’s target branch.
636
+ * @param pullRequestId - ID of the pull request.
637
+ * @param project - Project ID or project name
638
+ */
639
+ getAttachments(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.Attachment[]>;
640
+ /**
641
+ * Get the file content of a pull request attachment.
642
+ *
643
+ * @param fileName - The name of the attachment.
644
+ * @param repositoryId - The repository ID of the pull request’s target branch.
645
+ * @param pullRequestId - ID of the pull request.
646
+ * @param project - Project ID or project name
647
+ */
648
+ getAttachmentZip(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<ArrayBuffer>;
649
+ /**
650
+ * Add a like on a comment.
651
+ *
652
+ * @param repositoryId - The repository ID of the pull request's target branch.
653
+ * @param pullRequestId - ID of the pull request.
654
+ * @param threadId - The ID of the thread that contains the comment.
655
+ * @param commentId - The ID of the comment.
656
+ * @param project - Project ID or project name
657
+ */
658
+ createLike(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>;
659
+ /**
660
+ * Delete a like on a comment.
661
+ *
662
+ * @param repositoryId - The repository ID of the pull request's target branch.
663
+ * @param pullRequestId - ID of the pull request.
664
+ * @param threadId - The ID of the thread that contains the comment.
665
+ * @param commentId - The ID of the comment.
666
+ * @param project - Project ID or project name
667
+ */
668
+ deleteLike(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>;
669
+ /**
670
+ * Get likes for a comment.
671
+ *
672
+ * @param repositoryId - The repository ID of the pull request's target branch.
673
+ * @param pullRequestId - ID of the pull request.
674
+ * @param threadId - The ID of the thread that contains the comment.
675
+ * @param commentId - The ID of the comment.
676
+ * @param project - Project ID or project name
677
+ */
678
+ getLikes(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<WebApi.IdentityRef[]>;
679
+ /**
680
+ * Get the commits for the specified iteration of a pull request.
681
+ *
682
+ * @param repositoryId - ID or name of the repository.
683
+ * @param pullRequestId - ID of the pull request.
684
+ * @param iterationId - ID of the iteration from which to get the commits.
685
+ * @param project - Project ID or project name
686
+ * @param top - Maximum number of commits to return. The maximum number of commits that can be returned per batch is 500.
687
+ * @param skip - Number of commits to skip.
688
+ */
689
+ getPullRequestIterationCommits(repositoryId: string, pullRequestId: number, iterationId: number, project?: string, top?: number, skip?: number): Promise<Git.GitCommitRef[]>;
690
+ /**
691
+ * Get the commits for the specified pull request.
692
+ *
693
+ * @param repositoryId - ID or name of the repository.
694
+ * @param pullRequestId - ID of the pull request.
695
+ * @param project - Project ID or project name
696
+ */
697
+ getPullRequestCommits(repositoryId: string, pullRequestId: number, project?: string): Promise<WebApi.PagedList<Git.GitCommitRef>>;
698
+ /**
699
+ * Retrieve one conflict for a pull request by ID
700
+ *
701
+ * @param repositoryId -
702
+ * @param pullRequestId -
703
+ * @param conflictId -
704
+ * @param project - Project ID or project name
705
+ */
706
+ getPullRequestConflict(repositoryId: string, pullRequestId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
707
+ /**
708
+ * Retrieve all conflicts for a pull request
709
+ *
710
+ * @param repositoryId - The repository of the Pull Request.
711
+ * @param pullRequestId - The pull request ID.
712
+ * @param project - Project ID or project name
713
+ * @param skip - Conflicts to skip.
714
+ * @param top - Conflicts to return after skip.
715
+ * @param includeObsolete - Includes obsolete conflicts.
716
+ * @param excludeResolved - Excludes conflicts already resolved.
717
+ * @param onlyResolved - Returns only the conflicts that are resolved.
718
+ */
719
+ getPullRequestConflicts(repositoryId: string, pullRequestId: number, project?: string, skip?: number, top?: number, includeObsolete?: boolean, excludeResolved?: boolean, onlyResolved?: boolean): Promise<Git.GitConflict[]>;
720
+ /**
721
+ * Update merge conflict resolution
722
+ *
723
+ * @param conflict -
724
+ * @param repositoryId -
725
+ * @param pullRequestId -
726
+ * @param conflictId -
727
+ * @param project - Project ID or project name
728
+ */
729
+ updatePullRequestConflict(conflict: Git.GitConflict, repositoryId: string, pullRequestId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
730
+ /**
731
+ * Update multiple merge conflict resolutions
732
+ *
733
+ * @param conflictUpdates -
734
+ * @param repositoryId -
735
+ * @param pullRequestId -
736
+ * @param project - Project ID or project name
737
+ */
738
+ updatePullRequestConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
739
+ /**
740
+ * Retrieve the file diffs for all changes in a pull request.
741
+ *
742
+ * @param repositoryId - The repository ID of the pull request's target branch.
743
+ * @param pullRequestId - ID of the pull request.
744
+ * @param project - Project ID or project name
745
+ * @param iteration - If specified, file diffs will be retrieved for this iteration. If not specified, uses the latest iteration.
746
+ * @param baseIteration - If specified, file diffs will be compared against this iteration. The default value is zero which indicates the comparison is made against the common commit between the source and target branches.
747
+ * @param top - Optional. The number of file diffs to retrieve. The default value is 100 and the maximum value is 300.
748
+ * @param skip - Optional. The number of file diffs to ignore. For example, to retrieve file diffs 101-150, set top to 50 and skip to 100.
749
+ */
750
+ getPullRequestFilesDiff(repositoryId: string, pullRequestId: number, project?: string, iteration?: number, baseIteration?: number, top?: number, skip?: number): Promise<Git.GitPullRequestFilesDiff>;
751
+ /**
752
+ * Retrieve the changes made in a pull request between two iterations.
753
+ *
754
+ * @param repositoryId - The repository ID of the pull request's target branch.
755
+ * @param pullRequestId - ID of the pull request.
756
+ * @param iterationId - ID of the pull request iteration. \<br /\> Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. Allowed values are between 1 and the maximum iteration on this pull request.
757
+ * @param project - Project ID or project name
758
+ * @param top - Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000.
759
+ * @param skip - Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100.
760
+ * @param compareTo - ID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches
761
+ */
762
+ getPullRequestIterationChanges(repositoryId: string, pullRequestId: number, iterationId: number, project?: string, top?: number, skip?: number, compareTo?: number): Promise<Git.GitPullRequestIterationChanges>;
763
+ /**
764
+ * Get the specified iteration for a pull request.
765
+ *
766
+ * @param repositoryId - ID or name of the repository.
767
+ * @param pullRequestId - ID of the pull request.
768
+ * @param iterationId - ID of the pull request iteration to return.
769
+ * @param project - Project ID or project name
770
+ */
771
+ getPullRequestIteration(repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<Git.GitPullRequestIteration>;
772
+ /**
773
+ * Get the list of iterations for the specified pull request.
774
+ *
775
+ * @param repositoryId - ID or name of the repository.
776
+ * @param pullRequestId - ID of the pull request.
777
+ * @param project - Project ID or project name
778
+ * @param includeCommits - If true, include the commits associated with each iteration in the response.
779
+ */
780
+ getPullRequestIterations(repositoryId: string, pullRequestId: number, project?: string, includeCommits?: boolean): Promise<Git.GitPullRequestIteration[]>;
781
+ /**
782
+ * Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body.
783
+ *
784
+ * @param status - Pull request status to create.
785
+ * @param repositoryId - The repository ID of the pull request’s target branch.
786
+ * @param pullRequestId - ID of the pull request.
787
+ * @param iterationId - ID of the pull request iteration.
788
+ * @param project - Project ID or project name
789
+ */
790
+ createPullRequestIterationStatus(status: Git.GitPullRequestStatus, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<Git.GitPullRequestStatus>;
791
+ /**
792
+ * Delete pull request iteration status.
793
+ *
794
+ * @param repositoryId - The repository ID of the pull request’s target branch.
795
+ * @param pullRequestId - ID of the pull request.
796
+ * @param iterationId - ID of the pull request iteration.
797
+ * @param statusId - ID of the pull request status.
798
+ * @param project - Project ID or project name
799
+ */
800
+ deletePullRequestIterationStatus(repositoryId: string, pullRequestId: number, iterationId: number, statusId: number, project?: string): Promise<void>;
801
+ /**
802
+ * Get the specific pull request iteration status by ID. The status ID is unique within the pull request across all iterations.
803
+ *
804
+ * @param repositoryId - The repository ID of the pull request’s target branch.
805
+ * @param pullRequestId - ID of the pull request.
806
+ * @param iterationId - ID of the pull request iteration.
807
+ * @param statusId - ID of the pull request status.
808
+ * @param project - Project ID or project name
809
+ */
810
+ getPullRequestIterationStatus(repositoryId: string, pullRequestId: number, iterationId: number, statusId: number, project?: string): Promise<Git.GitPullRequestStatus>;
811
+ /**
812
+ * Get all the statuses associated with a pull request iteration.
813
+ *
814
+ * @param repositoryId - The repository ID of the pull request’s target branch.
815
+ * @param pullRequestId - ID of the pull request.
816
+ * @param iterationId - ID of the pull request iteration.
817
+ * @param project - Project ID or project name
818
+ */
819
+ getPullRequestIterationStatuses(repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<Git.GitPullRequestStatus[]>;
820
+ /**
821
+ * Update pull request iteration statuses collection. The only supported operation type is \`remove\`.
822
+ *
823
+ * @param patchDocument - Operations to apply to the pull request statuses in JSON Patch format.
824
+ * @param repositoryId - The repository ID of the pull request’s target branch.
825
+ * @param pullRequestId - ID of the pull request.
826
+ * @param iterationId - ID of the pull request iteration.
827
+ * @param project - Project ID or project name
828
+ */
829
+ updatePullRequestIterationStatuses(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<void>;
830
+ /**
831
+ * Create a tag (if that does not exists yet) and add that as a label (tag) for a specified pull request. The only required field is the name of the new label (tag).
832
+ *
833
+ * @param label - Label to assign to the pull request.
834
+ * @param repositoryId - The repository ID of the pull request’s target branch.
835
+ * @param pullRequestId - ID of the pull request.
836
+ * @param project - Project ID or project name
837
+ * @param projectId - Project ID or project name.
838
+ */
839
+ createPullRequestLabel(label: TfsCore.WebApiCreateTagRequestData, repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
840
+ /**
841
+ * Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
842
+ *
843
+ * @param repositoryId - The repository ID of the pull request’s target branch.
844
+ * @param pullRequestId - ID of the pull request.
845
+ * @param labelIdOrName - The name or ID of the label requested.
846
+ * @param project - Project ID or project name
847
+ * @param projectId - Project ID or project name.
848
+ */
849
+ deletePullRequestLabels(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<void>;
850
+ /**
851
+ * Retrieves a single label (tag) that has been assigned to a pull request.
852
+ *
853
+ * @param repositoryId - The repository ID of the pull request’s target branch.
854
+ * @param pullRequestId - ID of the pull request.
855
+ * @param labelIdOrName - The name or ID of the label requested.
856
+ * @param project - Project ID or project name
857
+ * @param projectId - Project ID or project name.
858
+ */
859
+ getPullRequestLabel(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
860
+ /**
861
+ * Get all the labels (tags) assigned to a pull request.
862
+ *
863
+ * @param repositoryId - The repository ID of the pull request’s target branch.
864
+ * @param pullRequestId - ID of the pull request.
865
+ * @param project - Project ID or project name
866
+ * @param projectId - Project ID or project name.
867
+ */
868
+ getPullRequestLabels(repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition[]>;
869
+ /**
870
+ * Get external properties of the pull request.
871
+ *
872
+ * @param repositoryId - The repository ID of the pull request’s target branch.
873
+ * @param pullRequestId - ID of the pull request.
874
+ * @param project - Project ID or project name
875
+ */
876
+ getPullRequestProperties(repositoryId: string, pullRequestId: number, project?: string): Promise<any>;
877
+ /**
878
+ * Create or update pull request external properties. The patch operation can be \`add\`, \`replace\` or \`remove\`. For \`add\` operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For \`replace\` operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For \`remove\` operation, the path cannot be empty. If the path does not exist, no action will be performed.
879
+ *
880
+ * @param patchDocument - Properties to add, replace or remove in JSON Patch format.
881
+ * @param repositoryId - The repository ID of the pull request’s target branch.
882
+ * @param pullRequestId - ID of the pull request.
883
+ * @param project - Project ID or project name
884
+ */
885
+ updatePullRequestProperties(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, project?: string): Promise<any>;
886
+ /**
887
+ * This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -\> pull requests.
888
+ *
889
+ * @param queries - The list of queries to perform.
890
+ * @param repositoryId - ID of the repository.
891
+ * @param project - Project ID or project name
892
+ */
893
+ getPullRequestQuery(queries: Git.GitPullRequestQuery, repositoryId: string, project?: string): Promise<Git.GitPullRequestQuery>;
894
+ /**
895
+ * Add a reviewer to a pull request or cast a vote.
896
+ *
897
+ * @param reviewer - Reviewer's vote.\<br /\>If the reviewer's ID is included here, it must match the reviewerID parameter.\<br /\>Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
898
+ * @param repositoryId - The repository ID of the pull request's target branch.
899
+ * @param pullRequestId - ID of the pull request.
900
+ * @param reviewerId - ID of the reviewer.
901
+ * @param project - Project ID or project name
902
+ */
903
+ createPullRequestReviewer(reviewer: Git.IdentityRefWithVote, repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<Git.IdentityRefWithVote>;
904
+ /**
905
+ * Add reviewers to a pull request.
906
+ *
907
+ * @param reviewers - Reviewers to add to the pull request.
908
+ * @param repositoryId - The repository ID of the pull request's target branch.
909
+ * @param pullRequestId - ID of the pull request.
910
+ * @param project - Project ID or project name
911
+ */
912
+ createPullRequestReviewers(reviewers: WebApi.IdentityRef[], repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote[]>;
913
+ /**
914
+ * Add an unmaterialized identity to the reviewers of a pull request.
915
+ *
916
+ * @param reviewer - Reviewer to add to the pull request.
917
+ * @param repositoryId - The repository ID of the pull request's target branch.
918
+ * @param pullRequestId - ID of the pull request.
919
+ * @param project - Project ID or project name
920
+ */
921
+ createUnmaterializedPullRequestReviewer(reviewer: Git.IdentityRefWithVote, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote>;
922
+ /**
923
+ * Remove a reviewer from a pull request.
924
+ *
925
+ * @param repositoryId - The repository ID of the pull request's target branch.
926
+ * @param pullRequestId - ID of the pull request.
927
+ * @param reviewerId - ID of the reviewer to remove.
928
+ * @param project - Project ID or project name
929
+ */
930
+ deletePullRequestReviewer(repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<void>;
931
+ /**
932
+ * Retrieve information about a particular reviewer on a pull request
933
+ *
934
+ * @param repositoryId - The repository ID of the pull request's target branch.
935
+ * @param pullRequestId - ID of the pull request.
936
+ * @param reviewerId - ID of the reviewer.
937
+ * @param project - Project ID or project name
938
+ */
939
+ getPullRequestReviewer(repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<Git.IdentityRefWithVote>;
940
+ /**
941
+ * Retrieve the reviewers for a pull request
942
+ *
943
+ * @param repositoryId - The repository ID of the pull request's target branch.
944
+ * @param pullRequestId - ID of the pull request.
945
+ * @param project - Project ID or project name
946
+ */
947
+ getPullRequestReviewers(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.IdentityRefWithVote[]>;
948
+ /**
949
+ * Edit a reviewer entry. These fields are patchable: isFlagged, hasDeclined
950
+ *
951
+ * @param reviewer - Reviewer data.\<br /\>If the reviewer's ID is included here, it must match the reviewerID parameter.
952
+ * @param repositoryId - The repository ID of the pull request's target branch.
953
+ * @param pullRequestId - ID of the pull request.
954
+ * @param reviewerId - ID of the reviewer.
955
+ * @param project - Project ID or project name
956
+ */
957
+ updatePullRequestReviewer(reviewer: Git.IdentityRefWithVote, repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<Git.IdentityRefWithVote>;
958
+ /**
959
+ * Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.
960
+ *
961
+ * @param patchVotes - IDs of the reviewers whose votes will be reset to zero
962
+ * @param repositoryId - The repository ID of the pull request's target branch.
963
+ * @param pullRequestId - ID of the pull request
964
+ * @param project - Project ID or project name
965
+ */
966
+ updatePullRequestReviewers(patchVotes: Git.IdentityRefWithVote[], repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
967
+ /**
968
+ * Retrieve a pull request.
969
+ *
970
+ * @param pullRequestId - The ID of the pull request to retrieve.
971
+ * @param project - Project ID or project name
972
+ */
973
+ getPullRequestById(pullRequestId: number, project?: string): Promise<Git.GitPullRequest>;
974
+ /**
975
+ * Retrieve all pull requests matching a specified criteria.
976
+ *
977
+ * @param project - Project ID or project name
978
+ * @param searchCriteria - Pull requests will be returned that match this search criteria.
979
+ * @param maxCommentLength - Not used.
980
+ * @param skip - The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
981
+ * @param top - The number of pull requests to retrieve.
982
+ */
983
+ getPullRequestsByProject(project: string, searchCriteria: Git.GitPullRequestSearchCriteria, maxCommentLength?: number, skip?: number, top?: number): Promise<Git.GitPullRequest[]>;
984
+ /**
985
+ * Create a pull request.
986
+ *
987
+ * @param gitPullRequestToCreate - The pull request to create.
988
+ * @param repositoryId - The repository ID of the pull request's target branch.
989
+ * @param project - Project ID or project name
990
+ * @param supportsIterations - If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.
991
+ */
992
+ createPullRequest(gitPullRequestToCreate: Git.GitPullRequest, repositoryId: string, project?: string, supportsIterations?: boolean): Promise<Git.GitPullRequest>;
993
+ /**
994
+ * Retrieve a pull request.
995
+ *
996
+ * @param repositoryId - The repository ID of the pull request's target branch.
997
+ * @param pullRequestId - The ID of the pull request to retrieve.
998
+ * @param project - Project ID or project name
999
+ * @param maxCommentLength - Not used.
1000
+ * @param skip - Not used.
1001
+ * @param top - Not used.
1002
+ * @param includeCommits - If true, the pull request will be returned with the associated commits.
1003
+ * @param includeWorkItemRefs - If true, the pull request will be returned with the associated work item references.
1004
+ */
1005
+ getPullRequest(repositoryId: string, pullRequestId: number, project?: string, maxCommentLength?: number, skip?: number, top?: number, includeCommits?: boolean, includeWorkItemRefs?: boolean): Promise<Git.GitPullRequest>;
1006
+ /**
1007
+ * Retrieve all pull requests matching a specified criteria.
1008
+ *
1009
+ * @param repositoryId - The repository ID of the pull request's target branch.
1010
+ * @param searchCriteria - Pull requests will be returned that match this search criteria.
1011
+ * @param project - Project ID or project name
1012
+ * @param maxCommentLength - Not used.
1013
+ * @param skip - The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
1014
+ * @param top - The number of pull requests to retrieve.
1015
+ */
1016
+ getPullRequests(repositoryId: string, searchCriteria: Git.GitPullRequestSearchCriteria, project?: string, maxCommentLength?: number, skip?: number, top?: number): Promise<Git.GitPullRequest[]>;
1017
+ /**
1018
+ * Update a pull request
1019
+ *
1020
+ * @param gitPullRequestToUpdate - The pull request content that should be updated.
1021
+ * @param repositoryId - The repository ID of the pull request's target branch.
1022
+ * @param pullRequestId - ID of the pull request to update.
1023
+ * @param project - Project ID or project name
1024
+ */
1025
+ updatePullRequest(gitPullRequestToUpdate: Git.GitPullRequest, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequest>;
1026
+ /**
1027
+ * Sends an e-mail notification about a specific pull request to a set of recipients
1028
+ *
1029
+ * @param userMessage -
1030
+ * @param repositoryId - ID of the git repository.
1031
+ * @param pullRequestId - ID of the pull request.
1032
+ * @param project - Project ID or project name
1033
+ */
1034
+ sharePullRequest(userMessage: Git.ShareNotificationContext, repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
1035
+ /**
1036
+ * Create a pull request status.
1037
+ *
1038
+ * @param status - Pull request status to create.
1039
+ * @param repositoryId - The repository ID of the pull request’s target branch.
1040
+ * @param pullRequestId - ID of the pull request.
1041
+ * @param project - Project ID or project name
1042
+ */
1043
+ createPullRequestStatus(status: Git.GitPullRequestStatus, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequestStatus>;
1044
+ /**
1045
+ * Delete pull request status.
1046
+ *
1047
+ * @param repositoryId - The repository ID of the pull request’s target branch.
1048
+ * @param pullRequestId - ID of the pull request.
1049
+ * @param statusId - ID of the pull request status.
1050
+ * @param project - Project ID or project name
1051
+ */
1052
+ deletePullRequestStatus(repositoryId: string, pullRequestId: number, statusId: number, project?: string): Promise<void>;
1053
+ /**
1054
+ * Get the specific pull request status by ID. The status ID is unique within the pull request across all iterations.
1055
+ *
1056
+ * @param repositoryId - The repository ID of the pull request’s target branch.
1057
+ * @param pullRequestId - ID of the pull request.
1058
+ * @param statusId - ID of the pull request status.
1059
+ * @param project - Project ID or project name
1060
+ */
1061
+ getPullRequestStatus(repositoryId: string, pullRequestId: number, statusId: number, project?: string): Promise<Git.GitPullRequestStatus>;
1062
+ /**
1063
+ * Get all the statuses associated with a pull request.
1064
+ *
1065
+ * @param repositoryId - The repository ID of the pull request’s target branch.
1066
+ * @param pullRequestId - ID of the pull request.
1067
+ * @param project - Project ID or project name
1068
+ */
1069
+ getPullRequestStatuses(repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequestStatus[]>;
1070
+ /**
1071
+ * Update pull request statuses collection. The only supported operation type is \`remove\`.
1072
+ *
1073
+ * @param patchDocument - Operations to apply to the pull request statuses in JSON Patch format.
1074
+ * @param repositoryId - The repository ID of the pull request’s target branch.
1075
+ * @param pullRequestId - ID of the pull request.
1076
+ * @param project - Project ID or project name
1077
+ */
1078
+ updatePullRequestStatuses(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, project?: string): Promise<void>;
1079
+ /**
1080
+ * Create a comment on a specific thread in a pull request (up to 500 comments can be created per thread).
1081
+ *
1082
+ * @param comment - The comment to create. Comments can be up to 150,000 characters.
1083
+ * @param repositoryId - The repository ID of the pull request's target branch.
1084
+ * @param pullRequestId - ID of the pull request.
1085
+ * @param threadId - ID of the thread that the desired comment is in.
1086
+ * @param project - Project ID or project name
1087
+ */
1088
+ createComment(comment: Git.Comment, repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Git.Comment>;
1089
+ /**
1090
+ * Delete a comment associated with a specific thread in a pull request.
1091
+ *
1092
+ * @param repositoryId - The repository ID of the pull request's target branch.
1093
+ * @param pullRequestId - ID of the pull request.
1094
+ * @param threadId - ID of the thread that the desired comment is in.
1095
+ * @param commentId - ID of the comment.
1096
+ * @param project - Project ID or project name
1097
+ */
1098
+ deleteComment(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>;
1099
+ /**
1100
+ * Retrieve a comment associated with a specific thread in a pull request.
1101
+ *
1102
+ * @param repositoryId - The repository ID of the pull request's target branch.
1103
+ * @param pullRequestId - ID of the pull request.
1104
+ * @param threadId - ID of the thread that the desired comment is in.
1105
+ * @param commentId - ID of the comment.
1106
+ * @param project - Project ID or project name
1107
+ */
1108
+ getComment(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<Git.Comment>;
1109
+ /**
1110
+ * Retrieve all comments associated with a specific thread in a pull request.
1111
+ *
1112
+ * @param repositoryId - The repository ID of the pull request's target branch.
1113
+ * @param pullRequestId - ID of the pull request.
1114
+ * @param threadId - ID of the thread.
1115
+ * @param project - Project ID or project name
1116
+ */
1117
+ getComments(repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Git.Comment[]>;
1118
+ /**
1119
+ * Update a comment associated with a specific thread in a pull request.
1120
+ *
1121
+ * @param comment - The comment content that should be updated. Comments can be up to 150,000 characters.
1122
+ * @param repositoryId - The repository ID of the pull request's target branch.
1123
+ * @param pullRequestId - ID of the pull request.
1124
+ * @param threadId - ID of the thread that the desired comment is in.
1125
+ * @param commentId - ID of the comment to update.
1126
+ * @param project - Project ID or project name
1127
+ */
1128
+ updateComment(comment: Git.Comment, repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<Git.Comment>;
1129
+ /**
1130
+ * Create a thread in a pull request.
1131
+ *
1132
+ * @param commentThread - The thread to create. Thread must contain at least one comment.
1133
+ * @param repositoryId - Repository ID of the pull request's target branch.
1134
+ * @param pullRequestId - ID of the pull request.
1135
+ * @param project - Project ID or project name
1136
+ */
1137
+ createThread(commentThread: Git.GitPullRequestCommentThread, repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitPullRequestCommentThread>;
1138
+ /**
1139
+ * Retrieve a thread in a pull request.
1140
+ *
1141
+ * @param repositoryId - The repository ID of the pull request's target branch.
1142
+ * @param pullRequestId - ID of the pull request.
1143
+ * @param threadId - ID of the thread.
1144
+ * @param project - Project ID or project name
1145
+ * @param iteration - If specified, thread position will be tracked using this iteration as the right side of the diff.
1146
+ * @param baseIteration - If specified, thread position will be tracked using this iteration as the left side of the diff.
1147
+ */
1148
+ getPullRequestThread(repositoryId: string, pullRequestId: number, threadId: number, project?: string, iteration?: number, baseIteration?: number): Promise<Git.GitPullRequestCommentThread>;
1149
+ /**
1150
+ * Retrieve all threads in a pull request.
1151
+ *
1152
+ * @param repositoryId - The repository ID of the pull request's target branch.
1153
+ * @param pullRequestId - ID of the pull request.
1154
+ * @param project - Project ID or project name
1155
+ * @param iteration - If specified, thread positions will be tracked using this iteration as the right side of the diff.
1156
+ * @param baseIteration - If specified, thread positions will be tracked using this iteration as the left side of the diff.
1157
+ */
1158
+ getThreads(repositoryId: string, pullRequestId: number, project?: string, iteration?: number, baseIteration?: number): Promise<Git.GitPullRequestCommentThread[]>;
1159
+ /**
1160
+ * Update a thread in a pull request.
1161
+ *
1162
+ * @param commentThread - The thread content that should be updated.
1163
+ * @param repositoryId - The repository ID of the pull request's target branch.
1164
+ * @param pullRequestId - ID of the pull request.
1165
+ * @param threadId - ID of the thread to update.
1166
+ * @param project - Project ID or project name
1167
+ */
1168
+ updateThread(commentThread: Git.GitPullRequestCommentThread, repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Git.GitPullRequestCommentThread>;
1169
+ /**
1170
+ * Retrieve a list of work items associated with a pull request.
1171
+ *
1172
+ * @param repositoryId - ID or name of the repository.
1173
+ * @param pullRequestId - ID of the pull request.
1174
+ * @param project - Project ID or project name
1175
+ */
1176
+ getPullRequestWorkItemRefs(repositoryId: string, pullRequestId: number, project?: string): Promise<WebApi.ResourceRef[]>;
1177
+ /**
1178
+ * Push changes to the repository.
1179
+ *
1180
+ * @param push -
1181
+ * @param repositoryId - The name or ID of the repository.
1182
+ * @param project - Project ID or project name
1183
+ */
1184
+ createPush(push: Git.GitPush, repositoryId: string, project?: string): Promise<Git.GitPush>;
1185
+ /**
1186
+ * Retrieves a particular push.
1187
+ *
1188
+ * @param repositoryId - The name or ID of the repository.
1189
+ * @param pushId - ID of the push.
1190
+ * @param project - Project ID or project name
1191
+ * @param includeCommits - The number of commits to include in the result.
1192
+ * @param includeRefUpdates - If true, include the list of refs that were updated by the push.
1193
+ */
1194
+ getPush(repositoryId: string, pushId: number, project?: string, includeCommits?: number, includeRefUpdates?: boolean): Promise<Git.GitPush>;
1195
+ /**
1196
+ * Retrieves pushes associated with the specified repository.
1197
+ *
1198
+ * @param repositoryId - The name or ID of the repository.
1199
+ * @param project - Project ID or project name
1200
+ * @param skip - Number of pushes to skip.
1201
+ * @param top - Number of pushes to return.
1202
+ * @param searchCriteria - Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
1203
+ */
1204
+ getPushes(repositoryId: string, project?: string, skip?: number, top?: number, searchCriteria?: Git.GitPushSearchCriteria): Promise<Git.GitPush[]>;
1205
+ /**
1206
+ * Destroy (hard delete) a soft-deleted Git repository.
1207
+ *
1208
+ * @param project - Project ID or project name
1209
+ * @param repositoryId - The ID of the repository.
1210
+ */
1211
+ deleteRepositoryFromRecycleBin(project: string, repositoryId: string): Promise<void>;
1212
+ /**
1213
+ * Retrieve soft-deleted git repositories from the recycle bin.
1214
+ *
1215
+ * @param project - Project ID or project name
1216
+ */
1217
+ getRecycleBinRepositories(project: string): Promise<Git.GitDeletedRepository[]>;
1218
+ /**
1219
+ * Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.
1220
+ *
1221
+ * @param repositoryDetails -
1222
+ * @param project - Project ID or project name
1223
+ * @param repositoryId - The ID of the repository.
1224
+ */
1225
+ restoreRepositoryFromRecycleBin(repositoryDetails: Git.GitRecycleBinRepositoryDetails, project: string, repositoryId: string): Promise<Git.GitRepository>;
1226
+ /**
1227
+ * Queries the provided repository for its refs and returns them.
1228
+ *
1229
+ * @param repositoryId - The name or ID of the repository.
1230
+ * @param project - Project ID or project name
1231
+ * @param filter - [optional] A filter to apply to the refs (starts with).
1232
+ * @param includeLinks - [optional] Specifies if referenceLinks should be included in the result. default is false.
1233
+ * @param includeStatuses - [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false.
1234
+ * @param includeMyBranches - [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter.
1235
+ * @param latestStatusesOnly - [optional] True to include only the tip commit status for each ref. This option requires \`includeStatuses\` to be true. The default value is false.
1236
+ * @param peelTags - [optional] Annotated tags will populate the PeeledObjectId property. default is false.
1237
+ * @param filterContains - [optional] A filter to apply to the refs (contains).
1238
+ * @param includeTargetBranches - [optional] Includes target branches defined by patterns in pull_request_targets.yml.
1239
+ */
1240
+ getRefs(repositoryId: string, project?: string, filter?: string, includeLinks?: boolean, includeStatuses?: boolean, includeMyBranches?: boolean, latestStatusesOnly?: boolean, peelTags?: boolean, filterContains?: string, includeTargetBranches?: boolean): Promise<WebApi.PagedList<Git.GitRef>>;
1241
+ /**
1242
+ * Lock or Unlock a branch.
1243
+ *
1244
+ * @param newRefInfo - The ref update action (lock/unlock) to perform
1245
+ * @param repositoryId - The name or ID of the repository.
1246
+ * @param filter - The name of the branch to lock/unlock
1247
+ * @param project - Project ID or project name
1248
+ * @param projectId - ID or name of the team project. Optional if specifying an ID for repository.
1249
+ */
1250
+ updateRef(newRefInfo: Git.GitRefUpdate, repositoryId: string, filter: string, project?: string, projectId?: string): Promise<Git.GitRef>;
1251
+ /**
1252
+ * Creating, updating, or deleting refs(branches).
1253
+ *
1254
+ * @param refUpdates - List of ref updates to attempt to perform
1255
+ * @param repositoryId - The name or ID of the repository.
1256
+ * @param project - Project ID or project name
1257
+ * @param projectId - ID or name of the team project. Optional if specifying an ID for repository.
1258
+ */
1259
+ updateRefs(refUpdates: Git.GitRefUpdate[], repositoryId: string, project?: string, projectId?: string): Promise<Git.GitRefUpdateResult[]>;
1260
+ /**
1261
+ * Creates a ref favorite
1262
+ *
1263
+ * @param favorite - The ref favorite to create.
1264
+ * @param project - Project ID or project name
1265
+ */
1266
+ createFavorite(favorite: Git.GitRefFavorite, project: string): Promise<Git.GitRefFavorite>;
1267
+ /**
1268
+ * Deletes the refs favorite specified
1269
+ *
1270
+ * @param project - Project ID or project name
1271
+ * @param favoriteId - The Id of the ref favorite to delete.
1272
+ */
1273
+ deleteRefFavorite(project: string, favoriteId: number): Promise<void>;
1274
+ /**
1275
+ * Gets the refs favorite for a favorite Id.
1276
+ *
1277
+ * @param project - Project ID or project name
1278
+ * @param favoriteId - The Id of the requested ref favorite.
1279
+ */
1280
+ getRefFavorite(project: string, favoriteId: number): Promise<Git.GitRefFavorite>;
1281
+ /**
1282
+ * Gets the refs favorites for a repo and an identity.
1283
+ *
1284
+ * @param project - Project ID or project name
1285
+ * @param repositoryId - The id of the repository.
1286
+ * @param identityId - The id of the identity whose favorites are to be retrieved. If null, the requesting identity is used.
1287
+ */
1288
+ getRefFavorites(project: string, repositoryId?: string, identityId?: string): Promise<Git.GitRefFavorite[]>;
1289
+ /**
1290
+ * @param project - Project ID or project name
1291
+ * @param identityId -
1292
+ */
1293
+ getRefFavoritesForProject(project: string, identityId?: string): Promise<Git.GitRefFavorite[]>;
1294
+ /**
1295
+ * Create a git repository in a team project.
1296
+ *
1297
+ * @param gitRepositoryToCreate - Specify the repo name, team project and/or parent repository. Team project information can be omitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id).
1298
+ * @param project - Project ID or project name
1299
+ * @param sourceRef - [optional] Specify the source refs to use while creating a fork repo
1300
+ */
1301
+ createRepository(gitRepositoryToCreate: Git.GitRepositoryCreateOptions, project?: string, sourceRef?: string): Promise<Git.GitRepository>;
1302
+ /**
1303
+ * Delete a git repository
1304
+ *
1305
+ * @param repositoryId - The ID of the repository.
1306
+ * @param project - Project ID or project name
1307
+ */
1308
+ deleteRepository(repositoryId: string, project?: string): Promise<void>;
1309
+ /**
1310
+ * Retrieve git repositories.
1311
+ *
1312
+ * @param project - Project ID or project name
1313
+ * @param includeLinks - [optional] True to include reference links. The default value is false.
1314
+ * @param includeAllUrls - [optional] True to include all remote URLs. The default value is false.
1315
+ * @param includeHidden - [optional] True to include hidden repositories. The default value is false.
1316
+ */
1317
+ getRepositories(project?: string, includeLinks?: boolean, includeAllUrls?: boolean, includeHidden?: boolean): Promise<Git.GitRepository[]>;
1318
+ /**
1319
+ * Retrieve a git repository.
1320
+ *
1321
+ * @param repositoryId - The name or ID of the repository.
1322
+ * @param project - Project ID or project name
1323
+ */
1324
+ getRepository(repositoryId: string, project?: string): Promise<Git.GitRepository>;
1325
+ /**
1326
+ * Retrieve a git repository.
1327
+ *
1328
+ * @param repositoryId - The name or ID of the repository.
1329
+ * @param includeParent - True to include parent repository. Only available in authenticated calls.
1330
+ * @param project - Project ID or project name
1331
+ */
1332
+ getRepositoryWithParent(repositoryId: string, includeParent: boolean, project?: string): Promise<Git.GitRepository>;
1333
+ /**
1334
+ * Updates the Git repository with either a new repo name or a new default branch.
1335
+ *
1336
+ * @param newRepositoryInfo - Specify a new repo name or a new default branch of the repository
1337
+ * @param repositoryId - The ID of the repository.
1338
+ * @param project - Project ID or project name
1339
+ */
1340
+ updateRepository(newRepositoryInfo: Git.GitRepository, repositoryId: string, project?: string): Promise<Git.GitRepository>;
1341
+ /**
1342
+ * Retrieve git repositories with filter by name and pagination.
1343
+ *
1344
+ * @param projectId - ID or name of the team project.
1345
+ * @param includeLinks - [optional] True to include reference links. The default value is false.
1346
+ * @param includeAllUrls - [optional] True to include all remote URLs. The default value is false.
1347
+ * @param includeHidden - [optional] True to include hidden repositories. The default value is false.
1348
+ * @param filterContains - [optional] A filter to apply to the refs (contains).
1349
+ * @param top - [optional] Maximum number of repositories to return. It cannot be bigger than 500. If it is not provided but continuationToken is, top will default to 100.
1350
+ * @param continuationToken - The continuation token used for pagination.
1351
+ */
1352
+ getRepositoriesPaged(projectId: string, includeLinks?: boolean, includeAllUrls?: boolean, includeHidden?: boolean, filterContains?: string, top?: number, continuationToken?: string): Promise<WebApi.PagedList<Git.GitRepository>>;
1353
+ /**
1354
+ * Retrieve one conflict for a revert by ID
1355
+ *
1356
+ * @param repositoryId -
1357
+ * @param revertId -
1358
+ * @param conflictId -
1359
+ * @param project - Project ID or project name
1360
+ */
1361
+ getRevertConflict(repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
1362
+ /**
1363
+ * Retrieve all conflicts for a revert
1364
+ *
1365
+ * @param repositoryId -
1366
+ * @param revertId -
1367
+ * @param project - Project ID or project name
1368
+ * @param continuationToken -
1369
+ * @param top -
1370
+ * @param excludeResolved -
1371
+ * @param onlyResolved -
1372
+ * @param includeObsolete -
1373
+ */
1374
+ getRevertConflicts(repositoryId: string, revertId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<WebApi.PagedList<Git.GitConflict>>;
1375
+ /**
1376
+ * Update merge conflict resolution
1377
+ *
1378
+ * @param conflict -
1379
+ * @param repositoryId -
1380
+ * @param revertId -
1381
+ * @param conflictId -
1382
+ * @param project - Project ID or project name
1383
+ */
1384
+ updateRevertConflict(conflict: Git.GitConflict, repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<Git.GitConflict>;
1385
+ /**
1386
+ * Update multiple merge conflict resolutions
1387
+ *
1388
+ * @param conflictUpdates -
1389
+ * @param repositoryId -
1390
+ * @param revertId -
1391
+ * @param project - Project ID or project name
1392
+ */
1393
+ updateRevertConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, revertId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
1394
+ /**
1395
+ * Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.
1396
+ *
1397
+ * @param revertToCreate -
1398
+ * @param project - Project ID or project name
1399
+ * @param repositoryId - ID of the repository.
1400
+ */
1401
+ createRevert(revertToCreate: Git.GitAsyncRefOperationParameters, project: string, repositoryId: string): Promise<Git.GitRevert>;
1402
+ /**
1403
+ * Retrieve information about a revert operation by revert Id.
1404
+ *
1405
+ * @param project - Project ID or project name
1406
+ * @param revertId - ID of the revert operation.
1407
+ * @param repositoryId - ID of the repository.
1408
+ */
1409
+ getRevert(project: string, revertId: number, repositoryId: string): Promise<Git.GitRevert>;
1410
+ /**
1411
+ * Retrieve information about a revert operation for a specific branch.
1412
+ *
1413
+ * @param project - Project ID or project name
1414
+ * @param repositoryId - ID of the repository.
1415
+ * @param refName - The GitAsyncRefOperationParameters generatedRefName used for the revert operation.
1416
+ */
1417
+ getRevertForRefName(project: string, repositoryId: string, refName: string): Promise<Git.GitRevert>;
1418
+ /**
1419
+ * Create Git commit status.
1420
+ *
1421
+ * @param gitCommitStatusToCreate - Git commit status object to create.
1422
+ * @param commitId - ID of the Git commit.
1423
+ * @param repositoryId - ID of the repository.
1424
+ * @param project - Project ID or project name
1425
+ */
1426
+ createCommitStatus(gitCommitStatusToCreate: Git.GitStatus, commitId: string, repositoryId: string, project?: string): Promise<Git.GitStatus>;
1427
+ /**
1428
+ * Get statuses associated with the Git commit.
1429
+ *
1430
+ * @param commitId - ID of the Git commit.
1431
+ * @param repositoryId - ID of the repository.
1432
+ * @param project - Project ID or project name
1433
+ * @param top - Optional. The number of statuses to retrieve. Default is 1000.
1434
+ * @param skip - Optional. The number of statuses to ignore. Default is 0. For example, to retrieve results 101-150, set top to 50 and skip to 100.
1435
+ * @param latestOnly - The flag indicates whether to get only latest statuses grouped by \`Context.Name\` and \`Context.Genre\`.
1436
+ */
1437
+ getStatuses(commitId: string, repositoryId: string, project?: string, top?: number, skip?: number, latestOnly?: boolean): Promise<Git.GitStatus[]>;
1438
+ /**
1439
+ * Retrieve a pull request suggestion for a particular repository or team project.
1440
+ *
1441
+ * @param repositoryId - ID of the git repository.
1442
+ * @param project - Project ID or project name
1443
+ * @param preferCompareBranch - If true, prefer the compare branch over the default branch as target branch for pull requests.
1444
+ */
1445
+ getSuggestions(repositoryId: string, project?: string, preferCompareBranch?: boolean): Promise<Git.GitSuggestion[]>;
1446
+ /**
1447
+ * The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
1448
+ *
1449
+ * @param repositoryId - Repository Id.
1450
+ * @param sha1 - SHA1 hash of the tree object.
1451
+ * @param project - Project ID or project name
1452
+ * @param projectId - Project Id.
1453
+ * @param recursive - Search recursively. Include trees underneath this tree. Default is false.
1454
+ * @param fileName - Name to use if a .zip file is returned. Default is the object ID.
1455
+ */
1456
+ getTree(repositoryId: string, sha1: string, project?: string, projectId?: string, recursive?: boolean, fileName?: string): Promise<Git.GitTreeRef>;
1457
+ /**
1458
+ * The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
1459
+ *
1460
+ * @param repositoryId - Repository Id.
1461
+ * @param sha1 - SHA1 hash of the tree object.
1462
+ * @param project - Project ID or project name
1463
+ * @param projectId - Project Id.
1464
+ * @param recursive - Search recursively. Include trees underneath this tree. Default is false.
1465
+ * @param fileName - Name to use if a .zip file is returned. Default is the object ID.
1466
+ */
1467
+ getTreeZip(repositoryId: string, sha1: string, project?: string, projectId?: string, recursive?: boolean, fileName?: string): Promise<ArrayBuffer>;
1468
+ }