@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,361 +28,364 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
28
28
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options
29
29
  */
30
30
  class IssueCustomFieldOptionsService extends CommonHttpService_1.CommonHttpService {
31
- /**
32
- * Creates options and, where the custom select field is of the type Select List
33
- * (cascading), cascading options for a custom select field. The options are added
34
- * to a context of the field.
35
- *
36
- * The maximum number of options that can be created per request is 1000 and each
37
- * field can have a maximum of 10000 options.
38
- *
39
- * This operation works for custom field options created in Jira or the operations
40
- * from this resource. **To work with issue field select list options created for
41
- * Connect apps use the [Issue custom field options
42
- * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
43
- *
44
- * **[Permissions](#permissions) required:** *Administer Jira* [global
45
- * permission](https://confluence.atlassian.com/x/x4dKLg).
46
- *
47
- * @returns Returned if the request is successful.
48
- *
49
- * example: {
50
- * "options": [
51
- * {
52
- * "disabled": false,
53
- * "id": "10001",
54
- * "value": "Scranton"
55
- * },
56
- * {
57
- * "disabled": true,
58
- * "id": "10002",
59
- * "optionId": "10000",
60
- * "value": "Manhattan"
61
- * },
62
- * {
63
- * "disabled": false,
64
- * "id": "10003",
65
- * "value": "The Electric City"
66
- * }
67
- * ]
68
- * }
69
- * @path {POST} /rest/api/3/field/{fieldId}/context/{contextId}/option
70
- * @scopes-current manage:jira-configuration
71
- * @scopes-beta read:field.option:jira, write:field.option:jira
72
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-post
73
- */
74
- createCustomFieldOption({ fieldId, contextId, bulkCustomFieldOptionCreateRequest, }) {
75
- return this.getClientInstance()
76
- .request({
77
- path: "/rest/api/3/field/{fieldId}/context/{contextId}/option",
78
- method: "POST",
79
- pathParams: {
80
- fieldId,
81
- contextId,
82
- },
83
- headers: {
84
- "Content-Type": "application/json",
85
- },
86
- body: bulkCustomFieldOptionCreateRequest,
87
- })
88
- .then(this.getClientInstance().responseHandler({
89
- 200: {
90
- "application/json": "json",
91
- },
92
- }))
93
- .then(commonHttpClient.castResponse())
94
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.createCustomFieldOption.response"))
95
- .then(commonHttpClient.getBody);
96
- }
97
- /**
98
- * Deletes a custom field option.
99
- *
100
- * Options with cascading options cannot be deleted without deleting the cascading
101
- * options first.
102
- *
103
- * This operation works for custom field options created in Jira or the operations
104
- * from this resource. **To work with issue field select list options created for
105
- * Connect apps use the [Issue custom field options
106
- * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
107
- *
108
- * **[Permissions](#permissions) required:** *Administer Jira* [global
109
- * permission](https://confluence.atlassian.com/x/x4dKLg).
110
- *
111
- * @path {DELETE} /rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}
112
- * @scopes-current manage:jira-configuration
113
- * @scopes-beta delete:field.option:jira
114
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-optionid-delete
115
- */
116
- deleteCustomFieldOption({ fieldId, contextId, optionId, }) {
117
- return this.getClientInstance()
118
- .request({
119
- path: "/rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}",
120
- method: "DELETE",
121
- pathParams: {
122
- fieldId,
123
- contextId,
124
- optionId,
125
- },
126
- })
127
- .then(commonHttpClient.discardResult);
128
- }
129
- /**
130
- * Returns a custom field option. For example, an option in a select list.
131
- *
132
- * Note that this operation **only works for issue field select list options
133
- * created in Jira or using operations from the [Issue custom field
134
- * options](#api-group-Issue-custom-field-options) resource**, it cannot be used
135
- * with issue field select list options created by Connect apps.
136
- *
137
- * This operation can be accessed anonymously.
138
- *
139
- * **[Permissions](#permissions) required:** The custom field option is returned
140
- * as follows:
141
- *
142
- * * if the user has the *Administer Jira* [global
143
- * permission](https://confluence.atlassian.com/x/x4dKLg).
144
- * * if the user has the *Browse projects* [project
145
- * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
146
- * the custom field is used in, and the field is visible in at least one layout
147
- * the user has permission to view.
148
- *
149
- * @returns Returned if the request is successful.
150
- *
151
- * example: {
152
- * "self":
153
- * "https://your-domain.atlassian.net/rest/api/3/customFieldOption/10000",
154
- * "value": "To Do"
155
- * }
156
- * @path {GET} /rest/api/3/customFieldOption/{id}
157
- * @scopes-current read:jira-work
158
- * @scopes-beta read:field:jira, read:field.option:jira
159
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-customfieldoption-id-get
160
- */
161
- getCustomFieldOption({ id, }) {
162
- return this.getClientInstance()
163
- .request({
164
- path: "/rest/api/3/customFieldOption/{id}",
165
- method: "GET",
166
- pathParams: {
167
- id,
168
- },
169
- })
170
- .then(this.getClientInstance().responseHandler({
171
- 200: {
172
- "application/json": "json",
173
- },
174
- }))
175
- .then(commonHttpClient.castResponse())
176
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.getCustomFieldOption.response"))
177
- .then(commonHttpClient.getBody);
178
- }
179
- /**
180
- * Returns a [paginated](#pagination) list of all custom field option for a
181
- * context. Options are returned first then cascading options, in the order they
182
- * display in Jira.
183
- *
184
- * This operation works for custom field options created in Jira or the operations
185
- * from this resource. **To work with issue field select list options created for
186
- * Connect apps use the [Issue custom field options
187
- * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
188
- *
189
- * **[Permissions](#permissions) required:** *Administer Jira* [global
190
- * permission](https://confluence.atlassian.com/x/x4dKLg).
191
- *
192
- * @returns Returned if the request is successful.
193
- *
194
- * example: {
195
- * "isLast": true,
196
- * "maxResults": 100,
197
- * "startAt": 0,
198
- * "total": 4,
199
- * "values": [
200
- * {
201
- * "id": "10001",
202
- * "value": "New York"
203
- * },
204
- * {
205
- * "id": "10002",
206
- * "value": "Boston",
207
- * "disabled": true
208
- * },
209
- * {
210
- * "id": "10004",
211
- * "value": "Denver"
212
- * },
213
- * {
214
- * "id": "10003",
215
- * "value": "Brooklyn",
216
- * "optionId": "10001"
217
- * }
218
- * ]
219
- * }
220
- * @path {GET} /rest/api/3/field/{fieldId}/context/{contextId}/option
221
- * @scopes-current manage:jira-configuration
222
- * @scopes-beta read:field.option:jira
223
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-get
224
- */
225
- getOptionsForContext({ fieldId, contextId, optionId, onlyOptions, startAt, maxResults, }) {
226
- return this.getClientInstance()
227
- .request({
228
- path: "/rest/api/3/field/{fieldId}/context/{contextId}/option",
229
- method: "GET",
230
- pathParams: {
231
- fieldId,
232
- contextId,
233
- },
234
- query: {
235
- optionId,
236
- onlyOptions,
237
- startAt,
238
- maxResults,
239
- },
240
- })
241
- .then(this.getClientInstance().responseHandler({
242
- 200: {
243
- "application/json": "json",
244
- },
245
- }))
246
- .then(commonHttpClient.castResponse())
247
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.getOptionsForContext.response"))
248
- .then(commonHttpClient.getBody);
249
- }
250
- /**
251
- * Changes the order of custom field options or cascading options in a context.
252
- *
253
- * This operation works for custom field options created in Jira or the operations
254
- * from this resource. **To work with issue field select list options created for
255
- * Connect apps use the [Issue custom field options
256
- * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
257
- *
258
- * **[Permissions](#permissions) required:** *Administer Jira* [global
259
- * permission](https://confluence.atlassian.com/x/x4dKLg).
260
- *
261
- * @returns Returned if options are reordered.
262
- * @path {PUT} /rest/api/3/field/{fieldId}/context/{contextId}/option/move
263
- * @scopes-current manage:jira-configuration
264
- * @scopes-beta write:field.option:jira
265
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-move-put
266
- */
267
- reorderCustomFieldOptions({ fieldId, contextId, orderOfCustomFieldOptions, }) {
268
- return this.getClientInstance()
269
- .request({
270
- path: "/rest/api/3/field/{fieldId}/context/{contextId}/option/move",
271
- method: "PUT",
272
- pathParams: {
273
- fieldId,
274
- contextId,
275
- },
276
- headers: {
277
- "Content-Type": "application/json",
278
- },
279
- body: orderOfCustomFieldOptions,
280
- })
281
- .then(this.getClientInstance().responseHandler({
282
- 204: {
283
- "application/json": "json",
284
- },
285
- }))
286
- .then(commonHttpClient.castResponse())
287
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.reorderCustomFieldOptions.response"))
288
- .then(commonHttpClient.getBody);
289
- }
290
- /**
291
- * Replaces the options of a custom field.
292
- *
293
- * Note that this operation **only works for issue field select list options
294
- * created in Jira or using operations from the [Issue custom field
295
- * options](#api-group-Issue-custom-field-options) resource**, it cannot be used
296
- * with issue field select list options created by Connect or Forge apps.
297
- *
298
- * **[Permissions](#permissions) required:** *Administer Jira* [global
299
- * permission](https://confluence.atlassian.com/x/x4dKLg).
300
- *
301
- * @path {DELETE} /rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue
302
- * @scopes-current manage:jira-configuration
303
- * @scopes-beta read:field.option:jira, write:field.option:jira
304
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-optionid-issue-delete
305
- */
306
- replaceCustomFieldOption({ fieldId, optionId, contextId, replaceWith, jql, }) {
307
- return this.getClientInstance()
308
- .request({
309
- path: "/rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue",
310
- method: "DELETE",
311
- pathParams: {
312
- fieldId,
313
- optionId,
314
- contextId,
315
- },
316
- query: {
317
- replaceWith,
318
- jql,
319
- },
320
- })
321
- .then(commonHttpClient.discardResult);
322
- }
323
- /**
324
- * Updates the options of a custom field.
325
- *
326
- * If any of the options are not found, no options are updated. Options where the
327
- * values in the request match the current values aren't updated and aren't
328
- * reported in the response.
329
- *
330
- * Note that this operation **only works for issue field select list options
331
- * created in Jira or using operations from the [Issue custom field
332
- * options](#api-group-Issue-custom-field-options) resource**, it cannot be used
333
- * with issue field select list options created by Connect apps.
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
- * "options": [
342
- * {
343
- * "disabled": false,
344
- * "id": "10001",
345
- * "value": "Scranton"
346
- * },
347
- * {
348
- * "disabled": true,
349
- * "id": "10002",
350
- * "value": "Manhattan"
351
- * },
352
- * {
353
- * "disabled": false,
354
- * "id": "10003",
355
- * "value": "The Electric City"
356
- * }
357
- * ]
358
- * }
359
- * @path {PUT} /rest/api/3/field/{fieldId}/context/{contextId}/option
360
- * @scopes-current manage:jira-configuration
361
- * @scopes-beta read:field.option:jira, write:field.option:jira
362
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-put
363
- */
364
- updateCustomFieldOption({ fieldId, contextId, bulkCustomFieldOptionUpdateRequest, }) {
365
- return this.getClientInstance()
366
- .request({
367
- path: "/rest/api/3/field/{fieldId}/context/{contextId}/option",
368
- method: "PUT",
369
- pathParams: {
370
- fieldId,
371
- contextId,
372
- },
373
- headers: {
374
- "Content-Type": "application/json",
375
- },
376
- body: bulkCustomFieldOptionUpdateRequest,
377
- })
378
- .then(this.getClientInstance().responseHandler({
379
- 200: {
380
- "application/json": "json",
381
- },
382
- }))
383
- .then(commonHttpClient.castResponse())
384
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.updateCustomFieldOption.response"))
385
- .then(commonHttpClient.getBody);
31
+ constructor() {
32
+ super(...arguments);
33
+ /**
34
+ * Creates options and, where the custom select field is of the type Select List
35
+ * (cascading), cascading options for a custom select field. The options are added
36
+ * to a context of the field.
37
+ *
38
+ * The maximum number of options that can be created per request is 1000 and each
39
+ * field can have a maximum of 10000 options.
40
+ *
41
+ * This operation works for custom field options created in Jira or the operations
42
+ * from this resource. **To work with issue field select list options created for
43
+ * Connect apps use the [Issue custom field options
44
+ * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
45
+ *
46
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
47
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
48
+ *
49
+ * @returns Returned if the request is successful.
50
+ *
51
+ * example: {
52
+ * "options": [
53
+ * {
54
+ * "disabled": false,
55
+ * "id": "10001",
56
+ * "value": "Scranton"
57
+ * },
58
+ * {
59
+ * "disabled": true,
60
+ * "id": "10002",
61
+ * "optionId": "10000",
62
+ * "value": "Manhattan"
63
+ * },
64
+ * {
65
+ * "disabled": false,
66
+ * "id": "10003",
67
+ * "value": "The Electric City"
68
+ * }
69
+ * ]
70
+ * }
71
+ * @path {POST} /rest/api/3/field/{fieldId}/context/{contextId}/option
72
+ * @scopes-current manage:jira-configuration
73
+ * @scopes-beta read:field.option:jira, write:field.option:jira
74
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-post
75
+ */
76
+ this.createCustomFieldOption = ({ fieldId, contextId, bulkCustomFieldOptionCreateRequest, }) => {
77
+ return this.getClientInstance()
78
+ .request({
79
+ path: "/rest/api/3/field/{fieldId}/context/{contextId}/option",
80
+ method: "POST",
81
+ pathParams: {
82
+ fieldId,
83
+ contextId,
84
+ },
85
+ headers: {
86
+ "Content-Type": "application/json",
87
+ },
88
+ body: bulkCustomFieldOptionCreateRequest,
89
+ })
90
+ .then(this.getClientInstance().responseHandler({
91
+ 200: {
92
+ "application/json": "json",
93
+ },
94
+ }))
95
+ .then(commonHttpClient.castResponse())
96
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.createCustomFieldOption.response"))
97
+ .then(commonHttpClient.getBody);
98
+ };
99
+ /**
100
+ * Deletes a custom field option.
101
+ *
102
+ * Options with cascading options cannot be deleted without deleting the cascading
103
+ * options first.
104
+ *
105
+ * This operation works for custom field options created in Jira or the operations
106
+ * from this resource. **To work with issue field select list options created for
107
+ * Connect apps use the [Issue custom field options
108
+ * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
109
+ *
110
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
111
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
112
+ *
113
+ * @path {DELETE} /rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}
114
+ * @scopes-current manage:jira-configuration
115
+ * @scopes-beta delete:field.option:jira
116
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-optionid-delete
117
+ */
118
+ this.deleteCustomFieldOption = ({ fieldId, contextId, optionId, }) => {
119
+ return this.getClientInstance()
120
+ .request({
121
+ path: "/rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}",
122
+ method: "DELETE",
123
+ pathParams: {
124
+ fieldId,
125
+ contextId,
126
+ optionId,
127
+ },
128
+ })
129
+ .then(commonHttpClient.discardResult);
130
+ };
131
+ /**
132
+ * Returns a custom field option. For example, an option in a select list.
133
+ *
134
+ * Note that this operation **only works for issue field select list options
135
+ * created in Jira or using operations from the [Issue custom field
136
+ * options](#api-group-Issue-custom-field-options) resource**, it cannot be used
137
+ * with issue field select list options created by Connect apps.
138
+ *
139
+ * This operation can be accessed anonymously.
140
+ *
141
+ * **[Permissions](#permissions) required:** The custom field option is returned
142
+ * as follows:
143
+ *
144
+ * * if the user has the *Administer Jira* [global
145
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
146
+ * * if the user has the *Browse projects* [project
147
+ * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
148
+ * the custom field is used in, and the field is visible in at least one layout
149
+ * the user has permission to view.
150
+ *
151
+ * @returns Returned if the request is successful.
152
+ *
153
+ * example: {
154
+ * "self":
155
+ * "https://your-domain.atlassian.net/rest/api/3/customFieldOption/10000",
156
+ * "value": "To Do"
157
+ * }
158
+ * @path {GET} /rest/api/3/customFieldOption/{id}
159
+ * @scopes-current read:jira-work
160
+ * @scopes-beta read:field:jira, read:field.option:jira
161
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-customfieldoption-id-get
162
+ */
163
+ this.getCustomFieldOption = ({ id, }) => {
164
+ return this.getClientInstance()
165
+ .request({
166
+ path: "/rest/api/3/customFieldOption/{id}",
167
+ method: "GET",
168
+ pathParams: {
169
+ id,
170
+ },
171
+ })
172
+ .then(this.getClientInstance().responseHandler({
173
+ 200: {
174
+ "application/json": "json",
175
+ },
176
+ }))
177
+ .then(commonHttpClient.castResponse())
178
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.getCustomFieldOption.response"))
179
+ .then(commonHttpClient.getBody);
180
+ };
181
+ /**
182
+ * Returns a [paginated](#pagination) list of all custom field option for a
183
+ * context. Options are returned first then cascading options, in the order they
184
+ * display in Jira.
185
+ *
186
+ * This operation works for custom field options created in Jira or the operations
187
+ * from this resource. **To work with issue field select list options created for
188
+ * Connect apps use the [Issue custom field options
189
+ * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
190
+ *
191
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
192
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
193
+ *
194
+ * @returns Returned if the request is successful.
195
+ *
196
+ * example: {
197
+ * "isLast": true,
198
+ * "maxResults": 100,
199
+ * "startAt": 0,
200
+ * "total": 4,
201
+ * "values": [
202
+ * {
203
+ * "id": "10001",
204
+ * "value": "New York"
205
+ * },
206
+ * {
207
+ * "id": "10002",
208
+ * "value": "Boston",
209
+ * "disabled": true
210
+ * },
211
+ * {
212
+ * "id": "10004",
213
+ * "value": "Denver"
214
+ * },
215
+ * {
216
+ * "id": "10003",
217
+ * "value": "Brooklyn",
218
+ * "optionId": "10001"
219
+ * }
220
+ * ]
221
+ * }
222
+ * @path {GET} /rest/api/3/field/{fieldId}/context/{contextId}/option
223
+ * @scopes-current manage:jira-configuration
224
+ * @scopes-beta read:field.option:jira
225
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-get
226
+ */
227
+ this.getOptionsForContext = ({ fieldId, contextId, optionId, onlyOptions, startAt, maxResults, }) => {
228
+ return this.getClientInstance()
229
+ .request({
230
+ path: "/rest/api/3/field/{fieldId}/context/{contextId}/option",
231
+ method: "GET",
232
+ pathParams: {
233
+ fieldId,
234
+ contextId,
235
+ },
236
+ query: {
237
+ optionId,
238
+ onlyOptions,
239
+ startAt,
240
+ maxResults,
241
+ },
242
+ })
243
+ .then(this.getClientInstance().responseHandler({
244
+ 200: {
245
+ "application/json": "json",
246
+ },
247
+ }))
248
+ .then(commonHttpClient.castResponse())
249
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.getOptionsForContext.response"))
250
+ .then(commonHttpClient.getBody);
251
+ };
252
+ /**
253
+ * Changes the order of custom field options or cascading options in a context.
254
+ *
255
+ * This operation works for custom field options created in Jira or the operations
256
+ * from this resource. **To work with issue field select list options created for
257
+ * Connect apps use the [Issue custom field options
258
+ * (apps)](#api-group-issue-custom-field-options--apps-) operations.**
259
+ *
260
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
261
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
262
+ *
263
+ * @returns Returned if options are reordered.
264
+ * @path {PUT} /rest/api/3/field/{fieldId}/context/{contextId}/option/move
265
+ * @scopes-current manage:jira-configuration
266
+ * @scopes-beta write:field.option:jira
267
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-move-put
268
+ */
269
+ this.reorderCustomFieldOptions = ({ fieldId, contextId, orderOfCustomFieldOptions, }) => {
270
+ return this.getClientInstance()
271
+ .request({
272
+ path: "/rest/api/3/field/{fieldId}/context/{contextId}/option/move",
273
+ method: "PUT",
274
+ pathParams: {
275
+ fieldId,
276
+ contextId,
277
+ },
278
+ headers: {
279
+ "Content-Type": "application/json",
280
+ },
281
+ body: orderOfCustomFieldOptions,
282
+ })
283
+ .then(this.getClientInstance().responseHandler({
284
+ 204: {
285
+ "application/json": "json",
286
+ },
287
+ }))
288
+ .then(commonHttpClient.castResponse())
289
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.reorderCustomFieldOptions.response"))
290
+ .then(commonHttpClient.getBody);
291
+ };
292
+ /**
293
+ * Replaces the options of a custom field.
294
+ *
295
+ * Note that this operation **only works for issue field select list options
296
+ * created in Jira or using operations from the [Issue custom field
297
+ * options](#api-group-Issue-custom-field-options) resource**, it cannot be used
298
+ * with issue field select list options created by Connect or Forge apps.
299
+ *
300
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
301
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
302
+ *
303
+ * @path {DELETE} /rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue
304
+ * @scopes-current manage:jira-configuration
305
+ * @scopes-beta read:field.option:jira, write:field.option:jira
306
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-optionid-issue-delete
307
+ */
308
+ this.replaceCustomFieldOption = ({ fieldId, optionId, contextId, replaceWith, jql, }) => {
309
+ return this.getClientInstance()
310
+ .request({
311
+ path: "/rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}/issue",
312
+ method: "DELETE",
313
+ pathParams: {
314
+ fieldId,
315
+ optionId,
316
+ contextId,
317
+ },
318
+ query: {
319
+ replaceWith,
320
+ jql,
321
+ },
322
+ })
323
+ .then(commonHttpClient.discardResult);
324
+ };
325
+ /**
326
+ * Updates the options of a custom field.
327
+ *
328
+ * If any of the options are not found, no options are updated. Options where the
329
+ * values in the request match the current values aren't updated and aren't
330
+ * reported in the response.
331
+ *
332
+ * Note that this operation **only works for issue field select list options
333
+ * created in Jira or using operations from the [Issue custom field
334
+ * options](#api-group-Issue-custom-field-options) resource**, it cannot be used
335
+ * with issue field select list options created by Connect apps.
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
+ * "options": [
344
+ * {
345
+ * "disabled": false,
346
+ * "id": "10001",
347
+ * "value": "Scranton"
348
+ * },
349
+ * {
350
+ * "disabled": true,
351
+ * "id": "10002",
352
+ * "value": "Manhattan"
353
+ * },
354
+ * {
355
+ * "disabled": false,
356
+ * "id": "10003",
357
+ * "value": "The Electric City"
358
+ * }
359
+ * ]
360
+ * }
361
+ * @path {PUT} /rest/api/3/field/{fieldId}/context/{contextId}/option
362
+ * @scopes-current manage:jira-configuration
363
+ * @scopes-beta read:field.option:jira, write:field.option:jira
364
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options#api-rest-api-3-field-fieldid-context-contextid-option-put
365
+ */
366
+ this.updateCustomFieldOption = ({ fieldId, contextId, bulkCustomFieldOptionUpdateRequest, }) => {
367
+ return this.getClientInstance()
368
+ .request({
369
+ path: "/rest/api/3/field/{fieldId}/context/{contextId}/option",
370
+ method: "PUT",
371
+ pathParams: {
372
+ fieldId,
373
+ contextId,
374
+ },
375
+ headers: {
376
+ "Content-Type": "application/json",
377
+ },
378
+ body: bulkCustomFieldOptionUpdateRequest,
379
+ })
380
+ .then(this.getClientInstance().responseHandler({
381
+ 200: {
382
+ "application/json": "json",
383
+ },
384
+ }))
385
+ .then(commonHttpClient.castResponse())
386
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCustomFieldOptionsService.updateCustomFieldOption.response"))
387
+ .then(commonHttpClient.getBody);
388
+ };
386
389
  }
387
390
  static initialize() {
388
391
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueCustomFieldOptionsService.getCustomFieldOption.response", zod_1.z