@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,229 +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 {
8
- type ProjectId,
9
- type ProjectIssueTypes,
10
- registerCommonValidationSchemas,
11
- } from "./common";
12
- /** Details of a status. */
13
- export interface JiraStatus {
14
- /** The description of the status. */
15
- description?: string;
16
- /** The ID of the status. */
17
- id?: string;
18
- /** The name of the status. */
19
- name?: string;
20
- /** The scope of the status. */
21
- scope?: StatusScope;
22
- /** The category of the status. */
23
- statusCategory?: "TODO" | "IN_PROGRESS" | "DONE";
24
- /**
25
- * Projects and issue types where the status is used. Only available if the
26
- * `usages` expand is requested.
27
- */
28
- usages?: ProjectIssueTypes[];
29
- /**
30
- * The workflows that use this status. Only available if the `workflowUsages`
31
- * expand is requested.
32
- */
33
- workflowUsages?: WorkflowUsages[];
34
- }
35
- export interface PageOfStatuses {
36
- /** Whether this is the last page. */
37
- isLast?: boolean;
38
- /** The maximum number of items that could be returned. */
39
- maxResults?: number;
40
- /** The URL of the next page of results, if any. */
41
- nextPage?: string;
42
- /** The URL of this page. */
43
- self?: string;
44
- /** The index of the first item returned on the page. */
45
- startAt?: number;
46
- /** Number of items that satisfy the search. */
47
- total?: number;
48
- /** The list of items. */
49
- values?: JiraStatus[];
50
- }
51
- /** Details of the status being created. */
52
- export interface StatusCreate {
53
- /** The description of the status. */
54
- description?: string;
55
- /** The name of the status. */
56
- name: string;
57
- /** The category of the status. */
58
- statusCategory: "TODO" | "IN_PROGRESS" | "DONE";
59
- }
60
- /** Details of the statuses being created and their scope. */
61
- export interface StatusCreateRequest {
62
- /** The scope of the status. */
63
- scope: StatusScope;
64
- /** Details of the statuses being created. */
65
- statuses: StatusCreate[];
66
- }
67
- /** The scope of the status. */
68
- export interface StatusScope {
69
- /** Project ID details. */
70
- project?: ProjectId | null;
71
- /**
72
- * The scope of the status. `GLOBAL` for company-managed projects and `PROJECT`
73
- * for team-managed projects.
74
- */
75
- type: "PROJECT" | "GLOBAL";
76
- }
77
- /** Details of the status being updated. */
78
- export interface StatusUpdate extends Record<string, unknown> {
79
- /** The description of the status. */
80
- description?: string;
81
- /** The ID of the status. */
82
- id: string;
83
- /** The name of the status. */
84
- name: string;
85
- /** The category of the status. */
86
- statusCategory: "TODO" | "IN_PROGRESS" | "DONE";
87
- }
88
- /** The list of statuses that will be updated. */
89
- export interface StatusUpdateRequest {
90
- /** The list of statuses that will be updated. */
91
- statuses: StatusUpdate[];
92
- }
93
- /**
94
- * The workflows that use this status. Only available if the `workflowUsages`
95
- * expand is requested.
96
- */
97
- export interface WorkflowUsages {
98
- /** Workflow ID. */
99
- workflowId?: string;
100
- /** Workflow name. */
101
- workflowName?: string;
102
- }
103
- export function registerStatusValidationSchemas(
104
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
105
- ) {
106
- validationSchemaStorage.register(
107
- "JiraStatus",
108
- z
109
- .object({
110
- description: z.string().optional(),
111
- id: z.string().optional(),
112
- name: z.string().optional(),
113
- scope: validationSchemaStorage.lazy("StatusScope").optional(),
114
- statusCategory: z.enum(["TODO", "IN_PROGRESS", "DONE"]).optional(),
115
- usages: z
116
- .array(validationSchemaStorage.lazy("ProjectIssueTypes"))
117
- .superRefine((items, ctx) => {
118
- if (
119
- new Set(items.map((item) => JSON.stringify(item))).size !==
120
- items.length
121
- ) {
122
- ctx.addIssue({
123
- code: z.ZodIssueCode.custom,
124
- path: [],
125
- message: "Array items must be unique",
126
- });
127
- }
128
- })
129
- .optional(),
130
- workflowUsages: z
131
- .array(validationSchemaStorage.lazy("WorkflowUsages"))
132
- .superRefine((items, ctx) => {
133
- if (
134
- new Set(items.map((item) => JSON.stringify(item))).size !==
135
- items.length
136
- ) {
137
- ctx.addIssue({
138
- code: z.ZodIssueCode.custom,
139
- path: [],
140
- message: "Array items must be unique",
141
- });
142
- }
143
- })
144
- .optional(),
145
- })
146
- .strict()
147
- .describe("JiraStatus"),
148
- );
149
- validationSchemaStorage.register(
150
- "PageOfStatuses",
151
- z
152
- .object({
153
- isLast: z.boolean().optional(),
154
- maxResults: z.number().int().optional(),
155
- nextPage: z.string().optional(),
156
- self: z.string().optional(),
157
- startAt: z.number().int().optional(),
158
- total: z.number().int().optional(),
159
- values: z.array(validationSchemaStorage.lazy("JiraStatus")).optional(),
160
- })
161
- .strict()
162
- .describe("PageOfStatuses"),
163
- );
164
- validationSchemaStorage.register(
165
- "StatusCreate",
166
- z
167
- .object({
168
- description: z.string().optional(),
169
- name: z.string().max(255),
170
- statusCategory: z.enum(["TODO", "IN_PROGRESS", "DONE"]),
171
- })
172
- .strict()
173
- .describe("StatusCreate"),
174
- );
175
- validationSchemaStorage.register(
176
- "StatusCreateRequest",
177
- z
178
- .object({
179
- scope: validationSchemaStorage.lazy("StatusScope"),
180
- statuses: z.array(validationSchemaStorage.lazy("StatusCreate")),
181
- })
182
- .strict()
183
- .describe("StatusCreateRequest"),
184
- );
185
- validationSchemaStorage.register(
186
- "StatusScope",
187
- z
188
- .object({
189
- project: z
190
- .nullable(validationSchemaStorage.lazy("ProjectId"))
191
- .optional(),
192
- type: z.enum(["PROJECT", "GLOBAL"]),
193
- })
194
- .strict()
195
- .describe("StatusScope"),
196
- );
197
- validationSchemaStorage.register(
198
- "StatusUpdate",
199
- z
200
- .object({
201
- description: z.string().optional(),
202
- id: z.string(),
203
- name: z.string(),
204
- statusCategory: z.enum(["TODO", "IN_PROGRESS", "DONE"]),
205
- })
206
- .catchall(z.unknown())
207
- .describe("StatusUpdate"),
208
- );
209
- validationSchemaStorage.register(
210
- "StatusUpdateRequest",
211
- z
212
- .object({
213
- statuses: z.array(validationSchemaStorage.lazy("StatusUpdate")),
214
- })
215
- .strict()
216
- .describe("StatusUpdateRequest"),
217
- );
218
- validationSchemaStorage.register(
219
- "WorkflowUsages",
220
- z
221
- .object({
222
- workflowId: z.string().optional(),
223
- workflowName: z.string().optional(),
224
- })
225
- .strict()
226
- .describe("WorkflowUsages"),
227
- );
228
- validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
229
- }
@@ -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
- /** Details about the time tracking provider. */
8
- export interface TimeTrackingProvider {
9
- /** The key for the time tracking provider. For example, *JIRA*. */
10
- key: string;
11
- /**
12
- * The name of the time tracking provider. For example, *JIRA provided time
13
- * tracking*.
14
- */
15
- name?: string;
16
- /**
17
- * The URL of the configuration page for the time tracking provider app. For
18
- * example, * /example/config/url*. This property is only returned if the
19
- * `adminPageKey` property is set in the module descriptor of the time tracking
20
- * provider app.
21
- */
22
- url?: string;
23
- }
24
- export function registerTimeTrackingValidationSchemas(
25
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
26
- ) {
27
- validationSchemaStorage.register(
28
- "TimeTrackingProvider",
29
- z
30
- .object({
31
- key: z.string(),
32
- name: z.string().optional(),
33
- url: z.string().optional(),
34
- })
35
- .strict()
36
- .describe("TimeTrackingProvider"),
37
- );
38
- }
@@ -1,229 +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 details of a UI modification. */
8
- export interface CreateUiModificationDetails {
9
- /** List of contexts of the UI modification. The maximum number of contexts is 1000. */
10
- contexts?: UiModificationContextDetails[];
11
- /**
12
- * The data of the UI modification. The maximum size of the data is 50000
13
- * characters.
14
- */
15
- data?: string;
16
- /** The description of the UI modification. The maximum length is 255 characters. */
17
- description?: string;
18
- /** The name of the UI modification. The maximum length is 255 characters. */
19
- name: string;
20
- }
21
- export interface DetailedErrorCollection {
22
- /** Map of objects representing additional details for an error */
23
- details?: {
24
- [key: string]: unknown;
25
- };
26
- /**
27
- * The list of error messages produced by this operation. For example, "input
28
- * parameter 'key' must be provided"
29
- */
30
- errorMessages?: string[];
31
- /**
32
- * The list of errors by parameter returned by the operation. For
33
- * example,"projectKey": "Project keys must start with an uppercase letter,
34
- * followed by one or more uppercase alphanumeric characters."
35
- */
36
- errors?: {
37
- [key: string]: string;
38
- };
39
- }
40
- /** A page of items. */
41
- export interface PageBeanUiModificationDetails {
42
- /** Whether this is the last page. */
43
- isLast?: boolean;
44
- /** The maximum number of items that could be returned. */
45
- maxResults?: number;
46
- /** If there is another page of results, the URL of the next page. */
47
- nextPage?: string;
48
- /** The URL of the page. */
49
- self?: string;
50
- /** The index of the first item returned. */
51
- startAt?: number;
52
- /** The number of items returned. */
53
- total?: number;
54
- /** The list of items. */
55
- values?: UiModificationDetails[];
56
- }
57
- /**
58
- * The details of a UI modification's context, which define where to activate the
59
- * UI modification.
60
- */
61
- export interface UiModificationContextDetails {
62
- /** The ID of the UI modification context. */
63
- id?: string;
64
- /**
65
- * Whether a context is available. For example, when a project is deleted the
66
- * context becomes unavailable.
67
- */
68
- isAvailable?: boolean;
69
- /**
70
- * The issue type ID of the context. Null is treated as a wildcard, meaning the UI
71
- * modification will be applied to all issue types. Each UI modification context
72
- * can have a maximum of one wildcard.
73
- */
74
- issueTypeId?: string;
75
- /**
76
- * The project ID of the context. Null is treated as a wildcard, meaning the UI
77
- * modification will be applied to all projects. Each UI modification context can
78
- * have a maximum of one wildcard.
79
- */
80
- projectId?: string;
81
- /**
82
- * The view type of the context. Only `GIC`(Global Issue Create) and `IssueView`
83
- * are supported. Null is treated as a wildcard, meaning the UI modification will
84
- * be applied to all view types. Each UI modification context can have a maximum
85
- * of one wildcard.
86
- */
87
- viewType?: "GIC" | "IssueView";
88
- }
89
- /** The details of a UI modification. */
90
- export interface UiModificationDetails {
91
- /** List of contexts of the UI modification. The maximum number of contexts is 1000. */
92
- contexts?: UiModificationContextDetails[];
93
- /**
94
- * The data of the UI modification. The maximum size of the data is 50000
95
- * characters.
96
- */
97
- data?: string;
98
- /** The description of the UI modification. The maximum length is 255 characters. */
99
- description?: string;
100
- /** The ID of the UI modification. */
101
- id: string;
102
- /** The name of the UI modification. The maximum length is 255 characters. */
103
- name: string;
104
- /** The URL of the UI modification. */
105
- self: string;
106
- }
107
- /** Identifiers for a UI modification. */
108
- export interface UiModificationIdentifiers {
109
- /** The ID of the UI modification. */
110
- id: string;
111
- /** The URL of the UI modification. */
112
- self: string;
113
- }
114
- /** The details of a UI modification. */
115
- export interface UpdateUiModificationDetails {
116
- /**
117
- * List of contexts of the UI modification. The maximum number of contexts is
118
- * 1000. If provided, replaces all existing contexts.
119
- */
120
- contexts?: UiModificationContextDetails[];
121
- /**
122
- * The data of the UI modification. The maximum size of the data is 50000
123
- * characters.
124
- */
125
- data?: string;
126
- /** The description of the UI modification. The maximum length is 255 characters. */
127
- description?: string;
128
- /** The name of the UI modification. The maximum length is 255 characters. */
129
- name?: string;
130
- }
131
- export function registerUiModificationsAppsValidationSchemas(
132
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
133
- ) {
134
- validationSchemaStorage.register(
135
- "CreateUiModificationDetails",
136
- z
137
- .object({
138
- contexts: z
139
- .array(validationSchemaStorage.lazy("UiModificationContextDetails"))
140
- .optional(),
141
- data: z.string().optional(),
142
- description: z.string().optional(),
143
- name: z.string(),
144
- })
145
- .strict()
146
- .describe("CreateUiModificationDetails"),
147
- );
148
- validationSchemaStorage.register(
149
- "DetailedErrorCollection",
150
- z
151
- .object({
152
- details: z.object({}).catchall(z.unknown()).optional(),
153
- errorMessages: z.array(z.string()).optional(),
154
- errors: z.object({}).catchall(z.string()).optional(),
155
- })
156
- .strict()
157
- .describe("DetailedErrorCollection"),
158
- );
159
- validationSchemaStorage.register(
160
- "PageBeanUiModificationDetails",
161
- z
162
- .object({
163
- isLast: z.boolean().optional(),
164
- maxResults: z.number().int().optional(),
165
- nextPage: z.string().optional(),
166
- self: z.string().optional(),
167
- startAt: z.number().int().optional(),
168
- total: z.number().int().optional(),
169
- values: z
170
- .array(validationSchemaStorage.lazy("UiModificationDetails"))
171
- .optional(),
172
- })
173
- .strict()
174
- .describe("PageBeanUiModificationDetails"),
175
- );
176
- validationSchemaStorage.register(
177
- "UiModificationContextDetails",
178
- z
179
- .object({
180
- id: z.string().optional(),
181
- isAvailable: z.boolean().optional(),
182
- issueTypeId: z.string().optional(),
183
- projectId: z.string().optional(),
184
- viewType: z.enum(["GIC", "IssueView"]).optional(),
185
- })
186
- .strict()
187
- .describe("UiModificationContextDetails"),
188
- );
189
- validationSchemaStorage.register(
190
- "UiModificationDetails",
191
- z
192
- .object({
193
- contexts: z
194
- .array(validationSchemaStorage.lazy("UiModificationContextDetails"))
195
- .optional(),
196
- data: z.string().optional(),
197
- description: z.string().optional(),
198
- id: z.string(),
199
- name: z.string(),
200
- self: z.string(),
201
- })
202
- .strict()
203
- .describe("UiModificationDetails"),
204
- );
205
- validationSchemaStorage.register(
206
- "UiModificationIdentifiers",
207
- z
208
- .object({
209
- id: z.string(),
210
- self: z.string(),
211
- })
212
- .strict()
213
- .describe("UiModificationIdentifiers"),
214
- );
215
- validationSchemaStorage.register(
216
- "UpdateUiModificationDetails",
217
- z
218
- .object({
219
- contexts: z
220
- .array(validationSchemaStorage.lazy("UiModificationContextDetails"))
221
- .optional(),
222
- data: z.string().optional(),
223
- description: z.string().optional(),
224
- name: z.string().optional(),
225
- })
226
- .strict()
227
- .describe("UpdateUiModificationDetails"),
228
- );
229
- }
@@ -1,69 +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 page of items. */
8
- export interface PageBeanUserKey {
9
- /** Whether this is the last page. */
10
- isLast?: boolean;
11
- /** The maximum number of items that could be returned. */
12
- maxResults?: number;
13
- /** If there is another page of results, the URL of the next page. */
14
- nextPage?: string;
15
- /** The URL of the page. */
16
- self?: string;
17
- /** The index of the first item returned. */
18
- startAt?: number;
19
- /** The number of items returned. */
20
- total?: number;
21
- /** The list of items. */
22
- values?: UserKey[];
23
- }
24
- /** List of user account IDs. */
25
- export interface UserKey {
26
- /**
27
- * The account ID of the user, which uniquely identifies the user across all
28
- * Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Returns *unknown*
29
- * if the record is deleted and corrupted, for example, as the result of a server
30
- * import.
31
- */
32
- accountId?: string;
33
- /**
34
- * This property is no longer available and will be removed from the documentation
35
- * soon. See the [deprecation
36
- * notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
37
- * for details.
38
- */
39
- key?: string;
40
- }
41
- export function registerUserSearchValidationSchemas(
42
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
43
- ) {
44
- validationSchemaStorage.register(
45
- "PageBeanUserKey",
46
- z
47
- .object({
48
- isLast: z.boolean().optional(),
49
- maxResults: z.number().int().optional(),
50
- nextPage: z.string().optional(),
51
- self: z.string().optional(),
52
- startAt: z.number().int().optional(),
53
- total: z.number().int().optional(),
54
- values: z.array(validationSchemaStorage.lazy("UserKey")).optional(),
55
- })
56
- .strict()
57
- .describe("PageBeanUserKey"),
58
- );
59
- validationSchemaStorage.register(
60
- "UserKey",
61
- z
62
- .object({
63
- accountId: z.string().max(128).optional(),
64
- key: z.string().optional(),
65
- })
66
- .strict()
67
- .describe("UserKey"),
68
- );
69
- }
@@ -1,121 +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 user details. */
8
- export interface NewUserDetails extends Record<string, unknown> {
9
- /**
10
- * Deprecated, do not use.
11
- *
12
- * @deprecated
13
- */
14
- applicationKeys?: string[];
15
- /**
16
- * This property is no longer available. If the user has an Atlassian account,
17
- * their display name is not changed. If the user does not have an Atlassian
18
- * account, they are sent an email asking them set up an account.
19
- */
20
- displayName?: string;
21
- /** The email address for the user. */
22
- emailAddress: string;
23
- /**
24
- * This property is no longer available. See the [migration
25
- * guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
26
- * for details.
27
- */
28
- key?: string;
29
- /**
30
- * This property is no longer available. See the [migration
31
- * guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
32
- * for details.
33
- */
34
- name?: string;
35
- /**
36
- * This property is no longer available. If the user has an Atlassian account,
37
- * their password is not changed. If the user does not have an Atlassian account,
38
- * they are sent an email asking them set up an account.
39
- */
40
- password?: string;
41
- /**
42
- * Products the new user has access to. Valid products are: jira-core,
43
- * jira-servicedesk, jira-product-discovery, jira-software. To create a user
44
- * without product access, set this field to be an empty array.
45
- */
46
- products: string[];
47
- /** The URL of the user. */
48
- self?: string;
49
- }
50
- export interface UnrestrictedUserEmail extends Record<string, unknown> {
51
- /** The accountId of the user */
52
- accountId?: string;
53
- /** The email of the user */
54
- email?: string;
55
- }
56
- export interface UserColumnRequestBody {
57
- columns?: string[];
58
- }
59
- export interface UserMigrationBean {
60
- accountId?: string;
61
- key?: string;
62
- username?: string;
63
- }
64
- export function registerUsersValidationSchemas(
65
- validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
66
- ) {
67
- validationSchemaStorage.register(
68
- "NewUserDetails",
69
- z
70
- .object({
71
- applicationKeys: z.array(z.string()).optional(),
72
- displayName: z.string().optional(),
73
- emailAddress: z.string(),
74
- key: z.string().optional(),
75
- name: z.string().optional(),
76
- password: z.string().optional(),
77
- products: z.array(z.string()).superRefine((items, ctx) => {
78
- if (new Set(items).size !== items.length) {
79
- ctx.addIssue({
80
- code: z.ZodIssueCode.custom,
81
- path: [],
82
- message: "Array items must be unique",
83
- });
84
- }
85
- }),
86
- self: z.string().optional(),
87
- })
88
- .catchall(z.unknown())
89
- .describe("NewUserDetails"),
90
- );
91
- validationSchemaStorage.register(
92
- "UnrestrictedUserEmail",
93
- z
94
- .object({
95
- accountId: z.string().optional(),
96
- email: z.string().optional(),
97
- })
98
- .catchall(z.unknown())
99
- .describe("UnrestrictedUserEmail"),
100
- );
101
- validationSchemaStorage.register(
102
- "UserColumnRequestBody",
103
- z
104
- .object({
105
- columns: z.array(z.string()).optional(),
106
- })
107
- .strict()
108
- .describe("UserColumnRequestBody"),
109
- );
110
- validationSchemaStorage.register(
111
- "UserMigrationBean",
112
- z
113
- .object({
114
- accountId: z.string().optional(),
115
- key: z.string().optional(),
116
- username: z.string().optional(),
117
- })
118
- .strict()
119
- .describe("UserMigrationBean"),
120
- );
121
- }