@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
@@ -17,310 +17,313 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
17
17
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities
18
18
  */
19
19
  class IssuePrioritiesService extends CommonHttpService_1.CommonHttpService {
20
- /**
21
- * Creates an issue priority.
22
- *
23
- * **[Permissions](#permissions) required:** *Administer Jira* [global
24
- * permission](https://confluence.atlassian.com/x/x4dKLg).
25
- *
26
- * @returns Returned if the request is successful.
27
- *
28
- * example: {
29
- * "id": "10001"
30
- * }
31
- * @path {POST} /rest/api/3/priority
32
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-post
33
- */
34
- createPriority({ createPriorityDetails, }) {
35
- return this.getClientInstance()
36
- .request({
37
- path: "/rest/api/3/priority",
38
- method: "POST",
39
- headers: {
40
- "Content-Type": "application/json",
41
- },
42
- body: createPriorityDetails,
43
- })
44
- .then(this.getClientInstance().responseHandler({
45
- 201: {
46
- "application/json": "json",
47
- },
48
- }))
49
- .then(commonHttpClient.castResponse())
50
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.createPriority.response"))
51
- .then(commonHttpClient.getBody);
52
- }
53
- /**
54
- * Deletes an issue priority.
55
- *
56
- * This operation is [asynchronous](#async). Follow the `location` link in the
57
- * response to determine the status of the task and use [Get
58
- * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
59
- *
60
- * **[Permissions](#permissions) required:** *Administer Jira* [global
61
- * permission](https://confluence.atlassian.com/x/x4dKLg).
62
- *
63
- * @path {DELETE} /rest/api/3/priority/{id}
64
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-id-delete
65
- */
66
- deletePriority({ id, }) {
67
- return this.getClientInstance()
68
- .request({
69
- path: "/rest/api/3/priority/{id}",
70
- method: "DELETE",
71
- pathParams: {
72
- id,
73
- },
74
- })
75
- .then(commonHttpClient.discardResult);
76
- }
77
- /**
78
- * Returns the list of all issue priorities.
79
- *
80
- * **[Permissions](#permissions) required:** Permission to access Jira.
81
- *
82
- * @deprecated
83
- * @returns Returned if the request is successful.
84
- *
85
- * example: [
86
- * {
87
- * "description": "Major loss of function.",
88
- * "iconUrl":
89
- * "https://your-domain.atlassian.net/images/icons/priorities/major.png",
90
- * "id": "1",
91
- * "name": "Major",
92
- * "self": "https://your-domain.atlassian.net/rest/api/3/priority/3",
93
- * "statusColor": "#009900"
94
- * },
95
- * {
96
- * "description": "Very little impact.",
97
- * "iconUrl":
98
- * "https://your-domain.atlassian.net/images/icons/priorities/trivial.png",
99
- * "id": "2",
100
- * "name": "Trivial",
101
- * "self": "https://your-domain.atlassian.net/rest/api/3/priority/5",
102
- * "statusColor": "#cfcfcf"
103
- * }
104
- * ]
105
- * @path {GET} /rest/api/3/priority
106
- * @scopes-current read:jira-work
107
- * @scopes-beta read:priority:jira
108
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-get
109
- */
110
- getPriorities() {
111
- return this.getClientInstance()
112
- .request({
113
- path: "/rest/api/3/priority",
114
- method: "GET",
115
- })
116
- .then(this.getClientInstance().responseHandler({
117
- 200: {
118
- "application/json": "json",
119
- },
120
- }))
121
- .then(commonHttpClient.castResponse())
122
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.getPriorities.response"))
123
- .then(commonHttpClient.getBody);
124
- }
125
- /**
126
- * Returns an issue priority.
127
- *
128
- * **[Permissions](#permissions) required:** Permission to access Jira.
129
- *
130
- * @returns Returned if the request is successful.
131
- *
132
- * example: {
133
- * "description": "Major loss of function.",
134
- * "iconUrl":
135
- * "https://your-domain.atlassian.net/images/icons/priorities/major.png",
136
- * "id": "1",
137
- * "name": "Major",
138
- * "self": "https://your-domain.atlassian.net/rest/api/3/priority/3",
139
- * "statusColor": "#009900"
140
- * }
141
- * @path {GET} /rest/api/3/priority/{id}
142
- * @scopes-current read:jira-work
143
- * @scopes-beta read:priority:jira
144
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-id-get
145
- */
146
- getPriority({ id, }) {
147
- return this.getClientInstance()
148
- .request({
149
- path: "/rest/api/3/priority/{id}",
150
- method: "GET",
151
- pathParams: {
152
- id,
153
- },
154
- })
155
- .then(this.getClientInstance().responseHandler({
156
- 200: {
157
- "application/json": "json",
158
- },
159
- }))
160
- .then(commonHttpClient.castResponse())
161
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.getPriority.response"))
162
- .then(commonHttpClient.getBody);
163
- }
164
- /**
165
- * Changes the order of issue priorities.
166
- *
167
- * **[Permissions](#permissions) required:** *Administer Jira* [global
168
- * permission](https://confluence.atlassian.com/x/x4dKLg).
169
- *
170
- * @returns Returned if the request is successful.
171
- * @path {PUT} /rest/api/3/priority/move
172
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-move-put
173
- */
174
- movePriorities({ reorderIssuePriorities, }) {
175
- return this.getClientInstance()
176
- .request({
177
- path: "/rest/api/3/priority/move",
178
- method: "PUT",
179
- headers: {
180
- "Content-Type": "application/json",
181
- },
182
- body: reorderIssuePriorities,
183
- })
184
- .then(this.getClientInstance().responseHandler({
185
- 204: {
186
- "application/json": "json",
187
- },
188
- }))
189
- .then(commonHttpClient.castResponse())
190
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.movePriorities.response"))
191
- .then(commonHttpClient.getBody);
192
- }
193
- /**
194
- * Returns a [paginated](#pagination) list of priorities. The list can contain all
195
- * priorities or a subset determined by any combination of these criteria:
196
- *
197
- * * a list of priority IDs. Any invalid priority IDs are ignored.
198
- * * a list of project IDs. Only priorities that are available in these projects
199
- * will be returned. Any invalid project IDs are ignored.
200
- * * whether the field configuration is a default. This returns priorities from
201
- * company-managed (classic) projects only, as there is no concept of default
202
- * priorities in team-managed projects.
203
- *
204
- * **[Permissions](#permissions) required:** Permission to access Jira.
205
- *
206
- * @deprecated
207
- * @returns Returned if the request is successful.
208
- *
209
- * example: {
210
- * "isLast": true,
211
- * "maxResults": 50,
212
- * "startAt": 0,
213
- * "total": 2,
214
- * "values": [
215
- * {
216
- * "description": "Major loss of function.",
217
- * "iconUrl":
218
- * "https://your-domain.atlassian.net/images/icons/priorities/major.png",
219
- * "id": "1",
220
- * "isDefault": true,
221
- * "name": "Major",
222
- * "self": "https://your-domain.atlassian.net/rest/api/3/priority/3",
223
- * "statusColor": "#009900"
224
- * },
225
- * {
226
- * "description": "Very little impact.",
227
- * "iconUrl":
228
- * "https://your-domain.atlassian.net/images/icons/priorities/trivial.png",
229
- * "id": "2",
230
- * "isDefault": false,
231
- * "name": "Trivial",
232
- * "self": "https://your-domain.atlassian.net/rest/api/3/priority/5",
233
- * "statusColor": "#cfcfcf"
234
- * }
235
- * ]
236
- * }
237
- * @path {GET} /rest/api/3/priority/search
238
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-search-get
239
- */
240
- searchPriorities({ startAt, maxResults, id, projectId, priorityName, onlyDefault, expand, } = {}) {
241
- return this.getClientInstance()
242
- .request({
243
- path: "/rest/api/3/priority/search",
244
- method: "GET",
245
- query: {
246
- startAt,
247
- maxResults,
248
- id,
249
- projectId,
250
- priorityName,
251
- onlyDefault,
252
- expand,
253
- },
254
- })
255
- .then(this.getClientInstance().responseHandler({
256
- 200: {
257
- "application/json": "json",
258
- },
259
- }))
260
- .then(commonHttpClient.castResponse())
261
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.searchPriorities.response"))
262
- .then(commonHttpClient.getBody);
263
- }
264
- /**
265
- * Sets default issue priority.
266
- *
267
- * **[Permissions](#permissions) required:** *Administer Jira* [global
268
- * permission](https://confluence.atlassian.com/x/x4dKLg).
269
- *
270
- * @returns Returned if the request is successful.
271
- * @path {PUT} /rest/api/3/priority/default
272
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-default-put
273
- */
274
- setDefaultPriority({ setDefaultPriorityRequest, }) {
275
- return this.getClientInstance()
276
- .request({
277
- path: "/rest/api/3/priority/default",
278
- method: "PUT",
279
- headers: {
280
- "Content-Type": "application/json",
281
- },
282
- body: setDefaultPriorityRequest,
283
- })
284
- .then(this.getClientInstance().responseHandler({
285
- 204: {
286
- "application/json": "json",
287
- },
288
- }))
289
- .then(commonHttpClient.castResponse())
290
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.setDefaultPriority.response"))
291
- .then(commonHttpClient.getBody);
292
- }
293
- /**
294
- * Updates an issue priority.
295
- *
296
- * **[Permissions](#permissions) required:** *Administer Jira* [global
297
- * permission](https://confluence.atlassian.com/x/x4dKLg).
298
- *
299
- * @returns Returned if the request is successful.
300
- * @path {PUT} /rest/api/3/priority/{id}
301
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-id-put
302
- */
303
- updatePriority({ id, updatePriorityDetails, }) {
304
- return this.getClientInstance()
305
- .request({
306
- path: "/rest/api/3/priority/{id}",
307
- method: "PUT",
308
- pathParams: {
309
- id,
310
- },
311
- headers: {
312
- "Content-Type": "application/json",
313
- },
314
- body: updatePriorityDetails,
315
- })
316
- .then(this.getClientInstance().responseHandler({
317
- 204: {
318
- "application/json": "json",
319
- },
320
- }))
321
- .then(commonHttpClient.castResponse())
322
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.updatePriority.response"))
323
- .then(commonHttpClient.getBody);
20
+ constructor() {
21
+ super(...arguments);
22
+ /**
23
+ * Creates an issue priority.
24
+ *
25
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
26
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
27
+ *
28
+ * @returns Returned if the request is successful.
29
+ *
30
+ * example: {
31
+ * "id": "10001"
32
+ * }
33
+ * @path {POST} /rest/api/3/priority
34
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-post
35
+ */
36
+ this.createPriority = ({ createPriorityDetails, }) => {
37
+ return this.getClientInstance()
38
+ .request({
39
+ path: "/rest/api/3/priority",
40
+ method: "POST",
41
+ headers: {
42
+ "Content-Type": "application/json",
43
+ },
44
+ body: createPriorityDetails,
45
+ })
46
+ .then(this.getClientInstance().responseHandler({
47
+ 201: {
48
+ "application/json": "json",
49
+ },
50
+ }))
51
+ .then(commonHttpClient.castResponse())
52
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.createPriority.response"))
53
+ .then(commonHttpClient.getBody);
54
+ };
55
+ /**
56
+ * Deletes an issue priority.
57
+ *
58
+ * This operation is [asynchronous](#async). Follow the `location` link in the
59
+ * response to determine the status of the task and use [Get
60
+ * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
61
+ *
62
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
63
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
64
+ *
65
+ * @path {DELETE} /rest/api/3/priority/{id}
66
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-id-delete
67
+ */
68
+ this.deletePriority = ({ id, }) => {
69
+ return this.getClientInstance()
70
+ .request({
71
+ path: "/rest/api/3/priority/{id}",
72
+ method: "DELETE",
73
+ pathParams: {
74
+ id,
75
+ },
76
+ })
77
+ .then(commonHttpClient.discardResult);
78
+ };
79
+ /**
80
+ * Returns the list of all issue priorities.
81
+ *
82
+ * **[Permissions](#permissions) required:** Permission to access Jira.
83
+ *
84
+ * @deprecated
85
+ * @returns Returned if the request is successful.
86
+ *
87
+ * example: [
88
+ * {
89
+ * "description": "Major loss of function.",
90
+ * "iconUrl":
91
+ * "https://your-domain.atlassian.net/images/icons/priorities/major.png",
92
+ * "id": "1",
93
+ * "name": "Major",
94
+ * "self": "https://your-domain.atlassian.net/rest/api/3/priority/3",
95
+ * "statusColor": "#009900"
96
+ * },
97
+ * {
98
+ * "description": "Very little impact.",
99
+ * "iconUrl":
100
+ * "https://your-domain.atlassian.net/images/icons/priorities/trivial.png",
101
+ * "id": "2",
102
+ * "name": "Trivial",
103
+ * "self": "https://your-domain.atlassian.net/rest/api/3/priority/5",
104
+ * "statusColor": "#cfcfcf"
105
+ * }
106
+ * ]
107
+ * @path {GET} /rest/api/3/priority
108
+ * @scopes-current read:jira-work
109
+ * @scopes-beta read:priority:jira
110
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-get
111
+ */
112
+ this.getPriorities = () => {
113
+ return this.getClientInstance()
114
+ .request({
115
+ path: "/rest/api/3/priority",
116
+ method: "GET",
117
+ })
118
+ .then(this.getClientInstance().responseHandler({
119
+ 200: {
120
+ "application/json": "json",
121
+ },
122
+ }))
123
+ .then(commonHttpClient.castResponse())
124
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.getPriorities.response"))
125
+ .then(commonHttpClient.getBody);
126
+ };
127
+ /**
128
+ * Returns an issue priority.
129
+ *
130
+ * **[Permissions](#permissions) required:** Permission to access Jira.
131
+ *
132
+ * @returns Returned if the request is successful.
133
+ *
134
+ * example: {
135
+ * "description": "Major loss of function.",
136
+ * "iconUrl":
137
+ * "https://your-domain.atlassian.net/images/icons/priorities/major.png",
138
+ * "id": "1",
139
+ * "name": "Major",
140
+ * "self": "https://your-domain.atlassian.net/rest/api/3/priority/3",
141
+ * "statusColor": "#009900"
142
+ * }
143
+ * @path {GET} /rest/api/3/priority/{id}
144
+ * @scopes-current read:jira-work
145
+ * @scopes-beta read:priority:jira
146
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-id-get
147
+ */
148
+ this.getPriority = ({ id, }) => {
149
+ return this.getClientInstance()
150
+ .request({
151
+ path: "/rest/api/3/priority/{id}",
152
+ method: "GET",
153
+ pathParams: {
154
+ id,
155
+ },
156
+ })
157
+ .then(this.getClientInstance().responseHandler({
158
+ 200: {
159
+ "application/json": "json",
160
+ },
161
+ }))
162
+ .then(commonHttpClient.castResponse())
163
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.getPriority.response"))
164
+ .then(commonHttpClient.getBody);
165
+ };
166
+ /**
167
+ * Changes the order of issue priorities.
168
+ *
169
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
170
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
171
+ *
172
+ * @returns Returned if the request is successful.
173
+ * @path {PUT} /rest/api/3/priority/move
174
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-move-put
175
+ */
176
+ this.movePriorities = ({ reorderIssuePriorities, }) => {
177
+ return this.getClientInstance()
178
+ .request({
179
+ path: "/rest/api/3/priority/move",
180
+ method: "PUT",
181
+ headers: {
182
+ "Content-Type": "application/json",
183
+ },
184
+ body: reorderIssuePriorities,
185
+ })
186
+ .then(this.getClientInstance().responseHandler({
187
+ 204: {
188
+ "application/json": "json",
189
+ },
190
+ }))
191
+ .then(commonHttpClient.castResponse())
192
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.movePriorities.response"))
193
+ .then(commonHttpClient.getBody);
194
+ };
195
+ /**
196
+ * Returns a [paginated](#pagination) list of priorities. The list can contain all
197
+ * priorities or a subset determined by any combination of these criteria:
198
+ *
199
+ * * a list of priority IDs. Any invalid priority IDs are ignored.
200
+ * * a list of project IDs. Only priorities that are available in these projects
201
+ * will be returned. Any invalid project IDs are ignored.
202
+ * * whether the field configuration is a default. This returns priorities from
203
+ * company-managed (classic) projects only, as there is no concept of default
204
+ * priorities in team-managed projects.
205
+ *
206
+ * **[Permissions](#permissions) required:** Permission to access Jira.
207
+ *
208
+ * @deprecated
209
+ * @returns Returned if the request is successful.
210
+ *
211
+ * example: {
212
+ * "isLast": true,
213
+ * "maxResults": 50,
214
+ * "startAt": 0,
215
+ * "total": 2,
216
+ * "values": [
217
+ * {
218
+ * "description": "Major loss of function.",
219
+ * "iconUrl":
220
+ * "https://your-domain.atlassian.net/images/icons/priorities/major.png",
221
+ * "id": "1",
222
+ * "isDefault": true,
223
+ * "name": "Major",
224
+ * "self": "https://your-domain.atlassian.net/rest/api/3/priority/3",
225
+ * "statusColor": "#009900"
226
+ * },
227
+ * {
228
+ * "description": "Very little impact.",
229
+ * "iconUrl":
230
+ * "https://your-domain.atlassian.net/images/icons/priorities/trivial.png",
231
+ * "id": "2",
232
+ * "isDefault": false,
233
+ * "name": "Trivial",
234
+ * "self": "https://your-domain.atlassian.net/rest/api/3/priority/5",
235
+ * "statusColor": "#cfcfcf"
236
+ * }
237
+ * ]
238
+ * }
239
+ * @path {GET} /rest/api/3/priority/search
240
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-search-get
241
+ */
242
+ this.searchPriorities = ({ startAt, maxResults, id, projectId, priorityName, onlyDefault, expand, } = {}) => {
243
+ return this.getClientInstance()
244
+ .request({
245
+ path: "/rest/api/3/priority/search",
246
+ method: "GET",
247
+ query: {
248
+ startAt,
249
+ maxResults,
250
+ id,
251
+ projectId,
252
+ priorityName,
253
+ onlyDefault,
254
+ expand,
255
+ },
256
+ })
257
+ .then(this.getClientInstance().responseHandler({
258
+ 200: {
259
+ "application/json": "json",
260
+ },
261
+ }))
262
+ .then(commonHttpClient.castResponse())
263
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.searchPriorities.response"))
264
+ .then(commonHttpClient.getBody);
265
+ };
266
+ /**
267
+ * Sets default issue priority.
268
+ *
269
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
270
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
271
+ *
272
+ * @returns Returned if the request is successful.
273
+ * @path {PUT} /rest/api/3/priority/default
274
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-default-put
275
+ */
276
+ this.setDefaultPriority = ({ setDefaultPriorityRequest, }) => {
277
+ return this.getClientInstance()
278
+ .request({
279
+ path: "/rest/api/3/priority/default",
280
+ method: "PUT",
281
+ headers: {
282
+ "Content-Type": "application/json",
283
+ },
284
+ body: setDefaultPriorityRequest,
285
+ })
286
+ .then(this.getClientInstance().responseHandler({
287
+ 204: {
288
+ "application/json": "json",
289
+ },
290
+ }))
291
+ .then(commonHttpClient.castResponse())
292
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.setDefaultPriority.response"))
293
+ .then(commonHttpClient.getBody);
294
+ };
295
+ /**
296
+ * Updates an issue priority.
297
+ *
298
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
299
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
300
+ *
301
+ * @returns Returned if the request is successful.
302
+ * @path {PUT} /rest/api/3/priority/{id}
303
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-priorities#api-rest-api-3-priority-id-put
304
+ */
305
+ this.updatePriority = ({ id, updatePriorityDetails, }) => {
306
+ return this.getClientInstance()
307
+ .request({
308
+ path: "/rest/api/3/priority/{id}",
309
+ method: "PUT",
310
+ pathParams: {
311
+ id,
312
+ },
313
+ headers: {
314
+ "Content-Type": "application/json",
315
+ },
316
+ body: updatePriorityDetails,
317
+ })
318
+ .then(this.getClientInstance().responseHandler({
319
+ 204: {
320
+ "application/json": "json",
321
+ },
322
+ }))
323
+ .then(commonHttpClient.castResponse())
324
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssuePrioritiesService.updatePriority.response"))
325
+ .then(commonHttpClient.getBody);
326
+ };
324
327
  }
325
328
  static initialize() {
326
329
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssuePrioritiesService.getPriorities.response", zod_1.z