@resolution/jira-api-client 0.4.2 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/models/common.d.ts +6 -0
  7. package/lib/openapi/platform/models/common.js +12 -1
  8. package/lib/openapi/platform/models/common.js.map +1 -1
  9. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  10. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  11. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  12. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  14. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  15. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  17. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  18. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  20. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  22. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  23. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  25. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  26. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  27. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  28. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  29. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  30. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  31. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  32. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  33. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  34. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  35. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  36. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  38. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  39. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  40. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  41. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  43. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  44. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  45. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  46. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  47. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  48. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  49. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  50. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  53. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  55. package/lib/openapi/platform/services/GroupsService.js +385 -382
  56. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  57. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  59. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  62. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  65. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  66. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  67. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  68. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  71. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  74. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  83. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  86. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  88. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  89. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  92. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  94. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  95. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  98. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  101. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  104. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  106. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  107. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  110. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  112. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  113. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  115. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  116. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  119. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  122. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  125. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  128. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  131. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  133. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  134. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  136. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  137. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  139. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  140. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  143. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  145. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  146. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  148. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  149. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  150. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  151. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  152. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  154. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  155. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  158. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  160. package/lib/openapi/platform/services/JqlService.js +635 -632
  161. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  162. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  163. package/lib/openapi/platform/services/LabelsService.js +41 -38
  164. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  165. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  167. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  168. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  169. package/lib/openapi/platform/services/MyselfService.js +321 -318
  170. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  171. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  172. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  173. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  175. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  176. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  177. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  178. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  179. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  180. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  182. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  185. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  188. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  190. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  191. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  193. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  194. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  197. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  200. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  203. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  206. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  209. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  211. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  212. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  214. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  215. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  217. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  218. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  220. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  221. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  223. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  224. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  227. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  229. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  230. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  232. package/lib/openapi/platform/services/ScreensService.js +281 -278
  233. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  235. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  236. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  238. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  239. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  240. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  241. package/lib/openapi/platform/services/StatusService.js +271 -268
  242. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  243. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  244. package/lib/openapi/platform/services/TasksService.js +93 -90
  245. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  246. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  247. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  248. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  249. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  251. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  252. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  253. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  254. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  256. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  257. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  258. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  259. package/lib/openapi/platform/services/UsersService.js +637 -634
  260. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  261. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  262. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  263. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  266. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  269. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  272. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  275. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  278. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  281. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  284. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  286. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  287. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  288. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  289. package/lib/openapi/software/services/BacklogService.js +81 -78
  290. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  291. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  292. package/lib/openapi/software/services/BoardService.js +2048 -2045
  293. package/lib/openapi/software/services/BoardService.js.map +1 -1
  294. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  295. package/lib/openapi/software/services/BuildsService.js +164 -161
  296. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  297. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  298. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  299. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  300. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  301. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  302. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  303. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  304. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  305. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  306. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  307. package/lib/openapi/software/services/EpicService.js +597 -594
  308. package/lib/openapi/software/services/EpicService.js.map +1 -1
  309. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  310. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  311. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  312. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  313. package/lib/openapi/software/services/IssueService.js +359 -356
  314. package/lib/openapi/software/services/IssueService.js.map +1 -1
  315. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  316. package/lib/openapi/software/services/OperationsService.js +301 -298
  317. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  318. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  319. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  320. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  321. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  322. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  323. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  324. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  325. package/lib/openapi/software/services/SprintService.js +594 -591
  326. package/lib/openapi/software/services/SprintService.js.map +1 -1
  327. package/package.json +4 -3
@@ -18,639 +18,642 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
18
18
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs
19
19
  */
20
20
  class IssueWorklogsService extends CommonHttpService_1.CommonHttpService {
21
- /**
22
- * Adds a worklog to an issue.
23
- *
24
- * Time tracking must be enabled in Jira, otherwise this operation returns an
25
- * error. For more information, see [Configuring time
26
- * tracking](https://confluence.atlassian.com/x/qoXKM).
27
- *
28
- * This operation can be accessed anonymously.
29
- *
30
- * **[Permissions](#permissions) required:**
31
- *
32
- * * *Browse projects* and *Work on issues* [project
33
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
34
- * issue 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
- * @path {POST} /rest/api/3/issue/{issueIdOrKey}/worklog
40
- * @scopes-current write:jira-work
41
- * @scopes-beta write:issue-worklog:jira, write:issue-worklog.property:jira, read:avatar:jira,
42
- * read:group:jira, read:issue-worklog:jira, read:project-role:jira,
43
- * read:user:jira, read:issue-worklog.property:jira
44
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-post
45
- */
46
- addWorklog({ issueIdOrKey, notifyUsers, adjustEstimate, newEstimate, reduceBy, expand, overrideEditableFlag, worklog, }) {
47
- return this.getClientInstance()
48
- .request({
49
- path: "/rest/api/3/issue/{issueIdOrKey}/worklog",
50
- method: "POST",
51
- pathParams: {
52
- issueIdOrKey,
53
- },
54
- query: {
55
- notifyUsers,
56
- adjustEstimate,
57
- newEstimate,
58
- reduceBy,
59
- expand,
60
- overrideEditableFlag,
61
- },
62
- headers: {
63
- "Content-Type": "application/json",
64
- },
65
- body: worklog,
66
- })
67
- .then(this.getClientInstance().responseHandler({
68
- 201: {
69
- "application/json": "json",
70
- },
71
- }))
72
- .then(commonHttpClient.castResponse())
73
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.addWorklog.response"))
74
- .then(commonHttpClient.getBody);
75
- }
76
- /**
77
- * Deletes a worklog from an issue.
78
- *
79
- * Time tracking must be enabled in Jira, otherwise this operation returns an
80
- * error. For more information, see [Configuring time
81
- * tracking](https://confluence.atlassian.com/x/qoXKM).
82
- *
83
- * This operation can be accessed anonymously.
84
- *
85
- * **[Permissions](#permissions) required:**
86
- *
87
- * * *Browse projects* [project
88
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
89
- * issue is in.
90
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
91
- * configured, issue-level security permission to view the issue.
92
- * * *Delete all worklogs*[ project
93
- * permission](https://confluence.atlassian.com/x/yodKLg) to delete any worklog or
94
- * *Delete own worklogs* to delete worklogs created by the user,
95
- * * If the worklog has visibility restrictions, belongs to the group or has the
96
- * role visibility is restricted to.
97
- *
98
- * @path {DELETE} /rest/api/3/issue/{issueIdOrKey}/worklog/{id}
99
- * @scopes-current write:jira-work
100
- * @scopes-beta delete:issue-worklog:jira, delete:issue-worklog.property:jira,
101
- * write:issue.time-tracking:jira
102
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-id-delete
103
- */
104
- deleteWorklog({ issueIdOrKey, id, notifyUsers, adjustEstimate, newEstimate, increaseBy, overrideEditableFlag, }) {
105
- return this.getClientInstance()
106
- .request({
107
- path: "/rest/api/3/issue/{issueIdOrKey}/worklog/{id}",
108
- method: "DELETE",
109
- pathParams: {
110
- issueIdOrKey,
111
- id,
112
- },
113
- query: {
114
- notifyUsers,
115
- adjustEstimate,
116
- newEstimate,
117
- increaseBy,
118
- overrideEditableFlag,
119
- },
120
- })
121
- .then(commonHttpClient.discardResult);
122
- }
123
- /**
124
- * Returns a list of IDs and delete timestamps for worklogs deleted after a date
125
- * and time.
126
- *
127
- * This resource is paginated, with a limit of 1000 worklogs per page. Each page
128
- * lists worklogs from oldest to youngest. If the number of items in the date
129
- * range exceeds 1000, `until` indicates the timestamp of the youngest item on the
130
- * page. Also, `nextPage` provides the URL for the next page of worklogs. The
131
- * `lastPage` parameter is set to true on the last page of worklogs.
132
- *
133
- * This resource does not return worklogs deleted during the minute preceding the
134
- * request.
135
- *
136
- * **[Permissions](#permissions) required:** Permission to access Jira.
137
- *
138
- * @returns Returned if the request is successful.
139
- *
140
- * example: {
141
- * "lastPage": true,
142
- * "nextPage":
143
- * "https://your-domain.atlassian.net/api/~ver~/worklog/deleted?since=1438013693136",
144
- * "self":
145
- * "https://your-domain.atlassian.net/api/~ver~/worklog/deleted?since=1438013671562",
146
- * "since": 1438013671562,
147
- * "until": 1438013693136,
148
- * "values": [
149
- * {
150
- * "properties": [],
151
- * "updatedTime": 1438013671562,
152
- * "worklogId": 103
153
- * },
154
- * {
155
- * "properties": [],
156
- * "updatedTime": 1438013672165,
157
- * "worklogId": 104
158
- * },
159
- * {
160
- * "properties": [],
161
- * "updatedTime": 1438013693136,
162
- * "worklogId": 105
163
- * }
164
- * ]
165
- * }
166
- * @path {GET} /rest/api/3/worklog/deleted
167
- * @scopes-current read:jira-work
168
- * @scopes-beta read:issue-worklog:jira, read:issue-worklog.property:jira
169
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-worklog-deleted-get
170
- */
171
- getIdsOfWorklogsDeletedSince({ since, } = {}) {
172
- return this.getClientInstance()
173
- .request({
174
- path: "/rest/api/3/worklog/deleted",
175
- method: "GET",
176
- query: {
177
- since,
178
- },
179
- })
180
- .then(this.getClientInstance().responseHandler({
181
- 200: {
182
- "application/json": "json",
183
- },
184
- }))
185
- .then(commonHttpClient.castResponse())
186
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getIdsOfWorklogsDeletedSince.response"))
187
- .then(commonHttpClient.getBody);
188
- }
189
- /**
190
- * Returns a list of IDs and update timestamps for worklogs updated after a date
191
- * and time.
192
- *
193
- * This resource is paginated, with a limit of 1000 worklogs per page. Each page
194
- * lists worklogs from oldest to youngest. If the number of items in the date
195
- * range exceeds 1000, `until` indicates the timestamp of the youngest item on the
196
- * page. Also, `nextPage` provides the URL for the next page of worklogs. The
197
- * `lastPage` parameter is set to true on the last page of worklogs.
198
- *
199
- * This resource does not return worklogs updated during the minute preceding the
200
- * request.
201
- *
202
- * **[Permissions](#permissions) required:** Permission to access Jira, however,
203
- * worklogs are only returned where either of the following is true:
204
- *
205
- * * the worklog is set as *Viewable by All Users*.
206
- * * the user is a member of a project role or group with permission to view the
207
- * worklog.
208
- *
209
- * @returns Returned if the request is successful.
210
- *
211
- * example: {
212
- * "lastPage": true,
213
- * "nextPage":
214
- * "https://your-domain.atlassian.net/api/~ver~/worklog/updated?since=1438013693136",
215
- * "self":
216
- * "https://your-domain.atlassian.net/api/~ver~/worklog/updated?since=1438013671562",
217
- * "since": 1438013671562,
218
- * "until": 1438013693136,
219
- * "values": [
220
- * {
221
- * "properties": [],
222
- * "updatedTime": 1438013671562,
223
- * "worklogId": 103
224
- * },
225
- * {
226
- * "properties": [],
227
- * "updatedTime": 1438013672165,
228
- * "worklogId": 104
229
- * },
230
- * {
231
- * "properties": [],
232
- * "updatedTime": 1438013693136,
233
- * "worklogId": 105
234
- * }
235
- * ]
236
- * }
237
- * @path {GET} /rest/api/3/worklog/updated
238
- * @scopes-current read:jira-work
239
- * @scopes-beta read:issue-worklog:jira, read:issue-worklog.property:jira
240
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-worklog-updated-get
241
- */
242
- getIdsOfWorklogsModifiedSince({ since, expand, } = {}) {
243
- return this.getClientInstance()
244
- .request({
245
- path: "/rest/api/3/worklog/updated",
246
- method: "GET",
247
- query: {
248
- since,
249
- expand,
250
- },
251
- })
252
- .then(this.getClientInstance().responseHandler({
253
- 200: {
254
- "application/json": "json",
255
- },
256
- }))
257
- .then(commonHttpClient.castResponse())
258
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getIdsOfWorklogsModifiedSince.response"))
259
- .then(commonHttpClient.getBody);
260
- }
261
- /**
262
- * Returns worklogs for an issue, starting from the oldest worklog or from the
263
- * worklog started on or after a date and time.
264
- *
265
- * Time tracking must be enabled in Jira, otherwise this operation returns an
266
- * error. For more information, see [Configuring time
267
- * tracking](https://confluence.atlassian.com/x/qoXKM).
268
- *
269
- * This operation can be accessed anonymously.
270
- *
271
- * **[Permissions](#permissions) required:** Workloads are only returned where the
272
- * user has:
273
- *
274
- * * *Browse projects* [project
275
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
276
- * issue is in.
277
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
278
- * configured, issue-level security permission to view the issue.
279
- * * If the worklog has visibility restrictions, belongs to the group or has the
280
- * role visibility is restricted to.
281
- *
282
- * @returns Returned if the request is successful
283
- *
284
- * example: {
285
- * "maxResults": 1,
286
- * "startAt": 0,
287
- * "total": 1,
288
- * "worklogs": [
289
- * {
290
- * "author": {
291
- * "accountId": "5b10a2844c20165700ede21g",
292
- * "active": false,
293
- * "displayName": "Mia Krystof",
294
- * "self":
295
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
296
- * },
297
- * "comment": {
298
- * "type": "doc",
299
- * "version": 1,
300
- * "content": [
301
- * {
302
- * "type": "paragraph",
303
- * "content": [
304
- * {
305
- * "type": "text",
306
- * "text": "I did some work here."
307
- * }
308
- * ]
309
- * }
310
- * ]
311
- * },
312
- * "id": "100028",
313
- * "issueId": "10002",
314
- * "self":
315
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
316
- * "started": "2021-01-17T12:34:00.000+0000",
317
- * "timeSpent": "3h 20m",
318
- * "timeSpentSeconds": 12000,
319
- * "updateAuthor": {
320
- * "accountId": "5b10a2844c20165700ede21g",
321
- * "active": false,
322
- * "displayName": "Mia Krystof",
323
- * "self":
324
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
325
- * },
326
- * "updated": "2021-01-18T23:45:00.000+0000",
327
- * "visibility": {
328
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
329
- * "type": "group",
330
- * "value": "jira-developers"
331
- * }
332
- * }
333
- * ]
334
- * }
335
- * @path {GET} /rest/api/3/issue/{issueIdOrKey}/worklog
336
- * @scopes-current read:jira-work
337
- * @scopes-beta read:group:jira, read:issue-worklog:jira, read:issue-worklog.property:jira,
338
- * read:project-role:jira, read:user:jira, read:avatar:jira
339
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-get
340
- */
341
- getIssueWorklog({ issueIdOrKey, startAt, maxResults, startedAfter, startedBefore, expand, }) {
342
- return this.getClientInstance()
343
- .request({
344
- path: "/rest/api/3/issue/{issueIdOrKey}/worklog",
345
- method: "GET",
346
- pathParams: {
347
- issueIdOrKey,
348
- },
349
- query: {
350
- startAt,
351
- maxResults,
352
- startedAfter,
353
- startedBefore,
354
- expand,
355
- },
356
- })
357
- .then(this.getClientInstance().responseHandler({
358
- 200: {
359
- "application/json": "json",
360
- },
361
- }))
362
- .then(commonHttpClient.castResponse())
363
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getIssueWorklog.response"))
364
- .then(commonHttpClient.getBody);
365
- }
366
- /**
367
- * Returns a worklog.
368
- *
369
- * Time tracking must be enabled in Jira, otherwise this operation returns an
370
- * error. For more information, see [Configuring time
371
- * tracking](https://confluence.atlassian.com/x/qoXKM).
372
- *
373
- * This operation can be accessed anonymously.
374
- *
375
- * **[Permissions](#permissions) required:**
376
- *
377
- * * *Browse projects* [project
378
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
379
- * issue is in.
380
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
381
- * configured, issue-level security permission to view the issue.
382
- * * If the worklog has visibility restrictions, belongs to the group or has the
383
- * role visibility is restricted to.
384
- *
385
- * @returns Returned if the request is successful.
386
- *
387
- * example: {
388
- * "author": {
389
- * "accountId": "5b10a2844c20165700ede21g",
390
- * "active": false,
391
- * "displayName": "Mia Krystof",
392
- * "self":
393
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
394
- * },
395
- * "comment": {
396
- * "type": "doc",
397
- * "version": 1,
398
- * "content": [
399
- * {
400
- * "type": "paragraph",
401
- * "content": [
402
- * {
403
- * "type": "text",
404
- * "text": "I did some work here."
405
- * }
406
- * ]
407
- * }
408
- * ]
409
- * },
410
- * "id": "100028",
411
- * "issueId": "10002",
412
- * "self":
413
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
414
- * "started": "2021-01-17T12:34:00.000+0000",
415
- * "timeSpent": "3h 20m",
416
- * "timeSpentSeconds": 12000,
417
- * "updateAuthor": {
418
- * "accountId": "5b10a2844c20165700ede21g",
419
- * "active": false,
420
- * "displayName": "Mia Krystof",
421
- * "self":
422
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
423
- * },
424
- * "updated": "2021-01-18T23:45:00.000+0000",
425
- * "visibility": {
426
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
427
- * "type": "group",
428
- * "value": "jira-developers"
429
- * }
430
- * }
431
- * @path {GET} /rest/api/3/issue/{issueIdOrKey}/worklog/{id}
432
- * @scopes-current read:jira-work
433
- * @scopes-beta read:comment:jira, read:group:jira, read:issue-worklog:jira,
434
- * read:issue-worklog.property:jira, read:project-role:jira, read:user:jira,
435
- * read:avatar:jira
436
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-id-get
437
- */
438
- getWorklog({ issueIdOrKey, id, expand, }) {
439
- return this.getClientInstance()
440
- .request({
441
- path: "/rest/api/3/issue/{issueIdOrKey}/worklog/{id}",
442
- method: "GET",
443
- pathParams: {
444
- issueIdOrKey,
445
- id,
446
- },
447
- query: {
448
- expand,
449
- },
450
- })
451
- .then(this.getClientInstance().responseHandler({
452
- 200: {
453
- "application/json": "json",
454
- },
455
- }))
456
- .then(commonHttpClient.castResponse())
457
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getWorklog.response"))
458
- .then(commonHttpClient.getBody);
459
- }
460
- /**
461
- * Returns worklog details for a list of worklog IDs.
462
- *
463
- * The returned list of worklogs is limited to 1000 items.
464
- *
465
- * **[Permissions](#permissions) required:** Permission to access Jira, however,
466
- * worklogs are only returned where either of the following is true:
467
- *
468
- * * the worklog is set as *Viewable by All Users*.
469
- * * the user is a member of a project role or group with permission to view the
470
- * worklog.
471
- *
472
- * @returns Returned if the request is successful.
473
- *
474
- * example: [
475
- * {
476
- * "author": {
477
- * "accountId": "5b10a2844c20165700ede21g",
478
- * "active": false,
479
- * "displayName": "Mia Krystof",
480
- * "self":
481
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
482
- * },
483
- * "comment": {
484
- * "type": "doc",
485
- * "version": 1,
486
- * "content": [
487
- * {
488
- * "type": "paragraph",
489
- * "content": [
490
- * {
491
- * "type": "text",
492
- * "text": "I did some work here."
493
- * }
494
- * ]
495
- * }
496
- * ]
497
- * },
498
- * "id": "100028",
499
- * "issueId": "10002",
500
- * "self":
501
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
502
- * "started": "2021-01-17T12:34:00.000+0000",
503
- * "timeSpent": "3h 20m",
504
- * "timeSpentSeconds": 12000,
505
- * "updateAuthor": {
506
- * "accountId": "5b10a2844c20165700ede21g",
507
- * "active": false,
508
- * "displayName": "Mia Krystof",
509
- * "self":
510
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
511
- * },
512
- * "updated": "2021-01-18T23:45:00.000+0000",
513
- * "visibility": {
514
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
515
- * "type": "group",
516
- * "value": "jira-developers"
517
- * }
518
- * }
519
- * ]
520
- * @path {POST} /rest/api/3/worklog/list
521
- * @scopes-current read:jira-work
522
- * @scopes-beta read:comment:jira, read:group:jira, read:issue-worklog:jira,
523
- * read:issue-worklog.property:jira, read:project-role:jira, read:user:jira,
524
- * read:avatar:jira
525
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-worklog-list-post
526
- */
527
- getWorklogsForIds({ expand, worklogIdsRequestBean, }) {
528
- return this.getClientInstance()
529
- .request({
530
- path: "/rest/api/3/worklog/list",
531
- method: "POST",
532
- query: {
533
- expand,
534
- },
535
- headers: {
536
- "Content-Type": "application/json",
537
- },
538
- body: worklogIdsRequestBean,
539
- })
540
- .then(this.getClientInstance().responseHandler({
541
- 200: {
542
- "application/json": "json",
543
- },
544
- }))
545
- .then(commonHttpClient.castResponse())
546
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getWorklogsForIds.response"))
547
- .then(commonHttpClient.getBody);
548
- }
549
- /**
550
- * Updates a worklog.
551
- *
552
- * Time tracking must be enabled in Jira, otherwise this operation returns an
553
- * error. For more information, see [Configuring time
554
- * tracking](https://confluence.atlassian.com/x/qoXKM).
555
- *
556
- * This operation can be accessed anonymously.
557
- *
558
- * **[Permissions](#permissions) required:**
559
- *
560
- * * *Browse projects* [project
561
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
562
- * issue is in.
563
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
564
- * configured, issue-level security permission to view the issue.
565
- * * *Edit all worklogs*[ project
566
- * permission](https://confluence.atlassian.com/x/yodKLg) to update any worklog or
567
- * *Edit own worklogs* to update worklogs created by the user.
568
- * * If the worklog has visibility restrictions, belongs to the group or has the
569
- * role visibility is restricted to.
570
- *
571
- * @returns Returned if the request is successful
572
- *
573
- * example: {
574
- * "author": {
575
- * "accountId": "5b10a2844c20165700ede21g",
576
- * "active": false,
577
- * "displayName": "Mia Krystof",
578
- * "self":
579
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
580
- * },
581
- * "comment": {
582
- * "type": "doc",
583
- * "version": 1,
584
- * "content": [
585
- * {
586
- * "type": "paragraph",
587
- * "content": [
588
- * {
589
- * "type": "text",
590
- * "text": "I did some work here."
591
- * }
592
- * ]
593
- * }
594
- * ]
595
- * },
596
- * "id": "100028",
597
- * "issueId": "10002",
598
- * "self":
599
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
600
- * "started": "2021-01-17T12:34:00.000+0000",
601
- * "timeSpent": "3h 20m",
602
- * "timeSpentSeconds": 12000,
603
- * "updateAuthor": {
604
- * "accountId": "5b10a2844c20165700ede21g",
605
- * "active": false,
606
- * "displayName": "Mia Krystof",
607
- * "self":
608
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
609
- * },
610
- * "updated": "2021-01-18T23:45:00.000+0000",
611
- * "visibility": {
612
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
613
- * "type": "group",
614
- * "value": "jira-developers"
615
- * }
616
- * }
617
- * @path {PUT} /rest/api/3/issue/{issueIdOrKey}/worklog/{id}
618
- * @scopes-current write:jira-work
619
- * @scopes-beta read:comment:jira, read:group:jira, read:issue-worklog:jira,
620
- * read:issue-worklog.property:jira, read:project-role:jira, read:user:jira,
621
- * write:comment:jira, write:issue-worklog:jira,
622
- * write:issue-worklog.property:jira, read:avatar:jira
623
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-id-put
624
- */
625
- updateWorklog({ issueIdOrKey, id, notifyUsers, adjustEstimate, newEstimate, expand, overrideEditableFlag, worklog, }) {
626
- return this.getClientInstance()
627
- .request({
628
- path: "/rest/api/3/issue/{issueIdOrKey}/worklog/{id}",
629
- method: "PUT",
630
- pathParams: {
631
- issueIdOrKey,
632
- id,
633
- },
634
- query: {
635
- notifyUsers,
636
- adjustEstimate,
637
- newEstimate,
638
- expand,
639
- overrideEditableFlag,
640
- },
641
- headers: {
642
- "Content-Type": "application/json",
643
- },
644
- body: worklog,
645
- })
646
- .then(this.getClientInstance().responseHandler({
647
- 200: {
648
- "application/json": "json",
649
- },
650
- }))
651
- .then(commonHttpClient.castResponse())
652
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.updateWorklog.response"))
653
- .then(commonHttpClient.getBody);
21
+ constructor() {
22
+ super(...arguments);
23
+ /**
24
+ * Adds a worklog to an issue.
25
+ *
26
+ * Time tracking must be enabled in Jira, otherwise this operation returns an
27
+ * error. For more information, see [Configuring time
28
+ * tracking](https://confluence.atlassian.com/x/qoXKM).
29
+ *
30
+ * This operation can be accessed anonymously.
31
+ *
32
+ * **[Permissions](#permissions) required:**
33
+ *
34
+ * * *Browse projects* and *Work on issues* [project
35
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
36
+ * issue is in.
37
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
38
+ * configured, issue-level security permission to view the issue.
39
+ *
40
+ * @returns Returned if the request is successful.
41
+ * @path {POST} /rest/api/3/issue/{issueIdOrKey}/worklog
42
+ * @scopes-current write:jira-work
43
+ * @scopes-beta write:issue-worklog:jira, write:issue-worklog.property:jira, read:avatar:jira,
44
+ * read:group:jira, read:issue-worklog:jira, read:project-role:jira,
45
+ * read:user:jira, read:issue-worklog.property:jira
46
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-post
47
+ */
48
+ this.addWorklog = ({ issueIdOrKey, notifyUsers, adjustEstimate, newEstimate, reduceBy, expand, overrideEditableFlag, worklog, }) => {
49
+ return this.getClientInstance()
50
+ .request({
51
+ path: "/rest/api/3/issue/{issueIdOrKey}/worklog",
52
+ method: "POST",
53
+ pathParams: {
54
+ issueIdOrKey,
55
+ },
56
+ query: {
57
+ notifyUsers,
58
+ adjustEstimate,
59
+ newEstimate,
60
+ reduceBy,
61
+ expand,
62
+ overrideEditableFlag,
63
+ },
64
+ headers: {
65
+ "Content-Type": "application/json",
66
+ },
67
+ body: worklog,
68
+ })
69
+ .then(this.getClientInstance().responseHandler({
70
+ 201: {
71
+ "application/json": "json",
72
+ },
73
+ }))
74
+ .then(commonHttpClient.castResponse())
75
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.addWorklog.response"))
76
+ .then(commonHttpClient.getBody);
77
+ };
78
+ /**
79
+ * Deletes a worklog from an issue.
80
+ *
81
+ * Time tracking must be enabled in Jira, otherwise this operation returns an
82
+ * error. For more information, see [Configuring time
83
+ * tracking](https://confluence.atlassian.com/x/qoXKM).
84
+ *
85
+ * This operation can be accessed anonymously.
86
+ *
87
+ * **[Permissions](#permissions) required:**
88
+ *
89
+ * * *Browse projects* [project
90
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
91
+ * issue is in.
92
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
93
+ * configured, issue-level security permission to view the issue.
94
+ * * *Delete all worklogs*[ project
95
+ * permission](https://confluence.atlassian.com/x/yodKLg) to delete any worklog or
96
+ * *Delete own worklogs* to delete worklogs created by the user,
97
+ * * If the worklog has visibility restrictions, belongs to the group or has the
98
+ * role visibility is restricted to.
99
+ *
100
+ * @path {DELETE} /rest/api/3/issue/{issueIdOrKey}/worklog/{id}
101
+ * @scopes-current write:jira-work
102
+ * @scopes-beta delete:issue-worklog:jira, delete:issue-worklog.property:jira,
103
+ * write:issue.time-tracking:jira
104
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-id-delete
105
+ */
106
+ this.deleteWorklog = ({ issueIdOrKey, id, notifyUsers, adjustEstimate, newEstimate, increaseBy, overrideEditableFlag, }) => {
107
+ return this.getClientInstance()
108
+ .request({
109
+ path: "/rest/api/3/issue/{issueIdOrKey}/worklog/{id}",
110
+ method: "DELETE",
111
+ pathParams: {
112
+ issueIdOrKey,
113
+ id,
114
+ },
115
+ query: {
116
+ notifyUsers,
117
+ adjustEstimate,
118
+ newEstimate,
119
+ increaseBy,
120
+ overrideEditableFlag,
121
+ },
122
+ })
123
+ .then(commonHttpClient.discardResult);
124
+ };
125
+ /**
126
+ * Returns a list of IDs and delete timestamps for worklogs deleted after a date
127
+ * and time.
128
+ *
129
+ * This resource is paginated, with a limit of 1000 worklogs per page. Each page
130
+ * lists worklogs from oldest to youngest. If the number of items in the date
131
+ * range exceeds 1000, `until` indicates the timestamp of the youngest item on the
132
+ * page. Also, `nextPage` provides the URL for the next page of worklogs. The
133
+ * `lastPage` parameter is set to true on the last page of worklogs.
134
+ *
135
+ * This resource does not return worklogs deleted during the minute preceding the
136
+ * request.
137
+ *
138
+ * **[Permissions](#permissions) required:** Permission to access Jira.
139
+ *
140
+ * @returns Returned if the request is successful.
141
+ *
142
+ * example: {
143
+ * "lastPage": true,
144
+ * "nextPage":
145
+ * "https://your-domain.atlassian.net/api/~ver~/worklog/deleted?since=1438013693136",
146
+ * "self":
147
+ * "https://your-domain.atlassian.net/api/~ver~/worklog/deleted?since=1438013671562",
148
+ * "since": 1438013671562,
149
+ * "until": 1438013693136,
150
+ * "values": [
151
+ * {
152
+ * "properties": [],
153
+ * "updatedTime": 1438013671562,
154
+ * "worklogId": 103
155
+ * },
156
+ * {
157
+ * "properties": [],
158
+ * "updatedTime": 1438013672165,
159
+ * "worklogId": 104
160
+ * },
161
+ * {
162
+ * "properties": [],
163
+ * "updatedTime": 1438013693136,
164
+ * "worklogId": 105
165
+ * }
166
+ * ]
167
+ * }
168
+ * @path {GET} /rest/api/3/worklog/deleted
169
+ * @scopes-current read:jira-work
170
+ * @scopes-beta read:issue-worklog:jira, read:issue-worklog.property:jira
171
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-worklog-deleted-get
172
+ */
173
+ this.getIdsOfWorklogsDeletedSince = ({ since, } = {}) => {
174
+ return this.getClientInstance()
175
+ .request({
176
+ path: "/rest/api/3/worklog/deleted",
177
+ method: "GET",
178
+ query: {
179
+ since,
180
+ },
181
+ })
182
+ .then(this.getClientInstance().responseHandler({
183
+ 200: {
184
+ "application/json": "json",
185
+ },
186
+ }))
187
+ .then(commonHttpClient.castResponse())
188
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getIdsOfWorklogsDeletedSince.response"))
189
+ .then(commonHttpClient.getBody);
190
+ };
191
+ /**
192
+ * Returns a list of IDs and update timestamps for worklogs updated after a date
193
+ * and time.
194
+ *
195
+ * This resource is paginated, with a limit of 1000 worklogs per page. Each page
196
+ * lists worklogs from oldest to youngest. If the number of items in the date
197
+ * range exceeds 1000, `until` indicates the timestamp of the youngest item on the
198
+ * page. Also, `nextPage` provides the URL for the next page of worklogs. The
199
+ * `lastPage` parameter is set to true on the last page of worklogs.
200
+ *
201
+ * This resource does not return worklogs updated during the minute preceding the
202
+ * request.
203
+ *
204
+ * **[Permissions](#permissions) required:** Permission to access Jira, however,
205
+ * worklogs are only returned where either of the following is true:
206
+ *
207
+ * * the worklog is set as *Viewable by All Users*.
208
+ * * the user is a member of a project role or group with permission to view the
209
+ * worklog.
210
+ *
211
+ * @returns Returned if the request is successful.
212
+ *
213
+ * example: {
214
+ * "lastPage": true,
215
+ * "nextPage":
216
+ * "https://your-domain.atlassian.net/api/~ver~/worklog/updated?since=1438013693136",
217
+ * "self":
218
+ * "https://your-domain.atlassian.net/api/~ver~/worklog/updated?since=1438013671562",
219
+ * "since": 1438013671562,
220
+ * "until": 1438013693136,
221
+ * "values": [
222
+ * {
223
+ * "properties": [],
224
+ * "updatedTime": 1438013671562,
225
+ * "worklogId": 103
226
+ * },
227
+ * {
228
+ * "properties": [],
229
+ * "updatedTime": 1438013672165,
230
+ * "worklogId": 104
231
+ * },
232
+ * {
233
+ * "properties": [],
234
+ * "updatedTime": 1438013693136,
235
+ * "worklogId": 105
236
+ * }
237
+ * ]
238
+ * }
239
+ * @path {GET} /rest/api/3/worklog/updated
240
+ * @scopes-current read:jira-work
241
+ * @scopes-beta read:issue-worklog:jira, read:issue-worklog.property:jira
242
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-worklog-updated-get
243
+ */
244
+ this.getIdsOfWorklogsModifiedSince = ({ since, expand, } = {}) => {
245
+ return this.getClientInstance()
246
+ .request({
247
+ path: "/rest/api/3/worklog/updated",
248
+ method: "GET",
249
+ query: {
250
+ since,
251
+ expand,
252
+ },
253
+ })
254
+ .then(this.getClientInstance().responseHandler({
255
+ 200: {
256
+ "application/json": "json",
257
+ },
258
+ }))
259
+ .then(commonHttpClient.castResponse())
260
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getIdsOfWorklogsModifiedSince.response"))
261
+ .then(commonHttpClient.getBody);
262
+ };
263
+ /**
264
+ * Returns worklogs for an issue (ordered by created time), starting from the
265
+ * oldest worklog or from the worklog started on or after a date and time.
266
+ *
267
+ * Time tracking must be enabled in Jira, otherwise this operation returns an
268
+ * error. For more information, see [Configuring time
269
+ * tracking](https://confluence.atlassian.com/x/qoXKM).
270
+ *
271
+ * This operation can be accessed anonymously.
272
+ *
273
+ * **[Permissions](#permissions) required:** Workloads are only returned where the
274
+ * user has:
275
+ *
276
+ * * *Browse projects* [project
277
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
278
+ * issue is in.
279
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
280
+ * configured, issue-level security permission to view the issue.
281
+ * * If the worklog has visibility restrictions, belongs to the group or has the
282
+ * role visibility is restricted to.
283
+ *
284
+ * @returns Returned if the request is successful
285
+ *
286
+ * example: {
287
+ * "maxResults": 1,
288
+ * "startAt": 0,
289
+ * "total": 1,
290
+ * "worklogs": [
291
+ * {
292
+ * "author": {
293
+ * "accountId": "5b10a2844c20165700ede21g",
294
+ * "active": false,
295
+ * "displayName": "Mia Krystof",
296
+ * "self":
297
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
298
+ * },
299
+ * "comment": {
300
+ * "type": "doc",
301
+ * "version": 1,
302
+ * "content": [
303
+ * {
304
+ * "type": "paragraph",
305
+ * "content": [
306
+ * {
307
+ * "type": "text",
308
+ * "text": "I did some work here."
309
+ * }
310
+ * ]
311
+ * }
312
+ * ]
313
+ * },
314
+ * "id": "100028",
315
+ * "issueId": "10002",
316
+ * "self":
317
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
318
+ * "started": "2021-01-17T12:34:00.000+0000",
319
+ * "timeSpent": "3h 20m",
320
+ * "timeSpentSeconds": 12000,
321
+ * "updateAuthor": {
322
+ * "accountId": "5b10a2844c20165700ede21g",
323
+ * "active": false,
324
+ * "displayName": "Mia Krystof",
325
+ * "self":
326
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
327
+ * },
328
+ * "updated": "2021-01-18T23:45:00.000+0000",
329
+ * "visibility": {
330
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
331
+ * "type": "group",
332
+ * "value": "jira-developers"
333
+ * }
334
+ * }
335
+ * ]
336
+ * }
337
+ * @path {GET} /rest/api/3/issue/{issueIdOrKey}/worklog
338
+ * @scopes-current read:jira-work
339
+ * @scopes-beta read:group:jira, read:issue-worklog:jira, read:issue-worklog.property:jira,
340
+ * read:project-role:jira, read:user:jira, read:avatar:jira
341
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-get
342
+ */
343
+ this.getIssueWorklog = ({ issueIdOrKey, startAt, maxResults, startedAfter, startedBefore, expand, }) => {
344
+ return this.getClientInstance()
345
+ .request({
346
+ path: "/rest/api/3/issue/{issueIdOrKey}/worklog",
347
+ method: "GET",
348
+ pathParams: {
349
+ issueIdOrKey,
350
+ },
351
+ query: {
352
+ startAt,
353
+ maxResults,
354
+ startedAfter,
355
+ startedBefore,
356
+ expand,
357
+ },
358
+ })
359
+ .then(this.getClientInstance().responseHandler({
360
+ 200: {
361
+ "application/json": "json",
362
+ },
363
+ }))
364
+ .then(commonHttpClient.castResponse())
365
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getIssueWorklog.response"))
366
+ .then(commonHttpClient.getBody);
367
+ };
368
+ /**
369
+ * Returns a worklog.
370
+ *
371
+ * Time tracking must be enabled in Jira, otherwise this operation returns an
372
+ * error. For more information, see [Configuring time
373
+ * tracking](https://confluence.atlassian.com/x/qoXKM).
374
+ *
375
+ * This operation can be accessed anonymously.
376
+ *
377
+ * **[Permissions](#permissions) required:**
378
+ *
379
+ * * *Browse projects* [project
380
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
381
+ * issue is in.
382
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
383
+ * configured, issue-level security permission to view the issue.
384
+ * * If the worklog has visibility restrictions, belongs to the group or has the
385
+ * role visibility is restricted to.
386
+ *
387
+ * @returns Returned if the request is successful.
388
+ *
389
+ * example: {
390
+ * "author": {
391
+ * "accountId": "5b10a2844c20165700ede21g",
392
+ * "active": false,
393
+ * "displayName": "Mia Krystof",
394
+ * "self":
395
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
396
+ * },
397
+ * "comment": {
398
+ * "type": "doc",
399
+ * "version": 1,
400
+ * "content": [
401
+ * {
402
+ * "type": "paragraph",
403
+ * "content": [
404
+ * {
405
+ * "type": "text",
406
+ * "text": "I did some work here."
407
+ * }
408
+ * ]
409
+ * }
410
+ * ]
411
+ * },
412
+ * "id": "100028",
413
+ * "issueId": "10002",
414
+ * "self":
415
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
416
+ * "started": "2021-01-17T12:34:00.000+0000",
417
+ * "timeSpent": "3h 20m",
418
+ * "timeSpentSeconds": 12000,
419
+ * "updateAuthor": {
420
+ * "accountId": "5b10a2844c20165700ede21g",
421
+ * "active": false,
422
+ * "displayName": "Mia Krystof",
423
+ * "self":
424
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
425
+ * },
426
+ * "updated": "2021-01-18T23:45:00.000+0000",
427
+ * "visibility": {
428
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
429
+ * "type": "group",
430
+ * "value": "jira-developers"
431
+ * }
432
+ * }
433
+ * @path {GET} /rest/api/3/issue/{issueIdOrKey}/worklog/{id}
434
+ * @scopes-current read:jira-work
435
+ * @scopes-beta read:comment:jira, read:group:jira, read:issue-worklog:jira,
436
+ * read:issue-worklog.property:jira, read:project-role:jira, read:user:jira,
437
+ * read:avatar:jira
438
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-id-get
439
+ */
440
+ this.getWorklog = ({ issueIdOrKey, id, expand, }) => {
441
+ return this.getClientInstance()
442
+ .request({
443
+ path: "/rest/api/3/issue/{issueIdOrKey}/worklog/{id}",
444
+ method: "GET",
445
+ pathParams: {
446
+ issueIdOrKey,
447
+ id,
448
+ },
449
+ query: {
450
+ expand,
451
+ },
452
+ })
453
+ .then(this.getClientInstance().responseHandler({
454
+ 200: {
455
+ "application/json": "json",
456
+ },
457
+ }))
458
+ .then(commonHttpClient.castResponse())
459
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getWorklog.response"))
460
+ .then(commonHttpClient.getBody);
461
+ };
462
+ /**
463
+ * Returns worklog details for a list of worklog IDs.
464
+ *
465
+ * The returned list of worklogs is limited to 1000 items.
466
+ *
467
+ * **[Permissions](#permissions) required:** Permission to access Jira, however,
468
+ * worklogs are only returned where either of the following is true:
469
+ *
470
+ * * the worklog is set as *Viewable by All Users*.
471
+ * * the user is a member of a project role or group with permission to view the
472
+ * worklog.
473
+ *
474
+ * @returns Returned if the request is successful.
475
+ *
476
+ * example: [
477
+ * {
478
+ * "author": {
479
+ * "accountId": "5b10a2844c20165700ede21g",
480
+ * "active": false,
481
+ * "displayName": "Mia Krystof",
482
+ * "self":
483
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
484
+ * },
485
+ * "comment": {
486
+ * "type": "doc",
487
+ * "version": 1,
488
+ * "content": [
489
+ * {
490
+ * "type": "paragraph",
491
+ * "content": [
492
+ * {
493
+ * "type": "text",
494
+ * "text": "I did some work here."
495
+ * }
496
+ * ]
497
+ * }
498
+ * ]
499
+ * },
500
+ * "id": "100028",
501
+ * "issueId": "10002",
502
+ * "self":
503
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
504
+ * "started": "2021-01-17T12:34:00.000+0000",
505
+ * "timeSpent": "3h 20m",
506
+ * "timeSpentSeconds": 12000,
507
+ * "updateAuthor": {
508
+ * "accountId": "5b10a2844c20165700ede21g",
509
+ * "active": false,
510
+ * "displayName": "Mia Krystof",
511
+ * "self":
512
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
513
+ * },
514
+ * "updated": "2021-01-18T23:45:00.000+0000",
515
+ * "visibility": {
516
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
517
+ * "type": "group",
518
+ * "value": "jira-developers"
519
+ * }
520
+ * }
521
+ * ]
522
+ * @path {POST} /rest/api/3/worklog/list
523
+ * @scopes-current read:jira-work
524
+ * @scopes-beta read:comment:jira, read:group:jira, read:issue-worklog:jira,
525
+ * read:issue-worklog.property:jira, read:project-role:jira, read:user:jira,
526
+ * read:avatar:jira
527
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-worklog-list-post
528
+ */
529
+ this.getWorklogsForIds = ({ expand, worklogIdsRequestBean, }) => {
530
+ return this.getClientInstance()
531
+ .request({
532
+ path: "/rest/api/3/worklog/list",
533
+ method: "POST",
534
+ query: {
535
+ expand,
536
+ },
537
+ headers: {
538
+ "Content-Type": "application/json",
539
+ },
540
+ body: worklogIdsRequestBean,
541
+ })
542
+ .then(this.getClientInstance().responseHandler({
543
+ 200: {
544
+ "application/json": "json",
545
+ },
546
+ }))
547
+ .then(commonHttpClient.castResponse())
548
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.getWorklogsForIds.response"))
549
+ .then(commonHttpClient.getBody);
550
+ };
551
+ /**
552
+ * Updates a worklog.
553
+ *
554
+ * Time tracking must be enabled in Jira, otherwise this operation returns an
555
+ * error. For more information, see [Configuring time
556
+ * tracking](https://confluence.atlassian.com/x/qoXKM).
557
+ *
558
+ * This operation can be accessed anonymously.
559
+ *
560
+ * **[Permissions](#permissions) required:**
561
+ *
562
+ * * *Browse projects* [project
563
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
564
+ * issue is in.
565
+ * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
566
+ * configured, issue-level security permission to view the issue.
567
+ * * *Edit all worklogs*[ project
568
+ * permission](https://confluence.atlassian.com/x/yodKLg) to update any worklog or
569
+ * *Edit own worklogs* to update worklogs created by the user.
570
+ * * If the worklog has visibility restrictions, belongs to the group or has the
571
+ * role visibility is restricted to.
572
+ *
573
+ * @returns Returned if the request is successful
574
+ *
575
+ * example: {
576
+ * "author": {
577
+ * "accountId": "5b10a2844c20165700ede21g",
578
+ * "active": false,
579
+ * "displayName": "Mia Krystof",
580
+ * "self":
581
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
582
+ * },
583
+ * "comment": {
584
+ * "type": "doc",
585
+ * "version": 1,
586
+ * "content": [
587
+ * {
588
+ * "type": "paragraph",
589
+ * "content": [
590
+ * {
591
+ * "type": "text",
592
+ * "text": "I did some work here."
593
+ * }
594
+ * ]
595
+ * }
596
+ * ]
597
+ * },
598
+ * "id": "100028",
599
+ * "issueId": "10002",
600
+ * "self":
601
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
602
+ * "started": "2021-01-17T12:34:00.000+0000",
603
+ * "timeSpent": "3h 20m",
604
+ * "timeSpentSeconds": 12000,
605
+ * "updateAuthor": {
606
+ * "accountId": "5b10a2844c20165700ede21g",
607
+ * "active": false,
608
+ * "displayName": "Mia Krystof",
609
+ * "self":
610
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
611
+ * },
612
+ * "updated": "2021-01-18T23:45:00.000+0000",
613
+ * "visibility": {
614
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
615
+ * "type": "group",
616
+ * "value": "jira-developers"
617
+ * }
618
+ * }
619
+ * @path {PUT} /rest/api/3/issue/{issueIdOrKey}/worklog/{id}
620
+ * @scopes-current write:jira-work
621
+ * @scopes-beta read:comment:jira, read:group:jira, read:issue-worklog:jira,
622
+ * read:issue-worklog.property:jira, read:project-role:jira, read:user:jira,
623
+ * write:comment:jira, write:issue-worklog:jira,
624
+ * write:issue-worklog.property:jira, read:avatar:jira
625
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs#api-rest-api-3-issue-issueidorkey-worklog-id-put
626
+ */
627
+ this.updateWorklog = ({ issueIdOrKey, id, notifyUsers, adjustEstimate, newEstimate, expand, overrideEditableFlag, worklog, }) => {
628
+ return this.getClientInstance()
629
+ .request({
630
+ path: "/rest/api/3/issue/{issueIdOrKey}/worklog/{id}",
631
+ method: "PUT",
632
+ pathParams: {
633
+ issueIdOrKey,
634
+ id,
635
+ },
636
+ query: {
637
+ notifyUsers,
638
+ adjustEstimate,
639
+ newEstimate,
640
+ expand,
641
+ overrideEditableFlag,
642
+ },
643
+ headers: {
644
+ "Content-Type": "application/json",
645
+ },
646
+ body: worklog,
647
+ })
648
+ .then(this.getClientInstance().responseHandler({
649
+ 200: {
650
+ "application/json": "json",
651
+ },
652
+ }))
653
+ .then(commonHttpClient.castResponse())
654
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueWorklogsService.updateWorklog.response"))
655
+ .then(commonHttpClient.getBody);
656
+ };
654
657
  }
655
658
  static initialize() {
656
659
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueWorklogsService.getIssueWorklog.response", zod_1.z