@resolution/jira-api-client 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +60 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +118 -95
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1073 -869
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/core/CommonHttpService.d.ts +2 -0
  7. package/lib/openapi/platform/core/CommonHttpService.js +9 -0
  8. package/lib/openapi/platform/core/CommonHttpService.js.map +1 -1
  9. package/lib/openapi/platform/models/common.d.ts +6 -0
  10. package/lib/openapi/platform/models/common.js +12 -1
  11. package/lib/openapi/platform/models/common.js.map +1 -1
  12. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  13. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  14. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  15. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  16. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  17. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  18. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  19. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  20. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  22. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  23. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  25. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  26. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  27. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  28. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  29. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  30. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  31. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  32. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  33. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  34. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  35. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  36. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  37. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  38. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  39. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  40. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  41. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  43. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  44. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  45. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  46. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  47. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  48. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  49. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  50. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  51. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  52. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  53. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  55. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  56. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  57. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  58. package/lib/openapi/platform/services/GroupsService.js +385 -382
  59. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  61. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  62. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  63. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  64. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  65. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  66. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  67. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  68. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  70. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  71. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  73. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  74. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  76. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  77. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  82. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  83. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  85. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  86. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  88. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  89. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  91. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  92. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  94. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  95. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  97. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  98. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  100. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  101. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  103. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  104. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  106. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  107. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  109. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  110. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  112. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  113. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  115. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  116. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  118. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  119. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  121. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  122. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  124. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  125. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  127. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  128. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  130. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  131. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  133. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  134. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  136. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  137. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  139. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  140. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  142. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  143. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  145. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  146. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  148. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  149. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  150. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  151. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  152. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  154. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  155. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  157. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  158. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  160. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  161. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  162. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  163. package/lib/openapi/platform/services/JqlService.js +635 -632
  164. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  165. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LabelsService.js +41 -38
  167. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  168. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  169. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  170. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  171. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  172. package/lib/openapi/platform/services/MyselfService.js +321 -318
  173. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  175. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  176. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  177. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  178. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  179. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  180. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  181. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  182. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  184. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  185. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  187. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  188. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  190. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  191. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  193. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  194. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  197. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  199. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  200. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  202. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  203. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  205. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  206. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  208. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  209. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  211. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  212. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  214. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  215. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  217. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  218. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  220. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  221. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  223. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  224. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  226. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  227. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  229. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  230. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  232. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  233. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  234. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  235. package/lib/openapi/platform/services/ScreensService.js +281 -278
  236. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  238. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  239. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  240. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  241. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  242. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  243. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  244. package/lib/openapi/platform/services/StatusService.js +271 -268
  245. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  246. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  247. package/lib/openapi/platform/services/TasksService.js +93 -90
  248. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  249. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  250. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  251. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  252. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  253. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  254. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  256. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  257. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  258. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  259. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  260. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  261. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  262. package/lib/openapi/platform/services/UsersService.js +637 -634
  263. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  264. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  265. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  266. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  268. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  269. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  271. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  272. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  274. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  275. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  278. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  280. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  281. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  283. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  284. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  286. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  287. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  288. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  289. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  290. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  291. package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +13 -14
  292. package/lib/openapi/software/BaseJiraSoftwareApiClient.js +454 -429
  293. package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
  294. package/lib/openapi/software/core/CommonHttpService.d.ts +2 -0
  295. package/lib/openapi/software/core/CommonHttpService.js +9 -0
  296. package/lib/openapi/software/core/CommonHttpService.js.map +1 -1
  297. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  298. package/lib/openapi/software/services/BacklogService.js +81 -78
  299. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  300. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  301. package/lib/openapi/software/services/BoardService.js +2048 -2045
  302. package/lib/openapi/software/services/BoardService.js.map +1 -1
  303. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  304. package/lib/openapi/software/services/BuildsService.js +164 -161
  305. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  306. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  307. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  308. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  309. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  310. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  311. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  312. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  313. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  314. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  315. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  316. package/lib/openapi/software/services/EpicService.js +597 -594
  317. package/lib/openapi/software/services/EpicService.js.map +1 -1
  318. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  319. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  320. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  321. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  322. package/lib/openapi/software/services/IssueService.js +359 -356
  323. package/lib/openapi/software/services/IssueService.js.map +1 -1
  324. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  325. package/lib/openapi/software/services/OperationsService.js +301 -298
  326. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  327. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  328. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  329. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  330. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  331. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  332. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  333. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  334. package/lib/openapi/software/services/SprintService.js +594 -591
  335. package/lib/openapi/software/services/SprintService.js.map +1 -1
  336. package/package.json +4 -3
@@ -15,597 +15,600 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
15
15
  * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint
16
16
  */
17
17
  class SprintService extends CommonHttpService_1.CommonHttpService {
18
- /**
19
- * Creates a future sprint. Sprint name and origin board id are required. Start
20
- * date, end date, and goal are optional.
21
- *
22
- * Note that the sprint name is trimmed. Also, when starting sprints from the UI,
23
- * the "endDate" set through this call is ignored and instead the last sprint's
24
- * duration is used to fill the form.
25
- *
26
- * @returns Created sprint
27
- *
28
- * example: {
29
- * "id": 37,
30
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
31
- * "state": "future",
32
- * "name": "sprint 1",
33
- * "startDate": "2015-04-11T15:22:00.000+10:00",
34
- * "endDate": "2015-04-20T01:22:00.000+10:00",
35
- * "originBoardId": 5,
36
- * "goal": "sprint 1 goal"
37
- * }
38
- * @path {POST} /rest/agile/1.0/sprint
39
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-post
40
- */
41
- createSprint({ sprintCreateBean, }) {
42
- return this.getClientInstance()
43
- .request({
44
- path: "/rest/agile/1.0/sprint",
45
- method: "POST",
46
- headers: {
47
- "Content-Type": "application/json",
48
- },
49
- body: sprintCreateBean,
50
- })
51
- .then(this.getClientInstance().responseHandler({
52
- 201: {
53
- "application/json": "json",
54
- },
55
- }))
56
- .then(commonHttpClient.castResponse())
57
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.createSprint.response"))
58
- .then(commonHttpClient.getBody);
59
- }
60
- /**
61
- * Removes the property from the sprint identified by the id. Ths user removing
62
- * the property is required to have permissions to modify the sprint.
63
- *
64
- * @path {DELETE} /rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}
65
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-propertykey-delete
66
- */
67
- deleteProperty({ sprintId, propertyKey, }) {
68
- return this.getClientInstance()
69
- .request({
70
- path: "/rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}",
71
- method: "DELETE",
72
- pathParams: {
73
- sprintId,
74
- propertyKey,
75
- },
76
- })
77
- .then(commonHttpClient.discardResult);
78
- }
79
- /**
80
- * Deletes a sprint. Once a sprint is deleted, all open issues in the sprint will
81
- * be moved to the backlog.
82
- *
83
- * @path {DELETE} /rest/agile/1.0/sprint/{sprintId}
84
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-delete
85
- */
86
- deleteSprint({ sprintId, }) {
87
- return this.getClientInstance()
88
- .request({
89
- path: "/rest/agile/1.0/sprint/{sprintId}",
90
- method: "DELETE",
91
- pathParams: {
92
- sprintId,
93
- },
94
- })
95
- .then(commonHttpClient.discardResult);
96
- }
97
- /**
98
- * Returns all issues in a sprint, for a given sprint ID. This only includes
99
- * issues that the user has permission to view. By default, the returned issues
100
- * are ordered by rank.
101
- *
102
- * @returns Returns the requested issues, at the specified page of the results.
103
- *
104
- * example: {
105
- * "expand": "",
106
- * "fields": {
107
- * "flagged": true,
108
- * "sprint": {
109
- * "id": 37,
110
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
111
- * "state": "future",
112
- * "name": "sprint 2",
113
- * "goal": "sprint 2 goal"
114
- * },
115
- * "closedSprints": [
116
- * {
117
- * "id": 37,
118
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
119
- * "state": "closed",
120
- * "name": "sprint 1",
121
- * "startDate": "2015-04-11T15:22:00.000+10:00",
122
- * "endDate": "2015-04-20T01:22:00.000+10:00",
123
- * "completeDate": "2015-04-20T11:04:00.000+10:00",
124
- * "goal": "sprint 1 goal"
125
- * }
126
- * ],
127
- * "description": "example bug report",
128
- * "project": {
129
- * "avatarUrls": {
130
- * "16x16":
131
- * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
132
- * "24x24":
133
- * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
134
- * "32x32":
135
- * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
136
- * "48x48":
137
- * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
138
- * },
139
- * "id": "10000",
140
- * "insight": {
141
- * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
142
- * "totalIssueCount": 100
143
- * },
144
- * "key": "EX",
145
- * "name": "Example",
146
- * "projectCategory": {
147
- * "description": "First Project Category",
148
- * "id": "10000",
149
- * "name": "FIRST",
150
- * "self":
151
- * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
152
- * },
153
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
154
- * "simplified": false,
155
- * "style": "classic"
156
- * },
157
- * "comment": [
158
- * {
159
- * "author": {
160
- * "accountId": "5b10a2844c20165700ede21g",
161
- * "active": false,
162
- * "displayName": "Mia Krystof",
163
- * "self":
164
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
165
- * },
166
- * "body": {
167
- * "type": "doc",
168
- * "version": 1,
169
- * "content": [
170
- * {
171
- * "type": "paragraph",
172
- * "content": [
173
- * {
174
- * "type": "text",
175
- * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing
176
- * elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis
177
- * fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
178
- * }
179
- * ]
180
- * }
181
- * ]
182
- * },
183
- * "created": "2021-01-17T12:34:00.000+0000",
184
- * "id": "10000",
185
- * "self":
186
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
187
- * "updateAuthor": {
188
- * "accountId": "5b10a2844c20165700ede21g",
189
- * "active": false,
190
- * "displayName": "Mia Krystof",
191
- * "self":
192
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
193
- * },
194
- * "updated": "2021-01-18T23:45:00.000+0000",
195
- * "visibility": {
196
- * "identifier": "Administrators",
197
- * "type": "role",
198
- * "value": "Administrators"
199
- * }
200
- * }
201
- * ],
202
- * "epic": {
203
- * "id": 37,
204
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
205
- * "name": "epic 1",
206
- * "summary": "epic 1 summary",
207
- * "color": {
208
- * "key": "color_4"
209
- * },
210
- * "done": true
211
- * },
212
- * "worklog": [
213
- * {
214
- * "author": {
215
- * "accountId": "5b10a2844c20165700ede21g",
216
- * "active": false,
217
- * "displayName": "Mia Krystof",
218
- * "self":
219
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
220
- * },
221
- * "comment": {
222
- * "type": "doc",
223
- * "version": 1,
224
- * "content": [
225
- * {
226
- * "type": "paragraph",
227
- * "content": [
228
- * {
229
- * "type": "text",
230
- * "text": "I did some work here."
231
- * }
232
- * ]
233
- * }
234
- * ]
235
- * },
236
- * "id": "100028",
237
- * "issueId": "10002",
238
- * "self":
239
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
240
- * "started": "2021-01-17T12:34:00.000+0000",
241
- * "timeSpent": "3h 20m",
242
- * "timeSpentSeconds": 12000,
243
- * "updateAuthor": {
244
- * "accountId": "5b10a2844c20165700ede21g",
245
- * "active": false,
246
- * "displayName": "Mia Krystof",
247
- * "self":
248
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
249
- * },
250
- * "updated": "2021-01-18T23:45:00.000+0000",
251
- * "visibility": {
252
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
253
- * "type": "group",
254
- * "value": "jira-developers"
255
- * }
256
- * }
257
- * ],
258
- * "updated": 1,
259
- * "timetracking": {
260
- * "originalEstimate": "10m",
261
- * "originalEstimateSeconds": 600,
262
- * "remainingEstimate": "3m",
263
- * "remainingEstimateSeconds": 200,
264
- * "timeSpent": "6m",
265
- * "timeSpentSeconds": 400
266
- * }
267
- * },
268
- * "id": "10001",
269
- * "key": "HSP-1",
270
- * "self":
271
- * "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
272
- * }
273
- * @path {GET} /rest/agile/1.0/sprint/{sprintId}/issue
274
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-issue-get
275
- */
276
- getIssuesForSprint({ sprintId, startAt, maxResults, jql, validateQuery, fields, expand, }) {
277
- return this.getClientInstance()
278
- .request({
279
- path: "/rest/agile/1.0/sprint/{sprintId}/issue",
280
- method: "GET",
281
- pathParams: {
282
- sprintId,
283
- },
284
- query: {
285
- startAt,
286
- maxResults,
287
- jql,
288
- validateQuery,
289
- fields,
290
- expand,
291
- },
292
- })
293
- .then(this.getClientInstance().responseHandler({
294
- 200: {
295
- "application/json": "json",
296
- },
297
- }))
298
- .then(commonHttpClient.castResponse())
299
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getIssuesForSprint.response"))
300
- .then(commonHttpClient.getBody);
301
- }
302
- /**
303
- * Returns the keys of all properties for the sprint identified by the id. The
304
- * user who retrieves the property keys is required to have permissions to view
305
- * the sprint.
306
- *
307
- * @returns Returned if the sprint with given id exists.
308
- *
309
- * example: {
310
- * "keys": [
311
- * {
312
- * "key": "issue.support",
313
- * "self":
314
- * "https://your-domain.atlassian.net/rest/api/3/issue/EX-2/properties/issue.support"
315
- * }
316
- * ]
317
- * }
318
- * @path {GET} /rest/agile/1.0/sprint/{sprintId}/properties
319
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-get
320
- */
321
- getPropertiesKeys({ sprintId, }) {
322
- return this.getClientInstance()
323
- .request({
324
- path: "/rest/agile/1.0/sprint/{sprintId}/properties",
325
- method: "GET",
326
- pathParams: {
327
- sprintId,
328
- },
329
- })
330
- .then(this.getClientInstance().responseHandler({
331
- 200: {
332
- "application/json": "json",
333
- },
334
- }))
335
- .then(commonHttpClient.castResponse())
336
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getPropertiesKeys.response"))
337
- .then(commonHttpClient.getBody);
338
- }
339
- /**
340
- * Returns the value of the property with a given key from the sprint identified
341
- * by the provided id. The user who retrieves the property is required to have
342
- * permissions to view the sprint.
343
- *
344
- * @returns Returned if the sprint exists and the property was found.
345
- *
346
- * example: {
347
- * "key": "issue.support",
348
- * "value": {
349
- * "system.conversation.id": "b1bf38be-5e94-4b40-a3b8-9278735ee1e6",
350
- * "system.support.time": "1m"
351
- * }
352
- * }
353
- * @path {GET} /rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}
354
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-propertykey-get
355
- */
356
- getProperty({ sprintId, propertyKey, }) {
357
- return this.getClientInstance()
358
- .request({
359
- path: "/rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}",
360
- method: "GET",
361
- pathParams: {
362
- sprintId,
363
- propertyKey,
364
- },
365
- })
366
- .then(this.getClientInstance().responseHandler({
367
- 200: {
368
- "application/json": "json",
369
- },
370
- }))
371
- .then(commonHttpClient.castResponse())
372
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getProperty.response"))
373
- .then(commonHttpClient.getBody);
374
- }
375
- /**
376
- * Returns the sprint for a given sprint ID. The sprint will only be returned if
377
- * the user can view the board that the sprint was created on, or view at least
378
- * one of the issues in the sprint.
379
- *
380
- * @returns Returns the requested sprint.
381
- *
382
- * example: {
383
- * "id": 37,
384
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
385
- * "state": "closed",
386
- * "name": "sprint 1",
387
- * "startDate": "2015-04-11T15:22:00.000+10:00",
388
- * "endDate": "2015-04-20T01:22:00.000+10:00",
389
- * "completeDate": "2015-04-20T11:04:00.000+10:00",
390
- * "originBoardId": 5,
391
- * "goal": "sprint 1 goal"
392
- * }
393
- * @path {GET} /rest/agile/1.0/sprint/{sprintId}
394
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-get
395
- */
396
- getSprint({ sprintId, }) {
397
- return this.getClientInstance()
398
- .request({
399
- path: "/rest/agile/1.0/sprint/{sprintId}",
400
- method: "GET",
401
- pathParams: {
402
- sprintId,
403
- },
404
- })
405
- .then(this.getClientInstance().responseHandler({
406
- 200: {
407
- "application/json": "json",
408
- },
409
- }))
410
- .then(commonHttpClient.castResponse())
411
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getSprint.response"))
412
- .then(commonHttpClient.getBody);
413
- }
414
- /**
415
- * Moves issues to a sprint, for a given sprint ID. Issues can only be moved to
416
- * open or active sprints. The maximum number of issues that can be moved in one
417
- * operation is 50.
418
- *
419
- * @path {POST} /rest/agile/1.0/sprint/{sprintId}/issue
420
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-issue-post
421
- */
422
- moveIssuesToSprintAndRank({ sprintId, issueRankRequestBean, }) {
423
- return this.getClientInstance()
424
- .request({
425
- path: "/rest/agile/1.0/sprint/{sprintId}/issue",
426
- method: "POST",
427
- pathParams: {
428
- sprintId,
429
- },
430
- headers: {
431
- "Content-Type": "application/json",
432
- },
433
- body: issueRankRequestBean,
434
- })
435
- .then(commonHttpClient.discardResult);
436
- }
437
- /**
438
- * Performs a partial update of a sprint. A partial update means that fields not
439
- * present in the request JSON will not be updated.
440
- *
441
- * Notes:
442
- *
443
- * * For closed sprints, only the name and goal can be updated; changes to other
444
- * fields will be ignored.
445
- * * A sprint can be started by updating the state to 'active'. This requires
446
- * the sprint to be in the 'future' state and have a startDate and endDate set.
447
- * * A sprint can be completed by updating the state to 'closed'. This action
448
- * requires the sprint to be in the 'active' state. This sets the completeDate to
449
- * the time of the request.
450
- * * Other changes to state are not allowed.
451
- * * The completeDate field cannot be updated manually.
452
- *
453
- * @returns Updated sprint
454
- *
455
- * example: {
456
- * "id": 37,
457
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
458
- * "state": "closed",
459
- * "name": "sprint 1",
460
- * "startDate": "2015-04-11T15:22:00.000+10:00",
461
- * "endDate": "2015-04-20T01:22:00.000+10:00",
462
- * "completeDate": "2015-04-20T11:04:00.000+10:00",
463
- * "originBoardId": 5,
464
- * "goal": "sprint 1 goal"
465
- * }
466
- * @path {POST} /rest/agile/1.0/sprint/{sprintId}
467
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-post
468
- */
469
- partiallyUpdateSprint({ sprintId, sprintBean, }) {
470
- return this.getClientInstance()
471
- .request({
472
- path: "/rest/agile/1.0/sprint/{sprintId}",
473
- method: "POST",
474
- pathParams: {
475
- sprintId,
476
- },
477
- headers: {
478
- "Content-Type": "application/json",
479
- },
480
- body: sprintBean,
481
- })
482
- .then(this.getClientInstance().responseHandler({
483
- 200: {
484
- "application/json": "json",
485
- },
486
- }))
487
- .then(commonHttpClient.castResponse())
488
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.partiallyUpdateSprint.response"))
489
- .then(commonHttpClient.getBody);
490
- }
491
- /**
492
- * Sets the value of the specified sprint's property.
493
- *
494
- * You can use this resource to store a custom data against the sprint identified
495
- * by the id. The user who stores the data is required to have permissions to
496
- * modify the sprint.
497
- *
498
- * @returns * status: 200, mediaType: application/json
499
- *
500
- * Returned if the sprint property is successfully updated.
501
- *
502
- * * status: 201, mediaType: application/json
503
- *
504
- * Returned if the sprint property is successfully created.
505
- * @path {PUT} /rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}
506
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-propertykey-put
507
- */
508
- setProperty({ sprintId, propertyKey, requestBody, }) {
509
- return this.getClientInstance()
510
- .request({
511
- path: "/rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}",
512
- method: "PUT",
513
- pathParams: {
514
- sprintId,
515
- propertyKey,
516
- },
517
- headers: {
518
- "Content-Type": "application/json",
519
- },
520
- body: requestBody,
521
- })
522
- .then(this.getClientInstance().responseHandler({
523
- 200: {
524
- "application/json": "json",
525
- },
526
- 201: {
527
- "application/json": "json",
528
- },
529
- }))
530
- .then(commonHttpClient.castResponse())
531
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.setProperty.response"))
532
- .then(commonHttpClient.asCreatedResponse("body"));
533
- }
534
- /**
535
- * Swap the position of the sprint with the second sprint.
536
- *
537
- * @path {POST} /rest/agile/1.0/sprint/{sprintId}/swap
538
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-swap-post
539
- */
540
- swapSprint({ sprintId, sprintSwapBean, }) {
541
- return this.getClientInstance()
542
- .request({
543
- path: "/rest/agile/1.0/sprint/{sprintId}/swap",
544
- method: "POST",
545
- pathParams: {
546
- sprintId,
547
- },
548
- headers: {
549
- "Content-Type": "application/json",
550
- },
551
- body: sprintSwapBean,
552
- })
553
- .then(commonHttpClient.discardResult);
554
- }
555
- /**
556
- * Performs a full update of a sprint. A full update means that the result will be
557
- * exactly the same as the request body. Any fields not present in the request
558
- * JSON will be set to null.
559
- *
560
- * Notes:
561
- *
562
- * * For closed sprints, only the name and goal can be updated; changes to other
563
- * fields will be ignored.
564
- * * A sprint can be started by updating the state to 'active'. This requires
565
- * the sprint to be in the 'future' state and have a startDate and endDate set.
566
- * * A sprint can be completed by updating the state to 'closed'. This action
567
- * requires the sprint to be in the 'active' state. This sets the completeDate to
568
- * the time of the request.
569
- * * Other changes to state are not allowed.
570
- * * The completeDate field cannot be updated manually.
571
- *
572
- * @returns Updated sprint
573
- *
574
- * example: {
575
- * "id": 37,
576
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
577
- * "state": "closed",
578
- * "name": "sprint 1",
579
- * "startDate": "2015-04-11T15:22:00.000+10:00",
580
- * "endDate": "2015-04-20T01:22:00.000+10:00",
581
- * "completeDate": "2015-04-20T11:04:00.000+10:00",
582
- * "originBoardId": 5,
583
- * "goal": "sprint 1 goal"
584
- * }
585
- * @path {PUT} /rest/agile/1.0/sprint/{sprintId}
586
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-put
587
- */
588
- updateSprint({ sprintId, sprintBean, }) {
589
- return this.getClientInstance()
590
- .request({
591
- path: "/rest/agile/1.0/sprint/{sprintId}",
592
- method: "PUT",
593
- pathParams: {
594
- sprintId,
595
- },
596
- headers: {
597
- "Content-Type": "application/json",
598
- },
599
- body: sprintBean,
600
- })
601
- .then(this.getClientInstance().responseHandler({
602
- 200: {
603
- "application/json": "json",
604
- },
605
- }))
606
- .then(commonHttpClient.castResponse())
607
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.updateSprint.response"))
608
- .then(commonHttpClient.getBody);
18
+ constructor() {
19
+ super(...arguments);
20
+ /**
21
+ * Creates a future sprint. Sprint name and origin board id are required. Start
22
+ * date, end date, and goal are optional.
23
+ *
24
+ * Note that the sprint name is trimmed. Also, when starting sprints from the UI,
25
+ * the "endDate" set through this call is ignored and instead the last sprint's
26
+ * duration is used to fill the form.
27
+ *
28
+ * @returns Created sprint
29
+ *
30
+ * example: {
31
+ * "id": 37,
32
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
33
+ * "state": "future",
34
+ * "name": "sprint 1",
35
+ * "startDate": "2015-04-11T15:22:00.000+10:00",
36
+ * "endDate": "2015-04-20T01:22:00.000+10:00",
37
+ * "originBoardId": 5,
38
+ * "goal": "sprint 1 goal"
39
+ * }
40
+ * @path {POST} /rest/agile/1.0/sprint
41
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-post
42
+ */
43
+ this.createSprint = ({ sprintCreateBean, }) => {
44
+ return this.getClientInstance()
45
+ .request({
46
+ path: "/rest/agile/1.0/sprint",
47
+ method: "POST",
48
+ headers: {
49
+ "Content-Type": "application/json",
50
+ },
51
+ body: sprintCreateBean,
52
+ })
53
+ .then(this.getClientInstance().responseHandler({
54
+ 201: {
55
+ "application/json": "json",
56
+ },
57
+ }))
58
+ .then(commonHttpClient.castResponse())
59
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.createSprint.response"))
60
+ .then(commonHttpClient.getBody);
61
+ };
62
+ /**
63
+ * Removes the property from the sprint identified by the id. Ths user removing
64
+ * the property is required to have permissions to modify the sprint.
65
+ *
66
+ * @path {DELETE} /rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}
67
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-propertykey-delete
68
+ */
69
+ this.deleteProperty = ({ sprintId, propertyKey, }) => {
70
+ return this.getClientInstance()
71
+ .request({
72
+ path: "/rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}",
73
+ method: "DELETE",
74
+ pathParams: {
75
+ sprintId,
76
+ propertyKey,
77
+ },
78
+ })
79
+ .then(commonHttpClient.discardResult);
80
+ };
81
+ /**
82
+ * Deletes a sprint. Once a sprint is deleted, all open issues in the sprint will
83
+ * be moved to the backlog.
84
+ *
85
+ * @path {DELETE} /rest/agile/1.0/sprint/{sprintId}
86
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-delete
87
+ */
88
+ this.deleteSprint = ({ sprintId, }) => {
89
+ return this.getClientInstance()
90
+ .request({
91
+ path: "/rest/agile/1.0/sprint/{sprintId}",
92
+ method: "DELETE",
93
+ pathParams: {
94
+ sprintId,
95
+ },
96
+ })
97
+ .then(commonHttpClient.discardResult);
98
+ };
99
+ /**
100
+ * Returns all issues in a sprint, for a given sprint ID. This only includes
101
+ * issues that the user has permission to view. By default, the returned issues
102
+ * are ordered by rank.
103
+ *
104
+ * @returns Returns the requested issues, at the specified page of the results.
105
+ *
106
+ * example: {
107
+ * "expand": "",
108
+ * "fields": {
109
+ * "flagged": true,
110
+ * "sprint": {
111
+ * "id": 37,
112
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
113
+ * "state": "future",
114
+ * "name": "sprint 2",
115
+ * "goal": "sprint 2 goal"
116
+ * },
117
+ * "closedSprints": [
118
+ * {
119
+ * "id": 37,
120
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
121
+ * "state": "closed",
122
+ * "name": "sprint 1",
123
+ * "startDate": "2015-04-11T15:22:00.000+10:00",
124
+ * "endDate": "2015-04-20T01:22:00.000+10:00",
125
+ * "completeDate": "2015-04-20T11:04:00.000+10:00",
126
+ * "goal": "sprint 1 goal"
127
+ * }
128
+ * ],
129
+ * "description": "example bug report",
130
+ * "project": {
131
+ * "avatarUrls": {
132
+ * "16x16":
133
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
134
+ * "24x24":
135
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
136
+ * "32x32":
137
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
138
+ * "48x48":
139
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
140
+ * },
141
+ * "id": "10000",
142
+ * "insight": {
143
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
144
+ * "totalIssueCount": 100
145
+ * },
146
+ * "key": "EX",
147
+ * "name": "Example",
148
+ * "projectCategory": {
149
+ * "description": "First Project Category",
150
+ * "id": "10000",
151
+ * "name": "FIRST",
152
+ * "self":
153
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
154
+ * },
155
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
156
+ * "simplified": false,
157
+ * "style": "classic"
158
+ * },
159
+ * "comment": [
160
+ * {
161
+ * "author": {
162
+ * "accountId": "5b10a2844c20165700ede21g",
163
+ * "active": false,
164
+ * "displayName": "Mia Krystof",
165
+ * "self":
166
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
167
+ * },
168
+ * "body": {
169
+ * "type": "doc",
170
+ * "version": 1,
171
+ * "content": [
172
+ * {
173
+ * "type": "paragraph",
174
+ * "content": [
175
+ * {
176
+ * "type": "text",
177
+ * "text": "Lorem ipsum dolor sit amet, consectetur adipiscing
178
+ * elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis
179
+ * fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
180
+ * }
181
+ * ]
182
+ * }
183
+ * ]
184
+ * },
185
+ * "created": "2021-01-17T12:34:00.000+0000",
186
+ * "id": "10000",
187
+ * "self":
188
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
189
+ * "updateAuthor": {
190
+ * "accountId": "5b10a2844c20165700ede21g",
191
+ * "active": false,
192
+ * "displayName": "Mia Krystof",
193
+ * "self":
194
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
195
+ * },
196
+ * "updated": "2021-01-18T23:45:00.000+0000",
197
+ * "visibility": {
198
+ * "identifier": "Administrators",
199
+ * "type": "role",
200
+ * "value": "Administrators"
201
+ * }
202
+ * }
203
+ * ],
204
+ * "epic": {
205
+ * "id": 37,
206
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
207
+ * "name": "epic 1",
208
+ * "summary": "epic 1 summary",
209
+ * "color": {
210
+ * "key": "color_4"
211
+ * },
212
+ * "done": true
213
+ * },
214
+ * "worklog": [
215
+ * {
216
+ * "author": {
217
+ * "accountId": "5b10a2844c20165700ede21g",
218
+ * "active": false,
219
+ * "displayName": "Mia Krystof",
220
+ * "self":
221
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
222
+ * },
223
+ * "comment": {
224
+ * "type": "doc",
225
+ * "version": 1,
226
+ * "content": [
227
+ * {
228
+ * "type": "paragraph",
229
+ * "content": [
230
+ * {
231
+ * "type": "text",
232
+ * "text": "I did some work here."
233
+ * }
234
+ * ]
235
+ * }
236
+ * ]
237
+ * },
238
+ * "id": "100028",
239
+ * "issueId": "10002",
240
+ * "self":
241
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
242
+ * "started": "2021-01-17T12:34:00.000+0000",
243
+ * "timeSpent": "3h 20m",
244
+ * "timeSpentSeconds": 12000,
245
+ * "updateAuthor": {
246
+ * "accountId": "5b10a2844c20165700ede21g",
247
+ * "active": false,
248
+ * "displayName": "Mia Krystof",
249
+ * "self":
250
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
251
+ * },
252
+ * "updated": "2021-01-18T23:45:00.000+0000",
253
+ * "visibility": {
254
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
255
+ * "type": "group",
256
+ * "value": "jira-developers"
257
+ * }
258
+ * }
259
+ * ],
260
+ * "updated": 1,
261
+ * "timetracking": {
262
+ * "originalEstimate": "10m",
263
+ * "originalEstimateSeconds": 600,
264
+ * "remainingEstimate": "3m",
265
+ * "remainingEstimateSeconds": 200,
266
+ * "timeSpent": "6m",
267
+ * "timeSpentSeconds": 400
268
+ * }
269
+ * },
270
+ * "id": "10001",
271
+ * "key": "HSP-1",
272
+ * "self":
273
+ * "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
274
+ * }
275
+ * @path {GET} /rest/agile/1.0/sprint/{sprintId}/issue
276
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-issue-get
277
+ */
278
+ this.getIssuesForSprint = ({ sprintId, startAt, maxResults, jql, validateQuery, fields, expand, }) => {
279
+ return this.getClientInstance()
280
+ .request({
281
+ path: "/rest/agile/1.0/sprint/{sprintId}/issue",
282
+ method: "GET",
283
+ pathParams: {
284
+ sprintId,
285
+ },
286
+ query: {
287
+ startAt,
288
+ maxResults,
289
+ jql,
290
+ validateQuery,
291
+ fields,
292
+ expand,
293
+ },
294
+ })
295
+ .then(this.getClientInstance().responseHandler({
296
+ 200: {
297
+ "application/json": "json",
298
+ },
299
+ }))
300
+ .then(commonHttpClient.castResponse())
301
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getIssuesForSprint.response"))
302
+ .then(commonHttpClient.getBody);
303
+ };
304
+ /**
305
+ * Returns the keys of all properties for the sprint identified by the id. The
306
+ * user who retrieves the property keys is required to have permissions to view
307
+ * the sprint.
308
+ *
309
+ * @returns Returned if the sprint with given id exists.
310
+ *
311
+ * example: {
312
+ * "keys": [
313
+ * {
314
+ * "key": "issue.support",
315
+ * "self":
316
+ * "https://your-domain.atlassian.net/rest/api/3/issue/EX-2/properties/issue.support"
317
+ * }
318
+ * ]
319
+ * }
320
+ * @path {GET} /rest/agile/1.0/sprint/{sprintId}/properties
321
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-get
322
+ */
323
+ this.getPropertiesKeys = ({ sprintId, }) => {
324
+ return this.getClientInstance()
325
+ .request({
326
+ path: "/rest/agile/1.0/sprint/{sprintId}/properties",
327
+ method: "GET",
328
+ pathParams: {
329
+ sprintId,
330
+ },
331
+ })
332
+ .then(this.getClientInstance().responseHandler({
333
+ 200: {
334
+ "application/json": "json",
335
+ },
336
+ }))
337
+ .then(commonHttpClient.castResponse())
338
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getPropertiesKeys.response"))
339
+ .then(commonHttpClient.getBody);
340
+ };
341
+ /**
342
+ * Returns the value of the property with a given key from the sprint identified
343
+ * by the provided id. The user who retrieves the property is required to have
344
+ * permissions to view the sprint.
345
+ *
346
+ * @returns Returned if the sprint exists and the property was found.
347
+ *
348
+ * example: {
349
+ * "key": "issue.support",
350
+ * "value": {
351
+ * "system.conversation.id": "b1bf38be-5e94-4b40-a3b8-9278735ee1e6",
352
+ * "system.support.time": "1m"
353
+ * }
354
+ * }
355
+ * @path {GET} /rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}
356
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-propertykey-get
357
+ */
358
+ this.getProperty = ({ sprintId, propertyKey, }) => {
359
+ return this.getClientInstance()
360
+ .request({
361
+ path: "/rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}",
362
+ method: "GET",
363
+ pathParams: {
364
+ sprintId,
365
+ propertyKey,
366
+ },
367
+ })
368
+ .then(this.getClientInstance().responseHandler({
369
+ 200: {
370
+ "application/json": "json",
371
+ },
372
+ }))
373
+ .then(commonHttpClient.castResponse())
374
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getProperty.response"))
375
+ .then(commonHttpClient.getBody);
376
+ };
377
+ /**
378
+ * Returns the sprint for a given sprint ID. The sprint will only be returned if
379
+ * the user can view the board that the sprint was created on, or view at least
380
+ * one of the issues in the sprint.
381
+ *
382
+ * @returns Returns the requested sprint.
383
+ *
384
+ * example: {
385
+ * "id": 37,
386
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
387
+ * "state": "closed",
388
+ * "name": "sprint 1",
389
+ * "startDate": "2015-04-11T15:22:00.000+10:00",
390
+ * "endDate": "2015-04-20T01:22:00.000+10:00",
391
+ * "completeDate": "2015-04-20T11:04:00.000+10:00",
392
+ * "originBoardId": 5,
393
+ * "goal": "sprint 1 goal"
394
+ * }
395
+ * @path {GET} /rest/agile/1.0/sprint/{sprintId}
396
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-get
397
+ */
398
+ this.getSprint = ({ sprintId, }) => {
399
+ return this.getClientInstance()
400
+ .request({
401
+ path: "/rest/agile/1.0/sprint/{sprintId}",
402
+ method: "GET",
403
+ pathParams: {
404
+ sprintId,
405
+ },
406
+ })
407
+ .then(this.getClientInstance().responseHandler({
408
+ 200: {
409
+ "application/json": "json",
410
+ },
411
+ }))
412
+ .then(commonHttpClient.castResponse())
413
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.getSprint.response"))
414
+ .then(commonHttpClient.getBody);
415
+ };
416
+ /**
417
+ * Moves issues to a sprint, for a given sprint ID. Issues can only be moved to
418
+ * open or active sprints. The maximum number of issues that can be moved in one
419
+ * operation is 50.
420
+ *
421
+ * @path {POST} /rest/agile/1.0/sprint/{sprintId}/issue
422
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-issue-post
423
+ */
424
+ this.moveIssuesToSprintAndRank = ({ sprintId, issueRankRequestBean, }) => {
425
+ return this.getClientInstance()
426
+ .request({
427
+ path: "/rest/agile/1.0/sprint/{sprintId}/issue",
428
+ method: "POST",
429
+ pathParams: {
430
+ sprintId,
431
+ },
432
+ headers: {
433
+ "Content-Type": "application/json",
434
+ },
435
+ body: issueRankRequestBean,
436
+ })
437
+ .then(commonHttpClient.discardResult);
438
+ };
439
+ /**
440
+ * Performs a partial update of a sprint. A partial update means that fields not
441
+ * present in the request JSON will not be updated.
442
+ *
443
+ * Notes:
444
+ *
445
+ * * For closed sprints, only the name and goal can be updated; changes to other
446
+ * fields will be ignored.
447
+ * * A sprint can be started by updating the state to 'active'. This requires
448
+ * the sprint to be in the 'future' state and have a startDate and endDate set.
449
+ * * A sprint can be completed by updating the state to 'closed'. This action
450
+ * requires the sprint to be in the 'active' state. This sets the completeDate to
451
+ * the time of the request.
452
+ * * Other changes to state are not allowed.
453
+ * * The completeDate field cannot be updated manually.
454
+ *
455
+ * @returns Updated sprint
456
+ *
457
+ * example: {
458
+ * "id": 37,
459
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
460
+ * "state": "closed",
461
+ * "name": "sprint 1",
462
+ * "startDate": "2015-04-11T15:22:00.000+10:00",
463
+ * "endDate": "2015-04-20T01:22:00.000+10:00",
464
+ * "completeDate": "2015-04-20T11:04:00.000+10:00",
465
+ * "originBoardId": 5,
466
+ * "goal": "sprint 1 goal"
467
+ * }
468
+ * @path {POST} /rest/agile/1.0/sprint/{sprintId}
469
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-post
470
+ */
471
+ this.partiallyUpdateSprint = ({ sprintId, sprintBean, }) => {
472
+ return this.getClientInstance()
473
+ .request({
474
+ path: "/rest/agile/1.0/sprint/{sprintId}",
475
+ method: "POST",
476
+ pathParams: {
477
+ sprintId,
478
+ },
479
+ headers: {
480
+ "Content-Type": "application/json",
481
+ },
482
+ body: sprintBean,
483
+ })
484
+ .then(this.getClientInstance().responseHandler({
485
+ 200: {
486
+ "application/json": "json",
487
+ },
488
+ }))
489
+ .then(commonHttpClient.castResponse())
490
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.partiallyUpdateSprint.response"))
491
+ .then(commonHttpClient.getBody);
492
+ };
493
+ /**
494
+ * Sets the value of the specified sprint's property.
495
+ *
496
+ * You can use this resource to store a custom data against the sprint identified
497
+ * by the id. The user who stores the data is required to have permissions to
498
+ * modify the sprint.
499
+ *
500
+ * @returns * status: 200, mediaType: application/json
501
+ *
502
+ * Returned if the sprint property is successfully updated.
503
+ *
504
+ * * status: 201, mediaType: application/json
505
+ *
506
+ * Returned if the sprint property is successfully created.
507
+ * @path {PUT} /rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}
508
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-properties-propertykey-put
509
+ */
510
+ this.setProperty = ({ sprintId, propertyKey, requestBody, }) => {
511
+ return this.getClientInstance()
512
+ .request({
513
+ path: "/rest/agile/1.0/sprint/{sprintId}/properties/{propertyKey}",
514
+ method: "PUT",
515
+ pathParams: {
516
+ sprintId,
517
+ propertyKey,
518
+ },
519
+ headers: {
520
+ "Content-Type": "application/json",
521
+ },
522
+ body: requestBody,
523
+ })
524
+ .then(this.getClientInstance().responseHandler({
525
+ 200: {
526
+ "application/json": "json",
527
+ },
528
+ 201: {
529
+ "application/json": "json",
530
+ },
531
+ }))
532
+ .then(commonHttpClient.castResponse())
533
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.setProperty.response"))
534
+ .then(commonHttpClient.asCreatedResponse("body"));
535
+ };
536
+ /**
537
+ * Swap the position of the sprint with the second sprint.
538
+ *
539
+ * @path {POST} /rest/agile/1.0/sprint/{sprintId}/swap
540
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-swap-post
541
+ */
542
+ this.swapSprint = ({ sprintId, sprintSwapBean, }) => {
543
+ return this.getClientInstance()
544
+ .request({
545
+ path: "/rest/agile/1.0/sprint/{sprintId}/swap",
546
+ method: "POST",
547
+ pathParams: {
548
+ sprintId,
549
+ },
550
+ headers: {
551
+ "Content-Type": "application/json",
552
+ },
553
+ body: sprintSwapBean,
554
+ })
555
+ .then(commonHttpClient.discardResult);
556
+ };
557
+ /**
558
+ * Performs a full update of a sprint. A full update means that the result will be
559
+ * exactly the same as the request body. Any fields not present in the request
560
+ * JSON will be set to null.
561
+ *
562
+ * Notes:
563
+ *
564
+ * * For closed sprints, only the name and goal can be updated; changes to other
565
+ * fields will be ignored.
566
+ * * A sprint can be started by updating the state to 'active'. This requires
567
+ * the sprint to be in the 'future' state and have a startDate and endDate set.
568
+ * * A sprint can be completed by updating the state to 'closed'. This action
569
+ * requires the sprint to be in the 'active' state. This sets the completeDate to
570
+ * the time of the request.
571
+ * * Other changes to state are not allowed.
572
+ * * The completeDate field cannot be updated manually.
573
+ *
574
+ * @returns Updated sprint
575
+ *
576
+ * example: {
577
+ * "id": 37,
578
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
579
+ * "state": "closed",
580
+ * "name": "sprint 1",
581
+ * "startDate": "2015-04-11T15:22:00.000+10:00",
582
+ * "endDate": "2015-04-20T01:22:00.000+10:00",
583
+ * "completeDate": "2015-04-20T11:04:00.000+10:00",
584
+ * "originBoardId": 5,
585
+ * "goal": "sprint 1 goal"
586
+ * }
587
+ * @path {PUT} /rest/agile/1.0/sprint/{sprintId}
588
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint#api-rest-agile-1-0-sprint-sprintid-put
589
+ */
590
+ this.updateSprint = ({ sprintId, sprintBean, }) => {
591
+ return this.getClientInstance()
592
+ .request({
593
+ path: "/rest/agile/1.0/sprint/{sprintId}",
594
+ method: "PUT",
595
+ pathParams: {
596
+ sprintId,
597
+ },
598
+ headers: {
599
+ "Content-Type": "application/json",
600
+ },
601
+ body: sprintBean,
602
+ })
603
+ .then(this.getClientInstance().responseHandler({
604
+ 200: {
605
+ "application/json": "json",
606
+ },
607
+ }))
608
+ .then(commonHttpClient.castResponse())
609
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SprintService.updateSprint.response"))
610
+ .then(commonHttpClient.getBody);
611
+ };
609
612
  }
610
613
  static initialize() {
611
614
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SprintService.createSprint.response", zod_1.z