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