@wise/dynamic-flow-client 3.29.3 → 3.29.4-experimental-ff1ed46
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 +299 -299
- package/build/main.min.js +1 -1
- package/build/main.mjs +299 -299
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -5943,21 +5943,13 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5943
5943
|
quotelessJson,
|
|
5944
5944
|
ZodError
|
|
5945
5945
|
});
|
|
5946
|
-
var
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
z.literal("GET"),
|
|
5953
|
-
z.literal("POST"),
|
|
5954
|
-
z.literal("PUT"),
|
|
5955
|
-
z.literal("PATCH"),
|
|
5956
|
-
z.literal("DELETE")
|
|
5946
|
+
var sizeSchema = z.union([
|
|
5947
|
+
z.literal("xs"),
|
|
5948
|
+
z.literal("sm"),
|
|
5949
|
+
z.literal("md"),
|
|
5950
|
+
z.literal("lg"),
|
|
5951
|
+
z.literal("xl")
|
|
5957
5952
|
]);
|
|
5958
|
-
var iconNamedSchema = z.object({
|
|
5959
|
-
name: z.string()
|
|
5960
|
-
});
|
|
5961
5953
|
var contextSchema = z.union([
|
|
5962
5954
|
z.literal("positive"),
|
|
5963
5955
|
z.literal("neutral"),
|
|
@@ -5968,18 +5960,107 @@ var contextSchema = z.union([
|
|
|
5968
5960
|
z.literal("info"),
|
|
5969
5961
|
z.literal("primary")
|
|
5970
5962
|
]);
|
|
5971
|
-
var
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
z.literal("
|
|
5978
|
-
z.literal("
|
|
5979
|
-
z.literal("
|
|
5963
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5964
|
+
z.literal("none"),
|
|
5965
|
+
z.literal("left"),
|
|
5966
|
+
z.literal("right")
|
|
5967
|
+
]);
|
|
5968
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5969
|
+
z.literal("not-done"),
|
|
5970
|
+
z.literal("pending"),
|
|
5971
|
+
z.literal("done")
|
|
5980
5972
|
]);
|
|
5981
5973
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5982
|
-
var
|
|
5974
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5975
|
+
$ref: z.string()
|
|
5976
|
+
});
|
|
5977
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5978
|
+
title: z.string()
|
|
5979
|
+
});
|
|
5980
|
+
var httpMethodSchema = z.union([
|
|
5981
|
+
z.literal("GET"),
|
|
5982
|
+
z.literal("POST"),
|
|
5983
|
+
z.literal("PUT"),
|
|
5984
|
+
z.literal("PATCH"),
|
|
5985
|
+
z.literal("DELETE")
|
|
5986
|
+
]);
|
|
5987
|
+
var dividerLayoutSchema = z.object({
|
|
5988
|
+
type: z.literal("divider"),
|
|
5989
|
+
control: z.string().optional(),
|
|
5990
|
+
margin: sizeSchema.optional()
|
|
5991
|
+
});
|
|
5992
|
+
var listLayoutStatusSchema = z.union([
|
|
5993
|
+
z.literal("warning"),
|
|
5994
|
+
z.literal("neutral"),
|
|
5995
|
+
z.literal("positive")
|
|
5996
|
+
]);
|
|
5997
|
+
var headingLayoutSchema = z.object({
|
|
5998
|
+
type: z.literal("heading"),
|
|
5999
|
+
text: z.string(),
|
|
6000
|
+
size: sizeSchema.optional(),
|
|
6001
|
+
align: alignSchema.optional(),
|
|
6002
|
+
control: z.string().optional(),
|
|
6003
|
+
margin: sizeSchema.optional()
|
|
6004
|
+
});
|
|
6005
|
+
var formLayoutSchema = z.object({
|
|
6006
|
+
type: z.literal("form"),
|
|
6007
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
6008
|
+
schemaId: z.string(),
|
|
6009
|
+
control: z.string().optional(),
|
|
6010
|
+
margin: sizeSchema.optional()
|
|
6011
|
+
});
|
|
6012
|
+
var imageLayoutSchema = z.object({
|
|
6013
|
+
type: z.literal("image"),
|
|
6014
|
+
text: z.string().optional(),
|
|
6015
|
+
url: z.string(),
|
|
6016
|
+
size: sizeSchema.optional(),
|
|
6017
|
+
accessibilityDescription: z.string().optional(),
|
|
6018
|
+
control: z.string().optional(),
|
|
6019
|
+
margin: sizeSchema.optional()
|
|
6020
|
+
});
|
|
6021
|
+
var infoLayoutSchema = z.object({
|
|
6022
|
+
type: z.literal("info"),
|
|
6023
|
+
markdown: z.string(),
|
|
6024
|
+
align: alignSchema.optional(),
|
|
6025
|
+
control: z.string().optional(),
|
|
6026
|
+
margin: sizeSchema.optional()
|
|
6027
|
+
});
|
|
6028
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
6029
|
+
type: z.literal("loading-indicator"),
|
|
6030
|
+
size: sizeSchema.optional(),
|
|
6031
|
+
control: z.string().optional(),
|
|
6032
|
+
margin: sizeSchema.optional()
|
|
6033
|
+
});
|
|
6034
|
+
var paragraphLayoutSchema = z.object({
|
|
6035
|
+
type: z.literal("paragraph"),
|
|
6036
|
+
text: z.string(),
|
|
6037
|
+
align: alignSchema.optional(),
|
|
6038
|
+
control: z.string().optional(),
|
|
6039
|
+
margin: sizeSchema.optional()
|
|
6040
|
+
});
|
|
6041
|
+
var instructionsLayoutItemSchema = z.object({
|
|
6042
|
+
text: z.string(),
|
|
6043
|
+
context: contextSchema
|
|
6044
|
+
});
|
|
6045
|
+
var helpSchema = z.object({
|
|
6046
|
+
markdown: z.string()
|
|
6047
|
+
});
|
|
6048
|
+
var imageSchema = z.object({
|
|
6049
|
+
text: z.string().optional(),
|
|
6050
|
+
url: z.string(),
|
|
6051
|
+
accessibilityDescription: z.string().optional()
|
|
6052
|
+
});
|
|
6053
|
+
var summaryProviderSchema = z.object({
|
|
6054
|
+
providesTitle: z.boolean().optional(),
|
|
6055
|
+
providesDescription: z.boolean().optional(),
|
|
6056
|
+
providesIcon: z.boolean().optional(),
|
|
6057
|
+
providesImage: z.boolean().optional()
|
|
6058
|
+
});
|
|
6059
|
+
var validateAsyncSchema = z.object({
|
|
6060
|
+
param: z.string(),
|
|
6061
|
+
method: httpMethodSchema,
|
|
6062
|
+
url: z.string()
|
|
6063
|
+
});
|
|
5983
6064
|
var autocompleteTokenSchema = z.union([
|
|
5984
6065
|
z.literal("on"),
|
|
5985
6066
|
z.literal("name"),
|
|
@@ -6045,106 +6126,14 @@ var autocompleteTokenSchema = z.union([
|
|
|
6045
6126
|
z.literal("fax"),
|
|
6046
6127
|
z.literal("pager")
|
|
6047
6128
|
]);
|
|
6048
|
-
var
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
type: z.literal("paragraph"),
|
|
6056
|
-
text: z.string(),
|
|
6057
|
-
align: alignSchema.optional(),
|
|
6058
|
-
control: z.string().optional(),
|
|
6059
|
-
margin: sizeSchema.optional()
|
|
6060
|
-
});
|
|
6061
|
-
var dividerLayoutSchema = z.object({
|
|
6062
|
-
type: z.literal("divider"),
|
|
6063
|
-
control: z.string().optional(),
|
|
6064
|
-
margin: sizeSchema.optional()
|
|
6065
|
-
});
|
|
6066
|
-
var listLayoutStatusSchema = z.union([
|
|
6067
|
-
z.literal("warning"),
|
|
6068
|
-
z.literal("neutral"),
|
|
6069
|
-
z.literal("positive")
|
|
6070
|
-
]);
|
|
6071
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
6072
|
-
$ref: z.string()
|
|
6073
|
-
});
|
|
6074
|
-
var imageLayoutSchema = z.object({
|
|
6075
|
-
type: z.literal("image"),
|
|
6076
|
-
text: z.string().optional(),
|
|
6077
|
-
url: z.string(),
|
|
6078
|
-
size: sizeSchema.optional(),
|
|
6079
|
-
accessibilityDescription: z.string().optional(),
|
|
6080
|
-
control: z.string().optional(),
|
|
6081
|
-
margin: sizeSchema.optional()
|
|
6082
|
-
});
|
|
6083
|
-
var statusListLayoutStatusSchema = z.union([
|
|
6084
|
-
z.literal("not-done"),
|
|
6085
|
-
z.literal("pending"),
|
|
6086
|
-
z.literal("done")
|
|
6087
|
-
]);
|
|
6088
|
-
var instructionsLayoutItemSchema = z.object({
|
|
6089
|
-
text: z.string(),
|
|
6090
|
-
context: contextSchema
|
|
6091
|
-
});
|
|
6092
|
-
var modalLayoutTriggerSchema = z.object({
|
|
6093
|
-
title: z.string()
|
|
6094
|
-
});
|
|
6095
|
-
var searchLayoutSchema = z.object({
|
|
6096
|
-
type: z.literal("search"),
|
|
6097
|
-
title: z.string(),
|
|
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()
|
|
6104
|
-
});
|
|
6105
|
-
var infoLayoutSchema = z.object({
|
|
6106
|
-
type: z.literal("info"),
|
|
6107
|
-
markdown: z.string(),
|
|
6108
|
-
align: alignSchema.optional(),
|
|
6109
|
-
control: z.string().optional(),
|
|
6110
|
-
margin: sizeSchema.optional()
|
|
6111
|
-
});
|
|
6112
|
-
var formLayoutSchema = z.object({
|
|
6113
|
-
type: z.literal("form"),
|
|
6114
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
6115
|
-
schemaId: z.string(),
|
|
6116
|
-
control: z.string().optional(),
|
|
6117
|
-
margin: sizeSchema.optional()
|
|
6118
|
-
});
|
|
6119
|
-
var headingLayoutSchema = z.object({
|
|
6120
|
-
type: z.literal("heading"),
|
|
6121
|
-
text: z.string(),
|
|
6122
|
-
size: sizeSchema.optional(),
|
|
6123
|
-
align: alignSchema.optional(),
|
|
6124
|
-
control: z.string().optional(),
|
|
6125
|
-
margin: sizeSchema.optional()
|
|
6126
|
-
});
|
|
6127
|
-
var markdownLayoutSchema = z.object({
|
|
6128
|
-
type: z.literal("markdown"),
|
|
6129
|
-
content: z.string(),
|
|
6130
|
-
align: alignSchema.optional(),
|
|
6131
|
-
control: z.string().optional(),
|
|
6132
|
-
margin: sizeSchema.optional()
|
|
6133
|
-
});
|
|
6134
|
-
var columnsLayoutBiasSchema = z.union([
|
|
6135
|
-
z.literal("none"),
|
|
6136
|
-
z.literal("left"),
|
|
6137
|
-
z.literal("right")
|
|
6129
|
+
var stringSchemaFormatSchema = z.union([
|
|
6130
|
+
z.literal("date"),
|
|
6131
|
+
z.literal("email"),
|
|
6132
|
+
z.literal("numeric"),
|
|
6133
|
+
z.literal("password"),
|
|
6134
|
+
z.literal("phone-number"),
|
|
6135
|
+
z.literal("base64url")
|
|
6138
6136
|
]);
|
|
6139
|
-
var helpSchema = z.object({
|
|
6140
|
-
markdown: z.string()
|
|
6141
|
-
});
|
|
6142
|
-
var searchSearchRequestSchema = z.object({
|
|
6143
|
-
url: z.string(),
|
|
6144
|
-
method: httpMethodSchema,
|
|
6145
|
-
param: z.string(),
|
|
6146
|
-
query: z.string()
|
|
6147
|
-
});
|
|
6148
6137
|
var jsonElementSchema = z.lazy(
|
|
6149
6138
|
() => z.union([
|
|
6150
6139
|
z.string(),
|
|
@@ -6154,6 +6143,7 @@ var jsonElementSchema = z.lazy(
|
|
|
6154
6143
|
z.array(jsonElementSchema)
|
|
6155
6144
|
]).nullable()
|
|
6156
6145
|
);
|
|
6146
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6157
6147
|
var externalSchema = z.object({
|
|
6158
6148
|
url: z.string()
|
|
6159
6149
|
});
|
|
@@ -6161,42 +6151,28 @@ var stepErrorSchema = z.object({
|
|
|
6161
6151
|
error: z.string().optional(),
|
|
6162
6152
|
validation: jsonElementSchema.optional()
|
|
6163
6153
|
});
|
|
6164
|
-
var
|
|
6165
|
-
z.
|
|
6166
|
-
z.
|
|
6167
|
-
z.
|
|
6168
|
-
|
|
6169
|
-
z.
|
|
6170
|
-
z.literal("base64url")
|
|
6171
|
-
]);
|
|
6172
|
-
var summarySummariserSchema = z.object({
|
|
6173
|
-
defaultTitle: z.string().optional(),
|
|
6174
|
-
defaultDescription: z.string().optional(),
|
|
6175
|
-
defaultIcon: iconSchema.optional(),
|
|
6176
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
6177
|
-
providesTitle: z.boolean().optional(),
|
|
6178
|
-
providesDescription: z.boolean().optional(),
|
|
6179
|
-
providesIcon: z.boolean().optional(),
|
|
6180
|
-
providesImage: z.boolean().optional()
|
|
6154
|
+
var errorResponseBodySchema = z.object({
|
|
6155
|
+
refreshFormUrl: z.string().optional(),
|
|
6156
|
+
analytics: z.record(z.string()).optional(),
|
|
6157
|
+
error: z.string().optional(),
|
|
6158
|
+
validation: jsonElementSchema.optional(),
|
|
6159
|
+
refreshUrl: z.string().optional()
|
|
6181
6160
|
});
|
|
6182
|
-
var
|
|
6183
|
-
|
|
6161
|
+
var searchSearchRequestSchema = z.object({
|
|
6162
|
+
url: z.string(),
|
|
6184
6163
|
method: httpMethodSchema,
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
var summaryProviderSchema = z.object({
|
|
6188
|
-
providesTitle: z.boolean().optional(),
|
|
6189
|
-
providesDescription: z.boolean().optional(),
|
|
6190
|
-
providesIcon: z.boolean().optional(),
|
|
6191
|
-
providesImage: z.boolean().optional()
|
|
6164
|
+
param: z.string(),
|
|
6165
|
+
query: z.string()
|
|
6192
6166
|
});
|
|
6193
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6194
6167
|
var navigationStackBehaviorSchema = z.union([
|
|
6195
6168
|
z.literal("default"),
|
|
6196
6169
|
z.literal("remove-previous"),
|
|
6197
6170
|
z.literal("remove-all"),
|
|
6198
6171
|
z.literal("replace-current")
|
|
6199
6172
|
]);
|
|
6173
|
+
var linkSchema = z.object({
|
|
6174
|
+
url: z.string()
|
|
6175
|
+
});
|
|
6200
6176
|
var actionTypeSchema = z.union([
|
|
6201
6177
|
z.literal("primary"),
|
|
6202
6178
|
z.literal("secondary"),
|
|
@@ -6204,9 +6180,11 @@ var actionTypeSchema = z.union([
|
|
|
6204
6180
|
z.literal("positive"),
|
|
6205
6181
|
z.literal("negative")
|
|
6206
6182
|
]);
|
|
6207
|
-
var
|
|
6208
|
-
|
|
6209
|
-
|
|
6183
|
+
var iconNamedSchema = z.object({
|
|
6184
|
+
name: z.string()
|
|
6185
|
+
});
|
|
6186
|
+
var iconTextSchema = z.object({
|
|
6187
|
+
text: z.string()
|
|
6210
6188
|
});
|
|
6211
6189
|
var actionSchema = z.object({
|
|
6212
6190
|
title: z.string().optional(),
|
|
@@ -6223,19 +6201,26 @@ var actionSchema = z.object({
|
|
|
6223
6201
|
timeout: z.number().optional(),
|
|
6224
6202
|
skipValidation: z.boolean().optional()
|
|
6225
6203
|
});
|
|
6226
|
-
var
|
|
6204
|
+
var markdownLayoutSchema = z.object({
|
|
6205
|
+
type: z.literal("markdown"),
|
|
6206
|
+
content: z.string(),
|
|
6207
|
+
align: alignSchema.optional(),
|
|
6208
|
+
control: z.string().optional(),
|
|
6209
|
+
margin: sizeSchema.optional()
|
|
6210
|
+
});
|
|
6211
|
+
var searchLayoutSchema = z.object({
|
|
6212
|
+
type: z.literal("search"),
|
|
6227
6213
|
title: z.string(),
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6214
|
+
method: httpMethodSchema,
|
|
6215
|
+
url: z.string(),
|
|
6216
|
+
param: z.string(),
|
|
6217
|
+
emptyMessage: z.string().optional(),
|
|
6218
|
+
control: z.string().optional(),
|
|
6219
|
+
margin: sizeSchema.optional()
|
|
6231
6220
|
});
|
|
6232
|
-
var
|
|
6233
|
-
action: actionSchema,
|
|
6221
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6234
6222
|
title: z.string(),
|
|
6235
|
-
|
|
6236
|
-
disabled: z.boolean().optional(),
|
|
6237
|
-
icon: iconSchema.optional(),
|
|
6238
|
-
image: imageLayoutSchema.optional()
|
|
6223
|
+
action: actionSchema
|
|
6239
6224
|
});
|
|
6240
6225
|
var instructionsLayoutSchema = z.object({
|
|
6241
6226
|
type: z.literal("instructions"),
|
|
@@ -6244,26 +6229,38 @@ var instructionsLayoutSchema = z.object({
|
|
|
6244
6229
|
control: z.string().optional(),
|
|
6245
6230
|
margin: sizeSchema.optional()
|
|
6246
6231
|
});
|
|
6232
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
6247
6233
|
var behaviorSchema = z.object({
|
|
6248
6234
|
action: actionSchema.optional(),
|
|
6249
6235
|
link: linkSchema.optional()
|
|
6250
6236
|
});
|
|
6251
|
-
var
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6237
|
+
var reviewLayoutFieldSchema = z.object({
|
|
6238
|
+
label: z.string(),
|
|
6239
|
+
value: z.string(),
|
|
6240
|
+
rawValue: z.string().optional(),
|
|
6241
|
+
help: helpSchema.optional()
|
|
6242
|
+
});
|
|
6243
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6244
|
+
title: z.string(),
|
|
6245
|
+
accessibilityDescription: z.string().optional(),
|
|
6246
|
+
behavior: behaviorSchema
|
|
6247
|
+
});
|
|
6248
|
+
var summarySummariserSchema = z.object({
|
|
6249
|
+
defaultTitle: z.string().optional(),
|
|
6250
|
+
defaultDescription: z.string().optional(),
|
|
6251
|
+
defaultIcon: iconSchema.optional(),
|
|
6252
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
6253
|
+
providesTitle: z.boolean().optional(),
|
|
6254
|
+
providesDescription: z.boolean().optional(),
|
|
6255
|
+
providesIcon: z.boolean().optional(),
|
|
6256
|
+
providesImage: z.boolean().optional()
|
|
6261
6257
|
});
|
|
6262
|
-
var
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6258
|
+
var linkHandlerSchema = z.object({
|
|
6259
|
+
regexPattern: z.string(),
|
|
6260
|
+
action: actionSchema
|
|
6261
|
+
});
|
|
6262
|
+
var actionResponseBodySchema = z.object({
|
|
6263
|
+
action: actionSchema
|
|
6267
6264
|
});
|
|
6268
6265
|
var searchResultSearchSchema = z.object({
|
|
6269
6266
|
type: z.literal("search"),
|
|
@@ -6281,20 +6278,6 @@ var searchResultActionSchema = z.object({
|
|
|
6281
6278
|
image: imageLayoutSchema.optional(),
|
|
6282
6279
|
value: actionSchema
|
|
6283
6280
|
});
|
|
6284
|
-
var actionResponseBodySchema = z.object({
|
|
6285
|
-
action: actionSchema
|
|
6286
|
-
});
|
|
6287
|
-
var errorResponseBodySchema = z.object({
|
|
6288
|
-
refreshFormUrl: z.string().optional(),
|
|
6289
|
-
analytics: z.record(z.string()).optional(),
|
|
6290
|
-
error: z.string().optional(),
|
|
6291
|
-
validation: jsonElementSchema.optional(),
|
|
6292
|
-
refreshUrl: z.string().optional()
|
|
6293
|
-
});
|
|
6294
|
-
var linkHandlerSchema = z.object({
|
|
6295
|
-
regexPattern: z.string(),
|
|
6296
|
-
action: actionSchema
|
|
6297
|
-
});
|
|
6298
6281
|
var pollingOnErrorSchema = z.object({
|
|
6299
6282
|
action: actionSchema
|
|
6300
6283
|
});
|
|
@@ -6302,33 +6285,33 @@ var navigationBackBehaviorSchema = z.object({
|
|
|
6302
6285
|
title: z.string().optional(),
|
|
6303
6286
|
action: actionSchema
|
|
6304
6287
|
});
|
|
6305
|
-
var
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
var alertLayoutCallToActionSchema = z.object({
|
|
6310
|
-
title: z.string(),
|
|
6311
|
-
accessibilityDescription: z.string().optional(),
|
|
6312
|
-
behavior: behaviorSchema
|
|
6313
|
-
});
|
|
6314
|
-
var listLayoutSchema = z.object({
|
|
6315
|
-
type: z.literal("list"),
|
|
6316
|
-
items: z.array(listLayoutItemSchema),
|
|
6317
|
-
title: z.string().optional(),
|
|
6318
|
-
control: z.string().optional(),
|
|
6319
|
-
margin: sizeSchema.optional()
|
|
6320
|
-
});
|
|
6321
|
-
var decisionLayoutSchema = z.object({
|
|
6322
|
-
type: z.literal("decision"),
|
|
6288
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6289
|
+
var buttonLayoutSchema = z.object({
|
|
6290
|
+
type: z.literal("button"),
|
|
6291
|
+
size: sizeSchema.optional(),
|
|
6323
6292
|
title: z.string().optional(),
|
|
6324
|
-
|
|
6293
|
+
action: actionSchema,
|
|
6294
|
+
context: contextSchema.optional(),
|
|
6295
|
+
disabled: z.boolean().optional(),
|
|
6296
|
+
pinOrder: z.number().optional(),
|
|
6325
6297
|
control: z.string().optional(),
|
|
6326
6298
|
margin: sizeSchema.optional()
|
|
6327
6299
|
});
|
|
6328
|
-
var
|
|
6300
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6301
|
+
action: actionSchema,
|
|
6329
6302
|
title: z.string(),
|
|
6330
|
-
|
|
6331
|
-
|
|
6303
|
+
description: z.string().optional(),
|
|
6304
|
+
disabled: z.boolean().optional(),
|
|
6305
|
+
icon: iconSchema.optional(),
|
|
6306
|
+
image: imageLayoutSchema.optional()
|
|
6307
|
+
});
|
|
6308
|
+
var alertLayoutSchema = z.object({
|
|
6309
|
+
type: z.literal("alert"),
|
|
6310
|
+
markdown: z.string(),
|
|
6311
|
+
context: contextSchema.optional(),
|
|
6312
|
+
control: z.string().optional(),
|
|
6313
|
+
margin: sizeSchema.optional(),
|
|
6314
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6332
6315
|
});
|
|
6333
6316
|
var reviewLayoutSchema = z.object({
|
|
6334
6317
|
type: z.literal("review"),
|
|
@@ -6340,27 +6323,16 @@ var reviewLayoutSchema = z.object({
|
|
|
6340
6323
|
control: z.string().optional(),
|
|
6341
6324
|
margin: sizeSchema.optional()
|
|
6342
6325
|
});
|
|
6343
|
-
var
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
timeout: z.number().optional(),
|
|
6349
|
-
maxAttempts: z.number(),
|
|
6350
|
-
onError: pollingOnErrorSchema
|
|
6351
|
-
});
|
|
6352
|
-
var navigationSchema = z.object({
|
|
6353
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
6354
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
6355
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6326
|
+
var listLayoutItemSchema = z.object({
|
|
6327
|
+
title: z.string(),
|
|
6328
|
+
description: z.string().optional(),
|
|
6329
|
+
icon: iconSchema,
|
|
6330
|
+
status: listLayoutStatusSchema.optional()
|
|
6356
6331
|
});
|
|
6357
|
-
var
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
control: z.string().optional(),
|
|
6362
|
-
margin: sizeSchema.optional(),
|
|
6363
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6332
|
+
var itemCallToActionSchema = z.object({
|
|
6333
|
+
title: z.string(),
|
|
6334
|
+
accessibilityDescription: z.string().optional(),
|
|
6335
|
+
behavior: behaviorSchema
|
|
6364
6336
|
});
|
|
6365
6337
|
var statusListLayoutItemSchema = z.object({
|
|
6366
6338
|
title: z.string(),
|
|
@@ -6369,9 +6341,6 @@ var statusListLayoutItemSchema = z.object({
|
|
|
6369
6341
|
status: statusListLayoutStatusSchema.optional(),
|
|
6370
6342
|
callToAction: itemCallToActionSchema.optional()
|
|
6371
6343
|
});
|
|
6372
|
-
var searchResponseBodySchema = z.object({
|
|
6373
|
-
results: z.array(searchResultSchema)
|
|
6374
|
-
});
|
|
6375
6344
|
var blobSchemaSchema = z.object({
|
|
6376
6345
|
type: z.literal("blob"),
|
|
6377
6346
|
promoted: z.boolean().optional(),
|
|
@@ -6410,6 +6379,34 @@ var constSchemaSchema = z.object({
|
|
|
6410
6379
|
analyticsId: z.string().optional(),
|
|
6411
6380
|
disabled: z.boolean().optional()
|
|
6412
6381
|
});
|
|
6382
|
+
var pollingSchema = z.object({
|
|
6383
|
+
url: z.string(),
|
|
6384
|
+
interval: z.number().optional(),
|
|
6385
|
+
delay: z.number().optional(),
|
|
6386
|
+
timeout: z.number().optional(),
|
|
6387
|
+
maxAttempts: z.number(),
|
|
6388
|
+
onError: pollingOnErrorSchema
|
|
6389
|
+
});
|
|
6390
|
+
var navigationSchema = z.object({
|
|
6391
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
6392
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
6393
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6394
|
+
});
|
|
6395
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6396
|
+
var decisionLayoutSchema = z.object({
|
|
6397
|
+
type: z.literal("decision"),
|
|
6398
|
+
title: z.string().optional(),
|
|
6399
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6400
|
+
control: z.string().optional(),
|
|
6401
|
+
margin: sizeSchema.optional()
|
|
6402
|
+
});
|
|
6403
|
+
var listLayoutSchema = z.object({
|
|
6404
|
+
type: z.literal("list"),
|
|
6405
|
+
items: z.array(listLayoutItemSchema),
|
|
6406
|
+
title: z.string().optional(),
|
|
6407
|
+
control: z.string().optional(),
|
|
6408
|
+
margin: sizeSchema.optional()
|
|
6409
|
+
});
|
|
6413
6410
|
var statusListLayoutSchema = z.object({
|
|
6414
6411
|
type: z.literal("status-list"),
|
|
6415
6412
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -6417,6 +6414,19 @@ var statusListLayoutSchema = z.object({
|
|
|
6417
6414
|
control: z.string().optional(),
|
|
6418
6415
|
margin: sizeSchema.optional()
|
|
6419
6416
|
});
|
|
6417
|
+
var searchResponseBodySchema = z.object({
|
|
6418
|
+
results: z.array(searchResultSchema)
|
|
6419
|
+
});
|
|
6420
|
+
var columnsLayoutSchema = z.lazy(
|
|
6421
|
+
() => z.object({
|
|
6422
|
+
type: z.literal("columns"),
|
|
6423
|
+
left: z.array(layoutSchema),
|
|
6424
|
+
right: z.array(layoutSchema),
|
|
6425
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6426
|
+
control: z.string().optional(),
|
|
6427
|
+
margin: sizeSchema.optional()
|
|
6428
|
+
})
|
|
6429
|
+
);
|
|
6420
6430
|
var layoutSchema = z.lazy(
|
|
6421
6431
|
() => z.union([
|
|
6422
6432
|
alertLayoutSchema,
|
|
@@ -6440,26 +6450,6 @@ var layoutSchema = z.lazy(
|
|
|
6440
6450
|
statusListLayoutSchema
|
|
6441
6451
|
])
|
|
6442
6452
|
);
|
|
6443
|
-
var boxLayoutSchema = z.lazy(
|
|
6444
|
-
() => z.object({
|
|
6445
|
-
type: z.literal("box"),
|
|
6446
|
-
components: z.array(layoutSchema),
|
|
6447
|
-
width: sizeSchema.optional(),
|
|
6448
|
-
border: z.boolean().optional(),
|
|
6449
|
-
control: z.string().optional(),
|
|
6450
|
-
margin: sizeSchema.optional()
|
|
6451
|
-
})
|
|
6452
|
-
);
|
|
6453
|
-
var columnsLayoutSchema = z.lazy(
|
|
6454
|
-
() => z.object({
|
|
6455
|
-
type: z.literal("columns"),
|
|
6456
|
-
left: z.array(layoutSchema),
|
|
6457
|
-
right: z.array(layoutSchema),
|
|
6458
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6459
|
-
control: z.string().optional(),
|
|
6460
|
-
margin: sizeSchema.optional()
|
|
6461
|
-
})
|
|
6462
|
-
);
|
|
6463
6453
|
var modalLayoutSchema = z.lazy(
|
|
6464
6454
|
() => z.object({
|
|
6465
6455
|
type: z.literal("modal"),
|
|
@@ -6475,25 +6465,14 @@ var modalLayoutContentSchema = z.lazy(
|
|
|
6475
6465
|
components: z.array(layoutSchema)
|
|
6476
6466
|
})
|
|
6477
6467
|
);
|
|
6478
|
-
var
|
|
6468
|
+
var boxLayoutSchema = z.lazy(
|
|
6479
6469
|
() => z.object({
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
schemas: z.array(schemaSchema),
|
|
6487
|
-
layout: z.array(layoutSchema),
|
|
6488
|
-
description: z.string().optional(),
|
|
6489
|
-
model: jsonElementSchema.optional(),
|
|
6490
|
-
external: externalSchema.optional(),
|
|
6491
|
-
polling: pollingSchema.optional(),
|
|
6492
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6493
|
-
analytics: z.record(z.string()).optional(),
|
|
6494
|
-
errors: stepErrorSchema.optional(),
|
|
6495
|
-
navigation: navigationSchema.optional(),
|
|
6496
|
-
refreshUrl: z.string().optional()
|
|
6470
|
+
type: z.literal("box"),
|
|
6471
|
+
components: z.array(layoutSchema),
|
|
6472
|
+
width: sizeSchema.optional(),
|
|
6473
|
+
border: z.boolean().optional(),
|
|
6474
|
+
control: z.string().optional(),
|
|
6475
|
+
margin: sizeSchema.optional()
|
|
6497
6476
|
})
|
|
6498
6477
|
);
|
|
6499
6478
|
var schemaSchema = z.lazy(
|
|
@@ -6719,17 +6698,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6719
6698
|
help: helpSchema.optional()
|
|
6720
6699
|
})
|
|
6721
6700
|
);
|
|
6722
|
-
var
|
|
6701
|
+
var persistAsyncSchema = z.lazy(
|
|
6702
|
+
() => z.object({
|
|
6703
|
+
param: z.string(),
|
|
6704
|
+
idProperty: z.string(),
|
|
6705
|
+
schema: schemaSchema,
|
|
6706
|
+
url: z.string(),
|
|
6707
|
+
method: httpMethodSchema
|
|
6708
|
+
})
|
|
6709
|
+
);
|
|
6710
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6723
6711
|
() => z.object({
|
|
6724
6712
|
type: z.literal("array"),
|
|
6725
6713
|
promoted: z.boolean().optional(),
|
|
6726
6714
|
$id: z.string().optional(),
|
|
6727
|
-
items: schemaSchema,
|
|
6728
|
-
addItemTitle: z.string(),
|
|
6729
|
-
editItemTitle: z.string(),
|
|
6730
|
-
minItems: z.number().optional(),
|
|
6731
|
-
maxItems: z.number().optional(),
|
|
6732
|
-
placeholder: z.string().optional(),
|
|
6715
|
+
items: z.array(schemaSchema),
|
|
6733
6716
|
title: z.string().optional(),
|
|
6734
6717
|
description: z.string().optional(),
|
|
6735
6718
|
control: z.string().optional(),
|
|
@@ -6737,30 +6720,24 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6737
6720
|
icon: iconSchema.optional(),
|
|
6738
6721
|
image: imageSchema.optional(),
|
|
6739
6722
|
keywords: z.array(z.string()).optional(),
|
|
6740
|
-
summary:
|
|
6723
|
+
summary: summaryProviderSchema.optional(),
|
|
6741
6724
|
analyticsId: z.string().optional(),
|
|
6742
6725
|
persistAsync: persistAsyncSchema.optional(),
|
|
6743
6726
|
validationAsync: validateAsyncSchema.optional(),
|
|
6744
|
-
alert: alertLayoutSchema.optional()
|
|
6745
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6746
|
-
disabled: z.boolean().optional()
|
|
6747
|
-
})
|
|
6748
|
-
);
|
|
6749
|
-
var persistAsyncSchema = z.lazy(
|
|
6750
|
-
() => z.object({
|
|
6751
|
-
param: z.string(),
|
|
6752
|
-
idProperty: z.string(),
|
|
6753
|
-
schema: schemaSchema,
|
|
6754
|
-
url: z.string(),
|
|
6755
|
-
method: httpMethodSchema
|
|
6727
|
+
alert: alertLayoutSchema.optional()
|
|
6756
6728
|
})
|
|
6757
6729
|
);
|
|
6758
|
-
var
|
|
6730
|
+
var arraySchemaListSchema = z.lazy(
|
|
6759
6731
|
() => z.object({
|
|
6760
6732
|
type: z.literal("array"),
|
|
6761
6733
|
promoted: z.boolean().optional(),
|
|
6762
6734
|
$id: z.string().optional(),
|
|
6763
|
-
items:
|
|
6735
|
+
items: schemaSchema,
|
|
6736
|
+
addItemTitle: z.string(),
|
|
6737
|
+
editItemTitle: z.string(),
|
|
6738
|
+
minItems: z.number().optional(),
|
|
6739
|
+
maxItems: z.number().optional(),
|
|
6740
|
+
placeholder: z.string().optional(),
|
|
6764
6741
|
title: z.string().optional(),
|
|
6765
6742
|
description: z.string().optional(),
|
|
6766
6743
|
control: z.string().optional(),
|
|
@@ -6768,11 +6745,34 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6768
6745
|
icon: iconSchema.optional(),
|
|
6769
6746
|
image: imageSchema.optional(),
|
|
6770
6747
|
keywords: z.array(z.string()).optional(),
|
|
6771
|
-
summary:
|
|
6748
|
+
summary: summarySummariserSchema.optional(),
|
|
6772
6749
|
analyticsId: z.string().optional(),
|
|
6773
6750
|
persistAsync: persistAsyncSchema.optional(),
|
|
6774
6751
|
validationAsync: validateAsyncSchema.optional(),
|
|
6775
|
-
alert: alertLayoutSchema.optional()
|
|
6752
|
+
alert: alertLayoutSchema.optional(),
|
|
6753
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6754
|
+
disabled: z.boolean().optional()
|
|
6755
|
+
})
|
|
6756
|
+
);
|
|
6757
|
+
var stepSchema = z.lazy(
|
|
6758
|
+
() => z.object({
|
|
6759
|
+
key: z.string().optional(),
|
|
6760
|
+
type: z.string().optional(),
|
|
6761
|
+
actions: z.array(actionSchema).optional(),
|
|
6762
|
+
refreshFormUrl: z.string().optional(),
|
|
6763
|
+
id: z.string(),
|
|
6764
|
+
title: z.string(),
|
|
6765
|
+
schemas: z.array(schemaSchema),
|
|
6766
|
+
layout: z.array(layoutSchema),
|
|
6767
|
+
description: z.string().optional(),
|
|
6768
|
+
model: jsonElementSchema.optional(),
|
|
6769
|
+
external: externalSchema.optional(),
|
|
6770
|
+
polling: pollingSchema.optional(),
|
|
6771
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6772
|
+
analytics: z.record(z.string()).optional(),
|
|
6773
|
+
errors: stepErrorSchema.optional(),
|
|
6774
|
+
navigation: navigationSchema.optional(),
|
|
6775
|
+
refreshUrl: z.string().optional()
|
|
6776
6776
|
})
|
|
6777
6777
|
);
|
|
6778
6778
|
var validateStep = (step) => validate(step, stepSchema);
|