@resolution/jira-api-client 0.4.4 → 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 (326) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  5. package/lib/openapi/platform/models/common.d.ts +6 -0
  6. package/lib/openapi/platform/models/common.js +12 -1
  7. package/lib/openapi/platform/models/common.js.map +1 -1
  8. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  9. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  10. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  11. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  12. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  14. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  15. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  17. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  18. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  20. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  21. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  22. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  23. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  24. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  25. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  26. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  27. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  28. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  29. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  30. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  31. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  32. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  33. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  34. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  35. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  36. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  38. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  39. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  40. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  41. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  42. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  43. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  44. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  45. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  46. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  47. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  48. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  49. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  50. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  53. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  54. package/lib/openapi/platform/services/GroupsService.js +385 -382
  55. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  56. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  57. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  59. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  62. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  65. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  66. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  67. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  68. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  71. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  74. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  80. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  83. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  86. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  87. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  88. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  89. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  90. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  92. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  93. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  94. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  95. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  98. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  101. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  102. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  104. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  105. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  106. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  107. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  110. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  111. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  112. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  113. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  114. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  115. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  116. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  119. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  122. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  125. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  128. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  131. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  132. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  133. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  134. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  135. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  136. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  137. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  138. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  139. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  140. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  143. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  144. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  145. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  146. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  147. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  148. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  149. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  150. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  151. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  152. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  153. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  154. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  155. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  158. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  159. package/lib/openapi/platform/services/JqlService.js +635 -632
  160. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  161. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  162. package/lib/openapi/platform/services/LabelsService.js +41 -38
  163. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  164. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  165. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  166. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  167. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  168. package/lib/openapi/platform/services/MyselfService.js +321 -318
  169. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  170. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  171. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  172. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  173. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  174. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  175. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  176. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  177. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  178. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  179. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  180. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  182. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  183. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  185. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  188. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  189. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  190. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  191. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  192. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  193. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  194. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  195. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  197. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  200. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  203. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  204. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  206. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  209. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  210. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  211. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  212. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  213. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  214. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  215. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  216. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  217. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  218. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  219. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  220. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  221. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  222. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  223. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  224. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  227. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  228. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  229. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  230. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  231. package/lib/openapi/platform/services/ScreensService.js +281 -278
  232. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  233. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  235. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  236. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  237. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  238. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  239. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  240. package/lib/openapi/platform/services/StatusService.js +271 -268
  241. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  242. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  243. package/lib/openapi/platform/services/TasksService.js +93 -90
  244. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  245. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  246. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  247. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  248. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  249. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  251. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  252. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  253. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  254. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  255. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  256. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  257. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  258. package/lib/openapi/platform/services/UsersService.js +637 -634
  259. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  260. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  261. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  262. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  263. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  266. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  269. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  270. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  272. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  275. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  276. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  278. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  281. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  284. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  285. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  286. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  287. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  288. package/lib/openapi/software/services/BacklogService.js +81 -78
  289. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  290. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  291. package/lib/openapi/software/services/BoardService.js +2048 -2045
  292. package/lib/openapi/software/services/BoardService.js.map +1 -1
  293. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  294. package/lib/openapi/software/services/BuildsService.js +164 -161
  295. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  296. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  297. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  298. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  299. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  300. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  301. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  302. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  303. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  304. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  305. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  306. package/lib/openapi/software/services/EpicService.js +597 -594
  307. package/lib/openapi/software/services/EpicService.js.map +1 -1
  308. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  309. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  310. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  311. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  312. package/lib/openapi/software/services/IssueService.js +359 -356
  313. package/lib/openapi/software/services/IssueService.js.map +1 -1
  314. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  315. package/lib/openapi/software/services/OperationsService.js +301 -298
  316. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  317. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  318. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  319. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  320. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  321. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  322. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  323. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  324. package/lib/openapi/software/services/SprintService.js +594 -591
  325. package/lib/openapi/software/services/SprintService.js.map +1 -1
  326. package/package.json +4 -3
@@ -17,579 +17,582 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
17
17
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles
18
18
  */
19
19
  class ProjectRolesService extends CommonHttpService_1.CommonHttpService {
20
- /**
21
- * Creates a new project role with no [default
22
- * actors](#api-rest-api-3-resolution-get). You can use the [Add default actors to
23
- * project role](#api-rest-api-3-role-id-actors-post) operation to add default
24
- * actors to the project role after creating it.
25
- *
26
- * *Note that although a new project role is available to all projects upon
27
- * creation, any default actors that are associated with the project role are not
28
- * added to projects that existed prior to the role being created.*<
29
- *
30
- * **[Permissions](#permissions) required:** *Administer Jira* [global
31
- * permission](https://confluence.atlassian.com/x/x4dKLg).
32
- *
33
- * @returns Returned if the request is successful.
34
- *
35
- * example: {
36
- * "description": "A project role that represents developers in a project",
37
- * "id": 10360,
38
- * "name": "Developers",
39
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
40
- * }
41
- * @path {POST} /rest/api/3/role
42
- * @scopes-current manage:jira-configuration
43
- * @scopes-beta read:user:jira, read:group:jira, read:project:jira, write:project-role:jira,
44
- * read:avatar:jira, read:project-category:jira, read:project-role:jira
45
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-post
46
- */
47
- createProjectRole({ createUpdateRoleRequestBean, }) {
48
- return this.getClientInstance()
49
- .request({
50
- path: "/rest/api/3/role",
51
- method: "POST",
52
- headers: {
53
- "Content-Type": "application/json",
54
- },
55
- body: createUpdateRoleRequestBean,
56
- })
57
- .then(this.getClientInstance().responseHandler({
58
- 200: {
59
- "application/json": "json",
60
- },
61
- }))
62
- .then(commonHttpClient.castResponse())
63
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.createProjectRole.response"))
64
- .then(commonHttpClient.getBody);
65
- }
66
- /**
67
- * Deletes a project role. You must specify a replacement project role if you wish
68
- * to delete a project role that is in use.
69
- *
70
- * **[Permissions](#permissions) required:** *Administer Jira* [global
71
- * permission](https://confluence.atlassian.com/x/x4dKLg).
72
- *
73
- * @path {DELETE} /rest/api/3/role/{id}
74
- * @scopes-current manage:jira-configuration
75
- * @scopes-beta delete:project-role:jira
76
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-delete
77
- */
78
- deleteProjectRole({ id, swap, }) {
79
- return this.getClientInstance()
80
- .request({
81
- path: "/rest/api/3/role/{id}",
82
- method: "DELETE",
83
- pathParams: {
84
- id,
85
- },
86
- query: {
87
- swap,
88
- },
89
- })
90
- .then(commonHttpClient.discardResult);
91
- }
92
- /**
93
- * Updates the project role's name and description. You must include both a name
94
- * and a description in the request.
95
- *
96
- * **[Permissions](#permissions) required:** *Administer Jira* [global
97
- * permission](https://confluence.atlassian.com/x/x4dKLg).
98
- *
99
- * @returns Returned if the request is successful.
100
- *
101
- * example: {
102
- * "actors": [
103
- * {
104
- * "actorGroup": {
105
- * "displayName": "jira-developers",
106
- * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
107
- * "name": "jira-developers"
108
- * },
109
- * "displayName": "jira-developers",
110
- * "id": 10240,
111
- * "name": "jira-developers",
112
- * "type": "atlassian-group-role-actor",
113
- * "user": "jira-developers"
114
- * },
115
- * {
116
- * "actorUser": {
117
- * "accountId": "5b10a2844c20165700ede21g"
118
- * },
119
- * "displayName": "Mia Krystof",
120
- * "id": 10241,
121
- * "type": "atlassian-user-role-actor"
122
- * }
123
- * ],
124
- * "description": "A project role that represents developers in a project",
125
- * "id": 10360,
126
- * "name": "Developers",
127
- * "scope": {
128
- * "project": {
129
- * "id": "10000",
130
- * "key": "KEY",
131
- * "name": "Next Gen Project"
132
- * },
133
- * "type": "PROJECT"
134
- * },
135
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
136
- * }
137
- * @path {PUT} /rest/api/3/role/{id}
138
- * @scopes-current manage:jira-configuration
139
- * @scopes-beta read:user:jira, read:group:jira, read:project:jira, write:project-role:jira,
140
- * read:avatar:jira, read:project-category:jira, read:project-role:jira
141
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-put
142
- */
143
- fullyUpdateProjectRole({ id, createUpdateRoleRequestBean, }) {
144
- return this.getClientInstance()
145
- .request({
146
- path: "/rest/api/3/role/{id}",
147
- method: "PUT",
148
- pathParams: {
149
- id,
150
- },
151
- headers: {
152
- "Content-Type": "application/json",
153
- },
154
- body: createUpdateRoleRequestBean,
155
- })
156
- .then(this.getClientInstance().responseHandler({
157
- 200: {
158
- "application/json": "json",
159
- },
160
- }))
161
- .then(commonHttpClient.castResponse())
162
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.fullyUpdateProjectRole.response"))
163
- .then(commonHttpClient.getBody);
164
- }
165
- /**
166
- * Gets a list of all project roles, complete with project role details and
167
- * default actors.
168
- *
169
- * ### About project roles ###
170
- *
171
- * [Project
172
- * roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/)
173
- * are a flexible way to to associate users and groups with projects. In Jira
174
- * Cloud, the list of project roles is shared globally with all projects, but each
175
- * project can have a different set of actors associated with it (unlike groups,
176
- * which have the same membership throughout all Jira applications).
177
- *
178
- * Project roles are used in [permission
179
- * schemes](#api-rest-api-3-permissionscheme-get), [email notification
180
- * schemes](#api-rest-api-3-notificationscheme-get), [issue security
181
- * levels](#api-rest-api-3-issuesecurityschemes-get), [comment
182
- * visibility](#api-rest-api-3-comment-list-post), and workflow conditions.
183
- *
184
- * #### Members and actors ####
185
- *
186
- * In the Jira REST API, a member of a project role is called an *actor*. An
187
- * *actor* is a group or user associated with a project role.
188
- *
189
- * Actors may be set as [default
190
- * members](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/#Specifying-'default-members'-for-a-project-role)
191
- * of the project role or set at the project level:
192
- *
193
- * * Default actors: Users and groups that are assigned to the project role for
194
- * all newly created projects. The default actors can be removed at the project
195
- * level later if desired.
196
- * * Actors: Users and groups that are associated with a project role for a
197
- * project, which may differ from the default actors. This enables you to assign a
198
- * user to different roles in different projects.
199
- *
200
- * **[Permissions](#permissions) required:** *Administer Jira* [global
201
- * permission](https://confluence.atlassian.com/x/x4dKLg).
202
- *
203
- * @returns Returned if the request is successful.
204
- *
205
- * example: [
206
- * {
207
- * "actors": [
208
- * {
209
- * "actorGroup": {
210
- * "displayName": "jira-developers",
211
- * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
212
- * "name": "jira-developers"
213
- * },
214
- * "displayName": "jira-developers",
215
- * "id": 10240,
216
- * "name": "jira-developers",
217
- * "type": "atlassian-group-role-actor",
218
- * "user": "jira-developers"
219
- * },
220
- * {
221
- * "actorUser": {
222
- * "accountId": "5b10a2844c20165700ede21g"
223
- * },
224
- * "displayName": "Mia Krystof",
225
- * "id": 10241,
226
- * "type": "atlassian-user-role-actor"
227
- * }
228
- * ],
229
- * "description": "A project role that represents developers in a project",
230
- * "id": 10360,
231
- * "name": "Developers",
232
- * "scope": {
233
- * "project": {
234
- * "id": "10000",
235
- * "key": "KEY",
236
- * "name": "Next Gen Project"
237
- * },
238
- * "type": "PROJECT"
239
- * },
240
- * "self":
241
- * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
242
- * }
243
- * ]
244
- * @path {GET} /rest/api/3/role
245
- * @scopes-current manage:jira-configuration
246
- * @scopes-beta read:user:jira, read:group:jira, read:project-role:jira, read:project:jira,
247
- * read:avatar:jira, read:project-category:jira
248
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-get
249
- */
250
- getAllProjectRoles() {
251
- return this.getClientInstance()
252
- .request({
253
- path: "/rest/api/3/role",
254
- method: "GET",
255
- })
256
- .then(this.getClientInstance().responseHandler({
257
- 200: {
258
- "application/json": "json",
259
- },
260
- }))
261
- .then(commonHttpClient.castResponse())
262
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getAllProjectRoles.response"))
263
- .then(commonHttpClient.getBody);
264
- }
265
- /**
266
- * Returns a project role's details and actors associated with the project. The
267
- * list of actors is sorted by display name.
268
- *
269
- * To check whether a user belongs to a role based on their group memberships, use
270
- * [Get user](#api-rest-api-3-user-get) with the `groups` expand parameter
271
- * selected. Then check whether the user keys and groups match with the actors
272
- * returned for the project.
273
- *
274
- * This operation can be accessed anonymously.
275
- *
276
- * **[Permissions](#permissions) required:** *Administer Projects* [project
277
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project or
278
- * *Administer Jira* [global
279
- * permission](https://confluence.atlassian.com/x/x4dKLg).
280
- *
281
- * @returns Returned if the request is successful.
282
- *
283
- * example: {
284
- * "actors": [
285
- * {
286
- * "actorGroup": {
287
- * "displayName": "jira-developers",
288
- * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
289
- * "name": "jira-developers"
290
- * },
291
- * "displayName": "jira-developers",
292
- * "id": 10240,
293
- * "name": "jira-developers",
294
- * "type": "atlassian-group-role-actor",
295
- * "user": "jira-developers"
296
- * },
297
- * {
298
- * "actorUser": {
299
- * "accountId": "5b10a2844c20165700ede21g"
300
- * },
301
- * "displayName": "Mia Krystof",
302
- * "id": 10241,
303
- * "type": "atlassian-user-role-actor"
304
- * }
305
- * ],
306
- * "description": "A project role that represents developers in a project",
307
- * "id": 10360,
308
- * "name": "Developers",
309
- * "scope": {
310
- * "project": {
311
- * "id": "10000",
312
- * "key": "KEY",
313
- * "name": "Next Gen Project"
314
- * },
315
- * "type": "PROJECT"
316
- * },
317
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
318
- * }
319
- * @path {GET} /rest/api/3/project/{projectIdOrKey}/role/{id}
320
- * @scopes-current read:jira-work
321
- * @scopes-beta read:user:jira, read:group:jira, read:project-role:jira, read:project:jira,
322
- * read:avatar:jira, read:project-category:jira
323
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-project-projectidorkey-role-id-get
324
- */
325
- getProjectRole({ projectIdOrKey, id, excludeInactiveUsers, }) {
326
- return this.getClientInstance()
327
- .request({
328
- path: "/rest/api/3/project/{projectIdOrKey}/role/{id}",
329
- method: "GET",
330
- pathParams: {
331
- projectIdOrKey,
332
- id,
333
- },
334
- query: {
335
- excludeInactiveUsers,
336
- },
337
- })
338
- .then(this.getClientInstance().responseHandler({
339
- 200: {
340
- "application/json": "json",
341
- },
342
- }))
343
- .then(commonHttpClient.castResponse())
344
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRole.response"))
345
- .then(commonHttpClient.getBody);
346
- }
347
- /**
348
- * Gets the project role details and the default actors associated with the role.
349
- * The list of default actors is sorted by display name.
350
- *
351
- * **[Permissions](#permissions) required:** *Administer Jira* [global
352
- * permission](https://confluence.atlassian.com/x/x4dKLg).
353
- *
354
- * @returns Returned if the request is successful.
355
- *
356
- * example: {
357
- * "actors": [
358
- * {
359
- * "actorGroup": {
360
- * "displayName": "jira-developers",
361
- * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
362
- * "name": "jira-developers"
363
- * },
364
- * "displayName": "jira-developers",
365
- * "id": 10240,
366
- * "name": "jira-developers",
367
- * "type": "atlassian-group-role-actor",
368
- * "user": "jira-developers"
369
- * },
370
- * {
371
- * "actorUser": {
372
- * "accountId": "5b10a2844c20165700ede21g"
373
- * },
374
- * "displayName": "Mia Krystof",
375
- * "id": 10241,
376
- * "type": "atlassian-user-role-actor"
377
- * }
378
- * ],
379
- * "description": "A project role that represents developers in a project",
380
- * "id": 10360,
381
- * "name": "Developers",
382
- * "scope": {
383
- * "project": {
384
- * "id": "10000",
385
- * "key": "KEY",
386
- * "name": "Next Gen Project"
387
- * },
388
- * "type": "PROJECT"
389
- * },
390
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
391
- * }
392
- * @path {GET} /rest/api/3/role/{id}
393
- * @scopes-current manage:jira-configuration
394
- * @scopes-beta read:user:jira, read:group:jira, read:project-role:jira, read:project:jira,
395
- * read:avatar:jira, read:project-category:jira
396
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-get
397
- */
398
- getProjectRoleById({ id, }) {
399
- return this.getClientInstance()
400
- .request({
401
- path: "/rest/api/3/role/{id}",
402
- method: "GET",
403
- pathParams: {
404
- id,
405
- },
406
- })
407
- .then(this.getClientInstance().responseHandler({
408
- 200: {
409
- "application/json": "json",
410
- },
411
- }))
412
- .then(commonHttpClient.castResponse())
413
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRoleById.response"))
414
- .then(commonHttpClient.getBody);
415
- }
416
- /**
417
- * Returns all [project
418
- * roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/)
419
- * and the details for each role. Note that the list of project roles is common to
420
- * all projects.
421
- *
422
- * This operation can be accessed anonymously.
423
- *
424
- * **[Permissions](#permissions) required:** *Administer Jira* [global
425
- * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer projects*
426
- * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project.
427
- *
428
- * @returns Returned if the request is successful.
429
- *
430
- * example: [
431
- * {
432
- * "self":
433
- * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360",
434
- * "name": "Developers",
435
- * "id": 10360,
436
- * "description": "A project role that represents developers in a project",
437
- * "admin": false,
438
- * "default": true,
439
- * "roleConfigurable": true,
440
- * "translatedName": "Developers"
441
- * }
442
- * ]
443
- * @path {GET} /rest/api/3/project/{projectIdOrKey}/roledetails
444
- * @scopes-current read:jira-work
445
- * @scopes-beta read:project-category:jira, read:project-role:jira, read:project:jira,
446
- * read:avatar:jira
447
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-project-projectidorkey-roledetails-get
448
- */
449
- getProjectRoleDetails({ projectIdOrKey, currentMember, excludeConnectAddons, }) {
450
- return this.getClientInstance()
451
- .request({
452
- path: "/rest/api/3/project/{projectIdOrKey}/roledetails",
453
- method: "GET",
454
- pathParams: {
455
- projectIdOrKey,
456
- },
457
- query: {
458
- currentMember,
459
- excludeConnectAddons,
460
- },
461
- })
462
- .then(this.getClientInstance().responseHandler({
463
- 200: {
464
- "application/json": "json",
465
- },
466
- }))
467
- .then(commonHttpClient.castResponse())
468
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRoleDetails.response"))
469
- .then(commonHttpClient.getBody);
470
- }
471
- /**
472
- * Returns a list of [project
473
- * roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/)
474
- * for the project returning the name and self URL for each role.
475
- *
476
- * Note that all project roles are shared with all projects in Jira Cloud. See
477
- * [Get all project roles](#api-rest-api-3-role-get) for more information.
478
- *
479
- * This operation can be accessed anonymously.
480
- *
481
- * **[Permissions](#permissions) required:** *Administer Projects* [project
482
- * permission](https://confluence.atlassian.com/x/yodKLg) for any project on the
483
- * site or *Administer Jira* [global
484
- * permission](https://confluence.atlassian.com/x/x4dKLg).
485
- *
486
- * @returns Returned if the request is successful.
487
- *
488
- * example: {
489
- * "Administrators":
490
- * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10002",
491
- * "Developers":
492
- * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10000",
493
- * "Users": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10001"
494
- * }
495
- * @path {GET} /rest/api/3/project/{projectIdOrKey}/role
496
- * @scopes-current read:jira-work
497
- * @scopes-beta read:project-role:jira
498
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-project-projectidorkey-role-get
499
- */
500
- getProjectRoles({ projectIdOrKey, }) {
501
- return this.getClientInstance()
502
- .request({
503
- path: "/rest/api/3/project/{projectIdOrKey}/role",
504
- method: "GET",
505
- pathParams: {
506
- projectIdOrKey,
507
- },
508
- })
509
- .then(this.getClientInstance().responseHandler({
510
- 200: {
511
- "application/json": "json",
512
- },
513
- }))
514
- .then(commonHttpClient.castResponse())
515
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRoles.response"))
516
- .then(commonHttpClient.getBody);
517
- }
518
- /**
519
- * Updates either the project role's name or its description.
520
- *
521
- * You cannot update both the name and description at the same time using this
522
- * operation. If you send a request with a name and a description only the name is
523
- * updated.
524
- *
525
- * **[Permissions](#permissions) required:** *Administer Jira* [global
526
- * permission](https://confluence.atlassian.com/x/x4dKLg).
527
- *
528
- * @returns Returned if the request is successful.
529
- *
530
- * example: {
531
- * "actors": [
532
- * {
533
- * "actorGroup": {
534
- * "displayName": "jira-developers",
535
- * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
536
- * "name": "jira-developers"
537
- * },
538
- * "displayName": "jira-developers",
539
- * "id": 10240,
540
- * "name": "jira-developers",
541
- * "type": "atlassian-group-role-actor",
542
- * "user": "jira-developers"
543
- * },
544
- * {
545
- * "actorUser": {
546
- * "accountId": "5b10a2844c20165700ede21g"
547
- * },
548
- * "displayName": "Mia Krystof",
549
- * "id": 10241,
550
- * "type": "atlassian-user-role-actor"
551
- * }
552
- * ],
553
- * "description": "A project role that represents developers in a project",
554
- * "id": 10360,
555
- * "name": "Developers",
556
- * "scope": {
557
- * "project": {
558
- * "id": "10000",
559
- * "key": "KEY",
560
- * "name": "Next Gen Project"
561
- * },
562
- * "type": "PROJECT"
563
- * },
564
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
565
- * }
566
- * @path {POST} /rest/api/3/role/{id}
567
- * @scopes-current manage:jira-configuration
568
- * @scopes-beta read:user:jira, read:group:jira, read:project:jira, write:project-role:jira,
569
- * read:avatar:jira, read:project-category:jira, read:project-role:jira
570
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-post
571
- */
572
- partialUpdateProjectRole({ id, createUpdateRoleRequestBean, }) {
573
- return this.getClientInstance()
574
- .request({
575
- path: "/rest/api/3/role/{id}",
576
- method: "POST",
577
- pathParams: {
578
- id,
579
- },
580
- headers: {
581
- "Content-Type": "application/json",
582
- },
583
- body: createUpdateRoleRequestBean,
584
- })
585
- .then(this.getClientInstance().responseHandler({
586
- 200: {
587
- "application/json": "json",
588
- },
589
- }))
590
- .then(commonHttpClient.castResponse())
591
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.partialUpdateProjectRole.response"))
592
- .then(commonHttpClient.getBody);
20
+ constructor() {
21
+ super(...arguments);
22
+ /**
23
+ * Creates a new project role with no [default
24
+ * actors](#api-rest-api-3-resolution-get). You can use the [Add default actors to
25
+ * project role](#api-rest-api-3-role-id-actors-post) operation to add default
26
+ * actors to the project role after creating it.
27
+ *
28
+ * *Note that although a new project role is available to all projects upon
29
+ * creation, any default actors that are associated with the project role are not
30
+ * added to projects that existed prior to the role being created.*<
31
+ *
32
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
33
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
34
+ *
35
+ * @returns Returned if the request is successful.
36
+ *
37
+ * example: {
38
+ * "description": "A project role that represents developers in a project",
39
+ * "id": 10360,
40
+ * "name": "Developers",
41
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
42
+ * }
43
+ * @path {POST} /rest/api/3/role
44
+ * @scopes-current manage:jira-configuration
45
+ * @scopes-beta read:user:jira, read:group:jira, read:project:jira, write:project-role:jira,
46
+ * read:avatar:jira, read:project-category:jira, read:project-role:jira
47
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-post
48
+ */
49
+ this.createProjectRole = ({ createUpdateRoleRequestBean, }) => {
50
+ return this.getClientInstance()
51
+ .request({
52
+ path: "/rest/api/3/role",
53
+ method: "POST",
54
+ headers: {
55
+ "Content-Type": "application/json",
56
+ },
57
+ body: createUpdateRoleRequestBean,
58
+ })
59
+ .then(this.getClientInstance().responseHandler({
60
+ 200: {
61
+ "application/json": "json",
62
+ },
63
+ }))
64
+ .then(commonHttpClient.castResponse())
65
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.createProjectRole.response"))
66
+ .then(commonHttpClient.getBody);
67
+ };
68
+ /**
69
+ * Deletes a project role. You must specify a replacement project role if you wish
70
+ * to delete a project role that is in use.
71
+ *
72
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
73
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
74
+ *
75
+ * @path {DELETE} /rest/api/3/role/{id}
76
+ * @scopes-current manage:jira-configuration
77
+ * @scopes-beta delete:project-role:jira
78
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-delete
79
+ */
80
+ this.deleteProjectRole = ({ id, swap, }) => {
81
+ return this.getClientInstance()
82
+ .request({
83
+ path: "/rest/api/3/role/{id}",
84
+ method: "DELETE",
85
+ pathParams: {
86
+ id,
87
+ },
88
+ query: {
89
+ swap,
90
+ },
91
+ })
92
+ .then(commonHttpClient.discardResult);
93
+ };
94
+ /**
95
+ * Updates the project role's name and description. You must include both a name
96
+ * and a description in the request.
97
+ *
98
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
99
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
100
+ *
101
+ * @returns Returned if the request is successful.
102
+ *
103
+ * example: {
104
+ * "actors": [
105
+ * {
106
+ * "actorGroup": {
107
+ * "displayName": "jira-developers",
108
+ * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
109
+ * "name": "jira-developers"
110
+ * },
111
+ * "displayName": "jira-developers",
112
+ * "id": 10240,
113
+ * "name": "jira-developers",
114
+ * "type": "atlassian-group-role-actor",
115
+ * "user": "jira-developers"
116
+ * },
117
+ * {
118
+ * "actorUser": {
119
+ * "accountId": "5b10a2844c20165700ede21g"
120
+ * },
121
+ * "displayName": "Mia Krystof",
122
+ * "id": 10241,
123
+ * "type": "atlassian-user-role-actor"
124
+ * }
125
+ * ],
126
+ * "description": "A project role that represents developers in a project",
127
+ * "id": 10360,
128
+ * "name": "Developers",
129
+ * "scope": {
130
+ * "project": {
131
+ * "id": "10000",
132
+ * "key": "KEY",
133
+ * "name": "Next Gen Project"
134
+ * },
135
+ * "type": "PROJECT"
136
+ * },
137
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
138
+ * }
139
+ * @path {PUT} /rest/api/3/role/{id}
140
+ * @scopes-current manage:jira-configuration
141
+ * @scopes-beta read:user:jira, read:group:jira, read:project:jira, write:project-role:jira,
142
+ * read:avatar:jira, read:project-category:jira, read:project-role:jira
143
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-put
144
+ */
145
+ this.fullyUpdateProjectRole = ({ id, createUpdateRoleRequestBean, }) => {
146
+ return this.getClientInstance()
147
+ .request({
148
+ path: "/rest/api/3/role/{id}",
149
+ method: "PUT",
150
+ pathParams: {
151
+ id,
152
+ },
153
+ headers: {
154
+ "Content-Type": "application/json",
155
+ },
156
+ body: createUpdateRoleRequestBean,
157
+ })
158
+ .then(this.getClientInstance().responseHandler({
159
+ 200: {
160
+ "application/json": "json",
161
+ },
162
+ }))
163
+ .then(commonHttpClient.castResponse())
164
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.fullyUpdateProjectRole.response"))
165
+ .then(commonHttpClient.getBody);
166
+ };
167
+ /**
168
+ * Gets a list of all project roles, complete with project role details and
169
+ * default actors.
170
+ *
171
+ * ### About project roles ###
172
+ *
173
+ * [Project
174
+ * roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/)
175
+ * are a flexible way to to associate users and groups with projects. In Jira
176
+ * Cloud, the list of project roles is shared globally with all projects, but each
177
+ * project can have a different set of actors associated with it (unlike groups,
178
+ * which have the same membership throughout all Jira applications).
179
+ *
180
+ * Project roles are used in [permission
181
+ * schemes](#api-rest-api-3-permissionscheme-get), [email notification
182
+ * schemes](#api-rest-api-3-notificationscheme-get), [issue security
183
+ * levels](#api-rest-api-3-issuesecurityschemes-get), [comment
184
+ * visibility](#api-rest-api-3-comment-list-post), and workflow conditions.
185
+ *
186
+ * #### Members and actors ####
187
+ *
188
+ * In the Jira REST API, a member of a project role is called an *actor*. An
189
+ * *actor* is a group or user associated with a project role.
190
+ *
191
+ * Actors may be set as [default
192
+ * members](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/#Specifying-'default-members'-for-a-project-role)
193
+ * of the project role or set at the project level:
194
+ *
195
+ * * Default actors: Users and groups that are assigned to the project role for
196
+ * all newly created projects. The default actors can be removed at the project
197
+ * level later if desired.
198
+ * * Actors: Users and groups that are associated with a project role for a
199
+ * project, which may differ from the default actors. This enables you to assign a
200
+ * user to different roles in different projects.
201
+ *
202
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
203
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
204
+ *
205
+ * @returns Returned if the request is successful.
206
+ *
207
+ * example: [
208
+ * {
209
+ * "actors": [
210
+ * {
211
+ * "actorGroup": {
212
+ * "displayName": "jira-developers",
213
+ * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
214
+ * "name": "jira-developers"
215
+ * },
216
+ * "displayName": "jira-developers",
217
+ * "id": 10240,
218
+ * "name": "jira-developers",
219
+ * "type": "atlassian-group-role-actor",
220
+ * "user": "jira-developers"
221
+ * },
222
+ * {
223
+ * "actorUser": {
224
+ * "accountId": "5b10a2844c20165700ede21g"
225
+ * },
226
+ * "displayName": "Mia Krystof",
227
+ * "id": 10241,
228
+ * "type": "atlassian-user-role-actor"
229
+ * }
230
+ * ],
231
+ * "description": "A project role that represents developers in a project",
232
+ * "id": 10360,
233
+ * "name": "Developers",
234
+ * "scope": {
235
+ * "project": {
236
+ * "id": "10000",
237
+ * "key": "KEY",
238
+ * "name": "Next Gen Project"
239
+ * },
240
+ * "type": "PROJECT"
241
+ * },
242
+ * "self":
243
+ * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
244
+ * }
245
+ * ]
246
+ * @path {GET} /rest/api/3/role
247
+ * @scopes-current manage:jira-configuration
248
+ * @scopes-beta read:user:jira, read:group:jira, read:project-role:jira, read:project:jira,
249
+ * read:avatar:jira, read:project-category:jira
250
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-get
251
+ */
252
+ this.getAllProjectRoles = () => {
253
+ return this.getClientInstance()
254
+ .request({
255
+ path: "/rest/api/3/role",
256
+ method: "GET",
257
+ })
258
+ .then(this.getClientInstance().responseHandler({
259
+ 200: {
260
+ "application/json": "json",
261
+ },
262
+ }))
263
+ .then(commonHttpClient.castResponse())
264
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getAllProjectRoles.response"))
265
+ .then(commonHttpClient.getBody);
266
+ };
267
+ /**
268
+ * Returns a project role's details and actors associated with the project. The
269
+ * list of actors is sorted by display name.
270
+ *
271
+ * To check whether a user belongs to a role based on their group memberships, use
272
+ * [Get user](#api-rest-api-3-user-get) with the `groups` expand parameter
273
+ * selected. Then check whether the user keys and groups match with the actors
274
+ * returned for the project.
275
+ *
276
+ * This operation can be accessed anonymously.
277
+ *
278
+ * **[Permissions](#permissions) required:** *Administer Projects* [project
279
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project or
280
+ * *Administer Jira* [global
281
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
282
+ *
283
+ * @returns Returned if the request is successful.
284
+ *
285
+ * example: {
286
+ * "actors": [
287
+ * {
288
+ * "actorGroup": {
289
+ * "displayName": "jira-developers",
290
+ * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
291
+ * "name": "jira-developers"
292
+ * },
293
+ * "displayName": "jira-developers",
294
+ * "id": 10240,
295
+ * "name": "jira-developers",
296
+ * "type": "atlassian-group-role-actor",
297
+ * "user": "jira-developers"
298
+ * },
299
+ * {
300
+ * "actorUser": {
301
+ * "accountId": "5b10a2844c20165700ede21g"
302
+ * },
303
+ * "displayName": "Mia Krystof",
304
+ * "id": 10241,
305
+ * "type": "atlassian-user-role-actor"
306
+ * }
307
+ * ],
308
+ * "description": "A project role that represents developers in a project",
309
+ * "id": 10360,
310
+ * "name": "Developers",
311
+ * "scope": {
312
+ * "project": {
313
+ * "id": "10000",
314
+ * "key": "KEY",
315
+ * "name": "Next Gen Project"
316
+ * },
317
+ * "type": "PROJECT"
318
+ * },
319
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
320
+ * }
321
+ * @path {GET} /rest/api/3/project/{projectIdOrKey}/role/{id}
322
+ * @scopes-current read:jira-work
323
+ * @scopes-beta read:user:jira, read:group:jira, read:project-role:jira, read:project:jira,
324
+ * read:avatar:jira, read:project-category:jira
325
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-project-projectidorkey-role-id-get
326
+ */
327
+ this.getProjectRole = ({ projectIdOrKey, id, excludeInactiveUsers, }) => {
328
+ return this.getClientInstance()
329
+ .request({
330
+ path: "/rest/api/3/project/{projectIdOrKey}/role/{id}",
331
+ method: "GET",
332
+ pathParams: {
333
+ projectIdOrKey,
334
+ id,
335
+ },
336
+ query: {
337
+ excludeInactiveUsers,
338
+ },
339
+ })
340
+ .then(this.getClientInstance().responseHandler({
341
+ 200: {
342
+ "application/json": "json",
343
+ },
344
+ }))
345
+ .then(commonHttpClient.castResponse())
346
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRole.response"))
347
+ .then(commonHttpClient.getBody);
348
+ };
349
+ /**
350
+ * Gets the project role details and the default actors associated with the role.
351
+ * The list of default actors is sorted by display name.
352
+ *
353
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
354
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
355
+ *
356
+ * @returns Returned if the request is successful.
357
+ *
358
+ * example: {
359
+ * "actors": [
360
+ * {
361
+ * "actorGroup": {
362
+ * "displayName": "jira-developers",
363
+ * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
364
+ * "name": "jira-developers"
365
+ * },
366
+ * "displayName": "jira-developers",
367
+ * "id": 10240,
368
+ * "name": "jira-developers",
369
+ * "type": "atlassian-group-role-actor",
370
+ * "user": "jira-developers"
371
+ * },
372
+ * {
373
+ * "actorUser": {
374
+ * "accountId": "5b10a2844c20165700ede21g"
375
+ * },
376
+ * "displayName": "Mia Krystof",
377
+ * "id": 10241,
378
+ * "type": "atlassian-user-role-actor"
379
+ * }
380
+ * ],
381
+ * "description": "A project role that represents developers in a project",
382
+ * "id": 10360,
383
+ * "name": "Developers",
384
+ * "scope": {
385
+ * "project": {
386
+ * "id": "10000",
387
+ * "key": "KEY",
388
+ * "name": "Next Gen Project"
389
+ * },
390
+ * "type": "PROJECT"
391
+ * },
392
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
393
+ * }
394
+ * @path {GET} /rest/api/3/role/{id}
395
+ * @scopes-current manage:jira-configuration
396
+ * @scopes-beta read:user:jira, read:group:jira, read:project-role:jira, read:project:jira,
397
+ * read:avatar:jira, read:project-category:jira
398
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-get
399
+ */
400
+ this.getProjectRoleById = ({ id, }) => {
401
+ return this.getClientInstance()
402
+ .request({
403
+ path: "/rest/api/3/role/{id}",
404
+ method: "GET",
405
+ pathParams: {
406
+ id,
407
+ },
408
+ })
409
+ .then(this.getClientInstance().responseHandler({
410
+ 200: {
411
+ "application/json": "json",
412
+ },
413
+ }))
414
+ .then(commonHttpClient.castResponse())
415
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRoleById.response"))
416
+ .then(commonHttpClient.getBody);
417
+ };
418
+ /**
419
+ * Returns all [project
420
+ * roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/)
421
+ * and the details for each role. Note that the list of project roles is common to
422
+ * all projects.
423
+ *
424
+ * This operation can be accessed anonymously.
425
+ *
426
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
427
+ * permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer projects*
428
+ * [project permission](https://confluence.atlassian.com/x/yodKLg) for the project.
429
+ *
430
+ * @returns Returned if the request is successful.
431
+ *
432
+ * example: [
433
+ * {
434
+ * "self":
435
+ * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360",
436
+ * "name": "Developers",
437
+ * "id": 10360,
438
+ * "description": "A project role that represents developers in a project",
439
+ * "admin": false,
440
+ * "default": true,
441
+ * "roleConfigurable": true,
442
+ * "translatedName": "Developers"
443
+ * }
444
+ * ]
445
+ * @path {GET} /rest/api/3/project/{projectIdOrKey}/roledetails
446
+ * @scopes-current read:jira-work
447
+ * @scopes-beta read:project-category:jira, read:project-role:jira, read:project:jira,
448
+ * read:avatar:jira
449
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-project-projectidorkey-roledetails-get
450
+ */
451
+ this.getProjectRoleDetails = ({ projectIdOrKey, currentMember, excludeConnectAddons, }) => {
452
+ return this.getClientInstance()
453
+ .request({
454
+ path: "/rest/api/3/project/{projectIdOrKey}/roledetails",
455
+ method: "GET",
456
+ pathParams: {
457
+ projectIdOrKey,
458
+ },
459
+ query: {
460
+ currentMember,
461
+ excludeConnectAddons,
462
+ },
463
+ })
464
+ .then(this.getClientInstance().responseHandler({
465
+ 200: {
466
+ "application/json": "json",
467
+ },
468
+ }))
469
+ .then(commonHttpClient.castResponse())
470
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRoleDetails.response"))
471
+ .then(commonHttpClient.getBody);
472
+ };
473
+ /**
474
+ * Returns a list of [project
475
+ * roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/)
476
+ * for the project returning the name and self URL for each role.
477
+ *
478
+ * Note that all project roles are shared with all projects in Jira Cloud. See
479
+ * [Get all project roles](#api-rest-api-3-role-get) for more information.
480
+ *
481
+ * This operation can be accessed anonymously.
482
+ *
483
+ * **[Permissions](#permissions) required:** *Administer Projects* [project
484
+ * permission](https://confluence.atlassian.com/x/yodKLg) for any project on the
485
+ * site or *Administer Jira* [global
486
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
487
+ *
488
+ * @returns Returned if the request is successful.
489
+ *
490
+ * example: {
491
+ * "Administrators":
492
+ * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10002",
493
+ * "Developers":
494
+ * "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10000",
495
+ * "Users": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10001"
496
+ * }
497
+ * @path {GET} /rest/api/3/project/{projectIdOrKey}/role
498
+ * @scopes-current read:jira-work
499
+ * @scopes-beta read:project-role:jira
500
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-project-projectidorkey-role-get
501
+ */
502
+ this.getProjectRoles = ({ projectIdOrKey, }) => {
503
+ return this.getClientInstance()
504
+ .request({
505
+ path: "/rest/api/3/project/{projectIdOrKey}/role",
506
+ method: "GET",
507
+ pathParams: {
508
+ projectIdOrKey,
509
+ },
510
+ })
511
+ .then(this.getClientInstance().responseHandler({
512
+ 200: {
513
+ "application/json": "json",
514
+ },
515
+ }))
516
+ .then(commonHttpClient.castResponse())
517
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.getProjectRoles.response"))
518
+ .then(commonHttpClient.getBody);
519
+ };
520
+ /**
521
+ * Updates either the project role's name or its description.
522
+ *
523
+ * You cannot update both the name and description at the same time using this
524
+ * operation. If you send a request with a name and a description only the name is
525
+ * updated.
526
+ *
527
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
528
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
529
+ *
530
+ * @returns Returned if the request is successful.
531
+ *
532
+ * example: {
533
+ * "actors": [
534
+ * {
535
+ * "actorGroup": {
536
+ * "displayName": "jira-developers",
537
+ * "groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
538
+ * "name": "jira-developers"
539
+ * },
540
+ * "displayName": "jira-developers",
541
+ * "id": 10240,
542
+ * "name": "jira-developers",
543
+ * "type": "atlassian-group-role-actor",
544
+ * "user": "jira-developers"
545
+ * },
546
+ * {
547
+ * "actorUser": {
548
+ * "accountId": "5b10a2844c20165700ede21g"
549
+ * },
550
+ * "displayName": "Mia Krystof",
551
+ * "id": 10241,
552
+ * "type": "atlassian-user-role-actor"
553
+ * }
554
+ * ],
555
+ * "description": "A project role that represents developers in a project",
556
+ * "id": 10360,
557
+ * "name": "Developers",
558
+ * "scope": {
559
+ * "project": {
560
+ * "id": "10000",
561
+ * "key": "KEY",
562
+ * "name": "Next Gen Project"
563
+ * },
564
+ * "type": "PROJECT"
565
+ * },
566
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
567
+ * }
568
+ * @path {POST} /rest/api/3/role/{id}
569
+ * @scopes-current manage:jira-configuration
570
+ * @scopes-beta read:user:jira, read:group:jira, read:project:jira, write:project-role:jira,
571
+ * read:avatar:jira, read:project-category:jira, read:project-role:jira
572
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles#api-rest-api-3-role-id-post
573
+ */
574
+ this.partialUpdateProjectRole = ({ id, createUpdateRoleRequestBean, }) => {
575
+ return this.getClientInstance()
576
+ .request({
577
+ path: "/rest/api/3/role/{id}",
578
+ method: "POST",
579
+ pathParams: {
580
+ id,
581
+ },
582
+ headers: {
583
+ "Content-Type": "application/json",
584
+ },
585
+ body: createUpdateRoleRequestBean,
586
+ })
587
+ .then(this.getClientInstance().responseHandler({
588
+ 200: {
589
+ "application/json": "json",
590
+ },
591
+ }))
592
+ .then(commonHttpClient.castResponse())
593
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectRolesService.partialUpdateProjectRole.response"))
594
+ .then(commonHttpClient.getBody);
595
+ };
593
596
  }
594
597
  static initialize() {
595
598
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ProjectRolesService.getProjectRoles.response", zod_1.z