@resolution/jira-api-client 0.4.2 → 0.4.5

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 (327) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/models/common.d.ts +6 -0
  7. package/lib/openapi/platform/models/common.js +12 -1
  8. package/lib/openapi/platform/models/common.js.map +1 -1
  9. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  10. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  11. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  12. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  14. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  15. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  17. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  18. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  20. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  22. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  23. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  25. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  26. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  27. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  28. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  29. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  30. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  31. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  32. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  33. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  34. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  35. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  36. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  38. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  39. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  40. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  41. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  43. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  44. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  45. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  46. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  47. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  48. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  49. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  50. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  53. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  55. package/lib/openapi/platform/services/GroupsService.js +385 -382
  56. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  57. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  59. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  62. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  65. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  66. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  67. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  68. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  71. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  74. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  83. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  86. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  88. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  89. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  92. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  94. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  95. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  98. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  101. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  104. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  106. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  107. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  110. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  112. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  113. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  115. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  116. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  119. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  122. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  125. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  128. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  131. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  133. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  134. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  136. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  137. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  139. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  140. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  143. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  145. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  146. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  148. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  149. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  150. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  151. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  152. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  154. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  155. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  158. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  160. package/lib/openapi/platform/services/JqlService.js +635 -632
  161. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  162. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  163. package/lib/openapi/platform/services/LabelsService.js +41 -38
  164. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  165. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  167. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  168. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  169. package/lib/openapi/platform/services/MyselfService.js +321 -318
  170. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  171. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  172. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  173. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  175. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  176. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  177. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  178. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  179. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  180. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  182. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  185. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  188. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  190. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  191. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  193. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  194. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  197. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  200. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  203. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  206. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  209. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  211. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  212. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  214. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  215. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  217. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  218. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  220. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  221. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  223. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  224. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  227. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  229. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  230. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  232. package/lib/openapi/platform/services/ScreensService.js +281 -278
  233. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  235. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  236. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  238. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  239. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  240. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  241. package/lib/openapi/platform/services/StatusService.js +271 -268
  242. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  243. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  244. package/lib/openapi/platform/services/TasksService.js +93 -90
  245. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  246. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  247. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  248. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  249. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  251. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  252. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  253. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  254. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  256. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  257. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  258. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  259. package/lib/openapi/platform/services/UsersService.js +637 -634
  260. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  261. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  262. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  263. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  266. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  269. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  272. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  275. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  278. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  281. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  284. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  286. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  287. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  288. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  289. package/lib/openapi/software/services/BacklogService.js +81 -78
  290. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  291. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  292. package/lib/openapi/software/services/BoardService.js +2048 -2045
  293. package/lib/openapi/software/services/BoardService.js.map +1 -1
  294. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  295. package/lib/openapi/software/services/BuildsService.js +164 -161
  296. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  297. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  298. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  299. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  300. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  301. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  302. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  303. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  304. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  305. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  306. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  307. package/lib/openapi/software/services/EpicService.js +597 -594
  308. package/lib/openapi/software/services/EpicService.js.map +1 -1
  309. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  310. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  311. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  312. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  313. package/lib/openapi/software/services/IssueService.js +359 -356
  314. package/lib/openapi/software/services/IssueService.js.map +1 -1
  315. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  316. package/lib/openapi/software/services/OperationsService.js +301 -298
  317. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  318. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  319. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  320. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  321. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  322. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  323. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  324. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  325. package/lib/openapi/software/services/SprintService.js +594 -591
  326. package/lib/openapi/software/services/SprintService.js.map +1 -1
  327. package/package.json +4 -3
@@ -18,754 +18,757 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
18
18
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions
19
19
  */
20
20
  class ProjectVersionsService extends CommonHttpService_1.CommonHttpService {
21
- /**
22
- * Creates a related work for the given version. You can only create a generic
23
- * link type of related works via this API. relatedWorkId will be auto-generated
24
- * UUID, that does not need to be provided.
25
- *
26
- * This operation can be accessed anonymously.
27
- *
28
- * **[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues*
29
- * [Managing project
30
- * permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html)
31
- * for the project that contains the version.
32
- *
33
- * @returns Returned if the request is successful.
34
- *
35
- * example: {
36
- * "category": "Design",
37
- * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcd",
38
- * "title": "Design link",
39
- * "url": "https://www.atlassian.com"
40
- * }
41
- * @path {POST} /rest/api/3/version/{id}/relatedwork
42
- * @scopes-current write:jira-work
43
- * @scopes-beta write:issue:jira
44
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedwork-post
45
- */
46
- createRelatedWork({ id, versionRelatedWork, }) {
47
- return this.getClientInstance()
48
- .request({
49
- path: "/rest/api/3/version/{id}/relatedwork",
50
- method: "POST",
51
- pathParams: {
52
- id,
53
- },
54
- headers: {
55
- "Content-Type": "application/json",
56
- },
57
- body: versionRelatedWork,
58
- })
59
- .then(this.getClientInstance().responseHandler({
60
- 201: {
61
- "application/json": "json",
62
- },
63
- }))
64
- .then(commonHttpClient.castResponse())
65
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.createRelatedWork.response"))
66
- .then(commonHttpClient.getBody);
67
- }
68
- /**
69
- * Creates a project version.
70
- *
71
- * This operation can be accessed anonymously.
72
- *
73
- * **[Permissions](#permissions) required:** *Administer Jira* [global
74
- * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
75
- * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
76
- * the version is added to.
77
- *
78
- * @returns Returned if the request is successful.
79
- *
80
- * example: {
81
- * "archived": false,
82
- * "description": "An excellent version",
83
- * "id": "10000",
84
- * "name": "New Version 1",
85
- * "project": "PXA",
86
- * "projectId": 10000,
87
- * "releaseDate": "2010-07-06",
88
- * "released": true,
89
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
90
- * "userReleaseDate": "6/Jul/2010"
91
- * }
92
- * @path {POST} /rest/api/3/version
93
- * @scopes-current manage:jira-project
94
- * @scopes-beta write:project-version:jira, read:project-version:jira
95
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-post
96
- */
97
- createVersion({ version, }) {
98
- return this.getClientInstance()
99
- .request({
100
- path: "/rest/api/3/version",
101
- method: "POST",
102
- headers: {
103
- "Content-Type": "application/json",
104
- },
105
- body: version,
106
- })
107
- .then(this.getClientInstance().responseHandler({
108
- 201: {
109
- "application/json": "json",
110
- },
111
- }))
112
- .then(commonHttpClient.castResponse())
113
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.createVersion.response"))
114
- .then(commonHttpClient.getBody);
115
- }
116
- /**
117
- * Deletes a project version.
118
- *
119
- * Alternative versions can be provided to update issues that use the deleted
120
- * version in `fixVersion`, `affectedVersion`, or any version picker custom
121
- * fields. If alternatives are not provided, occurrences of `fixVersion`,
122
- * `affectedVersion`, and any version picker custom field, that contain the
123
- * deleted version, are cleared. Any replacement version must be in the same
124
- * project as the version being deleted and cannot be the version being deleted.
125
- *
126
- * This operation can be accessed anonymously.
127
- *
128
- * **[Permissions](#permissions) required:** *Administer Jira* [global
129
- * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
130
- * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
131
- * that contains the version.
132
- *
133
- * @returns Returned if the version is deleted.
134
- * @path {POST} /rest/api/3/version/{id}/removeAndSwap
135
- * @scopes-current manage:jira-project
136
- * @scopes-beta delete:project-version:jira, write:project-version:jira
137
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-removeandswap-post
138
- */
139
- deleteAndReplaceVersion({ id, deleteAndReplaceVersionBean, }) {
140
- return this.getClientInstance()
141
- .request({
142
- path: "/rest/api/3/version/{id}/removeAndSwap",
143
- method: "POST",
144
- pathParams: {
145
- id,
146
- },
147
- headers: {
148
- "Content-Type": "application/json",
149
- },
150
- body: deleteAndReplaceVersionBean,
151
- })
152
- .then(this.getClientInstance().responseHandler({
153
- 204: {
154
- "application/json": "json",
155
- },
156
- }))
157
- .then(commonHttpClient.castResponse())
158
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.deleteAndReplaceVersion.response"))
159
- .then(commonHttpClient.getBody);
160
- }
161
- /**
162
- * Deletes the given related work for the given version.
163
- *
164
- * This operation can be accessed anonymously.
165
- *
166
- * **[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues*
167
- * [Managing project
168
- * permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html)
169
- * for the project that contains the version.
170
- *
171
- * @path {DELETE} /rest/api/3/version/{versionId}/relatedwork/{relatedWorkId}
172
- * @scopes-current write:jira-work
173
- * @scopes-beta write:issue:jira
174
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-versionid-relatedwork-relatedworkid-delete
175
- */
176
- deleteRelatedWork({ versionId, relatedWorkId, }) {
177
- return this.getClientInstance()
178
- .request({
179
- path: "/rest/api/3/version/{versionId}/relatedwork/{relatedWorkId}",
180
- method: "DELETE",
181
- pathParams: {
182
- versionId,
183
- relatedWorkId,
184
- },
185
- })
186
- .then(commonHttpClient.discardResult);
187
- }
188
- /**
189
- * Deletes a project version.
190
- *
191
- * Deprecated, use [ Delete and replace
192
- * version](#api-rest-api-3-version-id-removeAndSwap-post) that supports swapping
193
- * version values in custom fields, in addition to the swapping for `fixVersion`
194
- * and `affectedVersion` provided in this resource.
195
- *
196
- * Alternative versions can be provided to update issues that use the deleted
197
- * version in `fixVersion` or `affectedVersion`. If alternatives are not provided,
198
- * occurrences of `fixVersion` and `affectedVersion` that contain the deleted
199
- * version are cleared.
200
- *
201
- * This operation can be accessed anonymously.
202
- *
203
- * **[Permissions](#permissions) required:** *Administer Jira* [global
204
- * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
205
- * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
206
- * that contains the version.
207
- *
208
- * @deprecated
209
- * @path {DELETE} /rest/api/3/version/{id}
210
- * @scopes-current manage:jira-project
211
- * @scopes-beta delete:project-version:jira
212
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-delete
213
- */
214
- deleteVersion({ id, moveFixIssuesTo, moveAffectedIssuesTo, }) {
215
- return this.getClientInstance()
216
- .request({
217
- path: "/rest/api/3/version/{id}",
218
- method: "DELETE",
219
- pathParams: {
220
- id,
221
- },
222
- query: {
223
- moveFixIssuesTo,
224
- moveAffectedIssuesTo,
225
- },
226
- })
227
- .then(commonHttpClient.discardResult);
228
- }
229
- /**
230
- * Returns all versions in a project. The response is not paginated. Use [Get
231
- * project versions paginated](#api-rest-api-3-project-projectIdOrKey-version-get)
232
- * if you want to get the versions in a project with pagination.
233
- *
234
- * This operation can be accessed anonymously.
235
- *
236
- * **[Permissions](#permissions) required:** *Browse Projects* [project
237
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
238
- *
239
- * @returns Returned if the request is successful.
240
- *
241
- * example: [
242
- * {
243
- * "archived": false,
244
- * "description": "An excellent version",
245
- * "id": "10000",
246
- * "name": "New Version 1",
247
- * "overdue": true,
248
- * "projectId": 10000,
249
- * "releaseDate": 1278385482288,
250
- * "releaseDateSet": false,
251
- * "released": true,
252
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
253
- * "startDateSet": false,
254
- * "userReleaseDate": "6/Jul/2010"
255
- * },
256
- * {
257
- * "archived": false,
258
- * "description": "Minor Bugfix version",
259
- * "id": "10010",
260
- * "issuesStatusForFixVersion": {
261
- * "done": 100,
262
- * "inProgress": 20,
263
- * "toDo": 10,
264
- * "unmapped": 0
265
- * },
266
- * "name": "Next Version",
267
- * "overdue": false,
268
- * "projectId": 10000,
269
- * "releaseDateSet": false,
270
- * "released": false,
271
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10010",
272
- * "startDateSet": false
273
- * }
274
- * ]
275
- * @path {GET} /rest/api/3/project/{projectIdOrKey}/versions
276
- * @scopes-current read:jira-work
277
- * @scopes-beta read:project-version:jira
278
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-project-projectidorkey-versions-get
279
- */
280
- getProjectVersions({ projectIdOrKey, expand, }) {
281
- return this.getClientInstance()
282
- .request({
283
- path: "/rest/api/3/project/{projectIdOrKey}/versions",
284
- method: "GET",
285
- pathParams: {
286
- projectIdOrKey,
287
- },
288
- query: {
289
- expand,
290
- },
291
- })
292
- .then(this.getClientInstance().responseHandler({
293
- 200: {
294
- "application/json": "json",
295
- },
296
- }))
297
- .then(commonHttpClient.castResponse())
298
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getProjectVersions.response"))
299
- .then(commonHttpClient.getBody);
300
- }
301
- /**
302
- * Returns a [paginated](#pagination) list of all versions in a project. See the
303
- * [Get project versions](#api-rest-api-3-project-projectIdOrKey-versions-get)
304
- * resource if you want to get a full list of versions without pagination.
305
- *
306
- * This operation can be accessed anonymously.
307
- *
308
- * **[Permissions](#permissions) required:** *Browse Projects* [project
309
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
310
- *
311
- * @returns Returned if the request is successful.
312
- *
313
- * example: {
314
- * "isLast": false,
315
- * "maxResults": 2,
316
- * "nextPage":
317
- * "https://your-domain.atlassian.net/rest/api/3/project/PR/version?startAt=2&maxResults=2",
318
- * "self":
319
- * "https://your-domain.atlassian.net/rest/api/3/project/PR/version?startAt=0&maxResults=2",
320
- * "startAt": 0,
321
- * "total": 7,
322
- * "values": [
323
- * {
324
- * "archived": false,
325
- * "description": "An excellent version",
326
- * "id": "10000",
327
- * "name": "New Version 1",
328
- * "overdue": true,
329
- * "projectId": 10000,
330
- * "releaseDate": "2010-07-06",
331
- * "released": true,
332
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
333
- * "userReleaseDate": "6/Jul/2010"
334
- * },
335
- * {
336
- * "archived": false,
337
- * "description": "Minor Bugfix version",
338
- * "id": "10010",
339
- * "issuesStatusForFixVersion": {
340
- * "done": 100,
341
- * "inProgress": 20,
342
- * "toDo": 10,
343
- * "unmapped": 0
344
- * },
345
- * "name": "Next Version",
346
- * "overdue": false,
347
- * "projectId": 10000,
348
- * "released": false,
349
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10010"
350
- * }
351
- * ]
352
- * }
353
- * @path {GET} /rest/api/3/project/{projectIdOrKey}/version
354
- * @scopes-current read:jira-work
355
- * @scopes-beta read:project-version:jira
356
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-project-projectidorkey-version-get
357
- */
358
- getProjectVersionsPaginated({ projectIdOrKey, startAt, maxResults, orderBy, query, status, expand, }) {
359
- return this.getClientInstance()
360
- .request({
361
- path: "/rest/api/3/project/{projectIdOrKey}/version",
362
- method: "GET",
363
- pathParams: {
364
- projectIdOrKey,
365
- },
366
- query: {
367
- startAt,
368
- maxResults,
369
- orderBy,
370
- query,
371
- status,
372
- expand,
373
- },
374
- })
375
- .then(this.getClientInstance().responseHandler({
376
- 200: {
377
- "application/json": "json",
378
- },
379
- }))
380
- .then(commonHttpClient.castResponse())
381
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getProjectVersionsPaginated.response"))
382
- .then(commonHttpClient.getBody);
383
- }
384
- /**
385
- * Returns related work items for the given version id.
386
- *
387
- * This operation can be accessed anonymously.
388
- *
389
- * **[Permissions](#permissions) required:** *Browse projects* [project
390
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
391
- * containing the version.
392
- *
393
- * @returns Returned if the request is successful.
394
- *
395
- * example: [
396
- * {
397
- * "category": "Design",
398
- * "issueId": 10001,
399
- * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcd",
400
- * "title": "Design link",
401
- * "url": "https://www.atlassian.com"
402
- * },
403
- * {
404
- * "category": "Communications",
405
- * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abce",
406
- * "title": "Chat application",
407
- * "url": "https://www.atlassian.com"
408
- * },
409
- * {
410
- * "category": "External Link",
411
- * "issueId": 10003,
412
- * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcf",
413
- * "url": "https://www.atlassian.com"
414
- * }
415
- * ]
416
- * @path {GET} /rest/api/3/version/{id}/relatedwork
417
- * @scopes-current read:jira-work
418
- * @scopes-beta read:project-version:jira
419
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedwork-get
420
- */
421
- getRelatedWork({ id, }) {
422
- return this.getClientInstance()
423
- .request({
424
- path: "/rest/api/3/version/{id}/relatedwork",
425
- method: "GET",
426
- pathParams: {
427
- id,
428
- },
429
- })
430
- .then(this.getClientInstance().responseHandler({
431
- 200: {
432
- "application/json": "json",
433
- },
434
- }))
435
- .then(commonHttpClient.castResponse())
436
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getRelatedWork.response"))
437
- .then(commonHttpClient.getBody);
438
- }
439
- /**
440
- * Returns a project version.
441
- *
442
- * This operation can be accessed anonymously.
443
- *
444
- * **[Permissions](#permissions) required:** *Browse projects* [project
445
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
446
- * containing the version.
447
- *
448
- * @returns Returned if the request is successful.
449
- *
450
- * example: {
451
- * "archived": false,
452
- * "description": "An excellent version",
453
- * "id": "10000",
454
- * "name": "New Version 1",
455
- * "overdue": true,
456
- * "projectId": 10000,
457
- * "releaseDate": "2010-07-06",
458
- * "released": true,
459
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
460
- * "userReleaseDate": "6/Jul/2010"
461
- * }
462
- * @path {GET} /rest/api/3/version/{id}
463
- * @scopes-current read:jira-work
464
- * @scopes-beta read:project-version:jira
465
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-get
466
- */
467
- getVersion({ id, expand, }) {
468
- return this.getClientInstance()
469
- .request({
470
- path: "/rest/api/3/version/{id}",
471
- method: "GET",
472
- pathParams: {
473
- id,
474
- },
475
- query: {
476
- expand,
477
- },
478
- })
479
- .then(this.getClientInstance().responseHandler({
480
- 200: {
481
- "application/json": "json",
482
- },
483
- }))
484
- .then(commonHttpClient.castResponse())
485
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getVersion.response"))
486
- .then(commonHttpClient.getBody);
487
- }
488
- /**
489
- * Returns the following counts for a version:
490
- *
491
- * * Number of issues where the `fixVersion` is set to the version.
492
- * * Number of issues where the `affectedVersion` is set to the version.
493
- * * Number of issues where a version custom field is set to the version.
494
- *
495
- * This operation can be accessed anonymously.
496
- *
497
- * **[Permissions](#permissions) required:** *Browse projects* project permission
498
- * for the project that contains the version.
499
- *
500
- * @returns Returned if the request is successful.
501
- *
502
- * example: {
503
- * "customFieldUsage": [
504
- * {
505
- * "customFieldId": 10000,
506
- * "fieldName": "Field1",
507
- * "issueCountWithVersionInCustomField": 2
508
- * },
509
- * {
510
- * "customFieldId": 10010,
511
- * "fieldName": "Field2",
512
- * "issueCountWithVersionInCustomField": 3
513
- * }
514
- * ],
515
- * "issueCountWithCustomFieldsShowingVersion": 54,
516
- * "issuesAffectedCount": 101,
517
- * "issuesFixedCount": 23,
518
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000"
519
- * }
520
- * @path {GET} /rest/api/3/version/{id}/relatedIssueCounts
521
- * @scopes-current read:jira-work
522
- * @scopes-beta read:field:jira, read:project-version:jira
523
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedissuecounts-get
524
- */
525
- getVersionRelatedIssues({ id, }) {
526
- return this.getClientInstance()
527
- .request({
528
- path: "/rest/api/3/version/{id}/relatedIssueCounts",
529
- method: "GET",
530
- pathParams: {
531
- id,
532
- },
533
- })
534
- .then(this.getClientInstance().responseHandler({
535
- 200: {
536
- "application/json": "json",
537
- },
538
- }))
539
- .then(commonHttpClient.castResponse())
540
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getVersionRelatedIssues.response"))
541
- .then(commonHttpClient.getBody);
542
- }
543
- /**
544
- * Returns counts of the issues and unresolved issues for the project version.
545
- *
546
- * This operation can be accessed anonymously.
547
- *
548
- * **[Permissions](#permissions) required:** *Browse projects* project permission
549
- * for the project that contains the version.
550
- *
551
- * @returns Returned if the request is successful.
552
- *
553
- * example: {
554
- * "issuesCount": 30,
555
- * "issuesUnresolvedCount": 23,
556
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000"
557
- * }
558
- * @path {GET} /rest/api/3/version/{id}/unresolvedIssueCount
559
- * @scopes-current read:jira-work
560
- * @scopes-beta read:project-version:jira
561
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-unresolvedissuecount-get
562
- */
563
- getVersionUnresolvedIssues({ id, }) {
564
- return this.getClientInstance()
565
- .request({
566
- path: "/rest/api/3/version/{id}/unresolvedIssueCount",
567
- method: "GET",
568
- pathParams: {
569
- id,
570
- },
571
- })
572
- .then(this.getClientInstance().responseHandler({
573
- 200: {
574
- "application/json": "json",
575
- },
576
- }))
577
- .then(commonHttpClient.castResponse())
578
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getVersionUnresolvedIssues.response"))
579
- .then(commonHttpClient.getBody);
580
- }
581
- /**
582
- * Merges two project versions. The merge is completed by deleting the version
583
- * specified in `id` and replacing any occurrences of its ID in `fixVersion` with
584
- * the version ID specified in `moveIssuesTo`.
585
- *
586
- * Consider using [ Delete and replace
587
- * version](#api-rest-api-3-version-id-removeAndSwap-post) instead. This resource
588
- * supports swapping version values in `fixVersion`, `affectedVersion`, and custom
589
- * fields.
590
- *
591
- * This operation can be accessed anonymously.
592
- *
593
- * **[Permissions](#permissions) required:** *Administer Jira* [global
594
- * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
595
- * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
596
- * that contains the version.
597
- *
598
- * @returns Returned if the version is deleted.
599
- * @path {PUT} /rest/api/3/version/{id}/mergeto/{moveIssuesTo}
600
- * @scopes-current manage:jira-project
601
- * @scopes-beta delete:project-version:jira, write:project-version:jira
602
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-mergeto-moveissuesto-put
603
- */
604
- mergeVersions({ id, moveIssuesTo, }) {
605
- return this.getClientInstance()
606
- .request({
607
- path: "/rest/api/3/version/{id}/mergeto/{moveIssuesTo}",
608
- method: "PUT",
609
- pathParams: {
610
- id,
611
- moveIssuesTo,
612
- },
613
- })
614
- .then(this.getClientInstance().responseHandler({
615
- 204: {
616
- "application/json": "json",
617
- },
618
- }))
619
- .then(commonHttpClient.castResponse())
620
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.mergeVersions.response"))
621
- .then(commonHttpClient.getBody);
622
- }
623
- /**
624
- * Modifies the version's sequence within the project, which affects the display
625
- * order of the versions in Jira.
626
- *
627
- * This operation can be accessed anonymously.
628
- *
629
- * **[Permissions](#permissions) required:** *Browse projects* project permission
630
- * for the project that contains the version.
631
- *
632
- * @returns Returned if the request is successful.
633
- *
634
- * example: {
635
- * "archived": false,
636
- * "description": "An excellent version",
637
- * "id": "10000",
638
- * "name": "New Version 1",
639
- * "overdue": true,
640
- * "projectId": 10000,
641
- * "releaseDate": "2010-07-06",
642
- * "released": true,
643
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
644
- * "userReleaseDate": "6/Jul/2010"
645
- * }
646
- * @path {POST} /rest/api/3/version/{id}/move
647
- * @scopes-current manage:jira-project
648
- * @scopes-beta write:project-version:jira, read:project-version:jira
649
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-move-post
650
- */
651
- moveVersion({ id, versionMoveBean, }) {
652
- return this.getClientInstance()
653
- .request({
654
- path: "/rest/api/3/version/{id}/move",
655
- method: "POST",
656
- pathParams: {
657
- id,
658
- },
659
- headers: {
660
- "Content-Type": "application/json",
661
- },
662
- body: versionMoveBean,
663
- })
664
- .then(this.getClientInstance().responseHandler({
665
- 200: {
666
- "application/json": "json",
667
- },
668
- }))
669
- .then(commonHttpClient.castResponse())
670
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.moveVersion.response"))
671
- .then(commonHttpClient.getBody);
672
- }
673
- /**
674
- * Updates the given related work. You can only update generic link related works
675
- * via Rest APIs. Any archived version related works can't be edited.
676
- *
677
- * This operation can be accessed anonymously.
678
- *
679
- * **[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues*
680
- * [Managing project
681
- * permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html)
682
- * for the project that contains the version.
683
- *
684
- * @returns Returned if the request is successful together with updated related work.
685
- *
686
- * example: {
687
- * "category": "Design",
688
- * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcd",
689
- * "title": "Design link",
690
- * "url": "https://www.atlassian.com"
691
- * }
692
- * @path {PUT} /rest/api/3/version/{id}/relatedwork
693
- * @scopes-current write:jira-work
694
- * @scopes-beta write:issue:jira
695
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedwork-put
696
- */
697
- updateRelatedWork({ id, versionRelatedWork, }) {
698
- return this.getClientInstance()
699
- .request({
700
- path: "/rest/api/3/version/{id}/relatedwork",
701
- method: "PUT",
702
- pathParams: {
703
- id,
704
- },
705
- headers: {
706
- "Content-Type": "application/json",
707
- },
708
- body: versionRelatedWork,
709
- })
710
- .then(this.getClientInstance().responseHandler({
711
- 200: {
712
- "application/json": "json",
713
- },
714
- }))
715
- .then(commonHttpClient.castResponse())
716
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.updateRelatedWork.response"))
717
- .then(commonHttpClient.getBody);
718
- }
719
- /**
720
- * Updates a project version.
721
- *
722
- * This operation can be accessed anonymously.
723
- *
724
- * **[Permissions](#permissions) required:** *Administer Jira* [global
725
- * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
726
- * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
727
- * that contains the version.
728
- *
729
- * @returns Returned if the request is successful.
730
- *
731
- * example: {
732
- * "archived": false,
733
- * "description": "An excellent version",
734
- * "id": "10000",
735
- * "name": "New Version 1",
736
- * "project": "PXA",
737
- * "projectId": 10000,
738
- * "releaseDate": "2010-07-06",
739
- * "released": true,
740
- * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
741
- * "userReleaseDate": "6/Jul/2010"
742
- * }
743
- * @path {PUT} /rest/api/3/version/{id}
744
- * @scopes-current manage:jira-project
745
- * @scopes-beta write:project-version:jira, read:project-version:jira
746
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-put
747
- */
748
- updateVersion({ id, version, }) {
749
- return this.getClientInstance()
750
- .request({
751
- path: "/rest/api/3/version/{id}",
752
- method: "PUT",
753
- pathParams: {
754
- id,
755
- },
756
- headers: {
757
- "Content-Type": "application/json",
758
- },
759
- body: version,
760
- })
761
- .then(this.getClientInstance().responseHandler({
762
- 200: {
763
- "application/json": "json",
764
- },
765
- }))
766
- .then(commonHttpClient.castResponse())
767
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.updateVersion.response"))
768
- .then(commonHttpClient.getBody);
21
+ constructor() {
22
+ super(...arguments);
23
+ /**
24
+ * Creates a related work for the given version. You can only create a generic
25
+ * link type of related works via this API. relatedWorkId will be auto-generated
26
+ * UUID, that does not need to be provided.
27
+ *
28
+ * This operation can be accessed anonymously.
29
+ *
30
+ * **[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues*
31
+ * [Managing project
32
+ * permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html)
33
+ * for the project that contains the version.
34
+ *
35
+ * @returns Returned if the request is successful.
36
+ *
37
+ * example: {
38
+ * "category": "Design",
39
+ * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcd",
40
+ * "title": "Design link",
41
+ * "url": "https://www.atlassian.com"
42
+ * }
43
+ * @path {POST} /rest/api/3/version/{id}/relatedwork
44
+ * @scopes-current write:jira-work
45
+ * @scopes-beta write:issue:jira
46
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedwork-post
47
+ */
48
+ this.createRelatedWork = ({ id, versionRelatedWork, }) => {
49
+ return this.getClientInstance()
50
+ .request({
51
+ path: "/rest/api/3/version/{id}/relatedwork",
52
+ method: "POST",
53
+ pathParams: {
54
+ id,
55
+ },
56
+ headers: {
57
+ "Content-Type": "application/json",
58
+ },
59
+ body: versionRelatedWork,
60
+ })
61
+ .then(this.getClientInstance().responseHandler({
62
+ 201: {
63
+ "application/json": "json",
64
+ },
65
+ }))
66
+ .then(commonHttpClient.castResponse())
67
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.createRelatedWork.response"))
68
+ .then(commonHttpClient.getBody);
69
+ };
70
+ /**
71
+ * Creates a project version.
72
+ *
73
+ * This operation can be accessed anonymously.
74
+ *
75
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
76
+ * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
77
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
78
+ * the version is added to.
79
+ *
80
+ * @returns Returned if the request is successful.
81
+ *
82
+ * example: {
83
+ * "archived": false,
84
+ * "description": "An excellent version",
85
+ * "id": "10000",
86
+ * "name": "New Version 1",
87
+ * "project": "PXA",
88
+ * "projectId": 10000,
89
+ * "releaseDate": "2010-07-06",
90
+ * "released": true,
91
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
92
+ * "userReleaseDate": "6/Jul/2010"
93
+ * }
94
+ * @path {POST} /rest/api/3/version
95
+ * @scopes-current manage:jira-project
96
+ * @scopes-beta write:project-version:jira, read:project-version:jira
97
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-post
98
+ */
99
+ this.createVersion = ({ version, }) => {
100
+ return this.getClientInstance()
101
+ .request({
102
+ path: "/rest/api/3/version",
103
+ method: "POST",
104
+ headers: {
105
+ "Content-Type": "application/json",
106
+ },
107
+ body: version,
108
+ })
109
+ .then(this.getClientInstance().responseHandler({
110
+ 201: {
111
+ "application/json": "json",
112
+ },
113
+ }))
114
+ .then(commonHttpClient.castResponse())
115
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.createVersion.response"))
116
+ .then(commonHttpClient.getBody);
117
+ };
118
+ /**
119
+ * Deletes a project version.
120
+ *
121
+ * Alternative versions can be provided to update issues that use the deleted
122
+ * version in `fixVersion`, `affectedVersion`, or any version picker custom
123
+ * fields. If alternatives are not provided, occurrences of `fixVersion`,
124
+ * `affectedVersion`, and any version picker custom field, that contain the
125
+ * deleted version, are cleared. Any replacement version must be in the same
126
+ * project as the version being deleted and cannot be the version being deleted.
127
+ *
128
+ * This operation can be accessed anonymously.
129
+ *
130
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
131
+ * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
132
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
133
+ * that contains the version.
134
+ *
135
+ * @returns Returned if the version is deleted.
136
+ * @path {POST} /rest/api/3/version/{id}/removeAndSwap
137
+ * @scopes-current manage:jira-project
138
+ * @scopes-beta delete:project-version:jira, write:project-version:jira
139
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-removeandswap-post
140
+ */
141
+ this.deleteAndReplaceVersion = ({ id, deleteAndReplaceVersionBean, }) => {
142
+ return this.getClientInstance()
143
+ .request({
144
+ path: "/rest/api/3/version/{id}/removeAndSwap",
145
+ method: "POST",
146
+ pathParams: {
147
+ id,
148
+ },
149
+ headers: {
150
+ "Content-Type": "application/json",
151
+ },
152
+ body: deleteAndReplaceVersionBean,
153
+ })
154
+ .then(this.getClientInstance().responseHandler({
155
+ 204: {
156
+ "application/json": "json",
157
+ },
158
+ }))
159
+ .then(commonHttpClient.castResponse())
160
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.deleteAndReplaceVersion.response"))
161
+ .then(commonHttpClient.getBody);
162
+ };
163
+ /**
164
+ * Deletes the given related work for the given version.
165
+ *
166
+ * This operation can be accessed anonymously.
167
+ *
168
+ * **[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues*
169
+ * [Managing project
170
+ * permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html)
171
+ * for the project that contains the version.
172
+ *
173
+ * @path {DELETE} /rest/api/3/version/{versionId}/relatedwork/{relatedWorkId}
174
+ * @scopes-current write:jira-work
175
+ * @scopes-beta write:issue:jira
176
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-versionid-relatedwork-relatedworkid-delete
177
+ */
178
+ this.deleteRelatedWork = ({ versionId, relatedWorkId, }) => {
179
+ return this.getClientInstance()
180
+ .request({
181
+ path: "/rest/api/3/version/{versionId}/relatedwork/{relatedWorkId}",
182
+ method: "DELETE",
183
+ pathParams: {
184
+ versionId,
185
+ relatedWorkId,
186
+ },
187
+ })
188
+ .then(commonHttpClient.discardResult);
189
+ };
190
+ /**
191
+ * Deletes a project version.
192
+ *
193
+ * Deprecated, use [ Delete and replace
194
+ * version](#api-rest-api-3-version-id-removeAndSwap-post) that supports swapping
195
+ * version values in custom fields, in addition to the swapping for `fixVersion`
196
+ * and `affectedVersion` provided in this resource.
197
+ *
198
+ * Alternative versions can be provided to update issues that use the deleted
199
+ * version in `fixVersion` or `affectedVersion`. If alternatives are not provided,
200
+ * occurrences of `fixVersion` and `affectedVersion` that contain the deleted
201
+ * version are cleared.
202
+ *
203
+ * This operation can be accessed anonymously.
204
+ *
205
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
206
+ * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
207
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
208
+ * that contains the version.
209
+ *
210
+ * @deprecated
211
+ * @path {DELETE} /rest/api/3/version/{id}
212
+ * @scopes-current manage:jira-project
213
+ * @scopes-beta delete:project-version:jira
214
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-delete
215
+ */
216
+ this.deleteVersion = ({ id, moveFixIssuesTo, moveAffectedIssuesTo, }) => {
217
+ return this.getClientInstance()
218
+ .request({
219
+ path: "/rest/api/3/version/{id}",
220
+ method: "DELETE",
221
+ pathParams: {
222
+ id,
223
+ },
224
+ query: {
225
+ moveFixIssuesTo,
226
+ moveAffectedIssuesTo,
227
+ },
228
+ })
229
+ .then(commonHttpClient.discardResult);
230
+ };
231
+ /**
232
+ * Returns all versions in a project. The response is not paginated. Use [Get
233
+ * project versions paginated](#api-rest-api-3-project-projectIdOrKey-version-get)
234
+ * if you want to get the versions in a project with pagination.
235
+ *
236
+ * This operation can be accessed anonymously.
237
+ *
238
+ * **[Permissions](#permissions) required:** *Browse Projects* [project
239
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
240
+ *
241
+ * @returns Returned if the request is successful.
242
+ *
243
+ * example: [
244
+ * {
245
+ * "archived": false,
246
+ * "description": "An excellent version",
247
+ * "id": "10000",
248
+ * "name": "New Version 1",
249
+ * "overdue": true,
250
+ * "projectId": 10000,
251
+ * "releaseDate": 1278385482288,
252
+ * "releaseDateSet": false,
253
+ * "released": true,
254
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
255
+ * "startDateSet": false,
256
+ * "userReleaseDate": "6/Jul/2010"
257
+ * },
258
+ * {
259
+ * "archived": false,
260
+ * "description": "Minor Bugfix version",
261
+ * "id": "10010",
262
+ * "issuesStatusForFixVersion": {
263
+ * "done": 100,
264
+ * "inProgress": 20,
265
+ * "toDo": 10,
266
+ * "unmapped": 0
267
+ * },
268
+ * "name": "Next Version",
269
+ * "overdue": false,
270
+ * "projectId": 10000,
271
+ * "releaseDateSet": false,
272
+ * "released": false,
273
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10010",
274
+ * "startDateSet": false
275
+ * }
276
+ * ]
277
+ * @path {GET} /rest/api/3/project/{projectIdOrKey}/versions
278
+ * @scopes-current read:jira-work
279
+ * @scopes-beta read:project-version:jira
280
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-project-projectidorkey-versions-get
281
+ */
282
+ this.getProjectVersions = ({ projectIdOrKey, expand, }) => {
283
+ return this.getClientInstance()
284
+ .request({
285
+ path: "/rest/api/3/project/{projectIdOrKey}/versions",
286
+ method: "GET",
287
+ pathParams: {
288
+ projectIdOrKey,
289
+ },
290
+ query: {
291
+ expand,
292
+ },
293
+ })
294
+ .then(this.getClientInstance().responseHandler({
295
+ 200: {
296
+ "application/json": "json",
297
+ },
298
+ }))
299
+ .then(commonHttpClient.castResponse())
300
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getProjectVersions.response"))
301
+ .then(commonHttpClient.getBody);
302
+ };
303
+ /**
304
+ * Returns a [paginated](#pagination) list of all versions in a project. See the
305
+ * [Get project versions](#api-rest-api-3-project-projectIdOrKey-versions-get)
306
+ * resource if you want to get a full list of versions without pagination.
307
+ *
308
+ * This operation can be accessed anonymously.
309
+ *
310
+ * **[Permissions](#permissions) required:** *Browse Projects* [project
311
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
312
+ *
313
+ * @returns Returned if the request is successful.
314
+ *
315
+ * example: {
316
+ * "isLast": false,
317
+ * "maxResults": 2,
318
+ * "nextPage":
319
+ * "https://your-domain.atlassian.net/rest/api/3/project/PR/version?startAt=2&maxResults=2",
320
+ * "self":
321
+ * "https://your-domain.atlassian.net/rest/api/3/project/PR/version?startAt=0&maxResults=2",
322
+ * "startAt": 0,
323
+ * "total": 7,
324
+ * "values": [
325
+ * {
326
+ * "archived": false,
327
+ * "description": "An excellent version",
328
+ * "id": "10000",
329
+ * "name": "New Version 1",
330
+ * "overdue": true,
331
+ * "projectId": 10000,
332
+ * "releaseDate": "2010-07-06",
333
+ * "released": true,
334
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
335
+ * "userReleaseDate": "6/Jul/2010"
336
+ * },
337
+ * {
338
+ * "archived": false,
339
+ * "description": "Minor Bugfix version",
340
+ * "id": "10010",
341
+ * "issuesStatusForFixVersion": {
342
+ * "done": 100,
343
+ * "inProgress": 20,
344
+ * "toDo": 10,
345
+ * "unmapped": 0
346
+ * },
347
+ * "name": "Next Version",
348
+ * "overdue": false,
349
+ * "projectId": 10000,
350
+ * "released": false,
351
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10010"
352
+ * }
353
+ * ]
354
+ * }
355
+ * @path {GET} /rest/api/3/project/{projectIdOrKey}/version
356
+ * @scopes-current read:jira-work
357
+ * @scopes-beta read:project-version:jira
358
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-project-projectidorkey-version-get
359
+ */
360
+ this.getProjectVersionsPaginated = ({ projectIdOrKey, startAt, maxResults, orderBy, query, status, expand, }) => {
361
+ return this.getClientInstance()
362
+ .request({
363
+ path: "/rest/api/3/project/{projectIdOrKey}/version",
364
+ method: "GET",
365
+ pathParams: {
366
+ projectIdOrKey,
367
+ },
368
+ query: {
369
+ startAt,
370
+ maxResults,
371
+ orderBy,
372
+ query,
373
+ status,
374
+ expand,
375
+ },
376
+ })
377
+ .then(this.getClientInstance().responseHandler({
378
+ 200: {
379
+ "application/json": "json",
380
+ },
381
+ }))
382
+ .then(commonHttpClient.castResponse())
383
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getProjectVersionsPaginated.response"))
384
+ .then(commonHttpClient.getBody);
385
+ };
386
+ /**
387
+ * Returns related work items for the given version id.
388
+ *
389
+ * This operation can be accessed anonymously.
390
+ *
391
+ * **[Permissions](#permissions) required:** *Browse projects* [project
392
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
393
+ * containing the version.
394
+ *
395
+ * @returns Returned if the request is successful.
396
+ *
397
+ * example: [
398
+ * {
399
+ * "category": "Design",
400
+ * "issueId": 10001,
401
+ * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcd",
402
+ * "title": "Design link",
403
+ * "url": "https://www.atlassian.com"
404
+ * },
405
+ * {
406
+ * "category": "Communications",
407
+ * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abce",
408
+ * "title": "Chat application",
409
+ * "url": "https://www.atlassian.com"
410
+ * },
411
+ * {
412
+ * "category": "External Link",
413
+ * "issueId": 10003,
414
+ * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcf",
415
+ * "url": "https://www.atlassian.com"
416
+ * }
417
+ * ]
418
+ * @path {GET} /rest/api/3/version/{id}/relatedwork
419
+ * @scopes-current read:jira-work
420
+ * @scopes-beta read:project-version:jira
421
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedwork-get
422
+ */
423
+ this.getRelatedWork = ({ id, }) => {
424
+ return this.getClientInstance()
425
+ .request({
426
+ path: "/rest/api/3/version/{id}/relatedwork",
427
+ method: "GET",
428
+ pathParams: {
429
+ id,
430
+ },
431
+ })
432
+ .then(this.getClientInstance().responseHandler({
433
+ 200: {
434
+ "application/json": "json",
435
+ },
436
+ }))
437
+ .then(commonHttpClient.castResponse())
438
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getRelatedWork.response"))
439
+ .then(commonHttpClient.getBody);
440
+ };
441
+ /**
442
+ * Returns a project version.
443
+ *
444
+ * This operation can be accessed anonymously.
445
+ *
446
+ * **[Permissions](#permissions) required:** *Browse projects* [project
447
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
448
+ * containing the version.
449
+ *
450
+ * @returns Returned if the request is successful.
451
+ *
452
+ * example: {
453
+ * "archived": false,
454
+ * "description": "An excellent version",
455
+ * "id": "10000",
456
+ * "name": "New Version 1",
457
+ * "overdue": true,
458
+ * "projectId": 10000,
459
+ * "releaseDate": "2010-07-06",
460
+ * "released": true,
461
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
462
+ * "userReleaseDate": "6/Jul/2010"
463
+ * }
464
+ * @path {GET} /rest/api/3/version/{id}
465
+ * @scopes-current read:jira-work
466
+ * @scopes-beta read:project-version:jira
467
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-get
468
+ */
469
+ this.getVersion = ({ id, expand, }) => {
470
+ return this.getClientInstance()
471
+ .request({
472
+ path: "/rest/api/3/version/{id}",
473
+ method: "GET",
474
+ pathParams: {
475
+ id,
476
+ },
477
+ query: {
478
+ expand,
479
+ },
480
+ })
481
+ .then(this.getClientInstance().responseHandler({
482
+ 200: {
483
+ "application/json": "json",
484
+ },
485
+ }))
486
+ .then(commonHttpClient.castResponse())
487
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getVersion.response"))
488
+ .then(commonHttpClient.getBody);
489
+ };
490
+ /**
491
+ * Returns the following counts for a version:
492
+ *
493
+ * * Number of issues where the `fixVersion` is set to the version.
494
+ * * Number of issues where the `affectedVersion` is set to the version.
495
+ * * Number of issues where a version custom field is set to the version.
496
+ *
497
+ * This operation can be accessed anonymously.
498
+ *
499
+ * **[Permissions](#permissions) required:** *Browse projects* project permission
500
+ * for the project that contains the version.
501
+ *
502
+ * @returns Returned if the request is successful.
503
+ *
504
+ * example: {
505
+ * "customFieldUsage": [
506
+ * {
507
+ * "customFieldId": 10000,
508
+ * "fieldName": "Field1",
509
+ * "issueCountWithVersionInCustomField": 2
510
+ * },
511
+ * {
512
+ * "customFieldId": 10010,
513
+ * "fieldName": "Field2",
514
+ * "issueCountWithVersionInCustomField": 3
515
+ * }
516
+ * ],
517
+ * "issueCountWithCustomFieldsShowingVersion": 54,
518
+ * "issuesAffectedCount": 101,
519
+ * "issuesFixedCount": 23,
520
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000"
521
+ * }
522
+ * @path {GET} /rest/api/3/version/{id}/relatedIssueCounts
523
+ * @scopes-current read:jira-work
524
+ * @scopes-beta read:field:jira, read:project-version:jira
525
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedissuecounts-get
526
+ */
527
+ this.getVersionRelatedIssues = ({ id, }) => {
528
+ return this.getClientInstance()
529
+ .request({
530
+ path: "/rest/api/3/version/{id}/relatedIssueCounts",
531
+ method: "GET",
532
+ pathParams: {
533
+ id,
534
+ },
535
+ })
536
+ .then(this.getClientInstance().responseHandler({
537
+ 200: {
538
+ "application/json": "json",
539
+ },
540
+ }))
541
+ .then(commonHttpClient.castResponse())
542
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getVersionRelatedIssues.response"))
543
+ .then(commonHttpClient.getBody);
544
+ };
545
+ /**
546
+ * Returns counts of the issues and unresolved issues for the project version.
547
+ *
548
+ * This operation can be accessed anonymously.
549
+ *
550
+ * **[Permissions](#permissions) required:** *Browse projects* project permission
551
+ * for the project that contains the version.
552
+ *
553
+ * @returns Returned if the request is successful.
554
+ *
555
+ * example: {
556
+ * "issuesCount": 30,
557
+ * "issuesUnresolvedCount": 23,
558
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000"
559
+ * }
560
+ * @path {GET} /rest/api/3/version/{id}/unresolvedIssueCount
561
+ * @scopes-current read:jira-work
562
+ * @scopes-beta read:project-version:jira
563
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-unresolvedissuecount-get
564
+ */
565
+ this.getVersionUnresolvedIssues = ({ id, }) => {
566
+ return this.getClientInstance()
567
+ .request({
568
+ path: "/rest/api/3/version/{id}/unresolvedIssueCount",
569
+ method: "GET",
570
+ pathParams: {
571
+ id,
572
+ },
573
+ })
574
+ .then(this.getClientInstance().responseHandler({
575
+ 200: {
576
+ "application/json": "json",
577
+ },
578
+ }))
579
+ .then(commonHttpClient.castResponse())
580
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.getVersionUnresolvedIssues.response"))
581
+ .then(commonHttpClient.getBody);
582
+ };
583
+ /**
584
+ * Merges two project versions. The merge is completed by deleting the version
585
+ * specified in `id` and replacing any occurrences of its ID in `fixVersion` with
586
+ * the version ID specified in `moveIssuesTo`.
587
+ *
588
+ * Consider using [ Delete and replace
589
+ * version](#api-rest-api-3-version-id-removeAndSwap-post) instead. This resource
590
+ * supports swapping version values in `fixVersion`, `affectedVersion`, and custom
591
+ * fields.
592
+ *
593
+ * This operation can be accessed anonymously.
594
+ *
595
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
596
+ * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
597
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
598
+ * that contains the version.
599
+ *
600
+ * @returns Returned if the version is deleted.
601
+ * @path {PUT} /rest/api/3/version/{id}/mergeto/{moveIssuesTo}
602
+ * @scopes-current manage:jira-project
603
+ * @scopes-beta delete:project-version:jira, write:project-version:jira
604
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-mergeto-moveissuesto-put
605
+ */
606
+ this.mergeVersions = ({ id, moveIssuesTo, }) => {
607
+ return this.getClientInstance()
608
+ .request({
609
+ path: "/rest/api/3/version/{id}/mergeto/{moveIssuesTo}",
610
+ method: "PUT",
611
+ pathParams: {
612
+ id,
613
+ moveIssuesTo,
614
+ },
615
+ })
616
+ .then(this.getClientInstance().responseHandler({
617
+ 204: {
618
+ "application/json": "json",
619
+ },
620
+ }))
621
+ .then(commonHttpClient.castResponse())
622
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.mergeVersions.response"))
623
+ .then(commonHttpClient.getBody);
624
+ };
625
+ /**
626
+ * Modifies the version's sequence within the project, which affects the display
627
+ * order of the versions in Jira.
628
+ *
629
+ * This operation can be accessed anonymously.
630
+ *
631
+ * **[Permissions](#permissions) required:** *Browse projects* project permission
632
+ * for the project that contains the version.
633
+ *
634
+ * @returns Returned if the request is successful.
635
+ *
636
+ * example: {
637
+ * "archived": false,
638
+ * "description": "An excellent version",
639
+ * "id": "10000",
640
+ * "name": "New Version 1",
641
+ * "overdue": true,
642
+ * "projectId": 10000,
643
+ * "releaseDate": "2010-07-06",
644
+ * "released": true,
645
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
646
+ * "userReleaseDate": "6/Jul/2010"
647
+ * }
648
+ * @path {POST} /rest/api/3/version/{id}/move
649
+ * @scopes-current manage:jira-project
650
+ * @scopes-beta write:project-version:jira, read:project-version:jira
651
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-move-post
652
+ */
653
+ this.moveVersion = ({ id, versionMoveBean, }) => {
654
+ return this.getClientInstance()
655
+ .request({
656
+ path: "/rest/api/3/version/{id}/move",
657
+ method: "POST",
658
+ pathParams: {
659
+ id,
660
+ },
661
+ headers: {
662
+ "Content-Type": "application/json",
663
+ },
664
+ body: versionMoveBean,
665
+ })
666
+ .then(this.getClientInstance().responseHandler({
667
+ 200: {
668
+ "application/json": "json",
669
+ },
670
+ }))
671
+ .then(commonHttpClient.castResponse())
672
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.moveVersion.response"))
673
+ .then(commonHttpClient.getBody);
674
+ };
675
+ /**
676
+ * Updates the given related work. You can only update generic link related works
677
+ * via Rest APIs. Any archived version related works can't be edited.
678
+ *
679
+ * This operation can be accessed anonymously.
680
+ *
681
+ * **[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues*
682
+ * [Managing project
683
+ * permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html)
684
+ * for the project that contains the version.
685
+ *
686
+ * @returns Returned if the request is successful together with updated related work.
687
+ *
688
+ * example: {
689
+ * "category": "Design",
690
+ * "relatedWorkId": "fabcdef6-7878-1234-beaf-43211234abcd",
691
+ * "title": "Design link",
692
+ * "url": "https://www.atlassian.com"
693
+ * }
694
+ * @path {PUT} /rest/api/3/version/{id}/relatedwork
695
+ * @scopes-current write:jira-work
696
+ * @scopes-beta write:issue:jira
697
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-relatedwork-put
698
+ */
699
+ this.updateRelatedWork = ({ id, versionRelatedWork, }) => {
700
+ return this.getClientInstance()
701
+ .request({
702
+ path: "/rest/api/3/version/{id}/relatedwork",
703
+ method: "PUT",
704
+ pathParams: {
705
+ id,
706
+ },
707
+ headers: {
708
+ "Content-Type": "application/json",
709
+ },
710
+ body: versionRelatedWork,
711
+ })
712
+ .then(this.getClientInstance().responseHandler({
713
+ 200: {
714
+ "application/json": "json",
715
+ },
716
+ }))
717
+ .then(commonHttpClient.castResponse())
718
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.updateRelatedWork.response"))
719
+ .then(commonHttpClient.getBody);
720
+ };
721
+ /**
722
+ * Updates a project version.
723
+ *
724
+ * This operation can be accessed anonymously.
725
+ *
726
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
727
+ * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects*
728
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project
729
+ * that contains the version.
730
+ *
731
+ * @returns Returned if the request is successful.
732
+ *
733
+ * example: {
734
+ * "archived": false,
735
+ * "description": "An excellent version",
736
+ * "id": "10000",
737
+ * "name": "New Version 1",
738
+ * "project": "PXA",
739
+ * "projectId": 10000,
740
+ * "releaseDate": "2010-07-06",
741
+ * "released": true,
742
+ * "self": "https://your-domain.atlassian.net/rest/api/3/version/10000",
743
+ * "userReleaseDate": "6/Jul/2010"
744
+ * }
745
+ * @path {PUT} /rest/api/3/version/{id}
746
+ * @scopes-current manage:jira-project
747
+ * @scopes-beta write:project-version:jira, read:project-version:jira
748
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions#api-rest-api-3-version-id-put
749
+ */
750
+ this.updateVersion = ({ id, version, }) => {
751
+ return this.getClientInstance()
752
+ .request({
753
+ path: "/rest/api/3/version/{id}",
754
+ method: "PUT",
755
+ pathParams: {
756
+ id,
757
+ },
758
+ headers: {
759
+ "Content-Type": "application/json",
760
+ },
761
+ body: version,
762
+ })
763
+ .then(this.getClientInstance().responseHandler({
764
+ 200: {
765
+ "application/json": "json",
766
+ },
767
+ }))
768
+ .then(commonHttpClient.castResponse())
769
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectVersionsService.updateVersion.response"))
770
+ .then(commonHttpClient.getBody);
771
+ };
769
772
  }
770
773
  static initialize() {
771
774
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ProjectVersionsService.getProjectVersionsPaginated.response", zod_1.z