@wise/dynamic-flow-types 2.22.2-experimental-bundle-analysis-0f13856 → 2.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +282 -282
- package/build/main.min.js +1 -1
- package/build/main.mjs +282 -282
- package/build/zod/schemas.d.ts +2302 -2302
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -3847,13 +3847,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3847
3847
|
});
|
|
3848
3848
|
|
|
3849
3849
|
// src/zod/schemas.ts
|
|
3850
|
-
var
|
|
3851
|
-
z.
|
|
3852
|
-
z.
|
|
3853
|
-
z.
|
|
3854
|
-
|
|
3855
|
-
|
|
3850
|
+
var imageSchema = z.object({
|
|
3851
|
+
text: z.string().optional(),
|
|
3852
|
+
url: z.string(),
|
|
3853
|
+
accessibilityDescription: z.string().optional()
|
|
3854
|
+
});
|
|
3855
|
+
var httpMethodSchema = z.union([
|
|
3856
|
+
z.literal("GET"),
|
|
3857
|
+
z.literal("POST"),
|
|
3858
|
+
z.literal("PUT"),
|
|
3859
|
+
z.literal("PATCH"),
|
|
3860
|
+
z.literal("DELETE")
|
|
3856
3861
|
]);
|
|
3862
|
+
var iconNamedSchema = z.object({
|
|
3863
|
+
name: z.string()
|
|
3864
|
+
});
|
|
3857
3865
|
var contextSchema = z.union([
|
|
3858
3866
|
z.literal("positive"),
|
|
3859
3867
|
z.literal("neutral"),
|
|
@@ -3864,107 +3872,18 @@ var contextSchema = z.union([
|
|
|
3864
3872
|
z.literal("info"),
|
|
3865
3873
|
z.literal("primary")
|
|
3866
3874
|
]);
|
|
3867
|
-
var
|
|
3868
|
-
z.
|
|
3869
|
-
z.literal("left"),
|
|
3870
|
-
z.literal("right")
|
|
3871
|
-
]);
|
|
3872
|
-
var statusListLayoutStatusSchema = z.union([
|
|
3873
|
-
z.literal("not-done"),
|
|
3874
|
-
z.literal("pending"),
|
|
3875
|
-
z.literal("done")
|
|
3876
|
-
]);
|
|
3877
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3878
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
3879
|
-
$ref: z.string()
|
|
3880
|
-
});
|
|
3881
|
-
var modalLayoutTriggerSchema = z.object({
|
|
3882
|
-
title: z.string()
|
|
3883
|
-
});
|
|
3884
|
-
var httpMethodSchema = z.union([
|
|
3885
|
-
z.literal("GET"),
|
|
3886
|
-
z.literal("POST"),
|
|
3887
|
-
z.literal("PUT"),
|
|
3888
|
-
z.literal("PATCH"),
|
|
3889
|
-
z.literal("DELETE")
|
|
3890
|
-
]);
|
|
3891
|
-
var dividerLayoutSchema = z.object({
|
|
3892
|
-
type: z.literal("divider"),
|
|
3893
|
-
control: z.string().optional(),
|
|
3894
|
-
margin: sizeSchema.optional()
|
|
3875
|
+
var iconTextSchema = z.object({
|
|
3876
|
+
text: z.string()
|
|
3895
3877
|
});
|
|
3896
|
-
var
|
|
3897
|
-
z.literal("
|
|
3898
|
-
z.literal("
|
|
3899
|
-
z.literal("
|
|
3878
|
+
var sizeSchema = z.union([
|
|
3879
|
+
z.literal("xs"),
|
|
3880
|
+
z.literal("sm"),
|
|
3881
|
+
z.literal("md"),
|
|
3882
|
+
z.literal("lg"),
|
|
3883
|
+
z.literal("xl")
|
|
3900
3884
|
]);
|
|
3901
|
-
var
|
|
3902
|
-
|
|
3903
|
-
text: z.string(),
|
|
3904
|
-
size: sizeSchema.optional(),
|
|
3905
|
-
align: alignSchema.optional(),
|
|
3906
|
-
control: z.string().optional(),
|
|
3907
|
-
margin: sizeSchema.optional()
|
|
3908
|
-
});
|
|
3909
|
-
var formLayoutSchema = z.object({
|
|
3910
|
-
type: z.literal("form"),
|
|
3911
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
3912
|
-
schemaId: z.string(),
|
|
3913
|
-
control: z.string().optional(),
|
|
3914
|
-
margin: sizeSchema.optional()
|
|
3915
|
-
});
|
|
3916
|
-
var imageLayoutSchema = z.object({
|
|
3917
|
-
type: z.literal("image"),
|
|
3918
|
-
text: z.string().optional(),
|
|
3919
|
-
url: z.string(),
|
|
3920
|
-
size: sizeSchema.optional(),
|
|
3921
|
-
accessibilityDescription: z.string().optional(),
|
|
3922
|
-
control: z.string().optional(),
|
|
3923
|
-
margin: sizeSchema.optional()
|
|
3924
|
-
});
|
|
3925
|
-
var infoLayoutSchema = z.object({
|
|
3926
|
-
type: z.literal("info"),
|
|
3927
|
-
markdown: z.string(),
|
|
3928
|
-
align: alignSchema.optional(),
|
|
3929
|
-
control: z.string().optional(),
|
|
3930
|
-
margin: sizeSchema.optional()
|
|
3931
|
-
});
|
|
3932
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
3933
|
-
type: z.literal("loading-indicator"),
|
|
3934
|
-
size: sizeSchema.optional(),
|
|
3935
|
-
control: z.string().optional(),
|
|
3936
|
-
margin: sizeSchema.optional()
|
|
3937
|
-
});
|
|
3938
|
-
var paragraphLayoutSchema = z.object({
|
|
3939
|
-
type: z.literal("paragraph"),
|
|
3940
|
-
text: z.string(),
|
|
3941
|
-
align: alignSchema.optional(),
|
|
3942
|
-
control: z.string().optional(),
|
|
3943
|
-
margin: sizeSchema.optional()
|
|
3944
|
-
});
|
|
3945
|
-
var instructionsLayoutItemSchema = z.object({
|
|
3946
|
-
text: z.string(),
|
|
3947
|
-
context: contextSchema
|
|
3948
|
-
});
|
|
3949
|
-
var helpSchema = z.object({
|
|
3950
|
-
markdown: z.string()
|
|
3951
|
-
});
|
|
3952
|
-
var imageSchema = z.object({
|
|
3953
|
-
text: z.string().optional(),
|
|
3954
|
-
url: z.string(),
|
|
3955
|
-
accessibilityDescription: z.string().optional()
|
|
3956
|
-
});
|
|
3957
|
-
var summaryProviderSchema = z.object({
|
|
3958
|
-
providesTitle: z.boolean().optional(),
|
|
3959
|
-
providesDescription: z.boolean().optional(),
|
|
3960
|
-
providesIcon: z.boolean().optional(),
|
|
3961
|
-
providesImage: z.boolean().optional()
|
|
3962
|
-
});
|
|
3963
|
-
var validateAsyncSchema = z.object({
|
|
3964
|
-
param: z.string(),
|
|
3965
|
-
method: httpMethodSchema,
|
|
3966
|
-
url: z.string()
|
|
3967
|
-
});
|
|
3885
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3886
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
3968
3887
|
var autocompleteTokenSchema = z.union([
|
|
3969
3888
|
z.literal("on"),
|
|
3970
3889
|
z.literal("name"),
|
|
@@ -4030,14 +3949,106 @@ var autocompleteTokenSchema = z.union([
|
|
|
4030
3949
|
z.literal("fax"),
|
|
4031
3950
|
z.literal("pager")
|
|
4032
3951
|
]);
|
|
4033
|
-
var
|
|
4034
|
-
z.literal("
|
|
4035
|
-
|
|
4036
|
-
z.
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
3952
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
3953
|
+
type: z.literal("loading-indicator"),
|
|
3954
|
+
size: sizeSchema.optional(),
|
|
3955
|
+
control: z.string().optional(),
|
|
3956
|
+
margin: sizeSchema.optional()
|
|
3957
|
+
});
|
|
3958
|
+
var paragraphLayoutSchema = z.object({
|
|
3959
|
+
type: z.literal("paragraph"),
|
|
3960
|
+
text: z.string(),
|
|
3961
|
+
align: alignSchema.optional(),
|
|
3962
|
+
control: z.string().optional(),
|
|
3963
|
+
margin: sizeSchema.optional()
|
|
3964
|
+
});
|
|
3965
|
+
var dividerLayoutSchema = z.object({
|
|
3966
|
+
type: z.literal("divider"),
|
|
3967
|
+
control: z.string().optional(),
|
|
3968
|
+
margin: sizeSchema.optional()
|
|
3969
|
+
});
|
|
3970
|
+
var listLayoutStatusSchema = z.union([
|
|
3971
|
+
z.literal("warning"),
|
|
3972
|
+
z.literal("neutral"),
|
|
3973
|
+
z.literal("positive")
|
|
4040
3974
|
]);
|
|
3975
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
3976
|
+
$ref: z.string()
|
|
3977
|
+
});
|
|
3978
|
+
var imageLayoutSchema = z.object({
|
|
3979
|
+
type: z.literal("image"),
|
|
3980
|
+
text: z.string().optional(),
|
|
3981
|
+
url: z.string(),
|
|
3982
|
+
size: sizeSchema.optional(),
|
|
3983
|
+
accessibilityDescription: z.string().optional(),
|
|
3984
|
+
control: z.string().optional(),
|
|
3985
|
+
margin: sizeSchema.optional()
|
|
3986
|
+
});
|
|
3987
|
+
var statusListLayoutStatusSchema = z.union([
|
|
3988
|
+
z.literal("not-done"),
|
|
3989
|
+
z.literal("pending"),
|
|
3990
|
+
z.literal("done")
|
|
3991
|
+
]);
|
|
3992
|
+
var instructionsLayoutItemSchema = z.object({
|
|
3993
|
+
text: z.string(),
|
|
3994
|
+
context: contextSchema
|
|
3995
|
+
});
|
|
3996
|
+
var modalLayoutTriggerSchema = z.object({
|
|
3997
|
+
title: z.string()
|
|
3998
|
+
});
|
|
3999
|
+
var searchLayoutSchema = z.object({
|
|
4000
|
+
type: z.literal("search"),
|
|
4001
|
+
title: z.string(),
|
|
4002
|
+
method: httpMethodSchema,
|
|
4003
|
+
url: z.string(),
|
|
4004
|
+
param: z.string(),
|
|
4005
|
+
emptyMessage: z.string().optional(),
|
|
4006
|
+
control: z.string().optional(),
|
|
4007
|
+
margin: sizeSchema.optional()
|
|
4008
|
+
});
|
|
4009
|
+
var infoLayoutSchema = z.object({
|
|
4010
|
+
type: z.literal("info"),
|
|
4011
|
+
markdown: z.string(),
|
|
4012
|
+
align: alignSchema.optional(),
|
|
4013
|
+
control: z.string().optional(),
|
|
4014
|
+
margin: sizeSchema.optional()
|
|
4015
|
+
});
|
|
4016
|
+
var formLayoutSchema = z.object({
|
|
4017
|
+
type: z.literal("form"),
|
|
4018
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4019
|
+
schemaId: z.string(),
|
|
4020
|
+
control: z.string().optional(),
|
|
4021
|
+
margin: sizeSchema.optional()
|
|
4022
|
+
});
|
|
4023
|
+
var headingLayoutSchema = z.object({
|
|
4024
|
+
type: z.literal("heading"),
|
|
4025
|
+
text: z.string(),
|
|
4026
|
+
size: sizeSchema.optional(),
|
|
4027
|
+
align: alignSchema.optional(),
|
|
4028
|
+
control: z.string().optional(),
|
|
4029
|
+
margin: sizeSchema.optional()
|
|
4030
|
+
});
|
|
4031
|
+
var markdownLayoutSchema = z.object({
|
|
4032
|
+
type: z.literal("markdown"),
|
|
4033
|
+
content: z.string(),
|
|
4034
|
+
align: alignSchema.optional(),
|
|
4035
|
+
control: z.string().optional(),
|
|
4036
|
+
margin: sizeSchema.optional()
|
|
4037
|
+
});
|
|
4038
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4039
|
+
z.literal("none"),
|
|
4040
|
+
z.literal("left"),
|
|
4041
|
+
z.literal("right")
|
|
4042
|
+
]);
|
|
4043
|
+
var helpSchema = z.object({
|
|
4044
|
+
markdown: z.string()
|
|
4045
|
+
});
|
|
4046
|
+
var searchSearchRequestSchema = z.object({
|
|
4047
|
+
url: z.string(),
|
|
4048
|
+
method: httpMethodSchema,
|
|
4049
|
+
param: z.string(),
|
|
4050
|
+
query: z.string()
|
|
4051
|
+
});
|
|
4041
4052
|
var jsonElementSchema = z.lazy(
|
|
4042
4053
|
() => z.union([
|
|
4043
4054
|
z.string(),
|
|
@@ -4047,7 +4058,6 @@ var jsonElementSchema = z.lazy(
|
|
|
4047
4058
|
z.array(jsonElementSchema)
|
|
4048
4059
|
]).nullable()
|
|
4049
4060
|
);
|
|
4050
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4051
4061
|
var externalSchema = z.object({
|
|
4052
4062
|
url: z.string()
|
|
4053
4063
|
});
|
|
@@ -4055,28 +4065,42 @@ var stepErrorSchema = z.object({
|
|
|
4055
4065
|
error: z.string().optional(),
|
|
4056
4066
|
validation: jsonElementSchema.optional()
|
|
4057
4067
|
});
|
|
4058
|
-
var
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4068
|
+
var stringSchemaFormatSchema = z.union([
|
|
4069
|
+
z.literal("date"),
|
|
4070
|
+
z.literal("email"),
|
|
4071
|
+
z.literal("numeric"),
|
|
4072
|
+
z.literal("password"),
|
|
4073
|
+
z.literal("phone-number"),
|
|
4074
|
+
z.literal("base64url")
|
|
4075
|
+
]);
|
|
4076
|
+
var summarySummariserSchema = z.object({
|
|
4077
|
+
defaultTitle: z.string().optional(),
|
|
4078
|
+
defaultDescription: z.string().optional(),
|
|
4079
|
+
defaultIcon: iconSchema.optional(),
|
|
4080
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
4081
|
+
providesTitle: z.boolean().optional(),
|
|
4082
|
+
providesDescription: z.boolean().optional(),
|
|
4083
|
+
providesIcon: z.boolean().optional(),
|
|
4084
|
+
providesImage: z.boolean().optional()
|
|
4064
4085
|
});
|
|
4065
|
-
var
|
|
4066
|
-
url: z.string(),
|
|
4067
|
-
method: httpMethodSchema,
|
|
4086
|
+
var validateAsyncSchema = z.object({
|
|
4068
4087
|
param: z.string(),
|
|
4069
|
-
|
|
4088
|
+
method: httpMethodSchema,
|
|
4089
|
+
url: z.string()
|
|
4070
4090
|
});
|
|
4091
|
+
var summaryProviderSchema = z.object({
|
|
4092
|
+
providesTitle: z.boolean().optional(),
|
|
4093
|
+
providesDescription: z.boolean().optional(),
|
|
4094
|
+
providesIcon: z.boolean().optional(),
|
|
4095
|
+
providesImage: z.boolean().optional()
|
|
4096
|
+
});
|
|
4097
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4071
4098
|
var navigationStackBehaviorSchema = z.union([
|
|
4072
4099
|
z.literal("default"),
|
|
4073
4100
|
z.literal("remove-previous"),
|
|
4074
4101
|
z.literal("remove-all"),
|
|
4075
4102
|
z.literal("replace-current")
|
|
4076
4103
|
]);
|
|
4077
|
-
var linkSchema = z.object({
|
|
4078
|
-
url: z.string()
|
|
4079
|
-
});
|
|
4080
4104
|
var actionTypeSchema = z.union([
|
|
4081
4105
|
z.literal("primary"),
|
|
4082
4106
|
z.literal("secondary"),
|
|
@@ -4084,11 +4108,9 @@ var actionTypeSchema = z.union([
|
|
|
4084
4108
|
z.literal("positive"),
|
|
4085
4109
|
z.literal("negative")
|
|
4086
4110
|
]);
|
|
4087
|
-
var
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
var iconTextSchema = z.object({
|
|
4091
|
-
text: z.string()
|
|
4111
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4112
|
+
var linkSchema = z.object({
|
|
4113
|
+
url: z.string()
|
|
4092
4114
|
});
|
|
4093
4115
|
var actionSchema = z.object({
|
|
4094
4116
|
title: z.string().optional(),
|
|
@@ -4105,26 +4127,25 @@ var actionSchema = z.object({
|
|
|
4105
4127
|
timeout: z.number().optional(),
|
|
4106
4128
|
skipValidation: z.boolean().optional()
|
|
4107
4129
|
});
|
|
4108
|
-
var
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
margin: sizeSchema.optional()
|
|
4130
|
+
var listLayoutItemSchema = z.object({
|
|
4131
|
+
title: z.string(),
|
|
4132
|
+
description: z.string().optional(),
|
|
4133
|
+
icon: iconSchema,
|
|
4134
|
+
status: listLayoutStatusSchema.optional()
|
|
4114
4135
|
});
|
|
4115
|
-
var
|
|
4116
|
-
|
|
4136
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4137
|
+
action: actionSchema,
|
|
4117
4138
|
title: z.string(),
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
control: z.string().optional(),
|
|
4123
|
-
margin: sizeSchema.optional()
|
|
4139
|
+
description: z.string().optional(),
|
|
4140
|
+
disabled: z.boolean().optional(),
|
|
4141
|
+
icon: iconSchema.optional(),
|
|
4142
|
+
image: imageLayoutSchema.optional()
|
|
4124
4143
|
});
|
|
4125
|
-
var
|
|
4144
|
+
var statusListLayoutItemSchema = z.object({
|
|
4126
4145
|
title: z.string(),
|
|
4127
|
-
|
|
4146
|
+
description: z.string().optional(),
|
|
4147
|
+
icon: iconSchema,
|
|
4148
|
+
status: statusListLayoutStatusSchema.optional()
|
|
4128
4149
|
});
|
|
4129
4150
|
var instructionsLayoutSchema = z.object({
|
|
4130
4151
|
type: z.literal("instructions"),
|
|
@@ -4133,39 +4154,26 @@ var instructionsLayoutSchema = z.object({
|
|
|
4133
4154
|
control: z.string().optional(),
|
|
4134
4155
|
margin: sizeSchema.optional()
|
|
4135
4156
|
});
|
|
4136
|
-
var
|
|
4157
|
+
var buttonLayoutSchema = z.object({
|
|
4158
|
+
type: z.literal("button"),
|
|
4159
|
+
size: sizeSchema.optional(),
|
|
4160
|
+
title: z.string().optional(),
|
|
4161
|
+
action: actionSchema,
|
|
4162
|
+
context: contextSchema.optional(),
|
|
4163
|
+
disabled: z.boolean().optional(),
|
|
4164
|
+
pinOrder: z.number().optional(),
|
|
4165
|
+
control: z.string().optional(),
|
|
4166
|
+
margin: sizeSchema.optional()
|
|
4167
|
+
});
|
|
4137
4168
|
var reviewLayoutFieldSchema = z.object({
|
|
4138
4169
|
label: z.string(),
|
|
4139
4170
|
value: z.string(),
|
|
4140
4171
|
help: helpSchema.optional()
|
|
4141
4172
|
});
|
|
4142
|
-
var statusListLayoutItemSchema = z.object({
|
|
4143
|
-
title: z.string(),
|
|
4144
|
-
description: z.string().optional(),
|
|
4145
|
-
icon: iconSchema,
|
|
4146
|
-
status: statusListLayoutStatusSchema.optional()
|
|
4147
|
-
});
|
|
4148
4173
|
var behaviorSchema = z.object({
|
|
4149
4174
|
action: actionSchema.optional(),
|
|
4150
4175
|
link: linkSchema.optional()
|
|
4151
4176
|
});
|
|
4152
|
-
var summarySummariserSchema = z.object({
|
|
4153
|
-
defaultTitle: z.string().optional(),
|
|
4154
|
-
defaultDescription: z.string().optional(),
|
|
4155
|
-
defaultIcon: iconSchema.optional(),
|
|
4156
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
4157
|
-
providesTitle: z.boolean().optional(),
|
|
4158
|
-
providesDescription: z.boolean().optional(),
|
|
4159
|
-
providesIcon: z.boolean().optional(),
|
|
4160
|
-
providesImage: z.boolean().optional()
|
|
4161
|
-
});
|
|
4162
|
-
var linkHandlerSchema = z.object({
|
|
4163
|
-
regexPattern: z.string(),
|
|
4164
|
-
action: actionSchema
|
|
4165
|
-
});
|
|
4166
|
-
var actionResponseBodySchema = z.object({
|
|
4167
|
-
action: actionSchema
|
|
4168
|
-
});
|
|
4169
4177
|
var searchResultSearchSchema = z.object({
|
|
4170
4178
|
type: z.literal("search"),
|
|
4171
4179
|
title: z.string(),
|
|
@@ -4182,6 +4190,20 @@ var searchResultActionSchema = z.object({
|
|
|
4182
4190
|
image: imageLayoutSchema.optional(),
|
|
4183
4191
|
value: actionSchema
|
|
4184
4192
|
});
|
|
4193
|
+
var actionResponseBodySchema = z.object({
|
|
4194
|
+
action: actionSchema
|
|
4195
|
+
});
|
|
4196
|
+
var errorResponseBodySchema = z.object({
|
|
4197
|
+
refreshFormUrl: z.string().optional(),
|
|
4198
|
+
analytics: z.record(z.string()).optional(),
|
|
4199
|
+
error: z.string().optional(),
|
|
4200
|
+
validation: jsonElementSchema.optional(),
|
|
4201
|
+
refreshUrl: z.string().optional()
|
|
4202
|
+
});
|
|
4203
|
+
var linkHandlerSchema = z.object({
|
|
4204
|
+
regexPattern: z.string(),
|
|
4205
|
+
action: actionSchema
|
|
4206
|
+
});
|
|
4185
4207
|
var pollingOnErrorSchema = z.object({
|
|
4186
4208
|
action: actionSchema
|
|
4187
4209
|
});
|
|
@@ -4189,33 +4211,26 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4189
4211
|
title: z.string().optional(),
|
|
4190
4212
|
action: actionSchema
|
|
4191
4213
|
});
|
|
4192
|
-
var
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4214
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4215
|
+
title: z.string(),
|
|
4216
|
+
action: actionSchema
|
|
4217
|
+
});
|
|
4218
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4219
|
+
title: z.string(),
|
|
4220
|
+
accessibilityDescription: z.string().optional(),
|
|
4221
|
+
behavior: behaviorSchema
|
|
4222
|
+
});
|
|
4223
|
+
var listLayoutSchema = z.object({
|
|
4224
|
+
type: z.literal("list"),
|
|
4225
|
+
items: z.array(listLayoutItemSchema),
|
|
4196
4226
|
title: z.string().optional(),
|
|
4197
|
-
action: actionSchema,
|
|
4198
|
-
context: contextSchema.optional(),
|
|
4199
|
-
disabled: z.boolean().optional(),
|
|
4200
|
-
pinOrder: z.number().optional(),
|
|
4201
4227
|
control: z.string().optional(),
|
|
4202
4228
|
margin: sizeSchema.optional()
|
|
4203
4229
|
});
|
|
4204
|
-
var
|
|
4205
|
-
|
|
4206
|
-
title: z.string(),
|
|
4207
|
-
description: z.string().optional(),
|
|
4208
|
-
disabled: z.boolean().optional(),
|
|
4209
|
-
icon: iconSchema.optional(),
|
|
4210
|
-
image: imageLayoutSchema.optional()
|
|
4211
|
-
});
|
|
4212
|
-
var reviewLayoutSchema = z.object({
|
|
4213
|
-
type: z.literal("review"),
|
|
4214
|
-
orientation: z.string().optional(),
|
|
4215
|
-
action: actionSchema.optional(),
|
|
4216
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
4230
|
+
var decisionLayoutSchema = z.object({
|
|
4231
|
+
type: z.literal("decision"),
|
|
4217
4232
|
title: z.string().optional(),
|
|
4218
|
-
|
|
4233
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4219
4234
|
control: z.string().optional(),
|
|
4220
4235
|
margin: sizeSchema.optional()
|
|
4221
4236
|
});
|
|
@@ -4226,17 +4241,17 @@ var statusListLayoutSchema = z.object({
|
|
|
4226
4241
|
control: z.string().optional(),
|
|
4227
4242
|
margin: sizeSchema.optional()
|
|
4228
4243
|
});
|
|
4229
|
-
var
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
behavior: behaviorSchema
|
|
4244
|
+
var reviewLayoutSchema = z.object({
|
|
4245
|
+
type: z.literal("review"),
|
|
4246
|
+
orientation: z.string().optional(),
|
|
4247
|
+
action: actionSchema.optional(),
|
|
4248
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
4249
|
+
title: z.string().optional(),
|
|
4250
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4251
|
+
control: z.string().optional(),
|
|
4252
|
+
margin: sizeSchema.optional()
|
|
4239
4253
|
});
|
|
4254
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4240
4255
|
var pollingSchema = z.object({
|
|
4241
4256
|
url: z.string(),
|
|
4242
4257
|
interval: z.number().optional(),
|
|
@@ -4250,14 +4265,6 @@ var navigationSchema = z.object({
|
|
|
4250
4265
|
back: navigationBackBehaviorSchema.optional(),
|
|
4251
4266
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4252
4267
|
});
|
|
4253
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4254
|
-
var decisionLayoutSchema = z.object({
|
|
4255
|
-
type: z.literal("decision"),
|
|
4256
|
-
title: z.string().optional(),
|
|
4257
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
4258
|
-
control: z.string().optional(),
|
|
4259
|
-
margin: sizeSchema.optional()
|
|
4260
|
-
});
|
|
4261
4268
|
var alertLayoutSchema = z.object({
|
|
4262
4269
|
type: z.literal("alert"),
|
|
4263
4270
|
markdown: z.string(),
|
|
@@ -4266,12 +4273,8 @@ var alertLayoutSchema = z.object({
|
|
|
4266
4273
|
margin: sizeSchema.optional(),
|
|
4267
4274
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4268
4275
|
});
|
|
4269
|
-
var
|
|
4270
|
-
|
|
4271
|
-
items: z.array(listLayoutItemSchema),
|
|
4272
|
-
title: z.string().optional(),
|
|
4273
|
-
control: z.string().optional(),
|
|
4274
|
-
margin: sizeSchema.optional()
|
|
4276
|
+
var searchResponseBodySchema = z.object({
|
|
4277
|
+
results: z.array(searchResultSchema)
|
|
4275
4278
|
});
|
|
4276
4279
|
var blobSchemaSchema = z.object({
|
|
4277
4280
|
type: z.literal("blob"),
|
|
@@ -4311,19 +4314,6 @@ var constSchemaSchema = z.object({
|
|
|
4311
4314
|
analyticsId: z.string().optional(),
|
|
4312
4315
|
disabled: z.boolean().optional()
|
|
4313
4316
|
});
|
|
4314
|
-
var searchResponseBodySchema = z.object({
|
|
4315
|
-
results: z.array(searchResultSchema)
|
|
4316
|
-
});
|
|
4317
|
-
var columnsLayoutSchema = z.lazy(
|
|
4318
|
-
() => z.object({
|
|
4319
|
-
type: z.literal("columns"),
|
|
4320
|
-
left: z.array(layoutSchema),
|
|
4321
|
-
right: z.array(layoutSchema),
|
|
4322
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4323
|
-
control: z.string().optional(),
|
|
4324
|
-
margin: sizeSchema.optional()
|
|
4325
|
-
})
|
|
4326
|
-
);
|
|
4327
4317
|
var layoutSchema = z.lazy(
|
|
4328
4318
|
() => z.union([
|
|
4329
4319
|
alertLayoutSchema,
|
|
@@ -4347,6 +4337,26 @@ var layoutSchema = z.lazy(
|
|
|
4347
4337
|
statusListLayoutSchema
|
|
4348
4338
|
])
|
|
4349
4339
|
);
|
|
4340
|
+
var boxLayoutSchema = z.lazy(
|
|
4341
|
+
() => z.object({
|
|
4342
|
+
type: z.literal("box"),
|
|
4343
|
+
components: z.array(layoutSchema),
|
|
4344
|
+
width: sizeSchema.optional(),
|
|
4345
|
+
border: z.boolean().optional(),
|
|
4346
|
+
control: z.string().optional(),
|
|
4347
|
+
margin: sizeSchema.optional()
|
|
4348
|
+
})
|
|
4349
|
+
);
|
|
4350
|
+
var columnsLayoutSchema = z.lazy(
|
|
4351
|
+
() => z.object({
|
|
4352
|
+
type: z.literal("columns"),
|
|
4353
|
+
left: z.array(layoutSchema),
|
|
4354
|
+
right: z.array(layoutSchema),
|
|
4355
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4356
|
+
control: z.string().optional(),
|
|
4357
|
+
margin: sizeSchema.optional()
|
|
4358
|
+
})
|
|
4359
|
+
);
|
|
4350
4360
|
var modalLayoutSchema = z.lazy(
|
|
4351
4361
|
() => z.object({
|
|
4352
4362
|
type: z.literal("modal"),
|
|
@@ -4362,14 +4372,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4362
4372
|
components: z.array(layoutSchema)
|
|
4363
4373
|
})
|
|
4364
4374
|
);
|
|
4365
|
-
var
|
|
4375
|
+
var stepSchema = z.lazy(
|
|
4366
4376
|
() => z.object({
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4377
|
+
key: z.string().optional(),
|
|
4378
|
+
type: z.string().optional(),
|
|
4379
|
+
actions: z.array(actionSchema).optional(),
|
|
4380
|
+
refreshFormUrl: z.string().optional(),
|
|
4381
|
+
id: z.string(),
|
|
4382
|
+
title: z.string(),
|
|
4383
|
+
schemas: z.array(schemaSchema),
|
|
4384
|
+
layout: z.array(layoutSchema),
|
|
4385
|
+
description: z.string().optional(),
|
|
4386
|
+
model: jsonElementSchema.optional(),
|
|
4387
|
+
external: externalSchema.optional(),
|
|
4388
|
+
polling: pollingSchema.optional(),
|
|
4389
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4390
|
+
analytics: z.record(z.string()).optional(),
|
|
4391
|
+
errors: stepErrorSchema.optional(),
|
|
4392
|
+
navigation: navigationSchema.optional(),
|
|
4393
|
+
refreshUrl: z.string().optional()
|
|
4373
4394
|
})
|
|
4374
4395
|
);
|
|
4375
4396
|
var schemaSchema = z.lazy(
|
|
@@ -4595,21 +4616,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
4595
4616
|
help: helpSchema.optional()
|
|
4596
4617
|
})
|
|
4597
4618
|
);
|
|
4598
|
-
var
|
|
4599
|
-
() => z.object({
|
|
4600
|
-
param: z.string(),
|
|
4601
|
-
idProperty: z.string(),
|
|
4602
|
-
schema: schemaSchema,
|
|
4603
|
-
url: z.string(),
|
|
4604
|
-
method: httpMethodSchema
|
|
4605
|
-
})
|
|
4606
|
-
);
|
|
4607
|
-
var arraySchemaTupleSchema = z.lazy(
|
|
4619
|
+
var arraySchemaListSchema = z.lazy(
|
|
4608
4620
|
() => z.object({
|
|
4609
4621
|
type: z.literal("array"),
|
|
4610
4622
|
promoted: z.boolean().optional(),
|
|
4611
4623
|
$id: z.string().optional(),
|
|
4612
|
-
items:
|
|
4624
|
+
items: schemaSchema,
|
|
4625
|
+
addItemTitle: z.string(),
|
|
4626
|
+
editItemTitle: z.string(),
|
|
4627
|
+
minItems: z.number().optional(),
|
|
4628
|
+
maxItems: z.number().optional(),
|
|
4629
|
+
placeholder: z.string().optional(),
|
|
4613
4630
|
title: z.string().optional(),
|
|
4614
4631
|
description: z.string().optional(),
|
|
4615
4632
|
control: z.string().optional(),
|
|
@@ -4617,24 +4634,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4617
4634
|
icon: iconSchema.optional(),
|
|
4618
4635
|
image: imageSchema.optional(),
|
|
4619
4636
|
keywords: z.array(z.string()).optional(),
|
|
4620
|
-
summary:
|
|
4637
|
+
summary: summarySummariserSchema.optional(),
|
|
4621
4638
|
analyticsId: z.string().optional(),
|
|
4622
4639
|
persistAsync: persistAsyncSchema.optional(),
|
|
4623
4640
|
validationAsync: validateAsyncSchema.optional(),
|
|
4624
|
-
alert: alertLayoutSchema.optional()
|
|
4641
|
+
alert: alertLayoutSchema.optional(),
|
|
4642
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4643
|
+
disabled: z.boolean().optional()
|
|
4625
4644
|
})
|
|
4626
4645
|
);
|
|
4627
|
-
var
|
|
4646
|
+
var persistAsyncSchema = z.lazy(
|
|
4647
|
+
() => z.object({
|
|
4648
|
+
param: z.string(),
|
|
4649
|
+
idProperty: z.string(),
|
|
4650
|
+
schema: schemaSchema,
|
|
4651
|
+
url: z.string(),
|
|
4652
|
+
method: httpMethodSchema
|
|
4653
|
+
})
|
|
4654
|
+
);
|
|
4655
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4628
4656
|
() => z.object({
|
|
4629
4657
|
type: z.literal("array"),
|
|
4630
4658
|
promoted: z.boolean().optional(),
|
|
4631
4659
|
$id: z.string().optional(),
|
|
4632
|
-
items: schemaSchema,
|
|
4633
|
-
addItemTitle: z.string(),
|
|
4634
|
-
editItemTitle: z.string(),
|
|
4635
|
-
minItems: z.number().optional(),
|
|
4636
|
-
maxItems: z.number().optional(),
|
|
4637
|
-
placeholder: z.string().optional(),
|
|
4660
|
+
items: z.array(schemaSchema),
|
|
4638
4661
|
title: z.string().optional(),
|
|
4639
4662
|
description: z.string().optional(),
|
|
4640
4663
|
control: z.string().optional(),
|
|
@@ -4642,34 +4665,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4642
4665
|
icon: iconSchema.optional(),
|
|
4643
4666
|
image: imageSchema.optional(),
|
|
4644
4667
|
keywords: z.array(z.string()).optional(),
|
|
4645
|
-
summary:
|
|
4668
|
+
summary: summaryProviderSchema.optional(),
|
|
4646
4669
|
analyticsId: z.string().optional(),
|
|
4647
4670
|
persistAsync: persistAsyncSchema.optional(),
|
|
4648
4671
|
validationAsync: validateAsyncSchema.optional(),
|
|
4649
|
-
alert: alertLayoutSchema.optional()
|
|
4650
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4651
|
-
disabled: z.boolean().optional()
|
|
4652
|
-
})
|
|
4653
|
-
);
|
|
4654
|
-
var stepSchema = z.lazy(
|
|
4655
|
-
() => z.object({
|
|
4656
|
-
key: z.string().optional(),
|
|
4657
|
-
type: z.string().optional(),
|
|
4658
|
-
actions: z.array(actionSchema).optional(),
|
|
4659
|
-
refreshFormUrl: z.string().optional(),
|
|
4660
|
-
id: z.string(),
|
|
4661
|
-
title: z.string(),
|
|
4662
|
-
schemas: z.array(schemaSchema),
|
|
4663
|
-
layout: z.array(layoutSchema),
|
|
4664
|
-
description: z.string().optional(),
|
|
4665
|
-
model: jsonElementSchema.optional(),
|
|
4666
|
-
external: externalSchema.optional(),
|
|
4667
|
-
polling: pollingSchema.optional(),
|
|
4668
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4669
|
-
analytics: z.record(z.string()).optional(),
|
|
4670
|
-
errors: stepErrorSchema.optional(),
|
|
4671
|
-
navigation: navigationSchema.optional(),
|
|
4672
|
-
refreshUrl: z.string().optional()
|
|
4672
|
+
alert: alertLayoutSchema.optional()
|
|
4673
4673
|
})
|
|
4674
4674
|
);
|
|
4675
4675
|
|