@resolution/jira-api-client 0.7.8 → 0.10.0

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 (252) hide show
  1. package/README.md +5 -5
  2. package/lib/index.d.ts +2 -0
  3. package/lib/index.js +2 -0
  4. package/lib/index.js.map +1 -1
  5. package/lib/openapi/core/CommonHttpClient.d.ts +29 -0
  6. package/lib/openapi/core/CommonHttpClient.js +29 -1
  7. package/lib/openapi/core/CommonHttpClient.js.map +1 -1
  8. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +27 -7
  9. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +45 -1
  10. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  11. package/lib/openapi/platform/models/appMigration.d.ts +12 -0
  12. package/lib/openapi/platform/models/appMigration.js.map +1 -1
  13. package/lib/openapi/platform/models/appProperties.d.ts +4 -2
  14. package/lib/openapi/platform/models/appProperties.js.map +1 -1
  15. package/lib/openapi/platform/models/common.d.ts +7 -43
  16. package/lib/openapi/platform/models/common.js +1 -21
  17. package/lib/openapi/platform/models/common.js.map +1 -1
  18. package/lib/openapi/platform/models/dashboards.d.ts +0 -30
  19. package/lib/openapi/platform/models/dashboards.js +0 -18
  20. package/lib/openapi/platform/models/dashboards.js.map +1 -1
  21. package/lib/openapi/platform/models/dynamicModules.d.ts +55 -51
  22. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  23. package/lib/openapi/platform/models/issueBulkOperations.d.ts +102 -0
  24. package/lib/openapi/platform/models/issueBulkOperations.js +56 -0
  25. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -1
  26. package/lib/openapi/platform/models/issueCustomFieldOptions.d.ts +1 -4
  27. package/lib/openapi/platform/models/issueCustomFieldOptions.js.map +1 -1
  28. package/lib/openapi/platform/models/issueSecurityLevel.d.ts +1 -1
  29. package/lib/openapi/platform/models/issueSecuritySchemes.d.ts +1 -1
  30. package/lib/openapi/platform/models/issues.d.ts +124 -10
  31. package/lib/openapi/platform/models/issues.js +78 -0
  32. package/lib/openapi/platform/models/issues.js.map +1 -1
  33. package/lib/openapi/platform/models/jiraExpressions.d.ts +8 -1
  34. package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
  35. package/lib/openapi/platform/models/jql.d.ts +8 -0
  36. package/lib/openapi/platform/models/jql.js.map +1 -1
  37. package/lib/openapi/platform/models/jqlFunctionsApps.d.ts +43 -1
  38. package/lib/openapi/platform/models/jqlFunctionsApps.js +52 -2
  39. package/lib/openapi/platform/models/jqlFunctionsApps.js.map +1 -1
  40. package/lib/openapi/platform/models/permissionSchemes.d.ts +3 -4
  41. package/lib/openapi/platform/models/permissionSchemes.js.map +1 -1
  42. package/lib/openapi/platform/models/plans.d.ts +268 -0
  43. package/lib/openapi/platform/models/plans.js +425 -0
  44. package/lib/openapi/platform/models/plans.js.map +1 -0
  45. package/lib/openapi/platform/models/projects.d.ts +1 -1
  46. package/lib/openapi/platform/models/projects.js +1 -0
  47. package/lib/openapi/platform/models/projects.js.map +1 -1
  48. package/lib/openapi/platform/models/serviceRegistry.d.ts +2 -0
  49. package/lib/openapi/platform/models/serviceRegistry.js.map +1 -1
  50. package/lib/openapi/platform/models/teamsInPlan.d.ts +79 -0
  51. package/lib/openapi/platform/models/teamsInPlan.js +86 -0
  52. package/lib/openapi/platform/models/teamsInPlan.js.map +1 -0
  53. package/lib/openapi/platform/models/workflows.d.ts +4 -0
  54. package/lib/openapi/platform/models/workflows.js +2 -0
  55. package/lib/openapi/platform/models/workflows.js.map +1 -1
  56. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +4 -4
  57. package/lib/openapi/platform/services/AppMigrationService.d.ts +87 -87
  58. package/lib/openapi/platform/services/AppMigrationService.js +49 -49
  59. package/lib/openapi/platform/services/AppPropertiesService.d.ts +17 -17
  60. package/lib/openapi/platform/services/AppPropertiesService.js +17 -17
  61. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +2 -0
  62. package/lib/openapi/platform/services/ApplicationRolesService.js +2 -0
  63. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  64. package/lib/openapi/platform/services/DashboardsService.d.ts +64 -64
  65. package/lib/openapi/platform/services/FilterSharingService.d.ts +8 -4
  66. package/lib/openapi/platform/services/FilterSharingService.js +4 -0
  67. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  68. package/lib/openapi/platform/services/FiltersService.d.ts +21 -8
  69. package/lib/openapi/platform/services/FiltersService.js +8 -1
  70. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  71. package/lib/openapi/platform/services/GroupsService.d.ts +2 -2
  72. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +2 -0
  73. package/lib/openapi/platform/services/IssueAttachmentsService.js +2 -0
  74. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +293 -78
  76. package/lib/openapi/platform/services/IssueBulkOperationsService.js +244 -2
  77. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCommentsService.d.ts +42 -42
  79. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +29 -29
  80. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +59 -59
  81. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +59 -59
  82. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +37 -37
  83. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +25 -25
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +47 -47
  85. package/lib/openapi/platform/services/IssueFieldsService.d.ts +12 -11
  86. package/lib/openapi/platform/services/IssueFieldsService.js +3 -1
  87. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  88. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +6 -6
  89. package/lib/openapi/platform/services/IssueLinksService.d.ts +28 -28
  90. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +2 -0
  91. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +2 -0
  92. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +26 -26
  94. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +16 -14
  95. package/lib/openapi/platform/services/IssuePrioritiesService.js +2 -0
  96. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  97. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +38 -38
  98. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +44 -42
  99. package/lib/openapi/platform/services/IssueRemoteLinksService.js +2 -0
  100. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  101. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +12 -10
  102. package/lib/openapi/platform/services/IssueResolutionsService.js +2 -0
  103. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  104. package/lib/openapi/platform/services/IssueSearchService.d.ts +28 -28
  105. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +58 -58
  106. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +2 -2
  107. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +24 -24
  108. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +39 -39
  109. package/lib/openapi/platform/services/IssueTypesService.d.ts +12 -6
  110. package/lib/openapi/platform/services/IssueTypesService.js +6 -0
  111. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  112. package/lib/openapi/platform/services/IssueWatchersService.d.ts +5 -5
  113. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +59 -57
  114. package/lib/openapi/platform/services/IssueWorklogsService.js +2 -0
  115. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  116. package/lib/openapi/platform/services/IssuesService.d.ts +692 -590
  117. package/lib/openapi/platform/services/IssuesService.js +121 -0
  118. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  119. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +95 -95
  120. package/lib/openapi/platform/services/JiraSettingsService.d.ts +6 -2
  121. package/lib/openapi/platform/services/JiraSettingsService.js +4 -0
  122. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  123. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +125 -28
  124. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +137 -20
  125. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  126. package/lib/openapi/platform/services/JqlService.d.ts +36 -36
  127. package/lib/openapi/platform/services/MyselfService.d.ts +1 -1
  128. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +32 -35
  129. package/lib/openapi/platform/services/PermissionSchemesService.js +2 -5
  130. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  131. package/lib/openapi/platform/services/PermissionsService.d.ts +21 -21
  132. package/lib/openapi/platform/services/PlansService.d.ts +389 -0
  133. package/lib/openapi/platform/services/PlansService.js +459 -0
  134. package/lib/openapi/platform/services/PlansService.js.map +1 -0
  135. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +83 -83
  136. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +1 -1
  137. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +6 -4
  138. package/lib/openapi/platform/services/ProjectCategoriesService.js +2 -0
  139. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  140. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +1 -1
  141. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +13 -11
  142. package/lib/openapi/platform/services/ProjectComponentsService.js +2 -0
  143. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  144. package/lib/openapi/platform/services/ProjectEmailService.d.ts +1 -1
  145. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +1 -1
  146. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +1 -1
  147. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +2 -2
  148. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +14 -14
  149. package/lib/openapi/platform/services/ProjectRolesService.d.ts +10 -6
  150. package/lib/openapi/platform/services/ProjectRolesService.js +4 -0
  151. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  152. package/lib/openapi/platform/services/ProjectTypesService.d.ts +4 -0
  153. package/lib/openapi/platform/services/ProjectTypesService.js +4 -0
  154. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  155. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +29 -25
  156. package/lib/openapi/platform/services/ProjectVersionsService.js +5 -1
  157. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  158. package/lib/openapi/platform/services/ProjectsService.d.ts +30 -24
  159. package/lib/openapi/platform/services/ProjectsService.js +6 -0
  160. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  161. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +12 -12
  162. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +1 -1
  163. package/lib/openapi/platform/services/ScreenTabsService.d.ts +1 -1
  164. package/lib/openapi/platform/services/ScreensService.d.ts +4 -4
  165. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -0
  166. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  167. package/lib/openapi/platform/services/StatusService.d.ts +24 -20
  168. package/lib/openapi/platform/services/StatusService.js +4 -0
  169. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  170. package/lib/openapi/platform/services/TeamsInPlanService.d.ts +294 -0
  171. package/lib/openapi/platform/services/TeamsInPlanService.js +452 -0
  172. package/lib/openapi/platform/services/TeamsInPlanService.js.map +1 -0
  173. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -5
  174. package/lib/openapi/platform/services/TimeTrackingService.js +2 -0
  175. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  176. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +44 -44
  177. package/lib/openapi/platform/services/UserSearchService.d.ts +19 -8
  178. package/lib/openapi/platform/services/UserSearchService.js +15 -5
  179. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  180. package/lib/openapi/platform/services/UsersService.d.ts +7 -1
  181. package/lib/openapi/platform/services/UsersService.js +6 -0
  182. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  183. package/lib/openapi/platform/services/WebhooksService.d.ts +39 -39
  184. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +39 -39
  185. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +2 -2
  186. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +102 -100
  187. package/lib/openapi/platform/services/WorkflowSchemesService.js +2 -0
  188. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  189. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +2 -0
  190. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +2 -0
  191. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  192. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +2 -0
  193. package/lib/openapi/platform/services/WorkflowStatusesService.js +2 -0
  194. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  195. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +4 -2
  196. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +2 -0
  197. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  198. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +48 -48
  199. package/lib/openapi/platform/services/WorkflowsService.d.ts +591 -589
  200. package/lib/openapi/platform/services/WorkflowsService.js +2 -0
  201. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  202. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +1 -1
  203. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +3 -1
  204. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -1
  205. package/lib/openapi/serviceManagement/models/organization.d.ts +5 -0
  206. package/lib/openapi/serviceManagement/models/organization.js +1 -0
  207. package/lib/openapi/serviceManagement/models/organization.js.map +1 -1
  208. package/lib/openapi/serviceManagement/services/CustomerService.d.ts +2 -2
  209. package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +11 -7
  210. package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +3 -1
  211. package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -1
  212. package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +39 -33
  213. package/lib/openapi/serviceManagement/services/OrganizationService.js +24 -18
  214. package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -1
  215. package/lib/openapi/serviceManagement/services/RequestService.d.ts +68 -68
  216. package/lib/openapi/serviceManagement/services/RequestService.js +3 -3
  217. package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +39 -32
  218. package/lib/openapi/serviceManagement/services/ServicedeskService.js +4 -2
  219. package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -1
  220. package/lib/openapi/software/BaseJiraSoftwareApiClient.js +2 -0
  221. package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
  222. package/lib/openapi/software/models/board.d.ts +2 -3
  223. package/lib/openapi/software/models/board.js.map +1 -1
  224. package/lib/openapi/software/models/builds.d.ts +40 -2
  225. package/lib/openapi/software/models/builds.js.map +1 -1
  226. package/lib/openapi/software/models/common.d.ts +8 -2
  227. package/lib/openapi/software/models/common.js.map +1 -1
  228. package/lib/openapi/software/models/deployments.d.ts +36 -2
  229. package/lib/openapi/software/models/deployments.js.map +1 -1
  230. package/lib/openapi/software/models/devOpsComponents.d.ts +10 -4
  231. package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
  232. package/lib/openapi/software/models/developmentInformation.d.ts +106 -0
  233. package/lib/openapi/software/models/developmentInformation.js.map +1 -1
  234. package/lib/openapi/software/models/featureFlags.d.ts +20 -4
  235. package/lib/openapi/software/models/featureFlags.js.map +1 -1
  236. package/lib/openapi/software/models/operations.d.ts +76 -16
  237. package/lib/openapi/software/models/operations.js.map +1 -1
  238. package/lib/openapi/software/models/remoteLinks.d.ts +49 -13
  239. package/lib/openapi/software/models/remoteLinks.js.map +1 -1
  240. package/lib/openapi/software/models/securityInformation.d.ts +60 -8
  241. package/lib/openapi/software/models/securityInformation.js.map +1 -1
  242. package/lib/openapi/software/services/BacklogService.d.ts +12 -12
  243. package/lib/openapi/software/services/BoardService.d.ts +14 -14
  244. package/lib/openapi/software/services/EpicService.d.ts +18 -18
  245. package/lib/openapi/software/services/IssueService.d.ts +8 -8
  246. package/lib/openapi/software/services/OperationsService.d.ts +8 -4
  247. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  248. package/lib/openapi/software/services/RemoteLinksService.d.ts +4 -2
  249. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  250. package/lib/openapi/software/services/SprintService.d.ts +20 -20
  251. package/package.json +5 -4
  252. package/CHANGELOG.md +0 -430
@@ -0,0 +1,294 @@
1
+ import { CommonHttpService } from "../../core/CommonHttpService";
2
+ import { type AddAtlassianTeamRequest, type CreatePlanOnlyTeamRequest, type GetAtlassianTeamResponse, type GetPlanOnlyTeamResponse, type PageWithCursorGetTeamResponseForPage } from "../models/teamsInPlan";
3
+ /**
4
+ * This resource represents planning settings for plan-only and Atlassian teams in
5
+ * a plan. Use it to get, create, update and delete planning settings.
6
+ *
7
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan
8
+ * @category Services
9
+ */
10
+ export declare class TeamsInPlanService extends CommonHttpService {
11
+ /**
12
+ * Adds an existing Atlassian team to a plan and configures their plannning
13
+ * settings.
14
+ *
15
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
16
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
17
+ *
18
+ * @returns Returned if the request is successful.
19
+ * @path POST `/rest/api/3/plans/plan/{planId}/team/atlassian`
20
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-atlassian-post
21
+ * @param params
22
+ */
23
+ addAtlassianTeam: ({ planId, addAtlassianTeamRequest, }: {
24
+ /** The ID of the plan. */
25
+ planId: number;
26
+ /**
27
+ * @example
28
+ * {
29
+ * "capacity": 200,
30
+ * "id": "AtlassianTeamId",
31
+ * "issueSourceId": 0,
32
+ * "planningStyle": "Scrum",
33
+ * "sprintLength": 2
34
+ * }
35
+ */
36
+ addAtlassianTeamRequest: AddAtlassianTeamRequest;
37
+ }) => Promise<void>;
38
+ /**
39
+ * Creates a plan-only team and configures their planning settings.
40
+ *
41
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
42
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
43
+ *
44
+ * @returns Returned if the request is successful.
45
+ * @path POST `/rest/api/3/plans/plan/{planId}/team/planonly`
46
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-planonly-post
47
+ * @param params
48
+ */
49
+ createPlanOnlyTeam: ({ planId, createPlanOnlyTeamRequest, }: {
50
+ /** The ID of the plan. */
51
+ planId: number;
52
+ /**
53
+ * @example
54
+ * {
55
+ * "capacity": 200,
56
+ * "issueSourceId": 0,
57
+ * "memberAccountIds": [
58
+ * "member1AccountId",
59
+ * "member2AccountId"
60
+ * ],
61
+ * "name": "Team1",
62
+ * "planningStyle": "Scrum",
63
+ * "sprintLength": 2
64
+ * }
65
+ */
66
+ createPlanOnlyTeamRequest: CreatePlanOnlyTeamRequest;
67
+ }) => Promise<number>;
68
+ /**
69
+ * Deletes a plan-only team and their planning settings.
70
+ *
71
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
72
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
73
+ *
74
+ * @returns Returned if the request is successful.
75
+ * @path DELETE `/rest/api/3/plans/plan/{planId}/team/planonly/{planOnlyTeamId}`
76
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-planonly-planonlyteamid-delete
77
+ * @param params
78
+ */
79
+ deletePlanOnlyTeam: ({ planId, planOnlyTeamId, }: {
80
+ /** The ID of the plan. */
81
+ planId: number;
82
+ /** The ID of the plan-only team. */
83
+ planOnlyTeamId: number;
84
+ }) => Promise<void>;
85
+ /**
86
+ * Returns planning settings for an Atlassian team in a plan.
87
+ *
88
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
89
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
90
+ *
91
+ * @returns Returned if the request is successful.
92
+ *
93
+ * example:
94
+ * ```
95
+ * {
96
+ * "capacity": 220,
97
+ * "id": "98WA-2JBO-12N3-2298",
98
+ * "issueSourceId": 1,
99
+ * "planningStyle": "Scrum",
100
+ * "sprintLength": 2
101
+ * }
102
+ * ```
103
+ * @path GET `/rest/api/3/plans/plan/{planId}/team/atlassian/{atlassianTeamId}`
104
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-atlassian-atlassianteamid-get
105
+ * @param params
106
+ */
107
+ getAtlassianTeam: ({ planId, atlassianTeamId, }: {
108
+ /** The ID of the plan. */
109
+ planId: number;
110
+ /** The ID of the Atlassian team. */
111
+ atlassianTeamId: string;
112
+ }) => Promise<GetAtlassianTeamResponse>;
113
+ /**
114
+ * Returns planning settings for a plan-only team.
115
+ *
116
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
117
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
118
+ *
119
+ * @returns Returned if the request is successful.
120
+ *
121
+ * example:
122
+ * ```
123
+ * {
124
+ * "capacity": 30,
125
+ * "id": 123,
126
+ * "issueSourceId": 1,
127
+ * "memberAccountIds": [
128
+ * "mek2-3jno-01n3",
129
+ * "kdsn-2nk3-2nn1"
130
+ * ],
131
+ * "name": "Team1",
132
+ * "planningStyle": "Scrum",
133
+ * "sprintLength": 2
134
+ * }
135
+ * ```
136
+ * @path GET `/rest/api/3/plans/plan/{planId}/team/planonly/{planOnlyTeamId}`
137
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-planonly-planonlyteamid-get
138
+ * @param params
139
+ */
140
+ getPlanOnlyTeam: ({ planId, planOnlyTeamId, }: {
141
+ /** The ID of the plan. */
142
+ planId: number;
143
+ /** The ID of the plan-only team. */
144
+ planOnlyTeamId: number;
145
+ }) => Promise<GetPlanOnlyTeamResponse>;
146
+ /**
147
+ * Returns a [paginated](#pagination) list of plan-only and Atlassian teams in a
148
+ * plan.
149
+ *
150
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
151
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
152
+ *
153
+ * @returns Returned if the request is successful.
154
+ *
155
+ * example:
156
+ * ```
157
+ * {
158
+ * "cursor": "",
159
+ * "isLast": true,
160
+ * "maxResults": 2,
161
+ * "nextPageCursor": "2",
162
+ * "total": 10,
163
+ * "values": [
164
+ * {
165
+ * "id": "1",
166
+ * "name": "Team 1",
167
+ * "type": "PlanOnly"
168
+ * },
169
+ * {
170
+ * "id": "2",
171
+ * "type": "Atlassian"
172
+ * }
173
+ * ]
174
+ * }
175
+ * ```
176
+ * @path GET `/rest/api/3/plans/plan/{planId}/team`
177
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-get
178
+ * @param params
179
+ */
180
+ getTeams: ({ planId, cursor, maxResults, }: {
181
+ /** The ID of the plan. */
182
+ planId: number;
183
+ /** The cursor to start from. If not provided, the first page will be returned. */
184
+ cursor?: string | undefined;
185
+ /**
186
+ * The maximum number of plan teams to return per page. The maximum value is 50.
187
+ * The default value is 50.
188
+ */
189
+ maxResults?: number | undefined;
190
+ }) => Promise<PageWithCursorGetTeamResponseForPage>;
191
+ /**
192
+ * Removes an Atlassian team from a plan and deletes their planning settings.
193
+ *
194
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
195
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
196
+ *
197
+ * @returns Returned if the request is successful.
198
+ * @path DELETE `/rest/api/3/plans/plan/{planId}/team/atlassian/{atlassianTeamId}`
199
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-atlassian-atlassianteamid-delete
200
+ * @param params
201
+ */
202
+ removeAtlassianTeam: ({ planId, atlassianTeamId, }: {
203
+ /** The ID of the plan. */
204
+ planId: number;
205
+ /** The ID of the Atlassian team. */
206
+ atlassianTeamId: string;
207
+ }) => Promise<void>;
208
+ /**
209
+ * Updates any of the following planning settings of an Atlassian team in a plan
210
+ * using [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902).
211
+ *
212
+ * * planningStyle
213
+ * * issueSourceId
214
+ * * sprintLength
215
+ * * capacity
216
+ *
217
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
218
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
219
+ *
220
+ * *Note that "add" operations do not respect array indexes in target locations.
221
+ * Call the "Get Atlassian team in plan" endpoint to find out the order of array
222
+ * elements.*
223
+ *
224
+ * @returns Returned if the request is successful.
225
+ * @path PUT `/rest/api/3/plans/plan/{planId}/team/atlassian/{atlassianTeamId}`
226
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-atlassian-atlassianteamid-put
227
+ * @param params
228
+ */
229
+ updateAtlassianTeam: ({ planId, atlassianTeamId, requestBody, }: {
230
+ /** The ID of the plan. */
231
+ planId: number;
232
+ /** The ID of the Atlassian team. */
233
+ atlassianTeamId: string;
234
+ /**
235
+ * @example
236
+ * ```
237
+ * [
238
+ * {
239
+ * "op": "replace",
240
+ * "path": "/planningStyle",
241
+ * "value": "Kanban"
242
+ * }
243
+ * ]
244
+ * ```
245
+ */
246
+ requestBody: {
247
+ [key: string]: unknown;
248
+ };
249
+ }) => Promise<void>;
250
+ /**
251
+ * Updates any of the following planning settings of a plan-only team using [JSON
252
+ * Patch](https://datatracker.ietf.org/doc/html/rfc6902).
253
+ *
254
+ * * name
255
+ * * planningStyle
256
+ * * issueSourceId
257
+ * * sprintLength
258
+ * * capacity
259
+ * * memberAccountIds
260
+ *
261
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
262
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
263
+ *
264
+ * *Note that "add" operations do not respect array indexes in target locations.
265
+ * Call the "Get plan-only team" endpoint to find out the order of array elements.*
266
+ *
267
+ * @returns Returned if the request is successful.
268
+ * @path PUT `/rest/api/3/plans/plan/{planId}/team/planonly/{planOnlyTeamId}`
269
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-teams-in-plan#api-rest-api-3-plans-plan-planid-team-planonly-planonlyteamid-put
270
+ * @param params
271
+ */
272
+ updatePlanOnlyTeam: ({ planId, planOnlyTeamId, requestBody, }: {
273
+ /** The ID of the plan. */
274
+ planId: number;
275
+ /** The ID of the plan-only team. */
276
+ planOnlyTeamId: number;
277
+ /**
278
+ * @example
279
+ * ```
280
+ * [
281
+ * {
282
+ * "op": "replace",
283
+ * "path": "/planningStyle",
284
+ * "value": "Kanban"
285
+ * }
286
+ * ]
287
+ * ```
288
+ */
289
+ requestBody: {
290
+ [key: string]: unknown;
291
+ };
292
+ }) => Promise<void>;
293
+ protected static initialize(): void;
294
+ }