@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
@@ -16,692 +16,695 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
16
16
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations
17
17
  */
18
18
  class IssueFieldConfigurationsService extends CommonHttpService_1.CommonHttpService {
19
- /**
20
- * Assigns a field configuration scheme to a project. If the field configuration
21
- * scheme ID is `null`, the operation assigns the default field configuration
22
- * scheme.
23
- *
24
- * Field configuration schemes can only be assigned to classic projects.
25
- *
26
- * **[Permissions](#permissions) required:** *Administer Jira* [global
27
- * permission](https://confluence.atlassian.com/x/x4dKLg).
28
- *
29
- * @returns Returned if the request is successful.
30
- * @path {PUT} /rest/api/3/fieldconfigurationscheme/project
31
- * @scopes-current manage:jira-configuration
32
- * @scopes-beta write:field-configuration-scheme:jira
33
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-project-put
34
- */
35
- assignFieldConfigurationSchemeToProject({ fieldConfigurationSchemeProjectAssociation, }) {
36
- return this.getClientInstance()
37
- .request({
38
- path: "/rest/api/3/fieldconfigurationscheme/project",
39
- method: "PUT",
40
- headers: {
41
- "Content-Type": "application/json",
42
- },
43
- body: fieldConfigurationSchemeProjectAssociation,
44
- })
45
- .then(this.getClientInstance().responseHandler({
46
- 204: {
47
- "application/json": "json",
48
- },
49
- }))
50
- .then(commonHttpClient.castResponse())
51
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.assignFieldConfigurationSchemeToProject.response"))
52
- .then(commonHttpClient.getBody);
53
- }
54
- /**
55
- * Creates a field configuration. The field configuration is created with the same
56
- * field properties as the default configuration, with all the fields being
57
- * optional.
58
- *
59
- * This operation can only create configurations for use in company-managed
60
- * (classic) projects.
61
- *
62
- * **[Permissions](#permissions) required:** *Administer Jira* [global
63
- * permission](https://confluence.atlassian.com/x/x4dKLg).
64
- *
65
- * @returns Returned if the request is successful.
66
- *
67
- * example: {
68
- * "description": "My field configuration description",
69
- * "id": 10001,
70
- * "name": "My Field Configuration"
71
- * }
72
- * @path {POST} /rest/api/3/fieldconfiguration
73
- * @scopes-current manage:jira-configuration
74
- * @scopes-beta read:field-configuration:jira, write:field-configuration:jira
75
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-post
76
- */
77
- createFieldConfiguration({ fieldConfigurationDetails, }) {
78
- return this.getClientInstance()
79
- .request({
80
- path: "/rest/api/3/fieldconfiguration",
81
- method: "POST",
82
- headers: {
83
- "Content-Type": "application/json",
84
- },
85
- body: fieldConfigurationDetails,
86
- })
87
- .then(this.getClientInstance().responseHandler({
88
- 200: {
89
- "application/json": "json",
90
- },
91
- }))
92
- .then(commonHttpClient.castResponse())
93
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.createFieldConfiguration.response"))
94
- .then(commonHttpClient.getBody);
95
- }
96
- /**
97
- * Creates a field configuration scheme.
98
- *
99
- * This operation can only create field configuration schemes used in
100
- * company-managed (classic) projects.
101
- *
102
- * **[Permissions](#permissions) required:** *Administer Jira* [global
103
- * permission](https://confluence.atlassian.com/x/x4dKLg).
104
- *
105
- * @returns Returned if the request is successful.
106
- *
107
- * example: {
108
- * "id": "10002",
109
- * "name": "Field Configuration Scheme for software related projects",
110
- * "description": "We can use this one for software projects."
111
- * }
112
- * @path {POST} /rest/api/3/fieldconfigurationscheme
113
- * @scopes-current manage:jira-configuration
114
- * @scopes-beta write:field-configuration-scheme:jira, read:field-configuration-scheme:jira
115
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-post
116
- */
117
- createFieldConfigurationScheme({ updateFieldConfigurationSchemeDetails, }) {
118
- return this.getClientInstance()
119
- .request({
120
- path: "/rest/api/3/fieldconfigurationscheme",
121
- method: "POST",
122
- headers: {
123
- "Content-Type": "application/json",
124
- },
125
- body: updateFieldConfigurationSchemeDetails,
126
- })
127
- .then(this.getClientInstance().responseHandler({
128
- 201: {
129
- "application/json": "json",
130
- },
131
- }))
132
- .then(commonHttpClient.castResponse())
133
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.createFieldConfigurationScheme.response"))
134
- .then(commonHttpClient.getBody);
135
- }
136
- /**
137
- * Deletes a field configuration.
138
- *
139
- * This operation can only delete configurations used in company-managed (classic)
140
- * projects.
141
- *
142
- * **[Permissions](#permissions) required:** *Administer Jira* [global
143
- * permission](https://confluence.atlassian.com/x/x4dKLg).
144
- *
145
- * @returns Returned if the request is successful.
146
- * @path {DELETE} /rest/api/3/fieldconfiguration/{id}
147
- * @scopes-current manage:jira-configuration
148
- * @scopes-beta delete:field-configuration:jira
149
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-delete
150
- */
151
- deleteFieldConfiguration({ id, }) {
152
- return this.getClientInstance()
153
- .request({
154
- path: "/rest/api/3/fieldconfiguration/{id}",
155
- method: "DELETE",
156
- pathParams: {
157
- id,
158
- },
159
- })
160
- .then(this.getClientInstance().responseHandler({
161
- 204: {
162
- "application/json": "json",
163
- },
164
- }))
165
- .then(commonHttpClient.castResponse())
166
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.deleteFieldConfiguration.response"))
167
- .then(commonHttpClient.getBody);
168
- }
169
- /**
170
- * Deletes a field configuration scheme.
171
- *
172
- * This operation can only delete field configuration schemes used in
173
- * company-managed (classic) projects.
174
- *
175
- * **[Permissions](#permissions) required:** *Administer Jira* [global
176
- * permission](https://confluence.atlassian.com/x/x4dKLg).
177
- *
178
- * @returns Returned if the request is successful.
179
- * @path {DELETE} /rest/api/3/fieldconfigurationscheme/{id}
180
- * @scopes-current manage:jira-configuration
181
- * @scopes-beta delete:field-configuration-scheme:jira
182
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-delete
183
- */
184
- deleteFieldConfigurationScheme({ id, }) {
185
- return this.getClientInstance()
186
- .request({
187
- path: "/rest/api/3/fieldconfigurationscheme/{id}",
188
- method: "DELETE",
189
- pathParams: {
190
- id,
191
- },
192
- })
193
- .then(this.getClientInstance().responseHandler({
194
- 204: {
195
- "application/json": "json",
196
- },
197
- }))
198
- .then(commonHttpClient.castResponse())
199
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.deleteFieldConfigurationScheme.response"))
200
- .then(commonHttpClient.getBody);
201
- }
202
- /**
203
- * Returns a [paginated](#pagination) list of field configurations. The list can
204
- * be for all field configurations or a subset determined by any combination of
205
- * these criteria:
206
- *
207
- * * a list of field configuration item IDs.
208
- * * whether the field configuration is a default.
209
- * * whether the field configuration name or description contains a query string.
210
- *
211
- * Only field configurations used in company-managed (classic) projects are
212
- * returned.
213
- *
214
- * **[Permissions](#permissions) required:** *Administer Jira* [global
215
- * permission](https://confluence.atlassian.com/x/x4dKLg).
216
- *
217
- * @returns Returned if the request is successful.
218
- *
219
- * example: {
220
- * "isLast": true,
221
- * "maxResults": 50,
222
- * "startAt": 0,
223
- * "total": 2,
224
- * "values": [
225
- * {
226
- * "id": 10000,
227
- * "name": "Default Field Configuration",
228
- * "description": "The default field configuration description",
229
- * "isDefault": true
230
- * },
231
- * {
232
- * "id": 10001,
233
- * "name": "My Field Configuration",
234
- * "description": "My field configuration description"
235
- * }
236
- * ]
237
- * }
238
- * @path {GET} /rest/api/3/fieldconfiguration
239
- * @scopes-current manage:jira-configuration
240
- * @scopes-beta read:field-configuration:jira
241
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-get
242
- */
243
- getAllFieldConfigurations({ startAt, maxResults, id, isDefault, query, } = {}) {
244
- return this.getClientInstance()
245
- .request({
246
- path: "/rest/api/3/fieldconfiguration",
247
- method: "GET",
248
- query: {
249
- startAt,
250
- maxResults,
251
- id,
252
- isDefault,
253
- query,
254
- },
255
- })
256
- .then(this.getClientInstance().responseHandler({
257
- 200: {
258
- "application/json": "json",
259
- },
260
- }))
261
- .then(commonHttpClient.castResponse())
262
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getAllFieldConfigurations.response"))
263
- .then(commonHttpClient.getBody);
264
- }
265
- /**
266
- * Returns a [paginated](#pagination) list of field configuration schemes.
267
- *
268
- * Only field configuration schemes used in classic projects are returned.
269
- *
270
- * **[Permissions](#permissions) required:** *Administer Jira* [global
271
- * permission](https://confluence.atlassian.com/x/x4dKLg).
272
- *
273
- * @returns Returned if the request is successful.
274
- *
275
- * example: {
276
- * "isLast": true,
277
- * "maxResults": 10,
278
- * "startAt": 0,
279
- * "total": 3,
280
- * "values": [
281
- * {
282
- * "id": "10000",
283
- * "name": "Field Configuration Scheme for Bugs",
284
- * "description": "This field configuration scheme is for bugs only."
285
- * },
286
- * {
287
- * "id": "10001",
288
- * "name": "Field Configuration Scheme for software related projects",
289
- * "description": "We can use this one for software projects."
290
- * },
291
- * {
292
- * "id": "10002",
293
- * "name": "Field Configuration Scheme for Epics",
294
- * "description": "Use this one for Epic issue type."
295
- * }
296
- * ]
297
- * }
298
- * @path {GET} /rest/api/3/fieldconfigurationscheme
299
- * @scopes-current manage:jira-configuration
300
- * @scopes-beta read:field-configuration-scheme:jira
301
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-get
302
- */
303
- getAllFieldConfigurationSchemes({ startAt, maxResults, id, } = {}) {
304
- return this.getClientInstance()
305
- .request({
306
- path: "/rest/api/3/fieldconfigurationscheme",
307
- method: "GET",
308
- query: {
309
- startAt,
310
- maxResults,
311
- id,
312
- },
313
- })
314
- .then(this.getClientInstance().responseHandler({
315
- 200: {
316
- "application/json": "json",
317
- },
318
- }))
319
- .then(commonHttpClient.castResponse())
320
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getAllFieldConfigurationSchemes.response"))
321
- .then(commonHttpClient.getBody);
322
- }
323
- /**
324
- * Returns a [paginated](#pagination) list of all fields for a configuration.
325
- *
326
- * Only the fields from configurations used in company-managed (classic) projects
327
- * are returned.
328
- *
329
- * **[Permissions](#permissions) required:** *Administer Jira* [global
330
- * permission](https://confluence.atlassian.com/x/x4dKLg).
331
- *
332
- * @returns Returned if the request is successful.
333
- *
334
- * example: {
335
- * "isLast": true,
336
- * "maxResults": 50,
337
- * "startAt": 0,
338
- * "total": 2,
339
- * "values": [
340
- * {
341
- * "description": "For example operating system, software platform and/or
342
- * hardware specifications (include as appropriate for the issue).",
343
- * "id": "environment",
344
- * "isHidden": false,
345
- * "isRequired": false
346
- * },
347
- * {
348
- * "id": "description",
349
- * "isHidden": false,
350
- * "isRequired": false
351
- * }
352
- * ]
353
- * }
354
- * @path {GET} /rest/api/3/fieldconfiguration/{id}/fields
355
- * @scopes-current manage:jira-configuration
356
- * @scopes-beta read:field-configuration:jira
357
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-fields-get
358
- */
359
- getFieldConfigurationItems({ id, startAt, maxResults, }) {
360
- return this.getClientInstance()
361
- .request({
362
- path: "/rest/api/3/fieldconfiguration/{id}/fields",
363
- method: "GET",
364
- pathParams: {
365
- id,
366
- },
367
- query: {
368
- startAt,
369
- maxResults,
370
- },
371
- })
372
- .then(this.getClientInstance().responseHandler({
373
- 200: {
374
- "application/json": "json",
375
- },
376
- }))
377
- .then(commonHttpClient.castResponse())
378
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getFieldConfigurationItems.response"))
379
- .then(commonHttpClient.getBody);
380
- }
381
- /**
382
- * Returns a [paginated](#pagination) list of field configuration issue type items.
383
- *
384
- * Only items used in classic projects are returned.
385
- *
386
- * **[Permissions](#permissions) required:** *Administer Jira* [global
387
- * permission](https://confluence.atlassian.com/x/x4dKLg).
388
- *
389
- * @returns Returned if the request is successful.
390
- *
391
- * example: {
392
- * "isLast": true,
393
- * "maxResults": 100,
394
- * "startAt": 0,
395
- * "total": 5,
396
- * "values": [
397
- * {
398
- * "fieldConfigurationSchemeId": "10020",
399
- * "issueTypeId": "10000",
400
- * "fieldConfigurationId": "10010"
401
- * },
402
- * {
403
- * "fieldConfigurationSchemeId": "10020",
404
- * "issueTypeId": "10001",
405
- * "fieldConfigurationId": "10010"
406
- * },
407
- * {
408
- * "fieldConfigurationSchemeId": "10021",
409
- * "issueTypeId": "10002",
410
- * "fieldConfigurationId": "10000"
411
- * },
412
- * {
413
- * "fieldConfigurationSchemeId": "10022",
414
- * "issueTypeId": "default",
415
- * "fieldConfigurationId": "10011"
416
- * },
417
- * {
418
- * "fieldConfigurationSchemeId": "10023",
419
- * "issueTypeId": "default",
420
- * "fieldConfigurationId": "10000"
421
- * }
422
- * ]
423
- * }
424
- * @path {GET} /rest/api/3/fieldconfigurationscheme/mapping
425
- * @scopes-current manage:jira-configuration
426
- * @scopes-beta read:field-configuration-scheme:jira
427
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-mapping-get
428
- */
429
- getFieldConfigurationSchemeMappings({ startAt, maxResults, fieldConfigurationSchemeId, } = {}) {
430
- return this.getClientInstance()
431
- .request({
432
- path: "/rest/api/3/fieldconfigurationscheme/mapping",
433
- method: "GET",
434
- query: {
435
- startAt,
436
- maxResults,
437
- fieldConfigurationSchemeId,
438
- },
439
- })
440
- .then(this.getClientInstance().responseHandler({
441
- 200: {
442
- "application/json": "json",
443
- },
444
- }))
445
- .then(commonHttpClient.castResponse())
446
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getFieldConfigurationSchemeMappings.response"))
447
- .then(commonHttpClient.getBody);
448
- }
449
- /**
450
- * Returns a [paginated](#pagination) list of field configuration schemes and, for
451
- * each scheme, a list of the projects that use it.
452
- *
453
- * The list is sorted by field configuration scheme ID. The first item contains
454
- * the list of project IDs assigned to the default field configuration scheme.
455
- *
456
- * Only field configuration schemes used in classic projects are returned.
457
- *
458
- * **[Permissions](#permissions) required:** *Administer Jira* [global
459
- * permission](https://confluence.atlassian.com/x/x4dKLg).
460
- *
461
- * @returns Returned if the request is successful.
462
- *
463
- * example: {
464
- * "isLast": true,
465
- * "maxResults": 50,
466
- * "startAt": 0,
467
- * "total": 5,
468
- * "values": [
469
- * {
470
- * "projectIds": [
471
- * "10",
472
- * "11"
473
- * ]
474
- * },
475
- * {
476
- * "fieldConfigurationScheme": {
477
- * "id": "10002",
478
- * "name": "Field Configuration Scheme for software related projects",
479
- * "description": "We can use this one for software projects."
480
- * },
481
- * "projectIds": [
482
- * "12",
483
- * "13",
484
- * "14"
485
- * ]
486
- * }
487
- * ]
488
- * }
489
- * @path {GET} /rest/api/3/fieldconfigurationscheme/project
490
- * @scopes-current manage:jira-configuration
491
- * @scopes-beta read:field-configuration-scheme:jira
492
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-project-get
493
- */
494
- getFieldConfigurationSchemeProjectMapping({ startAt, maxResults, projectId, }) {
495
- return this.getClientInstance()
496
- .request({
497
- path: "/rest/api/3/fieldconfigurationscheme/project",
498
- method: "GET",
499
- query: {
500
- startAt,
501
- maxResults,
502
- projectId,
503
- },
504
- })
505
- .then(this.getClientInstance().responseHandler({
506
- 200: {
507
- "application/json": "json",
508
- },
509
- }))
510
- .then(commonHttpClient.castResponse())
511
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getFieldConfigurationSchemeProjectMapping.response"))
512
- .then(commonHttpClient.getBody);
513
- }
514
- /**
515
- * Removes issue types from the field configuration scheme.
516
- *
517
- * This operation can only modify field configuration schemes used in
518
- * company-managed (classic) projects.
519
- *
520
- * **[Permissions](#permissions) required:** *Administer Jira* [global
521
- * permission](https://confluence.atlassian.com/x/x4dKLg).
522
- *
523
- * @returns Returned if the request is successful.
524
- * @path {POST} /rest/api/3/fieldconfigurationscheme/{id}/mapping/delete
525
- * @scopes-current manage:jira-configuration
526
- * @scopes-beta write:field-configuration-scheme:jira
527
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-mapping-delete-post
528
- */
529
- removeIssueTypesFromGlobalFieldConfigurationScheme({ id, issueTypeIdsToRemove, }) {
530
- return this.getClientInstance()
531
- .request({
532
- path: "/rest/api/3/fieldconfigurationscheme/{id}/mapping/delete",
533
- method: "POST",
534
- pathParams: {
535
- id,
536
- },
537
- headers: {
538
- "Content-Type": "application/json",
539
- },
540
- body: issueTypeIdsToRemove,
541
- })
542
- .then(this.getClientInstance().responseHandler({
543
- 204: {
544
- "application/json": "json",
545
- },
546
- }))
547
- .then(commonHttpClient.castResponse())
548
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.removeIssueTypesFromGlobalFieldConfigurationScheme.response"))
549
- .then(commonHttpClient.getBody);
550
- }
551
- /**
552
- * Assigns issue types to field configurations on field configuration scheme.
553
- *
554
- * This operation can only modify field configuration schemes used in
555
- * company-managed (classic) projects.
556
- *
557
- * **[Permissions](#permissions) required:** *Administer Jira* [global
558
- * permission](https://confluence.atlassian.com/x/x4dKLg).
559
- *
560
- * @returns Returned if the request is successful.
561
- * @path {PUT} /rest/api/3/fieldconfigurationscheme/{id}/mapping
562
- * @scopes-current manage:jira-configuration
563
- * @scopes-beta write:field-configuration-scheme:jira, read:field-configuration-scheme:jira
564
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-mapping-put
565
- */
566
- setFieldConfigurationSchemeMapping({ id, associateFieldConfigurationsWithIssueTypesRequest, }) {
567
- return this.getClientInstance()
568
- .request({
569
- path: "/rest/api/3/fieldconfigurationscheme/{id}/mapping",
570
- method: "PUT",
571
- pathParams: {
572
- id,
573
- },
574
- headers: {
575
- "Content-Type": "application/json",
576
- },
577
- body: associateFieldConfigurationsWithIssueTypesRequest,
578
- })
579
- .then(this.getClientInstance().responseHandler({
580
- 204: {
581
- "application/json": "json",
582
- },
583
- }))
584
- .then(commonHttpClient.castResponse())
585
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.setFieldConfigurationSchemeMapping.response"))
586
- .then(commonHttpClient.getBody);
587
- }
588
- /**
589
- * Updates a field configuration. The name and the description provided in the
590
- * request override the existing values.
591
- *
592
- * This operation can only update configurations used in company-managed (classic)
593
- * projects.
594
- *
595
- * **[Permissions](#permissions) required:** *Administer Jira* [global
596
- * permission](https://confluence.atlassian.com/x/x4dKLg).
597
- *
598
- * @returns Returned if the request is successful.
599
- * @path {PUT} /rest/api/3/fieldconfiguration/{id}
600
- * @scopes-current manage:jira-configuration
601
- * @scopes-beta write:field-configuration:jira
602
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-put
603
- */
604
- updateFieldConfiguration({ id, fieldConfigurationDetails, }) {
605
- return this.getClientInstance()
606
- .request({
607
- path: "/rest/api/3/fieldconfiguration/{id}",
608
- method: "PUT",
609
- pathParams: {
610
- id,
611
- },
612
- headers: {
613
- "Content-Type": "application/json",
614
- },
615
- body: fieldConfigurationDetails,
616
- })
617
- .then(this.getClientInstance().responseHandler({
618
- 204: {
619
- "application/json": "json",
620
- },
621
- }))
622
- .then(commonHttpClient.castResponse())
623
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.updateFieldConfiguration.response"))
624
- .then(commonHttpClient.getBody);
625
- }
626
- /**
627
- * Updates fields in a field configuration. The properties of the field
628
- * configuration fields provided override the existing values.
629
- *
630
- * This operation can only update field configurations used in company-managed
631
- * (classic) projects.
632
- *
633
- * The operation can set the renderer for text fields to the default text renderer
634
- * (`text-renderer`) or wiki style renderer (`wiki-renderer`). However, the
635
- * renderer cannot be updated for fields using the autocomplete renderer
636
- * (`autocomplete-renderer`).
637
- *
638
- * **[Permissions](#permissions) required:** *Administer Jira* [global
639
- * permission](https://confluence.atlassian.com/x/x4dKLg).
640
- *
641
- * @returns Returned if the request is successful.
642
- * @path {PUT} /rest/api/3/fieldconfiguration/{id}/fields
643
- * @scopes-current manage:jira-configuration
644
- * @scopes-beta write:field-configuration:jira
645
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-fields-put
646
- */
647
- updateFieldConfigurationItems({ id, fieldConfigurationItemsDetails, }) {
648
- return this.getClientInstance()
649
- .request({
650
- path: "/rest/api/3/fieldconfiguration/{id}/fields",
651
- method: "PUT",
652
- pathParams: {
653
- id,
654
- },
655
- headers: {
656
- "Content-Type": "application/json",
657
- },
658
- body: fieldConfigurationItemsDetails,
659
- })
660
- .then(this.getClientInstance().responseHandler({
661
- 204: {
662
- "application/json": "json",
663
- },
664
- }))
665
- .then(commonHttpClient.castResponse())
666
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.updateFieldConfigurationItems.response"))
667
- .then(commonHttpClient.getBody);
668
- }
669
- /**
670
- * Updates a field configuration scheme.
671
- *
672
- * This operation can only update field configuration schemes used in
673
- * company-managed (classic) projects.
674
- *
675
- * **[Permissions](#permissions) required:** *Administer Jira* [global
676
- * permission](https://confluence.atlassian.com/x/x4dKLg).
677
- *
678
- * @returns Returned if the request is successful.
679
- * @path {PUT} /rest/api/3/fieldconfigurationscheme/{id}
680
- * @scopes-current manage:jira-configuration
681
- * @scopes-beta write:field-configuration-scheme:jira
682
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-put
683
- */
684
- updateFieldConfigurationScheme({ id, updateFieldConfigurationSchemeDetails, }) {
685
- return this.getClientInstance()
686
- .request({
687
- path: "/rest/api/3/fieldconfigurationscheme/{id}",
688
- method: "PUT",
689
- pathParams: {
690
- id,
691
- },
692
- headers: {
693
- "Content-Type": "application/json",
694
- },
695
- body: updateFieldConfigurationSchemeDetails,
696
- })
697
- .then(this.getClientInstance().responseHandler({
698
- 204: {
699
- "application/json": "json",
700
- },
701
- }))
702
- .then(commonHttpClient.castResponse())
703
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.updateFieldConfigurationScheme.response"))
704
- .then(commonHttpClient.getBody);
19
+ constructor() {
20
+ super(...arguments);
21
+ /**
22
+ * Assigns a field configuration scheme to a project. If the field configuration
23
+ * scheme ID is `null`, the operation assigns the default field configuration
24
+ * scheme.
25
+ *
26
+ * Field configuration schemes can only be assigned to classic projects.
27
+ *
28
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
29
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
30
+ *
31
+ * @returns Returned if the request is successful.
32
+ * @path {PUT} /rest/api/3/fieldconfigurationscheme/project
33
+ * @scopes-current manage:jira-configuration
34
+ * @scopes-beta write:field-configuration-scheme:jira
35
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-project-put
36
+ */
37
+ this.assignFieldConfigurationSchemeToProject = ({ fieldConfigurationSchemeProjectAssociation, }) => {
38
+ return this.getClientInstance()
39
+ .request({
40
+ path: "/rest/api/3/fieldconfigurationscheme/project",
41
+ method: "PUT",
42
+ headers: {
43
+ "Content-Type": "application/json",
44
+ },
45
+ body: fieldConfigurationSchemeProjectAssociation,
46
+ })
47
+ .then(this.getClientInstance().responseHandler({
48
+ 204: {
49
+ "application/json": "json",
50
+ },
51
+ }))
52
+ .then(commonHttpClient.castResponse())
53
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.assignFieldConfigurationSchemeToProject.response"))
54
+ .then(commonHttpClient.getBody);
55
+ };
56
+ /**
57
+ * Creates a field configuration. The field configuration is created with the same
58
+ * field properties as the default configuration, with all the fields being
59
+ * optional.
60
+ *
61
+ * This operation can only create configurations for use in company-managed
62
+ * (classic) projects.
63
+ *
64
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
65
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
66
+ *
67
+ * @returns Returned if the request is successful.
68
+ *
69
+ * example: {
70
+ * "description": "My field configuration description",
71
+ * "id": 10001,
72
+ * "name": "My Field Configuration"
73
+ * }
74
+ * @path {POST} /rest/api/3/fieldconfiguration
75
+ * @scopes-current manage:jira-configuration
76
+ * @scopes-beta read:field-configuration:jira, write:field-configuration:jira
77
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-post
78
+ */
79
+ this.createFieldConfiguration = ({ fieldConfigurationDetails, }) => {
80
+ return this.getClientInstance()
81
+ .request({
82
+ path: "/rest/api/3/fieldconfiguration",
83
+ method: "POST",
84
+ headers: {
85
+ "Content-Type": "application/json",
86
+ },
87
+ body: fieldConfigurationDetails,
88
+ })
89
+ .then(this.getClientInstance().responseHandler({
90
+ 200: {
91
+ "application/json": "json",
92
+ },
93
+ }))
94
+ .then(commonHttpClient.castResponse())
95
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.createFieldConfiguration.response"))
96
+ .then(commonHttpClient.getBody);
97
+ };
98
+ /**
99
+ * Creates a field configuration scheme.
100
+ *
101
+ * This operation can only create field configuration schemes used in
102
+ * company-managed (classic) projects.
103
+ *
104
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
105
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
106
+ *
107
+ * @returns Returned if the request is successful.
108
+ *
109
+ * example: {
110
+ * "id": "10002",
111
+ * "name": "Field Configuration Scheme for software related projects",
112
+ * "description": "We can use this one for software projects."
113
+ * }
114
+ * @path {POST} /rest/api/3/fieldconfigurationscheme
115
+ * @scopes-current manage:jira-configuration
116
+ * @scopes-beta write:field-configuration-scheme:jira, read:field-configuration-scheme:jira
117
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-post
118
+ */
119
+ this.createFieldConfigurationScheme = ({ updateFieldConfigurationSchemeDetails, }) => {
120
+ return this.getClientInstance()
121
+ .request({
122
+ path: "/rest/api/3/fieldconfigurationscheme",
123
+ method: "POST",
124
+ headers: {
125
+ "Content-Type": "application/json",
126
+ },
127
+ body: updateFieldConfigurationSchemeDetails,
128
+ })
129
+ .then(this.getClientInstance().responseHandler({
130
+ 201: {
131
+ "application/json": "json",
132
+ },
133
+ }))
134
+ .then(commonHttpClient.castResponse())
135
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.createFieldConfigurationScheme.response"))
136
+ .then(commonHttpClient.getBody);
137
+ };
138
+ /**
139
+ * Deletes a field configuration.
140
+ *
141
+ * This operation can only delete configurations used in company-managed (classic)
142
+ * projects.
143
+ *
144
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
145
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
146
+ *
147
+ * @returns Returned if the request is successful.
148
+ * @path {DELETE} /rest/api/3/fieldconfiguration/{id}
149
+ * @scopes-current manage:jira-configuration
150
+ * @scopes-beta delete:field-configuration:jira
151
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-delete
152
+ */
153
+ this.deleteFieldConfiguration = ({ id, }) => {
154
+ return this.getClientInstance()
155
+ .request({
156
+ path: "/rest/api/3/fieldconfiguration/{id}",
157
+ method: "DELETE",
158
+ pathParams: {
159
+ id,
160
+ },
161
+ })
162
+ .then(this.getClientInstance().responseHandler({
163
+ 204: {
164
+ "application/json": "json",
165
+ },
166
+ }))
167
+ .then(commonHttpClient.castResponse())
168
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.deleteFieldConfiguration.response"))
169
+ .then(commonHttpClient.getBody);
170
+ };
171
+ /**
172
+ * Deletes a field configuration scheme.
173
+ *
174
+ * This operation can only delete field configuration schemes used in
175
+ * company-managed (classic) projects.
176
+ *
177
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
178
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
179
+ *
180
+ * @returns Returned if the request is successful.
181
+ * @path {DELETE} /rest/api/3/fieldconfigurationscheme/{id}
182
+ * @scopes-current manage:jira-configuration
183
+ * @scopes-beta delete:field-configuration-scheme:jira
184
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-delete
185
+ */
186
+ this.deleteFieldConfigurationScheme = ({ id, }) => {
187
+ return this.getClientInstance()
188
+ .request({
189
+ path: "/rest/api/3/fieldconfigurationscheme/{id}",
190
+ method: "DELETE",
191
+ pathParams: {
192
+ id,
193
+ },
194
+ })
195
+ .then(this.getClientInstance().responseHandler({
196
+ 204: {
197
+ "application/json": "json",
198
+ },
199
+ }))
200
+ .then(commonHttpClient.castResponse())
201
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.deleteFieldConfigurationScheme.response"))
202
+ .then(commonHttpClient.getBody);
203
+ };
204
+ /**
205
+ * Returns a [paginated](#pagination) list of field configurations. The list can
206
+ * be for all field configurations or a subset determined by any combination of
207
+ * these criteria:
208
+ *
209
+ * * a list of field configuration item IDs.
210
+ * * whether the field configuration is a default.
211
+ * * whether the field configuration name or description contains a query string.
212
+ *
213
+ * Only field configurations used in company-managed (classic) projects are
214
+ * returned.
215
+ *
216
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
217
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
218
+ *
219
+ * @returns Returned if the request is successful.
220
+ *
221
+ * example: {
222
+ * "isLast": true,
223
+ * "maxResults": 50,
224
+ * "startAt": 0,
225
+ * "total": 2,
226
+ * "values": [
227
+ * {
228
+ * "id": 10000,
229
+ * "name": "Default Field Configuration",
230
+ * "description": "The default field configuration description",
231
+ * "isDefault": true
232
+ * },
233
+ * {
234
+ * "id": 10001,
235
+ * "name": "My Field Configuration",
236
+ * "description": "My field configuration description"
237
+ * }
238
+ * ]
239
+ * }
240
+ * @path {GET} /rest/api/3/fieldconfiguration
241
+ * @scopes-current manage:jira-configuration
242
+ * @scopes-beta read:field-configuration:jira
243
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-get
244
+ */
245
+ this.getAllFieldConfigurations = ({ startAt, maxResults, id, isDefault, query, } = {}) => {
246
+ return this.getClientInstance()
247
+ .request({
248
+ path: "/rest/api/3/fieldconfiguration",
249
+ method: "GET",
250
+ query: {
251
+ startAt,
252
+ maxResults,
253
+ id,
254
+ isDefault,
255
+ query,
256
+ },
257
+ })
258
+ .then(this.getClientInstance().responseHandler({
259
+ 200: {
260
+ "application/json": "json",
261
+ },
262
+ }))
263
+ .then(commonHttpClient.castResponse())
264
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getAllFieldConfigurations.response"))
265
+ .then(commonHttpClient.getBody);
266
+ };
267
+ /**
268
+ * Returns a [paginated](#pagination) list of field configuration schemes.
269
+ *
270
+ * Only field configuration schemes used in classic projects are returned.
271
+ *
272
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
273
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
274
+ *
275
+ * @returns Returned if the request is successful.
276
+ *
277
+ * example: {
278
+ * "isLast": true,
279
+ * "maxResults": 10,
280
+ * "startAt": 0,
281
+ * "total": 3,
282
+ * "values": [
283
+ * {
284
+ * "id": "10000",
285
+ * "name": "Field Configuration Scheme for Bugs",
286
+ * "description": "This field configuration scheme is for bugs only."
287
+ * },
288
+ * {
289
+ * "id": "10001",
290
+ * "name": "Field Configuration Scheme for software related projects",
291
+ * "description": "We can use this one for software projects."
292
+ * },
293
+ * {
294
+ * "id": "10002",
295
+ * "name": "Field Configuration Scheme for Epics",
296
+ * "description": "Use this one for Epic issue type."
297
+ * }
298
+ * ]
299
+ * }
300
+ * @path {GET} /rest/api/3/fieldconfigurationscheme
301
+ * @scopes-current manage:jira-configuration
302
+ * @scopes-beta read:field-configuration-scheme:jira
303
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-get
304
+ */
305
+ this.getAllFieldConfigurationSchemes = ({ startAt, maxResults, id, } = {}) => {
306
+ return this.getClientInstance()
307
+ .request({
308
+ path: "/rest/api/3/fieldconfigurationscheme",
309
+ method: "GET",
310
+ query: {
311
+ startAt,
312
+ maxResults,
313
+ id,
314
+ },
315
+ })
316
+ .then(this.getClientInstance().responseHandler({
317
+ 200: {
318
+ "application/json": "json",
319
+ },
320
+ }))
321
+ .then(commonHttpClient.castResponse())
322
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getAllFieldConfigurationSchemes.response"))
323
+ .then(commonHttpClient.getBody);
324
+ };
325
+ /**
326
+ * Returns a [paginated](#pagination) list of all fields for a configuration.
327
+ *
328
+ * Only the fields from configurations used in company-managed (classic) projects
329
+ * are returned.
330
+ *
331
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
332
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
333
+ *
334
+ * @returns Returned if the request is successful.
335
+ *
336
+ * example: {
337
+ * "isLast": true,
338
+ * "maxResults": 50,
339
+ * "startAt": 0,
340
+ * "total": 2,
341
+ * "values": [
342
+ * {
343
+ * "description": "For example operating system, software platform and/or
344
+ * hardware specifications (include as appropriate for the issue).",
345
+ * "id": "environment",
346
+ * "isHidden": false,
347
+ * "isRequired": false
348
+ * },
349
+ * {
350
+ * "id": "description",
351
+ * "isHidden": false,
352
+ * "isRequired": false
353
+ * }
354
+ * ]
355
+ * }
356
+ * @path {GET} /rest/api/3/fieldconfiguration/{id}/fields
357
+ * @scopes-current manage:jira-configuration
358
+ * @scopes-beta read:field-configuration:jira
359
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-fields-get
360
+ */
361
+ this.getFieldConfigurationItems = ({ id, startAt, maxResults, }) => {
362
+ return this.getClientInstance()
363
+ .request({
364
+ path: "/rest/api/3/fieldconfiguration/{id}/fields",
365
+ method: "GET",
366
+ pathParams: {
367
+ id,
368
+ },
369
+ query: {
370
+ startAt,
371
+ maxResults,
372
+ },
373
+ })
374
+ .then(this.getClientInstance().responseHandler({
375
+ 200: {
376
+ "application/json": "json",
377
+ },
378
+ }))
379
+ .then(commonHttpClient.castResponse())
380
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getFieldConfigurationItems.response"))
381
+ .then(commonHttpClient.getBody);
382
+ };
383
+ /**
384
+ * Returns a [paginated](#pagination) list of field configuration issue type items.
385
+ *
386
+ * Only items used in classic projects are returned.
387
+ *
388
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
389
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
390
+ *
391
+ * @returns Returned if the request is successful.
392
+ *
393
+ * example: {
394
+ * "isLast": true,
395
+ * "maxResults": 100,
396
+ * "startAt": 0,
397
+ * "total": 5,
398
+ * "values": [
399
+ * {
400
+ * "fieldConfigurationSchemeId": "10020",
401
+ * "issueTypeId": "10000",
402
+ * "fieldConfigurationId": "10010"
403
+ * },
404
+ * {
405
+ * "fieldConfigurationSchemeId": "10020",
406
+ * "issueTypeId": "10001",
407
+ * "fieldConfigurationId": "10010"
408
+ * },
409
+ * {
410
+ * "fieldConfigurationSchemeId": "10021",
411
+ * "issueTypeId": "10002",
412
+ * "fieldConfigurationId": "10000"
413
+ * },
414
+ * {
415
+ * "fieldConfigurationSchemeId": "10022",
416
+ * "issueTypeId": "default",
417
+ * "fieldConfigurationId": "10011"
418
+ * },
419
+ * {
420
+ * "fieldConfigurationSchemeId": "10023",
421
+ * "issueTypeId": "default",
422
+ * "fieldConfigurationId": "10000"
423
+ * }
424
+ * ]
425
+ * }
426
+ * @path {GET} /rest/api/3/fieldconfigurationscheme/mapping
427
+ * @scopes-current manage:jira-configuration
428
+ * @scopes-beta read:field-configuration-scheme:jira
429
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-mapping-get
430
+ */
431
+ this.getFieldConfigurationSchemeMappings = ({ startAt, maxResults, fieldConfigurationSchemeId, } = {}) => {
432
+ return this.getClientInstance()
433
+ .request({
434
+ path: "/rest/api/3/fieldconfigurationscheme/mapping",
435
+ method: "GET",
436
+ query: {
437
+ startAt,
438
+ maxResults,
439
+ fieldConfigurationSchemeId,
440
+ },
441
+ })
442
+ .then(this.getClientInstance().responseHandler({
443
+ 200: {
444
+ "application/json": "json",
445
+ },
446
+ }))
447
+ .then(commonHttpClient.castResponse())
448
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getFieldConfigurationSchemeMappings.response"))
449
+ .then(commonHttpClient.getBody);
450
+ };
451
+ /**
452
+ * Returns a [paginated](#pagination) list of field configuration schemes and, for
453
+ * each scheme, a list of the projects that use it.
454
+ *
455
+ * The list is sorted by field configuration scheme ID. The first item contains
456
+ * the list of project IDs assigned to the default field configuration scheme.
457
+ *
458
+ * Only field configuration schemes used in classic projects are returned.
459
+ *
460
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
461
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
462
+ *
463
+ * @returns Returned if the request is successful.
464
+ *
465
+ * example: {
466
+ * "isLast": true,
467
+ * "maxResults": 50,
468
+ * "startAt": 0,
469
+ * "total": 5,
470
+ * "values": [
471
+ * {
472
+ * "projectIds": [
473
+ * "10",
474
+ * "11"
475
+ * ]
476
+ * },
477
+ * {
478
+ * "fieldConfigurationScheme": {
479
+ * "id": "10002",
480
+ * "name": "Field Configuration Scheme for software related projects",
481
+ * "description": "We can use this one for software projects."
482
+ * },
483
+ * "projectIds": [
484
+ * "12",
485
+ * "13",
486
+ * "14"
487
+ * ]
488
+ * }
489
+ * ]
490
+ * }
491
+ * @path {GET} /rest/api/3/fieldconfigurationscheme/project
492
+ * @scopes-current manage:jira-configuration
493
+ * @scopes-beta read:field-configuration-scheme:jira
494
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-project-get
495
+ */
496
+ this.getFieldConfigurationSchemeProjectMapping = ({ startAt, maxResults, projectId, }) => {
497
+ return this.getClientInstance()
498
+ .request({
499
+ path: "/rest/api/3/fieldconfigurationscheme/project",
500
+ method: "GET",
501
+ query: {
502
+ startAt,
503
+ maxResults,
504
+ projectId,
505
+ },
506
+ })
507
+ .then(this.getClientInstance().responseHandler({
508
+ 200: {
509
+ "application/json": "json",
510
+ },
511
+ }))
512
+ .then(commonHttpClient.castResponse())
513
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.getFieldConfigurationSchemeProjectMapping.response"))
514
+ .then(commonHttpClient.getBody);
515
+ };
516
+ /**
517
+ * Removes issue types from the field configuration scheme.
518
+ *
519
+ * This operation can only modify field configuration schemes used in
520
+ * company-managed (classic) projects.
521
+ *
522
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
523
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
524
+ *
525
+ * @returns Returned if the request is successful.
526
+ * @path {POST} /rest/api/3/fieldconfigurationscheme/{id}/mapping/delete
527
+ * @scopes-current manage:jira-configuration
528
+ * @scopes-beta write:field-configuration-scheme:jira
529
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-mapping-delete-post
530
+ */
531
+ this.removeIssueTypesFromGlobalFieldConfigurationScheme = ({ id, issueTypeIdsToRemove, }) => {
532
+ return this.getClientInstance()
533
+ .request({
534
+ path: "/rest/api/3/fieldconfigurationscheme/{id}/mapping/delete",
535
+ method: "POST",
536
+ pathParams: {
537
+ id,
538
+ },
539
+ headers: {
540
+ "Content-Type": "application/json",
541
+ },
542
+ body: issueTypeIdsToRemove,
543
+ })
544
+ .then(this.getClientInstance().responseHandler({
545
+ 204: {
546
+ "application/json": "json",
547
+ },
548
+ }))
549
+ .then(commonHttpClient.castResponse())
550
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.removeIssueTypesFromGlobalFieldConfigurationScheme.response"))
551
+ .then(commonHttpClient.getBody);
552
+ };
553
+ /**
554
+ * Assigns issue types to field configurations on field configuration scheme.
555
+ *
556
+ * This operation can only modify field configuration schemes used in
557
+ * company-managed (classic) projects.
558
+ *
559
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
560
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
561
+ *
562
+ * @returns Returned if the request is successful.
563
+ * @path {PUT} /rest/api/3/fieldconfigurationscheme/{id}/mapping
564
+ * @scopes-current manage:jira-configuration
565
+ * @scopes-beta write:field-configuration-scheme:jira, read:field-configuration-scheme:jira
566
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-mapping-put
567
+ */
568
+ this.setFieldConfigurationSchemeMapping = ({ id, associateFieldConfigurationsWithIssueTypesRequest, }) => {
569
+ return this.getClientInstance()
570
+ .request({
571
+ path: "/rest/api/3/fieldconfigurationscheme/{id}/mapping",
572
+ method: "PUT",
573
+ pathParams: {
574
+ id,
575
+ },
576
+ headers: {
577
+ "Content-Type": "application/json",
578
+ },
579
+ body: associateFieldConfigurationsWithIssueTypesRequest,
580
+ })
581
+ .then(this.getClientInstance().responseHandler({
582
+ 204: {
583
+ "application/json": "json",
584
+ },
585
+ }))
586
+ .then(commonHttpClient.castResponse())
587
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.setFieldConfigurationSchemeMapping.response"))
588
+ .then(commonHttpClient.getBody);
589
+ };
590
+ /**
591
+ * Updates a field configuration. The name and the description provided in the
592
+ * request override the existing values.
593
+ *
594
+ * This operation can only update configurations used in company-managed (classic)
595
+ * projects.
596
+ *
597
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
598
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
599
+ *
600
+ * @returns Returned if the request is successful.
601
+ * @path {PUT} /rest/api/3/fieldconfiguration/{id}
602
+ * @scopes-current manage:jira-configuration
603
+ * @scopes-beta write:field-configuration:jira
604
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-put
605
+ */
606
+ this.updateFieldConfiguration = ({ id, fieldConfigurationDetails, }) => {
607
+ return this.getClientInstance()
608
+ .request({
609
+ path: "/rest/api/3/fieldconfiguration/{id}",
610
+ method: "PUT",
611
+ pathParams: {
612
+ id,
613
+ },
614
+ headers: {
615
+ "Content-Type": "application/json",
616
+ },
617
+ body: fieldConfigurationDetails,
618
+ })
619
+ .then(this.getClientInstance().responseHandler({
620
+ 204: {
621
+ "application/json": "json",
622
+ },
623
+ }))
624
+ .then(commonHttpClient.castResponse())
625
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.updateFieldConfiguration.response"))
626
+ .then(commonHttpClient.getBody);
627
+ };
628
+ /**
629
+ * Updates fields in a field configuration. The properties of the field
630
+ * configuration fields provided override the existing values.
631
+ *
632
+ * This operation can only update field configurations used in company-managed
633
+ * (classic) projects.
634
+ *
635
+ * The operation can set the renderer for text fields to the default text renderer
636
+ * (`text-renderer`) or wiki style renderer (`wiki-renderer`). However, the
637
+ * renderer cannot be updated for fields using the autocomplete renderer
638
+ * (`autocomplete-renderer`).
639
+ *
640
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
641
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
642
+ *
643
+ * @returns Returned if the request is successful.
644
+ * @path {PUT} /rest/api/3/fieldconfiguration/{id}/fields
645
+ * @scopes-current manage:jira-configuration
646
+ * @scopes-beta write:field-configuration:jira
647
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfiguration-id-fields-put
648
+ */
649
+ this.updateFieldConfigurationItems = ({ id, fieldConfigurationItemsDetails, }) => {
650
+ return this.getClientInstance()
651
+ .request({
652
+ path: "/rest/api/3/fieldconfiguration/{id}/fields",
653
+ method: "PUT",
654
+ pathParams: {
655
+ id,
656
+ },
657
+ headers: {
658
+ "Content-Type": "application/json",
659
+ },
660
+ body: fieldConfigurationItemsDetails,
661
+ })
662
+ .then(this.getClientInstance().responseHandler({
663
+ 204: {
664
+ "application/json": "json",
665
+ },
666
+ }))
667
+ .then(commonHttpClient.castResponse())
668
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.updateFieldConfigurationItems.response"))
669
+ .then(commonHttpClient.getBody);
670
+ };
671
+ /**
672
+ * Updates a field configuration scheme.
673
+ *
674
+ * This operation can only update field configuration schemes used in
675
+ * company-managed (classic) projects.
676
+ *
677
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
678
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
679
+ *
680
+ * @returns Returned if the request is successful.
681
+ * @path {PUT} /rest/api/3/fieldconfigurationscheme/{id}
682
+ * @scopes-current manage:jira-configuration
683
+ * @scopes-beta write:field-configuration-scheme:jira
684
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations#api-rest-api-3-fieldconfigurationscheme-id-put
685
+ */
686
+ this.updateFieldConfigurationScheme = ({ id, updateFieldConfigurationSchemeDetails, }) => {
687
+ return this.getClientInstance()
688
+ .request({
689
+ path: "/rest/api/3/fieldconfigurationscheme/{id}",
690
+ method: "PUT",
691
+ pathParams: {
692
+ id,
693
+ },
694
+ headers: {
695
+ "Content-Type": "application/json",
696
+ },
697
+ body: updateFieldConfigurationSchemeDetails,
698
+ })
699
+ .then(this.getClientInstance().responseHandler({
700
+ 204: {
701
+ "application/json": "json",
702
+ },
703
+ }))
704
+ .then(commonHttpClient.castResponse())
705
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldConfigurationsService.updateFieldConfigurationScheme.response"))
706
+ .then(commonHttpClient.getBody);
707
+ };
705
708
  }
706
709
  static initialize() {
707
710
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueFieldConfigurationsService.getAllFieldConfigurations.response", zod_1.z