@opencrvs/toolkit 1.8.1-rc.4f4b65a → 1.8.1-rc.5130256

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 (33) hide show
  1. package/dist/commons/api/router.d.ts +392 -409
  2. package/dist/commons/conditionals/conditionals.test.d.ts +2 -0
  3. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  4. package/dist/commons/conditionals/validate.d.ts +2 -11
  5. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  6. package/dist/commons/events/ActionConfig.d.ts +5805 -3441
  7. package/dist/commons/events/ActionDocument.d.ts +716 -1252
  8. package/dist/commons/events/ActionInput.d.ts +600 -626
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +65 -83
  10. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  12. package/dist/commons/events/Draft.d.ts +48 -48
  13. package/dist/commons/events/EventConfig.d.ts +2663 -1401
  14. package/dist/commons/events/EventDocument.d.ts +432 -451
  15. package/dist/commons/events/EventIndex.d.ts +62 -184
  16. package/dist/commons/events/EventMetadata.d.ts +9 -9
  17. package/dist/commons/events/FieldConfig.d.ts +343 -254
  18. package/dist/commons/events/FieldType.d.ts +2 -1
  19. package/dist/commons/events/FieldTypeMapping.d.ts +25 -18
  20. package/dist/commons/events/FieldValue.d.ts +12 -12
  21. package/dist/commons/events/FormConfig.d.ts +2388 -1296
  22. package/dist/commons/events/PageConfig.d.ts +508 -264
  23. package/dist/commons/events/WorkqueueConfig.d.ts +164 -288
  24. package/dist/commons/events/defineConfig.d.ts +309 -129
  25. package/dist/commons/events/event.d.ts +6 -68
  26. package/dist/commons/events/field.d.ts +0 -14
  27. package/dist/commons/events/test.utils.d.ts +12 -12
  28. package/dist/commons/events/utils.d.ts +564 -244
  29. package/dist/commons/events/utils.test.d.ts +2 -0
  30. package/dist/conditionals/index.js +2 -3
  31. package/dist/events/index.js +115 -259
  32. package/package.json +1 -1
  33. package/tsconfig.json +1 -1
@@ -2240,62 +2240,16 @@ 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.ZodOptional<z.ZodString>;
2244
- middlename: z.ZodOptional<z.ZodString>;
2245
- surname: z.ZodOptional<z.ZodString>;
2243
+ firstname: z.ZodString;
2244
+ surname: z.ZodString;
2246
2245
  }, "strip", z.ZodTypeAny, {
2247
- firstname?: string | undefined;
2248
- surname?: string | undefined;
2249
- middlename?: string | undefined;
2246
+ firstname: string;
2247
+ surname: string;
2250
2248
  }, {
2251
- firstname?: string | undefined;
2252
- surname?: string | undefined;
2253
- middlename?: string | undefined;
2249
+ firstname: string;
2250
+ surname: string;
2254
2251
  }>>;
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
- }>>>;
2252
+ configuration: z.ZodOptional<z.ZodObject<{
2299
2253
  maxLength: z.ZodOptional<z.ZodNumber>;
2300
2254
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2301
2255
  id: string;
@@ -2307,35 +2261,15 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2307
2261
  description: string;
2308
2262
  defaultMessage: string;
2309
2263
  }>>;
2264
+ includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2310
2265
  searchMode: z.ZodOptional<z.ZodBoolean>;
2311
2266
  }, "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;
2323
2267
  maxLength?: number | undefined;
2324
2268
  prefix?: TranslationConfig | undefined;
2325
2269
  postfix?: TranslationConfig | undefined;
2270
+ includeMiddlename?: boolean | undefined;
2326
2271
  searchMode?: boolean | undefined;
2327
2272
  }, {
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;
2339
2273
  maxLength?: number | undefined;
2340
2274
  prefix?: {
2341
2275
  id: string;
@@ -2347,8 +2281,9 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2347
2281
  description: string;
2348
2282
  defaultMessage: string;
2349
2283
  } | undefined;
2284
+ includeMiddlename?: boolean | undefined;
2350
2285
  searchMode?: boolean | undefined;
2351
- }>>>;
2286
+ }>>;
2352
2287
  }>, "strip", z.ZodTypeAny, {
2353
2288
  type: "NAME";
2354
2289
  id: string;
@@ -2377,25 +2312,14 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2377
2312
  hideLabel?: boolean | undefined;
2378
2313
  uncorrectable?: boolean | undefined;
2379
2314
  defaultValue?: {
2380
- firstname?: string | undefined;
2381
- surname?: string | undefined;
2382
- middlename?: string | undefined;
2315
+ firstname: string;
2316
+ surname: string;
2383
2317
  } | undefined;
2384
2318
  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;
2396
2319
  maxLength?: number | undefined;
2397
2320
  prefix?: TranslationConfig | undefined;
2398
2321
  postfix?: TranslationConfig | undefined;
2322
+ includeMiddlename?: boolean | undefined;
2399
2323
  searchMode?: boolean | undefined;
2400
2324
  } | undefined;
2401
2325
  }, {
@@ -2442,22 +2366,10 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2442
2366
  hideLabel?: boolean | undefined;
2443
2367
  uncorrectable?: boolean | undefined;
2444
2368
  defaultValue?: {
2445
- firstname?: string | undefined;
2446
- surname?: string | undefined;
2447
- middlename?: string | undefined;
2369
+ firstname: string;
2370
+ surname: string;
2448
2371
  } | undefined;
2449
2372
  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;
2461
2373
  maxLength?: number | undefined;
2462
2374
  prefix?: {
2463
2375
  id: string;
@@ -2469,6 +2381,7 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
2469
2381
  description: string;
2470
2382
  defaultMessage: string;
2471
2383
  } | undefined;
2384
+ includeMiddlename?: boolean | undefined;
2472
2385
  searchMode?: boolean | undefined;
2473
2386
  } | undefined;
2474
2387
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -4504,6 +4417,155 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
4504
4417
  } | undefined;
4505
4418
  hideLabel?: boolean | undefined;
4506
4419
  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;
4507
4569
  }>]>, "many">;
4508
4570
  conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
4509
4571
  }, {
@@ -5067,25 +5129,14 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
5067
5129
  hideLabel?: boolean | undefined;
5068
5130
  uncorrectable?: boolean | undefined;
5069
5131
  defaultValue?: {
5070
- firstname?: string | undefined;
5071
- surname?: string | undefined;
5072
- middlename?: string | undefined;
5132
+ firstname: string;
5133
+ surname: string;
5073
5134
  } | undefined;
5074
5135
  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;
5086
5136
  maxLength?: number | undefined;
5087
5137
  prefix?: TranslationConfig | undefined;
5088
5138
  postfix?: TranslationConfig | undefined;
5139
+ includeMiddlename?: boolean | undefined;
5089
5140
  searchMode?: boolean | undefined;
5090
5141
  } | undefined;
5091
5142
  } | {
@@ -5457,6 +5508,37 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
5457
5508
  helperText?: TranslationConfig | undefined;
5458
5509
  hideLabel?: boolean | undefined;
5459
5510
  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;
5460
5542
  })[];
5461
5543
  conditional?: import(".").JSONSchema | undefined;
5462
5544
  }, {
@@ -6353,22 +6435,10 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6353
6435
  hideLabel?: boolean | undefined;
6354
6436
  uncorrectable?: boolean | undefined;
6355
6437
  defaultValue?: {
6356
- firstname?: string | undefined;
6357
- surname?: string | undefined;
6358
- middlename?: string | undefined;
6438
+ firstname: string;
6439
+ surname: string;
6359
6440
  } | undefined;
6360
6441
  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;
6372
6442
  maxLength?: number | undefined;
6373
6443
  prefix?: {
6374
6444
  id: string;
@@ -6380,6 +6450,7 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6380
6450
  description: string;
6381
6451
  defaultMessage: string;
6382
6452
  } | undefined;
6453
+ includeMiddlename?: boolean | undefined;
6383
6454
  searchMode?: boolean | undefined;
6384
6455
  } | undefined;
6385
6456
  } | {
@@ -6943,6 +7014,57 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
6943
7014
  } | undefined;
6944
7015
  hideLabel?: boolean | undefined;
6945
7016
  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;
6946
7068
  })[];
6947
7069
  type?: "FORM" | undefined;
6948
7070
  conditional?: import(".").JSONSchema | undefined;
@@ -9299,62 +9421,16 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9299
9421
  }, {
9300
9422
  type: z.ZodLiteral<"NAME">;
9301
9423
  defaultValue: z.ZodOptional<z.ZodObject<{
9302
- firstname: z.ZodOptional<z.ZodString>;
9303
- middlename: z.ZodOptional<z.ZodString>;
9304
- surname: z.ZodOptional<z.ZodString>;
9424
+ firstname: z.ZodString;
9425
+ surname: z.ZodString;
9305
9426
  }, "strip", z.ZodTypeAny, {
9306
- firstname?: string | undefined;
9307
- surname?: string | undefined;
9308
- middlename?: string | undefined;
9427
+ firstname: string;
9428
+ surname: string;
9309
9429
  }, {
9310
- firstname?: string | undefined;
9311
- surname?: string | undefined;
9312
- middlename?: string | undefined;
9430
+ firstname: string;
9431
+ surname: string;
9313
9432
  }>>;
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
- }>>>;
9433
+ configuration: z.ZodOptional<z.ZodObject<{
9358
9434
  maxLength: z.ZodOptional<z.ZodNumber>;
9359
9435
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9360
9436
  id: string;
@@ -9366,35 +9442,15 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9366
9442
  description: string;
9367
9443
  defaultMessage: string;
9368
9444
  }>>;
9445
+ includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9369
9446
  searchMode: z.ZodOptional<z.ZodBoolean>;
9370
9447
  }, "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;
9382
9448
  maxLength?: number | undefined;
9383
9449
  prefix?: TranslationConfig | undefined;
9384
9450
  postfix?: TranslationConfig | undefined;
9451
+ includeMiddlename?: boolean | undefined;
9385
9452
  searchMode?: boolean | undefined;
9386
9453
  }, {
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;
9398
9454
  maxLength?: number | undefined;
9399
9455
  prefix?: {
9400
9456
  id: string;
@@ -9406,8 +9462,9 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9406
9462
  description: string;
9407
9463
  defaultMessage: string;
9408
9464
  } | undefined;
9465
+ includeMiddlename?: boolean | undefined;
9409
9466
  searchMode?: boolean | undefined;
9410
- }>>>;
9467
+ }>>;
9411
9468
  }>, "strip", z.ZodTypeAny, {
9412
9469
  type: "NAME";
9413
9470
  id: string;
@@ -9436,25 +9493,14 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9436
9493
  hideLabel?: boolean | undefined;
9437
9494
  uncorrectable?: boolean | undefined;
9438
9495
  defaultValue?: {
9439
- firstname?: string | undefined;
9440
- surname?: string | undefined;
9441
- middlename?: string | undefined;
9496
+ firstname: string;
9497
+ surname: string;
9442
9498
  } | undefined;
9443
9499
  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;
9455
9500
  maxLength?: number | undefined;
9456
9501
  prefix?: TranslationConfig | undefined;
9457
9502
  postfix?: TranslationConfig | undefined;
9503
+ includeMiddlename?: boolean | undefined;
9458
9504
  searchMode?: boolean | undefined;
9459
9505
  } | undefined;
9460
9506
  }, {
@@ -9501,22 +9547,10 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9501
9547
  hideLabel?: boolean | undefined;
9502
9548
  uncorrectable?: boolean | undefined;
9503
9549
  defaultValue?: {
9504
- firstname?: string | undefined;
9505
- surname?: string | undefined;
9506
- middlename?: string | undefined;
9550
+ firstname: string;
9551
+ surname: string;
9507
9552
  } | undefined;
9508
9553
  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;
9520
9554
  maxLength?: number | undefined;
9521
9555
  prefix?: {
9522
9556
  id: string;
@@ -9528,6 +9562,7 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
9528
9562
  description: string;
9529
9563
  defaultMessage: string;
9530
9564
  } | undefined;
9565
+ includeMiddlename?: boolean | undefined;
9531
9566
  searchMode?: boolean | undefined;
9532
9567
  } | undefined;
9533
9568
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -11563,6 +11598,155 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
11563
11598
  } | undefined;
11564
11599
  hideLabel?: boolean | undefined;
11565
11600
  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;
11566
11750
  }>]>, "many">;
11567
11751
  conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
11568
11752
  }, {
@@ -12252,25 +12436,14 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
12252
12436
  hideLabel?: boolean | undefined;
12253
12437
  uncorrectable?: boolean | undefined;
12254
12438
  defaultValue?: {
12255
- firstname?: string | undefined;
12256
- surname?: string | undefined;
12257
- middlename?: string | undefined;
12439
+ firstname: string;
12440
+ surname: string;
12258
12441
  } | undefined;
12259
12442
  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;
12271
12443
  maxLength?: number | undefined;
12272
12444
  prefix?: TranslationConfig | undefined;
12273
12445
  postfix?: TranslationConfig | undefined;
12446
+ includeMiddlename?: boolean | undefined;
12274
12447
  searchMode?: boolean | undefined;
12275
12448
  } | undefined;
12276
12449
  } | {
@@ -12642,6 +12815,37 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
12642
12815
  helperText?: TranslationConfig | undefined;
12643
12816
  hideLabel?: boolean | undefined;
12644
12817
  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;
12645
12849
  })[];
12646
12850
  conditional?: import(".").JSONSchema | undefined;
12647
12851
  }, {
@@ -13567,22 +13771,10 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
13567
13771
  hideLabel?: boolean | undefined;
13568
13772
  uncorrectable?: boolean | undefined;
13569
13773
  defaultValue?: {
13570
- firstname?: string | undefined;
13571
- surname?: string | undefined;
13572
- middlename?: string | undefined;
13774
+ firstname: string;
13775
+ surname: string;
13573
13776
  } | undefined;
13574
13777
  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;
13586
13778
  maxLength?: number | undefined;
13587
13779
  prefix?: {
13588
13780
  id: string;
@@ -13594,6 +13786,7 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
13594
13786
  description: string;
13595
13787
  defaultMessage: string;
13596
13788
  } | undefined;
13789
+ includeMiddlename?: boolean | undefined;
13597
13790
  searchMode?: boolean | undefined;
13598
13791
  } | undefined;
13599
13792
  } | {
@@ -14157,6 +14350,57 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
14157
14350
  } | undefined;
14158
14351
  hideLabel?: boolean | undefined;
14159
14352
  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;
14160
14404
  })[];
14161
14405
  conditional?: import(".").JSONSchema | undefined;
14162
14406
  }>;