@resolution/jira-api-client 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  5. package/lib/openapi/platform/models/common.d.ts +6 -0
  6. package/lib/openapi/platform/models/common.js +12 -1
  7. package/lib/openapi/platform/models/common.js.map +1 -1
  8. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  9. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  10. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  11. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  12. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  14. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  15. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  17. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  18. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  20. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  21. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  22. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  23. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  24. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  25. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  26. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  27. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  28. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  29. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  30. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  31. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  32. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  33. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  34. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  35. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  36. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  38. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  39. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  40. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  41. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  42. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  43. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  44. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  45. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  46. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  47. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  48. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  49. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  50. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  53. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  54. package/lib/openapi/platform/services/GroupsService.js +385 -382
  55. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  56. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  57. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  59. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  62. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  65. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  66. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  67. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  68. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  71. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  74. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  80. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  83. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  86. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  87. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  88. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  89. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  90. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  92. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  93. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  94. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  95. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  98. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  101. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  102. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  104. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  105. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  106. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  107. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  110. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  111. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  112. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  113. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  114. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  115. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  116. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  119. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  122. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  125. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  128. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  131. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  132. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  133. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  134. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  135. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  136. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  137. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  138. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  139. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  140. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  143. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  144. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  145. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  146. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  147. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  148. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  149. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  150. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  151. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  152. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  153. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  154. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  155. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  158. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  159. package/lib/openapi/platform/services/JqlService.js +635 -632
  160. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  161. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  162. package/lib/openapi/platform/services/LabelsService.js +41 -38
  163. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  164. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  165. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  166. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  167. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  168. package/lib/openapi/platform/services/MyselfService.js +321 -318
  169. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  170. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  171. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  172. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  173. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  174. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  175. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  176. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  177. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  178. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  179. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  180. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  182. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  183. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  185. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  188. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  189. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  190. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  191. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  192. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  193. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  194. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  195. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  197. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  200. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  203. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  204. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  206. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  209. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  210. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  211. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  212. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  213. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  214. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  215. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  216. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  217. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  218. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  219. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  220. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  221. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  222. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  223. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  224. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  227. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  228. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  229. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  230. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  231. package/lib/openapi/platform/services/ScreensService.js +281 -278
  232. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  233. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  235. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  236. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  237. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  238. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  239. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  240. package/lib/openapi/platform/services/StatusService.js +271 -268
  241. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  242. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  243. package/lib/openapi/platform/services/TasksService.js +93 -90
  244. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  245. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  246. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  247. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  248. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  249. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  251. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  252. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  253. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  254. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  255. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  256. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  257. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  258. package/lib/openapi/platform/services/UsersService.js +637 -634
  259. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  260. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  261. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  262. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  263. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  266. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  269. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  270. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  272. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  275. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  276. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  278. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  281. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  284. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  285. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  286. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  287. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  288. package/lib/openapi/software/services/BacklogService.js +81 -78
  289. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  290. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  291. package/lib/openapi/software/services/BoardService.js +2048 -2045
  292. package/lib/openapi/software/services/BoardService.js.map +1 -1
  293. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  294. package/lib/openapi/software/services/BuildsService.js +164 -161
  295. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  296. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  297. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  298. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  299. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  300. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  301. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  302. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  303. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  304. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  305. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  306. package/lib/openapi/software/services/EpicService.js +597 -594
  307. package/lib/openapi/software/services/EpicService.js.map +1 -1
  308. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  309. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  310. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  311. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  312. package/lib/openapi/software/services/IssueService.js +359 -356
  313. package/lib/openapi/software/services/IssueService.js.map +1 -1
  314. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  315. package/lib/openapi/software/services/OperationsService.js +301 -298
  316. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  317. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  318. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  319. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  320. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  321. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  322. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  323. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  324. package/lib/openapi/software/services/SprintService.js +594 -591
  325. package/lib/openapi/software/services/SprintService.js.map +1 -1
  326. package/package.json +4 -3
@@ -16,829 +16,832 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
16
16
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search
17
17
  */
18
18
  class IssueSearchService extends CommonHttpService_1.CommonHttpService {
19
- /**
20
- * Returns lists of issues matching a query string. Use this resource to provide
21
- * auto-completion suggestions when the user is looking for an issue using a word
22
- * or string.
23
- *
24
- * This operation returns two lists:
25
- *
26
- * * `History Search` which includes issues from the user's history of created,
27
- * edited, or viewed issues that contain the string in the `query` parameter.
28
- * * `Current Search` which includes issues that match the JQL expression in
29
- * `currentJQL` and contain the string in the `query` parameter.
30
- *
31
- * This operation can be accessed anonymously.
32
- *
33
- * **[Permissions](#permissions) required:** None.
34
- *
35
- * @returns Returned if the request is successful.
36
- * @path {GET} /rest/api/3/issue/picker
37
- * @scopes-current read:jira-work
38
- * @scopes-beta read:issue-details:jira
39
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-issue-picker-get
40
- */
41
- getIssuePickerResource({ query, currentJql, currentIssueKey, currentProjectId, showSubTasks, showSubTaskParent, } = {}) {
42
- return this.getClientInstance()
43
- .request({
44
- path: "/rest/api/3/issue/picker",
45
- method: "GET",
46
- query: {
47
- query,
48
- currentJQL: currentJql,
49
- currentIssueKey,
50
- currentProjectId,
51
- showSubTasks,
52
- showSubTaskParent,
53
- },
54
- })
55
- .then(this.getClientInstance().responseHandler({
56
- 200: {
57
- "application/json": "json",
58
- },
59
- }))
60
- .then(commonHttpClient.castResponse())
61
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.getIssuePickerResource.response"))
62
- .then(commonHttpClient.getBody);
63
- }
64
- /**
65
- * Checks whether one or more issues would be returned by one or more JQL queries.
66
- *
67
- * **[Permissions](#permissions) required:** None, however, issues are only
68
- * matched against JQL queries where the user has:
69
- *
70
- * * *Browse projects* [project
71
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
72
- * issue is in.
73
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
74
- * configured, issue-level security permission to view the issue.
75
- *
76
- * @returns Returned if the request is successful.
77
- *
78
- * example: {
79
- * "matches": [
80
- * {
81
- * "matchedIssues": [
82
- * 10000,
83
- * 10004
84
- * ],
85
- * "errors": []
86
- * },
87
- * {
88
- * "matchedIssues": [
89
- * 100134,
90
- * 10025,
91
- * 10236
92
- * ],
93
- * "errors": []
94
- * },
95
- * {
96
- * "matchedIssues": [],
97
- * "errors": []
98
- * },
99
- * {
100
- * "matchedIssues": [],
101
- * "errors": [
102
- * "Invalid JQL: broken = value"
103
- * ]
104
- * }
105
- * ]
106
- * }
107
- * @path {POST} /rest/api/3/jql/match
108
- * @scopes-current read:jira-work
109
- * @scopes-beta read:issue-details:jira
110
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-jql-match-post
111
- */
112
- matchIssues({ issuesAndJqlQueries, }) {
113
- return this.getClientInstance()
114
- .request({
115
- path: "/rest/api/3/jql/match",
116
- method: "POST",
117
- headers: {
118
- "Content-Type": "application/json",
119
- },
120
- body: issuesAndJqlQueries,
121
- })
122
- .then(this.getClientInstance().responseHandler({
123
- 200: {
124
- "application/json": "json",
125
- },
126
- }))
127
- .then(commonHttpClient.castResponse())
128
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.matchIssues.response"))
129
- .then(commonHttpClient.getBody);
130
- }
131
- /**
132
- * Searches for IDs of issues using
133
- * [JQL](https://confluence.atlassian.com/x/egORLQ).
134
- *
135
- * Use the [Search](#api-rest-api-3-search-post) endpoint if you need to fetch
136
- * more than just issue IDs. The Search endpoint returns more information, but may
137
- * take much longer to respond to requests. This is because it uses a different
138
- * mechanism for ordering results than this endpoint and doesn't provide the total
139
- * number of results for your query.
140
- *
141
- * This operation can be accessed anonymously.
142
- *
143
- * **[Permissions](#permissions) required:** Issues are included in the response
144
- * where the user has:
145
- *
146
- * * *Browse projects* [project
147
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
148
- * containing the issue.
149
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
150
- * configured, issue-level security permission to view the issue.
151
- *
152
- * @returns Returned if the request is successful.
153
- *
154
- * example: {
155
- * "issueIds": [
156
- * 10000,
157
- * 10001,
158
- * 10002
159
- * ],
160
- * "nextPageToken": "EgQIlMIC"
161
- * }
162
- * @path {POST} /rest/api/3/search/id
163
- * @scopes-current read:jira-work
164
- * @scopes-beta read:issue-details:jira, read:field.default-value:jira, read:field.option:jira,
165
- * read:field:jira, read:group:jira
166
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-id-post
167
- */
168
- searchForIssuesIds({ idSearchRequestBean, }) {
169
- return this.getClientInstance()
170
- .request({
171
- path: "/rest/api/3/search/id",
172
- method: "POST",
173
- headers: {
174
- "Content-Type": "application/json",
175
- },
176
- body: idSearchRequestBean,
177
- })
178
- .then(this.getClientInstance().responseHandler({
179
- 200: {
180
- "application/json": "json",
181
- },
182
- }))
183
- .then(commonHttpClient.castResponse())
184
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.searchForIssuesIds.response"))
185
- .then(commonHttpClient.getBody);
186
- }
187
- /**
188
- * Searches for issues using [JQL](https://confluence.atlassian.com/x/egORLQ).
189
- *
190
- * If the JQL query expression is too large to be encoded as a query parameter,
191
- * use the [POST](#api-rest-api-3-search-post) version of this resource.
192
- *
193
- * This operation can be accessed anonymously.
194
- *
195
- * **[Permissions](#permissions) required:** Issues are included in the response
196
- * where the user has:
197
- *
198
- * * *Browse projects* [project
199
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
200
- * containing the issue.
201
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
202
- * configured, issue-level security permission to view the issue.
203
- *
204
- * @returns Returned if the request is successful.
205
- *
206
- * example: {
207
- * "expand": "names,schema",
208
- * "issues": [
209
- * {
210
- * "expand": "",
211
- * "fields": {
212
- * "watcher": {
213
- * "isWatching": false,
214
- * "self":
215
- * "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
216
- * "watchCount": 1,
217
- * "watchers": [
218
- * {
219
- * "accountId": "5b10a2844c20165700ede21g",
220
- * "active": false,
221
- * "displayName": "Mia Krystof",
222
- * "self":
223
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
224
- * }
225
- * ]
226
- * },
227
- * "attachment": [
228
- * {
229
- * "author": {
230
- * "accountId": "5b10a2844c20165700ede21g",
231
- * "accountType": "atlassian",
232
- * "active": false,
233
- * "avatarUrls": {
234
- * "16x16":
235
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
236
- * "24x24":
237
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
238
- * "32x32":
239
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
240
- * "48x48":
241
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
242
- * },
243
- * "displayName": "Mia Krystof",
244
- * "key": "",
245
- * "name": "",
246
- * "self":
247
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
248
- * },
249
- * "content":
250
- * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10000",
251
- * "created": "2022-10-06T07:32:47.000+0000",
252
- * "filename": "picture.jpg",
253
- * "id": 10000,
254
- * "mimeType": "image/jpeg",
255
- * "self":
256
- * "https://your-domain.atlassian.net/rest/api/3/attachments/10000",
257
- * "size": 23123,
258
- * "thumbnail":
259
- * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/thumbnail/10000"
260
- * }
261
- * ],
262
- * "sub-tasks": [
263
- * {
264
- * "id": "10000",
265
- * "outwardIssue": {
266
- * "fields": {
267
- * "status": {
268
- * "iconUrl":
269
- * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
270
- * "name": "Open"
271
- * }
272
- * },
273
- * "id": "10003",
274
- * "key": "ED-2",
275
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
276
- * },
277
- * "type": {
278
- * "id": "10000",
279
- * "inward": "Parent",
280
- * "name": "",
281
- * "outward": "Sub-task"
282
- * }
283
- * }
284
- * ],
285
- * "description": {
286
- * "type": "doc",
287
- * "version": 1,
288
- * "content": [
289
- * {
290
- * "type": "paragraph",
291
- * "content": [
292
- * {
293
- * "type": "text",
294
- * "text": "Main order flow broken"
295
- * }
296
- * ]
297
- * }
298
- * ]
299
- * },
300
- * "project": {
301
- * "avatarUrls": {
302
- * "16x16":
303
- * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
304
- * "24x24":
305
- * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
306
- * "32x32":
307
- * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
308
- * "48x48":
309
- * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
310
- * },
311
- * "id": "10000",
312
- * "insight": {
313
- * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
314
- * "totalIssueCount": 100
315
- * },
316
- * "key": "EX",
317
- * "name": "Example",
318
- * "projectCategory": {
319
- * "description": "First Project Category",
320
- * "id": "10000",
321
- * "name": "FIRST",
322
- * "self":
323
- * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
324
- * },
325
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
326
- * "simplified": false,
327
- * "style": "classic"
328
- * },
329
- * "comment": [
330
- * {
331
- * "author": {
332
- * "accountId": "5b10a2844c20165700ede21g",
333
- * "active": false,
334
- * "displayName": "Mia Krystof",
335
- * "self":
336
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
337
- * },
338
- * "body": {
339
- * "type": "doc",
340
- * "version": 1,
341
- * "content": [
342
- * {
343
- * "type": "paragraph",
344
- * "content": [
345
- * {
346
- * "type": "text",
347
- * "text": "Lorem ipsum dolor sit amet, consectetur
348
- * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
349
- * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
350
- * semper."
351
- * }
352
- * ]
353
- * }
354
- * ]
355
- * },
356
- * "created": "2021-01-17T12:34:00.000+0000",
357
- * "id": "10000",
358
- * "self":
359
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
360
- * "updateAuthor": {
361
- * "accountId": "5b10a2844c20165700ede21g",
362
- * "active": false,
363
- * "displayName": "Mia Krystof",
364
- * "self":
365
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
366
- * },
367
- * "updated": "2021-01-18T23:45:00.000+0000",
368
- * "visibility": {
369
- * "identifier": "Administrators",
370
- * "type": "role",
371
- * "value": "Administrators"
372
- * }
373
- * }
374
- * ],
375
- * "issuelinks": [
376
- * {
377
- * "id": "10001",
378
- * "outwardIssue": {
379
- * "fields": {
380
- * "status": {
381
- * "iconUrl":
382
- * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
383
- * "name": "Open"
384
- * }
385
- * },
386
- * "id": "10004L",
387
- * "key": "PR-2",
388
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
389
- * },
390
- * "type": {
391
- * "id": "10000",
392
- * "inward": "depends on",
393
- * "name": "Dependent",
394
- * "outward": "is depended by"
395
- * }
396
- * },
397
- * {
398
- * "id": "10002",
399
- * "inwardIssue": {
400
- * "fields": {
401
- * "status": {
402
- * "iconUrl":
403
- * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
404
- * "name": "Open"
405
- * }
406
- * },
407
- * "id": "10004",
408
- * "key": "PR-3",
409
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
410
- * },
411
- * "type": {
412
- * "id": "10000",
413
- * "inward": "depends on",
414
- * "name": "Dependent",
415
- * "outward": "is depended by"
416
- * }
417
- * }
418
- * ],
419
- * "worklog": [
420
- * {
421
- * "author": {
422
- * "accountId": "5b10a2844c20165700ede21g",
423
- * "active": false,
424
- * "displayName": "Mia Krystof",
425
- * "self":
426
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
427
- * },
428
- * "comment": {
429
- * "type": "doc",
430
- * "version": 1,
431
- * "content": [
432
- * {
433
- * "type": "paragraph",
434
- * "content": [
435
- * {
436
- * "type": "text",
437
- * "text": "I did some work here."
438
- * }
439
- * ]
440
- * }
441
- * ]
442
- * },
443
- * "id": "100028",
444
- * "issueId": "10002",
445
- * "self":
446
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
447
- * "started": "2021-01-17T12:34:00.000+0000",
448
- * "timeSpent": "3h 20m",
449
- * "timeSpentSeconds": 12000,
450
- * "updateAuthor": {
451
- * "accountId": "5b10a2844c20165700ede21g",
452
- * "active": false,
453
- * "displayName": "Mia Krystof",
454
- * "self":
455
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
456
- * },
457
- * "updated": "2021-01-18T23:45:00.000+0000",
458
- * "visibility": {
459
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
460
- * "type": "group",
461
- * "value": "jira-developers"
462
- * }
463
- * }
464
- * ],
465
- * "updated": 1,
466
- * "timetracking": {
467
- * "originalEstimate": "10m",
468
- * "originalEstimateSeconds": 600,
469
- * "remainingEstimate": "3m",
470
- * "remainingEstimateSeconds": 200,
471
- * "timeSpent": "6m",
472
- * "timeSpentSeconds": 400
473
- * }
474
- * },
475
- * "id": "10002",
476
- * "key": "ED-1",
477
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
478
- * }
479
- * ],
480
- * "maxResults": 50,
481
- * "startAt": 0,
482
- * "total": 1,
483
- * "warningMessages": [
484
- * "The value 'bar' does not exist for the field 'foo'."
485
- * ]
486
- * }
487
- * @path {GET} /rest/api/3/search
488
- * @scopes-current read:jira-work
489
- * @scopes-beta read:issue-details:jira, read:audit-log:jira, read:avatar:jira,
490
- * read:field-configuration:jira, read:issue-meta:jira
491
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-get
492
- */
493
- searchForIssuesUsingJql({ jql, startAt, maxResults, validateQuery, fields, expand, properties, fieldsByKeys, } = {}) {
494
- return this.getClientInstance()
495
- .request({
496
- path: "/rest/api/3/search",
497
- method: "GET",
498
- query: {
499
- jql,
500
- startAt,
501
- maxResults,
502
- validateQuery,
503
- fields,
504
- expand,
505
- properties,
506
- fieldsByKeys,
507
- },
508
- })
509
- .then(this.getClientInstance().responseHandler({
510
- 200: {
511
- "application/json": "json",
512
- },
513
- }))
514
- .then(commonHttpClient.castResponse())
515
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.searchForIssuesUsingJql.response"))
516
- .then(commonHttpClient.getBody);
517
- }
518
- /**
519
- * Searches for issues using [JQL](https://confluence.atlassian.com/x/egORLQ).
520
- *
521
- * There is a [GET](#api-rest-api-3-search-get) version of this resource that can
522
- * be used for smaller JQL query expressions.
523
- *
524
- * This operation can be accessed anonymously.
525
- *
526
- * **[Permissions](#permissions) required:** Issues are included in the response
527
- * where the user has:
528
- *
529
- * * *Browse projects* [project
530
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project
531
- * containing the issue.
532
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
533
- * configured, issue-level security permission to view the issue.
534
- *
535
- * @returns Returned if the request is successful.
536
- *
537
- * example: {
538
- * "expand": "names,schema",
539
- * "issues": [
540
- * {
541
- * "expand": "",
542
- * "fields": {
543
- * "watcher": {
544
- * "isWatching": false,
545
- * "self":
546
- * "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
547
- * "watchCount": 1,
548
- * "watchers": [
549
- * {
550
- * "accountId": "5b10a2844c20165700ede21g",
551
- * "active": false,
552
- * "displayName": "Mia Krystof",
553
- * "self":
554
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
555
- * }
556
- * ]
557
- * },
558
- * "attachment": [
559
- * {
560
- * "author": {
561
- * "accountId": "5b10a2844c20165700ede21g",
562
- * "accountType": "atlassian",
563
- * "active": false,
564
- * "avatarUrls": {
565
- * "16x16":
566
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
567
- * "24x24":
568
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
569
- * "32x32":
570
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
571
- * "48x48":
572
- * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
573
- * },
574
- * "displayName": "Mia Krystof",
575
- * "key": "",
576
- * "name": "",
577
- * "self":
578
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
579
- * },
580
- * "content":
581
- * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10000",
582
- * "created": "2022-10-06T07:32:47.000+0000",
583
- * "filename": "picture.jpg",
584
- * "id": 10000,
585
- * "mimeType": "image/jpeg",
586
- * "self":
587
- * "https://your-domain.atlassian.net/rest/api/3/attachments/10000",
588
- * "size": 23123,
589
- * "thumbnail":
590
- * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/thumbnail/10000"
591
- * }
592
- * ],
593
- * "sub-tasks": [
594
- * {
595
- * "id": "10000",
596
- * "outwardIssue": {
597
- * "fields": {
598
- * "status": {
599
- * "iconUrl":
600
- * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
601
- * "name": "Open"
602
- * }
603
- * },
604
- * "id": "10003",
605
- * "key": "ED-2",
606
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
607
- * },
608
- * "type": {
609
- * "id": "10000",
610
- * "inward": "Parent",
611
- * "name": "",
612
- * "outward": "Sub-task"
613
- * }
614
- * }
615
- * ],
616
- * "description": {
617
- * "type": "doc",
618
- * "version": 1,
619
- * "content": [
620
- * {
621
- * "type": "paragraph",
622
- * "content": [
623
- * {
624
- * "type": "text",
625
- * "text": "Main order flow broken"
626
- * }
627
- * ]
628
- * }
629
- * ]
630
- * },
631
- * "project": {
632
- * "avatarUrls": {
633
- * "16x16":
634
- * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
635
- * "24x24":
636
- * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
637
- * "32x32":
638
- * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
639
- * "48x48":
640
- * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
641
- * },
642
- * "id": "10000",
643
- * "insight": {
644
- * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
645
- * "totalIssueCount": 100
646
- * },
647
- * "key": "EX",
648
- * "name": "Example",
649
- * "projectCategory": {
650
- * "description": "First Project Category",
651
- * "id": "10000",
652
- * "name": "FIRST",
653
- * "self":
654
- * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
655
- * },
656
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
657
- * "simplified": false,
658
- * "style": "classic"
659
- * },
660
- * "comment": [
661
- * {
662
- * "author": {
663
- * "accountId": "5b10a2844c20165700ede21g",
664
- * "active": false,
665
- * "displayName": "Mia Krystof",
666
- * "self":
667
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
668
- * },
669
- * "body": {
670
- * "type": "doc",
671
- * "version": 1,
672
- * "content": [
673
- * {
674
- * "type": "paragraph",
675
- * "content": [
676
- * {
677
- * "type": "text",
678
- * "text": "Lorem ipsum dolor sit amet, consectetur
679
- * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
680
- * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
681
- * semper."
682
- * }
683
- * ]
684
- * }
685
- * ]
686
- * },
687
- * "created": "2021-01-17T12:34:00.000+0000",
688
- * "id": "10000",
689
- * "self":
690
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
691
- * "updateAuthor": {
692
- * "accountId": "5b10a2844c20165700ede21g",
693
- * "active": false,
694
- * "displayName": "Mia Krystof",
695
- * "self":
696
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
697
- * },
698
- * "updated": "2021-01-18T23:45:00.000+0000",
699
- * "visibility": {
700
- * "identifier": "Administrators",
701
- * "type": "role",
702
- * "value": "Administrators"
703
- * }
704
- * }
705
- * ],
706
- * "issuelinks": [
707
- * {
708
- * "id": "10001",
709
- * "outwardIssue": {
710
- * "fields": {
711
- * "status": {
712
- * "iconUrl":
713
- * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
714
- * "name": "Open"
715
- * }
716
- * },
717
- * "id": "10004L",
718
- * "key": "PR-2",
719
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
720
- * },
721
- * "type": {
722
- * "id": "10000",
723
- * "inward": "depends on",
724
- * "name": "Dependent",
725
- * "outward": "is depended by"
726
- * }
727
- * },
728
- * {
729
- * "id": "10002",
730
- * "inwardIssue": {
731
- * "fields": {
732
- * "status": {
733
- * "iconUrl":
734
- * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
735
- * "name": "Open"
736
- * }
737
- * },
738
- * "id": "10004",
739
- * "key": "PR-3",
740
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
741
- * },
742
- * "type": {
743
- * "id": "10000",
744
- * "inward": "depends on",
745
- * "name": "Dependent",
746
- * "outward": "is depended by"
747
- * }
748
- * }
749
- * ],
750
- * "worklog": [
751
- * {
752
- * "author": {
753
- * "accountId": "5b10a2844c20165700ede21g",
754
- * "active": false,
755
- * "displayName": "Mia Krystof",
756
- * "self":
757
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
758
- * },
759
- * "comment": {
760
- * "type": "doc",
761
- * "version": 1,
762
- * "content": [
763
- * {
764
- * "type": "paragraph",
765
- * "content": [
766
- * {
767
- * "type": "text",
768
- * "text": "I did some work here."
769
- * }
770
- * ]
771
- * }
772
- * ]
773
- * },
774
- * "id": "100028",
775
- * "issueId": "10002",
776
- * "self":
777
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
778
- * "started": "2021-01-17T12:34:00.000+0000",
779
- * "timeSpent": "3h 20m",
780
- * "timeSpentSeconds": 12000,
781
- * "updateAuthor": {
782
- * "accountId": "5b10a2844c20165700ede21g",
783
- * "active": false,
784
- * "displayName": "Mia Krystof",
785
- * "self":
786
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
787
- * },
788
- * "updated": "2021-01-18T23:45:00.000+0000",
789
- * "visibility": {
790
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
791
- * "type": "group",
792
- * "value": "jira-developers"
793
- * }
794
- * }
795
- * ],
796
- * "updated": 1,
797
- * "timetracking": {
798
- * "originalEstimate": "10m",
799
- * "originalEstimateSeconds": 600,
800
- * "remainingEstimate": "3m",
801
- * "remainingEstimateSeconds": 200,
802
- * "timeSpent": "6m",
803
- * "timeSpentSeconds": 400
804
- * }
805
- * },
806
- * "id": "10002",
807
- * "key": "ED-1",
808
- * "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
809
- * }
810
- * ],
811
- * "maxResults": 50,
812
- * "startAt": 0,
813
- * "total": 1,
814
- * "warningMessages": [
815
- * "The value 'bar' does not exist for the field 'foo'."
816
- * ]
817
- * }
818
- * @path {POST} /rest/api/3/search
819
- * @scopes-current read:jira-work
820
- * @scopes-beta read:issue-details:jira, read:field.default-value:jira, read:field.option:jira,
821
- * read:field:jira, read:group:jira
822
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-post
823
- */
824
- searchForIssuesUsingJqlPost({ searchRequestBean, }) {
825
- return this.getClientInstance()
826
- .request({
827
- path: "/rest/api/3/search",
828
- method: "POST",
829
- headers: {
830
- "Content-Type": "application/json",
831
- },
832
- body: searchRequestBean,
833
- })
834
- .then(this.getClientInstance().responseHandler({
835
- 200: {
836
- "application/json": "json",
837
- },
838
- }))
839
- .then(commonHttpClient.castResponse())
840
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.searchForIssuesUsingJqlPost.response"))
841
- .then(commonHttpClient.getBody);
19
+ constructor() {
20
+ super(...arguments);
21
+ /**
22
+ * Returns lists of issues matching a query string. Use this resource to provide
23
+ * auto-completion suggestions when the user is looking for an issue using a word
24
+ * or string.
25
+ *
26
+ * This operation returns two lists:
27
+ *
28
+ * * `History Search` which includes issues from the user's history of created,
29
+ * edited, or viewed issues that contain the string in the `query` parameter.
30
+ * * `Current Search` which includes issues that match the JQL expression in
31
+ * `currentJQL` and contain the string in the `query` parameter.
32
+ *
33
+ * This operation can be accessed anonymously.
34
+ *
35
+ * **[Permissions](#permissions) required:** None.
36
+ *
37
+ * @returns Returned if the request is successful.
38
+ * @path {GET} /rest/api/3/issue/picker
39
+ * @scopes-current read:jira-work
40
+ * @scopes-beta read:issue-details:jira
41
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-issue-picker-get
42
+ */
43
+ this.getIssuePickerResource = ({ query, currentJql, currentIssueKey, currentProjectId, showSubTasks, showSubTaskParent, } = {}) => {
44
+ return this.getClientInstance()
45
+ .request({
46
+ path: "/rest/api/3/issue/picker",
47
+ method: "GET",
48
+ query: {
49
+ query,
50
+ currentJQL: currentJql,
51
+ currentIssueKey,
52
+ currentProjectId,
53
+ showSubTasks,
54
+ showSubTaskParent,
55
+ },
56
+ })
57
+ .then(this.getClientInstance().responseHandler({
58
+ 200: {
59
+ "application/json": "json",
60
+ },
61
+ }))
62
+ .then(commonHttpClient.castResponse())
63
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.getIssuePickerResource.response"))
64
+ .then(commonHttpClient.getBody);
65
+ };
66
+ /**
67
+ * Checks whether one or more issues would be returned by one or more JQL queries.
68
+ *
69
+ * **[Permissions](#permissions) required:** None, however, issues are only
70
+ * matched against JQL queries where the user has:
71
+ *
72
+ * * *Browse projects* [project
73
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
74
+ * issue is in.
75
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
76
+ * configured, issue-level security permission to view the issue.
77
+ *
78
+ * @returns Returned if the request is successful.
79
+ *
80
+ * example: {
81
+ * "matches": [
82
+ * {
83
+ * "matchedIssues": [
84
+ * 10000,
85
+ * 10004
86
+ * ],
87
+ * "errors": []
88
+ * },
89
+ * {
90
+ * "matchedIssues": [
91
+ * 100134,
92
+ * 10025,
93
+ * 10236
94
+ * ],
95
+ * "errors": []
96
+ * },
97
+ * {
98
+ * "matchedIssues": [],
99
+ * "errors": []
100
+ * },
101
+ * {
102
+ * "matchedIssues": [],
103
+ * "errors": [
104
+ * "Invalid JQL: broken = value"
105
+ * ]
106
+ * }
107
+ * ]
108
+ * }
109
+ * @path {POST} /rest/api/3/jql/match
110
+ * @scopes-current read:jira-work
111
+ * @scopes-beta read:issue-details:jira
112
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-jql-match-post
113
+ */
114
+ this.matchIssues = ({ issuesAndJqlQueries, }) => {
115
+ return this.getClientInstance()
116
+ .request({
117
+ path: "/rest/api/3/jql/match",
118
+ method: "POST",
119
+ headers: {
120
+ "Content-Type": "application/json",
121
+ },
122
+ body: issuesAndJqlQueries,
123
+ })
124
+ .then(this.getClientInstance().responseHandler({
125
+ 200: {
126
+ "application/json": "json",
127
+ },
128
+ }))
129
+ .then(commonHttpClient.castResponse())
130
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.matchIssues.response"))
131
+ .then(commonHttpClient.getBody);
132
+ };
133
+ /**
134
+ * Searches for IDs of issues using
135
+ * [JQL](https://confluence.atlassian.com/x/egORLQ).
136
+ *
137
+ * Use the [Search](#api-rest-api-3-search-post) endpoint if you need to fetch
138
+ * more than just issue IDs. The Search endpoint returns more information, but may
139
+ * take much longer to respond to requests. This is because it uses a different
140
+ * mechanism for ordering results than this endpoint and doesn't provide the total
141
+ * number of results for your query.
142
+ *
143
+ * This operation can be accessed anonymously.
144
+ *
145
+ * **[Permissions](#permissions) required:** Issues are included in the response
146
+ * where the user has:
147
+ *
148
+ * * *Browse projects* [project
149
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
150
+ * containing the issue.
151
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
152
+ * configured, issue-level security permission to view the issue.
153
+ *
154
+ * @returns Returned if the request is successful.
155
+ *
156
+ * example: {
157
+ * "issueIds": [
158
+ * 10000,
159
+ * 10001,
160
+ * 10002
161
+ * ],
162
+ * "nextPageToken": "EgQIlMIC"
163
+ * }
164
+ * @path {POST} /rest/api/3/search/id
165
+ * @scopes-current read:jira-work
166
+ * @scopes-beta read:issue-details:jira, read:field.default-value:jira, read:field.option:jira,
167
+ * read:field:jira, read:group:jira
168
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-id-post
169
+ */
170
+ this.searchForIssuesIds = ({ idSearchRequestBean, }) => {
171
+ return this.getClientInstance()
172
+ .request({
173
+ path: "/rest/api/3/search/id",
174
+ method: "POST",
175
+ headers: {
176
+ "Content-Type": "application/json",
177
+ },
178
+ body: idSearchRequestBean,
179
+ })
180
+ .then(this.getClientInstance().responseHandler({
181
+ 200: {
182
+ "application/json": "json",
183
+ },
184
+ }))
185
+ .then(commonHttpClient.castResponse())
186
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.searchForIssuesIds.response"))
187
+ .then(commonHttpClient.getBody);
188
+ };
189
+ /**
190
+ * Searches for issues using [JQL](https://confluence.atlassian.com/x/egORLQ).
191
+ *
192
+ * If the JQL query expression is too large to be encoded as a query parameter,
193
+ * use the [POST](#api-rest-api-3-search-post) version of this resource.
194
+ *
195
+ * This operation can be accessed anonymously.
196
+ *
197
+ * **[Permissions](#permissions) required:** Issues are included in the response
198
+ * where the user has:
199
+ *
200
+ * * *Browse projects* [project
201
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
202
+ * containing the issue.
203
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
204
+ * configured, issue-level security permission to view the issue.
205
+ *
206
+ * @returns Returned if the request is successful.
207
+ *
208
+ * example: {
209
+ * "expand": "names,schema",
210
+ * "issues": [
211
+ * {
212
+ * "expand": "",
213
+ * "fields": {
214
+ * "watcher": {
215
+ * "isWatching": false,
216
+ * "self":
217
+ * "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
218
+ * "watchCount": 1,
219
+ * "watchers": [
220
+ * {
221
+ * "accountId": "5b10a2844c20165700ede21g",
222
+ * "active": false,
223
+ * "displayName": "Mia Krystof",
224
+ * "self":
225
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
226
+ * }
227
+ * ]
228
+ * },
229
+ * "attachment": [
230
+ * {
231
+ * "author": {
232
+ * "accountId": "5b10a2844c20165700ede21g",
233
+ * "accountType": "atlassian",
234
+ * "active": false,
235
+ * "avatarUrls": {
236
+ * "16x16":
237
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
238
+ * "24x24":
239
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
240
+ * "32x32":
241
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
242
+ * "48x48":
243
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
244
+ * },
245
+ * "displayName": "Mia Krystof",
246
+ * "key": "",
247
+ * "name": "",
248
+ * "self":
249
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
250
+ * },
251
+ * "content":
252
+ * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10000",
253
+ * "created": "2022-10-06T07:32:47.000+0000",
254
+ * "filename": "picture.jpg",
255
+ * "id": 10000,
256
+ * "mimeType": "image/jpeg",
257
+ * "self":
258
+ * "https://your-domain.atlassian.net/rest/api/3/attachments/10000",
259
+ * "size": 23123,
260
+ * "thumbnail":
261
+ * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/thumbnail/10000"
262
+ * }
263
+ * ],
264
+ * "sub-tasks": [
265
+ * {
266
+ * "id": "10000",
267
+ * "outwardIssue": {
268
+ * "fields": {
269
+ * "status": {
270
+ * "iconUrl":
271
+ * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
272
+ * "name": "Open"
273
+ * }
274
+ * },
275
+ * "id": "10003",
276
+ * "key": "ED-2",
277
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
278
+ * },
279
+ * "type": {
280
+ * "id": "10000",
281
+ * "inward": "Parent",
282
+ * "name": "",
283
+ * "outward": "Sub-task"
284
+ * }
285
+ * }
286
+ * ],
287
+ * "description": {
288
+ * "type": "doc",
289
+ * "version": 1,
290
+ * "content": [
291
+ * {
292
+ * "type": "paragraph",
293
+ * "content": [
294
+ * {
295
+ * "type": "text",
296
+ * "text": "Main order flow broken"
297
+ * }
298
+ * ]
299
+ * }
300
+ * ]
301
+ * },
302
+ * "project": {
303
+ * "avatarUrls": {
304
+ * "16x16":
305
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
306
+ * "24x24":
307
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
308
+ * "32x32":
309
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
310
+ * "48x48":
311
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
312
+ * },
313
+ * "id": "10000",
314
+ * "insight": {
315
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
316
+ * "totalIssueCount": 100
317
+ * },
318
+ * "key": "EX",
319
+ * "name": "Example",
320
+ * "projectCategory": {
321
+ * "description": "First Project Category",
322
+ * "id": "10000",
323
+ * "name": "FIRST",
324
+ * "self":
325
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
326
+ * },
327
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
328
+ * "simplified": false,
329
+ * "style": "classic"
330
+ * },
331
+ * "comment": [
332
+ * {
333
+ * "author": {
334
+ * "accountId": "5b10a2844c20165700ede21g",
335
+ * "active": false,
336
+ * "displayName": "Mia Krystof",
337
+ * "self":
338
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
339
+ * },
340
+ * "body": {
341
+ * "type": "doc",
342
+ * "version": 1,
343
+ * "content": [
344
+ * {
345
+ * "type": "paragraph",
346
+ * "content": [
347
+ * {
348
+ * "type": "text",
349
+ * "text": "Lorem ipsum dolor sit amet, consectetur
350
+ * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
351
+ * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
352
+ * semper."
353
+ * }
354
+ * ]
355
+ * }
356
+ * ]
357
+ * },
358
+ * "created": "2021-01-17T12:34:00.000+0000",
359
+ * "id": "10000",
360
+ * "self":
361
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
362
+ * "updateAuthor": {
363
+ * "accountId": "5b10a2844c20165700ede21g",
364
+ * "active": false,
365
+ * "displayName": "Mia Krystof",
366
+ * "self":
367
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
368
+ * },
369
+ * "updated": "2021-01-18T23:45:00.000+0000",
370
+ * "visibility": {
371
+ * "identifier": "Administrators",
372
+ * "type": "role",
373
+ * "value": "Administrators"
374
+ * }
375
+ * }
376
+ * ],
377
+ * "issuelinks": [
378
+ * {
379
+ * "id": "10001",
380
+ * "outwardIssue": {
381
+ * "fields": {
382
+ * "status": {
383
+ * "iconUrl":
384
+ * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
385
+ * "name": "Open"
386
+ * }
387
+ * },
388
+ * "id": "10004L",
389
+ * "key": "PR-2",
390
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
391
+ * },
392
+ * "type": {
393
+ * "id": "10000",
394
+ * "inward": "depends on",
395
+ * "name": "Dependent",
396
+ * "outward": "is depended by"
397
+ * }
398
+ * },
399
+ * {
400
+ * "id": "10002",
401
+ * "inwardIssue": {
402
+ * "fields": {
403
+ * "status": {
404
+ * "iconUrl":
405
+ * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
406
+ * "name": "Open"
407
+ * }
408
+ * },
409
+ * "id": "10004",
410
+ * "key": "PR-3",
411
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
412
+ * },
413
+ * "type": {
414
+ * "id": "10000",
415
+ * "inward": "depends on",
416
+ * "name": "Dependent",
417
+ * "outward": "is depended by"
418
+ * }
419
+ * }
420
+ * ],
421
+ * "worklog": [
422
+ * {
423
+ * "author": {
424
+ * "accountId": "5b10a2844c20165700ede21g",
425
+ * "active": false,
426
+ * "displayName": "Mia Krystof",
427
+ * "self":
428
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
429
+ * },
430
+ * "comment": {
431
+ * "type": "doc",
432
+ * "version": 1,
433
+ * "content": [
434
+ * {
435
+ * "type": "paragraph",
436
+ * "content": [
437
+ * {
438
+ * "type": "text",
439
+ * "text": "I did some work here."
440
+ * }
441
+ * ]
442
+ * }
443
+ * ]
444
+ * },
445
+ * "id": "100028",
446
+ * "issueId": "10002",
447
+ * "self":
448
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
449
+ * "started": "2021-01-17T12:34:00.000+0000",
450
+ * "timeSpent": "3h 20m",
451
+ * "timeSpentSeconds": 12000,
452
+ * "updateAuthor": {
453
+ * "accountId": "5b10a2844c20165700ede21g",
454
+ * "active": false,
455
+ * "displayName": "Mia Krystof",
456
+ * "self":
457
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
458
+ * },
459
+ * "updated": "2021-01-18T23:45:00.000+0000",
460
+ * "visibility": {
461
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
462
+ * "type": "group",
463
+ * "value": "jira-developers"
464
+ * }
465
+ * }
466
+ * ],
467
+ * "updated": 1,
468
+ * "timetracking": {
469
+ * "originalEstimate": "10m",
470
+ * "originalEstimateSeconds": 600,
471
+ * "remainingEstimate": "3m",
472
+ * "remainingEstimateSeconds": 200,
473
+ * "timeSpent": "6m",
474
+ * "timeSpentSeconds": 400
475
+ * }
476
+ * },
477
+ * "id": "10002",
478
+ * "key": "ED-1",
479
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
480
+ * }
481
+ * ],
482
+ * "maxResults": 50,
483
+ * "startAt": 0,
484
+ * "total": 1,
485
+ * "warningMessages": [
486
+ * "The value 'bar' does not exist for the field 'foo'."
487
+ * ]
488
+ * }
489
+ * @path {GET} /rest/api/3/search
490
+ * @scopes-current read:jira-work
491
+ * @scopes-beta read:issue-details:jira, read:audit-log:jira, read:avatar:jira,
492
+ * read:field-configuration:jira, read:issue-meta:jira
493
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-get
494
+ */
495
+ this.searchForIssuesUsingJql = ({ jql, startAt, maxResults, validateQuery, fields, expand, properties, fieldsByKeys, } = {}) => {
496
+ return this.getClientInstance()
497
+ .request({
498
+ path: "/rest/api/3/search",
499
+ method: "GET",
500
+ query: {
501
+ jql,
502
+ startAt,
503
+ maxResults,
504
+ validateQuery,
505
+ fields,
506
+ expand,
507
+ properties,
508
+ fieldsByKeys,
509
+ },
510
+ })
511
+ .then(this.getClientInstance().responseHandler({
512
+ 200: {
513
+ "application/json": "json",
514
+ },
515
+ }))
516
+ .then(commonHttpClient.castResponse())
517
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.searchForIssuesUsingJql.response"))
518
+ .then(commonHttpClient.getBody);
519
+ };
520
+ /**
521
+ * Searches for issues using [JQL](https://confluence.atlassian.com/x/egORLQ).
522
+ *
523
+ * There is a [GET](#api-rest-api-3-search-get) version of this resource that can
524
+ * be used for smaller JQL query expressions.
525
+ *
526
+ * This operation can be accessed anonymously.
527
+ *
528
+ * **[Permissions](#permissions) required:** Issues are included in the response
529
+ * where the user has:
530
+ *
531
+ * * *Browse projects* [project
532
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project
533
+ * containing the issue.
534
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
535
+ * configured, issue-level security permission to view the issue.
536
+ *
537
+ * @returns Returned if the request is successful.
538
+ *
539
+ * example: {
540
+ * "expand": "names,schema",
541
+ * "issues": [
542
+ * {
543
+ * "expand": "",
544
+ * "fields": {
545
+ * "watcher": {
546
+ * "isWatching": false,
547
+ * "self":
548
+ * "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
549
+ * "watchCount": 1,
550
+ * "watchers": [
551
+ * {
552
+ * "accountId": "5b10a2844c20165700ede21g",
553
+ * "active": false,
554
+ * "displayName": "Mia Krystof",
555
+ * "self":
556
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
557
+ * }
558
+ * ]
559
+ * },
560
+ * "attachment": [
561
+ * {
562
+ * "author": {
563
+ * "accountId": "5b10a2844c20165700ede21g",
564
+ * "accountType": "atlassian",
565
+ * "active": false,
566
+ * "avatarUrls": {
567
+ * "16x16":
568
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
569
+ * "24x24":
570
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
571
+ * "32x32":
572
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
573
+ * "48x48":
574
+ * "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
575
+ * },
576
+ * "displayName": "Mia Krystof",
577
+ * "key": "",
578
+ * "name": "",
579
+ * "self":
580
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
581
+ * },
582
+ * "content":
583
+ * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10000",
584
+ * "created": "2022-10-06T07:32:47.000+0000",
585
+ * "filename": "picture.jpg",
586
+ * "id": 10000,
587
+ * "mimeType": "image/jpeg",
588
+ * "self":
589
+ * "https://your-domain.atlassian.net/rest/api/3/attachments/10000",
590
+ * "size": 23123,
591
+ * "thumbnail":
592
+ * "https://your-domain.atlassian.net/jira/rest/api/3/attachment/thumbnail/10000"
593
+ * }
594
+ * ],
595
+ * "sub-tasks": [
596
+ * {
597
+ * "id": "10000",
598
+ * "outwardIssue": {
599
+ * "fields": {
600
+ * "status": {
601
+ * "iconUrl":
602
+ * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
603
+ * "name": "Open"
604
+ * }
605
+ * },
606
+ * "id": "10003",
607
+ * "key": "ED-2",
608
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
609
+ * },
610
+ * "type": {
611
+ * "id": "10000",
612
+ * "inward": "Parent",
613
+ * "name": "",
614
+ * "outward": "Sub-task"
615
+ * }
616
+ * }
617
+ * ],
618
+ * "description": {
619
+ * "type": "doc",
620
+ * "version": 1,
621
+ * "content": [
622
+ * {
623
+ * "type": "paragraph",
624
+ * "content": [
625
+ * {
626
+ * "type": "text",
627
+ * "text": "Main order flow broken"
628
+ * }
629
+ * ]
630
+ * }
631
+ * ]
632
+ * },
633
+ * "project": {
634
+ * "avatarUrls": {
635
+ * "16x16":
636
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
637
+ * "24x24":
638
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
639
+ * "32x32":
640
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
641
+ * "48x48":
642
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
643
+ * },
644
+ * "id": "10000",
645
+ * "insight": {
646
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
647
+ * "totalIssueCount": 100
648
+ * },
649
+ * "key": "EX",
650
+ * "name": "Example",
651
+ * "projectCategory": {
652
+ * "description": "First Project Category",
653
+ * "id": "10000",
654
+ * "name": "FIRST",
655
+ * "self":
656
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
657
+ * },
658
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
659
+ * "simplified": false,
660
+ * "style": "classic"
661
+ * },
662
+ * "comment": [
663
+ * {
664
+ * "author": {
665
+ * "accountId": "5b10a2844c20165700ede21g",
666
+ * "active": false,
667
+ * "displayName": "Mia Krystof",
668
+ * "self":
669
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
670
+ * },
671
+ * "body": {
672
+ * "type": "doc",
673
+ * "version": 1,
674
+ * "content": [
675
+ * {
676
+ * "type": "paragraph",
677
+ * "content": [
678
+ * {
679
+ * "type": "text",
680
+ * "text": "Lorem ipsum dolor sit amet, consectetur
681
+ * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
682
+ * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
683
+ * semper."
684
+ * }
685
+ * ]
686
+ * }
687
+ * ]
688
+ * },
689
+ * "created": "2021-01-17T12:34:00.000+0000",
690
+ * "id": "10000",
691
+ * "self":
692
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
693
+ * "updateAuthor": {
694
+ * "accountId": "5b10a2844c20165700ede21g",
695
+ * "active": false,
696
+ * "displayName": "Mia Krystof",
697
+ * "self":
698
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
699
+ * },
700
+ * "updated": "2021-01-18T23:45:00.000+0000",
701
+ * "visibility": {
702
+ * "identifier": "Administrators",
703
+ * "type": "role",
704
+ * "value": "Administrators"
705
+ * }
706
+ * }
707
+ * ],
708
+ * "issuelinks": [
709
+ * {
710
+ * "id": "10001",
711
+ * "outwardIssue": {
712
+ * "fields": {
713
+ * "status": {
714
+ * "iconUrl":
715
+ * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
716
+ * "name": "Open"
717
+ * }
718
+ * },
719
+ * "id": "10004L",
720
+ * "key": "PR-2",
721
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
722
+ * },
723
+ * "type": {
724
+ * "id": "10000",
725
+ * "inward": "depends on",
726
+ * "name": "Dependent",
727
+ * "outward": "is depended by"
728
+ * }
729
+ * },
730
+ * {
731
+ * "id": "10002",
732
+ * "inwardIssue": {
733
+ * "fields": {
734
+ * "status": {
735
+ * "iconUrl":
736
+ * "https://your-domain.atlassian.net/images/icons/statuses/open.png",
737
+ * "name": "Open"
738
+ * }
739
+ * },
740
+ * "id": "10004",
741
+ * "key": "PR-3",
742
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
743
+ * },
744
+ * "type": {
745
+ * "id": "10000",
746
+ * "inward": "depends on",
747
+ * "name": "Dependent",
748
+ * "outward": "is depended by"
749
+ * }
750
+ * }
751
+ * ],
752
+ * "worklog": [
753
+ * {
754
+ * "author": {
755
+ * "accountId": "5b10a2844c20165700ede21g",
756
+ * "active": false,
757
+ * "displayName": "Mia Krystof",
758
+ * "self":
759
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
760
+ * },
761
+ * "comment": {
762
+ * "type": "doc",
763
+ * "version": 1,
764
+ * "content": [
765
+ * {
766
+ * "type": "paragraph",
767
+ * "content": [
768
+ * {
769
+ * "type": "text",
770
+ * "text": "I did some work here."
771
+ * }
772
+ * ]
773
+ * }
774
+ * ]
775
+ * },
776
+ * "id": "100028",
777
+ * "issueId": "10002",
778
+ * "self":
779
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
780
+ * "started": "2021-01-17T12:34:00.000+0000",
781
+ * "timeSpent": "3h 20m",
782
+ * "timeSpentSeconds": 12000,
783
+ * "updateAuthor": {
784
+ * "accountId": "5b10a2844c20165700ede21g",
785
+ * "active": false,
786
+ * "displayName": "Mia Krystof",
787
+ * "self":
788
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
789
+ * },
790
+ * "updated": "2021-01-18T23:45:00.000+0000",
791
+ * "visibility": {
792
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
793
+ * "type": "group",
794
+ * "value": "jira-developers"
795
+ * }
796
+ * }
797
+ * ],
798
+ * "updated": 1,
799
+ * "timetracking": {
800
+ * "originalEstimate": "10m",
801
+ * "originalEstimateSeconds": 600,
802
+ * "remainingEstimate": "3m",
803
+ * "remainingEstimateSeconds": 200,
804
+ * "timeSpent": "6m",
805
+ * "timeSpentSeconds": 400
806
+ * }
807
+ * },
808
+ * "id": "10002",
809
+ * "key": "ED-1",
810
+ * "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
811
+ * }
812
+ * ],
813
+ * "maxResults": 50,
814
+ * "startAt": 0,
815
+ * "total": 1,
816
+ * "warningMessages": [
817
+ * "The value 'bar' does not exist for the field 'foo'."
818
+ * ]
819
+ * }
820
+ * @path {POST} /rest/api/3/search
821
+ * @scopes-current read:jira-work
822
+ * @scopes-beta read:issue-details:jira, read:field.default-value:jira, read:field.option:jira,
823
+ * read:field:jira, read:group:jira
824
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-post
825
+ */
826
+ this.searchForIssuesUsingJqlPost = ({ searchRequestBean, }) => {
827
+ return this.getClientInstance()
828
+ .request({
829
+ path: "/rest/api/3/search",
830
+ method: "POST",
831
+ headers: {
832
+ "Content-Type": "application/json",
833
+ },
834
+ body: searchRequestBean,
835
+ })
836
+ .then(this.getClientInstance().responseHandler({
837
+ 200: {
838
+ "application/json": "json",
839
+ },
840
+ }))
841
+ .then(commonHttpClient.castResponse())
842
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSearchService.searchForIssuesUsingJqlPost.response"))
843
+ .then(commonHttpClient.getBody);
844
+ };
842
845
  }
843
846
  static initialize() {
844
847
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueSearchService.getIssuePickerResource.response", zod_1.z