@resolution/jira-api-client 0.4.2 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/models/common.d.ts +6 -0
  7. package/lib/openapi/platform/models/common.js +12 -1
  8. package/lib/openapi/platform/models/common.js.map +1 -1
  9. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  10. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  11. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  12. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  14. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  15. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  17. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  18. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  20. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  22. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  23. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  25. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  26. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  27. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  28. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  29. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  30. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  31. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  32. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  33. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  34. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  35. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  36. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  38. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  39. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  40. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  41. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  43. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  44. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  45. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  46. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  47. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  48. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  49. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  50. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  53. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  55. package/lib/openapi/platform/services/GroupsService.js +385 -382
  56. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  57. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  59. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  62. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  65. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  66. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  67. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  68. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  71. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  74. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  83. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  86. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  88. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  89. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  92. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  94. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  95. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  98. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  101. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  104. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  106. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  107. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  110. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  112. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  113. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  115. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  116. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  119. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  122. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  125. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  128. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  131. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  133. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  134. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  136. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  137. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  139. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  140. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  143. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  145. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  146. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  148. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  149. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  150. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  151. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  152. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  154. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  155. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  158. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  160. package/lib/openapi/platform/services/JqlService.js +635 -632
  161. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  162. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  163. package/lib/openapi/platform/services/LabelsService.js +41 -38
  164. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  165. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  167. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  168. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  169. package/lib/openapi/platform/services/MyselfService.js +321 -318
  170. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  171. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  172. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  173. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  175. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  176. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  177. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  178. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  179. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  180. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  182. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  185. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  188. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  190. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  191. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  193. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  194. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  197. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  200. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  203. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  206. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  209. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  211. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  212. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  214. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  215. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  217. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  218. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  220. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  221. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  223. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  224. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  227. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  229. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  230. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  232. package/lib/openapi/platform/services/ScreensService.js +281 -278
  233. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  235. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  236. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  238. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  239. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  240. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  241. package/lib/openapi/platform/services/StatusService.js +271 -268
  242. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  243. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  244. package/lib/openapi/platform/services/TasksService.js +93 -90
  245. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  246. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  247. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  248. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  249. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  251. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  252. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  253. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  254. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  256. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  257. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  258. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  259. package/lib/openapi/platform/services/UsersService.js +637 -634
  260. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  261. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  262. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  263. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  266. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  269. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  272. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  275. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  278. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  281. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  284. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  286. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  287. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  288. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  289. package/lib/openapi/software/services/BacklogService.js +81 -78
  290. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  291. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  292. package/lib/openapi/software/services/BoardService.js +2048 -2045
  293. package/lib/openapi/software/services/BoardService.js.map +1 -1
  294. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  295. package/lib/openapi/software/services/BuildsService.js +164 -161
  296. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  297. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  298. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  299. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  300. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  301. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  302. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  303. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  304. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  305. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  306. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  307. package/lib/openapi/software/services/EpicService.js +597 -594
  308. package/lib/openapi/software/services/EpicService.js.map +1 -1
  309. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  310. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  311. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  312. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  313. package/lib/openapi/software/services/IssueService.js +359 -356
  314. package/lib/openapi/software/services/IssueService.js.map +1 -1
  315. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  316. package/lib/openapi/software/services/OperationsService.js +301 -298
  317. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  318. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  319. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  320. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  321. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  322. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  323. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  324. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  325. package/lib/openapi/software/services/SprintService.js +594 -591
  326. package/lib/openapi/software/services/SprintService.js.map +1 -1
  327. package/package.json +4 -3
@@ -18,1012 +18,1015 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
18
18
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components
19
19
  */
20
20
  class ProjectComponentsService extends CommonHttpService_1.CommonHttpService {
21
- /**
22
- * Creates a component. Use components to provide containers for issues within a
23
- * project. Use components to provide containers for issues within a project.
24
- *
25
- * This operation can be accessed anonymously.
26
- *
27
- * **[Permissions](#permissions) required:** *Administer projects* [project
28
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project in which
29
- * the component is created or *Administer Jira* [global
30
- * permission](https://confluence.atlassian.com/x/x4dKLg).
31
- *
32
- * @returns Returned if the request is successful.
33
- *
34
- * example: {
35
- * "ari":
36
- * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
37
- * "assignee": {
38
- * "accountId": "5b10a2844c20165700ede21g",
39
- * "accountType": "atlassian",
40
- * "active": false,
41
- * "avatarUrls": {
42
- * "16x16":
43
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
44
- * "24x24":
45
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
46
- * "32x32":
47
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
48
- * "48x48":
49
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
50
- * },
51
- * "displayName": "Mia Krystof",
52
- * "key": "",
53
- * "name": "",
54
- * "self":
55
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
56
- * },
57
- * "assigneeType": "PROJECT_LEAD",
58
- * "description": "This is a Jira component",
59
- * "id": "10000",
60
- * "isAssigneeTypeValid": false,
61
- * "lead": {
62
- * "accountId": "5b10a2844c20165700ede21g",
63
- * "accountType": "atlassian",
64
- * "active": false,
65
- * "avatarUrls": {
66
- * "16x16":
67
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
68
- * "24x24":
69
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
70
- * "32x32":
71
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
72
- * "48x48":
73
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
74
- * },
75
- * "displayName": "Mia Krystof",
76
- * "key": "",
77
- * "name": "",
78
- * "self":
79
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
80
- * },
81
- * "metadata": {
82
- * "icon": "https://www.example.com/icon.png"
83
- * },
84
- * "name": "Component 1",
85
- * "project": "HSP",
86
- * "projectId": 10000,
87
- * "realAssignee": {
88
- * "accountId": "5b10a2844c20165700ede21g",
89
- * "accountType": "atlassian",
90
- * "active": false,
91
- * "avatarUrls": {
92
- * "16x16":
93
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
94
- * "24x24":
95
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
96
- * "32x32":
97
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
98
- * "48x48":
99
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
100
- * },
101
- * "displayName": "Mia Krystof",
102
- * "key": "",
103
- * "name": "",
104
- * "self":
105
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
106
- * },
107
- * "realAssigneeType": "PROJECT_LEAD",
108
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
109
- * }
110
- * @path {POST} /rest/api/3/component
111
- * @scopes-current manage:jira-project
112
- * @scopes-beta read:project:jira, read:user:jira, write:project.component:jira,
113
- * read:application-role:jira, read:avatar:jira, read:group:jira,
114
- * read:project.component:jira
115
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-post
116
- */
117
- createComponent({ projectComponent, }) {
118
- return this.getClientInstance()
119
- .request({
120
- path: "/rest/api/3/component",
121
- method: "POST",
122
- headers: {
123
- "Content-Type": "application/json",
124
- },
125
- body: projectComponent,
126
- })
127
- .then(this.getClientInstance().responseHandler({
128
- 201: {
129
- "application/json": "json",
130
- },
131
- }))
132
- .then(commonHttpClient.castResponse())
133
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.createComponent.response"))
134
- .then(commonHttpClient.getBody);
135
- }
136
- /**
137
- * Deletes a component.
138
- *
139
- * This operation can be accessed anonymously.
140
- *
141
- * **[Permissions](#permissions) required:** *Administer projects* [project
142
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
143
- * containing the component or *Administer Jira* [global
144
- * permission](https://confluence.atlassian.com/x/x4dKLg).
145
- *
146
- * @path {DELETE} /rest/api/3/component/{id}
147
- * @scopes-current manage:jira-project
148
- * @scopes-beta delete:project.component:jira
149
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-delete
150
- */
151
- deleteComponent({ id, moveIssuesTo, }) {
152
- return this.getClientInstance()
153
- .request({
154
- path: "/rest/api/3/component/{id}",
155
- method: "DELETE",
156
- pathParams: {
157
- id,
158
- },
159
- query: {
160
- moveIssuesTo,
161
- },
162
- })
163
- .then(commonHttpClient.discardResult);
164
- }
165
- /**
166
- * Returns a [paginated](#pagination) list of all components in a project,
167
- * including global (Compass) components when applicable.
168
- *
169
- * This operation can be accessed anonymously.
170
- *
171
- * **[Permissions](#permissions) required:** *Browse Projects* [project
172
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
173
- *
174
- * @returns Returned if the request is successful.
175
- *
176
- * example:
177
- * com.atlassian.jira.issue.fields.rest.json.beans.ComponentJsonBean#PAGED_EXAMPLE}
178
- * }
179
- * @path {GET} /rest/api/3/component
180
- * @scopes-current read:jira-work
181
- * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
182
- * read:application-role:jira, read:avatar:jira, read:group:jira
183
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-get
184
- */
185
- findComponentsForProjects({ projectIdsOrKeys, startAt, maxResults, orderBy, query, } = {}) {
186
- return this.getClientInstance()
187
- .request({
188
- path: "/rest/api/3/component",
189
- method: "GET",
190
- query: {
191
- projectIdsOrKeys,
192
- startAt,
193
- maxResults,
194
- orderBy,
195
- query,
196
- },
197
- })
198
- .then(this.getClientInstance().responseHandler({
199
- 200: {
200
- "application/json": "json",
201
- },
202
- }))
203
- .then(commonHttpClient.castResponse())
204
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.findComponentsForProjects.response"))
205
- .then(commonHttpClient.getBody);
206
- }
207
- /**
208
- * Returns a component.
209
- *
210
- * This operation can be accessed anonymously.
211
- *
212
- * **[Permissions](#permissions) required:** *Browse projects* [project
213
- * permission](https://confluence.atlassian.com/x/yodKLg) for project containing
214
- * the component.
215
- *
216
- * @returns Returned if the request is successful.
217
- *
218
- * example: {
219
- * "ari":
220
- * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
221
- * "assignee": {
222
- * "accountId": "5b10a2844c20165700ede21g",
223
- * "accountType": "atlassian",
224
- * "active": false,
225
- * "avatarUrls": {
226
- * "16x16":
227
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
228
- * "24x24":
229
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
230
- * "32x32":
231
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
232
- * "48x48":
233
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
234
- * },
235
- * "displayName": "Mia Krystof",
236
- * "key": "",
237
- * "name": "",
238
- * "self":
239
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
240
- * },
241
- * "assigneeType": "PROJECT_LEAD",
242
- * "description": "This is a Jira component",
243
- * "id": "10000",
244
- * "isAssigneeTypeValid": false,
245
- * "lead": {
246
- * "accountId": "5b10a2844c20165700ede21g",
247
- * "accountType": "atlassian",
248
- * "active": false,
249
- * "avatarUrls": {
250
- * "16x16":
251
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
252
- * "24x24":
253
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
254
- * "32x32":
255
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
256
- * "48x48":
257
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
258
- * },
259
- * "displayName": "Mia Krystof",
260
- * "key": "",
261
- * "name": "",
262
- * "self":
263
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
264
- * },
265
- * "metadata": {
266
- * "icon": "https://www.example.com/icon.png"
267
- * },
268
- * "name": "Component 1",
269
- * "project": "HSP",
270
- * "projectId": 10000,
271
- * "realAssignee": {
272
- * "accountId": "5b10a2844c20165700ede21g",
273
- * "accountType": "atlassian",
274
- * "active": false,
275
- * "avatarUrls": {
276
- * "16x16":
277
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
278
- * "24x24":
279
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
280
- * "32x32":
281
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
282
- * "48x48":
283
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
284
- * },
285
- * "displayName": "Mia Krystof",
286
- * "key": "",
287
- * "name": "",
288
- * "self":
289
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
290
- * },
291
- * "realAssigneeType": "PROJECT_LEAD",
292
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
293
- * }
294
- * @path {GET} /rest/api/3/component/{id}
295
- * @scopes-current read:jira-work
296
- * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
297
- * read:application-role:jira, read:avatar:jira, read:group:jira
298
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-get
299
- */
300
- getComponent({ id, }) {
301
- return this.getClientInstance()
302
- .request({
303
- path: "/rest/api/3/component/{id}",
304
- method: "GET",
305
- pathParams: {
306
- id,
307
- },
308
- })
309
- .then(this.getClientInstance().responseHandler({
310
- 200: {
311
- "application/json": "json",
312
- },
313
- }))
314
- .then(commonHttpClient.castResponse())
315
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getComponent.response"))
316
- .then(commonHttpClient.getBody);
317
- }
318
- /**
319
- * Returns the counts of issues assigned to the component.
320
- *
321
- * This operation can be accessed anonymously.
322
- *
323
- * **Deprecation notice:** The required OAuth 2.0 scopes will be updated on June
324
- * 15, 2024.
325
- *
326
- * * **Classic**: `read:jira-work`
327
- * * **Granular**: `read:field:jira`, `read:project.component:jira`
328
- *
329
- * **[Permissions](#permissions) required:** None.
330
- *
331
- * @returns Returned if the request is successful.
332
- *
333
- * example: {
334
- * "issueCount": 23,
335
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
336
- * }
337
- * @path {GET} /rest/api/3/component/{id}/relatedIssueCounts
338
- * @scopes-current read:jira-work
339
- * @scopes-beta
340
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-relatedissuecounts-get
341
- */
342
- getComponentRelatedIssues({ id, }) {
343
- return this.getClientInstance()
344
- .request({
345
- path: "/rest/api/3/component/{id}/relatedIssueCounts",
346
- method: "GET",
347
- pathParams: {
348
- id,
349
- },
350
- })
351
- .then(this.getClientInstance().responseHandler({
352
- 200: {
353
- "application/json": "json",
354
- },
355
- }))
356
- .then(commonHttpClient.castResponse())
357
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getComponentRelatedIssues.response"))
358
- .then(commonHttpClient.getBody);
359
- }
360
- /**
361
- * Returns all components in a project. See the [Get project components
362
- * paginated](#api-rest-api-3-project-projectIdOrKey-component-get) resource if
363
- * you want to get a full list of components with pagination.
364
- *
365
- * If your project uses Compass components, this API will return a paginated list
366
- * of Compass components that are linked to issues in that project.
367
- *
368
- * This operation can be accessed anonymously.
369
- *
370
- * **[Permissions](#permissions) required:** *Browse Projects* [project
371
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
372
- *
373
- * @returns Returned if the request is successful.
374
- *
375
- * example: [
376
- * {
377
- * "ari":
378
- * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
379
- * "assignee": {
380
- * "accountId": "5b10a2844c20165700ede21g",
381
- * "accountType": "atlassian",
382
- * "active": false,
383
- * "avatarUrls": {
384
- * "16x16":
385
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
386
- * "24x24":
387
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
388
- * "32x32":
389
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
390
- * "48x48":
391
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
392
- * },
393
- * "displayName": "Mia Krystof",
394
- * "key": "",
395
- * "name": "",
396
- * "self":
397
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
398
- * },
399
- * "assigneeType": "PROJECT_LEAD",
400
- * "description": "This is a Jira component",
401
- * "id": "10000",
402
- * "isAssigneeTypeValid": false,
403
- * "lead": {
404
- * "accountId": "5b10a2844c20165700ede21g",
405
- * "accountType": "atlassian",
406
- * "active": false,
407
- * "avatarUrls": {
408
- * "16x16":
409
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
410
- * "24x24":
411
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
412
- * "32x32":
413
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
414
- * "48x48":
415
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
416
- * },
417
- * "displayName": "Mia Krystof",
418
- * "key": "",
419
- * "name": "",
420
- * "self":
421
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
422
- * },
423
- * "metadata": {
424
- * "icon": "https://www.example.com/icon.png"
425
- * },
426
- * "name": "Component 1",
427
- * "project": "HSP",
428
- * "projectId": 10000,
429
- * "realAssignee": {
430
- * "accountId": "5b10a2844c20165700ede21g",
431
- * "accountType": "atlassian",
432
- * "active": false,
433
- * "avatarUrls": {
434
- * "16x16":
435
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
436
- * "24x24":
437
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
438
- * "32x32":
439
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
440
- * "48x48":
441
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
442
- * },
443
- * "displayName": "Mia Krystof",
444
- * "key": "",
445
- * "name": "",
446
- * "self":
447
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
448
- * },
449
- * "realAssigneeType": "PROJECT_LEAD",
450
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
451
- * },
452
- * {
453
- * "ari":
454
- * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-11ee-4e70-be56-0242ac120002/fdb3fdec-4e70-11ee-be56-0242ac120002",
455
- * "assignee": {
456
- * "accountId": "5b10a2844c20165700ede21g",
457
- * "accountType": "atlassian",
458
- * "active": false,
459
- * "avatarUrls": {
460
- * "16x16":
461
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
462
- * "24x24":
463
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
464
- * "32x32":
465
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
466
- * "48x48":
467
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
468
- * },
469
- * "displayName": "Mia Krystof",
470
- * "key": "",
471
- * "name": "",
472
- * "self":
473
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
474
- * },
475
- * "assigneeType": "PROJECT_LEAD",
476
- * "description": "This is a another Jira component",
477
- * "id": "10050",
478
- * "isAssigneeTypeValid": false,
479
- * "lead": {
480
- * "accountId": "5b10a2844c20165700ede21g",
481
- * "accountType": "atlassian",
482
- * "active": false,
483
- * "avatarUrls": {
484
- * "16x16":
485
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
486
- * "24x24":
487
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
488
- * "32x32":
489
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
490
- * "48x48":
491
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
492
- * },
493
- * "displayName": "Mia Krystof",
494
- * "key": "",
495
- * "name": "",
496
- * "self":
497
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
498
- * },
499
- * "metadata": {
500
- * "icon": "https://www.example.com/icon.png"
501
- * },
502
- * "name": "PXA",
503
- * "project": "PROJECTKEY",
504
- * "projectId": 10000,
505
- * "realAssignee": {
506
- * "accountId": "5b10a2844c20165700ede21g",
507
- * "accountType": "atlassian",
508
- * "active": false,
509
- * "avatarUrls": {
510
- * "16x16":
511
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
512
- * "24x24":
513
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
514
- * "32x32":
515
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
516
- * "48x48":
517
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
518
- * },
519
- * "displayName": "Mia Krystof",
520
- * "key": "",
521
- * "name": "",
522
- * "self":
523
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
524
- * },
525
- * "realAssigneeType": "PROJECT_LEAD",
526
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
527
- * }
528
- * ]
529
- * @path {GET} /rest/api/3/project/{projectIdOrKey}/components
530
- * @scopes-current read:jira-work
531
- * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
532
- * read:application-role:jira, read:avatar:jira, read:group:jira
533
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-project-projectidorkey-components-get
534
- */
535
- getProjectComponents({ projectIdOrKey, componentSource, }) {
536
- return this.getClientInstance()
537
- .request({
538
- path: "/rest/api/3/project/{projectIdOrKey}/components",
539
- method: "GET",
540
- pathParams: {
541
- projectIdOrKey,
542
- },
543
- query: {
544
- componentSource,
545
- },
546
- })
547
- .then(this.getClientInstance().responseHandler({
548
- 200: {
549
- "application/json": "json",
550
- },
551
- }))
552
- .then(commonHttpClient.castResponse())
553
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getProjectComponents.response"))
554
- .then(commonHttpClient.getBody);
555
- }
556
- /**
557
- * Returns a [paginated](#pagination) list of all components in a project. See the
558
- * [Get project components](#api-rest-api-3-project-projectIdOrKey-components-get)
559
- * resource if you want to get a full list of versions without pagination.
560
- *
561
- * If your project uses Compass components, this API will return a list of Compass
562
- * components that are linked to issues in that project.
563
- *
564
- * This operation can be accessed anonymously.
565
- *
566
- * **[Permissions](#permissions) required:** *Browse Projects* [project
567
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
568
- *
569
- * @returns Returned if the request is successful.
570
- *
571
- * example: {
572
- * "isLast": false,
573
- * "maxResults": 2,
574
- * "nextPage":
575
- * "https://your-domain.atlassian.net/rest/api/3/project/PR/component?startAt=2&maxResults=2",
576
- * "self":
577
- * "https://your-domain.atlassian.net/rest/api/3/project/PR/component?startAt=0&maxResults=2",
578
- * "startAt": 0,
579
- * "total": 7,
580
- * "values": [
581
- * {
582
- * "assignee": {
583
- * "accountId": "5b10a2844c20165700ede21g",
584
- * "accountType": "atlassian",
585
- * "active": false,
586
- * "avatarUrls": {
587
- * "16x16":
588
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
589
- * "24x24":
590
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
591
- * "32x32":
592
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
593
- * "48x48":
594
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
595
- * },
596
- * "displayName": "Mia Krystof",
597
- * "key": "",
598
- * "name": "",
599
- * "self":
600
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
601
- * },
602
- * "assigneeType": "PROJECT_LEAD",
603
- * "componentBean": {
604
- * "ari":
605
- * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
606
- * "assignee": {
607
- * "accountId": "5b10a2844c20165700ede21g",
608
- * "accountType": "atlassian",
609
- * "active": false,
610
- * "avatarUrls": {
611
- * "16x16":
612
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
613
- * "24x24":
614
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
615
- * "32x32":
616
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
617
- * "48x48":
618
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
619
- * },
620
- * "displayName": "Mia Krystof",
621
- * "key": "",
622
- * "name": "",
623
- * "self":
624
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
625
- * },
626
- * "assigneeType": "PROJECT_LEAD",
627
- * "description": "This is a Jira component",
628
- * "id": "10000",
629
- * "isAssigneeTypeValid": false,
630
- * "lead": {
631
- * "accountId": "5b10a2844c20165700ede21g",
632
- * "accountType": "atlassian",
633
- * "active": false,
634
- * "avatarUrls": {
635
- * "16x16":
636
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
637
- * "24x24":
638
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
639
- * "32x32":
640
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
641
- * "48x48":
642
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
643
- * },
644
- * "displayName": "Mia Krystof",
645
- * "key": "",
646
- * "name": "",
647
- * "self":
648
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
649
- * },
650
- * "metadata": {
651
- * "icon": "https://www.example.com/icon.png"
652
- * },
653
- * "name": "Component 1",
654
- * "project": "HSP",
655
- * "projectId": 10000,
656
- * "realAssignee": {
657
- * "accountId": "5b10a2844c20165700ede21g",
658
- * "accountType": "atlassian",
659
- * "active": false,
660
- * "avatarUrls": {
661
- * "16x16":
662
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
663
- * "24x24":
664
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
665
- * "32x32":
666
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
667
- * "48x48":
668
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
669
- * },
670
- * "displayName": "Mia Krystof",
671
- * "key": "",
672
- * "name": "",
673
- * "self":
674
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
675
- * },
676
- * "realAssigneeType": "PROJECT_LEAD",
677
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
678
- * },
679
- * "description": "This is a Jira component",
680
- * "id": "10000",
681
- * "isAssigneeTypeValid": false,
682
- * "issueCount": 1,
683
- * "lead": {
684
- * "accountId": "5b10a2844c20165700ede21g",
685
- * "accountType": "atlassian",
686
- * "active": false,
687
- * "avatarUrls": {
688
- * "16x16":
689
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
690
- * "24x24":
691
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
692
- * "32x32":
693
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
694
- * "48x48":
695
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
696
- * },
697
- * "displayName": "Mia Krystof",
698
- * "key": "",
699
- * "name": "",
700
- * "self":
701
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
702
- * },
703
- * "name": "Component 1",
704
- * "project": "HSP",
705
- * "projectId": 10000,
706
- * "realAssignee": {
707
- * "accountId": "5b10a2844c20165700ede21g",
708
- * "accountType": "atlassian",
709
- * "active": false,
710
- * "avatarUrls": {
711
- * "16x16":
712
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
713
- * "24x24":
714
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
715
- * "32x32":
716
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
717
- * "48x48":
718
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
719
- * },
720
- * "displayName": "Mia Krystof",
721
- * "key": "",
722
- * "name": "",
723
- * "self":
724
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
725
- * },
726
- * "realAssigneeType": "PROJECT_LEAD",
727
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
728
- * },
729
- * {
730
- * "assignee": {
731
- * "accountId": "5b10a2844c20165700ede21g",
732
- * "accountType": "atlassian",
733
- * "active": false,
734
- * "avatarUrls": {
735
- * "16x16":
736
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
737
- * "24x24":
738
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
739
- * "32x32":
740
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
741
- * "48x48":
742
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
743
- * },
744
- * "displayName": "Mia Krystof",
745
- * "key": "",
746
- * "name": "",
747
- * "self":
748
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
749
- * },
750
- * "assigneeType": "PROJECT_LEAD",
751
- * "componentBean": {
752
- * "ari":
753
- * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-11ee-4e70-be56-0242ac120002/fdb3fdec-4e70-11ee-be56-0242ac120002",
754
- * "assignee": {
755
- * "accountId": "5b10a2844c20165700ede21g",
756
- * "accountType": "atlassian",
757
- * "active": false,
758
- * "avatarUrls": {
759
- * "16x16":
760
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
761
- * "24x24":
762
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
763
- * "32x32":
764
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
765
- * "48x48":
766
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
767
- * },
768
- * "displayName": "Mia Krystof",
769
- * "key": "",
770
- * "name": "",
771
- * "self":
772
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
773
- * },
774
- * "assigneeType": "PROJECT_LEAD",
775
- * "description": "This is a another Jira component",
776
- * "id": "10050",
777
- * "isAssigneeTypeValid": false,
778
- * "lead": {
779
- * "accountId": "5b10a2844c20165700ede21g",
780
- * "accountType": "atlassian",
781
- * "active": false,
782
- * "avatarUrls": {
783
- * "16x16":
784
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
785
- * "24x24":
786
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
787
- * "32x32":
788
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
789
- * "48x48":
790
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
791
- * },
792
- * "displayName": "Mia Krystof",
793
- * "key": "",
794
- * "name": "",
795
- * "self":
796
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
797
- * },
798
- * "metadata": {
799
- * "icon": "https://www.example.com/icon.png"
800
- * },
801
- * "name": "PXA",
802
- * "project": "PROJECTKEY",
803
- * "projectId": 10000,
804
- * "realAssignee": {
805
- * "accountId": "5b10a2844c20165700ede21g",
806
- * "accountType": "atlassian",
807
- * "active": false,
808
- * "avatarUrls": {
809
- * "16x16":
810
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
811
- * "24x24":
812
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
813
- * "32x32":
814
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
815
- * "48x48":
816
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
817
- * },
818
- * "displayName": "Mia Krystof",
819
- * "key": "",
820
- * "name": "",
821
- * "self":
822
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
823
- * },
824
- * "realAssigneeType": "PROJECT_LEAD",
825
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
826
- * },
827
- * "description": "This is a another Jira component",
828
- * "id": "10050",
829
- * "isAssigneeTypeValid": false,
830
- * "issueCount": 5,
831
- * "lead": {
832
- * "accountId": "5b10a2844c20165700ede21g",
833
- * "accountType": "atlassian",
834
- * "active": false,
835
- * "avatarUrls": {
836
- * "16x16":
837
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
838
- * "24x24":
839
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
840
- * "32x32":
841
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
842
- * "48x48":
843
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
844
- * },
845
- * "displayName": "Mia Krystof",
846
- * "key": "",
847
- * "name": "",
848
- * "self":
849
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
850
- * },
851
- * "name": "PXA",
852
- * "project": "PROJECTKEY",
853
- * "projectId": 10000,
854
- * "realAssignee": {
855
- * "accountId": "5b10a2844c20165700ede21g",
856
- * "accountType": "atlassian",
857
- * "active": false,
858
- * "avatarUrls": {
859
- * "16x16":
860
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
861
- * "24x24":
862
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
863
- * "32x32":
864
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
865
- * "48x48":
866
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
867
- * },
868
- * "displayName": "Mia Krystof",
869
- * "key": "",
870
- * "name": "",
871
- * "self":
872
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
873
- * },
874
- * "realAssigneeType": "PROJECT_LEAD",
875
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
876
- * }
877
- * ]
878
- * }
879
- * @path {GET} /rest/api/3/project/{projectIdOrKey}/component
880
- * @scopes-current read:jira-work
881
- * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
882
- * read:application-role:jira, read:avatar:jira, read:group:jira
883
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-project-projectidorkey-component-get
884
- */
885
- getProjectComponentsPaginated({ projectIdOrKey, startAt, maxResults, orderBy, componentSource, query, }) {
886
- return this.getClientInstance()
887
- .request({
888
- path: "/rest/api/3/project/{projectIdOrKey}/component",
889
- method: "GET",
890
- pathParams: {
891
- projectIdOrKey,
892
- },
893
- query: {
894
- startAt,
895
- maxResults,
896
- orderBy,
897
- componentSource,
898
- query,
899
- },
900
- })
901
- .then(this.getClientInstance().responseHandler({
902
- 200: {
903
- "application/json": "json",
904
- },
905
- }))
906
- .then(commonHttpClient.castResponse())
907
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getProjectComponentsPaginated.response"))
908
- .then(commonHttpClient.getBody);
909
- }
910
- /**
911
- * Updates a component. Any fields included in the request are overwritten. If
912
- * `leadAccountId` is an empty string ("") the component lead is removed.
913
- *
914
- * This operation can be accessed anonymously.
915
- *
916
- * **[Permissions](#permissions) required:** *Administer projects* [project
917
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
918
- * containing the component or *Administer Jira* [global
919
- * permission](https://confluence.atlassian.com/x/x4dKLg).
920
- *
921
- * @returns Returned if the request is successful.
922
- *
923
- * example: {
924
- * "ari":
925
- * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
926
- * "assignee": {
927
- * "accountId": "5b10a2844c20165700ede21g",
928
- * "accountType": "atlassian",
929
- * "active": false,
930
- * "avatarUrls": {
931
- * "16x16":
932
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
933
- * "24x24":
934
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
935
- * "32x32":
936
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
937
- * "48x48":
938
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
939
- * },
940
- * "displayName": "Mia Krystof",
941
- * "key": "",
942
- * "name": "",
943
- * "self":
944
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
945
- * },
946
- * "assigneeType": "PROJECT_LEAD",
947
- * "description": "This is a Jira component",
948
- * "id": "10000",
949
- * "isAssigneeTypeValid": false,
950
- * "lead": {
951
- * "accountId": "5b10a2844c20165700ede21g",
952
- * "accountType": "atlassian",
953
- * "active": false,
954
- * "avatarUrls": {
955
- * "16x16":
956
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
957
- * "24x24":
958
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
959
- * "32x32":
960
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
961
- * "48x48":
962
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
963
- * },
964
- * "displayName": "Mia Krystof",
965
- * "key": "",
966
- * "name": "",
967
- * "self":
968
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
969
- * },
970
- * "metadata": {
971
- * "icon": "https://www.example.com/icon.png"
972
- * },
973
- * "name": "Component 1",
974
- * "project": "HSP",
975
- * "projectId": 10000,
976
- * "realAssignee": {
977
- * "accountId": "5b10a2844c20165700ede21g",
978
- * "accountType": "atlassian",
979
- * "active": false,
980
- * "avatarUrls": {
981
- * "16x16":
982
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
983
- * "24x24":
984
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
985
- * "32x32":
986
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
987
- * "48x48":
988
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
989
- * },
990
- * "displayName": "Mia Krystof",
991
- * "key": "",
992
- * "name": "",
993
- * "self":
994
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
995
- * },
996
- * "realAssigneeType": "PROJECT_LEAD",
997
- * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
998
- * }
999
- * @path {PUT} /rest/api/3/component/{id}
1000
- * @scopes-current manage:jira-project
1001
- * @scopes-beta read:project:jira, read:user:jira, write:project.component:jira,
1002
- * read:application-role:jira, read:avatar:jira, read:group:jira,
1003
- * read:project.component:jira
1004
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-put
1005
- */
1006
- updateComponent({ id, projectComponent, }) {
1007
- return this.getClientInstance()
1008
- .request({
1009
- path: "/rest/api/3/component/{id}",
1010
- method: "PUT",
1011
- pathParams: {
1012
- id,
1013
- },
1014
- headers: {
1015
- "Content-Type": "application/json",
1016
- },
1017
- body: projectComponent,
1018
- })
1019
- .then(this.getClientInstance().responseHandler({
1020
- 200: {
1021
- "application/json": "json",
1022
- },
1023
- }))
1024
- .then(commonHttpClient.castResponse())
1025
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.updateComponent.response"))
1026
- .then(commonHttpClient.getBody);
21
+ constructor() {
22
+ super(...arguments);
23
+ /**
24
+ * Creates a component. Use components to provide containers for issues within a
25
+ * project. Use components to provide containers for issues within a project.
26
+ *
27
+ * This operation can be accessed anonymously.
28
+ *
29
+ * **[Permissions](#permissions) required:** *Administer projects* [project
30
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project in which
31
+ * the component is created or *Administer Jira* [global
32
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
33
+ *
34
+ * @returns Returned if the request is successful.
35
+ *
36
+ * example: {
37
+ * "ari":
38
+ * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
39
+ * "assignee": {
40
+ * "accountId": "5b10a2844c20165700ede21g",
41
+ * "accountType": "atlassian",
42
+ * "active": false,
43
+ * "avatarUrls": {
44
+ * "16x16":
45
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
46
+ * "24x24":
47
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
48
+ * "32x32":
49
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
50
+ * "48x48":
51
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
52
+ * },
53
+ * "displayName": "Mia Krystof",
54
+ * "key": "",
55
+ * "name": "",
56
+ * "self":
57
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
58
+ * },
59
+ * "assigneeType": "PROJECT_LEAD",
60
+ * "description": "This is a Jira component",
61
+ * "id": "10000",
62
+ * "isAssigneeTypeValid": false,
63
+ * "lead": {
64
+ * "accountId": "5b10a2844c20165700ede21g",
65
+ * "accountType": "atlassian",
66
+ * "active": false,
67
+ * "avatarUrls": {
68
+ * "16x16":
69
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
70
+ * "24x24":
71
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
72
+ * "32x32":
73
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
74
+ * "48x48":
75
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
76
+ * },
77
+ * "displayName": "Mia Krystof",
78
+ * "key": "",
79
+ * "name": "",
80
+ * "self":
81
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
82
+ * },
83
+ * "metadata": {
84
+ * "icon": "https://www.example.com/icon.png"
85
+ * },
86
+ * "name": "Component 1",
87
+ * "project": "HSP",
88
+ * "projectId": 10000,
89
+ * "realAssignee": {
90
+ * "accountId": "5b10a2844c20165700ede21g",
91
+ * "accountType": "atlassian",
92
+ * "active": false,
93
+ * "avatarUrls": {
94
+ * "16x16":
95
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
96
+ * "24x24":
97
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
98
+ * "32x32":
99
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
100
+ * "48x48":
101
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
102
+ * },
103
+ * "displayName": "Mia Krystof",
104
+ * "key": "",
105
+ * "name": "",
106
+ * "self":
107
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
108
+ * },
109
+ * "realAssigneeType": "PROJECT_LEAD",
110
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
111
+ * }
112
+ * @path {POST} /rest/api/3/component
113
+ * @scopes-current manage:jira-project
114
+ * @scopes-beta read:project:jira, read:user:jira, write:project.component:jira,
115
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
116
+ * read:project.component:jira
117
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-post
118
+ */
119
+ this.createComponent = ({ projectComponent, }) => {
120
+ return this.getClientInstance()
121
+ .request({
122
+ path: "/rest/api/3/component",
123
+ method: "POST",
124
+ headers: {
125
+ "Content-Type": "application/json",
126
+ },
127
+ body: projectComponent,
128
+ })
129
+ .then(this.getClientInstance().responseHandler({
130
+ 201: {
131
+ "application/json": "json",
132
+ },
133
+ }))
134
+ .then(commonHttpClient.castResponse())
135
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.createComponent.response"))
136
+ .then(commonHttpClient.getBody);
137
+ };
138
+ /**
139
+ * Deletes a component.
140
+ *
141
+ * This operation can be accessed anonymously.
142
+ *
143
+ * **[Permissions](#permissions) required:** *Administer projects* [project
144
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
145
+ * containing the component or *Administer Jira* [global
146
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
147
+ *
148
+ * @path {DELETE} /rest/api/3/component/{id}
149
+ * @scopes-current manage:jira-project
150
+ * @scopes-beta delete:project.component:jira
151
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-delete
152
+ */
153
+ this.deleteComponent = ({ id, moveIssuesTo, }) => {
154
+ return this.getClientInstance()
155
+ .request({
156
+ path: "/rest/api/3/component/{id}",
157
+ method: "DELETE",
158
+ pathParams: {
159
+ id,
160
+ },
161
+ query: {
162
+ moveIssuesTo,
163
+ },
164
+ })
165
+ .then(commonHttpClient.discardResult);
166
+ };
167
+ /**
168
+ * Returns a [paginated](#pagination) list of all components in a project,
169
+ * including global (Compass) components when applicable.
170
+ *
171
+ * This operation can be accessed anonymously.
172
+ *
173
+ * **[Permissions](#permissions) required:** *Browse Projects* [project
174
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
175
+ *
176
+ * @returns Returned if the request is successful.
177
+ *
178
+ * example:
179
+ * com.atlassian.jira.issue.fields.rest.json.beans.ComponentJsonBean#PAGED_EXAMPLE}
180
+ * }
181
+ * @path {GET} /rest/api/3/component
182
+ * @scopes-current read:jira-work
183
+ * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
184
+ * read:application-role:jira, read:avatar:jira, read:group:jira
185
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-get
186
+ */
187
+ this.findComponentsForProjects = ({ projectIdsOrKeys, startAt, maxResults, orderBy, query, } = {}) => {
188
+ return this.getClientInstance()
189
+ .request({
190
+ path: "/rest/api/3/component",
191
+ method: "GET",
192
+ query: {
193
+ projectIdsOrKeys,
194
+ startAt,
195
+ maxResults,
196
+ orderBy,
197
+ query,
198
+ },
199
+ })
200
+ .then(this.getClientInstance().responseHandler({
201
+ 200: {
202
+ "application/json": "json",
203
+ },
204
+ }))
205
+ .then(commonHttpClient.castResponse())
206
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.findComponentsForProjects.response"))
207
+ .then(commonHttpClient.getBody);
208
+ };
209
+ /**
210
+ * Returns a component.
211
+ *
212
+ * This operation can be accessed anonymously.
213
+ *
214
+ * **[Permissions](#permissions) required:** *Browse projects* [project
215
+ * permission](https://confluence.atlassian.com/x/yodKLg) for project containing
216
+ * the component.
217
+ *
218
+ * @returns Returned if the request is successful.
219
+ *
220
+ * example: {
221
+ * "ari":
222
+ * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
223
+ * "assignee": {
224
+ * "accountId": "5b10a2844c20165700ede21g",
225
+ * "accountType": "atlassian",
226
+ * "active": false,
227
+ * "avatarUrls": {
228
+ * "16x16":
229
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
230
+ * "24x24":
231
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
232
+ * "32x32":
233
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
234
+ * "48x48":
235
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
236
+ * },
237
+ * "displayName": "Mia Krystof",
238
+ * "key": "",
239
+ * "name": "",
240
+ * "self":
241
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
242
+ * },
243
+ * "assigneeType": "PROJECT_LEAD",
244
+ * "description": "This is a Jira component",
245
+ * "id": "10000",
246
+ * "isAssigneeTypeValid": false,
247
+ * "lead": {
248
+ * "accountId": "5b10a2844c20165700ede21g",
249
+ * "accountType": "atlassian",
250
+ * "active": false,
251
+ * "avatarUrls": {
252
+ * "16x16":
253
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
254
+ * "24x24":
255
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
256
+ * "32x32":
257
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
258
+ * "48x48":
259
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
260
+ * },
261
+ * "displayName": "Mia Krystof",
262
+ * "key": "",
263
+ * "name": "",
264
+ * "self":
265
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
266
+ * },
267
+ * "metadata": {
268
+ * "icon": "https://www.example.com/icon.png"
269
+ * },
270
+ * "name": "Component 1",
271
+ * "project": "HSP",
272
+ * "projectId": 10000,
273
+ * "realAssignee": {
274
+ * "accountId": "5b10a2844c20165700ede21g",
275
+ * "accountType": "atlassian",
276
+ * "active": false,
277
+ * "avatarUrls": {
278
+ * "16x16":
279
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
280
+ * "24x24":
281
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
282
+ * "32x32":
283
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
284
+ * "48x48":
285
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
286
+ * },
287
+ * "displayName": "Mia Krystof",
288
+ * "key": "",
289
+ * "name": "",
290
+ * "self":
291
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
292
+ * },
293
+ * "realAssigneeType": "PROJECT_LEAD",
294
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
295
+ * }
296
+ * @path {GET} /rest/api/3/component/{id}
297
+ * @scopes-current read:jira-work
298
+ * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
299
+ * read:application-role:jira, read:avatar:jira, read:group:jira
300
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-get
301
+ */
302
+ this.getComponent = ({ id, }) => {
303
+ return this.getClientInstance()
304
+ .request({
305
+ path: "/rest/api/3/component/{id}",
306
+ method: "GET",
307
+ pathParams: {
308
+ id,
309
+ },
310
+ })
311
+ .then(this.getClientInstance().responseHandler({
312
+ 200: {
313
+ "application/json": "json",
314
+ },
315
+ }))
316
+ .then(commonHttpClient.castResponse())
317
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getComponent.response"))
318
+ .then(commonHttpClient.getBody);
319
+ };
320
+ /**
321
+ * Returns the counts of issues assigned to the component.
322
+ *
323
+ * This operation can be accessed anonymously.
324
+ *
325
+ * **Deprecation notice:** The required OAuth 2.0 scopes will be updated on June
326
+ * 15, 2024.
327
+ *
328
+ * * **Classic**: `read:jira-work`
329
+ * * **Granular**: `read:field:jira`, `read:project.component:jira`
330
+ *
331
+ * **[Permissions](#permissions) required:** None.
332
+ *
333
+ * @returns Returned if the request is successful.
334
+ *
335
+ * example: {
336
+ * "issueCount": 23,
337
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
338
+ * }
339
+ * @path {GET} /rest/api/3/component/{id}/relatedIssueCounts
340
+ * @scopes-current read:jira-work
341
+ * @scopes-beta
342
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-relatedissuecounts-get
343
+ */
344
+ this.getComponentRelatedIssues = ({ id, }) => {
345
+ return this.getClientInstance()
346
+ .request({
347
+ path: "/rest/api/3/component/{id}/relatedIssueCounts",
348
+ method: "GET",
349
+ pathParams: {
350
+ id,
351
+ },
352
+ })
353
+ .then(this.getClientInstance().responseHandler({
354
+ 200: {
355
+ "application/json": "json",
356
+ },
357
+ }))
358
+ .then(commonHttpClient.castResponse())
359
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getComponentRelatedIssues.response"))
360
+ .then(commonHttpClient.getBody);
361
+ };
362
+ /**
363
+ * Returns all components in a project. See the [Get project components
364
+ * paginated](#api-rest-api-3-project-projectIdOrKey-component-get) resource if
365
+ * you want to get a full list of components with pagination.
366
+ *
367
+ * If your project uses Compass components, this API will return a paginated list
368
+ * of Compass components that are linked to issues in that project.
369
+ *
370
+ * This operation can be accessed anonymously.
371
+ *
372
+ * **[Permissions](#permissions) required:** *Browse Projects* [project
373
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
374
+ *
375
+ * @returns Returned if the request is successful.
376
+ *
377
+ * example: [
378
+ * {
379
+ * "ari":
380
+ * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
381
+ * "assignee": {
382
+ * "accountId": "5b10a2844c20165700ede21g",
383
+ * "accountType": "atlassian",
384
+ * "active": false,
385
+ * "avatarUrls": {
386
+ * "16x16":
387
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
388
+ * "24x24":
389
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
390
+ * "32x32":
391
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
392
+ * "48x48":
393
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
394
+ * },
395
+ * "displayName": "Mia Krystof",
396
+ * "key": "",
397
+ * "name": "",
398
+ * "self":
399
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
400
+ * },
401
+ * "assigneeType": "PROJECT_LEAD",
402
+ * "description": "This is a Jira component",
403
+ * "id": "10000",
404
+ * "isAssigneeTypeValid": false,
405
+ * "lead": {
406
+ * "accountId": "5b10a2844c20165700ede21g",
407
+ * "accountType": "atlassian",
408
+ * "active": false,
409
+ * "avatarUrls": {
410
+ * "16x16":
411
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
412
+ * "24x24":
413
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
414
+ * "32x32":
415
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
416
+ * "48x48":
417
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
418
+ * },
419
+ * "displayName": "Mia Krystof",
420
+ * "key": "",
421
+ * "name": "",
422
+ * "self":
423
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
424
+ * },
425
+ * "metadata": {
426
+ * "icon": "https://www.example.com/icon.png"
427
+ * },
428
+ * "name": "Component 1",
429
+ * "project": "HSP",
430
+ * "projectId": 10000,
431
+ * "realAssignee": {
432
+ * "accountId": "5b10a2844c20165700ede21g",
433
+ * "accountType": "atlassian",
434
+ * "active": false,
435
+ * "avatarUrls": {
436
+ * "16x16":
437
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
438
+ * "24x24":
439
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
440
+ * "32x32":
441
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
442
+ * "48x48":
443
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
444
+ * },
445
+ * "displayName": "Mia Krystof",
446
+ * "key": "",
447
+ * "name": "",
448
+ * "self":
449
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
450
+ * },
451
+ * "realAssigneeType": "PROJECT_LEAD",
452
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
453
+ * },
454
+ * {
455
+ * "ari":
456
+ * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-11ee-4e70-be56-0242ac120002/fdb3fdec-4e70-11ee-be56-0242ac120002",
457
+ * "assignee": {
458
+ * "accountId": "5b10a2844c20165700ede21g",
459
+ * "accountType": "atlassian",
460
+ * "active": false,
461
+ * "avatarUrls": {
462
+ * "16x16":
463
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
464
+ * "24x24":
465
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
466
+ * "32x32":
467
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
468
+ * "48x48":
469
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
470
+ * },
471
+ * "displayName": "Mia Krystof",
472
+ * "key": "",
473
+ * "name": "",
474
+ * "self":
475
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
476
+ * },
477
+ * "assigneeType": "PROJECT_LEAD",
478
+ * "description": "This is a another Jira component",
479
+ * "id": "10050",
480
+ * "isAssigneeTypeValid": false,
481
+ * "lead": {
482
+ * "accountId": "5b10a2844c20165700ede21g",
483
+ * "accountType": "atlassian",
484
+ * "active": false,
485
+ * "avatarUrls": {
486
+ * "16x16":
487
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
488
+ * "24x24":
489
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
490
+ * "32x32":
491
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
492
+ * "48x48":
493
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
494
+ * },
495
+ * "displayName": "Mia Krystof",
496
+ * "key": "",
497
+ * "name": "",
498
+ * "self":
499
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
500
+ * },
501
+ * "metadata": {
502
+ * "icon": "https://www.example.com/icon.png"
503
+ * },
504
+ * "name": "PXA",
505
+ * "project": "PROJECTKEY",
506
+ * "projectId": 10000,
507
+ * "realAssignee": {
508
+ * "accountId": "5b10a2844c20165700ede21g",
509
+ * "accountType": "atlassian",
510
+ * "active": false,
511
+ * "avatarUrls": {
512
+ * "16x16":
513
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
514
+ * "24x24":
515
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
516
+ * "32x32":
517
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
518
+ * "48x48":
519
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
520
+ * },
521
+ * "displayName": "Mia Krystof",
522
+ * "key": "",
523
+ * "name": "",
524
+ * "self":
525
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
526
+ * },
527
+ * "realAssigneeType": "PROJECT_LEAD",
528
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
529
+ * }
530
+ * ]
531
+ * @path {GET} /rest/api/3/project/{projectIdOrKey}/components
532
+ * @scopes-current read:jira-work
533
+ * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
534
+ * read:application-role:jira, read:avatar:jira, read:group:jira
535
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-project-projectidorkey-components-get
536
+ */
537
+ this.getProjectComponents = ({ projectIdOrKey, componentSource, }) => {
538
+ return this.getClientInstance()
539
+ .request({
540
+ path: "/rest/api/3/project/{projectIdOrKey}/components",
541
+ method: "GET",
542
+ pathParams: {
543
+ projectIdOrKey,
544
+ },
545
+ query: {
546
+ componentSource,
547
+ },
548
+ })
549
+ .then(this.getClientInstance().responseHandler({
550
+ 200: {
551
+ "application/json": "json",
552
+ },
553
+ }))
554
+ .then(commonHttpClient.castResponse())
555
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getProjectComponents.response"))
556
+ .then(commonHttpClient.getBody);
557
+ };
558
+ /**
559
+ * Returns a [paginated](#pagination) list of all components in a project. See the
560
+ * [Get project components](#api-rest-api-3-project-projectIdOrKey-components-get)
561
+ * resource if you want to get a full list of versions without pagination.
562
+ *
563
+ * If your project uses Compass components, this API will return a list of Compass
564
+ * components that are linked to issues in that project.
565
+ *
566
+ * This operation can be accessed anonymously.
567
+ *
568
+ * **[Permissions](#permissions) required:** *Browse Projects* [project
569
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
570
+ *
571
+ * @returns Returned if the request is successful.
572
+ *
573
+ * example: {
574
+ * "isLast": false,
575
+ * "maxResults": 2,
576
+ * "nextPage":
577
+ * "https://your-domain.atlassian.net/rest/api/3/project/PR/component?startAt=2&maxResults=2",
578
+ * "self":
579
+ * "https://your-domain.atlassian.net/rest/api/3/project/PR/component?startAt=0&maxResults=2",
580
+ * "startAt": 0,
581
+ * "total": 7,
582
+ * "values": [
583
+ * {
584
+ * "assignee": {
585
+ * "accountId": "5b10a2844c20165700ede21g",
586
+ * "accountType": "atlassian",
587
+ * "active": false,
588
+ * "avatarUrls": {
589
+ * "16x16":
590
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
591
+ * "24x24":
592
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
593
+ * "32x32":
594
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
595
+ * "48x48":
596
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
597
+ * },
598
+ * "displayName": "Mia Krystof",
599
+ * "key": "",
600
+ * "name": "",
601
+ * "self":
602
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
603
+ * },
604
+ * "assigneeType": "PROJECT_LEAD",
605
+ * "componentBean": {
606
+ * "ari":
607
+ * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
608
+ * "assignee": {
609
+ * "accountId": "5b10a2844c20165700ede21g",
610
+ * "accountType": "atlassian",
611
+ * "active": false,
612
+ * "avatarUrls": {
613
+ * "16x16":
614
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
615
+ * "24x24":
616
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
617
+ * "32x32":
618
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
619
+ * "48x48":
620
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
621
+ * },
622
+ * "displayName": "Mia Krystof",
623
+ * "key": "",
624
+ * "name": "",
625
+ * "self":
626
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
627
+ * },
628
+ * "assigneeType": "PROJECT_LEAD",
629
+ * "description": "This is a Jira component",
630
+ * "id": "10000",
631
+ * "isAssigneeTypeValid": false,
632
+ * "lead": {
633
+ * "accountId": "5b10a2844c20165700ede21g",
634
+ * "accountType": "atlassian",
635
+ * "active": false,
636
+ * "avatarUrls": {
637
+ * "16x16":
638
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
639
+ * "24x24":
640
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
641
+ * "32x32":
642
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
643
+ * "48x48":
644
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
645
+ * },
646
+ * "displayName": "Mia Krystof",
647
+ * "key": "",
648
+ * "name": "",
649
+ * "self":
650
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
651
+ * },
652
+ * "metadata": {
653
+ * "icon": "https://www.example.com/icon.png"
654
+ * },
655
+ * "name": "Component 1",
656
+ * "project": "HSP",
657
+ * "projectId": 10000,
658
+ * "realAssignee": {
659
+ * "accountId": "5b10a2844c20165700ede21g",
660
+ * "accountType": "atlassian",
661
+ * "active": false,
662
+ * "avatarUrls": {
663
+ * "16x16":
664
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
665
+ * "24x24":
666
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
667
+ * "32x32":
668
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
669
+ * "48x48":
670
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
671
+ * },
672
+ * "displayName": "Mia Krystof",
673
+ * "key": "",
674
+ * "name": "",
675
+ * "self":
676
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
677
+ * },
678
+ * "realAssigneeType": "PROJECT_LEAD",
679
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
680
+ * },
681
+ * "description": "This is a Jira component",
682
+ * "id": "10000",
683
+ * "isAssigneeTypeValid": false,
684
+ * "issueCount": 1,
685
+ * "lead": {
686
+ * "accountId": "5b10a2844c20165700ede21g",
687
+ * "accountType": "atlassian",
688
+ * "active": false,
689
+ * "avatarUrls": {
690
+ * "16x16":
691
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
692
+ * "24x24":
693
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
694
+ * "32x32":
695
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
696
+ * "48x48":
697
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
698
+ * },
699
+ * "displayName": "Mia Krystof",
700
+ * "key": "",
701
+ * "name": "",
702
+ * "self":
703
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
704
+ * },
705
+ * "name": "Component 1",
706
+ * "project": "HSP",
707
+ * "projectId": 10000,
708
+ * "realAssignee": {
709
+ * "accountId": "5b10a2844c20165700ede21g",
710
+ * "accountType": "atlassian",
711
+ * "active": false,
712
+ * "avatarUrls": {
713
+ * "16x16":
714
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
715
+ * "24x24":
716
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
717
+ * "32x32":
718
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
719
+ * "48x48":
720
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
721
+ * },
722
+ * "displayName": "Mia Krystof",
723
+ * "key": "",
724
+ * "name": "",
725
+ * "self":
726
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
727
+ * },
728
+ * "realAssigneeType": "PROJECT_LEAD",
729
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
730
+ * },
731
+ * {
732
+ * "assignee": {
733
+ * "accountId": "5b10a2844c20165700ede21g",
734
+ * "accountType": "atlassian",
735
+ * "active": false,
736
+ * "avatarUrls": {
737
+ * "16x16":
738
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
739
+ * "24x24":
740
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
741
+ * "32x32":
742
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
743
+ * "48x48":
744
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
745
+ * },
746
+ * "displayName": "Mia Krystof",
747
+ * "key": "",
748
+ * "name": "",
749
+ * "self":
750
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
751
+ * },
752
+ * "assigneeType": "PROJECT_LEAD",
753
+ * "componentBean": {
754
+ * "ari":
755
+ * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-11ee-4e70-be56-0242ac120002/fdb3fdec-4e70-11ee-be56-0242ac120002",
756
+ * "assignee": {
757
+ * "accountId": "5b10a2844c20165700ede21g",
758
+ * "accountType": "atlassian",
759
+ * "active": false,
760
+ * "avatarUrls": {
761
+ * "16x16":
762
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
763
+ * "24x24":
764
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
765
+ * "32x32":
766
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
767
+ * "48x48":
768
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
769
+ * },
770
+ * "displayName": "Mia Krystof",
771
+ * "key": "",
772
+ * "name": "",
773
+ * "self":
774
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
775
+ * },
776
+ * "assigneeType": "PROJECT_LEAD",
777
+ * "description": "This is a another Jira component",
778
+ * "id": "10050",
779
+ * "isAssigneeTypeValid": false,
780
+ * "lead": {
781
+ * "accountId": "5b10a2844c20165700ede21g",
782
+ * "accountType": "atlassian",
783
+ * "active": false,
784
+ * "avatarUrls": {
785
+ * "16x16":
786
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
787
+ * "24x24":
788
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
789
+ * "32x32":
790
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
791
+ * "48x48":
792
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
793
+ * },
794
+ * "displayName": "Mia Krystof",
795
+ * "key": "",
796
+ * "name": "",
797
+ * "self":
798
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
799
+ * },
800
+ * "metadata": {
801
+ * "icon": "https://www.example.com/icon.png"
802
+ * },
803
+ * "name": "PXA",
804
+ * "project": "PROJECTKEY",
805
+ * "projectId": 10000,
806
+ * "realAssignee": {
807
+ * "accountId": "5b10a2844c20165700ede21g",
808
+ * "accountType": "atlassian",
809
+ * "active": false,
810
+ * "avatarUrls": {
811
+ * "16x16":
812
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
813
+ * "24x24":
814
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
815
+ * "32x32":
816
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
817
+ * "48x48":
818
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
819
+ * },
820
+ * "displayName": "Mia Krystof",
821
+ * "key": "",
822
+ * "name": "",
823
+ * "self":
824
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
825
+ * },
826
+ * "realAssigneeType": "PROJECT_LEAD",
827
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
828
+ * },
829
+ * "description": "This is a another Jira component",
830
+ * "id": "10050",
831
+ * "isAssigneeTypeValid": false,
832
+ * "issueCount": 5,
833
+ * "lead": {
834
+ * "accountId": "5b10a2844c20165700ede21g",
835
+ * "accountType": "atlassian",
836
+ * "active": false,
837
+ * "avatarUrls": {
838
+ * "16x16":
839
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
840
+ * "24x24":
841
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
842
+ * "32x32":
843
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
844
+ * "48x48":
845
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
846
+ * },
847
+ * "displayName": "Mia Krystof",
848
+ * "key": "",
849
+ * "name": "",
850
+ * "self":
851
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
852
+ * },
853
+ * "name": "PXA",
854
+ * "project": "PROJECTKEY",
855
+ * "projectId": 10000,
856
+ * "realAssignee": {
857
+ * "accountId": "5b10a2844c20165700ede21g",
858
+ * "accountType": "atlassian",
859
+ * "active": false,
860
+ * "avatarUrls": {
861
+ * "16x16":
862
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
863
+ * "24x24":
864
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
865
+ * "32x32":
866
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
867
+ * "48x48":
868
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
869
+ * },
870
+ * "displayName": "Mia Krystof",
871
+ * "key": "",
872
+ * "name": "",
873
+ * "self":
874
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
875
+ * },
876
+ * "realAssigneeType": "PROJECT_LEAD",
877
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
878
+ * }
879
+ * ]
880
+ * }
881
+ * @path {GET} /rest/api/3/project/{projectIdOrKey}/component
882
+ * @scopes-current read:jira-work
883
+ * @scopes-beta read:project:jira, read:project.component:jira, read:user:jira,
884
+ * read:application-role:jira, read:avatar:jira, read:group:jira
885
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-project-projectidorkey-component-get
886
+ */
887
+ this.getProjectComponentsPaginated = ({ projectIdOrKey, startAt, maxResults, orderBy, componentSource, query, }) => {
888
+ return this.getClientInstance()
889
+ .request({
890
+ path: "/rest/api/3/project/{projectIdOrKey}/component",
891
+ method: "GET",
892
+ pathParams: {
893
+ projectIdOrKey,
894
+ },
895
+ query: {
896
+ startAt,
897
+ maxResults,
898
+ orderBy,
899
+ componentSource,
900
+ query,
901
+ },
902
+ })
903
+ .then(this.getClientInstance().responseHandler({
904
+ 200: {
905
+ "application/json": "json",
906
+ },
907
+ }))
908
+ .then(commonHttpClient.castResponse())
909
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.getProjectComponentsPaginated.response"))
910
+ .then(commonHttpClient.getBody);
911
+ };
912
+ /**
913
+ * Updates a component. Any fields included in the request are overwritten. If
914
+ * `leadAccountId` is an empty string ("") the component lead is removed.
915
+ *
916
+ * This operation can be accessed anonymously.
917
+ *
918
+ * **[Permissions](#permissions) required:** *Administer projects* [project
919
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
920
+ * containing the component or *Administer Jira* [global
921
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
922
+ *
923
+ * @returns Returned if the request is successful.
924
+ *
925
+ * example: {
926
+ * "ari":
927
+ * "ari:cloud:compass:fdb3fdec-4e70-be56-11ee-0242ac120002:component/fdb3fdec-4e70-11ee-be56-0242ac120002/fdb3fdec-11ee-4e70-be56-0242ac120002",
928
+ * "assignee": {
929
+ * "accountId": "5b10a2844c20165700ede21g",
930
+ * "accountType": "atlassian",
931
+ * "active": false,
932
+ * "avatarUrls": {
933
+ * "16x16":
934
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
935
+ * "24x24":
936
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
937
+ * "32x32":
938
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
939
+ * "48x48":
940
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
941
+ * },
942
+ * "displayName": "Mia Krystof",
943
+ * "key": "",
944
+ * "name": "",
945
+ * "self":
946
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
947
+ * },
948
+ * "assigneeType": "PROJECT_LEAD",
949
+ * "description": "This is a Jira component",
950
+ * "id": "10000",
951
+ * "isAssigneeTypeValid": false,
952
+ * "lead": {
953
+ * "accountId": "5b10a2844c20165700ede21g",
954
+ * "accountType": "atlassian",
955
+ * "active": false,
956
+ * "avatarUrls": {
957
+ * "16x16":
958
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
959
+ * "24x24":
960
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
961
+ * "32x32":
962
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
963
+ * "48x48":
964
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
965
+ * },
966
+ * "displayName": "Mia Krystof",
967
+ * "key": "",
968
+ * "name": "",
969
+ * "self":
970
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
971
+ * },
972
+ * "metadata": {
973
+ * "icon": "https://www.example.com/icon.png"
974
+ * },
975
+ * "name": "Component 1",
976
+ * "project": "HSP",
977
+ * "projectId": 10000,
978
+ * "realAssignee": {
979
+ * "accountId": "5b10a2844c20165700ede21g",
980
+ * "accountType": "atlassian",
981
+ * "active": false,
982
+ * "avatarUrls": {
983
+ * "16x16":
984
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
985
+ * "24x24":
986
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
987
+ * "32x32":
988
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
989
+ * "48x48":
990
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
991
+ * },
992
+ * "displayName": "Mia Krystof",
993
+ * "key": "",
994
+ * "name": "",
995
+ * "self":
996
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
997
+ * },
998
+ * "realAssigneeType": "PROJECT_LEAD",
999
+ * "self": "https://your-domain.atlassian.net/rest/api/3/component/10000"
1000
+ * }
1001
+ * @path {PUT} /rest/api/3/component/{id}
1002
+ * @scopes-current manage:jira-project
1003
+ * @scopes-beta read:project:jira, read:user:jira, write:project.component:jira,
1004
+ * read:application-role:jira, read:avatar:jira, read:group:jira,
1005
+ * read:project.component:jira
1006
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components#api-rest-api-3-component-id-put
1007
+ */
1008
+ this.updateComponent = ({ id, projectComponent, }) => {
1009
+ return this.getClientInstance()
1010
+ .request({
1011
+ path: "/rest/api/3/component/{id}",
1012
+ method: "PUT",
1013
+ pathParams: {
1014
+ id,
1015
+ },
1016
+ headers: {
1017
+ "Content-Type": "application/json",
1018
+ },
1019
+ body: projectComponent,
1020
+ })
1021
+ .then(this.getClientInstance().responseHandler({
1022
+ 200: {
1023
+ "application/json": "json",
1024
+ },
1025
+ }))
1026
+ .then(commonHttpClient.castResponse())
1027
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ProjectComponentsService.updateComponent.response"))
1028
+ .then(commonHttpClient.getBody);
1029
+ };
1027
1030
  }
1028
1031
  static initialize() {
1029
1032
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ProjectComponentsService.findComponentsForProjects.response", zod_1.z