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