@resolution/jira-api-client 0.1.0 → 0.1.2
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.
- package/CHANGELOG.md +22 -0
- package/package.json +10 -3
- package/.eslintrc.js +0 -3
- package/config/api-typescript-generator.config.ts +0 -91
- package/config/compare-schemas.ts +0 -307
- package/src/index.ts +0 -47
- package/src/openapi/platform/base-jira-platform-api-client.ts +0 -2298
- package/src/openapi/platform/core/common-http-client.ts +0 -723
- package/src/openapi/platform/core/common-http-service.ts +0 -22
- package/src/openapi/platform/core/common-validation-schema-storage.ts +0 -105
- package/src/openapi/platform/models/announcement-banner.ts +0 -59
- package/src/openapi/platform/models/app-data-policies.ts +0 -79
- package/src/openapi/platform/models/app-migration.ts +0 -172
- package/src/openapi/platform/models/app-properties.ts +0 -32
- package/src/openapi/platform/models/audit-records.ts +0 -140
- package/src/openapi/platform/models/avatars.ts +0 -48
- package/src/openapi/platform/models/classification-levels.ts +0 -58
- package/src/openapi/platform/models/common.ts +0 -2669
- package/src/openapi/platform/models/dashboards.ts +0 -849
- package/src/openapi/platform/models/dynamic-modules.ts +0 -121
- package/src/openapi/platform/models/filter-sharing.ts +0 -103
- package/src/openapi/platform/models/filters.ts +0 -319
- package/src/openapi/platform/models/group-and-user-picker.ts +0 -85
- package/src/openapi/platform/models/groups.ts +0 -247
- package/src/openapi/platform/models/issue-attachments.ts +0 -290
- package/src/openapi/platform/models/issue-comment-properties.ts +0 -27
- package/src/openapi/platform/models/issue-comments.ts +0 -91
- package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +0 -96
- package/src/openapi/platform/models/issue-custom-field-contexts.ts +0 -1072
- package/src/openapi/platform/models/issue-custom-field-options-apps.ts +0 -273
- package/src/openapi/platform/models/issue-custom-field-options.ts +0 -283
- package/src/openapi/platform/models/issue-custom-field-values-apps.ts +0 -118
- package/src/openapi/platform/models/issue-field-configurations.ts +0 -435
- package/src/openapi/platform/models/issue-fields.ts +0 -392
- package/src/openapi/platform/models/issue-link-types.ts +0 -28
- package/src/openapi/platform/models/issue-links.ts +0 -185
- package/src/openapi/platform/models/issue-notification-schemes.ts +0 -370
- package/src/openapi/platform/models/issue-priorities.ts +0 -196
- package/src/openapi/platform/models/issue-properties.ts +0 -259
- package/src/openapi/platform/models/issue-remote-links.ts +0 -207
- package/src/openapi/platform/models/issue-resolutions.ts +0 -180
- package/src/openapi/platform/models/issue-search.ts +0 -367
- package/src/openapi/platform/models/issue-security-level.ts +0 -76
- package/src/openapi/platform/models/issue-security-schemes.ts +0 -496
- package/src/openapi/platform/models/issue-type-schemes.ts +0 -290
- package/src/openapi/platform/models/issue-type-screen-schemes.ts +0 -286
- package/src/openapi/platform/models/issue-types.ts +0 -66
- package/src/openapi/platform/models/issue-votes.ts +0 -38
- package/src/openapi/platform/models/issue-watchers.ts +0 -67
- package/src/openapi/platform/models/issue-worklogs.ts +0 -190
- package/src/openapi/platform/models/issues.ts +0 -1268
- package/src/openapi/platform/models/jira-expressions.ts +0 -578
- package/src/openapi/platform/models/jira-settings.ts +0 -118
- package/src/openapi/platform/models/jql-functions-apps.ts +0 -128
- package/src/openapi/platform/models/jql.ts +0 -783
- package/src/openapi/platform/models/labels.ts +0 -42
- package/src/openapi/platform/models/license-metrics.ts +0 -68
- package/src/openapi/platform/models/myself.ts +0 -29
- package/src/openapi/platform/models/permission-schemes.ts +0 -89
- package/src/openapi/platform/models/permissions.ts +0 -308
- package/src/openapi/platform/models/priority-schemes.ts +0 -527
- package/src/openapi/platform/models/project-avatars.ts +0 -29
- package/src/openapi/platform/models/project-classification-levels.ts +0 -24
- package/src/openapi/platform/models/project-components.ts +0 -231
- package/src/openapi/platform/models/project-email.ts +0 -27
- package/src/openapi/platform/models/project-features.ts +0 -78
- package/src/openapi/platform/models/project-permission-schemes.ts +0 -43
- package/src/openapi/platform/models/project-role-actors.ts +0 -107
- package/src/openapi/platform/models/project-roles.ts +0 -76
- package/src/openapi/platform/models/project-types.ts +0 -36
- package/src/openapi/platform/models/project-versions.ts +0 -216
- package/src/openapi/platform/models/projects.ts +0 -429
- package/src/openapi/platform/models/screen-schemes.ts +0 -192
- package/src/openapi/platform/models/screen-tab-fields.ts +0 -45
- package/src/openapi/platform/models/screens.ts +0 -171
- package/src/openapi/platform/models/server-info.ts +0 -100
- package/src/openapi/platform/models/service-registry.ts +0 -68
- package/src/openapi/platform/models/status.ts +0 -229
- package/src/openapi/platform/models/time-tracking.ts +0 -38
- package/src/openapi/platform/models/ui-modifications-apps.ts +0 -229
- package/src/openapi/platform/models/user-search.ts +0 -69
- package/src/openapi/platform/models/users.ts +0 -121
- package/src/openapi/platform/models/webhooks.ts +0 -307
- package/src/openapi/platform/models/workflow-scheme-drafts.ts +0 -58
- package/src/openapi/platform/models/workflow-scheme-project-associations.ts +0 -68
- package/src/openapi/platform/models/workflow-schemes.ts +0 -545
- package/src/openapi/platform/models/workflow-transition-properties.ts +0 -33
- package/src/openapi/platform/models/workflow-transition-rules.ts +0 -261
- package/src/openapi/platform/models/workflows.ts +0 -1943
- package/src/openapi/platform/services/announcement-banner-service.ts +0 -142
- package/src/openapi/platform/services/app-data-policies-service.ts +0 -136
- package/src/openapi/platform/services/app-migration-service.ts +0 -289
- package/src/openapi/platform/services/app-properties-service.ts +0 -441
- package/src/openapi/platform/services/application-roles-service.ts +0 -247
- package/src/openapi/platform/services/audit-records-service.ts +0 -164
- package/src/openapi/platform/services/avatars-service.ts +0 -769
- package/src/openapi/platform/services/classification-levels-service.ts +0 -131
- package/src/openapi/platform/services/dashboards-service.ts +0 -1721
- package/src/openapi/platform/services/dynamic-modules-service.ts +0 -127
- package/src/openapi/platform/services/filter-sharing-service.ts +0 -687
- package/src/openapi/platform/services/filters-service.ts +0 -1901
- package/src/openapi/platform/services/group-and-user-picker-service.ts +0 -224
- package/src/openapi/platform/services/groups-service.ts +0 -751
- package/src/openapi/platform/services/issue-attachments-service.ts +0 -900
- package/src/openapi/platform/services/issue-comment-properties-service.ts +0 -324
- package/src/openapi/platform/services/issue-comments-service.ts +0 -812
- package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +0 -277
- package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +0 -1339
- package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +0 -994
- package/src/openapi/platform/services/issue-custom-field-options-service.ts +0 -651
- package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +0 -201
- package/src/openapi/platform/services/issue-field-configurations-service.ts +0 -1294
- package/src/openapi/platform/services/issue-fields-service.ts +0 -837
- package/src/openapi/platform/services/issue-link-types-service.ts +0 -360
- package/src/openapi/platform/services/issue-links-service.ts +0 -345
- package/src/openapi/platform/services/issue-navigator-settings-service.ts +0 -119
- package/src/openapi/platform/services/issue-notification-schemes-service.ts +0 -1209
- package/src/openapi/platform/services/issue-priorities-service.ts +0 -575
- package/src/openapi/platform/services/issue-properties-service.ts +0 -606
- package/src/openapi/platform/services/issue-remote-links-service.ts +0 -597
- package/src/openapi/platform/services/issue-resolutions-service.ts +0 -534
- package/src/openapi/platform/services/issue-search-service.ts +0 -1139
- package/src/openapi/platform/services/issue-security-level-service.ts +0 -250
- package/src/openapi/platform/services/issue-security-schemes-service.ts +0 -1240
- package/src/openapi/platform/services/issue-type-properties-service.ts +0 -325
- package/src/openapi/platform/services/issue-type-schemes-service.ts +0 -940
- package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +0 -994
- package/src/openapi/platform/services/issue-types-service.ts +0 -679
- package/src/openapi/platform/services/issue-votes-service.ts +0 -221
- package/src/openapi/platform/services/issue-watchers-service.ts +0 -331
- package/src/openapi/platform/services/issue-worklog-properties-service.ts +0 -348
- package/src/openapi/platform/services/issue-worklogs-service.ts +0 -1089
- package/src/openapi/platform/services/issues-service.ts +0 -3346
- package/src/openapi/platform/services/jira-expressions-service.ts +0 -407
- package/src/openapi/platform/services/jira-settings-service.ts +0 -415
- package/src/openapi/platform/services/jql-functions-apps-service.ts +0 -219
- package/src/openapi/platform/services/jql-service.ts +0 -896
- package/src/openapi/platform/services/labels-service.ts +0 -89
- package/src/openapi/platform/services/license-metrics-service.ts +0 -216
- package/src/openapi/platform/services/myself-service.ts +0 -520
- package/src/openapi/platform/services/permission-schemes-service.ts +0 -926
- package/src/openapi/platform/services/permissions-service.ts +0 -407
- package/src/openapi/platform/services/priority-schemes-service.ts +0 -1001
- package/src/openapi/platform/services/project-avatars-service.ts +0 -341
- package/src/openapi/platform/services/project-categories-service.ts +0 -318
- package/src/openapi/platform/services/project-classification-levels-service.ts +0 -232
- package/src/openapi/platform/services/project-components-service.ts +0 -1332
- package/src/openapi/platform/services/project-email-service.ts +0 -161
- package/src/openapi/platform/services/project-features-service.ts +0 -207
- package/src/openapi/platform/services/project-key-and-name-validation-service.ts +0 -200
- package/src/openapi/platform/services/project-permission-schemes-service.ts +0 -384
- package/src/openapi/platform/services/project-properties-service.ts +0 -320
- package/src/openapi/platform/services/project-role-actors-service.ts +0 -627
- package/src/openapi/platform/services/project-roles-service.ts +0 -867
- package/src/openapi/platform/services/project-types-service.ts +0 -297
- package/src/openapi/platform/services/project-versions-service.ts +0 -1287
- package/src/openapi/platform/services/projects-service.ts +0 -2196
- package/src/openapi/platform/services/screen-schemes-service.ts +0 -334
- package/src/openapi/platform/services/screen-tab-fields-service.ts +0 -276
- package/src/openapi/platform/services/screen-tabs-service.ts +0 -421
- package/src/openapi/platform/services/screens-service.ts +0 -528
- package/src/openapi/platform/services/server-info-service.ts +0 -88
- package/src/openapi/platform/services/service-registry-service.ts +0 -89
- package/src/openapi/platform/services/status-service.ts +0 -498
- package/src/openapi/platform/services/tasks-service.ts +0 -159
- package/src/openapi/platform/services/time-tracking-service.ts +0 -386
- package/src/openapi/platform/services/ui-modifications-apps-service.ts +0 -403
- package/src/openapi/platform/services/user-properties-service.ts +0 -413
- package/src/openapi/platform/services/user-search-service.ts +0 -1214
- package/src/openapi/platform/services/users-service.ts +0 -1108
- package/src/openapi/platform/services/webhooks-service.ts +0 -458
- package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +0 -1313
- package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +0 -189
- package/src/openapi/platform/services/workflow-schemes-service.ts +0 -1617
- package/src/openapi/platform/services/workflow-status-categories-service.ts +0 -151
- package/src/openapi/platform/services/workflow-statuses-service.ts +0 -176
- package/src/openapi/platform/services/workflow-transition-properties-service.ts +0 -388
- package/src/openapi/platform/services/workflow-transition-rules-service.ts +0 -485
- package/src/openapi/platform/services/workflows-service.ts +0 -3477
- package/src/openapi/platform/validation-schema-storage.ts +0 -186
- package/src/openapi/software/base-jira-software-api-client.ts +0 -447
- package/src/openapi/software/core/common-http-client.ts +0 -723
- package/src/openapi/software/core/common-http-service.ts +0 -22
- package/src/openapi/software/core/common-validation-schema-storage.ts +0 -105
- package/src/openapi/software/models/board.ts +0 -918
- package/src/openapi/software/services/backlog-service.ts +0 -160
- package/src/openapi/software/services/board-service.ts +0 -4189
- package/src/openapi/software/services/builds-service.ts +0 -571
- package/src/openapi/software/services/deployments-service.ts +0 -403
- package/src/openapi/software/services/dev-ops-components-service.ts +0 -371
- package/src/openapi/software/services/development-information-service.ts +0 -2357
- package/src/openapi/software/services/epic-service.ts +0 -854
- package/src/openapi/software/services/feature-flags-service.ts +0 -303
- package/src/openapi/software/services/issue-service.ts +0 -529
- package/src/openapi/software/services/operations-service.ts +0 -741
- package/src/openapi/software/services/remote-links-service.ts +0 -653
- package/src/openapi/software/services/security-information-service.ts +0 -495
- package/src/openapi/software/services/sprint-service.ts +0 -969
- package/src/openapi/software/validation-schema-storage.ts +0 -186
- package/tsconfig.build.json +0 -7
- package/tsconfig.json +0 -4
|
@@ -1,528 +0,0 @@
|
|
|
1
|
-
// DO NOT EDIT!
|
|
2
|
-
// This file is generated by "api-typescript-generator".
|
|
3
|
-
// To update this file run "yarn build:openapi".
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
import * as commonHttpClient from "../core/common-http-client";
|
|
7
|
-
import { CommonHttpService } from "../core/common-http-service";
|
|
8
|
-
import {
|
|
9
|
-
registerCommonValidationSchemas,
|
|
10
|
-
type ScreenableField,
|
|
11
|
-
} from "../models/common";
|
|
12
|
-
import {
|
|
13
|
-
type PageBeanScreen,
|
|
14
|
-
type PageBeanScreenWithTab,
|
|
15
|
-
registerScreensValidationSchemas,
|
|
16
|
-
type Screen,
|
|
17
|
-
type ScreenDetails,
|
|
18
|
-
type UpdateScreenDetails,
|
|
19
|
-
} from "../models/screens";
|
|
20
|
-
import { validationSchemaStorage } from "../validation-schema-storage";
|
|
21
|
-
/**
|
|
22
|
-
* This resource represents the screens used to record issue details. Use it to:
|
|
23
|
-
*
|
|
24
|
-
* * get details of all screens.
|
|
25
|
-
* * get details of all the fields available for use on screens.
|
|
26
|
-
* * create screens.
|
|
27
|
-
* * delete screens.
|
|
28
|
-
* * update screens.
|
|
29
|
-
* * add a field to the default screen.
|
|
30
|
-
*/
|
|
31
|
-
export class ScreensService extends CommonHttpService {
|
|
32
|
-
/**
|
|
33
|
-
* Adds a field to the default tab of the default screen.
|
|
34
|
-
*
|
|
35
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
36
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
37
|
-
*
|
|
38
|
-
* @returns Returned if the request is successful.
|
|
39
|
-
* @path {POST} /rest/api/3/screens/addToDefault/{fieldId}
|
|
40
|
-
* @scopes-current manage:jira-project
|
|
41
|
-
* @scopes-beta read:project:jira, read:screen:jira, write:screen:jira
|
|
42
|
-
*/
|
|
43
|
-
addFieldToDefaultScreen({
|
|
44
|
-
fieldId,
|
|
45
|
-
}: {
|
|
46
|
-
/** The ID of the field. */
|
|
47
|
-
fieldId: string;
|
|
48
|
-
}): Promise<unknown> {
|
|
49
|
-
return this.getClientInstance()
|
|
50
|
-
.request({
|
|
51
|
-
path: "/rest/api/3/screens/addToDefault/{fieldId}",
|
|
52
|
-
method: "POST",
|
|
53
|
-
pathParams: {
|
|
54
|
-
fieldId,
|
|
55
|
-
},
|
|
56
|
-
})
|
|
57
|
-
.then(
|
|
58
|
-
this.getClientInstance().responseHandler({
|
|
59
|
-
200: {
|
|
60
|
-
"application/json": "json",
|
|
61
|
-
},
|
|
62
|
-
}),
|
|
63
|
-
)
|
|
64
|
-
.then(
|
|
65
|
-
commonHttpClient.castResponse<{
|
|
66
|
-
status: 200;
|
|
67
|
-
mediaType: "application/json";
|
|
68
|
-
body: unknown;
|
|
69
|
-
}>(),
|
|
70
|
-
)
|
|
71
|
-
.then(
|
|
72
|
-
validationSchemaStorage.validator(
|
|
73
|
-
"ScreensService.addFieldToDefaultScreen.response",
|
|
74
|
-
),
|
|
75
|
-
)
|
|
76
|
-
.then(commonHttpClient.getBody);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Creates a screen with a default field tab.
|
|
80
|
-
*
|
|
81
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
82
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
83
|
-
*
|
|
84
|
-
* @returns Returned if the request is successful.
|
|
85
|
-
*
|
|
86
|
-
* example: {
|
|
87
|
-
* "id": 10005,
|
|
88
|
-
* "name": "Resolve Security Issue Screen",
|
|
89
|
-
* "description": "Enables changes to resolution and linked issues."
|
|
90
|
-
* }
|
|
91
|
-
* @path {POST} /rest/api/3/screens
|
|
92
|
-
* @scopes-current manage:jira-project
|
|
93
|
-
* @scopes-beta read:project:jira, read:screen:jira, write:screen:jira, read:avatar:jira,
|
|
94
|
-
* read:project-category:jira
|
|
95
|
-
*/
|
|
96
|
-
createScreen({
|
|
97
|
-
screenDetails,
|
|
98
|
-
}: {
|
|
99
|
-
/**
|
|
100
|
-
* @example {
|
|
101
|
-
* "description": "Enables changes to resolution and linked issues.",
|
|
102
|
-
* "name": "Resolve Security Issue Screen"
|
|
103
|
-
* }
|
|
104
|
-
*/
|
|
105
|
-
screenDetails: ScreenDetails;
|
|
106
|
-
}): Promise<Screen> {
|
|
107
|
-
return this.getClientInstance()
|
|
108
|
-
.request({
|
|
109
|
-
path: "/rest/api/3/screens",
|
|
110
|
-
method: "POST",
|
|
111
|
-
headers: {
|
|
112
|
-
"Content-Type": "application/json",
|
|
113
|
-
},
|
|
114
|
-
body: screenDetails,
|
|
115
|
-
})
|
|
116
|
-
.then(
|
|
117
|
-
this.getClientInstance().responseHandler({
|
|
118
|
-
201: {
|
|
119
|
-
"application/json": "json",
|
|
120
|
-
},
|
|
121
|
-
}),
|
|
122
|
-
)
|
|
123
|
-
.then(
|
|
124
|
-
commonHttpClient.castResponse<{
|
|
125
|
-
status: 201;
|
|
126
|
-
mediaType: "application/json";
|
|
127
|
-
body: Screen;
|
|
128
|
-
}>(),
|
|
129
|
-
)
|
|
130
|
-
.then(
|
|
131
|
-
validationSchemaStorage.validator(
|
|
132
|
-
"ScreensService.createScreen.response",
|
|
133
|
-
),
|
|
134
|
-
)
|
|
135
|
-
.then(commonHttpClient.getBody);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Deletes a screen. A screen cannot be deleted if it is used in a screen scheme,
|
|
139
|
-
* workflow, or workflow draft.
|
|
140
|
-
*
|
|
141
|
-
* Only screens used in classic projects can be deleted.
|
|
142
|
-
*
|
|
143
|
-
* @path {DELETE} /rest/api/3/screens/{screenId}
|
|
144
|
-
* @scopes-current manage:jira-project
|
|
145
|
-
* @scopes-beta delete:screen:jira
|
|
146
|
-
*/
|
|
147
|
-
deleteScreen({
|
|
148
|
-
screenId,
|
|
149
|
-
}: {
|
|
150
|
-
/** The ID of the screen. */
|
|
151
|
-
screenId: number;
|
|
152
|
-
}): Promise<void> {
|
|
153
|
-
return this.getClientInstance()
|
|
154
|
-
.request({
|
|
155
|
-
path: "/rest/api/3/screens/{screenId}",
|
|
156
|
-
method: "DELETE",
|
|
157
|
-
pathParams: {
|
|
158
|
-
screenId,
|
|
159
|
-
},
|
|
160
|
-
})
|
|
161
|
-
.then(commonHttpClient.discardResult);
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Returns the fields that can be added to a tab on a screen.
|
|
165
|
-
*
|
|
166
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
167
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
168
|
-
*
|
|
169
|
-
* @returns Returned if the request is successful.
|
|
170
|
-
* @path {GET} /rest/api/3/screens/{screenId}/availableFields
|
|
171
|
-
* @scopes-current manage:jira-project
|
|
172
|
-
* @scopes-beta read:screen-field:jira, read:screenable-field:jira
|
|
173
|
-
*/
|
|
174
|
-
getAvailableScreenFields({
|
|
175
|
-
screenId,
|
|
176
|
-
}: {
|
|
177
|
-
/** The ID of the screen. */
|
|
178
|
-
screenId: number;
|
|
179
|
-
}): Promise<ScreenableField[]> {
|
|
180
|
-
return this.getClientInstance()
|
|
181
|
-
.request({
|
|
182
|
-
path: "/rest/api/3/screens/{screenId}/availableFields",
|
|
183
|
-
method: "GET",
|
|
184
|
-
pathParams: {
|
|
185
|
-
screenId,
|
|
186
|
-
},
|
|
187
|
-
})
|
|
188
|
-
.then(
|
|
189
|
-
this.getClientInstance().responseHandler({
|
|
190
|
-
200: {
|
|
191
|
-
"application/json": "json",
|
|
192
|
-
},
|
|
193
|
-
}),
|
|
194
|
-
)
|
|
195
|
-
.then(
|
|
196
|
-
commonHttpClient.castResponse<{
|
|
197
|
-
status: 200;
|
|
198
|
-
mediaType: "application/json";
|
|
199
|
-
body: ScreenableField[];
|
|
200
|
-
}>(),
|
|
201
|
-
)
|
|
202
|
-
.then(
|
|
203
|
-
validationSchemaStorage.validator(
|
|
204
|
-
"ScreensService.getAvailableScreenFields.response",
|
|
205
|
-
),
|
|
206
|
-
)
|
|
207
|
-
.then(commonHttpClient.getBody);
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Returns a [paginated](#pagination) list of all screens or those specified by
|
|
211
|
-
* one or more screen IDs.
|
|
212
|
-
*
|
|
213
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
214
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
215
|
-
*
|
|
216
|
-
* @returns Returned if the request is successful.
|
|
217
|
-
*
|
|
218
|
-
* example: {
|
|
219
|
-
* "isLast": true,
|
|
220
|
-
* "maxResults": 100,
|
|
221
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/screens",
|
|
222
|
-
* "startAt": 0,
|
|
223
|
-
* "total": 3,
|
|
224
|
-
* "values": [
|
|
225
|
-
* {
|
|
226
|
-
* "id": 1,
|
|
227
|
-
* "name": "Default Screen",
|
|
228
|
-
* "description": "Provides for the update all system fields."
|
|
229
|
-
* },
|
|
230
|
-
* {
|
|
231
|
-
* "id": 2,
|
|
232
|
-
* "name": "Workflow Screen",
|
|
233
|
-
* "description": "This screen is used in the workflow and enables you to
|
|
234
|
-
* assign issues."
|
|
235
|
-
* },
|
|
236
|
-
* {
|
|
237
|
-
* "id": 3,
|
|
238
|
-
* "name": "Resolve Issue Screen",
|
|
239
|
-
* "description": "Offers the ability to set resolution, change fix
|
|
240
|
-
* versions, and assign an issue."
|
|
241
|
-
* }
|
|
242
|
-
* ]
|
|
243
|
-
* }
|
|
244
|
-
* @path {GET} /rest/api/3/screens
|
|
245
|
-
* @scopes-current manage:jira-project
|
|
246
|
-
* @scopes-beta read:project:jira, read:screen:jira, read:avatar:jira,
|
|
247
|
-
* read:project-category:jira
|
|
248
|
-
*/
|
|
249
|
-
getScreens({
|
|
250
|
-
startAt,
|
|
251
|
-
maxResults,
|
|
252
|
-
id,
|
|
253
|
-
queryString,
|
|
254
|
-
scope,
|
|
255
|
-
orderBy,
|
|
256
|
-
}: {
|
|
257
|
-
/** The index of the first item to return in a page of results (page offset). */
|
|
258
|
-
startAt?: number;
|
|
259
|
-
/** The maximum number of items to return per page. */
|
|
260
|
-
maxResults?: number;
|
|
261
|
-
/**
|
|
262
|
-
* The list of screen IDs. To include multiple IDs, provide an ampersand-separated
|
|
263
|
-
* list. For example, `id=10000&id=10001`.
|
|
264
|
-
*/
|
|
265
|
-
id?: number[];
|
|
266
|
-
/** String used to perform a case-insensitive partial match with screen name. */
|
|
267
|
-
queryString?: string;
|
|
268
|
-
/**
|
|
269
|
-
* The scope filter string. To filter by multiple scope, provide an
|
|
270
|
-
* ampersand-separated list. For example, `scope=GLOBAL&scope=PROJECT`.
|
|
271
|
-
*/
|
|
272
|
-
scope?: ("GLOBAL" | "TEMPLATE" | "PROJECT")[];
|
|
273
|
-
/**
|
|
274
|
-
* [Order](#ordering) the results by a field:
|
|
275
|
-
*
|
|
276
|
-
* * `id` Sorts by screen ID.
|
|
277
|
-
* * `name` Sorts by screen name.
|
|
278
|
-
*/
|
|
279
|
-
orderBy?: "name" | "-name" | "+name" | "id" | "-id" | "+id";
|
|
280
|
-
}): Promise<PageBeanScreen> {
|
|
281
|
-
return this.getClientInstance()
|
|
282
|
-
.request({
|
|
283
|
-
path: "/rest/api/3/screens",
|
|
284
|
-
method: "GET",
|
|
285
|
-
query: {
|
|
286
|
-
startAt,
|
|
287
|
-
maxResults,
|
|
288
|
-
id,
|
|
289
|
-
queryString,
|
|
290
|
-
scope,
|
|
291
|
-
orderBy,
|
|
292
|
-
},
|
|
293
|
-
})
|
|
294
|
-
.then(
|
|
295
|
-
this.getClientInstance().responseHandler({
|
|
296
|
-
200: {
|
|
297
|
-
"application/json": "json",
|
|
298
|
-
},
|
|
299
|
-
}),
|
|
300
|
-
)
|
|
301
|
-
.then(
|
|
302
|
-
commonHttpClient.castResponse<{
|
|
303
|
-
status: 200;
|
|
304
|
-
mediaType: "application/json";
|
|
305
|
-
body: PageBeanScreen;
|
|
306
|
-
}>(),
|
|
307
|
-
)
|
|
308
|
-
.then(
|
|
309
|
-
validationSchemaStorage.validator("ScreensService.getScreens.response"),
|
|
310
|
-
)
|
|
311
|
-
.then(commonHttpClient.getBody);
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Returns a [paginated](#pagination) list of the screens a field is used in.
|
|
315
|
-
*
|
|
316
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
317
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
318
|
-
*
|
|
319
|
-
* @returns Returned if the request is successful.
|
|
320
|
-
*
|
|
321
|
-
* example: {
|
|
322
|
-
* "isLast": false,
|
|
323
|
-
* "maxResults": 1,
|
|
324
|
-
* "startAt": 0,
|
|
325
|
-
* "total": 5,
|
|
326
|
-
* "values": [
|
|
327
|
-
* {
|
|
328
|
-
* "id": 10001,
|
|
329
|
-
* "name": "Default Screen",
|
|
330
|
-
* "description": "Provides for the update of all system fields.",
|
|
331
|
-
* "tab": {
|
|
332
|
-
* "id": 10000,
|
|
333
|
-
* "name": "Fields Tab"
|
|
334
|
-
* }
|
|
335
|
-
* }
|
|
336
|
-
* ]
|
|
337
|
-
* }
|
|
338
|
-
* @path {GET} /rest/api/3/field/{fieldId}/screens
|
|
339
|
-
* @scopes-current manage:jira-project
|
|
340
|
-
* @scopes-beta read:screen:jira, read:avatar:jira, read:project-category:jira,
|
|
341
|
-
* read:project:jira, read:screen-tab:jira
|
|
342
|
-
*/
|
|
343
|
-
getScreensForField({
|
|
344
|
-
fieldId,
|
|
345
|
-
startAt,
|
|
346
|
-
maxResults,
|
|
347
|
-
expand,
|
|
348
|
-
}: {
|
|
349
|
-
/** The ID of the field to return screens for. */
|
|
350
|
-
fieldId: string;
|
|
351
|
-
/** The index of the first item to return in a page of results (page offset). */
|
|
352
|
-
startAt?: number;
|
|
353
|
-
/** The maximum number of items to return per page. */
|
|
354
|
-
maxResults?: number;
|
|
355
|
-
/**
|
|
356
|
-
* Use [expand](#expansion) to include additional information about screens in the
|
|
357
|
-
* response. This parameter accepts `tab` which returns details about the screen
|
|
358
|
-
* tabs the field is used in.
|
|
359
|
-
*/
|
|
360
|
-
expand?: string;
|
|
361
|
-
}): Promise<PageBeanScreenWithTab> {
|
|
362
|
-
return this.getClientInstance()
|
|
363
|
-
.request({
|
|
364
|
-
path: "/rest/api/3/field/{fieldId}/screens",
|
|
365
|
-
method: "GET",
|
|
366
|
-
pathParams: {
|
|
367
|
-
fieldId,
|
|
368
|
-
},
|
|
369
|
-
query: {
|
|
370
|
-
startAt,
|
|
371
|
-
maxResults,
|
|
372
|
-
expand,
|
|
373
|
-
},
|
|
374
|
-
})
|
|
375
|
-
.then(
|
|
376
|
-
this.getClientInstance().responseHandler({
|
|
377
|
-
200: {
|
|
378
|
-
"application/json": "json",
|
|
379
|
-
},
|
|
380
|
-
}),
|
|
381
|
-
)
|
|
382
|
-
.then(
|
|
383
|
-
commonHttpClient.castResponse<{
|
|
384
|
-
status: 200;
|
|
385
|
-
mediaType: "application/json";
|
|
386
|
-
body: PageBeanScreenWithTab;
|
|
387
|
-
}>(),
|
|
388
|
-
)
|
|
389
|
-
.then(
|
|
390
|
-
validationSchemaStorage.validator(
|
|
391
|
-
"ScreensService.getScreensForField.response",
|
|
392
|
-
),
|
|
393
|
-
)
|
|
394
|
-
.then(commonHttpClient.getBody);
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* Updates a screen. Only screens used in classic projects can be updated.
|
|
398
|
-
*
|
|
399
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
400
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
401
|
-
*
|
|
402
|
-
* @returns Returned if the request is successful.
|
|
403
|
-
*
|
|
404
|
-
* example: {
|
|
405
|
-
* "id": 10005,
|
|
406
|
-
* "name": "Resolve Security Issue Screen",
|
|
407
|
-
* "description": "Enables changes to resolution and linked issues."
|
|
408
|
-
* }
|
|
409
|
-
* @path {PUT} /rest/api/3/screens/{screenId}
|
|
410
|
-
* @scopes-current manage:jira-project
|
|
411
|
-
* @scopes-beta read:project:jira, read:screen:jira, write:screen:jira, read:avatar:jira,
|
|
412
|
-
* read:project-category:jira
|
|
413
|
-
*/
|
|
414
|
-
updateScreen({
|
|
415
|
-
screenId,
|
|
416
|
-
updateScreenDetails,
|
|
417
|
-
}: {
|
|
418
|
-
/** The ID of the screen. */
|
|
419
|
-
screenId: number;
|
|
420
|
-
/**
|
|
421
|
-
* @example {
|
|
422
|
-
* "description": "Enables changes to resolution and linked issues for
|
|
423
|
-
* accessibility related issues.",
|
|
424
|
-
* "name": "Resolve Accessibility Issue Screen"
|
|
425
|
-
* }
|
|
426
|
-
*/
|
|
427
|
-
updateScreenDetails: UpdateScreenDetails;
|
|
428
|
-
}): Promise<Screen> {
|
|
429
|
-
return this.getClientInstance()
|
|
430
|
-
.request({
|
|
431
|
-
path: "/rest/api/3/screens/{screenId}",
|
|
432
|
-
method: "PUT",
|
|
433
|
-
pathParams: {
|
|
434
|
-
screenId,
|
|
435
|
-
},
|
|
436
|
-
headers: {
|
|
437
|
-
"Content-Type": "application/json",
|
|
438
|
-
},
|
|
439
|
-
body: updateScreenDetails,
|
|
440
|
-
})
|
|
441
|
-
.then(
|
|
442
|
-
this.getClientInstance().responseHandler({
|
|
443
|
-
200: {
|
|
444
|
-
"application/json": "json",
|
|
445
|
-
},
|
|
446
|
-
}),
|
|
447
|
-
)
|
|
448
|
-
.then(
|
|
449
|
-
commonHttpClient.castResponse<{
|
|
450
|
-
status: 200;
|
|
451
|
-
mediaType: "application/json";
|
|
452
|
-
body: Screen;
|
|
453
|
-
}>(),
|
|
454
|
-
)
|
|
455
|
-
.then(
|
|
456
|
-
validationSchemaStorage.validator(
|
|
457
|
-
"ScreensService.updateScreen.response",
|
|
458
|
-
),
|
|
459
|
-
)
|
|
460
|
-
.then(commonHttpClient.getBody);
|
|
461
|
-
}
|
|
462
|
-
static initialize() {
|
|
463
|
-
validationSchemaStorage.registerExtensible(
|
|
464
|
-
"ScreensService.getScreensForField.response",
|
|
465
|
-
z
|
|
466
|
-
.object({
|
|
467
|
-
status: z.literal(200),
|
|
468
|
-
mediaType: z.literal("application/json"),
|
|
469
|
-
body: validationSchemaStorage.lazy("PageBeanScreenWithTab"),
|
|
470
|
-
})
|
|
471
|
-
.describe("ScreensService.getScreensForField.response"),
|
|
472
|
-
);
|
|
473
|
-
validationSchemaStorage.registerExtensible(
|
|
474
|
-
"ScreensService.getScreens.response",
|
|
475
|
-
z
|
|
476
|
-
.object({
|
|
477
|
-
status: z.literal(200),
|
|
478
|
-
mediaType: z.literal("application/json"),
|
|
479
|
-
body: validationSchemaStorage.lazy("PageBeanScreen"),
|
|
480
|
-
})
|
|
481
|
-
.describe("ScreensService.getScreens.response"),
|
|
482
|
-
);
|
|
483
|
-
validationSchemaStorage.registerExtensible(
|
|
484
|
-
"ScreensService.createScreen.response",
|
|
485
|
-
z
|
|
486
|
-
.object({
|
|
487
|
-
status: z.literal(201),
|
|
488
|
-
mediaType: z.literal("application/json"),
|
|
489
|
-
body: validationSchemaStorage.lazy("Screen"),
|
|
490
|
-
})
|
|
491
|
-
.describe("ScreensService.createScreen.response"),
|
|
492
|
-
);
|
|
493
|
-
validationSchemaStorage.registerExtensible(
|
|
494
|
-
"ScreensService.updateScreen.response",
|
|
495
|
-
z
|
|
496
|
-
.object({
|
|
497
|
-
status: z.literal(200),
|
|
498
|
-
mediaType: z.literal("application/json"),
|
|
499
|
-
body: validationSchemaStorage.lazy("Screen"),
|
|
500
|
-
})
|
|
501
|
-
.describe("ScreensService.updateScreen.response"),
|
|
502
|
-
);
|
|
503
|
-
validationSchemaStorage.registerExtensible(
|
|
504
|
-
"ScreensService.getAvailableScreenFields.response",
|
|
505
|
-
z
|
|
506
|
-
.object({
|
|
507
|
-
status: z.literal(200),
|
|
508
|
-
mediaType: z.literal("application/json"),
|
|
509
|
-
body: z.array(validationSchemaStorage.lazy("ScreenableField")),
|
|
510
|
-
})
|
|
511
|
-
.describe("ScreensService.getAvailableScreenFields.response"),
|
|
512
|
-
);
|
|
513
|
-
validationSchemaStorage.registerExtensible(
|
|
514
|
-
"ScreensService.addFieldToDefaultScreen.response",
|
|
515
|
-
z
|
|
516
|
-
.object({
|
|
517
|
-
status: z.literal(200),
|
|
518
|
-
mediaType: z.literal("application/json"),
|
|
519
|
-
body: z.unknown(),
|
|
520
|
-
})
|
|
521
|
-
.describe("ScreensService.addFieldToDefaultScreen.response"),
|
|
522
|
-
);
|
|
523
|
-
validationSchemaStorage.registerOnce([
|
|
524
|
-
registerScreensValidationSchemas,
|
|
525
|
-
registerCommonValidationSchemas,
|
|
526
|
-
]);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
// DO NOT EDIT!
|
|
2
|
-
// This file is generated by "api-typescript-generator".
|
|
3
|
-
// To update this file run "yarn build:openapi".
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
import * as commonHttpClient from "../core/common-http-client";
|
|
7
|
-
import { CommonHttpService } from "../core/common-http-service";
|
|
8
|
-
import {
|
|
9
|
-
registerServerInfoValidationSchemas,
|
|
10
|
-
type ServerInformation,
|
|
11
|
-
} from "../models/server-info";
|
|
12
|
-
import { validationSchemaStorage } from "../validation-schema-storage";
|
|
13
|
-
/** This resource provides information about the Jira instance. */
|
|
14
|
-
export class ServerInfoService extends CommonHttpService {
|
|
15
|
-
/**
|
|
16
|
-
* Returns information about the Jira instance.
|
|
17
|
-
*
|
|
18
|
-
* This operation can be accessed anonymously.
|
|
19
|
-
*
|
|
20
|
-
* **[Permissions](#permissions) required:** None.
|
|
21
|
-
*
|
|
22
|
-
* @returns Returned if the request is successful.
|
|
23
|
-
*
|
|
24
|
-
* example: {
|
|
25
|
-
* "baseUrl": "https://your-domain.atlassian.net",
|
|
26
|
-
* "buildDate": "2020-03-26T22:20:59.000+0000",
|
|
27
|
-
* "buildNumber": 582,
|
|
28
|
-
* "defaultLocale": {
|
|
29
|
-
* "locale": "en_AU"
|
|
30
|
-
* },
|
|
31
|
-
* "displayUrl": "https://instance.jira.your-domain.com",
|
|
32
|
-
* "displayUrlServicedeskHelpCenter": "https://instance.help.your-domain.com",
|
|
33
|
-
* "scmInfo": "1f51473f5c7b75c1a69a0090f4832cdc5053702a",
|
|
34
|
-
* "serverTime": "2020-03-31T16:43:50.000+0000",
|
|
35
|
-
* "serverTimeZone": "Australia/Sydney",
|
|
36
|
-
* "serverTitle": "My Jira instance",
|
|
37
|
-
* "version": "1001.0.0-SNAPSHOT",
|
|
38
|
-
* "versionNumbers": [
|
|
39
|
-
* 5,
|
|
40
|
-
* 0,
|
|
41
|
-
* 0
|
|
42
|
-
* ]
|
|
43
|
-
* }
|
|
44
|
-
* @path {GET} /rest/api/3/serverInfo
|
|
45
|
-
* @scopes-current
|
|
46
|
-
* @scopes-beta
|
|
47
|
-
*/
|
|
48
|
-
getServerInfo(): Promise<ServerInformation> {
|
|
49
|
-
return this.getClientInstance()
|
|
50
|
-
.request({
|
|
51
|
-
path: "/rest/api/3/serverInfo",
|
|
52
|
-
method: "GET",
|
|
53
|
-
})
|
|
54
|
-
.then(
|
|
55
|
-
this.getClientInstance().responseHandler({
|
|
56
|
-
200: {
|
|
57
|
-
"application/json": "json",
|
|
58
|
-
},
|
|
59
|
-
}),
|
|
60
|
-
)
|
|
61
|
-
.then(
|
|
62
|
-
commonHttpClient.castResponse<{
|
|
63
|
-
status: 200;
|
|
64
|
-
mediaType: "application/json";
|
|
65
|
-
body: ServerInformation;
|
|
66
|
-
}>(),
|
|
67
|
-
)
|
|
68
|
-
.then(
|
|
69
|
-
validationSchemaStorage.validator(
|
|
70
|
-
"ServerInfoService.getServerInfo.response",
|
|
71
|
-
),
|
|
72
|
-
)
|
|
73
|
-
.then(commonHttpClient.getBody);
|
|
74
|
-
}
|
|
75
|
-
static initialize() {
|
|
76
|
-
validationSchemaStorage.registerExtensible(
|
|
77
|
-
"ServerInfoService.getServerInfo.response",
|
|
78
|
-
z
|
|
79
|
-
.object({
|
|
80
|
-
status: z.literal(200),
|
|
81
|
-
mediaType: z.literal("application/json"),
|
|
82
|
-
body: validationSchemaStorage.lazy("ServerInformation"),
|
|
83
|
-
})
|
|
84
|
-
.describe("ServerInfoService.getServerInfo.response"),
|
|
85
|
-
);
|
|
86
|
-
validationSchemaStorage.registerOnce([registerServerInfoValidationSchemas]);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// DO NOT EDIT!
|
|
2
|
-
// This file is generated by "api-typescript-generator".
|
|
3
|
-
// To update this file run "yarn build:openapi".
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
import * as commonHttpClient from "../core/common-http-client";
|
|
7
|
-
import { CommonHttpService } from "../core/common-http-service";
|
|
8
|
-
import {
|
|
9
|
-
registerServiceRegistryValidationSchemas,
|
|
10
|
-
type ServiceRegistry,
|
|
11
|
-
} from "../models/service-registry";
|
|
12
|
-
import { validationSchemaStorage } from "../validation-schema-storage";
|
|
13
|
-
/**
|
|
14
|
-
* This resource represents a service registry. Use it to retrieve attributes
|
|
15
|
-
* related to a [service
|
|
16
|
-
* registry](https://support.atlassian.com/jira-service-management-cloud/docs/what-is-services/)
|
|
17
|
-
* in JSM.
|
|
18
|
-
*/
|
|
19
|
-
export class ServiceRegistryService extends CommonHttpService {
|
|
20
|
-
/**
|
|
21
|
-
* Retrieve the attributes of given service registries.
|
|
22
|
-
*
|
|
23
|
-
* **[Permissions](#permissions) required:** Only Connect apps can make this
|
|
24
|
-
* request and the servicesIds belong to the tenant you are requesting
|
|
25
|
-
*
|
|
26
|
-
* @returns Returned if the request is successful.
|
|
27
|
-
* @path {GET} /rest/atlassian-connect/1/service-registry
|
|
28
|
-
*/
|
|
29
|
-
serviceRegistryResourceServicesGet({
|
|
30
|
-
serviceIds,
|
|
31
|
-
}: {
|
|
32
|
-
/**
|
|
33
|
-
* The ID of the services (the strings starting with "b:" need to be decoded in
|
|
34
|
-
* Base64).
|
|
35
|
-
*
|
|
36
|
-
* @example [
|
|
37
|
-
* "ari:cloud:graph::service/ca075ed7-6ea7-4563-acb3-000000000000/f51d7252-61e0-11ee-b94d-000000000000",
|
|
38
|
-
* "ari:cloud:graph::service/ca075ed7-6ea7-4563-acb3-000000000000/f51d7252-61e0-11ee-b94d-000000000001"
|
|
39
|
-
* ]
|
|
40
|
-
*/
|
|
41
|
-
serviceIds: string[];
|
|
42
|
-
}): Promise<ServiceRegistry[]> {
|
|
43
|
-
return this.getClientInstance()
|
|
44
|
-
.request({
|
|
45
|
-
path: "/rest/atlassian-connect/1/service-registry",
|
|
46
|
-
method: "GET",
|
|
47
|
-
query: {
|
|
48
|
-
serviceIds,
|
|
49
|
-
},
|
|
50
|
-
})
|
|
51
|
-
.then(
|
|
52
|
-
this.getClientInstance().responseHandler({
|
|
53
|
-
200: {
|
|
54
|
-
"application/json": "json",
|
|
55
|
-
},
|
|
56
|
-
}),
|
|
57
|
-
)
|
|
58
|
-
.then(
|
|
59
|
-
commonHttpClient.castResponse<{
|
|
60
|
-
status: 200;
|
|
61
|
-
mediaType: "application/json";
|
|
62
|
-
body: ServiceRegistry[];
|
|
63
|
-
}>(),
|
|
64
|
-
)
|
|
65
|
-
.then(
|
|
66
|
-
validationSchemaStorage.validator(
|
|
67
|
-
"ServiceRegistryService.ServiceRegistryResource.services_get.response",
|
|
68
|
-
),
|
|
69
|
-
)
|
|
70
|
-
.then(commonHttpClient.getBody);
|
|
71
|
-
}
|
|
72
|
-
static initialize() {
|
|
73
|
-
validationSchemaStorage.registerExtensible(
|
|
74
|
-
"ServiceRegistryService.ServiceRegistryResource.services_get.response",
|
|
75
|
-
z
|
|
76
|
-
.object({
|
|
77
|
-
status: z.literal(200),
|
|
78
|
-
mediaType: z.literal("application/json"),
|
|
79
|
-
body: z.array(validationSchemaStorage.lazy("ServiceRegistry")),
|
|
80
|
-
})
|
|
81
|
-
.describe(
|
|
82
|
-
"ServiceRegistryService.ServiceRegistryResource.services_get.response",
|
|
83
|
-
),
|
|
84
|
-
);
|
|
85
|
-
validationSchemaStorage.registerOnce([
|
|
86
|
-
registerServiceRegistryValidationSchemas,
|
|
87
|
-
]);
|
|
88
|
-
}
|
|
89
|
-
}
|