@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
@@ -22,530 +22,533 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
22
22
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes
23
23
  */
24
24
  class IssueTypeSchemesService extends CommonHttpService_1.CommonHttpService {
25
- /**
26
- * Adds issue types to an issue type scheme.
27
- *
28
- * The added issue types are appended to the issue types list.
29
- *
30
- * If any of the issue types exist in the issue type scheme, the operation fails
31
- * and no issue types are added.
32
- *
33
- * **[Permissions](#permissions) required:** *Administer Jira* [global
34
- * permission](https://confluence.atlassian.com/x/x4dKLg).
35
- *
36
- * @returns Returned if the request is successful.
37
- * @path {PUT} /rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype
38
- * @scopes-current manage:jira-configuration
39
- * @scopes-beta write:issue-type-scheme:jira
40
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-issuetype-put
41
- */
42
- addIssueTypesToIssueTypeScheme({ issueTypeSchemeId, issueTypeIds, }) {
43
- return this.getClientInstance()
44
- .request({
45
- path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype",
46
- method: "PUT",
47
- pathParams: {
48
- issueTypeSchemeId,
49
- },
50
- headers: {
51
- "Content-Type": "application/json",
52
- },
53
- body: issueTypeIds,
54
- })
55
- .then(this.getClientInstance().responseHandler({
56
- 204: {
57
- "application/json": "json",
58
- },
59
- }))
60
- .then(commonHttpClient.castResponse())
61
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.addIssueTypesToIssueTypeScheme.response"))
62
- .then(commonHttpClient.getBody);
63
- }
64
- /**
65
- * Assigns an issue type scheme to a project.
66
- *
67
- * If any issues in the project are assigned issue types not present in the new
68
- * scheme, the operation will fail. To complete the assignment those issues must
69
- * be updated to use issue types in the new scheme.
70
- *
71
- * Issue type schemes can only be assigned to classic projects.
72
- *
73
- * **[Permissions](#permissions) required:** *Administer Jira* [global
74
- * permission](https://confluence.atlassian.com/x/x4dKLg).
75
- *
76
- * @returns Returned if the request is successful.
77
- * @path {PUT} /rest/api/3/issuetypescheme/project
78
- * @scopes-current manage:jira-configuration
79
- * @scopes-beta write:issue-type-scheme:jira, write:project:jira
80
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-project-put
81
- */
82
- assignIssueTypeSchemeToProject({ issueTypeSchemeProjectAssociation, }) {
83
- return this.getClientInstance()
84
- .request({
85
- path: "/rest/api/3/issuetypescheme/project",
86
- method: "PUT",
87
- headers: {
88
- "Content-Type": "application/json",
89
- },
90
- body: issueTypeSchemeProjectAssociation,
91
- })
92
- .then(this.getClientInstance().responseHandler({
93
- 204: {
94
- "application/json": "json",
95
- },
96
- }))
97
- .then(commonHttpClient.castResponse())
98
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.assignIssueTypeSchemeToProject.response"))
99
- .then(commonHttpClient.getBody);
100
- }
101
- /**
102
- * Creates an issue type scheme.
103
- *
104
- * **[Permissions](#permissions) required:** *Administer Jira* [global
105
- * permission](https://confluence.atlassian.com/x/x4dKLg).
106
- *
107
- * @returns Returned if the request is successful.
108
- *
109
- * example: {
110
- * "issueTypeSchemeId": "10010"
111
- * }
112
- * @path {POST} /rest/api/3/issuetypescheme
113
- * @scopes-current manage:jira-configuration
114
- * @scopes-beta write:issue-type-scheme:jira
115
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-post
116
- */
117
- createIssueTypeScheme({ issueTypeSchemeDetails, }) {
118
- return this.getClientInstance()
119
- .request({
120
- path: "/rest/api/3/issuetypescheme",
121
- method: "POST",
122
- headers: {
123
- "Content-Type": "application/json",
124
- },
125
- body: issueTypeSchemeDetails,
126
- })
127
- .then(this.getClientInstance().responseHandler({
128
- 201: {
129
- "application/json": "json",
130
- },
131
- }))
132
- .then(commonHttpClient.castResponse())
133
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.createIssueTypeScheme.response"))
134
- .then(commonHttpClient.getBody);
135
- }
136
- /**
137
- * Deletes an issue type scheme.
138
- *
139
- * Only issue type schemes used in classic projects can be deleted.
140
- *
141
- * Any projects assigned to the scheme are reassigned to the default issue type
142
- * scheme.
143
- *
144
- * **[Permissions](#permissions) required:** *Administer Jira* [global
145
- * permission](https://confluence.atlassian.com/x/x4dKLg).
146
- *
147
- * @returns Returned if the issue type scheme is deleted.
148
- * @path {DELETE} /rest/api/3/issuetypescheme/{issueTypeSchemeId}
149
- * @scopes-current manage:jira-configuration
150
- * @scopes-beta delete:issue-type-scheme:jira, write:project:jira
151
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-delete
152
- */
153
- deleteIssueTypeScheme({ issueTypeSchemeId, }) {
154
- return this.getClientInstance()
155
- .request({
156
- path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}",
157
- method: "DELETE",
158
- pathParams: {
159
- issueTypeSchemeId,
160
- },
161
- })
162
- .then(this.getClientInstance().responseHandler({
163
- 204: {
164
- "application/json": "json",
165
- },
166
- }))
167
- .then(commonHttpClient.castResponse())
168
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.deleteIssueTypeScheme.response"))
169
- .then(commonHttpClient.getBody);
170
- }
171
- /**
172
- * Returns a [paginated](#pagination) list of issue type schemes.
173
- *
174
- * Only issue type schemes used in classic projects are returned.
175
- *
176
- * **[Permissions](#permissions) required:** *Administer Jira* [global
177
- * permission](https://confluence.atlassian.com/x/x4dKLg).
178
- *
179
- * @returns Returned if the request is successful.
180
- *
181
- * example: {
182
- * "isLast": true,
183
- * "maxResults": 100,
184
- * "startAt": 0,
185
- * "total": 3,
186
- * "values": [
187
- * {
188
- * "id": "10000",
189
- * "name": "Default Issue Type Scheme",
190
- * "description": "Default issue type scheme is the list of global issue
191
- * types. All newly created issue types will automatically be added to this
192
- * scheme.",
193
- * "defaultIssueTypeId": "10003",
194
- * "isDefault": true
195
- * },
196
- * {
197
- * "id": "10001",
198
- * "name": "SUP: Kanban Issue Type Scheme",
199
- * "description": "A collection of issue types suited to use in a kanban
200
- * style project.",
201
- * "projects": {
202
- * "isLast": true,
203
- * "maxResults": 100,
204
- * "startAt": 0,
205
- * "total": 1,
206
- * "values": [
207
- * {
208
- * "avatarUrls": {
209
- * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
210
- * "24x24": "secure/projectavatar?size=small&pid=10000",
211
- * "32x32": "secure/projectavatar?size=medium&pid=10000",
212
- * "48x48": "secure/projectavatar?size=large&pid=10000"
213
- * },
214
- * "id": "10000",
215
- * "key": "EX",
216
- * "name": "Example",
217
- * "projectCategory": {
218
- * "description": "Project category description",
219
- * "id": "10000",
220
- * "name": "A project category"
221
- * },
222
- * "projectTypeKey": "ProjectTypeKey{key='software'}",
223
- * "self": "project/EX",
224
- * "simplified": false
225
- * }
226
- * ]
227
- * }
228
- * },
229
- * {
230
- * "id": "10002",
231
- * "name": "HR: Scrum issue type scheme",
232
- * "description": "",
233
- * "defaultIssueTypeId": "10004",
234
- * "issueTypes": {
235
- * "isLast": true,
236
- * "maxResults": 100,
237
- * "startAt": 0,
238
- * "total": 1,
239
- * "values": [
240
- * {
241
- * "description": "Improvement Issue Type",
242
- * "hierarchyLevel": -1,
243
- * "iconUrl": "www.example.com",
244
- * "id": "1000L",
245
- * "name": "Improvements",
246
- * "subtask": true
247
- * }
248
- * ]
249
- * }
250
- * }
251
- * ]
252
- * }
253
- * @path {GET} /rest/api/3/issuetypescheme
254
- * @scopes-current manage:jira-configuration
255
- * @scopes-beta read:issue-type-scheme:jira
256
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-get
257
- */
258
- getAllIssueTypeSchemes({ startAt, maxResults, id, orderBy, expand, queryString, } = {}) {
259
- return this.getClientInstance()
260
- .request({
261
- path: "/rest/api/3/issuetypescheme",
262
- method: "GET",
263
- query: {
264
- startAt,
265
- maxResults,
266
- id,
267
- orderBy,
268
- expand,
269
- queryString,
270
- },
271
- })
272
- .then(this.getClientInstance().responseHandler({
273
- 200: {
274
- "application/json": "json",
275
- },
276
- }))
277
- .then(commonHttpClient.castResponse())
278
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.getAllIssueTypeSchemes.response"))
279
- .then(commonHttpClient.getBody);
280
- }
281
- /**
282
- * Returns a [paginated](#pagination) list of issue type schemes and, for each
283
- * issue type scheme, a list of the projects that use it.
284
- *
285
- * Only issue type schemes used in classic projects are returned.
286
- *
287
- * **[Permissions](#permissions) required:** *Administer Jira* [global
288
- * permission](https://confluence.atlassian.com/x/x4dKLg).
289
- *
290
- * @returns Returned if the request is successful.
291
- *
292
- * example: {
293
- * "isLast": true,
294
- * "maxResults": 100,
295
- * "startAt": 0,
296
- * "total": 3,
297
- * "values": [
298
- * {
299
- * "issueTypeScheme": {
300
- * "id": "10000",
301
- * "name": "Default Issue Type Scheme",
302
- * "description": "Default issue type scheme is the list of global issue
303
- * types. All newly created issue types will automatically be added to this
304
- * scheme.",
305
- * "defaultIssueTypeId": "10003",
306
- * "isDefault": true
307
- * },
308
- * "projectIds": [
309
- * "10000",
310
- * "10001"
311
- * ]
312
- * },
313
- * {
314
- * "issueTypeScheme": {
315
- * "id": "10001",
316
- * "name": "SUP: Kanban Issue Type Scheme",
317
- * "description": "A collection of issue types suited to use in a kanban
318
- * style project."
319
- * },
320
- * "projectIds": [
321
- * "10002"
322
- * ]
323
- * },
324
- * {
325
- * "issueTypeScheme": {
326
- * "id": "10002",
327
- * "name": "HR: Scrum issue type scheme",
328
- * "description": "",
329
- * "defaultIssueTypeId": "10004",
330
- * "issueTypes": {
331
- * "isLast": true,
332
- * "maxResults": 100,
333
- * "startAt": 0,
334
- * "total": 1,
335
- * "values": [
336
- * {
337
- * "description": "Improvement Issue Type",
338
- * "hierarchyLevel": -1,
339
- * "iconUrl": "www.example.com",
340
- * "id": "1000L",
341
- * "name": "Improvements",
342
- * "subtask": true
343
- * }
344
- * ]
345
- * }
346
- * },
347
- * "projectIds": [
348
- * "10003",
349
- * "10004",
350
- * "10005"
351
- * ]
352
- * }
353
- * ]
354
- * }
355
- * @path {GET} /rest/api/3/issuetypescheme/project
356
- * @scopes-current manage:jira-configuration
357
- * @scopes-beta read:issue-type-scheme:jira
358
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-project-get
359
- */
360
- getIssueTypeSchemeForProjects({ startAt, maxResults, projectId, }) {
361
- return this.getClientInstance()
362
- .request({
363
- path: "/rest/api/3/issuetypescheme/project",
364
- method: "GET",
365
- query: {
366
- startAt,
367
- maxResults,
368
- projectId,
369
- },
370
- })
371
- .then(this.getClientInstance().responseHandler({
372
- 200: {
373
- "application/json": "json",
374
- },
375
- }))
376
- .then(commonHttpClient.castResponse())
377
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.getIssueTypeSchemeForProjects.response"))
378
- .then(commonHttpClient.getBody);
379
- }
380
- /**
381
- * Returns a [paginated](#pagination) list of issue type scheme items.
382
- *
383
- * Only issue type scheme items used in classic projects are returned.
384
- *
385
- * **[Permissions](#permissions) required:** *Administer Jira* [global
386
- * permission](https://confluence.atlassian.com/x/x4dKLg).
387
- *
388
- * @returns Returned if the request is successful.
389
- *
390
- * example: {
391
- * "isLast": true,
392
- * "maxResults": 100,
393
- * "startAt": 0,
394
- * "total": 4,
395
- * "values": [
396
- * {
397
- * "issueTypeSchemeId": "10000",
398
- * "issueTypeId": "10000"
399
- * },
400
- * {
401
- * "issueTypeSchemeId": "10000",
402
- * "issueTypeId": "10001"
403
- * },
404
- * {
405
- * "issueTypeSchemeId": "10000",
406
- * "issueTypeId": "10002"
407
- * },
408
- * {
409
- * "issueTypeSchemeId": "10001",
410
- * "issueTypeId": "10000"
411
- * }
412
- * ]
413
- * }
414
- * @path {GET} /rest/api/3/issuetypescheme/mapping
415
- * @scopes-current manage:jira-configuration
416
- * @scopes-beta read:issue-type-scheme:jira
417
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-mapping-get
418
- */
419
- getIssueTypeSchemesMapping({ startAt, maxResults, issueTypeSchemeId, } = {}) {
420
- return this.getClientInstance()
421
- .request({
422
- path: "/rest/api/3/issuetypescheme/mapping",
423
- method: "GET",
424
- query: {
425
- startAt,
426
- maxResults,
427
- issueTypeSchemeId,
428
- },
429
- })
430
- .then(this.getClientInstance().responseHandler({
431
- 200: {
432
- "application/json": "json",
433
- },
434
- }))
435
- .then(commonHttpClient.castResponse())
436
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.getIssueTypeSchemesMapping.response"))
437
- .then(commonHttpClient.getBody);
438
- }
439
- /**
440
- * Removes an issue type from an issue type scheme.
441
- *
442
- * This operation cannot remove:
443
- *
444
- * * any issue type used by issues.
445
- * * any issue types from the default issue type scheme.
446
- * * the last standard issue type from an issue type scheme.
447
- *
448
- * **[Permissions](#permissions) required:** *Administer Jira* [global
449
- * permission](https://confluence.atlassian.com/x/x4dKLg).
450
- *
451
- * @returns Returned if the request is successful.
452
- * @path {DELETE} /rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/{issueTypeId}
453
- * @scopes-current manage:jira-configuration
454
- * @scopes-beta write:issue-type-scheme:jira
455
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-issuetype-issuetypeid-delete
456
- */
457
- removeIssueTypeFromIssueTypeScheme({ issueTypeSchemeId, issueTypeId, }) {
458
- return this.getClientInstance()
459
- .request({
460
- path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/{issueTypeId}",
461
- method: "DELETE",
462
- pathParams: {
463
- issueTypeSchemeId,
464
- issueTypeId,
465
- },
466
- })
467
- .then(this.getClientInstance().responseHandler({
468
- 204: {
469
- "application/json": "json",
470
- },
471
- }))
472
- .then(commonHttpClient.castResponse())
473
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.removeIssueTypeFromIssueTypeScheme.response"))
474
- .then(commonHttpClient.getBody);
475
- }
476
- /**
477
- * Changes the order of issue types in an issue type scheme.
478
- *
479
- * The request body parameters must meet the following requirements:
480
- *
481
- * * all of the issue types must belong to the issue type scheme.
482
- * * either `after` or `position` must be provided.
483
- * * the issue type in `after` must not be in the issue type list.
484
- *
485
- * **[Permissions](#permissions) required:** *Administer Jira* [global
486
- * permission](https://confluence.atlassian.com/x/x4dKLg).
487
- *
488
- * @returns Returned if the request is successful.
489
- * @path {PUT} /rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/move
490
- * @scopes-current manage:jira-configuration
491
- * @scopes-beta write:issue-type-scheme:jira
492
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-issuetype-move-put
493
- */
494
- reorderIssueTypesInIssueTypeScheme({ issueTypeSchemeId, orderOfIssueTypes, }) {
495
- return this.getClientInstance()
496
- .request({
497
- path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/move",
498
- method: "PUT",
499
- pathParams: {
500
- issueTypeSchemeId,
501
- },
502
- headers: {
503
- "Content-Type": "application/json",
504
- },
505
- body: orderOfIssueTypes,
506
- })
507
- .then(this.getClientInstance().responseHandler({
508
- 204: {
509
- "application/json": "json",
510
- },
511
- }))
512
- .then(commonHttpClient.castResponse())
513
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.reorderIssueTypesInIssueTypeScheme.response"))
514
- .then(commonHttpClient.getBody);
515
- }
516
- /**
517
- * Updates an issue type scheme.
518
- *
519
- * **[Permissions](#permissions) required:** *Administer Jira* [global
520
- * permission](https://confluence.atlassian.com/x/x4dKLg).
521
- *
522
- * @returns Returned if the request is successful.
523
- * @path {PUT} /rest/api/3/issuetypescheme/{issueTypeSchemeId}
524
- * @scopes-current manage:jira-configuration
525
- * @scopes-beta write:issue-type-scheme:jira
526
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-put
527
- */
528
- updateIssueTypeScheme({ issueTypeSchemeId, issueTypeSchemeUpdateDetails, }) {
529
- return this.getClientInstance()
530
- .request({
531
- path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}",
532
- method: "PUT",
533
- pathParams: {
534
- issueTypeSchemeId,
535
- },
536
- headers: {
537
- "Content-Type": "application/json",
538
- },
539
- body: issueTypeSchemeUpdateDetails,
540
- })
541
- .then(this.getClientInstance().responseHandler({
542
- 204: {
543
- "application/json": "json",
544
- },
545
- }))
546
- .then(commonHttpClient.castResponse())
547
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.updateIssueTypeScheme.response"))
548
- .then(commonHttpClient.getBody);
25
+ constructor() {
26
+ super(...arguments);
27
+ /**
28
+ * Adds issue types to an issue type scheme.
29
+ *
30
+ * The added issue types are appended to the issue types list.
31
+ *
32
+ * If any of the issue types exist in the issue type scheme, the operation fails
33
+ * and no issue types are added.
34
+ *
35
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
36
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
37
+ *
38
+ * @returns Returned if the request is successful.
39
+ * @path {PUT} /rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype
40
+ * @scopes-current manage:jira-configuration
41
+ * @scopes-beta write:issue-type-scheme:jira
42
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-issuetype-put
43
+ */
44
+ this.addIssueTypesToIssueTypeScheme = ({ issueTypeSchemeId, issueTypeIds, }) => {
45
+ return this.getClientInstance()
46
+ .request({
47
+ path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype",
48
+ method: "PUT",
49
+ pathParams: {
50
+ issueTypeSchemeId,
51
+ },
52
+ headers: {
53
+ "Content-Type": "application/json",
54
+ },
55
+ body: issueTypeIds,
56
+ })
57
+ .then(this.getClientInstance().responseHandler({
58
+ 204: {
59
+ "application/json": "json",
60
+ },
61
+ }))
62
+ .then(commonHttpClient.castResponse())
63
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.addIssueTypesToIssueTypeScheme.response"))
64
+ .then(commonHttpClient.getBody);
65
+ };
66
+ /**
67
+ * Assigns an issue type scheme to a project.
68
+ *
69
+ * If any issues in the project are assigned issue types not present in the new
70
+ * scheme, the operation will fail. To complete the assignment those issues must
71
+ * be updated to use issue types in the new scheme.
72
+ *
73
+ * Issue type schemes can only be assigned to classic projects.
74
+ *
75
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
76
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
77
+ *
78
+ * @returns Returned if the request is successful.
79
+ * @path {PUT} /rest/api/3/issuetypescheme/project
80
+ * @scopes-current manage:jira-configuration
81
+ * @scopes-beta write:issue-type-scheme:jira, write:project:jira
82
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-project-put
83
+ */
84
+ this.assignIssueTypeSchemeToProject = ({ issueTypeSchemeProjectAssociation, }) => {
85
+ return this.getClientInstance()
86
+ .request({
87
+ path: "/rest/api/3/issuetypescheme/project",
88
+ method: "PUT",
89
+ headers: {
90
+ "Content-Type": "application/json",
91
+ },
92
+ body: issueTypeSchemeProjectAssociation,
93
+ })
94
+ .then(this.getClientInstance().responseHandler({
95
+ 204: {
96
+ "application/json": "json",
97
+ },
98
+ }))
99
+ .then(commonHttpClient.castResponse())
100
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.assignIssueTypeSchemeToProject.response"))
101
+ .then(commonHttpClient.getBody);
102
+ };
103
+ /**
104
+ * Creates an issue type scheme.
105
+ *
106
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
107
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
108
+ *
109
+ * @returns Returned if the request is successful.
110
+ *
111
+ * example: {
112
+ * "issueTypeSchemeId": "10010"
113
+ * }
114
+ * @path {POST} /rest/api/3/issuetypescheme
115
+ * @scopes-current manage:jira-configuration
116
+ * @scopes-beta write:issue-type-scheme:jira
117
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-post
118
+ */
119
+ this.createIssueTypeScheme = ({ issueTypeSchemeDetails, }) => {
120
+ return this.getClientInstance()
121
+ .request({
122
+ path: "/rest/api/3/issuetypescheme",
123
+ method: "POST",
124
+ headers: {
125
+ "Content-Type": "application/json",
126
+ },
127
+ body: issueTypeSchemeDetails,
128
+ })
129
+ .then(this.getClientInstance().responseHandler({
130
+ 201: {
131
+ "application/json": "json",
132
+ },
133
+ }))
134
+ .then(commonHttpClient.castResponse())
135
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.createIssueTypeScheme.response"))
136
+ .then(commonHttpClient.getBody);
137
+ };
138
+ /**
139
+ * Deletes an issue type scheme.
140
+ *
141
+ * Only issue type schemes used in classic projects can be deleted.
142
+ *
143
+ * Any projects assigned to the scheme are reassigned to the default issue type
144
+ * scheme.
145
+ *
146
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
147
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
148
+ *
149
+ * @returns Returned if the issue type scheme is deleted.
150
+ * @path {DELETE} /rest/api/3/issuetypescheme/{issueTypeSchemeId}
151
+ * @scopes-current manage:jira-configuration
152
+ * @scopes-beta delete:issue-type-scheme:jira, write:project:jira
153
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-delete
154
+ */
155
+ this.deleteIssueTypeScheme = ({ issueTypeSchemeId, }) => {
156
+ return this.getClientInstance()
157
+ .request({
158
+ path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}",
159
+ method: "DELETE",
160
+ pathParams: {
161
+ issueTypeSchemeId,
162
+ },
163
+ })
164
+ .then(this.getClientInstance().responseHandler({
165
+ 204: {
166
+ "application/json": "json",
167
+ },
168
+ }))
169
+ .then(commonHttpClient.castResponse())
170
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.deleteIssueTypeScheme.response"))
171
+ .then(commonHttpClient.getBody);
172
+ };
173
+ /**
174
+ * Returns a [paginated](#pagination) list of issue type schemes.
175
+ *
176
+ * Only issue type schemes used in classic projects are returned.
177
+ *
178
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
179
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
180
+ *
181
+ * @returns Returned if the request is successful.
182
+ *
183
+ * example: {
184
+ * "isLast": true,
185
+ * "maxResults": 100,
186
+ * "startAt": 0,
187
+ * "total": 3,
188
+ * "values": [
189
+ * {
190
+ * "id": "10000",
191
+ * "name": "Default Issue Type Scheme",
192
+ * "description": "Default issue type scheme is the list of global issue
193
+ * types. All newly created issue types will automatically be added to this
194
+ * scheme.",
195
+ * "defaultIssueTypeId": "10003",
196
+ * "isDefault": true
197
+ * },
198
+ * {
199
+ * "id": "10001",
200
+ * "name": "SUP: Kanban Issue Type Scheme",
201
+ * "description": "A collection of issue types suited to use in a kanban
202
+ * style project.",
203
+ * "projects": {
204
+ * "isLast": true,
205
+ * "maxResults": 100,
206
+ * "startAt": 0,
207
+ * "total": 1,
208
+ * "values": [
209
+ * {
210
+ * "avatarUrls": {
211
+ * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
212
+ * "24x24": "secure/projectavatar?size=small&pid=10000",
213
+ * "32x32": "secure/projectavatar?size=medium&pid=10000",
214
+ * "48x48": "secure/projectavatar?size=large&pid=10000"
215
+ * },
216
+ * "id": "10000",
217
+ * "key": "EX",
218
+ * "name": "Example",
219
+ * "projectCategory": {
220
+ * "description": "Project category description",
221
+ * "id": "10000",
222
+ * "name": "A project category"
223
+ * },
224
+ * "projectTypeKey": "ProjectTypeKey{key='software'}",
225
+ * "self": "project/EX",
226
+ * "simplified": false
227
+ * }
228
+ * ]
229
+ * }
230
+ * },
231
+ * {
232
+ * "id": "10002",
233
+ * "name": "HR: Scrum issue type scheme",
234
+ * "description": "",
235
+ * "defaultIssueTypeId": "10004",
236
+ * "issueTypes": {
237
+ * "isLast": true,
238
+ * "maxResults": 100,
239
+ * "startAt": 0,
240
+ * "total": 1,
241
+ * "values": [
242
+ * {
243
+ * "description": "Improvement Issue Type",
244
+ * "hierarchyLevel": -1,
245
+ * "iconUrl": "www.example.com",
246
+ * "id": "1000L",
247
+ * "name": "Improvements",
248
+ * "subtask": true
249
+ * }
250
+ * ]
251
+ * }
252
+ * }
253
+ * ]
254
+ * }
255
+ * @path {GET} /rest/api/3/issuetypescheme
256
+ * @scopes-current manage:jira-configuration
257
+ * @scopes-beta read:issue-type-scheme:jira
258
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-get
259
+ */
260
+ this.getAllIssueTypeSchemes = ({ startAt, maxResults, id, orderBy, expand, queryString, } = {}) => {
261
+ return this.getClientInstance()
262
+ .request({
263
+ path: "/rest/api/3/issuetypescheme",
264
+ method: "GET",
265
+ query: {
266
+ startAt,
267
+ maxResults,
268
+ id,
269
+ orderBy,
270
+ expand,
271
+ queryString,
272
+ },
273
+ })
274
+ .then(this.getClientInstance().responseHandler({
275
+ 200: {
276
+ "application/json": "json",
277
+ },
278
+ }))
279
+ .then(commonHttpClient.castResponse())
280
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.getAllIssueTypeSchemes.response"))
281
+ .then(commonHttpClient.getBody);
282
+ };
283
+ /**
284
+ * Returns a [paginated](#pagination) list of issue type schemes and, for each
285
+ * issue type scheme, a list of the projects that use it.
286
+ *
287
+ * Only issue type schemes used in classic projects are returned.
288
+ *
289
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
290
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
291
+ *
292
+ * @returns Returned if the request is successful.
293
+ *
294
+ * example: {
295
+ * "isLast": true,
296
+ * "maxResults": 100,
297
+ * "startAt": 0,
298
+ * "total": 3,
299
+ * "values": [
300
+ * {
301
+ * "issueTypeScheme": {
302
+ * "id": "10000",
303
+ * "name": "Default Issue Type Scheme",
304
+ * "description": "Default issue type scheme is the list of global issue
305
+ * types. All newly created issue types will automatically be added to this
306
+ * scheme.",
307
+ * "defaultIssueTypeId": "10003",
308
+ * "isDefault": true
309
+ * },
310
+ * "projectIds": [
311
+ * "10000",
312
+ * "10001"
313
+ * ]
314
+ * },
315
+ * {
316
+ * "issueTypeScheme": {
317
+ * "id": "10001",
318
+ * "name": "SUP: Kanban Issue Type Scheme",
319
+ * "description": "A collection of issue types suited to use in a kanban
320
+ * style project."
321
+ * },
322
+ * "projectIds": [
323
+ * "10002"
324
+ * ]
325
+ * },
326
+ * {
327
+ * "issueTypeScheme": {
328
+ * "id": "10002",
329
+ * "name": "HR: Scrum issue type scheme",
330
+ * "description": "",
331
+ * "defaultIssueTypeId": "10004",
332
+ * "issueTypes": {
333
+ * "isLast": true,
334
+ * "maxResults": 100,
335
+ * "startAt": 0,
336
+ * "total": 1,
337
+ * "values": [
338
+ * {
339
+ * "description": "Improvement Issue Type",
340
+ * "hierarchyLevel": -1,
341
+ * "iconUrl": "www.example.com",
342
+ * "id": "1000L",
343
+ * "name": "Improvements",
344
+ * "subtask": true
345
+ * }
346
+ * ]
347
+ * }
348
+ * },
349
+ * "projectIds": [
350
+ * "10003",
351
+ * "10004",
352
+ * "10005"
353
+ * ]
354
+ * }
355
+ * ]
356
+ * }
357
+ * @path {GET} /rest/api/3/issuetypescheme/project
358
+ * @scopes-current manage:jira-configuration
359
+ * @scopes-beta read:issue-type-scheme:jira
360
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-project-get
361
+ */
362
+ this.getIssueTypeSchemeForProjects = ({ startAt, maxResults, projectId, }) => {
363
+ return this.getClientInstance()
364
+ .request({
365
+ path: "/rest/api/3/issuetypescheme/project",
366
+ method: "GET",
367
+ query: {
368
+ startAt,
369
+ maxResults,
370
+ projectId,
371
+ },
372
+ })
373
+ .then(this.getClientInstance().responseHandler({
374
+ 200: {
375
+ "application/json": "json",
376
+ },
377
+ }))
378
+ .then(commonHttpClient.castResponse())
379
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.getIssueTypeSchemeForProjects.response"))
380
+ .then(commonHttpClient.getBody);
381
+ };
382
+ /**
383
+ * Returns a [paginated](#pagination) list of issue type scheme items.
384
+ *
385
+ * Only issue type scheme items used in classic projects are returned.
386
+ *
387
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
388
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
389
+ *
390
+ * @returns Returned if the request is successful.
391
+ *
392
+ * example: {
393
+ * "isLast": true,
394
+ * "maxResults": 100,
395
+ * "startAt": 0,
396
+ * "total": 4,
397
+ * "values": [
398
+ * {
399
+ * "issueTypeSchemeId": "10000",
400
+ * "issueTypeId": "10000"
401
+ * },
402
+ * {
403
+ * "issueTypeSchemeId": "10000",
404
+ * "issueTypeId": "10001"
405
+ * },
406
+ * {
407
+ * "issueTypeSchemeId": "10000",
408
+ * "issueTypeId": "10002"
409
+ * },
410
+ * {
411
+ * "issueTypeSchemeId": "10001",
412
+ * "issueTypeId": "10000"
413
+ * }
414
+ * ]
415
+ * }
416
+ * @path {GET} /rest/api/3/issuetypescheme/mapping
417
+ * @scopes-current manage:jira-configuration
418
+ * @scopes-beta read:issue-type-scheme:jira
419
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-mapping-get
420
+ */
421
+ this.getIssueTypeSchemesMapping = ({ startAt, maxResults, issueTypeSchemeId, } = {}) => {
422
+ return this.getClientInstance()
423
+ .request({
424
+ path: "/rest/api/3/issuetypescheme/mapping",
425
+ method: "GET",
426
+ query: {
427
+ startAt,
428
+ maxResults,
429
+ issueTypeSchemeId,
430
+ },
431
+ })
432
+ .then(this.getClientInstance().responseHandler({
433
+ 200: {
434
+ "application/json": "json",
435
+ },
436
+ }))
437
+ .then(commonHttpClient.castResponse())
438
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.getIssueTypeSchemesMapping.response"))
439
+ .then(commonHttpClient.getBody);
440
+ };
441
+ /**
442
+ * Removes an issue type from an issue type scheme.
443
+ *
444
+ * This operation cannot remove:
445
+ *
446
+ * * any issue type used by issues.
447
+ * * any issue types from the default issue type scheme.
448
+ * * the last standard issue type from an issue type scheme.
449
+ *
450
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
451
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
452
+ *
453
+ * @returns Returned if the request is successful.
454
+ * @path {DELETE} /rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/{issueTypeId}
455
+ * @scopes-current manage:jira-configuration
456
+ * @scopes-beta write:issue-type-scheme:jira
457
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-issuetype-issuetypeid-delete
458
+ */
459
+ this.removeIssueTypeFromIssueTypeScheme = ({ issueTypeSchemeId, issueTypeId, }) => {
460
+ return this.getClientInstance()
461
+ .request({
462
+ path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/{issueTypeId}",
463
+ method: "DELETE",
464
+ pathParams: {
465
+ issueTypeSchemeId,
466
+ issueTypeId,
467
+ },
468
+ })
469
+ .then(this.getClientInstance().responseHandler({
470
+ 204: {
471
+ "application/json": "json",
472
+ },
473
+ }))
474
+ .then(commonHttpClient.castResponse())
475
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.removeIssueTypeFromIssueTypeScheme.response"))
476
+ .then(commonHttpClient.getBody);
477
+ };
478
+ /**
479
+ * Changes the order of issue types in an issue type scheme.
480
+ *
481
+ * The request body parameters must meet the following requirements:
482
+ *
483
+ * * all of the issue types must belong to the issue type scheme.
484
+ * * either `after` or `position` must be provided.
485
+ * * the issue type in `after` must not be in the issue type list.
486
+ *
487
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
488
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
489
+ *
490
+ * @returns Returned if the request is successful.
491
+ * @path {PUT} /rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/move
492
+ * @scopes-current manage:jira-configuration
493
+ * @scopes-beta write:issue-type-scheme:jira
494
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-issuetype-move-put
495
+ */
496
+ this.reorderIssueTypesInIssueTypeScheme = ({ issueTypeSchemeId, orderOfIssueTypes, }) => {
497
+ return this.getClientInstance()
498
+ .request({
499
+ path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/move",
500
+ method: "PUT",
501
+ pathParams: {
502
+ issueTypeSchemeId,
503
+ },
504
+ headers: {
505
+ "Content-Type": "application/json",
506
+ },
507
+ body: orderOfIssueTypes,
508
+ })
509
+ .then(this.getClientInstance().responseHandler({
510
+ 204: {
511
+ "application/json": "json",
512
+ },
513
+ }))
514
+ .then(commonHttpClient.castResponse())
515
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.reorderIssueTypesInIssueTypeScheme.response"))
516
+ .then(commonHttpClient.getBody);
517
+ };
518
+ /**
519
+ * Updates an issue type scheme.
520
+ *
521
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
522
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
523
+ *
524
+ * @returns Returned if the request is successful.
525
+ * @path {PUT} /rest/api/3/issuetypescheme/{issueTypeSchemeId}
526
+ * @scopes-current manage:jira-configuration
527
+ * @scopes-beta write:issue-type-scheme:jira
528
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes#api-rest-api-3-issuetypescheme-issuetypeschemeid-put
529
+ */
530
+ this.updateIssueTypeScheme = ({ issueTypeSchemeId, issueTypeSchemeUpdateDetails, }) => {
531
+ return this.getClientInstance()
532
+ .request({
533
+ path: "/rest/api/3/issuetypescheme/{issueTypeSchemeId}",
534
+ method: "PUT",
535
+ pathParams: {
536
+ issueTypeSchemeId,
537
+ },
538
+ headers: {
539
+ "Content-Type": "application/json",
540
+ },
541
+ body: issueTypeSchemeUpdateDetails,
542
+ })
543
+ .then(this.getClientInstance().responseHandler({
544
+ 204: {
545
+ "application/json": "json",
546
+ },
547
+ }))
548
+ .then(commonHttpClient.castResponse())
549
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueTypeSchemesService.updateIssueTypeScheme.response"))
550
+ .then(commonHttpClient.getBody);
551
+ };
549
552
  }
550
553
  static initialize() {
551
554
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueTypeSchemesService.getAllIssueTypeSchemes.response", zod_1.z