@wise/dynamic-flow-types 2.22.1 → 2.22.2-experimental-bundle-analysis-0f13856
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 +2354 -2354
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -3847,21 +3847,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3847
3847
|
});
|
|
3848
3848
|
|
|
3849
3849
|
// src/zod/schemas.ts
|
|
3850
|
-
var
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
z.literal("GET"),
|
|
3857
|
-
z.literal("POST"),
|
|
3858
|
-
z.literal("PUT"),
|
|
3859
|
-
z.literal("PATCH"),
|
|
3860
|
-
z.literal("DELETE")
|
|
3850
|
+
var sizeSchema = z.union([
|
|
3851
|
+
z.literal("xs"),
|
|
3852
|
+
z.literal("sm"),
|
|
3853
|
+
z.literal("md"),
|
|
3854
|
+
z.literal("lg"),
|
|
3855
|
+
z.literal("xl")
|
|
3861
3856
|
]);
|
|
3862
|
-
var iconNamedSchema = z.object({
|
|
3863
|
-
name: z.string()
|
|
3864
|
-
});
|
|
3865
3857
|
var contextSchema = z.union([
|
|
3866
3858
|
z.literal("positive"),
|
|
3867
3859
|
z.literal("neutral"),
|
|
@@ -3872,18 +3864,107 @@ var contextSchema = z.union([
|
|
|
3872
3864
|
z.literal("info"),
|
|
3873
3865
|
z.literal("primary")
|
|
3874
3866
|
]);
|
|
3875
|
-
var
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
z.literal("
|
|
3882
|
-
z.literal("
|
|
3883
|
-
z.literal("
|
|
3867
|
+
var columnsLayoutBiasSchema = z.union([
|
|
3868
|
+
z.literal("none"),
|
|
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")
|
|
3884
3876
|
]);
|
|
3885
3877
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3886
|
-
var
|
|
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()
|
|
3895
|
+
});
|
|
3896
|
+
var listLayoutStatusSchema = z.union([
|
|
3897
|
+
z.literal("warning"),
|
|
3898
|
+
z.literal("neutral"),
|
|
3899
|
+
z.literal("positive")
|
|
3900
|
+
]);
|
|
3901
|
+
var headingLayoutSchema = z.object({
|
|
3902
|
+
type: z.literal("heading"),
|
|
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
|
+
});
|
|
3887
3968
|
var autocompleteTokenSchema = z.union([
|
|
3888
3969
|
z.literal("on"),
|
|
3889
3970
|
z.literal("name"),
|
|
@@ -3949,106 +4030,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
3949
4030
|
z.literal("fax"),
|
|
3950
4031
|
z.literal("pager")
|
|
3951
4032
|
]);
|
|
3952
|
-
var
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
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")
|
|
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")
|
|
4033
|
+
var stringSchemaFormatSchema = z.union([
|
|
4034
|
+
z.literal("date"),
|
|
4035
|
+
z.literal("email"),
|
|
4036
|
+
z.literal("numeric"),
|
|
4037
|
+
z.literal("password"),
|
|
4038
|
+
z.literal("phone-number"),
|
|
4039
|
+
z.literal("base64url")
|
|
4042
4040
|
]);
|
|
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
|
-
});
|
|
4052
4041
|
var jsonElementSchema = z.lazy(
|
|
4053
4042
|
() => z.union([
|
|
4054
4043
|
z.string(),
|
|
@@ -4058,6 +4047,7 @@ var jsonElementSchema = z.lazy(
|
|
|
4058
4047
|
z.array(jsonElementSchema)
|
|
4059
4048
|
]).nullable()
|
|
4060
4049
|
);
|
|
4050
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4061
4051
|
var externalSchema = z.object({
|
|
4062
4052
|
url: z.string()
|
|
4063
4053
|
});
|
|
@@ -4065,42 +4055,28 @@ var stepErrorSchema = z.object({
|
|
|
4065
4055
|
error: z.string().optional(),
|
|
4066
4056
|
validation: jsonElementSchema.optional()
|
|
4067
4057
|
});
|
|
4068
|
-
var
|
|
4069
|
-
z.
|
|
4070
|
-
z.
|
|
4071
|
-
z.
|
|
4072
|
-
|
|
4073
|
-
z.
|
|
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()
|
|
4058
|
+
var errorResponseBodySchema = z.object({
|
|
4059
|
+
refreshFormUrl: z.string().optional(),
|
|
4060
|
+
analytics: z.record(z.string()).optional(),
|
|
4061
|
+
error: z.string().optional(),
|
|
4062
|
+
validation: jsonElementSchema.optional(),
|
|
4063
|
+
refreshUrl: z.string().optional()
|
|
4085
4064
|
});
|
|
4086
|
-
var
|
|
4087
|
-
|
|
4065
|
+
var searchSearchRequestSchema = z.object({
|
|
4066
|
+
url: z.string(),
|
|
4088
4067
|
method: httpMethodSchema,
|
|
4089
|
-
|
|
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()
|
|
4068
|
+
param: z.string(),
|
|
4069
|
+
query: z.string()
|
|
4096
4070
|
});
|
|
4097
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4098
4071
|
var navigationStackBehaviorSchema = z.union([
|
|
4099
4072
|
z.literal("default"),
|
|
4100
4073
|
z.literal("remove-previous"),
|
|
4101
4074
|
z.literal("remove-all"),
|
|
4102
4075
|
z.literal("replace-current")
|
|
4103
4076
|
]);
|
|
4077
|
+
var linkSchema = z.object({
|
|
4078
|
+
url: z.string()
|
|
4079
|
+
});
|
|
4104
4080
|
var actionTypeSchema = z.union([
|
|
4105
4081
|
z.literal("primary"),
|
|
4106
4082
|
z.literal("secondary"),
|
|
@@ -4108,9 +4084,11 @@ var actionTypeSchema = z.union([
|
|
|
4108
4084
|
z.literal("positive"),
|
|
4109
4085
|
z.literal("negative")
|
|
4110
4086
|
]);
|
|
4111
|
-
var
|
|
4112
|
-
|
|
4113
|
-
|
|
4087
|
+
var iconNamedSchema = z.object({
|
|
4088
|
+
name: z.string()
|
|
4089
|
+
});
|
|
4090
|
+
var iconTextSchema = z.object({
|
|
4091
|
+
text: z.string()
|
|
4114
4092
|
});
|
|
4115
4093
|
var actionSchema = z.object({
|
|
4116
4094
|
title: z.string().optional(),
|
|
@@ -4127,25 +4105,26 @@ var actionSchema = z.object({
|
|
|
4127
4105
|
timeout: z.number().optional(),
|
|
4128
4106
|
skipValidation: z.boolean().optional()
|
|
4129
4107
|
});
|
|
4130
|
-
var
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4108
|
+
var markdownLayoutSchema = z.object({
|
|
4109
|
+
type: z.literal("markdown"),
|
|
4110
|
+
content: z.string(),
|
|
4111
|
+
align: alignSchema.optional(),
|
|
4112
|
+
control: z.string().optional(),
|
|
4113
|
+
margin: sizeSchema.optional()
|
|
4135
4114
|
});
|
|
4136
|
-
var
|
|
4137
|
-
|
|
4115
|
+
var searchLayoutSchema = z.object({
|
|
4116
|
+
type: z.literal("search"),
|
|
4138
4117
|
title: z.string(),
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4118
|
+
method: httpMethodSchema,
|
|
4119
|
+
url: z.string(),
|
|
4120
|
+
param: z.string(),
|
|
4121
|
+
emptyMessage: z.string().optional(),
|
|
4122
|
+
control: z.string().optional(),
|
|
4123
|
+
margin: sizeSchema.optional()
|
|
4143
4124
|
});
|
|
4144
|
-
var
|
|
4125
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4145
4126
|
title: z.string(),
|
|
4146
|
-
|
|
4147
|
-
icon: iconSchema,
|
|
4148
|
-
status: statusListLayoutStatusSchema.optional()
|
|
4127
|
+
action: actionSchema
|
|
4149
4128
|
});
|
|
4150
4129
|
var instructionsLayoutSchema = z.object({
|
|
4151
4130
|
type: z.literal("instructions"),
|
|
@@ -4154,26 +4133,39 @@ var instructionsLayoutSchema = z.object({
|
|
|
4154
4133
|
control: z.string().optional(),
|
|
4155
4134
|
margin: sizeSchema.optional()
|
|
4156
4135
|
});
|
|
4157
|
-
var
|
|
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
|
-
});
|
|
4136
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4168
4137
|
var reviewLayoutFieldSchema = z.object({
|
|
4169
4138
|
label: z.string(),
|
|
4170
4139
|
value: z.string(),
|
|
4171
4140
|
help: helpSchema.optional()
|
|
4172
4141
|
});
|
|
4142
|
+
var statusListLayoutItemSchema = z.object({
|
|
4143
|
+
title: z.string(),
|
|
4144
|
+
description: z.string().optional(),
|
|
4145
|
+
icon: iconSchema,
|
|
4146
|
+
status: statusListLayoutStatusSchema.optional()
|
|
4147
|
+
});
|
|
4173
4148
|
var behaviorSchema = z.object({
|
|
4174
4149
|
action: actionSchema.optional(),
|
|
4175
4150
|
link: linkSchema.optional()
|
|
4176
4151
|
});
|
|
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
|
+
});
|
|
4177
4169
|
var searchResultSearchSchema = z.object({
|
|
4178
4170
|
type: z.literal("search"),
|
|
4179
4171
|
title: z.string(),
|
|
@@ -4190,20 +4182,6 @@ var searchResultActionSchema = z.object({
|
|
|
4190
4182
|
image: imageLayoutSchema.optional(),
|
|
4191
4183
|
value: actionSchema
|
|
4192
4184
|
});
|
|
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
|
-
});
|
|
4207
4185
|
var pollingOnErrorSchema = z.object({
|
|
4208
4186
|
action: actionSchema
|
|
4209
4187
|
});
|
|
@@ -4211,26 +4189,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
4211
4189
|
title: z.string().optional(),
|
|
4212
4190
|
action: actionSchema
|
|
4213
4191
|
});
|
|
4214
|
-
var
|
|
4215
|
-
|
|
4216
|
-
|
|
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),
|
|
4192
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4193
|
+
var buttonLayoutSchema = z.object({
|
|
4194
|
+
type: z.literal("button"),
|
|
4195
|
+
size: sizeSchema.optional(),
|
|
4226
4196
|
title: z.string().optional(),
|
|
4197
|
+
action: actionSchema,
|
|
4198
|
+
context: contextSchema.optional(),
|
|
4199
|
+
disabled: z.boolean().optional(),
|
|
4200
|
+
pinOrder: z.number().optional(),
|
|
4227
4201
|
control: z.string().optional(),
|
|
4228
4202
|
margin: sizeSchema.optional()
|
|
4229
4203
|
});
|
|
4230
|
-
var
|
|
4231
|
-
|
|
4204
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4205
|
+
action: actionSchema,
|
|
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),
|
|
4232
4217
|
title: z.string().optional(),
|
|
4233
|
-
|
|
4218
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
4234
4219
|
control: z.string().optional(),
|
|
4235
4220
|
margin: sizeSchema.optional()
|
|
4236
4221
|
});
|
|
@@ -4241,17 +4226,17 @@ var statusListLayoutSchema = z.object({
|
|
|
4241
4226
|
control: z.string().optional(),
|
|
4242
4227
|
margin: sizeSchema.optional()
|
|
4243
4228
|
});
|
|
4244
|
-
var
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4229
|
+
var listLayoutItemSchema = z.object({
|
|
4230
|
+
title: z.string(),
|
|
4231
|
+
description: z.string().optional(),
|
|
4232
|
+
icon: iconSchema,
|
|
4233
|
+
status: listLayoutStatusSchema.optional()
|
|
4234
|
+
});
|
|
4235
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
4236
|
+
title: z.string(),
|
|
4237
|
+
accessibilityDescription: z.string().optional(),
|
|
4238
|
+
behavior: behaviorSchema
|
|
4253
4239
|
});
|
|
4254
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
4255
4240
|
var pollingSchema = z.object({
|
|
4256
4241
|
url: z.string(),
|
|
4257
4242
|
interval: z.number().optional(),
|
|
@@ -4265,6 +4250,14 @@ var navigationSchema = z.object({
|
|
|
4265
4250
|
back: navigationBackBehaviorSchema.optional(),
|
|
4266
4251
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4267
4252
|
});
|
|
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
|
+
});
|
|
4268
4261
|
var alertLayoutSchema = z.object({
|
|
4269
4262
|
type: z.literal("alert"),
|
|
4270
4263
|
markdown: z.string(),
|
|
@@ -4273,8 +4266,12 @@ var alertLayoutSchema = z.object({
|
|
|
4273
4266
|
margin: sizeSchema.optional(),
|
|
4274
4267
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
4275
4268
|
});
|
|
4276
|
-
var
|
|
4277
|
-
|
|
4269
|
+
var listLayoutSchema = z.object({
|
|
4270
|
+
type: z.literal("list"),
|
|
4271
|
+
items: z.array(listLayoutItemSchema),
|
|
4272
|
+
title: z.string().optional(),
|
|
4273
|
+
control: z.string().optional(),
|
|
4274
|
+
margin: sizeSchema.optional()
|
|
4278
4275
|
});
|
|
4279
4276
|
var blobSchemaSchema = z.object({
|
|
4280
4277
|
type: z.literal("blob"),
|
|
@@ -4314,6 +4311,19 @@ var constSchemaSchema = z.object({
|
|
|
4314
4311
|
analyticsId: z.string().optional(),
|
|
4315
4312
|
disabled: z.boolean().optional()
|
|
4316
4313
|
});
|
|
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
|
+
);
|
|
4317
4327
|
var layoutSchema = z.lazy(
|
|
4318
4328
|
() => z.union([
|
|
4319
4329
|
alertLayoutSchema,
|
|
@@ -4337,26 +4347,6 @@ var layoutSchema = z.lazy(
|
|
|
4337
4347
|
statusListLayoutSchema
|
|
4338
4348
|
])
|
|
4339
4349
|
);
|
|
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
|
-
);
|
|
4360
4350
|
var modalLayoutSchema = z.lazy(
|
|
4361
4351
|
() => z.object({
|
|
4362
4352
|
type: z.literal("modal"),
|
|
@@ -4372,25 +4362,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4372
4362
|
components: z.array(layoutSchema)
|
|
4373
4363
|
})
|
|
4374
4364
|
);
|
|
4375
|
-
var
|
|
4365
|
+
var boxLayoutSchema = z.lazy(
|
|
4376
4366
|
() => z.object({
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
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()
|
|
4367
|
+
type: z.literal("box"),
|
|
4368
|
+
components: z.array(layoutSchema),
|
|
4369
|
+
width: sizeSchema.optional(),
|
|
4370
|
+
border: z.boolean().optional(),
|
|
4371
|
+
control: z.string().optional(),
|
|
4372
|
+
margin: sizeSchema.optional()
|
|
4394
4373
|
})
|
|
4395
4374
|
);
|
|
4396
4375
|
var schemaSchema = z.lazy(
|
|
@@ -4616,17 +4595,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
4616
4595
|
help: helpSchema.optional()
|
|
4617
4596
|
})
|
|
4618
4597
|
);
|
|
4619
|
-
var
|
|
4598
|
+
var persistAsyncSchema = z.lazy(
|
|
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(
|
|
4620
4608
|
() => z.object({
|
|
4621
4609
|
type: z.literal("array"),
|
|
4622
4610
|
promoted: z.boolean().optional(),
|
|
4623
4611
|
$id: z.string().optional(),
|
|
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(),
|
|
4612
|
+
items: z.array(schemaSchema),
|
|
4630
4613
|
title: z.string().optional(),
|
|
4631
4614
|
description: z.string().optional(),
|
|
4632
4615
|
control: z.string().optional(),
|
|
@@ -4634,30 +4617,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4634
4617
|
icon: iconSchema.optional(),
|
|
4635
4618
|
image: imageSchema.optional(),
|
|
4636
4619
|
keywords: z.array(z.string()).optional(),
|
|
4637
|
-
summary:
|
|
4620
|
+
summary: summaryProviderSchema.optional(),
|
|
4638
4621
|
analyticsId: z.string().optional(),
|
|
4639
4622
|
persistAsync: persistAsyncSchema.optional(),
|
|
4640
4623
|
validationAsync: validateAsyncSchema.optional(),
|
|
4641
|
-
alert: alertLayoutSchema.optional()
|
|
4642
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4643
|
-
disabled: z.boolean().optional()
|
|
4644
|
-
})
|
|
4645
|
-
);
|
|
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
|
|
4624
|
+
alert: alertLayoutSchema.optional()
|
|
4653
4625
|
})
|
|
4654
4626
|
);
|
|
4655
|
-
var
|
|
4627
|
+
var arraySchemaListSchema = z.lazy(
|
|
4656
4628
|
() => z.object({
|
|
4657
4629
|
type: z.literal("array"),
|
|
4658
4630
|
promoted: z.boolean().optional(),
|
|
4659
4631
|
$id: z.string().optional(),
|
|
4660
|
-
items:
|
|
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(),
|
|
4661
4638
|
title: z.string().optional(),
|
|
4662
4639
|
description: z.string().optional(),
|
|
4663
4640
|
control: z.string().optional(),
|
|
@@ -4665,11 +4642,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4665
4642
|
icon: iconSchema.optional(),
|
|
4666
4643
|
image: imageSchema.optional(),
|
|
4667
4644
|
keywords: z.array(z.string()).optional(),
|
|
4668
|
-
summary:
|
|
4645
|
+
summary: summarySummariserSchema.optional(),
|
|
4669
4646
|
analyticsId: z.string().optional(),
|
|
4670
4647
|
persistAsync: persistAsyncSchema.optional(),
|
|
4671
4648
|
validationAsync: validateAsyncSchema.optional(),
|
|
4672
|
-
alert: alertLayoutSchema.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()
|
|
4673
4673
|
})
|
|
4674
4674
|
);
|
|
4675
4675
|
|