@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,231 +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
- /** Count of issues assigned to a component. */
9
- export interface ComponentIssuesCount {
10
- /** The count of issues assigned to a component. */
11
- issueCount?: number;
12
- /** The URL for this count of issues for a component. */
13
- self?: string;
14
- }
15
- export interface ComponentJsonBean extends Record<string, unknown> {
16
- ari?: string;
17
- description?: string;
18
- id?: string;
19
- metadata?: {
20
- [key: string]: string;
21
- };
22
- name?: string;
23
- self?: string;
24
- }
25
- /** Details about a component with a count of the issues it contains. */
26
- export interface ComponentWithIssueCount {
27
- /**
28
- * The details of the user associated with `assigneeType`, if any. See
29
- * `realAssignee` for details of the user assigned to issues created with this
30
- * component.
31
- */
32
- assignee?: User;
33
- /**
34
- * The nominal user type used to determine the assignee for issues created with
35
- * this component. See `realAssigneeType` for details on how the type of the user,
36
- * and hence the user, assigned to issues is determined. Takes the following
37
- * values:
38
- *
39
- * * `PROJECT_LEAD` the assignee to any issues created with this component is
40
- * nominally the lead for the project the component is in.
41
- * * `COMPONENT_LEAD` the assignee to any issues created with this component is
42
- * nominally the lead for the component.
43
- * * `UNASSIGNED` an assignee is not set for issues created with this component.
44
- * * `PROJECT_DEFAULT` the assignee to any issues created with this component is
45
- * nominally the default assignee for the project that the component is in.
46
- */
47
- assigneeType?:
48
- | "PROJECT_DEFAULT"
49
- | "COMPONENT_LEAD"
50
- | "PROJECT_LEAD"
51
- | "UNASSIGNED";
52
- /** The description for the component. */
53
- description?: string;
54
- /** The unique identifier for the component. */
55
- id?: string;
56
- /**
57
- * Whether a user is associated with `assigneeType`. For example, if the
58
- * `assigneeType` is set to `COMPONENT_LEAD` but the component lead is not set,
59
- * then `false` is returned.
60
- */
61
- isAssigneeTypeValid?: boolean;
62
- /** Count of issues for the component. */
63
- issueCount?: number;
64
- /** The user details for the component's lead user. */
65
- lead?: User;
66
- /** The name for the component. */
67
- name?: string;
68
- /** The key of the project to which the component is assigned. */
69
- project?: string;
70
- /** Not used. */
71
- projectId?: number;
72
- /**
73
- * The user assigned to issues created with this component, when `assigneeType`
74
- * does not identify a valid assignee.
75
- */
76
- realAssignee?: User;
77
- /**
78
- * The type of the assignee that is assigned to issues created with this
79
- * component, when an assignee cannot be set from the `assigneeType`. For example,
80
- * `assigneeType` is set to `COMPONENT_LEAD` but no component lead is set. This
81
- * property is set to one of the following values:
82
- *
83
- * * `PROJECT_LEAD` when `assigneeType` is `PROJECT_LEAD` and the project lead
84
- * has permission to be assigned issues in the project that the component is in.
85
- * * `COMPONENT_LEAD` when `assignee`Type is `COMPONENT_LEAD` and the component
86
- * lead has permission to be assigned issues in the project that the component is
87
- * in.
88
- * * `UNASSIGNED` when `assigneeType` is `UNASSIGNED` and Jira is configured to
89
- * allow unassigned issues.
90
- * * `PROJECT_DEFAULT` when none of the preceding cases are true.
91
- */
92
- realAssigneeType?:
93
- | "PROJECT_DEFAULT"
94
- | "COMPONENT_LEAD"
95
- | "PROJECT_LEAD"
96
- | "UNASSIGNED";
97
- /** The URL for this count of the issues contained in the component. */
98
- self?: string;
99
- }
100
- /** A page of items. */
101
- export interface PageBean2ComponentJsonBean {
102
- /** Whether this is the last page. */
103
- isLast?: boolean;
104
- /** The maximum number of items that could be returned. */
105
- maxResults?: number;
106
- /** If there is another page of results, the URL of the next page. */
107
- nextPage?: string;
108
- /** The URL of the page. */
109
- self?: string;
110
- /** The index of the first item returned. */
111
- startAt?: number;
112
- /** The number of items returned. */
113
- total?: number;
114
- /** The list of items. */
115
- values?: ComponentJsonBean[];
116
- }
117
- /** A page of items. */
118
- export interface PageBeanComponentWithIssueCount {
119
- /** Whether this is the last page. */
120
- isLast?: boolean;
121
- /** The maximum number of items that could be returned. */
122
- maxResults?: number;
123
- /** If there is another page of results, the URL of the next page. */
124
- nextPage?: string;
125
- /** The URL of the page. */
126
- self?: string;
127
- /** The index of the first item returned. */
128
- startAt?: number;
129
- /** The number of items returned. */
130
- total?: number;
131
- /** The list of items. */
132
- values?: ComponentWithIssueCount[];
133
- }
134
- export function registerProjectComponentsValidationSchemas(
135
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
136
- ) {
137
- validationSchemaStorage.register(
138
- "ComponentIssuesCount",
139
- z
140
- .object({
141
- issueCount: z.number().int().optional(),
142
- self: z.string().optional(),
143
- })
144
- .strict()
145
- .describe("ComponentIssuesCount"),
146
- );
147
- validationSchemaStorage.register(
148
- "ComponentJsonBean",
149
- z
150
- .object({
151
- ari: z.string().optional(),
152
- description: z.string().optional(),
153
- id: z.string().optional(),
154
- metadata: z.object({}).catchall(z.string()).optional(),
155
- name: z.string().optional(),
156
- self: z.string().optional(),
157
- })
158
- .catchall(z.unknown())
159
- .describe("ComponentJsonBean"),
160
- );
161
- validationSchemaStorage.register(
162
- "ComponentWithIssueCount",
163
- z
164
- .object({
165
- assignee: validationSchemaStorage.lazy("User").optional(),
166
- assigneeType: z
167
- .enum([
168
- "PROJECT_DEFAULT",
169
- "COMPONENT_LEAD",
170
- "PROJECT_LEAD",
171
- "UNASSIGNED",
172
- ])
173
- .optional(),
174
- description: z.string().optional(),
175
- id: z.string().optional(),
176
- isAssigneeTypeValid: z.boolean().optional(),
177
- issueCount: z.number().int().optional(),
178
- lead: validationSchemaStorage.lazy("User").optional(),
179
- name: z.string().optional(),
180
- project: z.string().optional(),
181
- projectId: z.number().int().optional(),
182
- realAssignee: validationSchemaStorage.lazy("User").optional(),
183
- realAssigneeType: z
184
- .enum([
185
- "PROJECT_DEFAULT",
186
- "COMPONENT_LEAD",
187
- "PROJECT_LEAD",
188
- "UNASSIGNED",
189
- ])
190
- .optional(),
191
- self: z.string().optional(),
192
- })
193
- .strict()
194
- .describe("ComponentWithIssueCount"),
195
- );
196
- validationSchemaStorage.register(
197
- "PageBean2ComponentJsonBean",
198
- z
199
- .object({
200
- isLast: z.boolean().optional(),
201
- maxResults: z.number().int().optional(),
202
- nextPage: z.string().optional(),
203
- self: z.string().optional(),
204
- startAt: z.number().int().optional(),
205
- total: z.number().int().optional(),
206
- values: z
207
- .array(validationSchemaStorage.lazy("ComponentJsonBean"))
208
- .optional(),
209
- })
210
- .strict()
211
- .describe("PageBean2ComponentJsonBean"),
212
- );
213
- validationSchemaStorage.register(
214
- "PageBeanComponentWithIssueCount",
215
- z
216
- .object({
217
- isLast: z.boolean().optional(),
218
- maxResults: z.number().int().optional(),
219
- nextPage: z.string().optional(),
220
- self: z.string().optional(),
221
- startAt: z.number().int().optional(),
222
- total: z.number().int().optional(),
223
- values: z
224
- .array(validationSchemaStorage.lazy("ComponentWithIssueCount"))
225
- .optional(),
226
- })
227
- .strict()
228
- .describe("PageBeanComponentWithIssueCount"),
229
- );
230
- validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
231
- }
@@ -1,27 +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
- /** A project's sender email address. */
8
- export interface ProjectEmailAddress {
9
- /** The email address. */
10
- emailAddress?: string;
11
- /** When using a custom domain, the status of the email address. */
12
- emailAddressStatus?: string[];
13
- }
14
- export function registerProjectEmailValidationSchemas(
15
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
16
- ) {
17
- validationSchemaStorage.register(
18
- "ProjectEmailAddress",
19
- z
20
- .object({
21
- emailAddress: z.string().optional(),
22
- emailAddressStatus: z.array(z.string()).optional(),
23
- })
24
- .strict()
25
- .describe("ProjectEmailAddress"),
26
- );
27
- }
@@ -1,78 +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 list of features on a project. */
8
- export interface ContainerForProjectFeatures {
9
- /** The project features. */
10
- features?: ProjectFeature[];
11
- }
12
- /** Details of a project feature. */
13
- export interface ProjectFeature {
14
- /** The key of the feature. */
15
- feature?: string;
16
- /** URI for the image representing the feature. */
17
- imageUri?: string;
18
- /** Localized display description for the feature. */
19
- localisedDescription?: string;
20
- /** Localized display name for the feature. */
21
- localisedName?: string;
22
- /** List of keys of the features required to enable the feature. */
23
- prerequisites?: string[];
24
- /** The ID of the project. */
25
- projectId?: number;
26
- /**
27
- * The state of the feature. When updating the state of a feature, only ENABLED
28
- * and DISABLED are supported. Responses can contain all values
29
- */
30
- state?: "ENABLED" | "DISABLED" | "COMING_SOON";
31
- /** Whether the state of the feature can be updated. */
32
- toggleLocked?: boolean;
33
- }
34
- /** Details of the feature state. */
35
- export interface ProjectFeatureState {
36
- /** The feature state. */
37
- state?: "ENABLED" | "DISABLED" | "COMING_SOON";
38
- }
39
- export function registerProjectFeaturesValidationSchemas(
40
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
41
- ) {
42
- validationSchemaStorage.register(
43
- "ContainerForProjectFeatures",
44
- z
45
- .object({
46
- features: z
47
- .array(validationSchemaStorage.lazy("ProjectFeature"))
48
- .optional(),
49
- })
50
- .strict()
51
- .describe("ContainerForProjectFeatures"),
52
- );
53
- validationSchemaStorage.register(
54
- "ProjectFeature",
55
- z
56
- .object({
57
- feature: z.string().optional(),
58
- imageUri: z.string().optional(),
59
- localisedDescription: z.string().optional(),
60
- localisedName: z.string().optional(),
61
- prerequisites: z.array(z.string()).optional(),
62
- projectId: z.number().int().optional(),
63
- state: z.enum(["ENABLED", "DISABLED", "COMING_SOON"]).optional(),
64
- toggleLocked: z.boolean().optional(),
65
- })
66
- .strict()
67
- .describe("ProjectFeature"),
68
- );
69
- validationSchemaStorage.register(
70
- "ProjectFeatureState",
71
- z
72
- .object({
73
- state: z.enum(["ENABLED", "DISABLED", "COMING_SOON"]).optional(),
74
- })
75
- .strict()
76
- .describe("ProjectFeatureState"),
77
- );
78
- }
@@ -1,43 +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 SecurityLevel } from "./common";
8
- export interface IdBean {
9
- /**
10
- * The ID of the permission scheme to associate with the project. Use the [Get all
11
- * permission schemes](#api-rest-api-3-permissionscheme-get) resource to get a
12
- * list of permission scheme IDs.
13
- */
14
- id: number;
15
- }
16
- /** List of issue level security items in a project. */
17
- export interface ProjectIssueSecurityLevels {
18
- /** Issue level security items list. */
19
- levels: SecurityLevel[];
20
- }
21
- export function registerProjectPermissionSchemesValidationSchemas(
22
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
23
- ) {
24
- validationSchemaStorage.register(
25
- "IdBean",
26
- z
27
- .object({
28
- id: z.number().int(),
29
- })
30
- .strict()
31
- .describe("IdBean"),
32
- );
33
- validationSchemaStorage.register(
34
- "ProjectIssueSecurityLevels",
35
- z
36
- .object({
37
- levels: z.array(validationSchemaStorage.lazy("SecurityLevel")),
38
- })
39
- .strict()
40
- .describe("ProjectIssueSecurityLevels"),
41
- );
42
- validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
43
- }
@@ -1,107 +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 ActorInputBean {
8
- /**
9
- * The name of the group to add as a default actor. This parameter cannot be used
10
- * with the `groupId` parameter. As a group's name can change,use of `groupId` is
11
- * recommended. This parameter accepts a comma-separated list. For example,
12
- * `"group":["project-admin", "jira-developers"]`.
13
- */
14
- group?: string[];
15
- /**
16
- * The ID of the group to add as a default actor. This parameter cannot be used
17
- * with the `group` parameter This parameter accepts a comma-separated list. For
18
- * example, `"groupId":["77f6ab39-e755-4570-a6ae-2d7a8df0bcb8",
19
- * "0c011f85-69ed-49c4-a801-3b18d0f771bc"]`.
20
- */
21
- groupId?: string[];
22
- /**
23
- * The account IDs of the users to add as default actors. This parameter accepts a
24
- * comma-separated list. For example, `"user":["5b10a2844c20165700ede21g",
25
- * "5b109f2e9729b51b54dc274d"]`.
26
- */
27
- user?: string[];
28
- }
29
- export interface ActorsMap {
30
- /**
31
- * The name of the group to add. This parameter cannot be used with the `groupId`
32
- * parameter. As a group's name can change, use of `groupId` is recommended.
33
- */
34
- group?: string[];
35
- /**
36
- * The ID of the group to add. This parameter cannot be used with the `group`
37
- * parameter.
38
- */
39
- groupId?: string[];
40
- /** The user account ID of the user to add. */
41
- user?: string[];
42
- }
43
- export interface ProjectRoleActorsUpdateBean {
44
- /**
45
- * The actors to add to the project role.
46
- *
47
- * Add groups using:
48
- *
49
- * * `atlassian-group-role-actor` and a list of group names.
50
- * * `atlassian-group-role-actor-id` and a list of group IDs.
51
- *
52
- * As a group's name can change, use of `atlassian-group-role-actor-id` is
53
- * recommended. For example,
54
- * `"atlassian-group-role-actor-id":["eef79f81-0b89-4fca-a736-4be531a10869","77f6ab39-e755-4570-a6ae-2d7a8df0bcb8"]`.
55
- *
56
- * Add users using `atlassian-user-role-actor` and a list of account IDs. For
57
- * example, `"atlassian-user-role-actor":["12345678-9abc-def1-2345-6789abcdef12",
58
- * "abcdef12-3456-789a-bcde-f123456789ab"]`.
59
- */
60
- categorisedActors?: {
61
- [key: string]: string[];
62
- };
63
- /**
64
- * The ID of the project role. Use [Get all project
65
- * roles](#api-rest-api-3-role-get) to get a list of project role IDs.
66
- */
67
- id?: number;
68
- }
69
- export function registerProjectRoleActorsValidationSchemas(
70
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
71
- ) {
72
- validationSchemaStorage.register(
73
- "ActorInputBean",
74
- z
75
- .object({
76
- group: z.array(z.string()).optional(),
77
- groupId: z.array(z.string()).optional(),
78
- user: z.array(z.string()).optional(),
79
- })
80
- .strict()
81
- .describe("ActorInputBean"),
82
- );
83
- validationSchemaStorage.register(
84
- "ActorsMap",
85
- z
86
- .object({
87
- group: z.array(z.string()).optional(),
88
- groupId: z.array(z.string()).optional(),
89
- user: z.array(z.string()).optional(),
90
- })
91
- .strict()
92
- .describe("ActorsMap"),
93
- );
94
- validationSchemaStorage.register(
95
- "ProjectRoleActorsUpdateBean",
96
- z
97
- .object({
98
- categorisedActors: z
99
- .object({})
100
- .catchall(z.array(z.string()))
101
- .optional(),
102
- id: z.number().int().optional(),
103
- })
104
- .strict()
105
- .describe("ProjectRoleActorsUpdateBean"),
106
- );
107
- }
@@ -1,76 +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 Scope } from "./common";
8
- export interface CreateUpdateRoleRequestBean {
9
- /**
10
- * A description of the project role. Required when fully updating a project role.
11
- * Optional when creating or partially updating a project role.
12
- */
13
- description?: string;
14
- /**
15
- * The name of the project role. Must be unique. Cannot begin or end with
16
- * whitespace. The maximum length is 255 characters. Required when creating a
17
- * project role. Optional when partially updating a project role.
18
- */
19
- name?: string;
20
- }
21
- /** Details about a project role. */
22
- export interface ProjectRoleDetails {
23
- /** Whether this role is the admin role for the project. */
24
- admin?: boolean;
25
- /** Whether this role is the default role for the project. */
26
- default?: boolean;
27
- /** The description of the project role. */
28
- description?: string;
29
- /** The ID of the project role. */
30
- id?: number;
31
- /** The name of the project role. */
32
- name?: string;
33
- /** Whether the roles are configurable for this project. */
34
- roleConfigurable?: boolean;
35
- /**
36
- * The scope of the role. Indicated for roles associated with [next-gen
37
- * projects](https://confluence.atlassian.com/x/loMyO).
38
- */
39
- scope?: Scope;
40
- /** The URL the project role details. */
41
- self?: string;
42
- /** The translated name of the project role. */
43
- translatedName?: string;
44
- }
45
- export function registerProjectRolesValidationSchemas(
46
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
47
- ) {
48
- validationSchemaStorage.register(
49
- "CreateUpdateRoleRequestBean",
50
- z
51
- .object({
52
- description: z.string().optional(),
53
- name: z.string().optional(),
54
- })
55
- .strict()
56
- .describe("CreateUpdateRoleRequestBean"),
57
- );
58
- validationSchemaStorage.register(
59
- "ProjectRoleDetails",
60
- z
61
- .object({
62
- admin: z.boolean().optional(),
63
- default: z.boolean().optional(),
64
- description: z.string().optional(),
65
- id: z.number().int().optional(),
66
- name: z.string().optional(),
67
- roleConfigurable: z.boolean().optional(),
68
- scope: validationSchemaStorage.lazy("Scope").optional(),
69
- self: z.string().optional(),
70
- translatedName: z.string().optional(),
71
- })
72
- .strict()
73
- .describe("ProjectRoleDetails"),
74
- );
75
- validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
76
- }
@@ -1,36 +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 about a project type. */
8
- export interface ProjectType {
9
- /** The color of the project type. */
10
- color?: string;
11
- /** The key of the project type's description. */
12
- descriptionI18nKey?: string;
13
- /** The formatted key of the project type. */
14
- formattedKey?: string;
15
- /** The icon of the project type. */
16
- icon?: string;
17
- /** The key of the project type. */
18
- key?: string;
19
- }
20
- export function registerProjectTypesValidationSchemas(
21
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
22
- ) {
23
- validationSchemaStorage.register(
24
- "ProjectType",
25
- z
26
- .object({
27
- color: z.string().optional(),
28
- descriptionI18nKey: z.string().optional(),
29
- formattedKey: z.string().optional(),
30
- icon: z.string().optional(),
31
- key: z.string().optional(),
32
- })
33
- .strict()
34
- .describe("ProjectType"),
35
- );
36
- }