@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.mjs
CHANGED
|
@@ -5919,10 +5919,21 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5919
5919
|
quotelessJson,
|
|
5920
5920
|
ZodError
|
|
5921
5921
|
});
|
|
5922
|
-
var
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5922
|
+
var jsonElementSchema = z.lazy(
|
|
5923
|
+
() => z.union([
|
|
5924
|
+
z.string(),
|
|
5925
|
+
z.number(),
|
|
5926
|
+
z.boolean(),
|
|
5927
|
+
z.record(jsonElementSchema),
|
|
5928
|
+
z.array(jsonElementSchema)
|
|
5929
|
+
]).nullable()
|
|
5930
|
+
);
|
|
5931
|
+
var externalSchema = z.object({
|
|
5932
|
+
url: z.string()
|
|
5933
|
+
});
|
|
5934
|
+
var stepErrorSchema = z.object({
|
|
5935
|
+
error: z.string().optional(),
|
|
5936
|
+
validation: jsonElementSchema.optional()
|
|
5926
5937
|
});
|
|
5927
5938
|
var httpMethodSchema = z.union([
|
|
5928
5939
|
z.literal("GET"),
|
|
@@ -5931,31 +5942,38 @@ var httpMethodSchema = z.union([
|
|
|
5931
5942
|
z.literal("PATCH"),
|
|
5932
5943
|
z.literal("DELETE")
|
|
5933
5944
|
]);
|
|
5934
|
-
var
|
|
5935
|
-
|
|
5945
|
+
var errorResponseBodySchema = z.object({
|
|
5946
|
+
refreshFormUrl: z.string().optional(),
|
|
5947
|
+
analytics: z.record(z.string()).optional(),
|
|
5948
|
+
error: z.string().optional(),
|
|
5949
|
+
validation: jsonElementSchema.optional(),
|
|
5950
|
+
refreshUrl: z.string().optional()
|
|
5936
5951
|
});
|
|
5937
|
-
var
|
|
5938
|
-
z.literal("
|
|
5939
|
-
z.literal("
|
|
5940
|
-
z.literal("
|
|
5941
|
-
z.literal("
|
|
5942
|
-
z.literal("
|
|
5943
|
-
z.literal("
|
|
5944
|
-
z.literal("info"),
|
|
5945
|
-
z.literal("primary")
|
|
5952
|
+
var stringSchemaFormatSchema = z.union([
|
|
5953
|
+
z.literal("date"),
|
|
5954
|
+
z.literal("email"),
|
|
5955
|
+
z.literal("numeric"),
|
|
5956
|
+
z.literal("password"),
|
|
5957
|
+
z.literal("phone-number"),
|
|
5958
|
+
z.literal("base64url")
|
|
5946
5959
|
]);
|
|
5947
|
-
var
|
|
5948
|
-
text: z.string()
|
|
5960
|
+
var imageSchema = z.object({
|
|
5961
|
+
text: z.string().optional(),
|
|
5962
|
+
url: z.string(),
|
|
5963
|
+
accessibilityDescription: z.string().optional()
|
|
5949
5964
|
});
|
|
5950
|
-
var
|
|
5951
|
-
z.
|
|
5952
|
-
z.
|
|
5953
|
-
z.
|
|
5954
|
-
z.
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5965
|
+
var summaryProviderSchema = z.object({
|
|
5966
|
+
providesTitle: z.boolean().optional(),
|
|
5967
|
+
providesDescription: z.boolean().optional(),
|
|
5968
|
+
providesIcon: z.boolean().optional(),
|
|
5969
|
+
providesImage: z.boolean().optional()
|
|
5970
|
+
});
|
|
5971
|
+
var validateAsyncSchema = z.object({
|
|
5972
|
+
param: z.string(),
|
|
5973
|
+
method: httpMethodSchema,
|
|
5974
|
+
url: z.string()
|
|
5975
|
+
});
|
|
5976
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5959
5977
|
var autocompleteTokenSchema = z.union([
|
|
5960
5978
|
z.literal("on"),
|
|
5961
5979
|
z.literal("name"),
|
|
@@ -6021,38 +6039,50 @@ var autocompleteTokenSchema = z.union([
|
|
|
6021
6039
|
z.literal("fax"),
|
|
6022
6040
|
z.literal("pager")
|
|
6023
6041
|
]);
|
|
6024
|
-
var
|
|
6025
|
-
|
|
6026
|
-
size: sizeSchema.optional(),
|
|
6027
|
-
control: z.string().optional(),
|
|
6028
|
-
margin: sizeSchema.optional()
|
|
6042
|
+
var helpSchema = z.object({
|
|
6043
|
+
markdown: z.string()
|
|
6029
6044
|
});
|
|
6030
|
-
var
|
|
6031
|
-
|
|
6032
|
-
text: z.string(),
|
|
6033
|
-
align: alignSchema.optional(),
|
|
6034
|
-
control: z.string().optional(),
|
|
6035
|
-
margin: sizeSchema.optional()
|
|
6045
|
+
var iconNamedSchema = z.object({
|
|
6046
|
+
name: z.string()
|
|
6036
6047
|
});
|
|
6037
|
-
var
|
|
6038
|
-
|
|
6039
|
-
control: z.string().optional(),
|
|
6040
|
-
margin: sizeSchema.optional()
|
|
6048
|
+
var iconTextSchema = z.object({
|
|
6049
|
+
text: z.string()
|
|
6041
6050
|
});
|
|
6051
|
+
var contextSchema = z.union([
|
|
6052
|
+
z.literal("positive"),
|
|
6053
|
+
z.literal("neutral"),
|
|
6054
|
+
z.literal("warning"),
|
|
6055
|
+
z.literal("negative"),
|
|
6056
|
+
z.literal("success"),
|
|
6057
|
+
z.literal("failure"),
|
|
6058
|
+
z.literal("info"),
|
|
6059
|
+
z.literal("primary")
|
|
6060
|
+
]);
|
|
6061
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
6062
|
+
var sizeSchema = z.union([
|
|
6063
|
+
z.literal("xs"),
|
|
6064
|
+
z.literal("sm"),
|
|
6065
|
+
z.literal("md"),
|
|
6066
|
+
z.literal("lg"),
|
|
6067
|
+
z.literal("xl")
|
|
6068
|
+
]);
|
|
6042
6069
|
var listLayoutStatusSchema = z.union([
|
|
6043
6070
|
z.literal("warning"),
|
|
6044
6071
|
z.literal("neutral"),
|
|
6045
6072
|
z.literal("positive")
|
|
6046
6073
|
]);
|
|
6047
|
-
var
|
|
6048
|
-
|
|
6074
|
+
var modalLayoutTriggerSchema = z.object({
|
|
6075
|
+
title: z.string()
|
|
6049
6076
|
});
|
|
6050
|
-
var
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6077
|
+
var columnsLayoutBiasSchema = z.union([
|
|
6078
|
+
z.literal("none"),
|
|
6079
|
+
z.literal("left"),
|
|
6080
|
+
z.literal("right")
|
|
6081
|
+
]);
|
|
6082
|
+
var markdownLayoutSchema = z.object({
|
|
6083
|
+
type: z.literal("markdown"),
|
|
6084
|
+
content: z.string(),
|
|
6085
|
+
align: alignSchema.optional(),
|
|
6056
6086
|
control: z.string().optional(),
|
|
6057
6087
|
margin: sizeSchema.optional()
|
|
6058
6088
|
});
|
|
@@ -6061,20 +6091,10 @@ var statusListLayoutStatusSchema = z.union([
|
|
|
6061
6091
|
z.literal("pending"),
|
|
6062
6092
|
z.literal("done")
|
|
6063
6093
|
]);
|
|
6064
|
-
var
|
|
6094
|
+
var paragraphLayoutSchema = z.object({
|
|
6095
|
+
type: z.literal("paragraph"),
|
|
6065
6096
|
text: z.string(),
|
|
6066
|
-
|
|
6067
|
-
});
|
|
6068
|
-
var modalLayoutTriggerSchema = z.object({
|
|
6069
|
-
title: z.string()
|
|
6070
|
-
});
|
|
6071
|
-
var searchLayoutSchema = z.object({
|
|
6072
|
-
type: z.literal("search"),
|
|
6073
|
-
title: z.string(),
|
|
6074
|
-
method: httpMethodSchema,
|
|
6075
|
-
url: z.string(),
|
|
6076
|
-
param: z.string(),
|
|
6077
|
-
emptyMessage: z.string().optional(),
|
|
6097
|
+
align: alignSchema.optional(),
|
|
6078
6098
|
control: z.string().optional(),
|
|
6079
6099
|
margin: sizeSchema.optional()
|
|
6080
6100
|
});
|
|
@@ -6085,6 +6105,24 @@ var infoLayoutSchema = z.object({
|
|
|
6085
6105
|
control: z.string().optional(),
|
|
6086
6106
|
margin: sizeSchema.optional()
|
|
6087
6107
|
});
|
|
6108
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
6109
|
+
$ref: z.string()
|
|
6110
|
+
});
|
|
6111
|
+
var reviewLayoutFieldSchema = z.object({
|
|
6112
|
+
label: z.string(),
|
|
6113
|
+
value: z.string(),
|
|
6114
|
+
rawValue: z.string().optional(),
|
|
6115
|
+
help: helpSchema.optional()
|
|
6116
|
+
});
|
|
6117
|
+
var instructionsLayoutItemSchema = z.object({
|
|
6118
|
+
text: z.string(),
|
|
6119
|
+
context: contextSchema
|
|
6120
|
+
});
|
|
6121
|
+
var dividerLayoutSchema = z.object({
|
|
6122
|
+
type: z.literal("divider"),
|
|
6123
|
+
control: z.string().optional(),
|
|
6124
|
+
margin: sizeSchema.optional()
|
|
6125
|
+
});
|
|
6088
6126
|
var formLayoutSchema = z.object({
|
|
6089
6127
|
type: z.literal("form"),
|
|
6090
6128
|
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
@@ -6100,73 +6138,32 @@ var headingLayoutSchema = z.object({
|
|
|
6100
6138
|
control: z.string().optional(),
|
|
6101
6139
|
margin: sizeSchema.optional()
|
|
6102
6140
|
});
|
|
6103
|
-
var
|
|
6104
|
-
type: z.literal("
|
|
6105
|
-
|
|
6106
|
-
|
|
6141
|
+
var instructionsLayoutSchema = z.object({
|
|
6142
|
+
type: z.literal("instructions"),
|
|
6143
|
+
title: z.string().optional(),
|
|
6144
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
6107
6145
|
control: z.string().optional(),
|
|
6108
6146
|
margin: sizeSchema.optional()
|
|
6109
6147
|
});
|
|
6110
|
-
var
|
|
6111
|
-
z.literal("
|
|
6112
|
-
|
|
6113
|
-
z.
|
|
6114
|
-
|
|
6115
|
-
var helpSchema = z.object({
|
|
6116
|
-
markdown: z.string()
|
|
6148
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
6149
|
+
type: z.literal("loading-indicator"),
|
|
6150
|
+
size: sizeSchema.optional(),
|
|
6151
|
+
control: z.string().optional(),
|
|
6152
|
+
margin: sizeSchema.optional()
|
|
6117
6153
|
});
|
|
6118
|
-
var
|
|
6119
|
-
|
|
6154
|
+
var searchLayoutSchema = z.object({
|
|
6155
|
+
type: z.literal("search"),
|
|
6156
|
+
title: z.string(),
|
|
6120
6157
|
method: httpMethodSchema,
|
|
6158
|
+
url: z.string(),
|
|
6121
6159
|
param: z.string(),
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
() => z.union([
|
|
6126
|
-
z.string(),
|
|
6127
|
-
z.number(),
|
|
6128
|
-
z.boolean(),
|
|
6129
|
-
z.record(jsonElementSchema),
|
|
6130
|
-
z.array(jsonElementSchema)
|
|
6131
|
-
]).nullable()
|
|
6132
|
-
);
|
|
6133
|
-
var externalSchema = z.object({
|
|
6134
|
-
url: z.string()
|
|
6135
|
-
});
|
|
6136
|
-
var stepErrorSchema = z.object({
|
|
6137
|
-
error: z.string().optional(),
|
|
6138
|
-
validation: jsonElementSchema.optional()
|
|
6139
|
-
});
|
|
6140
|
-
var stringSchemaFormatSchema = z.union([
|
|
6141
|
-
z.literal("date"),
|
|
6142
|
-
z.literal("email"),
|
|
6143
|
-
z.literal("numeric"),
|
|
6144
|
-
z.literal("password"),
|
|
6145
|
-
z.literal("phone-number"),
|
|
6146
|
-
z.literal("base64url")
|
|
6147
|
-
]);
|
|
6148
|
-
var summarySummariserSchema = z.object({
|
|
6149
|
-
defaultTitle: z.string().optional(),
|
|
6150
|
-
defaultDescription: z.string().optional(),
|
|
6151
|
-
defaultIcon: iconSchema.optional(),
|
|
6152
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
6153
|
-
providesTitle: z.boolean().optional(),
|
|
6154
|
-
providesDescription: z.boolean().optional(),
|
|
6155
|
-
providesIcon: z.boolean().optional(),
|
|
6156
|
-
providesImage: z.boolean().optional()
|
|
6160
|
+
emptyMessage: z.string().optional(),
|
|
6161
|
+
control: z.string().optional(),
|
|
6162
|
+
margin: sizeSchema.optional()
|
|
6157
6163
|
});
|
|
6158
|
-
var
|
|
6159
|
-
param: z.string(),
|
|
6160
|
-
method: httpMethodSchema,
|
|
6164
|
+
var linkSchema = z.object({
|
|
6161
6165
|
url: z.string()
|
|
6162
6166
|
});
|
|
6163
|
-
var summaryProviderSchema = z.object({
|
|
6164
|
-
providesTitle: z.boolean().optional(),
|
|
6165
|
-
providesDescription: z.boolean().optional(),
|
|
6166
|
-
providesIcon: z.boolean().optional(),
|
|
6167
|
-
providesImage: z.boolean().optional()
|
|
6168
|
-
});
|
|
6169
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
6170
6167
|
var navigationStackBehaviorSchema = z.union([
|
|
6171
6168
|
z.literal("default"),
|
|
6172
6169
|
z.literal("remove-previous"),
|
|
@@ -6180,10 +6177,6 @@ var actionTypeSchema = z.union([
|
|
|
6180
6177
|
z.literal("positive"),
|
|
6181
6178
|
z.literal("negative")
|
|
6182
6179
|
]);
|
|
6183
|
-
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6184
|
-
var linkSchema = z.object({
|
|
6185
|
-
url: z.string()
|
|
6186
|
-
});
|
|
6187
6180
|
var actionSchema = z.object({
|
|
6188
6181
|
title: z.string().optional(),
|
|
6189
6182
|
type: actionTypeSchema.optional(),
|
|
@@ -6199,93 +6192,52 @@ var actionSchema = z.object({
|
|
|
6199
6192
|
timeout: z.number().optional(),
|
|
6200
6193
|
skipValidation: z.boolean().optional()
|
|
6201
6194
|
});
|
|
6202
|
-
var listLayoutItemSchema = z.object({
|
|
6203
|
-
title: z.string(),
|
|
6204
|
-
description: z.string().optional(),
|
|
6205
|
-
icon: iconSchema,
|
|
6206
|
-
status: listLayoutStatusSchema.optional()
|
|
6207
|
-
});
|
|
6208
|
-
var decisionLayoutOptionSchema = z.object({
|
|
6209
|
-
action: actionSchema,
|
|
6210
|
-
title: z.string(),
|
|
6211
|
-
description: z.string().optional(),
|
|
6212
|
-
disabled: z.boolean().optional(),
|
|
6213
|
-
icon: iconSchema.optional(),
|
|
6214
|
-
image: imageLayoutSchema.optional()
|
|
6215
|
-
});
|
|
6216
|
-
var instructionsLayoutSchema = z.object({
|
|
6217
|
-
type: z.literal("instructions"),
|
|
6218
|
-
title: z.string().optional(),
|
|
6219
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
6220
|
-
control: z.string().optional(),
|
|
6221
|
-
margin: sizeSchema.optional()
|
|
6222
|
-
});
|
|
6223
|
-
var behaviorSchema = z.object({
|
|
6224
|
-
action: actionSchema.optional(),
|
|
6225
|
-
link: linkSchema.optional()
|
|
6226
|
-
});
|
|
6227
|
-
var buttonLayoutSchema = z.object({
|
|
6228
|
-
type: z.literal("button"),
|
|
6229
|
-
size: sizeSchema.optional(),
|
|
6230
|
-
title: z.string().optional(),
|
|
6231
|
-
action: actionSchema,
|
|
6232
|
-
context: contextSchema.optional(),
|
|
6233
|
-
disabled: z.boolean().optional(),
|
|
6234
|
-
pinOrder: z.number().optional(),
|
|
6235
|
-
control: z.string().optional(),
|
|
6236
|
-
margin: sizeSchema.optional()
|
|
6237
|
-
});
|
|
6238
|
-
var reviewLayoutFieldSchema = z.object({
|
|
6239
|
-
label: z.string(),
|
|
6240
|
-
value: z.string(),
|
|
6241
|
-
rawValue: z.string().optional(),
|
|
6242
|
-
help: helpSchema.optional()
|
|
6243
|
-
});
|
|
6244
|
-
var searchResultSearchSchema = z.object({
|
|
6245
|
-
type: z.literal("search"),
|
|
6246
|
-
title: z.string(),
|
|
6247
|
-
description: z.string().optional(),
|
|
6248
|
-
icon: iconSchema.optional(),
|
|
6249
|
-
image: imageLayoutSchema.optional(),
|
|
6250
|
-
value: searchSearchRequestSchema
|
|
6251
|
-
});
|
|
6252
|
-
var searchResultActionSchema = z.object({
|
|
6253
|
-
type: z.literal("action"),
|
|
6254
|
-
title: z.string(),
|
|
6255
|
-
description: z.string().optional(),
|
|
6256
|
-
icon: iconSchema.optional(),
|
|
6257
|
-
image: imageLayoutSchema.optional(),
|
|
6258
|
-
value: actionSchema
|
|
6259
|
-
});
|
|
6260
|
-
var actionResponseBodySchema = z.object({
|
|
6261
|
-
action: actionSchema
|
|
6262
|
-
});
|
|
6263
|
-
var errorResponseBodySchema = z.object({
|
|
6264
|
-
refreshFormUrl: z.string().optional(),
|
|
6265
|
-
analytics: z.record(z.string()).optional(),
|
|
6266
|
-
error: z.string().optional(),
|
|
6267
|
-
validation: jsonElementSchema.optional(),
|
|
6268
|
-
refreshUrl: z.string().optional()
|
|
6269
|
-
});
|
|
6270
6195
|
var linkHandlerSchema = z.object({
|
|
6271
6196
|
regexPattern: z.string(),
|
|
6272
6197
|
action: actionSchema
|
|
6273
6198
|
});
|
|
6274
|
-
var
|
|
6199
|
+
var actionResponseBodySchema = z.object({
|
|
6275
6200
|
action: actionSchema
|
|
6276
6201
|
});
|
|
6277
|
-
var
|
|
6278
|
-
|
|
6279
|
-
|
|
6202
|
+
var searchSearchRequestSchema = z.object({
|
|
6203
|
+
url: z.string(),
|
|
6204
|
+
method: httpMethodSchema,
|
|
6205
|
+
param: z.string(),
|
|
6206
|
+
query: z.string()
|
|
6207
|
+
});
|
|
6208
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
6209
|
+
var imageLayoutSchema = z.object({
|
|
6210
|
+
type: z.literal("image"),
|
|
6211
|
+
text: z.string().optional(),
|
|
6212
|
+
url: z.string(),
|
|
6213
|
+
size: sizeSchema.optional(),
|
|
6214
|
+
accessibilityDescription: z.string().optional(),
|
|
6215
|
+
control: z.string().optional(),
|
|
6216
|
+
margin: sizeSchema.optional()
|
|
6280
6217
|
});
|
|
6281
|
-
var
|
|
6218
|
+
var searchResultActionSchema = z.object({
|
|
6219
|
+
type: z.literal("action"),
|
|
6282
6220
|
title: z.string(),
|
|
6283
|
-
|
|
6221
|
+
description: z.string().optional(),
|
|
6222
|
+
icon: iconSchema.optional(),
|
|
6223
|
+
image: imageLayoutSchema.optional(),
|
|
6224
|
+
value: actionSchema
|
|
6284
6225
|
});
|
|
6285
|
-
var
|
|
6226
|
+
var summarySummariserSchema = z.object({
|
|
6227
|
+
defaultTitle: z.string().optional(),
|
|
6228
|
+
defaultDescription: z.string().optional(),
|
|
6229
|
+
defaultIcon: iconSchema.optional(),
|
|
6230
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
6231
|
+
providesTitle: z.boolean().optional(),
|
|
6232
|
+
providesDescription: z.boolean().optional(),
|
|
6233
|
+
providesIcon: z.boolean().optional(),
|
|
6234
|
+
providesImage: z.boolean().optional()
|
|
6235
|
+
});
|
|
6236
|
+
var listLayoutItemSchema = z.object({
|
|
6286
6237
|
title: z.string(),
|
|
6287
|
-
|
|
6288
|
-
|
|
6238
|
+
description: z.string().optional(),
|
|
6239
|
+
icon: iconSchema,
|
|
6240
|
+
status: listLayoutStatusSchema.optional()
|
|
6289
6241
|
});
|
|
6290
6242
|
var listLayoutSchema = z.object({
|
|
6291
6243
|
type: z.literal("list"),
|
|
@@ -6294,29 +6246,46 @@ var listLayoutSchema = z.object({
|
|
|
6294
6246
|
control: z.string().optional(),
|
|
6295
6247
|
margin: sizeSchema.optional()
|
|
6296
6248
|
});
|
|
6297
|
-
var
|
|
6298
|
-
|
|
6249
|
+
var decisionLayoutOptionSchema = z.object({
|
|
6250
|
+
action: actionSchema,
|
|
6251
|
+
title: z.string(),
|
|
6252
|
+
description: z.string().optional(),
|
|
6253
|
+
disabled: z.boolean().optional(),
|
|
6254
|
+
icon: iconSchema.optional(),
|
|
6255
|
+
image: imageLayoutSchema.optional()
|
|
6256
|
+
});
|
|
6257
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
6258
|
+
title: z.string(),
|
|
6259
|
+
action: actionSchema
|
|
6260
|
+
});
|
|
6261
|
+
var buttonLayoutSchema = z.object({
|
|
6262
|
+
type: z.literal("button"),
|
|
6263
|
+
size: sizeSchema.optional(),
|
|
6299
6264
|
title: z.string().optional(),
|
|
6300
|
-
|
|
6265
|
+
action: actionSchema,
|
|
6266
|
+
context: contextSchema.optional(),
|
|
6267
|
+
disabled: z.boolean().optional(),
|
|
6268
|
+
pinOrder: z.number().optional(),
|
|
6301
6269
|
control: z.string().optional(),
|
|
6302
6270
|
margin: sizeSchema.optional()
|
|
6303
6271
|
});
|
|
6304
|
-
var
|
|
6272
|
+
var behaviorSchema = z.object({
|
|
6273
|
+
action: actionSchema.optional(),
|
|
6274
|
+
link: linkSchema.optional()
|
|
6275
|
+
});
|
|
6276
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
6305
6277
|
title: z.string(),
|
|
6306
6278
|
accessibilityDescription: z.string().optional(),
|
|
6307
6279
|
behavior: behaviorSchema
|
|
6308
6280
|
});
|
|
6309
|
-
var
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
6281
|
+
var pollingOnErrorSchema = z.object({
|
|
6282
|
+
action: actionSchema
|
|
6283
|
+
});
|
|
6284
|
+
var navigationBackBehaviorSchema = z.object({
|
|
6314
6285
|
title: z.string().optional(),
|
|
6315
|
-
|
|
6316
|
-
control: z.string().optional(),
|
|
6317
|
-
margin: sizeSchema.optional()
|
|
6286
|
+
action: actionSchema
|
|
6318
6287
|
});
|
|
6319
|
-
var
|
|
6288
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
6320
6289
|
var pollingSchema = z.object({
|
|
6321
6290
|
url: z.string(),
|
|
6322
6291
|
interval: z.number().optional(),
|
|
@@ -6330,6 +6299,14 @@ var navigationSchema = z.object({
|
|
|
6330
6299
|
back: navigationBackBehaviorSchema.optional(),
|
|
6331
6300
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6332
6301
|
});
|
|
6302
|
+
var searchResultSearchSchema = z.object({
|
|
6303
|
+
type: z.literal("search"),
|
|
6304
|
+
title: z.string(),
|
|
6305
|
+
description: z.string().optional(),
|
|
6306
|
+
icon: iconSchema.optional(),
|
|
6307
|
+
image: imageLayoutSchema.optional(),
|
|
6308
|
+
value: searchSearchRequestSchema
|
|
6309
|
+
});
|
|
6333
6310
|
var alertLayoutSchema = z.object({
|
|
6334
6311
|
type: z.literal("alert"),
|
|
6335
6312
|
markdown: z.string(),
|
|
@@ -6338,16 +6315,29 @@ var alertLayoutSchema = z.object({
|
|
|
6338
6315
|
margin: sizeSchema.optional(),
|
|
6339
6316
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
6340
6317
|
});
|
|
6341
|
-
var
|
|
6318
|
+
var itemCallToActionSchema = z.object({
|
|
6342
6319
|
title: z.string(),
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
6346
|
-
callToAction: itemCallToActionSchema.optional()
|
|
6320
|
+
accessibilityDescription: z.string().optional(),
|
|
6321
|
+
behavior: behaviorSchema
|
|
6347
6322
|
});
|
|
6348
|
-
var
|
|
6349
|
-
|
|
6323
|
+
var decisionLayoutSchema = z.object({
|
|
6324
|
+
type: z.literal("decision"),
|
|
6325
|
+
title: z.string().optional(),
|
|
6326
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
6327
|
+
control: z.string().optional(),
|
|
6328
|
+
margin: sizeSchema.optional()
|
|
6329
|
+
});
|
|
6330
|
+
var reviewLayoutSchema = z.object({
|
|
6331
|
+
type: z.literal("review"),
|
|
6332
|
+
orientation: z.string().optional(),
|
|
6333
|
+
action: actionSchema.optional(),
|
|
6334
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
6335
|
+
title: z.string().optional(),
|
|
6336
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
6337
|
+
control: z.string().optional(),
|
|
6338
|
+
margin: sizeSchema.optional()
|
|
6350
6339
|
});
|
|
6340
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
6351
6341
|
var blobSchemaSchema = z.object({
|
|
6352
6342
|
type: z.literal("blob"),
|
|
6353
6343
|
promoted: z.boolean().optional(),
|
|
@@ -6386,6 +6376,13 @@ var constSchemaSchema = z.object({
|
|
|
6386
6376
|
analyticsId: z.string().optional(),
|
|
6387
6377
|
disabled: z.boolean().optional()
|
|
6388
6378
|
});
|
|
6379
|
+
var statusListLayoutItemSchema = z.object({
|
|
6380
|
+
title: z.string(),
|
|
6381
|
+
description: z.string().optional(),
|
|
6382
|
+
icon: iconSchema,
|
|
6383
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
6384
|
+
callToAction: itemCallToActionSchema.optional()
|
|
6385
|
+
});
|
|
6389
6386
|
var statusListLayoutSchema = z.object({
|
|
6390
6387
|
type: z.literal("status-list"),
|
|
6391
6388
|
items: z.array(statusListLayoutItemSchema),
|
|
@@ -6393,64 +6390,9 @@ var statusListLayoutSchema = z.object({
|
|
|
6393
6390
|
control: z.string().optional(),
|
|
6394
6391
|
margin: sizeSchema.optional()
|
|
6395
6392
|
});
|
|
6396
|
-
var
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
boxLayoutSchema,
|
|
6400
|
-
buttonLayoutSchema,
|
|
6401
|
-
columnsLayoutSchema,
|
|
6402
|
-
decisionLayoutSchema,
|
|
6403
|
-
dividerLayoutSchema,
|
|
6404
|
-
formLayoutSchema,
|
|
6405
|
-
headingLayoutSchema,
|
|
6406
|
-
imageLayoutSchema,
|
|
6407
|
-
infoLayoutSchema,
|
|
6408
|
-
instructionsLayoutSchema,
|
|
6409
|
-
listLayoutSchema,
|
|
6410
|
-
loadingIndicatorLayoutSchema,
|
|
6411
|
-
markdownLayoutSchema,
|
|
6412
|
-
modalLayoutSchema,
|
|
6413
|
-
paragraphLayoutSchema,
|
|
6414
|
-
reviewLayoutSchema,
|
|
6415
|
-
searchLayoutSchema,
|
|
6416
|
-
statusListLayoutSchema
|
|
6417
|
-
])
|
|
6418
|
-
);
|
|
6419
|
-
var boxLayoutSchema = z.lazy(
|
|
6420
|
-
() => z.object({
|
|
6421
|
-
type: z.literal("box"),
|
|
6422
|
-
components: z.array(layoutSchema),
|
|
6423
|
-
width: sizeSchema.optional(),
|
|
6424
|
-
border: z.boolean().optional(),
|
|
6425
|
-
control: z.string().optional(),
|
|
6426
|
-
margin: sizeSchema.optional()
|
|
6427
|
-
})
|
|
6428
|
-
);
|
|
6429
|
-
var columnsLayoutSchema = z.lazy(
|
|
6430
|
-
() => z.object({
|
|
6431
|
-
type: z.literal("columns"),
|
|
6432
|
-
left: z.array(layoutSchema),
|
|
6433
|
-
right: z.array(layoutSchema),
|
|
6434
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
6435
|
-
control: z.string().optional(),
|
|
6436
|
-
margin: sizeSchema.optional()
|
|
6437
|
-
})
|
|
6438
|
-
);
|
|
6439
|
-
var modalLayoutSchema = z.lazy(
|
|
6440
|
-
() => z.object({
|
|
6441
|
-
type: z.literal("modal"),
|
|
6442
|
-
control: z.string().optional(),
|
|
6443
|
-
margin: sizeSchema.optional(),
|
|
6444
|
-
trigger: modalLayoutTriggerSchema,
|
|
6445
|
-
content: modalLayoutContentSchema
|
|
6446
|
-
})
|
|
6447
|
-
);
|
|
6448
|
-
var modalLayoutContentSchema = z.lazy(
|
|
6449
|
-
() => z.object({
|
|
6450
|
-
title: z.string().optional(),
|
|
6451
|
-
components: z.array(layoutSchema)
|
|
6452
|
-
})
|
|
6453
|
-
);
|
|
6393
|
+
var searchResponseBodySchema = z.object({
|
|
6394
|
+
results: z.array(searchResultSchema)
|
|
6395
|
+
});
|
|
6454
6396
|
var stepSchema = z.lazy(
|
|
6455
6397
|
() => z.object({
|
|
6456
6398
|
key: z.string().optional(),
|
|
@@ -6486,6 +6428,29 @@ var schemaSchema = z.lazy(
|
|
|
6486
6428
|
stringSchemaSchema
|
|
6487
6429
|
])
|
|
6488
6430
|
);
|
|
6431
|
+
var layoutSchema = z.lazy(
|
|
6432
|
+
() => z.union([
|
|
6433
|
+
alertLayoutSchema,
|
|
6434
|
+
boxLayoutSchema,
|
|
6435
|
+
buttonLayoutSchema,
|
|
6436
|
+
columnsLayoutSchema,
|
|
6437
|
+
decisionLayoutSchema,
|
|
6438
|
+
dividerLayoutSchema,
|
|
6439
|
+
formLayoutSchema,
|
|
6440
|
+
headingLayoutSchema,
|
|
6441
|
+
imageLayoutSchema,
|
|
6442
|
+
infoLayoutSchema,
|
|
6443
|
+
instructionsLayoutSchema,
|
|
6444
|
+
listLayoutSchema,
|
|
6445
|
+
loadingIndicatorLayoutSchema,
|
|
6446
|
+
markdownLayoutSchema,
|
|
6447
|
+
modalLayoutSchema,
|
|
6448
|
+
paragraphLayoutSchema,
|
|
6449
|
+
reviewLayoutSchema,
|
|
6450
|
+
searchLayoutSchema,
|
|
6451
|
+
statusListLayoutSchema
|
|
6452
|
+
])
|
|
6453
|
+
);
|
|
6489
6454
|
var allOfSchemaSchema = z.lazy(
|
|
6490
6455
|
() => z.object({
|
|
6491
6456
|
disabled: z.boolean().optional(),
|
|
@@ -6695,6 +6660,15 @@ var stringSchemaSchema = z.lazy(
|
|
|
6695
6660
|
help: helpSchema.optional()
|
|
6696
6661
|
})
|
|
6697
6662
|
);
|
|
6663
|
+
var persistAsyncSchema = z.lazy(
|
|
6664
|
+
() => z.object({
|
|
6665
|
+
param: z.string(),
|
|
6666
|
+
idProperty: z.string(),
|
|
6667
|
+
schema: schemaSchema,
|
|
6668
|
+
url: z.string(),
|
|
6669
|
+
method: httpMethodSchema
|
|
6670
|
+
})
|
|
6671
|
+
);
|
|
6698
6672
|
var arraySchemaListSchema = z.lazy(
|
|
6699
6673
|
() => z.object({
|
|
6700
6674
|
type: z.literal("array"),
|
|
@@ -6722,15 +6696,6 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6722
6696
|
disabled: z.boolean().optional()
|
|
6723
6697
|
})
|
|
6724
6698
|
);
|
|
6725
|
-
var persistAsyncSchema = z.lazy(
|
|
6726
|
-
() => z.object({
|
|
6727
|
-
param: z.string(),
|
|
6728
|
-
idProperty: z.string(),
|
|
6729
|
-
schema: schemaSchema,
|
|
6730
|
-
url: z.string(),
|
|
6731
|
-
method: httpMethodSchema
|
|
6732
|
-
})
|
|
6733
|
-
);
|
|
6734
6699
|
var arraySchemaTupleSchema = z.lazy(
|
|
6735
6700
|
() => z.object({
|
|
6736
6701
|
type: z.literal("array"),
|
|
@@ -6751,6 +6716,41 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6751
6716
|
alert: alertLayoutSchema.optional()
|
|
6752
6717
|
})
|
|
6753
6718
|
);
|
|
6719
|
+
var modalLayoutSchema = z.lazy(
|
|
6720
|
+
() => z.object({
|
|
6721
|
+
type: z.literal("modal"),
|
|
6722
|
+
control: z.string().optional(),
|
|
6723
|
+
margin: sizeSchema.optional(),
|
|
6724
|
+
trigger: modalLayoutTriggerSchema,
|
|
6725
|
+
content: modalLayoutContentSchema
|
|
6726
|
+
})
|
|
6727
|
+
);
|
|
6728
|
+
var modalLayoutContentSchema = z.lazy(
|
|
6729
|
+
() => z.object({
|
|
6730
|
+
title: z.string().optional(),
|
|
6731
|
+
components: z.array(layoutSchema)
|
|
6732
|
+
})
|
|
6733
|
+
);
|
|
6734
|
+
var columnsLayoutSchema = z.lazy(
|
|
6735
|
+
() => z.object({
|
|
6736
|
+
type: z.literal("columns"),
|
|
6737
|
+
left: z.array(layoutSchema),
|
|
6738
|
+
right: z.array(layoutSchema),
|
|
6739
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6740
|
+
control: z.string().optional(),
|
|
6741
|
+
margin: sizeSchema.optional()
|
|
6742
|
+
})
|
|
6743
|
+
);
|
|
6744
|
+
var boxLayoutSchema = z.lazy(
|
|
6745
|
+
() => z.object({
|
|
6746
|
+
type: z.literal("box"),
|
|
6747
|
+
components: z.array(layoutSchema),
|
|
6748
|
+
width: sizeSchema.optional(),
|
|
6749
|
+
border: z.boolean().optional(),
|
|
6750
|
+
control: z.string().optional(),
|
|
6751
|
+
margin: sizeSchema.optional()
|
|
6752
|
+
})
|
|
6753
|
+
);
|
|
6754
6754
|
var validateStep = (step) => validate(step, stepSchema);
|
|
6755
6755
|
var validateActionResponse = (response) => validate(response, actionResponseBodySchema);
|
|
6756
6756
|
var validate = (value, schema) => {
|
|
@@ -6924,12 +6924,12 @@ var getStepPolling = ({
|
|
|
6924
6924
|
}).catch(() => {
|
|
6925
6925
|
});
|
|
6926
6926
|
};
|
|
6927
|
-
poll();
|
|
6928
6927
|
const intervalRef = setInterval(poll, delay * 1e3);
|
|
6929
6928
|
const stop = () => {
|
|
6930
6929
|
clearTimeout(intervalRef);
|
|
6931
6930
|
abortController.abort();
|
|
6932
6931
|
};
|
|
6932
|
+
poll();
|
|
6933
6933
|
return { stop };
|
|
6934
6934
|
};
|
|
6935
6935
|
|
|
@@ -7731,7 +7731,7 @@ var getBelowMinimumDateCheck = ({ minimum }, messageFunctions) => (value) => {
|
|
|
7731
7731
|
return null;
|
|
7732
7732
|
};
|
|
7733
7733
|
var getNotAdheringToPatternCheck = ({ pattern }, messageFunctions) => (value) => {
|
|
7734
|
-
if (isString(pattern) && isString(value) && !new RegExp(pattern
|
|
7734
|
+
if (isString(pattern) && isString(value) && !new RegExp(pattern).test(value)) {
|
|
7735
7735
|
return messageFunctions.pattern();
|
|
7736
7736
|
}
|
|
7737
7737
|
return null;
|
|
@@ -7912,7 +7912,7 @@ var getPerformPersistAsync = ({
|
|
|
7912
7912
|
trackFailure();
|
|
7913
7913
|
throw new Error(genericErrorMessage);
|
|
7914
7914
|
}
|
|
7915
|
-
const validationError = response.
|
|
7915
|
+
const validationError = !response.ok && isObject(json) ? getValidationError(param, json) : null;
|
|
7916
7916
|
trackFailure(json);
|
|
7917
7917
|
throw new Error(validationError != null ? validationError : genericErrorMessage);
|
|
7918
7918
|
};
|
|
@@ -14432,9 +14432,6 @@ var debounce2 = (callback, waitMs) => {
|
|
|
14432
14432
|
function isStatus2xx(status) {
|
|
14433
14433
|
return status >= 200 && status < 300;
|
|
14434
14434
|
}
|
|
14435
|
-
function isStatus422(status) {
|
|
14436
|
-
return status === 422;
|
|
14437
|
-
}
|
|
14438
14435
|
|
|
14439
14436
|
// src/legacy/common/validators/types/type-validators.ts
|
|
14440
14437
|
var isString2 = (value) => typeof value === "string";
|
|
@@ -14632,7 +14629,7 @@ function isValidPattern(value, pattern) {
|
|
|
14632
14629
|
if (value === void 0 || value === null) {
|
|
14633
14630
|
return false;
|
|
14634
14631
|
}
|
|
14635
|
-
const regex = new RegExp(pattern
|
|
14632
|
+
const regex = new RegExp(pattern);
|
|
14636
14633
|
return Boolean(regex.test(value));
|
|
14637
14634
|
}
|
|
14638
14635
|
function isValidMaximum(value, maximum) {
|
|
@@ -17885,7 +17882,7 @@ function PersistAsyncBlobSchema(props) {
|
|
|
17885
17882
|
}
|
|
17886
17883
|
}, [model, schema, submitted, required]);
|
|
17887
17884
|
const onSuccess = async (httpResponse, _fileName) => {
|
|
17888
|
-
const jsonResponse = await httpResponse
|
|
17885
|
+
const jsonResponse = await getResponseJsonObject(httpResponse);
|
|
17889
17886
|
const id2 = getIdFromResponse(schema.persistAsync.idProperty, jsonResponse);
|
|
17890
17887
|
onChange({ model: id2, triggerSchema: schema, triggerModel: id2 });
|
|
17891
17888
|
setChanged(true);
|
|
@@ -17893,8 +17890,8 @@ function PersistAsyncBlobSchema(props) {
|
|
|
17893
17890
|
};
|
|
17894
17891
|
const onFailure = async (error) => {
|
|
17895
17892
|
const errorResponse = error;
|
|
17896
|
-
if (errorResponse.response
|
|
17897
|
-
const jsonResponse = await errorResponse.response
|
|
17893
|
+
if (errorResponse.response) {
|
|
17894
|
+
const jsonResponse = await getResponseJsonObject(errorResponse.response);
|
|
17898
17895
|
setPersistAsyncValidationMessages(jsonResponse.validation || {});
|
|
17899
17896
|
setPersistAsyncValidations([schema.persistAsync.param]);
|
|
17900
17897
|
}
|
|
@@ -17953,6 +17950,10 @@ function PersistAsyncBlobSchema(props) {
|
|
|
17953
17950
|
)
|
|
17954
17951
|
] });
|
|
17955
17952
|
}
|
|
17953
|
+
var getResponseJsonObject = async (response) => {
|
|
17954
|
+
const json = await response.json().catch(() => ({}));
|
|
17955
|
+
return isObject2(json) ? json : {};
|
|
17956
|
+
};
|
|
17956
17957
|
var PersistAsyncBlobSchema_default = PersistAsyncBlobSchema;
|
|
17957
17958
|
|
|
17958
17959
|
// src/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.tsx
|
|
@@ -19319,7 +19320,7 @@ function PersistAsyncBasicSchema(props) {
|
|
|
19319
19320
|
if (isStatus2xx(response.status)) {
|
|
19320
19321
|
const id = getIdFromResponse(idProperty, responseBody);
|
|
19321
19322
|
onChange({ model: id, triggerSchema: schema, triggerModel: id });
|
|
19322
|
-
} else if (
|
|
19323
|
+
} else if (!response.ok) {
|
|
19323
19324
|
const { validation } = responseBody;
|
|
19324
19325
|
const error = isObject2(validation) && (validation == null ? void 0 : validation[param]) || null;
|
|
19325
19326
|
setPersistAsyncError(error);
|
|
@@ -19423,13 +19424,11 @@ var usePersistAsync = (persistAsync) => {
|
|
|
19423
19424
|
}
|
|
19424
19425
|
}
|
|
19425
19426
|
async function handleHTTPError(response) {
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
throw new Error(error);
|
|
19432
|
-
}
|
|
19427
|
+
const jsonResponse = await response.json();
|
|
19428
|
+
if (isObject2(jsonResponse)) {
|
|
19429
|
+
const error = getErrorFromResponse(persistAsync.param, jsonResponse);
|
|
19430
|
+
if (isString2(error)) {
|
|
19431
|
+
throw new Error(error);
|
|
19433
19432
|
}
|
|
19434
19433
|
}
|
|
19435
19434
|
throw new Error(intl.formatMessage(generic_error_messages_default.genericErrorRetryHint));
|