@wise/dynamic-flow-client 3.19.2 → 3.19.3-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/package.json +4 -4
package/build/main.js
CHANGED
|
@@ -5851,21 +5851,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5851
5851
|
quotelessJson,
|
|
5852
5852
|
ZodError
|
|
5853
5853
|
});
|
|
5854
|
-
var
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
z.literal("GET"),
|
|
5861
|
-
z.literal("POST"),
|
|
5862
|
-
z.literal("PUT"),
|
|
5863
|
-
z.literal("PATCH"),
|
|
5864
|
-
z.literal("DELETE")
|
|
5854
|
+
var sizeSchema = z.union([
|
|
5855
|
+
z.literal("xs"),
|
|
5856
|
+
z.literal("sm"),
|
|
5857
|
+
z.literal("md"),
|
|
5858
|
+
z.literal("lg"),
|
|
5859
|
+
z.literal("xl")
|
|
5865
5860
|
]);
|
|
5866
|
-
var iconNamedSchema = z.object({
|
|
5867
|
-
name: z.string()
|
|
5868
|
-
});
|
|
5869
5861
|
var contextSchema = z.union([
|
|
5870
5862
|
z.literal("positive"),
|
|
5871
5863
|
z.literal("neutral"),
|
|
@@ -5876,18 +5868,107 @@ var contextSchema = z.union([
|
|
|
5876
5868
|
z.literal("info"),
|
|
5877
5869
|
z.literal("primary")
|
|
5878
5870
|
]);
|
|
5879
|
-
var
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
z.literal("
|
|
5886
|
-
z.literal("
|
|
5887
|
-
z.literal("
|
|
5871
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5872
|
+
z.literal("none"),
|
|
5873
|
+
z.literal("left"),
|
|
5874
|
+
z.literal("right")
|
|
5875
|
+
]);
|
|
5876
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5877
|
+
z.literal("not-done"),
|
|
5878
|
+
z.literal("pending"),
|
|
5879
|
+
z.literal("done")
|
|
5888
5880
|
]);
|
|
5889
5881
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5890
|
-
var
|
|
5882
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5883
|
+
$ref: z.string()
|
|
5884
|
+
});
|
|
5885
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5886
|
+
title: z.string()
|
|
5887
|
+
});
|
|
5888
|
+
var httpMethodSchema = z.union([
|
|
5889
|
+
z.literal("GET"),
|
|
5890
|
+
z.literal("POST"),
|
|
5891
|
+
z.literal("PUT"),
|
|
5892
|
+
z.literal("PATCH"),
|
|
5893
|
+
z.literal("DELETE")
|
|
5894
|
+
]);
|
|
5895
|
+
var dividerLayoutSchema = z.object({
|
|
5896
|
+
type: z.literal("divider"),
|
|
5897
|
+
control: z.string().optional(),
|
|
5898
|
+
margin: sizeSchema.optional()
|
|
5899
|
+
});
|
|
5900
|
+
var listLayoutStatusSchema = z.union([
|
|
5901
|
+
z.literal("warning"),
|
|
5902
|
+
z.literal("neutral"),
|
|
5903
|
+
z.literal("positive")
|
|
5904
|
+
]);
|
|
5905
|
+
var headingLayoutSchema = z.object({
|
|
5906
|
+
type: z.literal("heading"),
|
|
5907
|
+
text: z.string(),
|
|
5908
|
+
size: sizeSchema.optional(),
|
|
5909
|
+
align: alignSchema.optional(),
|
|
5910
|
+
control: z.string().optional(),
|
|
5911
|
+
margin: sizeSchema.optional()
|
|
5912
|
+
});
|
|
5913
|
+
var formLayoutSchema = z.object({
|
|
5914
|
+
type: z.literal("form"),
|
|
5915
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5916
|
+
schemaId: z.string(),
|
|
5917
|
+
control: z.string().optional(),
|
|
5918
|
+
margin: sizeSchema.optional()
|
|
5919
|
+
});
|
|
5920
|
+
var imageLayoutSchema = z.object({
|
|
5921
|
+
type: z.literal("image"),
|
|
5922
|
+
text: z.string().optional(),
|
|
5923
|
+
url: z.string(),
|
|
5924
|
+
size: sizeSchema.optional(),
|
|
5925
|
+
accessibilityDescription: z.string().optional(),
|
|
5926
|
+
control: z.string().optional(),
|
|
5927
|
+
margin: sizeSchema.optional()
|
|
5928
|
+
});
|
|
5929
|
+
var infoLayoutSchema = z.object({
|
|
5930
|
+
type: z.literal("info"),
|
|
5931
|
+
markdown: z.string(),
|
|
5932
|
+
align: alignSchema.optional(),
|
|
5933
|
+
control: z.string().optional(),
|
|
5934
|
+
margin: sizeSchema.optional()
|
|
5935
|
+
});
|
|
5936
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5937
|
+
type: z.literal("loading-indicator"),
|
|
5938
|
+
size: sizeSchema.optional(),
|
|
5939
|
+
control: z.string().optional(),
|
|
5940
|
+
margin: sizeSchema.optional()
|
|
5941
|
+
});
|
|
5942
|
+
var paragraphLayoutSchema = z.object({
|
|
5943
|
+
type: z.literal("paragraph"),
|
|
5944
|
+
text: z.string(),
|
|
5945
|
+
align: alignSchema.optional(),
|
|
5946
|
+
control: z.string().optional(),
|
|
5947
|
+
margin: sizeSchema.optional()
|
|
5948
|
+
});
|
|
5949
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5950
|
+
text: z.string(),
|
|
5951
|
+
context: contextSchema
|
|
5952
|
+
});
|
|
5953
|
+
var helpSchema = z.object({
|
|
5954
|
+
markdown: z.string()
|
|
5955
|
+
});
|
|
5956
|
+
var imageSchema = z.object({
|
|
5957
|
+
text: z.string().optional(),
|
|
5958
|
+
url: z.string(),
|
|
5959
|
+
accessibilityDescription: z.string().optional()
|
|
5960
|
+
});
|
|
5961
|
+
var summaryProviderSchema = z.object({
|
|
5962
|
+
providesTitle: z.boolean().optional(),
|
|
5963
|
+
providesDescription: z.boolean().optional(),
|
|
5964
|
+
providesIcon: z.boolean().optional(),
|
|
5965
|
+
providesImage: z.boolean().optional()
|
|
5966
|
+
});
|
|
5967
|
+
var validateAsyncSchema = z.object({
|
|
5968
|
+
param: z.string(),
|
|
5969
|
+
method: httpMethodSchema,
|
|
5970
|
+
url: z.string()
|
|
5971
|
+
});
|
|
5891
5972
|
var autocompleteTokenSchema = z.union([
|
|
5892
5973
|
z.literal("on"),
|
|
5893
5974
|
z.literal("name"),
|
|
@@ -5953,106 +6034,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
5953
6034
|
z.literal("fax"),
|
|
5954
6035
|
z.literal("pager")
|
|
5955
6036
|
]);
|
|
5956
|
-
var
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
type: z.literal("paragraph"),
|
|
5964
|
-
text: z.string(),
|
|
5965
|
-
align: alignSchema.optional(),
|
|
5966
|
-
control: z.string().optional(),
|
|
5967
|
-
margin: sizeSchema.optional()
|
|
5968
|
-
});
|
|
5969
|
-
var dividerLayoutSchema = z.object({
|
|
5970
|
-
type: z.literal("divider"),
|
|
5971
|
-
control: z.string().optional(),
|
|
5972
|
-
margin: sizeSchema.optional()
|
|
5973
|
-
});
|
|
5974
|
-
var listLayoutStatusSchema = z.union([
|
|
5975
|
-
z.literal("warning"),
|
|
5976
|
-
z.literal("neutral"),
|
|
5977
|
-
z.literal("positive")
|
|
5978
|
-
]);
|
|
5979
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5980
|
-
$ref: z.string()
|
|
5981
|
-
});
|
|
5982
|
-
var imageLayoutSchema = z.object({
|
|
5983
|
-
type: z.literal("image"),
|
|
5984
|
-
text: z.string().optional(),
|
|
5985
|
-
url: z.string(),
|
|
5986
|
-
size: sizeSchema.optional(),
|
|
5987
|
-
accessibilityDescription: z.string().optional(),
|
|
5988
|
-
control: z.string().optional(),
|
|
5989
|
-
margin: sizeSchema.optional()
|
|
5990
|
-
});
|
|
5991
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5992
|
-
z.literal("not-done"),
|
|
5993
|
-
z.literal("pending"),
|
|
5994
|
-
z.literal("done")
|
|
5995
|
-
]);
|
|
5996
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5997
|
-
text: z.string(),
|
|
5998
|
-
context: contextSchema
|
|
5999
|
-
});
|
|
6000
|
-
var modalLayoutTriggerSchema = z.object({
|
|
6001
|
-
title: z.string()
|
|
6002
|
-
});
|
|
6003
|
-
var searchLayoutSchema = z.object({
|
|
6004
|
-
type: z.literal("search"),
|
|
6005
|
-
title: z.string(),
|
|
6006
|
-
method: httpMethodSchema,
|
|
6007
|
-
url: z.string(),
|
|
6008
|
-
param: z.string(),
|
|
6009
|
-
emptyMessage: z.string().optional(),
|
|
6010
|
-
control: z.string().optional(),
|
|
6011
|
-
margin: sizeSchema.optional()
|
|
6012
|
-
});
|
|
6013
|
-
var infoLayoutSchema = z.object({
|
|
6014
|
-
type: z.literal("info"),
|
|
6015
|
-
markdown: z.string(),
|
|
6016
|
-
align: alignSchema.optional(),
|
|
6017
|
-
control: z.string().optional(),
|
|
6018
|
-
margin: sizeSchema.optional()
|
|
6019
|
-
});
|
|
6020
|
-
var formLayoutSchema = z.object({
|
|
6021
|
-
type: z.literal("form"),
|
|
6022
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
6023
|
-
schemaId: z.string(),
|
|
6024
|
-
control: z.string().optional(),
|
|
6025
|
-
margin: sizeSchema.optional()
|
|
6026
|
-
});
|
|
6027
|
-
var headingLayoutSchema = z.object({
|
|
6028
|
-
type: z.literal("heading"),
|
|
6029
|
-
text: z.string(),
|
|
6030
|
-
size: sizeSchema.optional(),
|
|
6031
|
-
align: alignSchema.optional(),
|
|
6032
|
-
control: z.string().optional(),
|
|
6033
|
-
margin: sizeSchema.optional()
|
|
6034
|
-
});
|
|
6035
|
-
var markdownLayoutSchema = z.object({
|
|
6036
|
-
type: z.literal("markdown"),
|
|
6037
|
-
content: z.string(),
|
|
6038
|
-
align: alignSchema.optional(),
|
|
6039
|
-
control: z.string().optional(),
|
|
6040
|
-
margin: sizeSchema.optional()
|
|
6041
|
-
});
|
|
6042
|
-
var columnsLayoutBiasSchema = z.union([
|
|
6043
|
-
z.literal("none"),
|
|
6044
|
-
z.literal("left"),
|
|
6045
|
-
z.literal("right")
|
|
6037
|
+
var stringSchemaFormatSchema = z.union([
|
|
6038
|
+
z.literal("date"),
|
|
6039
|
+
z.literal("email"),
|
|
6040
|
+
z.literal("numeric"),
|
|
6041
|
+
z.literal("password"),
|
|
6042
|
+
z.literal("phone-number"),
|
|
6043
|
+
z.literal("base64url")
|
|
6046
6044
|
]);
|
|
6047
|
-
var helpSchema = z.object({
|
|
6048
|
-
markdown: z.string()
|
|
6049
|
-
});
|
|
6050
|
-
var searchSearchRequestSchema = z.object({
|
|
6051
|
-
url: z.string(),
|
|
6052
|
-
method: httpMethodSchema,
|
|
6053
|
-
param: z.string(),
|
|
6054
|
-
query: z.string()
|
|
6055
|
-
});
|
|
6056
6045
|
var jsonElementSchema = z.lazy(
|
|
6057
6046
|
() => z.union([
|
|
6058
6047
|
z.string(),
|
|
@@ -6062,6 +6051,7 @@ var jsonElementSchema = z.lazy(
|
|
|
6062
6051
|
z.array(jsonElementSchema)
|
|
6063
6052
|
]).nullable()
|
|
6064
6053
|
);
|
|
6054
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6065
6055
|
var externalSchema = z.object({
|
|
6066
6056
|
url: z.string()
|
|
6067
6057
|
});
|
|
@@ -6069,42 +6059,28 @@ var stepErrorSchema = z.object({
|
|
|
6069
6059
|
error: z.string().optional(),
|
|
6070
6060
|
validation: jsonElementSchema.optional()
|
|
6071
6061
|
});
|
|
6072
|
-
var
|
|
6073
|
-
z.
|
|
6074
|
-
z.
|
|
6075
|
-
z.
|
|
6076
|
-
|
|
6077
|
-
z.
|
|
6078
|
-
z.literal("base64url")
|
|
6079
|
-
]);
|
|
6080
|
-
var summarySummariserSchema = z.object({
|
|
6081
|
-
defaultTitle: z.string().optional(),
|
|
6082
|
-
defaultDescription: z.string().optional(),
|
|
6083
|
-
defaultIcon: iconSchema.optional(),
|
|
6084
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
6085
|
-
providesTitle: z.boolean().optional(),
|
|
6086
|
-
providesDescription: z.boolean().optional(),
|
|
6087
|
-
providesIcon: z.boolean().optional(),
|
|
6088
|
-
providesImage: z.boolean().optional()
|
|
6062
|
+
var errorResponseBodySchema = z.object({
|
|
6063
|
+
refreshFormUrl: z.string().optional(),
|
|
6064
|
+
analytics: z.record(z.string()).optional(),
|
|
6065
|
+
error: z.string().optional(),
|
|
6066
|
+
validation: jsonElementSchema.optional(),
|
|
6067
|
+
refreshUrl: z.string().optional()
|
|
6089
6068
|
});
|
|
6090
|
-
var
|
|
6091
|
-
|
|
6069
|
+
var searchSearchRequestSchema = z.object({
|
|
6070
|
+
url: z.string(),
|
|
6092
6071
|
method: httpMethodSchema,
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
var summaryProviderSchema = z.object({
|
|
6096
|
-
providesTitle: z.boolean().optional(),
|
|
6097
|
-
providesDescription: z.boolean().optional(),
|
|
6098
|
-
providesIcon: z.boolean().optional(),
|
|
6099
|
-
providesImage: z.boolean().optional()
|
|
6072
|
+
param: z.string(),
|
|
6073
|
+
query: z.string()
|
|
6100
6074
|
});
|
|
6101
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6102
6075
|
var navigationStackBehaviorSchema = z.union([
|
|
6103
6076
|
z.literal("default"),
|
|
6104
6077
|
z.literal("remove-previous"),
|
|
6105
6078
|
z.literal("remove-all"),
|
|
6106
6079
|
z.literal("replace-current")
|
|
6107
6080
|
]);
|
|
6081
|
+
var linkSchema = z.object({
|
|
6082
|
+
url: z.string()
|
|
6083
|
+
});
|
|
6108
6084
|
var actionTypeSchema = z.union([
|
|
6109
6085
|
z.literal("primary"),
|
|
6110
6086
|
z.literal("secondary"),
|
|
@@ -6112,9 +6088,11 @@ var actionTypeSchema = z.union([
|
|
|
6112
6088
|
z.literal("positive"),
|
|
6113
6089
|
z.literal("negative")
|
|
6114
6090
|
]);
|
|
6115
|
-
var
|
|
6116
|
-
|
|
6117
|
-
|
|
6091
|
+
var iconNamedSchema = z.object({
|
|
6092
|
+
name: z.string()
|
|
6093
|
+
});
|
|
6094
|
+
var iconTextSchema = z.object({
|
|
6095
|
+
text: z.string()
|
|
6118
6096
|
});
|
|
6119
6097
|
var actionSchema = z.object({
|
|
6120
6098
|
title: z.string().optional(),
|
|
@@ -6131,25 +6109,26 @@ var actionSchema = z.object({
|
|
|
6131
6109
|
timeout: z.number().optional(),
|
|
6132
6110
|
skipValidation: z.boolean().optional()
|
|
6133
6111
|
});
|
|
6134
|
-
var
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6112
|
+
var markdownLayoutSchema = z.object({
|
|
6113
|
+
type: z.literal("markdown"),
|
|
6114
|
+
content: z.string(),
|
|
6115
|
+
align: alignSchema.optional(),
|
|
6116
|
+
control: z.string().optional(),
|
|
6117
|
+
margin: sizeSchema.optional()
|
|
6139
6118
|
});
|
|
6140
|
-
var
|
|
6141
|
-
|
|
6119
|
+
var searchLayoutSchema = z.object({
|
|
6120
|
+
type: z.literal("search"),
|
|
6142
6121
|
title: z.string(),
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6122
|
+
method: httpMethodSchema,
|
|
6123
|
+
url: z.string(),
|
|
6124
|
+
param: z.string(),
|
|
6125
|
+
emptyMessage: z.string().optional(),
|
|
6126
|
+
control: z.string().optional(),
|
|
6127
|
+
margin: sizeSchema.optional()
|
|
6147
6128
|
});
|
|
6148
|
-
var
|
|
6129
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6149
6130
|
title: z.string(),
|
|
6150
|
-
|
|
6151
|
-
icon: iconSchema,
|
|
6152
|
-
status: statusListLayoutStatusSchema.optional()
|
|
6131
|
+
action: actionSchema
|
|
6153
6132
|
});
|
|
6154
6133
|
var instructionsLayoutSchema = z.object({
|
|
6155
6134
|
type: z.literal("instructions"),
|
|
@@ -6158,26 +6137,39 @@ var instructionsLayoutSchema = z.object({
|
|
|
6158
6137
|
control: z.string().optional(),
|
|
6159
6138
|
margin: sizeSchema.optional()
|
|
6160
6139
|
});
|
|
6161
|
-
var
|
|
6162
|
-
type: z.literal("button"),
|
|
6163
|
-
size: sizeSchema.optional(),
|
|
6164
|
-
title: z.string().optional(),
|
|
6165
|
-
action: actionSchema,
|
|
6166
|
-
context: contextSchema.optional(),
|
|
6167
|
-
disabled: z.boolean().optional(),
|
|
6168
|
-
pinOrder: z.number().optional(),
|
|
6169
|
-
control: z.string().optional(),
|
|
6170
|
-
margin: sizeSchema.optional()
|
|
6171
|
-
});
|
|
6140
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
6172
6141
|
var reviewLayoutFieldSchema = z.object({
|
|
6173
6142
|
label: z.string(),
|
|
6174
6143
|
value: z.string(),
|
|
6175
6144
|
help: helpSchema.optional()
|
|
6176
6145
|
});
|
|
6146
|
+
var statusListLayoutItemSchema = z.object({
|
|
6147
|
+
title: z.string(),
|
|
6148
|
+
description: z.string().optional(),
|
|
6149
|
+
icon: iconSchema,
|
|
6150
|
+
status: statusListLayoutStatusSchema.optional()
|
|
6151
|
+
});
|
|
6177
6152
|
var behaviorSchema = z.object({
|
|
6178
6153
|
action: actionSchema.optional(),
|
|
6179
6154
|
link: linkSchema.optional()
|
|
6180
6155
|
});
|
|
6156
|
+
var summarySummariserSchema = z.object({
|
|
6157
|
+
defaultTitle: z.string().optional(),
|
|
6158
|
+
defaultDescription: z.string().optional(),
|
|
6159
|
+
defaultIcon: iconSchema.optional(),
|
|
6160
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
6161
|
+
providesTitle: z.boolean().optional(),
|
|
6162
|
+
providesDescription: z.boolean().optional(),
|
|
6163
|
+
providesIcon: z.boolean().optional(),
|
|
6164
|
+
providesImage: z.boolean().optional()
|
|
6165
|
+
});
|
|
6166
|
+
var linkHandlerSchema = z.object({
|
|
6167
|
+
regexPattern: z.string(),
|
|
6168
|
+
action: actionSchema
|
|
6169
|
+
});
|
|
6170
|
+
var actionResponseBodySchema = z.object({
|
|
6171
|
+
action: actionSchema
|
|
6172
|
+
});
|
|
6181
6173
|
var searchResultSearchSchema = z.object({
|
|
6182
6174
|
type: z.literal("search"),
|
|
6183
6175
|
title: z.string(),
|
|
@@ -6194,20 +6186,6 @@ var searchResultActionSchema = z.object({
|
|
|
6194
6186
|
image: imageLayoutSchema.optional(),
|
|
6195
6187
|
value: actionSchema
|
|
6196
6188
|
});
|
|
6197
|
-
var actionResponseBodySchema = z.object({
|
|
6198
|
-
action: actionSchema
|
|
6199
|
-
});
|
|
6200
|
-
var errorResponseBodySchema = z.object({
|
|
6201
|
-
refreshFormUrl: z.string().optional(),
|
|
6202
|
-
analytics: z.record(z.string()).optional(),
|
|
6203
|
-
error: z.string().optional(),
|
|
6204
|
-
validation: jsonElementSchema.optional(),
|
|
6205
|
-
refreshUrl: z.string().optional()
|
|
6206
|
-
});
|
|
6207
|
-
var linkHandlerSchema = z.object({
|
|
6208
|
-
regexPattern: z.string(),
|
|
6209
|
-
action: actionSchema
|
|
6210
|
-
});
|
|
6211
6189
|
var pollingOnErrorSchema = z.object({
|
|
6212
6190
|
action: actionSchema
|
|
6213
6191
|
});
|
|
@@ -6215,26 +6193,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
6215
6193
|
title: z.string().optional(),
|
|
6216
6194
|
action: actionSchema
|
|
6217
6195
|
});
|
|
6218
|
-
var
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
6223
|
-
title: z.string(),
|
|
6224
|
-
accessibilityDescription: z.string().optional(),
|
|
6225
|
-
behavior: behaviorSchema
|
|
6226
|
-
});
|
|
6227
|
-
var listLayoutSchema = z.object({
|
|
6228
|
-
type: z.literal("list"),
|
|
6229
|
-
items: z.array(listLayoutItemSchema),
|
|
6196
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6197
|
+
var buttonLayoutSchema = z.object({
|
|
6198
|
+
type: z.literal("button"),
|
|
6199
|
+
size: sizeSchema.optional(),
|
|
6230
6200
|
title: z.string().optional(),
|
|
6201
|
+
action: actionSchema,
|
|
6202
|
+
context: contextSchema.optional(),
|
|
6203
|
+
disabled: z.boolean().optional(),
|
|
6204
|
+
pinOrder: z.number().optional(),
|
|
6231
6205
|
control: z.string().optional(),
|
|
6232
6206
|
margin: sizeSchema.optional()
|
|
6233
6207
|
});
|
|
6234
|
-
var
|
|
6235
|
-
|
|
6208
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6209
|
+
action: actionSchema,
|
|
6210
|
+
title: z.string(),
|
|
6211
|
+
description: z.string().optional(),
|
|
6212
|
+
disabled: z.boolean().optional(),
|
|
6213
|
+
icon: iconSchema.optional(),
|
|
6214
|
+
image: imageLayoutSchema.optional()
|
|
6215
|
+
});
|
|
6216
|
+
var reviewLayoutSchema = z.object({
|
|
6217
|
+
type: z.literal("review"),
|
|
6218
|
+
orientation: z.string().optional(),
|
|
6219
|
+
action: actionSchema.optional(),
|
|
6220
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
6236
6221
|
title: z.string().optional(),
|
|
6237
|
-
|
|
6222
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
6238
6223
|
control: z.string().optional(),
|
|
6239
6224
|
margin: sizeSchema.optional()
|
|
6240
6225
|
});
|
|
@@ -6245,17 +6230,17 @@ var statusListLayoutSchema = z.object({
|
|
|
6245
6230
|
control: z.string().optional(),
|
|
6246
6231
|
margin: sizeSchema.optional()
|
|
6247
6232
|
});
|
|
6248
|
-
var
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6233
|
+
var listLayoutItemSchema = z.object({
|
|
6234
|
+
title: z.string(),
|
|
6235
|
+
description: z.string().optional(),
|
|
6236
|
+
icon: iconSchema,
|
|
6237
|
+
status: listLayoutStatusSchema.optional()
|
|
6238
|
+
});
|
|
6239
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6240
|
+
title: z.string(),
|
|
6241
|
+
accessibilityDescription: z.string().optional(),
|
|
6242
|
+
behavior: behaviorSchema
|
|
6257
6243
|
});
|
|
6258
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6259
6244
|
var pollingSchema = z.object({
|
|
6260
6245
|
url: z.string(),
|
|
6261
6246
|
interval: z.number().optional(),
|
|
@@ -6269,6 +6254,14 @@ var navigationSchema = z.object({
|
|
|
6269
6254
|
back: navigationBackBehaviorSchema.optional(),
|
|
6270
6255
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6271
6256
|
});
|
|
6257
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6258
|
+
var decisionLayoutSchema = z.object({
|
|
6259
|
+
type: z.literal("decision"),
|
|
6260
|
+
title: z.string().optional(),
|
|
6261
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6262
|
+
control: z.string().optional(),
|
|
6263
|
+
margin: sizeSchema.optional()
|
|
6264
|
+
});
|
|
6272
6265
|
var alertLayoutSchema = z.object({
|
|
6273
6266
|
type: z.literal("alert"),
|
|
6274
6267
|
markdown: z.string(),
|
|
@@ -6277,8 +6270,12 @@ var alertLayoutSchema = z.object({
|
|
|
6277
6270
|
margin: sizeSchema.optional(),
|
|
6278
6271
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6279
6272
|
});
|
|
6280
|
-
var
|
|
6281
|
-
|
|
6273
|
+
var listLayoutSchema = z.object({
|
|
6274
|
+
type: z.literal("list"),
|
|
6275
|
+
items: z.array(listLayoutItemSchema),
|
|
6276
|
+
title: z.string().optional(),
|
|
6277
|
+
control: z.string().optional(),
|
|
6278
|
+
margin: sizeSchema.optional()
|
|
6282
6279
|
});
|
|
6283
6280
|
var blobSchemaSchema = z.object({
|
|
6284
6281
|
type: z.literal("blob"),
|
|
@@ -6318,6 +6315,19 @@ var constSchemaSchema = z.object({
|
|
|
6318
6315
|
analyticsId: z.string().optional(),
|
|
6319
6316
|
disabled: z.boolean().optional()
|
|
6320
6317
|
});
|
|
6318
|
+
var searchResponseBodySchema = z.object({
|
|
6319
|
+
results: z.array(searchResultSchema)
|
|
6320
|
+
});
|
|
6321
|
+
var columnsLayoutSchema = z.lazy(
|
|
6322
|
+
() => z.object({
|
|
6323
|
+
type: z.literal("columns"),
|
|
6324
|
+
left: z.array(layoutSchema),
|
|
6325
|
+
right: z.array(layoutSchema),
|
|
6326
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6327
|
+
control: z.string().optional(),
|
|
6328
|
+
margin: sizeSchema.optional()
|
|
6329
|
+
})
|
|
6330
|
+
);
|
|
6321
6331
|
var layoutSchema = z.lazy(
|
|
6322
6332
|
() => z.union([
|
|
6323
6333
|
alertLayoutSchema,
|
|
@@ -6341,26 +6351,6 @@ var layoutSchema = z.lazy(
|
|
|
6341
6351
|
statusListLayoutSchema
|
|
6342
6352
|
])
|
|
6343
6353
|
);
|
|
6344
|
-
var boxLayoutSchema = z.lazy(
|
|
6345
|
-
() => z.object({
|
|
6346
|
-
type: z.literal("box"),
|
|
6347
|
-
components: z.array(layoutSchema),
|
|
6348
|
-
width: sizeSchema.optional(),
|
|
6349
|
-
border: z.boolean().optional(),
|
|
6350
|
-
control: z.string().optional(),
|
|
6351
|
-
margin: sizeSchema.optional()
|
|
6352
|
-
})
|
|
6353
|
-
);
|
|
6354
|
-
var columnsLayoutSchema = z.lazy(
|
|
6355
|
-
() => z.object({
|
|
6356
|
-
type: z.literal("columns"),
|
|
6357
|
-
left: z.array(layoutSchema),
|
|
6358
|
-
right: z.array(layoutSchema),
|
|
6359
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6360
|
-
control: z.string().optional(),
|
|
6361
|
-
margin: sizeSchema.optional()
|
|
6362
|
-
})
|
|
6363
|
-
);
|
|
6364
6354
|
var modalLayoutSchema = z.lazy(
|
|
6365
6355
|
() => z.object({
|
|
6366
6356
|
type: z.literal("modal"),
|
|
@@ -6376,25 +6366,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
6376
6366
|
components: z.array(layoutSchema)
|
|
6377
6367
|
})
|
|
6378
6368
|
);
|
|
6379
|
-
var
|
|
6369
|
+
var boxLayoutSchema = z.lazy(
|
|
6380
6370
|
() => z.object({
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
schemas: z.array(schemaSchema),
|
|
6388
|
-
layout: z.array(layoutSchema),
|
|
6389
|
-
description: z.string().optional(),
|
|
6390
|
-
model: jsonElementSchema.optional(),
|
|
6391
|
-
external: externalSchema.optional(),
|
|
6392
|
-
polling: pollingSchema.optional(),
|
|
6393
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6394
|
-
analytics: z.record(z.string()).optional(),
|
|
6395
|
-
errors: stepErrorSchema.optional(),
|
|
6396
|
-
navigation: navigationSchema.optional(),
|
|
6397
|
-
refreshUrl: z.string().optional()
|
|
6371
|
+
type: z.literal("box"),
|
|
6372
|
+
components: z.array(layoutSchema),
|
|
6373
|
+
width: sizeSchema.optional(),
|
|
6374
|
+
border: z.boolean().optional(),
|
|
6375
|
+
control: z.string().optional(),
|
|
6376
|
+
margin: sizeSchema.optional()
|
|
6398
6377
|
})
|
|
6399
6378
|
);
|
|
6400
6379
|
var schemaSchema = z.lazy(
|
|
@@ -6620,17 +6599,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6620
6599
|
help: helpSchema.optional()
|
|
6621
6600
|
})
|
|
6622
6601
|
);
|
|
6623
|
-
var
|
|
6602
|
+
var persistAsyncSchema = z.lazy(
|
|
6603
|
+
() => z.object({
|
|
6604
|
+
param: z.string(),
|
|
6605
|
+
idProperty: z.string(),
|
|
6606
|
+
schema: schemaSchema,
|
|
6607
|
+
url: z.string(),
|
|
6608
|
+
method: httpMethodSchema
|
|
6609
|
+
})
|
|
6610
|
+
);
|
|
6611
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6624
6612
|
() => z.object({
|
|
6625
6613
|
type: z.literal("array"),
|
|
6626
6614
|
promoted: z.boolean().optional(),
|
|
6627
6615
|
$id: z.string().optional(),
|
|
6628
|
-
items: schemaSchema,
|
|
6629
|
-
addItemTitle: z.string(),
|
|
6630
|
-
editItemTitle: z.string(),
|
|
6631
|
-
minItems: z.number().optional(),
|
|
6632
|
-
maxItems: z.number().optional(),
|
|
6633
|
-
placeholder: z.string().optional(),
|
|
6616
|
+
items: z.array(schemaSchema),
|
|
6634
6617
|
title: z.string().optional(),
|
|
6635
6618
|
description: z.string().optional(),
|
|
6636
6619
|
control: z.string().optional(),
|
|
@@ -6638,30 +6621,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6638
6621
|
icon: iconSchema.optional(),
|
|
6639
6622
|
image: imageSchema.optional(),
|
|
6640
6623
|
keywords: z.array(z.string()).optional(),
|
|
6641
|
-
summary:
|
|
6624
|
+
summary: summaryProviderSchema.optional(),
|
|
6642
6625
|
analyticsId: z.string().optional(),
|
|
6643
6626
|
persistAsync: persistAsyncSchema.optional(),
|
|
6644
6627
|
validationAsync: validateAsyncSchema.optional(),
|
|
6645
|
-
alert: alertLayoutSchema.optional()
|
|
6646
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6647
|
-
disabled: z.boolean().optional()
|
|
6648
|
-
})
|
|
6649
|
-
);
|
|
6650
|
-
var persistAsyncSchema = z.lazy(
|
|
6651
|
-
() => z.object({
|
|
6652
|
-
param: z.string(),
|
|
6653
|
-
idProperty: z.string(),
|
|
6654
|
-
schema: schemaSchema,
|
|
6655
|
-
url: z.string(),
|
|
6656
|
-
method: httpMethodSchema
|
|
6628
|
+
alert: alertLayoutSchema.optional()
|
|
6657
6629
|
})
|
|
6658
6630
|
);
|
|
6659
|
-
var
|
|
6631
|
+
var arraySchemaListSchema = z.lazy(
|
|
6660
6632
|
() => z.object({
|
|
6661
6633
|
type: z.literal("array"),
|
|
6662
6634
|
promoted: z.boolean().optional(),
|
|
6663
6635
|
$id: z.string().optional(),
|
|
6664
|
-
items:
|
|
6636
|
+
items: schemaSchema,
|
|
6637
|
+
addItemTitle: z.string(),
|
|
6638
|
+
editItemTitle: z.string(),
|
|
6639
|
+
minItems: z.number().optional(),
|
|
6640
|
+
maxItems: z.number().optional(),
|
|
6641
|
+
placeholder: z.string().optional(),
|
|
6665
6642
|
title: z.string().optional(),
|
|
6666
6643
|
description: z.string().optional(),
|
|
6667
6644
|
control: z.string().optional(),
|
|
@@ -6669,11 +6646,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6669
6646
|
icon: iconSchema.optional(),
|
|
6670
6647
|
image: imageSchema.optional(),
|
|
6671
6648
|
keywords: z.array(z.string()).optional(),
|
|
6672
|
-
summary:
|
|
6649
|
+
summary: summarySummariserSchema.optional(),
|
|
6673
6650
|
analyticsId: z.string().optional(),
|
|
6674
6651
|
persistAsync: persistAsyncSchema.optional(),
|
|
6675
6652
|
validationAsync: validateAsyncSchema.optional(),
|
|
6676
|
-
alert: alertLayoutSchema.optional()
|
|
6653
|
+
alert: alertLayoutSchema.optional(),
|
|
6654
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6655
|
+
disabled: z.boolean().optional()
|
|
6656
|
+
})
|
|
6657
|
+
);
|
|
6658
|
+
var stepSchema = z.lazy(
|
|
6659
|
+
() => z.object({
|
|
6660
|
+
key: z.string().optional(),
|
|
6661
|
+
type: z.string().optional(),
|
|
6662
|
+
actions: z.array(actionSchema).optional(),
|
|
6663
|
+
refreshFormUrl: z.string().optional(),
|
|
6664
|
+
id: z.string(),
|
|
6665
|
+
title: z.string(),
|
|
6666
|
+
schemas: z.array(schemaSchema),
|
|
6667
|
+
layout: z.array(layoutSchema),
|
|
6668
|
+
description: z.string().optional(),
|
|
6669
|
+
model: jsonElementSchema.optional(),
|
|
6670
|
+
external: externalSchema.optional(),
|
|
6671
|
+
polling: pollingSchema.optional(),
|
|
6672
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6673
|
+
analytics: z.record(z.string()).optional(),
|
|
6674
|
+
errors: stepErrorSchema.optional(),
|
|
6675
|
+
navigation: navigationSchema.optional(),
|
|
6676
|
+
refreshUrl: z.string().optional()
|
|
6677
6677
|
})
|
|
6678
6678
|
);
|
|
6679
6679
|
var validateStep = (step) => validate(step, stepSchema);
|