@wise/dynamic-flow-types 3.6.3-experimental-f87d7c4 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +443 -443
- package/build/main.mjs +443 -443
- package/build/zod/schemas.d.ts +1037 -1037
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -1,44 +1,25 @@
|
|
|
1
1
|
// src/zod/schemas.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
var listLayoutStatusSchema = z.union([
|
|
4
|
-
z.literal("warning"),
|
|
5
|
-
z.literal("neutral"),
|
|
6
|
-
z.literal("positive")
|
|
7
|
-
]);
|
|
8
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
9
|
-
var sizeSchema = z.union([
|
|
10
|
-
z.literal("xs"),
|
|
11
|
-
z.literal("sm"),
|
|
12
|
-
z.literal("md"),
|
|
13
|
-
z.literal("lg"),
|
|
14
|
-
z.literal("xl")
|
|
15
|
-
]);
|
|
16
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
17
|
-
$ref: z.string()
|
|
18
|
-
});
|
|
19
3
|
var imageSchema = z.object({
|
|
20
4
|
text: z.string().optional(),
|
|
21
5
|
url: z.string().optional(),
|
|
22
6
|
uri: z.string().optional(),
|
|
23
7
|
accessibilityDescription: z.string().optional()
|
|
24
8
|
});
|
|
9
|
+
var httpMethodSchema = z.union([
|
|
10
|
+
z.literal("GET"),
|
|
11
|
+
z.literal("POST"),
|
|
12
|
+
z.literal("PUT"),
|
|
13
|
+
z.literal("PATCH"),
|
|
14
|
+
z.literal("DELETE")
|
|
15
|
+
]);
|
|
16
|
+
var iconNamedSchema = z.object({
|
|
17
|
+
name: z.string()
|
|
18
|
+
});
|
|
25
19
|
var supportingValuesSchema = z.object({
|
|
26
20
|
value: z.string().optional(),
|
|
27
21
|
subvalue: z.string().optional()
|
|
28
22
|
});
|
|
29
|
-
var headingLayoutSchema = z.object({
|
|
30
|
-
type: z.literal("heading"),
|
|
31
|
-
text: z.string(),
|
|
32
|
-
size: sizeSchema.optional(),
|
|
33
|
-
align: alignSchema.optional(),
|
|
34
|
-
control: z.string().optional(),
|
|
35
|
-
margin: sizeSchema.optional()
|
|
36
|
-
});
|
|
37
|
-
var columnsLayoutBiasSchema = z.union([
|
|
38
|
-
z.literal("none"),
|
|
39
|
-
z.literal("left"),
|
|
40
|
-
z.literal("right")
|
|
41
|
-
]);
|
|
42
23
|
var contextSchema = z.union([
|
|
43
24
|
z.literal("positive"),
|
|
44
25
|
z.literal("neutral"),
|
|
@@ -49,114 +30,28 @@ var contextSchema = z.union([
|
|
|
49
30
|
z.literal("info"),
|
|
50
31
|
z.literal("primary")
|
|
51
32
|
]);
|
|
52
|
-
var
|
|
53
|
-
type: z.literal("markdown"),
|
|
33
|
+
var inlineAlertSchema = z.object({
|
|
54
34
|
content: z.string(),
|
|
55
|
-
|
|
56
|
-
control: z.string().optional(),
|
|
57
|
-
margin: sizeSchema.optional()
|
|
58
|
-
});
|
|
59
|
-
var imageLayoutSchema = z.object({
|
|
60
|
-
type: z.literal("image"),
|
|
61
|
-
text: z.string().optional(),
|
|
62
|
-
url: z.string().optional(),
|
|
63
|
-
accessibilityDescription: z.string().optional(),
|
|
64
|
-
content: imageSchema.optional(),
|
|
65
|
-
size: sizeSchema.optional(),
|
|
66
|
-
control: z.string().optional(),
|
|
67
|
-
margin: sizeSchema.optional(),
|
|
68
|
-
align: alignSchema.optional()
|
|
69
|
-
});
|
|
70
|
-
var modalLayoutTriggerSchema = z.object({
|
|
71
|
-
title: z.string()
|
|
72
|
-
});
|
|
73
|
-
var statusListLayoutStatusSchema = z.union([
|
|
74
|
-
z.literal("not-done"),
|
|
75
|
-
z.literal("pending"),
|
|
76
|
-
z.literal("done")
|
|
77
|
-
]);
|
|
78
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
79
|
-
type: z.literal("loading-indicator"),
|
|
80
|
-
size: sizeSchema.optional(),
|
|
81
|
-
control: z.string().optional(),
|
|
82
|
-
margin: sizeSchema.optional()
|
|
83
|
-
});
|
|
84
|
-
var helpSchema = z.object({
|
|
85
|
-
markdown: z.string()
|
|
86
|
-
});
|
|
87
|
-
var dividerLayoutSchema = z.object({
|
|
88
|
-
type: z.literal("divider"),
|
|
89
|
-
control: z.string().optional(),
|
|
90
|
-
margin: sizeSchema.optional()
|
|
91
|
-
});
|
|
92
|
-
var paragraphLayoutSchema = z.object({
|
|
93
|
-
type: z.literal("paragraph"),
|
|
94
|
-
text: z.string(),
|
|
95
|
-
align: alignSchema.optional(),
|
|
96
|
-
control: z.string().optional(),
|
|
97
|
-
margin: sizeSchema.optional()
|
|
98
|
-
});
|
|
99
|
-
var httpMethodSchema = z.union([
|
|
100
|
-
z.literal("GET"),
|
|
101
|
-
z.literal("POST"),
|
|
102
|
-
z.literal("PUT"),
|
|
103
|
-
z.literal("PATCH"),
|
|
104
|
-
z.literal("DELETE")
|
|
105
|
-
]);
|
|
106
|
-
var jsonElementSchema = z.lazy(
|
|
107
|
-
() => z.union([
|
|
108
|
-
z.string(),
|
|
109
|
-
z.number(),
|
|
110
|
-
z.boolean(),
|
|
111
|
-
z.record(jsonElementSchema),
|
|
112
|
-
z.array(jsonElementSchema)
|
|
113
|
-
]).nullable()
|
|
114
|
-
);
|
|
115
|
-
var externalSchema = z.object({
|
|
116
|
-
url: z.string()
|
|
117
|
-
});
|
|
118
|
-
var stepErrorSchema = z.object({
|
|
119
|
-
error: z.string().optional(),
|
|
120
|
-
validation: jsonElementSchema.optional()
|
|
121
|
-
});
|
|
122
|
-
var summaryProviderSchema = z.object({
|
|
123
|
-
providesTitle: z.boolean().optional(),
|
|
124
|
-
providesDescription: z.boolean().optional(),
|
|
125
|
-
providesIcon: z.boolean().optional(),
|
|
126
|
-
providesImage: z.boolean().optional()
|
|
127
|
-
});
|
|
128
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
129
|
-
var linkSchema = z.object({
|
|
130
|
-
url: z.string()
|
|
35
|
+
context: contextSchema.optional()
|
|
131
36
|
});
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
method: httpMethodSchema,
|
|
135
|
-
url: z.string()
|
|
37
|
+
var iconTextSchema = z.object({
|
|
38
|
+
text: z.string()
|
|
136
39
|
});
|
|
137
|
-
var
|
|
138
|
-
z.literal("
|
|
139
|
-
z.literal("
|
|
140
|
-
z.literal("
|
|
141
|
-
z.literal("
|
|
142
|
-
z.literal("
|
|
40
|
+
var sizeSchema = z.union([
|
|
41
|
+
z.literal("xs"),
|
|
42
|
+
z.literal("sm"),
|
|
43
|
+
z.literal("md"),
|
|
44
|
+
z.literal("lg"),
|
|
45
|
+
z.literal("xl")
|
|
143
46
|
]);
|
|
144
|
-
var
|
|
145
|
-
z.literal("
|
|
146
|
-
z.literal("
|
|
147
|
-
z.literal("
|
|
148
|
-
z.literal("
|
|
47
|
+
var autocapitalizationTypeSchema = z.union([
|
|
48
|
+
z.literal("none"),
|
|
49
|
+
z.literal("characters"),
|
|
50
|
+
z.literal("sentences"),
|
|
51
|
+
z.literal("words")
|
|
149
52
|
]);
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
});
|
|
153
|
-
var linkBehaviorSchema = z.object({
|
|
154
|
-
type: z.literal("link"),
|
|
155
|
-
url: z.string()
|
|
156
|
-
});
|
|
157
|
-
var refreshBehaviorSchema = z.object({
|
|
158
|
-
type: z.literal("refresh")
|
|
159
|
-
});
|
|
53
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
54
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
160
55
|
var autocompleteTokenSchema = z.union([
|
|
161
56
|
z.literal("on"),
|
|
162
57
|
z.literal("name"),
|
|
@@ -222,38 +117,65 @@ var autocompleteTokenSchema = z.union([
|
|
|
222
117
|
z.literal("fax"),
|
|
223
118
|
z.literal("pager")
|
|
224
119
|
]);
|
|
225
|
-
var
|
|
226
|
-
z.literal("
|
|
227
|
-
|
|
228
|
-
z.
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
z.
|
|
236
|
-
|
|
237
|
-
|
|
120
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
121
|
+
type: z.literal("loading-indicator"),
|
|
122
|
+
size: sizeSchema.optional(),
|
|
123
|
+
control: z.string().optional(),
|
|
124
|
+
margin: sizeSchema.optional()
|
|
125
|
+
});
|
|
126
|
+
var paragraphLayoutSchema = z.object({
|
|
127
|
+
type: z.literal("paragraph"),
|
|
128
|
+
text: z.string(),
|
|
129
|
+
align: alignSchema.optional(),
|
|
130
|
+
control: z.string().optional(),
|
|
131
|
+
margin: sizeSchema.optional()
|
|
132
|
+
});
|
|
133
|
+
var dividerLayoutSchema = z.object({
|
|
134
|
+
type: z.literal("divider"),
|
|
135
|
+
control: z.string().optional(),
|
|
136
|
+
margin: sizeSchema.optional()
|
|
137
|
+
});
|
|
138
|
+
var listLayoutStatusSchema = z.union([
|
|
139
|
+
z.literal("warning"),
|
|
140
|
+
z.literal("neutral"),
|
|
141
|
+
z.literal("positive")
|
|
238
142
|
]);
|
|
239
|
-
var
|
|
240
|
-
|
|
241
|
-
method: httpMethodSchema,
|
|
242
|
-
param: z.string(),
|
|
243
|
-
query: z.string()
|
|
143
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
144
|
+
$ref: z.string()
|
|
244
145
|
});
|
|
245
|
-
var
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
146
|
+
var imageLayoutSchema = z.object({
|
|
147
|
+
type: z.literal("image"),
|
|
148
|
+
text: z.string().optional(),
|
|
149
|
+
url: z.string().optional(),
|
|
150
|
+
accessibilityDescription: z.string().optional(),
|
|
151
|
+
content: imageSchema.optional(),
|
|
152
|
+
size: sizeSchema.optional(),
|
|
153
|
+
control: z.string().optional(),
|
|
154
|
+
margin: sizeSchema.optional(),
|
|
155
|
+
align: alignSchema.optional()
|
|
251
156
|
});
|
|
252
|
-
var
|
|
253
|
-
|
|
157
|
+
var statusListLayoutStatusSchema = z.union([
|
|
158
|
+
z.literal("not-done"),
|
|
159
|
+
z.literal("pending"),
|
|
160
|
+
z.literal("done")
|
|
161
|
+
]);
|
|
162
|
+
var instructionsLayoutItemSchema = z.object({
|
|
163
|
+
text: z.string(),
|
|
164
|
+
context: contextSchema,
|
|
165
|
+
tag: z.string().optional()
|
|
254
166
|
});
|
|
255
|
-
var
|
|
256
|
-
|
|
167
|
+
var modalLayoutTriggerSchema = z.object({
|
|
168
|
+
title: z.string()
|
|
169
|
+
});
|
|
170
|
+
var searchLayoutSchema = z.object({
|
|
171
|
+
type: z.literal("search"),
|
|
172
|
+
title: z.string(),
|
|
173
|
+
method: httpMethodSchema,
|
|
174
|
+
url: z.string(),
|
|
175
|
+
param: z.string(),
|
|
176
|
+
emptyMessage: z.string().optional(),
|
|
177
|
+
control: z.string().optional(),
|
|
178
|
+
margin: sizeSchema.optional()
|
|
257
179
|
});
|
|
258
180
|
var infoLayoutSchema = z.object({
|
|
259
181
|
type: z.literal("info"),
|
|
@@ -269,41 +191,59 @@ var formLayoutSchema = z.object({
|
|
|
269
191
|
control: z.string().optional(),
|
|
270
192
|
margin: sizeSchema.optional()
|
|
271
193
|
});
|
|
272
|
-
var
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
url: z.string().optional(),
|
|
280
|
-
method: httpMethodSchema.optional(),
|
|
281
|
-
exit: z.boolean().optional(),
|
|
282
|
-
result: jsonElementSchema.optional(),
|
|
283
|
-
data: jsonElementSchema.optional(),
|
|
284
|
-
timeout: z.number().optional(),
|
|
285
|
-
skipValidation: z.boolean().optional()
|
|
194
|
+
var headingLayoutSchema = z.object({
|
|
195
|
+
type: z.literal("heading"),
|
|
196
|
+
text: z.string(),
|
|
197
|
+
size: sizeSchema.optional(),
|
|
198
|
+
align: alignSchema.optional(),
|
|
199
|
+
control: z.string().optional(),
|
|
200
|
+
margin: sizeSchema.optional()
|
|
286
201
|
});
|
|
287
|
-
var
|
|
288
|
-
|
|
202
|
+
var markdownLayoutSchema = z.object({
|
|
203
|
+
type: z.literal("markdown"),
|
|
289
204
|
content: z.string(),
|
|
290
|
-
|
|
205
|
+
align: alignSchema.optional(),
|
|
206
|
+
control: z.string().optional(),
|
|
207
|
+
margin: sizeSchema.optional()
|
|
291
208
|
});
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
209
|
+
var columnsLayoutBiasSchema = z.union([
|
|
210
|
+
z.literal("none"),
|
|
211
|
+
z.literal("left"),
|
|
212
|
+
z.literal("right")
|
|
213
|
+
]);
|
|
214
|
+
var helpSchema = z.object({
|
|
215
|
+
markdown: z.string()
|
|
296
216
|
});
|
|
297
|
-
var
|
|
298
|
-
type: z.literal("search"),
|
|
299
|
-
title: z.string(),
|
|
300
|
-
method: httpMethodSchema,
|
|
217
|
+
var searchSearchRequestSchema = z.object({
|
|
301
218
|
url: z.string(),
|
|
219
|
+
method: httpMethodSchema,
|
|
302
220
|
param: z.string(),
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
221
|
+
query: z.string()
|
|
222
|
+
});
|
|
223
|
+
var jsonElementSchema = z.lazy(
|
|
224
|
+
() => z.union([
|
|
225
|
+
z.string(),
|
|
226
|
+
z.number(),
|
|
227
|
+
z.boolean(),
|
|
228
|
+
z.record(jsonElementSchema),
|
|
229
|
+
z.array(jsonElementSchema)
|
|
230
|
+
]).nullable()
|
|
231
|
+
);
|
|
232
|
+
var externalSchema = z.object({
|
|
233
|
+
url: z.string()
|
|
306
234
|
});
|
|
235
|
+
var stepErrorSchema = z.object({
|
|
236
|
+
error: z.string().optional(),
|
|
237
|
+
validation: jsonElementSchema.optional()
|
|
238
|
+
});
|
|
239
|
+
var stringSchemaFormatSchema = z.union([
|
|
240
|
+
z.literal("date"),
|
|
241
|
+
z.literal("email"),
|
|
242
|
+
z.literal("numeric"),
|
|
243
|
+
z.literal("password"),
|
|
244
|
+
z.literal("phone-number"),
|
|
245
|
+
z.literal("base64url")
|
|
246
|
+
]);
|
|
307
247
|
var summarySummariserSchema = z.object({
|
|
308
248
|
defaultTitle: z.string().optional(),
|
|
309
249
|
defaultDescription: z.string().optional(),
|
|
@@ -314,14 +254,18 @@ var summarySummariserSchema = z.object({
|
|
|
314
254
|
providesIcon: z.boolean().optional(),
|
|
315
255
|
providesImage: z.boolean().optional()
|
|
316
256
|
});
|
|
317
|
-
var
|
|
318
|
-
|
|
319
|
-
|
|
257
|
+
var validateAsyncSchema = z.object({
|
|
258
|
+
param: z.string(),
|
|
259
|
+
method: httpMethodSchema,
|
|
260
|
+
url: z.string()
|
|
320
261
|
});
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
|
|
262
|
+
var summaryProviderSchema = z.object({
|
|
263
|
+
providesTitle: z.boolean().optional(),
|
|
264
|
+
providesDescription: z.boolean().optional(),
|
|
265
|
+
providesIcon: z.boolean().optional(),
|
|
266
|
+
providesImage: z.boolean().optional()
|
|
324
267
|
});
|
|
268
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
325
269
|
var suggestionsValueSchema = z.object({
|
|
326
270
|
label: z.string(),
|
|
327
271
|
value: jsonElementSchema,
|
|
@@ -329,62 +273,110 @@ var suggestionsValueSchema = z.object({
|
|
|
329
273
|
image: imageSchema.optional(),
|
|
330
274
|
tag: z.string().optional()
|
|
331
275
|
});
|
|
332
|
-
var
|
|
333
|
-
type: z.literal("
|
|
334
|
-
action: actionSchema
|
|
276
|
+
var dismissBehaviorSchema = z.object({
|
|
277
|
+
type: z.literal("dismiss")
|
|
335
278
|
});
|
|
336
|
-
var
|
|
337
|
-
|
|
279
|
+
var navigationStackBehaviorSchema = z.union([
|
|
280
|
+
z.literal("default"),
|
|
281
|
+
z.literal("remove-previous"),
|
|
282
|
+
z.literal("remove-all"),
|
|
283
|
+
z.literal("replace-current")
|
|
284
|
+
]);
|
|
285
|
+
var actionTypeSchema = z.union([
|
|
286
|
+
z.literal("primary"),
|
|
287
|
+
z.literal("secondary"),
|
|
288
|
+
z.literal("link"),
|
|
289
|
+
z.literal("positive"),
|
|
290
|
+
z.literal("negative")
|
|
291
|
+
]);
|
|
292
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
293
|
+
var linkBehaviorSchema = z.object({
|
|
294
|
+
type: z.literal("link"),
|
|
295
|
+
url: z.string()
|
|
296
|
+
});
|
|
297
|
+
var refreshBehaviorSchema = z.object({
|
|
298
|
+
type: z.literal("refresh")
|
|
299
|
+
});
|
|
300
|
+
var linkSchema = z.object({
|
|
301
|
+
url: z.string()
|
|
302
|
+
});
|
|
303
|
+
var actionSchema = z.object({
|
|
304
|
+
title: z.string().optional(),
|
|
305
|
+
type: actionTypeSchema.optional(),
|
|
306
|
+
disabled: z.boolean().optional(),
|
|
307
|
+
$id: z.string().optional(),
|
|
308
|
+
$ref: z.string().optional(),
|
|
309
|
+
id: z.string().optional(),
|
|
310
|
+
url: z.string().optional(),
|
|
311
|
+
method: httpMethodSchema.optional(),
|
|
312
|
+
exit: z.boolean().optional(),
|
|
313
|
+
result: jsonElementSchema.optional(),
|
|
314
|
+
data: jsonElementSchema.optional(),
|
|
315
|
+
timeout: z.number().optional(),
|
|
316
|
+
skipValidation: z.boolean().optional()
|
|
338
317
|
});
|
|
339
|
-
var
|
|
340
|
-
|
|
318
|
+
var instructionsLayoutSchema = z.object({
|
|
319
|
+
type: z.literal("instructions"),
|
|
320
|
+
title: z.string().optional(),
|
|
321
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
322
|
+
control: z.string().optional(),
|
|
323
|
+
margin: sizeSchema.optional()
|
|
341
324
|
});
|
|
342
|
-
var
|
|
343
|
-
type: z.literal("
|
|
325
|
+
var searchResultSearchSchema = z.object({
|
|
326
|
+
type: z.literal("search"),
|
|
344
327
|
title: z.string(),
|
|
345
328
|
description: z.string().optional(),
|
|
346
329
|
icon: iconSchema.optional(),
|
|
347
330
|
image: imageSchema.optional(),
|
|
348
|
-
value:
|
|
331
|
+
value: searchSearchRequestSchema
|
|
349
332
|
});
|
|
350
|
-
var
|
|
351
|
-
type: z.literal("
|
|
333
|
+
var searchResultActionSchema = z.object({
|
|
334
|
+
type: z.literal("action"),
|
|
352
335
|
title: z.string(),
|
|
353
336
|
description: z.string().optional(),
|
|
354
337
|
icon: iconSchema.optional(),
|
|
355
338
|
image: imageSchema.optional(),
|
|
356
|
-
value:
|
|
339
|
+
value: actionSchema
|
|
357
340
|
});
|
|
358
|
-
var
|
|
359
|
-
|
|
341
|
+
var actionResponseBodySchema = z.object({
|
|
342
|
+
action: actionSchema
|
|
343
|
+
});
|
|
344
|
+
var errorResponseBodySchema = z.object({
|
|
345
|
+
refreshFormUrl: z.string().optional(),
|
|
346
|
+
analytics: z.record(z.string()).optional(),
|
|
347
|
+
error: z.string().optional(),
|
|
348
|
+
validation: jsonElementSchema.optional(),
|
|
349
|
+
refreshUrl: z.string().optional()
|
|
350
|
+
});
|
|
351
|
+
var suggestionsSchema = z.object({
|
|
352
|
+
values: z.array(suggestionsValueSchema)
|
|
353
|
+
});
|
|
354
|
+
var navigationBackBehaviorSchema = z.object({
|
|
360
355
|
title: z.string().optional(),
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
356
|
+
action: actionSchema
|
|
357
|
+
});
|
|
358
|
+
var actionBehaviorSchema = z.object({
|
|
359
|
+
type: z.literal("action"),
|
|
360
|
+
action: actionSchema
|
|
361
|
+
});
|
|
362
|
+
var containerBehaviorSchema = z.object({
|
|
363
|
+
action: actionSchema.optional(),
|
|
364
|
+
link: linkSchema.optional()
|
|
364
365
|
});
|
|
366
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
365
367
|
var navigationSchema = z.object({
|
|
366
368
|
backButton: navigationBackBehaviorSchema.optional(),
|
|
367
369
|
back: navigationBackBehaviorSchema.optional(),
|
|
368
370
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
369
371
|
});
|
|
370
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
371
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
372
372
|
var searchResponseBodySchema = z.object({
|
|
373
373
|
results: z.array(searchResultSchema)
|
|
374
374
|
});
|
|
375
|
-
var
|
|
375
|
+
var additionalInfoSchema = z.lazy(
|
|
376
376
|
() => z.object({
|
|
377
|
-
|
|
378
|
-
title: z.string(),
|
|
379
|
-
description: z.string().optional(),
|
|
380
|
-
disabled: z.boolean().optional(),
|
|
381
|
-
icon: iconSchema.optional(),
|
|
382
|
-
image: imageSchema.optional(),
|
|
377
|
+
text: z.string(),
|
|
383
378
|
behavior: behaviorSchema.optional(),
|
|
384
|
-
|
|
385
|
-
additionalText: z.string().optional(),
|
|
386
|
-
supportingValues: supportingValuesSchema.optional(),
|
|
387
|
-
inlineAlert: inlineAlertSchema.optional()
|
|
379
|
+
accessibilityDescription: z.string().optional()
|
|
388
380
|
})
|
|
389
381
|
);
|
|
390
382
|
var behaviorSchema = z.lazy(
|
|
@@ -397,36 +389,28 @@ var behaviorSchema = z.lazy(
|
|
|
397
389
|
refreshBehaviorSchema
|
|
398
390
|
])
|
|
399
391
|
);
|
|
400
|
-
var
|
|
392
|
+
var reviewLayoutCallToActionSchema = z.lazy(
|
|
401
393
|
() => z.object({
|
|
402
|
-
|
|
403
|
-
|
|
394
|
+
action: actionSchema.optional(),
|
|
395
|
+
title: z.string(),
|
|
396
|
+
accessibilityDescription: z.string().optional(),
|
|
397
|
+
behavior: behaviorSchema.optional()
|
|
404
398
|
})
|
|
405
399
|
);
|
|
406
|
-
var
|
|
407
|
-
() => z.
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
loadingIndicatorLayoutSchema,
|
|
421
|
-
markdownLayoutSchema,
|
|
422
|
-
modalLayoutSchema,
|
|
423
|
-
paragraphLayoutSchema,
|
|
424
|
-
reviewLayoutSchema,
|
|
425
|
-
searchLayoutSchema,
|
|
426
|
-
sectionLayoutSchema,
|
|
427
|
-
statusListLayoutSchema,
|
|
428
|
-
tabsLayoutSchema
|
|
429
|
-
])
|
|
400
|
+
var tabsLayoutSchema = z.lazy(
|
|
401
|
+
() => z.object({
|
|
402
|
+
type: z.literal("tabs"),
|
|
403
|
+
tabs: z.array(tabsLayoutTabSchema),
|
|
404
|
+
control: z.string().optional(),
|
|
405
|
+
margin: sizeSchema.optional()
|
|
406
|
+
})
|
|
407
|
+
);
|
|
408
|
+
var tabsLayoutTabSchema = z.lazy(
|
|
409
|
+
() => z.object({
|
|
410
|
+
title: z.string(),
|
|
411
|
+
components: z.array(layoutSchema),
|
|
412
|
+
tag: z.string().optional()
|
|
413
|
+
})
|
|
430
414
|
);
|
|
431
415
|
var alertLayoutSchema = z.lazy(
|
|
432
416
|
() => z.object({
|
|
@@ -478,6 +462,30 @@ var listLayoutItemSchema = z.lazy(
|
|
|
478
462
|
description: z.string().optional()
|
|
479
463
|
})
|
|
480
464
|
);
|
|
465
|
+
var decisionLayoutSchema = z.lazy(
|
|
466
|
+
() => z.object({
|
|
467
|
+
type: z.literal("decision"),
|
|
468
|
+
title: z.string().optional(),
|
|
469
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
470
|
+
control: z.string().optional(),
|
|
471
|
+
margin: sizeSchema.optional()
|
|
472
|
+
})
|
|
473
|
+
);
|
|
474
|
+
var decisionLayoutOptionSchema = z.lazy(
|
|
475
|
+
() => z.object({
|
|
476
|
+
action: actionSchema.optional(),
|
|
477
|
+
title: z.string(),
|
|
478
|
+
description: z.string().optional(),
|
|
479
|
+
disabled: z.boolean().optional(),
|
|
480
|
+
icon: iconSchema.optional(),
|
|
481
|
+
image: imageSchema.optional(),
|
|
482
|
+
behavior: behaviorSchema.optional(),
|
|
483
|
+
tag: z.string().optional(),
|
|
484
|
+
additionalText: z.string().optional(),
|
|
485
|
+
supportingValues: supportingValuesSchema.optional(),
|
|
486
|
+
inlineAlert: inlineAlertSchema.optional()
|
|
487
|
+
})
|
|
488
|
+
);
|
|
481
489
|
var sectionLayoutCallToActionSchema = z.lazy(
|
|
482
490
|
() => z.object({
|
|
483
491
|
title: z.string(),
|
|
@@ -504,23 +512,6 @@ var statusListLayoutItemSchema = z.lazy(
|
|
|
504
512
|
tag: z.string().optional()
|
|
505
513
|
})
|
|
506
514
|
);
|
|
507
|
-
var tabsLayoutTabSchema = z.lazy(
|
|
508
|
-
() => z.object({
|
|
509
|
-
title: z.string(),
|
|
510
|
-
components: z.array(layoutSchema),
|
|
511
|
-
tag: z.string().optional()
|
|
512
|
-
})
|
|
513
|
-
);
|
|
514
|
-
var boxLayoutSchema = z.lazy(
|
|
515
|
-
() => z.object({
|
|
516
|
-
type: z.literal("box"),
|
|
517
|
-
components: z.array(layoutSchema),
|
|
518
|
-
width: sizeSchema.optional(),
|
|
519
|
-
border: z.boolean().optional(),
|
|
520
|
-
control: z.string().optional(),
|
|
521
|
-
margin: sizeSchema.optional()
|
|
522
|
-
})
|
|
523
|
-
);
|
|
524
515
|
var sectionLayoutSchema = z.lazy(
|
|
525
516
|
() => z.object({
|
|
526
517
|
type: z.literal("section"),
|
|
@@ -531,38 +522,46 @@ var sectionLayoutSchema = z.lazy(
|
|
|
531
522
|
margin: sizeSchema.optional()
|
|
532
523
|
})
|
|
533
524
|
);
|
|
534
|
-
var
|
|
535
|
-
() => z.
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
525
|
+
var layoutSchema = z.lazy(
|
|
526
|
+
() => z.union([
|
|
527
|
+
alertLayoutSchema,
|
|
528
|
+
boxLayoutSchema,
|
|
529
|
+
buttonLayoutSchema,
|
|
530
|
+
columnsLayoutSchema,
|
|
531
|
+
decisionLayoutSchema,
|
|
532
|
+
dividerLayoutSchema,
|
|
533
|
+
formLayoutSchema,
|
|
534
|
+
headingLayoutSchema,
|
|
535
|
+
imageLayoutSchema,
|
|
536
|
+
infoLayoutSchema,
|
|
537
|
+
instructionsLayoutSchema,
|
|
538
|
+
listLayoutSchema,
|
|
539
|
+
loadingIndicatorLayoutSchema,
|
|
540
|
+
markdownLayoutSchema,
|
|
541
|
+
modalLayoutSchema,
|
|
542
|
+
paragraphLayoutSchema,
|
|
543
|
+
reviewLayoutSchema,
|
|
544
|
+
searchLayoutSchema,
|
|
545
|
+
sectionLayoutSchema,
|
|
546
|
+
statusListLayoutSchema,
|
|
547
|
+
tabsLayoutSchema
|
|
548
|
+
])
|
|
545
549
|
);
|
|
546
|
-
var
|
|
550
|
+
var itemCallToActionSchema = z.lazy(
|
|
547
551
|
() => z.object({
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
help: helpSchema.optional(),
|
|
552
|
-
tag: z.string().optional(),
|
|
553
|
-
icon: iconSchema.optional(),
|
|
554
|
-
image: imageSchema.optional(),
|
|
555
|
-
additionalInfo: additionalInfoSchema.optional(),
|
|
556
|
-
inlineAlert: inlineAlertSchema.optional(),
|
|
557
|
-
callToAction: reviewLayoutCallToActionSchema.optional()
|
|
552
|
+
title: z.string(),
|
|
553
|
+
accessibilityDescription: z.string().optional(),
|
|
554
|
+
behavior: behaviorSchema
|
|
558
555
|
})
|
|
559
556
|
);
|
|
560
|
-
var
|
|
557
|
+
var boxLayoutSchema = z.lazy(
|
|
561
558
|
() => z.object({
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
559
|
+
type: z.literal("box"),
|
|
560
|
+
components: z.array(layoutSchema),
|
|
561
|
+
width: sizeSchema.optional(),
|
|
562
|
+
border: z.boolean().optional(),
|
|
563
|
+
control: z.string().optional(),
|
|
564
|
+
margin: sizeSchema.optional()
|
|
566
565
|
})
|
|
567
566
|
);
|
|
568
567
|
var buttonLayoutSchema = z.lazy(
|
|
@@ -579,54 +578,61 @@ var buttonLayoutSchema = z.lazy(
|
|
|
579
578
|
margin: sizeSchema.optional()
|
|
580
579
|
})
|
|
581
580
|
);
|
|
582
|
-
var
|
|
583
|
-
() => z.object({
|
|
584
|
-
title: z.string(),
|
|
585
|
-
accessibilityDescription: z.string().optional(),
|
|
586
|
-
behavior: behaviorSchema
|
|
587
|
-
})
|
|
588
|
-
);
|
|
589
|
-
var decisionLayoutSchema = z.lazy(
|
|
581
|
+
var columnsLayoutSchema = z.lazy(
|
|
590
582
|
() => z.object({
|
|
591
|
-
type: z.literal("
|
|
592
|
-
|
|
593
|
-
|
|
583
|
+
type: z.literal("columns"),
|
|
584
|
+
left: z.array(layoutSchema),
|
|
585
|
+
right: z.array(layoutSchema),
|
|
586
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
594
587
|
control: z.string().optional(),
|
|
595
588
|
margin: sizeSchema.optional()
|
|
596
589
|
})
|
|
597
590
|
);
|
|
598
|
-
var
|
|
591
|
+
var modalLayoutSchema = z.lazy(
|
|
599
592
|
() => z.object({
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
593
|
+
type: z.literal("modal"),
|
|
594
|
+
control: z.string().optional(),
|
|
595
|
+
margin: sizeSchema.optional(),
|
|
596
|
+
trigger: modalLayoutTriggerSchema,
|
|
597
|
+
content: modalLayoutContentSchema
|
|
603
598
|
})
|
|
604
599
|
);
|
|
605
|
-
var
|
|
600
|
+
var reviewLayoutSchema = z.lazy(
|
|
606
601
|
() => z.object({
|
|
607
|
-
type: z.literal("
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
602
|
+
type: z.literal("review"),
|
|
603
|
+
orientation: z.string().optional(),
|
|
604
|
+
action: actionSchema.optional(),
|
|
605
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
606
|
+
title: z.string().optional(),
|
|
607
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
611
608
|
control: z.string().optional(),
|
|
612
609
|
margin: sizeSchema.optional()
|
|
613
610
|
})
|
|
614
611
|
);
|
|
615
|
-
var
|
|
612
|
+
var reviewLayoutFieldSchema = z.lazy(
|
|
613
|
+
() => z.object({
|
|
614
|
+
label: z.string(),
|
|
615
|
+
value: z.string(),
|
|
616
|
+
rawValue: z.string().optional(),
|
|
617
|
+
help: helpSchema.optional(),
|
|
618
|
+
tag: z.string().optional(),
|
|
619
|
+
icon: iconSchema.optional(),
|
|
620
|
+
image: imageSchema.optional(),
|
|
621
|
+
additionalInfo: additionalInfoSchema.optional(),
|
|
622
|
+
inlineAlert: inlineAlertSchema.optional(),
|
|
623
|
+
callToAction: reviewLayoutCallToActionSchema.optional()
|
|
624
|
+
})
|
|
625
|
+
);
|
|
626
|
+
var modalLayoutContentSchema = z.lazy(
|
|
616
627
|
() => z.object({
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
margin: sizeSchema.optional(),
|
|
620
|
-
trigger: modalLayoutTriggerSchema,
|
|
621
|
-
content: modalLayoutContentSchema
|
|
628
|
+
title: z.string().optional(),
|
|
629
|
+
components: z.array(layoutSchema)
|
|
622
630
|
})
|
|
623
631
|
);
|
|
624
|
-
var
|
|
632
|
+
var modalResponseBodySchema = z.lazy(
|
|
625
633
|
() => z.object({
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
control: z.string().optional(),
|
|
629
|
-
margin: sizeSchema.optional()
|
|
634
|
+
title: z.string().optional(),
|
|
635
|
+
content: z.array(layoutSchema)
|
|
630
636
|
})
|
|
631
637
|
);
|
|
632
638
|
var stepSchema = z.lazy(
|
|
@@ -682,27 +688,26 @@ var linkHandlerSchema = z.lazy(
|
|
|
682
688
|
behavior: behaviorSchema.optional()
|
|
683
689
|
})
|
|
684
690
|
);
|
|
685
|
-
var
|
|
686
|
-
() => z.object({
|
|
687
|
-
param: z.string(),
|
|
688
|
-
idProperty: z.string(),
|
|
689
|
-
schema: schemaSchema,
|
|
690
|
-
url: z.string(),
|
|
691
|
-
method: httpMethodSchema
|
|
692
|
-
})
|
|
693
|
-
);
|
|
694
|
-
var modalBehaviorSchema = z.lazy(
|
|
691
|
+
var allOfSchemaSchema = z.lazy(
|
|
695
692
|
() => z.object({
|
|
696
|
-
|
|
693
|
+
disabled: z.boolean().optional(),
|
|
694
|
+
promoted: z.boolean().optional(),
|
|
695
|
+
allOf: z.array(schemaSchema),
|
|
696
|
+
$id: z.string().optional(),
|
|
697
697
|
title: z.string().optional(),
|
|
698
|
-
|
|
698
|
+
description: z.string().optional(),
|
|
699
|
+
control: z.string().optional(),
|
|
700
|
+
hidden: z.boolean().optional(),
|
|
701
|
+
icon: iconSchema.optional(),
|
|
702
|
+
image: imageSchema.optional(),
|
|
703
|
+
keywords: z.array(z.string()).optional(),
|
|
704
|
+
summary: summaryProviderSchema.optional(),
|
|
705
|
+
analyticsId: z.string().optional(),
|
|
706
|
+
alert: alertLayoutSchema.optional()
|
|
699
707
|
})
|
|
700
708
|
);
|
|
701
|
-
var
|
|
702
|
-
() => z.
|
|
703
|
-
action: actionSchema.optional(),
|
|
704
|
-
behavior: behaviorSchema.optional()
|
|
705
|
-
})
|
|
709
|
+
var arraySchemaSchema = z.lazy(
|
|
710
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
706
711
|
);
|
|
707
712
|
var blobSchemaSchema = z.lazy(
|
|
708
713
|
() => z.object({
|
|
@@ -728,80 +733,69 @@ var blobSchemaSchema = z.lazy(
|
|
|
728
733
|
disabled: z.boolean().optional()
|
|
729
734
|
})
|
|
730
735
|
);
|
|
731
|
-
var
|
|
736
|
+
var booleanSchemaSchema = z.lazy(
|
|
732
737
|
() => z.object({
|
|
738
|
+
type: z.literal("boolean"),
|
|
733
739
|
autofillProvider: z.string().optional(),
|
|
734
740
|
promoted: z.boolean().optional(),
|
|
735
741
|
refreshFormOnChange: z.boolean().optional(),
|
|
736
742
|
refreshUrl: z.string().optional(),
|
|
737
743
|
refreshFormUrl: z.string().optional(),
|
|
738
|
-
promotion: jsonElementSchema.optional(),
|
|
739
|
-
oneOf: z.array(schemaSchema),
|
|
740
|
-
placeholder: z.string().optional(),
|
|
741
744
|
$id: z.string().optional(),
|
|
742
745
|
title: z.string().optional(),
|
|
743
746
|
description: z.string().optional(),
|
|
744
747
|
control: z.string().optional(),
|
|
745
|
-
default:
|
|
748
|
+
default: z.boolean().optional(),
|
|
746
749
|
hidden: z.boolean().optional(),
|
|
750
|
+
disabled: z.boolean().optional(),
|
|
747
751
|
icon: iconSchema.optional(),
|
|
748
752
|
image: imageSchema.optional(),
|
|
749
753
|
keywords: z.array(z.string()).optional(),
|
|
750
754
|
summary: summaryProviderSchema.optional(),
|
|
751
755
|
analyticsId: z.string().optional(),
|
|
756
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
752
757
|
refreshStepOnChange: z.boolean().optional(),
|
|
758
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
753
759
|
alert: alertLayoutSchema.optional(),
|
|
754
|
-
help: helpSchema.optional(),
|
|
755
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
756
760
|
autofillKey: z.string().optional(),
|
|
757
|
-
|
|
758
|
-
disabled: z.boolean().optional(),
|
|
761
|
+
help: helpSchema.optional(),
|
|
759
762
|
onChange: behaviorSchema.optional()
|
|
760
763
|
})
|
|
761
764
|
);
|
|
762
|
-
var
|
|
765
|
+
var constSchemaSchema = z.lazy(
|
|
763
766
|
() => z.object({
|
|
764
|
-
|
|
767
|
+
hidden: z.boolean().optional(),
|
|
768
|
+
alert: alertLayoutSchema.optional(),
|
|
769
|
+
control: z.string().optional(),
|
|
765
770
|
promoted: z.boolean().optional(),
|
|
766
771
|
$id: z.string().optional(),
|
|
767
|
-
|
|
772
|
+
const: jsonElementSchema,
|
|
768
773
|
title: z.string().optional(),
|
|
769
774
|
description: z.string().optional(),
|
|
770
|
-
control: z.string().optional(),
|
|
771
|
-
hidden: z.boolean().optional(),
|
|
772
775
|
icon: iconSchema.optional(),
|
|
773
776
|
image: imageSchema.optional(),
|
|
774
777
|
keywords: z.array(z.string()).optional(),
|
|
775
778
|
summary: summaryProviderSchema.optional(),
|
|
776
779
|
analyticsId: z.string().optional(),
|
|
777
|
-
|
|
778
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
779
|
-
alert: alertLayoutSchema.optional()
|
|
780
|
+
disabled: z.boolean().optional()
|
|
780
781
|
})
|
|
781
782
|
);
|
|
782
|
-
var
|
|
783
|
+
var integerSchemaSchema = z.lazy(
|
|
783
784
|
() => z.object({
|
|
784
|
-
type: z.literal("
|
|
785
|
+
type: z.literal("integer"),
|
|
785
786
|
autofillProvider: z.string().optional(),
|
|
786
787
|
promoted: z.boolean().optional(),
|
|
787
788
|
refreshFormOnChange: z.boolean().optional(),
|
|
788
789
|
refreshUrl: z.string().optional(),
|
|
789
790
|
refreshFormUrl: z.string().optional(),
|
|
790
|
-
format: stringSchemaFormatSchema.optional(),
|
|
791
|
-
displayFormat: z.string().optional(),
|
|
792
791
|
placeholder: z.string().optional(),
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
minimum: z.string().optional(),
|
|
796
|
-
maximum: z.string().optional(),
|
|
797
|
-
pattern: z.string().optional(),
|
|
798
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
799
|
-
autocorrect: z.boolean().optional(),
|
|
792
|
+
minimum: z.number().optional(),
|
|
793
|
+
maximum: z.number().optional(),
|
|
800
794
|
$id: z.string().optional(),
|
|
801
795
|
title: z.string().optional(),
|
|
802
796
|
description: z.string().optional(),
|
|
803
797
|
control: z.string().optional(),
|
|
804
|
-
default: z.
|
|
798
|
+
default: z.number().optional(),
|
|
805
799
|
hidden: z.boolean().optional(),
|
|
806
800
|
disabled: z.boolean().optional(),
|
|
807
801
|
icon: iconSchema.optional(),
|
|
@@ -814,14 +808,9 @@ var stringSchemaSchema = z.lazy(
|
|
|
814
808
|
validationAsync: validateAsyncSchema.optional(),
|
|
815
809
|
validationMessages: z.record(z.string()).optional(),
|
|
816
810
|
alert: alertLayoutSchema.optional(),
|
|
817
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
818
|
-
accepts: z.array(z.string()).optional(),
|
|
819
|
-
maxSize: z.number().optional(),
|
|
820
|
-
source: uploadSourceSchema.optional(),
|
|
821
811
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
822
812
|
autofillKey: z.string().optional(),
|
|
823
813
|
help: helpSchema.optional(),
|
|
824
|
-
suggestions: suggestionsSchema.optional(),
|
|
825
814
|
onChange: behaviorSchema.optional()
|
|
826
815
|
})
|
|
827
816
|
);
|
|
@@ -859,65 +848,105 @@ var numberSchemaSchema = z.lazy(
|
|
|
859
848
|
onChange: behaviorSchema.optional()
|
|
860
849
|
})
|
|
861
850
|
);
|
|
862
|
-
var
|
|
851
|
+
var objectSchemaSchema = z.lazy(
|
|
852
|
+
() => z.object({
|
|
853
|
+
type: z.literal("object"),
|
|
854
|
+
disabled: z.boolean().optional(),
|
|
855
|
+
promoted: z.boolean().optional(),
|
|
856
|
+
help: helpSchema.optional(),
|
|
857
|
+
properties: z.record(schemaSchema),
|
|
858
|
+
displayOrder: z.array(z.string()),
|
|
859
|
+
required: z.array(z.string()).optional(),
|
|
860
|
+
$id: z.string().optional(),
|
|
861
|
+
title: z.string().optional(),
|
|
862
|
+
description: z.string().optional(),
|
|
863
|
+
control: z.string().optional(),
|
|
864
|
+
hidden: z.boolean().optional(),
|
|
865
|
+
icon: iconSchema.optional(),
|
|
866
|
+
image: imageSchema.optional(),
|
|
867
|
+
keywords: z.array(z.string()).optional(),
|
|
868
|
+
summary: summaryProviderSchema.optional(),
|
|
869
|
+
analyticsId: z.string().optional(),
|
|
870
|
+
alert: alertLayoutSchema.optional()
|
|
871
|
+
})
|
|
872
|
+
);
|
|
873
|
+
var oneOfSchemaSchema = z.lazy(
|
|
863
874
|
() => z.object({
|
|
864
|
-
type: z.literal("integer"),
|
|
865
875
|
autofillProvider: z.string().optional(),
|
|
866
876
|
promoted: z.boolean().optional(),
|
|
867
877
|
refreshFormOnChange: z.boolean().optional(),
|
|
868
878
|
refreshUrl: z.string().optional(),
|
|
869
879
|
refreshFormUrl: z.string().optional(),
|
|
880
|
+
promotion: jsonElementSchema.optional(),
|
|
881
|
+
oneOf: z.array(schemaSchema),
|
|
870
882
|
placeholder: z.string().optional(),
|
|
871
|
-
minimum: z.number().optional(),
|
|
872
|
-
maximum: z.number().optional(),
|
|
873
883
|
$id: z.string().optional(),
|
|
874
884
|
title: z.string().optional(),
|
|
875
885
|
description: z.string().optional(),
|
|
876
886
|
control: z.string().optional(),
|
|
877
|
-
default:
|
|
887
|
+
default: jsonElementSchema.optional(),
|
|
878
888
|
hidden: z.boolean().optional(),
|
|
879
|
-
disabled: z.boolean().optional(),
|
|
880
889
|
icon: iconSchema.optional(),
|
|
881
890
|
image: imageSchema.optional(),
|
|
882
891
|
keywords: z.array(z.string()).optional(),
|
|
883
892
|
summary: summaryProviderSchema.optional(),
|
|
884
893
|
analyticsId: z.string().optional(),
|
|
885
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
886
894
|
refreshStepOnChange: z.boolean().optional(),
|
|
887
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
888
|
-
validationMessages: z.record(z.string()).optional(),
|
|
889
895
|
alert: alertLayoutSchema.optional(),
|
|
896
|
+
help: helpSchema.optional(),
|
|
890
897
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
891
898
|
autofillKey: z.string().optional(),
|
|
892
|
-
|
|
899
|
+
validationMessages: z.record(z.string()).optional(),
|
|
900
|
+
disabled: z.boolean().optional(),
|
|
893
901
|
onChange: behaviorSchema.optional()
|
|
894
902
|
})
|
|
895
903
|
);
|
|
896
|
-
var
|
|
904
|
+
var stringSchemaSchema = z.lazy(
|
|
897
905
|
() => z.object({
|
|
898
|
-
type: z.literal("
|
|
899
|
-
|
|
906
|
+
type: z.literal("string"),
|
|
907
|
+
autofillProvider: z.string().optional(),
|
|
900
908
|
promoted: z.boolean().optional(),
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
909
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
910
|
+
refreshUrl: z.string().optional(),
|
|
911
|
+
refreshFormUrl: z.string().optional(),
|
|
912
|
+
format: stringSchemaFormatSchema.optional(),
|
|
913
|
+
displayFormat: z.string().optional(),
|
|
914
|
+
placeholder: z.string().optional(),
|
|
915
|
+
minLength: z.number().optional(),
|
|
916
|
+
maxLength: z.number().optional(),
|
|
917
|
+
minimum: z.string().optional(),
|
|
918
|
+
maximum: z.string().optional(),
|
|
919
|
+
pattern: z.string().optional(),
|
|
920
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
921
|
+
autocorrect: z.boolean().optional(),
|
|
905
922
|
$id: z.string().optional(),
|
|
906
923
|
title: z.string().optional(),
|
|
907
924
|
description: z.string().optional(),
|
|
908
925
|
control: z.string().optional(),
|
|
926
|
+
default: z.string().optional(),
|
|
909
927
|
hidden: z.boolean().optional(),
|
|
928
|
+
disabled: z.boolean().optional(),
|
|
910
929
|
icon: iconSchema.optional(),
|
|
911
930
|
image: imageSchema.optional(),
|
|
912
931
|
keywords: z.array(z.string()).optional(),
|
|
913
932
|
summary: summaryProviderSchema.optional(),
|
|
914
933
|
analyticsId: z.string().optional(),
|
|
915
|
-
|
|
934
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
935
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
936
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
937
|
+
validationMessages: z.record(z.string()).optional(),
|
|
938
|
+
alert: alertLayoutSchema.optional(),
|
|
939
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
940
|
+
accepts: z.array(z.string()).optional(),
|
|
941
|
+
maxSize: z.number().optional(),
|
|
942
|
+
source: uploadSourceSchema.optional(),
|
|
943
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
944
|
+
autofillKey: z.string().optional(),
|
|
945
|
+
help: helpSchema.optional(),
|
|
946
|
+
suggestions: suggestionsSchema.optional(),
|
|
947
|
+
onChange: behaviorSchema.optional()
|
|
916
948
|
})
|
|
917
949
|
);
|
|
918
|
-
var arraySchemaSchema = z.lazy(
|
|
919
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
920
|
-
);
|
|
921
950
|
var arraySchemaListSchema = z.lazy(
|
|
922
951
|
() => z.object({
|
|
923
952
|
type: z.literal("array"),
|
|
@@ -945,73 +974,44 @@ var arraySchemaListSchema = z.lazy(
|
|
|
945
974
|
disabled: z.boolean().optional()
|
|
946
975
|
})
|
|
947
976
|
);
|
|
948
|
-
var
|
|
977
|
+
var persistAsyncSchema = z.lazy(
|
|
949
978
|
() => z.object({
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
const: jsonElementSchema,
|
|
956
|
-
title: z.string().optional(),
|
|
957
|
-
description: z.string().optional(),
|
|
958
|
-
icon: iconSchema.optional(),
|
|
959
|
-
image: imageSchema.optional(),
|
|
960
|
-
keywords: z.array(z.string()).optional(),
|
|
961
|
-
summary: summaryProviderSchema.optional(),
|
|
962
|
-
analyticsId: z.string().optional(),
|
|
963
|
-
disabled: z.boolean().optional()
|
|
979
|
+
param: z.string(),
|
|
980
|
+
idProperty: z.string(),
|
|
981
|
+
schema: schemaSchema,
|
|
982
|
+
url: z.string(),
|
|
983
|
+
method: httpMethodSchema
|
|
964
984
|
})
|
|
965
985
|
);
|
|
966
|
-
var
|
|
986
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
967
987
|
() => z.object({
|
|
968
|
-
type: z.literal("
|
|
969
|
-
autofillProvider: z.string().optional(),
|
|
988
|
+
type: z.literal("array"),
|
|
970
989
|
promoted: z.boolean().optional(),
|
|
971
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
972
|
-
refreshUrl: z.string().optional(),
|
|
973
|
-
refreshFormUrl: z.string().optional(),
|
|
974
990
|
$id: z.string().optional(),
|
|
991
|
+
items: z.array(schemaSchema),
|
|
975
992
|
title: z.string().optional(),
|
|
976
993
|
description: z.string().optional(),
|
|
977
994
|
control: z.string().optional(),
|
|
978
|
-
default: z.boolean().optional(),
|
|
979
995
|
hidden: z.boolean().optional(),
|
|
980
|
-
disabled: z.boolean().optional(),
|
|
981
996
|
icon: iconSchema.optional(),
|
|
982
997
|
image: imageSchema.optional(),
|
|
983
998
|
keywords: z.array(z.string()).optional(),
|
|
984
999
|
summary: summaryProviderSchema.optional(),
|
|
985
1000
|
analyticsId: z.string().optional(),
|
|
986
1001
|
persistAsync: persistAsyncSchema.optional(),
|
|
987
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
988
1002
|
validationAsync: validateAsyncSchema.optional(),
|
|
989
|
-
alert: alertLayoutSchema.optional()
|
|
990
|
-
autofillKey: z.string().optional(),
|
|
991
|
-
help: helpSchema.optional(),
|
|
992
|
-
onChange: behaviorSchema.optional()
|
|
1003
|
+
alert: alertLayoutSchema.optional()
|
|
993
1004
|
})
|
|
994
1005
|
);
|
|
995
|
-
var
|
|
1006
|
+
var pollingOnErrorSchema = z.lazy(
|
|
996
1007
|
() => z.object({
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
allOf: z.array(schemaSchema),
|
|
1000
|
-
$id: z.string().optional(),
|
|
1001
|
-
title: z.string().optional(),
|
|
1002
|
-
description: z.string().optional(),
|
|
1003
|
-
control: z.string().optional(),
|
|
1004
|
-
hidden: z.boolean().optional(),
|
|
1005
|
-
icon: iconSchema.optional(),
|
|
1006
|
-
image: imageSchema.optional(),
|
|
1007
|
-
keywords: z.array(z.string()).optional(),
|
|
1008
|
-
summary: summaryProviderSchema.optional(),
|
|
1009
|
-
analyticsId: z.string().optional(),
|
|
1010
|
-
alert: alertLayoutSchema.optional()
|
|
1008
|
+
action: actionSchema.optional(),
|
|
1009
|
+
behavior: behaviorSchema.optional()
|
|
1011
1010
|
})
|
|
1012
1011
|
);
|
|
1013
|
-
var
|
|
1012
|
+
var modalBehaviorSchema = z.lazy(
|
|
1014
1013
|
() => z.object({
|
|
1014
|
+
type: z.literal("modal"),
|
|
1015
1015
|
title: z.string().optional(),
|
|
1016
1016
|
content: z.array(layoutSchema)
|
|
1017
1017
|
})
|