@opencrvs/toolkit 1.8.1-rc.e32d7b8 → 1.8.1-rc.ebf61ab

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.
Files changed (32) hide show
  1. package/dist/commons/api/router.d.ts +433 -796
  2. package/dist/commons/conditionals/validate.d.ts +11 -2
  3. package/dist/commons/events/ActionConfig.d.ts +3924 -642
  4. package/dist/commons/events/ActionDocument.d.ts +1302 -1389
  5. package/dist/commons/events/ActionInput.d.ts +658 -1136
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
  7. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  9. package/dist/commons/events/Draft.d.ts +48 -92
  10. package/dist/commons/events/EventConfig.d.ts +1281 -262
  11. package/dist/commons/events/EventDocument.d.ts +475 -846
  12. package/dist/commons/events/EventIndex.d.ts +184 -62
  13. package/dist/commons/events/EventMetadata.d.ts +9 -9
  14. package/dist/commons/events/FieldConfig.d.ts +517 -71
  15. package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
  16. package/dist/commons/events/FieldValue.d.ts +12 -12
  17. package/dist/commons/events/FormConfig.d.ts +1956 -378
  18. package/dist/commons/events/PageConfig.d.ts +524 -82
  19. package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
  20. package/dist/commons/events/defineConfig.d.ts +183 -48
  21. package/dist/commons/events/event.d.ts +68 -6
  22. package/dist/commons/events/field.d.ts +14 -0
  23. package/dist/commons/events/test.utils.d.ts +17 -13
  24. package/dist/commons/events/utils.d.ts +332 -96
  25. package/dist/conditionals/index.js +3 -2
  26. package/dist/events/index.js +293 -108
  27. package/package.json +1 -1
  28. package/tsconfig.json +1 -1
  29. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  30. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  31. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  32. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -58,6 +58,16 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
58
58
  uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
59
59
  }, {
60
60
  type: z.ZodLiteral<"ADDRESS">;
61
+ configuration: z.ZodOptional<z.ZodObject<{
62
+ lineSeparator: z.ZodOptional<z.ZodString>;
63
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["number", "country", "province", "addressType", "district", "urbanOrRural", "town", "residentialArea", "street", "zipCode", "village", "state", "district2", "cityOrTown", "addressLine1", "addressLine2", "addressLine3", "postcodeOrZip"]>, "many">>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ lineSeparator?: string | undefined;
66
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
67
+ }, {
68
+ lineSeparator?: string | undefined;
69
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
70
+ }>>;
61
71
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
62
72
  country: z.ZodString;
63
73
  addressType: z.ZodLiteral<"DOMESTIC">;
@@ -145,13 +155,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
145
155
  addressLine3?: string | undefined;
146
156
  postcodeOrZip?: string | undefined;
147
157
  }>]>>;
148
- configuration: z.ZodOptional<z.ZodObject<{
149
- searchMode: z.ZodOptional<z.ZodBoolean>;
150
- }, "strip", z.ZodTypeAny, {
151
- searchMode?: boolean | undefined;
152
- }, {
153
- searchMode?: boolean | undefined;
154
- }>>;
155
158
  }>, "strip", z.ZodTypeAny, {
156
159
  type: "ADDRESS";
157
160
  id: string;
@@ -209,7 +212,8 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
209
212
  postcodeOrZip?: string | undefined;
210
213
  } | undefined;
211
214
  configuration?: {
212
- searchMode?: boolean | undefined;
215
+ lineSeparator?: string | undefined;
216
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
213
217
  } | undefined;
214
218
  }, {
215
219
  type: "ADDRESS";
@@ -284,7 +288,8 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
284
288
  postcodeOrZip?: string | undefined;
285
289
  } | undefined;
286
290
  configuration?: {
287
- searchMode?: boolean | undefined;
291
+ lineSeparator?: string | undefined;
292
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
288
293
  } | undefined;
289
294
  }>, z.ZodObject<z.objectUtil.extendShape<{
290
295
  id: z.ZodString;
@@ -2240,16 +2245,114 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2240
2245
  }, {
2241
2246
  type: z.ZodLiteral<"NAME">;
2242
2247
  defaultValue: z.ZodOptional<z.ZodObject<{
2243
- firstname: z.ZodString;
2244
- surname: z.ZodString;
2248
+ firstname: z.ZodOptional<z.ZodString>;
2249
+ middlename: z.ZodOptional<z.ZodString>;
2250
+ surname: z.ZodOptional<z.ZodString>;
2245
2251
  }, "strip", z.ZodTypeAny, {
2246
- firstname: string;
2247
- surname: string;
2252
+ firstname?: string | undefined;
2253
+ surname?: string | undefined;
2254
+ middlename?: string | undefined;
2248
2255
  }, {
2249
- firstname: string;
2250
- surname: string;
2256
+ firstname?: string | undefined;
2257
+ surname?: string | undefined;
2258
+ middlename?: string | undefined;
2251
2259
  }>>;
2252
- configuration: z.ZodOptional<z.ZodObject<{
2260
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
2261
+ name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
2262
+ firstname: z.ZodOptional<z.ZodObject<{
2263
+ required: z.ZodBoolean;
2264
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2265
+ id: string;
2266
+ description: string;
2267
+ defaultMessage: string;
2268
+ }>>;
2269
+ }, "strip", z.ZodTypeAny, {
2270
+ required: boolean;
2271
+ label?: TranslationConfig | undefined;
2272
+ }, {
2273
+ required: boolean;
2274
+ label?: {
2275
+ id: string;
2276
+ description: string;
2277
+ defaultMessage: string;
2278
+ } | undefined;
2279
+ }>>;
2280
+ middlename: z.ZodOptional<z.ZodObject<{
2281
+ required: z.ZodBoolean;
2282
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2283
+ id: string;
2284
+ description: string;
2285
+ defaultMessage: string;
2286
+ }>>;
2287
+ }, "strip", z.ZodTypeAny, {
2288
+ required: boolean;
2289
+ label?: TranslationConfig | undefined;
2290
+ }, {
2291
+ required: boolean;
2292
+ label?: {
2293
+ id: string;
2294
+ description: string;
2295
+ defaultMessage: string;
2296
+ } | undefined;
2297
+ }>>;
2298
+ surname: z.ZodOptional<z.ZodObject<{
2299
+ required: z.ZodBoolean;
2300
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2301
+ id: string;
2302
+ description: string;
2303
+ defaultMessage: string;
2304
+ }>>;
2305
+ }, "strip", z.ZodTypeAny, {
2306
+ required: boolean;
2307
+ label?: TranslationConfig | undefined;
2308
+ }, {
2309
+ required: boolean;
2310
+ label?: {
2311
+ id: string;
2312
+ description: string;
2313
+ defaultMessage: string;
2314
+ } | undefined;
2315
+ }>>;
2316
+ }, "strip", z.ZodTypeAny, {
2317
+ firstname?: {
2318
+ required: boolean;
2319
+ label?: TranslationConfig | undefined;
2320
+ } | undefined;
2321
+ surname?: {
2322
+ required: boolean;
2323
+ label?: TranslationConfig | undefined;
2324
+ } | undefined;
2325
+ middlename?: {
2326
+ required: boolean;
2327
+ label?: TranslationConfig | undefined;
2328
+ } | undefined;
2329
+ }, {
2330
+ firstname?: {
2331
+ required: boolean;
2332
+ label?: {
2333
+ id: string;
2334
+ description: string;
2335
+ defaultMessage: string;
2336
+ } | undefined;
2337
+ } | undefined;
2338
+ surname?: {
2339
+ required: boolean;
2340
+ label?: {
2341
+ id: string;
2342
+ description: string;
2343
+ defaultMessage: string;
2344
+ } | undefined;
2345
+ } | undefined;
2346
+ middlename?: {
2347
+ required: boolean;
2348
+ label?: {
2349
+ id: string;
2350
+ description: string;
2351
+ defaultMessage: string;
2352
+ } | undefined;
2353
+ } | undefined;
2354
+ }>>>;
2355
+ order: z.ZodOptional<z.ZodArray<z.ZodEnum<["firstname", "middlename", "surname"]>, "many">>;
2253
2356
  maxLength: z.ZodOptional<z.ZodNumber>;
2254
2357
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2255
2358
  id: string;
@@ -2261,15 +2364,53 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2261
2364
  description: string;
2262
2365
  defaultMessage: string;
2263
2366
  }>>;
2264
- includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2265
- searchMode: z.ZodOptional<z.ZodBoolean>;
2266
2367
  }, "strip", z.ZodTypeAny, {
2368
+ name?: {
2369
+ firstname?: {
2370
+ required: boolean;
2371
+ label?: TranslationConfig | undefined;
2372
+ } | undefined;
2373
+ surname?: {
2374
+ required: boolean;
2375
+ label?: TranslationConfig | undefined;
2376
+ } | undefined;
2377
+ middlename?: {
2378
+ required: boolean;
2379
+ label?: TranslationConfig | undefined;
2380
+ } | undefined;
2381
+ } | undefined;
2382
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
2267
2383
  maxLength?: number | undefined;
2268
2384
  prefix?: TranslationConfig | undefined;
2269
2385
  postfix?: TranslationConfig | undefined;
2270
- includeMiddlename?: boolean | undefined;
2271
- searchMode?: boolean | undefined;
2272
2386
  }, {
2387
+ name?: {
2388
+ firstname?: {
2389
+ required: boolean;
2390
+ label?: {
2391
+ id: string;
2392
+ description: string;
2393
+ defaultMessage: string;
2394
+ } | undefined;
2395
+ } | undefined;
2396
+ surname?: {
2397
+ required: boolean;
2398
+ label?: {
2399
+ id: string;
2400
+ description: string;
2401
+ defaultMessage: string;
2402
+ } | undefined;
2403
+ } | undefined;
2404
+ middlename?: {
2405
+ required: boolean;
2406
+ label?: {
2407
+ id: string;
2408
+ description: string;
2409
+ defaultMessage: string;
2410
+ } | undefined;
2411
+ } | undefined;
2412
+ } | undefined;
2413
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
2273
2414
  maxLength?: number | undefined;
2274
2415
  prefix?: {
2275
2416
  id: string;
@@ -2281,9 +2422,7 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2281
2422
  description: string;
2282
2423
  defaultMessage: string;
2283
2424
  } | undefined;
2284
- includeMiddlename?: boolean | undefined;
2285
- searchMode?: boolean | undefined;
2286
- }>>;
2425
+ }>>>;
2287
2426
  }>, "strip", z.ZodTypeAny, {
2288
2427
  type: "NAME";
2289
2428
  id: string;
@@ -2312,15 +2451,29 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2312
2451
  hideLabel?: boolean | undefined;
2313
2452
  uncorrectable?: boolean | undefined;
2314
2453
  defaultValue?: {
2315
- firstname: string;
2316
- surname: string;
2454
+ firstname?: string | undefined;
2455
+ surname?: string | undefined;
2456
+ middlename?: string | undefined;
2317
2457
  } | undefined;
2318
2458
  configuration?: {
2459
+ name?: {
2460
+ firstname?: {
2461
+ required: boolean;
2462
+ label?: TranslationConfig | undefined;
2463
+ } | undefined;
2464
+ surname?: {
2465
+ required: boolean;
2466
+ label?: TranslationConfig | undefined;
2467
+ } | undefined;
2468
+ middlename?: {
2469
+ required: boolean;
2470
+ label?: TranslationConfig | undefined;
2471
+ } | undefined;
2472
+ } | undefined;
2473
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
2319
2474
  maxLength?: number | undefined;
2320
2475
  prefix?: TranslationConfig | undefined;
2321
2476
  postfix?: TranslationConfig | undefined;
2322
- includeMiddlename?: boolean | undefined;
2323
- searchMode?: boolean | undefined;
2324
2477
  } | undefined;
2325
2478
  }, {
2326
2479
  type: "NAME";
@@ -2366,10 +2519,38 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2366
2519
  hideLabel?: boolean | undefined;
2367
2520
  uncorrectable?: boolean | undefined;
2368
2521
  defaultValue?: {
2369
- firstname: string;
2370
- surname: string;
2522
+ firstname?: string | undefined;
2523
+ surname?: string | undefined;
2524
+ middlename?: string | undefined;
2371
2525
  } | undefined;
2372
2526
  configuration?: {
2527
+ name?: {
2528
+ firstname?: {
2529
+ required: boolean;
2530
+ label?: {
2531
+ id: string;
2532
+ description: string;
2533
+ defaultMessage: string;
2534
+ } | undefined;
2535
+ } | undefined;
2536
+ surname?: {
2537
+ required: boolean;
2538
+ label?: {
2539
+ id: string;
2540
+ description: string;
2541
+ defaultMessage: string;
2542
+ } | undefined;
2543
+ } | undefined;
2544
+ middlename?: {
2545
+ required: boolean;
2546
+ label?: {
2547
+ id: string;
2548
+ description: string;
2549
+ defaultMessage: string;
2550
+ } | undefined;
2551
+ } | undefined;
2552
+ } | undefined;
2553
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
2373
2554
  maxLength?: number | undefined;
2374
2555
  prefix?: {
2375
2556
  id: string;
@@ -2381,8 +2562,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2381
2562
  description: string;
2382
2563
  defaultMessage: string;
2383
2564
  } | undefined;
2384
- includeMiddlename?: boolean | undefined;
2385
- searchMode?: boolean | undefined;
2386
2565
  } | undefined;
2387
2566
  }>, z.ZodObject<z.objectUtil.extendShape<{
2388
2567
  id: z.ZodString;
@@ -4980,15 +5159,29 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
4980
5159
  hideLabel?: boolean | undefined;
4981
5160
  uncorrectable?: boolean | undefined;
4982
5161
  defaultValue?: {
4983
- firstname: string;
4984
- surname: string;
5162
+ firstname?: string | undefined;
5163
+ surname?: string | undefined;
5164
+ middlename?: string | undefined;
4985
5165
  } | undefined;
4986
5166
  configuration?: {
5167
+ name?: {
5168
+ firstname?: {
5169
+ required: boolean;
5170
+ label?: TranslationConfig | undefined;
5171
+ } | undefined;
5172
+ surname?: {
5173
+ required: boolean;
5174
+ label?: TranslationConfig | undefined;
5175
+ } | undefined;
5176
+ middlename?: {
5177
+ required: boolean;
5178
+ label?: TranslationConfig | undefined;
5179
+ } | undefined;
5180
+ } | undefined;
5181
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
4987
5182
  maxLength?: number | undefined;
4988
5183
  prefix?: TranslationConfig | undefined;
4989
5184
  postfix?: TranslationConfig | undefined;
4990
- includeMiddlename?: boolean | undefined;
4991
- searchMode?: boolean | undefined;
4992
5185
  } | undefined;
4993
5186
  } | {
4994
5187
  type: "PHONE";
@@ -5321,7 +5514,8 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
5321
5514
  postcodeOrZip?: string | undefined;
5322
5515
  } | undefined;
5323
5516
  configuration?: {
5324
- searchMode?: boolean | undefined;
5517
+ lineSeparator?: string | undefined;
5518
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
5325
5519
  } | undefined;
5326
5520
  } | {
5327
5521
  type: "DATA";
@@ -6255,10 +6449,38 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6255
6449
  hideLabel?: boolean | undefined;
6256
6450
  uncorrectable?: boolean | undefined;
6257
6451
  defaultValue?: {
6258
- firstname: string;
6259
- surname: string;
6452
+ firstname?: string | undefined;
6453
+ surname?: string | undefined;
6454
+ middlename?: string | undefined;
6260
6455
  } | undefined;
6261
6456
  configuration?: {
6457
+ name?: {
6458
+ firstname?: {
6459
+ required: boolean;
6460
+ label?: {
6461
+ id: string;
6462
+ description: string;
6463
+ defaultMessage: string;
6464
+ } | undefined;
6465
+ } | undefined;
6466
+ surname?: {
6467
+ required: boolean;
6468
+ label?: {
6469
+ id: string;
6470
+ description: string;
6471
+ defaultMessage: string;
6472
+ } | undefined;
6473
+ } | undefined;
6474
+ middlename?: {
6475
+ required: boolean;
6476
+ label?: {
6477
+ id: string;
6478
+ description: string;
6479
+ defaultMessage: string;
6480
+ } | undefined;
6481
+ } | undefined;
6482
+ } | undefined;
6483
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
6262
6484
  maxLength?: number | undefined;
6263
6485
  prefix?: {
6264
6486
  id: string;
@@ -6270,8 +6492,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6270
6492
  description: string;
6271
6493
  defaultMessage: string;
6272
6494
  } | undefined;
6273
- includeMiddlename?: boolean | undefined;
6274
- searchMode?: boolean | undefined;
6275
6495
  } | undefined;
6276
6496
  } | {
6277
6497
  type: "PHONE";
@@ -6768,7 +6988,8 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6768
6988
  postcodeOrZip?: string | undefined;
6769
6989
  } | undefined;
6770
6990
  configuration?: {
6771
- searchMode?: boolean | undefined;
6991
+ lineSeparator?: string | undefined;
6992
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
6772
6993
  } | undefined;
6773
6994
  } | {
6774
6995
  type: "DATA";
@@ -7008,6 +7229,16 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
7008
7229
  uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7009
7230
  }, {
7010
7231
  type: z.ZodLiteral<"ADDRESS">;
7232
+ configuration: z.ZodOptional<z.ZodObject<{
7233
+ lineSeparator: z.ZodOptional<z.ZodString>;
7234
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["number", "country", "province", "addressType", "district", "urbanOrRural", "town", "residentialArea", "street", "zipCode", "village", "state", "district2", "cityOrTown", "addressLine1", "addressLine2", "addressLine3", "postcodeOrZip"]>, "many">>;
7235
+ }, "strip", z.ZodTypeAny, {
7236
+ lineSeparator?: string | undefined;
7237
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
7238
+ }, {
7239
+ lineSeparator?: string | undefined;
7240
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
7241
+ }>>;
7011
7242
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
7012
7243
  country: z.ZodString;
7013
7244
  addressType: z.ZodLiteral<"DOMESTIC">;
@@ -7095,13 +7326,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
7095
7326
  addressLine3?: string | undefined;
7096
7327
  postcodeOrZip?: string | undefined;
7097
7328
  }>]>>;
7098
- configuration: z.ZodOptional<z.ZodObject<{
7099
- searchMode: z.ZodOptional<z.ZodBoolean>;
7100
- }, "strip", z.ZodTypeAny, {
7101
- searchMode?: boolean | undefined;
7102
- }, {
7103
- searchMode?: boolean | undefined;
7104
- }>>;
7105
7329
  }>, "strip", z.ZodTypeAny, {
7106
7330
  type: "ADDRESS";
7107
7331
  id: string;
@@ -7159,7 +7383,8 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
7159
7383
  postcodeOrZip?: string | undefined;
7160
7384
  } | undefined;
7161
7385
  configuration?: {
7162
- searchMode?: boolean | undefined;
7386
+ lineSeparator?: string | undefined;
7387
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
7163
7388
  } | undefined;
7164
7389
  }, {
7165
7390
  type: "ADDRESS";
@@ -7234,7 +7459,8 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
7234
7459
  postcodeOrZip?: string | undefined;
7235
7460
  } | undefined;
7236
7461
  configuration?: {
7237
- searchMode?: boolean | undefined;
7462
+ lineSeparator?: string | undefined;
7463
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
7238
7464
  } | undefined;
7239
7465
  }>, z.ZodObject<z.objectUtil.extendShape<{
7240
7466
  id: z.ZodString;
@@ -9190,16 +9416,114 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9190
9416
  }, {
9191
9417
  type: z.ZodLiteral<"NAME">;
9192
9418
  defaultValue: z.ZodOptional<z.ZodObject<{
9193
- firstname: z.ZodString;
9194
- surname: z.ZodString;
9419
+ firstname: z.ZodOptional<z.ZodString>;
9420
+ middlename: z.ZodOptional<z.ZodString>;
9421
+ surname: z.ZodOptional<z.ZodString>;
9195
9422
  }, "strip", z.ZodTypeAny, {
9196
- firstname: string;
9197
- surname: string;
9423
+ firstname?: string | undefined;
9424
+ surname?: string | undefined;
9425
+ middlename?: string | undefined;
9198
9426
  }, {
9199
- firstname: string;
9200
- surname: string;
9427
+ firstname?: string | undefined;
9428
+ surname?: string | undefined;
9429
+ middlename?: string | undefined;
9201
9430
  }>>;
9202
- configuration: z.ZodOptional<z.ZodObject<{
9431
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
9432
+ name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
9433
+ firstname: z.ZodOptional<z.ZodObject<{
9434
+ required: z.ZodBoolean;
9435
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9436
+ id: string;
9437
+ description: string;
9438
+ defaultMessage: string;
9439
+ }>>;
9440
+ }, "strip", z.ZodTypeAny, {
9441
+ required: boolean;
9442
+ label?: TranslationConfig | undefined;
9443
+ }, {
9444
+ required: boolean;
9445
+ label?: {
9446
+ id: string;
9447
+ description: string;
9448
+ defaultMessage: string;
9449
+ } | undefined;
9450
+ }>>;
9451
+ middlename: z.ZodOptional<z.ZodObject<{
9452
+ required: z.ZodBoolean;
9453
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9454
+ id: string;
9455
+ description: string;
9456
+ defaultMessage: string;
9457
+ }>>;
9458
+ }, "strip", z.ZodTypeAny, {
9459
+ required: boolean;
9460
+ label?: TranslationConfig | undefined;
9461
+ }, {
9462
+ required: boolean;
9463
+ label?: {
9464
+ id: string;
9465
+ description: string;
9466
+ defaultMessage: string;
9467
+ } | undefined;
9468
+ }>>;
9469
+ surname: z.ZodOptional<z.ZodObject<{
9470
+ required: z.ZodBoolean;
9471
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9472
+ id: string;
9473
+ description: string;
9474
+ defaultMessage: string;
9475
+ }>>;
9476
+ }, "strip", z.ZodTypeAny, {
9477
+ required: boolean;
9478
+ label?: TranslationConfig | undefined;
9479
+ }, {
9480
+ required: boolean;
9481
+ label?: {
9482
+ id: string;
9483
+ description: string;
9484
+ defaultMessage: string;
9485
+ } | undefined;
9486
+ }>>;
9487
+ }, "strip", z.ZodTypeAny, {
9488
+ firstname?: {
9489
+ required: boolean;
9490
+ label?: TranslationConfig | undefined;
9491
+ } | undefined;
9492
+ surname?: {
9493
+ required: boolean;
9494
+ label?: TranslationConfig | undefined;
9495
+ } | undefined;
9496
+ middlename?: {
9497
+ required: boolean;
9498
+ label?: TranslationConfig | undefined;
9499
+ } | undefined;
9500
+ }, {
9501
+ firstname?: {
9502
+ required: boolean;
9503
+ label?: {
9504
+ id: string;
9505
+ description: string;
9506
+ defaultMessage: string;
9507
+ } | undefined;
9508
+ } | undefined;
9509
+ surname?: {
9510
+ required: boolean;
9511
+ label?: {
9512
+ id: string;
9513
+ description: string;
9514
+ defaultMessage: string;
9515
+ } | undefined;
9516
+ } | undefined;
9517
+ middlename?: {
9518
+ required: boolean;
9519
+ label?: {
9520
+ id: string;
9521
+ description: string;
9522
+ defaultMessage: string;
9523
+ } | undefined;
9524
+ } | undefined;
9525
+ }>>>;
9526
+ order: z.ZodOptional<z.ZodArray<z.ZodEnum<["firstname", "middlename", "surname"]>, "many">>;
9203
9527
  maxLength: z.ZodOptional<z.ZodNumber>;
9204
9528
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9205
9529
  id: string;
@@ -9211,15 +9535,53 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9211
9535
  description: string;
9212
9536
  defaultMessage: string;
9213
9537
  }>>;
9214
- includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9215
- searchMode: z.ZodOptional<z.ZodBoolean>;
9216
9538
  }, "strip", z.ZodTypeAny, {
9539
+ name?: {
9540
+ firstname?: {
9541
+ required: boolean;
9542
+ label?: TranslationConfig | undefined;
9543
+ } | undefined;
9544
+ surname?: {
9545
+ required: boolean;
9546
+ label?: TranslationConfig | undefined;
9547
+ } | undefined;
9548
+ middlename?: {
9549
+ required: boolean;
9550
+ label?: TranslationConfig | undefined;
9551
+ } | undefined;
9552
+ } | undefined;
9553
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
9217
9554
  maxLength?: number | undefined;
9218
9555
  prefix?: TranslationConfig | undefined;
9219
9556
  postfix?: TranslationConfig | undefined;
9220
- includeMiddlename?: boolean | undefined;
9221
- searchMode?: boolean | undefined;
9222
9557
  }, {
9558
+ name?: {
9559
+ firstname?: {
9560
+ required: boolean;
9561
+ label?: {
9562
+ id: string;
9563
+ description: string;
9564
+ defaultMessage: string;
9565
+ } | undefined;
9566
+ } | undefined;
9567
+ surname?: {
9568
+ required: boolean;
9569
+ label?: {
9570
+ id: string;
9571
+ description: string;
9572
+ defaultMessage: string;
9573
+ } | undefined;
9574
+ } | undefined;
9575
+ middlename?: {
9576
+ required: boolean;
9577
+ label?: {
9578
+ id: string;
9579
+ description: string;
9580
+ defaultMessage: string;
9581
+ } | undefined;
9582
+ } | undefined;
9583
+ } | undefined;
9584
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
9223
9585
  maxLength?: number | undefined;
9224
9586
  prefix?: {
9225
9587
  id: string;
@@ -9231,9 +9593,7 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9231
9593
  description: string;
9232
9594
  defaultMessage: string;
9233
9595
  } | undefined;
9234
- includeMiddlename?: boolean | undefined;
9235
- searchMode?: boolean | undefined;
9236
- }>>;
9596
+ }>>>;
9237
9597
  }>, "strip", z.ZodTypeAny, {
9238
9598
  type: "NAME";
9239
9599
  id: string;
@@ -9262,15 +9622,29 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9262
9622
  hideLabel?: boolean | undefined;
9263
9623
  uncorrectable?: boolean | undefined;
9264
9624
  defaultValue?: {
9265
- firstname: string;
9266
- surname: string;
9625
+ firstname?: string | undefined;
9626
+ surname?: string | undefined;
9627
+ middlename?: string | undefined;
9267
9628
  } | undefined;
9268
9629
  configuration?: {
9630
+ name?: {
9631
+ firstname?: {
9632
+ required: boolean;
9633
+ label?: TranslationConfig | undefined;
9634
+ } | undefined;
9635
+ surname?: {
9636
+ required: boolean;
9637
+ label?: TranslationConfig | undefined;
9638
+ } | undefined;
9639
+ middlename?: {
9640
+ required: boolean;
9641
+ label?: TranslationConfig | undefined;
9642
+ } | undefined;
9643
+ } | undefined;
9644
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
9269
9645
  maxLength?: number | undefined;
9270
9646
  prefix?: TranslationConfig | undefined;
9271
9647
  postfix?: TranslationConfig | undefined;
9272
- includeMiddlename?: boolean | undefined;
9273
- searchMode?: boolean | undefined;
9274
9648
  } | undefined;
9275
9649
  }, {
9276
9650
  type: "NAME";
@@ -9316,10 +9690,38 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9316
9690
  hideLabel?: boolean | undefined;
9317
9691
  uncorrectable?: boolean | undefined;
9318
9692
  defaultValue?: {
9319
- firstname: string;
9320
- surname: string;
9693
+ firstname?: string | undefined;
9694
+ surname?: string | undefined;
9695
+ middlename?: string | undefined;
9321
9696
  } | undefined;
9322
9697
  configuration?: {
9698
+ name?: {
9699
+ firstname?: {
9700
+ required: boolean;
9701
+ label?: {
9702
+ id: string;
9703
+ description: string;
9704
+ defaultMessage: string;
9705
+ } | undefined;
9706
+ } | undefined;
9707
+ surname?: {
9708
+ required: boolean;
9709
+ label?: {
9710
+ id: string;
9711
+ description: string;
9712
+ defaultMessage: string;
9713
+ } | undefined;
9714
+ } | undefined;
9715
+ middlename?: {
9716
+ required: boolean;
9717
+ label?: {
9718
+ id: string;
9719
+ description: string;
9720
+ defaultMessage: string;
9721
+ } | undefined;
9722
+ } | undefined;
9723
+ } | undefined;
9724
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
9323
9725
  maxLength?: number | undefined;
9324
9726
  prefix?: {
9325
9727
  id: string;
@@ -9331,8 +9733,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9331
9733
  description: string;
9332
9734
  defaultMessage: string;
9333
9735
  } | undefined;
9334
- includeMiddlename?: boolean | undefined;
9335
- searchMode?: boolean | undefined;
9336
9736
  } | undefined;
9337
9737
  }>, z.ZodObject<z.objectUtil.extendShape<{
9338
9738
  id: z.ZodString;
@@ -12056,15 +12456,29 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
12056
12456
  hideLabel?: boolean | undefined;
12057
12457
  uncorrectable?: boolean | undefined;
12058
12458
  defaultValue?: {
12059
- firstname: string;
12060
- surname: string;
12459
+ firstname?: string | undefined;
12460
+ surname?: string | undefined;
12461
+ middlename?: string | undefined;
12061
12462
  } | undefined;
12062
12463
  configuration?: {
12464
+ name?: {
12465
+ firstname?: {
12466
+ required: boolean;
12467
+ label?: TranslationConfig | undefined;
12468
+ } | undefined;
12469
+ surname?: {
12470
+ required: boolean;
12471
+ label?: TranslationConfig | undefined;
12472
+ } | undefined;
12473
+ middlename?: {
12474
+ required: boolean;
12475
+ label?: TranslationConfig | undefined;
12476
+ } | undefined;
12477
+ } | undefined;
12478
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
12063
12479
  maxLength?: number | undefined;
12064
12480
  prefix?: TranslationConfig | undefined;
12065
12481
  postfix?: TranslationConfig | undefined;
12066
- includeMiddlename?: boolean | undefined;
12067
- searchMode?: boolean | undefined;
12068
12482
  } | undefined;
12069
12483
  } | {
12070
12484
  type: "PHONE";
@@ -12397,7 +12811,8 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
12397
12811
  postcodeOrZip?: string | undefined;
12398
12812
  } | undefined;
12399
12813
  configuration?: {
12400
- searchMode?: boolean | undefined;
12814
+ lineSeparator?: string | undefined;
12815
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
12401
12816
  } | undefined;
12402
12817
  } | {
12403
12818
  type: "DATA";
@@ -13360,10 +13775,38 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
13360
13775
  hideLabel?: boolean | undefined;
13361
13776
  uncorrectable?: boolean | undefined;
13362
13777
  defaultValue?: {
13363
- firstname: string;
13364
- surname: string;
13778
+ firstname?: string | undefined;
13779
+ surname?: string | undefined;
13780
+ middlename?: string | undefined;
13365
13781
  } | undefined;
13366
13782
  configuration?: {
13783
+ name?: {
13784
+ firstname?: {
13785
+ required: boolean;
13786
+ label?: {
13787
+ id: string;
13788
+ description: string;
13789
+ defaultMessage: string;
13790
+ } | undefined;
13791
+ } | undefined;
13792
+ surname?: {
13793
+ required: boolean;
13794
+ label?: {
13795
+ id: string;
13796
+ description: string;
13797
+ defaultMessage: string;
13798
+ } | undefined;
13799
+ } | undefined;
13800
+ middlename?: {
13801
+ required: boolean;
13802
+ label?: {
13803
+ id: string;
13804
+ description: string;
13805
+ defaultMessage: string;
13806
+ } | undefined;
13807
+ } | undefined;
13808
+ } | undefined;
13809
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
13367
13810
  maxLength?: number | undefined;
13368
13811
  prefix?: {
13369
13812
  id: string;
@@ -13375,8 +13818,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
13375
13818
  description: string;
13376
13819
  defaultMessage: string;
13377
13820
  } | undefined;
13378
- includeMiddlename?: boolean | undefined;
13379
- searchMode?: boolean | undefined;
13380
13821
  } | undefined;
13381
13822
  } | {
13382
13823
  type: "PHONE";
@@ -13873,7 +14314,8 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
13873
14314
  postcodeOrZip?: string | undefined;
13874
14315
  } | undefined;
13875
14316
  configuration?: {
13876
- searchMode?: boolean | undefined;
14317
+ lineSeparator?: string | undefined;
14318
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
13877
14319
  } | undefined;
13878
14320
  } | {
13879
14321
  type: "DATA";