@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.
Files changed (201) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +10 -3
  3. package/.eslintrc.js +0 -3
  4. package/config/api-typescript-generator.config.ts +0 -91
  5. package/config/compare-schemas.ts +0 -307
  6. package/src/index.ts +0 -47
  7. package/src/openapi/platform/base-jira-platform-api-client.ts +0 -2298
  8. package/src/openapi/platform/core/common-http-client.ts +0 -723
  9. package/src/openapi/platform/core/common-http-service.ts +0 -22
  10. package/src/openapi/platform/core/common-validation-schema-storage.ts +0 -105
  11. package/src/openapi/platform/models/announcement-banner.ts +0 -59
  12. package/src/openapi/platform/models/app-data-policies.ts +0 -79
  13. package/src/openapi/platform/models/app-migration.ts +0 -172
  14. package/src/openapi/platform/models/app-properties.ts +0 -32
  15. package/src/openapi/platform/models/audit-records.ts +0 -140
  16. package/src/openapi/platform/models/avatars.ts +0 -48
  17. package/src/openapi/platform/models/classification-levels.ts +0 -58
  18. package/src/openapi/platform/models/common.ts +0 -2669
  19. package/src/openapi/platform/models/dashboards.ts +0 -849
  20. package/src/openapi/platform/models/dynamic-modules.ts +0 -121
  21. package/src/openapi/platform/models/filter-sharing.ts +0 -103
  22. package/src/openapi/platform/models/filters.ts +0 -319
  23. package/src/openapi/platform/models/group-and-user-picker.ts +0 -85
  24. package/src/openapi/platform/models/groups.ts +0 -247
  25. package/src/openapi/platform/models/issue-attachments.ts +0 -290
  26. package/src/openapi/platform/models/issue-comment-properties.ts +0 -27
  27. package/src/openapi/platform/models/issue-comments.ts +0 -91
  28. package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +0 -96
  29. package/src/openapi/platform/models/issue-custom-field-contexts.ts +0 -1072
  30. package/src/openapi/platform/models/issue-custom-field-options-apps.ts +0 -273
  31. package/src/openapi/platform/models/issue-custom-field-options.ts +0 -283
  32. package/src/openapi/platform/models/issue-custom-field-values-apps.ts +0 -118
  33. package/src/openapi/platform/models/issue-field-configurations.ts +0 -435
  34. package/src/openapi/platform/models/issue-fields.ts +0 -392
  35. package/src/openapi/platform/models/issue-link-types.ts +0 -28
  36. package/src/openapi/platform/models/issue-links.ts +0 -185
  37. package/src/openapi/platform/models/issue-notification-schemes.ts +0 -370
  38. package/src/openapi/platform/models/issue-priorities.ts +0 -196
  39. package/src/openapi/platform/models/issue-properties.ts +0 -259
  40. package/src/openapi/platform/models/issue-remote-links.ts +0 -207
  41. package/src/openapi/platform/models/issue-resolutions.ts +0 -180
  42. package/src/openapi/platform/models/issue-search.ts +0 -367
  43. package/src/openapi/platform/models/issue-security-level.ts +0 -76
  44. package/src/openapi/platform/models/issue-security-schemes.ts +0 -496
  45. package/src/openapi/platform/models/issue-type-schemes.ts +0 -290
  46. package/src/openapi/platform/models/issue-type-screen-schemes.ts +0 -286
  47. package/src/openapi/platform/models/issue-types.ts +0 -66
  48. package/src/openapi/platform/models/issue-votes.ts +0 -38
  49. package/src/openapi/platform/models/issue-watchers.ts +0 -67
  50. package/src/openapi/platform/models/issue-worklogs.ts +0 -190
  51. package/src/openapi/platform/models/issues.ts +0 -1268
  52. package/src/openapi/platform/models/jira-expressions.ts +0 -578
  53. package/src/openapi/platform/models/jira-settings.ts +0 -118
  54. package/src/openapi/platform/models/jql-functions-apps.ts +0 -128
  55. package/src/openapi/platform/models/jql.ts +0 -783
  56. package/src/openapi/platform/models/labels.ts +0 -42
  57. package/src/openapi/platform/models/license-metrics.ts +0 -68
  58. package/src/openapi/platform/models/myself.ts +0 -29
  59. package/src/openapi/platform/models/permission-schemes.ts +0 -89
  60. package/src/openapi/platform/models/permissions.ts +0 -308
  61. package/src/openapi/platform/models/priority-schemes.ts +0 -527
  62. package/src/openapi/platform/models/project-avatars.ts +0 -29
  63. package/src/openapi/platform/models/project-classification-levels.ts +0 -24
  64. package/src/openapi/platform/models/project-components.ts +0 -231
  65. package/src/openapi/platform/models/project-email.ts +0 -27
  66. package/src/openapi/platform/models/project-features.ts +0 -78
  67. package/src/openapi/platform/models/project-permission-schemes.ts +0 -43
  68. package/src/openapi/platform/models/project-role-actors.ts +0 -107
  69. package/src/openapi/platform/models/project-roles.ts +0 -76
  70. package/src/openapi/platform/models/project-types.ts +0 -36
  71. package/src/openapi/platform/models/project-versions.ts +0 -216
  72. package/src/openapi/platform/models/projects.ts +0 -429
  73. package/src/openapi/platform/models/screen-schemes.ts +0 -192
  74. package/src/openapi/platform/models/screen-tab-fields.ts +0 -45
  75. package/src/openapi/platform/models/screens.ts +0 -171
  76. package/src/openapi/platform/models/server-info.ts +0 -100
  77. package/src/openapi/platform/models/service-registry.ts +0 -68
  78. package/src/openapi/platform/models/status.ts +0 -229
  79. package/src/openapi/platform/models/time-tracking.ts +0 -38
  80. package/src/openapi/platform/models/ui-modifications-apps.ts +0 -229
  81. package/src/openapi/platform/models/user-search.ts +0 -69
  82. package/src/openapi/platform/models/users.ts +0 -121
  83. package/src/openapi/platform/models/webhooks.ts +0 -307
  84. package/src/openapi/platform/models/workflow-scheme-drafts.ts +0 -58
  85. package/src/openapi/platform/models/workflow-scheme-project-associations.ts +0 -68
  86. package/src/openapi/platform/models/workflow-schemes.ts +0 -545
  87. package/src/openapi/platform/models/workflow-transition-properties.ts +0 -33
  88. package/src/openapi/platform/models/workflow-transition-rules.ts +0 -261
  89. package/src/openapi/platform/models/workflows.ts +0 -1943
  90. package/src/openapi/platform/services/announcement-banner-service.ts +0 -142
  91. package/src/openapi/platform/services/app-data-policies-service.ts +0 -136
  92. package/src/openapi/platform/services/app-migration-service.ts +0 -289
  93. package/src/openapi/platform/services/app-properties-service.ts +0 -441
  94. package/src/openapi/platform/services/application-roles-service.ts +0 -247
  95. package/src/openapi/platform/services/audit-records-service.ts +0 -164
  96. package/src/openapi/platform/services/avatars-service.ts +0 -769
  97. package/src/openapi/platform/services/classification-levels-service.ts +0 -131
  98. package/src/openapi/platform/services/dashboards-service.ts +0 -1721
  99. package/src/openapi/platform/services/dynamic-modules-service.ts +0 -127
  100. package/src/openapi/platform/services/filter-sharing-service.ts +0 -687
  101. package/src/openapi/platform/services/filters-service.ts +0 -1901
  102. package/src/openapi/platform/services/group-and-user-picker-service.ts +0 -224
  103. package/src/openapi/platform/services/groups-service.ts +0 -751
  104. package/src/openapi/platform/services/issue-attachments-service.ts +0 -900
  105. package/src/openapi/platform/services/issue-comment-properties-service.ts +0 -324
  106. package/src/openapi/platform/services/issue-comments-service.ts +0 -812
  107. package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +0 -277
  108. package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +0 -1339
  109. package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +0 -994
  110. package/src/openapi/platform/services/issue-custom-field-options-service.ts +0 -651
  111. package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +0 -201
  112. package/src/openapi/platform/services/issue-field-configurations-service.ts +0 -1294
  113. package/src/openapi/platform/services/issue-fields-service.ts +0 -837
  114. package/src/openapi/platform/services/issue-link-types-service.ts +0 -360
  115. package/src/openapi/platform/services/issue-links-service.ts +0 -345
  116. package/src/openapi/platform/services/issue-navigator-settings-service.ts +0 -119
  117. package/src/openapi/platform/services/issue-notification-schemes-service.ts +0 -1209
  118. package/src/openapi/platform/services/issue-priorities-service.ts +0 -575
  119. package/src/openapi/platform/services/issue-properties-service.ts +0 -606
  120. package/src/openapi/platform/services/issue-remote-links-service.ts +0 -597
  121. package/src/openapi/platform/services/issue-resolutions-service.ts +0 -534
  122. package/src/openapi/platform/services/issue-search-service.ts +0 -1139
  123. package/src/openapi/platform/services/issue-security-level-service.ts +0 -250
  124. package/src/openapi/platform/services/issue-security-schemes-service.ts +0 -1240
  125. package/src/openapi/platform/services/issue-type-properties-service.ts +0 -325
  126. package/src/openapi/platform/services/issue-type-schemes-service.ts +0 -940
  127. package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +0 -994
  128. package/src/openapi/platform/services/issue-types-service.ts +0 -679
  129. package/src/openapi/platform/services/issue-votes-service.ts +0 -221
  130. package/src/openapi/platform/services/issue-watchers-service.ts +0 -331
  131. package/src/openapi/platform/services/issue-worklog-properties-service.ts +0 -348
  132. package/src/openapi/platform/services/issue-worklogs-service.ts +0 -1089
  133. package/src/openapi/platform/services/issues-service.ts +0 -3346
  134. package/src/openapi/platform/services/jira-expressions-service.ts +0 -407
  135. package/src/openapi/platform/services/jira-settings-service.ts +0 -415
  136. package/src/openapi/platform/services/jql-functions-apps-service.ts +0 -219
  137. package/src/openapi/platform/services/jql-service.ts +0 -896
  138. package/src/openapi/platform/services/labels-service.ts +0 -89
  139. package/src/openapi/platform/services/license-metrics-service.ts +0 -216
  140. package/src/openapi/platform/services/myself-service.ts +0 -520
  141. package/src/openapi/platform/services/permission-schemes-service.ts +0 -926
  142. package/src/openapi/platform/services/permissions-service.ts +0 -407
  143. package/src/openapi/platform/services/priority-schemes-service.ts +0 -1001
  144. package/src/openapi/platform/services/project-avatars-service.ts +0 -341
  145. package/src/openapi/platform/services/project-categories-service.ts +0 -318
  146. package/src/openapi/platform/services/project-classification-levels-service.ts +0 -232
  147. package/src/openapi/platform/services/project-components-service.ts +0 -1332
  148. package/src/openapi/platform/services/project-email-service.ts +0 -161
  149. package/src/openapi/platform/services/project-features-service.ts +0 -207
  150. package/src/openapi/platform/services/project-key-and-name-validation-service.ts +0 -200
  151. package/src/openapi/platform/services/project-permission-schemes-service.ts +0 -384
  152. package/src/openapi/platform/services/project-properties-service.ts +0 -320
  153. package/src/openapi/platform/services/project-role-actors-service.ts +0 -627
  154. package/src/openapi/platform/services/project-roles-service.ts +0 -867
  155. package/src/openapi/platform/services/project-types-service.ts +0 -297
  156. package/src/openapi/platform/services/project-versions-service.ts +0 -1287
  157. package/src/openapi/platform/services/projects-service.ts +0 -2196
  158. package/src/openapi/platform/services/screen-schemes-service.ts +0 -334
  159. package/src/openapi/platform/services/screen-tab-fields-service.ts +0 -276
  160. package/src/openapi/platform/services/screen-tabs-service.ts +0 -421
  161. package/src/openapi/platform/services/screens-service.ts +0 -528
  162. package/src/openapi/platform/services/server-info-service.ts +0 -88
  163. package/src/openapi/platform/services/service-registry-service.ts +0 -89
  164. package/src/openapi/platform/services/status-service.ts +0 -498
  165. package/src/openapi/platform/services/tasks-service.ts +0 -159
  166. package/src/openapi/platform/services/time-tracking-service.ts +0 -386
  167. package/src/openapi/platform/services/ui-modifications-apps-service.ts +0 -403
  168. package/src/openapi/platform/services/user-properties-service.ts +0 -413
  169. package/src/openapi/platform/services/user-search-service.ts +0 -1214
  170. package/src/openapi/platform/services/users-service.ts +0 -1108
  171. package/src/openapi/platform/services/webhooks-service.ts +0 -458
  172. package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +0 -1313
  173. package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +0 -189
  174. package/src/openapi/platform/services/workflow-schemes-service.ts +0 -1617
  175. package/src/openapi/platform/services/workflow-status-categories-service.ts +0 -151
  176. package/src/openapi/platform/services/workflow-statuses-service.ts +0 -176
  177. package/src/openapi/platform/services/workflow-transition-properties-service.ts +0 -388
  178. package/src/openapi/platform/services/workflow-transition-rules-service.ts +0 -485
  179. package/src/openapi/platform/services/workflows-service.ts +0 -3477
  180. package/src/openapi/platform/validation-schema-storage.ts +0 -186
  181. package/src/openapi/software/base-jira-software-api-client.ts +0 -447
  182. package/src/openapi/software/core/common-http-client.ts +0 -723
  183. package/src/openapi/software/core/common-http-service.ts +0 -22
  184. package/src/openapi/software/core/common-validation-schema-storage.ts +0 -105
  185. package/src/openapi/software/models/board.ts +0 -918
  186. package/src/openapi/software/services/backlog-service.ts +0 -160
  187. package/src/openapi/software/services/board-service.ts +0 -4189
  188. package/src/openapi/software/services/builds-service.ts +0 -571
  189. package/src/openapi/software/services/deployments-service.ts +0 -403
  190. package/src/openapi/software/services/dev-ops-components-service.ts +0 -371
  191. package/src/openapi/software/services/development-information-service.ts +0 -2357
  192. package/src/openapi/software/services/epic-service.ts +0 -854
  193. package/src/openapi/software/services/feature-flags-service.ts +0 -303
  194. package/src/openapi/software/services/issue-service.ts +0 -529
  195. package/src/openapi/software/services/operations-service.ts +0 -741
  196. package/src/openapi/software/services/remote-links-service.ts +0 -653
  197. package/src/openapi/software/services/security-information-service.ts +0 -495
  198. package/src/openapi/software/services/sprint-service.ts +0 -969
  199. package/src/openapi/software/validation-schema-storage.ts +0 -186
  200. package/tsconfig.build.json +0 -7
  201. package/tsconfig.json +0 -4
@@ -1,290 +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 type scheme. */
8
- export interface IssueTypeScheme {
9
- /** The ID of the default issue type of the issue type scheme. */
10
- defaultIssueTypeId?: string;
11
- /** The description of the issue type scheme. */
12
- description?: string;
13
- /** The ID of the issue type scheme. */
14
- id: string;
15
- /** Whether the issue type scheme is the default. */
16
- isDefault?: boolean;
17
- /** The name of the issue type scheme. */
18
- name: string;
19
- }
20
- /** Details of an issue type scheme and its associated issue types. */
21
- export interface IssueTypeSchemeDetails {
22
- /**
23
- * The ID of the default issue type of the issue type scheme. This ID must be
24
- * included in `issueTypeIds`.
25
- */
26
- defaultIssueTypeId?: string;
27
- /** The description of the issue type scheme. The maximum length is 4000 characters. */
28
- description?: string;
29
- /**
30
- * The list of issue types IDs of the issue type scheme. At least one standard
31
- * issue type ID is required.
32
- */
33
- issueTypeIds: string[];
34
- /**
35
- * The name of the issue type scheme. The name must be unique. The maximum length
36
- * is 255 characters.
37
- */
38
- name: string;
39
- }
40
- /** The ID of an issue type scheme. */
41
- export interface IssueTypeSchemeId {
42
- /** The ID of the issue type scheme. */
43
- issueTypeSchemeId: string;
44
- }
45
- /** Issue type scheme item. */
46
- export interface IssueTypeSchemeMapping {
47
- /** The ID of the issue type. */
48
- issueTypeId: string;
49
- /** The ID of the issue type scheme. */
50
- issueTypeSchemeId: string;
51
- }
52
- /** Details of the association between an issue type scheme and project. */
53
- export interface IssueTypeSchemeProjectAssociation {
54
- /** The ID of the issue type scheme. */
55
- issueTypeSchemeId: string;
56
- /** The ID of the project. */
57
- projectId: string;
58
- }
59
- /** Issue type scheme with a list of the projects that use it. */
60
- export interface IssueTypeSchemeProjects {
61
- /** Details of an issue type scheme. */
62
- issueTypeScheme: IssueTypeScheme;
63
- /** The IDs of the projects using the issue type scheme. */
64
- projectIds: string[];
65
- }
66
- /**
67
- * Details of the name, description, and default issue type for an issue type
68
- * scheme.
69
- */
70
- export interface IssueTypeSchemeUpdateDetails {
71
- /** The ID of the default issue type of the issue type scheme. */
72
- defaultIssueTypeId?: string;
73
- /** The description of the issue type scheme. The maximum length is 4000 characters. */
74
- description?: string;
75
- /**
76
- * The name of the issue type scheme. The name must be unique. The maximum length
77
- * is 255 characters.
78
- */
79
- name?: string;
80
- }
81
- /** An ordered list of issue type IDs and information about where to move them. */
82
- export interface OrderOfIssueTypes {
83
- /**
84
- * The ID of the issue type to place the moved issue types after. Required if
85
- * `position` isn't provided.
86
- */
87
- after?: string;
88
- /**
89
- * A list of the issue type IDs to move. The order of the issue type IDs in the
90
- * list is the order they are given after the move.
91
- */
92
- issueTypeIds: string[];
93
- /**
94
- * The position the issue types should be moved to. Required if `after` isn't
95
- * provided.
96
- */
97
- position?: "First" | "Last";
98
- }
99
- /** A page of items. */
100
- export interface PageBeanIssueTypeScheme {
101
- /** Whether this is the last page. */
102
- isLast?: boolean;
103
- /** The maximum number of items that could be returned. */
104
- maxResults?: number;
105
- /** If there is another page of results, the URL of the next page. */
106
- nextPage?: string;
107
- /** The URL of the page. */
108
- self?: string;
109
- /** The index of the first item returned. */
110
- startAt?: number;
111
- /** The number of items returned. */
112
- total?: number;
113
- /** The list of items. */
114
- values?: IssueTypeScheme[];
115
- }
116
- /** A page of items. */
117
- export interface PageBeanIssueTypeSchemeMapping {
118
- /** Whether this is the last page. */
119
- isLast?: boolean;
120
- /** The maximum number of items that could be returned. */
121
- maxResults?: number;
122
- /** If there is another page of results, the URL of the next page. */
123
- nextPage?: string;
124
- /** The URL of the page. */
125
- self?: string;
126
- /** The index of the first item returned. */
127
- startAt?: number;
128
- /** The number of items returned. */
129
- total?: number;
130
- /** The list of items. */
131
- values?: IssueTypeSchemeMapping[];
132
- }
133
- /** A page of items. */
134
- export interface PageBeanIssueTypeSchemeProjects {
135
- /** Whether this is the last page. */
136
- isLast?: boolean;
137
- /** The maximum number of items that could be returned. */
138
- maxResults?: number;
139
- /** If there is another page of results, the URL of the next page. */
140
- nextPage?: string;
141
- /** The URL of the page. */
142
- self?: string;
143
- /** The index of the first item returned. */
144
- startAt?: number;
145
- /** The number of items returned. */
146
- total?: number;
147
- /** The list of items. */
148
- values?: IssueTypeSchemeProjects[];
149
- }
150
- export function registerIssueTypeSchemesValidationSchemas(
151
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
152
- ) {
153
- validationSchemaStorage.register(
154
- "IssueTypeScheme",
155
- z
156
- .object({
157
- defaultIssueTypeId: z.string().optional(),
158
- description: z.string().optional(),
159
- id: z.string(),
160
- isDefault: z.boolean().optional(),
161
- name: z.string(),
162
- })
163
- .strict()
164
- .describe("IssueTypeScheme"),
165
- );
166
- validationSchemaStorage.register(
167
- "IssueTypeSchemeDetails",
168
- z
169
- .object({
170
- defaultIssueTypeId: z.string().optional(),
171
- description: z.string().optional(),
172
- issueTypeIds: z.array(z.string()),
173
- name: z.string(),
174
- })
175
- .strict()
176
- .describe("IssueTypeSchemeDetails"),
177
- );
178
- validationSchemaStorage.register(
179
- "IssueTypeSchemeId",
180
- z
181
- .object({
182
- issueTypeSchemeId: z.string(),
183
- })
184
- .strict()
185
- .describe("IssueTypeSchemeId"),
186
- );
187
- validationSchemaStorage.register(
188
- "IssueTypeSchemeMapping",
189
- z
190
- .object({
191
- issueTypeId: z.string(),
192
- issueTypeSchemeId: z.string(),
193
- })
194
- .strict()
195
- .describe("IssueTypeSchemeMapping"),
196
- );
197
- validationSchemaStorage.register(
198
- "IssueTypeSchemeProjectAssociation",
199
- z
200
- .object({
201
- issueTypeSchemeId: z.string(),
202
- projectId: z.string(),
203
- })
204
- .strict()
205
- .describe("IssueTypeSchemeProjectAssociation"),
206
- );
207
- validationSchemaStorage.register(
208
- "IssueTypeSchemeProjects",
209
- z
210
- .object({
211
- issueTypeScheme: validationSchemaStorage.lazy("IssueTypeScheme"),
212
- projectIds: z.array(z.string()),
213
- })
214
- .strict()
215
- .describe("IssueTypeSchemeProjects"),
216
- );
217
- validationSchemaStorage.register(
218
- "IssueTypeSchemeUpdateDetails",
219
- z
220
- .object({
221
- defaultIssueTypeId: z.string().optional(),
222
- description: z.string().optional(),
223
- name: z.string().optional(),
224
- })
225
- .strict()
226
- .describe("IssueTypeSchemeUpdateDetails"),
227
- );
228
- validationSchemaStorage.register(
229
- "OrderOfIssueTypes",
230
- z
231
- .object({
232
- after: z.string().optional(),
233
- issueTypeIds: z.array(z.string()),
234
- position: z.enum(["First", "Last"]).optional(),
235
- })
236
- .strict()
237
- .describe("OrderOfIssueTypes"),
238
- );
239
- validationSchemaStorage.register(
240
- "PageBeanIssueTypeScheme",
241
- z
242
- .object({
243
- isLast: z.boolean().optional(),
244
- maxResults: z.number().int().optional(),
245
- nextPage: z.string().optional(),
246
- self: z.string().optional(),
247
- startAt: z.number().int().optional(),
248
- total: z.number().int().optional(),
249
- values: z
250
- .array(validationSchemaStorage.lazy("IssueTypeScheme"))
251
- .optional(),
252
- })
253
- .strict()
254
- .describe("PageBeanIssueTypeScheme"),
255
- );
256
- validationSchemaStorage.register(
257
- "PageBeanIssueTypeSchemeMapping",
258
- z
259
- .object({
260
- isLast: z.boolean().optional(),
261
- maxResults: z.number().int().optional(),
262
- nextPage: z.string().optional(),
263
- self: z.string().optional(),
264
- startAt: z.number().int().optional(),
265
- total: z.number().int().optional(),
266
- values: z
267
- .array(validationSchemaStorage.lazy("IssueTypeSchemeMapping"))
268
- .optional(),
269
- })
270
- .strict()
271
- .describe("PageBeanIssueTypeSchemeMapping"),
272
- );
273
- validationSchemaStorage.register(
274
- "PageBeanIssueTypeSchemeProjects",
275
- z
276
- .object({
277
- isLast: z.boolean().optional(),
278
- maxResults: z.number().int().optional(),
279
- nextPage: z.string().optional(),
280
- self: z.string().optional(),
281
- startAt: z.number().int().optional(),
282
- total: z.number().int().optional(),
283
- values: z
284
- .array(validationSchemaStorage.lazy("IssueTypeSchemeProjects"))
285
- .optional(),
286
- })
287
- .strict()
288
- .describe("PageBeanIssueTypeSchemeProjects"),
289
- );
290
- }
@@ -1,286 +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 type screen scheme. */
8
- export interface IssueTypeScreenScheme {
9
- /** The description of the issue type screen scheme. */
10
- description?: string;
11
- /** The ID of the issue type screen scheme. */
12
- id: string;
13
- /** The name of the issue type screen scheme. */
14
- name: string;
15
- }
16
- /** The details of an issue type screen scheme. */
17
- export interface IssueTypeScreenSchemeDetails {
18
- /**
19
- * The description of the issue type screen scheme. The maximum length is 255
20
- * characters.
21
- */
22
- description?: string;
23
- /**
24
- * The IDs of the screen schemes for the issue type IDs and *default*. A *default*
25
- * entry is required to create an issue type screen scheme, it defines the mapping
26
- * for all issue types without a screen scheme.
27
- */
28
- issueTypeMappings: IssueTypeScreenSchemeMapping[];
29
- /**
30
- * The name of the issue type screen scheme. The name must be unique. The maximum
31
- * length is 255 characters.
32
- */
33
- name: string;
34
- }
35
- /** The ID of an issue type screen scheme. */
36
- export interface IssueTypeScreenSchemeId {
37
- /** The ID of the issue type screen scheme. */
38
- id: string;
39
- }
40
- /** The screen scheme for an issue type. */
41
- export interface IssueTypeScreenSchemeItem {
42
- /**
43
- * The ID of the issue type or *default*. Only issue types used in classic
44
- * projects are accepted. When creating an issue screen scheme, an entry for
45
- * *default* must be provided and defines the mapping for all issue types without
46
- * a screen scheme. Otherwise, a *default* entry can't be provided.
47
- */
48
- issueTypeId: string;
49
- /** The ID of the issue type screen scheme. */
50
- issueTypeScreenSchemeId: string;
51
- /** The ID of the screen scheme. */
52
- screenSchemeId: string;
53
- }
54
- /** The IDs of the screen schemes for the issue type IDs. */
55
- export interface IssueTypeScreenSchemeMapping {
56
- /**
57
- * The ID of the issue type or *default*. Only issue types used in classic
58
- * projects are accepted. An entry for *default* must be provided and defines the
59
- * mapping for all issue types without a screen scheme.
60
- */
61
- issueTypeId: string;
62
- /**
63
- * The ID of the screen scheme. Only screen schemes used in classic projects are
64
- * accepted.
65
- */
66
- screenSchemeId: string;
67
- }
68
- /** A list of issue type screen scheme mappings. */
69
- export interface IssueTypeScreenSchemeMappingDetails {
70
- /**
71
- * The list of issue type to screen scheme mappings. A *default* entry cannot be
72
- * specified because a default entry is added when an issue type screen scheme is
73
- * created.
74
- */
75
- issueTypeMappings: IssueTypeScreenSchemeMapping[];
76
- }
77
- /** Associated issue type screen scheme and project. */
78
- export interface IssueTypeScreenSchemeProjectAssociation {
79
- /** The ID of the issue type screen scheme. */
80
- issueTypeScreenSchemeId?: string;
81
- /** The ID of the project. */
82
- projectId?: string;
83
- }
84
- /** Issue type screen scheme with a list of the projects that use it. */
85
- export interface IssueTypeScreenSchemesProjects {
86
- /** Details of an issue type screen scheme. */
87
- issueTypeScreenScheme: IssueTypeScreenScheme;
88
- /** The IDs of the projects using the issue type screen scheme. */
89
- projectIds: string[];
90
- }
91
- /** Details of an issue type screen scheme. */
92
- export interface IssueTypeScreenSchemeUpdateDetails {
93
- /**
94
- * The description of the issue type screen scheme. The maximum length is 255
95
- * characters.
96
- */
97
- description?: string;
98
- /**
99
- * The name of the issue type screen scheme. The name must be unique. The maximum
100
- * length is 255 characters.
101
- */
102
- name?: string;
103
- }
104
- /** A page of items. */
105
- export interface PageBeanIssueTypeScreenSchemeItem {
106
- /** Whether this is the last page. */
107
- isLast?: boolean;
108
- /** The maximum number of items that could be returned. */
109
- maxResults?: number;
110
- /** If there is another page of results, the URL of the next page. */
111
- nextPage?: string;
112
- /** The URL of the page. */
113
- self?: string;
114
- /** The index of the first item returned. */
115
- startAt?: number;
116
- /** The number of items returned. */
117
- total?: number;
118
- /** The list of items. */
119
- values?: IssueTypeScreenSchemeItem[];
120
- }
121
- /** A page of items. */
122
- export interface PageBeanIssueTypeScreenSchemesProjects {
123
- /** Whether this is the last page. */
124
- isLast?: boolean;
125
- /** The maximum number of items that could be returned. */
126
- maxResults?: number;
127
- /** If there is another page of results, the URL of the next page. */
128
- nextPage?: string;
129
- /** The URL of the page. */
130
- self?: string;
131
- /** The index of the first item returned. */
132
- startAt?: number;
133
- /** The number of items returned. */
134
- total?: number;
135
- /** The list of items. */
136
- values?: IssueTypeScreenSchemesProjects[];
137
- }
138
- /** The ID of a screen scheme. */
139
- export interface UpdateDefaultScreenScheme {
140
- /** The ID of the screen scheme. */
141
- screenSchemeId: string;
142
- }
143
- export function registerIssueTypeScreenSchemesValidationSchemas(
144
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
145
- ) {
146
- validationSchemaStorage.register(
147
- "IssueTypeScreenScheme",
148
- z
149
- .object({
150
- description: z.string().optional(),
151
- id: z.string(),
152
- name: z.string(),
153
- })
154
- .strict()
155
- .describe("IssueTypeScreenScheme"),
156
- );
157
- validationSchemaStorage.register(
158
- "IssueTypeScreenSchemeDetails",
159
- z
160
- .object({
161
- description: z.string().optional(),
162
- issueTypeMappings: z.array(
163
- validationSchemaStorage.lazy("IssueTypeScreenSchemeMapping"),
164
- ),
165
- name: z.string(),
166
- })
167
- .strict()
168
- .describe("IssueTypeScreenSchemeDetails"),
169
- );
170
- validationSchemaStorage.register(
171
- "IssueTypeScreenSchemeId",
172
- z
173
- .object({
174
- id: z.string(),
175
- })
176
- .strict()
177
- .describe("IssueTypeScreenSchemeId"),
178
- );
179
- validationSchemaStorage.register(
180
- "IssueTypeScreenSchemeItem",
181
- z
182
- .object({
183
- issueTypeId: z.string(),
184
- issueTypeScreenSchemeId: z.string(),
185
- screenSchemeId: z.string(),
186
- })
187
- .strict()
188
- .describe("IssueTypeScreenSchemeItem"),
189
- );
190
- validationSchemaStorage.register(
191
- "IssueTypeScreenSchemeMapping",
192
- z
193
- .object({
194
- issueTypeId: z.string(),
195
- screenSchemeId: z.string(),
196
- })
197
- .strict()
198
- .describe("IssueTypeScreenSchemeMapping"),
199
- );
200
- validationSchemaStorage.register(
201
- "IssueTypeScreenSchemeMappingDetails",
202
- z
203
- .object({
204
- issueTypeMappings: z.array(
205
- validationSchemaStorage.lazy("IssueTypeScreenSchemeMapping"),
206
- ),
207
- })
208
- .strict()
209
- .describe("IssueTypeScreenSchemeMappingDetails"),
210
- );
211
- validationSchemaStorage.register(
212
- "IssueTypeScreenSchemeProjectAssociation",
213
- z
214
- .object({
215
- issueTypeScreenSchemeId: z.string().optional(),
216
- projectId: z.string().optional(),
217
- })
218
- .strict()
219
- .describe("IssueTypeScreenSchemeProjectAssociation"),
220
- );
221
- validationSchemaStorage.register(
222
- "IssueTypeScreenSchemesProjects",
223
- z
224
- .object({
225
- issueTypeScreenScheme: validationSchemaStorage.lazy(
226
- "IssueTypeScreenScheme",
227
- ),
228
- projectIds: z.array(z.string()),
229
- })
230
- .strict()
231
- .describe("IssueTypeScreenSchemesProjects"),
232
- );
233
- validationSchemaStorage.register(
234
- "IssueTypeScreenSchemeUpdateDetails",
235
- z
236
- .object({
237
- description: z.string().optional(),
238
- name: z.string().optional(),
239
- })
240
- .strict()
241
- .describe("IssueTypeScreenSchemeUpdateDetails"),
242
- );
243
- validationSchemaStorage.register(
244
- "PageBeanIssueTypeScreenSchemeItem",
245
- z
246
- .object({
247
- isLast: z.boolean().optional(),
248
- maxResults: z.number().int().optional(),
249
- nextPage: z.string().optional(),
250
- self: z.string().optional(),
251
- startAt: z.number().int().optional(),
252
- total: z.number().int().optional(),
253
- values: z
254
- .array(validationSchemaStorage.lazy("IssueTypeScreenSchemeItem"))
255
- .optional(),
256
- })
257
- .strict()
258
- .describe("PageBeanIssueTypeScreenSchemeItem"),
259
- );
260
- validationSchemaStorage.register(
261
- "PageBeanIssueTypeScreenSchemesProjects",
262
- z
263
- .object({
264
- isLast: z.boolean().optional(),
265
- maxResults: z.number().int().optional(),
266
- nextPage: z.string().optional(),
267
- self: z.string().optional(),
268
- startAt: z.number().int().optional(),
269
- total: z.number().int().optional(),
270
- values: z
271
- .array(validationSchemaStorage.lazy("IssueTypeScreenSchemesProjects"))
272
- .optional(),
273
- })
274
- .strict()
275
- .describe("PageBeanIssueTypeScreenSchemesProjects"),
276
- );
277
- validationSchemaStorage.register(
278
- "UpdateDefaultScreenScheme",
279
- z
280
- .object({
281
- screenSchemeId: z.string(),
282
- })
283
- .strict()
284
- .describe("UpdateDefaultScreenScheme"),
285
- );
286
- }
@@ -1,66 +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
- export interface IssueTypeCreateBean {
8
- /** The description of the issue type. */
9
- description?: string;
10
- /**
11
- * The hierarchy level of the issue type. Use:
12
- *
13
- * * `-1` for Subtask.
14
- * * `0` for Base.
15
- *
16
- * Defaults to `0`.
17
- */
18
- hierarchyLevel?: number;
19
- /** The unique name for the issue type. The maximum length is 60 characters. */
20
- name: string;
21
- /**
22
- * Deprecated. Use `hierarchyLevel` instead. See the [deprecation
23
- * notice](https://community.developer.atlassian.com/t/deprecation-of-the-epic-link-parent-link-and-other-related-fields-in-rest-apis-and-webhooks/54048)
24
- * for details.
25
- *
26
- * Whether the issue type is `subtype` or `standard`. Defaults to `standard`.
27
- *
28
- * @deprecated
29
- */
30
- type?: "subtask" | "standard";
31
- }
32
- export interface IssueTypeUpdateBean {
33
- /** The ID of an issue type avatar. */
34
- avatarId?: number;
35
- /** The description of the issue type. */
36
- description?: string;
37
- /** The unique name for the issue type. The maximum length is 60 characters. */
38
- name?: string;
39
- }
40
- export function registerIssueTypesValidationSchemas(
41
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
42
- ) {
43
- validationSchemaStorage.register(
44
- "IssueTypeCreateBean",
45
- z
46
- .object({
47
- description: z.string().optional(),
48
- hierarchyLevel: z.number().int().optional(),
49
- name: z.string(),
50
- type: z.enum(["subtask", "standard"]).optional(),
51
- })
52
- .strict()
53
- .describe("IssueTypeCreateBean"),
54
- );
55
- validationSchemaStorage.register(
56
- "IssueTypeUpdateBean",
57
- z
58
- .object({
59
- avatarId: z.number().int().optional(),
60
- description: z.string().optional(),
61
- name: z.string().optional(),
62
- })
63
- .strict()
64
- .describe("IssueTypeUpdateBean"),
65
- );
66
- }
@@ -1,38 +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 { registerCommonValidationSchemas, type User } from "./common";
8
- /** The details of votes on an issue. */
9
- export interface Votes {
10
- /** Whether the user making this request has voted on the issue. */
11
- hasVoted?: boolean;
12
- /** The URL of these issue vote details. */
13
- self?: string;
14
- /**
15
- * List of the users who have voted on this issue. An empty list is returned when
16
- * the calling user doesn't have the *View voters and watchers* project permission.
17
- */
18
- voters?: User[];
19
- /** The number of votes on the issue. */
20
- votes?: number;
21
- }
22
- export function registerIssueVotesValidationSchemas(
23
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
24
- ) {
25
- validationSchemaStorage.register(
26
- "Votes",
27
- z
28
- .object({
29
- hasVoted: z.boolean().optional(),
30
- self: z.string().optional(),
31
- voters: z.array(validationSchemaStorage.lazy("User")).optional(),
32
- votes: z.number().int().optional(),
33
- })
34
- .strict()
35
- .describe("Votes"),
36
- );
37
- validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
38
- }