@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,435 +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 a field configuration to issue type mappings. */
|
|
8
|
-
export interface AssociateFieldConfigurationsWithIssueTypesRequest {
|
|
9
|
-
/** Field configuration to issue type mappings. */
|
|
10
|
-
mappings: FieldConfigurationToIssueTypeMapping[];
|
|
11
|
-
}
|
|
12
|
-
/** Details of a field configuration. */
|
|
13
|
-
export interface FieldConfiguration {
|
|
14
|
-
/** The description of the field configuration. */
|
|
15
|
-
description: string;
|
|
16
|
-
/** The ID of the field configuration. */
|
|
17
|
-
id: number;
|
|
18
|
-
/** Whether the field configuration is the default. */
|
|
19
|
-
isDefault?: boolean;
|
|
20
|
-
/** The name of the field configuration. */
|
|
21
|
-
name: string;
|
|
22
|
-
}
|
|
23
|
-
/** Details of a field configuration. */
|
|
24
|
-
export interface FieldConfigurationDetails {
|
|
25
|
-
/** The description of the field configuration. */
|
|
26
|
-
description?: string;
|
|
27
|
-
/** The name of the field configuration. Must be unique. */
|
|
28
|
-
name: string;
|
|
29
|
-
}
|
|
30
|
-
/** The field configuration for an issue type. */
|
|
31
|
-
export interface FieldConfigurationIssueTypeItem {
|
|
32
|
-
/** The ID of the field configuration. */
|
|
33
|
-
fieldConfigurationId: string;
|
|
34
|
-
/** The ID of the field configuration scheme. */
|
|
35
|
-
fieldConfigurationSchemeId: string;
|
|
36
|
-
/**
|
|
37
|
-
* The ID of the issue type or *default*. When set to *default* this field
|
|
38
|
-
* configuration issue type item applies to all issue types without a field
|
|
39
|
-
* configuration.
|
|
40
|
-
*/
|
|
41
|
-
issueTypeId: string;
|
|
42
|
-
}
|
|
43
|
-
/** A field within a field configuration. */
|
|
44
|
-
export interface FieldConfigurationItem {
|
|
45
|
-
/** The description of the field within the field configuration. */
|
|
46
|
-
description?: string;
|
|
47
|
-
/** The ID of the field within the field configuration. */
|
|
48
|
-
id: string;
|
|
49
|
-
/** Whether the field is hidden in the field configuration. */
|
|
50
|
-
isHidden?: boolean;
|
|
51
|
-
/** Whether the field is required in the field configuration. */
|
|
52
|
-
isRequired?: boolean;
|
|
53
|
-
/** The renderer type for the field within the field configuration. */
|
|
54
|
-
renderer?: string;
|
|
55
|
-
}
|
|
56
|
-
/** Details of field configuration items. */
|
|
57
|
-
export interface FieldConfigurationItemsDetails {
|
|
58
|
-
/** Details of fields in a field configuration. */
|
|
59
|
-
fieldConfigurationItems: FieldConfigurationItem[];
|
|
60
|
-
}
|
|
61
|
-
/** Details of a field configuration scheme. */
|
|
62
|
-
export interface FieldConfigurationScheme {
|
|
63
|
-
/** The description of the field configuration scheme. */
|
|
64
|
-
description?: string;
|
|
65
|
-
/** The ID of the field configuration scheme. */
|
|
66
|
-
id: string;
|
|
67
|
-
/** The name of the field configuration scheme. */
|
|
68
|
-
name: string;
|
|
69
|
-
}
|
|
70
|
-
/** Associated field configuration scheme and project. */
|
|
71
|
-
export interface FieldConfigurationSchemeProjectAssociation {
|
|
72
|
-
/**
|
|
73
|
-
* The ID of the field configuration scheme. If the field configuration scheme ID
|
|
74
|
-
* is `null`, the operation assigns the default field configuration scheme.
|
|
75
|
-
*/
|
|
76
|
-
fieldConfigurationSchemeId?: string;
|
|
77
|
-
/** The ID of the project. */
|
|
78
|
-
projectId: string;
|
|
79
|
-
}
|
|
80
|
-
/** Project list with assigned field configuration schema. */
|
|
81
|
-
export interface FieldConfigurationSchemeProjects {
|
|
82
|
-
/** Details of a field configuration scheme. */
|
|
83
|
-
fieldConfigurationScheme?: FieldConfigurationScheme;
|
|
84
|
-
/** The IDs of projects using the field configuration scheme. */
|
|
85
|
-
projectIds: string[];
|
|
86
|
-
}
|
|
87
|
-
/** The field configuration to issue type mapping. */
|
|
88
|
-
export interface FieldConfigurationToIssueTypeMapping {
|
|
89
|
-
/** The ID of the field configuration. */
|
|
90
|
-
fieldConfigurationId: string;
|
|
91
|
-
/**
|
|
92
|
-
* The ID of the issue type or *default*. When set to *default* this field
|
|
93
|
-
* configuration issue type item applies to all issue types without a field
|
|
94
|
-
* configuration. An issue type can be included only once in a request.
|
|
95
|
-
*/
|
|
96
|
-
issueTypeId: string;
|
|
97
|
-
}
|
|
98
|
-
/** The list of issue type IDs to be removed from the field configuration scheme. */
|
|
99
|
-
export interface IssueTypeIdsToRemove {
|
|
100
|
-
/**
|
|
101
|
-
* The list of issue type IDs. Must contain unique values not longer than 255
|
|
102
|
-
* characters and not be empty. Maximum of 100 IDs.
|
|
103
|
-
*/
|
|
104
|
-
issueTypeIds: string[];
|
|
105
|
-
}
|
|
106
|
-
/** A page of items. */
|
|
107
|
-
export interface PageBeanFieldConfigurationDetails {
|
|
108
|
-
/** Whether this is the last page. */
|
|
109
|
-
isLast?: boolean;
|
|
110
|
-
/** The maximum number of items that could be returned. */
|
|
111
|
-
maxResults?: number;
|
|
112
|
-
/** If there is another page of results, the URL of the next page. */
|
|
113
|
-
nextPage?: string;
|
|
114
|
-
/** The URL of the page. */
|
|
115
|
-
self?: string;
|
|
116
|
-
/** The index of the first item returned. */
|
|
117
|
-
startAt?: number;
|
|
118
|
-
/** The number of items returned. */
|
|
119
|
-
total?: number;
|
|
120
|
-
/** The list of items. */
|
|
121
|
-
values?: FieldConfigurationDetails[];
|
|
122
|
-
}
|
|
123
|
-
/** A page of items. */
|
|
124
|
-
export interface PageBeanFieldConfigurationIssueTypeItem {
|
|
125
|
-
/** Whether this is the last page. */
|
|
126
|
-
isLast?: boolean;
|
|
127
|
-
/** The maximum number of items that could be returned. */
|
|
128
|
-
maxResults?: number;
|
|
129
|
-
/** If there is another page of results, the URL of the next page. */
|
|
130
|
-
nextPage?: string;
|
|
131
|
-
/** The URL of the page. */
|
|
132
|
-
self?: string;
|
|
133
|
-
/** The index of the first item returned. */
|
|
134
|
-
startAt?: number;
|
|
135
|
-
/** The number of items returned. */
|
|
136
|
-
total?: number;
|
|
137
|
-
/** The list of items. */
|
|
138
|
-
values?: FieldConfigurationIssueTypeItem[];
|
|
139
|
-
}
|
|
140
|
-
/** A page of items. */
|
|
141
|
-
export interface PageBeanFieldConfigurationItem {
|
|
142
|
-
/** Whether this is the last page. */
|
|
143
|
-
isLast?: boolean;
|
|
144
|
-
/** The maximum number of items that could be returned. */
|
|
145
|
-
maxResults?: number;
|
|
146
|
-
/** If there is another page of results, the URL of the next page. */
|
|
147
|
-
nextPage?: string;
|
|
148
|
-
/** The URL of the page. */
|
|
149
|
-
self?: string;
|
|
150
|
-
/** The index of the first item returned. */
|
|
151
|
-
startAt?: number;
|
|
152
|
-
/** The number of items returned. */
|
|
153
|
-
total?: number;
|
|
154
|
-
/** The list of items. */
|
|
155
|
-
values?: FieldConfigurationItem[];
|
|
156
|
-
}
|
|
157
|
-
/** A page of items. */
|
|
158
|
-
export interface PageBeanFieldConfigurationScheme {
|
|
159
|
-
/** Whether this is the last page. */
|
|
160
|
-
isLast?: boolean;
|
|
161
|
-
/** The maximum number of items that could be returned. */
|
|
162
|
-
maxResults?: number;
|
|
163
|
-
/** If there is another page of results, the URL of the next page. */
|
|
164
|
-
nextPage?: string;
|
|
165
|
-
/** The URL of the page. */
|
|
166
|
-
self?: string;
|
|
167
|
-
/** The index of the first item returned. */
|
|
168
|
-
startAt?: number;
|
|
169
|
-
/** The number of items returned. */
|
|
170
|
-
total?: number;
|
|
171
|
-
/** The list of items. */
|
|
172
|
-
values?: FieldConfigurationScheme[];
|
|
173
|
-
}
|
|
174
|
-
/** A page of items. */
|
|
175
|
-
export interface PageBeanFieldConfigurationSchemeProjects {
|
|
176
|
-
/** Whether this is the last page. */
|
|
177
|
-
isLast?: boolean;
|
|
178
|
-
/** The maximum number of items that could be returned. */
|
|
179
|
-
maxResults?: number;
|
|
180
|
-
/** If there is another page of results, the URL of the next page. */
|
|
181
|
-
nextPage?: string;
|
|
182
|
-
/** The URL of the page. */
|
|
183
|
-
self?: string;
|
|
184
|
-
/** The index of the first item returned. */
|
|
185
|
-
startAt?: number;
|
|
186
|
-
/** The number of items returned. */
|
|
187
|
-
total?: number;
|
|
188
|
-
/** The list of items. */
|
|
189
|
-
values?: FieldConfigurationSchemeProjects[];
|
|
190
|
-
}
|
|
191
|
-
/** The details of the field configuration scheme. */
|
|
192
|
-
export interface UpdateFieldConfigurationSchemeDetails {
|
|
193
|
-
/** The description of the field configuration scheme. */
|
|
194
|
-
description?: string;
|
|
195
|
-
/** The name of the field configuration scheme. The name must be unique. */
|
|
196
|
-
name: string;
|
|
197
|
-
}
|
|
198
|
-
export function registerIssueFieldConfigurationsValidationSchemas(
|
|
199
|
-
validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
|
|
200
|
-
) {
|
|
201
|
-
validationSchemaStorage.register(
|
|
202
|
-
"AssociateFieldConfigurationsWithIssueTypesRequest",
|
|
203
|
-
z
|
|
204
|
-
.object({
|
|
205
|
-
mappings: z
|
|
206
|
-
.array(
|
|
207
|
-
validationSchemaStorage.lazy(
|
|
208
|
-
"FieldConfigurationToIssueTypeMapping",
|
|
209
|
-
),
|
|
210
|
-
)
|
|
211
|
-
.superRefine((items, ctx) => {
|
|
212
|
-
if (
|
|
213
|
-
new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
214
|
-
items.length
|
|
215
|
-
) {
|
|
216
|
-
ctx.addIssue({
|
|
217
|
-
code: z.ZodIssueCode.custom,
|
|
218
|
-
path: [],
|
|
219
|
-
message: "Array items must be unique",
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}),
|
|
223
|
-
})
|
|
224
|
-
.strict()
|
|
225
|
-
.describe("AssociateFieldConfigurationsWithIssueTypesRequest"),
|
|
226
|
-
);
|
|
227
|
-
validationSchemaStorage.register(
|
|
228
|
-
"FieldConfiguration",
|
|
229
|
-
z
|
|
230
|
-
.object({
|
|
231
|
-
description: z.string(),
|
|
232
|
-
id: z.number().int(),
|
|
233
|
-
isDefault: z.boolean().optional(),
|
|
234
|
-
name: z.string(),
|
|
235
|
-
})
|
|
236
|
-
.strict()
|
|
237
|
-
.describe("FieldConfiguration"),
|
|
238
|
-
);
|
|
239
|
-
validationSchemaStorage.register(
|
|
240
|
-
"FieldConfigurationDetails",
|
|
241
|
-
z
|
|
242
|
-
.object({
|
|
243
|
-
description: z.string().max(255).optional(),
|
|
244
|
-
name: z.string().max(255),
|
|
245
|
-
})
|
|
246
|
-
.strict()
|
|
247
|
-
.describe("FieldConfigurationDetails"),
|
|
248
|
-
);
|
|
249
|
-
validationSchemaStorage.register(
|
|
250
|
-
"FieldConfigurationIssueTypeItem",
|
|
251
|
-
z
|
|
252
|
-
.object({
|
|
253
|
-
fieldConfigurationId: z.string(),
|
|
254
|
-
fieldConfigurationSchemeId: z.string(),
|
|
255
|
-
issueTypeId: z.string(),
|
|
256
|
-
})
|
|
257
|
-
.strict()
|
|
258
|
-
.describe("FieldConfigurationIssueTypeItem"),
|
|
259
|
-
);
|
|
260
|
-
validationSchemaStorage.register(
|
|
261
|
-
"FieldConfigurationItem",
|
|
262
|
-
z
|
|
263
|
-
.object({
|
|
264
|
-
description: z.string().optional(),
|
|
265
|
-
id: z.string(),
|
|
266
|
-
isHidden: z.boolean().optional(),
|
|
267
|
-
isRequired: z.boolean().optional(),
|
|
268
|
-
renderer: z.string().optional(),
|
|
269
|
-
})
|
|
270
|
-
.strict()
|
|
271
|
-
.describe("FieldConfigurationItem"),
|
|
272
|
-
);
|
|
273
|
-
validationSchemaStorage.register(
|
|
274
|
-
"FieldConfigurationItemsDetails",
|
|
275
|
-
z
|
|
276
|
-
.object({
|
|
277
|
-
fieldConfigurationItems: z.array(
|
|
278
|
-
validationSchemaStorage.lazy("FieldConfigurationItem"),
|
|
279
|
-
),
|
|
280
|
-
})
|
|
281
|
-
.strict()
|
|
282
|
-
.describe("FieldConfigurationItemsDetails"),
|
|
283
|
-
);
|
|
284
|
-
validationSchemaStorage.register(
|
|
285
|
-
"FieldConfigurationScheme",
|
|
286
|
-
z
|
|
287
|
-
.object({
|
|
288
|
-
description: z.string().optional(),
|
|
289
|
-
id: z.string(),
|
|
290
|
-
name: z.string(),
|
|
291
|
-
})
|
|
292
|
-
.strict()
|
|
293
|
-
.describe("FieldConfigurationScheme"),
|
|
294
|
-
);
|
|
295
|
-
validationSchemaStorage.register(
|
|
296
|
-
"FieldConfigurationSchemeProjectAssociation",
|
|
297
|
-
z
|
|
298
|
-
.object({
|
|
299
|
-
fieldConfigurationSchemeId: z.string().optional(),
|
|
300
|
-
projectId: z.string(),
|
|
301
|
-
})
|
|
302
|
-
.strict()
|
|
303
|
-
.describe("FieldConfigurationSchemeProjectAssociation"),
|
|
304
|
-
);
|
|
305
|
-
validationSchemaStorage.register(
|
|
306
|
-
"FieldConfigurationSchemeProjects",
|
|
307
|
-
z
|
|
308
|
-
.object({
|
|
309
|
-
fieldConfigurationScheme: validationSchemaStorage
|
|
310
|
-
.lazy("FieldConfigurationScheme")
|
|
311
|
-
.optional(),
|
|
312
|
-
projectIds: z.array(z.string()),
|
|
313
|
-
})
|
|
314
|
-
.strict()
|
|
315
|
-
.describe("FieldConfigurationSchemeProjects"),
|
|
316
|
-
);
|
|
317
|
-
validationSchemaStorage.register(
|
|
318
|
-
"FieldConfigurationToIssueTypeMapping",
|
|
319
|
-
z
|
|
320
|
-
.object({
|
|
321
|
-
fieldConfigurationId: z.string(),
|
|
322
|
-
issueTypeId: z.string(),
|
|
323
|
-
})
|
|
324
|
-
.strict()
|
|
325
|
-
.describe("FieldConfigurationToIssueTypeMapping"),
|
|
326
|
-
);
|
|
327
|
-
validationSchemaStorage.register(
|
|
328
|
-
"IssueTypeIdsToRemove",
|
|
329
|
-
z
|
|
330
|
-
.object({
|
|
331
|
-
issueTypeIds: z.array(z.string()),
|
|
332
|
-
})
|
|
333
|
-
.strict()
|
|
334
|
-
.describe("IssueTypeIdsToRemove"),
|
|
335
|
-
);
|
|
336
|
-
validationSchemaStorage.register(
|
|
337
|
-
"PageBeanFieldConfigurationDetails",
|
|
338
|
-
z
|
|
339
|
-
.object({
|
|
340
|
-
isLast: z.boolean().optional(),
|
|
341
|
-
maxResults: z.number().int().optional(),
|
|
342
|
-
nextPage: z.string().optional(),
|
|
343
|
-
self: z.string().optional(),
|
|
344
|
-
startAt: z.number().int().optional(),
|
|
345
|
-
total: z.number().int().optional(),
|
|
346
|
-
values: z
|
|
347
|
-
.array(validationSchemaStorage.lazy("FieldConfigurationDetails"))
|
|
348
|
-
.optional(),
|
|
349
|
-
})
|
|
350
|
-
.strict()
|
|
351
|
-
.describe("PageBeanFieldConfigurationDetails"),
|
|
352
|
-
);
|
|
353
|
-
validationSchemaStorage.register(
|
|
354
|
-
"PageBeanFieldConfigurationIssueTypeItem",
|
|
355
|
-
z
|
|
356
|
-
.object({
|
|
357
|
-
isLast: z.boolean().optional(),
|
|
358
|
-
maxResults: z.number().int().optional(),
|
|
359
|
-
nextPage: z.string().optional(),
|
|
360
|
-
self: z.string().optional(),
|
|
361
|
-
startAt: z.number().int().optional(),
|
|
362
|
-
total: z.number().int().optional(),
|
|
363
|
-
values: z
|
|
364
|
-
.array(
|
|
365
|
-
validationSchemaStorage.lazy("FieldConfigurationIssueTypeItem"),
|
|
366
|
-
)
|
|
367
|
-
.optional(),
|
|
368
|
-
})
|
|
369
|
-
.strict()
|
|
370
|
-
.describe("PageBeanFieldConfigurationIssueTypeItem"),
|
|
371
|
-
);
|
|
372
|
-
validationSchemaStorage.register(
|
|
373
|
-
"PageBeanFieldConfigurationItem",
|
|
374
|
-
z
|
|
375
|
-
.object({
|
|
376
|
-
isLast: z.boolean().optional(),
|
|
377
|
-
maxResults: z.number().int().optional(),
|
|
378
|
-
nextPage: z.string().optional(),
|
|
379
|
-
self: z.string().optional(),
|
|
380
|
-
startAt: z.number().int().optional(),
|
|
381
|
-
total: z.number().int().optional(),
|
|
382
|
-
values: z
|
|
383
|
-
.array(validationSchemaStorage.lazy("FieldConfigurationItem"))
|
|
384
|
-
.optional(),
|
|
385
|
-
})
|
|
386
|
-
.strict()
|
|
387
|
-
.describe("PageBeanFieldConfigurationItem"),
|
|
388
|
-
);
|
|
389
|
-
validationSchemaStorage.register(
|
|
390
|
-
"PageBeanFieldConfigurationScheme",
|
|
391
|
-
z
|
|
392
|
-
.object({
|
|
393
|
-
isLast: z.boolean().optional(),
|
|
394
|
-
maxResults: z.number().int().optional(),
|
|
395
|
-
nextPage: z.string().optional(),
|
|
396
|
-
self: z.string().optional(),
|
|
397
|
-
startAt: z.number().int().optional(),
|
|
398
|
-
total: z.number().int().optional(),
|
|
399
|
-
values: z
|
|
400
|
-
.array(validationSchemaStorage.lazy("FieldConfigurationScheme"))
|
|
401
|
-
.optional(),
|
|
402
|
-
})
|
|
403
|
-
.strict()
|
|
404
|
-
.describe("PageBeanFieldConfigurationScheme"),
|
|
405
|
-
);
|
|
406
|
-
validationSchemaStorage.register(
|
|
407
|
-
"PageBeanFieldConfigurationSchemeProjects",
|
|
408
|
-
z
|
|
409
|
-
.object({
|
|
410
|
-
isLast: z.boolean().optional(),
|
|
411
|
-
maxResults: z.number().int().optional(),
|
|
412
|
-
nextPage: z.string().optional(),
|
|
413
|
-
self: z.string().optional(),
|
|
414
|
-
startAt: z.number().int().optional(),
|
|
415
|
-
total: z.number().int().optional(),
|
|
416
|
-
values: z
|
|
417
|
-
.array(
|
|
418
|
-
validationSchemaStorage.lazy("FieldConfigurationSchemeProjects"),
|
|
419
|
-
)
|
|
420
|
-
.optional(),
|
|
421
|
-
})
|
|
422
|
-
.strict()
|
|
423
|
-
.describe("PageBeanFieldConfigurationSchemeProjects"),
|
|
424
|
-
);
|
|
425
|
-
validationSchemaStorage.register(
|
|
426
|
-
"UpdateFieldConfigurationSchemeDetails",
|
|
427
|
-
z
|
|
428
|
-
.object({
|
|
429
|
-
description: z.string().max(1024).optional(),
|
|
430
|
-
name: z.string().max(255),
|
|
431
|
-
})
|
|
432
|
-
.strict()
|
|
433
|
-
.describe("UpdateFieldConfigurationSchemeDetails"),
|
|
434
|
-
);
|
|
435
|
-
}
|