@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
@@ -569,15 +569,29 @@ export declare function getDeclarationPages(configuration: EventConfig): {
569
569
  hideLabel?: boolean | undefined;
570
570
  uncorrectable?: boolean | undefined;
571
571
  defaultValue?: {
572
- firstname: string;
573
- surname: string;
572
+ firstname?: string | undefined;
573
+ surname?: string | undefined;
574
+ middlename?: string | undefined;
574
575
  } | undefined;
575
576
  configuration?: {
577
+ name?: {
578
+ firstname?: {
579
+ required: boolean;
580
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
581
+ } | undefined;
582
+ surname?: {
583
+ required: boolean;
584
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
585
+ } | undefined;
586
+ middlename?: {
587
+ required: boolean;
588
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
589
+ } | undefined;
590
+ } | undefined;
591
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
576
592
  maxLength?: number | undefined;
577
593
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
578
594
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
579
- includeMiddlename?: boolean | undefined;
580
- searchMode?: boolean | undefined;
581
595
  } | undefined;
582
596
  } | {
583
597
  type: "PHONE";
@@ -910,7 +924,8 @@ export declare function getDeclarationPages(configuration: EventConfig): {
910
924
  postcodeOrZip?: string | undefined;
911
925
  } | undefined;
912
926
  configuration?: {
913
- searchMode?: boolean | undefined;
927
+ lineSeparator?: string | undefined;
928
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
914
929
  } | undefined;
915
930
  } | {
916
931
  type: "DATA";
@@ -1512,15 +1527,29 @@ export declare function getDeclaration(configuration: EventConfig): {
1512
1527
  hideLabel?: boolean | undefined;
1513
1528
  uncorrectable?: boolean | undefined;
1514
1529
  defaultValue?: {
1515
- firstname: string;
1516
- surname: string;
1530
+ firstname?: string | undefined;
1531
+ surname?: string | undefined;
1532
+ middlename?: string | undefined;
1517
1533
  } | undefined;
1518
1534
  configuration?: {
1535
+ name?: {
1536
+ firstname?: {
1537
+ required: boolean;
1538
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
1539
+ } | undefined;
1540
+ surname?: {
1541
+ required: boolean;
1542
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
1543
+ } | undefined;
1544
+ middlename?: {
1545
+ required: boolean;
1546
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
1547
+ } | undefined;
1548
+ } | undefined;
1549
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
1519
1550
  maxLength?: number | undefined;
1520
1551
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
1521
1552
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
1522
- includeMiddlename?: boolean | undefined;
1523
- searchMode?: boolean | undefined;
1524
1553
  } | undefined;
1525
1554
  } | {
1526
1555
  type: "PHONE";
@@ -1853,7 +1882,8 @@ export declare function getDeclaration(configuration: EventConfig): {
1853
1882
  postcodeOrZip?: string | undefined;
1854
1883
  } | undefined;
1855
1884
  configuration?: {
1856
- searchMode?: boolean | undefined;
1885
+ lineSeparator?: string | undefined;
1886
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
1857
1887
  } | undefined;
1858
1888
  } | {
1859
1889
  type: "DATA";
@@ -2454,15 +2484,29 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
2454
2484
  hideLabel?: boolean | undefined;
2455
2485
  uncorrectable?: boolean | undefined;
2456
2486
  defaultValue?: {
2457
- firstname: string;
2458
- surname: string;
2487
+ firstname?: string | undefined;
2488
+ surname?: string | undefined;
2489
+ middlename?: string | undefined;
2459
2490
  } | undefined;
2460
2491
  configuration?: {
2492
+ name?: {
2493
+ firstname?: {
2494
+ required: boolean;
2495
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
2496
+ } | undefined;
2497
+ surname?: {
2498
+ required: boolean;
2499
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
2500
+ } | undefined;
2501
+ middlename?: {
2502
+ required: boolean;
2503
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
2504
+ } | undefined;
2505
+ } | undefined;
2506
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
2461
2507
  maxLength?: number | undefined;
2462
2508
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
2463
2509
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
2464
- includeMiddlename?: boolean | undefined;
2465
- searchMode?: boolean | undefined;
2466
2510
  } | undefined;
2467
2511
  } | {
2468
2512
  type: "PHONE";
@@ -2795,7 +2839,8 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
2795
2839
  postcodeOrZip?: string | undefined;
2796
2840
  } | undefined;
2797
2841
  configuration?: {
2798
- searchMode?: boolean | undefined;
2842
+ lineSeparator?: string | undefined;
2843
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
2799
2844
  } | undefined;
2800
2845
  } | {
2801
2846
  type: "DATA";
@@ -3406,15 +3451,29 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
3406
3451
  hideLabel?: boolean | undefined;
3407
3452
  uncorrectable?: boolean | undefined;
3408
3453
  defaultValue?: {
3409
- firstname: string;
3410
- surname: string;
3454
+ firstname?: string | undefined;
3455
+ surname?: string | undefined;
3456
+ middlename?: string | undefined;
3411
3457
  } | undefined;
3412
3458
  configuration?: {
3459
+ name?: {
3460
+ firstname?: {
3461
+ required: boolean;
3462
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
3463
+ } | undefined;
3464
+ surname?: {
3465
+ required: boolean;
3466
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
3467
+ } | undefined;
3468
+ middlename?: {
3469
+ required: boolean;
3470
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
3471
+ } | undefined;
3472
+ } | undefined;
3473
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
3413
3474
  maxLength?: number | undefined;
3414
3475
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
3415
3476
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
3416
- includeMiddlename?: boolean | undefined;
3417
- searchMode?: boolean | undefined;
3418
3477
  } | undefined;
3419
3478
  } | {
3420
3479
  type: "PHONE";
@@ -3747,7 +3806,8 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
3747
3806
  postcodeOrZip?: string | undefined;
3748
3807
  } | undefined;
3749
3808
  configuration?: {
3750
- searchMode?: boolean | undefined;
3809
+ lineSeparator?: string | undefined;
3810
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
3751
3811
  } | undefined;
3752
3812
  } | {
3753
3813
  type: "DATA";
@@ -4343,15 +4403,29 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
4343
4403
  hideLabel?: boolean | undefined;
4344
4404
  uncorrectable?: boolean | undefined;
4345
4405
  defaultValue?: {
4346
- firstname: string;
4347
- surname: string;
4406
+ firstname?: string | undefined;
4407
+ surname?: string | undefined;
4408
+ middlename?: string | undefined;
4348
4409
  } | undefined;
4349
4410
  configuration?: {
4411
+ name?: {
4412
+ firstname?: {
4413
+ required: boolean;
4414
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
4415
+ } | undefined;
4416
+ surname?: {
4417
+ required: boolean;
4418
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
4419
+ } | undefined;
4420
+ middlename?: {
4421
+ required: boolean;
4422
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
4423
+ } | undefined;
4424
+ } | undefined;
4425
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
4350
4426
  maxLength?: number | undefined;
4351
4427
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
4352
4428
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
4353
- includeMiddlename?: boolean | undefined;
4354
- searchMode?: boolean | undefined;
4355
4429
  } | undefined;
4356
4430
  } | {
4357
4431
  type: "PHONE";
@@ -4684,7 +4758,8 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
4684
4758
  postcodeOrZip?: string | undefined;
4685
4759
  } | undefined;
4686
4760
  configuration?: {
4687
- searchMode?: boolean | undefined;
4761
+ lineSeparator?: string | undefined;
4762
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
4688
4763
  } | undefined;
4689
4764
  } | {
4690
4765
  type: "DATA";
@@ -4723,7 +4798,7 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
4723
4798
  hideLabel?: boolean | undefined;
4724
4799
  uncorrectable?: boolean | undefined;
4725
4800
  })[];
4726
- export declare function getAllUniqueFields(eventConfig: EventConfig): import("./FieldConfig").Inferred[];
4801
+ export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
4727
4802
  export declare function getDeclarationFieldById(config: EventConfig, fieldId: string): FieldConfig;
4728
4803
  /**
4729
4804
  * @TODO: Request correction should have same format as print certificate
@@ -5286,15 +5361,29 @@ export declare function getActionReview(configuration: EventConfig, actionType:
5286
5361
  hideLabel?: boolean | undefined;
5287
5362
  uncorrectable?: boolean | undefined;
5288
5363
  defaultValue?: {
5289
- firstname: string;
5290
- surname: string;
5364
+ firstname?: string | undefined;
5365
+ surname?: string | undefined;
5366
+ middlename?: string | undefined;
5291
5367
  } | undefined;
5292
5368
  configuration?: {
5369
+ name?: {
5370
+ firstname?: {
5371
+ required: boolean;
5372
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
5373
+ } | undefined;
5374
+ surname?: {
5375
+ required: boolean;
5376
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
5377
+ } | undefined;
5378
+ middlename?: {
5379
+ required: boolean;
5380
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
5381
+ } | undefined;
5382
+ } | undefined;
5383
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
5293
5384
  maxLength?: number | undefined;
5294
5385
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
5295
5386
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
5296
- includeMiddlename?: boolean | undefined;
5297
- searchMode?: boolean | undefined;
5298
5387
  } | undefined;
5299
5388
  } | {
5300
5389
  type: "PHONE";
@@ -5627,7 +5716,8 @@ export declare function getActionReview(configuration: EventConfig, actionType:
5627
5716
  postcodeOrZip?: string | undefined;
5628
5717
  } | undefined;
5629
5718
  configuration?: {
5630
- searchMode?: boolean | undefined;
5719
+ lineSeparator?: string | undefined;
5720
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
5631
5721
  } | undefined;
5632
5722
  } | {
5633
5723
  type: "DATA";
@@ -6222,15 +6312,29 @@ export declare function getActionReviewFields(configuration: EventConfig, action
6222
6312
  hideLabel?: boolean | undefined;
6223
6313
  uncorrectable?: boolean | undefined;
6224
6314
  defaultValue?: {
6225
- firstname: string;
6226
- surname: string;
6315
+ firstname?: string | undefined;
6316
+ surname?: string | undefined;
6317
+ middlename?: string | undefined;
6227
6318
  } | undefined;
6228
6319
  configuration?: {
6320
+ name?: {
6321
+ firstname?: {
6322
+ required: boolean;
6323
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
6324
+ } | undefined;
6325
+ surname?: {
6326
+ required: boolean;
6327
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
6328
+ } | undefined;
6329
+ middlename?: {
6330
+ required: boolean;
6331
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
6332
+ } | undefined;
6333
+ } | undefined;
6334
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
6229
6335
  maxLength?: number | undefined;
6230
6336
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
6231
6337
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
6232
- includeMiddlename?: boolean | undefined;
6233
- searchMode?: boolean | undefined;
6234
6338
  } | undefined;
6235
6339
  } | {
6236
6340
  type: "PHONE";
@@ -6563,7 +6667,8 @@ export declare function getActionReviewFields(configuration: EventConfig, action
6563
6667
  postcodeOrZip?: string | undefined;
6564
6668
  } | undefined;
6565
6669
  configuration?: {
6566
- searchMode?: boolean | undefined;
6670
+ lineSeparator?: string | undefined;
6671
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
6567
6672
  } | undefined;
6568
6673
  } | {
6569
6674
  type: "DATA";
@@ -6631,8 +6736,8 @@ export declare function omitHiddenPaginatedFields(formConfig: FormConfig, declar
6631
6736
  surname: string;
6632
6737
  middlename?: string | undefined;
6633
6738
  } | {
6634
- firstname?: string | null | undefined;
6635
- surname?: string | null | undefined;
6739
+ firstname: string;
6740
+ surname: string;
6636
6741
  middlename?: string | null | undefined;
6637
6742
  } | {
6638
6743
  country: string;
@@ -6682,8 +6787,8 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
6682
6787
  street?: string | null | undefined;
6683
6788
  zipCode?: string | null | undefined;
6684
6789
  } | {
6685
- firstname?: string | null | undefined;
6686
- surname?: string | null | undefined;
6790
+ firstname: string;
6791
+ surname: string;
6687
6792
  middlename?: string | null | undefined;
6688
6793
  } | {
6689
6794
  country: string;
@@ -6729,8 +6834,8 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
6729
6834
  street?: string | null | undefined;
6730
6835
  zipCode?: string | null | undefined;
6731
6836
  } | {
6732
- firstname?: string | null | undefined;
6733
- surname?: string | null | undefined;
6837
+ firstname: string;
6838
+ surname: string;
6734
6839
  middlename?: string | null | undefined;
6735
6840
  } | {
6736
6841
  country: string;
@@ -6758,10 +6863,6 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
6758
6863
  start: string;
6759
6864
  end: string;
6760
6865
  } | null | undefined> | null | undefined;
6761
- actionDetails?: {
6762
- templateId?: string | undefined;
6763
- isImmediateCorrection?: boolean | undefined;
6764
- } | null | undefined;
6765
6866
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6766
6867
  };
6767
6868
  }[];
@@ -6808,8 +6909,8 @@ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, d
6808
6909
  surname: string;
6809
6910
  middlename?: string | undefined;
6810
6911
  } | {
6811
- firstname?: string | null | undefined;
6812
- surname?: string | null | undefined;
6912
+ firstname: string;
6913
+ surname: string;
6813
6914
  middlename?: string | null | undefined;
6814
6915
  } | {
6815
6916
  country: string;
@@ -7434,15 +7535,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
7434
7535
  hideLabel?: boolean | undefined;
7435
7536
  uncorrectable?: boolean | undefined;
7436
7537
  defaultValue?: {
7437
- firstname: string;
7438
- surname: string;
7538
+ firstname?: string | undefined;
7539
+ surname?: string | undefined;
7540
+ middlename?: string | undefined;
7439
7541
  } | undefined;
7440
7542
  configuration?: {
7543
+ name?: {
7544
+ firstname?: {
7545
+ required: boolean;
7546
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
7547
+ } | undefined;
7548
+ surname?: {
7549
+ required: boolean;
7550
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
7551
+ } | undefined;
7552
+ middlename?: {
7553
+ required: boolean;
7554
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
7555
+ } | undefined;
7556
+ } | undefined;
7557
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
7441
7558
  maxLength?: number | undefined;
7442
7559
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
7443
7560
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
7444
- includeMiddlename?: boolean | undefined;
7445
- searchMode?: boolean | undefined;
7446
7561
  } | undefined;
7447
7562
  } | {
7448
7563
  type: "PHONE";
@@ -7775,7 +7890,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
7775
7890
  postcodeOrZip?: string | undefined;
7776
7891
  } | undefined;
7777
7892
  configuration?: {
7778
- searchMode?: boolean | undefined;
7893
+ lineSeparator?: string | undefined;
7894
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
7779
7895
  } | undefined;
7780
7896
  } | {
7781
7897
  type: "DATA";
@@ -8384,15 +8500,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
8384
8500
  hideLabel?: boolean | undefined;
8385
8501
  uncorrectable?: boolean | undefined;
8386
8502
  defaultValue?: {
8387
- firstname: string;
8388
- surname: string;
8503
+ firstname?: string | undefined;
8504
+ surname?: string | undefined;
8505
+ middlename?: string | undefined;
8389
8506
  } | undefined;
8390
8507
  configuration?: {
8508
+ name?: {
8509
+ firstname?: {
8510
+ required: boolean;
8511
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
8512
+ } | undefined;
8513
+ surname?: {
8514
+ required: boolean;
8515
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
8516
+ } | undefined;
8517
+ middlename?: {
8518
+ required: boolean;
8519
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
8520
+ } | undefined;
8521
+ } | undefined;
8522
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
8391
8523
  maxLength?: number | undefined;
8392
8524
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
8393
8525
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
8394
- includeMiddlename?: boolean | undefined;
8395
- searchMode?: boolean | undefined;
8396
8526
  } | undefined;
8397
8527
  } | {
8398
8528
  type: "PHONE";
@@ -8725,7 +8855,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
8725
8855
  postcodeOrZip?: string | undefined;
8726
8856
  } | undefined;
8727
8857
  configuration?: {
8728
- searchMode?: boolean | undefined;
8858
+ lineSeparator?: string | undefined;
8859
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
8729
8860
  } | undefined;
8730
8861
  } | {
8731
8862
  type: "DATA";
@@ -9333,15 +9464,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
9333
9464
  hideLabel?: boolean | undefined;
9334
9465
  uncorrectable?: boolean | undefined;
9335
9466
  defaultValue?: {
9336
- firstname: string;
9337
- surname: string;
9467
+ firstname?: string | undefined;
9468
+ surname?: string | undefined;
9469
+ middlename?: string | undefined;
9338
9470
  } | undefined;
9339
9471
  configuration?: {
9472
+ name?: {
9473
+ firstname?: {
9474
+ required: boolean;
9475
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
9476
+ } | undefined;
9477
+ surname?: {
9478
+ required: boolean;
9479
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
9480
+ } | undefined;
9481
+ middlename?: {
9482
+ required: boolean;
9483
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
9484
+ } | undefined;
9485
+ } | undefined;
9486
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
9340
9487
  maxLength?: number | undefined;
9341
9488
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
9342
9489
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
9343
- includeMiddlename?: boolean | undefined;
9344
- searchMode?: boolean | undefined;
9345
9490
  } | undefined;
9346
9491
  } | {
9347
9492
  type: "PHONE";
@@ -9674,7 +9819,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
9674
9819
  postcodeOrZip?: string | undefined;
9675
9820
  } | undefined;
9676
9821
  configuration?: {
9677
- searchMode?: boolean | undefined;
9822
+ lineSeparator?: string | undefined;
9823
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
9678
9824
  } | undefined;
9679
9825
  } | {
9680
9826
  type: "DATA";
@@ -10282,15 +10428,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
10282
10428
  hideLabel?: boolean | undefined;
10283
10429
  uncorrectable?: boolean | undefined;
10284
10430
  defaultValue?: {
10285
- firstname: string;
10286
- surname: string;
10431
+ firstname?: string | undefined;
10432
+ surname?: string | undefined;
10433
+ middlename?: string | undefined;
10287
10434
  } | undefined;
10288
10435
  configuration?: {
10436
+ name?: {
10437
+ firstname?: {
10438
+ required: boolean;
10439
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
10440
+ } | undefined;
10441
+ surname?: {
10442
+ required: boolean;
10443
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
10444
+ } | undefined;
10445
+ middlename?: {
10446
+ required: boolean;
10447
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
10448
+ } | undefined;
10449
+ } | undefined;
10450
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
10289
10451
  maxLength?: number | undefined;
10290
10452
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
10291
10453
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
10292
- includeMiddlename?: boolean | undefined;
10293
- searchMode?: boolean | undefined;
10294
10454
  } | undefined;
10295
10455
  } | {
10296
10456
  type: "PHONE";
@@ -10623,7 +10783,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
10623
10783
  postcodeOrZip?: string | undefined;
10624
10784
  } | undefined;
10625
10785
  configuration?: {
10626
- searchMode?: boolean | undefined;
10786
+ lineSeparator?: string | undefined;
10787
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
10627
10788
  } | undefined;
10628
10789
  } | {
10629
10790
  type: "DATA";
@@ -11231,15 +11392,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
11231
11392
  hideLabel?: boolean | undefined;
11232
11393
  uncorrectable?: boolean | undefined;
11233
11394
  defaultValue?: {
11234
- firstname: string;
11235
- surname: string;
11395
+ firstname?: string | undefined;
11396
+ surname?: string | undefined;
11397
+ middlename?: string | undefined;
11236
11398
  } | undefined;
11237
11399
  configuration?: {
11400
+ name?: {
11401
+ firstname?: {
11402
+ required: boolean;
11403
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
11404
+ } | undefined;
11405
+ surname?: {
11406
+ required: boolean;
11407
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
11408
+ } | undefined;
11409
+ middlename?: {
11410
+ required: boolean;
11411
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
11412
+ } | undefined;
11413
+ } | undefined;
11414
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
11238
11415
  maxLength?: number | undefined;
11239
11416
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
11240
11417
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
11241
- includeMiddlename?: boolean | undefined;
11242
- searchMode?: boolean | undefined;
11243
11418
  } | undefined;
11244
11419
  } | {
11245
11420
  type: "PHONE";
@@ -11572,7 +11747,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
11572
11747
  postcodeOrZip?: string | undefined;
11573
11748
  } | undefined;
11574
11749
  configuration?: {
11575
- searchMode?: boolean | undefined;
11750
+ lineSeparator?: string | undefined;
11751
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
11576
11752
  } | undefined;
11577
11753
  } | {
11578
11754
  type: "DATA";
@@ -12228,15 +12404,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
12228
12404
  hideLabel?: boolean | undefined;
12229
12405
  uncorrectable?: boolean | undefined;
12230
12406
  defaultValue?: {
12231
- firstname: string;
12232
- surname: string;
12407
+ firstname?: string | undefined;
12408
+ surname?: string | undefined;
12409
+ middlename?: string | undefined;
12233
12410
  } | undefined;
12234
12411
  configuration?: {
12412
+ name?: {
12413
+ firstname?: {
12414
+ required: boolean;
12415
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
12416
+ } | undefined;
12417
+ surname?: {
12418
+ required: boolean;
12419
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
12420
+ } | undefined;
12421
+ middlename?: {
12422
+ required: boolean;
12423
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
12424
+ } | undefined;
12425
+ } | undefined;
12426
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
12235
12427
  maxLength?: number | undefined;
12236
12428
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
12237
12429
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
12238
- includeMiddlename?: boolean | undefined;
12239
- searchMode?: boolean | undefined;
12240
12430
  } | undefined;
12241
12431
  } | {
12242
12432
  type: "PHONE";
@@ -12569,7 +12759,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
12569
12759
  postcodeOrZip?: string | undefined;
12570
12760
  } | undefined;
12571
12761
  configuration?: {
12572
- searchMode?: boolean | undefined;
12762
+ lineSeparator?: string | undefined;
12763
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
12573
12764
  } | undefined;
12574
12765
  } | {
12575
12766
  type: "DATA";
@@ -13180,15 +13371,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
13180
13371
  hideLabel?: boolean | undefined;
13181
13372
  uncorrectable?: boolean | undefined;
13182
13373
  defaultValue?: {
13183
- firstname: string;
13184
- surname: string;
13374
+ firstname?: string | undefined;
13375
+ surname?: string | undefined;
13376
+ middlename?: string | undefined;
13185
13377
  } | undefined;
13186
13378
  configuration?: {
13379
+ name?: {
13380
+ firstname?: {
13381
+ required: boolean;
13382
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
13383
+ } | undefined;
13384
+ surname?: {
13385
+ required: boolean;
13386
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
13387
+ } | undefined;
13388
+ middlename?: {
13389
+ required: boolean;
13390
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
13391
+ } | undefined;
13392
+ } | undefined;
13393
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
13187
13394
  maxLength?: number | undefined;
13188
13395
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
13189
13396
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
13190
- includeMiddlename?: boolean | undefined;
13191
- searchMode?: boolean | undefined;
13192
13397
  } | undefined;
13193
13398
  } | {
13194
13399
  type: "PHONE";
@@ -13521,7 +13726,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
13521
13726
  postcodeOrZip?: string | undefined;
13522
13727
  } | undefined;
13523
13728
  configuration?: {
13524
- searchMode?: boolean | undefined;
13729
+ lineSeparator?: string | undefined;
13730
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
13525
13731
  } | undefined;
13526
13732
  } | {
13527
13733
  type: "DATA";
@@ -14135,15 +14341,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
14135
14341
  hideLabel?: boolean | undefined;
14136
14342
  uncorrectable?: boolean | undefined;
14137
14343
  defaultValue?: {
14138
- firstname: string;
14139
- surname: string;
14344
+ firstname?: string | undefined;
14345
+ surname?: string | undefined;
14346
+ middlename?: string | undefined;
14140
14347
  } | undefined;
14141
14348
  configuration?: {
14349
+ name?: {
14350
+ firstname?: {
14351
+ required: boolean;
14352
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
14353
+ } | undefined;
14354
+ surname?: {
14355
+ required: boolean;
14356
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
14357
+ } | undefined;
14358
+ middlename?: {
14359
+ required: boolean;
14360
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
14361
+ } | undefined;
14362
+ } | undefined;
14363
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
14142
14364
  maxLength?: number | undefined;
14143
14365
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
14144
14366
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
14145
- includeMiddlename?: boolean | undefined;
14146
- searchMode?: boolean | undefined;
14147
14367
  } | undefined;
14148
14368
  } | {
14149
14369
  type: "PHONE";
@@ -14476,7 +14696,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
14476
14696
  postcodeOrZip?: string | undefined;
14477
14697
  } | undefined;
14478
14698
  configuration?: {
14479
- searchMode?: boolean | undefined;
14699
+ lineSeparator?: string | undefined;
14700
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
14480
14701
  } | undefined;
14481
14702
  } | {
14482
14703
  type: "DATA";
@@ -15087,15 +15308,29 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15087
15308
  hideLabel?: boolean | undefined;
15088
15309
  uncorrectable?: boolean | undefined;
15089
15310
  defaultValue?: {
15090
- firstname: string;
15091
- surname: string;
15311
+ firstname?: string | undefined;
15312
+ surname?: string | undefined;
15313
+ middlename?: string | undefined;
15092
15314
  } | undefined;
15093
15315
  configuration?: {
15316
+ name?: {
15317
+ firstname?: {
15318
+ required: boolean;
15319
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
15320
+ } | undefined;
15321
+ surname?: {
15322
+ required: boolean;
15323
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
15324
+ } | undefined;
15325
+ middlename?: {
15326
+ required: boolean;
15327
+ label?: import("./TranslationConfig").TranslationConfig | undefined;
15328
+ } | undefined;
15329
+ } | undefined;
15330
+ order?: ("firstname" | "surname" | "middlename")[] | undefined;
15094
15331
  maxLength?: number | undefined;
15095
15332
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
15096
15333
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
15097
- includeMiddlename?: boolean | undefined;
15098
- searchMode?: boolean | undefined;
15099
15334
  } | undefined;
15100
15335
  } | {
15101
15336
  type: "PHONE";
@@ -15428,7 +15663,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15428
15663
  postcodeOrZip?: string | undefined;
15429
15664
  } | undefined;
15430
15665
  configuration?: {
15431
- searchMode?: boolean | undefined;
15666
+ lineSeparator?: string | undefined;
15667
+ fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
15432
15668
  } | undefined;
15433
15669
  } | {
15434
15670
  type: "DATA";
@@ -15524,7 +15760,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15524
15760
  title: import("./TranslationConfig").TranslationConfig;
15525
15761
  fields: ({
15526
15762
  config: {
15527
- type: "exact" | "fuzzy" | "range";
15763
+ type: "exact" | "fuzzy" | "range" | "within";
15528
15764
  };
15529
15765
  fieldId: string;
15530
15766
  fieldType: "field";
@@ -15551,9 +15787,9 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15551
15787
  excludeInSearchQuery?: boolean | undefined;
15552
15788
  } | {
15553
15789
  config: {
15554
- type: "exact" | "fuzzy" | "range";
15790
+ type: "exact" | "fuzzy" | "range" | "within";
15555
15791
  };
15556
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
15792
+ fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
15557
15793
  fieldType: "event";
15558
15794
  options?: {
15559
15795
  value: string;