@resolution/jira-api-client 0.4.4 → 0.4.6

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 (336) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +60 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +118 -95
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1073 -869
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/core/CommonHttpService.d.ts +2 -0
  7. package/lib/openapi/platform/core/CommonHttpService.js +9 -0
  8. package/lib/openapi/platform/core/CommonHttpService.js.map +1 -1
  9. package/lib/openapi/platform/models/common.d.ts +6 -0
  10. package/lib/openapi/platform/models/common.js +12 -1
  11. package/lib/openapi/platform/models/common.js.map +1 -1
  12. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  13. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  14. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  15. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  16. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  17. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  18. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  19. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  20. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  22. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  23. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  25. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  26. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  27. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  28. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  29. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  30. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  31. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  32. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  33. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  34. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  35. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  36. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  37. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  38. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  39. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  40. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  41. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  43. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  44. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  45. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  46. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  47. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  48. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  49. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  50. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  51. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  52. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  53. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  55. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  56. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  57. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  58. package/lib/openapi/platform/services/GroupsService.js +385 -382
  59. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  61. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  62. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  63. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  64. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  65. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  66. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  67. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  68. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  70. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  71. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  73. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  74. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  76. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  77. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  82. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  83. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  85. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  86. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  88. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  89. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  91. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  92. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  94. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  95. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  97. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  98. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  100. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  101. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  103. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  104. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  106. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  107. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  109. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  110. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  112. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  113. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  115. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  116. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  118. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  119. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  121. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  122. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  124. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  125. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  127. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  128. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  130. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  131. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  133. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  134. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  136. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  137. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  139. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  140. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  142. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  143. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  145. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  146. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  148. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  149. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  150. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  151. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  152. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  154. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  155. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  157. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  158. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  160. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  161. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  162. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  163. package/lib/openapi/platform/services/JqlService.js +635 -632
  164. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  165. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LabelsService.js +41 -38
  167. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  168. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  169. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  170. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  171. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  172. package/lib/openapi/platform/services/MyselfService.js +321 -318
  173. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  175. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  176. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  177. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  178. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  179. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  180. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  181. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  182. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  184. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  185. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  187. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  188. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  190. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  191. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  193. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  194. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  197. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  199. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  200. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  202. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  203. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  205. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  206. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  208. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  209. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  211. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  212. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  214. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  215. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  217. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  218. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  220. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  221. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  223. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  224. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  226. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  227. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  229. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  230. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  232. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  233. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  234. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  235. package/lib/openapi/platform/services/ScreensService.js +281 -278
  236. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  238. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  239. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  240. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  241. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  242. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  243. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  244. package/lib/openapi/platform/services/StatusService.js +271 -268
  245. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  246. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  247. package/lib/openapi/platform/services/TasksService.js +93 -90
  248. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  249. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  250. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  251. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  252. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  253. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  254. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  256. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  257. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  258. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  259. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  260. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  261. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  262. package/lib/openapi/platform/services/UsersService.js +637 -634
  263. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  264. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  265. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  266. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  268. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  269. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  271. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  272. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  274. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  275. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  278. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  280. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  281. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  283. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  284. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  286. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  287. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  288. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  289. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  290. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  291. package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +13 -14
  292. package/lib/openapi/software/BaseJiraSoftwareApiClient.js +454 -429
  293. package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
  294. package/lib/openapi/software/core/CommonHttpService.d.ts +2 -0
  295. package/lib/openapi/software/core/CommonHttpService.js +9 -0
  296. package/lib/openapi/software/core/CommonHttpService.js.map +1 -1
  297. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  298. package/lib/openapi/software/services/BacklogService.js +81 -78
  299. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  300. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  301. package/lib/openapi/software/services/BoardService.js +2048 -2045
  302. package/lib/openapi/software/services/BoardService.js.map +1 -1
  303. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  304. package/lib/openapi/software/services/BuildsService.js +164 -161
  305. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  306. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  307. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  308. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  309. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  310. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  311. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  312. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  313. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  314. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  315. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  316. package/lib/openapi/software/services/EpicService.js +597 -594
  317. package/lib/openapi/software/services/EpicService.js.map +1 -1
  318. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  319. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  320. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  321. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  322. package/lib/openapi/software/services/IssueService.js +359 -356
  323. package/lib/openapi/software/services/IssueService.js.map +1 -1
  324. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  325. package/lib/openapi/software/services/OperationsService.js +301 -298
  326. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  327. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  328. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  329. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  330. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  331. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  332. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  333. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  334. package/lib/openapi/software/services/SprintService.js +594 -591
  335. package/lib/openapi/software/services/SprintService.js.map +1 -1
  336. package/package.json +4 -3
@@ -17,487 +17,490 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
17
17
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields
18
18
  */
19
19
  class IssueFieldsService extends CommonHttpService_1.CommonHttpService {
20
- /**
21
- * Creates a custom field.
22
- *
23
- * **[Permissions](#permissions) required:** *Administer Jira* [global
24
- * permission](https://confluence.atlassian.com/x/x4dKLg).
25
- *
26
- * @returns Returned if the custom field is created.
27
- *
28
- * example: {
29
- * "clauseNames": [
30
- * "cf[10101]",
31
- * "New custom field"
32
- * ],
33
- * "custom": true,
34
- * "id": "customfield_10101",
35
- * "key": "customfield_10101",
36
- * "name": "New custom field",
37
- * "navigable": true,
38
- * "orderable": true,
39
- * "schema": {
40
- * "custom": "com.atlassian.jira.plugin.system.customfieldtypes:project",
41
- * "customId": 10101,
42
- * "type": "project"
43
- * },
44
- * "searchable": true,
45
- * "untranslatedName": "New custom field"
46
- * }
47
- * @path {POST} /rest/api/3/field
48
- * @scopes-current manage:jira-configuration
49
- * @scopes-beta write:field:jira, read:avatar:jira, read:field:jira,
50
- * read:project-category:jira, read:project:jira, read:field-configuration:jira
51
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-post
52
- */
53
- createCustomField({ customFieldDefinitionJsonBean, }) {
54
- return this.getClientInstance()
55
- .request({
56
- path: "/rest/api/3/field",
57
- method: "POST",
58
- headers: {
59
- "Content-Type": "application/json",
60
- },
61
- body: customFieldDefinitionJsonBean,
62
- })
63
- .then(this.getClientInstance().responseHandler({
64
- 201: {
65
- "application/json": "json",
66
- },
67
- }))
68
- .then(commonHttpClient.castResponse())
69
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.createCustomField.response"))
70
- .then(commonHttpClient.getBody);
71
- }
72
- /**
73
- * Deletes a custom field. The custom field is deleted whether it is in the trash
74
- * or not. See [Edit or delete a custom
75
- * field](https://confluence.atlassian.com/x/Z44fOw) for more information on
76
- * trashing and deleting custom fields.
77
- *
78
- * This operation is [asynchronous](#async). Follow the `location` link in the
79
- * response to determine the status of the task and use [Get
80
- * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
81
- *
82
- * **[Permissions](#permissions) required:** *Administer Jira* [global
83
- * permission](https://confluence.atlassian.com/x/x4dKLg).
84
- *
85
- * @path {DELETE} /rest/api/3/field/{id}
86
- * @scopes-current manage:jira-configuration
87
- * @scopes-beta delete:field:jira
88
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-id-delete
89
- */
90
- deleteCustomField({ id, }) {
91
- return this.getClientInstance()
92
- .request({
93
- path: "/rest/api/3/field/{id}",
94
- method: "DELETE",
95
- pathParams: {
96
- id,
97
- },
98
- })
99
- .then(commonHttpClient.discardResult);
100
- }
101
- /**
102
- * Returns a [paginated](#pagination) list of the contexts a field is used in.
103
- * Deprecated, use [ Get custom field
104
- * contexts](#api-rest-api-3-field-fieldId-context-get).
105
- *
106
- * **[Permissions](#permissions) required:** *Administer Jira* [global
107
- * permission](https://confluence.atlassian.com/x/x4dKLg).
108
- *
109
- * @deprecated
110
- * @returns Returned if the request is successful.
111
- *
112
- * example: {
113
- * "isLast": false,
114
- * "maxResults": 1,
115
- * "startAt": 0,
116
- * "total": 5,
117
- * "values": [
118
- * {
119
- * "id": 10001,
120
- * "name": "Default Context"
121
- * }
122
- * ]
123
- * }
124
- * @path {GET} /rest/api/3/field/{fieldId}/contexts
125
- * @scopes-current manage:jira-project
126
- * @scopes-beta read:field:jira, read:avatar:jira, read:project-category:jira, read:project:jira
127
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-fieldid-contexts-get
128
- */
129
- getContextsForFieldDeprecated({ fieldId, startAt, maxResults, }) {
130
- return this.getClientInstance()
131
- .request({
132
- path: "/rest/api/3/field/{fieldId}/contexts",
133
- method: "GET",
134
- pathParams: {
135
- fieldId,
136
- },
137
- query: {
138
- startAt,
139
- maxResults,
140
- },
141
- })
142
- .then(this.getClientInstance().responseHandler({
143
- 200: {
144
- "application/json": "json",
145
- },
146
- }))
147
- .then(commonHttpClient.castResponse())
148
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.getContextsForFieldDeprecated.response"))
149
- .then(commonHttpClient.getBody);
150
- }
151
- /**
152
- * Returns system and custom issue fields according to the following rules:
153
- *
154
- * * Fields that cannot be added to the issue navigator are always returned.
155
- * * Fields that cannot be placed on an issue screen are always returned.
156
- * * Fields that depend on global Jira settings are only returned if the setting
157
- * is enabled. That is, timetracking fields, subtasks, votes, and watches.
158
- * * For all other fields, this operation only returns the fields that the user
159
- * has permission to view (that is, the field is used in at least one project that
160
- * the user has *Browse Projects* [project
161
- * permission](https://confluence.atlassian.com/x/yodKLg) for.)
162
- *
163
- * This operation can be accessed anonymously.
164
- *
165
- * **[Permissions](#permissions) required:** None.
166
- *
167
- * @returns Returned if the request is successful.
168
- *
169
- * example: [
170
- * {
171
- * "clauseNames": [
172
- * "description"
173
- * ],
174
- * "custom": false,
175
- * "id": "description",
176
- * "name": "Description",
177
- * "navigable": true,
178
- * "orderable": true,
179
- * "schema": {
180
- * "system": "description",
181
- * "type": "string"
182
- * },
183
- * "searchable": true
184
- * },
185
- * {
186
- * "clauseNames": [
187
- * "summary"
188
- * ],
189
- * "custom": false,
190
- * "id": "summary",
191
- * "key": "summary",
192
- * "name": "Summary",
193
- * "navigable": true,
194
- * "orderable": true,
195
- * "schema": {
196
- * "system": "summary",
197
- * "type": "string"
198
- * },
199
- * "searchable": true
200
- * }
201
- * ]
202
- * @path {GET} /rest/api/3/field
203
- * @scopes-current read:jira-work
204
- * @scopes-beta read:field:jira, read:avatar:jira, read:project-category:jira,
205
- * read:project:jira, read:field-configuration:jira
206
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-get
207
- */
208
- getFields() {
209
- return this.getClientInstance()
210
- .request({
211
- path: "/rest/api/3/field",
212
- method: "GET",
213
- })
214
- .then(this.getClientInstance().responseHandler({
215
- 200: {
216
- "application/json": "json",
217
- },
218
- }))
219
- .then(commonHttpClient.castResponse())
220
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.getFields.response"))
221
- .then(commonHttpClient.getBody);
222
- }
223
- /**
224
- * Returns a [paginated](#pagination) list of fields for Classic Jira projects.
225
- * The list can include:
226
- *
227
- * * all fields
228
- * * specific fields, by defining `id`
229
- * * fields that contain a string in the field name or description, by defining
230
- * `query`
231
- * * specific fields that contain a string in the field name or description, by
232
- * defining `id` and `query`
233
- *
234
- * Only custom fields can be queried, `type` must be set to `custom`.
235
- *
236
- * **[Permissions](#permissions) required:** *Administer Jira* [global
237
- * permission](https://confluence.atlassian.com/x/x4dKLg).
238
- *
239
- * @returns Returned if the request is successful.
240
- *
241
- * example: {
242
- * "isLast": false,
243
- * "maxResults": 50,
244
- * "startAt": 0,
245
- * "total": 2,
246
- * "values": [
247
- * {
248
- * "id": "customfield_10000",
249
- * "name": "Approvers",
250
- * "schema": {
251
- * "custom":
252
- * "com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker",
253
- * "customId": 10000,
254
- * "items": "user",
255
- * "type": "array"
256
- * },
257
- * "description": "Contains users needed for approval. This custom field was
258
- * created by Jira Service Desk.",
259
- * "key": "customfield_10000",
260
- * "stableId": "sfid:approvers",
261
- * "isLocked": true,
262
- * "searcherKey":
263
- * "com.atlassian.jira.plugin.system.customfieldtypes:userpickergroupsearcher",
264
- * "screensCount": 2,
265
- * "contextsCount": 2,
266
- * "lastUsed": {
267
- * "type": "TRACKED",
268
- * "value": "2021-01-28T07:37:40.000+0000"
269
- * }
270
- * },
271
- * {
272
- * "id": "customfield_10001",
273
- * "name": "Change reason",
274
- * "schema": {
275
- * "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
276
- * "customId": 10001,
277
- * "type": "option"
278
- * },
279
- * "description": "Choose the reason for the change request",
280
- * "key": "customfield_10001",
281
- * "stableId": "sfid:change-reason",
282
- * "isLocked": false,
283
- * "searcherKey":
284
- * "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher",
285
- * "screensCount": 2,
286
- * "contextsCount": 2,
287
- * "projectsCount": 2,
288
- * "lastUsed": {
289
- * "type": "NOT_TRACKED"
290
- * }
291
- * }
292
- * ]
293
- * }
294
- * @path {GET} /rest/api/3/field/search
295
- * @scopes-current read:jira-work
296
- * @scopes-beta read:field:jira, read:field-configuration:jira
297
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-search-get
298
- */
299
- getFieldsPaginated({ startAt, maxResults, type, id, query, orderBy, expand, } = {}) {
300
- return this.getClientInstance()
301
- .request({
302
- path: "/rest/api/3/field/search",
303
- method: "GET",
304
- query: {
305
- startAt,
306
- maxResults,
307
- type,
308
- id,
309
- query,
310
- orderBy,
311
- expand,
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("IssueFieldsService.getFieldsPaginated.response"))
321
- .then(commonHttpClient.getBody);
322
- }
323
- /**
324
- * Returns a [paginated](#pagination) list of fields in the trash. The list may be
325
- * restricted to fields whose field name or description partially match a string.
326
- *
327
- * Only custom fields can be queried, `type` must be set to `custom`.
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": false,
336
- * "maxResults": 50,
337
- * "startAt": 0,
338
- * "total": 1,
339
- * "values": [
340
- * {
341
- * "id": "customfield_10000",
342
- * "name": "Approvers",
343
- * "schema": {
344
- * "custom":
345
- * "com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker",
346
- * "customId": 10003,
347
- * "type": "array"
348
- * },
349
- * "description": "Contains users needed for approval. This custom field was
350
- * created by Jira Service Desk.",
351
- * "key": "customfield_10003",
352
- * "trashedDate": "2022-10-06T07:32:47.000+0000",
353
- * "trashedBy": {
354
- * "accountId": "5b10a2844c20165700ede21g",
355
- * "active": true,
356
- * "avatarUrls": {
357
- * "16x16":
358
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
359
- * "24x24":
360
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
361
- * "32x32":
362
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
363
- * "48x48":
364
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
365
- * },
366
- * "displayName": "Mia Krystof",
367
- * "emailAddress": "mia@example.com",
368
- * "self":
369
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
370
- * "timeZone": "Australia/Sydney"
371
- * },
372
- * "plannedDeletionDate": "2022-10-24T07:32:47.000+0000"
373
- * }
374
- * ]
375
- * }
376
- * @path {GET} /rest/api/3/field/search/trashed
377
- * @scopes-current read:jira-work
378
- * @scopes-beta read:field:jira, read:field-configuration:jira, read:user:jira
379
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-search-trashed-get
380
- */
381
- getTrashedFieldsPaginated({ startAt, maxResults, id, query, expand, orderBy, } = {}) {
382
- return this.getClientInstance()
383
- .request({
384
- path: "/rest/api/3/field/search/trashed",
385
- method: "GET",
386
- query: {
387
- startAt,
388
- maxResults,
389
- id,
390
- query,
391
- expand,
392
- orderBy,
393
- },
394
- })
395
- .then(this.getClientInstance().responseHandler({
396
- 200: {
397
- "application/json": "json",
398
- },
399
- }))
400
- .then(commonHttpClient.castResponse())
401
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.getTrashedFieldsPaginated.response"))
402
- .then(commonHttpClient.getBody);
403
- }
404
- /**
405
- * Restores a custom field from trash. See [Edit or delete a custom
406
- * field](https://confluence.atlassian.com/x/Z44fOw) for more information on
407
- * trashing and deleting custom fields.
408
- *
409
- * **[Permissions](#permissions) required:** *Administer Jira* [global
410
- * permission](https://confluence.atlassian.com/x/x4dKLg).
411
- *
412
- * @returns Returned if the request is successful.
413
- * @path {POST} /rest/api/3/field/{id}/restore
414
- * @scopes-current manage:jira-configuration
415
- * @scopes-beta write:field:jira
416
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-id-restore-post
417
- */
418
- restoreCustomField({ id, }) {
419
- return this.getClientInstance()
420
- .request({
421
- path: "/rest/api/3/field/{id}/restore",
422
- method: "POST",
423
- pathParams: {
424
- id,
425
- },
426
- })
427
- .then(this.getClientInstance().responseHandler({
428
- 200: {
429
- "application/json": "json",
430
- },
431
- }))
432
- .then(commonHttpClient.castResponse())
433
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.restoreCustomField.response"))
434
- .then(commonHttpClient.getBody);
435
- }
436
- /**
437
- * Moves a custom field to trash. See [Edit or delete a custom
438
- * field](https://confluence.atlassian.com/x/Z44fOw) for more information on
439
- * trashing and deleting custom fields.
440
- *
441
- * **[Permissions](#permissions) required:** *Administer Jira* [global
442
- * permission](https://confluence.atlassian.com/x/x4dKLg).
443
- *
444
- * @returns Returned if the request is successful.
445
- * @path {POST} /rest/api/3/field/{id}/trash
446
- * @scopes-current manage:jira-configuration
447
- * @scopes-beta delete:field:jira
448
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-id-trash-post
449
- */
450
- trashCustomField({ id, }) {
451
- return this.getClientInstance()
452
- .request({
453
- path: "/rest/api/3/field/{id}/trash",
454
- method: "POST",
455
- pathParams: {
456
- id,
457
- },
458
- })
459
- .then(this.getClientInstance().responseHandler({
460
- 200: {
461
- "application/json": "json",
462
- },
463
- }))
464
- .then(commonHttpClient.castResponse())
465
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.trashCustomField.response"))
466
- .then(commonHttpClient.getBody);
467
- }
468
- /**
469
- * Updates a custom field.
470
- *
471
- * **[Permissions](#permissions) required:** *Administer Jira* [global
472
- * permission](https://confluence.atlassian.com/x/x4dKLg).
473
- *
474
- * @returns Returned if the request is successful.
475
- * @path {PUT} /rest/api/3/field/{fieldId}
476
- * @scopes-current manage:jira-configuration
477
- * @scopes-beta write:field:jira
478
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-fieldid-put
479
- */
480
- updateCustomField({ fieldId, updateCustomFieldDetails, }) {
481
- return this.getClientInstance()
482
- .request({
483
- path: "/rest/api/3/field/{fieldId}",
484
- method: "PUT",
485
- pathParams: {
486
- fieldId,
487
- },
488
- headers: {
489
- "Content-Type": "application/json",
490
- },
491
- body: updateCustomFieldDetails,
492
- })
493
- .then(this.getClientInstance().responseHandler({
494
- 204: {
495
- "application/json": "json",
496
- },
497
- }))
498
- .then(commonHttpClient.castResponse())
499
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.updateCustomField.response"))
500
- .then(commonHttpClient.getBody);
20
+ constructor() {
21
+ super(...arguments);
22
+ /**
23
+ * Creates a custom field.
24
+ *
25
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
26
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
27
+ *
28
+ * @returns Returned if the custom field is created.
29
+ *
30
+ * example: {
31
+ * "clauseNames": [
32
+ * "cf[10101]",
33
+ * "New custom field"
34
+ * ],
35
+ * "custom": true,
36
+ * "id": "customfield_10101",
37
+ * "key": "customfield_10101",
38
+ * "name": "New custom field",
39
+ * "navigable": true,
40
+ * "orderable": true,
41
+ * "schema": {
42
+ * "custom": "com.atlassian.jira.plugin.system.customfieldtypes:project",
43
+ * "customId": 10101,
44
+ * "type": "project"
45
+ * },
46
+ * "searchable": true,
47
+ * "untranslatedName": "New custom field"
48
+ * }
49
+ * @path {POST} /rest/api/3/field
50
+ * @scopes-current manage:jira-configuration
51
+ * @scopes-beta write:field:jira, read:avatar:jira, read:field:jira,
52
+ * read:project-category:jira, read:project:jira, read:field-configuration:jira
53
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-post
54
+ */
55
+ this.createCustomField = ({ customFieldDefinitionJsonBean, }) => {
56
+ return this.getClientInstance()
57
+ .request({
58
+ path: "/rest/api/3/field",
59
+ method: "POST",
60
+ headers: {
61
+ "Content-Type": "application/json",
62
+ },
63
+ body: customFieldDefinitionJsonBean,
64
+ })
65
+ .then(this.getClientInstance().responseHandler({
66
+ 201: {
67
+ "application/json": "json",
68
+ },
69
+ }))
70
+ .then(commonHttpClient.castResponse())
71
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.createCustomField.response"))
72
+ .then(commonHttpClient.getBody);
73
+ };
74
+ /**
75
+ * Deletes a custom field. The custom field is deleted whether it is in the trash
76
+ * or not. See [Edit or delete a custom
77
+ * field](https://confluence.atlassian.com/x/Z44fOw) for more information on
78
+ * trashing and deleting custom fields.
79
+ *
80
+ * This operation is [asynchronous](#async). Follow the `location` link in the
81
+ * response to determine the status of the task and use [Get
82
+ * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
83
+ *
84
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
85
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
86
+ *
87
+ * @path {DELETE} /rest/api/3/field/{id}
88
+ * @scopes-current manage:jira-configuration
89
+ * @scopes-beta delete:field:jira
90
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-id-delete
91
+ */
92
+ this.deleteCustomField = ({ id, }) => {
93
+ return this.getClientInstance()
94
+ .request({
95
+ path: "/rest/api/3/field/{id}",
96
+ method: "DELETE",
97
+ pathParams: {
98
+ id,
99
+ },
100
+ })
101
+ .then(commonHttpClient.discardResult);
102
+ };
103
+ /**
104
+ * Returns a [paginated](#pagination) list of the contexts a field is used in.
105
+ * Deprecated, use [ Get custom field
106
+ * contexts](#api-rest-api-3-field-fieldId-context-get).
107
+ *
108
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
109
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
110
+ *
111
+ * @deprecated
112
+ * @returns Returned if the request is successful.
113
+ *
114
+ * example: {
115
+ * "isLast": false,
116
+ * "maxResults": 1,
117
+ * "startAt": 0,
118
+ * "total": 5,
119
+ * "values": [
120
+ * {
121
+ * "id": 10001,
122
+ * "name": "Default Context"
123
+ * }
124
+ * ]
125
+ * }
126
+ * @path {GET} /rest/api/3/field/{fieldId}/contexts
127
+ * @scopes-current manage:jira-project
128
+ * @scopes-beta read:field:jira, read:avatar:jira, read:project-category:jira, read:project:jira
129
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-fieldid-contexts-get
130
+ */
131
+ this.getContextsForFieldDeprecated = ({ fieldId, startAt, maxResults, }) => {
132
+ return this.getClientInstance()
133
+ .request({
134
+ path: "/rest/api/3/field/{fieldId}/contexts",
135
+ method: "GET",
136
+ pathParams: {
137
+ fieldId,
138
+ },
139
+ query: {
140
+ startAt,
141
+ maxResults,
142
+ },
143
+ })
144
+ .then(this.getClientInstance().responseHandler({
145
+ 200: {
146
+ "application/json": "json",
147
+ },
148
+ }))
149
+ .then(commonHttpClient.castResponse())
150
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.getContextsForFieldDeprecated.response"))
151
+ .then(commonHttpClient.getBody);
152
+ };
153
+ /**
154
+ * Returns system and custom issue fields according to the following rules:
155
+ *
156
+ * * Fields that cannot be added to the issue navigator are always returned.
157
+ * * Fields that cannot be placed on an issue screen are always returned.
158
+ * * Fields that depend on global Jira settings are only returned if the setting
159
+ * is enabled. That is, timetracking fields, subtasks, votes, and watches.
160
+ * * For all other fields, this operation only returns the fields that the user
161
+ * has permission to view (that is, the field is used in at least one project that
162
+ * the user has *Browse Projects* [project
163
+ * permission](https://confluence.atlassian.com/x/yodKLg) for.)
164
+ *
165
+ * This operation can be accessed anonymously.
166
+ *
167
+ * **[Permissions](#permissions) required:** None.
168
+ *
169
+ * @returns Returned if the request is successful.
170
+ *
171
+ * example: [
172
+ * {
173
+ * "clauseNames": [
174
+ * "description"
175
+ * ],
176
+ * "custom": false,
177
+ * "id": "description",
178
+ * "name": "Description",
179
+ * "navigable": true,
180
+ * "orderable": true,
181
+ * "schema": {
182
+ * "system": "description",
183
+ * "type": "string"
184
+ * },
185
+ * "searchable": true
186
+ * },
187
+ * {
188
+ * "clauseNames": [
189
+ * "summary"
190
+ * ],
191
+ * "custom": false,
192
+ * "id": "summary",
193
+ * "key": "summary",
194
+ * "name": "Summary",
195
+ * "navigable": true,
196
+ * "orderable": true,
197
+ * "schema": {
198
+ * "system": "summary",
199
+ * "type": "string"
200
+ * },
201
+ * "searchable": true
202
+ * }
203
+ * ]
204
+ * @path {GET} /rest/api/3/field
205
+ * @scopes-current read:jira-work
206
+ * @scopes-beta read:field:jira, read:avatar:jira, read:project-category:jira,
207
+ * read:project:jira, read:field-configuration:jira
208
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-get
209
+ */
210
+ this.getFields = () => {
211
+ return this.getClientInstance()
212
+ .request({
213
+ path: "/rest/api/3/field",
214
+ method: "GET",
215
+ })
216
+ .then(this.getClientInstance().responseHandler({
217
+ 200: {
218
+ "application/json": "json",
219
+ },
220
+ }))
221
+ .then(commonHttpClient.castResponse())
222
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.getFields.response"))
223
+ .then(commonHttpClient.getBody);
224
+ };
225
+ /**
226
+ * Returns a [paginated](#pagination) list of fields for Classic Jira projects.
227
+ * The list can include:
228
+ *
229
+ * * all fields
230
+ * * specific fields, by defining `id`
231
+ * * fields that contain a string in the field name or description, by defining
232
+ * `query`
233
+ * * specific fields that contain a string in the field name or description, by
234
+ * defining `id` and `query`
235
+ *
236
+ * Only custom fields can be queried, `type` must be set to `custom`.
237
+ *
238
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
239
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
240
+ *
241
+ * @returns Returned if the request is successful.
242
+ *
243
+ * example: {
244
+ * "isLast": false,
245
+ * "maxResults": 50,
246
+ * "startAt": 0,
247
+ * "total": 2,
248
+ * "values": [
249
+ * {
250
+ * "id": "customfield_10000",
251
+ * "name": "Approvers",
252
+ * "schema": {
253
+ * "custom":
254
+ * "com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker",
255
+ * "customId": 10000,
256
+ * "items": "user",
257
+ * "type": "array"
258
+ * },
259
+ * "description": "Contains users needed for approval. This custom field was
260
+ * created by Jira Service Desk.",
261
+ * "key": "customfield_10000",
262
+ * "stableId": "sfid:approvers",
263
+ * "isLocked": true,
264
+ * "searcherKey":
265
+ * "com.atlassian.jira.plugin.system.customfieldtypes:userpickergroupsearcher",
266
+ * "screensCount": 2,
267
+ * "contextsCount": 2,
268
+ * "lastUsed": {
269
+ * "type": "TRACKED",
270
+ * "value": "2021-01-28T07:37:40.000+0000"
271
+ * }
272
+ * },
273
+ * {
274
+ * "id": "customfield_10001",
275
+ * "name": "Change reason",
276
+ * "schema": {
277
+ * "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
278
+ * "customId": 10001,
279
+ * "type": "option"
280
+ * },
281
+ * "description": "Choose the reason for the change request",
282
+ * "key": "customfield_10001",
283
+ * "stableId": "sfid:change-reason",
284
+ * "isLocked": false,
285
+ * "searcherKey":
286
+ * "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher",
287
+ * "screensCount": 2,
288
+ * "contextsCount": 2,
289
+ * "projectsCount": 2,
290
+ * "lastUsed": {
291
+ * "type": "NOT_TRACKED"
292
+ * }
293
+ * }
294
+ * ]
295
+ * }
296
+ * @path {GET} /rest/api/3/field/search
297
+ * @scopes-current read:jira-work
298
+ * @scopes-beta read:field:jira, read:field-configuration:jira
299
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-search-get
300
+ */
301
+ this.getFieldsPaginated = ({ startAt, maxResults, type, id, query, orderBy, expand, } = {}) => {
302
+ return this.getClientInstance()
303
+ .request({
304
+ path: "/rest/api/3/field/search",
305
+ method: "GET",
306
+ query: {
307
+ startAt,
308
+ maxResults,
309
+ type,
310
+ id,
311
+ query,
312
+ orderBy,
313
+ expand,
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("IssueFieldsService.getFieldsPaginated.response"))
323
+ .then(commonHttpClient.getBody);
324
+ };
325
+ /**
326
+ * Returns a [paginated](#pagination) list of fields in the trash. The list may be
327
+ * restricted to fields whose field name or description partially match a string.
328
+ *
329
+ * Only custom fields can be queried, `type` must be set to `custom`.
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": false,
338
+ * "maxResults": 50,
339
+ * "startAt": 0,
340
+ * "total": 1,
341
+ * "values": [
342
+ * {
343
+ * "id": "customfield_10000",
344
+ * "name": "Approvers",
345
+ * "schema": {
346
+ * "custom":
347
+ * "com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker",
348
+ * "customId": 10003,
349
+ * "type": "array"
350
+ * },
351
+ * "description": "Contains users needed for approval. This custom field was
352
+ * created by Jira Service Desk.",
353
+ * "key": "customfield_10003",
354
+ * "trashedDate": "2022-10-06T07:32:47.000+0000",
355
+ * "trashedBy": {
356
+ * "accountId": "5b10a2844c20165700ede21g",
357
+ * "active": true,
358
+ * "avatarUrls": {
359
+ * "16x16":
360
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
361
+ * "24x24":
362
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
363
+ * "32x32":
364
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
365
+ * "48x48":
366
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
367
+ * },
368
+ * "displayName": "Mia Krystof",
369
+ * "emailAddress": "mia@example.com",
370
+ * "self":
371
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
372
+ * "timeZone": "Australia/Sydney"
373
+ * },
374
+ * "plannedDeletionDate": "2022-10-24T07:32:47.000+0000"
375
+ * }
376
+ * ]
377
+ * }
378
+ * @path {GET} /rest/api/3/field/search/trashed
379
+ * @scopes-current read:jira-work
380
+ * @scopes-beta read:field:jira, read:field-configuration:jira, read:user:jira
381
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-search-trashed-get
382
+ */
383
+ this.getTrashedFieldsPaginated = ({ startAt, maxResults, id, query, expand, orderBy, } = {}) => {
384
+ return this.getClientInstance()
385
+ .request({
386
+ path: "/rest/api/3/field/search/trashed",
387
+ method: "GET",
388
+ query: {
389
+ startAt,
390
+ maxResults,
391
+ id,
392
+ query,
393
+ expand,
394
+ orderBy,
395
+ },
396
+ })
397
+ .then(this.getClientInstance().responseHandler({
398
+ 200: {
399
+ "application/json": "json",
400
+ },
401
+ }))
402
+ .then(commonHttpClient.castResponse())
403
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.getTrashedFieldsPaginated.response"))
404
+ .then(commonHttpClient.getBody);
405
+ };
406
+ /**
407
+ * Restores a custom field from trash. See [Edit or delete a custom
408
+ * field](https://confluence.atlassian.com/x/Z44fOw) for more information on
409
+ * trashing and deleting custom fields.
410
+ *
411
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
412
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
413
+ *
414
+ * @returns Returned if the request is successful.
415
+ * @path {POST} /rest/api/3/field/{id}/restore
416
+ * @scopes-current manage:jira-configuration
417
+ * @scopes-beta write:field:jira
418
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-id-restore-post
419
+ */
420
+ this.restoreCustomField = ({ id, }) => {
421
+ return this.getClientInstance()
422
+ .request({
423
+ path: "/rest/api/3/field/{id}/restore",
424
+ method: "POST",
425
+ pathParams: {
426
+ id,
427
+ },
428
+ })
429
+ .then(this.getClientInstance().responseHandler({
430
+ 200: {
431
+ "application/json": "json",
432
+ },
433
+ }))
434
+ .then(commonHttpClient.castResponse())
435
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.restoreCustomField.response"))
436
+ .then(commonHttpClient.getBody);
437
+ };
438
+ /**
439
+ * Moves a custom field to trash. See [Edit or delete a custom
440
+ * field](https://confluence.atlassian.com/x/Z44fOw) for more information on
441
+ * trashing and deleting custom fields.
442
+ *
443
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
444
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
445
+ *
446
+ * @returns Returned if the request is successful.
447
+ * @path {POST} /rest/api/3/field/{id}/trash
448
+ * @scopes-current manage:jira-configuration
449
+ * @scopes-beta delete:field:jira
450
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-id-trash-post
451
+ */
452
+ this.trashCustomField = ({ id, }) => {
453
+ return this.getClientInstance()
454
+ .request({
455
+ path: "/rest/api/3/field/{id}/trash",
456
+ method: "POST",
457
+ pathParams: {
458
+ id,
459
+ },
460
+ })
461
+ .then(this.getClientInstance().responseHandler({
462
+ 200: {
463
+ "application/json": "json",
464
+ },
465
+ }))
466
+ .then(commonHttpClient.castResponse())
467
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.trashCustomField.response"))
468
+ .then(commonHttpClient.getBody);
469
+ };
470
+ /**
471
+ * Updates a custom field.
472
+ *
473
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
474
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
475
+ *
476
+ * @returns Returned if the request is successful.
477
+ * @path {PUT} /rest/api/3/field/{fieldId}
478
+ * @scopes-current manage:jira-configuration
479
+ * @scopes-beta write:field:jira
480
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields#api-rest-api-3-field-fieldid-put
481
+ */
482
+ this.updateCustomField = ({ fieldId, updateCustomFieldDetails, }) => {
483
+ return this.getClientInstance()
484
+ .request({
485
+ path: "/rest/api/3/field/{fieldId}",
486
+ method: "PUT",
487
+ pathParams: {
488
+ fieldId,
489
+ },
490
+ headers: {
491
+ "Content-Type": "application/json",
492
+ },
493
+ body: updateCustomFieldDetails,
494
+ })
495
+ .then(this.getClientInstance().responseHandler({
496
+ 204: {
497
+ "application/json": "json",
498
+ },
499
+ }))
500
+ .then(commonHttpClient.castResponse())
501
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueFieldsService.updateCustomField.response"))
502
+ .then(commonHttpClient.getBody);
503
+ };
501
504
  }
502
505
  static initialize() {
503
506
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueFieldsService.getFields.response", zod_1.z