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