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