@opencrvs/toolkit 1.8.1-rc.38ac682 → 1.8.1-rc.3a45fd9

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 (40) hide show
  1. package/build.sh +5 -0
  2. package/dist/commons/api/router.d.ts +409 -392
  3. package/dist/commons/conditionals/validate.d.ts +11 -2
  4. package/dist/commons/events/ActionConfig.d.ts +3441 -5805
  5. package/dist/commons/events/ActionDocument.d.ts +1252 -716
  6. package/dist/commons/events/ActionInput.d.ts +626 -600
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
  8. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  9. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  10. package/dist/commons/events/Draft.d.ts +48 -48
  11. package/dist/commons/events/EventConfig.d.ts +1401 -2663
  12. package/dist/commons/events/EventDocument.d.ts +451 -432
  13. package/dist/commons/events/EventIndex.d.ts +184 -62
  14. package/dist/commons/events/EventMetadata.d.ts +9 -9
  15. package/dist/commons/events/FieldConfig.d.ts +254 -343
  16. package/dist/commons/events/FieldType.d.ts +1 -2
  17. package/dist/commons/events/FieldTypeMapping.d.ts +18 -25
  18. package/dist/commons/events/FieldValue.d.ts +12 -12
  19. package/dist/commons/events/FormConfig.d.ts +1296 -2388
  20. package/dist/commons/events/PageConfig.d.ts +264 -508
  21. package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
  22. package/dist/commons/events/defineConfig.d.ts +129 -309
  23. package/dist/commons/events/event.d.ts +68 -6
  24. package/dist/commons/events/field.d.ts +14 -0
  25. package/dist/commons/events/test.utils.d.ts +12 -12
  26. package/dist/commons/events/utils.d.ts +248 -568
  27. package/dist/commons/notification/UserNotifications.d.ts +543 -0
  28. package/dist/commons/notification/index.d.ts +2 -0
  29. package/dist/conditionals/index.js +3 -2
  30. package/dist/events/index.js +258 -114
  31. package/dist/notification/index.d.ts +2 -0
  32. package/dist/notification/index.d.ts.map +1 -0
  33. package/dist/notification/index.js +5354 -0
  34. package/package.json +1 -1
  35. package/tsconfig.json +3 -2
  36. package/tsconfig.tsbuildinfo +1 -1
  37. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  38. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  39. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  40. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -2240,16 +2240,62 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2240
2240
  }, {
2241
2241
  type: z.ZodLiteral<"NAME">;
2242
2242
  defaultValue: z.ZodOptional<z.ZodObject<{
2243
- firstname: z.ZodString;
2244
- surname: z.ZodString;
2243
+ firstname: z.ZodOptional<z.ZodString>;
2244
+ middlename: z.ZodOptional<z.ZodString>;
2245
+ surname: z.ZodOptional<z.ZodString>;
2245
2246
  }, "strip", z.ZodTypeAny, {
2246
- firstname: string;
2247
- surname: string;
2247
+ firstname?: string | undefined;
2248
+ surname?: string | undefined;
2249
+ middlename?: string | undefined;
2248
2250
  }, {
2249
- firstname: string;
2250
- surname: string;
2251
+ firstname?: string | undefined;
2252
+ surname?: string | undefined;
2253
+ middlename?: string | undefined;
2251
2254
  }>>;
2252
- configuration: z.ZodOptional<z.ZodObject<{
2255
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
2256
+ name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
2257
+ firstname: z.ZodOptional<z.ZodObject<{
2258
+ required: z.ZodBoolean;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ required: boolean;
2261
+ }, {
2262
+ required: boolean;
2263
+ }>>;
2264
+ middlename: z.ZodOptional<z.ZodObject<{
2265
+ required: z.ZodBoolean;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ required: boolean;
2268
+ }, {
2269
+ required: boolean;
2270
+ }>>;
2271
+ surname: z.ZodOptional<z.ZodObject<{
2272
+ required: z.ZodBoolean;
2273
+ }, "strip", z.ZodTypeAny, {
2274
+ required: boolean;
2275
+ }, {
2276
+ required: boolean;
2277
+ }>>;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ firstname?: {
2280
+ required: boolean;
2281
+ } | undefined;
2282
+ surname?: {
2283
+ required: boolean;
2284
+ } | undefined;
2285
+ middlename?: {
2286
+ required: boolean;
2287
+ } | undefined;
2288
+ }, {
2289
+ firstname?: {
2290
+ required: boolean;
2291
+ } | undefined;
2292
+ surname?: {
2293
+ required: boolean;
2294
+ } | undefined;
2295
+ middlename?: {
2296
+ required: boolean;
2297
+ } | undefined;
2298
+ }>>>;
2253
2299
  maxLength: z.ZodOptional<z.ZodNumber>;
2254
2300
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2255
2301
  id: string;
@@ -2261,15 +2307,35 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2261
2307
  description: string;
2262
2308
  defaultMessage: string;
2263
2309
  }>>;
2264
- includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2265
2310
  searchMode: z.ZodOptional<z.ZodBoolean>;
2266
2311
  }, "strip", z.ZodTypeAny, {
2312
+ name?: {
2313
+ firstname?: {
2314
+ required: boolean;
2315
+ } | undefined;
2316
+ surname?: {
2317
+ required: boolean;
2318
+ } | undefined;
2319
+ middlename?: {
2320
+ required: boolean;
2321
+ } | undefined;
2322
+ } | undefined;
2267
2323
  maxLength?: number | undefined;
2268
2324
  prefix?: TranslationConfig | undefined;
2269
2325
  postfix?: TranslationConfig | undefined;
2270
- includeMiddlename?: boolean | undefined;
2271
2326
  searchMode?: boolean | undefined;
2272
2327
  }, {
2328
+ name?: {
2329
+ firstname?: {
2330
+ required: boolean;
2331
+ } | undefined;
2332
+ surname?: {
2333
+ required: boolean;
2334
+ } | undefined;
2335
+ middlename?: {
2336
+ required: boolean;
2337
+ } | undefined;
2338
+ } | undefined;
2273
2339
  maxLength?: number | undefined;
2274
2340
  prefix?: {
2275
2341
  id: string;
@@ -2281,9 +2347,8 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2281
2347
  description: string;
2282
2348
  defaultMessage: string;
2283
2349
  } | undefined;
2284
- includeMiddlename?: boolean | undefined;
2285
2350
  searchMode?: boolean | undefined;
2286
- }>>;
2351
+ }>>>;
2287
2352
  }>, "strip", z.ZodTypeAny, {
2288
2353
  type: "NAME";
2289
2354
  id: string;
@@ -2312,14 +2377,25 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2312
2377
  hideLabel?: boolean | undefined;
2313
2378
  uncorrectable?: boolean | undefined;
2314
2379
  defaultValue?: {
2315
- firstname: string;
2316
- surname: string;
2380
+ firstname?: string | undefined;
2381
+ surname?: string | undefined;
2382
+ middlename?: string | undefined;
2317
2383
  } | undefined;
2318
2384
  configuration?: {
2385
+ name?: {
2386
+ firstname?: {
2387
+ required: boolean;
2388
+ } | undefined;
2389
+ surname?: {
2390
+ required: boolean;
2391
+ } | undefined;
2392
+ middlename?: {
2393
+ required: boolean;
2394
+ } | undefined;
2395
+ } | undefined;
2319
2396
  maxLength?: number | undefined;
2320
2397
  prefix?: TranslationConfig | undefined;
2321
2398
  postfix?: TranslationConfig | undefined;
2322
- includeMiddlename?: boolean | undefined;
2323
2399
  searchMode?: boolean | undefined;
2324
2400
  } | undefined;
2325
2401
  }, {
@@ -2366,10 +2442,22 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2366
2442
  hideLabel?: boolean | undefined;
2367
2443
  uncorrectable?: boolean | undefined;
2368
2444
  defaultValue?: {
2369
- firstname: string;
2370
- surname: string;
2445
+ firstname?: string | undefined;
2446
+ surname?: string | undefined;
2447
+ middlename?: string | undefined;
2371
2448
  } | undefined;
2372
2449
  configuration?: {
2450
+ name?: {
2451
+ firstname?: {
2452
+ required: boolean;
2453
+ } | undefined;
2454
+ surname?: {
2455
+ required: boolean;
2456
+ } | undefined;
2457
+ middlename?: {
2458
+ required: boolean;
2459
+ } | undefined;
2460
+ } | undefined;
2373
2461
  maxLength?: number | undefined;
2374
2462
  prefix?: {
2375
2463
  id: string;
@@ -2381,7 +2469,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2381
2469
  description: string;
2382
2470
  defaultMessage: string;
2383
2471
  } | undefined;
2384
- includeMiddlename?: boolean | undefined;
2385
2472
  searchMode?: boolean | undefined;
2386
2473
  } | undefined;
2387
2474
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -4417,155 +4504,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
4417
4504
  } | undefined;
4418
4505
  hideLabel?: boolean | undefined;
4419
4506
  uncorrectable?: boolean | undefined;
4420
- }>, z.ZodObject<z.objectUtil.extendShape<{
4421
- id: z.ZodString;
4422
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4423
- id: string;
4424
- description: string;
4425
- defaultMessage: string;
4426
- }>;
4427
- parent: z.ZodOptional<z.ZodObject<{
4428
- $$field: z.ZodString;
4429
- }, "strip", z.ZodTypeAny, {
4430
- $$field: string;
4431
- }, {
4432
- $$field: string;
4433
- }>>;
4434
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4435
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
4436
- secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4437
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4438
- id: string;
4439
- description: string;
4440
- defaultMessage: string;
4441
- }>>;
4442
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
4443
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
4444
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4445
- id: string;
4446
- description: string;
4447
- defaultMessage: string;
4448
- }>;
4449
- }, "strip", z.ZodTypeAny, {
4450
- message: TranslationConfig;
4451
- validator: import(".").JSONSchema;
4452
- }, {
4453
- message: {
4454
- id: string;
4455
- description: string;
4456
- defaultMessage: string;
4457
- };
4458
- validator: import(".").JSONSchema;
4459
- }>, "many">>>;
4460
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4461
- id: string;
4462
- description: string;
4463
- defaultMessage: string;
4464
- }>>;
4465
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4466
- uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4467
- }, {
4468
- type: z.ZodLiteral<"PRINT_BUTTON">;
4469
- configuration: z.ZodObject<{
4470
- template: z.ZodString;
4471
- buttonLabel: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4472
- id: string;
4473
- description: string;
4474
- defaultMessage: string;
4475
- }>>;
4476
- }, "strip", z.ZodTypeAny, {
4477
- template: string;
4478
- buttonLabel?: TranslationConfig | undefined;
4479
- }, {
4480
- template: string;
4481
- buttonLabel?: {
4482
- id: string;
4483
- description: string;
4484
- defaultMessage: string;
4485
- } | undefined;
4486
- }>;
4487
- }>, "strip", z.ZodTypeAny, {
4488
- type: "PRINT_BUTTON";
4489
- id: string;
4490
- label: TranslationConfig;
4491
- configuration: {
4492
- template: string;
4493
- buttonLabel?: TranslationConfig | undefined;
4494
- };
4495
- parent?: {
4496
- $$field: string;
4497
- } | undefined;
4498
- validation?: {
4499
- message: TranslationConfig;
4500
- validator: import(".").JSONSchema;
4501
- }[] | undefined;
4502
- required?: boolean | undefined;
4503
- conditionals?: ({
4504
- type: "SHOW";
4505
- conditional: import(".").JSONSchema;
4506
- } | {
4507
- type: "ENABLE";
4508
- conditional: import(".").JSONSchema;
4509
- } | {
4510
- type: "DISPLAY_ON_REVIEW";
4511
- conditional: import(".").JSONSchema;
4512
- })[] | undefined;
4513
- secured?: boolean | undefined;
4514
- placeholder?: TranslationConfig | undefined;
4515
- helperText?: TranslationConfig | undefined;
4516
- hideLabel?: boolean | undefined;
4517
- uncorrectable?: boolean | undefined;
4518
- }, {
4519
- type: "PRINT_BUTTON";
4520
- id: string;
4521
- label: {
4522
- id: string;
4523
- description: string;
4524
- defaultMessage: string;
4525
- };
4526
- configuration: {
4527
- template: string;
4528
- buttonLabel?: {
4529
- id: string;
4530
- description: string;
4531
- defaultMessage: string;
4532
- } | undefined;
4533
- };
4534
- parent?: {
4535
- $$field: string;
4536
- } | undefined;
4537
- validation?: {
4538
- message: {
4539
- id: string;
4540
- description: string;
4541
- defaultMessage: string;
4542
- };
4543
- validator: import(".").JSONSchema;
4544
- }[] | undefined;
4545
- required?: boolean | undefined;
4546
- conditionals?: ({
4547
- type: "SHOW";
4548
- conditional: import(".").JSONSchema;
4549
- } | {
4550
- type: "ENABLE";
4551
- conditional: import(".").JSONSchema;
4552
- } | {
4553
- type: "DISPLAY_ON_REVIEW";
4554
- conditional: import(".").JSONSchema;
4555
- })[] | undefined;
4556
- secured?: boolean | undefined;
4557
- placeholder?: {
4558
- id: string;
4559
- description: string;
4560
- defaultMessage: string;
4561
- } | undefined;
4562
- helperText?: {
4563
- id: string;
4564
- description: string;
4565
- defaultMessage: string;
4566
- } | undefined;
4567
- hideLabel?: boolean | undefined;
4568
- uncorrectable?: boolean | undefined;
4569
4507
  }>]>, "many">;
4570
4508
  conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
4571
4509
  }, {
@@ -5129,14 +5067,25 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
5129
5067
  hideLabel?: boolean | undefined;
5130
5068
  uncorrectable?: boolean | undefined;
5131
5069
  defaultValue?: {
5132
- firstname: string;
5133
- surname: string;
5070
+ firstname?: string | undefined;
5071
+ surname?: string | undefined;
5072
+ middlename?: string | undefined;
5134
5073
  } | undefined;
5135
5074
  configuration?: {
5075
+ name?: {
5076
+ firstname?: {
5077
+ required: boolean;
5078
+ } | undefined;
5079
+ surname?: {
5080
+ required: boolean;
5081
+ } | undefined;
5082
+ middlename?: {
5083
+ required: boolean;
5084
+ } | undefined;
5085
+ } | undefined;
5136
5086
  maxLength?: number | undefined;
5137
5087
  prefix?: TranslationConfig | undefined;
5138
5088
  postfix?: TranslationConfig | undefined;
5139
- includeMiddlename?: boolean | undefined;
5140
5089
  searchMode?: boolean | undefined;
5141
5090
  } | undefined;
5142
5091
  } | {
@@ -5508,37 +5457,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
5508
5457
  helperText?: TranslationConfig | undefined;
5509
5458
  hideLabel?: boolean | undefined;
5510
5459
  uncorrectable?: boolean | undefined;
5511
- } | {
5512
- type: "PRINT_BUTTON";
5513
- id: string;
5514
- label: TranslationConfig;
5515
- configuration: {
5516
- template: string;
5517
- buttonLabel?: TranslationConfig | undefined;
5518
- };
5519
- parent?: {
5520
- $$field: string;
5521
- } | undefined;
5522
- validation?: {
5523
- message: TranslationConfig;
5524
- validator: import(".").JSONSchema;
5525
- }[] | undefined;
5526
- required?: boolean | undefined;
5527
- conditionals?: ({
5528
- type: "SHOW";
5529
- conditional: import(".").JSONSchema;
5530
- } | {
5531
- type: "ENABLE";
5532
- conditional: import(".").JSONSchema;
5533
- } | {
5534
- type: "DISPLAY_ON_REVIEW";
5535
- conditional: import(".").JSONSchema;
5536
- })[] | undefined;
5537
- secured?: boolean | undefined;
5538
- placeholder?: TranslationConfig | undefined;
5539
- helperText?: TranslationConfig | undefined;
5540
- hideLabel?: boolean | undefined;
5541
- uncorrectable?: boolean | undefined;
5542
5460
  })[];
5543
5461
  conditional?: import(".").JSONSchema | undefined;
5544
5462
  }, {
@@ -6435,10 +6353,22 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6435
6353
  hideLabel?: boolean | undefined;
6436
6354
  uncorrectable?: boolean | undefined;
6437
6355
  defaultValue?: {
6438
- firstname: string;
6439
- surname: string;
6356
+ firstname?: string | undefined;
6357
+ surname?: string | undefined;
6358
+ middlename?: string | undefined;
6440
6359
  } | undefined;
6441
6360
  configuration?: {
6361
+ name?: {
6362
+ firstname?: {
6363
+ required: boolean;
6364
+ } | undefined;
6365
+ surname?: {
6366
+ required: boolean;
6367
+ } | undefined;
6368
+ middlename?: {
6369
+ required: boolean;
6370
+ } | undefined;
6371
+ } | undefined;
6442
6372
  maxLength?: number | undefined;
6443
6373
  prefix?: {
6444
6374
  id: string;
@@ -6450,7 +6380,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6450
6380
  description: string;
6451
6381
  defaultMessage: string;
6452
6382
  } | undefined;
6453
- includeMiddlename?: boolean | undefined;
6454
6383
  searchMode?: boolean | undefined;
6455
6384
  } | undefined;
6456
6385
  } | {
@@ -7014,57 +6943,6 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
7014
6943
  } | undefined;
7015
6944
  hideLabel?: boolean | undefined;
7016
6945
  uncorrectable?: boolean | undefined;
7017
- } | {
7018
- type: "PRINT_BUTTON";
7019
- id: string;
7020
- label: {
7021
- id: string;
7022
- description: string;
7023
- defaultMessage: string;
7024
- };
7025
- configuration: {
7026
- template: string;
7027
- buttonLabel?: {
7028
- id: string;
7029
- description: string;
7030
- defaultMessage: string;
7031
- } | undefined;
7032
- };
7033
- parent?: {
7034
- $$field: string;
7035
- } | undefined;
7036
- validation?: {
7037
- message: {
7038
- id: string;
7039
- description: string;
7040
- defaultMessage: string;
7041
- };
7042
- validator: import(".").JSONSchema;
7043
- }[] | undefined;
7044
- required?: boolean | undefined;
7045
- conditionals?: ({
7046
- type: "SHOW";
7047
- conditional: import(".").JSONSchema;
7048
- } | {
7049
- type: "ENABLE";
7050
- conditional: import(".").JSONSchema;
7051
- } | {
7052
- type: "DISPLAY_ON_REVIEW";
7053
- conditional: import(".").JSONSchema;
7054
- })[] | undefined;
7055
- secured?: boolean | undefined;
7056
- placeholder?: {
7057
- id: string;
7058
- description: string;
7059
- defaultMessage: string;
7060
- } | undefined;
7061
- helperText?: {
7062
- id: string;
7063
- description: string;
7064
- defaultMessage: string;
7065
- } | undefined;
7066
- hideLabel?: boolean | undefined;
7067
- uncorrectable?: boolean | undefined;
7068
6946
  })[];
7069
6947
  type?: "FORM" | undefined;
7070
6948
  conditional?: import(".").JSONSchema | undefined;
@@ -9421,16 +9299,62 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9421
9299
  }, {
9422
9300
  type: z.ZodLiteral<"NAME">;
9423
9301
  defaultValue: z.ZodOptional<z.ZodObject<{
9424
- firstname: z.ZodString;
9425
- surname: z.ZodString;
9302
+ firstname: z.ZodOptional<z.ZodString>;
9303
+ middlename: z.ZodOptional<z.ZodString>;
9304
+ surname: z.ZodOptional<z.ZodString>;
9426
9305
  }, "strip", z.ZodTypeAny, {
9427
- firstname: string;
9428
- surname: string;
9306
+ firstname?: string | undefined;
9307
+ surname?: string | undefined;
9308
+ middlename?: string | undefined;
9429
9309
  }, {
9430
- firstname: string;
9431
- surname: string;
9310
+ firstname?: string | undefined;
9311
+ surname?: string | undefined;
9312
+ middlename?: string | undefined;
9432
9313
  }>>;
9433
- configuration: z.ZodOptional<z.ZodObject<{
9314
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
9315
+ name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
9316
+ firstname: z.ZodOptional<z.ZodObject<{
9317
+ required: z.ZodBoolean;
9318
+ }, "strip", z.ZodTypeAny, {
9319
+ required: boolean;
9320
+ }, {
9321
+ required: boolean;
9322
+ }>>;
9323
+ middlename: z.ZodOptional<z.ZodObject<{
9324
+ required: z.ZodBoolean;
9325
+ }, "strip", z.ZodTypeAny, {
9326
+ required: boolean;
9327
+ }, {
9328
+ required: boolean;
9329
+ }>>;
9330
+ surname: z.ZodOptional<z.ZodObject<{
9331
+ required: z.ZodBoolean;
9332
+ }, "strip", z.ZodTypeAny, {
9333
+ required: boolean;
9334
+ }, {
9335
+ required: boolean;
9336
+ }>>;
9337
+ }, "strip", z.ZodTypeAny, {
9338
+ firstname?: {
9339
+ required: boolean;
9340
+ } | undefined;
9341
+ surname?: {
9342
+ required: boolean;
9343
+ } | undefined;
9344
+ middlename?: {
9345
+ required: boolean;
9346
+ } | undefined;
9347
+ }, {
9348
+ firstname?: {
9349
+ required: boolean;
9350
+ } | undefined;
9351
+ surname?: {
9352
+ required: boolean;
9353
+ } | undefined;
9354
+ middlename?: {
9355
+ required: boolean;
9356
+ } | undefined;
9357
+ }>>>;
9434
9358
  maxLength: z.ZodOptional<z.ZodNumber>;
9435
9359
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9436
9360
  id: string;
@@ -9442,15 +9366,35 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9442
9366
  description: string;
9443
9367
  defaultMessage: string;
9444
9368
  }>>;
9445
- includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9446
9369
  searchMode: z.ZodOptional<z.ZodBoolean>;
9447
9370
  }, "strip", z.ZodTypeAny, {
9371
+ name?: {
9372
+ firstname?: {
9373
+ required: boolean;
9374
+ } | undefined;
9375
+ surname?: {
9376
+ required: boolean;
9377
+ } | undefined;
9378
+ middlename?: {
9379
+ required: boolean;
9380
+ } | undefined;
9381
+ } | undefined;
9448
9382
  maxLength?: number | undefined;
9449
9383
  prefix?: TranslationConfig | undefined;
9450
9384
  postfix?: TranslationConfig | undefined;
9451
- includeMiddlename?: boolean | undefined;
9452
9385
  searchMode?: boolean | undefined;
9453
9386
  }, {
9387
+ name?: {
9388
+ firstname?: {
9389
+ required: boolean;
9390
+ } | undefined;
9391
+ surname?: {
9392
+ required: boolean;
9393
+ } | undefined;
9394
+ middlename?: {
9395
+ required: boolean;
9396
+ } | undefined;
9397
+ } | undefined;
9454
9398
  maxLength?: number | undefined;
9455
9399
  prefix?: {
9456
9400
  id: string;
@@ -9462,9 +9406,8 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9462
9406
  description: string;
9463
9407
  defaultMessage: string;
9464
9408
  } | undefined;
9465
- includeMiddlename?: boolean | undefined;
9466
9409
  searchMode?: boolean | undefined;
9467
- }>>;
9410
+ }>>>;
9468
9411
  }>, "strip", z.ZodTypeAny, {
9469
9412
  type: "NAME";
9470
9413
  id: string;
@@ -9493,14 +9436,25 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9493
9436
  hideLabel?: boolean | undefined;
9494
9437
  uncorrectable?: boolean | undefined;
9495
9438
  defaultValue?: {
9496
- firstname: string;
9497
- surname: string;
9439
+ firstname?: string | undefined;
9440
+ surname?: string | undefined;
9441
+ middlename?: string | undefined;
9498
9442
  } | undefined;
9499
9443
  configuration?: {
9444
+ name?: {
9445
+ firstname?: {
9446
+ required: boolean;
9447
+ } | undefined;
9448
+ surname?: {
9449
+ required: boolean;
9450
+ } | undefined;
9451
+ middlename?: {
9452
+ required: boolean;
9453
+ } | undefined;
9454
+ } | undefined;
9500
9455
  maxLength?: number | undefined;
9501
9456
  prefix?: TranslationConfig | undefined;
9502
9457
  postfix?: TranslationConfig | undefined;
9503
- includeMiddlename?: boolean | undefined;
9504
9458
  searchMode?: boolean | undefined;
9505
9459
  } | undefined;
9506
9460
  }, {
@@ -9547,10 +9501,22 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9547
9501
  hideLabel?: boolean | undefined;
9548
9502
  uncorrectable?: boolean | undefined;
9549
9503
  defaultValue?: {
9550
- firstname: string;
9551
- surname: string;
9504
+ firstname?: string | undefined;
9505
+ surname?: string | undefined;
9506
+ middlename?: string | undefined;
9552
9507
  } | undefined;
9553
9508
  configuration?: {
9509
+ name?: {
9510
+ firstname?: {
9511
+ required: boolean;
9512
+ } | undefined;
9513
+ surname?: {
9514
+ required: boolean;
9515
+ } | undefined;
9516
+ middlename?: {
9517
+ required: boolean;
9518
+ } | undefined;
9519
+ } | undefined;
9554
9520
  maxLength?: number | undefined;
9555
9521
  prefix?: {
9556
9522
  id: string;
@@ -9562,7 +9528,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9562
9528
  description: string;
9563
9529
  defaultMessage: string;
9564
9530
  } | undefined;
9565
- includeMiddlename?: boolean | undefined;
9566
9531
  searchMode?: boolean | undefined;
9567
9532
  } | undefined;
9568
9533
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -11598,155 +11563,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
11598
11563
  } | undefined;
11599
11564
  hideLabel?: boolean | undefined;
11600
11565
  uncorrectable?: boolean | undefined;
11601
- }>, z.ZodObject<z.objectUtil.extendShape<{
11602
- id: z.ZodString;
11603
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
11604
- id: string;
11605
- description: string;
11606
- defaultMessage: string;
11607
- }>;
11608
- parent: z.ZodOptional<z.ZodObject<{
11609
- $$field: z.ZodString;
11610
- }, "strip", z.ZodTypeAny, {
11611
- $$field: string;
11612
- }, {
11613
- $$field: string;
11614
- }>>;
11615
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11616
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
11617
- secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11618
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
11619
- id: string;
11620
- description: string;
11621
- defaultMessage: string;
11622
- }>>;
11623
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
11624
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
11625
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
11626
- id: string;
11627
- description: string;
11628
- defaultMessage: string;
11629
- }>;
11630
- }, "strip", z.ZodTypeAny, {
11631
- message: TranslationConfig;
11632
- validator: import(".").JSONSchema;
11633
- }, {
11634
- message: {
11635
- id: string;
11636
- description: string;
11637
- defaultMessage: string;
11638
- };
11639
- validator: import(".").JSONSchema;
11640
- }>, "many">>>;
11641
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
11642
- id: string;
11643
- description: string;
11644
- defaultMessage: string;
11645
- }>>;
11646
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11647
- uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11648
- }, {
11649
- type: z.ZodLiteral<"PRINT_BUTTON">;
11650
- configuration: z.ZodObject<{
11651
- template: z.ZodString;
11652
- buttonLabel: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
11653
- id: string;
11654
- description: string;
11655
- defaultMessage: string;
11656
- }>>;
11657
- }, "strip", z.ZodTypeAny, {
11658
- template: string;
11659
- buttonLabel?: TranslationConfig | undefined;
11660
- }, {
11661
- template: string;
11662
- buttonLabel?: {
11663
- id: string;
11664
- description: string;
11665
- defaultMessage: string;
11666
- } | undefined;
11667
- }>;
11668
- }>, "strip", z.ZodTypeAny, {
11669
- type: "PRINT_BUTTON";
11670
- id: string;
11671
- label: TranslationConfig;
11672
- configuration: {
11673
- template: string;
11674
- buttonLabel?: TranslationConfig | undefined;
11675
- };
11676
- parent?: {
11677
- $$field: string;
11678
- } | undefined;
11679
- validation?: {
11680
- message: TranslationConfig;
11681
- validator: import(".").JSONSchema;
11682
- }[] | undefined;
11683
- required?: boolean | undefined;
11684
- conditionals?: ({
11685
- type: "SHOW";
11686
- conditional: import(".").JSONSchema;
11687
- } | {
11688
- type: "ENABLE";
11689
- conditional: import(".").JSONSchema;
11690
- } | {
11691
- type: "DISPLAY_ON_REVIEW";
11692
- conditional: import(".").JSONSchema;
11693
- })[] | undefined;
11694
- secured?: boolean | undefined;
11695
- placeholder?: TranslationConfig | undefined;
11696
- helperText?: TranslationConfig | undefined;
11697
- hideLabel?: boolean | undefined;
11698
- uncorrectable?: boolean | undefined;
11699
- }, {
11700
- type: "PRINT_BUTTON";
11701
- id: string;
11702
- label: {
11703
- id: string;
11704
- description: string;
11705
- defaultMessage: string;
11706
- };
11707
- configuration: {
11708
- template: string;
11709
- buttonLabel?: {
11710
- id: string;
11711
- description: string;
11712
- defaultMessage: string;
11713
- } | undefined;
11714
- };
11715
- parent?: {
11716
- $$field: string;
11717
- } | undefined;
11718
- validation?: {
11719
- message: {
11720
- id: string;
11721
- description: string;
11722
- defaultMessage: string;
11723
- };
11724
- validator: import(".").JSONSchema;
11725
- }[] | undefined;
11726
- required?: boolean | undefined;
11727
- conditionals?: ({
11728
- type: "SHOW";
11729
- conditional: import(".").JSONSchema;
11730
- } | {
11731
- type: "ENABLE";
11732
- conditional: import(".").JSONSchema;
11733
- } | {
11734
- type: "DISPLAY_ON_REVIEW";
11735
- conditional: import(".").JSONSchema;
11736
- })[] | undefined;
11737
- secured?: boolean | undefined;
11738
- placeholder?: {
11739
- id: string;
11740
- description: string;
11741
- defaultMessage: string;
11742
- } | undefined;
11743
- helperText?: {
11744
- id: string;
11745
- description: string;
11746
- defaultMessage: string;
11747
- } | undefined;
11748
- hideLabel?: boolean | undefined;
11749
- uncorrectable?: boolean | undefined;
11750
11566
  }>]>, "many">;
11751
11567
  conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
11752
11568
  }, {
@@ -12436,14 +12252,25 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
12436
12252
  hideLabel?: boolean | undefined;
12437
12253
  uncorrectable?: boolean | undefined;
12438
12254
  defaultValue?: {
12439
- firstname: string;
12440
- surname: string;
12255
+ firstname?: string | undefined;
12256
+ surname?: string | undefined;
12257
+ middlename?: string | undefined;
12441
12258
  } | undefined;
12442
12259
  configuration?: {
12260
+ name?: {
12261
+ firstname?: {
12262
+ required: boolean;
12263
+ } | undefined;
12264
+ surname?: {
12265
+ required: boolean;
12266
+ } | undefined;
12267
+ middlename?: {
12268
+ required: boolean;
12269
+ } | undefined;
12270
+ } | undefined;
12443
12271
  maxLength?: number | undefined;
12444
12272
  prefix?: TranslationConfig | undefined;
12445
12273
  postfix?: TranslationConfig | undefined;
12446
- includeMiddlename?: boolean | undefined;
12447
12274
  searchMode?: boolean | undefined;
12448
12275
  } | undefined;
12449
12276
  } | {
@@ -12815,37 +12642,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
12815
12642
  helperText?: TranslationConfig | undefined;
12816
12643
  hideLabel?: boolean | undefined;
12817
12644
  uncorrectable?: boolean | undefined;
12818
- } | {
12819
- type: "PRINT_BUTTON";
12820
- id: string;
12821
- label: TranslationConfig;
12822
- configuration: {
12823
- template: string;
12824
- buttonLabel?: TranslationConfig | undefined;
12825
- };
12826
- parent?: {
12827
- $$field: string;
12828
- } | undefined;
12829
- validation?: {
12830
- message: TranslationConfig;
12831
- validator: import(".").JSONSchema;
12832
- }[] | undefined;
12833
- required?: boolean | undefined;
12834
- conditionals?: ({
12835
- type: "SHOW";
12836
- conditional: import(".").JSONSchema;
12837
- } | {
12838
- type: "ENABLE";
12839
- conditional: import(".").JSONSchema;
12840
- } | {
12841
- type: "DISPLAY_ON_REVIEW";
12842
- conditional: import(".").JSONSchema;
12843
- })[] | undefined;
12844
- secured?: boolean | undefined;
12845
- placeholder?: TranslationConfig | undefined;
12846
- helperText?: TranslationConfig | undefined;
12847
- hideLabel?: boolean | undefined;
12848
- uncorrectable?: boolean | undefined;
12849
12645
  })[];
12850
12646
  conditional?: import(".").JSONSchema | undefined;
12851
12647
  }, {
@@ -13771,10 +13567,22 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
13771
13567
  hideLabel?: boolean | undefined;
13772
13568
  uncorrectable?: boolean | undefined;
13773
13569
  defaultValue?: {
13774
- firstname: string;
13775
- surname: string;
13570
+ firstname?: string | undefined;
13571
+ surname?: string | undefined;
13572
+ middlename?: string | undefined;
13776
13573
  } | undefined;
13777
13574
  configuration?: {
13575
+ name?: {
13576
+ firstname?: {
13577
+ required: boolean;
13578
+ } | undefined;
13579
+ surname?: {
13580
+ required: boolean;
13581
+ } | undefined;
13582
+ middlename?: {
13583
+ required: boolean;
13584
+ } | undefined;
13585
+ } | undefined;
13778
13586
  maxLength?: number | undefined;
13779
13587
  prefix?: {
13780
13588
  id: string;
@@ -13786,7 +13594,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
13786
13594
  description: string;
13787
13595
  defaultMessage: string;
13788
13596
  } | undefined;
13789
- includeMiddlename?: boolean | undefined;
13790
13597
  searchMode?: boolean | undefined;
13791
13598
  } | undefined;
13792
13599
  } | {
@@ -14350,57 +14157,6 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
14350
14157
  } | undefined;
14351
14158
  hideLabel?: boolean | undefined;
14352
14159
  uncorrectable?: boolean | undefined;
14353
- } | {
14354
- type: "PRINT_BUTTON";
14355
- id: string;
14356
- label: {
14357
- id: string;
14358
- description: string;
14359
- defaultMessage: string;
14360
- };
14361
- configuration: {
14362
- template: string;
14363
- buttonLabel?: {
14364
- id: string;
14365
- description: string;
14366
- defaultMessage: string;
14367
- } | undefined;
14368
- };
14369
- parent?: {
14370
- $$field: string;
14371
- } | undefined;
14372
- validation?: {
14373
- message: {
14374
- id: string;
14375
- description: string;
14376
- defaultMessage: string;
14377
- };
14378
- validator: import(".").JSONSchema;
14379
- }[] | undefined;
14380
- required?: boolean | undefined;
14381
- conditionals?: ({
14382
- type: "SHOW";
14383
- conditional: import(".").JSONSchema;
14384
- } | {
14385
- type: "ENABLE";
14386
- conditional: import(".").JSONSchema;
14387
- } | {
14388
- type: "DISPLAY_ON_REVIEW";
14389
- conditional: import(".").JSONSchema;
14390
- })[] | undefined;
14391
- secured?: boolean | undefined;
14392
- placeholder?: {
14393
- id: string;
14394
- description: string;
14395
- defaultMessage: string;
14396
- } | undefined;
14397
- helperText?: {
14398
- id: string;
14399
- description: string;
14400
- defaultMessage: string;
14401
- } | undefined;
14402
- hideLabel?: boolean | undefined;
14403
- uncorrectable?: boolean | undefined;
14404
14160
  })[];
14405
14161
  conditional?: import(".").JSONSchema | undefined;
14406
14162
  }>;