@resolution/jira-api-client 0.4.2 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/models/common.d.ts +6 -0
  7. package/lib/openapi/platform/models/common.js +12 -1
  8. package/lib/openapi/platform/models/common.js.map +1 -1
  9. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  10. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  11. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  12. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  14. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  15. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  17. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  18. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  20. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  22. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  23. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  25. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  26. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  27. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  28. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  29. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  30. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  31. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  32. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  33. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  34. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  35. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  36. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  38. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  39. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  40. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  41. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  43. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  44. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  45. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  46. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  47. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  48. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  49. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  50. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  53. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  55. package/lib/openapi/platform/services/GroupsService.js +385 -382
  56. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  57. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  59. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  62. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  65. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  66. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  67. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  68. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  71. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  74. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  83. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  86. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  88. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  89. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  92. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  94. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  95. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  98. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  101. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  104. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  106. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  107. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  110. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  112. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  113. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  115. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  116. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  119. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  122. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  125. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  128. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  131. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  133. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  134. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  136. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  137. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  139. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  140. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  143. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  145. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  146. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  148. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  149. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  150. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  151. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  152. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  154. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  155. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  158. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  160. package/lib/openapi/platform/services/JqlService.js +635 -632
  161. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  162. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  163. package/lib/openapi/platform/services/LabelsService.js +41 -38
  164. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  165. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  167. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  168. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  169. package/lib/openapi/platform/services/MyselfService.js +321 -318
  170. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  171. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  172. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  173. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  175. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  176. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  177. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  178. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  179. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  180. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  182. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  185. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  188. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  190. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  191. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  193. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  194. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  197. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  200. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  203. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  206. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  209. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  211. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  212. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  214. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  215. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  217. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  218. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  220. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  221. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  223. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  224. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  227. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  229. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  230. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  232. package/lib/openapi/platform/services/ScreensService.js +281 -278
  233. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  235. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  236. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  238. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  239. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  240. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  241. package/lib/openapi/platform/services/StatusService.js +271 -268
  242. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  243. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  244. package/lib/openapi/platform/services/TasksService.js +93 -90
  245. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  246. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  247. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  248. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  249. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  251. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  252. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  253. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  254. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  256. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  257. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  258. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  259. package/lib/openapi/platform/services/UsersService.js +637 -634
  260. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  261. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  262. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  263. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  266. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  269. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  272. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  275. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  278. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  281. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  284. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  286. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  287. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  288. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  289. package/lib/openapi/software/services/BacklogService.js +81 -78
  290. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  291. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  292. package/lib/openapi/software/services/BoardService.js +2048 -2045
  293. package/lib/openapi/software/services/BoardService.js.map +1 -1
  294. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  295. package/lib/openapi/software/services/BuildsService.js +164 -161
  296. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  297. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  298. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  299. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  300. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  301. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  302. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  303. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  304. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  305. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  306. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  307. package/lib/openapi/software/services/EpicService.js +597 -594
  308. package/lib/openapi/software/services/EpicService.js.map +1 -1
  309. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  310. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  311. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  312. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  313. package/lib/openapi/software/services/IssueService.js +359 -356
  314. package/lib/openapi/software/services/IssueService.js.map +1 -1
  315. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  316. package/lib/openapi/software/services/OperationsService.js +301 -298
  317. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  318. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  319. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  320. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  321. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  322. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  323. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  324. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  325. package/lib/openapi/software/services/SprintService.js +594 -591
  326. package/lib/openapi/software/services/SprintService.js.map +1 -1
  327. package/package.json +4 -3
@@ -17,574 +17,577 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
17
17
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes
18
18
  */
19
19
  class PrioritySchemesService extends CommonHttpService_1.CommonHttpService {
20
- /**
21
- * Creates a new priority scheme.
22
- *
23
- * **[Permissions](#permissions) required:** *Administer Jira* [global
24
- * permission](https://confluence.atlassian.com/x/x4dKLg).
25
- *
26
- * @returns * status: 201, mediaType: application/json
27
- *
28
- * Returned if the request is completed.
29
- *
30
- * example: {
31
- * "id": "10001"
32
- * }
33
- *
34
- * * status: 202, mediaType: application/json
35
- *
36
- * Returned if the request is accepted.
37
- *
38
- * example: {
39
- * "id": "10001",
40
- * "task": {
41
- * "self": "https://your-domain.atlassian.net/rest/api/3/task/1",
42
- * "id": "1",
43
- * "description": "Task description",
44
- * "status": "COMPLETE",
45
- * "result": "the task result, this may be any JSON",
46
- * "submittedBy": 10000,
47
- * "progress": 100,
48
- * "elapsedRuntime": 156,
49
- * "submitted": 1501708132800,
50
- * "started": 1501708132900,
51
- * "finished": 1501708133000,
52
- * "lastUpdate": 1501708133000
53
- * }
54
- * }
55
- * @path {POST} /rest/api/3/priorityscheme
56
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-post
57
- */
58
- createPriorityScheme({ createPrioritySchemeDetails, }) {
59
- return this.getClientInstance()
60
- .request({
61
- path: "/rest/api/3/priorityscheme",
62
- method: "POST",
63
- headers: {
64
- "Content-Type": "application/json",
65
- },
66
- body: createPrioritySchemeDetails,
67
- })
68
- .then(this.getClientInstance().responseHandler({
69
- 201: {
70
- "application/json": "json",
71
- },
72
- 202: {
73
- "application/json": "json",
74
- },
75
- }))
76
- .then(commonHttpClient.castResponse())
77
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.createPriorityScheme.response"));
78
- }
79
- /**
80
- * Deletes a priority scheme.
81
- *
82
- * This operation is only available for priority schemes without any associated
83
- * projects. Any associated projects must be removed from the priority scheme
84
- * before this operation can be performed.
85
- *
86
- * **[Permissions](#permissions) required:** *Administer Jira* [global
87
- * permission](https://confluence.atlassian.com/x/x4dKLg).
88
- *
89
- * @returns Returned if the request is successful.
90
- * @path {DELETE} /rest/api/3/priorityscheme/{schemeId}
91
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-delete
92
- */
93
- deletePriorityScheme({ schemeId, }) {
94
- return this.getClientInstance()
95
- .request({
96
- path: "/rest/api/3/priorityscheme/{schemeId}",
97
- method: "DELETE",
98
- pathParams: {
99
- schemeId,
100
- },
101
- })
102
- .then(this.getClientInstance().responseHandler({
103
- 204: {
104
- "application/json": "json",
105
- },
106
- }))
107
- .then(commonHttpClient.castResponse())
108
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.deletePriorityScheme.response"))
109
- .then(commonHttpClient.getBody);
110
- }
111
- /**
112
- * Returns a [paginated](#pagination) list of priorities available for adding to a
113
- * priority scheme.
114
- *
115
- * **[Permissions](#permissions) required:** Permission to access Jira.
116
- *
117
- * @returns Returned if the request is successful.
118
- *
119
- * example: {
120
- * "isLast": true,
121
- * "maxResults": 50,
122
- * "startAt": 0,
123
- * "total": 3,
124
- * "values": [
125
- * {
126
- * "description": "Serious problem that could block progress.",
127
- * "iconUrl": "/images/icons/priorities/high.svg",
128
- * "id": "1",
129
- * "isDefault": false,
130
- * "name": "High",
131
- * "statusColor": "#f15C75"
132
- * },
133
- * {
134
- * "description": "Has the potential to affect progress.",
135
- * "iconUrl": "/images/icons/priorities/medium.svg",
136
- * "id": "2",
137
- * "isDefault": true,
138
- * "name": "Medium",
139
- * "statusColor": "#f79232"
140
- * },
141
- * {
142
- * "description": "Minor problem or easily worked around.",
143
- * "iconUrl": "/images/icons/priorities/low.svg",
144
- * "id": "3",
145
- * "isDefault": false,
146
- * "name": "Low",
147
- * "statusColor": "#707070"
148
- * }
149
- * ]
150
- * }
151
- * @path {GET} /rest/api/3/priorityscheme/priorities/available
152
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-priorities-available-get
153
- */
154
- getAvailablePrioritiesByPriorityScheme({ startAt, maxResults, query, schemeId, exclude, }) {
155
- return this.getClientInstance()
156
- .request({
157
- path: "/rest/api/3/priorityscheme/priorities/available",
158
- method: "GET",
159
- query: {
160
- startAt,
161
- maxResults,
162
- query,
163
- schemeId,
164
- exclude,
165
- },
166
- })
167
- .then(this.getClientInstance().responseHandler({
168
- 200: {
169
- "application/json": "json",
170
- },
171
- }))
172
- .then(commonHttpClient.castResponse())
173
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.getAvailablePrioritiesByPriorityScheme.response"))
174
- .then(commonHttpClient.getBody);
175
- }
176
- /**
177
- * Returns a [paginated](#pagination) list of priorities by scheme.
178
- *
179
- * **[Permissions](#permissions) required:** Permission to access Jira.
180
- *
181
- * @returns Returned if the request is successful.
182
- *
183
- * example: {
184
- * "isLast": true,
185
- * "maxResults": 50,
186
- * "startAt": 0,
187
- * "total": 3,
188
- * "values": [
189
- * {
190
- * "description": "Serious problem that could block progress.",
191
- * "iconUrl": "/images/icons/priorities/high.svg",
192
- * "id": "1",
193
- * "isDefault": false,
194
- * "name": "High",
195
- * "statusColor": "#f15C75"
196
- * },
197
- * {
198
- * "description": "Has the potential to affect progress.",
199
- * "iconUrl": "/images/icons/priorities/medium.svg",
200
- * "id": "2",
201
- * "isDefault": true,
202
- * "name": "Medium",
203
- * "statusColor": "#f79232"
204
- * },
205
- * {
206
- * "description": "Minor problem or easily worked around.",
207
- * "iconUrl": "/images/icons/priorities/low.svg",
208
- * "id": "3",
209
- * "isDefault": false,
210
- * "name": "Low",
211
- * "statusColor": "#707070"
212
- * }
213
- * ]
214
- * }
215
- * @path {GET} /rest/api/3/priorityscheme/{schemeId}/priorities
216
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-priorities-get
217
- */
218
- getPrioritiesByPriorityScheme({ schemeId, startAt, maxResults, }) {
219
- return this.getClientInstance()
220
- .request({
221
- path: "/rest/api/3/priorityscheme/{schemeId}/priorities",
222
- method: "GET",
223
- pathParams: {
224
- schemeId,
225
- },
226
- query: {
227
- startAt,
228
- maxResults,
229
- },
230
- })
231
- .then(this.getClientInstance().responseHandler({
232
- 200: {
233
- "application/json": "json",
234
- },
235
- }))
236
- .then(commonHttpClient.castResponse())
237
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.getPrioritiesByPriorityScheme.response"))
238
- .then(commonHttpClient.getBody);
239
- }
240
- /**
241
- * Returns a [paginated](#pagination) list of priority schemes.
242
- *
243
- * **[Permissions](#permissions) required:** Permission to access Jira.
244
- *
245
- * @returns Returned if the request is successful.
246
- *
247
- * example: {
248
- * "isLast": true,
249
- * "maxResults": 50,
250
- * "startAt": 0,
251
- * "total": 1,
252
- * "values": [
253
- * {
254
- * "description": "This is the default scheme used by all new and unassigned
255
- * projects",
256
- * "id": "1",
257
- * "isDefault": true,
258
- * "name": "Default Priority Scheme",
259
- * "priorities": {
260
- * "isLast": true,
261
- * "maxResults": 50,
262
- * "startAt": 0,
263
- * "total": 3,
264
- * "values": [
265
- * {
266
- * "description": "Serious problem that could block progress.",
267
- * "iconUrl": "/images/icons/priorities/high.svg",
268
- * "id": "1",
269
- * "isDefault": false,
270
- * "name": "High",
271
- * "statusColor": "#f15C75"
272
- * },
273
- * {
274
- * "description": "Has the potential to affect progress.",
275
- * "iconUrl": "/images/icons/priorities/medium.svg",
276
- * "id": "2",
277
- * "isDefault": true,
278
- * "name": "Medium",
279
- * "statusColor": "#f79232"
280
- * },
281
- * {
282
- * "description": "Minor problem or easily worked around.",
283
- * "iconUrl": "/images/icons/priorities/low.svg",
284
- * "id": "3",
285
- * "isDefault": false,
286
- * "name": "Low",
287
- * "statusColor": "#707070"
288
- * }
289
- * ]
290
- * },
291
- * "projects": {
292
- * "isLast": true,
293
- * "maxResults": 50,
294
- * "startAt": 0,
295
- * "total": 1,
296
- * "values": [
297
- * {
298
- * "avatarUrls": {
299
- * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
300
- * "24x24": "secure/projectavatar?size=small&pid=10000",
301
- * "32x32": "secure/projectavatar?size=medium&pid=10000",
302
- * "48x48": "secure/projectavatar?size=large&pid=10000"
303
- * },
304
- * "id": "10000",
305
- * "key": "EX",
306
- * "name": "Example",
307
- * "projectCategory": {
308
- * "description": "Project category description",
309
- * "id": "10000",
310
- * "name": "A project category"
311
- * },
312
- * "projectTypeKey": "ProjectTypeKey{key='software'}",
313
- * "self": "project/EX",
314
- * "simplified": false
315
- * }
316
- * ]
317
- * }
318
- * }
319
- * ]
320
- * }
321
- * @path {GET} /rest/api/3/priorityscheme
322
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-get
323
- */
324
- getPrioritySchemes({ startAt, maxResults, priorityId, schemeId, schemeName, onlyDefault, orderBy, expand, } = {}) {
325
- return this.getClientInstance()
326
- .request({
327
- path: "/rest/api/3/priorityscheme",
328
- method: "GET",
329
- query: {
330
- startAt,
331
- maxResults,
332
- priorityId,
333
- schemeId,
334
- schemeName,
335
- onlyDefault,
336
- orderBy,
337
- expand,
338
- },
339
- })
340
- .then(this.getClientInstance().responseHandler({
341
- 200: {
342
- "application/json": "json",
343
- },
344
- }))
345
- .then(commonHttpClient.castResponse())
346
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.getPrioritySchemes.response"))
347
- .then(commonHttpClient.getBody);
348
- }
349
- /**
350
- * Returns a [paginated](#pagination) list of projects by scheme.
351
- *
352
- * **[Permissions](#permissions) required:** Permission to access Jira.
353
- *
354
- * @returns Returned if the request is successful.
355
- *
356
- * example: {
357
- * "isLast": true,
358
- * "maxResults": 50,
359
- * "startAt": 0,
360
- * "total": 1,
361
- * "values": [
362
- * {
363
- * "avatarUrls": {
364
- * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
365
- * "24x24": "secure/projectavatar?size=small&pid=10000",
366
- * "32x32": "secure/projectavatar?size=medium&pid=10000",
367
- * "48x48": "secure/projectavatar?size=large&pid=10000"
368
- * },
369
- * "id": "10000",
370
- * "key": "EX",
371
- * "name": "Example",
372
- * "projectCategory": {
373
- * "description": "Project category description",
374
- * "id": "10000",
375
- * "name": "A project category"
376
- * },
377
- * "projectTypeKey": "ProjectTypeKey{key='software'}",
378
- * "self": "project/EX",
379
- * "simplified": false
380
- * }
381
- * ]
382
- * }
383
- * @path {GET} /rest/api/3/priorityscheme/{schemeId}/projects
384
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-projects-get
385
- */
386
- getProjectsByPriorityScheme({ schemeId, startAt, maxResults, projectId, query, }) {
387
- return this.getClientInstance()
388
- .request({
389
- path: "/rest/api/3/priorityscheme/{schemeId}/projects",
390
- method: "GET",
391
- pathParams: {
392
- schemeId,
393
- },
394
- query: {
395
- startAt,
396
- maxResults,
397
- projectId,
398
- query,
399
- },
400
- })
401
- .then(this.getClientInstance().responseHandler({
402
- 200: {
403
- "application/json": "json",
404
- },
405
- }))
406
- .then(commonHttpClient.castResponse())
407
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.getProjectsByPriorityScheme.response"))
408
- .then(commonHttpClient.getBody);
409
- }
410
- /**
411
- * Returns a [paginated](#pagination) list of priorities that would require
412
- * mapping, given a change in priorities or projects associated with a priority
413
- * scheme.
414
- *
415
- * **[Permissions](#permissions) required:** Permission to access Jira.
416
- *
417
- * @returns Returned if the request is successful.
418
- *
419
- * example: {
420
- * "isLast": true,
421
- * "maxResults": 50,
422
- * "startAt": 0,
423
- * "total": 3,
424
- * "values": [
425
- * {
426
- * "description": "Serious problem that could block progress.",
427
- * "iconUrl": "/images/icons/priorities/high.svg",
428
- * "id": "1",
429
- * "isDefault": false,
430
- * "name": "High",
431
- * "statusColor": "#f15C75"
432
- * },
433
- * {
434
- * "description": "Has the potential to affect progress.",
435
- * "iconUrl": "/images/icons/priorities/medium.svg",
436
- * "id": "2",
437
- * "isDefault": true,
438
- * "name": "Medium",
439
- * "statusColor": "#f79232"
440
- * },
441
- * {
442
- * "description": "Minor problem or easily worked around.",
443
- * "iconUrl": "/images/icons/priorities/low.svg",
444
- * "id": "3",
445
- * "isDefault": false,
446
- * "name": "Low",
447
- * "statusColor": "#707070"
448
- * }
449
- * ]
450
- * }
451
- * @path {POST} /rest/api/3/priorityscheme/mappings
452
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-mappings-post
453
- */
454
- suggestedPrioritiesForMappings({ suggestedMappingsRequestBean, }) {
455
- return this.getClientInstance()
456
- .request({
457
- path: "/rest/api/3/priorityscheme/mappings",
458
- method: "POST",
459
- headers: {
460
- "Content-Type": "application/json",
461
- },
462
- body: suggestedMappingsRequestBean,
463
- })
464
- .then(this.getClientInstance().responseHandler({
465
- 200: {
466
- "application/json": "json",
467
- },
468
- }))
469
- .then(commonHttpClient.castResponse())
470
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.suggestedPrioritiesForMappings.response"))
471
- .then(commonHttpClient.getBody);
472
- }
473
- /**
474
- * Updates a priority scheme. This includes its details, the lists of priorities
475
- * and projects in it
476
- *
477
- * **[Permissions](#permissions) required:** *Administer Jira* [global
478
- * permission](https://confluence.atlassian.com/x/x4dKLg).
479
- *
480
- * @returns Returned if the request is accepted.
481
- *
482
- * example: {
483
- * "task": {
484
- * "self": "https://your-domain.atlassian.net/rest/api/3/task/1",
485
- * "id": "1",
486
- * "description": "Task description",
487
- * "status": "COMPLETE",
488
- * "result": "the task result, this may be any JSON",
489
- * "submittedBy": 10000,
490
- * "progress": 100,
491
- * "elapsedRuntime": 156,
492
- * "submitted": 1501708132800,
493
- * "started": 1501708132900,
494
- * "finished": 1501708133000,
495
- * "lastUpdate": 1501708133000
496
- * },
497
- * "updated": {
498
- * "description": "This is the default scheme used by all new and unassigned
499
- * projects",
500
- * "id": "1",
501
- * "isDefault": true,
502
- * "name": "Default Priority Scheme",
503
- * "priorities": {
504
- * "isLast": true,
505
- * "maxResults": 50,
506
- * "startAt": 0,
507
- * "total": 3,
508
- * "values": [
509
- * {
510
- * "description": "Serious problem that could block progress.",
511
- * "iconUrl": "/images/icons/priorities/high.svg",
512
- * "id": "1",
513
- * "isDefault": false,
514
- * "name": "High",
515
- * "statusColor": "#f15C75"
516
- * },
517
- * {
518
- * "description": "Has the potential to affect progress.",
519
- * "iconUrl": "/images/icons/priorities/medium.svg",
520
- * "id": "2",
521
- * "isDefault": true,
522
- * "name": "Medium",
523
- * "statusColor": "#f79232"
524
- * },
525
- * {
526
- * "description": "Minor problem or easily worked around.",
527
- * "iconUrl": "/images/icons/priorities/low.svg",
528
- * "id": "3",
529
- * "isDefault": false,
530
- * "name": "Low",
531
- * "statusColor": "#707070"
532
- * }
533
- * ]
534
- * },
535
- * "projects": {
536
- * "isLast": true,
537
- * "maxResults": 50,
538
- * "startAt": 0,
539
- * "total": 1,
540
- * "values": [
541
- * {
542
- * "avatarUrls": {
543
- * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
544
- * "24x24": "secure/projectavatar?size=small&pid=10000",
545
- * "32x32": "secure/projectavatar?size=medium&pid=10000",
546
- * "48x48": "secure/projectavatar?size=large&pid=10000"
547
- * },
548
- * "id": "10000",
549
- * "key": "EX",
550
- * "name": "Example",
551
- * "projectCategory": {
552
- * "description": "Project category description",
553
- * "id": "10000",
554
- * "name": "A project category"
555
- * },
556
- * "projectTypeKey": "ProjectTypeKey{key='software'}",
557
- * "self": "project/EX",
558
- * "simplified": false
559
- * }
560
- * ]
561
- * }
562
- * }
563
- * }
564
- * @path {PUT} /rest/api/3/priorityscheme/{schemeId}
565
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-put
566
- */
567
- updatePriorityScheme({ schemeId, updatePrioritySchemeRequestBean, }) {
568
- return this.getClientInstance()
569
- .request({
570
- path: "/rest/api/3/priorityscheme/{schemeId}",
571
- method: "PUT",
572
- pathParams: {
573
- schemeId,
574
- },
575
- headers: {
576
- "Content-Type": "application/json",
577
- },
578
- body: updatePrioritySchemeRequestBean,
579
- })
580
- .then(this.getClientInstance().responseHandler({
581
- 202: {
582
- "application/json": "json",
583
- },
584
- }))
585
- .then(commonHttpClient.castResponse())
586
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.updatePriorityScheme.response"))
587
- .then(commonHttpClient.getBody);
20
+ constructor() {
21
+ super(...arguments);
22
+ /**
23
+ * Creates a new priority scheme.
24
+ *
25
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
26
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
27
+ *
28
+ * @returns * status: 201, mediaType: application/json
29
+ *
30
+ * Returned if the request is completed.
31
+ *
32
+ * example: {
33
+ * "id": "10001"
34
+ * }
35
+ *
36
+ * * status: 202, mediaType: application/json
37
+ *
38
+ * Returned if the request is accepted.
39
+ *
40
+ * example: {
41
+ * "id": "10001",
42
+ * "task": {
43
+ * "self": "https://your-domain.atlassian.net/rest/api/3/task/1",
44
+ * "id": "1",
45
+ * "description": "Task description",
46
+ * "status": "COMPLETE",
47
+ * "result": "the task result, this may be any JSON",
48
+ * "submittedBy": 10000,
49
+ * "progress": 100,
50
+ * "elapsedRuntime": 156,
51
+ * "submitted": 1501708132800,
52
+ * "started": 1501708132900,
53
+ * "finished": 1501708133000,
54
+ * "lastUpdate": 1501708133000
55
+ * }
56
+ * }
57
+ * @path {POST} /rest/api/3/priorityscheme
58
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-post
59
+ */
60
+ this.createPriorityScheme = ({ createPrioritySchemeDetails, }) => {
61
+ return this.getClientInstance()
62
+ .request({
63
+ path: "/rest/api/3/priorityscheme",
64
+ method: "POST",
65
+ headers: {
66
+ "Content-Type": "application/json",
67
+ },
68
+ body: createPrioritySchemeDetails,
69
+ })
70
+ .then(this.getClientInstance().responseHandler({
71
+ 201: {
72
+ "application/json": "json",
73
+ },
74
+ 202: {
75
+ "application/json": "json",
76
+ },
77
+ }))
78
+ .then(commonHttpClient.castResponse())
79
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.createPriorityScheme.response"));
80
+ };
81
+ /**
82
+ * Deletes a priority scheme.
83
+ *
84
+ * This operation is only available for priority schemes without any associated
85
+ * projects. Any associated projects must be removed from the priority scheme
86
+ * before this operation can be performed.
87
+ *
88
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
89
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
90
+ *
91
+ * @returns Returned if the request is successful.
92
+ * @path {DELETE} /rest/api/3/priorityscheme/{schemeId}
93
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-delete
94
+ */
95
+ this.deletePriorityScheme = ({ schemeId, }) => {
96
+ return this.getClientInstance()
97
+ .request({
98
+ path: "/rest/api/3/priorityscheme/{schemeId}",
99
+ method: "DELETE",
100
+ pathParams: {
101
+ schemeId,
102
+ },
103
+ })
104
+ .then(this.getClientInstance().responseHandler({
105
+ 204: {
106
+ "application/json": "json",
107
+ },
108
+ }))
109
+ .then(commonHttpClient.castResponse())
110
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.deletePriorityScheme.response"))
111
+ .then(commonHttpClient.getBody);
112
+ };
113
+ /**
114
+ * Returns a [paginated](#pagination) list of priorities available for adding to a
115
+ * priority scheme.
116
+ *
117
+ * **[Permissions](#permissions) required:** Permission to access Jira.
118
+ *
119
+ * @returns Returned if the request is successful.
120
+ *
121
+ * example: {
122
+ * "isLast": true,
123
+ * "maxResults": 50,
124
+ * "startAt": 0,
125
+ * "total": 3,
126
+ * "values": [
127
+ * {
128
+ * "description": "Serious problem that could block progress.",
129
+ * "iconUrl": "/images/icons/priorities/high.svg",
130
+ * "id": "1",
131
+ * "isDefault": false,
132
+ * "name": "High",
133
+ * "statusColor": "#f15C75"
134
+ * },
135
+ * {
136
+ * "description": "Has the potential to affect progress.",
137
+ * "iconUrl": "/images/icons/priorities/medium.svg",
138
+ * "id": "2",
139
+ * "isDefault": true,
140
+ * "name": "Medium",
141
+ * "statusColor": "#f79232"
142
+ * },
143
+ * {
144
+ * "description": "Minor problem or easily worked around.",
145
+ * "iconUrl": "/images/icons/priorities/low.svg",
146
+ * "id": "3",
147
+ * "isDefault": false,
148
+ * "name": "Low",
149
+ * "statusColor": "#707070"
150
+ * }
151
+ * ]
152
+ * }
153
+ * @path {GET} /rest/api/3/priorityscheme/priorities/available
154
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-priorities-available-get
155
+ */
156
+ this.getAvailablePrioritiesByPriorityScheme = ({ startAt, maxResults, query, schemeId, exclude, }) => {
157
+ return this.getClientInstance()
158
+ .request({
159
+ path: "/rest/api/3/priorityscheme/priorities/available",
160
+ method: "GET",
161
+ query: {
162
+ startAt,
163
+ maxResults,
164
+ query,
165
+ schemeId,
166
+ exclude,
167
+ },
168
+ })
169
+ .then(this.getClientInstance().responseHandler({
170
+ 200: {
171
+ "application/json": "json",
172
+ },
173
+ }))
174
+ .then(commonHttpClient.castResponse())
175
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.getAvailablePrioritiesByPriorityScheme.response"))
176
+ .then(commonHttpClient.getBody);
177
+ };
178
+ /**
179
+ * Returns a [paginated](#pagination) list of priorities by scheme.
180
+ *
181
+ * **[Permissions](#permissions) required:** Permission to access Jira.
182
+ *
183
+ * @returns Returned if the request is successful.
184
+ *
185
+ * example: {
186
+ * "isLast": true,
187
+ * "maxResults": 50,
188
+ * "startAt": 0,
189
+ * "total": 3,
190
+ * "values": [
191
+ * {
192
+ * "description": "Serious problem that could block progress.",
193
+ * "iconUrl": "/images/icons/priorities/high.svg",
194
+ * "id": "1",
195
+ * "isDefault": false,
196
+ * "name": "High",
197
+ * "statusColor": "#f15C75"
198
+ * },
199
+ * {
200
+ * "description": "Has the potential to affect progress.",
201
+ * "iconUrl": "/images/icons/priorities/medium.svg",
202
+ * "id": "2",
203
+ * "isDefault": true,
204
+ * "name": "Medium",
205
+ * "statusColor": "#f79232"
206
+ * },
207
+ * {
208
+ * "description": "Minor problem or easily worked around.",
209
+ * "iconUrl": "/images/icons/priorities/low.svg",
210
+ * "id": "3",
211
+ * "isDefault": false,
212
+ * "name": "Low",
213
+ * "statusColor": "#707070"
214
+ * }
215
+ * ]
216
+ * }
217
+ * @path {GET} /rest/api/3/priorityscheme/{schemeId}/priorities
218
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-priorities-get
219
+ */
220
+ this.getPrioritiesByPriorityScheme = ({ schemeId, startAt, maxResults, }) => {
221
+ return this.getClientInstance()
222
+ .request({
223
+ path: "/rest/api/3/priorityscheme/{schemeId}/priorities",
224
+ method: "GET",
225
+ pathParams: {
226
+ schemeId,
227
+ },
228
+ query: {
229
+ startAt,
230
+ maxResults,
231
+ },
232
+ })
233
+ .then(this.getClientInstance().responseHandler({
234
+ 200: {
235
+ "application/json": "json",
236
+ },
237
+ }))
238
+ .then(commonHttpClient.castResponse())
239
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.getPrioritiesByPriorityScheme.response"))
240
+ .then(commonHttpClient.getBody);
241
+ };
242
+ /**
243
+ * Returns a [paginated](#pagination) list of priority schemes.
244
+ *
245
+ * **[Permissions](#permissions) required:** Permission to access Jira.
246
+ *
247
+ * @returns Returned if the request is successful.
248
+ *
249
+ * example: {
250
+ * "isLast": true,
251
+ * "maxResults": 50,
252
+ * "startAt": 0,
253
+ * "total": 1,
254
+ * "values": [
255
+ * {
256
+ * "description": "This is the default scheme used by all new and unassigned
257
+ * projects",
258
+ * "id": "1",
259
+ * "isDefault": true,
260
+ * "name": "Default Priority Scheme",
261
+ * "priorities": {
262
+ * "isLast": true,
263
+ * "maxResults": 50,
264
+ * "startAt": 0,
265
+ * "total": 3,
266
+ * "values": [
267
+ * {
268
+ * "description": "Serious problem that could block progress.",
269
+ * "iconUrl": "/images/icons/priorities/high.svg",
270
+ * "id": "1",
271
+ * "isDefault": false,
272
+ * "name": "High",
273
+ * "statusColor": "#f15C75"
274
+ * },
275
+ * {
276
+ * "description": "Has the potential to affect progress.",
277
+ * "iconUrl": "/images/icons/priorities/medium.svg",
278
+ * "id": "2",
279
+ * "isDefault": true,
280
+ * "name": "Medium",
281
+ * "statusColor": "#f79232"
282
+ * },
283
+ * {
284
+ * "description": "Minor problem or easily worked around.",
285
+ * "iconUrl": "/images/icons/priorities/low.svg",
286
+ * "id": "3",
287
+ * "isDefault": false,
288
+ * "name": "Low",
289
+ * "statusColor": "#707070"
290
+ * }
291
+ * ]
292
+ * },
293
+ * "projects": {
294
+ * "isLast": true,
295
+ * "maxResults": 50,
296
+ * "startAt": 0,
297
+ * "total": 1,
298
+ * "values": [
299
+ * {
300
+ * "avatarUrls": {
301
+ * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
302
+ * "24x24": "secure/projectavatar?size=small&pid=10000",
303
+ * "32x32": "secure/projectavatar?size=medium&pid=10000",
304
+ * "48x48": "secure/projectavatar?size=large&pid=10000"
305
+ * },
306
+ * "id": "10000",
307
+ * "key": "EX",
308
+ * "name": "Example",
309
+ * "projectCategory": {
310
+ * "description": "Project category description",
311
+ * "id": "10000",
312
+ * "name": "A project category"
313
+ * },
314
+ * "projectTypeKey": "ProjectTypeKey{key='software'}",
315
+ * "self": "project/EX",
316
+ * "simplified": false
317
+ * }
318
+ * ]
319
+ * }
320
+ * }
321
+ * ]
322
+ * }
323
+ * @path {GET} /rest/api/3/priorityscheme
324
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-get
325
+ */
326
+ this.getPrioritySchemes = ({ startAt, maxResults, priorityId, schemeId, schemeName, onlyDefault, orderBy, expand, } = {}) => {
327
+ return this.getClientInstance()
328
+ .request({
329
+ path: "/rest/api/3/priorityscheme",
330
+ method: "GET",
331
+ query: {
332
+ startAt,
333
+ maxResults,
334
+ priorityId,
335
+ schemeId,
336
+ schemeName,
337
+ onlyDefault,
338
+ orderBy,
339
+ expand,
340
+ },
341
+ })
342
+ .then(this.getClientInstance().responseHandler({
343
+ 200: {
344
+ "application/json": "json",
345
+ },
346
+ }))
347
+ .then(commonHttpClient.castResponse())
348
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.getPrioritySchemes.response"))
349
+ .then(commonHttpClient.getBody);
350
+ };
351
+ /**
352
+ * Returns a [paginated](#pagination) list of projects by scheme.
353
+ *
354
+ * **[Permissions](#permissions) required:** Permission to access Jira.
355
+ *
356
+ * @returns Returned if the request is successful.
357
+ *
358
+ * example: {
359
+ * "isLast": true,
360
+ * "maxResults": 50,
361
+ * "startAt": 0,
362
+ * "total": 1,
363
+ * "values": [
364
+ * {
365
+ * "avatarUrls": {
366
+ * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
367
+ * "24x24": "secure/projectavatar?size=small&pid=10000",
368
+ * "32x32": "secure/projectavatar?size=medium&pid=10000",
369
+ * "48x48": "secure/projectavatar?size=large&pid=10000"
370
+ * },
371
+ * "id": "10000",
372
+ * "key": "EX",
373
+ * "name": "Example",
374
+ * "projectCategory": {
375
+ * "description": "Project category description",
376
+ * "id": "10000",
377
+ * "name": "A project category"
378
+ * },
379
+ * "projectTypeKey": "ProjectTypeKey{key='software'}",
380
+ * "self": "project/EX",
381
+ * "simplified": false
382
+ * }
383
+ * ]
384
+ * }
385
+ * @path {GET} /rest/api/3/priorityscheme/{schemeId}/projects
386
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-projects-get
387
+ */
388
+ this.getProjectsByPriorityScheme = ({ schemeId, startAt, maxResults, projectId, query, }) => {
389
+ return this.getClientInstance()
390
+ .request({
391
+ path: "/rest/api/3/priorityscheme/{schemeId}/projects",
392
+ method: "GET",
393
+ pathParams: {
394
+ schemeId,
395
+ },
396
+ query: {
397
+ startAt,
398
+ maxResults,
399
+ projectId,
400
+ query,
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("PrioritySchemesService.getProjectsByPriorityScheme.response"))
410
+ .then(commonHttpClient.getBody);
411
+ };
412
+ /**
413
+ * Returns a [paginated](#pagination) list of priorities that would require
414
+ * mapping, given a change in priorities or projects associated with a priority
415
+ * scheme.
416
+ *
417
+ * **[Permissions](#permissions) required:** Permission to access Jira.
418
+ *
419
+ * @returns Returned if the request is successful.
420
+ *
421
+ * example: {
422
+ * "isLast": true,
423
+ * "maxResults": 50,
424
+ * "startAt": 0,
425
+ * "total": 3,
426
+ * "values": [
427
+ * {
428
+ * "description": "Serious problem that could block progress.",
429
+ * "iconUrl": "/images/icons/priorities/high.svg",
430
+ * "id": "1",
431
+ * "isDefault": false,
432
+ * "name": "High",
433
+ * "statusColor": "#f15C75"
434
+ * },
435
+ * {
436
+ * "description": "Has the potential to affect progress.",
437
+ * "iconUrl": "/images/icons/priorities/medium.svg",
438
+ * "id": "2",
439
+ * "isDefault": true,
440
+ * "name": "Medium",
441
+ * "statusColor": "#f79232"
442
+ * },
443
+ * {
444
+ * "description": "Minor problem or easily worked around.",
445
+ * "iconUrl": "/images/icons/priorities/low.svg",
446
+ * "id": "3",
447
+ * "isDefault": false,
448
+ * "name": "Low",
449
+ * "statusColor": "#707070"
450
+ * }
451
+ * ]
452
+ * }
453
+ * @path {POST} /rest/api/3/priorityscheme/mappings
454
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-mappings-post
455
+ */
456
+ this.suggestedPrioritiesForMappings = ({ suggestedMappingsRequestBean, }) => {
457
+ return this.getClientInstance()
458
+ .request({
459
+ path: "/rest/api/3/priorityscheme/mappings",
460
+ method: "POST",
461
+ headers: {
462
+ "Content-Type": "application/json",
463
+ },
464
+ body: suggestedMappingsRequestBean,
465
+ })
466
+ .then(this.getClientInstance().responseHandler({
467
+ 200: {
468
+ "application/json": "json",
469
+ },
470
+ }))
471
+ .then(commonHttpClient.castResponse())
472
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.suggestedPrioritiesForMappings.response"))
473
+ .then(commonHttpClient.getBody);
474
+ };
475
+ /**
476
+ * Updates a priority scheme. This includes its details, the lists of priorities
477
+ * and projects in it
478
+ *
479
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
480
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
481
+ *
482
+ * @returns Returned if the request is accepted.
483
+ *
484
+ * example: {
485
+ * "task": {
486
+ * "self": "https://your-domain.atlassian.net/rest/api/3/task/1",
487
+ * "id": "1",
488
+ * "description": "Task description",
489
+ * "status": "COMPLETE",
490
+ * "result": "the task result, this may be any JSON",
491
+ * "submittedBy": 10000,
492
+ * "progress": 100,
493
+ * "elapsedRuntime": 156,
494
+ * "submitted": 1501708132800,
495
+ * "started": 1501708132900,
496
+ * "finished": 1501708133000,
497
+ * "lastUpdate": 1501708133000
498
+ * },
499
+ * "updated": {
500
+ * "description": "This is the default scheme used by all new and unassigned
501
+ * projects",
502
+ * "id": "1",
503
+ * "isDefault": true,
504
+ * "name": "Default Priority Scheme",
505
+ * "priorities": {
506
+ * "isLast": true,
507
+ * "maxResults": 50,
508
+ * "startAt": 0,
509
+ * "total": 3,
510
+ * "values": [
511
+ * {
512
+ * "description": "Serious problem that could block progress.",
513
+ * "iconUrl": "/images/icons/priorities/high.svg",
514
+ * "id": "1",
515
+ * "isDefault": false,
516
+ * "name": "High",
517
+ * "statusColor": "#f15C75"
518
+ * },
519
+ * {
520
+ * "description": "Has the potential to affect progress.",
521
+ * "iconUrl": "/images/icons/priorities/medium.svg",
522
+ * "id": "2",
523
+ * "isDefault": true,
524
+ * "name": "Medium",
525
+ * "statusColor": "#f79232"
526
+ * },
527
+ * {
528
+ * "description": "Minor problem or easily worked around.",
529
+ * "iconUrl": "/images/icons/priorities/low.svg",
530
+ * "id": "3",
531
+ * "isDefault": false,
532
+ * "name": "Low",
533
+ * "statusColor": "#707070"
534
+ * }
535
+ * ]
536
+ * },
537
+ * "projects": {
538
+ * "isLast": true,
539
+ * "maxResults": 50,
540
+ * "startAt": 0,
541
+ * "total": 1,
542
+ * "values": [
543
+ * {
544
+ * "avatarUrls": {
545
+ * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
546
+ * "24x24": "secure/projectavatar?size=small&pid=10000",
547
+ * "32x32": "secure/projectavatar?size=medium&pid=10000",
548
+ * "48x48": "secure/projectavatar?size=large&pid=10000"
549
+ * },
550
+ * "id": "10000",
551
+ * "key": "EX",
552
+ * "name": "Example",
553
+ * "projectCategory": {
554
+ * "description": "Project category description",
555
+ * "id": "10000",
556
+ * "name": "A project category"
557
+ * },
558
+ * "projectTypeKey": "ProjectTypeKey{key='software'}",
559
+ * "self": "project/EX",
560
+ * "simplified": false
561
+ * }
562
+ * ]
563
+ * }
564
+ * }
565
+ * }
566
+ * @path {PUT} /rest/api/3/priorityscheme/{schemeId}
567
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-priority-schemes#api-rest-api-3-priorityscheme-schemeid-put
568
+ */
569
+ this.updatePriorityScheme = ({ schemeId, updatePrioritySchemeRequestBean, }) => {
570
+ return this.getClientInstance()
571
+ .request({
572
+ path: "/rest/api/3/priorityscheme/{schemeId}",
573
+ method: "PUT",
574
+ pathParams: {
575
+ schemeId,
576
+ },
577
+ headers: {
578
+ "Content-Type": "application/json",
579
+ },
580
+ body: updatePrioritySchemeRequestBean,
581
+ })
582
+ .then(this.getClientInstance().responseHandler({
583
+ 202: {
584
+ "application/json": "json",
585
+ },
586
+ }))
587
+ .then(commonHttpClient.castResponse())
588
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PrioritySchemesService.updatePriorityScheme.response"))
589
+ .then(commonHttpClient.getBody);
590
+ };
588
591
  }
589
592
  static initialize() {
590
593
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PrioritySchemesService.getPrioritySchemes.response", zod_1.z