@wise/dynamic-flow-types 2.31.0 → 3.0.0-exp-zod-301f0be
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 +337 -327
- package/build/main.min.js +1 -1
- package/build/main.mjs +337 -327
- package/build/next/index.d.ts +1 -0
- package/build/next/layout/ListLayout.d.ts +11 -6
- package/build/next/layout/ListLayoutCallToAction.d.ts +18 -0
- package/build/next/layout/ListLayoutItem.d.ts +26 -8
- package/build/next/layout/ListLayoutStatus.d.ts +2 -2
- package/build/renderers/BaseInputRendererProps.d.ts +1 -2
- package/build/renderers/{BooleanRendererProps.d.ts → CheckboxInputRendererProps.d.ts} +2 -2
- package/build/renderers/DateInputRendererProps.d.ts +1 -0
- package/build/renderers/DecisionRendererProps.d.ts +1 -0
- package/build/renderers/Image.d.ts +22 -1
- package/build/renderers/IntegerInputRendererProps.d.ts +1 -0
- package/build/renderers/ListRendererProps.d.ts +33 -0
- package/build/renderers/MultiSelectInputRendererProps.d.ts +1 -0
- package/build/renderers/MultiUploadInputRendererProps.d.ts +4 -2
- package/build/renderers/RendererProps.d.ts +5 -4
- package/build/renderers/SearchRendererProps.d.ts +5 -2
- package/build/renderers/{FormSectionRendererProps.d.ts → SectionRendererProps.d.ts} +2 -2
- package/build/renderers/SelectInputRendererProps.d.ts +1 -0
- package/build/renderers/TextInputRendererProps.d.ts +1 -0
- package/build/renderers/index.d.ts +3 -2
- package/build/spec/LayoutComponent.d.ts +16 -1
- package/build/zod/schemas.d.ts +2331 -1923
- package/build/zod/schemas.ts +19 -8
- package/package.json +2 -2
package/build/main.mjs
CHANGED
|
@@ -3951,10 +3951,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3951
3951
|
});
|
|
3952
3952
|
|
|
3953
3953
|
// src/zod/schemas.ts
|
|
3954
|
-
var
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3954
|
+
var jsonElementSchema = z.lazy(
|
|
3955
|
+
() => z.union([
|
|
3956
|
+
z.string(),
|
|
3957
|
+
z.number(),
|
|
3958
|
+
z.boolean(),
|
|
3959
|
+
z.record(jsonElementSchema),
|
|
3960
|
+
z.array(jsonElementSchema)
|
|
3961
|
+
]).nullable()
|
|
3962
|
+
);
|
|
3963
|
+
var externalSchema = z.object({
|
|
3964
|
+
url: z.string()
|
|
3965
|
+
});
|
|
3966
|
+
var stepErrorSchema = z.object({
|
|
3967
|
+
error: z.string().optional(),
|
|
3968
|
+
validation: jsonElementSchema.optional()
|
|
3958
3969
|
});
|
|
3959
3970
|
var httpMethodSchema = z.union([
|
|
3960
3971
|
z.literal("GET"),
|
|
@@ -3966,6 +3977,13 @@ var httpMethodSchema = z.union([
|
|
|
3966
3977
|
var iconNamedSchema = z.object({
|
|
3967
3978
|
name: z.string()
|
|
3968
3979
|
});
|
|
3980
|
+
var sizeSchema = z.union([
|
|
3981
|
+
z.literal("xs"),
|
|
3982
|
+
z.literal("sm"),
|
|
3983
|
+
z.literal("md"),
|
|
3984
|
+
z.literal("lg"),
|
|
3985
|
+
z.literal("xl")
|
|
3986
|
+
]);
|
|
3969
3987
|
var contextSchema = z.union([
|
|
3970
3988
|
z.literal("positive"),
|
|
3971
3989
|
z.literal("neutral"),
|
|
@@ -3979,21 +3997,6 @@ var contextSchema = z.union([
|
|
|
3979
3997
|
var iconTextSchema = z.object({
|
|
3980
3998
|
text: z.string()
|
|
3981
3999
|
});
|
|
3982
|
-
var sizeSchema = z.union([
|
|
3983
|
-
z.literal("xs"),
|
|
3984
|
-
z.literal("sm"),
|
|
3985
|
-
z.literal("md"),
|
|
3986
|
-
z.literal("lg"),
|
|
3987
|
-
z.literal("xl")
|
|
3988
|
-
]);
|
|
3989
|
-
var autocapitalizationTypeSchema = z.union([
|
|
3990
|
-
z.literal("none"),
|
|
3991
|
-
z.literal("characters"),
|
|
3992
|
-
z.literal("sentences"),
|
|
3993
|
-
z.literal("words")
|
|
3994
|
-
]);
|
|
3995
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3996
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
3997
4000
|
var autocompleteTokenSchema = z.union([
|
|
3998
4001
|
z.literal("on"),
|
|
3999
4002
|
z.literal("name"),
|
|
@@ -4059,31 +4062,18 @@ var autocompleteTokenSchema = z.union([
|
|
|
4059
4062
|
z.literal("fax"),
|
|
4060
4063
|
z.literal("pager")
|
|
4061
4064
|
]);
|
|
4062
|
-
var
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
var paragraphLayoutSchema = z.object({
|
|
4069
|
-
type: z.literal("paragraph"),
|
|
4070
|
-
text: z.string(),
|
|
4071
|
-
align: alignSchema.optional(),
|
|
4072
|
-
control: z.string().optional(),
|
|
4073
|
-
margin: sizeSchema.optional()
|
|
4074
|
-
});
|
|
4075
|
-
var dividerLayoutSchema = z.object({
|
|
4076
|
-
type: z.literal("divider"),
|
|
4077
|
-
control: z.string().optional(),
|
|
4078
|
-
margin: sizeSchema.optional()
|
|
4079
|
-
});
|
|
4080
|
-
var listLayoutStatusSchema = z.union([
|
|
4081
|
-
z.literal("warning"),
|
|
4082
|
-
z.literal("neutral"),
|
|
4083
|
-
z.literal("positive")
|
|
4065
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4066
|
+
var autocapitalizationTypeSchema = z.union([
|
|
4067
|
+
z.literal("none"),
|
|
4068
|
+
z.literal("characters"),
|
|
4069
|
+
z.literal("sentences"),
|
|
4070
|
+
z.literal("words")
|
|
4084
4071
|
]);
|
|
4085
|
-
var
|
|
4086
|
-
|
|
4072
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
4073
|
+
var imageSchema = z.object({
|
|
4074
|
+
text: z.string().optional(),
|
|
4075
|
+
url: z.string(),
|
|
4076
|
+
accessibilityDescription: z.string().optional()
|
|
4087
4077
|
});
|
|
4088
4078
|
var imageLayoutSchema = z.object({
|
|
4089
4079
|
type: z.literal("image"),
|
|
@@ -4099,12 +4089,13 @@ var statusListLayoutStatusSchema = z.union([
|
|
|
4099
4089
|
z.literal("pending"),
|
|
4100
4090
|
z.literal("done")
|
|
4101
4091
|
]);
|
|
4102
|
-
var
|
|
4092
|
+
var headingLayoutSchema = z.object({
|
|
4093
|
+
type: z.literal("heading"),
|
|
4103
4094
|
text: z.string(),
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4095
|
+
size: sizeSchema.optional(),
|
|
4096
|
+
align: alignSchema.optional(),
|
|
4097
|
+
control: z.string().optional(),
|
|
4098
|
+
margin: sizeSchema.optional()
|
|
4108
4099
|
});
|
|
4109
4100
|
var searchLayoutSchema = z.object({
|
|
4110
4101
|
type: z.literal("search"),
|
|
@@ -4116,13 +4107,48 @@ var searchLayoutSchema = z.object({
|
|
|
4116
4107
|
control: z.string().optional(),
|
|
4117
4108
|
margin: sizeSchema.optional()
|
|
4118
4109
|
});
|
|
4119
|
-
var
|
|
4120
|
-
|
|
4121
|
-
|
|
4110
|
+
var modalLayoutTriggerSchema = z.object({
|
|
4111
|
+
title: z.string()
|
|
4112
|
+
});
|
|
4113
|
+
var helpSchema = z.object({
|
|
4114
|
+
markdown: z.string()
|
|
4115
|
+
});
|
|
4116
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4117
|
+
z.literal("none"),
|
|
4118
|
+
z.literal("left"),
|
|
4119
|
+
z.literal("right")
|
|
4120
|
+
]);
|
|
4121
|
+
var instructionsLayoutItemSchema = z.object({
|
|
4122
|
+
text: z.string(),
|
|
4123
|
+
context: contextSchema
|
|
4124
|
+
});
|
|
4125
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
4126
|
+
$ref: z.string()
|
|
4127
|
+
});
|
|
4128
|
+
var listLayoutStatusSchema = z.union([
|
|
4129
|
+
z.literal("warning"),
|
|
4130
|
+
z.literal("neutral"),
|
|
4131
|
+
z.literal("positive")
|
|
4132
|
+
]);
|
|
4133
|
+
var instructionsLayoutSchema = z.object({
|
|
4134
|
+
type: z.literal("instructions"),
|
|
4135
|
+
title: z.string().optional(),
|
|
4136
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
4137
|
+
control: z.string().optional(),
|
|
4138
|
+
margin: sizeSchema.optional()
|
|
4139
|
+
});
|
|
4140
|
+
var paragraphLayoutSchema = z.object({
|
|
4141
|
+
type: z.literal("paragraph"),
|
|
4142
|
+
text: z.string(),
|
|
4122
4143
|
align: alignSchema.optional(),
|
|
4123
4144
|
control: z.string().optional(),
|
|
4124
4145
|
margin: sizeSchema.optional()
|
|
4125
4146
|
});
|
|
4147
|
+
var dividerLayoutSchema = z.object({
|
|
4148
|
+
type: z.literal("divider"),
|
|
4149
|
+
control: z.string().optional(),
|
|
4150
|
+
margin: sizeSchema.optional()
|
|
4151
|
+
});
|
|
4126
4152
|
var formLayoutSchema = z.object({
|
|
4127
4153
|
type: z.literal("form"),
|
|
4128
4154
|
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
@@ -4130,14 +4156,19 @@ var formLayoutSchema = z.object({
|
|
|
4130
4156
|
control: z.string().optional(),
|
|
4131
4157
|
margin: sizeSchema.optional()
|
|
4132
4158
|
});
|
|
4133
|
-
var
|
|
4134
|
-
type: z.literal("
|
|
4135
|
-
|
|
4136
|
-
size: sizeSchema.optional(),
|
|
4159
|
+
var infoLayoutSchema = z.object({
|
|
4160
|
+
type: z.literal("info"),
|
|
4161
|
+
markdown: z.string(),
|
|
4137
4162
|
align: alignSchema.optional(),
|
|
4138
4163
|
control: z.string().optional(),
|
|
4139
4164
|
margin: sizeSchema.optional()
|
|
4140
4165
|
});
|
|
4166
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
4167
|
+
type: z.literal("loading-indicator"),
|
|
4168
|
+
size: sizeSchema.optional(),
|
|
4169
|
+
control: z.string().optional(),
|
|
4170
|
+
margin: sizeSchema.optional()
|
|
4171
|
+
});
|
|
4141
4172
|
var markdownLayoutSchema = z.object({
|
|
4142
4173
|
type: z.literal("markdown"),
|
|
4143
4174
|
content: z.string(),
|
|
@@ -4145,35 +4176,11 @@ var markdownLayoutSchema = z.object({
|
|
|
4145
4176
|
control: z.string().optional(),
|
|
4146
4177
|
margin: sizeSchema.optional()
|
|
4147
4178
|
});
|
|
4148
|
-
var
|
|
4149
|
-
z.
|
|
4150
|
-
z.
|
|
4151
|
-
z.
|
|
4152
|
-
|
|
4153
|
-
var helpSchema = z.object({
|
|
4154
|
-
markdown: z.string()
|
|
4155
|
-
});
|
|
4156
|
-
var searchSearchRequestSchema = z.object({
|
|
4157
|
-
url: z.string(),
|
|
4158
|
-
method: httpMethodSchema,
|
|
4159
|
-
param: z.string(),
|
|
4160
|
-
query: z.string()
|
|
4161
|
-
});
|
|
4162
|
-
var jsonElementSchema = z.lazy(
|
|
4163
|
-
() => z.union([
|
|
4164
|
-
z.string(),
|
|
4165
|
-
z.number(),
|
|
4166
|
-
z.boolean(),
|
|
4167
|
-
z.record(jsonElementSchema),
|
|
4168
|
-
z.array(jsonElementSchema)
|
|
4169
|
-
]).nullable()
|
|
4170
|
-
);
|
|
4171
|
-
var externalSchema = z.object({
|
|
4172
|
-
url: z.string()
|
|
4173
|
-
});
|
|
4174
|
-
var stepErrorSchema = z.object({
|
|
4175
|
-
error: z.string().optional(),
|
|
4176
|
-
validation: jsonElementSchema.optional()
|
|
4179
|
+
var summaryProviderSchema = z.object({
|
|
4180
|
+
providesTitle: z.boolean().optional(),
|
|
4181
|
+
providesDescription: z.boolean().optional(),
|
|
4182
|
+
providesIcon: z.boolean().optional(),
|
|
4183
|
+
providesImage: z.boolean().optional()
|
|
4177
4184
|
});
|
|
4178
4185
|
var stringSchemaFormatSchema = z.union([
|
|
4179
4186
|
z.literal("date"),
|
|
@@ -4183,6 +4190,12 @@ var stringSchemaFormatSchema = z.union([
|
|
|
4183
4190
|
z.literal("phone-number"),
|
|
4184
4191
|
z.literal("base64url")
|
|
4185
4192
|
]);
|
|
4193
|
+
var validateAsyncSchema = z.object({
|
|
4194
|
+
param: z.string(),
|
|
4195
|
+
method: httpMethodSchema,
|
|
4196
|
+
url: z.string()
|
|
4197
|
+
});
|
|
4198
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4186
4199
|
var summarySummariserSchema = z.object({
|
|
4187
4200
|
defaultTitle: z.string().optional(),
|
|
4188
4201
|
defaultDescription: z.string().optional(),
|
|
@@ -4193,24 +4206,27 @@ var summarySummariserSchema = z.object({
|
|
|
4193
4206
|
providesIcon: z.boolean().optional(),
|
|
4194
4207
|
providesImage: z.boolean().optional()
|
|
4195
4208
|
});
|
|
4196
|
-
var
|
|
4197
|
-
|
|
4209
|
+
var searchSearchRequestSchema = z.object({
|
|
4210
|
+
url: z.string(),
|
|
4198
4211
|
method: httpMethodSchema,
|
|
4199
|
-
|
|
4212
|
+
param: z.string(),
|
|
4213
|
+
query: z.string()
|
|
4200
4214
|
});
|
|
4201
|
-
var
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4215
|
+
var searchResultSearchSchema = z.object({
|
|
4216
|
+
type: z.literal("search"),
|
|
4217
|
+
title: z.string(),
|
|
4218
|
+
description: z.string().optional(),
|
|
4219
|
+
icon: iconSchema.optional(),
|
|
4220
|
+
image: imageLayoutSchema.optional(),
|
|
4221
|
+
value: searchSearchRequestSchema
|
|
4222
|
+
});
|
|
4223
|
+
var errorResponseBodySchema = z.object({
|
|
4224
|
+
refreshFormUrl: z.string().optional(),
|
|
4225
|
+
analytics: z.record(z.string()).optional(),
|
|
4226
|
+
error: z.string().optional(),
|
|
4227
|
+
validation: jsonElementSchema.optional(),
|
|
4228
|
+
refreshUrl: z.string().optional()
|
|
4206
4229
|
});
|
|
4207
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4208
|
-
var navigationStackBehaviorSchema = z.union([
|
|
4209
|
-
z.literal("default"),
|
|
4210
|
-
z.literal("remove-previous"),
|
|
4211
|
-
z.literal("remove-all"),
|
|
4212
|
-
z.literal("replace-current")
|
|
4213
|
-
]);
|
|
4214
4230
|
var actionTypeSchema = z.union([
|
|
4215
4231
|
z.literal("primary"),
|
|
4216
4232
|
z.literal("secondary"),
|
|
@@ -4218,6 +4234,12 @@ var actionTypeSchema = z.union([
|
|
|
4218
4234
|
z.literal("positive"),
|
|
4219
4235
|
z.literal("negative")
|
|
4220
4236
|
]);
|
|
4237
|
+
var navigationStackBehaviorSchema = z.union([
|
|
4238
|
+
z.literal("default"),
|
|
4239
|
+
z.literal("remove-previous"),
|
|
4240
|
+
z.literal("remove-all"),
|
|
4241
|
+
z.literal("replace-current")
|
|
4242
|
+
]);
|
|
4221
4243
|
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4222
4244
|
var linkSchema = z.object({
|
|
4223
4245
|
url: z.string()
|
|
@@ -4237,11 +4259,19 @@ var actionSchema = z.object({
|
|
|
4237
4259
|
timeout: z.number().optional(),
|
|
4238
4260
|
skipValidation: z.boolean().optional()
|
|
4239
4261
|
});
|
|
4262
|
+
var linkHandlerSchema = z.object({
|
|
4263
|
+
regexPattern: z.string(),
|
|
4264
|
+
action: actionSchema
|
|
4265
|
+
});
|
|
4240
4266
|
var listLayoutItemSchema = z.object({
|
|
4241
|
-
title: z.string(),
|
|
4242
4267
|
description: z.string().optional(),
|
|
4243
|
-
|
|
4244
|
-
|
|
4268
|
+
status: listLayoutStatusSchema.optional(),
|
|
4269
|
+
icon: iconSchema.optional(),
|
|
4270
|
+
image: imageSchema.optional(),
|
|
4271
|
+
title: z.string(),
|
|
4272
|
+
subtitle: z.string().optional(),
|
|
4273
|
+
value: z.string().optional(),
|
|
4274
|
+
subvalue: z.string().optional()
|
|
4245
4275
|
});
|
|
4246
4276
|
var decisionLayoutOptionSchema = z.object({
|
|
4247
4277
|
action: actionSchema,
|
|
@@ -4251,17 +4281,27 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
4251
4281
|
icon: iconSchema.optional(),
|
|
4252
4282
|
image: imageLayoutSchema.optional()
|
|
4253
4283
|
});
|
|
4254
|
-
var instructionsLayoutSchema = z.object({
|
|
4255
|
-
type: z.literal("instructions"),
|
|
4256
|
-
title: z.string().optional(),
|
|
4257
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
4258
|
-
control: z.string().optional(),
|
|
4259
|
-
margin: sizeSchema.optional()
|
|
4260
|
-
});
|
|
4261
4284
|
var behaviorSchema = z.object({
|
|
4262
4285
|
action: actionSchema.optional(),
|
|
4263
4286
|
link: linkSchema.optional()
|
|
4264
4287
|
});
|
|
4288
|
+
var reviewLayoutFieldSchema = z.object({
|
|
4289
|
+
label: z.string(),
|
|
4290
|
+
value: z.string(),
|
|
4291
|
+
rawValue: z.string().optional(),
|
|
4292
|
+
help: helpSchema.optional()
|
|
4293
|
+
});
|
|
4294
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4295
|
+
title: z.string(),
|
|
4296
|
+
action: actionSchema
|
|
4297
|
+
});
|
|
4298
|
+
var decisionLayoutSchema = z.object({
|
|
4299
|
+
type: z.literal("decision"),
|
|
4300
|
+
title: z.string().optional(),
|
|
4301
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4302
|
+
control: z.string().optional(),
|
|
4303
|
+
margin: sizeSchema.optional()
|
|
4304
|
+
});
|
|
4265
4305
|
var buttonLayoutSchema = z.object({
|
|
4266
4306
|
type: z.literal("button"),
|
|
4267
4307
|
size: sizeSchema.optional(),
|
|
@@ -4273,20 +4313,6 @@ var buttonLayoutSchema = z.object({
|
|
|
4273
4313
|
control: z.string().optional(),
|
|
4274
4314
|
margin: sizeSchema.optional()
|
|
4275
4315
|
});
|
|
4276
|
-
var reviewLayoutFieldSchema = z.object({
|
|
4277
|
-
label: z.string(),
|
|
4278
|
-
value: z.string(),
|
|
4279
|
-
rawValue: z.string().optional(),
|
|
4280
|
-
help: helpSchema.optional()
|
|
4281
|
-
});
|
|
4282
|
-
var searchResultSearchSchema = z.object({
|
|
4283
|
-
type: z.literal("search"),
|
|
4284
|
-
title: z.string(),
|
|
4285
|
-
description: z.string().optional(),
|
|
4286
|
-
icon: iconSchema.optional(),
|
|
4287
|
-
image: imageLayoutSchema.optional(),
|
|
4288
|
-
value: searchSearchRequestSchema
|
|
4289
|
-
});
|
|
4290
4316
|
var searchResultActionSchema = z.object({
|
|
4291
4317
|
type: z.literal("action"),
|
|
4292
4318
|
title: z.string(),
|
|
@@ -4295,20 +4321,10 @@ var searchResultActionSchema = z.object({
|
|
|
4295
4321
|
image: imageLayoutSchema.optional(),
|
|
4296
4322
|
value: actionSchema
|
|
4297
4323
|
});
|
|
4324
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4298
4325
|
var actionResponseBodySchema = z.object({
|
|
4299
4326
|
action: actionSchema
|
|
4300
4327
|
});
|
|
4301
|
-
var errorResponseBodySchema = z.object({
|
|
4302
|
-
refreshFormUrl: z.string().optional(),
|
|
4303
|
-
analytics: z.record(z.string()).optional(),
|
|
4304
|
-
error: z.string().optional(),
|
|
4305
|
-
validation: jsonElementSchema.optional(),
|
|
4306
|
-
refreshUrl: z.string().optional()
|
|
4307
|
-
});
|
|
4308
|
-
var linkHandlerSchema = z.object({
|
|
4309
|
-
regexPattern: z.string(),
|
|
4310
|
-
action: actionSchema
|
|
4311
|
-
});
|
|
4312
4328
|
var pollingOnErrorSchema = z.object({
|
|
4313
4329
|
action: actionSchema
|
|
4314
4330
|
});
|
|
@@ -4316,29 +4332,29 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4316
4332
|
title: z.string().optional(),
|
|
4317
4333
|
action: actionSchema
|
|
4318
4334
|
});
|
|
4319
|
-
var
|
|
4335
|
+
var pollingSchema = z.object({
|
|
4336
|
+
url: z.string(),
|
|
4337
|
+
interval: z.number().optional(),
|
|
4338
|
+
delay: z.number().optional(),
|
|
4339
|
+
timeout: z.number().optional(),
|
|
4340
|
+
maxAttempts: z.number(),
|
|
4341
|
+
onError: pollingOnErrorSchema
|
|
4342
|
+
});
|
|
4343
|
+
var navigationSchema = z.object({
|
|
4344
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
4345
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
4346
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4347
|
+
});
|
|
4348
|
+
var listLayoutCallToActionSchema = z.object({
|
|
4320
4349
|
title: z.string(),
|
|
4321
|
-
|
|
4350
|
+
accessibilityDescription: z.string().optional(),
|
|
4351
|
+
behavior: behaviorSchema
|
|
4322
4352
|
});
|
|
4323
4353
|
var alertLayoutCallToActionSchema = z.object({
|
|
4324
4354
|
title: z.string(),
|
|
4325
4355
|
accessibilityDescription: z.string().optional(),
|
|
4326
4356
|
behavior: behaviorSchema
|
|
4327
4357
|
});
|
|
4328
|
-
var listLayoutSchema = z.object({
|
|
4329
|
-
type: z.literal("list"),
|
|
4330
|
-
items: z.array(listLayoutItemSchema),
|
|
4331
|
-
title: z.string().optional(),
|
|
4332
|
-
control: z.string().optional(),
|
|
4333
|
-
margin: sizeSchema.optional()
|
|
4334
|
-
});
|
|
4335
|
-
var decisionLayoutSchema = z.object({
|
|
4336
|
-
type: z.literal("decision"),
|
|
4337
|
-
title: z.string().optional(),
|
|
4338
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
4339
|
-
control: z.string().optional(),
|
|
4340
|
-
margin: sizeSchema.optional()
|
|
4341
|
-
});
|
|
4342
4358
|
var itemCallToActionSchema = z.object({
|
|
4343
4359
|
title: z.string(),
|
|
4344
4360
|
accessibilityDescription: z.string().optional(),
|
|
@@ -4354,19 +4370,23 @@ var reviewLayoutSchema = z.object({
|
|
|
4354
4370
|
control: z.string().optional(),
|
|
4355
4371
|
margin: sizeSchema.optional()
|
|
4356
4372
|
});
|
|
4357
|
-
var
|
|
4358
|
-
|
|
4359
|
-
url: z.string(),
|
|
4360
|
-
interval: z.number().optional(),
|
|
4361
|
-
delay: z.number().optional(),
|
|
4362
|
-
timeout: z.number().optional(),
|
|
4363
|
-
maxAttempts: z.number(),
|
|
4364
|
-
onError: pollingOnErrorSchema
|
|
4373
|
+
var searchResponseBodySchema = z.object({
|
|
4374
|
+
results: z.array(searchResultSchema)
|
|
4365
4375
|
});
|
|
4366
|
-
var
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4376
|
+
var statusListLayoutItemSchema = z.object({
|
|
4377
|
+
title: z.string(),
|
|
4378
|
+
description: z.string().optional(),
|
|
4379
|
+
icon: iconSchema,
|
|
4380
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
4381
|
+
callToAction: itemCallToActionSchema.optional()
|
|
4382
|
+
});
|
|
4383
|
+
var listLayoutSchema = z.object({
|
|
4384
|
+
type: z.literal("list"),
|
|
4385
|
+
title: z.string().optional(),
|
|
4386
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
4387
|
+
items: z.array(listLayoutItemSchema),
|
|
4388
|
+
control: z.string().optional(),
|
|
4389
|
+
margin: sizeSchema.optional()
|
|
4370
4390
|
});
|
|
4371
4391
|
var alertLayoutSchema = z.object({
|
|
4372
4392
|
type: z.literal("alert"),
|
|
@@ -4376,15 +4396,21 @@ var alertLayoutSchema = z.object({
|
|
|
4376
4396
|
margin: sizeSchema.optional(),
|
|
4377
4397
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4378
4398
|
});
|
|
4379
|
-
var
|
|
4380
|
-
|
|
4399
|
+
var constSchemaSchema = z.object({
|
|
4400
|
+
hidden: z.boolean().optional(),
|
|
4401
|
+
alert: alertLayoutSchema.optional(),
|
|
4402
|
+
control: z.string().optional(),
|
|
4403
|
+
promoted: z.boolean().optional(),
|
|
4404
|
+
$id: z.string().optional(),
|
|
4405
|
+
const: jsonElementSchema,
|
|
4406
|
+
title: z.string().optional(),
|
|
4381
4407
|
description: z.string().optional(),
|
|
4382
|
-
icon: iconSchema,
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4408
|
+
icon: iconSchema.optional(),
|
|
4409
|
+
image: imageSchema.optional(),
|
|
4410
|
+
keywords: z.array(z.string()).optional(),
|
|
4411
|
+
summary: summaryProviderSchema.optional(),
|
|
4412
|
+
analyticsId: z.string().optional(),
|
|
4413
|
+
disabled: z.boolean().optional()
|
|
4388
4414
|
});
|
|
4389
4415
|
var blobSchemaSchema = z.object({
|
|
4390
4416
|
type: z.literal("blob"),
|
|
@@ -4408,22 +4434,6 @@ var blobSchemaSchema = z.object({
|
|
|
4408
4434
|
source: uploadSourceSchema.optional(),
|
|
4409
4435
|
disabled: z.boolean().optional()
|
|
4410
4436
|
});
|
|
4411
|
-
var constSchemaSchema = z.object({
|
|
4412
|
-
hidden: z.boolean().optional(),
|
|
4413
|
-
alert: alertLayoutSchema.optional(),
|
|
4414
|
-
control: z.string().optional(),
|
|
4415
|
-
promoted: z.boolean().optional(),
|
|
4416
|
-
$id: z.string().optional(),
|
|
4417
|
-
const: jsonElementSchema,
|
|
4418
|
-
title: z.string().optional(),
|
|
4419
|
-
description: z.string().optional(),
|
|
4420
|
-
icon: iconSchema.optional(),
|
|
4421
|
-
image: imageSchema.optional(),
|
|
4422
|
-
keywords: z.array(z.string()).optional(),
|
|
4423
|
-
summary: summaryProviderSchema.optional(),
|
|
4424
|
-
analyticsId: z.string().optional(),
|
|
4425
|
-
disabled: z.boolean().optional()
|
|
4426
|
-
});
|
|
4427
4437
|
var statusListLayoutSchema = z.object({
|
|
4428
4438
|
type: z.literal("status-list"),
|
|
4429
4439
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -4431,6 +4441,41 @@ var statusListLayoutSchema = z.object({
|
|
|
4431
4441
|
control: z.string().optional(),
|
|
4432
4442
|
margin: sizeSchema.optional()
|
|
4433
4443
|
});
|
|
4444
|
+
var stepSchema = z.lazy(
|
|
4445
|
+
() => z.object({
|
|
4446
|
+
key: z.string().optional(),
|
|
4447
|
+
type: z.string().optional(),
|
|
4448
|
+
actions: z.array(actionSchema).optional(),
|
|
4449
|
+
refreshFormUrl: z.string().optional(),
|
|
4450
|
+
id: z.string(),
|
|
4451
|
+
title: z.string(),
|
|
4452
|
+
schemas: z.array(schemaSchema),
|
|
4453
|
+
layout: z.array(layoutSchema),
|
|
4454
|
+
description: z.string().optional(),
|
|
4455
|
+
model: jsonElementSchema.optional(),
|
|
4456
|
+
external: externalSchema.optional(),
|
|
4457
|
+
polling: pollingSchema.optional(),
|
|
4458
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4459
|
+
analytics: z.record(z.string()).optional(),
|
|
4460
|
+
errors: stepErrorSchema.optional(),
|
|
4461
|
+
navigation: navigationSchema.optional(),
|
|
4462
|
+
refreshUrl: z.string().optional()
|
|
4463
|
+
})
|
|
4464
|
+
);
|
|
4465
|
+
var schemaSchema = z.lazy(
|
|
4466
|
+
() => z.union([
|
|
4467
|
+
allOfSchemaSchema,
|
|
4468
|
+
arraySchemaSchema,
|
|
4469
|
+
blobSchemaSchema,
|
|
4470
|
+
booleanSchemaSchema,
|
|
4471
|
+
constSchemaSchema,
|
|
4472
|
+
integerSchemaSchema,
|
|
4473
|
+
numberSchemaSchema,
|
|
4474
|
+
objectSchemaSchema,
|
|
4475
|
+
oneOfSchemaSchema,
|
|
4476
|
+
stringSchemaSchema
|
|
4477
|
+
])
|
|
4478
|
+
);
|
|
4434
4479
|
var layoutSchema = z.lazy(
|
|
4435
4480
|
() => z.union([
|
|
4436
4481
|
alertLayoutSchema,
|
|
@@ -4454,6 +4499,21 @@ var layoutSchema = z.lazy(
|
|
|
4454
4499
|
statusListLayoutSchema
|
|
4455
4500
|
])
|
|
4456
4501
|
);
|
|
4502
|
+
var modalLayoutContentSchema = z.lazy(
|
|
4503
|
+
() => z.object({
|
|
4504
|
+
title: z.string().optional(),
|
|
4505
|
+
components: z.array(layoutSchema)
|
|
4506
|
+
})
|
|
4507
|
+
);
|
|
4508
|
+
var modalLayoutSchema = z.lazy(
|
|
4509
|
+
() => z.object({
|
|
4510
|
+
type: z.literal("modal"),
|
|
4511
|
+
control: z.string().optional(),
|
|
4512
|
+
margin: sizeSchema.optional(),
|
|
4513
|
+
trigger: modalLayoutTriggerSchema,
|
|
4514
|
+
content: modalLayoutContentSchema
|
|
4515
|
+
})
|
|
4516
|
+
);
|
|
4457
4517
|
var boxLayoutSchema = z.lazy(
|
|
4458
4518
|
() => z.object({
|
|
4459
4519
|
type: z.literal("box"),
|
|
@@ -4474,62 +4534,42 @@ var columnsLayoutSchema = z.lazy(
|
|
|
4474
4534
|
margin: sizeSchema.optional()
|
|
4475
4535
|
})
|
|
4476
4536
|
);
|
|
4477
|
-
var
|
|
4478
|
-
() => z.
|
|
4479
|
-
type: z.literal("modal"),
|
|
4480
|
-
control: z.string().optional(),
|
|
4481
|
-
margin: sizeSchema.optional(),
|
|
4482
|
-
trigger: modalLayoutTriggerSchema,
|
|
4483
|
-
content: modalLayoutContentSchema
|
|
4484
|
-
})
|
|
4537
|
+
var arraySchemaSchema = z.lazy(
|
|
4538
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4485
4539
|
);
|
|
4486
|
-
var
|
|
4540
|
+
var arraySchemaListSchema = z.lazy(
|
|
4487
4541
|
() => z.object({
|
|
4542
|
+
type: z.literal("array"),
|
|
4543
|
+
promoted: z.boolean().optional(),
|
|
4544
|
+
$id: z.string().optional(),
|
|
4545
|
+
items: schemaSchema,
|
|
4546
|
+
addItemTitle: z.string(),
|
|
4547
|
+
editItemTitle: z.string(),
|
|
4548
|
+
minItems: z.number().optional(),
|
|
4549
|
+
maxItems: z.number().optional(),
|
|
4550
|
+
placeholder: z.string().optional(),
|
|
4488
4551
|
title: z.string().optional(),
|
|
4489
|
-
components: z.array(layoutSchema)
|
|
4490
|
-
})
|
|
4491
|
-
);
|
|
4492
|
-
var stepSchema = z.lazy(
|
|
4493
|
-
() => z.object({
|
|
4494
|
-
key: z.string().optional(),
|
|
4495
|
-
type: z.string().optional(),
|
|
4496
|
-
actions: z.array(actionSchema).optional(),
|
|
4497
|
-
refreshFormUrl: z.string().optional(),
|
|
4498
|
-
id: z.string(),
|
|
4499
|
-
title: z.string(),
|
|
4500
|
-
schemas: z.array(schemaSchema),
|
|
4501
|
-
layout: z.array(layoutSchema),
|
|
4502
4552
|
description: z.string().optional(),
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4553
|
+
control: z.string().optional(),
|
|
4554
|
+
hidden: z.boolean().optional(),
|
|
4555
|
+
icon: iconSchema.optional(),
|
|
4556
|
+
image: imageSchema.optional(),
|
|
4557
|
+
keywords: z.array(z.string()).optional(),
|
|
4558
|
+
summary: summarySummariserSchema.optional(),
|
|
4559
|
+
analyticsId: z.string().optional(),
|
|
4560
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
4561
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
4562
|
+
alert: alertLayoutSchema.optional(),
|
|
4563
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4564
|
+
disabled: z.boolean().optional()
|
|
4511
4565
|
})
|
|
4512
4566
|
);
|
|
4513
|
-
var
|
|
4514
|
-
() => z.union([
|
|
4515
|
-
allOfSchemaSchema,
|
|
4516
|
-
arraySchemaSchema,
|
|
4517
|
-
blobSchemaSchema,
|
|
4518
|
-
booleanSchemaSchema,
|
|
4519
|
-
constSchemaSchema,
|
|
4520
|
-
integerSchemaSchema,
|
|
4521
|
-
numberSchemaSchema,
|
|
4522
|
-
objectSchemaSchema,
|
|
4523
|
-
oneOfSchemaSchema,
|
|
4524
|
-
stringSchemaSchema
|
|
4525
|
-
])
|
|
4526
|
-
);
|
|
4527
|
-
var allOfSchemaSchema = z.lazy(
|
|
4567
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4528
4568
|
() => z.object({
|
|
4529
|
-
|
|
4569
|
+
type: z.literal("array"),
|
|
4530
4570
|
promoted: z.boolean().optional(),
|
|
4531
|
-
allOf: z.array(schemaSchema),
|
|
4532
4571
|
$id: z.string().optional(),
|
|
4572
|
+
items: z.array(schemaSchema),
|
|
4533
4573
|
title: z.string().optional(),
|
|
4534
4574
|
description: z.string().optional(),
|
|
4535
4575
|
control: z.string().optional(),
|
|
@@ -4539,56 +4579,63 @@ var allOfSchemaSchema = z.lazy(
|
|
|
4539
4579
|
keywords: z.array(z.string()).optional(),
|
|
4540
4580
|
summary: summaryProviderSchema.optional(),
|
|
4541
4581
|
analyticsId: z.string().optional(),
|
|
4582
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
4583
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
4542
4584
|
alert: alertLayoutSchema.optional()
|
|
4543
4585
|
})
|
|
4544
4586
|
);
|
|
4545
|
-
var
|
|
4546
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
4547
|
-
);
|
|
4548
|
-
var booleanSchemaSchema = z.lazy(
|
|
4587
|
+
var oneOfSchemaSchema = z.lazy(
|
|
4549
4588
|
() => z.object({
|
|
4550
|
-
type: z.literal("boolean"),
|
|
4551
4589
|
autofillProvider: z.string().optional(),
|
|
4552
4590
|
promoted: z.boolean().optional(),
|
|
4553
4591
|
refreshFormOnChange: z.boolean().optional(),
|
|
4554
4592
|
refreshUrl: z.string().optional(),
|
|
4555
4593
|
refreshFormUrl: z.string().optional(),
|
|
4594
|
+
promotion: jsonElementSchema.optional(),
|
|
4595
|
+
oneOf: z.array(schemaSchema),
|
|
4596
|
+
placeholder: z.string().optional(),
|
|
4556
4597
|
$id: z.string().optional(),
|
|
4557
4598
|
title: z.string().optional(),
|
|
4558
4599
|
description: z.string().optional(),
|
|
4559
4600
|
control: z.string().optional(),
|
|
4560
|
-
default:
|
|
4601
|
+
default: jsonElementSchema.optional(),
|
|
4561
4602
|
hidden: z.boolean().optional(),
|
|
4562
|
-
disabled: z.boolean().optional(),
|
|
4563
4603
|
icon: iconSchema.optional(),
|
|
4564
4604
|
image: imageSchema.optional(),
|
|
4565
4605
|
keywords: z.array(z.string()).optional(),
|
|
4566
4606
|
summary: summaryProviderSchema.optional(),
|
|
4567
4607
|
analyticsId: z.string().optional(),
|
|
4568
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
4569
4608
|
refreshStepOnChange: z.boolean().optional(),
|
|
4570
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
4571
4609
|
alert: alertLayoutSchema.optional(),
|
|
4610
|
+
help: helpSchema.optional(),
|
|
4611
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4572
4612
|
autofillKey: z.string().optional(),
|
|
4573
|
-
|
|
4613
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4614
|
+
disabled: z.boolean().optional()
|
|
4574
4615
|
})
|
|
4575
4616
|
);
|
|
4576
|
-
var
|
|
4617
|
+
var stringSchemaSchema = z.lazy(
|
|
4577
4618
|
() => z.object({
|
|
4578
|
-
type: z.literal("
|
|
4619
|
+
type: z.literal("string"),
|
|
4579
4620
|
autofillProvider: z.string().optional(),
|
|
4580
4621
|
promoted: z.boolean().optional(),
|
|
4581
4622
|
refreshFormOnChange: z.boolean().optional(),
|
|
4582
4623
|
refreshUrl: z.string().optional(),
|
|
4583
4624
|
refreshFormUrl: z.string().optional(),
|
|
4625
|
+
format: stringSchemaFormatSchema.optional(),
|
|
4626
|
+
displayFormat: z.string().optional(),
|
|
4584
4627
|
placeholder: z.string().optional(),
|
|
4585
|
-
|
|
4586
|
-
|
|
4628
|
+
minLength: z.number().optional(),
|
|
4629
|
+
maxLength: z.number().optional(),
|
|
4630
|
+
minimum: z.string().optional(),
|
|
4631
|
+
maximum: z.string().optional(),
|
|
4632
|
+
pattern: z.string().optional(),
|
|
4633
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4587
4634
|
$id: z.string().optional(),
|
|
4588
4635
|
title: z.string().optional(),
|
|
4589
4636
|
description: z.string().optional(),
|
|
4590
4637
|
control: z.string().optional(),
|
|
4591
|
-
default: z.
|
|
4638
|
+
default: z.string().optional(),
|
|
4592
4639
|
hidden: z.boolean().optional(),
|
|
4593
4640
|
disabled: z.boolean().optional(),
|
|
4594
4641
|
icon: iconSchema.optional(),
|
|
@@ -4601,11 +4648,24 @@ var integerSchemaSchema = z.lazy(
|
|
|
4601
4648
|
validationAsync: validateAsyncSchema.optional(),
|
|
4602
4649
|
validationMessages: z.record(z.string()).optional(),
|
|
4603
4650
|
alert: alertLayoutSchema.optional(),
|
|
4651
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
4652
|
+
accepts: z.array(z.string()).optional(),
|
|
4653
|
+
maxSize: z.number().optional(),
|
|
4654
|
+
source: uploadSourceSchema.optional(),
|
|
4604
4655
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4605
4656
|
autofillKey: z.string().optional(),
|
|
4606
4657
|
help: helpSchema.optional()
|
|
4607
4658
|
})
|
|
4608
4659
|
);
|
|
4660
|
+
var persistAsyncSchema = z.lazy(
|
|
4661
|
+
() => z.object({
|
|
4662
|
+
param: z.string(),
|
|
4663
|
+
idProperty: z.string(),
|
|
4664
|
+
schema: schemaSchema,
|
|
4665
|
+
url: z.string(),
|
|
4666
|
+
method: httpMethodSchema
|
|
4667
|
+
})
|
|
4668
|
+
);
|
|
4609
4669
|
var numberSchemaSchema = z.lazy(
|
|
4610
4670
|
() => z.object({
|
|
4611
4671
|
type: z.literal("number"),
|
|
@@ -4639,15 +4699,11 @@ var numberSchemaSchema = z.lazy(
|
|
|
4639
4699
|
help: helpSchema.optional()
|
|
4640
4700
|
})
|
|
4641
4701
|
);
|
|
4642
|
-
var
|
|
4702
|
+
var allOfSchemaSchema = z.lazy(
|
|
4643
4703
|
() => z.object({
|
|
4644
|
-
type: z.literal("object"),
|
|
4645
4704
|
disabled: z.boolean().optional(),
|
|
4646
4705
|
promoted: z.boolean().optional(),
|
|
4647
|
-
|
|
4648
|
-
properties: z.record(schemaSchema),
|
|
4649
|
-
displayOrder: z.array(z.string()),
|
|
4650
|
-
required: z.array(z.string()).optional(),
|
|
4706
|
+
allOf: z.array(schemaSchema),
|
|
4651
4707
|
$id: z.string().optional(),
|
|
4652
4708
|
title: z.string().optional(),
|
|
4653
4709
|
description: z.string().optional(),
|
|
@@ -4661,58 +4717,41 @@ var objectSchemaSchema = z.lazy(
|
|
|
4661
4717
|
alert: alertLayoutSchema.optional()
|
|
4662
4718
|
})
|
|
4663
4719
|
);
|
|
4664
|
-
var
|
|
4720
|
+
var objectSchemaSchema = z.lazy(
|
|
4665
4721
|
() => z.object({
|
|
4666
|
-
|
|
4722
|
+
type: z.literal("object"),
|
|
4723
|
+
disabled: z.boolean().optional(),
|
|
4667
4724
|
promoted: z.boolean().optional(),
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
oneOf: z.array(schemaSchema),
|
|
4673
|
-
placeholder: z.string().optional(),
|
|
4725
|
+
help: helpSchema.optional(),
|
|
4726
|
+
properties: z.record(schemaSchema),
|
|
4727
|
+
displayOrder: z.array(z.string()),
|
|
4728
|
+
required: z.array(z.string()).optional(),
|
|
4674
4729
|
$id: z.string().optional(),
|
|
4675
4730
|
title: z.string().optional(),
|
|
4676
4731
|
description: z.string().optional(),
|
|
4677
4732
|
control: z.string().optional(),
|
|
4678
|
-
default: jsonElementSchema.optional(),
|
|
4679
4733
|
hidden: z.boolean().optional(),
|
|
4680
4734
|
icon: iconSchema.optional(),
|
|
4681
4735
|
image: imageSchema.optional(),
|
|
4682
4736
|
keywords: z.array(z.string()).optional(),
|
|
4683
4737
|
summary: summaryProviderSchema.optional(),
|
|
4684
4738
|
analyticsId: z.string().optional(),
|
|
4685
|
-
|
|
4686
|
-
alert: alertLayoutSchema.optional(),
|
|
4687
|
-
help: helpSchema.optional(),
|
|
4688
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4689
|
-
autofillKey: z.string().optional(),
|
|
4690
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4691
|
-
disabled: z.boolean().optional()
|
|
4739
|
+
alert: alertLayoutSchema.optional()
|
|
4692
4740
|
})
|
|
4693
4741
|
);
|
|
4694
|
-
var
|
|
4742
|
+
var booleanSchemaSchema = z.lazy(
|
|
4695
4743
|
() => z.object({
|
|
4696
|
-
type: z.literal("
|
|
4744
|
+
type: z.literal("boolean"),
|
|
4697
4745
|
autofillProvider: z.string().optional(),
|
|
4698
4746
|
promoted: z.boolean().optional(),
|
|
4699
4747
|
refreshFormOnChange: z.boolean().optional(),
|
|
4700
4748
|
refreshUrl: z.string().optional(),
|
|
4701
4749
|
refreshFormUrl: z.string().optional(),
|
|
4702
|
-
format: stringSchemaFormatSchema.optional(),
|
|
4703
|
-
displayFormat: z.string().optional(),
|
|
4704
|
-
placeholder: z.string().optional(),
|
|
4705
|
-
minLength: z.number().optional(),
|
|
4706
|
-
maxLength: z.number().optional(),
|
|
4707
|
-
minimum: z.string().optional(),
|
|
4708
|
-
maximum: z.string().optional(),
|
|
4709
|
-
pattern: z.string().optional(),
|
|
4710
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
4711
4750
|
$id: z.string().optional(),
|
|
4712
4751
|
title: z.string().optional(),
|
|
4713
4752
|
description: z.string().optional(),
|
|
4714
4753
|
control: z.string().optional(),
|
|
4715
|
-
default: z.
|
|
4754
|
+
default: z.boolean().optional(),
|
|
4716
4755
|
hidden: z.boolean().optional(),
|
|
4717
4756
|
disabled: z.boolean().optional(),
|
|
4718
4757
|
icon: iconSchema.optional(),
|
|
@@ -4723,71 +4762,42 @@ var stringSchemaSchema = z.lazy(
|
|
|
4723
4762
|
persistAsync: persistAsyncSchema.optional(),
|
|
4724
4763
|
refreshStepOnChange: z.boolean().optional(),
|
|
4725
4764
|
validationAsync: validateAsyncSchema.optional(),
|
|
4726
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4727
4765
|
alert: alertLayoutSchema.optional(),
|
|
4728
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
4729
|
-
accepts: z.array(z.string()).optional(),
|
|
4730
|
-
maxSize: z.number().optional(),
|
|
4731
|
-
source: uploadSourceSchema.optional(),
|
|
4732
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4733
4766
|
autofillKey: z.string().optional(),
|
|
4734
4767
|
help: helpSchema.optional()
|
|
4735
4768
|
})
|
|
4736
4769
|
);
|
|
4737
|
-
var
|
|
4770
|
+
var integerSchemaSchema = z.lazy(
|
|
4738
4771
|
() => z.object({
|
|
4739
|
-
type: z.literal("
|
|
4772
|
+
type: z.literal("integer"),
|
|
4773
|
+
autofillProvider: z.string().optional(),
|
|
4740
4774
|
promoted: z.boolean().optional(),
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
editItemTitle: z.string(),
|
|
4745
|
-
minItems: z.number().optional(),
|
|
4746
|
-
maxItems: z.number().optional(),
|
|
4775
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
4776
|
+
refreshUrl: z.string().optional(),
|
|
4777
|
+
refreshFormUrl: z.string().optional(),
|
|
4747
4778
|
placeholder: z.string().optional(),
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
control: z.string().optional(),
|
|
4751
|
-
hidden: z.boolean().optional(),
|
|
4752
|
-
icon: iconSchema.optional(),
|
|
4753
|
-
image: imageSchema.optional(),
|
|
4754
|
-
keywords: z.array(z.string()).optional(),
|
|
4755
|
-
summary: summarySummariserSchema.optional(),
|
|
4756
|
-
analyticsId: z.string().optional(),
|
|
4757
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
4758
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
4759
|
-
alert: alertLayoutSchema.optional(),
|
|
4760
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4761
|
-
disabled: z.boolean().optional()
|
|
4762
|
-
})
|
|
4763
|
-
);
|
|
4764
|
-
var persistAsyncSchema = z.lazy(
|
|
4765
|
-
() => z.object({
|
|
4766
|
-
param: z.string(),
|
|
4767
|
-
idProperty: z.string(),
|
|
4768
|
-
schema: schemaSchema,
|
|
4769
|
-
url: z.string(),
|
|
4770
|
-
method: httpMethodSchema
|
|
4771
|
-
})
|
|
4772
|
-
);
|
|
4773
|
-
var arraySchemaTupleSchema = z.lazy(
|
|
4774
|
-
() => z.object({
|
|
4775
|
-
type: z.literal("array"),
|
|
4776
|
-
promoted: z.boolean().optional(),
|
|
4779
|
+
minimum: z.number().optional(),
|
|
4780
|
+
maximum: z.number().optional(),
|
|
4777
4781
|
$id: z.string().optional(),
|
|
4778
|
-
items: z.array(schemaSchema),
|
|
4779
4782
|
title: z.string().optional(),
|
|
4780
4783
|
description: z.string().optional(),
|
|
4781
4784
|
control: z.string().optional(),
|
|
4785
|
+
default: z.number().optional(),
|
|
4782
4786
|
hidden: z.boolean().optional(),
|
|
4787
|
+
disabled: z.boolean().optional(),
|
|
4783
4788
|
icon: iconSchema.optional(),
|
|
4784
4789
|
image: imageSchema.optional(),
|
|
4785
4790
|
keywords: z.array(z.string()).optional(),
|
|
4786
4791
|
summary: summaryProviderSchema.optional(),
|
|
4787
4792
|
analyticsId: z.string().optional(),
|
|
4788
4793
|
persistAsync: persistAsyncSchema.optional(),
|
|
4794
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
4789
4795
|
validationAsync: validateAsyncSchema.optional(),
|
|
4790
|
-
|
|
4796
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4797
|
+
alert: alertLayoutSchema.optional(),
|
|
4798
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
4799
|
+
autofillKey: z.string().optional(),
|
|
4800
|
+
help: helpSchema.optional()
|
|
4791
4801
|
})
|
|
4792
4802
|
);
|
|
4793
4803
|
|