@wise/dynamic-flow-client 3.30.0 → 3.30.2-experimental-f459536
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 +305 -306
- package/build/main.min.js +1 -1
- package/build/main.mjs +305 -306
- package/build/types/legacy/common/utils/api-utils.d.ts +0 -1
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -5943,10 +5943,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5943
5943
|
quotelessJson,
|
|
5944
5944
|
ZodError
|
|
5945
5945
|
});
|
|
5946
|
-
var
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5946
|
+
var jsonElementSchema = z.lazy(
|
|
5947
|
+
() => z.union([
|
|
5948
|
+
z.string(),
|
|
5949
|
+
z.number(),
|
|
5950
|
+
z.boolean(),
|
|
5951
|
+
z.record(jsonElementSchema),
|
|
5952
|
+
z.array(jsonElementSchema)
|
|
5953
|
+
]).nullable()
|
|
5954
|
+
);
|
|
5955
|
+
var externalSchema = z.object({
|
|
5956
|
+
url: z.string()
|
|
5957
|
+
});
|
|
5958
|
+
var stepErrorSchema = z.object({
|
|
5959
|
+
error: z.string().optional(),
|
|
5960
|
+
validation: jsonElementSchema.optional()
|
|
5950
5961
|
});
|
|
5951
5962
|
var httpMethodSchema = z.union([
|
|
5952
5963
|
z.literal("GET"),
|
|
@@ -5955,31 +5966,38 @@ var httpMethodSchema = z.union([
|
|
|
5955
5966
|
z.literal("PATCH"),
|
|
5956
5967
|
z.literal("DELETE")
|
|
5957
5968
|
]);
|
|
5958
|
-
var
|
|
5959
|
-
|
|
5969
|
+
var errorResponseBodySchema = z.object({
|
|
5970
|
+
refreshFormUrl: z.string().optional(),
|
|
5971
|
+
analytics: z.record(z.string()).optional(),
|
|
5972
|
+
error: z.string().optional(),
|
|
5973
|
+
validation: jsonElementSchema.optional(),
|
|
5974
|
+
refreshUrl: z.string().optional()
|
|
5960
5975
|
});
|
|
5961
|
-
var
|
|
5962
|
-
z.literal("
|
|
5963
|
-
z.literal("
|
|
5964
|
-
z.literal("
|
|
5965
|
-
z.literal("
|
|
5966
|
-
z.literal("
|
|
5967
|
-
z.literal("
|
|
5968
|
-
z.literal("info"),
|
|
5969
|
-
z.literal("primary")
|
|
5976
|
+
var stringSchemaFormatSchema = z.union([
|
|
5977
|
+
z.literal("date"),
|
|
5978
|
+
z.literal("email"),
|
|
5979
|
+
z.literal("numeric"),
|
|
5980
|
+
z.literal("password"),
|
|
5981
|
+
z.literal("phone-number"),
|
|
5982
|
+
z.literal("base64url")
|
|
5970
5983
|
]);
|
|
5971
|
-
var
|
|
5972
|
-
text: z.string()
|
|
5984
|
+
var imageSchema = z.object({
|
|
5985
|
+
text: z.string().optional(),
|
|
5986
|
+
url: z.string(),
|
|
5987
|
+
accessibilityDescription: z.string().optional()
|
|
5973
5988
|
});
|
|
5974
|
-
var
|
|
5975
|
-
z.
|
|
5976
|
-
z.
|
|
5977
|
-
z.
|
|
5978
|
-
z.
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5989
|
+
var summaryProviderSchema = z.object({
|
|
5990
|
+
providesTitle: z.boolean().optional(),
|
|
5991
|
+
providesDescription: z.boolean().optional(),
|
|
5992
|
+
providesIcon: z.boolean().optional(),
|
|
5993
|
+
providesImage: z.boolean().optional()
|
|
5994
|
+
});
|
|
5995
|
+
var validateAsyncSchema = z.object({
|
|
5996
|
+
param: z.string(),
|
|
5997
|
+
method: httpMethodSchema,
|
|
5998
|
+
url: z.string()
|
|
5999
|
+
});
|
|
6000
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5983
6001
|
var autocompleteTokenSchema = z.union([
|
|
5984
6002
|
z.literal("on"),
|
|
5985
6003
|
z.literal("name"),
|
|
@@ -6045,38 +6063,50 @@ var autocompleteTokenSchema = z.union([
|
|
|
6045
6063
|
z.literal("fax"),
|
|
6046
6064
|
z.literal("pager")
|
|
6047
6065
|
]);
|
|
6048
|
-
var
|
|
6049
|
-
|
|
6050
|
-
size: sizeSchema.optional(),
|
|
6051
|
-
control: z.string().optional(),
|
|
6052
|
-
margin: sizeSchema.optional()
|
|
6066
|
+
var helpSchema = z.object({
|
|
6067
|
+
markdown: z.string()
|
|
6053
6068
|
});
|
|
6054
|
-
var
|
|
6055
|
-
|
|
6056
|
-
text: z.string(),
|
|
6057
|
-
align: alignSchema.optional(),
|
|
6058
|
-
control: z.string().optional(),
|
|
6059
|
-
margin: sizeSchema.optional()
|
|
6069
|
+
var iconNamedSchema = z.object({
|
|
6070
|
+
name: z.string()
|
|
6060
6071
|
});
|
|
6061
|
-
var
|
|
6062
|
-
|
|
6063
|
-
control: z.string().optional(),
|
|
6064
|
-
margin: sizeSchema.optional()
|
|
6072
|
+
var iconTextSchema = z.object({
|
|
6073
|
+
text: z.string()
|
|
6065
6074
|
});
|
|
6075
|
+
var contextSchema = z.union([
|
|
6076
|
+
z.literal("positive"),
|
|
6077
|
+
z.literal("neutral"),
|
|
6078
|
+
z.literal("warning"),
|
|
6079
|
+
z.literal("negative"),
|
|
6080
|
+
z.literal("success"),
|
|
6081
|
+
z.literal("failure"),
|
|
6082
|
+
z.literal("info"),
|
|
6083
|
+
z.literal("primary")
|
|
6084
|
+
]);
|
|
6085
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
6086
|
+
var sizeSchema = z.union([
|
|
6087
|
+
z.literal("xs"),
|
|
6088
|
+
z.literal("sm"),
|
|
6089
|
+
z.literal("md"),
|
|
6090
|
+
z.literal("lg"),
|
|
6091
|
+
z.literal("xl")
|
|
6092
|
+
]);
|
|
6066
6093
|
var listLayoutStatusSchema = z.union([
|
|
6067
6094
|
z.literal("warning"),
|
|
6068
6095
|
z.literal("neutral"),
|
|
6069
6096
|
z.literal("positive")
|
|
6070
6097
|
]);
|
|
6071
|
-
var
|
|
6072
|
-
|
|
6098
|
+
var modalLayoutTriggerSchema = z.object({
|
|
6099
|
+
title: z.string()
|
|
6073
6100
|
});
|
|
6074
|
-
var
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6101
|
+
var columnsLayoutBiasSchema = z.union([
|
|
6102
|
+
z.literal("none"),
|
|
6103
|
+
z.literal("left"),
|
|
6104
|
+
z.literal("right")
|
|
6105
|
+
]);
|
|
6106
|
+
var markdownLayoutSchema = z.object({
|
|
6107
|
+
type: z.literal("markdown"),
|
|
6108
|
+
content: z.string(),
|
|
6109
|
+
align: alignSchema.optional(),
|
|
6080
6110
|
control: z.string().optional(),
|
|
6081
6111
|
margin: sizeSchema.optional()
|
|
6082
6112
|
});
|
|
@@ -6085,20 +6115,10 @@ var statusListLayoutStatusSchema = z.union([
|
|
|
6085
6115
|
z.literal("pending"),
|
|
6086
6116
|
z.literal("done")
|
|
6087
6117
|
]);
|
|
6088
|
-
var
|
|
6118
|
+
var paragraphLayoutSchema = z.object({
|
|
6119
|
+
type: z.literal("paragraph"),
|
|
6089
6120
|
text: z.string(),
|
|
6090
|
-
|
|
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(),
|
|
6121
|
+
align: alignSchema.optional(),
|
|
6102
6122
|
control: z.string().optional(),
|
|
6103
6123
|
margin: sizeSchema.optional()
|
|
6104
6124
|
});
|
|
@@ -6109,6 +6129,24 @@ var infoLayoutSchema = z.object({
|
|
|
6109
6129
|
control: z.string().optional(),
|
|
6110
6130
|
margin: sizeSchema.optional()
|
|
6111
6131
|
});
|
|
6132
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
6133
|
+
$ref: z.string()
|
|
6134
|
+
});
|
|
6135
|
+
var reviewLayoutFieldSchema = z.object({
|
|
6136
|
+
label: z.string(),
|
|
6137
|
+
value: z.string(),
|
|
6138
|
+
rawValue: z.string().optional(),
|
|
6139
|
+
help: helpSchema.optional()
|
|
6140
|
+
});
|
|
6141
|
+
var instructionsLayoutItemSchema = z.object({
|
|
6142
|
+
text: z.string(),
|
|
6143
|
+
context: contextSchema
|
|
6144
|
+
});
|
|
6145
|
+
var dividerLayoutSchema = z.object({
|
|
6146
|
+
type: z.literal("divider"),
|
|
6147
|
+
control: z.string().optional(),
|
|
6148
|
+
margin: sizeSchema.optional()
|
|
6149
|
+
});
|
|
6112
6150
|
var formLayoutSchema = z.object({
|
|
6113
6151
|
type: z.literal("form"),
|
|
6114
6152
|
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
@@ -6124,73 +6162,32 @@ var headingLayoutSchema = z.object({
|
|
|
6124
6162
|
control: z.string().optional(),
|
|
6125
6163
|
margin: sizeSchema.optional()
|
|
6126
6164
|
});
|
|
6127
|
-
var
|
|
6128
|
-
type: z.literal("
|
|
6129
|
-
|
|
6130
|
-
|
|
6165
|
+
var instructionsLayoutSchema = z.object({
|
|
6166
|
+
type: z.literal("instructions"),
|
|
6167
|
+
title: z.string().optional(),
|
|
6168
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
6131
6169
|
control: z.string().optional(),
|
|
6132
6170
|
margin: sizeSchema.optional()
|
|
6133
6171
|
});
|
|
6134
|
-
var
|
|
6135
|
-
z.literal("
|
|
6136
|
-
|
|
6137
|
-
z.
|
|
6138
|
-
|
|
6139
|
-
var helpSchema = z.object({
|
|
6140
|
-
markdown: z.string()
|
|
6172
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
6173
|
+
type: z.literal("loading-indicator"),
|
|
6174
|
+
size: sizeSchema.optional(),
|
|
6175
|
+
control: z.string().optional(),
|
|
6176
|
+
margin: sizeSchema.optional()
|
|
6141
6177
|
});
|
|
6142
|
-
var
|
|
6143
|
-
|
|
6178
|
+
var searchLayoutSchema = z.object({
|
|
6179
|
+
type: z.literal("search"),
|
|
6180
|
+
title: z.string(),
|
|
6144
6181
|
method: httpMethodSchema,
|
|
6182
|
+
url: z.string(),
|
|
6145
6183
|
param: z.string(),
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
() => z.union([
|
|
6150
|
-
z.string(),
|
|
6151
|
-
z.number(),
|
|
6152
|
-
z.boolean(),
|
|
6153
|
-
z.record(jsonElementSchema),
|
|
6154
|
-
z.array(jsonElementSchema)
|
|
6155
|
-
]).nullable()
|
|
6156
|
-
);
|
|
6157
|
-
var externalSchema = z.object({
|
|
6158
|
-
url: z.string()
|
|
6159
|
-
});
|
|
6160
|
-
var stepErrorSchema = z.object({
|
|
6161
|
-
error: z.string().optional(),
|
|
6162
|
-
validation: jsonElementSchema.optional()
|
|
6163
|
-
});
|
|
6164
|
-
var stringSchemaFormatSchema = z.union([
|
|
6165
|
-
z.literal("date"),
|
|
6166
|
-
z.literal("email"),
|
|
6167
|
-
z.literal("numeric"),
|
|
6168
|
-
z.literal("password"),
|
|
6169
|
-
z.literal("phone-number"),
|
|
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()
|
|
6184
|
+
emptyMessage: z.string().optional(),
|
|
6185
|
+
control: z.string().optional(),
|
|
6186
|
+
margin: sizeSchema.optional()
|
|
6181
6187
|
});
|
|
6182
|
-
var
|
|
6183
|
-
param: z.string(),
|
|
6184
|
-
method: httpMethodSchema,
|
|
6188
|
+
var linkSchema = z.object({
|
|
6185
6189
|
url: z.string()
|
|
6186
6190
|
});
|
|
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()
|
|
6192
|
-
});
|
|
6193
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6194
6191
|
var navigationStackBehaviorSchema = z.union([
|
|
6195
6192
|
z.literal("default"),
|
|
6196
6193
|
z.literal("remove-previous"),
|
|
@@ -6204,10 +6201,6 @@ var actionTypeSchema = z.union([
|
|
|
6204
6201
|
z.literal("positive"),
|
|
6205
6202
|
z.literal("negative")
|
|
6206
6203
|
]);
|
|
6207
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6208
|
-
var linkSchema = z.object({
|
|
6209
|
-
url: z.string()
|
|
6210
|
-
});
|
|
6211
6204
|
var actionSchema = z.object({
|
|
6212
6205
|
title: z.string().optional(),
|
|
6213
6206
|
type: actionTypeSchema.optional(),
|
|
@@ -6223,93 +6216,52 @@ var actionSchema = z.object({
|
|
|
6223
6216
|
timeout: z.number().optional(),
|
|
6224
6217
|
skipValidation: z.boolean().optional()
|
|
6225
6218
|
});
|
|
6226
|
-
var listLayoutItemSchema = z.object({
|
|
6227
|
-
title: z.string(),
|
|
6228
|
-
description: z.string().optional(),
|
|
6229
|
-
icon: iconSchema,
|
|
6230
|
-
status: listLayoutStatusSchema.optional()
|
|
6231
|
-
});
|
|
6232
|
-
var decisionLayoutOptionSchema = z.object({
|
|
6233
|
-
action: actionSchema,
|
|
6234
|
-
title: z.string(),
|
|
6235
|
-
description: z.string().optional(),
|
|
6236
|
-
disabled: z.boolean().optional(),
|
|
6237
|
-
icon: iconSchema.optional(),
|
|
6238
|
-
image: imageLayoutSchema.optional()
|
|
6239
|
-
});
|
|
6240
|
-
var instructionsLayoutSchema = z.object({
|
|
6241
|
-
type: z.literal("instructions"),
|
|
6242
|
-
title: z.string().optional(),
|
|
6243
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
6244
|
-
control: z.string().optional(),
|
|
6245
|
-
margin: sizeSchema.optional()
|
|
6246
|
-
});
|
|
6247
|
-
var behaviorSchema = z.object({
|
|
6248
|
-
action: actionSchema.optional(),
|
|
6249
|
-
link: linkSchema.optional()
|
|
6250
|
-
});
|
|
6251
|
-
var buttonLayoutSchema = z.object({
|
|
6252
|
-
type: z.literal("button"),
|
|
6253
|
-
size: sizeSchema.optional(),
|
|
6254
|
-
title: z.string().optional(),
|
|
6255
|
-
action: actionSchema,
|
|
6256
|
-
context: contextSchema.optional(),
|
|
6257
|
-
disabled: z.boolean().optional(),
|
|
6258
|
-
pinOrder: z.number().optional(),
|
|
6259
|
-
control: z.string().optional(),
|
|
6260
|
-
margin: sizeSchema.optional()
|
|
6261
|
-
});
|
|
6262
|
-
var reviewLayoutFieldSchema = z.object({
|
|
6263
|
-
label: z.string(),
|
|
6264
|
-
value: z.string(),
|
|
6265
|
-
rawValue: z.string().optional(),
|
|
6266
|
-
help: helpSchema.optional()
|
|
6267
|
-
});
|
|
6268
|
-
var searchResultSearchSchema = z.object({
|
|
6269
|
-
type: z.literal("search"),
|
|
6270
|
-
title: z.string(),
|
|
6271
|
-
description: z.string().optional(),
|
|
6272
|
-
icon: iconSchema.optional(),
|
|
6273
|
-
image: imageLayoutSchema.optional(),
|
|
6274
|
-
value: searchSearchRequestSchema
|
|
6275
|
-
});
|
|
6276
|
-
var searchResultActionSchema = z.object({
|
|
6277
|
-
type: z.literal("action"),
|
|
6278
|
-
title: z.string(),
|
|
6279
|
-
description: z.string().optional(),
|
|
6280
|
-
icon: iconSchema.optional(),
|
|
6281
|
-
image: imageLayoutSchema.optional(),
|
|
6282
|
-
value: actionSchema
|
|
6283
|
-
});
|
|
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
6219
|
var linkHandlerSchema = z.object({
|
|
6295
6220
|
regexPattern: z.string(),
|
|
6296
6221
|
action: actionSchema
|
|
6297
6222
|
});
|
|
6298
|
-
var
|
|
6223
|
+
var actionResponseBodySchema = z.object({
|
|
6299
6224
|
action: actionSchema
|
|
6300
6225
|
});
|
|
6301
|
-
var
|
|
6302
|
-
|
|
6303
|
-
|
|
6226
|
+
var searchSearchRequestSchema = z.object({
|
|
6227
|
+
url: z.string(),
|
|
6228
|
+
method: httpMethodSchema,
|
|
6229
|
+
param: z.string(),
|
|
6230
|
+
query: z.string()
|
|
6231
|
+
});
|
|
6232
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
6233
|
+
var imageLayoutSchema = z.object({
|
|
6234
|
+
type: z.literal("image"),
|
|
6235
|
+
text: z.string().optional(),
|
|
6236
|
+
url: z.string(),
|
|
6237
|
+
size: sizeSchema.optional(),
|
|
6238
|
+
accessibilityDescription: z.string().optional(),
|
|
6239
|
+
control: z.string().optional(),
|
|
6240
|
+
margin: sizeSchema.optional()
|
|
6304
6241
|
});
|
|
6305
|
-
var
|
|
6242
|
+
var searchResultActionSchema = z.object({
|
|
6243
|
+
type: z.literal("action"),
|
|
6306
6244
|
title: z.string(),
|
|
6307
|
-
|
|
6245
|
+
description: z.string().optional(),
|
|
6246
|
+
icon: iconSchema.optional(),
|
|
6247
|
+
image: imageLayoutSchema.optional(),
|
|
6248
|
+
value: actionSchema
|
|
6308
6249
|
});
|
|
6309
|
-
var
|
|
6250
|
+
var summarySummariserSchema = z.object({
|
|
6251
|
+
defaultTitle: z.string().optional(),
|
|
6252
|
+
defaultDescription: z.string().optional(),
|
|
6253
|
+
defaultIcon: iconSchema.optional(),
|
|
6254
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
6255
|
+
providesTitle: z.boolean().optional(),
|
|
6256
|
+
providesDescription: z.boolean().optional(),
|
|
6257
|
+
providesIcon: z.boolean().optional(),
|
|
6258
|
+
providesImage: z.boolean().optional()
|
|
6259
|
+
});
|
|
6260
|
+
var listLayoutItemSchema = z.object({
|
|
6310
6261
|
title: z.string(),
|
|
6311
|
-
|
|
6312
|
-
|
|
6262
|
+
description: z.string().optional(),
|
|
6263
|
+
icon: iconSchema,
|
|
6264
|
+
status: listLayoutStatusSchema.optional()
|
|
6313
6265
|
});
|
|
6314
6266
|
var listLayoutSchema = z.object({
|
|
6315
6267
|
type: z.literal("list"),
|
|
@@ -6318,29 +6270,46 @@ var listLayoutSchema = z.object({
|
|
|
6318
6270
|
control: z.string().optional(),
|
|
6319
6271
|
margin: sizeSchema.optional()
|
|
6320
6272
|
});
|
|
6321
|
-
var
|
|
6322
|
-
|
|
6273
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6274
|
+
action: actionSchema,
|
|
6275
|
+
title: z.string(),
|
|
6276
|
+
description: z.string().optional(),
|
|
6277
|
+
disabled: z.boolean().optional(),
|
|
6278
|
+
icon: iconSchema.optional(),
|
|
6279
|
+
image: imageLayoutSchema.optional()
|
|
6280
|
+
});
|
|
6281
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6282
|
+
title: z.string(),
|
|
6283
|
+
action: actionSchema
|
|
6284
|
+
});
|
|
6285
|
+
var buttonLayoutSchema = z.object({
|
|
6286
|
+
type: z.literal("button"),
|
|
6287
|
+
size: sizeSchema.optional(),
|
|
6323
6288
|
title: z.string().optional(),
|
|
6324
|
-
|
|
6289
|
+
action: actionSchema,
|
|
6290
|
+
context: contextSchema.optional(),
|
|
6291
|
+
disabled: z.boolean().optional(),
|
|
6292
|
+
pinOrder: z.number().optional(),
|
|
6325
6293
|
control: z.string().optional(),
|
|
6326
6294
|
margin: sizeSchema.optional()
|
|
6327
6295
|
});
|
|
6328
|
-
var
|
|
6296
|
+
var behaviorSchema = z.object({
|
|
6297
|
+
action: actionSchema.optional(),
|
|
6298
|
+
link: linkSchema.optional()
|
|
6299
|
+
});
|
|
6300
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6329
6301
|
title: z.string(),
|
|
6330
6302
|
accessibilityDescription: z.string().optional(),
|
|
6331
6303
|
behavior: behaviorSchema
|
|
6332
6304
|
});
|
|
6333
|
-
var
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
6305
|
+
var pollingOnErrorSchema = z.object({
|
|
6306
|
+
action: actionSchema
|
|
6307
|
+
});
|
|
6308
|
+
var navigationBackBehaviorSchema = z.object({
|
|
6338
6309
|
title: z.string().optional(),
|
|
6339
|
-
|
|
6340
|
-
control: z.string().optional(),
|
|
6341
|
-
margin: sizeSchema.optional()
|
|
6310
|
+
action: actionSchema
|
|
6342
6311
|
});
|
|
6343
|
-
var
|
|
6312
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6344
6313
|
var pollingSchema = z.object({
|
|
6345
6314
|
url: z.string(),
|
|
6346
6315
|
interval: z.number().optional(),
|
|
@@ -6354,6 +6323,14 @@ var navigationSchema = z.object({
|
|
|
6354
6323
|
back: navigationBackBehaviorSchema.optional(),
|
|
6355
6324
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6356
6325
|
});
|
|
6326
|
+
var searchResultSearchSchema = z.object({
|
|
6327
|
+
type: z.literal("search"),
|
|
6328
|
+
title: z.string(),
|
|
6329
|
+
description: z.string().optional(),
|
|
6330
|
+
icon: iconSchema.optional(),
|
|
6331
|
+
image: imageLayoutSchema.optional(),
|
|
6332
|
+
value: searchSearchRequestSchema
|
|
6333
|
+
});
|
|
6357
6334
|
var alertLayoutSchema = z.object({
|
|
6358
6335
|
type: z.literal("alert"),
|
|
6359
6336
|
markdown: z.string(),
|
|
@@ -6362,16 +6339,29 @@ var alertLayoutSchema = z.object({
|
|
|
6362
6339
|
margin: sizeSchema.optional(),
|
|
6363
6340
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6364
6341
|
});
|
|
6365
|
-
var
|
|
6342
|
+
var itemCallToActionSchema = z.object({
|
|
6366
6343
|
title: z.string(),
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
6370
|
-
callToAction: itemCallToActionSchema.optional()
|
|
6344
|
+
accessibilityDescription: z.string().optional(),
|
|
6345
|
+
behavior: behaviorSchema
|
|
6371
6346
|
});
|
|
6372
|
-
var
|
|
6373
|
-
|
|
6347
|
+
var decisionLayoutSchema = z.object({
|
|
6348
|
+
type: z.literal("decision"),
|
|
6349
|
+
title: z.string().optional(),
|
|
6350
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6351
|
+
control: z.string().optional(),
|
|
6352
|
+
margin: sizeSchema.optional()
|
|
6353
|
+
});
|
|
6354
|
+
var reviewLayoutSchema = z.object({
|
|
6355
|
+
type: z.literal("review"),
|
|
6356
|
+
orientation: z.string().optional(),
|
|
6357
|
+
action: actionSchema.optional(),
|
|
6358
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
6359
|
+
title: z.string().optional(),
|
|
6360
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
6361
|
+
control: z.string().optional(),
|
|
6362
|
+
margin: sizeSchema.optional()
|
|
6374
6363
|
});
|
|
6364
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6375
6365
|
var blobSchemaSchema = z.object({
|
|
6376
6366
|
type: z.literal("blob"),
|
|
6377
6367
|
promoted: z.boolean().optional(),
|
|
@@ -6410,6 +6400,13 @@ var constSchemaSchema = z.object({
|
|
|
6410
6400
|
analyticsId: z.string().optional(),
|
|
6411
6401
|
disabled: z.boolean().optional()
|
|
6412
6402
|
});
|
|
6403
|
+
var statusListLayoutItemSchema = z.object({
|
|
6404
|
+
title: z.string(),
|
|
6405
|
+
description: z.string().optional(),
|
|
6406
|
+
icon: iconSchema,
|
|
6407
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
6408
|
+
callToAction: itemCallToActionSchema.optional()
|
|
6409
|
+
});
|
|
6413
6410
|
var statusListLayoutSchema = z.object({
|
|
6414
6411
|
type: z.literal("status-list"),
|
|
6415
6412
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -6417,64 +6414,9 @@ var statusListLayoutSchema = z.object({
|
|
|
6417
6414
|
control: z.string().optional(),
|
|
6418
6415
|
margin: sizeSchema.optional()
|
|
6419
6416
|
});
|
|
6420
|
-
var
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
boxLayoutSchema,
|
|
6424
|
-
buttonLayoutSchema,
|
|
6425
|
-
columnsLayoutSchema,
|
|
6426
|
-
decisionLayoutSchema,
|
|
6427
|
-
dividerLayoutSchema,
|
|
6428
|
-
formLayoutSchema,
|
|
6429
|
-
headingLayoutSchema,
|
|
6430
|
-
imageLayoutSchema,
|
|
6431
|
-
infoLayoutSchema,
|
|
6432
|
-
instructionsLayoutSchema,
|
|
6433
|
-
listLayoutSchema,
|
|
6434
|
-
loadingIndicatorLayoutSchema,
|
|
6435
|
-
markdownLayoutSchema,
|
|
6436
|
-
modalLayoutSchema,
|
|
6437
|
-
paragraphLayoutSchema,
|
|
6438
|
-
reviewLayoutSchema,
|
|
6439
|
-
searchLayoutSchema,
|
|
6440
|
-
statusListLayoutSchema
|
|
6441
|
-
])
|
|
6442
|
-
);
|
|
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
|
-
var modalLayoutSchema = z.lazy(
|
|
6464
|
-
() => z.object({
|
|
6465
|
-
type: z.literal("modal"),
|
|
6466
|
-
control: z.string().optional(),
|
|
6467
|
-
margin: sizeSchema.optional(),
|
|
6468
|
-
trigger: modalLayoutTriggerSchema,
|
|
6469
|
-
content: modalLayoutContentSchema
|
|
6470
|
-
})
|
|
6471
|
-
);
|
|
6472
|
-
var modalLayoutContentSchema = z.lazy(
|
|
6473
|
-
() => z.object({
|
|
6474
|
-
title: z.string().optional(),
|
|
6475
|
-
components: z.array(layoutSchema)
|
|
6476
|
-
})
|
|
6477
|
-
);
|
|
6417
|
+
var searchResponseBodySchema = z.object({
|
|
6418
|
+
results: z.array(searchResultSchema)
|
|
6419
|
+
});
|
|
6478
6420
|
var stepSchema = z.lazy(
|
|
6479
6421
|
() => z.object({
|
|
6480
6422
|
key: z.string().optional(),
|
|
@@ -6510,6 +6452,29 @@ var schemaSchema = z.lazy(
|
|
|
6510
6452
|
stringSchemaSchema
|
|
6511
6453
|
])
|
|
6512
6454
|
);
|
|
6455
|
+
var layoutSchema = z.lazy(
|
|
6456
|
+
() => z.union([
|
|
6457
|
+
alertLayoutSchema,
|
|
6458
|
+
boxLayoutSchema,
|
|
6459
|
+
buttonLayoutSchema,
|
|
6460
|
+
columnsLayoutSchema,
|
|
6461
|
+
decisionLayoutSchema,
|
|
6462
|
+
dividerLayoutSchema,
|
|
6463
|
+
formLayoutSchema,
|
|
6464
|
+
headingLayoutSchema,
|
|
6465
|
+
imageLayoutSchema,
|
|
6466
|
+
infoLayoutSchema,
|
|
6467
|
+
instructionsLayoutSchema,
|
|
6468
|
+
listLayoutSchema,
|
|
6469
|
+
loadingIndicatorLayoutSchema,
|
|
6470
|
+
markdownLayoutSchema,
|
|
6471
|
+
modalLayoutSchema,
|
|
6472
|
+
paragraphLayoutSchema,
|
|
6473
|
+
reviewLayoutSchema,
|
|
6474
|
+
searchLayoutSchema,
|
|
6475
|
+
statusListLayoutSchema
|
|
6476
|
+
])
|
|
6477
|
+
);
|
|
6513
6478
|
var allOfSchemaSchema = z.lazy(
|
|
6514
6479
|
() => z.object({
|
|
6515
6480
|
disabled: z.boolean().optional(),
|
|
@@ -6719,6 +6684,15 @@ var stringSchemaSchema = z.lazy(
|
|
|
6719
6684
|
help: helpSchema.optional()
|
|
6720
6685
|
})
|
|
6721
6686
|
);
|
|
6687
|
+
var persistAsyncSchema = z.lazy(
|
|
6688
|
+
() => z.object({
|
|
6689
|
+
param: z.string(),
|
|
6690
|
+
idProperty: z.string(),
|
|
6691
|
+
schema: schemaSchema,
|
|
6692
|
+
url: z.string(),
|
|
6693
|
+
method: httpMethodSchema
|
|
6694
|
+
})
|
|
6695
|
+
);
|
|
6722
6696
|
var arraySchemaListSchema = z.lazy(
|
|
6723
6697
|
() => z.object({
|
|
6724
6698
|
type: z.literal("array"),
|
|
@@ -6746,15 +6720,6 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6746
6720
|
disabled: z.boolean().optional()
|
|
6747
6721
|
})
|
|
6748
6722
|
);
|
|
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
|
|
6756
|
-
})
|
|
6757
|
-
);
|
|
6758
6723
|
var arraySchemaTupleSchema = z.lazy(
|
|
6759
6724
|
() => z.object({
|
|
6760
6725
|
type: z.literal("array"),
|
|
@@ -6775,6 +6740,41 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6775
6740
|
alert: alertLayoutSchema.optional()
|
|
6776
6741
|
})
|
|
6777
6742
|
);
|
|
6743
|
+
var modalLayoutSchema = z.lazy(
|
|
6744
|
+
() => z.object({
|
|
6745
|
+
type: z.literal("modal"),
|
|
6746
|
+
control: z.string().optional(),
|
|
6747
|
+
margin: sizeSchema.optional(),
|
|
6748
|
+
trigger: modalLayoutTriggerSchema,
|
|
6749
|
+
content: modalLayoutContentSchema
|
|
6750
|
+
})
|
|
6751
|
+
);
|
|
6752
|
+
var modalLayoutContentSchema = z.lazy(
|
|
6753
|
+
() => z.object({
|
|
6754
|
+
title: z.string().optional(),
|
|
6755
|
+
components: z.array(layoutSchema)
|
|
6756
|
+
})
|
|
6757
|
+
);
|
|
6758
|
+
var columnsLayoutSchema = z.lazy(
|
|
6759
|
+
() => z.object({
|
|
6760
|
+
type: z.literal("columns"),
|
|
6761
|
+
left: z.array(layoutSchema),
|
|
6762
|
+
right: z.array(layoutSchema),
|
|
6763
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6764
|
+
control: z.string().optional(),
|
|
6765
|
+
margin: sizeSchema.optional()
|
|
6766
|
+
})
|
|
6767
|
+
);
|
|
6768
|
+
var boxLayoutSchema = z.lazy(
|
|
6769
|
+
() => z.object({
|
|
6770
|
+
type: z.literal("box"),
|
|
6771
|
+
components: z.array(layoutSchema),
|
|
6772
|
+
width: sizeSchema.optional(),
|
|
6773
|
+
border: z.boolean().optional(),
|
|
6774
|
+
control: z.string().optional(),
|
|
6775
|
+
margin: sizeSchema.optional()
|
|
6776
|
+
})
|
|
6777
|
+
);
|
|
6778
6778
|
var validateStep = (step) => validate(step, stepSchema);
|
|
6779
6779
|
var validateActionResponse = (response) => validate(response, actionResponseBodySchema);
|
|
6780
6780
|
var validate = (value, schema) => {
|
|
@@ -6948,12 +6948,12 @@ var getStepPolling = ({
|
|
|
6948
6948
|
}).catch(() => {
|
|
6949
6949
|
});
|
|
6950
6950
|
};
|
|
6951
|
-
poll();
|
|
6952
6951
|
const intervalRef = setInterval(poll, delay * 1e3);
|
|
6953
6952
|
const stop = () => {
|
|
6954
6953
|
clearTimeout(intervalRef);
|
|
6955
6954
|
abortController.abort();
|
|
6956
6955
|
};
|
|
6956
|
+
poll();
|
|
6957
6957
|
return { stop };
|
|
6958
6958
|
};
|
|
6959
6959
|
|
|
@@ -7755,7 +7755,7 @@ var getBelowMinimumDateCheck = ({ minimum }, messageFunctions) => (value) => {
|
|
|
7755
7755
|
return null;
|
|
7756
7756
|
};
|
|
7757
7757
|
var getNotAdheringToPatternCheck = ({ pattern }, messageFunctions) => (value) => {
|
|
7758
|
-
if (isString(pattern) && isString(value) && !new RegExp(pattern
|
|
7758
|
+
if (isString(pattern) && isString(value) && !new RegExp(pattern).test(value)) {
|
|
7759
7759
|
return messageFunctions.pattern();
|
|
7760
7760
|
}
|
|
7761
7761
|
return null;
|
|
@@ -7936,7 +7936,7 @@ var getPerformPersistAsync = ({
|
|
|
7936
7936
|
trackFailure();
|
|
7937
7937
|
throw new Error(genericErrorMessage);
|
|
7938
7938
|
}
|
|
7939
|
-
const validationError = response.
|
|
7939
|
+
const validationError = !response.ok && isObject(json) ? getValidationError(param, json) : null;
|
|
7940
7940
|
trackFailure(json);
|
|
7941
7941
|
throw new Error(validationError != null ? validationError : genericErrorMessage);
|
|
7942
7942
|
};
|
|
@@ -14450,9 +14450,6 @@ var debounce2 = (callback, waitMs) => {
|
|
|
14450
14450
|
function isStatus2xx(status) {
|
|
14451
14451
|
return status >= 200 && status < 300;
|
|
14452
14452
|
}
|
|
14453
|
-
function isStatus422(status) {
|
|
14454
|
-
return status === 422;
|
|
14455
|
-
}
|
|
14456
14453
|
|
|
14457
14454
|
// src/legacy/common/validators/types/type-validators.ts
|
|
14458
14455
|
var isString2 = (value) => typeof value === "string";
|
|
@@ -14650,7 +14647,7 @@ function isValidPattern(value, pattern) {
|
|
|
14650
14647
|
if (value === void 0 || value === null) {
|
|
14651
14648
|
return false;
|
|
14652
14649
|
}
|
|
14653
|
-
const regex = new RegExp(pattern
|
|
14650
|
+
const regex = new RegExp(pattern);
|
|
14654
14651
|
return Boolean(regex.test(value));
|
|
14655
14652
|
}
|
|
14656
14653
|
function isValidMaximum(value, maximum) {
|
|
@@ -17888,7 +17885,7 @@ function PersistAsyncBlobSchema(props) {
|
|
|
17888
17885
|
}
|
|
17889
17886
|
}, [model, schema, submitted, required]);
|
|
17890
17887
|
const onSuccess = async (httpResponse, _fileName) => {
|
|
17891
|
-
const jsonResponse = await httpResponse
|
|
17888
|
+
const jsonResponse = await getResponseJsonObject(httpResponse);
|
|
17892
17889
|
const id2 = getIdFromResponse(schema.persistAsync.idProperty, jsonResponse);
|
|
17893
17890
|
onChange({ model: id2, triggerSchema: schema, triggerModel: id2 });
|
|
17894
17891
|
setChanged(true);
|
|
@@ -17896,8 +17893,8 @@ function PersistAsyncBlobSchema(props) {
|
|
|
17896
17893
|
};
|
|
17897
17894
|
const onFailure = async (error) => {
|
|
17898
17895
|
const errorResponse = error;
|
|
17899
|
-
if (errorResponse.response
|
|
17900
|
-
const jsonResponse = await errorResponse.response
|
|
17896
|
+
if (errorResponse.response) {
|
|
17897
|
+
const jsonResponse = await getResponseJsonObject(errorResponse.response);
|
|
17901
17898
|
setPersistAsyncValidationMessages(jsonResponse.validation || {});
|
|
17902
17899
|
setPersistAsyncValidations([schema.persistAsync.param]);
|
|
17903
17900
|
}
|
|
@@ -17956,6 +17953,10 @@ function PersistAsyncBlobSchema(props) {
|
|
|
17956
17953
|
)
|
|
17957
17954
|
] });
|
|
17958
17955
|
}
|
|
17956
|
+
var getResponseJsonObject = async (response) => {
|
|
17957
|
+
const json = await response.json().catch(() => ({}));
|
|
17958
|
+
return isObject2(json) ? json : {};
|
|
17959
|
+
};
|
|
17959
17960
|
var PersistAsyncBlobSchema_default = PersistAsyncBlobSchema;
|
|
17960
17961
|
|
|
17961
17962
|
// src/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.tsx
|
|
@@ -19322,7 +19323,7 @@ function PersistAsyncBasicSchema(props) {
|
|
|
19322
19323
|
if (isStatus2xx(response.status)) {
|
|
19323
19324
|
const id = getIdFromResponse(idProperty, responseBody);
|
|
19324
19325
|
onChange({ model: id, triggerSchema: schema, triggerModel: id });
|
|
19325
|
-
} else if (
|
|
19326
|
+
} else if (!response.ok) {
|
|
19326
19327
|
const { validation } = responseBody;
|
|
19327
19328
|
const error = isObject2(validation) && (validation == null ? void 0 : validation[param]) || null;
|
|
19328
19329
|
setPersistAsyncError(error);
|
|
@@ -19426,13 +19427,11 @@ var usePersistAsync = (persistAsync) => {
|
|
|
19426
19427
|
}
|
|
19427
19428
|
}
|
|
19428
19429
|
async function handleHTTPError(response) {
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
throw new Error(error);
|
|
19435
|
-
}
|
|
19430
|
+
const jsonResponse = await response.json();
|
|
19431
|
+
if (isObject2(jsonResponse)) {
|
|
19432
|
+
const error = getErrorFromResponse(persistAsync.param, jsonResponse);
|
|
19433
|
+
if (isString2(error)) {
|
|
19434
|
+
throw new Error(error);
|
|
19436
19435
|
}
|
|
19437
19436
|
}
|
|
19438
19437
|
throw new Error(intl.formatMessage(generic_error_messages_default.genericErrorRetryHint));
|