@wise/dynamic-flow-types 2.15.4 → 2.16.0-export-map-experimental-58f00fb
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/zod/schemas.d.ts +1767 -1767
- package/package.json +9 -1
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,66 @@ 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()
|
|
4243
|
-
});
|
|
4244
|
-
var decisionLayoutSchema = z.object({
|
|
4245
|
-
type: z.literal("decision"),
|
|
4246
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
4247
|
-
control: z.string().optional(),
|
|
4248
|
-
margin: sizeSchema.optional()
|
|
4209
|
+
action: actionSchema
|
|
4249
4210
|
});
|
|
4250
|
-
var
|
|
4251
|
-
|
|
4252
|
-
|
|
4211
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4212
|
+
var buttonLayoutSchema = z.object({
|
|
4213
|
+
type: z.literal("button"),
|
|
4214
|
+
size: sizeSchema.optional(),
|
|
4253
4215
|
title: z.string().optional(),
|
|
4216
|
+
action: actionSchema,
|
|
4217
|
+
context: contextSchema.optional(),
|
|
4218
|
+
disabled: z.boolean().optional(),
|
|
4219
|
+
pinOrder: z.number().optional(),
|
|
4254
4220
|
control: z.string().optional(),
|
|
4255
4221
|
margin: sizeSchema.optional()
|
|
4256
4222
|
});
|
|
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()
|
|
4230
|
+
});
|
|
4257
4231
|
var reviewLayoutSchema = z.object({
|
|
4258
4232
|
type: z.literal("review"),
|
|
4259
4233
|
orientation: z.string().optional(),
|
|
@@ -4264,7 +4238,19 @@ var reviewLayoutSchema = z.object({
|
|
|
4264
4238
|
control: z.string().optional(),
|
|
4265
4239
|
margin: sizeSchema.optional()
|
|
4266
4240
|
});
|
|
4267
|
-
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
|
+
});
|
|
4268
4254
|
var pollingSchema = z.object({
|
|
4269
4255
|
url: z.string(),
|
|
4270
4256
|
interval: z.number(),
|
|
@@ -4276,9 +4262,33 @@ var navigationSchema = z.object({
|
|
|
4276
4262
|
back: navigationBackBehaviourSchema.optional(),
|
|
4277
4263
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4278
4264
|
});
|
|
4265
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4266
|
+
var decisionLayoutSchema = z.object({
|
|
4267
|
+
type: z.literal("decision"),
|
|
4268
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
4269
|
+
control: z.string().optional(),
|
|
4270
|
+
margin: sizeSchema.optional()
|
|
4271
|
+
});
|
|
4272
|
+
var listLayoutSchema = z.object({
|
|
4273
|
+
type: z.literal("list"),
|
|
4274
|
+
items: z.array(listLayoutItemSchema),
|
|
4275
|
+
title: z.string().optional(),
|
|
4276
|
+
control: z.string().optional(),
|
|
4277
|
+
margin: sizeSchema.optional()
|
|
4278
|
+
});
|
|
4279
4279
|
var searchResponseBodySchema = z.object({
|
|
4280
4280
|
results: z.array(searchResultSchema)
|
|
4281
4281
|
});
|
|
4282
|
+
var columnsLayoutSchema = z.lazy(
|
|
4283
|
+
() => z.object({
|
|
4284
|
+
type: z.literal("columns"),
|
|
4285
|
+
left: z.array(layoutSchema),
|
|
4286
|
+
right: z.array(layoutSchema),
|
|
4287
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
4288
|
+
control: z.string().optional(),
|
|
4289
|
+
margin: sizeSchema.optional()
|
|
4290
|
+
})
|
|
4291
|
+
);
|
|
4282
4292
|
var layoutSchema = z.lazy(
|
|
4283
4293
|
() => z.union([
|
|
4284
4294
|
alertLayoutSchema,
|
|
@@ -4302,26 +4312,6 @@ var layoutSchema = z.lazy(
|
|
|
4302
4312
|
statusListLayoutSchema
|
|
4303
4313
|
])
|
|
4304
4314
|
);
|
|
4305
|
-
var boxLayoutSchema = z.lazy(
|
|
4306
|
-
() => z.object({
|
|
4307
|
-
type: z.literal("box"),
|
|
4308
|
-
components: z.array(layoutSchema),
|
|
4309
|
-
width: sizeSchema.optional(),
|
|
4310
|
-
border: z.boolean().optional(),
|
|
4311
|
-
control: z.string().optional(),
|
|
4312
|
-
margin: sizeSchema.optional()
|
|
4313
|
-
})
|
|
4314
|
-
);
|
|
4315
|
-
var columnsLayoutSchema = z.lazy(
|
|
4316
|
-
() => z.object({
|
|
4317
|
-
type: z.literal("columns"),
|
|
4318
|
-
left: z.array(layoutSchema),
|
|
4319
|
-
right: z.array(layoutSchema),
|
|
4320
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4321
|
-
control: z.string().optional(),
|
|
4322
|
-
margin: sizeSchema.optional()
|
|
4323
|
-
})
|
|
4324
|
-
);
|
|
4325
4315
|
var modalLayoutSchema = z.lazy(
|
|
4326
4316
|
() => z.object({
|
|
4327
4317
|
type: z.literal("modal"),
|
|
@@ -4336,25 +4326,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4336
4326
|
components: z.array(layoutSchema)
|
|
4337
4327
|
})
|
|
4338
4328
|
);
|
|
4339
|
-
var
|
|
4329
|
+
var boxLayoutSchema = z.lazy(
|
|
4340
4330
|
() => z.object({
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
description: z.string().optional(),
|
|
4348
|
-
schemas: z.array(schemaSchema),
|
|
4349
|
-
layout: z.array(layoutSchema),
|
|
4350
|
-
model: jsonElementSchema.optional(),
|
|
4351
|
-
external: externalSchema.optional(),
|
|
4352
|
-
polling: pollingSchema.optional(),
|
|
4353
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4354
|
-
analytics: z.record(z.string()).optional(),
|
|
4355
|
-
errors: stepErrorSchema.optional(),
|
|
4356
|
-
navigation: navigationSchema.optional(),
|
|
4357
|
-
refreshUrl: z.string().optional()
|
|
4331
|
+
type: z.literal("box"),
|
|
4332
|
+
components: z.array(layoutSchema),
|
|
4333
|
+
width: sizeSchema.optional(),
|
|
4334
|
+
border: z.boolean().optional(),
|
|
4335
|
+
control: z.string().optional(),
|
|
4336
|
+
margin: sizeSchema.optional()
|
|
4358
4337
|
})
|
|
4359
4338
|
);
|
|
4360
4339
|
var schemaSchema = z.lazy(
|
|
@@ -4580,17 +4559,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
4580
4559
|
help: helpSchema.optional()
|
|
4581
4560
|
})
|
|
4582
4561
|
);
|
|
4583
|
-
var
|
|
4562
|
+
var persistAsyncSchema = z.lazy(
|
|
4563
|
+
() => z.object({
|
|
4564
|
+
param: z.string(),
|
|
4565
|
+
idProperty: z.string(),
|
|
4566
|
+
schema: schemaSchema,
|
|
4567
|
+
url: z.string(),
|
|
4568
|
+
method: httpMethodSchema
|
|
4569
|
+
})
|
|
4570
|
+
);
|
|
4571
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
4584
4572
|
() => z.object({
|
|
4585
4573
|
type: z.literal("array"),
|
|
4586
4574
|
promoted: z.boolean().optional(),
|
|
4587
4575
|
$id: z.string().optional(),
|
|
4588
|
-
items: schemaSchema,
|
|
4589
|
-
addItemTitle: z.string(),
|
|
4590
|
-
editItemTitle: z.string(),
|
|
4591
|
-
minItems: z.number().optional(),
|
|
4592
|
-
maxItems: z.number().optional(),
|
|
4593
|
-
placeholder: z.string().optional(),
|
|
4576
|
+
items: z.array(schemaSchema),
|
|
4594
4577
|
title: z.string().optional(),
|
|
4595
4578
|
description: z.string().optional(),
|
|
4596
4579
|
control: z.string().optional(),
|
|
@@ -4598,30 +4581,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4598
4581
|
icon: iconSchema.optional(),
|
|
4599
4582
|
image: imageSchema.optional(),
|
|
4600
4583
|
keywords: z.array(z.string()).optional(),
|
|
4601
|
-
summary:
|
|
4584
|
+
summary: summaryProviderSchema.optional(),
|
|
4602
4585
|
analyticsId: z.string().optional(),
|
|
4603
4586
|
persistAsync: persistAsyncSchema.optional(),
|
|
4604
4587
|
validationAsync: validateAsyncSchema.optional(),
|
|
4605
|
-
alert: alertLayoutSchema.optional()
|
|
4606
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4607
|
-
disabled: z.boolean().optional()
|
|
4608
|
-
})
|
|
4609
|
-
);
|
|
4610
|
-
var persistAsyncSchema = z.lazy(
|
|
4611
|
-
() => z.object({
|
|
4612
|
-
param: z.string(),
|
|
4613
|
-
idProperty: z.string(),
|
|
4614
|
-
schema: schemaSchema,
|
|
4615
|
-
url: z.string(),
|
|
4616
|
-
method: httpMethodSchema
|
|
4588
|
+
alert: alertLayoutSchema.optional()
|
|
4617
4589
|
})
|
|
4618
4590
|
);
|
|
4619
|
-
var
|
|
4591
|
+
var arraySchemaListSchema = z.lazy(
|
|
4620
4592
|
() => z.object({
|
|
4621
4593
|
type: z.literal("array"),
|
|
4622
4594
|
promoted: z.boolean().optional(),
|
|
4623
4595
|
$id: z.string().optional(),
|
|
4624
|
-
items:
|
|
4596
|
+
items: schemaSchema,
|
|
4597
|
+
addItemTitle: z.string(),
|
|
4598
|
+
editItemTitle: z.string(),
|
|
4599
|
+
minItems: z.number().optional(),
|
|
4600
|
+
maxItems: z.number().optional(),
|
|
4601
|
+
placeholder: z.string().optional(),
|
|
4625
4602
|
title: z.string().optional(),
|
|
4626
4603
|
description: z.string().optional(),
|
|
4627
4604
|
control: z.string().optional(),
|
|
@@ -4629,11 +4606,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4629
4606
|
icon: iconSchema.optional(),
|
|
4630
4607
|
image: imageSchema.optional(),
|
|
4631
4608
|
keywords: z.array(z.string()).optional(),
|
|
4632
|
-
summary:
|
|
4609
|
+
summary: summarySummariserSchema.optional(),
|
|
4633
4610
|
analyticsId: z.string().optional(),
|
|
4634
4611
|
persistAsync: persistAsyncSchema.optional(),
|
|
4635
4612
|
validationAsync: validateAsyncSchema.optional(),
|
|
4636
|
-
alert: alertLayoutSchema.optional()
|
|
4613
|
+
alert: alertLayoutSchema.optional(),
|
|
4614
|
+
validationMessages: z.record(z.string()).optional(),
|
|
4615
|
+
disabled: z.boolean().optional()
|
|
4616
|
+
})
|
|
4617
|
+
);
|
|
4618
|
+
var stepSchema = z.lazy(
|
|
4619
|
+
() => z.object({
|
|
4620
|
+
key: z.string().optional(),
|
|
4621
|
+
type: z.string().optional(),
|
|
4622
|
+
actions: z.array(actionSchema).optional(),
|
|
4623
|
+
refreshFormUrl: z.string().optional(),
|
|
4624
|
+
id: z.string(),
|
|
4625
|
+
title: z.string(),
|
|
4626
|
+
description: z.string().optional(),
|
|
4627
|
+
schemas: z.array(schemaSchema),
|
|
4628
|
+
layout: z.array(layoutSchema),
|
|
4629
|
+
model: jsonElementSchema.optional(),
|
|
4630
|
+
external: externalSchema.optional(),
|
|
4631
|
+
polling: pollingSchema.optional(),
|
|
4632
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4633
|
+
analytics: z.record(z.string()).optional(),
|
|
4634
|
+
errors: stepErrorSchema.optional(),
|
|
4635
|
+
navigation: navigationSchema.optional(),
|
|
4636
|
+
refreshUrl: z.string().optional()
|
|
4637
4637
|
})
|
|
4638
4638
|
);
|
|
4639
4639
|
|