@resolution/jira-api-client 0.15.8 → 0.16.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 (96) hide show
  1. package/lib/openapi/core/CommonHttpClient.d.ts +4 -0
  2. package/lib/openapi/core/CommonHttpClient.js +2 -1
  3. package/lib/openapi/core/CommonHttpClient.js.map +1 -1
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +40 -11
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +36 -4
  6. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  7. package/lib/openapi/platform/models/announcementBanner.d.ts +1 -1
  8. package/lib/openapi/platform/models/announcementBanner.js +1 -1
  9. package/lib/openapi/platform/models/common.d.ts +28 -0
  10. package/lib/openapi/platform/models/common.js +6 -0
  11. package/lib/openapi/platform/models/common.js.map +1 -1
  12. package/lib/openapi/platform/models/fieldSchemes.d.ts +458 -0
  13. package/lib/openapi/platform/models/fieldSchemes.js +318 -0
  14. package/lib/openapi/platform/models/fieldSchemes.js.map +1 -0
  15. package/lib/openapi/platform/models/issueFields.d.ts +29 -0
  16. package/lib/openapi/platform/models/issueFields.js +16 -0
  17. package/lib/openapi/platform/models/issueFields.js.map +1 -1
  18. package/lib/openapi/platform/models/issueSearch.d.ts +2 -1
  19. package/lib/openapi/platform/models/issueSearch.js.map +1 -1
  20. package/lib/openapi/platform/models/licenseMetrics.d.ts +0 -3
  21. package/lib/openapi/platform/models/licenseMetrics.js +0 -1
  22. package/lib/openapi/platform/models/licenseMetrics.js.map +1 -1
  23. package/lib/openapi/platform/models/migrationOfConnectModulesToForge.d.ts +36 -0
  24. package/lib/openapi/platform/models/migrationOfConnectModulesToForge.js +23 -0
  25. package/lib/openapi/platform/models/migrationOfConnectModulesToForge.js.map +1 -0
  26. package/lib/openapi/platform/models/projectRoles.d.ts +2 -0
  27. package/lib/openapi/platform/models/projectRoles.js +2 -1
  28. package/lib/openapi/platform/models/projectRoles.js.map +1 -1
  29. package/lib/openapi/platform/models/projectTemplates.d.ts +11 -0
  30. package/lib/openapi/platform/models/projectTemplates.js +1 -0
  31. package/lib/openapi/platform/models/projectTemplates.js.map +1 -1
  32. package/lib/openapi/platform/models/projects.d.ts +1 -1
  33. package/lib/openapi/platform/models/projects.js +1 -1
  34. package/lib/openapi/platform/models/projects.js.map +1 -1
  35. package/lib/openapi/platform/models/uiModificationsApps.d.ts +24 -5
  36. package/lib/openapi/platform/models/uiModificationsApps.js +3 -1
  37. package/lib/openapi/platform/models/uiModificationsApps.js.map +1 -1
  38. package/lib/openapi/platform/models/webhooks.d.ts +2 -2
  39. package/lib/openapi/platform/models/webhooks.js +2 -2
  40. package/lib/openapi/platform/models/webhooks.js.map +1 -1
  41. package/lib/openapi/platform/models/workflowSchemes.d.ts +43 -18
  42. package/lib/openapi/platform/models/workflowSchemes.js +9 -4
  43. package/lib/openapi/platform/models/workflowSchemes.js.map +1 -1
  44. package/lib/openapi/platform/models/workflows.d.ts +88 -0
  45. package/lib/openapi/platform/models/workflows.js +74 -0
  46. package/lib/openapi/platform/models/workflows.js.map +1 -1
  47. package/lib/openapi/platform/services/AppPropertiesService.d.ts +1 -2
  48. package/lib/openapi/platform/services/AppPropertiesService.js +1 -2
  49. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  50. package/lib/openapi/platform/services/FieldSchemesService.d.ts +901 -0
  51. package/lib/openapi/platform/services/FieldSchemesService.js +992 -0
  52. package/lib/openapi/platform/services/FieldSchemesService.js.map +1 -0
  53. package/lib/openapi/platform/services/IssueFieldsService.d.ts +30 -1
  54. package/lib/openapi/platform/services/IssueFieldsService.js +39 -0
  55. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  56. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +2 -2
  57. package/lib/openapi/platform/services/IssueRemoteLinksService.js +2 -2
  58. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  59. package/lib/openapi/platform/services/IssueSearchService.d.ts +2 -1
  60. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  61. package/lib/openapi/platform/services/MigrationOfConnectModulesToForgeService.d.ts +61 -0
  62. package/lib/openapi/platform/services/MigrationOfConnectModulesToForgeService.js +76 -0
  63. package/lib/openapi/platform/services/MigrationOfConnectModulesToForgeService.js.map +1 -0
  64. package/lib/openapi/platform/services/ProjectRolesService.d.ts +8 -2
  65. package/lib/openapi/platform/services/ProjectRolesService.js +5 -3
  66. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  67. package/lib/openapi/platform/services/ProjectsService.d.ts +3 -6
  68. package/lib/openapi/platform/services/ProjectsService.js +3 -6
  69. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  70. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +68 -10
  71. package/lib/openapi/platform/services/UiModificationsAppsService.js +54 -10
  72. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  73. package/lib/openapi/platform/services/UserSearchService.d.ts +3 -1
  74. package/lib/openapi/platform/services/UserSearchService.js +4 -2
  75. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  76. package/lib/openapi/platform/services/UsersService.d.ts +4 -1
  77. package/lib/openapi/platform/services/UsersService.js +4 -1
  78. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  79. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +65 -1
  80. package/lib/openapi/platform/services/WorkflowSchemesService.js +31 -0
  81. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  82. package/lib/openapi/platform/services/WorkflowsService.d.ts +152 -8
  83. package/lib/openapi/platform/services/WorkflowsService.js +160 -5
  84. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  85. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +1 -1
  86. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +1 -1
  87. package/lib/openapi/serviceManagement/services/CustomerService.d.ts +23 -0
  88. package/lib/openapi/serviceManagement/services/CustomerService.js +34 -0
  89. package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -1
  90. package/lib/openapi/software/models/board.d.ts +9 -0
  91. package/lib/openapi/software/models/board.js +1 -0
  92. package/lib/openapi/software/models/board.js.map +1 -1
  93. package/package.json +3 -3
  94. package/lib/openapi/platform/models/appProperties.d.ts +0 -19
  95. package/lib/openapi/platform/models/appProperties.js +0 -12
  96. package/lib/openapi/platform/models/appProperties.js.map +0 -1
@@ -0,0 +1,901 @@
1
+ import * as commonHttpClient from "../../core/CommonHttpClient";
2
+ import { CommonHttpService } from "../../core/CommonHttpService";
3
+ import { type PageBean2GetFieldAssociationSchemeResponse, type CreateFieldAssociationSchemeRequest, type CreateFieldAssociationSchemeResponse, type GetFieldAssociationSchemeByIdResponse, type UpdateFieldAssociationSchemeRequest, type UpdateFieldAssociationSchemeResponse, type DeleteFieldAssociationSchemeResponse, type PageBean2FieldAssociationSchemeFieldSearchResult, type GetFieldAssociationParametersResponse, type PageBean2FieldAssociationSchemeProjectSearchResult, type UpdateFieldAssociationsRequestItem, type FieldSchemeToFieldsResponse, type RemoveFieldAssociationsRequestItem, type MinimalFieldSchemeToFieldsResponse, type UpdateFieldSchemeParametersRequest, type UpdateFieldSchemeParametersResponse, type ParameterRemovalDetails, type RemoveFieldParametersResult, type PageBean2GetProjectsWithFieldSchemesResponse, type FieldSchemeToProjectsRequest, type FieldSchemeToProjectsResponse } from "../models/fieldSchemes";
4
+ /**
5
+ * This resource represents field schemes which are replacing field configuration
6
+ * schemes to control field associations. They are currently in beta and only
7
+ * available to customers who have opted-in to the beta program. For more
8
+ * information see [RFC-103: Jira Field Configuration Overhaul: Admin Experience
9
+ * and API
10
+ * Changes](https://community.developer.atlassian.com/t/rfc-103-jira-field-configuration-overhaul-admin-experience-and-api-changes/94205)
11
+ *
12
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes
13
+ * @category Services
14
+ */
15
+ export declare class FieldSchemesService extends CommonHttpService {
16
+ /**
17
+ * Associate projects to field association schemes.
18
+ *
19
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
20
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
21
+ *
22
+ * @returns
23
+ * * status: 200, mediaType: application/json
24
+ *
25
+ * Returned if the association was successful.
26
+ *
27
+ * example:
28
+ * ```
29
+ * {
30
+ * "results": [
31
+ * {
32
+ * "projectId": 10001,
33
+ * "schemeId": 10000,
34
+ * "success": true
35
+ * },
36
+ * {
37
+ * "projectId": 10002,
38
+ * "schemeId": 10001,
39
+ * "success": true
40
+ * }
41
+ * ]
42
+ * }
43
+ * ```
44
+ *
45
+ * * status: 204, mediaType: application/json
46
+ *
47
+ * The request completed successfully. No additional content will be sent in the response.
48
+ *
49
+ * * status: 207, mediaType: application/json
50
+ *
51
+ * Returned if the association was partially successful.
52
+ *
53
+ * example:
54
+ * ```
55
+ * {
56
+ * "results": [
57
+ * {
58
+ * "projectId": 10001,
59
+ * "schemeId": 10000,
60
+ * "success": true
61
+ * },
62
+ * {
63
+ * "error": "Project #10001 doesn't exist",
64
+ * "projectId": 10002,
65
+ * "schemeId": 10001,
66
+ * "success": false
67
+ * }
68
+ * ]
69
+ * }
70
+ * ```
71
+ * @path PUT `/rest/api/3/config/fieldschemes/projects`
72
+ * @scopes-current manage:jira-configuration
73
+ * @scopes-beta write:field-configuration:jira
74
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-projects-put
75
+ * @param params
76
+ */
77
+ associateProjectsToFieldAssociationSchemes: ({ requestBody }: {
78
+ /**
79
+ * @example
80
+ * ```
81
+ * {
82
+ * "10000": {
83
+ * "projectIds": [
84
+ * 10000,
85
+ * 10001
86
+ * ]
87
+ * },
88
+ * "10001": {
89
+ * "projectIds": [
90
+ * 10002
91
+ * ]
92
+ * }
93
+ * }
94
+ * ```
95
+ */
96
+ requestBody: {
97
+ [key: string]: FieldSchemeToProjectsRequest;
98
+ };
99
+ }) => Promise<commonHttpClient.WithResponse<{
100
+ status: 200 | 207;
101
+ mediaType: "application/json";
102
+ body: FieldSchemeToProjectsResponse;
103
+ } | {
104
+ status: 204;
105
+ mediaType: "application/json";
106
+ body: void;
107
+ }>>;
108
+ /**
109
+ * Endpoint for creating a new field association scheme.
110
+ *
111
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
112
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
113
+ *
114
+ * @returns Returned if the creation was successful.
115
+ *
116
+ * example:
117
+ * ```
118
+ * {
119
+ * "description": "Field association scheme description",
120
+ * "id": 10000,
121
+ * "links": {
122
+ * "associations": "{BASE_API_URL}/rest/api/2/config/fieldschemes/9/associations",
123
+ * "projects": "{BASE_API_URL}/rest/api/2/config/fieldschemes/9/projects"
124
+ * },
125
+ * "name": "Field association scheme name"
126
+ * }
127
+ * ```
128
+ * @path POST `/rest/api/3/config/fieldschemes`
129
+ * @scopes-current manage:jira-configuration
130
+ * @scopes-beta write:field-configuration-scheme:jira
131
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-post
132
+ * @param params
133
+ */
134
+ createFieldAssociationScheme: ({ createFieldAssociationSchemeRequest }: {
135
+ /**
136
+ * The request containing the name and description of the field association scheme
137
+ *
138
+ * @example
139
+ * ```
140
+ * {
141
+ * "description": "Field association scheme description",
142
+ * "name": "Field association scheme name"
143
+ * }
144
+ * ```
145
+ */
146
+ createFieldAssociationSchemeRequest: CreateFieldAssociationSchemeRequest;
147
+ }) => Promise<CreateFieldAssociationSchemeResponse>;
148
+ /**
149
+ * Delete a specified field association scheme
150
+ *
151
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
152
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
153
+ *
154
+ * @returns Returned if the field association scheme deletion was successful.
155
+ *
156
+ * example:
157
+ * ```
158
+ * {
159
+ * "deleted": true,
160
+ * "id": "10000"
161
+ * }
162
+ * ```
163
+ * @path DELETE `/rest/api/3/config/fieldschemes/{id}`
164
+ * @scopes-current manage:jira-configuration
165
+ * @scopes-beta write:field-configuration-scheme:jira
166
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-id-delete
167
+ * @param params
168
+ */
169
+ deleteFieldAssociationScheme: ({ id }: {
170
+ /** The ID of the field association scheme to delete. */
171
+ id: number;
172
+ }) => Promise<DeleteFieldAssociationSchemeResponse>;
173
+ /**
174
+ * Endpoint for fetching a field association scheme by its ID
175
+ *
176
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
177
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
178
+ *
179
+ * @returns Returned if a field association scheme matches the given scheme ID
180
+ *
181
+ * example:
182
+ * ```
183
+ * {
184
+ * "description": "This is a field association scheme",
185
+ * "id": "123",
186
+ * "isDefault": false,
187
+ * "links": {
188
+ * "associations": "rest/api/3/config/fieldschemes/10000/associations",
189
+ * "projects": "rest/api/3/config/fieldschemes/10000/projects"
190
+ * },
191
+ * "name": "Scheme"
192
+ * }
193
+ * ```
194
+ * @path GET `/rest/api/3/config/fieldschemes/{id}`
195
+ * @scopes-current manage:jira-configuration
196
+ * @scopes-beta read:field-configuration-scheme:jira
197
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-id-get
198
+ * @param params
199
+ */
200
+ getFieldAssociationSchemeById: ({ id }: {
201
+ /** The scheme id to fetch */
202
+ id: number;
203
+ }) => Promise<GetFieldAssociationSchemeByIdResponse>;
204
+ /**
205
+ * Retrieve field association parameters on a field association scheme
206
+ *
207
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
208
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
209
+ *
210
+ * @returns Returned if the parameters fetched were successful.
211
+ *
212
+ * example:
213
+ * ```
214
+ * {
215
+ * "fieldId": "customfield_10000",
216
+ * "parameters": {
217
+ * "description": "Teams field",
218
+ * "isRequired": true
219
+ * },
220
+ * "workTypeParameters": [
221
+ * {
222
+ * "description": "Teams field",
223
+ * "isRequired": false,
224
+ * "workTypeId": 10010
225
+ * }
226
+ * ]
227
+ * }
228
+ * ```
229
+ * @path GET `/rest/api/3/config/fieldschemes/{id}/fields/{fieldId}/parameters`
230
+ * @scopes-current manage:jira-configuration
231
+ * @scopes-beta read:field-configuration:jira
232
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-id-fields-fieldid-parameters-get
233
+ * @param params
234
+ */
235
+ getFieldAssociationSchemeItemParameters: ({ id, fieldId }: {
236
+ /** the ID of the field association scheme to retrieve parameters for */
237
+ id: number;
238
+ /** the ID of the field */
239
+ fieldId: string;
240
+ }) => Promise<GetFieldAssociationParametersResponse>;
241
+ /**
242
+ * REST endpoint for retrieving a paginated list of field association schemes with
243
+ * optional filtering.
244
+ *
245
+ * This endpoint allows clients to fetch field association schemes with optional
246
+ * filtering by project IDs and text queries. The response includes scheme details
247
+ * with navigation links and filter metadata when applicable.
248
+ *
249
+ * Filtering Behavior:
250
+ *
251
+ * * When projectId or query parameters are provided, the response includes
252
+ * matchedFilters metadata showing which filters were applied.
253
+ * * When no filters are applied, matchedFilters is omitted from individual
254
+ * scheme objects
255
+ *
256
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
257
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
258
+ *
259
+ * @returns Pagianted list of field association schemes
260
+ *
261
+ * example:
262
+ * ```
263
+ * {
264
+ * "description": "Field Association Scheme test description",
265
+ * "id": 1000,
266
+ * "isDefault": false,
267
+ * "links": {
268
+ * "associations": "rest/api/3/config/fieldschemes/10000/associations",
269
+ * "projects": "rest/api/3/config/fieldschemes/10000/projects"
270
+ * },
271
+ * "matchedFilters": {
272
+ * "projectIds": [
273
+ * 10001,
274
+ * 10002
275
+ * ],
276
+ * "query": "query"
277
+ * },
278
+ * "name": "Field Association Scheme test name"
279
+ * }
280
+ * ```
281
+ * @path GET `/rest/api/3/config/fieldschemes`
282
+ * @scopes-current manage:jira-configuration
283
+ * @scopes-beta read:field-configuration-scheme:jira
284
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-get
285
+ * @param params
286
+ */
287
+ getFieldAssociationSchemes: ({ projectId, query, startAt, maxResults }?: {
288
+ /**
289
+ * (optional) List of project IDs to filter schemes by. If not provided, schemes
290
+ * from all projects are returned.
291
+ */
292
+ projectId?: number[] | undefined;
293
+ /**
294
+ * (optional) Text filter for scheme name or description matching
295
+ * (case-insensitive). If not provided, no text filtering is applied.
296
+ */
297
+ query?: string | undefined;
298
+ /** Zero-based index of the first item to return (default: 0) */
299
+ startAt?: number | undefined;
300
+ /** Maximum number of items to return per page (default: 50, max: 100) */
301
+ maxResults?: number | undefined;
302
+ }) => Promise<PageBean2GetFieldAssociationSchemeResponse>;
303
+ /**
304
+ * Get projects with field association schemes. This will be a temporary API but
305
+ * useful when transitioning from the legacy field configuration APIs to the new
306
+ * ones.
307
+ *
308
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
309
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
310
+ *
311
+ * @returns Returns the list of project with field association schemes.
312
+ *
313
+ * example:
314
+ * ```
315
+ * {
316
+ * "isLast": true,
317
+ * "maxResults": 3,
318
+ * "startAt": 0,
319
+ * "total": 3,
320
+ * "values": [
321
+ * {
322
+ * "projectId": 10000,
323
+ * "schemeId": 1
324
+ * },
325
+ * {
326
+ * "projectId": 10001,
327
+ * "schemeId": 1
328
+ * },
329
+ * {
330
+ * "projectId": 10002,
331
+ * "schemeId": 2
332
+ * }
333
+ * ]
334
+ * }
335
+ * ```
336
+ * @path GET `/rest/api/3/config/fieldschemes/projects`
337
+ * @scopes-current manage:jira-configuration
338
+ * @scopes-beta read:field-configuration-scheme:jira
339
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-projects-get
340
+ * @param params
341
+ */
342
+ getProjectsWithFieldSchemes: ({ startAt, maxResults, projectId }: {
343
+ /** The starting index of the returned projects. Base index: 0. */
344
+ startAt?: number | undefined;
345
+ /** The maximum number of projects to return per page, maximum allowed value is 100. */
346
+ maxResults?: number | undefined;
347
+ /** List of project ids to filter the results by. */
348
+ projectId: number[];
349
+ }) => Promise<PageBean2GetProjectsWithFieldSchemesResponse>;
350
+ /**
351
+ * Remove field association parameters overrides for work types.
352
+ *
353
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
354
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
355
+ *
356
+ * @returns
357
+ * * status: 204, mediaType: application/json
358
+ *
359
+ * The request completed successfully. No additional content will be sent in the response.
360
+ *
361
+ * * status: 207, mediaType: application/json
362
+ *
363
+ * Returned if the removal was partially successful.
364
+ *
365
+ * example:
366
+ * ```
367
+ * {
368
+ * "results": [
369
+ * {
370
+ * "error": {
371
+ * "code": "FIELD_IS_NOT_ASSOCIATED",
372
+ * "message": "The field 'customfield_10000' is not associated with the scheme '10000'."
373
+ * },
374
+ * "fieldId": "customfield_10000",
375
+ * "schemeId": 10000,
376
+ * "success": false,
377
+ * "workTypeIds": [
378
+ * 1,
379
+ * 2
380
+ * ]
381
+ * },
382
+ * {
383
+ * "fieldId": "description",
384
+ * "schemeId": 10001,
385
+ * "success": true,
386
+ * "workTypeIds": [
387
+ * 3
388
+ * ]
389
+ * }
390
+ * ]
391
+ * }
392
+ * ```
393
+ * @path DELETE `/rest/api/3/config/fieldschemes/fields/parameters`
394
+ * @scopes-current manage:jira-configuration
395
+ * @scopes-beta write:field-configuration:jira
396
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-fields-parameters-delete
397
+ * @param params
398
+ */
399
+ removeFieldAssociationSchemeItemParameters: ({ requestBody }: {
400
+ /**
401
+ * @example
402
+ * ```
403
+ * {
404
+ * "customfield_10000": [
405
+ * {
406
+ * "parameters": [
407
+ * "description",
408
+ * "isRequired"
409
+ * ],
410
+ * "schemeId": 10000,
411
+ * "workTypeIds": [
412
+ * 1,
413
+ * 2
414
+ * ]
415
+ * }
416
+ * ],
417
+ * "description": [
418
+ * {
419
+ * "parameters": [
420
+ * "description"
421
+ * ],
422
+ * "schemeId": 10001,
423
+ * "workTypeIds": [
424
+ * 3
425
+ * ]
426
+ * }
427
+ * ]
428
+ * }
429
+ * ```
430
+ */
431
+ requestBody: {
432
+ [key: string]: ParameterRemovalDetails[];
433
+ };
434
+ }) => Promise<commonHttpClient.WithResponse<{
435
+ status: 204;
436
+ mediaType: "application/json";
437
+ body: void;
438
+ } | {
439
+ status: 207;
440
+ mediaType: "application/json";
441
+ body: RemoveFieldParametersResult;
442
+ }>>;
443
+ /**
444
+ * Remove fields associated with field association schemes.
445
+ *
446
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
447
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
448
+ *
449
+ * @returns
450
+ * * status: 200, mediaType: application/json
451
+ *
452
+ * Returned if the field association update was successful.
453
+ *
454
+ * example:
455
+ * ```
456
+ * {
457
+ * "results": [
458
+ * {
459
+ * "fieldId": "customfield_10000",
460
+ * "schemeId": 10000,
461
+ * "success": true
462
+ * },
463
+ * {
464
+ * "fieldId": "customfield_10001",
465
+ * "schemeId": 10002,
466
+ * "success": true
467
+ * }
468
+ * ]
469
+ * }
470
+ * ```
471
+ *
472
+ * * status: 204, mediaType: application/json
473
+ *
474
+ * The request completed successfully. No additional content will be sent in the response.
475
+ *
476
+ * * status: 207, mediaType: application/json
477
+ *
478
+ * Returned if the field association update was partially successful.
479
+ *
480
+ * example:
481
+ * ```
482
+ * {
483
+ * "results": [
484
+ * {
485
+ * "fieldId": "customfield_10000",
486
+ * "schemeId": 10000,
487
+ * "success": true
488
+ * },
489
+ * {
490
+ * "error": "Scheme 10001 doesn't exist",
491
+ * "fieldId": "customfield_10001",
492
+ * "schemeId": 10001,
493
+ * "success": false
494
+ * }
495
+ * ]
496
+ * }
497
+ * ```
498
+ * @path DELETE `/rest/api/3/config/fieldschemes/fields`
499
+ * @scopes-current manage:jira-configuration
500
+ * @scopes-beta write:field-configuration:jira
501
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-fields-delete
502
+ * @param params
503
+ */
504
+ removeFieldsAssociatedWithSchemes: ({ requestBody }: {
505
+ /**
506
+ * The request containing the schemes and fields to be removed.
507
+ *
508
+ * @example
509
+ * ```
510
+ * {
511
+ * "customfield_10000": {
512
+ * "schemeIds": [
513
+ * 10000,
514
+ * 10001
515
+ * ]
516
+ * },
517
+ * "customfield_10001": {
518
+ * "schemeIds": [
519
+ * 10002
520
+ * ]
521
+ * }
522
+ * }
523
+ * ```
524
+ */
525
+ requestBody: {
526
+ [key: string]: RemoveFieldAssociationsRequestItem;
527
+ };
528
+ }) => Promise<commonHttpClient.WithResponse<{
529
+ status: 200 | 207;
530
+ mediaType: "application/json";
531
+ body: MinimalFieldSchemeToFieldsResponse;
532
+ } | {
533
+ status: 204;
534
+ mediaType: "application/json";
535
+ body: void;
536
+ }>>;
537
+ /**
538
+ * Search for fields belonging to a given field association scheme.
539
+ *
540
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
541
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
542
+ *
543
+ * @returns Returns the matching fields, at the specified page of the results.
544
+ *
545
+ * example:
546
+ * ```
547
+ * {
548
+ * "allowedOperations": [
549
+ * "REMOVE",
550
+ * "CHANGE_REQUIRED",
551
+ * "CHANGE_DESCRIPTION"
552
+ * ],
553
+ * "fieldId": "customfield_10000",
554
+ * "parameters": {
555
+ * "description": "text",
556
+ * "isRequired": true
557
+ * },
558
+ * "restrictedToWorkTypes": [
559
+ * "1",
560
+ * "2"
561
+ * ],
562
+ * "workTypeParameters": [
563
+ * {
564
+ * "description": "text",
565
+ * "isRequired": true,
566
+ * "workTypeId": "1"
567
+ * },
568
+ * {
569
+ * "description": "textarea",
570
+ * "isRequired": false,
571
+ * "workTypeId": "2"
572
+ * }
573
+ * ]
574
+ * }
575
+ * ```
576
+ * @path GET `/rest/api/3/config/fieldschemes/{id}/fields`
577
+ * @scopes-current manage:jira-configuration
578
+ * @scopes-beta read:field-configuration:jira
579
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-id-fields-get
580
+ * @param params
581
+ */
582
+ searchFieldAssociationSchemeFields: ({ id, startAt, maxResults, fieldId }: {
583
+ /** The scheme ID to search for child fields */
584
+ id: number;
585
+ /** The starting index of the returned fields. Base index: 0. */
586
+ startAt?: number | undefined;
587
+ /** The maximum number of fields to return per page, maximum allowed value is 100. */
588
+ maxResults?: number | undefined;
589
+ /**
590
+ * The field IDs to filter by, if empty then all fields belonging to a field
591
+ * association scheme will be returned
592
+ */
593
+ fieldId?: string[] | undefined;
594
+ }) => Promise<PageBean2FieldAssociationSchemeFieldSearchResult>;
595
+ /**
596
+ * REST Endpoint for searching for projects belonging to a given field association
597
+ * scheme
598
+ *
599
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
600
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
601
+ *
602
+ * @returns Returns a paginated list of projects associated with the field association scheme, matching the specified filter criteria.
603
+ * @path GET `/rest/api/3/config/fieldschemes/{id}/projects`
604
+ * @scopes-current manage:jira-configuration
605
+ * @scopes-beta read:field-configuration:jira
606
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-id-projects-get
607
+ * @param params
608
+ */
609
+ searchFieldAssociationSchemeProjects: ({ id, startAt, maxResults, projectId }: {
610
+ /** The scheme id to search for associated projects */
611
+ id: number;
612
+ /** The starting index of the returned projects. Base index: 0. */
613
+ startAt?: number | undefined;
614
+ /** The maximum number of projects to return per page, maximum allowed value is 100. */
615
+ maxResults?: number | undefined;
616
+ /**
617
+ * The project Ids to filter by, if empty then all projects belonging to a field
618
+ * association scheme will be returned
619
+ */
620
+ projectId?: number[] | undefined;
621
+ }) => Promise<PageBean2FieldAssociationSchemeProjectSearchResult>;
622
+ /**
623
+ * Endpoint for updating an existing field association scheme.
624
+ *
625
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
626
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
627
+ *
628
+ * @returns Returned if the update was successful.
629
+ *
630
+ * example:
631
+ * ```
632
+ * {
633
+ * "description": "Field association scheme description",
634
+ * "id": 10000,
635
+ * "links": {
636
+ * "associations": "{BASE_API_URL}/rest/api/2/config/fieldschemes/9/associations",
637
+ * "projects": "{BASE_API_URL}/rest/api/2/config/fieldschemes/9/projects"
638
+ * },
639
+ * "name": "Field association scheme name"
640
+ * }
641
+ * ```
642
+ * @path PUT `/rest/api/3/config/fieldschemes/{id}`
643
+ * @scopes-current manage:jira-configuration
644
+ * @scopes-beta write:field-configuration-scheme:jira
645
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-id-put
646
+ * @param params
647
+ */
648
+ updateFieldAssociationScheme: ({ id, updateFieldAssociationSchemeRequest }: {
649
+ id: number;
650
+ /**
651
+ * The request containing the desired updates to the field association scheme
652
+ *
653
+ * @example
654
+ * ```
655
+ * {
656
+ * "description": "Field association scheme description",
657
+ * "name": "Field association scheme name"
658
+ * }
659
+ * ```
660
+ */
661
+ updateFieldAssociationSchemeRequest: UpdateFieldAssociationSchemeRequest;
662
+ }) => Promise<UpdateFieldAssociationSchemeResponse>;
663
+ /**
664
+ * Update field association item parameters in field association schemes.
665
+ *
666
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
667
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
668
+ *
669
+ * @returns
670
+ * * status: 200, mediaType: application/json
671
+ *
672
+ * Returned if the field parameter update was successful.
673
+ *
674
+ * example:
675
+ * ```
676
+ * {
677
+ * "results": [
678
+ * {
679
+ * "fieldId": "customfield_10000",
680
+ * "schemeId": 10000,
681
+ * "success": true
682
+ * },
683
+ * {
684
+ * "fieldId": "customfield_10001",
685
+ * "schemeId": 10002,
686
+ * "success": true,
687
+ * "workTypeId": 10001
688
+ * }
689
+ * ]
690
+ * }
691
+ * ```
692
+ *
693
+ * * status: 204, mediaType: application/json
694
+ *
695
+ * The request completed successfully. No additional content will be sent in the response.
696
+ *
697
+ * * status: 207, mediaType: application/json
698
+ *
699
+ * Returned if the field parameter update was partially successful.
700
+ *
701
+ * example:
702
+ * ```
703
+ * {
704
+ * "results": [
705
+ * {
706
+ * "fieldId": "customfield_10000",
707
+ * "schemeId": 10000,
708
+ * "success": true
709
+ * },
710
+ * {
711
+ * "error": "Scheme 10001 doesn't exist",
712
+ * "fieldId": "customfield_10001",
713
+ * "schemeId": 10001,
714
+ * "success": false,
715
+ * "workTypeId": 10001
716
+ * }
717
+ * ]
718
+ * }
719
+ * ```
720
+ * @path PUT `/rest/api/3/config/fieldschemes/fields/parameters`
721
+ * @scopes-current manage:jira-configuration
722
+ * @scopes-beta write:field-configuration:jira
723
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-fields-parameters-put
724
+ * @param params
725
+ */
726
+ updateFieldAssociationSchemeItemParameters: ({ requestBody }: {
727
+ /**
728
+ * The request containing the field association scheme id and the parameters to
729
+ * update.
730
+ *
731
+ * @example
732
+ * ```
733
+ * {
734
+ * "customfield_10000": [
735
+ * {
736
+ * "parameters": {
737
+ * "description": "Field description",
738
+ * "isRequired": true
739
+ * },
740
+ * "schemeIds": [
741
+ * 10000,
742
+ * 10001
743
+ * ],
744
+ * "workTypeParameters": [
745
+ * {
746
+ * "description": "Description for Bug",
747
+ * "isRequired": false,
748
+ * "workTypeId": 10002
749
+ * }
750
+ * ]
751
+ * }
752
+ * ],
753
+ * "customfield_10001": [
754
+ * {
755
+ * "schemeIds": [
756
+ * 10001
757
+ * ],
758
+ * "workTypeParameters": [
759
+ * {
760
+ * "description": "Description for Bug",
761
+ * "isRequired": false,
762
+ * "workTypeId": 10002
763
+ * },
764
+ * {
765
+ * "description": "Description for Task",
766
+ * "isRequired": true,
767
+ * "workTypeId": 10003
768
+ * }
769
+ * ]
770
+ * }
771
+ * ]
772
+ * }
773
+ * ```
774
+ */
775
+ requestBody: {
776
+ [key: string]: UpdateFieldSchemeParametersRequest[];
777
+ };
778
+ }) => Promise<commonHttpClient.WithResponse<{
779
+ status: 200 | 207;
780
+ mediaType: "application/json";
781
+ body: UpdateFieldSchemeParametersResponse;
782
+ } | {
783
+ status: 204;
784
+ mediaType: "application/json";
785
+ body: void;
786
+ }>>;
787
+ /**
788
+ * Update fields associated with field association schemes.
789
+ *
790
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
791
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
792
+ *
793
+ * @returns
794
+ * * status: 200, mediaType: application/json
795
+ *
796
+ * Returned if the field association update was successful.
797
+ *
798
+ * example:
799
+ * ```
800
+ * {
801
+ * "results": [
802
+ * {
803
+ * "fieldId": "customfield_10000",
804
+ * "schemeId": 10000,
805
+ * "success": true,
806
+ * "workTypeIds": [
807
+ * 1,
808
+ * 2
809
+ * ]
810
+ * },
811
+ * {
812
+ * "fieldId": "customfield_10001",
813
+ * "schemeId": 10002,
814
+ * "success": true,
815
+ * "workTypeIds": []
816
+ * }
817
+ * ]
818
+ * }
819
+ * ```
820
+ *
821
+ * * status: 204, mediaType: application/json
822
+ *
823
+ * The request completed successfully. No additional content will be sent in the response.
824
+ *
825
+ * * status: 207, mediaType: application/json
826
+ *
827
+ * Returned if the field association update was partially successful.
828
+ *
829
+ * example:
830
+ * ```
831
+ * {
832
+ * "results": [
833
+ * {
834
+ * "fieldId": "customfield_10000",
835
+ * "schemeId": 10000,
836
+ * "success": true,
837
+ * "workTypeIds": [
838
+ * 1
839
+ * ]
840
+ * },
841
+ * {
842
+ * "error": "Scheme 10001 doesn't exist",
843
+ * "fieldId": "customfield_10001",
844
+ * "schemeId": 10001,
845
+ * "success": false,
846
+ * "workTypeIds": [
847
+ * 2
848
+ * ]
849
+ * }
850
+ * ]
851
+ * }
852
+ * ```
853
+ * @path PUT `/rest/api/3/config/fieldschemes/fields`
854
+ * @scopes-current manage:jira-configuration
855
+ * @scopes-beta write:field-configuration:jira
856
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-field-schemes#api-rest-api-3-config-fieldschemes-fields-put
857
+ * @param params
858
+ */
859
+ updateFieldsAssociatedWithSchemes: ({ requestBody }: {
860
+ /**
861
+ * The request containing the schemes and work types to associate each field with.
862
+ *
863
+ * @example
864
+ * ```
865
+ * {
866
+ * "customfield_10000": [
867
+ * {
868
+ * "restrictedToWorkTypes": [
869
+ * 1,
870
+ * 2
871
+ * ],
872
+ * "schemeIds": [
873
+ * 10000,
874
+ * 10001
875
+ * ]
876
+ * }
877
+ * ],
878
+ * "customfield_10001": [
879
+ * {
880
+ * "schemeIds": [
881
+ * 10002
882
+ * ]
883
+ * }
884
+ * ]
885
+ * }
886
+ * ```
887
+ */
888
+ requestBody: {
889
+ [key: string]: UpdateFieldAssociationsRequestItem[];
890
+ };
891
+ }) => Promise<commonHttpClient.WithResponse<{
892
+ status: 200 | 207;
893
+ mediaType: "application/json";
894
+ body: FieldSchemeToFieldsResponse;
895
+ } | {
896
+ status: 204;
897
+ mediaType: "application/json";
898
+ body: void;
899
+ }>>;
900
+ protected static initialize(): void;
901
+ }