@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
@@ -28,864 +28,867 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
28
28
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts
29
29
  */
30
30
  class WorkflowSchemeDraftsService extends CommonHttpService_1.CommonHttpService {
31
- /**
32
- * Create a draft workflow scheme from an active workflow scheme, by copying the
33
- * active workflow scheme. Note that an active workflow scheme can only have one
34
- * draft workflow scheme.
35
- *
36
- * **[Permissions](#permissions) required:** *Administer Jira* [global
37
- * permission](https://confluence.atlassian.com/x/x4dKLg).
38
- *
39
- * @returns Returned if the request is successful.
40
- *
41
- * example: {
42
- * "defaultWorkflow": "scrum workflow",
43
- * "description": "The description of the example workflow scheme.",
44
- * "draft": true,
45
- * "id": 17218781,
46
- * "issueTypeMappings": {
47
- * "10000": "jira",
48
- * "10001": "jira"
49
- * },
50
- * "lastModified": "Today 6:38 PM",
51
- * "lastModifiedUser": {
52
- * "accountId": "5b10a2844c20165700ede21g",
53
- * "accountType": "atlassian",
54
- * "active": true,
55
- * "applicationRoles": {
56
- * "items": [],
57
- * "size": 1
58
- * },
59
- * "avatarUrls": {
60
- * "16x16":
61
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
62
- * "24x24":
63
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
64
- * "32x32":
65
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
66
- * "48x48":
67
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
68
- * },
69
- * "displayName": "Mia Krystof",
70
- * "emailAddress": "mia@example.com",
71
- * "groups": {
72
- * "items": [],
73
- * "size": 3
74
- * },
75
- * "key": "",
76
- * "name": "",
77
- * "self":
78
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
79
- * "timeZone": "Australia/Sydney"
80
- * },
81
- * "name": "Example workflow scheme",
82
- * "originalDefaultWorkflow": "jira",
83
- * "originalIssueTypeMappings": {
84
- * "10001": "builds workflow"
85
- * },
86
- * "self":
87
- * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
88
- * }
89
- * @path {POST} /rest/api/3/workflowscheme/{id}/createdraft
90
- * @scopes-current manage:jira-configuration
91
- * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
92
- * read:screen:jira, read:status:jira, read:user:jira, read:workflow-scheme:jira,
93
- * read:workflow:jira, write:workflow-scheme:jira, read:application-role:jira,
94
- * read:avatar:jira, read:issue-type:jira, read:project-category:jira,
95
- * read:project:jira
96
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-createdraft-post
97
- */
98
- createWorkflowSchemeDraftFromParent({ id, }) {
99
- return this.getClientInstance()
100
- .request({
101
- path: "/rest/api/3/workflowscheme/{id}/createdraft",
102
- method: "POST",
103
- pathParams: {
104
- id,
105
- },
106
- })
107
- .then(this.getClientInstance().responseHandler({
108
- 201: {
109
- "application/json": "json",
110
- },
111
- }))
112
- .then(commonHttpClient.castResponse())
113
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.createWorkflowSchemeDraftFromParent.response"))
114
- .then(commonHttpClient.getBody);
115
- }
116
- /**
117
- * Resets the default workflow for a workflow scheme's draft. That is, the default
118
- * workflow is set to Jira's system workflow (the *jira* workflow).
119
- *
120
- * **[Permissions](#permissions) required:** *Administer Jira* [global
121
- * permission](https://confluence.atlassian.com/x/x4dKLg).
122
- *
123
- * @returns Returned if the request is successful.
124
- *
125
- * example: {
126
- * "defaultWorkflow": "scrum workflow",
127
- * "description": "The description of the example workflow scheme.",
128
- * "draft": true,
129
- * "id": 17218781,
130
- * "issueTypeMappings": {
131
- * "10000": "jira",
132
- * "10001": "jira"
133
- * },
134
- * "lastModified": "Today 6:38 PM",
135
- * "lastModifiedUser": {
136
- * "accountId": "5b10a2844c20165700ede21g",
137
- * "accountType": "atlassian",
138
- * "active": true,
139
- * "applicationRoles": {
140
- * "items": [],
141
- * "size": 1
142
- * },
143
- * "avatarUrls": {
144
- * "16x16":
145
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
146
- * "24x24":
147
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
148
- * "32x32":
149
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
150
- * "48x48":
151
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
152
- * },
153
- * "displayName": "Mia Krystof",
154
- * "emailAddress": "mia@example.com",
155
- * "groups": {
156
- * "items": [],
157
- * "size": 3
158
- * },
159
- * "key": "",
160
- * "name": "",
161
- * "self":
162
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
163
- * "timeZone": "Australia/Sydney"
164
- * },
165
- * "name": "Example workflow scheme",
166
- * "originalDefaultWorkflow": "jira",
167
- * "originalIssueTypeMappings": {
168
- * "10001": "builds workflow"
169
- * },
170
- * "self":
171
- * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
172
- * }
173
- * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft/default
174
- * @scopes-current manage:jira-configuration
175
- * @scopes-beta delete:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
176
- * read:group:jira, read:issue-type:jira, read:project-category:jira,
177
- * read:project:jira, read:user:jira, read:workflow-scheme:jira, read:workflow:jira
178
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-default-delete
179
- */
180
- deleteDraftDefaultWorkflow({ id, }) {
181
- return this.getClientInstance()
182
- .request({
183
- path: "/rest/api/3/workflowscheme/{id}/draft/default",
184
- method: "DELETE",
185
- pathParams: {
186
- id,
187
- },
188
- })
189
- .then(this.getClientInstance().responseHandler({
190
- 200: {
191
- "application/json": "json",
192
- },
193
- }))
194
- .then(commonHttpClient.castResponse())
195
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.deleteDraftDefaultWorkflow.response"))
196
- .then(commonHttpClient.getBody);
197
- }
198
- /**
199
- * Deletes the workflow-issue type mapping for a workflow in a workflow scheme's
200
- * draft.
201
- *
202
- * **[Permissions](#permissions) required:** *Administer Jira* [global
203
- * permission](https://confluence.atlassian.com/x/x4dKLg).
204
- *
205
- * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft/workflow
206
- * @scopes-current manage:jira-configuration
207
- * @scopes-beta delete:workflow-scheme:jira
208
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-workflow-delete
209
- */
210
- deleteDraftWorkflowMapping({ id, workflowName, }) {
211
- return this.getClientInstance()
212
- .request({
213
- path: "/rest/api/3/workflowscheme/{id}/draft/workflow",
214
- method: "DELETE",
215
- pathParams: {
216
- id,
217
- },
218
- query: {
219
- workflowName,
220
- },
221
- })
222
- .then(commonHttpClient.discardResult);
223
- }
224
- /**
225
- * Deletes a draft workflow scheme.
226
- *
227
- * **[Permissions](#permissions) required:** *Administer Jira* [global
228
- * permission](https://confluence.atlassian.com/x/x4dKLg).
229
- *
230
- * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft
231
- * @scopes-current manage:jira-configuration
232
- * @scopes-beta delete:workflow-scheme:jira
233
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-delete
234
- */
235
- deleteWorkflowSchemeDraft({ id, }) {
236
- return this.getClientInstance()
237
- .request({
238
- path: "/rest/api/3/workflowscheme/{id}/draft",
239
- method: "DELETE",
240
- pathParams: {
241
- id,
242
- },
243
- })
244
- .then(commonHttpClient.discardResult);
245
- }
246
- /**
247
- * Deletes the issue type-workflow mapping for an issue type in a workflow
248
- * scheme's draft.
249
- *
250
- * **[Permissions](#permissions) required:** *Administer Jira* [global
251
- * permission](https://confluence.atlassian.com/x/x4dKLg).
252
- *
253
- * @returns Returned if the request is successful.
254
- *
255
- * example: {
256
- * "defaultWorkflow": "scrum workflow",
257
- * "description": "The description of the example workflow scheme.",
258
- * "draft": true,
259
- * "id": 17218781,
260
- * "issueTypeMappings": {
261
- * "10000": "jira",
262
- * "10001": "jira"
263
- * },
264
- * "lastModified": "Today 6:38 PM",
265
- * "lastModifiedUser": {
266
- * "accountId": "5b10a2844c20165700ede21g",
267
- * "accountType": "atlassian",
268
- * "active": true,
269
- * "applicationRoles": {
270
- * "items": [],
271
- * "size": 1
272
- * },
273
- * "avatarUrls": {
274
- * "16x16":
275
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
276
- * "24x24":
277
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
278
- * "32x32":
279
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
280
- * "48x48":
281
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
282
- * },
283
- * "displayName": "Mia Krystof",
284
- * "emailAddress": "mia@example.com",
285
- * "groups": {
286
- * "items": [],
287
- * "size": 3
288
- * },
289
- * "key": "",
290
- * "name": "",
291
- * "self":
292
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
293
- * "timeZone": "Australia/Sydney"
294
- * },
295
- * "name": "Example workflow scheme",
296
- * "originalDefaultWorkflow": "jira",
297
- * "originalIssueTypeMappings": {
298
- * "10001": "builds workflow"
299
- * },
300
- * "self":
301
- * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
302
- * }
303
- * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
304
- * @scopes-current manage:jira-configuration
305
- * @scopes-beta delete:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
306
- * read:group:jira, read:issue-type:jira, read:project-category:jira,
307
- * read:project:jira, read:user:jira, read:workflow-scheme:jira, read:workflow:jira
308
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-issuetype-issuetype-delete
309
- */
310
- deleteWorkflowSchemeDraftIssueType({ id, issueType, }) {
311
- return this.getClientInstance()
312
- .request({
313
- path: "/rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}",
314
- method: "DELETE",
315
- pathParams: {
316
- id,
317
- issueType,
318
- },
319
- })
320
- .then(this.getClientInstance().responseHandler({
321
- 200: {
322
- "application/json": "json",
323
- },
324
- }))
325
- .then(commonHttpClient.castResponse())
326
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.deleteWorkflowSchemeDraftIssueType.response"))
327
- .then(commonHttpClient.getBody);
328
- }
329
- /**
330
- * Returns the default workflow for a workflow scheme's draft. The default
331
- * workflow is the workflow that is assigned any issue types that have not been
332
- * mapped to any other workflow. The default workflow has *All Unassigned Issue
333
- * Types* listed in its issue types for the workflow scheme in Jira.
334
- *
335
- * **[Permissions](#permissions) required:** *Administer Jira* [global
336
- * permission](https://confluence.atlassian.com/x/x4dKLg).
337
- *
338
- * @returns Returned if the request is successful.
339
- *
340
- * example: {
341
- * "workflow": "jira"
342
- * }
343
- * @path {GET} /rest/api/3/workflowscheme/{id}/draft/default
344
- * @scopes-current manage:jira-configuration
345
- * @scopes-beta read:workflow-scheme:jira, read:workflow:jira
346
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-default-get
347
- */
348
- getDraftDefaultWorkflow({ id, }) {
349
- return this.getClientInstance()
350
- .request({
351
- path: "/rest/api/3/workflowscheme/{id}/draft/default",
352
- method: "GET",
353
- pathParams: {
354
- id,
355
- },
356
- })
357
- .then(this.getClientInstance().responseHandler({
358
- 200: {
359
- "application/json": "json",
360
- },
361
- }))
362
- .then(commonHttpClient.castResponse())
363
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.getDraftDefaultWorkflow.response"))
364
- .then(commonHttpClient.getBody);
365
- }
366
- /**
367
- * Returns the workflow-issue type mappings for a workflow scheme's draft.
368
- *
369
- * **[Permissions](#permissions) required:** *Administer Jira* [global
370
- * permission](https://confluence.atlassian.com/x/x4dKLg).
371
- *
372
- * @returns Returned if the request is successful.
373
- *
374
- * example: {
375
- * "defaultMapping": false,
376
- * "issueTypes": [
377
- * "10000",
378
- * "10001"
379
- * ],
380
- * "workflow": "jira"
381
- * }
382
- * @path {GET} /rest/api/3/workflowscheme/{id}/draft/workflow
383
- * @scopes-current manage:jira-configuration
384
- * @scopes-beta read:workflow-scheme:jira, read:workflow:jira, read:issue-type:jira
385
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-workflow-get
386
- */
387
- getDraftWorkflow({ id, workflowName, }) {
388
- return this.getClientInstance()
389
- .request({
390
- path: "/rest/api/3/workflowscheme/{id}/draft/workflow",
391
- method: "GET",
392
- pathParams: {
393
- id,
394
- },
395
- query: {
396
- workflowName,
397
- },
398
- })
399
- .then(this.getClientInstance().responseHandler({
400
- 200: {
401
- "application/json": "json",
402
- },
403
- }))
404
- .then(commonHttpClient.castResponse())
405
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.getDraftWorkflow.response"))
406
- .then(commonHttpClient.getBody);
407
- }
408
- /**
409
- * Returns the draft workflow scheme for an active workflow scheme. Draft workflow
410
- * schemes allow changes to be made to the active workflow schemes: When an active
411
- * workflow scheme is updated, a draft copy is created. The draft is modified,
412
- * then the changes in the draft are copied back to the active workflow scheme.
413
- * See [Configuring workflow schemes](https://confluence.atlassian.com/x/tohKLg)
414
- * for more information.
415
- * Note that:
416
- *
417
- * * Only active workflow schemes can have draft workflow schemes.
418
- * * An active workflow scheme can only have one draft workflow scheme.
419
- *
420
- * **[Permissions](#permissions) required:** *Administer Jira* [global
421
- * permission](https://confluence.atlassian.com/x/x4dKLg).
422
- *
423
- * @returns Returned if the request is successful.
424
- *
425
- * example: {
426
- * "defaultWorkflow": "scrum workflow",
427
- * "description": "The description of the example workflow scheme.",
428
- * "draft": true,
429
- * "id": 17218781,
430
- * "issueTypeMappings": {
431
- * "10000": "jira",
432
- * "10001": "jira"
433
- * },
434
- * "lastModified": "Today 6:38 PM",
435
- * "lastModifiedUser": {
436
- * "accountId": "5b10a2844c20165700ede21g",
437
- * "accountType": "atlassian",
438
- * "active": true,
439
- * "applicationRoles": {
440
- * "items": [],
441
- * "size": 1
442
- * },
443
- * "avatarUrls": {
444
- * "16x16":
445
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
446
- * "24x24":
447
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
448
- * "32x32":
449
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
450
- * "48x48":
451
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
452
- * },
453
- * "displayName": "Mia Krystof",
454
- * "emailAddress": "mia@example.com",
455
- * "groups": {
456
- * "items": [],
457
- * "size": 3
458
- * },
459
- * "key": "",
460
- * "name": "",
461
- * "self":
462
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
463
- * "timeZone": "Australia/Sydney"
464
- * },
465
- * "name": "Example workflow scheme",
466
- * "originalDefaultWorkflow": "jira",
467
- * "originalIssueTypeMappings": {
468
- * "10001": "builds workflow"
469
- * },
470
- * "self":
471
- * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
472
- * }
473
- * @path {GET} /rest/api/3/workflowscheme/{id}/draft
474
- * @scopes-current manage:jira-configuration
475
- * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
476
- * read:screen:jira, read:status:jira, read:user:jira, read:workflow-scheme:jira,
477
- * read:workflow:jira, read:application-role:jira, read:avatar:jira,
478
- * read:issue-type:jira, read:project-category:jira, read:project:jira
479
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-get
480
- */
481
- getWorkflowSchemeDraft({ id, }) {
482
- return this.getClientInstance()
483
- .request({
484
- path: "/rest/api/3/workflowscheme/{id}/draft",
485
- method: "GET",
486
- pathParams: {
487
- id,
488
- },
489
- })
490
- .then(this.getClientInstance().responseHandler({
491
- 200: {
492
- "application/json": "json",
493
- },
494
- }))
495
- .then(commonHttpClient.castResponse())
496
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.getWorkflowSchemeDraft.response"))
497
- .then(commonHttpClient.getBody);
498
- }
499
- /**
500
- * Returns the issue type-workflow mapping for an issue type in a workflow
501
- * scheme's draft.
502
- *
503
- * **[Permissions](#permissions) required:** *Administer Jira* [global
504
- * permission](https://confluence.atlassian.com/x/x4dKLg).
505
- *
506
- * @returns Returned if the request is successful.
507
- *
508
- * example: {
509
- * "issueType": "10000",
510
- * "workflow": "jira"
511
- * }
512
- * @path {GET} /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
513
- * @scopes-current manage:jira-configuration
514
- * @scopes-beta read:workflow-scheme:jira, read:workflow:jira, read:issue-type:jira
515
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-issuetype-issuetype-get
516
- */
517
- getWorkflowSchemeDraftIssueType({ id, issueType, }) {
518
- return this.getClientInstance()
519
- .request({
520
- path: "/rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}",
521
- method: "GET",
522
- pathParams: {
523
- id,
524
- issueType,
525
- },
526
- })
527
- .then(this.getClientInstance().responseHandler({
528
- 200: {
529
- "application/json": "json",
530
- },
531
- }))
532
- .then(commonHttpClient.castResponse())
533
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.getWorkflowSchemeDraftIssueType.response"))
534
- .then(commonHttpClient.getBody);
535
- }
536
- /**
537
- * Publishes a draft workflow scheme.
538
- *
539
- * Where the draft workflow includes new workflow statuses for an issue type,
540
- * mappings are provided to update issues with the original workflow status to the
541
- * new workflow status.
542
- *
543
- * This operation is [asynchronous](#async). Follow the `location` link in the
544
- * response to determine the status of the task and use [Get
545
- * task](#api-rest-api-3-task-taskId-get) to obtain updates.
546
- *
547
- * **[Permissions](#permissions) required:** *Administer Jira* [global
548
- * permission](https://confluence.atlassian.com/x/x4dKLg).
549
- *
550
- * @path {POST} /rest/api/3/workflowscheme/{id}/draft/publish
551
- * @scopes-current manage:jira-configuration
552
- * @scopes-beta write:workflow-scheme:jira
553
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-publish-post
554
- */
555
- publishDraftWorkflowScheme({ id, validateOnly, publishDraftWorkflowScheme, }) {
556
- return this.getClientInstance()
557
- .request({
558
- path: "/rest/api/3/workflowscheme/{id}/draft/publish",
559
- method: "POST",
560
- pathParams: {
561
- id,
562
- },
563
- query: {
564
- validateOnly,
565
- },
566
- headers: {
567
- "Content-Type": "application/json",
568
- },
569
- body: publishDraftWorkflowScheme,
570
- })
571
- .then(commonHttpClient.discardResult);
572
- }
573
- /**
574
- * Sets the workflow for an issue type in a workflow scheme's draft.
575
- *
576
- * **[Permissions](#permissions) required:** *Administer Jira* [global
577
- * permission](https://confluence.atlassian.com/x/x4dKLg).
578
- *
579
- * @returns Returned if the request is successful.
580
- *
581
- * example: {
582
- * "defaultWorkflow": "scrum workflow",
583
- * "description": "The description of the example workflow scheme.",
584
- * "draft": true,
585
- * "id": 17218781,
586
- * "issueTypeMappings": {
587
- * "10000": "jira",
588
- * "10001": "jira"
589
- * },
590
- * "lastModified": "Today 6:38 PM",
591
- * "lastModifiedUser": {
592
- * "accountId": "5b10a2844c20165700ede21g",
593
- * "accountType": "atlassian",
594
- * "active": true,
595
- * "applicationRoles": {
596
- * "items": [],
597
- * "size": 1
598
- * },
599
- * "avatarUrls": {
600
- * "16x16":
601
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
602
- * "24x24":
603
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
604
- * "32x32":
605
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
606
- * "48x48":
607
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
608
- * },
609
- * "displayName": "Mia Krystof",
610
- * "emailAddress": "mia@example.com",
611
- * "groups": {
612
- * "items": [],
613
- * "size": 3
614
- * },
615
- * "key": "",
616
- * "name": "",
617
- * "self":
618
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
619
- * "timeZone": "Australia/Sydney"
620
- * },
621
- * "name": "Example workflow scheme",
622
- * "originalDefaultWorkflow": "jira",
623
- * "originalIssueTypeMappings": {
624
- * "10001": "builds workflow"
625
- * },
626
- * "self":
627
- * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
628
- * }
629
- * @path {PUT} /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
630
- * @scopes-current manage:jira-configuration
631
- * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
632
- * read:application-role:jira, read:avatar:jira, read:group:jira,
633
- * read:issue-type:jira, read:project-category:jira, read:project:jira,
634
- * read:user:jira
635
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-issuetype-issuetype-put
636
- */
637
- setWorkflowSchemeDraftIssueType({ id, issueType, issueTypeWorkflowMapping, }) {
638
- return this.getClientInstance()
639
- .request({
640
- path: "/rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}",
641
- method: "PUT",
642
- pathParams: {
643
- id,
644
- issueType,
645
- },
646
- headers: {
647
- "Content-Type": "application/json",
648
- },
649
- body: issueTypeWorkflowMapping,
650
- })
651
- .then(this.getClientInstance().responseHandler({
652
- 200: {
653
- "application/json": "json",
654
- },
655
- }))
656
- .then(commonHttpClient.castResponse())
657
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.setWorkflowSchemeDraftIssueType.response"))
658
- .then(commonHttpClient.getBody);
659
- }
660
- /**
661
- * Sets the default workflow for a workflow scheme's draft.
662
- *
663
- * **[Permissions](#permissions) required:** *Administer Jira* [global
664
- * permission](https://confluence.atlassian.com/x/x4dKLg).
665
- *
666
- * @returns Returned if the request is successful.
667
- *
668
- * example: {
669
- * "defaultWorkflow": "scrum workflow",
670
- * "description": "The description of the example workflow scheme.",
671
- * "draft": true,
672
- * "id": 17218781,
673
- * "issueTypeMappings": {
674
- * "10000": "jira",
675
- * "10001": "jira"
676
- * },
677
- * "lastModified": "Today 6:38 PM",
678
- * "lastModifiedUser": {
679
- * "accountId": "5b10a2844c20165700ede21g",
680
- * "accountType": "atlassian",
681
- * "active": true,
682
- * "applicationRoles": {
683
- * "items": [],
684
- * "size": 1
685
- * },
686
- * "avatarUrls": {
687
- * "16x16":
688
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
689
- * "24x24":
690
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
691
- * "32x32":
692
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
693
- * "48x48":
694
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
695
- * },
696
- * "displayName": "Mia Krystof",
697
- * "emailAddress": "mia@example.com",
698
- * "groups": {
699
- * "items": [],
700
- * "size": 3
701
- * },
702
- * "key": "",
703
- * "name": "",
704
- * "self":
705
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
706
- * "timeZone": "Australia/Sydney"
707
- * },
708
- * "name": "Example workflow scheme",
709
- * "originalDefaultWorkflow": "jira",
710
- * "originalIssueTypeMappings": {
711
- * "10001": "builds workflow"
712
- * },
713
- * "self":
714
- * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
715
- * }
716
- * @path {PUT} /rest/api/3/workflowscheme/{id}/draft/default
717
- * @scopes-current manage:jira-configuration
718
- * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
719
- * read:application-role:jira, read:avatar:jira, read:group:jira,
720
- * read:issue-type:jira, read:project-category:jira, read:project:jira,
721
- * read:user:jira
722
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-default-put
723
- */
724
- updateDraftDefaultWorkflow({ id, defaultWorkflow, }) {
725
- return this.getClientInstance()
726
- .request({
727
- path: "/rest/api/3/workflowscheme/{id}/draft/default",
728
- method: "PUT",
729
- pathParams: {
730
- id,
731
- },
732
- headers: {
733
- "Content-Type": "application/json",
734
- },
735
- body: defaultWorkflow,
736
- })
737
- .then(this.getClientInstance().responseHandler({
738
- 200: {
739
- "application/json": "json",
740
- },
741
- }))
742
- .then(commonHttpClient.castResponse())
743
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.updateDraftDefaultWorkflow.response"))
744
- .then(commonHttpClient.getBody);
745
- }
746
- /**
747
- * Sets the issue types for a workflow in a workflow scheme's draft. The workflow
748
- * can also be set as the default workflow for the draft workflow scheme. Unmapped
749
- * issues types are mapped to the default workflow.
750
- *
751
- * **[Permissions](#permissions) required:** *Administer Jira* [global
752
- * permission](https://confluence.atlassian.com/x/x4dKLg).
753
- *
754
- * @returns Returned if the request is successful.
755
- *
756
- * example: {
757
- * "defaultWorkflow": "jira",
758
- * "description": "The description of the example workflow scheme.",
759
- * "draft": false,
760
- * "id": 101010,
761
- * "issueTypeMappings": {
762
- * "10000": "scrum workflow",
763
- * "10001": "builds workflow"
764
- * },
765
- * "name": "Example workflow scheme",
766
- * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
767
- * }
768
- * @path {PUT} /rest/api/3/workflowscheme/{id}/draft/workflow
769
- * @scopes-current manage:jira-configuration
770
- * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
771
- * read:application-role:jira, read:avatar:jira, read:group:jira,
772
- * read:issue-type:jira, read:project-category:jira, read:project:jira,
773
- * read:user:jira
774
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-workflow-put
775
- */
776
- updateDraftWorkflowMapping({ id, workflowName, issueTypesWorkflowMapping, }) {
777
- return this.getClientInstance()
778
- .request({
779
- path: "/rest/api/3/workflowscheme/{id}/draft/workflow",
780
- method: "PUT",
781
- pathParams: {
782
- id,
783
- },
784
- query: {
785
- workflowName,
786
- },
787
- headers: {
788
- "Content-Type": "application/json",
789
- },
790
- body: issueTypesWorkflowMapping,
791
- })
792
- .then(this.getClientInstance().responseHandler({
793
- 200: {
794
- "application/json": "json",
795
- },
796
- }))
797
- .then(commonHttpClient.castResponse())
798
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.updateDraftWorkflowMapping.response"))
799
- .then(commonHttpClient.getBody);
800
- }
801
- /**
802
- * Updates a draft workflow scheme. If a draft workflow scheme does not exist for
803
- * the active workflow scheme, then a draft is created. Note that an active
804
- * workflow scheme can only have one draft workflow scheme.
805
- *
806
- * **[Permissions](#permissions) required:** *Administer Jira* [global
807
- * permission](https://confluence.atlassian.com/x/x4dKLg).
808
- *
809
- * @returns Returned if the request is successful.
810
- *
811
- * example: {
812
- * "defaultWorkflow": "scrum workflow",
813
- * "description": "The description of the example workflow scheme.",
814
- * "draft": true,
815
- * "id": 17218781,
816
- * "issueTypeMappings": {
817
- * "10000": "jira",
818
- * "10001": "jira"
819
- * },
820
- * "lastModified": "Today 6:38 PM",
821
- * "lastModifiedUser": {
822
- * "accountId": "5b10a2844c20165700ede21g",
823
- * "accountType": "atlassian",
824
- * "active": true,
825
- * "applicationRoles": {
826
- * "items": [],
827
- * "size": 1
828
- * },
829
- * "avatarUrls": {
830
- * "16x16":
831
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
832
- * "24x24":
833
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
834
- * "32x32":
835
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
836
- * "48x48":
837
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
838
- * },
839
- * "displayName": "Mia Krystof",
840
- * "emailAddress": "mia@example.com",
841
- * "groups": {
842
- * "items": [],
843
- * "size": 3
844
- * },
845
- * "key": "",
846
- * "name": "",
847
- * "self":
848
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
849
- * "timeZone": "Australia/Sydney"
850
- * },
851
- * "name": "Example workflow scheme",
852
- * "originalDefaultWorkflow": "jira",
853
- * "originalIssueTypeMappings": {
854
- * "10001": "builds workflow"
855
- * },
856
- * "self":
857
- * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
858
- * }
859
- * @path {PUT} /rest/api/3/workflowscheme/{id}/draft
860
- * @scopes-current manage:jira-configuration
861
- * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
862
- * read:screen:jira, read:status:jira, read:user:jira, read:workflow-scheme:jira,
863
- * read:workflow:jira, write:workflow-scheme:jira, read:application-role:jira,
864
- * read:avatar:jira, read:issue-type:jira, read:project-category:jira,
865
- * read:project:jira
866
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-put
867
- */
868
- updateWorkflowSchemeDraft({ id, workflowScheme, }) {
869
- return this.getClientInstance()
870
- .request({
871
- path: "/rest/api/3/workflowscheme/{id}/draft",
872
- method: "PUT",
873
- pathParams: {
874
- id,
875
- },
876
- headers: {
877
- "Content-Type": "application/json",
878
- },
879
- body: workflowScheme,
880
- })
881
- .then(this.getClientInstance().responseHandler({
882
- 200: {
883
- "application/json": "json",
884
- },
885
- }))
886
- .then(commonHttpClient.castResponse())
887
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.updateWorkflowSchemeDraft.response"))
888
- .then(commonHttpClient.getBody);
31
+ constructor() {
32
+ super(...arguments);
33
+ /**
34
+ * Create a draft workflow scheme from an active workflow scheme, by copying the
35
+ * active workflow scheme. Note that an active workflow scheme can only have one
36
+ * draft workflow scheme.
37
+ *
38
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
39
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
40
+ *
41
+ * @returns Returned if the request is successful.
42
+ *
43
+ * example: {
44
+ * "defaultWorkflow": "scrum workflow",
45
+ * "description": "The description of the example workflow scheme.",
46
+ * "draft": true,
47
+ * "id": 17218781,
48
+ * "issueTypeMappings": {
49
+ * "10000": "jira",
50
+ * "10001": "jira"
51
+ * },
52
+ * "lastModified": "Today 6:38 PM",
53
+ * "lastModifiedUser": {
54
+ * "accountId": "5b10a2844c20165700ede21g",
55
+ * "accountType": "atlassian",
56
+ * "active": true,
57
+ * "applicationRoles": {
58
+ * "items": [],
59
+ * "size": 1
60
+ * },
61
+ * "avatarUrls": {
62
+ * "16x16":
63
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
64
+ * "24x24":
65
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
66
+ * "32x32":
67
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
68
+ * "48x48":
69
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
70
+ * },
71
+ * "displayName": "Mia Krystof",
72
+ * "emailAddress": "mia@example.com",
73
+ * "groups": {
74
+ * "items": [],
75
+ * "size": 3
76
+ * },
77
+ * "key": "",
78
+ * "name": "",
79
+ * "self":
80
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
81
+ * "timeZone": "Australia/Sydney"
82
+ * },
83
+ * "name": "Example workflow scheme",
84
+ * "originalDefaultWorkflow": "jira",
85
+ * "originalIssueTypeMappings": {
86
+ * "10001": "builds workflow"
87
+ * },
88
+ * "self":
89
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
90
+ * }
91
+ * @path {POST} /rest/api/3/workflowscheme/{id}/createdraft
92
+ * @scopes-current manage:jira-configuration
93
+ * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
94
+ * read:screen:jira, read:status:jira, read:user:jira, read:workflow-scheme:jira,
95
+ * read:workflow:jira, write:workflow-scheme:jira, read:application-role:jira,
96
+ * read:avatar:jira, read:issue-type:jira, read:project-category:jira,
97
+ * read:project:jira
98
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-createdraft-post
99
+ */
100
+ this.createWorkflowSchemeDraftFromParent = ({ id, }) => {
101
+ return this.getClientInstance()
102
+ .request({
103
+ path: "/rest/api/3/workflowscheme/{id}/createdraft",
104
+ method: "POST",
105
+ pathParams: {
106
+ id,
107
+ },
108
+ })
109
+ .then(this.getClientInstance().responseHandler({
110
+ 201: {
111
+ "application/json": "json",
112
+ },
113
+ }))
114
+ .then(commonHttpClient.castResponse())
115
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.createWorkflowSchemeDraftFromParent.response"))
116
+ .then(commonHttpClient.getBody);
117
+ };
118
+ /**
119
+ * Resets the default workflow for a workflow scheme's draft. That is, the default
120
+ * workflow is set to Jira's system workflow (the *jira* workflow).
121
+ *
122
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
123
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
124
+ *
125
+ * @returns Returned if the request is successful.
126
+ *
127
+ * example: {
128
+ * "defaultWorkflow": "scrum workflow",
129
+ * "description": "The description of the example workflow scheme.",
130
+ * "draft": true,
131
+ * "id": 17218781,
132
+ * "issueTypeMappings": {
133
+ * "10000": "jira",
134
+ * "10001": "jira"
135
+ * },
136
+ * "lastModified": "Today 6:38 PM",
137
+ * "lastModifiedUser": {
138
+ * "accountId": "5b10a2844c20165700ede21g",
139
+ * "accountType": "atlassian",
140
+ * "active": true,
141
+ * "applicationRoles": {
142
+ * "items": [],
143
+ * "size": 1
144
+ * },
145
+ * "avatarUrls": {
146
+ * "16x16":
147
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
148
+ * "24x24":
149
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
150
+ * "32x32":
151
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
152
+ * "48x48":
153
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
154
+ * },
155
+ * "displayName": "Mia Krystof",
156
+ * "emailAddress": "mia@example.com",
157
+ * "groups": {
158
+ * "items": [],
159
+ * "size": 3
160
+ * },
161
+ * "key": "",
162
+ * "name": "",
163
+ * "self":
164
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
165
+ * "timeZone": "Australia/Sydney"
166
+ * },
167
+ * "name": "Example workflow scheme",
168
+ * "originalDefaultWorkflow": "jira",
169
+ * "originalIssueTypeMappings": {
170
+ * "10001": "builds workflow"
171
+ * },
172
+ * "self":
173
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
174
+ * }
175
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft/default
176
+ * @scopes-current manage:jira-configuration
177
+ * @scopes-beta delete:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
178
+ * read:group:jira, read:issue-type:jira, read:project-category:jira,
179
+ * read:project:jira, read:user:jira, read:workflow-scheme:jira, read:workflow:jira
180
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-default-delete
181
+ */
182
+ this.deleteDraftDefaultWorkflow = ({ id, }) => {
183
+ return this.getClientInstance()
184
+ .request({
185
+ path: "/rest/api/3/workflowscheme/{id}/draft/default",
186
+ method: "DELETE",
187
+ pathParams: {
188
+ id,
189
+ },
190
+ })
191
+ .then(this.getClientInstance().responseHandler({
192
+ 200: {
193
+ "application/json": "json",
194
+ },
195
+ }))
196
+ .then(commonHttpClient.castResponse())
197
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.deleteDraftDefaultWorkflow.response"))
198
+ .then(commonHttpClient.getBody);
199
+ };
200
+ /**
201
+ * Deletes the workflow-issue type mapping for a workflow in a workflow scheme's
202
+ * draft.
203
+ *
204
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
205
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
206
+ *
207
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft/workflow
208
+ * @scopes-current manage:jira-configuration
209
+ * @scopes-beta delete:workflow-scheme:jira
210
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-workflow-delete
211
+ */
212
+ this.deleteDraftWorkflowMapping = ({ id, workflowName, }) => {
213
+ return this.getClientInstance()
214
+ .request({
215
+ path: "/rest/api/3/workflowscheme/{id}/draft/workflow",
216
+ method: "DELETE",
217
+ pathParams: {
218
+ id,
219
+ },
220
+ query: {
221
+ workflowName,
222
+ },
223
+ })
224
+ .then(commonHttpClient.discardResult);
225
+ };
226
+ /**
227
+ * Deletes a draft workflow scheme.
228
+ *
229
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
230
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
231
+ *
232
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft
233
+ * @scopes-current manage:jira-configuration
234
+ * @scopes-beta delete:workflow-scheme:jira
235
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-delete
236
+ */
237
+ this.deleteWorkflowSchemeDraft = ({ id, }) => {
238
+ return this.getClientInstance()
239
+ .request({
240
+ path: "/rest/api/3/workflowscheme/{id}/draft",
241
+ method: "DELETE",
242
+ pathParams: {
243
+ id,
244
+ },
245
+ })
246
+ .then(commonHttpClient.discardResult);
247
+ };
248
+ /**
249
+ * Deletes the issue type-workflow mapping for an issue type in a workflow
250
+ * scheme's draft.
251
+ *
252
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
253
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
254
+ *
255
+ * @returns Returned if the request is successful.
256
+ *
257
+ * example: {
258
+ * "defaultWorkflow": "scrum workflow",
259
+ * "description": "The description of the example workflow scheme.",
260
+ * "draft": true,
261
+ * "id": 17218781,
262
+ * "issueTypeMappings": {
263
+ * "10000": "jira",
264
+ * "10001": "jira"
265
+ * },
266
+ * "lastModified": "Today 6:38 PM",
267
+ * "lastModifiedUser": {
268
+ * "accountId": "5b10a2844c20165700ede21g",
269
+ * "accountType": "atlassian",
270
+ * "active": true,
271
+ * "applicationRoles": {
272
+ * "items": [],
273
+ * "size": 1
274
+ * },
275
+ * "avatarUrls": {
276
+ * "16x16":
277
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
278
+ * "24x24":
279
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
280
+ * "32x32":
281
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
282
+ * "48x48":
283
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
284
+ * },
285
+ * "displayName": "Mia Krystof",
286
+ * "emailAddress": "mia@example.com",
287
+ * "groups": {
288
+ * "items": [],
289
+ * "size": 3
290
+ * },
291
+ * "key": "",
292
+ * "name": "",
293
+ * "self":
294
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
295
+ * "timeZone": "Australia/Sydney"
296
+ * },
297
+ * "name": "Example workflow scheme",
298
+ * "originalDefaultWorkflow": "jira",
299
+ * "originalIssueTypeMappings": {
300
+ * "10001": "builds workflow"
301
+ * },
302
+ * "self":
303
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
304
+ * }
305
+ * @path {DELETE} /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
306
+ * @scopes-current manage:jira-configuration
307
+ * @scopes-beta delete:workflow-scheme:jira, read:application-role:jira, read:avatar:jira,
308
+ * read:group:jira, read:issue-type:jira, read:project-category:jira,
309
+ * read:project:jira, read:user:jira, read:workflow-scheme:jira, read:workflow:jira
310
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-issuetype-issuetype-delete
311
+ */
312
+ this.deleteWorkflowSchemeDraftIssueType = ({ id, issueType, }) => {
313
+ return this.getClientInstance()
314
+ .request({
315
+ path: "/rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}",
316
+ method: "DELETE",
317
+ pathParams: {
318
+ id,
319
+ issueType,
320
+ },
321
+ })
322
+ .then(this.getClientInstance().responseHandler({
323
+ 200: {
324
+ "application/json": "json",
325
+ },
326
+ }))
327
+ .then(commonHttpClient.castResponse())
328
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.deleteWorkflowSchemeDraftIssueType.response"))
329
+ .then(commonHttpClient.getBody);
330
+ };
331
+ /**
332
+ * Returns the default workflow for a workflow scheme's draft. The default
333
+ * workflow is the workflow that is assigned any issue types that have not been
334
+ * mapped to any other workflow. The default workflow has *All Unassigned Issue
335
+ * Types* listed in its issue types for the workflow scheme in Jira.
336
+ *
337
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
338
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
339
+ *
340
+ * @returns Returned if the request is successful.
341
+ *
342
+ * example: {
343
+ * "workflow": "jira"
344
+ * }
345
+ * @path {GET} /rest/api/3/workflowscheme/{id}/draft/default
346
+ * @scopes-current manage:jira-configuration
347
+ * @scopes-beta read:workflow-scheme:jira, read:workflow:jira
348
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-default-get
349
+ */
350
+ this.getDraftDefaultWorkflow = ({ id, }) => {
351
+ return this.getClientInstance()
352
+ .request({
353
+ path: "/rest/api/3/workflowscheme/{id}/draft/default",
354
+ method: "GET",
355
+ pathParams: {
356
+ id,
357
+ },
358
+ })
359
+ .then(this.getClientInstance().responseHandler({
360
+ 200: {
361
+ "application/json": "json",
362
+ },
363
+ }))
364
+ .then(commonHttpClient.castResponse())
365
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.getDraftDefaultWorkflow.response"))
366
+ .then(commonHttpClient.getBody);
367
+ };
368
+ /**
369
+ * Returns the workflow-issue type mappings for a workflow scheme's draft.
370
+ *
371
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
372
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
373
+ *
374
+ * @returns Returned if the request is successful.
375
+ *
376
+ * example: {
377
+ * "defaultMapping": false,
378
+ * "issueTypes": [
379
+ * "10000",
380
+ * "10001"
381
+ * ],
382
+ * "workflow": "jira"
383
+ * }
384
+ * @path {GET} /rest/api/3/workflowscheme/{id}/draft/workflow
385
+ * @scopes-current manage:jira-configuration
386
+ * @scopes-beta read:workflow-scheme:jira, read:workflow:jira, read:issue-type:jira
387
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-workflow-get
388
+ */
389
+ this.getDraftWorkflow = ({ id, workflowName, }) => {
390
+ return this.getClientInstance()
391
+ .request({
392
+ path: "/rest/api/3/workflowscheme/{id}/draft/workflow",
393
+ method: "GET",
394
+ pathParams: {
395
+ id,
396
+ },
397
+ query: {
398
+ workflowName,
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("WorkflowSchemeDraftsService.getDraftWorkflow.response"))
408
+ .then(commonHttpClient.getBody);
409
+ };
410
+ /**
411
+ * Returns the draft workflow scheme for an active workflow scheme. Draft workflow
412
+ * schemes allow changes to be made to the active workflow schemes: When an active
413
+ * workflow scheme is updated, a draft copy is created. The draft is modified,
414
+ * then the changes in the draft are copied back to the active workflow scheme.
415
+ * See [Configuring workflow schemes](https://confluence.atlassian.com/x/tohKLg)
416
+ * for more information.
417
+ * Note that:
418
+ *
419
+ * * Only active workflow schemes can have draft workflow schemes.
420
+ * * An active workflow scheme can only have one draft workflow scheme.
421
+ *
422
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
423
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
424
+ *
425
+ * @returns Returned if the request is successful.
426
+ *
427
+ * example: {
428
+ * "defaultWorkflow": "scrum workflow",
429
+ * "description": "The description of the example workflow scheme.",
430
+ * "draft": true,
431
+ * "id": 17218781,
432
+ * "issueTypeMappings": {
433
+ * "10000": "jira",
434
+ * "10001": "jira"
435
+ * },
436
+ * "lastModified": "Today 6:38 PM",
437
+ * "lastModifiedUser": {
438
+ * "accountId": "5b10a2844c20165700ede21g",
439
+ * "accountType": "atlassian",
440
+ * "active": true,
441
+ * "applicationRoles": {
442
+ * "items": [],
443
+ * "size": 1
444
+ * },
445
+ * "avatarUrls": {
446
+ * "16x16":
447
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
448
+ * "24x24":
449
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
450
+ * "32x32":
451
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
452
+ * "48x48":
453
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
454
+ * },
455
+ * "displayName": "Mia Krystof",
456
+ * "emailAddress": "mia@example.com",
457
+ * "groups": {
458
+ * "items": [],
459
+ * "size": 3
460
+ * },
461
+ * "key": "",
462
+ * "name": "",
463
+ * "self":
464
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
465
+ * "timeZone": "Australia/Sydney"
466
+ * },
467
+ * "name": "Example workflow scheme",
468
+ * "originalDefaultWorkflow": "jira",
469
+ * "originalIssueTypeMappings": {
470
+ * "10001": "builds workflow"
471
+ * },
472
+ * "self":
473
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
474
+ * }
475
+ * @path {GET} /rest/api/3/workflowscheme/{id}/draft
476
+ * @scopes-current manage:jira-configuration
477
+ * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
478
+ * read:screen:jira, read:status:jira, read:user:jira, read:workflow-scheme:jira,
479
+ * read:workflow:jira, read:application-role:jira, read:avatar:jira,
480
+ * read:issue-type:jira, read:project-category:jira, read:project:jira
481
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-get
482
+ */
483
+ this.getWorkflowSchemeDraft = ({ id, }) => {
484
+ return this.getClientInstance()
485
+ .request({
486
+ path: "/rest/api/3/workflowscheme/{id}/draft",
487
+ method: "GET",
488
+ pathParams: {
489
+ id,
490
+ },
491
+ })
492
+ .then(this.getClientInstance().responseHandler({
493
+ 200: {
494
+ "application/json": "json",
495
+ },
496
+ }))
497
+ .then(commonHttpClient.castResponse())
498
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.getWorkflowSchemeDraft.response"))
499
+ .then(commonHttpClient.getBody);
500
+ };
501
+ /**
502
+ * Returns the issue type-workflow mapping for an issue type in a workflow
503
+ * scheme's draft.
504
+ *
505
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
506
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
507
+ *
508
+ * @returns Returned if the request is successful.
509
+ *
510
+ * example: {
511
+ * "issueType": "10000",
512
+ * "workflow": "jira"
513
+ * }
514
+ * @path {GET} /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
515
+ * @scopes-current manage:jira-configuration
516
+ * @scopes-beta read:workflow-scheme:jira, read:workflow:jira, read:issue-type:jira
517
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-issuetype-issuetype-get
518
+ */
519
+ this.getWorkflowSchemeDraftIssueType = ({ id, issueType, }) => {
520
+ return this.getClientInstance()
521
+ .request({
522
+ path: "/rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}",
523
+ method: "GET",
524
+ pathParams: {
525
+ id,
526
+ issueType,
527
+ },
528
+ })
529
+ .then(this.getClientInstance().responseHandler({
530
+ 200: {
531
+ "application/json": "json",
532
+ },
533
+ }))
534
+ .then(commonHttpClient.castResponse())
535
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.getWorkflowSchemeDraftIssueType.response"))
536
+ .then(commonHttpClient.getBody);
537
+ };
538
+ /**
539
+ * Publishes a draft workflow scheme.
540
+ *
541
+ * Where the draft workflow includes new workflow statuses for an issue type,
542
+ * mappings are provided to update issues with the original workflow status to the
543
+ * new workflow status.
544
+ *
545
+ * This operation is [asynchronous](#async). Follow the `location` link in the
546
+ * response to determine the status of the task and use [Get
547
+ * task](#api-rest-api-3-task-taskId-get) to obtain updates.
548
+ *
549
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
550
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
551
+ *
552
+ * @path {POST} /rest/api/3/workflowscheme/{id}/draft/publish
553
+ * @scopes-current manage:jira-configuration
554
+ * @scopes-beta write:workflow-scheme:jira
555
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-publish-post
556
+ */
557
+ this.publishDraftWorkflowScheme = ({ id, validateOnly, publishDraftWorkflowScheme, }) => {
558
+ return this.getClientInstance()
559
+ .request({
560
+ path: "/rest/api/3/workflowscheme/{id}/draft/publish",
561
+ method: "POST",
562
+ pathParams: {
563
+ id,
564
+ },
565
+ query: {
566
+ validateOnly,
567
+ },
568
+ headers: {
569
+ "Content-Type": "application/json",
570
+ },
571
+ body: publishDraftWorkflowScheme,
572
+ })
573
+ .then(commonHttpClient.discardResult);
574
+ };
575
+ /**
576
+ * Sets the workflow for an issue type in a workflow scheme's draft.
577
+ *
578
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
579
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
580
+ *
581
+ * @returns Returned if the request is successful.
582
+ *
583
+ * example: {
584
+ * "defaultWorkflow": "scrum workflow",
585
+ * "description": "The description of the example workflow scheme.",
586
+ * "draft": true,
587
+ * "id": 17218781,
588
+ * "issueTypeMappings": {
589
+ * "10000": "jira",
590
+ * "10001": "jira"
591
+ * },
592
+ * "lastModified": "Today 6:38 PM",
593
+ * "lastModifiedUser": {
594
+ * "accountId": "5b10a2844c20165700ede21g",
595
+ * "accountType": "atlassian",
596
+ * "active": true,
597
+ * "applicationRoles": {
598
+ * "items": [],
599
+ * "size": 1
600
+ * },
601
+ * "avatarUrls": {
602
+ * "16x16":
603
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
604
+ * "24x24":
605
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
606
+ * "32x32":
607
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
608
+ * "48x48":
609
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
610
+ * },
611
+ * "displayName": "Mia Krystof",
612
+ * "emailAddress": "mia@example.com",
613
+ * "groups": {
614
+ * "items": [],
615
+ * "size": 3
616
+ * },
617
+ * "key": "",
618
+ * "name": "",
619
+ * "self":
620
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
621
+ * "timeZone": "Australia/Sydney"
622
+ * },
623
+ * "name": "Example workflow scheme",
624
+ * "originalDefaultWorkflow": "jira",
625
+ * "originalIssueTypeMappings": {
626
+ * "10001": "builds workflow"
627
+ * },
628
+ * "self":
629
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
630
+ * }
631
+ * @path {PUT} /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
632
+ * @scopes-current manage:jira-configuration
633
+ * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
634
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
635
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
636
+ * read:user:jira
637
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-issuetype-issuetype-put
638
+ */
639
+ this.setWorkflowSchemeDraftIssueType = ({ id, issueType, issueTypeWorkflowMapping, }) => {
640
+ return this.getClientInstance()
641
+ .request({
642
+ path: "/rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}",
643
+ method: "PUT",
644
+ pathParams: {
645
+ id,
646
+ issueType,
647
+ },
648
+ headers: {
649
+ "Content-Type": "application/json",
650
+ },
651
+ body: issueTypeWorkflowMapping,
652
+ })
653
+ .then(this.getClientInstance().responseHandler({
654
+ 200: {
655
+ "application/json": "json",
656
+ },
657
+ }))
658
+ .then(commonHttpClient.castResponse())
659
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.setWorkflowSchemeDraftIssueType.response"))
660
+ .then(commonHttpClient.getBody);
661
+ };
662
+ /**
663
+ * Sets the default workflow for a workflow scheme's draft.
664
+ *
665
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
666
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
667
+ *
668
+ * @returns Returned if the request is successful.
669
+ *
670
+ * example: {
671
+ * "defaultWorkflow": "scrum workflow",
672
+ * "description": "The description of the example workflow scheme.",
673
+ * "draft": true,
674
+ * "id": 17218781,
675
+ * "issueTypeMappings": {
676
+ * "10000": "jira",
677
+ * "10001": "jira"
678
+ * },
679
+ * "lastModified": "Today 6:38 PM",
680
+ * "lastModifiedUser": {
681
+ * "accountId": "5b10a2844c20165700ede21g",
682
+ * "accountType": "atlassian",
683
+ * "active": true,
684
+ * "applicationRoles": {
685
+ * "items": [],
686
+ * "size": 1
687
+ * },
688
+ * "avatarUrls": {
689
+ * "16x16":
690
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
691
+ * "24x24":
692
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
693
+ * "32x32":
694
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
695
+ * "48x48":
696
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
697
+ * },
698
+ * "displayName": "Mia Krystof",
699
+ * "emailAddress": "mia@example.com",
700
+ * "groups": {
701
+ * "items": [],
702
+ * "size": 3
703
+ * },
704
+ * "key": "",
705
+ * "name": "",
706
+ * "self":
707
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
708
+ * "timeZone": "Australia/Sydney"
709
+ * },
710
+ * "name": "Example workflow scheme",
711
+ * "originalDefaultWorkflow": "jira",
712
+ * "originalIssueTypeMappings": {
713
+ * "10001": "builds workflow"
714
+ * },
715
+ * "self":
716
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
717
+ * }
718
+ * @path {PUT} /rest/api/3/workflowscheme/{id}/draft/default
719
+ * @scopes-current manage:jira-configuration
720
+ * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
721
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
722
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
723
+ * read:user:jira
724
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-default-put
725
+ */
726
+ this.updateDraftDefaultWorkflow = ({ id, defaultWorkflow, }) => {
727
+ return this.getClientInstance()
728
+ .request({
729
+ path: "/rest/api/3/workflowscheme/{id}/draft/default",
730
+ method: "PUT",
731
+ pathParams: {
732
+ id,
733
+ },
734
+ headers: {
735
+ "Content-Type": "application/json",
736
+ },
737
+ body: defaultWorkflow,
738
+ })
739
+ .then(this.getClientInstance().responseHandler({
740
+ 200: {
741
+ "application/json": "json",
742
+ },
743
+ }))
744
+ .then(commonHttpClient.castResponse())
745
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.updateDraftDefaultWorkflow.response"))
746
+ .then(commonHttpClient.getBody);
747
+ };
748
+ /**
749
+ * Sets the issue types for a workflow in a workflow scheme's draft. The workflow
750
+ * can also be set as the default workflow for the draft workflow scheme. Unmapped
751
+ * issues types are mapped to the default workflow.
752
+ *
753
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
754
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
755
+ *
756
+ * @returns Returned if the request is successful.
757
+ *
758
+ * example: {
759
+ * "defaultWorkflow": "jira",
760
+ * "description": "The description of the example workflow scheme.",
761
+ * "draft": false,
762
+ * "id": 101010,
763
+ * "issueTypeMappings": {
764
+ * "10000": "scrum workflow",
765
+ * "10001": "builds workflow"
766
+ * },
767
+ * "name": "Example workflow scheme",
768
+ * "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
769
+ * }
770
+ * @path {PUT} /rest/api/3/workflowscheme/{id}/draft/workflow
771
+ * @scopes-current manage:jira-configuration
772
+ * @scopes-beta write:workflow-scheme:jira, read:workflow-scheme:jira, read:workflow:jira,
773
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
774
+ * read:issue-type:jira, read:project-category:jira, read:project:jira,
775
+ * read:user:jira
776
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-workflow-put
777
+ */
778
+ this.updateDraftWorkflowMapping = ({ id, workflowName, issueTypesWorkflowMapping, }) => {
779
+ return this.getClientInstance()
780
+ .request({
781
+ path: "/rest/api/3/workflowscheme/{id}/draft/workflow",
782
+ method: "PUT",
783
+ pathParams: {
784
+ id,
785
+ },
786
+ query: {
787
+ workflowName,
788
+ },
789
+ headers: {
790
+ "Content-Type": "application/json",
791
+ },
792
+ body: issueTypesWorkflowMapping,
793
+ })
794
+ .then(this.getClientInstance().responseHandler({
795
+ 200: {
796
+ "application/json": "json",
797
+ },
798
+ }))
799
+ .then(commonHttpClient.castResponse())
800
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.updateDraftWorkflowMapping.response"))
801
+ .then(commonHttpClient.getBody);
802
+ };
803
+ /**
804
+ * Updates a draft workflow scheme. If a draft workflow scheme does not exist for
805
+ * the active workflow scheme, then a draft is created. Note that an active
806
+ * workflow scheme can only have one draft workflow scheme.
807
+ *
808
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
809
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
810
+ *
811
+ * @returns Returned if the request is successful.
812
+ *
813
+ * example: {
814
+ * "defaultWorkflow": "scrum workflow",
815
+ * "description": "The description of the example workflow scheme.",
816
+ * "draft": true,
817
+ * "id": 17218781,
818
+ * "issueTypeMappings": {
819
+ * "10000": "jira",
820
+ * "10001": "jira"
821
+ * },
822
+ * "lastModified": "Today 6:38 PM",
823
+ * "lastModifiedUser": {
824
+ * "accountId": "5b10a2844c20165700ede21g",
825
+ * "accountType": "atlassian",
826
+ * "active": true,
827
+ * "applicationRoles": {
828
+ * "items": [],
829
+ * "size": 1
830
+ * },
831
+ * "avatarUrls": {
832
+ * "16x16":
833
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
834
+ * "24x24":
835
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
836
+ * "32x32":
837
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
838
+ * "48x48":
839
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
840
+ * },
841
+ * "displayName": "Mia Krystof",
842
+ * "emailAddress": "mia@example.com",
843
+ * "groups": {
844
+ * "items": [],
845
+ * "size": 3
846
+ * },
847
+ * "key": "",
848
+ * "name": "",
849
+ * "self":
850
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
851
+ * "timeZone": "Australia/Sydney"
852
+ * },
853
+ * "name": "Example workflow scheme",
854
+ * "originalDefaultWorkflow": "jira",
855
+ * "originalIssueTypeMappings": {
856
+ * "10001": "builds workflow"
857
+ * },
858
+ * "self":
859
+ * "https://your-domain.atlassian.net/rest/api/3/workflowscheme/17218781/draft"
860
+ * }
861
+ * @path {PUT} /rest/api/3/workflowscheme/{id}/draft
862
+ * @scopes-current manage:jira-configuration
863
+ * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
864
+ * read:screen:jira, read:status:jira, read:user:jira, read:workflow-scheme:jira,
865
+ * read:workflow:jira, write:workflow-scheme:jira, read:application-role:jira,
866
+ * read:avatar:jira, read:issue-type:jira, read:project-category:jira,
867
+ * read:project:jira
868
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-scheme-drafts#api-rest-api-3-workflowscheme-id-draft-put
869
+ */
870
+ this.updateWorkflowSchemeDraft = ({ id, workflowScheme, }) => {
871
+ return this.getClientInstance()
872
+ .request({
873
+ path: "/rest/api/3/workflowscheme/{id}/draft",
874
+ method: "PUT",
875
+ pathParams: {
876
+ id,
877
+ },
878
+ headers: {
879
+ "Content-Type": "application/json",
880
+ },
881
+ body: workflowScheme,
882
+ })
883
+ .then(this.getClientInstance().responseHandler({
884
+ 200: {
885
+ "application/json": "json",
886
+ },
887
+ }))
888
+ .then(commonHttpClient.castResponse())
889
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("WorkflowSchemeDraftsService.updateWorkflowSchemeDraft.response"))
890
+ .then(commonHttpClient.getBody);
891
+ };
889
892
  }
890
893
  static initialize() {
891
894
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("WorkflowSchemeDraftsService.createWorkflowSchemeDraftFromParent.response", zod_1.z