@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,259 +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, type ZodTypeAny } from "zod";
|
|
5
|
-
|
|
6
|
-
import type { CommonValidationSchemaStorage } from "../core/common-validation-schema-storage";
|
|
7
|
-
import { type JsonNode, registerCommonValidationSchemas } from "./common";
|
|
8
|
-
/** Bulk issue property update request details. */
|
|
9
|
-
export interface BulkIssuePropertyUpdateRequest {
|
|
10
|
-
/**
|
|
11
|
-
* EXPERIMENTAL. The Jira expression to calculate the value of the property. The
|
|
12
|
-
* value of the expression must be an object that can be converted to JSON, such
|
|
13
|
-
* as a number, boolean, string, list, or map. The context variables available to
|
|
14
|
-
* the expression are `issue` and `user`. Issues for which the expression returns
|
|
15
|
-
* a value whose JSON representation is longer than 32768 characters are ignored.
|
|
16
|
-
*/
|
|
17
|
-
expression?: string;
|
|
18
|
-
/** The bulk operation filter. */
|
|
19
|
-
filter?: IssueFilterForBulkPropertySet;
|
|
20
|
-
/**
|
|
21
|
-
* The value of the property. The value must be a
|
|
22
|
-
* [valid](https://tools.ietf.org/html/rfc4627), non-empty JSON blob. The maximum
|
|
23
|
-
* length is 32768 characters.
|
|
24
|
-
*/
|
|
25
|
-
value?: unknown;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Lists of issues and entity properties. See [Entity
|
|
29
|
-
* properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/)
|
|
30
|
-
* for more information.
|
|
31
|
-
*/
|
|
32
|
-
export interface IssueEntityProperties {
|
|
33
|
-
/** A list of entity property IDs. */
|
|
34
|
-
entitiesIds?: number[];
|
|
35
|
-
/** A list of entity property keys and values. */
|
|
36
|
-
properties?: {
|
|
37
|
-
[key: string]: JsonNode;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* An issue ID with entity property values. See [Entity
|
|
42
|
-
* properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/)
|
|
43
|
-
* for more information.
|
|
44
|
-
*/
|
|
45
|
-
export interface IssueEntityPropertiesForMultiUpdate {
|
|
46
|
-
/** The ID of the issue. */
|
|
47
|
-
issueID?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Entity properties to set on the issue. The maximum length of an issue property
|
|
50
|
-
* value is 32768 characters.
|
|
51
|
-
*/
|
|
52
|
-
properties?: {
|
|
53
|
-
[key: string]: JsonNode;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
/** Bulk operation filter details. */
|
|
57
|
-
export interface IssueFilterForBulkPropertyDelete {
|
|
58
|
-
/** The value of properties to perform the bulk operation on. */
|
|
59
|
-
currentValue?: unknown;
|
|
60
|
-
/** List of issues to perform the bulk delete operation on. */
|
|
61
|
-
entityIds?: number[];
|
|
62
|
-
}
|
|
63
|
-
/** Bulk operation filter details. */
|
|
64
|
-
export interface IssueFilterForBulkPropertySet {
|
|
65
|
-
/** The value of properties to perform the bulk operation on. */
|
|
66
|
-
currentValue?: unknown;
|
|
67
|
-
/** List of issues to perform the bulk operation on. */
|
|
68
|
-
entityIds?: number[];
|
|
69
|
-
/**
|
|
70
|
-
* Whether the bulk operation occurs only when the property is present on or
|
|
71
|
-
* absent from an issue.
|
|
72
|
-
*/
|
|
73
|
-
hasProperty?: boolean;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* A list of issues and their respective properties to set or update. See [Entity
|
|
77
|
-
* properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/)
|
|
78
|
-
* for more information.
|
|
79
|
-
*/
|
|
80
|
-
export interface MultiIssueEntityProperties {
|
|
81
|
-
/** A list of issue IDs and their respective properties. */
|
|
82
|
-
issues?: IssueEntityPropertiesForMultiUpdate[];
|
|
83
|
-
}
|
|
84
|
-
export function registerIssuePropertiesValidationSchemas(
|
|
85
|
-
validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
|
|
86
|
-
) {
|
|
87
|
-
validationSchemaStorage.register(
|
|
88
|
-
"BulkIssuePropertyUpdateRequest",
|
|
89
|
-
z
|
|
90
|
-
.object({
|
|
91
|
-
expression: z.string().optional(),
|
|
92
|
-
filter: validationSchemaStorage
|
|
93
|
-
.lazy("IssueFilterForBulkPropertySet")
|
|
94
|
-
.optional(),
|
|
95
|
-
value: z.unknown().optional(),
|
|
96
|
-
})
|
|
97
|
-
.strict()
|
|
98
|
-
.describe("BulkIssuePropertyUpdateRequest"),
|
|
99
|
-
);
|
|
100
|
-
validationSchemaStorage.register(
|
|
101
|
-
"IssueEntityProperties",
|
|
102
|
-
z
|
|
103
|
-
.object({
|
|
104
|
-
entitiesIds: z
|
|
105
|
-
.array(z.number().int())
|
|
106
|
-
.min(1)
|
|
107
|
-
.max(10000)
|
|
108
|
-
.superRefine((items, ctx) => {
|
|
109
|
-
if (
|
|
110
|
-
new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
111
|
-
items.length
|
|
112
|
-
) {
|
|
113
|
-
ctx.addIssue({
|
|
114
|
-
code: z.ZodIssueCode.custom,
|
|
115
|
-
path: [],
|
|
116
|
-
message: "Array items must be unique",
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
})
|
|
120
|
-
.optional(),
|
|
121
|
-
properties: z
|
|
122
|
-
.object({})
|
|
123
|
-
.catchall(validationSchemaStorage.lazy("JsonNode"))
|
|
124
|
-
.superRefine((obj, ctx) => {
|
|
125
|
-
if (Object.keys(obj).length < 1) {
|
|
126
|
-
ctx.addIssue({
|
|
127
|
-
code: z.ZodIssueCode.custom,
|
|
128
|
-
path: [],
|
|
129
|
-
message: "Should have at least 1 properties",
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
})
|
|
133
|
-
.superRefine((obj, ctx) => {
|
|
134
|
-
if (Object.keys(obj).length > 10) {
|
|
135
|
-
ctx.addIssue({
|
|
136
|
-
code: z.ZodIssueCode.custom,
|
|
137
|
-
path: [],
|
|
138
|
-
message: "Should have at most 10 properties",
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
})
|
|
142
|
-
.optional(),
|
|
143
|
-
})
|
|
144
|
-
.strict()
|
|
145
|
-
.describe("IssueEntityProperties"),
|
|
146
|
-
);
|
|
147
|
-
validationSchemaStorage.register(
|
|
148
|
-
"IssueEntityPropertiesForMultiUpdate",
|
|
149
|
-
z
|
|
150
|
-
.object({
|
|
151
|
-
issueID: z.number().int().optional(),
|
|
152
|
-
properties: z
|
|
153
|
-
.object({})
|
|
154
|
-
.catchall(validationSchemaStorage.lazy("JsonNode"))
|
|
155
|
-
.superRefine((obj, ctx) => {
|
|
156
|
-
if (Object.keys(obj).length < 1) {
|
|
157
|
-
ctx.addIssue({
|
|
158
|
-
code: z.ZodIssueCode.custom,
|
|
159
|
-
path: [],
|
|
160
|
-
message: "Should have at least 1 properties",
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
})
|
|
164
|
-
.superRefine((obj, ctx) => {
|
|
165
|
-
if (Object.keys(obj).length > 10) {
|
|
166
|
-
ctx.addIssue({
|
|
167
|
-
code: z.ZodIssueCode.custom,
|
|
168
|
-
path: [],
|
|
169
|
-
message: "Should have at most 10 properties",
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
})
|
|
173
|
-
.optional(),
|
|
174
|
-
})
|
|
175
|
-
.strict()
|
|
176
|
-
.superRefine((obj, ctx) => {
|
|
177
|
-
if (Object.keys(obj).length < 1) {
|
|
178
|
-
ctx.addIssue({
|
|
179
|
-
code: z.ZodIssueCode.custom,
|
|
180
|
-
path: [],
|
|
181
|
-
message: "Should have at least 1 properties",
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
})
|
|
185
|
-
.superRefine((obj, ctx) => {
|
|
186
|
-
if (Object.keys(obj).length > 100) {
|
|
187
|
-
ctx.addIssue({
|
|
188
|
-
code: z.ZodIssueCode.custom,
|
|
189
|
-
path: [],
|
|
190
|
-
message: "Should have at most 100 properties",
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
.describe("IssueEntityPropertiesForMultiUpdate"),
|
|
195
|
-
);
|
|
196
|
-
validationSchemaStorage.register(
|
|
197
|
-
"IssueFilterForBulkPropertyDelete",
|
|
198
|
-
z
|
|
199
|
-
.object({
|
|
200
|
-
currentValue: z.unknown().optional(),
|
|
201
|
-
entityIds: z
|
|
202
|
-
.array(z.number().int())
|
|
203
|
-
.superRefine((items, ctx) => {
|
|
204
|
-
if (
|
|
205
|
-
new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
206
|
-
items.length
|
|
207
|
-
) {
|
|
208
|
-
ctx.addIssue({
|
|
209
|
-
code: z.ZodIssueCode.custom,
|
|
210
|
-
path: [],
|
|
211
|
-
message: "Array items must be unique",
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
})
|
|
215
|
-
.optional(),
|
|
216
|
-
})
|
|
217
|
-
.strict()
|
|
218
|
-
.describe("IssueFilterForBulkPropertyDelete"),
|
|
219
|
-
);
|
|
220
|
-
validationSchemaStorage.register(
|
|
221
|
-
"IssueFilterForBulkPropertySet",
|
|
222
|
-
z
|
|
223
|
-
.object({
|
|
224
|
-
currentValue: z.unknown().optional(),
|
|
225
|
-
entityIds: z
|
|
226
|
-
.array(z.number().int())
|
|
227
|
-
.superRefine((items, ctx) => {
|
|
228
|
-
if (
|
|
229
|
-
new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
230
|
-
items.length
|
|
231
|
-
) {
|
|
232
|
-
ctx.addIssue({
|
|
233
|
-
code: z.ZodIssueCode.custom,
|
|
234
|
-
path: [],
|
|
235
|
-
message: "Array items must be unique",
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
})
|
|
239
|
-
.optional(),
|
|
240
|
-
hasProperty: z.boolean().optional(),
|
|
241
|
-
})
|
|
242
|
-
.strict()
|
|
243
|
-
.describe("IssueFilterForBulkPropertySet"),
|
|
244
|
-
);
|
|
245
|
-
validationSchemaStorage.register(
|
|
246
|
-
"MultiIssueEntityProperties",
|
|
247
|
-
z
|
|
248
|
-
.object({
|
|
249
|
-
issues: z
|
|
250
|
-
.array(
|
|
251
|
-
validationSchemaStorage.lazy("IssueEntityPropertiesForMultiUpdate"),
|
|
252
|
-
)
|
|
253
|
-
.optional(),
|
|
254
|
-
})
|
|
255
|
-
.strict()
|
|
256
|
-
.describe("MultiIssueEntityProperties"),
|
|
257
|
-
);
|
|
258
|
-
validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
|
|
259
|
-
}
|
|
@@ -1,207 +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, type ZodTypeAny } from "zod";
|
|
5
|
-
|
|
6
|
-
import type { CommonValidationSchemaStorage } from "../core/common-validation-schema-storage";
|
|
7
|
-
/** The application the linked item is in. */
|
|
8
|
-
export interface Application extends Record<string, unknown> {
|
|
9
|
-
/**
|
|
10
|
-
* The name of the application. Used in conjunction with the (remote) object icon
|
|
11
|
-
* title to display a tooltip for the link's icon. The tooltip takes the format
|
|
12
|
-
* "\[application name\] icon title". Blank items are excluded from the tooltip
|
|
13
|
-
* title. If both items are blank, the icon tooltop displays as "Web Link".
|
|
14
|
-
* Grouping and sorting of links may place links without an application name last.
|
|
15
|
-
*/
|
|
16
|
-
name?: string;
|
|
17
|
-
/** The name-spaced type of the application, used by registered rendering apps. */
|
|
18
|
-
type?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* An icon. If no icon is defined:
|
|
22
|
-
*
|
|
23
|
-
* * for a status icon, no status icon displays in Jira.
|
|
24
|
-
* * for the remote object icon, the default link icon displays in Jira.
|
|
25
|
-
*/
|
|
26
|
-
export interface Icon extends Record<string, unknown> {
|
|
27
|
-
/**
|
|
28
|
-
* The URL of the tooltip, used only for a status icon. If not set, the status
|
|
29
|
-
* icon in Jira is not clickable.
|
|
30
|
-
*/
|
|
31
|
-
link?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The title of the icon. This is used as follows:
|
|
34
|
-
*
|
|
35
|
-
* * For a status icon it is used as a tooltip on the icon. If not set, the
|
|
36
|
-
* status icon doesn't display a tooltip in Jira.
|
|
37
|
-
* * For the remote object icon it is used in conjunction with the application
|
|
38
|
-
* name to display a tooltip for the link's icon. The tooltip takes the format
|
|
39
|
-
* "\[application name\] icon title". Blank itemsare excluded from the tooltip
|
|
40
|
-
* title. If both items are blank, the icon tooltop displays as "Web Link".
|
|
41
|
-
*/
|
|
42
|
-
title?: string;
|
|
43
|
-
/** The URL of an icon that displays at 16x16 pixel in Jira. */
|
|
44
|
-
url16x16?: string;
|
|
45
|
-
}
|
|
46
|
-
/** Details of an issue remote link. */
|
|
47
|
-
export interface RemoteIssueLink {
|
|
48
|
-
/** Details of the remote application the linked item is in. */
|
|
49
|
-
application?: Application;
|
|
50
|
-
/** The global ID of the link, such as the ID of the item on the remote system. */
|
|
51
|
-
globalId?: string;
|
|
52
|
-
/** The ID of the link. */
|
|
53
|
-
id?: number;
|
|
54
|
-
/** Details of the item linked to. */
|
|
55
|
-
object?: RemoteObject;
|
|
56
|
-
/** Description of the relationship between the issue and the linked item. */
|
|
57
|
-
relationship?: string;
|
|
58
|
-
/** The URL of the link. */
|
|
59
|
-
self?: string;
|
|
60
|
-
}
|
|
61
|
-
/** Details of the identifiers for a created or updated remote issue link. */
|
|
62
|
-
export interface RemoteIssueLinkIdentifies {
|
|
63
|
-
/**
|
|
64
|
-
* The ID of the remote issue link, such as the ID of the item on the remote
|
|
65
|
-
* system.
|
|
66
|
-
*/
|
|
67
|
-
id?: number;
|
|
68
|
-
/** The URL of the remote issue link. */
|
|
69
|
-
self?: string;
|
|
70
|
-
}
|
|
71
|
-
/** Details of a remote issue link. */
|
|
72
|
-
export interface RemoteIssueLinkRequest extends Record<string, unknown> {
|
|
73
|
-
/** Details of the remote application the linked item is in. For example, trello. */
|
|
74
|
-
application?: Application;
|
|
75
|
-
/**
|
|
76
|
-
* An identifier for the remote item in the remote system. For example, the global
|
|
77
|
-
* ID for a remote item in Confluence would consist of the app ID and page ID,
|
|
78
|
-
* like this: `appId=456&pageId=123`.
|
|
79
|
-
*
|
|
80
|
-
* Setting this field enables the remote issue link details to be updated or
|
|
81
|
-
* deleted using remote system and item details as the record identifier, rather
|
|
82
|
-
* than using the record's Jira ID.
|
|
83
|
-
*
|
|
84
|
-
* The maximum length is 255 characters.
|
|
85
|
-
*/
|
|
86
|
-
globalId?: string;
|
|
87
|
-
/** Details of the item linked to. */
|
|
88
|
-
object: RemoteObject;
|
|
89
|
-
/**
|
|
90
|
-
* Description of the relationship between the issue and the linked item. If not
|
|
91
|
-
* set, the relationship description "links to" is used in Jira.
|
|
92
|
-
*/
|
|
93
|
-
relationship?: string;
|
|
94
|
-
}
|
|
95
|
-
/** The linked item. */
|
|
96
|
-
export interface RemoteObject extends Record<string, unknown> {
|
|
97
|
-
/**
|
|
98
|
-
* Details of the icon for the item. If no icon is defined, the default link icon
|
|
99
|
-
* is used in Jira.
|
|
100
|
-
*/
|
|
101
|
-
icon?: Icon;
|
|
102
|
-
/** The status of the item. */
|
|
103
|
-
status?: Status;
|
|
104
|
-
/** The summary details of the item. */
|
|
105
|
-
summary?: string;
|
|
106
|
-
/** The title of the item. */
|
|
107
|
-
title: string;
|
|
108
|
-
/** The URL of the item. */
|
|
109
|
-
url: string;
|
|
110
|
-
}
|
|
111
|
-
/** The status of the item. */
|
|
112
|
-
export interface Status extends Record<string, unknown> {
|
|
113
|
-
/**
|
|
114
|
-
* Details of the icon representing the status. If not provided, no status icon
|
|
115
|
-
* displays in Jira.
|
|
116
|
-
*/
|
|
117
|
-
icon?: Icon;
|
|
118
|
-
/**
|
|
119
|
-
* Whether the item is resolved. If set to "true", the link to the issue is
|
|
120
|
-
* displayed in a strikethrough font, otherwise the link displays in normal font.
|
|
121
|
-
*/
|
|
122
|
-
resolved?: boolean;
|
|
123
|
-
}
|
|
124
|
-
export function registerIssueRemoteLinksValidationSchemas(
|
|
125
|
-
validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
|
|
126
|
-
) {
|
|
127
|
-
validationSchemaStorage.register(
|
|
128
|
-
"Application",
|
|
129
|
-
z
|
|
130
|
-
.object({
|
|
131
|
-
name: z.string().optional(),
|
|
132
|
-
type: z.string().optional(),
|
|
133
|
-
})
|
|
134
|
-
.catchall(z.unknown())
|
|
135
|
-
.describe("Application"),
|
|
136
|
-
);
|
|
137
|
-
validationSchemaStorage.register(
|
|
138
|
-
"Icon",
|
|
139
|
-
z
|
|
140
|
-
.object({
|
|
141
|
-
link: z.string().optional(),
|
|
142
|
-
title: z.string().optional(),
|
|
143
|
-
url16x16: z.string().optional(),
|
|
144
|
-
})
|
|
145
|
-
.catchall(z.unknown())
|
|
146
|
-
.describe("Icon"),
|
|
147
|
-
);
|
|
148
|
-
validationSchemaStorage.register(
|
|
149
|
-
"RemoteIssueLink",
|
|
150
|
-
z
|
|
151
|
-
.object({
|
|
152
|
-
application: validationSchemaStorage.lazy("Application").optional(),
|
|
153
|
-
globalId: z.string().optional(),
|
|
154
|
-
id: z.number().int().optional(),
|
|
155
|
-
object: validationSchemaStorage.lazy("RemoteObject").optional(),
|
|
156
|
-
relationship: z.string().optional(),
|
|
157
|
-
self: z.string().optional(),
|
|
158
|
-
})
|
|
159
|
-
.strict()
|
|
160
|
-
.describe("RemoteIssueLink"),
|
|
161
|
-
);
|
|
162
|
-
validationSchemaStorage.register(
|
|
163
|
-
"RemoteIssueLinkIdentifies",
|
|
164
|
-
z
|
|
165
|
-
.object({
|
|
166
|
-
id: z.number().int().optional(),
|
|
167
|
-
self: z.string().optional(),
|
|
168
|
-
})
|
|
169
|
-
.strict()
|
|
170
|
-
.describe("RemoteIssueLinkIdentifies"),
|
|
171
|
-
);
|
|
172
|
-
validationSchemaStorage.register(
|
|
173
|
-
"RemoteIssueLinkRequest",
|
|
174
|
-
z
|
|
175
|
-
.object({
|
|
176
|
-
application: validationSchemaStorage.lazy("Application").optional(),
|
|
177
|
-
globalId: z.string().optional(),
|
|
178
|
-
object: validationSchemaStorage.lazy("RemoteObject"),
|
|
179
|
-
relationship: z.string().optional(),
|
|
180
|
-
})
|
|
181
|
-
.catchall(z.unknown())
|
|
182
|
-
.describe("RemoteIssueLinkRequest"),
|
|
183
|
-
);
|
|
184
|
-
validationSchemaStorage.register(
|
|
185
|
-
"RemoteObject",
|
|
186
|
-
z
|
|
187
|
-
.object({
|
|
188
|
-
icon: validationSchemaStorage.lazy("Icon").optional(),
|
|
189
|
-
status: validationSchemaStorage.lazy("Status").optional(),
|
|
190
|
-
summary: z.string().optional(),
|
|
191
|
-
title: z.string(),
|
|
192
|
-
url: z.string(),
|
|
193
|
-
})
|
|
194
|
-
.catchall(z.unknown())
|
|
195
|
-
.describe("RemoteObject"),
|
|
196
|
-
);
|
|
197
|
-
validationSchemaStorage.register(
|
|
198
|
-
"Status",
|
|
199
|
-
z
|
|
200
|
-
.object({
|
|
201
|
-
icon: validationSchemaStorage.lazy("Icon").optional(),
|
|
202
|
-
resolved: z.boolean().optional(),
|
|
203
|
-
})
|
|
204
|
-
.catchall(z.unknown())
|
|
205
|
-
.describe("Status"),
|
|
206
|
-
);
|
|
207
|
-
}
|
|
@@ -1,180 +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, type ZodTypeAny } from "zod";
|
|
5
|
-
|
|
6
|
-
import type { CommonValidationSchemaStorage } from "../core/common-validation-schema-storage";
|
|
7
|
-
/** Details of an issue resolution. */
|
|
8
|
-
export interface CreateResolutionDetails extends Record<string, unknown> {
|
|
9
|
-
/** The description of the resolution. */
|
|
10
|
-
description?: string;
|
|
11
|
-
/** The name of the resolution. Must be unique (case-insensitive). */
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
/** A page of items. */
|
|
15
|
-
export interface PageBeanResolutionJsonBean {
|
|
16
|
-
/** Whether this is the last page. */
|
|
17
|
-
isLast?: boolean;
|
|
18
|
-
/** The maximum number of items that could be returned. */
|
|
19
|
-
maxResults?: number;
|
|
20
|
-
/** If there is another page of results, the URL of the next page. */
|
|
21
|
-
nextPage?: string;
|
|
22
|
-
/** The URL of the page. */
|
|
23
|
-
self?: string;
|
|
24
|
-
/** The index of the first item returned. */
|
|
25
|
-
startAt?: number;
|
|
26
|
-
/** The number of items returned. */
|
|
27
|
-
total?: number;
|
|
28
|
-
/** The list of items. */
|
|
29
|
-
values?: ResolutionJsonBean[];
|
|
30
|
-
}
|
|
31
|
-
/** Change the order of issue resolutions. */
|
|
32
|
-
export interface ReorderIssueResolutionsRequest {
|
|
33
|
-
/** The ID of the resolution. Required if `position` isn't provided. */
|
|
34
|
-
after?: string;
|
|
35
|
-
/**
|
|
36
|
-
* The list of resolution IDs to be reordered. Cannot contain duplicates nor after
|
|
37
|
-
* ID.
|
|
38
|
-
*/
|
|
39
|
-
ids: string[];
|
|
40
|
-
/**
|
|
41
|
-
* The position for issue resolutions to be moved to. Required if `after` isn't
|
|
42
|
-
* provided.
|
|
43
|
-
*/
|
|
44
|
-
position?: string;
|
|
45
|
-
}
|
|
46
|
-
/** Details of an issue resolution. */
|
|
47
|
-
export interface Resolution {
|
|
48
|
-
/** The description of the issue resolution. */
|
|
49
|
-
description?: string;
|
|
50
|
-
/** The ID of the issue resolution. */
|
|
51
|
-
id?: string;
|
|
52
|
-
/** The name of the issue resolution. */
|
|
53
|
-
name?: string;
|
|
54
|
-
/** The URL of the issue resolution. */
|
|
55
|
-
self?: string;
|
|
56
|
-
}
|
|
57
|
-
/** The ID of an issue resolution. */
|
|
58
|
-
export interface ResolutionId extends Record<string, unknown> {
|
|
59
|
-
/** The ID of the issue resolution. */
|
|
60
|
-
id: string;
|
|
61
|
-
}
|
|
62
|
-
export interface ResolutionJsonBean {
|
|
63
|
-
default?: boolean;
|
|
64
|
-
description?: string;
|
|
65
|
-
iconUrl?: string;
|
|
66
|
-
id?: string;
|
|
67
|
-
name?: string;
|
|
68
|
-
self?: string;
|
|
69
|
-
}
|
|
70
|
-
/** The new default issue resolution. */
|
|
71
|
-
export interface SetDefaultResolutionRequest {
|
|
72
|
-
/**
|
|
73
|
-
* The ID of the new default issue resolution. Must be an existing ID or null.
|
|
74
|
-
* Setting this to null erases the default resolution setting.
|
|
75
|
-
*/
|
|
76
|
-
id: string;
|
|
77
|
-
}
|
|
78
|
-
/** Details of an issue resolution. */
|
|
79
|
-
export interface UpdateResolutionDetails extends Record<string, unknown> {
|
|
80
|
-
/** The description of the resolution. */
|
|
81
|
-
description?: string;
|
|
82
|
-
/** The name of the resolution. Must be unique. */
|
|
83
|
-
name: string;
|
|
84
|
-
}
|
|
85
|
-
export function registerIssueResolutionsValidationSchemas(
|
|
86
|
-
validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
|
|
87
|
-
) {
|
|
88
|
-
validationSchemaStorage.register(
|
|
89
|
-
"CreateResolutionDetails",
|
|
90
|
-
z
|
|
91
|
-
.object({
|
|
92
|
-
description: z.string().max(255).optional(),
|
|
93
|
-
name: z.string().max(60),
|
|
94
|
-
})
|
|
95
|
-
.catchall(z.unknown())
|
|
96
|
-
.describe("CreateResolutionDetails"),
|
|
97
|
-
);
|
|
98
|
-
validationSchemaStorage.register(
|
|
99
|
-
"PageBeanResolutionJsonBean",
|
|
100
|
-
z
|
|
101
|
-
.object({
|
|
102
|
-
isLast: z.boolean().optional(),
|
|
103
|
-
maxResults: z.number().int().optional(),
|
|
104
|
-
nextPage: z.string().optional(),
|
|
105
|
-
self: z.string().optional(),
|
|
106
|
-
startAt: z.number().int().optional(),
|
|
107
|
-
total: z.number().int().optional(),
|
|
108
|
-
values: z
|
|
109
|
-
.array(validationSchemaStorage.lazy("ResolutionJsonBean"))
|
|
110
|
-
.optional(),
|
|
111
|
-
})
|
|
112
|
-
.strict()
|
|
113
|
-
.describe("PageBeanResolutionJsonBean"),
|
|
114
|
-
);
|
|
115
|
-
validationSchemaStorage.register(
|
|
116
|
-
"ReorderIssueResolutionsRequest",
|
|
117
|
-
z
|
|
118
|
-
.object({
|
|
119
|
-
after: z.string().optional(),
|
|
120
|
-
ids: z.array(z.string()),
|
|
121
|
-
position: z.string().optional(),
|
|
122
|
-
})
|
|
123
|
-
.strict()
|
|
124
|
-
.describe("ReorderIssueResolutionsRequest"),
|
|
125
|
-
);
|
|
126
|
-
validationSchemaStorage.register(
|
|
127
|
-
"Resolution",
|
|
128
|
-
z
|
|
129
|
-
.object({
|
|
130
|
-
description: z.string().optional(),
|
|
131
|
-
id: z.string().optional(),
|
|
132
|
-
name: z.string().optional(),
|
|
133
|
-
self: z.string().optional(),
|
|
134
|
-
})
|
|
135
|
-
.strict()
|
|
136
|
-
.describe("Resolution"),
|
|
137
|
-
);
|
|
138
|
-
validationSchemaStorage.register(
|
|
139
|
-
"ResolutionId",
|
|
140
|
-
z
|
|
141
|
-
.object({
|
|
142
|
-
id: z.string(),
|
|
143
|
-
})
|
|
144
|
-
.catchall(z.unknown())
|
|
145
|
-
.describe("ResolutionId"),
|
|
146
|
-
);
|
|
147
|
-
validationSchemaStorage.register(
|
|
148
|
-
"ResolutionJsonBean",
|
|
149
|
-
z
|
|
150
|
-
.object({
|
|
151
|
-
default: z.boolean().optional(),
|
|
152
|
-
description: z.string().optional(),
|
|
153
|
-
iconUrl: z.string().optional(),
|
|
154
|
-
id: z.string().optional(),
|
|
155
|
-
name: z.string().optional(),
|
|
156
|
-
self: z.string().optional(),
|
|
157
|
-
})
|
|
158
|
-
.strict()
|
|
159
|
-
.describe("ResolutionJsonBean"),
|
|
160
|
-
);
|
|
161
|
-
validationSchemaStorage.register(
|
|
162
|
-
"SetDefaultResolutionRequest",
|
|
163
|
-
z
|
|
164
|
-
.object({
|
|
165
|
-
id: z.string(),
|
|
166
|
-
})
|
|
167
|
-
.strict()
|
|
168
|
-
.describe("SetDefaultResolutionRequest"),
|
|
169
|
-
);
|
|
170
|
-
validationSchemaStorage.register(
|
|
171
|
-
"UpdateResolutionDetails",
|
|
172
|
-
z
|
|
173
|
-
.object({
|
|
174
|
-
description: z.string().max(255).optional(),
|
|
175
|
-
name: z.string().max(60),
|
|
176
|
-
})
|
|
177
|
-
.catchall(z.unknown())
|
|
178
|
-
.describe("UpdateResolutionDetails"),
|
|
179
|
-
);
|
|
180
|
-
}
|