@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
@@ -19,324 +19,327 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
19
19
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself
20
20
  */
21
21
  class MyselfService extends CommonHttpService_1.CommonHttpService {
22
- /**
23
- * Deprecated, use [ Update a user
24
- * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
25
- * from the user management REST API instead.
26
- *
27
- * Deletes the locale of the user, which restores the default setting.
28
- *
29
- * **[Permissions](#permissions) required:** Permission to access Jira.
30
- *
31
- * @deprecated
32
- * @returns Returned if the request is successful.
33
- * @path {DELETE} /rest/api/3/mypreferences/locale
34
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-locale-delete
35
- */
36
- deleteLocale() {
37
- return this.getClientInstance()
38
- .request({
39
- path: "/rest/api/3/mypreferences/locale",
40
- method: "DELETE",
41
- })
42
- .then(this.getClientInstance().responseHandler({
43
- 204: {
44
- "application/json": "json",
45
- },
46
- }))
47
- .then(commonHttpClient.castResponse())
48
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.deleteLocale.response"))
49
- .then(commonHttpClient.getBody);
50
- }
51
- /**
52
- * Returns details for the current user.
53
- *
54
- * **[Permissions](#permissions) required:** Permission to access Jira.
55
- *
56
- * @returns Returned if the request is successful.
57
- *
58
- * example: {
59
- * "accountId": "5b10a2844c20165700ede21g",
60
- * "accountType": "atlassian",
61
- * "active": true,
62
- * "applicationRoles": {
63
- * "items": [],
64
- * "size": 1
65
- * },
66
- * "avatarUrls": {
67
- * "16x16":
68
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
69
- * "24x24":
70
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
71
- * "32x32":
72
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
73
- * "48x48":
74
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
75
- * },
76
- * "displayName": "Mia Krystof",
77
- * "emailAddress": "mia@example.com",
78
- * "groups": {
79
- * "items": [],
80
- * "size": 3
81
- * },
82
- * "key": "",
83
- * "name": "",
84
- * "self":
85
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
86
- * "timeZone": "Australia/Sydney"
87
- * }
88
- * @path {GET} /rest/api/3/myself
89
- * @scopes-current read:jira-user
90
- * @scopes-beta read:application-role:jira, read:group:jira, read:user:jira, read:avatar:jira
91
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-myself-get
92
- */
93
- getCurrentUser({ expand, } = {}) {
94
- return this.getClientInstance()
95
- .request({
96
- path: "/rest/api/3/myself",
97
- method: "GET",
98
- query: {
99
- expand,
100
- },
101
- })
102
- .then(this.getClientInstance().responseHandler({
103
- 200: {
104
- "application/json": "json",
105
- },
106
- }))
107
- .then(commonHttpClient.castResponse())
108
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.getCurrentUser.response"))
109
- .then(commonHttpClient.getBody);
110
- }
111
- /**
112
- * Returns the locale for the user.
113
- *
114
- * If the user has no language preference set (which is the default setting) or
115
- * this resource is accessed anonymous, the browser locale detected by Jira is
116
- * returned. Jira detects the browser locale using the *Accept-Language* header in
117
- * the request. However, if this doesn't match a locale available Jira, the site
118
- * default locale is returned.
119
- *
120
- * This operation can be accessed anonymously.
121
- *
122
- * **[Permissions](#permissions) required:** None.
123
- *
124
- * @returns Returned if the request is successful.
125
- *
126
- * example: {
127
- * "locale": "en_US"
128
- * }
129
- * @path {GET} /rest/api/3/mypreferences/locale
130
- * @scopes-current manage:jira-configuration
131
- * @scopes-beta read:user-configuration:jira
132
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-locale-get
133
- */
134
- getLocale() {
135
- return this.getClientInstance()
136
- .request({
137
- path: "/rest/api/3/mypreferences/locale",
138
- method: "GET",
139
- })
140
- .then(this.getClientInstance().responseHandler({
141
- 200: {
142
- "application/json": "json",
143
- },
144
- }))
145
- .then(commonHttpClient.castResponse())
146
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.getLocale.response"))
147
- .then(commonHttpClient.getBody);
148
- }
149
- /**
150
- * Returns the value of a preference of the current user.
151
- *
152
- * Note that these keys are deprecated:
153
- *
154
- * * *jira.user.locale* The locale of the user. By default this is not set and
155
- * the user takes the locale of the instance.
156
- * * *jira.user.timezone* The time zone of the user. By default this is not set
157
- * and the user takes the timezone of the instance.
158
- *
159
- * These system preferences keys will be deprecated by 15/07/2024. You can still
160
- * retrieve these keys, but it will not have any impact on Notification behaviour.
161
- *
162
- * * *user.notifications.watcher* Whether the user gets notified when they are
163
- * watcher.
164
- * * *user.notifications.assignee* Whether the user gets notified when they are
165
- * assignee.
166
- * * *user.notifications.reporter* Whether the user gets notified when they are
167
- * reporter.
168
- * * *user.notifications.mentions* Whether the user gets notified when they are
169
- * mentions.
170
- *
171
- * Use [ Update a user
172
- * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
173
- * from the user management REST API to manage timezone and locale instead.
174
- *
175
- * **[Permissions](#permissions) required:** Permission to access Jira.
176
- *
177
- * @returns Returned if the request is successful.
178
- * @path {GET} /rest/api/3/mypreferences
179
- * @scopes-current manage:jira-configuration
180
- * @scopes-beta read:user-configuration:jira
181
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-get
182
- */
183
- getPreference({ key, }) {
184
- return this.getClientInstance()
185
- .request({
186
- path: "/rest/api/3/mypreferences",
187
- method: "GET",
188
- query: {
189
- key,
190
- },
191
- })
192
- .then(this.getClientInstance().responseHandler({
193
- 200: {
194
- "application/json": "json",
195
- },
196
- }))
197
- .then(commonHttpClient.castResponse())
198
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.getPreference.response"))
199
- .then(commonHttpClient.getBody);
200
- }
201
- /**
202
- * Deletes a preference of the user, which restores the default value of system
203
- * defined settings.
204
- *
205
- * Note that these keys are deprecated:
206
- *
207
- * * *jira.user.locale* The locale of the user. By default, not set. The user
208
- * takes the instance locale.
209
- * * *jira.user.timezone* The time zone of the user. By default, not set. The
210
- * user takes the instance timezone.
211
- *
212
- * Use [ Update a user
213
- * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
214
- * from the user management REST API to manage timezone and locale instead.
215
- *
216
- * **[Permissions](#permissions) required:** Permission to access Jira.
217
- *
218
- * @path {DELETE} /rest/api/3/mypreferences
219
- * @scopes-current manage:jira-configuration
220
- * @scopes-beta delete:user-configuration:jira
221
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-delete
222
- */
223
- removePreference({ key, }) {
224
- return this.getClientInstance()
225
- .request({
226
- path: "/rest/api/3/mypreferences",
227
- method: "DELETE",
228
- query: {
229
- key,
230
- },
231
- })
232
- .then(commonHttpClient.discardResult);
233
- }
234
- /**
235
- * Deprecated, use [ Update a user
236
- * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
237
- * from the user management REST API instead.
238
- *
239
- * Sets the locale of the user. The locale must be one supported by the instance
240
- * of Jira.
241
- *
242
- * **[Permissions](#permissions) required:** Permission to access Jira.
243
- *
244
- * @deprecated
245
- * @returns Returned if the request is successful.
246
- * @path {PUT} /rest/api/3/mypreferences/locale
247
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-locale-put
248
- */
249
- setLocale({ locale, }) {
250
- return this.getClientInstance()
251
- .request({
252
- path: "/rest/api/3/mypreferences/locale",
253
- method: "PUT",
254
- headers: {
255
- "Content-Type": "application/json",
256
- },
257
- body: locale,
258
- })
259
- .then(this.getClientInstance().responseHandler({
260
- 204: {
261
- "application/json": "json",
262
- },
263
- }))
264
- .then(commonHttpClient.castResponse())
265
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.setLocale.response"))
266
- .then(commonHttpClient.getBody);
267
- }
268
- /**
269
- * Creates a preference for the user or updates a preference's value by sending a
270
- * plain text string. For example, `false`. An arbitrary preference can be created
271
- * with the value containing up to 255 characters. In addition, the following keys
272
- * define system preferences that can be set or created:
273
- *
274
- * * *user.notifications.mimetype* The mime type used in notifications sent to
275
- * the user. Defaults to `html`.
276
- * * *user.default.share.private* Whether new [
277
- * filters](https://confluence.atlassian.com/x/eQiiLQ) are set to private.
278
- * Defaults to `true`.
279
- * * *user.keyboard.shortcuts.disabled* Whether keyboard shortcuts are disabled.
280
- * Defaults to `false`.
281
- * * *user.autowatch.disabled* Whether the user automatically watches issues
282
- * they create or add a comment to. By default, not set: the user takes the
283
- * instance autowatch setting.
284
- * * *user.notifiy.own.changes* Whether the user gets notified of their own
285
- * changes.
286
- *
287
- * Note that these keys are deprecated:
288
- *
289
- * * *jira.user.locale* The locale of the user. By default, not set. The user
290
- * takes the instance locale.
291
- * * *jira.user.timezone* The time zone of the user. By default, not set. The
292
- * user takes the instance timezone.
293
- *
294
- * These system preferences keys will be deprecated by 15/07/2024. You can still
295
- * use these keys to create arbitrary preferences, but it will not have any impact
296
- * on Notification behaviour.
297
- *
298
- * * *user.notifications.watcher* Whether the user gets notified when they are
299
- * watcher.
300
- * * *user.notifications.assignee* Whether the user gets notified when they are
301
- * assignee.
302
- * * *user.notifications.reporter* Whether the user gets notified when they are
303
- * reporter.
304
- * * *user.notifications.mentions* Whether the user gets notified when they are
305
- * mentions.
306
- *
307
- * Use [ Update a user
308
- * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
309
- * from the user management REST API to manage timezone and locale instead.
310
- *
311
- * **[Permissions](#permissions) required:** Permission to access Jira.
312
- *
313
- * @returns Returned if the request is successful.
314
- * @path {PUT} /rest/api/3/mypreferences
315
- * @scopes-current manage:jira-configuration
316
- * @scopes-beta write:user-configuration:jira
317
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-put
318
- */
319
- setPreference({ key, mediaType = "application/json", requestBody, }) {
320
- return this.getClientInstance()
321
- .request({
322
- path: "/rest/api/3/mypreferences",
323
- method: "PUT",
324
- query: {
325
- key,
326
- },
327
- headers: {
328
- "Content-Type": mediaType,
329
- },
330
- body: requestBody,
331
- })
332
- .then(this.getClientInstance().responseHandler({
333
- 204: {
334
- "application/json": "json",
335
- },
336
- }))
337
- .then(commonHttpClient.castResponse())
338
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.setPreference.response"))
339
- .then(commonHttpClient.getBody);
22
+ constructor() {
23
+ super(...arguments);
24
+ /**
25
+ * Deprecated, use [ Update a user
26
+ * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
27
+ * from the user management REST API instead.
28
+ *
29
+ * Deletes the locale of the user, which restores the default setting.
30
+ *
31
+ * **[Permissions](#permissions) required:** Permission to access Jira.
32
+ *
33
+ * @deprecated
34
+ * @returns Returned if the request is successful.
35
+ * @path {DELETE} /rest/api/3/mypreferences/locale
36
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-locale-delete
37
+ */
38
+ this.deleteLocale = () => {
39
+ return this.getClientInstance()
40
+ .request({
41
+ path: "/rest/api/3/mypreferences/locale",
42
+ method: "DELETE",
43
+ })
44
+ .then(this.getClientInstance().responseHandler({
45
+ 204: {
46
+ "application/json": "json",
47
+ },
48
+ }))
49
+ .then(commonHttpClient.castResponse())
50
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.deleteLocale.response"))
51
+ .then(commonHttpClient.getBody);
52
+ };
53
+ /**
54
+ * Returns details for the current user.
55
+ *
56
+ * **[Permissions](#permissions) required:** Permission to access Jira.
57
+ *
58
+ * @returns Returned if the request is successful.
59
+ *
60
+ * example: {
61
+ * "accountId": "5b10a2844c20165700ede21g",
62
+ * "accountType": "atlassian",
63
+ * "active": true,
64
+ * "applicationRoles": {
65
+ * "items": [],
66
+ * "size": 1
67
+ * },
68
+ * "avatarUrls": {
69
+ * "16x16":
70
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
71
+ * "24x24":
72
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
73
+ * "32x32":
74
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
75
+ * "48x48":
76
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
77
+ * },
78
+ * "displayName": "Mia Krystof",
79
+ * "emailAddress": "mia@example.com",
80
+ * "groups": {
81
+ * "items": [],
82
+ * "size": 3
83
+ * },
84
+ * "key": "",
85
+ * "name": "",
86
+ * "self":
87
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
88
+ * "timeZone": "Australia/Sydney"
89
+ * }
90
+ * @path {GET} /rest/api/3/myself
91
+ * @scopes-current read:jira-user
92
+ * @scopes-beta read:application-role:jira, read:group:jira, read:user:jira, read:avatar:jira
93
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-myself-get
94
+ */
95
+ this.getCurrentUser = ({ expand, } = {}) => {
96
+ return this.getClientInstance()
97
+ .request({
98
+ path: "/rest/api/3/myself",
99
+ method: "GET",
100
+ query: {
101
+ expand,
102
+ },
103
+ })
104
+ .then(this.getClientInstance().responseHandler({
105
+ 200: {
106
+ "application/json": "json",
107
+ },
108
+ }))
109
+ .then(commonHttpClient.castResponse())
110
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.getCurrentUser.response"))
111
+ .then(commonHttpClient.getBody);
112
+ };
113
+ /**
114
+ * Returns the locale for the user.
115
+ *
116
+ * If the user has no language preference set (which is the default setting) or
117
+ * this resource is accessed anonymous, the browser locale detected by Jira is
118
+ * returned. Jira detects the browser locale using the *Accept-Language* header in
119
+ * the request. However, if this doesn't match a locale available Jira, the site
120
+ * default locale is returned.
121
+ *
122
+ * This operation can be accessed anonymously.
123
+ *
124
+ * **[Permissions](#permissions) required:** None.
125
+ *
126
+ * @returns Returned if the request is successful.
127
+ *
128
+ * example: {
129
+ * "locale": "en_US"
130
+ * }
131
+ * @path {GET} /rest/api/3/mypreferences/locale
132
+ * @scopes-current manage:jira-configuration
133
+ * @scopes-beta read:user-configuration:jira
134
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-locale-get
135
+ */
136
+ this.getLocale = () => {
137
+ return this.getClientInstance()
138
+ .request({
139
+ path: "/rest/api/3/mypreferences/locale",
140
+ method: "GET",
141
+ })
142
+ .then(this.getClientInstance().responseHandler({
143
+ 200: {
144
+ "application/json": "json",
145
+ },
146
+ }))
147
+ .then(commonHttpClient.castResponse())
148
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.getLocale.response"))
149
+ .then(commonHttpClient.getBody);
150
+ };
151
+ /**
152
+ * Returns the value of a preference of the current user.
153
+ *
154
+ * Note that these keys are deprecated:
155
+ *
156
+ * * *jira.user.locale* The locale of the user. By default this is not set and
157
+ * the user takes the locale of the instance.
158
+ * * *jira.user.timezone* The time zone of the user. By default this is not set
159
+ * and the user takes the timezone of the instance.
160
+ *
161
+ * These system preferences keys will be deprecated by 15/07/2024. You can still
162
+ * retrieve these keys, but it will not have any impact on Notification behaviour.
163
+ *
164
+ * * *user.notifications.watcher* Whether the user gets notified when they are
165
+ * watcher.
166
+ * * *user.notifications.assignee* Whether the user gets notified when they are
167
+ * assignee.
168
+ * * *user.notifications.reporter* Whether the user gets notified when they are
169
+ * reporter.
170
+ * * *user.notifications.mentions* Whether the user gets notified when they are
171
+ * mentions.
172
+ *
173
+ * Use [ Update a user
174
+ * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
175
+ * from the user management REST API to manage timezone and locale instead.
176
+ *
177
+ * **[Permissions](#permissions) required:** Permission to access Jira.
178
+ *
179
+ * @returns Returned if the request is successful.
180
+ * @path {GET} /rest/api/3/mypreferences
181
+ * @scopes-current manage:jira-configuration
182
+ * @scopes-beta read:user-configuration:jira
183
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-get
184
+ */
185
+ this.getPreference = ({ key, }) => {
186
+ return this.getClientInstance()
187
+ .request({
188
+ path: "/rest/api/3/mypreferences",
189
+ method: "GET",
190
+ query: {
191
+ key,
192
+ },
193
+ })
194
+ .then(this.getClientInstance().responseHandler({
195
+ 200: {
196
+ "application/json": "json",
197
+ },
198
+ }))
199
+ .then(commonHttpClient.castResponse())
200
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.getPreference.response"))
201
+ .then(commonHttpClient.getBody);
202
+ };
203
+ /**
204
+ * Deletes a preference of the user, which restores the default value of system
205
+ * defined settings.
206
+ *
207
+ * Note that these keys are deprecated:
208
+ *
209
+ * * *jira.user.locale* The locale of the user. By default, not set. The user
210
+ * takes the instance locale.
211
+ * * *jira.user.timezone* The time zone of the user. By default, not set. The
212
+ * user takes the instance timezone.
213
+ *
214
+ * Use [ Update a user
215
+ * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
216
+ * from the user management REST API to manage timezone and locale instead.
217
+ *
218
+ * **[Permissions](#permissions) required:** Permission to access Jira.
219
+ *
220
+ * @path {DELETE} /rest/api/3/mypreferences
221
+ * @scopes-current manage:jira-configuration
222
+ * @scopes-beta delete:user-configuration:jira
223
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-delete
224
+ */
225
+ this.removePreference = ({ key, }) => {
226
+ return this.getClientInstance()
227
+ .request({
228
+ path: "/rest/api/3/mypreferences",
229
+ method: "DELETE",
230
+ query: {
231
+ key,
232
+ },
233
+ })
234
+ .then(commonHttpClient.discardResult);
235
+ };
236
+ /**
237
+ * Deprecated, use [ Update a user
238
+ * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
239
+ * from the user management REST API instead.
240
+ *
241
+ * Sets the locale of the user. The locale must be one supported by the instance
242
+ * of Jira.
243
+ *
244
+ * **[Permissions](#permissions) required:** Permission to access Jira.
245
+ *
246
+ * @deprecated
247
+ * @returns Returned if the request is successful.
248
+ * @path {PUT} /rest/api/3/mypreferences/locale
249
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-locale-put
250
+ */
251
+ this.setLocale = ({ locale, }) => {
252
+ return this.getClientInstance()
253
+ .request({
254
+ path: "/rest/api/3/mypreferences/locale",
255
+ method: "PUT",
256
+ headers: {
257
+ "Content-Type": "application/json",
258
+ },
259
+ body: locale,
260
+ })
261
+ .then(this.getClientInstance().responseHandler({
262
+ 204: {
263
+ "application/json": "json",
264
+ },
265
+ }))
266
+ .then(commonHttpClient.castResponse())
267
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.setLocale.response"))
268
+ .then(commonHttpClient.getBody);
269
+ };
270
+ /**
271
+ * Creates a preference for the user or updates a preference's value by sending a
272
+ * plain text string. For example, `false`. An arbitrary preference can be created
273
+ * with the value containing up to 255 characters. In addition, the following keys
274
+ * define system preferences that can be set or created:
275
+ *
276
+ * * *user.notifications.mimetype* The mime type used in notifications sent to
277
+ * the user. Defaults to `html`.
278
+ * * *user.default.share.private* Whether new [
279
+ * filters](https://confluence.atlassian.com/x/eQiiLQ) are set to private.
280
+ * Defaults to `true`.
281
+ * * *user.keyboard.shortcuts.disabled* Whether keyboard shortcuts are disabled.
282
+ * Defaults to `false`.
283
+ * * *user.autowatch.disabled* Whether the user automatically watches issues
284
+ * they create or add a comment to. By default, not set: the user takes the
285
+ * instance autowatch setting.
286
+ * * *user.notifiy.own.changes* Whether the user gets notified of their own
287
+ * changes.
288
+ *
289
+ * Note that these keys are deprecated:
290
+ *
291
+ * * *jira.user.locale* The locale of the user. By default, not set. The user
292
+ * takes the instance locale.
293
+ * * *jira.user.timezone* The time zone of the user. By default, not set. The
294
+ * user takes the instance timezone.
295
+ *
296
+ * These system preferences keys will be deprecated by 15/07/2024. You can still
297
+ * use these keys to create arbitrary preferences, but it will not have any impact
298
+ * on Notification behaviour.
299
+ *
300
+ * * *user.notifications.watcher* Whether the user gets notified when they are
301
+ * watcher.
302
+ * * *user.notifications.assignee* Whether the user gets notified when they are
303
+ * assignee.
304
+ * * *user.notifications.reporter* Whether the user gets notified when they are
305
+ * reporter.
306
+ * * *user.notifications.mentions* Whether the user gets notified when they are
307
+ * mentions.
308
+ *
309
+ * Use [ Update a user
310
+ * profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch)
311
+ * from the user management REST API to manage timezone and locale instead.
312
+ *
313
+ * **[Permissions](#permissions) required:** Permission to access Jira.
314
+ *
315
+ * @returns Returned if the request is successful.
316
+ * @path {PUT} /rest/api/3/mypreferences
317
+ * @scopes-current manage:jira-configuration
318
+ * @scopes-beta write:user-configuration:jira
319
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself#api-rest-api-3-mypreferences-put
320
+ */
321
+ this.setPreference = ({ key, mediaType = "application/json", requestBody, }) => {
322
+ return this.getClientInstance()
323
+ .request({
324
+ path: "/rest/api/3/mypreferences",
325
+ method: "PUT",
326
+ query: {
327
+ key,
328
+ },
329
+ headers: {
330
+ "Content-Type": mediaType,
331
+ },
332
+ body: requestBody,
333
+ })
334
+ .then(this.getClientInstance().responseHandler({
335
+ 204: {
336
+ "application/json": "json",
337
+ },
338
+ }))
339
+ .then(commonHttpClient.castResponse())
340
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("MyselfService.setPreference.response"))
341
+ .then(commonHttpClient.getBody);
342
+ };
340
343
  }
341
344
  static initialize() {
342
345
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("MyselfService.getPreference.response", zod_1.z