@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,360 +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
|
-
type IssueLinkType,
|
|
10
|
-
registerCommonValidationSchemas,
|
|
11
|
-
} from "../models/common";
|
|
12
|
-
import {
|
|
13
|
-
type IssueLinkTypes,
|
|
14
|
-
registerIssueLinkTypesValidationSchemas,
|
|
15
|
-
} from "../models/issue-link-types";
|
|
16
|
-
import { validationSchemaStorage } from "../validation-schema-storage";
|
|
17
|
-
/**
|
|
18
|
-
* This resource represents [issue link](#api-group-Issue-links) types. Use it to
|
|
19
|
-
* get, create, update, and delete link issue types as well as get lists of all
|
|
20
|
-
* link issue types.
|
|
21
|
-
*
|
|
22
|
-
* To use it, the site must have [issue
|
|
23
|
-
* linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
24
|
-
*/
|
|
25
|
-
export class IssueLinkTypesService extends CommonHttpService {
|
|
26
|
-
/**
|
|
27
|
-
* Creates an issue link type. Use this operation to create descriptions of the
|
|
28
|
-
* reasons why issues are linked. The issue link type consists of a name and
|
|
29
|
-
* descriptions for a link's inward and outward relationships.
|
|
30
|
-
*
|
|
31
|
-
* To use this operation, the site must have [issue
|
|
32
|
-
* linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
33
|
-
*
|
|
34
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
35
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
36
|
-
*
|
|
37
|
-
* @returns Returned if the request is successful.
|
|
38
|
-
*
|
|
39
|
-
* example: {
|
|
40
|
-
* "id": "1000",
|
|
41
|
-
* "inward": "Duplicated by",
|
|
42
|
-
* "name": "Duplicate",
|
|
43
|
-
* "outward": "Duplicates",
|
|
44
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueLinkType/1000"
|
|
45
|
-
* }
|
|
46
|
-
* @path {POST} /rest/api/3/issueLinkType
|
|
47
|
-
* @scopes-current manage:jira-configuration
|
|
48
|
-
* @scopes-beta write:issue-link-type:jira
|
|
49
|
-
*/
|
|
50
|
-
createIssueLinkType({
|
|
51
|
-
issueLinkType,
|
|
52
|
-
}: {
|
|
53
|
-
/**
|
|
54
|
-
* @example {
|
|
55
|
-
* "inward": "Duplicated by",
|
|
56
|
-
* "name": "Duplicate",
|
|
57
|
-
* "outward": "Duplicates"
|
|
58
|
-
* }
|
|
59
|
-
*/
|
|
60
|
-
issueLinkType: IssueLinkType;
|
|
61
|
-
}): Promise<IssueLinkType> {
|
|
62
|
-
return this.getClientInstance()
|
|
63
|
-
.request({
|
|
64
|
-
path: "/rest/api/3/issueLinkType",
|
|
65
|
-
method: "POST",
|
|
66
|
-
headers: {
|
|
67
|
-
"Content-Type": "application/json",
|
|
68
|
-
},
|
|
69
|
-
body: issueLinkType,
|
|
70
|
-
})
|
|
71
|
-
.then(
|
|
72
|
-
this.getClientInstance().responseHandler({
|
|
73
|
-
201: {
|
|
74
|
-
"application/json": "json",
|
|
75
|
-
},
|
|
76
|
-
}),
|
|
77
|
-
)
|
|
78
|
-
.then(
|
|
79
|
-
commonHttpClient.castResponse<{
|
|
80
|
-
status: 201;
|
|
81
|
-
mediaType: "application/json";
|
|
82
|
-
body: IssueLinkType;
|
|
83
|
-
}>(),
|
|
84
|
-
)
|
|
85
|
-
.then(
|
|
86
|
-
validationSchemaStorage.validator(
|
|
87
|
-
"IssueLinkTypesService.createIssueLinkType.response",
|
|
88
|
-
),
|
|
89
|
-
)
|
|
90
|
-
.then(commonHttpClient.getBody);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Deletes an issue link type.
|
|
94
|
-
*
|
|
95
|
-
* To use this operation, the site must have [issue
|
|
96
|
-
* linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
97
|
-
*
|
|
98
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
99
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
100
|
-
*
|
|
101
|
-
* @path {DELETE} /rest/api/3/issueLinkType/{issueLinkTypeId}
|
|
102
|
-
* @scopes-current manage:jira-configuration
|
|
103
|
-
* @scopes-beta delete:issue-link-type:jira
|
|
104
|
-
*/
|
|
105
|
-
deleteIssueLinkType({
|
|
106
|
-
issueLinkTypeId,
|
|
107
|
-
}: {
|
|
108
|
-
/** The ID of the issue link type. */
|
|
109
|
-
issueLinkTypeId: string;
|
|
110
|
-
}): Promise<void> {
|
|
111
|
-
return this.getClientInstance()
|
|
112
|
-
.request({
|
|
113
|
-
path: "/rest/api/3/issueLinkType/{issueLinkTypeId}",
|
|
114
|
-
method: "DELETE",
|
|
115
|
-
pathParams: {
|
|
116
|
-
issueLinkTypeId,
|
|
117
|
-
},
|
|
118
|
-
})
|
|
119
|
-
.then(commonHttpClient.discardResult);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Returns an issue link type.
|
|
123
|
-
*
|
|
124
|
-
* To use this operation, the site must have [issue
|
|
125
|
-
* linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
126
|
-
*
|
|
127
|
-
* This operation can be accessed anonymously.
|
|
128
|
-
*
|
|
129
|
-
* **[Permissions](#permissions) required:** *Browse projects* [project
|
|
130
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for a project in the
|
|
131
|
-
* site.
|
|
132
|
-
*
|
|
133
|
-
* @returns Returned if the request is successful.
|
|
134
|
-
*
|
|
135
|
-
* example: {
|
|
136
|
-
* "id": "1000",
|
|
137
|
-
* "inward": "Duplicated by",
|
|
138
|
-
* "name": "Duplicate",
|
|
139
|
-
* "outward": "Duplicates",
|
|
140
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueLinkType/1000"
|
|
141
|
-
* }
|
|
142
|
-
* @path {GET} /rest/api/3/issueLinkType/{issueLinkTypeId}
|
|
143
|
-
* @scopes-current read:jira-work
|
|
144
|
-
* @scopes-beta read:issue-link-type:jira
|
|
145
|
-
*/
|
|
146
|
-
getIssueLinkType({
|
|
147
|
-
issueLinkTypeId,
|
|
148
|
-
}: {
|
|
149
|
-
/** The ID of the issue link type. */
|
|
150
|
-
issueLinkTypeId: string;
|
|
151
|
-
}): Promise<IssueLinkType> {
|
|
152
|
-
return this.getClientInstance()
|
|
153
|
-
.request({
|
|
154
|
-
path: "/rest/api/3/issueLinkType/{issueLinkTypeId}",
|
|
155
|
-
method: "GET",
|
|
156
|
-
pathParams: {
|
|
157
|
-
issueLinkTypeId,
|
|
158
|
-
},
|
|
159
|
-
})
|
|
160
|
-
.then(
|
|
161
|
-
this.getClientInstance().responseHandler({
|
|
162
|
-
200: {
|
|
163
|
-
"application/json": "json",
|
|
164
|
-
},
|
|
165
|
-
}),
|
|
166
|
-
)
|
|
167
|
-
.then(
|
|
168
|
-
commonHttpClient.castResponse<{
|
|
169
|
-
status: 200;
|
|
170
|
-
mediaType: "application/json";
|
|
171
|
-
body: IssueLinkType;
|
|
172
|
-
}>(),
|
|
173
|
-
)
|
|
174
|
-
.then(
|
|
175
|
-
validationSchemaStorage.validator(
|
|
176
|
-
"IssueLinkTypesService.getIssueLinkType.response",
|
|
177
|
-
),
|
|
178
|
-
)
|
|
179
|
-
.then(commonHttpClient.getBody);
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Returns a list of all issue link types.
|
|
183
|
-
*
|
|
184
|
-
* To use this operation, the site must have [issue
|
|
185
|
-
* linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
186
|
-
*
|
|
187
|
-
* This operation can be accessed anonymously.
|
|
188
|
-
*
|
|
189
|
-
* **[Permissions](#permissions) required:** *Browse projects* [project
|
|
190
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for a project in the
|
|
191
|
-
* site.
|
|
192
|
-
*
|
|
193
|
-
* @returns Returned if the request is successful.
|
|
194
|
-
*
|
|
195
|
-
* example: {
|
|
196
|
-
* "issueLinkTypes": [
|
|
197
|
-
* {
|
|
198
|
-
* "id": "1000",
|
|
199
|
-
* "inward": "Duplicated by",
|
|
200
|
-
* "name": "Duplicate",
|
|
201
|
-
* "outward": "Duplicates",
|
|
202
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueLinkType/1000"
|
|
203
|
-
* },
|
|
204
|
-
* {
|
|
205
|
-
* "id": "1010",
|
|
206
|
-
* "inward": "Blocked by",
|
|
207
|
-
* "name": "Blocks",
|
|
208
|
-
* "outward": "Blocks",
|
|
209
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueLinkType/1010"
|
|
210
|
-
* }
|
|
211
|
-
* ]
|
|
212
|
-
* }
|
|
213
|
-
* @path {GET} /rest/api/3/issueLinkType
|
|
214
|
-
* @scopes-current read:jira-work
|
|
215
|
-
* @scopes-beta read:issue-link-type:jira
|
|
216
|
-
*/
|
|
217
|
-
getIssueLinkTypes(): Promise<IssueLinkTypes> {
|
|
218
|
-
return this.getClientInstance()
|
|
219
|
-
.request({
|
|
220
|
-
path: "/rest/api/3/issueLinkType",
|
|
221
|
-
method: "GET",
|
|
222
|
-
})
|
|
223
|
-
.then(
|
|
224
|
-
this.getClientInstance().responseHandler({
|
|
225
|
-
200: {
|
|
226
|
-
"application/json": "json",
|
|
227
|
-
},
|
|
228
|
-
}),
|
|
229
|
-
)
|
|
230
|
-
.then(
|
|
231
|
-
commonHttpClient.castResponse<{
|
|
232
|
-
status: 200;
|
|
233
|
-
mediaType: "application/json";
|
|
234
|
-
body: IssueLinkTypes;
|
|
235
|
-
}>(),
|
|
236
|
-
)
|
|
237
|
-
.then(
|
|
238
|
-
validationSchemaStorage.validator(
|
|
239
|
-
"IssueLinkTypesService.getIssueLinkTypes.response",
|
|
240
|
-
),
|
|
241
|
-
)
|
|
242
|
-
.then(commonHttpClient.getBody);
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* Updates an issue link type.
|
|
246
|
-
*
|
|
247
|
-
* To use this operation, the site must have [issue
|
|
248
|
-
* linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
249
|
-
*
|
|
250
|
-
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
251
|
-
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
252
|
-
*
|
|
253
|
-
* @returns Returned if the request is successful.
|
|
254
|
-
*
|
|
255
|
-
* example: {
|
|
256
|
-
* "id": "1000",
|
|
257
|
-
* "inward": "Duplicated by",
|
|
258
|
-
* "name": "Duplicate",
|
|
259
|
-
* "outward": "Duplicates",
|
|
260
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueLinkType/1000"
|
|
261
|
-
* }
|
|
262
|
-
* @path {PUT} /rest/api/3/issueLinkType/{issueLinkTypeId}
|
|
263
|
-
* @scopes-current manage:jira-configuration
|
|
264
|
-
* @scopes-beta read:issue-link-type:jira, write:issue-link-type:jira
|
|
265
|
-
*/
|
|
266
|
-
updateIssueLinkType({
|
|
267
|
-
issueLinkTypeId,
|
|
268
|
-
issueLinkType,
|
|
269
|
-
}: {
|
|
270
|
-
/** The ID of the issue link type. */
|
|
271
|
-
issueLinkTypeId: string;
|
|
272
|
-
/**
|
|
273
|
-
* @example {
|
|
274
|
-
* "inward": "Duplicated by",
|
|
275
|
-
* "name": "Duplicate",
|
|
276
|
-
* "outward": "Duplicates"
|
|
277
|
-
* }
|
|
278
|
-
*/
|
|
279
|
-
issueLinkType: IssueLinkType;
|
|
280
|
-
}): Promise<IssueLinkType> {
|
|
281
|
-
return this.getClientInstance()
|
|
282
|
-
.request({
|
|
283
|
-
path: "/rest/api/3/issueLinkType/{issueLinkTypeId}",
|
|
284
|
-
method: "PUT",
|
|
285
|
-
pathParams: {
|
|
286
|
-
issueLinkTypeId,
|
|
287
|
-
},
|
|
288
|
-
headers: {
|
|
289
|
-
"Content-Type": "application/json",
|
|
290
|
-
},
|
|
291
|
-
body: issueLinkType,
|
|
292
|
-
})
|
|
293
|
-
.then(
|
|
294
|
-
this.getClientInstance().responseHandler({
|
|
295
|
-
200: {
|
|
296
|
-
"application/json": "json",
|
|
297
|
-
},
|
|
298
|
-
}),
|
|
299
|
-
)
|
|
300
|
-
.then(
|
|
301
|
-
commonHttpClient.castResponse<{
|
|
302
|
-
status: 200;
|
|
303
|
-
mediaType: "application/json";
|
|
304
|
-
body: IssueLinkType;
|
|
305
|
-
}>(),
|
|
306
|
-
)
|
|
307
|
-
.then(
|
|
308
|
-
validationSchemaStorage.validator(
|
|
309
|
-
"IssueLinkTypesService.updateIssueLinkType.response",
|
|
310
|
-
),
|
|
311
|
-
)
|
|
312
|
-
.then(commonHttpClient.getBody);
|
|
313
|
-
}
|
|
314
|
-
static initialize() {
|
|
315
|
-
validationSchemaStorage.registerExtensible(
|
|
316
|
-
"IssueLinkTypesService.getIssueLinkTypes.response",
|
|
317
|
-
z
|
|
318
|
-
.object({
|
|
319
|
-
status: z.literal(200),
|
|
320
|
-
mediaType: z.literal("application/json"),
|
|
321
|
-
body: validationSchemaStorage.lazy("IssueLinkTypes"),
|
|
322
|
-
})
|
|
323
|
-
.describe("IssueLinkTypesService.getIssueLinkTypes.response"),
|
|
324
|
-
);
|
|
325
|
-
validationSchemaStorage.registerExtensible(
|
|
326
|
-
"IssueLinkTypesService.createIssueLinkType.response",
|
|
327
|
-
z
|
|
328
|
-
.object({
|
|
329
|
-
status: z.literal(201),
|
|
330
|
-
mediaType: z.literal("application/json"),
|
|
331
|
-
body: validationSchemaStorage.lazy("IssueLinkType"),
|
|
332
|
-
})
|
|
333
|
-
.describe("IssueLinkTypesService.createIssueLinkType.response"),
|
|
334
|
-
);
|
|
335
|
-
validationSchemaStorage.registerExtensible(
|
|
336
|
-
"IssueLinkTypesService.getIssueLinkType.response",
|
|
337
|
-
z
|
|
338
|
-
.object({
|
|
339
|
-
status: z.literal(200),
|
|
340
|
-
mediaType: z.literal("application/json"),
|
|
341
|
-
body: validationSchemaStorage.lazy("IssueLinkType"),
|
|
342
|
-
})
|
|
343
|
-
.describe("IssueLinkTypesService.getIssueLinkType.response"),
|
|
344
|
-
);
|
|
345
|
-
validationSchemaStorage.registerExtensible(
|
|
346
|
-
"IssueLinkTypesService.updateIssueLinkType.response",
|
|
347
|
-
z
|
|
348
|
-
.object({
|
|
349
|
-
status: z.literal(200),
|
|
350
|
-
mediaType: z.literal("application/json"),
|
|
351
|
-
body: validationSchemaStorage.lazy("IssueLinkType"),
|
|
352
|
-
})
|
|
353
|
-
.describe("IssueLinkTypesService.updateIssueLinkType.response"),
|
|
354
|
-
);
|
|
355
|
-
validationSchemaStorage.registerOnce([
|
|
356
|
-
registerIssueLinkTypesValidationSchemas,
|
|
357
|
-
registerCommonValidationSchemas,
|
|
358
|
-
]);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
@@ -1,345 +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
|
-
type IssueLink,
|
|
10
|
-
type LinkIssueRequestJsonBean,
|
|
11
|
-
registerIssueLinksValidationSchemas,
|
|
12
|
-
} from "../models/issue-links";
|
|
13
|
-
import { validationSchemaStorage } from "../validation-schema-storage";
|
|
14
|
-
/**
|
|
15
|
-
* This resource represents links between issues. Use it to get, create, and
|
|
16
|
-
* delete links between issues.
|
|
17
|
-
*
|
|
18
|
-
* To use it, the site must have [issue
|
|
19
|
-
* linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
20
|
-
*/
|
|
21
|
-
export class IssueLinksService extends CommonHttpService {
|
|
22
|
-
/**
|
|
23
|
-
* Deletes an issue link.
|
|
24
|
-
*
|
|
25
|
-
* This operation can be accessed anonymously.
|
|
26
|
-
*
|
|
27
|
-
* **[Permissions](#permissions) required:**
|
|
28
|
-
*
|
|
29
|
-
* * Browse project [project
|
|
30
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for all the projects
|
|
31
|
-
* containing the issues in the link.
|
|
32
|
-
* * *Link issues* [project
|
|
33
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for at least one of the
|
|
34
|
-
* projects containing issues in the link.
|
|
35
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
36
|
-
* configured, permission to view both of the issues.
|
|
37
|
-
*
|
|
38
|
-
* @path {DELETE} /rest/api/3/issueLink/{linkId}
|
|
39
|
-
* @scopes-current write:jira-work
|
|
40
|
-
* @scopes-beta delete:issue-link:jira
|
|
41
|
-
*/
|
|
42
|
-
deleteIssueLink({
|
|
43
|
-
linkId,
|
|
44
|
-
}: {
|
|
45
|
-
/** The ID of the issue link. */
|
|
46
|
-
linkId: string;
|
|
47
|
-
}): Promise<void> {
|
|
48
|
-
return this.getClientInstance()
|
|
49
|
-
.request({
|
|
50
|
-
path: "/rest/api/3/issueLink/{linkId}",
|
|
51
|
-
method: "DELETE",
|
|
52
|
-
pathParams: {
|
|
53
|
-
linkId,
|
|
54
|
-
},
|
|
55
|
-
})
|
|
56
|
-
.then(commonHttpClient.discardResult);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Returns an issue link.
|
|
60
|
-
*
|
|
61
|
-
* This operation can be accessed anonymously.
|
|
62
|
-
*
|
|
63
|
-
* **[Permissions](#permissions) required:**
|
|
64
|
-
*
|
|
65
|
-
* * *Browse project* [project
|
|
66
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for all the projects
|
|
67
|
-
* containing the linked issues.
|
|
68
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
69
|
-
* configured, permission to view both of the issues.
|
|
70
|
-
*
|
|
71
|
-
* @returns Returned if the request is successful.
|
|
72
|
-
*
|
|
73
|
-
* example: {
|
|
74
|
-
* "id": "10001",
|
|
75
|
-
* "inwardIssue": {
|
|
76
|
-
* "fields": {
|
|
77
|
-
* "issuetype": {
|
|
78
|
-
* "avatarId": 10002,
|
|
79
|
-
* "description": "A problem with the software.",
|
|
80
|
-
* "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
|
|
81
|
-
* "hierarchyLevel": 0,
|
|
82
|
-
* "iconUrl":
|
|
83
|
-
* "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
|
|
84
|
-
* "id": "1",
|
|
85
|
-
* "name": "Bug",
|
|
86
|
-
* "scope": {
|
|
87
|
-
* "project": {
|
|
88
|
-
* "id": "10000"
|
|
89
|
-
* },
|
|
90
|
-
* "type": "PROJECT"
|
|
91
|
-
* },
|
|
92
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
|
|
93
|
-
* "subtask": false
|
|
94
|
-
* },
|
|
95
|
-
* "priority": {
|
|
96
|
-
* "description": "Very little impact.",
|
|
97
|
-
* "iconUrl":
|
|
98
|
-
* "https://your-domain.atlassian.net/images/icons/priorities/trivial.png",
|
|
99
|
-
* "id": "2",
|
|
100
|
-
* "name": "Trivial",
|
|
101
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/priority/5",
|
|
102
|
-
* "statusColor": "#cfcfcf"
|
|
103
|
-
* },
|
|
104
|
-
* "status": {
|
|
105
|
-
* "description": "The issue is closed.",
|
|
106
|
-
* "iconUrl": "https://your-domain.atlassian.net/images/icons/closed.gif",
|
|
107
|
-
* "id": "5",
|
|
108
|
-
* "name": "Closed",
|
|
109
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/status/5",
|
|
110
|
-
* "statusCategory": {
|
|
111
|
-
* "colorName": "green",
|
|
112
|
-
* "id": 9,
|
|
113
|
-
* "key": "completed",
|
|
114
|
-
* "self":
|
|
115
|
-
* "https://your-domain.atlassian.net/rest/api/3/statuscategory/9"
|
|
116
|
-
* }
|
|
117
|
-
* }
|
|
118
|
-
* },
|
|
119
|
-
* "id": "10004",
|
|
120
|
-
* "key": "PR-3",
|
|
121
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
|
|
122
|
-
* },
|
|
123
|
-
* "outwardIssue": {
|
|
124
|
-
* "fields": {
|
|
125
|
-
* "issuetype": {
|
|
126
|
-
* "avatarId": 1,
|
|
127
|
-
* "description": "A task that needs to be done.",
|
|
128
|
-
* "hierarchyLevel": 0,
|
|
129
|
-
* "iconUrl":
|
|
130
|
-
* "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
|
|
131
|
-
* "id": "3",
|
|
132
|
-
* "name": "Task",
|
|
133
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
|
|
134
|
-
* "subtask": false
|
|
135
|
-
* },
|
|
136
|
-
* "priority": {
|
|
137
|
-
* "description": "Major loss of function.",
|
|
138
|
-
* "iconUrl":
|
|
139
|
-
* "https://your-domain.atlassian.net/images/icons/priorities/major.png",
|
|
140
|
-
* "id": "1",
|
|
141
|
-
* "name": "Major",
|
|
142
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/priority/3",
|
|
143
|
-
* "statusColor": "#009900"
|
|
144
|
-
* },
|
|
145
|
-
* "status": {
|
|
146
|
-
* "description": "The issue is currently being worked on.",
|
|
147
|
-
* "iconUrl":
|
|
148
|
-
* "https://your-domain.atlassian.net/images/icons/progress.gif",
|
|
149
|
-
* "id": "10000",
|
|
150
|
-
* "name": "In Progress",
|
|
151
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/status/10000",
|
|
152
|
-
* "statusCategory": {
|
|
153
|
-
* "colorName": "yellow",
|
|
154
|
-
* "id": 1,
|
|
155
|
-
* "key": "in-flight",
|
|
156
|
-
* "name": "In Progress",
|
|
157
|
-
* "self":
|
|
158
|
-
* "https://your-domain.atlassian.net/rest/api/3/statuscategory/1"
|
|
159
|
-
* }
|
|
160
|
-
* }
|
|
161
|
-
* },
|
|
162
|
-
* "id": "10004L",
|
|
163
|
-
* "key": "PR-2",
|
|
164
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
|
|
165
|
-
* },
|
|
166
|
-
* "type": {
|
|
167
|
-
* "id": "1000",
|
|
168
|
-
* "inward": "Duplicated by",
|
|
169
|
-
* "name": "Duplicate",
|
|
170
|
-
* "outward": "Duplicates",
|
|
171
|
-
* "self": "https://your-domain.atlassian.net/rest/api/3/issueLinkType/1000"
|
|
172
|
-
* }
|
|
173
|
-
* }
|
|
174
|
-
* @path {GET} /rest/api/3/issueLink/{linkId}
|
|
175
|
-
* @scopes-current read:jira-work
|
|
176
|
-
* @scopes-beta read:field:jira, read:issue-link-type:jira, read:issue:jira,
|
|
177
|
-
* read:issue-type:jira, read:priority:jira, read:status:jira, read:avatar:jira,
|
|
178
|
-
* read:issue.time-tracking:jira, read:project-category:jira, read:project:jira,
|
|
179
|
-
* read:user:jira
|
|
180
|
-
*/
|
|
181
|
-
getIssueLink({
|
|
182
|
-
linkId,
|
|
183
|
-
}: {
|
|
184
|
-
/** The ID of the issue link. */
|
|
185
|
-
linkId: string;
|
|
186
|
-
}): Promise<IssueLink> {
|
|
187
|
-
return this.getClientInstance()
|
|
188
|
-
.request({
|
|
189
|
-
path: "/rest/api/3/issueLink/{linkId}",
|
|
190
|
-
method: "GET",
|
|
191
|
-
pathParams: {
|
|
192
|
-
linkId,
|
|
193
|
-
},
|
|
194
|
-
})
|
|
195
|
-
.then(
|
|
196
|
-
this.getClientInstance().responseHandler({
|
|
197
|
-
200: {
|
|
198
|
-
"application/json": "json",
|
|
199
|
-
},
|
|
200
|
-
}),
|
|
201
|
-
)
|
|
202
|
-
.then(
|
|
203
|
-
commonHttpClient.castResponse<{
|
|
204
|
-
status: 200;
|
|
205
|
-
mediaType: "application/json";
|
|
206
|
-
body: IssueLink;
|
|
207
|
-
}>(),
|
|
208
|
-
)
|
|
209
|
-
.then(
|
|
210
|
-
validationSchemaStorage.validator(
|
|
211
|
-
"IssueLinksService.getIssueLink.response",
|
|
212
|
-
),
|
|
213
|
-
)
|
|
214
|
-
.then(commonHttpClient.getBody);
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Creates a link between two issues. Use this operation to indicate a
|
|
218
|
-
* relationship between two issues and optionally add a comment to the from
|
|
219
|
-
* (outward) issue. To use this resource the site must have [Issue
|
|
220
|
-
* Linking](https://confluence.atlassian.com/x/yoXKM) enabled.
|
|
221
|
-
*
|
|
222
|
-
* This resource returns nothing on the creation of an issue link. To obtain the
|
|
223
|
-
* ID of the issue link, use
|
|
224
|
-
* `https://your-domain.atlassian.net/rest/api/3/issue/[linked issue
|
|
225
|
-
* key]?fields=issuelinks`.
|
|
226
|
-
*
|
|
227
|
-
* If the link request duplicates a link, the response indicates that the issue
|
|
228
|
-
* link was created. If the request included a comment, the comment is added.
|
|
229
|
-
*
|
|
230
|
-
* This operation can be accessed anonymously.
|
|
231
|
-
*
|
|
232
|
-
* **[Permissions](#permissions) required:**
|
|
233
|
-
*
|
|
234
|
-
* * *Browse project* [project
|
|
235
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for all the projects
|
|
236
|
-
* containing the issues to be linked,
|
|
237
|
-
* * *Link issues* [project
|
|
238
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) on the project
|
|
239
|
-
* containing the from (outward) issue,
|
|
240
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
241
|
-
* configured, issue-level security permission to view the issue.
|
|
242
|
-
* * If the comment has visibility restrictions, belongs to the group or has the
|
|
243
|
-
* role visibility is restricted to.
|
|
244
|
-
*
|
|
245
|
-
* @returns Returned if the request is successful.
|
|
246
|
-
* @path {POST} /rest/api/3/issueLink
|
|
247
|
-
* @scopes-current write:jira-work
|
|
248
|
-
* @scopes-beta write:comment:jira, write:issue:jira, write:issue-link:jira
|
|
249
|
-
*/
|
|
250
|
-
linkIssues({
|
|
251
|
-
linkIssueRequestJsonBean,
|
|
252
|
-
}: {
|
|
253
|
-
/**
|
|
254
|
-
* The issue link request.
|
|
255
|
-
*
|
|
256
|
-
* @example {
|
|
257
|
-
* "comment": {
|
|
258
|
-
* "body": {
|
|
259
|
-
* "content": [
|
|
260
|
-
* {
|
|
261
|
-
* "content": [
|
|
262
|
-
* {
|
|
263
|
-
* "text": "Linked related issue!",
|
|
264
|
-
* "type": "text"
|
|
265
|
-
* }
|
|
266
|
-
* ],
|
|
267
|
-
* "type": "paragraph"
|
|
268
|
-
* }
|
|
269
|
-
* ],
|
|
270
|
-
* "type": "doc",
|
|
271
|
-
* "version": 1
|
|
272
|
-
* },
|
|
273
|
-
* "visibility": {
|
|
274
|
-
* "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
|
|
275
|
-
* "type": "group",
|
|
276
|
-
* "value": "jira-software-users"
|
|
277
|
-
* }
|
|
278
|
-
* },
|
|
279
|
-
* "inwardIssue": {
|
|
280
|
-
* "key": "HSP-1"
|
|
281
|
-
* },
|
|
282
|
-
* "outwardIssue": {
|
|
283
|
-
* "key": "MKY-1"
|
|
284
|
-
* },
|
|
285
|
-
* "type": {
|
|
286
|
-
* "name": "Duplicate"
|
|
287
|
-
* }
|
|
288
|
-
* }
|
|
289
|
-
*/
|
|
290
|
-
linkIssueRequestJsonBean: LinkIssueRequestJsonBean;
|
|
291
|
-
}): Promise<unknown> {
|
|
292
|
-
return this.getClientInstance()
|
|
293
|
-
.request({
|
|
294
|
-
path: "/rest/api/3/issueLink",
|
|
295
|
-
method: "POST",
|
|
296
|
-
headers: {
|
|
297
|
-
"Content-Type": "application/json",
|
|
298
|
-
},
|
|
299
|
-
body: linkIssueRequestJsonBean,
|
|
300
|
-
})
|
|
301
|
-
.then(
|
|
302
|
-
this.getClientInstance().responseHandler({
|
|
303
|
-
201: {
|
|
304
|
-
"application/json": "json",
|
|
305
|
-
},
|
|
306
|
-
}),
|
|
307
|
-
)
|
|
308
|
-
.then(
|
|
309
|
-
commonHttpClient.castResponse<{
|
|
310
|
-
status: 201;
|
|
311
|
-
mediaType: "application/json";
|
|
312
|
-
body: unknown;
|
|
313
|
-
}>(),
|
|
314
|
-
)
|
|
315
|
-
.then(
|
|
316
|
-
validationSchemaStorage.validator(
|
|
317
|
-
"IssueLinksService.linkIssues.response",
|
|
318
|
-
),
|
|
319
|
-
)
|
|
320
|
-
.then(commonHttpClient.getBody);
|
|
321
|
-
}
|
|
322
|
-
static initialize() {
|
|
323
|
-
validationSchemaStorage.registerExtensible(
|
|
324
|
-
"IssueLinksService.linkIssues.response",
|
|
325
|
-
z
|
|
326
|
-
.object({
|
|
327
|
-
status: z.literal(201),
|
|
328
|
-
mediaType: z.literal("application/json"),
|
|
329
|
-
body: z.unknown(),
|
|
330
|
-
})
|
|
331
|
-
.describe("IssueLinksService.linkIssues.response"),
|
|
332
|
-
);
|
|
333
|
-
validationSchemaStorage.registerExtensible(
|
|
334
|
-
"IssueLinksService.getIssueLink.response",
|
|
335
|
-
z
|
|
336
|
-
.object({
|
|
337
|
-
status: z.literal(200),
|
|
338
|
-
mediaType: z.literal("application/json"),
|
|
339
|
-
body: validationSchemaStorage.lazy("IssueLink"),
|
|
340
|
-
})
|
|
341
|
-
.describe("IssueLinksService.getIssueLink.response"),
|
|
342
|
-
);
|
|
343
|
-
validationSchemaStorage.registerOnce([registerIssueLinksValidationSchemas]);
|
|
344
|
-
}
|
|
345
|
-
}
|