@resolution/jira-api-client 0.4.4 → 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 (326) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  5. package/lib/openapi/platform/models/common.d.ts +6 -0
  6. package/lib/openapi/platform/models/common.js +12 -1
  7. package/lib/openapi/platform/models/common.js.map +1 -1
  8. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  9. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  10. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  11. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  12. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  14. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  15. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  17. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  18. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  20. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  21. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  22. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  23. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  24. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  25. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  26. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  27. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  28. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  29. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  30. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  31. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  32. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  33. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  34. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  35. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  36. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  38. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  39. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  40. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  41. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  42. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  43. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  44. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  45. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  46. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  47. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  48. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  49. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  50. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  53. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  54. package/lib/openapi/platform/services/GroupsService.js +385 -382
  55. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  56. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  57. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  59. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  62. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  65. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  66. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  67. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  68. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  71. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  74. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  80. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  83. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  86. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  87. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  88. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  89. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  90. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  92. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  93. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  94. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  95. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  98. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  101. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  102. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  104. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  105. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  106. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  107. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  110. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  111. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  112. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  113. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  114. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  115. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  116. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  119. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  122. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  125. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  128. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  131. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  132. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  133. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  134. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  135. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  136. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  137. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  138. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  139. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  140. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  143. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  144. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  145. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  146. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  147. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  148. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  149. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  150. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  151. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  152. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  153. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  154. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  155. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  158. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  159. package/lib/openapi/platform/services/JqlService.js +635 -632
  160. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  161. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  162. package/lib/openapi/platform/services/LabelsService.js +41 -38
  163. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  164. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  165. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  166. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  167. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  168. package/lib/openapi/platform/services/MyselfService.js +321 -318
  169. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  170. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  171. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  172. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  173. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  174. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  175. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  176. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  177. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  178. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  179. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  180. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  182. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  183. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  185. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  188. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  189. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  190. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  191. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  192. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  193. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  194. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  195. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  197. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  200. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  203. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  204. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  206. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  209. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  210. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  211. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  212. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  213. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  214. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  215. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  216. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  217. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  218. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  219. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  220. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  221. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  222. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  223. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  224. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  227. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  228. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  229. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  230. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  231. package/lib/openapi/platform/services/ScreensService.js +281 -278
  232. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  233. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  235. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  236. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  237. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  238. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  239. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  240. package/lib/openapi/platform/services/StatusService.js +271 -268
  241. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  242. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  243. package/lib/openapi/platform/services/TasksService.js +93 -90
  244. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  245. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  246. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  247. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  248. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  249. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  251. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  252. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  253. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  254. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  255. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  256. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  257. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  258. package/lib/openapi/platform/services/UsersService.js +637 -634
  259. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  260. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  261. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  262. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  263. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  266. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  269. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  270. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  272. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  275. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  276. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  278. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  281. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  284. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  285. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  286. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  287. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  288. package/lib/openapi/software/services/BacklogService.js +81 -78
  289. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  290. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  291. package/lib/openapi/software/services/BoardService.js +2048 -2045
  292. package/lib/openapi/software/services/BoardService.js.map +1 -1
  293. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  294. package/lib/openapi/software/services/BuildsService.js +164 -161
  295. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  296. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  297. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  298. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  299. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  300. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  301. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  302. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  303. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  304. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  305. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  306. package/lib/openapi/software/services/EpicService.js +597 -594
  307. package/lib/openapi/software/services/EpicService.js.map +1 -1
  308. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  309. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  310. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  311. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  312. package/lib/openapi/software/services/IssueService.js +359 -356
  313. package/lib/openapi/software/services/IssueService.js.map +1 -1
  314. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  315. package/lib/openapi/software/services/OperationsService.js +301 -298
  316. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  317. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  318. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  319. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  320. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  321. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  322. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  323. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  324. package/lib/openapi/software/services/SprintService.js +594 -591
  325. package/lib/openapi/software/services/SprintService.js.map +1 -1
  326. package/package.json +4 -3
@@ -20,433 +20,430 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
20
20
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types
21
21
  */
22
22
  class IssueTypesService extends CommonHttpService_1.CommonHttpService {
23
- /**
24
- * Creates an issue type and adds it to the default issue type scheme.
25
- *
26
- * **[Permissions](#permissions) required:** *Administer Jira* [global
27
- * permission](https://confluence.atlassian.com/x/x4dKLg).
28
- *
29
- * @returns Returned if the request is successful.
30
- * @path {POST} /rest/api/3/issuetype
31
- * @scopes-current manage:jira-configuration
32
- * @scopes-beta write:issue-type:jira, read:avatar:jira, read:issue-type:jira,
33
- * read:project-category:jira, read:project:jira
34
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-post
35
- */
36
- createIssueType({ issueTypeCreateBean, }) {
37
- return this.getClientInstance()
38
- .request({
39
- path: "/rest/api/3/issuetype",
40
- method: "POST",
41
- headers: {
42
- "Content-Type": "application/json",
43
- },
44
- body: issueTypeCreateBean,
45
- })
46
- .then(this.getClientInstance().responseHandler({
47
- 201: {
48
- "application/json": "json",
49
- },
50
- }))
51
- .then(commonHttpClient.castResponse())
52
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.createIssueType.response"))
53
- .then(commonHttpClient.getBody);
54
- }
55
- /**
56
- * Loads an avatar for the issue type.
57
- *
58
- * Specify the avatar's local file location in the body of the request. Also,
59
- * include the following headers:
60
- *
61
- * * `X-Atlassian-Token: no-check` To prevent XSRF protection blocking the
62
- * request, for more information see [Special Headers](#special-request-headers).
63
- * * `Content-Type: image/image type` Valid image types are JPEG, GIF, or PNG.
64
- *
65
- * For example:
66
- * `curl --request POST \ --user email@example.com:<api_token> \ --header
67
- * 'X-Atlassian-Token: no-check' \ --header 'Content-Type: image/< image_type>' \
68
- * --data-binary "<@/path/to/file/with/your/avatar>" \ --url
69
- * 'https://your-domain.atlassian.net/rest/api/3/issuetype/{issueTypeId}'This`
70
- *
71
- * The avatar is cropped to a square. If no crop parameters are specified, the
72
- * square originates at the top left of the image. The length of the square's
73
- * sides is set to the smaller of the height or width of the image.
74
- *
75
- * The cropped image is then used to create avatars of 16x16, 24x24, 32x32, and
76
- * 48x48 in size.
77
- *
78
- * After creating the avatar, use [ Update issue
79
- * type](#api-rest-api-3-issuetype-id-put) to set it as the issue type's displayed
80
- * avatar.
81
- *
82
- * **[Permissions](#permissions) required:** *Administer Jira* [global
83
- * permission](https://confluence.atlassian.com/x/x4dKLg).
84
- *
85
- * @returns Returned if the request is successful.
86
- *
87
- * example: {
88
- * "id": "1000",
89
- * "isDeletable": false,
90
- * "isSelected": false,
91
- * "isSystemAvatar": true,
92
- * "urls": {
93
- * "16x16": "/secure/useravatar?size=xsmall&avatarId=10040&avatarType=project",
94
- * "24x24": "/secure/useravatar?size=small&avatarId=10040&avatarType=project",
95
- * "32x32": "/secure/useravatar?size=medium&avatarId=10040&avatarType=project",
96
- * "48x48": "/secure/useravatar?avatarId=10040&avatarType=project"
97
- * }
98
- * }
99
- * @path {POST} /rest/api/3/issuetype/{id}/avatar2
100
- * @scopes-current manage:jira-configuration
101
- * @scopes-beta write:avatar:jira, write:issue-type:jira, read:avatar:jira
102
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-avatar2-post
103
- */
104
- createIssueTypeAvatar({ id, x, y, size, mediaType, requestBody, }) {
105
- return this.getClientInstance()
106
- .request({
107
- path: "/rest/api/3/issuetype/{id}/avatar2",
108
- method: "POST",
109
- pathParams: {
110
- id,
111
- },
112
- query: {
113
- x,
114
- y,
115
- size,
116
- },
117
- headers: {
118
- "Content-Type": mediaType,
119
- },
120
- body: requestBody,
121
- })
122
- .then(this.getClientInstance().responseHandler({
123
- 201: {
124
- "application/json": "json",
125
- },
126
- }))
127
- .then(commonHttpClient.castResponse())
128
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.createIssueTypeAvatar.response"))
129
- .then(commonHttpClient.getBody);
130
- }
131
- /**
132
- * Deletes the issue type. If the issue type is in use, all uses are updated with
133
- * the alternative issue type (`alternativeIssueTypeId`). A list of alternative
134
- * issue types are obtained from the [Get alternative issue
135
- * types](#api-rest-api-3-issuetype-id-alternatives-get) resource.
136
- *
137
- * **[Permissions](#permissions) required:** *Administer Jira* [global
138
- * permission](https://confluence.atlassian.com/x/x4dKLg).
139
- *
140
- * @path {DELETE} /rest/api/3/issuetype/{id}
141
- * @scopes-current manage:jira-configuration
142
- * @scopes-beta delete:issue-type:jira
143
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-delete
144
- */
145
- deleteIssueType({ id, alternativeIssueTypeId, }) {
146
- return this.getClientInstance()
147
- .request({
148
- path: "/rest/api/3/issuetype/{id}",
149
- method: "DELETE",
150
- pathParams: {
151
- id,
152
- },
153
- query: {
154
- alternativeIssueTypeId,
155
- },
156
- })
157
- .then(commonHttpClient.discardResult);
158
- }
159
- /**
160
- * Returns a list of issue types that can be used to replace the issue type. The
161
- * alternative issue types are those assigned to the same workflow scheme, field
162
- * configuration scheme, and screen scheme.
163
- *
164
- * This operation can be accessed anonymously.
165
- *
166
- * **[Permissions](#permissions) required:** None.
167
- *
168
- * @returns Returned if the request is successful.
169
- *
170
- * example: [
171
- * {
172
- * "avatarId": 1,
173
- * "description": "A task that needs to be done.",
174
- * "hierarchyLevel": 0,
175
- * "iconUrl":
176
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
177
- * "id": "3",
178
- * "name": "Task",
179
- * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
180
- * "subtask": false
181
- * },
182
- * {
183
- * "avatarId": 10002,
184
- * "description": "A problem with the software.",
185
- * "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
186
- * "hierarchyLevel": 0,
187
- * "iconUrl":
188
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
189
- * "id": "1",
190
- * "name": "Bug",
191
- * "scope": {
192
- * "project": {
193
- * "id": "10000"
194
- * },
195
- * "type": "PROJECT"
196
- * },
197
- * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
198
- * "subtask": false
199
- * }
200
- * ]
201
- * @path {GET} /rest/api/3/issuetype/{id}/alternatives
202
- * @scopes-current read:jira-work
203
- * @scopes-beta read:issue-type:jira, read:project-category:jira, read:project:jira,
204
- * read:avatar:jira
205
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-alternatives-get
206
- */
207
- getAlternativeIssueTypes({ id, }) {
208
- return this.getClientInstance()
209
- .request({
210
- path: "/rest/api/3/issuetype/{id}/alternatives",
211
- method: "GET",
212
- pathParams: {
213
- id,
214
- },
215
- })
216
- .then(this.getClientInstance().responseHandler({
217
- 200: {
218
- "application/json": "json",
219
- },
220
- }))
221
- .then(commonHttpClient.castResponse())
222
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getAlternativeIssueTypes.response"))
223
- .then(commonHttpClient.getBody);
224
- }
225
- /**
226
- * Returns all issue types.
227
- *
228
- * This operation can be accessed anonymously.
229
- *
230
- * **[Permissions](#permissions) required:** Issue types are only returned as
231
- * follows:
232
- *
233
- * * if the user has the *Administer Jira* [global
234
- * permission](https://confluence.atlassian.com/x/x4dKLg), all issue types are
235
- * returned.
236
- * * if the user has the *Browse projects* [project
237
- * permission](https://confluence.atlassian.com/x/yodKLg) for one or more
238
- * projects, the issue types associated with the projects the user has permission
239
- * to browse are returned.
240
- *
241
- * @returns Returned if the request is successful.
242
- *
243
- * example: [
244
- * {
245
- * "avatarId": 1,
246
- * "description": "A task that needs to be done.",
247
- * "hierarchyLevel": 0,
248
- * "iconUrl":
249
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
250
- * "id": "3",
251
- * "name": "Task",
252
- * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
253
- * "subtask": false
254
- * },
255
- * {
256
- * "avatarId": 10002,
257
- * "description": "A problem with the software.",
258
- * "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
259
- * "hierarchyLevel": 0,
260
- * "iconUrl":
261
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
262
- * "id": "1",
263
- * "name": "Bug",
264
- * "scope": {
265
- * "project": {
266
- * "id": "10000"
267
- * },
268
- * "type": "PROJECT"
269
- * },
270
- * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
271
- * "subtask": false
272
- * }
273
- * ]
274
- * @path {GET} /rest/api/3/issuetype
275
- * @scopes-current read:jira-work
276
- * @scopes-beta read:issue-type:jira, read:avatar:jira, read:project-category:jira,
277
- * read:project:jira
278
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-get
279
- */
280
- getIssueAllTypes() {
281
- return this.getClientInstance()
282
- .request({
283
- path: "/rest/api/3/issuetype",
284
- method: "GET",
285
- })
286
- .then(this.getClientInstance().responseHandler({
287
- 200: {
288
- "application/json": "json",
289
- },
290
- }))
291
- .then(commonHttpClient.castResponse())
292
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getIssueAllTypes.response"))
293
- .then(commonHttpClient.getBody);
294
- }
295
- /**
296
- * Returns an issue type.
297
- *
298
- * This operation can be accessed anonymously.
299
- *
300
- * **[Permissions](#permissions) required:** *Browse projects* [project
301
- * permission](https://confluence.atlassian.com/x/yodKLg) in a project the issue
302
- * type is associated with or *Administer Jira* [global
303
- * permission](https://confluence.atlassian.com/x/x4dKLg).
304
- *
305
- * @returns Returned if the request is successful.
306
- *
307
- * example: {
308
- * "avatarId": 1,
309
- * "description": "A task that needs to be done.",
310
- * "hierarchyLevel": 0,
311
- * "iconUrl":
312
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
313
- * "id": "3",
314
- * "name": "Task",
315
- * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
316
- * "subtask": false
317
- * }
318
- * @path {GET} /rest/api/3/issuetype/{id}
319
- * @scopes-current read:jira-work
320
- * @scopes-beta read:issue-type:jira, read:avatar:jira, read:project-category:jira,
321
- * read:project:jira
322
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-get
323
- */
324
- getIssueType({ id, }) {
325
- return this.getClientInstance()
326
- .request({
327
- path: "/rest/api/3/issuetype/{id}",
328
- method: "GET",
329
- pathParams: {
330
- id,
331
- },
332
- })
333
- .then(this.getClientInstance().responseHandler({
334
- 200: {
335
- "application/json": "json",
336
- },
337
- }))
338
- .then(commonHttpClient.castResponse())
339
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getIssueType.response"))
340
- .then(commonHttpClient.getBody);
341
- }
342
- /**
343
- * Returns issue types for a project.
344
- *
345
- * This operation can be accessed anonymously.
346
- *
347
- * **[Permissions](#permissions) required:** *Browse projects* [project
348
- * permission](https://confluence.atlassian.com/x/yodKLg) in the relevant project
349
- * or *Administer Jira* [global
350
- * permission](https://confluence.atlassian.com/x/x4dKLg).
351
- *
352
- * @returns Returned if the request is successful.
353
- *
354
- * example: [
355
- * {
356
- * "avatarId": 10002,
357
- * "description": "A problem with the software.",
358
- * "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
359
- * "hierarchyLevel": 0,
360
- * "iconUrl":
361
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
362
- * "id": "1",
363
- * "name": "Bug",
364
- * "scope": {
365
- * "project": {
366
- * "id": "10000"
367
- * },
368
- * "type": "PROJECT"
369
- * },
370
- * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
371
- * "subtask": false
372
- * },
373
- * {
374
- * "avatarId": 1,
375
- * "description": "A task that needs to be done.",
376
- * "hierarchyLevel": 0,
377
- * "iconUrl":
378
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
379
- * "id": "3",
380
- * "name": "Task",
381
- * "scope": {
382
- * "project": {
383
- * "id": "10000"
384
- * },
385
- * "type": "PROJECT"
386
- * },
387
- * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
388
- * "subtask": false
389
- * }
390
- * ]
391
- * @path {GET} /rest/api/3/issuetype/project
392
- * @scopes-current read:jira-work
393
- * @scopes-beta read:issue-type:jira, read:avatar:jira, read:project-category:jira,
394
- * read:project:jira
395
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-project-get
396
- */
397
- getIssueTypesForProject({ projectId, level, }) {
398
- return this.getClientInstance()
399
- .request({
400
- path: "/rest/api/3/issuetype/project",
401
- method: "GET",
402
- query: {
403
- projectId,
404
- level,
405
- },
406
- })
407
- .then(this.getClientInstance().responseHandler({
408
- 200: {
409
- "application/json": "json",
410
- },
411
- }))
412
- .then(commonHttpClient.castResponse())
413
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getIssueTypesForProject.response"))
414
- .then(commonHttpClient.getBody);
415
- }
416
- /**
417
- * Updates the issue type.
418
- *
419
- * **[Permissions](#permissions) required:** *Administer Jira* [global
420
- * permission](https://confluence.atlassian.com/x/x4dKLg).
421
- *
422
- * @returns Returned if the request is successful.
423
- * @path {PUT} /rest/api/3/issuetype/{id}
424
- * @scopes-current manage:jira-configuration
425
- * @scopes-beta write:issue-type:jira, read:avatar:jira, read:issue-type:jira,
426
- * read:project-category:jira, read:project:jira
427
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-put
428
- */
429
- updateIssueType({ id, issueTypeUpdateBean, }) {
430
- return this.getClientInstance()
431
- .request({
432
- path: "/rest/api/3/issuetype/{id}",
433
- method: "PUT",
434
- pathParams: {
435
- id,
436
- },
437
- headers: {
438
- "Content-Type": "application/json",
439
- },
440
- body: issueTypeUpdateBean,
441
- })
442
- .then(this.getClientInstance().responseHandler({
443
- 200: {
444
- "application/json": "json",
445
- },
446
- }))
447
- .then(commonHttpClient.castResponse())
448
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.updateIssueType.response"))
449
- .then(commonHttpClient.getBody);
23
+ constructor() {
24
+ super(...arguments);
25
+ /**
26
+ * Creates an issue type and adds it to the default issue type scheme.
27
+ *
28
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
29
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
30
+ *
31
+ * @returns Returned if the request is successful.
32
+ * @path {POST} /rest/api/3/issuetype
33
+ * @scopes-current manage:jira-configuration
34
+ * @scopes-beta write:issue-type:jira, read:avatar:jira, read:issue-type:jira,
35
+ * read:project-category:jira, read:project:jira
36
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-post
37
+ */
38
+ this.createIssueType = ({ issueTypeCreateBean, }) => {
39
+ return this.getClientInstance()
40
+ .request({
41
+ path: "/rest/api/3/issuetype",
42
+ method: "POST",
43
+ headers: {
44
+ "Content-Type": "application/json",
45
+ },
46
+ body: issueTypeCreateBean,
47
+ })
48
+ .then(this.getClientInstance().responseHandler({
49
+ 201: {
50
+ "application/json": "json",
51
+ },
52
+ }))
53
+ .then(commonHttpClient.castResponse())
54
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.createIssueType.response"))
55
+ .then(commonHttpClient.getBody);
56
+ };
57
+ /**
58
+ * Loads an avatar for the issue type.
59
+ *
60
+ * Specify the avatar's local file location in the body of the request. Also,
61
+ * include the following headers:
62
+ *
63
+ * * `X-Atlassian-Token: no-check` To prevent XSRF protection blocking the
64
+ * request, for more information see [Special Headers](#special-request-headers).
65
+ * * `Content-Type: image/image type` Valid image types are JPEG, GIF, or PNG.
66
+ *
67
+ * For example:
68
+ * `curl --request POST \ --user email@example.com:<api_token> \ --header
69
+ * 'X-Atlassian-Token: no-check' \ --header 'Content-Type: image/< image_type>' \
70
+ * --data-binary "<@/path/to/file/with/your/avatar>" \ --url
71
+ * 'https://your-domain.atlassian.net/rest/api/3/issuetype/{issueTypeId}'This`
72
+ *
73
+ * The avatar is cropped to a square. If no crop parameters are specified, the
74
+ * square originates at the top left of the image. The length of the square's
75
+ * sides is set to the smaller of the height or width of the image.
76
+ *
77
+ * The cropped image is then used to create avatars of 16x16, 24x24, 32x32, and
78
+ * 48x48 in size.
79
+ *
80
+ * After creating the avatar, use [ Update issue
81
+ * type](#api-rest-api-3-issuetype-id-put) to set it as the issue type's displayed
82
+ * avatar.
83
+ *
84
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
85
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
86
+ *
87
+ * @returns Returned if the request is successful.
88
+ *
89
+ * example: {
90
+ * "id": "1010",
91
+ * "isDeletable": true,
92
+ * "isSelected": false,
93
+ * "isSystemAvatar": false
94
+ * }
95
+ * @path {POST} /rest/api/3/issuetype/{id}/avatar2
96
+ * @scopes-current manage:jira-configuration
97
+ * @scopes-beta write:avatar:jira, write:issue-type:jira, read:avatar:jira
98
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-avatar2-post
99
+ */
100
+ this.createIssueTypeAvatar = ({ id, x, y, size, mediaType, requestBody, }) => {
101
+ return this.getClientInstance()
102
+ .request({
103
+ path: "/rest/api/3/issuetype/{id}/avatar2",
104
+ method: "POST",
105
+ pathParams: {
106
+ id,
107
+ },
108
+ query: {
109
+ x,
110
+ y,
111
+ size,
112
+ },
113
+ headers: {
114
+ "Content-Type": mediaType,
115
+ },
116
+ body: requestBody,
117
+ })
118
+ .then(this.getClientInstance().responseHandler({
119
+ 201: {
120
+ "application/json": "json",
121
+ },
122
+ }))
123
+ .then(commonHttpClient.castResponse())
124
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.createIssueTypeAvatar.response"))
125
+ .then(commonHttpClient.getBody);
126
+ };
127
+ /**
128
+ * Deletes the issue type. If the issue type is in use, all uses are updated with
129
+ * the alternative issue type (`alternativeIssueTypeId`). A list of alternative
130
+ * issue types are obtained from the [Get alternative issue
131
+ * types](#api-rest-api-3-issuetype-id-alternatives-get) resource.
132
+ *
133
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
134
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
135
+ *
136
+ * @path {DELETE} /rest/api/3/issuetype/{id}
137
+ * @scopes-current manage:jira-configuration
138
+ * @scopes-beta delete:issue-type:jira
139
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-delete
140
+ */
141
+ this.deleteIssueType = ({ id, alternativeIssueTypeId, }) => {
142
+ return this.getClientInstance()
143
+ .request({
144
+ path: "/rest/api/3/issuetype/{id}",
145
+ method: "DELETE",
146
+ pathParams: {
147
+ id,
148
+ },
149
+ query: {
150
+ alternativeIssueTypeId,
151
+ },
152
+ })
153
+ .then(commonHttpClient.discardResult);
154
+ };
155
+ /**
156
+ * Returns a list of issue types that can be used to replace the issue type. The
157
+ * alternative issue types are those assigned to the same workflow scheme, field
158
+ * configuration scheme, and screen scheme.
159
+ *
160
+ * This operation can be accessed anonymously.
161
+ *
162
+ * **[Permissions](#permissions) required:** None.
163
+ *
164
+ * @returns Returned if the request is successful.
165
+ *
166
+ * example: [
167
+ * {
168
+ * "avatarId": 1,
169
+ * "description": "A task that needs to be done.",
170
+ * "hierarchyLevel": 0,
171
+ * "iconUrl":
172
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
173
+ * "id": "3",
174
+ * "name": "Task",
175
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
176
+ * "subtask": false
177
+ * },
178
+ * {
179
+ * "avatarId": 10002,
180
+ * "description": "A problem with the software.",
181
+ * "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
182
+ * "hierarchyLevel": 0,
183
+ * "iconUrl":
184
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
185
+ * "id": "1",
186
+ * "name": "Bug",
187
+ * "scope": {
188
+ * "project": {
189
+ * "id": "10000"
190
+ * },
191
+ * "type": "PROJECT"
192
+ * },
193
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
194
+ * "subtask": false
195
+ * }
196
+ * ]
197
+ * @path {GET} /rest/api/3/issuetype/{id}/alternatives
198
+ * @scopes-current read:jira-work
199
+ * @scopes-beta read:issue-type:jira, read:project-category:jira, read:project:jira,
200
+ * read:avatar:jira
201
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-alternatives-get
202
+ */
203
+ this.getAlternativeIssueTypes = ({ id, }) => {
204
+ return this.getClientInstance()
205
+ .request({
206
+ path: "/rest/api/3/issuetype/{id}/alternatives",
207
+ method: "GET",
208
+ pathParams: {
209
+ id,
210
+ },
211
+ })
212
+ .then(this.getClientInstance().responseHandler({
213
+ 200: {
214
+ "application/json": "json",
215
+ },
216
+ }))
217
+ .then(commonHttpClient.castResponse())
218
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getAlternativeIssueTypes.response"))
219
+ .then(commonHttpClient.getBody);
220
+ };
221
+ /**
222
+ * Returns all issue types.
223
+ *
224
+ * This operation can be accessed anonymously.
225
+ *
226
+ * **[Permissions](#permissions) required:** Issue types are only returned as
227
+ * follows:
228
+ *
229
+ * * if the user has the *Administer Jira* [global
230
+ * permission](https://confluence.atlassian.com/x/x4dKLg), all issue types are
231
+ * returned.
232
+ * * if the user has the *Browse projects* [project
233
+ * permission](https://confluence.atlassian.com/x/yodKLg) for one or more
234
+ * projects, the issue types associated with the projects the user has permission
235
+ * to browse are returned.
236
+ *
237
+ * @returns Returned if the request is successful.
238
+ *
239
+ * example: [
240
+ * {
241
+ * "avatarId": 1,
242
+ * "description": "A task that needs to be done.",
243
+ * "hierarchyLevel": 0,
244
+ * "iconUrl":
245
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
246
+ * "id": "3",
247
+ * "name": "Task",
248
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
249
+ * "subtask": false
250
+ * },
251
+ * {
252
+ * "avatarId": 10002,
253
+ * "description": "A problem with the software.",
254
+ * "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
255
+ * "hierarchyLevel": 0,
256
+ * "iconUrl":
257
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
258
+ * "id": "1",
259
+ * "name": "Bug",
260
+ * "scope": {
261
+ * "project": {
262
+ * "id": "10000"
263
+ * },
264
+ * "type": "PROJECT"
265
+ * },
266
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
267
+ * "subtask": false
268
+ * }
269
+ * ]
270
+ * @path {GET} /rest/api/3/issuetype
271
+ * @scopes-current read:jira-work
272
+ * @scopes-beta read:issue-type:jira, read:avatar:jira, read:project-category:jira,
273
+ * read:project:jira
274
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-get
275
+ */
276
+ this.getIssueAllTypes = () => {
277
+ return this.getClientInstance()
278
+ .request({
279
+ path: "/rest/api/3/issuetype",
280
+ method: "GET",
281
+ })
282
+ .then(this.getClientInstance().responseHandler({
283
+ 200: {
284
+ "application/json": "json",
285
+ },
286
+ }))
287
+ .then(commonHttpClient.castResponse())
288
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getIssueAllTypes.response"))
289
+ .then(commonHttpClient.getBody);
290
+ };
291
+ /**
292
+ * Returns an issue type.
293
+ *
294
+ * This operation can be accessed anonymously.
295
+ *
296
+ * **[Permissions](#permissions) required:** *Browse projects* [project
297
+ * permission](https://confluence.atlassian.com/x/yodKLg) in a project the issue
298
+ * type is associated with or *Administer Jira* [global
299
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
300
+ *
301
+ * @returns Returned if the request is successful.
302
+ *
303
+ * example: {
304
+ * "avatarId": 1,
305
+ * "description": "A task that needs to be done.",
306
+ * "hierarchyLevel": 0,
307
+ * "iconUrl":
308
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
309
+ * "id": "3",
310
+ * "name": "Task",
311
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
312
+ * "subtask": false
313
+ * }
314
+ * @path {GET} /rest/api/3/issuetype/{id}
315
+ * @scopes-current read:jira-work
316
+ * @scopes-beta read:issue-type:jira, read:avatar:jira, read:project-category:jira,
317
+ * read:project:jira
318
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-get
319
+ */
320
+ this.getIssueType = ({ id, }) => {
321
+ return this.getClientInstance()
322
+ .request({
323
+ path: "/rest/api/3/issuetype/{id}",
324
+ method: "GET",
325
+ pathParams: {
326
+ id,
327
+ },
328
+ })
329
+ .then(this.getClientInstance().responseHandler({
330
+ 200: {
331
+ "application/json": "json",
332
+ },
333
+ }))
334
+ .then(commonHttpClient.castResponse())
335
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getIssueType.response"))
336
+ .then(commonHttpClient.getBody);
337
+ };
338
+ /**
339
+ * Returns issue types for a project.
340
+ *
341
+ * This operation can be accessed anonymously.
342
+ *
343
+ * **[Permissions](#permissions) required:** *Browse projects* [project
344
+ * permission](https://confluence.atlassian.com/x/yodKLg) in the relevant project
345
+ * or *Administer Jira* [global
346
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
347
+ *
348
+ * @returns Returned if the request is successful.
349
+ *
350
+ * example: [
351
+ * {
352
+ * "avatarId": 10002,
353
+ * "description": "A problem with the software.",
354
+ * "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
355
+ * "hierarchyLevel": 0,
356
+ * "iconUrl":
357
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
358
+ * "id": "1",
359
+ * "name": "Bug",
360
+ * "scope": {
361
+ * "project": {
362
+ * "id": "10000"
363
+ * },
364
+ * "type": "PROJECT"
365
+ * },
366
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
367
+ * "subtask": false
368
+ * },
369
+ * {
370
+ * "avatarId": 1,
371
+ * "description": "A task that needs to be done.",
372
+ * "hierarchyLevel": 0,
373
+ * "iconUrl":
374
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
375
+ * "id": "3",
376
+ * "name": "Task",
377
+ * "scope": {
378
+ * "project": {
379
+ * "id": "10000"
380
+ * },
381
+ * "type": "PROJECT"
382
+ * },
383
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
384
+ * "subtask": false
385
+ * }
386
+ * ]
387
+ * @path {GET} /rest/api/3/issuetype/project
388
+ * @scopes-current read:jira-work
389
+ * @scopes-beta read:issue-type:jira, read:avatar:jira, read:project-category:jira,
390
+ * read:project:jira
391
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-project-get
392
+ */
393
+ this.getIssueTypesForProject = ({ projectId, level, }) => {
394
+ return this.getClientInstance()
395
+ .request({
396
+ path: "/rest/api/3/issuetype/project",
397
+ method: "GET",
398
+ query: {
399
+ projectId,
400
+ level,
401
+ },
402
+ })
403
+ .then(this.getClientInstance().responseHandler({
404
+ 200: {
405
+ "application/json": "json",
406
+ },
407
+ }))
408
+ .then(commonHttpClient.castResponse())
409
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.getIssueTypesForProject.response"))
410
+ .then(commonHttpClient.getBody);
411
+ };
412
+ /**
413
+ * Updates the issue type.
414
+ *
415
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
416
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
417
+ *
418
+ * @returns Returned if the request is successful.
419
+ * @path {PUT} /rest/api/3/issuetype/{id}
420
+ * @scopes-current manage:jira-configuration
421
+ * @scopes-beta write:issue-type:jira, read:avatar:jira, read:issue-type:jira,
422
+ * read:project-category:jira, read:project:jira
423
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-types#api-rest-api-3-issuetype-id-put
424
+ */
425
+ this.updateIssueType = ({ id, issueTypeUpdateBean, }) => {
426
+ return this.getClientInstance()
427
+ .request({
428
+ path: "/rest/api/3/issuetype/{id}",
429
+ method: "PUT",
430
+ pathParams: {
431
+ id,
432
+ },
433
+ headers: {
434
+ "Content-Type": "application/json",
435
+ },
436
+ body: issueTypeUpdateBean,
437
+ })
438
+ .then(this.getClientInstance().responseHandler({
439
+ 200: {
440
+ "application/json": "json",
441
+ },
442
+ }))
443
+ .then(commonHttpClient.castResponse())
444
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypesService.updateIssueType.response"))
445
+ .then(commonHttpClient.getBody);
446
+ };
450
447
  }
451
448
  static initialize() {
452
449
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueTypesService.getIssueAllTypes.response", zod_1.z