@wise/dynamic-flow-types 2.15.3 → 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/next/feature/Action.d.ts +0 -1
- package/build/spec/Action.d.ts +0 -3
- package/build/zod/schemas.d.ts +1767 -1767
- package/package.json +9 -1
package/build/main.js
CHANGED
|
@@ -3853,21 +3853,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3853
3853
|
});
|
|
3854
3854
|
|
|
3855
3855
|
// src/zod/schemas.ts
|
|
3856
|
-
var
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
z.literal("GET"),
|
|
3863
|
-
z.literal("POST"),
|
|
3864
|
-
z.literal("PUT"),
|
|
3865
|
-
z.literal("PATCH"),
|
|
3866
|
-
z.literal("DELETE")
|
|
3856
|
+
var sizeSchema = z.union([
|
|
3857
|
+
z.literal("xs"),
|
|
3858
|
+
z.literal("sm"),
|
|
3859
|
+
z.literal("md"),
|
|
3860
|
+
z.literal("lg"),
|
|
3861
|
+
z.literal("xl")
|
|
3867
3862
|
]);
|
|
3868
|
-
var iconNamedSchema = z.object({
|
|
3869
|
-
name: z.string()
|
|
3870
|
-
});
|
|
3871
3863
|
var contextSchema = z.union([
|
|
3872
3864
|
z.literal("positive"),
|
|
3873
3865
|
z.literal("neutral"),
|
|
@@ -3878,18 +3870,114 @@ var contextSchema = z.union([
|
|
|
3878
3870
|
z.literal("info"),
|
|
3879
3871
|
z.literal("primary")
|
|
3880
3872
|
]);
|
|
3881
|
-
var
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
z.literal("
|
|
3888
|
-
z.literal("
|
|
3889
|
-
z.literal("
|
|
3873
|
+
var columnsLayoutBiasSchema = z.union([
|
|
3874
|
+
z.literal("none"),
|
|
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")
|
|
3890
3882
|
]);
|
|
3891
3883
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
3892
|
-
var
|
|
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()
|
|
3901
|
+
});
|
|
3902
|
+
var listLayoutStatusSchema = z.union([
|
|
3903
|
+
z.literal("warning"),
|
|
3904
|
+
z.literal("neutral"),
|
|
3905
|
+
z.literal("positive")
|
|
3906
|
+
]);
|
|
3907
|
+
var headingLayoutSchema = z.object({
|
|
3908
|
+
type: z.literal("heading"),
|
|
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
|
+
});
|
|
3893
3981
|
var autocompleteTokenSchema = z.union([
|
|
3894
3982
|
z.literal("on"),
|
|
3895
3983
|
z.literal("name"),
|
|
@@ -3955,113 +4043,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
3955
4043
|
z.literal("fax"),
|
|
3956
4044
|
z.literal("pager")
|
|
3957
4045
|
]);
|
|
3958
|
-
var
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
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")
|
|
4046
|
+
var stringSchemaFormatSchema = z.union([
|
|
4047
|
+
z.literal("date"),
|
|
4048
|
+
z.literal("email"),
|
|
4049
|
+
z.literal("numeric"),
|
|
4050
|
+
z.literal("password"),
|
|
4051
|
+
z.literal("phone-number"),
|
|
4052
|
+
z.literal("base64url")
|
|
4055
4053
|
]);
|
|
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
|
-
});
|
|
4065
4054
|
var jsonElementSchema = z.lazy(
|
|
4066
4055
|
() => z.union([
|
|
4067
4056
|
z.string(),
|
|
@@ -4071,6 +4060,7 @@ var jsonElementSchema = z.lazy(
|
|
|
4071
4060
|
z.array(jsonElementSchema)
|
|
4072
4061
|
]).nullable()
|
|
4073
4062
|
);
|
|
4063
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4074
4064
|
var externalSchema = z.object({
|
|
4075
4065
|
url: z.string()
|
|
4076
4066
|
});
|
|
@@ -4078,36 +4068,19 @@ var stepErrorSchema = z.object({
|
|
|
4078
4068
|
error: z.string().optional(),
|
|
4079
4069
|
validation: jsonElementSchema.optional()
|
|
4080
4070
|
});
|
|
4081
|
-
var
|
|
4082
|
-
z.
|
|
4083
|
-
z.
|
|
4084
|
-
z.
|
|
4085
|
-
|
|
4086
|
-
z.
|
|
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()
|
|
4071
|
+
var errorResponseBodySchema = z.object({
|
|
4072
|
+
refreshFormUrl: z.string().optional(),
|
|
4073
|
+
analytics: z.record(z.string()).optional(),
|
|
4074
|
+
error: z.string().optional(),
|
|
4075
|
+
validation: jsonElementSchema.optional(),
|
|
4076
|
+
refreshUrl: z.string().optional()
|
|
4098
4077
|
});
|
|
4099
|
-
var
|
|
4100
|
-
|
|
4078
|
+
var searchSearchRequestSchema = z.object({
|
|
4079
|
+
url: z.string(),
|
|
4101
4080
|
method: httpMethodSchema,
|
|
4102
|
-
|
|
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()
|
|
4081
|
+
param: z.string(),
|
|
4082
|
+
query: z.string()
|
|
4109
4083
|
});
|
|
4110
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
4111
4084
|
var navigationStackBehaviorSchema = z.union([
|
|
4112
4085
|
z.literal("default"),
|
|
4113
4086
|
z.literal("remove-previous"),
|
|
@@ -4121,7 +4094,12 @@ var actionTypeSchema = z.union([
|
|
|
4121
4094
|
z.literal("positive"),
|
|
4122
4095
|
z.literal("negative")
|
|
4123
4096
|
]);
|
|
4124
|
-
var
|
|
4097
|
+
var iconNamedSchema = z.object({
|
|
4098
|
+
name: z.string()
|
|
4099
|
+
});
|
|
4100
|
+
var iconTextSchema = z.object({
|
|
4101
|
+
text: z.string()
|
|
4102
|
+
});
|
|
4125
4103
|
var actionSchema = z.object({
|
|
4126
4104
|
title: z.string().optional(),
|
|
4127
4105
|
type: actionTypeSchema.optional(),
|
|
@@ -4137,78 +4115,45 @@ var actionSchema = z.object({
|
|
|
4137
4115
|
timeout: z.number().optional(),
|
|
4138
4116
|
skipValidation: z.boolean().optional()
|
|
4139
4117
|
});
|
|
4140
|
-
var
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
var decisionLayoutOptionSchema = z.object({
|
|
4147
|
-
action: actionSchema,
|
|
4148
|
-
title: z.string(),
|
|
4149
|
-
description: z.string().optional(),
|
|
4150
|
-
disabled: z.boolean().optional(),
|
|
4151
|
-
icon: iconSchema.optional(),
|
|
4152
|
-
image: imageLayoutSchema.optional()
|
|
4118
|
+
var markdownLayoutSchema = z.object({
|
|
4119
|
+
type: z.literal("markdown"),
|
|
4120
|
+
content: z.string(),
|
|
4121
|
+
align: alignSchema.optional(),
|
|
4122
|
+
control: z.string().optional(),
|
|
4123
|
+
margin: sizeSchema.optional()
|
|
4153
4124
|
});
|
|
4154
|
-
var
|
|
4125
|
+
var searchLayoutSchema = z.object({
|
|
4126
|
+
type: z.literal("search"),
|
|
4155
4127
|
title: z.string(),
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
var instructionsLayoutSchema = z.object({
|
|
4161
|
-
type: z.literal("instructions"),
|
|
4162
|
-
title: z.string().optional(),
|
|
4163
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
4128
|
+
method: httpMethodSchema,
|
|
4129
|
+
url: z.string(),
|
|
4130
|
+
param: z.string(),
|
|
4131
|
+
emptyMessage: z.string().optional(),
|
|
4164
4132
|
control: z.string().optional(),
|
|
4165
4133
|
margin: sizeSchema.optional()
|
|
4166
4134
|
});
|
|
4167
|
-
var
|
|
4168
|
-
|
|
4169
|
-
|
|
4135
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
4136
|
+
title: z.string(),
|
|
4137
|
+
action: actionSchema
|
|
4138
|
+
});
|
|
4139
|
+
var instructionsLayoutSchema = z.object({
|
|
4140
|
+
type: z.literal("instructions"),
|
|
4170
4141
|
title: z.string().optional(),
|
|
4171
|
-
|
|
4172
|
-
context: contextSchema.optional(),
|
|
4173
|
-
disabled: z.boolean().optional(),
|
|
4174
|
-
pinOrder: z.number().optional(),
|
|
4142
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
4175
4143
|
control: z.string().optional(),
|
|
4176
4144
|
margin: sizeSchema.optional()
|
|
4177
4145
|
});
|
|
4146
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
4178
4147
|
var reviewLayoutFieldSchema = z.object({
|
|
4179
4148
|
label: z.string(),
|
|
4180
4149
|
value: z.string(),
|
|
4181
4150
|
help: helpSchema.optional()
|
|
4182
4151
|
});
|
|
4183
|
-
var
|
|
4184
|
-
type: z.literal("search"),
|
|
4185
|
-
title: z.string(),
|
|
4186
|
-
description: z.string().optional(),
|
|
4187
|
-
icon: iconSchema.optional(),
|
|
4188
|
-
image: imageLayoutSchema.optional(),
|
|
4189
|
-
value: searchSearchRequestSchema
|
|
4190
|
-
});
|
|
4191
|
-
var searchResultActionSchema = z.object({
|
|
4192
|
-
type: z.literal("action"),
|
|
4152
|
+
var statusListLayoutItemSchema = z.object({
|
|
4193
4153
|
title: z.string(),
|
|
4194
4154
|
description: z.string().optional(),
|
|
4195
|
-
icon: iconSchema
|
|
4196
|
-
|
|
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
|
|
4155
|
+
icon: iconSchema,
|
|
4156
|
+
status: statusListLayoutStatusSchema.optional()
|
|
4212
4157
|
});
|
|
4213
4158
|
var blobSchemaSchema = z.object({
|
|
4214
4159
|
type: z.literal("blob"),
|
|
@@ -4248,37 +4193,66 @@ var constSchemaSchema = z.object({
|
|
|
4248
4193
|
analyticsId: z.string().optional(),
|
|
4249
4194
|
disabled: z.boolean().optional()
|
|
4250
4195
|
});
|
|
4251
|
-
var
|
|
4196
|
+
var summarySummariserSchema = z.object({
|
|
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(),
|
|
4252
4208
|
action: actionSchema
|
|
4253
4209
|
});
|
|
4254
|
-
var
|
|
4255
|
-
title: z.string().optional(),
|
|
4210
|
+
var actionResponseBodySchema = z.object({
|
|
4256
4211
|
action: actionSchema
|
|
4257
4212
|
});
|
|
4258
|
-
var
|
|
4213
|
+
var searchResultSearchSchema = z.object({
|
|
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"),
|
|
4259
4223
|
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({
|
|
4260
4230
|
action: actionSchema
|
|
4261
4231
|
});
|
|
4262
|
-
var
|
|
4263
|
-
type: z.literal("list"),
|
|
4264
|
-
items: z.array(listLayoutItemSchema),
|
|
4232
|
+
var navigationBackBehaviourSchema = z.object({
|
|
4265
4233
|
title: z.string().optional(),
|
|
4266
|
-
|
|
4267
|
-
margin: sizeSchema.optional()
|
|
4268
|
-
});
|
|
4269
|
-
var decisionLayoutSchema = z.object({
|
|
4270
|
-
type: z.literal("decision"),
|
|
4271
|
-
options: z.array(decisionLayoutOptionSchema),
|
|
4272
|
-
control: z.string().optional(),
|
|
4273
|
-
margin: sizeSchema.optional()
|
|
4234
|
+
action: actionSchema
|
|
4274
4235
|
});
|
|
4275
|
-
var
|
|
4276
|
-
|
|
4277
|
-
|
|
4236
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
4237
|
+
var buttonLayoutSchema = z.object({
|
|
4238
|
+
type: z.literal("button"),
|
|
4239
|
+
size: sizeSchema.optional(),
|
|
4278
4240
|
title: z.string().optional(),
|
|
4241
|
+
action: actionSchema,
|
|
4242
|
+
context: contextSchema.optional(),
|
|
4243
|
+
disabled: z.boolean().optional(),
|
|
4244
|
+
pinOrder: z.number().optional(),
|
|
4279
4245
|
control: z.string().optional(),
|
|
4280
4246
|
margin: sizeSchema.optional()
|
|
4281
4247
|
});
|
|
4248
|
+
var decisionLayoutOptionSchema = z.object({
|
|
4249
|
+
action: actionSchema,
|
|
4250
|
+
title: z.string(),
|
|
4251
|
+
description: z.string().optional(),
|
|
4252
|
+
disabled: z.boolean().optional(),
|
|
4253
|
+
icon: iconSchema.optional(),
|
|
4254
|
+
image: imageLayoutSchema.optional()
|
|
4255
|
+
});
|
|
4282
4256
|
var reviewLayoutSchema = z.object({
|
|
4283
4257
|
type: z.literal("review"),
|
|
4284
4258
|
orientation: z.string().optional(),
|
|
@@ -4289,7 +4263,19 @@ var reviewLayoutSchema = z.object({
|
|
|
4289
4263
|
control: z.string().optional(),
|
|
4290
4264
|
margin: sizeSchema.optional()
|
|
4291
4265
|
});
|
|
4292
|
-
var
|
|
4266
|
+
var statusListLayoutSchema = z.object({
|
|
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
4279
|
var pollingSchema = z.object({
|
|
4294
4280
|
url: z.string(),
|
|
4295
4281
|
interval: z.number(),
|
|
@@ -4301,9 +4287,33 @@ var navigationSchema = z.object({
|
|
|
4301
4287
|
back: navigationBackBehaviourSchema.optional(),
|
|
4302
4288
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
4303
4289
|
});
|
|
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
4304
|
var searchResponseBodySchema = z.object({
|
|
4305
4305
|
results: z.array(searchResultSchema)
|
|
4306
4306
|
});
|
|
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
|
+
);
|
|
4307
4317
|
var layoutSchema = z.lazy(
|
|
4308
4318
|
() => z.union([
|
|
4309
4319
|
alertLayoutSchema,
|
|
@@ -4327,26 +4337,6 @@ var layoutSchema = z.lazy(
|
|
|
4327
4337
|
statusListLayoutSchema
|
|
4328
4338
|
])
|
|
4329
4339
|
);
|
|
4330
|
-
var boxLayoutSchema = z.lazy(
|
|
4331
|
-
() => z.object({
|
|
4332
|
-
type: z.literal("box"),
|
|
4333
|
-
components: z.array(layoutSchema),
|
|
4334
|
-
width: sizeSchema.optional(),
|
|
4335
|
-
border: z.boolean().optional(),
|
|
4336
|
-
control: z.string().optional(),
|
|
4337
|
-
margin: sizeSchema.optional()
|
|
4338
|
-
})
|
|
4339
|
-
);
|
|
4340
|
-
var columnsLayoutSchema = z.lazy(
|
|
4341
|
-
() => z.object({
|
|
4342
|
-
type: z.literal("columns"),
|
|
4343
|
-
left: z.array(layoutSchema),
|
|
4344
|
-
right: z.array(layoutSchema),
|
|
4345
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
4346
|
-
control: z.string().optional(),
|
|
4347
|
-
margin: sizeSchema.optional()
|
|
4348
|
-
})
|
|
4349
|
-
);
|
|
4350
4340
|
var modalLayoutSchema = z.lazy(
|
|
4351
4341
|
() => z.object({
|
|
4352
4342
|
type: z.literal("modal"),
|
|
@@ -4361,25 +4351,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
4361
4351
|
components: z.array(layoutSchema)
|
|
4362
4352
|
})
|
|
4363
4353
|
);
|
|
4364
|
-
var
|
|
4354
|
+
var boxLayoutSchema = z.lazy(
|
|
4365
4355
|
() => z.object({
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
description: z.string().optional(),
|
|
4373
|
-
schemas: z.array(schemaSchema),
|
|
4374
|
-
layout: z.array(layoutSchema),
|
|
4375
|
-
model: jsonElementSchema.optional(),
|
|
4376
|
-
external: externalSchema.optional(),
|
|
4377
|
-
polling: pollingSchema.optional(),
|
|
4378
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
4379
|
-
analytics: z.record(z.string()).optional(),
|
|
4380
|
-
errors: stepErrorSchema.optional(),
|
|
4381
|
-
navigation: navigationSchema.optional(),
|
|
4382
|
-
refreshUrl: z.string().optional()
|
|
4356
|
+
type: z.literal("box"),
|
|
4357
|
+
components: z.array(layoutSchema),
|
|
4358
|
+
width: sizeSchema.optional(),
|
|
4359
|
+
border: z.boolean().optional(),
|
|
4360
|
+
control: z.string().optional(),
|
|
4361
|
+
margin: sizeSchema.optional()
|
|
4383
4362
|
})
|
|
4384
4363
|
);
|
|
4385
4364
|
var schemaSchema = z.lazy(
|
|
@@ -4605,17 +4584,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
4605
4584
|
help: helpSchema.optional()
|
|
4606
4585
|
})
|
|
4607
4586
|
);
|
|
4608
|
-
var
|
|
4587
|
+
var persistAsyncSchema = z.lazy(
|
|
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
4597
|
() => z.object({
|
|
4610
4598
|
type: z.literal("array"),
|
|
4611
4599
|
promoted: z.boolean().optional(),
|
|
4612
4600
|
$id: z.string().optional(),
|
|
4613
|
-
items: schemaSchema,
|
|
4614
|
-
addItemTitle: z.string(),
|
|
4615
|
-
editItemTitle: z.string(),
|
|
4616
|
-
minItems: z.number().optional(),
|
|
4617
|
-
maxItems: z.number().optional(),
|
|
4618
|
-
placeholder: z.string().optional(),
|
|
4601
|
+
items: z.array(schemaSchema),
|
|
4619
4602
|
title: z.string().optional(),
|
|
4620
4603
|
description: z.string().optional(),
|
|
4621
4604
|
control: z.string().optional(),
|
|
@@ -4623,30 +4606,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
4623
4606
|
icon: iconSchema.optional(),
|
|
4624
4607
|
image: imageSchema.optional(),
|
|
4625
4608
|
keywords: z.array(z.string()).optional(),
|
|
4626
|
-
summary:
|
|
4609
|
+
summary: summaryProviderSchema.optional(),
|
|
4627
4610
|
analyticsId: z.string().optional(),
|
|
4628
4611
|
persistAsync: persistAsyncSchema.optional(),
|
|
4629
4612
|
validationAsync: validateAsyncSchema.optional(),
|
|
4630
|
-
alert: alertLayoutSchema.optional()
|
|
4631
|
-
validationMessages: z.record(z.string()).optional(),
|
|
4632
|
-
disabled: z.boolean().optional()
|
|
4633
|
-
})
|
|
4634
|
-
);
|
|
4635
|
-
var persistAsyncSchema = z.lazy(
|
|
4636
|
-
() => z.object({
|
|
4637
|
-
param: z.string(),
|
|
4638
|
-
idProperty: z.string(),
|
|
4639
|
-
schema: schemaSchema,
|
|
4640
|
-
url: z.string(),
|
|
4641
|
-
method: httpMethodSchema
|
|
4613
|
+
alert: alertLayoutSchema.optional()
|
|
4642
4614
|
})
|
|
4643
4615
|
);
|
|
4644
|
-
var
|
|
4616
|
+
var arraySchemaListSchema = z.lazy(
|
|
4645
4617
|
() => z.object({
|
|
4646
4618
|
type: z.literal("array"),
|
|
4647
4619
|
promoted: z.boolean().optional(),
|
|
4648
4620
|
$id: z.string().optional(),
|
|
4649
|
-
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(),
|
|
4650
4627
|
title: z.string().optional(),
|
|
4651
4628
|
description: z.string().optional(),
|
|
4652
4629
|
control: z.string().optional(),
|
|
@@ -4654,11 +4631,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
4654
4631
|
icon: iconSchema.optional(),
|
|
4655
4632
|
image: imageSchema.optional(),
|
|
4656
4633
|
keywords: z.array(z.string()).optional(),
|
|
4657
|
-
summary:
|
|
4634
|
+
summary: summarySummariserSchema.optional(),
|
|
4658
4635
|
analyticsId: z.string().optional(),
|
|
4659
4636
|
persistAsync: persistAsyncSchema.optional(),
|
|
4660
4637
|
validationAsync: validateAsyncSchema.optional(),
|
|
4661
|
-
alert: alertLayoutSchema.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
4662
|
})
|
|
4663
4663
|
);
|
|
4664
4664
|
|