@wise/dynamic-flow-types 2.17.0-experimental-9ab778d → 2.17.0
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 +293 -293
- package/build/main.min.js +1 -1
- package/build/main.mjs +293 -293
- package/build/zod/schemas.d.ts +1818 -1818
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -3828,13 +3828,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3828
3828
|
});
|
|
3829
3829
|
|
|
3830
3830
|
// src/zod/schemas.ts
|
|
3831
|
-
var
|
|
3832
|
-
z.
|
|
3833
|
-
z.
|
|
3834
|
-
z.
|
|
3835
|
-
|
|
3836
|
-
|
|
3831
|
+
var imageSchema = z.object({
|
|
3832
|
+
text: z.string().optional(),
|
|
3833
|
+
url: z.string(),
|
|
3834
|
+
accessibilityDescription: z.string().optional()
|
|
3835
|
+
});
|
|
3836
|
+
var httpMethodSchema = z.union([
|
|
3837
|
+
z.literal("GET"),
|
|
3838
|
+
z.literal("POST"),
|
|
3839
|
+
z.literal("PUT"),
|
|
3840
|
+
z.literal("PATCH"),
|
|
3841
|
+
z.literal("DELETE")
|
|
3837
3842
|
]);
|
|
3843
|
+
var iconNamedSchema = z.object({
|
|
3844
|
+
name: z.string()
|
|
3845
|
+
});
|
|
3838
3846
|
var contextSchema = z.union([
|
|
3839
3847
|
z.literal("positive"),
|
|
3840
3848
|
z.literal("neutral"),
|
|
@@ -3845,114 +3853,18 @@ var contextSchema = z.union([
|
|
|
3845
3853
|
z.literal("info"),
|
|
3846
3854
|
z.literal("primary")
|
|
3847
3855
|
]);
|
|
3848
|
-
var
|
|
3849
|
-
z.
|
|
3850
|
-
z.literal("left"),
|
|
3851
|
-
z.literal("right")
|
|
3852
|
-
]);
|
|
3853
|
-
var statusListLayoutStatusSchema = z.union([
|
|
3854
|
-
z.literal("not-done"),
|
|
3855
|
-
z.literal("pending"),
|
|
3856
|
-
z.literal("done")
|
|
3857
|
-
]);
|
|
3858
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3859
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
3860
|
-
$ref: z.string()
|
|
3861
|
-
});
|
|
3862
|
-
var modalLayoutTriggerSchema = z.object({
|
|
3863
|
-
title: z.string()
|
|
3864
|
-
});
|
|
3865
|
-
var httpMethodSchema = z.union([
|
|
3866
|
-
z.literal("GET"),
|
|
3867
|
-
z.literal("POST"),
|
|
3868
|
-
z.literal("PUT"),
|
|
3869
|
-
z.literal("PATCH"),
|
|
3870
|
-
z.literal("DELETE")
|
|
3871
|
-
]);
|
|
3872
|
-
var dividerLayoutSchema = z.object({
|
|
3873
|
-
type: z.literal("divider"),
|
|
3874
|
-
control: z.string().optional(),
|
|
3875
|
-
margin: sizeSchema.optional()
|
|
3856
|
+
var iconTextSchema = z.object({
|
|
3857
|
+
text: z.string()
|
|
3876
3858
|
});
|
|
3877
|
-
var
|
|
3878
|
-
z.literal("
|
|
3879
|
-
z.literal("
|
|
3880
|
-
z.literal("
|
|
3859
|
+
var sizeSchema = z.union([
|
|
3860
|
+
z.literal("xs"),
|
|
3861
|
+
z.literal("sm"),
|
|
3862
|
+
z.literal("md"),
|
|
3863
|
+
z.literal("lg"),
|
|
3864
|
+
z.literal("xl")
|
|
3881
3865
|
]);
|
|
3882
|
-
var
|
|
3883
|
-
|
|
3884
|
-
text: z.string(),
|
|
3885
|
-
size: sizeSchema.optional(),
|
|
3886
|
-
align: alignSchema.optional(),
|
|
3887
|
-
control: z.string().optional(),
|
|
3888
|
-
margin: sizeSchema.optional()
|
|
3889
|
-
});
|
|
3890
|
-
var alertLayoutSchema = z.object({
|
|
3891
|
-
type: z.literal("alert"),
|
|
3892
|
-
markdown: z.string(),
|
|
3893
|
-
context: contextSchema.optional(),
|
|
3894
|
-
control: z.string().optional(),
|
|
3895
|
-
margin: sizeSchema.optional()
|
|
3896
|
-
});
|
|
3897
|
-
var formLayoutSchema = z.object({
|
|
3898
|
-
type: z.literal("form"),
|
|
3899
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
3900
|
-
schemaId: z.string(),
|
|
3901
|
-
control: z.string().optional(),
|
|
3902
|
-
margin: sizeSchema.optional()
|
|
3903
|
-
});
|
|
3904
|
-
var imageLayoutSchema = z.object({
|
|
3905
|
-
type: z.literal("image"),
|
|
3906
|
-
text: z.string().optional(),
|
|
3907
|
-
url: z.string(),
|
|
3908
|
-
size: sizeSchema.optional(),
|
|
3909
|
-
accessibilityDescription: z.string().optional(),
|
|
3910
|
-
control: z.string().optional(),
|
|
3911
|
-
margin: sizeSchema.optional()
|
|
3912
|
-
});
|
|
3913
|
-
var infoLayoutSchema = z.object({
|
|
3914
|
-
type: z.literal("info"),
|
|
3915
|
-
markdown: z.string(),
|
|
3916
|
-
align: alignSchema.optional(),
|
|
3917
|
-
control: z.string().optional(),
|
|
3918
|
-
margin: sizeSchema.optional()
|
|
3919
|
-
});
|
|
3920
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
3921
|
-
type: z.literal("loading-indicator"),
|
|
3922
|
-
size: sizeSchema.optional(),
|
|
3923
|
-
control: z.string().optional(),
|
|
3924
|
-
margin: sizeSchema.optional()
|
|
3925
|
-
});
|
|
3926
|
-
var paragraphLayoutSchema = z.object({
|
|
3927
|
-
type: z.literal("paragraph"),
|
|
3928
|
-
text: z.string(),
|
|
3929
|
-
align: alignSchema.optional(),
|
|
3930
|
-
control: z.string().optional(),
|
|
3931
|
-
margin: sizeSchema.optional()
|
|
3932
|
-
});
|
|
3933
|
-
var instructionsLayoutItemSchema = z.object({
|
|
3934
|
-
text: z.string(),
|
|
3935
|
-
context: contextSchema
|
|
3936
|
-
});
|
|
3937
|
-
var helpSchema = z.object({
|
|
3938
|
-
markdown: z.string()
|
|
3939
|
-
});
|
|
3940
|
-
var imageSchema = z.object({
|
|
3941
|
-
text: z.string().optional(),
|
|
3942
|
-
url: z.string(),
|
|
3943
|
-
accessibilityDescription: z.string().optional()
|
|
3944
|
-
});
|
|
3945
|
-
var summaryProviderSchema = z.object({
|
|
3946
|
-
providesTitle: z.boolean().optional(),
|
|
3947
|
-
providesDescription: z.boolean().optional(),
|
|
3948
|
-
providesIcon: z.boolean().optional(),
|
|
3949
|
-
providesImage: z.boolean().optional()
|
|
3950
|
-
});
|
|
3951
|
-
var validateAsyncSchema = z.object({
|
|
3952
|
-
param: z.string(),
|
|
3953
|
-
method: httpMethodSchema,
|
|
3954
|
-
url: z.string()
|
|
3955
|
-
});
|
|
3866
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3867
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
3956
3868
|
var autocompleteTokenSchema = z.union([
|
|
3957
3869
|
z.literal("on"),
|
|
3958
3870
|
z.literal("name"),
|
|
@@ -4018,14 +3930,113 @@ var autocompleteTokenSchema = z.union([
|
|
|
4018
3930
|
z.literal("fax"),
|
|
4019
3931
|
z.literal("pager")
|
|
4020
3932
|
]);
|
|
4021
|
-
var
|
|
4022
|
-
z.literal("
|
|
4023
|
-
|
|
4024
|
-
z.
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
3933
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
3934
|
+
type: z.literal("loading-indicator"),
|
|
3935
|
+
size: sizeSchema.optional(),
|
|
3936
|
+
control: z.string().optional(),
|
|
3937
|
+
margin: sizeSchema.optional()
|
|
3938
|
+
});
|
|
3939
|
+
var alertLayoutSchema = z.object({
|
|
3940
|
+
type: z.literal("alert"),
|
|
3941
|
+
markdown: z.string(),
|
|
3942
|
+
context: contextSchema.optional(),
|
|
3943
|
+
control: z.string().optional(),
|
|
3944
|
+
margin: sizeSchema.optional()
|
|
3945
|
+
});
|
|
3946
|
+
var paragraphLayoutSchema = z.object({
|
|
3947
|
+
type: z.literal("paragraph"),
|
|
3948
|
+
text: z.string(),
|
|
3949
|
+
align: alignSchema.optional(),
|
|
3950
|
+
control: z.string().optional(),
|
|
3951
|
+
margin: sizeSchema.optional()
|
|
3952
|
+
});
|
|
3953
|
+
var dividerLayoutSchema = z.object({
|
|
3954
|
+
type: z.literal("divider"),
|
|
3955
|
+
control: z.string().optional(),
|
|
3956
|
+
margin: sizeSchema.optional()
|
|
3957
|
+
});
|
|
3958
|
+
var listLayoutStatusSchema = z.union([
|
|
3959
|
+
z.literal("warning"),
|
|
3960
|
+
z.literal("neutral"),
|
|
3961
|
+
z.literal("positive")
|
|
3962
|
+
]);
|
|
3963
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
3964
|
+
$ref: z.string()
|
|
3965
|
+
});
|
|
3966
|
+
var imageLayoutSchema = z.object({
|
|
3967
|
+
type: z.literal("image"),
|
|
3968
|
+
text: z.string().optional(),
|
|
3969
|
+
url: z.string(),
|
|
3970
|
+
size: sizeSchema.optional(),
|
|
3971
|
+
accessibilityDescription: z.string().optional(),
|
|
3972
|
+
control: z.string().optional(),
|
|
3973
|
+
margin: sizeSchema.optional()
|
|
3974
|
+
});
|
|
3975
|
+
var statusListLayoutStatusSchema = z.union([
|
|
3976
|
+
z.literal("not-done"),
|
|
3977
|
+
z.literal("pending"),
|
|
3978
|
+
z.literal("done")
|
|
4028
3979
|
]);
|
|
3980
|
+
var instructionsLayoutItemSchema = z.object({
|
|
3981
|
+
text: z.string(),
|
|
3982
|
+
context: contextSchema
|
|
3983
|
+
});
|
|
3984
|
+
var modalLayoutTriggerSchema = z.object({
|
|
3985
|
+
title: z.string()
|
|
3986
|
+
});
|
|
3987
|
+
var searchLayoutSchema = z.object({
|
|
3988
|
+
type: z.literal("search"),
|
|
3989
|
+
title: z.string(),
|
|
3990
|
+
method: httpMethodSchema,
|
|
3991
|
+
url: z.string(),
|
|
3992
|
+
param: z.string(),
|
|
3993
|
+
emptyMessage: z.string().optional(),
|
|
3994
|
+
control: z.string().optional(),
|
|
3995
|
+
margin: sizeSchema.optional()
|
|
3996
|
+
});
|
|
3997
|
+
var infoLayoutSchema = z.object({
|
|
3998
|
+
type: z.literal("info"),
|
|
3999
|
+
markdown: z.string(),
|
|
4000
|
+
align: alignSchema.optional(),
|
|
4001
|
+
control: z.string().optional(),
|
|
4002
|
+
margin: sizeSchema.optional()
|
|
4003
|
+
});
|
|
4004
|
+
var formLayoutSchema = z.object({
|
|
4005
|
+
type: z.literal("form"),
|
|
4006
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
4007
|
+
schemaId: z.string(),
|
|
4008
|
+
control: z.string().optional(),
|
|
4009
|
+
margin: sizeSchema.optional()
|
|
4010
|
+
});
|
|
4011
|
+
var headingLayoutSchema = z.object({
|
|
4012
|
+
type: z.literal("heading"),
|
|
4013
|
+
text: z.string(),
|
|
4014
|
+
size: sizeSchema.optional(),
|
|
4015
|
+
align: alignSchema.optional(),
|
|
4016
|
+
control: z.string().optional(),
|
|
4017
|
+
margin: sizeSchema.optional()
|
|
4018
|
+
});
|
|
4019
|
+
var markdownLayoutSchema = z.object({
|
|
4020
|
+
type: z.literal("markdown"),
|
|
4021
|
+
content: z.string(),
|
|
4022
|
+
align: alignSchema.optional(),
|
|
4023
|
+
control: z.string().optional(),
|
|
4024
|
+
margin: sizeSchema.optional()
|
|
4025
|
+
});
|
|
4026
|
+
var columnsLayoutBiasSchema = z.union([
|
|
4027
|
+
z.literal("none"),
|
|
4028
|
+
z.literal("left"),
|
|
4029
|
+
z.literal("right")
|
|
4030
|
+
]);
|
|
4031
|
+
var helpSchema = z.object({
|
|
4032
|
+
markdown: z.string()
|
|
4033
|
+
});
|
|
4034
|
+
var searchSearchRequestSchema = z.object({
|
|
4035
|
+
url: z.string(),
|
|
4036
|
+
method: httpMethodSchema,
|
|
4037
|
+
param: z.string(),
|
|
4038
|
+
query: z.string()
|
|
4039
|
+
});
|
|
4029
4040
|
var jsonElementSchema = z.lazy(
|
|
4030
4041
|
() => z.union([
|
|
4031
4042
|
z.string(),
|
|
@@ -4035,7 +4046,6 @@ var jsonElementSchema = z.lazy(
|
|
|
4035
4046
|
z.array(jsonElementSchema)
|
|
4036
4047
|
]).nullable()
|
|
4037
4048
|
);
|
|
4038
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4039
4049
|
var externalSchema = z.object({
|
|
4040
4050
|
url: z.string()
|
|
4041
4051
|
});
|
|
@@ -4043,19 +4053,36 @@ var stepErrorSchema = z.object({
|
|
|
4043
4053
|
error: z.string().optional(),
|
|
4044
4054
|
validation: jsonElementSchema.optional()
|
|
4045
4055
|
});
|
|
4046
|
-
var
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4056
|
+
var stringSchemaFormatSchema = z.union([
|
|
4057
|
+
z.literal("date"),
|
|
4058
|
+
z.literal("email"),
|
|
4059
|
+
z.literal("numeric"),
|
|
4060
|
+
z.literal("password"),
|
|
4061
|
+
z.literal("phone-number"),
|
|
4062
|
+
z.literal("base64url")
|
|
4063
|
+
]);
|
|
4064
|
+
var summarySummariserSchema = z.object({
|
|
4065
|
+
defaultTitle: z.string().optional(),
|
|
4066
|
+
defaultDescription: z.string().optional(),
|
|
4067
|
+
defaultIcon: iconSchema.optional(),
|
|
4068
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
4069
|
+
providesTitle: z.boolean().optional(),
|
|
4070
|
+
providesDescription: z.boolean().optional(),
|
|
4071
|
+
providesIcon: z.boolean().optional(),
|
|
4072
|
+
providesImage: z.boolean().optional()
|
|
4052
4073
|
});
|
|
4053
|
-
var
|
|
4054
|
-
url: z.string(),
|
|
4055
|
-
method: httpMethodSchema,
|
|
4074
|
+
var validateAsyncSchema = z.object({
|
|
4056
4075
|
param: z.string(),
|
|
4057
|
-
|
|
4076
|
+
method: httpMethodSchema,
|
|
4077
|
+
url: z.string()
|
|
4078
|
+
});
|
|
4079
|
+
var summaryProviderSchema = z.object({
|
|
4080
|
+
providesTitle: z.boolean().optional(),
|
|
4081
|
+
providesDescription: z.boolean().optional(),
|
|
4082
|
+
providesIcon: z.boolean().optional(),
|
|
4083
|
+
providesImage: z.boolean().optional()
|
|
4058
4084
|
});
|
|
4085
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4059
4086
|
var navigationStackBehaviorSchema = z.union([
|
|
4060
4087
|
z.literal("default"),
|
|
4061
4088
|
z.literal("remove-previous"),
|
|
@@ -4069,12 +4096,7 @@ var actionTypeSchema = z.union([
|
|
|
4069
4096
|
z.literal("positive"),
|
|
4070
4097
|
z.literal("negative")
|
|
4071
4098
|
]);
|
|
4072
|
-
var
|
|
4073
|
-
name: z.string()
|
|
4074
|
-
});
|
|
4075
|
-
var iconTextSchema = z.object({
|
|
4076
|
-
text: z.string()
|
|
4077
|
-
});
|
|
4099
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4078
4100
|
var actionSchema = z.object({
|
|
4079
4101
|
title: z.string().optional(),
|
|
4080
4102
|
type: actionTypeSchema.optional(),
|
|
@@ -4090,45 +4112,78 @@ var actionSchema = z.object({
|
|
|
4090
4112
|
timeout: z.number().optional(),
|
|
4091
4113
|
skipValidation: z.boolean().optional()
|
|
4092
4114
|
});
|
|
4093
|
-
var
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
margin: sizeSchema.optional()
|
|
4115
|
+
var listLayoutItemSchema = z.object({
|
|
4116
|
+
title: z.string(),
|
|
4117
|
+
description: z.string().optional(),
|
|
4118
|
+
icon: iconSchema,
|
|
4119
|
+
status: listLayoutStatusSchema.optional()
|
|
4099
4120
|
});
|
|
4100
|
-
var
|
|
4101
|
-
|
|
4121
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4122
|
+
action: actionSchema,
|
|
4102
4123
|
title: z.string(),
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
control: z.string().optional(),
|
|
4108
|
-
margin: sizeSchema.optional()
|
|
4124
|
+
description: z.string().optional(),
|
|
4125
|
+
disabled: z.boolean().optional(),
|
|
4126
|
+
icon: iconSchema.optional(),
|
|
4127
|
+
image: imageLayoutSchema.optional()
|
|
4109
4128
|
});
|
|
4110
|
-
var
|
|
4129
|
+
var statusListLayoutItemSchema = z.object({
|
|
4111
4130
|
title: z.string(),
|
|
4112
|
-
|
|
4131
|
+
description: z.string().optional(),
|
|
4132
|
+
icon: iconSchema,
|
|
4133
|
+
status: statusListLayoutStatusSchema.optional()
|
|
4113
4134
|
});
|
|
4114
4135
|
var instructionsLayoutSchema = z.object({
|
|
4115
4136
|
type: z.literal("instructions"),
|
|
4116
4137
|
title: z.string().optional(),
|
|
4117
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
4138
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
4139
|
+
control: z.string().optional(),
|
|
4140
|
+
margin: sizeSchema.optional()
|
|
4141
|
+
});
|
|
4142
|
+
var buttonLayoutSchema = z.object({
|
|
4143
|
+
type: z.literal("button"),
|
|
4144
|
+
size: sizeSchema.optional(),
|
|
4145
|
+
title: z.string().optional(),
|
|
4146
|
+
action: actionSchema,
|
|
4147
|
+
context: contextSchema.optional(),
|
|
4148
|
+
disabled: z.boolean().optional(),
|
|
4149
|
+
pinOrder: z.number().optional(),
|
|
4118
4150
|
control: z.string().optional(),
|
|
4119
4151
|
margin: sizeSchema.optional()
|
|
4120
4152
|
});
|
|
4121
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4122
4153
|
var reviewLayoutFieldSchema = z.object({
|
|
4123
4154
|
label: z.string(),
|
|
4124
4155
|
value: z.string(),
|
|
4125
4156
|
help: helpSchema.optional()
|
|
4126
4157
|
});
|
|
4127
|
-
var
|
|
4158
|
+
var searchResultSearchSchema = z.object({
|
|
4159
|
+
type: z.literal("search"),
|
|
4128
4160
|
title: z.string(),
|
|
4129
4161
|
description: z.string().optional(),
|
|
4130
|
-
icon: iconSchema,
|
|
4131
|
-
|
|
4162
|
+
icon: iconSchema.optional(),
|
|
4163
|
+
image: imageLayoutSchema.optional(),
|
|
4164
|
+
value: searchSearchRequestSchema
|
|
4165
|
+
});
|
|
4166
|
+
var searchResultActionSchema = z.object({
|
|
4167
|
+
type: z.literal("action"),
|
|
4168
|
+
title: z.string(),
|
|
4169
|
+
description: z.string().optional(),
|
|
4170
|
+
icon: iconSchema.optional(),
|
|
4171
|
+
image: imageLayoutSchema.optional(),
|
|
4172
|
+
value: actionSchema
|
|
4173
|
+
});
|
|
4174
|
+
var actionResponseBodySchema = z.object({
|
|
4175
|
+
action: actionSchema
|
|
4176
|
+
});
|
|
4177
|
+
var errorResponseBodySchema = z.object({
|
|
4178
|
+
refreshFormUrl: z.string().optional(),
|
|
4179
|
+
analytics: z.record(z.string()).optional(),
|
|
4180
|
+
error: z.string().optional(),
|
|
4181
|
+
validation: jsonElementSchema.optional(),
|
|
4182
|
+
refreshUrl: z.string().optional()
|
|
4183
|
+
});
|
|
4184
|
+
var linkHandlerSchema = z.object({
|
|
4185
|
+
regexPattern: z.string(),
|
|
4186
|
+
action: actionSchema
|
|
4132
4187
|
});
|
|
4133
4188
|
var blobSchemaSchema = z.object({
|
|
4134
4189
|
type: z.literal("blob"),
|
|
@@ -4168,65 +4223,37 @@ var constSchemaSchema = z.object({
|
|
|
4168
4223
|
analyticsId: z.string().optional(),
|
|
4169
4224
|
disabled: z.boolean().optional()
|
|
4170
4225
|
});
|
|
4171
|
-
var
|
|
4172
|
-
defaultTitle: z.string().optional(),
|
|
4173
|
-
defaultDescription: z.string().optional(),
|
|
4174
|
-
defaultIcon: iconSchema.optional(),
|
|
4175
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
4176
|
-
providesTitle: z.boolean().optional(),
|
|
4177
|
-
providesDescription: z.boolean().optional(),
|
|
4178
|
-
providesIcon: z.boolean().optional(),
|
|
4179
|
-
providesImage: z.boolean().optional()
|
|
4180
|
-
});
|
|
4181
|
-
var linkHandlerSchema = z.object({
|
|
4182
|
-
regexPattern: z.string(),
|
|
4226
|
+
var pollingOnErrorSchema = z.object({
|
|
4183
4227
|
action: actionSchema
|
|
4184
4228
|
});
|
|
4185
|
-
var
|
|
4229
|
+
var navigationBackBehaviourSchema = z.object({
|
|
4230
|
+
title: z.string().optional(),
|
|
4186
4231
|
action: actionSchema
|
|
4187
4232
|
});
|
|
4188
|
-
var
|
|
4189
|
-
type: z.literal("search"),
|
|
4190
|
-
title: z.string(),
|
|
4191
|
-
description: z.string().optional(),
|
|
4192
|
-
icon: iconSchema.optional(),
|
|
4193
|
-
image: imageLayoutSchema.optional(),
|
|
4194
|
-
value: searchSearchRequestSchema
|
|
4195
|
-
});
|
|
4196
|
-
var searchResultActionSchema = z.object({
|
|
4197
|
-
type: z.literal("action"),
|
|
4233
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4198
4234
|
title: z.string(),
|
|
4199
|
-
description: z.string().optional(),
|
|
4200
|
-
icon: iconSchema.optional(),
|
|
4201
|
-
image: imageLayoutSchema.optional(),
|
|
4202
|
-
value: actionSchema
|
|
4203
|
-
});
|
|
4204
|
-
var pollingOnErrorSchema = z.object({
|
|
4205
4235
|
action: actionSchema
|
|
4206
4236
|
});
|
|
4207
|
-
var
|
|
4237
|
+
var listLayoutSchema = z.object({
|
|
4238
|
+
type: z.literal("list"),
|
|
4239
|
+
items: z.array(listLayoutItemSchema),
|
|
4208
4240
|
title: z.string().optional(),
|
|
4209
|
-
|
|
4241
|
+
control: z.string().optional(),
|
|
4242
|
+
margin: sizeSchema.optional()
|
|
4210
4243
|
});
|
|
4211
|
-
var
|
|
4212
|
-
|
|
4213
|
-
type: z.literal("button"),
|
|
4214
|
-
size: sizeSchema.optional(),
|
|
4244
|
+
var decisionLayoutSchema = z.object({
|
|
4245
|
+
type: z.literal("decision"),
|
|
4215
4246
|
title: z.string().optional(),
|
|
4216
|
-
|
|
4217
|
-
context: contextSchema.optional(),
|
|
4218
|
-
disabled: z.boolean().optional(),
|
|
4219
|
-
pinOrder: z.number().optional(),
|
|
4247
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4220
4248
|
control: z.string().optional(),
|
|
4221
4249
|
margin: sizeSchema.optional()
|
|
4222
4250
|
});
|
|
4223
|
-
var
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
image: imageLayoutSchema.optional()
|
|
4251
|
+
var statusListLayoutSchema = z.object({
|
|
4252
|
+
type: z.literal("status-list"),
|
|
4253
|
+
items: z.array(statusListLayoutItemSchema),
|
|
4254
|
+
title: z.string().optional(),
|
|
4255
|
+
control: z.string().optional(),
|
|
4256
|
+
margin: sizeSchema.optional()
|
|
4230
4257
|
});
|
|
4231
4258
|
var reviewLayoutSchema = z.object({
|
|
4232
4259
|
type: z.literal("review"),
|
|
@@ -4238,19 +4265,7 @@ var reviewLayoutSchema = z.object({
|
|
|
4238
4265
|
control: z.string().optional(),
|
|
4239
4266
|
margin: sizeSchema.optional()
|
|
4240
4267
|
});
|
|
4241
|
-
var
|
|
4242
|
-
type: z.literal("status-list"),
|
|
4243
|
-
items: z.array(statusListLayoutItemSchema),
|
|
4244
|
-
title: z.string().optional(),
|
|
4245
|
-
control: z.string().optional(),
|
|
4246
|
-
margin: sizeSchema.optional()
|
|
4247
|
-
});
|
|
4248
|
-
var listLayoutItemSchema = z.object({
|
|
4249
|
-
title: z.string(),
|
|
4250
|
-
description: z.string().optional(),
|
|
4251
|
-
icon: iconSchema,
|
|
4252
|
-
status: listLayoutStatusSchema.optional()
|
|
4253
|
-
});
|
|
4268
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4254
4269
|
var pollingSchema = z.object({
|
|
4255
4270
|
url: z.string(),
|
|
4256
4271
|
interval: z.number(),
|
|
@@ -4262,34 +4277,9 @@ var navigationSchema = z.object({
|
|
|
4262
4277
|
back: navigationBackBehaviourSchema.optional(),
|
|
4263
4278
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4264
4279
|
});
|
|
4265
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4266
|
-
var decisionLayoutSchema = z.object({
|
|
4267
|
-
type: z.literal("decision"),
|
|
4268
|
-
title: z.string().optional(),
|
|
4269
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
4270
|
-
control: z.string().optional(),
|
|
4271
|
-
margin: sizeSchema.optional()
|
|
4272
|
-
});
|
|
4273
|
-
var listLayoutSchema = z.object({
|
|
4274
|
-
type: z.literal("list"),
|
|
4275
|
-
items: z.array(listLayoutItemSchema),
|
|
4276
|
-
title: z.string().optional(),
|
|
4277
|
-
control: z.string().optional(),
|
|
4278
|
-
margin: sizeSchema.optional()
|
|
4279
|
-
});
|
|
4280
4280
|
var searchResponseBodySchema = z.object({
|
|
4281
4281
|
results: z.array(searchResultSchema)
|
|
4282
4282
|
});
|
|
4283
|
-
var columnsLayoutSchema = z.lazy(
|
|
4284
|
-
() => z.object({
|
|
4285
|
-
type: z.literal("columns"),
|
|
4286
|
-
left: z.array(layoutSchema),
|
|
4287
|
-
right: z.array(layoutSchema),
|
|
4288
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4289
|
-
control: z.string().optional(),
|
|
4290
|
-
margin: sizeSchema.optional()
|
|
4291
|
-
})
|
|
4292
|
-
);
|
|
4293
4283
|
var layoutSchema = z.lazy(
|
|
4294
4284
|
() => z.union([
|
|
4295
4285
|
alertLayoutSchema,
|
|
@@ -4313,6 +4303,26 @@ var layoutSchema = z.lazy(
|
|
|
4313
4303
|
statusListLayoutSchema
|
|
4314
4304
|
])
|
|
4315
4305
|
);
|
|
4306
|
+
var boxLayoutSchema = z.lazy(
|
|
4307
|
+
() => z.object({
|
|
4308
|
+
type: z.literal("box"),
|
|
4309
|
+
components: z.array(layoutSchema),
|
|
4310
|
+
width: sizeSchema.optional(),
|
|
4311
|
+
border: z.boolean().optional(),
|
|
4312
|
+
control: z.string().optional(),
|
|
4313
|
+
margin: sizeSchema.optional()
|
|
4314
|
+
})
|
|
4315
|
+
);
|
|
4316
|
+
var columnsLayoutSchema = z.lazy(
|
|
4317
|
+
() => z.object({
|
|
4318
|
+
type: z.literal("columns"),
|
|
4319
|
+
left: z.array(layoutSchema),
|
|
4320
|
+
right: z.array(layoutSchema),
|
|
4321
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4322
|
+
control: z.string().optional(),
|
|
4323
|
+
margin: sizeSchema.optional()
|
|
4324
|
+
})
|
|
4325
|
+
);
|
|
4316
4326
|
var modalLayoutSchema = z.lazy(
|
|
4317
4327
|
() => z.object({
|
|
4318
4328
|
type: z.literal("modal"),
|
|
@@ -4327,14 +4337,25 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4327
4337
|
components: z.array(layoutSchema)
|
|
4328
4338
|
})
|
|
4329
4339
|
);
|
|
4330
|
-
var
|
|
4340
|
+
var stepSchema = z.lazy(
|
|
4331
4341
|
() => z.object({
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4342
|
+
key: z.string().optional(),
|
|
4343
|
+
type: z.string().optional(),
|
|
4344
|
+
actions: z.array(actionSchema).optional(),
|
|
4345
|
+
refreshFormUrl: z.string().optional(),
|
|
4346
|
+
id: z.string(),
|
|
4347
|
+
title: z.string(),
|
|
4348
|
+
description: z.string().optional(),
|
|
4349
|
+
schemas: z.array(schemaSchema),
|
|
4350
|
+
layout: z.array(layoutSchema),
|
|
4351
|
+
model: jsonElementSchema.optional(),
|
|
4352
|
+
external: externalSchema.optional(),
|
|
4353
|
+
polling: pollingSchema.optional(),
|
|
4354
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4355
|
+
analytics: z.record(z.string()).optional(),
|
|
4356
|
+
errors: stepErrorSchema.optional(),
|
|
4357
|
+
navigation: navigationSchema.optional(),
|
|
4358
|
+
refreshUrl: z.string().optional()
|
|
4338
4359
|
})
|
|
4339
4360
|
);
|
|
4340
4361
|
var schemaSchema = z.lazy(
|
|
@@ -4560,21 +4581,17 @@ var stringSchemaSchema = z.lazy(
|
|
|
4560
4581
|
help: helpSchema.optional()
|
|
4561
4582
|
})
|
|
4562
4583
|
);
|
|
4563
|
-
var
|
|
4564
|
-
() => z.object({
|
|
4565
|
-
param: z.string(),
|
|
4566
|
-
idProperty: z.string(),
|
|
4567
|
-
schema: schemaSchema,
|
|
4568
|
-
url: z.string(),
|
|
4569
|
-
method: httpMethodSchema
|
|
4570
|
-
})
|
|
4571
|
-
);
|
|
4572
|
-
var arraySchemaTupleSchema = z.lazy(
|
|
4584
|
+
var arraySchemaListSchema = z.lazy(
|
|
4573
4585
|
() => z.object({
|
|
4574
4586
|
type: z.literal("array"),
|
|
4575
4587
|
promoted: z.boolean().optional(),
|
|
4576
4588
|
$id: z.string().optional(),
|
|
4577
|
-
items:
|
|
4589
|
+
items: schemaSchema,
|
|
4590
|
+
addItemTitle: z.string(),
|
|
4591
|
+
editItemTitle: z.string(),
|
|
4592
|
+
minItems: z.number().optional(),
|
|
4593
|
+
maxItems: z.number().optional(),
|
|
4594
|
+
placeholder: z.string().optional(),
|
|
4578
4595
|
title: z.string().optional(),
|
|
4579
4596
|
description: z.string().optional(),
|
|
4580
4597
|
control: z.string().optional(),
|
|
@@ -4582,24 +4599,30 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4582
4599
|
icon: iconSchema.optional(),
|
|
4583
4600
|
image: imageSchema.optional(),
|
|
4584
4601
|
keywords: z.array(z.string()).optional(),
|
|
4585
|
-
summary:
|
|
4602
|
+
summary: summarySummariserSchema.optional(),
|
|
4586
4603
|
analyticsId: z.string().optional(),
|
|
4587
4604
|
persistAsync: persistAsyncSchema.optional(),
|
|
4588
4605
|
validationAsync: validateAsyncSchema.optional(),
|
|
4589
|
-
alert: alertLayoutSchema.optional()
|
|
4606
|
+
alert: alertLayoutSchema.optional(),
|
|
4607
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4608
|
+
disabled: z.boolean().optional()
|
|
4590
4609
|
})
|
|
4591
4610
|
);
|
|
4592
|
-
var
|
|
4611
|
+
var persistAsyncSchema = z.lazy(
|
|
4612
|
+
() => z.object({
|
|
4613
|
+
param: z.string(),
|
|
4614
|
+
idProperty: z.string(),
|
|
4615
|
+
schema: schemaSchema,
|
|
4616
|
+
url: z.string(),
|
|
4617
|
+
method: httpMethodSchema
|
|
4618
|
+
})
|
|
4619
|
+
);
|
|
4620
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4593
4621
|
() => z.object({
|
|
4594
4622
|
type: z.literal("array"),
|
|
4595
4623
|
promoted: z.boolean().optional(),
|
|
4596
4624
|
$id: z.string().optional(),
|
|
4597
|
-
items: schemaSchema,
|
|
4598
|
-
addItemTitle: z.string(),
|
|
4599
|
-
editItemTitle: z.string(),
|
|
4600
|
-
minItems: z.number().optional(),
|
|
4601
|
-
maxItems: z.number().optional(),
|
|
4602
|
-
placeholder: z.string().optional(),
|
|
4625
|
+
items: z.array(schemaSchema),
|
|
4603
4626
|
title: z.string().optional(),
|
|
4604
4627
|
description: z.string().optional(),
|
|
4605
4628
|
control: z.string().optional(),
|
|
@@ -4607,34 +4630,11 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4607
4630
|
icon: iconSchema.optional(),
|
|
4608
4631
|
image: imageSchema.optional(),
|
|
4609
4632
|
keywords: z.array(z.string()).optional(),
|
|
4610
|
-
summary:
|
|
4633
|
+
summary: summaryProviderSchema.optional(),
|
|
4611
4634
|
analyticsId: z.string().optional(),
|
|
4612
4635
|
persistAsync: persistAsyncSchema.optional(),
|
|
4613
4636
|
validationAsync: validateAsyncSchema.optional(),
|
|
4614
|
-
alert: alertLayoutSchema.optional()
|
|
4615
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4616
|
-
disabled: z.boolean().optional()
|
|
4617
|
-
})
|
|
4618
|
-
);
|
|
4619
|
-
var stepSchema = z.lazy(
|
|
4620
|
-
() => z.object({
|
|
4621
|
-
key: z.string().optional(),
|
|
4622
|
-
type: z.string().optional(),
|
|
4623
|
-
actions: z.array(actionSchema).optional(),
|
|
4624
|
-
refreshFormUrl: z.string().optional(),
|
|
4625
|
-
id: z.string(),
|
|
4626
|
-
title: z.string(),
|
|
4627
|
-
description: z.string().optional(),
|
|
4628
|
-
schemas: z.array(schemaSchema),
|
|
4629
|
-
layout: z.array(layoutSchema),
|
|
4630
|
-
model: jsonElementSchema.optional(),
|
|
4631
|
-
external: externalSchema.optional(),
|
|
4632
|
-
polling: pollingSchema.optional(),
|
|
4633
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4634
|
-
analytics: z.record(z.string()).optional(),
|
|
4635
|
-
errors: stepErrorSchema.optional(),
|
|
4636
|
-
navigation: navigationSchema.optional(),
|
|
4637
|
-
refreshUrl: z.string().optional()
|
|
4637
|
+
alert: alertLayoutSchema.optional()
|
|
4638
4638
|
})
|
|
4639
4639
|
);
|
|
4640
4640
|
|