@wise/dynamic-flow-types 2.16.0 → 2.17.0-experimental-9ab778d
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 +295 -295
- package/build/main.min.js +1 -1
- package/build/main.mjs +295 -295
- package/build/renderers/index.d.ts +364 -0
- package/build/zod/schemas.d.ts +1641 -1641
- package/package.json +3 -2
package/build/main.mjs
CHANGED
|
@@ -3828,21 +3828,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3828
3828
|
});
|
|
3829
3829
|
|
|
3830
3830
|
// src/zod/schemas.ts
|
|
3831
|
-
var
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
z.literal("GET"),
|
|
3838
|
-
z.literal("POST"),
|
|
3839
|
-
z.literal("PUT"),
|
|
3840
|
-
z.literal("PATCH"),
|
|
3841
|
-
z.literal("DELETE")
|
|
3831
|
+
var sizeSchema = z.union([
|
|
3832
|
+
z.literal("xs"),
|
|
3833
|
+
z.literal("sm"),
|
|
3834
|
+
z.literal("md"),
|
|
3835
|
+
z.literal("lg"),
|
|
3836
|
+
z.literal("xl")
|
|
3842
3837
|
]);
|
|
3843
|
-
var iconNamedSchema = z.object({
|
|
3844
|
-
name: z.string()
|
|
3845
|
-
});
|
|
3846
3838
|
var contextSchema = z.union([
|
|
3847
3839
|
z.literal("positive"),
|
|
3848
3840
|
z.literal("neutral"),
|
|
@@ -3853,18 +3845,114 @@ var contextSchema = z.union([
|
|
|
3853
3845
|
z.literal("info"),
|
|
3854
3846
|
z.literal("primary")
|
|
3855
3847
|
]);
|
|
3856
|
-
var
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
z.literal("
|
|
3863
|
-
z.literal("
|
|
3864
|
-
z.literal("
|
|
3848
|
+
var columnsLayoutBiasSchema = z.union([
|
|
3849
|
+
z.literal("none"),
|
|
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")
|
|
3865
3857
|
]);
|
|
3866
3858
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3867
|
-
var
|
|
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()
|
|
3876
|
+
});
|
|
3877
|
+
var listLayoutStatusSchema = z.union([
|
|
3878
|
+
z.literal("warning"),
|
|
3879
|
+
z.literal("neutral"),
|
|
3880
|
+
z.literal("positive")
|
|
3881
|
+
]);
|
|
3882
|
+
var headingLayoutSchema = z.object({
|
|
3883
|
+
type: z.literal("heading"),
|
|
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
|
+
});
|
|
3868
3956
|
var autocompleteTokenSchema = z.union([
|
|
3869
3957
|
z.literal("on"),
|
|
3870
3958
|
z.literal("name"),
|
|
@@ -3930,113 +4018,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
3930
4018
|
z.literal("fax"),
|
|
3931
4019
|
z.literal("pager")
|
|
3932
4020
|
]);
|
|
3933
|
-
var
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
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")
|
|
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")
|
|
4021
|
+
var stringSchemaFormatSchema = z.union([
|
|
4022
|
+
z.literal("date"),
|
|
4023
|
+
z.literal("email"),
|
|
4024
|
+
z.literal("numeric"),
|
|
4025
|
+
z.literal("password"),
|
|
4026
|
+
z.literal("phone-number"),
|
|
4027
|
+
z.literal("base64url")
|
|
4030
4028
|
]);
|
|
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
|
-
});
|
|
4040
4029
|
var jsonElementSchema = z.lazy(
|
|
4041
4030
|
() => z.union([
|
|
4042
4031
|
z.string(),
|
|
@@ -4046,6 +4035,7 @@ var jsonElementSchema = z.lazy(
|
|
|
4046
4035
|
z.array(jsonElementSchema)
|
|
4047
4036
|
]).nullable()
|
|
4048
4037
|
);
|
|
4038
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4049
4039
|
var externalSchema = z.object({
|
|
4050
4040
|
url: z.string()
|
|
4051
4041
|
});
|
|
@@ -4053,36 +4043,19 @@ var stepErrorSchema = z.object({
|
|
|
4053
4043
|
error: z.string().optional(),
|
|
4054
4044
|
validation: jsonElementSchema.optional()
|
|
4055
4045
|
});
|
|
4056
|
-
var
|
|
4057
|
-
z.
|
|
4058
|
-
z.
|
|
4059
|
-
z.
|
|
4060
|
-
|
|
4061
|
-
z.
|
|
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()
|
|
4046
|
+
var errorResponseBodySchema = z.object({
|
|
4047
|
+
refreshFormUrl: z.string().optional(),
|
|
4048
|
+
analytics: z.record(z.string()).optional(),
|
|
4049
|
+
error: z.string().optional(),
|
|
4050
|
+
validation: jsonElementSchema.optional(),
|
|
4051
|
+
refreshUrl: z.string().optional()
|
|
4073
4052
|
});
|
|
4074
|
-
var
|
|
4075
|
-
|
|
4053
|
+
var searchSearchRequestSchema = z.object({
|
|
4054
|
+
url: z.string(),
|
|
4076
4055
|
method: httpMethodSchema,
|
|
4077
|
-
|
|
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()
|
|
4056
|
+
param: z.string(),
|
|
4057
|
+
query: z.string()
|
|
4084
4058
|
});
|
|
4085
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4086
4059
|
var navigationStackBehaviorSchema = z.union([
|
|
4087
4060
|
z.literal("default"),
|
|
4088
4061
|
z.literal("remove-previous"),
|
|
@@ -4096,7 +4069,12 @@ var actionTypeSchema = z.union([
|
|
|
4096
4069
|
z.literal("positive"),
|
|
4097
4070
|
z.literal("negative")
|
|
4098
4071
|
]);
|
|
4099
|
-
var
|
|
4072
|
+
var iconNamedSchema = z.object({
|
|
4073
|
+
name: z.string()
|
|
4074
|
+
});
|
|
4075
|
+
var iconTextSchema = z.object({
|
|
4076
|
+
text: z.string()
|
|
4077
|
+
});
|
|
4100
4078
|
var actionSchema = z.object({
|
|
4101
4079
|
title: z.string().optional(),
|
|
4102
4080
|
type: actionTypeSchema.optional(),
|
|
@@ -4112,78 +4090,45 @@ var actionSchema = z.object({
|
|
|
4112
4090
|
timeout: z.number().optional(),
|
|
4113
4091
|
skipValidation: z.boolean().optional()
|
|
4114
4092
|
});
|
|
4115
|
-
var
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
var decisionLayoutOptionSchema = z.object({
|
|
4122
|
-
action: actionSchema,
|
|
4123
|
-
title: z.string(),
|
|
4124
|
-
description: z.string().optional(),
|
|
4125
|
-
disabled: z.boolean().optional(),
|
|
4126
|
-
icon: iconSchema.optional(),
|
|
4127
|
-
image: imageLayoutSchema.optional()
|
|
4093
|
+
var markdownLayoutSchema = z.object({
|
|
4094
|
+
type: z.literal("markdown"),
|
|
4095
|
+
content: z.string(),
|
|
4096
|
+
align: alignSchema.optional(),
|
|
4097
|
+
control: z.string().optional(),
|
|
4098
|
+
margin: sizeSchema.optional()
|
|
4128
4099
|
});
|
|
4129
|
-
var
|
|
4100
|
+
var searchLayoutSchema = z.object({
|
|
4101
|
+
type: z.literal("search"),
|
|
4130
4102
|
title: z.string(),
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
var instructionsLayoutSchema = z.object({
|
|
4136
|
-
type: z.literal("instructions"),
|
|
4137
|
-
title: z.string().optional(),
|
|
4138
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
4103
|
+
method: httpMethodSchema,
|
|
4104
|
+
url: z.string(),
|
|
4105
|
+
param: z.string(),
|
|
4106
|
+
emptyMessage: z.string().optional(),
|
|
4139
4107
|
control: z.string().optional(),
|
|
4140
4108
|
margin: sizeSchema.optional()
|
|
4141
4109
|
});
|
|
4142
|
-
var
|
|
4143
|
-
|
|
4144
|
-
|
|
4110
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4111
|
+
title: z.string(),
|
|
4112
|
+
action: actionSchema
|
|
4113
|
+
});
|
|
4114
|
+
var instructionsLayoutSchema = z.object({
|
|
4115
|
+
type: z.literal("instructions"),
|
|
4145
4116
|
title: z.string().optional(),
|
|
4146
|
-
|
|
4147
|
-
context: contextSchema.optional(),
|
|
4148
|
-
disabled: z.boolean().optional(),
|
|
4149
|
-
pinOrder: z.number().optional(),
|
|
4117
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
4150
4118
|
control: z.string().optional(),
|
|
4151
4119
|
margin: sizeSchema.optional()
|
|
4152
4120
|
});
|
|
4121
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4153
4122
|
var reviewLayoutFieldSchema = z.object({
|
|
4154
4123
|
label: z.string(),
|
|
4155
4124
|
value: z.string(),
|
|
4156
4125
|
help: helpSchema.optional()
|
|
4157
4126
|
});
|
|
4158
|
-
var
|
|
4159
|
-
type: z.literal("search"),
|
|
4160
|
-
title: z.string(),
|
|
4161
|
-
description: z.string().optional(),
|
|
4162
|
-
icon: iconSchema.optional(),
|
|
4163
|
-
image: imageLayoutSchema.optional(),
|
|
4164
|
-
value: searchSearchRequestSchema
|
|
4165
|
-
});
|
|
4166
|
-
var searchResultActionSchema = z.object({
|
|
4167
|
-
type: z.literal("action"),
|
|
4127
|
+
var statusListLayoutItemSchema = z.object({
|
|
4168
4128
|
title: z.string(),
|
|
4169
4129
|
description: z.string().optional(),
|
|
4170
|
-
icon: iconSchema
|
|
4171
|
-
|
|
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
|
|
4130
|
+
icon: iconSchema,
|
|
4131
|
+
status: statusListLayoutStatusSchema.optional()
|
|
4187
4132
|
});
|
|
4188
4133
|
var blobSchemaSchema = z.object({
|
|
4189
4134
|
type: z.literal("blob"),
|
|
@@ -4223,37 +4168,65 @@ var constSchemaSchema = z.object({
|
|
|
4223
4168
|
analyticsId: z.string().optional(),
|
|
4224
4169
|
disabled: z.boolean().optional()
|
|
4225
4170
|
});
|
|
4226
|
-
var
|
|
4171
|
+
var summarySummariserSchema = z.object({
|
|
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(),
|
|
4227
4183
|
action: actionSchema
|
|
4228
4184
|
});
|
|
4229
|
-
var
|
|
4230
|
-
title: z.string().optional(),
|
|
4185
|
+
var actionResponseBodySchema = z.object({
|
|
4231
4186
|
action: actionSchema
|
|
4232
4187
|
});
|
|
4233
|
-
var
|
|
4188
|
+
var searchResultSearchSchema = z.object({
|
|
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"),
|
|
4234
4198
|
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({
|
|
4235
4205
|
action: actionSchema
|
|
4236
4206
|
});
|
|
4237
|
-
var
|
|
4238
|
-
type: z.literal("list"),
|
|
4239
|
-
items: z.array(listLayoutItemSchema),
|
|
4207
|
+
var navigationBackBehaviourSchema = z.object({
|
|
4240
4208
|
title: z.string().optional(),
|
|
4241
|
-
|
|
4242
|
-
margin: sizeSchema.optional()
|
|
4209
|
+
action: actionSchema
|
|
4243
4210
|
});
|
|
4244
|
-
var
|
|
4245
|
-
|
|
4211
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4212
|
+
var buttonLayoutSchema = z.object({
|
|
4213
|
+
type: z.literal("button"),
|
|
4214
|
+
size: sizeSchema.optional(),
|
|
4246
4215
|
title: z.string().optional(),
|
|
4247
|
-
|
|
4216
|
+
action: actionSchema,
|
|
4217
|
+
context: contextSchema.optional(),
|
|
4218
|
+
disabled: z.boolean().optional(),
|
|
4219
|
+
pinOrder: z.number().optional(),
|
|
4248
4220
|
control: z.string().optional(),
|
|
4249
4221
|
margin: sizeSchema.optional()
|
|
4250
4222
|
});
|
|
4251
|
-
var
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4223
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4224
|
+
action: actionSchema,
|
|
4225
|
+
title: z.string(),
|
|
4226
|
+
description: z.string().optional(),
|
|
4227
|
+
disabled: z.boolean().optional(),
|
|
4228
|
+
icon: iconSchema.optional(),
|
|
4229
|
+
image: imageLayoutSchema.optional()
|
|
4257
4230
|
});
|
|
4258
4231
|
var reviewLayoutSchema = z.object({
|
|
4259
4232
|
type: z.literal("review"),
|
|
@@ -4265,7 +4238,19 @@ var reviewLayoutSchema = z.object({
|
|
|
4265
4238
|
control: z.string().optional(),
|
|
4266
4239
|
margin: sizeSchema.optional()
|
|
4267
4240
|
});
|
|
4268
|
-
var
|
|
4241
|
+
var statusListLayoutSchema = z.object({
|
|
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
|
+
});
|
|
4269
4254
|
var pollingSchema = z.object({
|
|
4270
4255
|
url: z.string(),
|
|
4271
4256
|
interval: z.number(),
|
|
@@ -4277,9 +4262,34 @@ var navigationSchema = z.object({
|
|
|
4277
4262
|
back: navigationBackBehaviourSchema.optional(),
|
|
4278
4263
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4279
4264
|
});
|
|
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
|
+
);
|
|
4283
4293
|
var layoutSchema = z.lazy(
|
|
4284
4294
|
() => z.union([
|
|
4285
4295
|
alertLayoutSchema,
|
|
@@ -4303,26 +4313,6 @@ var layoutSchema = z.lazy(
|
|
|
4303
4313
|
statusListLayoutSchema
|
|
4304
4314
|
])
|
|
4305
4315
|
);
|
|
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
|
-
);
|
|
4326
4316
|
var modalLayoutSchema = z.lazy(
|
|
4327
4317
|
() => z.object({
|
|
4328
4318
|
type: z.literal("modal"),
|
|
@@ -4337,25 +4327,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4337
4327
|
components: z.array(layoutSchema)
|
|
4338
4328
|
})
|
|
4339
4329
|
);
|
|
4340
|
-
var
|
|
4330
|
+
var boxLayoutSchema = z.lazy(
|
|
4341
4331
|
() => z.object({
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
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()
|
|
4332
|
+
type: z.literal("box"),
|
|
4333
|
+
components: z.array(layoutSchema),
|
|
4334
|
+
width: sizeSchema.optional(),
|
|
4335
|
+
border: z.boolean().optional(),
|
|
4336
|
+
control: z.string().optional(),
|
|
4337
|
+
margin: sizeSchema.optional()
|
|
4359
4338
|
})
|
|
4360
4339
|
);
|
|
4361
4340
|
var schemaSchema = z.lazy(
|
|
@@ -4581,17 +4560,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
4581
4560
|
help: helpSchema.optional()
|
|
4582
4561
|
})
|
|
4583
4562
|
);
|
|
4584
|
-
var
|
|
4563
|
+
var persistAsyncSchema = z.lazy(
|
|
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(
|
|
4585
4573
|
() => z.object({
|
|
4586
4574
|
type: z.literal("array"),
|
|
4587
4575
|
promoted: z.boolean().optional(),
|
|
4588
4576
|
$id: z.string().optional(),
|
|
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(),
|
|
4577
|
+
items: z.array(schemaSchema),
|
|
4595
4578
|
title: z.string().optional(),
|
|
4596
4579
|
description: z.string().optional(),
|
|
4597
4580
|
control: z.string().optional(),
|
|
@@ -4599,30 +4582,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4599
4582
|
icon: iconSchema.optional(),
|
|
4600
4583
|
image: imageSchema.optional(),
|
|
4601
4584
|
keywords: z.array(z.string()).optional(),
|
|
4602
|
-
summary:
|
|
4585
|
+
summary: summaryProviderSchema.optional(),
|
|
4603
4586
|
analyticsId: z.string().optional(),
|
|
4604
4587
|
persistAsync: persistAsyncSchema.optional(),
|
|
4605
4588
|
validationAsync: validateAsyncSchema.optional(),
|
|
4606
|
-
alert: alertLayoutSchema.optional()
|
|
4607
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4608
|
-
disabled: z.boolean().optional()
|
|
4609
|
-
})
|
|
4610
|
-
);
|
|
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
|
|
4589
|
+
alert: alertLayoutSchema.optional()
|
|
4618
4590
|
})
|
|
4619
4591
|
);
|
|
4620
|
-
var
|
|
4592
|
+
var arraySchemaListSchema = z.lazy(
|
|
4621
4593
|
() => z.object({
|
|
4622
4594
|
type: z.literal("array"),
|
|
4623
4595
|
promoted: z.boolean().optional(),
|
|
4624
4596
|
$id: z.string().optional(),
|
|
4625
|
-
items:
|
|
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(),
|
|
4626
4603
|
title: z.string().optional(),
|
|
4627
4604
|
description: z.string().optional(),
|
|
4628
4605
|
control: z.string().optional(),
|
|
@@ -4630,11 +4607,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4630
4607
|
icon: iconSchema.optional(),
|
|
4631
4608
|
image: imageSchema.optional(),
|
|
4632
4609
|
keywords: z.array(z.string()).optional(),
|
|
4633
|
-
summary:
|
|
4610
|
+
summary: summarySummariserSchema.optional(),
|
|
4634
4611
|
analyticsId: z.string().optional(),
|
|
4635
4612
|
persistAsync: persistAsyncSchema.optional(),
|
|
4636
4613
|
validationAsync: validateAsyncSchema.optional(),
|
|
4637
|
-
alert: alertLayoutSchema.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()
|
|
4638
4638
|
})
|
|
4639
4639
|
);
|
|
4640
4640
|
|