@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
@@ -22,388 +22,391 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
22
22
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups
23
23
  */
24
24
  class GroupsService extends CommonHttpService_1.CommonHttpService {
25
- /**
26
- * Adds a user to a group.
27
- *
28
- * **[Permissions](#permissions) required:** Site administration (that is, member
29
- * of the *site-admin* [group](https://confluence.atlassian.com/x/24xjL)).
30
- *
31
- * @returns Returned if the request is successful.
32
- * @path {POST} /rest/api/3/group/user
33
- * @scopes-current manage:jira-configuration
34
- * @scopes-beta write:group:jira, read:avatar:jira, read:group:jira, read:user:jira
35
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-user-post
36
- */
37
- addUserToGroup({ groupname, groupId, updateUserToGroupBean, }) {
38
- return this.getClientInstance()
39
- .request({
40
- path: "/rest/api/3/group/user",
41
- method: "POST",
42
- query: {
43
- groupname,
44
- groupId,
45
- },
46
- headers: {
47
- "Content-Type": "application/json",
48
- },
49
- body: updateUserToGroupBean,
50
- })
51
- .then(this.getClientInstance().responseHandler({
52
- 201: {
53
- "application/json": "json",
54
- },
55
- }))
56
- .then(commonHttpClient.castResponse())
57
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.addUserToGroup.response"))
58
- .then(commonHttpClient.getBody);
59
- }
60
- /**
61
- * Returns a [paginated](#pagination) list of groups.
62
- *
63
- * **[Permissions](#permissions) required:** *Browse users and groups* [global
64
- * permission](https://confluence.atlassian.com/x/x4dKLg).
65
- *
66
- * @returns Returned if the request is successful.
67
- *
68
- * example: {
69
- * "isLast": true,
70
- * "maxResults": 10,
71
- * "startAt": 0,
72
- * "total": 2,
73
- * "values": [
74
- * {
75
- * "groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
76
- * "name": "jdog-developers"
77
- * },
78
- * {
79
- * "groupId": "6e87dc72-4f1f-421f-9382-2fee8b652487",
80
- * "name": "juvenal-bot"
81
- * }
82
- * ]
83
- * }
84
- * @path {GET} /rest/api/3/group/bulk
85
- * @scopes-current read:jira-user
86
- * @scopes-beta read:group:jira
87
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-bulk-get
88
- */
89
- bulkGetGroups({ startAt, maxResults, groupId, groupName, accessType, applicationKey, } = {}) {
90
- return this.getClientInstance()
91
- .request({
92
- path: "/rest/api/3/group/bulk",
93
- method: "GET",
94
- query: {
95
- startAt,
96
- maxResults,
97
- groupId,
98
- groupName,
99
- accessType,
100
- applicationKey,
101
- },
102
- })
103
- .then(this.getClientInstance().responseHandler({
104
- 200: {
105
- "application/json": "json",
106
- },
107
- }))
108
- .then(commonHttpClient.castResponse())
109
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.bulkGetGroups.response"))
110
- .then(commonHttpClient.getBody);
111
- }
112
- /**
113
- * Creates a group.
114
- *
115
- * **[Permissions](#permissions) required:** Site administration (that is, member
116
- * of the *site-admin* [group](https://confluence.atlassian.com/x/24xjL)).
117
- *
118
- * @returns Returned if the request is successful.
119
- *
120
- * example: {
121
- * "expand": "users",
122
- * "groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
123
- * "name": "power-users",
124
- * "self":
125
- * "https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625",
126
- * "users": {
127
- * "end-index": 0,
128
- * "items": [
129
- * {
130
- * "accountId": "5b10a2844c20165700ede21g",
131
- * "active": false,
132
- * "displayName": "Mia Krystof",
133
- * "self":
134
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
135
- * }
136
- * ],
137
- * "max-results": 50,
138
- * "size": 1,
139
- * "start-index": 0
140
- * }
141
- * }
142
- * @path {POST} /rest/api/3/group
143
- * @scopes-current manage:jira-configuration
144
- * @scopes-beta read:group:jira, read:user:jira, write:group:jira, read:avatar:jira
145
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-post
146
- */
147
- createGroup({ addGroupBean, }) {
148
- return this.getClientInstance()
149
- .request({
150
- path: "/rest/api/3/group",
151
- method: "POST",
152
- headers: {
153
- "Content-Type": "application/json",
154
- },
155
- body: addGroupBean,
156
- })
157
- .then(this.getClientInstance().responseHandler({
158
- 201: {
159
- "application/json": "json",
160
- },
161
- }))
162
- .then(commonHttpClient.castResponse())
163
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.createGroup.response"))
164
- .then(commonHttpClient.getBody);
165
- }
166
- /**
167
- * Returns a list of groups whose names contain a query string. A list of group
168
- * names can be provided to exclude groups from the results.
169
- *
170
- * The primary use case for this resource is to populate a group picker
171
- * suggestions list. To this end, the returned object includes the `html` field
172
- * where the matched query term is highlighted in the group name with the HTML
173
- * strong tag. Also, the groups list is wrapped in a response object that contains
174
- * a header for use in the picker, specifically *Showing X of Y matching groups*.
175
- *
176
- * The list returns with the groups sorted. If no groups match the list criteria,
177
- * an empty list is returned.
178
- *
179
- * This operation can be accessed anonymously.
180
- *
181
- * **[Permissions](#permissions) required:** *Browse projects* [project
182
- * permission](https://confluence.atlassian.com/x/yodKLg). Anonymous calls and
183
- * calls by users without the required permission return an empty list.
184
- *
185
- * *Browse users and groups* [global
186
- * permission](https://confluence.atlassian.com/x/x4dKLg). Without this
187
- * permission, calls where query is not an exact match to an existing group will
188
- * return an empty list.
189
- *
190
- * @returns Returned if the request is successful.
191
- *
192
- * example: {
193
- * "groups": [
194
- * {
195
- * "groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
196
- * "html": "<b>j</b>dog-developers",
197
- * "name": "jdog-developers"
198
- * },
199
- * {
200
- * "groupId": "6e87dc72-4f1f-421f-9382-2fee8b652487",
201
- * "html": "<b>j</b>uvenal-bot",
202
- * "name": "juvenal-bot"
203
- * }
204
- * ],
205
- * "header": "Showing 20 of 25 matching groups",
206
- * "total": 25
207
- * }
208
- * @path {GET} /rest/api/3/groups/picker
209
- * @scopes-current read:jira-user
210
- * @scopes-beta read:group:jira
211
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-groups-picker-get
212
- */
213
- findGroups({ accountId, query, exclude, excludeId, maxResults, caseInsensitive, userName, } = {}) {
214
- return this.getClientInstance()
215
- .request({
216
- path: "/rest/api/3/groups/picker",
217
- method: "GET",
218
- query: {
219
- accountId,
220
- query,
221
- exclude,
222
- excludeId,
223
- maxResults,
224
- caseInsensitive,
225
- userName,
226
- },
227
- })
228
- .then(this.getClientInstance().responseHandler({
229
- 200: {
230
- "application/json": "json",
231
- },
232
- }))
233
- .then(commonHttpClient.castResponse())
234
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.findGroups.response"))
235
- .then(commonHttpClient.getBody);
236
- }
237
- /**
238
- * This operation is deprecated, use
239
- * [`group/member`](#api-rest-api-3-group-member-get).
240
- *
241
- * Returns all users in a group.
242
- *
243
- * **[Permissions](#permissions) required:** either of:
244
- *
245
- * * *Browse users and groups* [global
246
- * permission](https://confluence.atlassian.com/x/x4dKLg).
247
- * * *Administer Jira* [global
248
- * permission](https://confluence.atlassian.com/x/x4dKLg).
249
- *
250
- * @deprecated
251
- * @returns Returned if the request is successful.
252
- * @path {GET} /rest/api/3/group
253
- * @scopes-current read:jira-user
254
- * @scopes-beta read:group:jira, read:user:jira, read:avatar:jira
255
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-get
256
- */
257
- getGroup({ groupname, groupId, expand, } = {}) {
258
- return this.getClientInstance()
259
- .request({
260
- path: "/rest/api/3/group",
261
- method: "GET",
262
- query: {
263
- groupname,
264
- groupId,
265
- expand,
266
- },
267
- })
268
- .then(this.getClientInstance().responseHandler({
269
- 200: {
270
- "application/json": "json",
271
- },
272
- }))
273
- .then(commonHttpClient.castResponse())
274
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.getGroup.response"))
275
- .then(commonHttpClient.getBody);
276
- }
277
- /**
278
- * Returns a [paginated](#pagination) list of all users in a group.
279
- *
280
- * Note that users are ordered by username, however the username is not returned
281
- * in the results due to privacy reasons.
282
- *
283
- * **[Permissions](#permissions) required:** either of:
284
- *
285
- * * *Browse users and groups* [global
286
- * permission](https://confluence.atlassian.com/x/x4dKLg).
287
- * * *Administer Jira* [global
288
- * permission](https://confluence.atlassian.com/x/x4dKLg).
289
- *
290
- * @returns Returned if the request is successful.
291
- *
292
- * example: {
293
- * "isLast": false,
294
- * "maxResults": 2,
295
- * "nextPage":
296
- * "https://your-domain.atlassian.net/rest/api/3/group/member?groupId=276f955c-63d7-42c8-9520-92d01dca0625&includeInactiveUsers=false&startAt=4&maxResults=2",
297
- * "self":
298
- * "https://your-domain.atlassian.net/rest/api/3/group/member?groupId=276f955c-63d7-42c8-9520-92d01dca0625&includeInactiveUsers=false&startAt=2&maxResults=2",
299
- * "startAt": 3,
300
- * "total": 5,
301
- * "values": [
302
- * {
303
- * "accountId": "5b10a2844c20165700ede21g",
304
- * "accountType": "atlassian",
305
- * "active": true,
306
- * "avatarUrls": {},
307
- * "displayName": "Mia",
308
- * "emailAddress": "mia@example.com",
309
- * "key": "",
310
- * "name": "",
311
- * "self":
312
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
313
- * "timeZone": "Australia/Sydney"
314
- * },
315
- * {
316
- * "accountId": "5b10a0effa615349cb016cd8",
317
- * "accountType": "atlassian",
318
- * "active": false,
319
- * "avatarUrls": {},
320
- * "displayName": "Will",
321
- * "emailAddress": "will@example.com",
322
- * "key": "",
323
- * "name": "",
324
- * "self":
325
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a0effa615349cb016cd8",
326
- * "timeZone": "Australia/Sydney"
327
- * }
328
- * ]
329
- * }
330
- * @path {GET} /rest/api/3/group/member
331
- * @scopes-current manage:jira-configuration
332
- * @scopes-beta read:group:jira, read:user:jira, read:avatar:jira
333
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-member-get
334
- */
335
- getUsersFromGroup({ groupname, groupId, includeInactiveUsers, startAt, maxResults, } = {}) {
336
- return this.getClientInstance()
337
- .request({
338
- path: "/rest/api/3/group/member",
339
- method: "GET",
340
- query: {
341
- groupname,
342
- groupId,
343
- includeInactiveUsers,
344
- startAt,
345
- maxResults,
346
- },
347
- })
348
- .then(this.getClientInstance().responseHandler({
349
- 200: {
350
- "application/json": "json",
351
- },
352
- }))
353
- .then(commonHttpClient.castResponse())
354
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.getUsersFromGroup.response"))
355
- .then(commonHttpClient.getBody);
356
- }
357
- /**
358
- * Deletes a group.
359
- *
360
- * **[Permissions](#permissions) required:** Site administration (that is, member
361
- * of the *site-admin* strategic
362
- * [group](https://confluence.atlassian.com/x/24xjL)).
363
- *
364
- * @path {DELETE} /rest/api/3/group
365
- * @scopes-current manage:jira-configuration
366
- * @scopes-beta delete:group:jira
367
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-delete
368
- */
369
- removeGroup({ groupname, groupId, swapGroup, swapGroupId, } = {}) {
370
- return this.getClientInstance()
371
- .request({
372
- path: "/rest/api/3/group",
373
- method: "DELETE",
374
- query: {
375
- groupname,
376
- groupId,
377
- swapGroup,
378
- swapGroupId,
379
- },
380
- })
381
- .then(commonHttpClient.discardResult);
382
- }
383
- /**
384
- * Removes a user from a group.
385
- *
386
- * **[Permissions](#permissions) required:** Site administration (that is, member
387
- * of the *site-admin* [group](https://confluence.atlassian.com/x/24xjL)).
388
- *
389
- * @path {DELETE} /rest/api/3/group/user
390
- * @scopes-current manage:jira-configuration
391
- * @scopes-beta write:group:jira
392
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-user-delete
393
- */
394
- removeUserFromGroup({ groupname, groupId, username, accountId, }) {
395
- return this.getClientInstance()
396
- .request({
397
- path: "/rest/api/3/group/user",
398
- method: "DELETE",
399
- query: {
400
- groupname,
401
- groupId,
402
- username,
403
- accountId,
404
- },
405
- })
406
- .then(commonHttpClient.discardResult);
25
+ constructor() {
26
+ super(...arguments);
27
+ /**
28
+ * Adds a user to a group.
29
+ *
30
+ * **[Permissions](#permissions) required:** Site administration (that is, member
31
+ * of the *site-admin* [group](https://confluence.atlassian.com/x/24xjL)).
32
+ *
33
+ * @returns Returned if the request is successful.
34
+ * @path {POST} /rest/api/3/group/user
35
+ * @scopes-current manage:jira-configuration
36
+ * @scopes-beta write:group:jira, read:avatar:jira, read:group:jira, read:user:jira
37
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-user-post
38
+ */
39
+ this.addUserToGroup = ({ groupname, groupId, updateUserToGroupBean, }) => {
40
+ return this.getClientInstance()
41
+ .request({
42
+ path: "/rest/api/3/group/user",
43
+ method: "POST",
44
+ query: {
45
+ groupname,
46
+ groupId,
47
+ },
48
+ headers: {
49
+ "Content-Type": "application/json",
50
+ },
51
+ body: updateUserToGroupBean,
52
+ })
53
+ .then(this.getClientInstance().responseHandler({
54
+ 201: {
55
+ "application/json": "json",
56
+ },
57
+ }))
58
+ .then(commonHttpClient.castResponse())
59
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.addUserToGroup.response"))
60
+ .then(commonHttpClient.getBody);
61
+ };
62
+ /**
63
+ * Returns a [paginated](#pagination) list of groups.
64
+ *
65
+ * **[Permissions](#permissions) required:** *Browse users and groups* [global
66
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
67
+ *
68
+ * @returns Returned if the request is successful.
69
+ *
70
+ * example: {
71
+ * "isLast": true,
72
+ * "maxResults": 10,
73
+ * "startAt": 0,
74
+ * "total": 2,
75
+ * "values": [
76
+ * {
77
+ * "groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
78
+ * "name": "jdog-developers"
79
+ * },
80
+ * {
81
+ * "groupId": "6e87dc72-4f1f-421f-9382-2fee8b652487",
82
+ * "name": "juvenal-bot"
83
+ * }
84
+ * ]
85
+ * }
86
+ * @path {GET} /rest/api/3/group/bulk
87
+ * @scopes-current read:jira-user
88
+ * @scopes-beta read:group:jira
89
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-bulk-get
90
+ */
91
+ this.bulkGetGroups = ({ startAt, maxResults, groupId, groupName, accessType, applicationKey, } = {}) => {
92
+ return this.getClientInstance()
93
+ .request({
94
+ path: "/rest/api/3/group/bulk",
95
+ method: "GET",
96
+ query: {
97
+ startAt,
98
+ maxResults,
99
+ groupId,
100
+ groupName,
101
+ accessType,
102
+ applicationKey,
103
+ },
104
+ })
105
+ .then(this.getClientInstance().responseHandler({
106
+ 200: {
107
+ "application/json": "json",
108
+ },
109
+ }))
110
+ .then(commonHttpClient.castResponse())
111
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.bulkGetGroups.response"))
112
+ .then(commonHttpClient.getBody);
113
+ };
114
+ /**
115
+ * Creates a group.
116
+ *
117
+ * **[Permissions](#permissions) required:** Site administration (that is, member
118
+ * of the *site-admin* [group](https://confluence.atlassian.com/x/24xjL)).
119
+ *
120
+ * @returns Returned if the request is successful.
121
+ *
122
+ * example: {
123
+ * "expand": "users",
124
+ * "groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
125
+ * "name": "power-users",
126
+ * "self":
127
+ * "https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625",
128
+ * "users": {
129
+ * "end-index": 0,
130
+ * "items": [
131
+ * {
132
+ * "accountId": "5b10a2844c20165700ede21g",
133
+ * "active": false,
134
+ * "displayName": "Mia Krystof",
135
+ * "self":
136
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
137
+ * }
138
+ * ],
139
+ * "max-results": 50,
140
+ * "size": 1,
141
+ * "start-index": 0
142
+ * }
143
+ * }
144
+ * @path {POST} /rest/api/3/group
145
+ * @scopes-current manage:jira-configuration
146
+ * @scopes-beta read:group:jira, read:user:jira, write:group:jira, read:avatar:jira
147
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-post
148
+ */
149
+ this.createGroup = ({ addGroupBean, }) => {
150
+ return this.getClientInstance()
151
+ .request({
152
+ path: "/rest/api/3/group",
153
+ method: "POST",
154
+ headers: {
155
+ "Content-Type": "application/json",
156
+ },
157
+ body: addGroupBean,
158
+ })
159
+ .then(this.getClientInstance().responseHandler({
160
+ 201: {
161
+ "application/json": "json",
162
+ },
163
+ }))
164
+ .then(commonHttpClient.castResponse())
165
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.createGroup.response"))
166
+ .then(commonHttpClient.getBody);
167
+ };
168
+ /**
169
+ * Returns a list of groups whose names contain a query string. A list of group
170
+ * names can be provided to exclude groups from the results.
171
+ *
172
+ * The primary use case for this resource is to populate a group picker
173
+ * suggestions list. To this end, the returned object includes the `html` field
174
+ * where the matched query term is highlighted in the group name with the HTML
175
+ * strong tag. Also, the groups list is wrapped in a response object that contains
176
+ * a header for use in the picker, specifically *Showing X of Y matching groups*.
177
+ *
178
+ * The list returns with the groups sorted. If no groups match the list criteria,
179
+ * an empty list is returned.
180
+ *
181
+ * This operation can be accessed anonymously.
182
+ *
183
+ * **[Permissions](#permissions) required:** *Browse projects* [project
184
+ * permission](https://confluence.atlassian.com/x/yodKLg). Anonymous calls and
185
+ * calls by users without the required permission return an empty list.
186
+ *
187
+ * *Browse users and groups* [global
188
+ * permission](https://confluence.atlassian.com/x/x4dKLg). Without this
189
+ * permission, calls where query is not an exact match to an existing group will
190
+ * return an empty list.
191
+ *
192
+ * @returns Returned if the request is successful.
193
+ *
194
+ * example: {
195
+ * "groups": [
196
+ * {
197
+ * "groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
198
+ * "html": "<b>j</b>dog-developers",
199
+ * "name": "jdog-developers"
200
+ * },
201
+ * {
202
+ * "groupId": "6e87dc72-4f1f-421f-9382-2fee8b652487",
203
+ * "html": "<b>j</b>uvenal-bot",
204
+ * "name": "juvenal-bot"
205
+ * }
206
+ * ],
207
+ * "header": "Showing 20 of 25 matching groups",
208
+ * "total": 25
209
+ * }
210
+ * @path {GET} /rest/api/3/groups/picker
211
+ * @scopes-current read:jira-user
212
+ * @scopes-beta read:group:jira
213
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-groups-picker-get
214
+ */
215
+ this.findGroups = ({ accountId, query, exclude, excludeId, maxResults, caseInsensitive, userName, } = {}) => {
216
+ return this.getClientInstance()
217
+ .request({
218
+ path: "/rest/api/3/groups/picker",
219
+ method: "GET",
220
+ query: {
221
+ accountId,
222
+ query,
223
+ exclude,
224
+ excludeId,
225
+ maxResults,
226
+ caseInsensitive,
227
+ userName,
228
+ },
229
+ })
230
+ .then(this.getClientInstance().responseHandler({
231
+ 200: {
232
+ "application/json": "json",
233
+ },
234
+ }))
235
+ .then(commonHttpClient.castResponse())
236
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.findGroups.response"))
237
+ .then(commonHttpClient.getBody);
238
+ };
239
+ /**
240
+ * This operation is deprecated, use
241
+ * [`group/member`](#api-rest-api-3-group-member-get).
242
+ *
243
+ * Returns all users in a group.
244
+ *
245
+ * **[Permissions](#permissions) required:** either of:
246
+ *
247
+ * * *Browse users and groups* [global
248
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
249
+ * * *Administer Jira* [global
250
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
251
+ *
252
+ * @deprecated
253
+ * @returns Returned if the request is successful.
254
+ * @path {GET} /rest/api/3/group
255
+ * @scopes-current read:jira-user
256
+ * @scopes-beta read:group:jira, read:user:jira, read:avatar:jira
257
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-get
258
+ */
259
+ this.getGroup = ({ groupname, groupId, expand, } = {}) => {
260
+ return this.getClientInstance()
261
+ .request({
262
+ path: "/rest/api/3/group",
263
+ method: "GET",
264
+ query: {
265
+ groupname,
266
+ groupId,
267
+ expand,
268
+ },
269
+ })
270
+ .then(this.getClientInstance().responseHandler({
271
+ 200: {
272
+ "application/json": "json",
273
+ },
274
+ }))
275
+ .then(commonHttpClient.castResponse())
276
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.getGroup.response"))
277
+ .then(commonHttpClient.getBody);
278
+ };
279
+ /**
280
+ * Returns a [paginated](#pagination) list of all users in a group.
281
+ *
282
+ * Note that users are ordered by username, however the username is not returned
283
+ * in the results due to privacy reasons.
284
+ *
285
+ * **[Permissions](#permissions) required:** either of:
286
+ *
287
+ * * *Browse users and groups* [global
288
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
289
+ * * *Administer Jira* [global
290
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
291
+ *
292
+ * @returns Returned if the request is successful.
293
+ *
294
+ * example: {
295
+ * "isLast": false,
296
+ * "maxResults": 2,
297
+ * "nextPage":
298
+ * "https://your-domain.atlassian.net/rest/api/3/group/member?groupId=276f955c-63d7-42c8-9520-92d01dca0625&includeInactiveUsers=false&startAt=4&maxResults=2",
299
+ * "self":
300
+ * "https://your-domain.atlassian.net/rest/api/3/group/member?groupId=276f955c-63d7-42c8-9520-92d01dca0625&includeInactiveUsers=false&startAt=2&maxResults=2",
301
+ * "startAt": 3,
302
+ * "total": 5,
303
+ * "values": [
304
+ * {
305
+ * "accountId": "5b10a2844c20165700ede21g",
306
+ * "accountType": "atlassian",
307
+ * "active": true,
308
+ * "avatarUrls": {},
309
+ * "displayName": "Mia",
310
+ * "emailAddress": "mia@example.com",
311
+ * "key": "",
312
+ * "name": "",
313
+ * "self":
314
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
315
+ * "timeZone": "Australia/Sydney"
316
+ * },
317
+ * {
318
+ * "accountId": "5b10a0effa615349cb016cd8",
319
+ * "accountType": "atlassian",
320
+ * "active": false,
321
+ * "avatarUrls": {},
322
+ * "displayName": "Will",
323
+ * "emailAddress": "will@example.com",
324
+ * "key": "",
325
+ * "name": "",
326
+ * "self":
327
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a0effa615349cb016cd8",
328
+ * "timeZone": "Australia/Sydney"
329
+ * }
330
+ * ]
331
+ * }
332
+ * @path {GET} /rest/api/3/group/member
333
+ * @scopes-current manage:jira-configuration
334
+ * @scopes-beta read:group:jira, read:user:jira, read:avatar:jira
335
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-member-get
336
+ */
337
+ this.getUsersFromGroup = ({ groupname, groupId, includeInactiveUsers, startAt, maxResults, } = {}) => {
338
+ return this.getClientInstance()
339
+ .request({
340
+ path: "/rest/api/3/group/member",
341
+ method: "GET",
342
+ query: {
343
+ groupname,
344
+ groupId,
345
+ includeInactiveUsers,
346
+ startAt,
347
+ maxResults,
348
+ },
349
+ })
350
+ .then(this.getClientInstance().responseHandler({
351
+ 200: {
352
+ "application/json": "json",
353
+ },
354
+ }))
355
+ .then(commonHttpClient.castResponse())
356
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupsService.getUsersFromGroup.response"))
357
+ .then(commonHttpClient.getBody);
358
+ };
359
+ /**
360
+ * Deletes a group.
361
+ *
362
+ * **[Permissions](#permissions) required:** Site administration (that is, member
363
+ * of the *site-admin* strategic
364
+ * [group](https://confluence.atlassian.com/x/24xjL)).
365
+ *
366
+ * @path {DELETE} /rest/api/3/group
367
+ * @scopes-current manage:jira-configuration
368
+ * @scopes-beta delete:group:jira
369
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-delete
370
+ */
371
+ this.removeGroup = ({ groupname, groupId, swapGroup, swapGroupId, } = {}) => {
372
+ return this.getClientInstance()
373
+ .request({
374
+ path: "/rest/api/3/group",
375
+ method: "DELETE",
376
+ query: {
377
+ groupname,
378
+ groupId,
379
+ swapGroup,
380
+ swapGroupId,
381
+ },
382
+ })
383
+ .then(commonHttpClient.discardResult);
384
+ };
385
+ /**
386
+ * Removes a user from a group.
387
+ *
388
+ * **[Permissions](#permissions) required:** Site administration (that is, member
389
+ * of the *site-admin* [group](https://confluence.atlassian.com/x/24xjL)).
390
+ *
391
+ * @path {DELETE} /rest/api/3/group/user
392
+ * @scopes-current manage:jira-configuration
393
+ * @scopes-beta write:group:jira
394
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups#api-rest-api-3-group-user-delete
395
+ */
396
+ this.removeUserFromGroup = ({ groupname, groupId, username, accountId, }) => {
397
+ return this.getClientInstance()
398
+ .request({
399
+ path: "/rest/api/3/group/user",
400
+ method: "DELETE",
401
+ query: {
402
+ groupname,
403
+ groupId,
404
+ username,
405
+ accountId,
406
+ },
407
+ })
408
+ .then(commonHttpClient.discardResult);
409
+ };
407
410
  }
408
411
  static initialize() {
409
412
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("GroupsService.getGroup.response", zod_1.z