@resolution/jira-api-client 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +60 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +118 -95
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1073 -869
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/core/CommonHttpService.d.ts +2 -0
  7. package/lib/openapi/platform/core/CommonHttpService.js +9 -0
  8. package/lib/openapi/platform/core/CommonHttpService.js.map +1 -1
  9. package/lib/openapi/platform/models/common.d.ts +6 -0
  10. package/lib/openapi/platform/models/common.js +12 -1
  11. package/lib/openapi/platform/models/common.js.map +1 -1
  12. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  13. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  14. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  15. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  16. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  17. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  18. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  19. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  20. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  22. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  23. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  25. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  26. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  27. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  28. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  29. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  30. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  31. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  32. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  33. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  34. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  35. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  36. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  37. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  38. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  39. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  40. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  41. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  43. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  44. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  45. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  46. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  47. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  48. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  49. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  50. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  51. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  52. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  53. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  55. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  56. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  57. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  58. package/lib/openapi/platform/services/GroupsService.js +385 -382
  59. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  61. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  62. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  63. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  64. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  65. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  66. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  67. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  68. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  70. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  71. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  73. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  74. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  76. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  77. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  82. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  83. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  85. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  86. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  88. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  89. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  91. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  92. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  94. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  95. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  97. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  98. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  100. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  101. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  103. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  104. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  106. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  107. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  109. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  110. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  112. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  113. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  115. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  116. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  118. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  119. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  121. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  122. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  124. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  125. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  127. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  128. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  130. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  131. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  133. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  134. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  136. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  137. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  139. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  140. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  142. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  143. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  145. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  146. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  148. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  149. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  150. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  151. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  152. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  154. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  155. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  157. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  158. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  160. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  161. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  162. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  163. package/lib/openapi/platform/services/JqlService.js +635 -632
  164. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  165. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LabelsService.js +41 -38
  167. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  168. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  169. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  170. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  171. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  172. package/lib/openapi/platform/services/MyselfService.js +321 -318
  173. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  175. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  176. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  177. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  178. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  179. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  180. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  181. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  182. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  184. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  185. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  187. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  188. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  190. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  191. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  193. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  194. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  197. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  199. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  200. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  202. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  203. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  205. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  206. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  208. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  209. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  211. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  212. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  214. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  215. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  217. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  218. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  220. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  221. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  223. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  224. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  226. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  227. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  229. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  230. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  232. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  233. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  234. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  235. package/lib/openapi/platform/services/ScreensService.js +281 -278
  236. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  238. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  239. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  240. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  241. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  242. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  243. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  244. package/lib/openapi/platform/services/StatusService.js +271 -268
  245. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  246. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  247. package/lib/openapi/platform/services/TasksService.js +93 -90
  248. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  249. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  250. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  251. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  252. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  253. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  254. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  256. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  257. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  258. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  259. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  260. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  261. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  262. package/lib/openapi/platform/services/UsersService.js +637 -634
  263. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  264. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  265. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  266. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  268. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  269. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  271. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  272. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  274. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  275. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  278. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  280. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  281. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  283. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  284. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  286. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  287. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  288. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  289. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  290. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  291. package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +13 -14
  292. package/lib/openapi/software/BaseJiraSoftwareApiClient.js +454 -429
  293. package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
  294. package/lib/openapi/software/core/CommonHttpService.d.ts +2 -0
  295. package/lib/openapi/software/core/CommonHttpService.js +9 -0
  296. package/lib/openapi/software/core/CommonHttpService.js.map +1 -1
  297. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  298. package/lib/openapi/software/services/BacklogService.js +81 -78
  299. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  300. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  301. package/lib/openapi/software/services/BoardService.js +2048 -2045
  302. package/lib/openapi/software/services/BoardService.js.map +1 -1
  303. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  304. package/lib/openapi/software/services/BuildsService.js +164 -161
  305. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  306. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  307. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  308. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  309. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  310. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  311. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  312. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  313. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  314. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  315. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  316. package/lib/openapi/software/services/EpicService.js +597 -594
  317. package/lib/openapi/software/services/EpicService.js.map +1 -1
  318. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  319. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  320. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  321. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  322. package/lib/openapi/software/services/IssueService.js +359 -356
  323. package/lib/openapi/software/services/IssueService.js.map +1 -1
  324. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  325. package/lib/openapi/software/services/OperationsService.js +301 -298
  326. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  327. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  328. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  329. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  330. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  331. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  332. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  333. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  334. package/lib/openapi/software/services/SprintService.js +594 -591
  335. package/lib/openapi/software/services/SprintService.js.map +1 -1
  336. package/package.json +4 -3
@@ -20,510 +20,513 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
20
20
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments
21
21
  */
22
22
  class IssueCommentsService extends CommonHttpService_1.CommonHttpService {
23
- /**
24
- * Adds a comment to an issue.
25
- *
26
- * This operation can be accessed anonymously.
27
- *
28
- * **[Permissions](#permissions) required:**
29
- *
30
- * * *Browse projects* and *Add comments* [ project
31
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
32
- * issue containing the comment is in.
33
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
34
- * configured, issue-level security permission to view the issue.
35
- *
36
- * @returns Returned if the request is successful.
37
- *
38
- * example: {
39
- * "author": {
40
- * "accountId": "5b10a2844c20165700ede21g",
41
- * "active": false,
42
- * "displayName": "Mia Krystof",
43
- * "self":
44
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
45
- * },
46
- * "body": {
47
- * "type": "doc",
48
- * "version": 1,
49
- * "content": [
50
- * {
51
- * "type": "paragraph",
52
- * "content": [
53
- * {
54
- * "type": "text",
55
- * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
56
- * Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum.
57
- * Sed semper quam laoreet nisi egestas at posuere augue semper."
58
- * }
59
- * ]
60
- * }
61
- * ]
62
- * },
63
- * "created": "2021-01-17T12:34:00.000+0000",
64
- * "id": "10000",
65
- * "self":
66
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
67
- * "updateAuthor": {
68
- * "accountId": "5b10a2844c20165700ede21g",
69
- * "active": false,
70
- * "displayName": "Mia Krystof",
71
- * "self":
72
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
73
- * },
74
- * "updated": "2021-01-18T23:45:00.000+0000",
75
- * "visibility": {
76
- * "identifier": "Administrators",
77
- * "type": "role",
78
- * "value": "Administrators"
79
- * }
80
- * }
81
- * @path {POST} /rest/api/3/issue/{issueIdOrKey}/comment
82
- * @scopes-current write:jira-work
83
- * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
84
- * read:project:jira, read:project-role:jira, read:user:jira, write:comment:jira,
85
- * read:avatar:jira
86
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-post
87
- */
88
- addComment({ issueIdOrKey, expand, comment, }) {
89
- return this.getClientInstance()
90
- .request({
91
- path: "/rest/api/3/issue/{issueIdOrKey}/comment",
92
- method: "POST",
93
- pathParams: {
94
- issueIdOrKey,
95
- },
96
- query: {
97
- expand,
98
- },
99
- headers: {
100
- "Content-Type": "application/json",
101
- },
102
- body: comment,
103
- })
104
- .then(this.getClientInstance().responseHandler({
105
- 201: {
106
- "application/json": "json",
107
- },
108
- }))
109
- .then(commonHttpClient.castResponse())
110
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.addComment.response"))
111
- .then(commonHttpClient.getBody);
112
- }
113
- /**
114
- * Deletes a comment.
115
- *
116
- * **[Permissions](#permissions) required:**
117
- *
118
- * * *Browse projects* [project
119
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
120
- * issue containing the comment is in.
121
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
122
- * configured, issue-level security permission to view the issue.
123
- * * *Delete all comments*[ project
124
- * permission](https://confluence.atlassian.com/x/yodKLg) to delete any comment or
125
- * *Delete own comments* to delete comment created by the user,
126
- * * If the comment has visibility restrictions, the user belongs to the group
127
- * or has the role visibility is restricted to.
128
- *
129
- * @path {DELETE} /rest/api/3/issue/{issueIdOrKey}/comment/{id}
130
- * @scopes-current write:jira-work
131
- * @scopes-beta delete:comment:jira, delete:comment.property:jira
132
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-id-delete
133
- */
134
- deleteComment({ issueIdOrKey, id, }) {
135
- return this.getClientInstance()
136
- .request({
137
- path: "/rest/api/3/issue/{issueIdOrKey}/comment/{id}",
138
- method: "DELETE",
139
- pathParams: {
140
- issueIdOrKey,
141
- id,
142
- },
143
- })
144
- .then(commonHttpClient.discardResult);
145
- }
146
- /**
147
- * Returns a comment.
148
- *
149
- * This operation can be accessed anonymously.
150
- *
151
- * **[Permissions](#permissions) required:**
152
- *
153
- * * *Browse projects* [project
154
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
155
- * containing the comment.
156
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
157
- * configured, issue-level security permission to view the issue.
158
- * * If the comment has visibility restrictions, the user belongs to the group
159
- * or has the role visibility is restricted to.
160
- *
161
- * @returns Returned if the request is successful.
162
- *
163
- * example: {
164
- * "author": {
165
- * "accountId": "5b10a2844c20165700ede21g",
166
- * "active": false,
167
- * "displayName": "Mia Krystof",
168
- * "self":
169
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
170
- * },
171
- * "body": {
172
- * "type": "doc",
173
- * "version": 1,
174
- * "content": [
175
- * {
176
- * "type": "paragraph",
177
- * "content": [
178
- * {
179
- * "type": "text",
180
- * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
181
- * Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum.
182
- * Sed semper quam laoreet nisi egestas at posuere augue semper."
183
- * }
184
- * ]
185
- * }
186
- * ]
187
- * },
188
- * "created": "2021-01-17T12:34:00.000+0000",
189
- * "id": "10000",
190
- * "self":
191
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
192
- * "updateAuthor": {
193
- * "accountId": "5b10a2844c20165700ede21g",
194
- * "active": false,
195
- * "displayName": "Mia Krystof",
196
- * "self":
197
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
198
- * },
199
- * "updated": "2021-01-18T23:45:00.000+0000",
200
- * "visibility": {
201
- * "identifier": "Administrators",
202
- * "type": "role",
203
- * "value": "Administrators"
204
- * }
205
- * }
206
- * @path {GET} /rest/api/3/issue/{issueIdOrKey}/comment/{id}
207
- * @scopes-current read:jira-work
208
- * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
209
- * read:project:jira, read:project-role:jira, read:user:jira, read:avatar:jira
210
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-id-get
211
- */
212
- getComment({ issueIdOrKey, id, expand, }) {
213
- return this.getClientInstance()
214
- .request({
215
- path: "/rest/api/3/issue/{issueIdOrKey}/comment/{id}",
216
- method: "GET",
217
- pathParams: {
218
- issueIdOrKey,
219
- id,
220
- },
221
- query: {
222
- expand,
223
- },
224
- })
225
- .then(this.getClientInstance().responseHandler({
226
- 200: {
227
- "application/json": "json",
228
- },
229
- }))
230
- .then(commonHttpClient.castResponse())
231
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.getComment.response"))
232
- .then(commonHttpClient.getBody);
233
- }
234
- /**
235
- * Returns all comments for an issue.
236
- *
237
- * This operation can be accessed anonymously.
238
- *
239
- * **[Permissions](#permissions) required:** Comments are included in the response
240
- * where the user has:
241
- *
242
- * * *Browse projects* [project
243
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
244
- * containing the comment.
245
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
246
- * configured, issue-level security permission to view the issue.
247
- * * If the comment has visibility restrictions, belongs to the group or has the
248
- * role visibility is role visibility is restricted to.
249
- *
250
- * @returns Returned if the request is successful.
251
- *
252
- * example: {
253
- * "comments": [
254
- * {
255
- * "author": {
256
- * "accountId": "5b10a2844c20165700ede21g",
257
- * "active": false,
258
- * "displayName": "Mia Krystof",
259
- * "self":
260
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
261
- * },
262
- * "body": {
263
- * "type": "doc",
264
- * "version": 1,
265
- * "content": [
266
- * {
267
- * "type": "paragraph",
268
- * "content": [
269
- * {
270
- * "type": "text",
271
- * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing
272
- * elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis
273
- * fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
274
- * }
275
- * ]
276
- * }
277
- * ]
278
- * },
279
- * "created": "2021-01-17T12:34:00.000+0000",
280
- * "id": "10000",
281
- * "self":
282
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
283
- * "updateAuthor": {
284
- * "accountId": "5b10a2844c20165700ede21g",
285
- * "active": false,
286
- * "displayName": "Mia Krystof",
287
- * "self":
288
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
289
- * },
290
- * "updated": "2021-01-18T23:45:00.000+0000",
291
- * "visibility": {
292
- * "identifier": "Administrators",
293
- * "type": "role",
294
- * "value": "Administrators"
295
- * }
296
- * }
297
- * ],
298
- * "maxResults": 1,
299
- * "startAt": 0,
300
- * "total": 1
301
- * }
302
- * @path {GET} /rest/api/3/issue/{issueIdOrKey}/comment
303
- * @scopes-current read:jira-work
304
- * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
305
- * read:project:jira, read:project-role:jira, read:user:jira, read:avatar:jira
306
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-get
307
- */
308
- getComments({ issueIdOrKey, startAt, maxResults, orderBy, expand, }) {
309
- return this.getClientInstance()
310
- .request({
311
- path: "/rest/api/3/issue/{issueIdOrKey}/comment",
312
- method: "GET",
313
- pathParams: {
314
- issueIdOrKey,
315
- },
316
- query: {
317
- startAt,
318
- maxResults,
319
- orderBy,
320
- expand,
321
- },
322
- })
323
- .then(this.getClientInstance().responseHandler({
324
- 200: {
325
- "application/json": "json",
326
- },
327
- }))
328
- .then(commonHttpClient.castResponse())
329
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.getComments.response"))
330
- .then(commonHttpClient.getBody);
331
- }
332
- /**
333
- * Returns a [paginated](#pagination) list of comments specified by a list of
334
- * comment IDs.
335
- *
336
- * This operation can be accessed anonymously.
337
- *
338
- * **[Permissions](#permissions) required:** Comments are returned where the user:
339
- *
340
- * * has *Browse projects* [project
341
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
342
- * containing the comment.
343
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
344
- * configured, issue-level security permission to view the issue.
345
- * * If the comment has visibility restrictions, belongs to the group or has the
346
- * role visibility is restricted to.
347
- *
348
- * @returns Returned if the request is successful.
349
- *
350
- * example: {
351
- * "isLast": true,
352
- * "maxResults": 1048576,
353
- * "startAt": 0,
354
- * "total": 1,
355
- * "values": [
356
- * {
357
- * "author": {
358
- * "accountId": "5b10a2844c20165700ede21g",
359
- * "active": false,
360
- * "displayName": "Mia Krystof",
361
- * "self":
362
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
363
- * },
364
- * "body": {
365
- * "type": "doc",
366
- * "version": 1,
367
- * "content": [
368
- * {
369
- * "type": "paragraph",
370
- * "content": [
371
- * {
372
- * "type": "text",
373
- * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing
374
- * elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis
375
- * fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
376
- * }
377
- * ]
378
- * }
379
- * ]
380
- * },
381
- * "created": "2021-01-17T12:34:00.000+0000",
382
- * "id": "10000",
383
- * "self":
384
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
385
- * "updateAuthor": {
386
- * "accountId": "5b10a2844c20165700ede21g",
387
- * "active": false,
388
- * "displayName": "Mia Krystof",
389
- * "self":
390
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
391
- * },
392
- * "updated": "2021-01-18T23:45:00.000+0000",
393
- * "visibility": {
394
- * "identifier": "Administrators",
395
- * "type": "role",
396
- * "value": "Administrators"
397
- * }
398
- * }
399
- * ]
400
- * }
401
- * @path {POST} /rest/api/3/comment/list
402
- * @scopes-current read:jira-work
403
- * @scopes-beta delete:comment.property:jira, read:avatar:jira, read:comment:jira,
404
- * read:group:jira, read:project-role:jira, read:user:jira,
405
- * read:comment.property:jira, read:project:jira
406
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-comment-list-post
407
- */
408
- getCommentsByIds({ expand, issueCommentListRequestBean, }) {
409
- return this.getClientInstance()
410
- .request({
411
- path: "/rest/api/3/comment/list",
412
- method: "POST",
413
- query: {
414
- expand,
415
- },
416
- headers: {
417
- "Content-Type": "application/json",
418
- },
419
- body: issueCommentListRequestBean,
420
- })
421
- .then(this.getClientInstance().responseHandler({
422
- 200: {
423
- "application/json": "json",
424
- },
425
- }))
426
- .then(commonHttpClient.castResponse())
427
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.getCommentsByIds.response"))
428
- .then(commonHttpClient.getBody);
429
- }
430
- /**
431
- * Updates a comment.
432
- *
433
- * This operation can be accessed anonymously.
434
- *
435
- * **[Permissions](#permissions) required:**
436
- *
437
- * * *Browse projects* [project
438
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
439
- * issue containing the comment is in.
440
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
441
- * configured, issue-level security permission to view the issue.
442
- * * *Edit all comments*[ project
443
- * permission](https://confluence.atlassian.com/x/yodKLg) to update any comment or
444
- * *Edit own comments* to update comment created by the user.
445
- * * If the comment has visibility restrictions, the user belongs to the group
446
- * or has the role visibility is restricted to.
447
- *
448
- * @returns Returned if the request is successful.
449
- *
450
- * example: {
451
- * "author": {
452
- * "accountId": "5b10a2844c20165700ede21g",
453
- * "active": false,
454
- * "displayName": "Mia Krystof",
455
- * "self":
456
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
457
- * },
458
- * "body": {
459
- * "type": "doc",
460
- * "version": 1,
461
- * "content": [
462
- * {
463
- * "type": "paragraph",
464
- * "content": [
465
- * {
466
- * "type": "text",
467
- * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
468
- * Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum.
469
- * Sed semper quam laoreet nisi egestas at posuere augue semper."
470
- * }
471
- * ]
472
- * }
473
- * ]
474
- * },
475
- * "created": "2021-01-17T12:34:00.000+0000",
476
- * "id": "10000",
477
- * "self":
478
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
479
- * "updateAuthor": {
480
- * "accountId": "5b10a2844c20165700ede21g",
481
- * "active": false,
482
- * "displayName": "Mia Krystof",
483
- * "self":
484
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
485
- * },
486
- * "updated": "2021-01-18T23:45:00.000+0000",
487
- * "visibility": {
488
- * "identifier": "Administrators",
489
- * "type": "role",
490
- * "value": "Administrators"
491
- * }
492
- * }
493
- * @path {PUT} /rest/api/3/issue/{issueIdOrKey}/comment/{id}
494
- * @scopes-current write:jira-work
495
- * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
496
- * read:project:jira, read:project-role:jira, read:user:jira, write:comment:jira,
497
- * read:avatar:jira
498
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-id-put
499
- */
500
- updateComment({ issueIdOrKey, id, notifyUsers, overrideEditableFlag, expand, comment, }) {
501
- return this.getClientInstance()
502
- .request({
503
- path: "/rest/api/3/issue/{issueIdOrKey}/comment/{id}",
504
- method: "PUT",
505
- pathParams: {
506
- issueIdOrKey,
507
- id,
508
- },
509
- query: {
510
- notifyUsers,
511
- overrideEditableFlag,
512
- expand,
513
- },
514
- headers: {
515
- "Content-Type": "application/json",
516
- },
517
- body: comment,
518
- })
519
- .then(this.getClientInstance().responseHandler({
520
- 200: {
521
- "application/json": "json",
522
- },
523
- }))
524
- .then(commonHttpClient.castResponse())
525
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.updateComment.response"))
526
- .then(commonHttpClient.getBody);
23
+ constructor() {
24
+ super(...arguments);
25
+ /**
26
+ * Adds a comment to an issue.
27
+ *
28
+ * This operation can be accessed anonymously.
29
+ *
30
+ * **[Permissions](#permissions) required:**
31
+ *
32
+ * * *Browse projects* and *Add comments* [ project
33
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
34
+ * issue containing the comment is in.
35
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
36
+ * configured, issue-level security permission to view the issue.
37
+ *
38
+ * @returns Returned if the request is successful.
39
+ *
40
+ * example: {
41
+ * "author": {
42
+ * "accountId": "5b10a2844c20165700ede21g",
43
+ * "active": false,
44
+ * "displayName": "Mia Krystof",
45
+ * "self":
46
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
47
+ * },
48
+ * "body": {
49
+ * "type": "doc",
50
+ * "version": 1,
51
+ * "content": [
52
+ * {
53
+ * "type": "paragraph",
54
+ * "content": [
55
+ * {
56
+ * "type": "text",
57
+ * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
58
+ * Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum.
59
+ * Sed semper quam laoreet nisi egestas at posuere augue semper."
60
+ * }
61
+ * ]
62
+ * }
63
+ * ]
64
+ * },
65
+ * "created": "2021-01-17T12:34:00.000+0000",
66
+ * "id": "10000",
67
+ * "self":
68
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
69
+ * "updateAuthor": {
70
+ * "accountId": "5b10a2844c20165700ede21g",
71
+ * "active": false,
72
+ * "displayName": "Mia Krystof",
73
+ * "self":
74
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
75
+ * },
76
+ * "updated": "2021-01-18T23:45:00.000+0000",
77
+ * "visibility": {
78
+ * "identifier": "Administrators",
79
+ * "type": "role",
80
+ * "value": "Administrators"
81
+ * }
82
+ * }
83
+ * @path {POST} /rest/api/3/issue/{issueIdOrKey}/comment
84
+ * @scopes-current write:jira-work
85
+ * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
86
+ * read:project:jira, read:project-role:jira, read:user:jira, write:comment:jira,
87
+ * read:avatar:jira
88
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-post
89
+ */
90
+ this.addComment = ({ issueIdOrKey, expand, comment, }) => {
91
+ return this.getClientInstance()
92
+ .request({
93
+ path: "/rest/api/3/issue/{issueIdOrKey}/comment",
94
+ method: "POST",
95
+ pathParams: {
96
+ issueIdOrKey,
97
+ },
98
+ query: {
99
+ expand,
100
+ },
101
+ headers: {
102
+ "Content-Type": "application/json",
103
+ },
104
+ body: comment,
105
+ })
106
+ .then(this.getClientInstance().responseHandler({
107
+ 201: {
108
+ "application/json": "json",
109
+ },
110
+ }))
111
+ .then(commonHttpClient.castResponse())
112
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.addComment.response"))
113
+ .then(commonHttpClient.getBody);
114
+ };
115
+ /**
116
+ * Deletes a comment.
117
+ *
118
+ * **[Permissions](#permissions) required:**
119
+ *
120
+ * * *Browse projects* [project
121
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
122
+ * issue containing the comment is in.
123
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
124
+ * configured, issue-level security permission to view the issue.
125
+ * * *Delete all comments*[ project
126
+ * permission](https://confluence.atlassian.com/x/yodKLg) to delete any comment or
127
+ * *Delete own comments* to delete comment created by the user,
128
+ * * If the comment has visibility restrictions, the user belongs to the group
129
+ * or has the role visibility is restricted to.
130
+ *
131
+ * @path {DELETE} /rest/api/3/issue/{issueIdOrKey}/comment/{id}
132
+ * @scopes-current write:jira-work
133
+ * @scopes-beta delete:comment:jira, delete:comment.property:jira
134
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-id-delete
135
+ */
136
+ this.deleteComment = ({ issueIdOrKey, id, }) => {
137
+ return this.getClientInstance()
138
+ .request({
139
+ path: "/rest/api/3/issue/{issueIdOrKey}/comment/{id}",
140
+ method: "DELETE",
141
+ pathParams: {
142
+ issueIdOrKey,
143
+ id,
144
+ },
145
+ })
146
+ .then(commonHttpClient.discardResult);
147
+ };
148
+ /**
149
+ * Returns a comment.
150
+ *
151
+ * This operation can be accessed anonymously.
152
+ *
153
+ * **[Permissions](#permissions) required:**
154
+ *
155
+ * * *Browse projects* [project
156
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
157
+ * containing the comment.
158
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
159
+ * configured, issue-level security permission to view the issue.
160
+ * * If the comment has visibility restrictions, the user belongs to the group
161
+ * or has the role visibility is restricted to.
162
+ *
163
+ * @returns Returned if the request is successful.
164
+ *
165
+ * example: {
166
+ * "author": {
167
+ * "accountId": "5b10a2844c20165700ede21g",
168
+ * "active": false,
169
+ * "displayName": "Mia Krystof",
170
+ * "self":
171
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
172
+ * },
173
+ * "body": {
174
+ * "type": "doc",
175
+ * "version": 1,
176
+ * "content": [
177
+ * {
178
+ * "type": "paragraph",
179
+ * "content": [
180
+ * {
181
+ * "type": "text",
182
+ * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
183
+ * Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum.
184
+ * Sed semper quam laoreet nisi egestas at posuere augue semper."
185
+ * }
186
+ * ]
187
+ * }
188
+ * ]
189
+ * },
190
+ * "created": "2021-01-17T12:34:00.000+0000",
191
+ * "id": "10000",
192
+ * "self":
193
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
194
+ * "updateAuthor": {
195
+ * "accountId": "5b10a2844c20165700ede21g",
196
+ * "active": false,
197
+ * "displayName": "Mia Krystof",
198
+ * "self":
199
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
200
+ * },
201
+ * "updated": "2021-01-18T23:45:00.000+0000",
202
+ * "visibility": {
203
+ * "identifier": "Administrators",
204
+ * "type": "role",
205
+ * "value": "Administrators"
206
+ * }
207
+ * }
208
+ * @path {GET} /rest/api/3/issue/{issueIdOrKey}/comment/{id}
209
+ * @scopes-current read:jira-work
210
+ * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
211
+ * read:project:jira, read:project-role:jira, read:user:jira, read:avatar:jira
212
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-id-get
213
+ */
214
+ this.getComment = ({ issueIdOrKey, id, expand, }) => {
215
+ return this.getClientInstance()
216
+ .request({
217
+ path: "/rest/api/3/issue/{issueIdOrKey}/comment/{id}",
218
+ method: "GET",
219
+ pathParams: {
220
+ issueIdOrKey,
221
+ id,
222
+ },
223
+ query: {
224
+ expand,
225
+ },
226
+ })
227
+ .then(this.getClientInstance().responseHandler({
228
+ 200: {
229
+ "application/json": "json",
230
+ },
231
+ }))
232
+ .then(commonHttpClient.castResponse())
233
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.getComment.response"))
234
+ .then(commonHttpClient.getBody);
235
+ };
236
+ /**
237
+ * Returns all comments for an issue.
238
+ *
239
+ * This operation can be accessed anonymously.
240
+ *
241
+ * **[Permissions](#permissions) required:** Comments are included in the response
242
+ * where the user has:
243
+ *
244
+ * * *Browse projects* [project
245
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
246
+ * containing the comment.
247
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
248
+ * configured, issue-level security permission to view the issue.
249
+ * * If the comment has visibility restrictions, belongs to the group or has the
250
+ * role visibility is role visibility is restricted to.
251
+ *
252
+ * @returns Returned if the request is successful.
253
+ *
254
+ * example: {
255
+ * "comments": [
256
+ * {
257
+ * "author": {
258
+ * "accountId": "5b10a2844c20165700ede21g",
259
+ * "active": false,
260
+ * "displayName": "Mia Krystof",
261
+ * "self":
262
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
263
+ * },
264
+ * "body": {
265
+ * "type": "doc",
266
+ * "version": 1,
267
+ * "content": [
268
+ * {
269
+ * "type": "paragraph",
270
+ * "content": [
271
+ * {
272
+ * "type": "text",
273
+ * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing
274
+ * elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis
275
+ * fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
276
+ * }
277
+ * ]
278
+ * }
279
+ * ]
280
+ * },
281
+ * "created": "2021-01-17T12:34:00.000+0000",
282
+ * "id": "10000",
283
+ * "self":
284
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
285
+ * "updateAuthor": {
286
+ * "accountId": "5b10a2844c20165700ede21g",
287
+ * "active": false,
288
+ * "displayName": "Mia Krystof",
289
+ * "self":
290
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
291
+ * },
292
+ * "updated": "2021-01-18T23:45:00.000+0000",
293
+ * "visibility": {
294
+ * "identifier": "Administrators",
295
+ * "type": "role",
296
+ * "value": "Administrators"
297
+ * }
298
+ * }
299
+ * ],
300
+ * "maxResults": 1,
301
+ * "startAt": 0,
302
+ * "total": 1
303
+ * }
304
+ * @path {GET} /rest/api/3/issue/{issueIdOrKey}/comment
305
+ * @scopes-current read:jira-work
306
+ * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
307
+ * read:project:jira, read:project-role:jira, read:user:jira, read:avatar:jira
308
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-get
309
+ */
310
+ this.getComments = ({ issueIdOrKey, startAt, maxResults, orderBy, expand, }) => {
311
+ return this.getClientInstance()
312
+ .request({
313
+ path: "/rest/api/3/issue/{issueIdOrKey}/comment",
314
+ method: "GET",
315
+ pathParams: {
316
+ issueIdOrKey,
317
+ },
318
+ query: {
319
+ startAt,
320
+ maxResults,
321
+ orderBy,
322
+ expand,
323
+ },
324
+ })
325
+ .then(this.getClientInstance().responseHandler({
326
+ 200: {
327
+ "application/json": "json",
328
+ },
329
+ }))
330
+ .then(commonHttpClient.castResponse())
331
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.getComments.response"))
332
+ .then(commonHttpClient.getBody);
333
+ };
334
+ /**
335
+ * Returns a [paginated](#pagination) list of comments specified by a list of
336
+ * comment IDs.
337
+ *
338
+ * This operation can be accessed anonymously.
339
+ *
340
+ * **[Permissions](#permissions) required:** Comments are returned where the user:
341
+ *
342
+ * * has *Browse projects* [project
343
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
344
+ * containing the comment.
345
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
346
+ * configured, issue-level security permission to view the issue.
347
+ * * If the comment has visibility restrictions, belongs to the group or has the
348
+ * role visibility is restricted to.
349
+ *
350
+ * @returns Returned if the request is successful.
351
+ *
352
+ * example: {
353
+ * "isLast": true,
354
+ * "maxResults": 1048576,
355
+ * "startAt": 0,
356
+ * "total": 1,
357
+ * "values": [
358
+ * {
359
+ * "author": {
360
+ * "accountId": "5b10a2844c20165700ede21g",
361
+ * "active": false,
362
+ * "displayName": "Mia Krystof",
363
+ * "self":
364
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
365
+ * },
366
+ * "body": {
367
+ * "type": "doc",
368
+ * "version": 1,
369
+ * "content": [
370
+ * {
371
+ * "type": "paragraph",
372
+ * "content": [
373
+ * {
374
+ * "type": "text",
375
+ * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing
376
+ * elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis
377
+ * fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
378
+ * }
379
+ * ]
380
+ * }
381
+ * ]
382
+ * },
383
+ * "created": "2021-01-17T12:34:00.000+0000",
384
+ * "id": "10000",
385
+ * "self":
386
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
387
+ * "updateAuthor": {
388
+ * "accountId": "5b10a2844c20165700ede21g",
389
+ * "active": false,
390
+ * "displayName": "Mia Krystof",
391
+ * "self":
392
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
393
+ * },
394
+ * "updated": "2021-01-18T23:45:00.000+0000",
395
+ * "visibility": {
396
+ * "identifier": "Administrators",
397
+ * "type": "role",
398
+ * "value": "Administrators"
399
+ * }
400
+ * }
401
+ * ]
402
+ * }
403
+ * @path {POST} /rest/api/3/comment/list
404
+ * @scopes-current read:jira-work
405
+ * @scopes-beta delete:comment.property:jira, read:avatar:jira, read:comment:jira,
406
+ * read:group:jira, read:project-role:jira, read:user:jira,
407
+ * read:comment.property:jira, read:project:jira
408
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-comment-list-post
409
+ */
410
+ this.getCommentsByIds = ({ expand, issueCommentListRequestBean, }) => {
411
+ return this.getClientInstance()
412
+ .request({
413
+ path: "/rest/api/3/comment/list",
414
+ method: "POST",
415
+ query: {
416
+ expand,
417
+ },
418
+ headers: {
419
+ "Content-Type": "application/json",
420
+ },
421
+ body: issueCommentListRequestBean,
422
+ })
423
+ .then(this.getClientInstance().responseHandler({
424
+ 200: {
425
+ "application/json": "json",
426
+ },
427
+ }))
428
+ .then(commonHttpClient.castResponse())
429
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.getCommentsByIds.response"))
430
+ .then(commonHttpClient.getBody);
431
+ };
432
+ /**
433
+ * Updates a comment.
434
+ *
435
+ * This operation can be accessed anonymously.
436
+ *
437
+ * **[Permissions](#permissions) required:**
438
+ *
439
+ * * *Browse projects* [project
440
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
441
+ * issue containing the comment is in.
442
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
443
+ * configured, issue-level security permission to view the issue.
444
+ * * *Edit all comments*[ project
445
+ * permission](https://confluence.atlassian.com/x/yodKLg) to update any comment or
446
+ * *Edit own comments* to update comment created by the user.
447
+ * * If the comment has visibility restrictions, the user belongs to the group
448
+ * or has the role visibility is restricted to.
449
+ *
450
+ * @returns Returned if the request is successful.
451
+ *
452
+ * example: {
453
+ * "author": {
454
+ * "accountId": "5b10a2844c20165700ede21g",
455
+ * "active": false,
456
+ * "displayName": "Mia Krystof",
457
+ * "self":
458
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
459
+ * },
460
+ * "body": {
461
+ * "type": "doc",
462
+ * "version": 1,
463
+ * "content": [
464
+ * {
465
+ * "type": "paragraph",
466
+ * "content": [
467
+ * {
468
+ * "type": "text",
469
+ * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
470
+ * Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum.
471
+ * Sed semper quam laoreet nisi egestas at posuere augue semper."
472
+ * }
473
+ * ]
474
+ * }
475
+ * ]
476
+ * },
477
+ * "created": "2021-01-17T12:34:00.000+0000",
478
+ * "id": "10000",
479
+ * "self":
480
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
481
+ * "updateAuthor": {
482
+ * "accountId": "5b10a2844c20165700ede21g",
483
+ * "active": false,
484
+ * "displayName": "Mia Krystof",
485
+ * "self":
486
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
487
+ * },
488
+ * "updated": "2021-01-18T23:45:00.000+0000",
489
+ * "visibility": {
490
+ * "identifier": "Administrators",
491
+ * "type": "role",
492
+ * "value": "Administrators"
493
+ * }
494
+ * }
495
+ * @path {PUT} /rest/api/3/issue/{issueIdOrKey}/comment/{id}
496
+ * @scopes-current write:jira-work
497
+ * @scopes-beta read:comment:jira, read:comment.property:jira, read:group:jira,
498
+ * read:project:jira, read:project-role:jira, read:user:jira, write:comment:jira,
499
+ * read:avatar:jira
500
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments#api-rest-api-3-issue-issueidorkey-comment-id-put
501
+ */
502
+ this.updateComment = ({ issueIdOrKey, id, notifyUsers, overrideEditableFlag, expand, comment, }) => {
503
+ return this.getClientInstance()
504
+ .request({
505
+ path: "/rest/api/3/issue/{issueIdOrKey}/comment/{id}",
506
+ method: "PUT",
507
+ pathParams: {
508
+ issueIdOrKey,
509
+ id,
510
+ },
511
+ query: {
512
+ notifyUsers,
513
+ overrideEditableFlag,
514
+ expand,
515
+ },
516
+ headers: {
517
+ "Content-Type": "application/json",
518
+ },
519
+ body: comment,
520
+ })
521
+ .then(this.getClientInstance().responseHandler({
522
+ 200: {
523
+ "application/json": "json",
524
+ },
525
+ }))
526
+ .then(commonHttpClient.castResponse())
527
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueCommentsService.updateComment.response"))
528
+ .then(commonHttpClient.getBody);
529
+ };
527
530
  }
528
531
  static initialize() {
529
532
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueCommentsService.getCommentsByIds.response", zod_1.z