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