@opencrvs/toolkit 1.8.1-rc.ebf61ab → 1.8.1-rc.ee55691
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commons/events/ActionConfig.d.ts +276 -1920
- package/dist/commons/events/EventConfig.d.ts +94 -586
- package/dist/commons/events/FieldConfig.d.ts +28 -263
- package/dist/commons/events/FormConfig.d.ts +132 -924
- package/dist/commons/events/PageConfig.d.ts +36 -260
- package/dist/commons/events/defineConfig.d.ts +18 -54
- package/dist/commons/events/utils.d.ts +32 -96
- package/dist/events/index.js +9 -31
- package/package.json +1 -1
@@ -577,21 +577,18 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
577
577
|
name?: {
|
578
578
|
firstname?: {
|
579
579
|
required: boolean;
|
580
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
581
580
|
} | undefined;
|
582
581
|
surname?: {
|
583
582
|
required: boolean;
|
584
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
585
583
|
} | undefined;
|
586
584
|
middlename?: {
|
587
585
|
required: boolean;
|
588
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
589
586
|
} | undefined;
|
590
587
|
} | undefined;
|
591
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
592
588
|
maxLength?: number | undefined;
|
593
589
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
594
590
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
591
|
+
searchMode?: boolean | undefined;
|
595
592
|
} | undefined;
|
596
593
|
} | {
|
597
594
|
type: "PHONE";
|
@@ -924,8 +921,7 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
924
921
|
postcodeOrZip?: string | undefined;
|
925
922
|
} | undefined;
|
926
923
|
configuration?: {
|
927
|
-
|
928
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
924
|
+
searchMode?: boolean | undefined;
|
929
925
|
} | undefined;
|
930
926
|
} | {
|
931
927
|
type: "DATA";
|
@@ -1535,21 +1531,18 @@ export declare function getDeclaration(configuration: EventConfig): {
|
|
1535
1531
|
name?: {
|
1536
1532
|
firstname?: {
|
1537
1533
|
required: boolean;
|
1538
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
1539
1534
|
} | undefined;
|
1540
1535
|
surname?: {
|
1541
1536
|
required: boolean;
|
1542
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
1543
1537
|
} | undefined;
|
1544
1538
|
middlename?: {
|
1545
1539
|
required: boolean;
|
1546
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
1547
1540
|
} | undefined;
|
1548
1541
|
} | undefined;
|
1549
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
1550
1542
|
maxLength?: number | undefined;
|
1551
1543
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1552
1544
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1545
|
+
searchMode?: boolean | undefined;
|
1553
1546
|
} | undefined;
|
1554
1547
|
} | {
|
1555
1548
|
type: "PHONE";
|
@@ -1882,8 +1875,7 @@ export declare function getDeclaration(configuration: EventConfig): {
|
|
1882
1875
|
postcodeOrZip?: string | undefined;
|
1883
1876
|
} | undefined;
|
1884
1877
|
configuration?: {
|
1885
|
-
|
1886
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
1878
|
+
searchMode?: boolean | undefined;
|
1887
1879
|
} | undefined;
|
1888
1880
|
} | {
|
1889
1881
|
type: "DATA";
|
@@ -2492,21 +2484,18 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
2492
2484
|
name?: {
|
2493
2485
|
firstname?: {
|
2494
2486
|
required: boolean;
|
2495
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
2496
2487
|
} | undefined;
|
2497
2488
|
surname?: {
|
2498
2489
|
required: boolean;
|
2499
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
2500
2490
|
} | undefined;
|
2501
2491
|
middlename?: {
|
2502
2492
|
required: boolean;
|
2503
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
2504
2493
|
} | undefined;
|
2505
2494
|
} | undefined;
|
2506
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
2507
2495
|
maxLength?: number | undefined;
|
2508
2496
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2509
2497
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2498
|
+
searchMode?: boolean | undefined;
|
2510
2499
|
} | undefined;
|
2511
2500
|
} | {
|
2512
2501
|
type: "PHONE";
|
@@ -2839,8 +2828,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
2839
2828
|
postcodeOrZip?: string | undefined;
|
2840
2829
|
} | undefined;
|
2841
2830
|
configuration?: {
|
2842
|
-
|
2843
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
2831
|
+
searchMode?: boolean | undefined;
|
2844
2832
|
} | undefined;
|
2845
2833
|
} | {
|
2846
2834
|
type: "DATA";
|
@@ -3459,21 +3447,18 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
3459
3447
|
name?: {
|
3460
3448
|
firstname?: {
|
3461
3449
|
required: boolean;
|
3462
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
3463
3450
|
} | undefined;
|
3464
3451
|
surname?: {
|
3465
3452
|
required: boolean;
|
3466
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
3467
3453
|
} | undefined;
|
3468
3454
|
middlename?: {
|
3469
3455
|
required: boolean;
|
3470
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
3471
3456
|
} | undefined;
|
3472
3457
|
} | undefined;
|
3473
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
3474
3458
|
maxLength?: number | undefined;
|
3475
3459
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3476
3460
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3461
|
+
searchMode?: boolean | undefined;
|
3477
3462
|
} | undefined;
|
3478
3463
|
} | {
|
3479
3464
|
type: "PHONE";
|
@@ -3806,8 +3791,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
3806
3791
|
postcodeOrZip?: string | undefined;
|
3807
3792
|
} | undefined;
|
3808
3793
|
configuration?: {
|
3809
|
-
|
3810
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
3794
|
+
searchMode?: boolean | undefined;
|
3811
3795
|
} | undefined;
|
3812
3796
|
} | {
|
3813
3797
|
type: "DATA";
|
@@ -4411,21 +4395,18 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
|
|
4411
4395
|
name?: {
|
4412
4396
|
firstname?: {
|
4413
4397
|
required: boolean;
|
4414
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
4415
4398
|
} | undefined;
|
4416
4399
|
surname?: {
|
4417
4400
|
required: boolean;
|
4418
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
4419
4401
|
} | undefined;
|
4420
4402
|
middlename?: {
|
4421
4403
|
required: boolean;
|
4422
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
4423
4404
|
} | undefined;
|
4424
4405
|
} | undefined;
|
4425
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
4426
4406
|
maxLength?: number | undefined;
|
4427
4407
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4428
4408
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4409
|
+
searchMode?: boolean | undefined;
|
4429
4410
|
} | undefined;
|
4430
4411
|
} | {
|
4431
4412
|
type: "PHONE";
|
@@ -4758,8 +4739,7 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
|
|
4758
4739
|
postcodeOrZip?: string | undefined;
|
4759
4740
|
} | undefined;
|
4760
4741
|
configuration?: {
|
4761
|
-
|
4762
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
4742
|
+
searchMode?: boolean | undefined;
|
4763
4743
|
} | undefined;
|
4764
4744
|
} | {
|
4765
4745
|
type: "DATA";
|
@@ -5369,21 +5349,18 @@ export declare function getActionReview(configuration: EventConfig, actionType:
|
|
5369
5349
|
name?: {
|
5370
5350
|
firstname?: {
|
5371
5351
|
required: boolean;
|
5372
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
5373
5352
|
} | undefined;
|
5374
5353
|
surname?: {
|
5375
5354
|
required: boolean;
|
5376
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
5377
5355
|
} | undefined;
|
5378
5356
|
middlename?: {
|
5379
5357
|
required: boolean;
|
5380
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
5381
5358
|
} | undefined;
|
5382
5359
|
} | undefined;
|
5383
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
5384
5360
|
maxLength?: number | undefined;
|
5385
5361
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5386
5362
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5363
|
+
searchMode?: boolean | undefined;
|
5387
5364
|
} | undefined;
|
5388
5365
|
} | {
|
5389
5366
|
type: "PHONE";
|
@@ -5716,8 +5693,7 @@ export declare function getActionReview(configuration: EventConfig, actionType:
|
|
5716
5693
|
postcodeOrZip?: string | undefined;
|
5717
5694
|
} | undefined;
|
5718
5695
|
configuration?: {
|
5719
|
-
|
5720
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
5696
|
+
searchMode?: boolean | undefined;
|
5721
5697
|
} | undefined;
|
5722
5698
|
} | {
|
5723
5699
|
type: "DATA";
|
@@ -6320,21 +6296,18 @@ export declare function getActionReviewFields(configuration: EventConfig, action
|
|
6320
6296
|
name?: {
|
6321
6297
|
firstname?: {
|
6322
6298
|
required: boolean;
|
6323
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
6324
6299
|
} | undefined;
|
6325
6300
|
surname?: {
|
6326
6301
|
required: boolean;
|
6327
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
6328
6302
|
} | undefined;
|
6329
6303
|
middlename?: {
|
6330
6304
|
required: boolean;
|
6331
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
6332
6305
|
} | undefined;
|
6333
6306
|
} | undefined;
|
6334
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
6335
6307
|
maxLength?: number | undefined;
|
6336
6308
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6337
6309
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6310
|
+
searchMode?: boolean | undefined;
|
6338
6311
|
} | undefined;
|
6339
6312
|
} | {
|
6340
6313
|
type: "PHONE";
|
@@ -6667,8 +6640,7 @@ export declare function getActionReviewFields(configuration: EventConfig, action
|
|
6667
6640
|
postcodeOrZip?: string | undefined;
|
6668
6641
|
} | undefined;
|
6669
6642
|
configuration?: {
|
6670
|
-
|
6671
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
6643
|
+
searchMode?: boolean | undefined;
|
6672
6644
|
} | undefined;
|
6673
6645
|
} | {
|
6674
6646
|
type: "DATA";
|
@@ -7543,21 +7515,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
7543
7515
|
name?: {
|
7544
7516
|
firstname?: {
|
7545
7517
|
required: boolean;
|
7546
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
7547
7518
|
} | undefined;
|
7548
7519
|
surname?: {
|
7549
7520
|
required: boolean;
|
7550
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
7551
7521
|
} | undefined;
|
7552
7522
|
middlename?: {
|
7553
7523
|
required: boolean;
|
7554
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
7555
7524
|
} | undefined;
|
7556
7525
|
} | undefined;
|
7557
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
7558
7526
|
maxLength?: number | undefined;
|
7559
7527
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7560
7528
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7529
|
+
searchMode?: boolean | undefined;
|
7561
7530
|
} | undefined;
|
7562
7531
|
} | {
|
7563
7532
|
type: "PHONE";
|
@@ -7890,8 +7859,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
7890
7859
|
postcodeOrZip?: string | undefined;
|
7891
7860
|
} | undefined;
|
7892
7861
|
configuration?: {
|
7893
|
-
|
7894
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
7862
|
+
searchMode?: boolean | undefined;
|
7895
7863
|
} | undefined;
|
7896
7864
|
} | {
|
7897
7865
|
type: "DATA";
|
@@ -8508,21 +8476,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
8508
8476
|
name?: {
|
8509
8477
|
firstname?: {
|
8510
8478
|
required: boolean;
|
8511
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
8512
8479
|
} | undefined;
|
8513
8480
|
surname?: {
|
8514
8481
|
required: boolean;
|
8515
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
8516
8482
|
} | undefined;
|
8517
8483
|
middlename?: {
|
8518
8484
|
required: boolean;
|
8519
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
8520
8485
|
} | undefined;
|
8521
8486
|
} | undefined;
|
8522
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
8523
8487
|
maxLength?: number | undefined;
|
8524
8488
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8525
8489
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8490
|
+
searchMode?: boolean | undefined;
|
8526
8491
|
} | undefined;
|
8527
8492
|
} | {
|
8528
8493
|
type: "PHONE";
|
@@ -8855,8 +8820,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
8855
8820
|
postcodeOrZip?: string | undefined;
|
8856
8821
|
} | undefined;
|
8857
8822
|
configuration?: {
|
8858
|
-
|
8859
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
8823
|
+
searchMode?: boolean | undefined;
|
8860
8824
|
} | undefined;
|
8861
8825
|
} | {
|
8862
8826
|
type: "DATA";
|
@@ -9472,21 +9436,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
9472
9436
|
name?: {
|
9473
9437
|
firstname?: {
|
9474
9438
|
required: boolean;
|
9475
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
9476
9439
|
} | undefined;
|
9477
9440
|
surname?: {
|
9478
9441
|
required: boolean;
|
9479
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
9480
9442
|
} | undefined;
|
9481
9443
|
middlename?: {
|
9482
9444
|
required: boolean;
|
9483
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
9484
9445
|
} | undefined;
|
9485
9446
|
} | undefined;
|
9486
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
9487
9447
|
maxLength?: number | undefined;
|
9488
9448
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9489
9449
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9450
|
+
searchMode?: boolean | undefined;
|
9490
9451
|
} | undefined;
|
9491
9452
|
} | {
|
9492
9453
|
type: "PHONE";
|
@@ -9819,8 +9780,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
9819
9780
|
postcodeOrZip?: string | undefined;
|
9820
9781
|
} | undefined;
|
9821
9782
|
configuration?: {
|
9822
|
-
|
9823
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
9783
|
+
searchMode?: boolean | undefined;
|
9824
9784
|
} | undefined;
|
9825
9785
|
} | {
|
9826
9786
|
type: "DATA";
|
@@ -10436,21 +10396,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
10436
10396
|
name?: {
|
10437
10397
|
firstname?: {
|
10438
10398
|
required: boolean;
|
10439
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
10440
10399
|
} | undefined;
|
10441
10400
|
surname?: {
|
10442
10401
|
required: boolean;
|
10443
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
10444
10402
|
} | undefined;
|
10445
10403
|
middlename?: {
|
10446
10404
|
required: boolean;
|
10447
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
10448
10405
|
} | undefined;
|
10449
10406
|
} | undefined;
|
10450
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
10451
10407
|
maxLength?: number | undefined;
|
10452
10408
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10453
10409
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10410
|
+
searchMode?: boolean | undefined;
|
10454
10411
|
} | undefined;
|
10455
10412
|
} | {
|
10456
10413
|
type: "PHONE";
|
@@ -10783,8 +10740,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
10783
10740
|
postcodeOrZip?: string | undefined;
|
10784
10741
|
} | undefined;
|
10785
10742
|
configuration?: {
|
10786
|
-
|
10787
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
10743
|
+
searchMode?: boolean | undefined;
|
10788
10744
|
} | undefined;
|
10789
10745
|
} | {
|
10790
10746
|
type: "DATA";
|
@@ -11400,21 +11356,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
11400
11356
|
name?: {
|
11401
11357
|
firstname?: {
|
11402
11358
|
required: boolean;
|
11403
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
11404
11359
|
} | undefined;
|
11405
11360
|
surname?: {
|
11406
11361
|
required: boolean;
|
11407
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
11408
11362
|
} | undefined;
|
11409
11363
|
middlename?: {
|
11410
11364
|
required: boolean;
|
11411
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
11412
11365
|
} | undefined;
|
11413
11366
|
} | undefined;
|
11414
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
11415
11367
|
maxLength?: number | undefined;
|
11416
11368
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
11417
11369
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
11370
|
+
searchMode?: boolean | undefined;
|
11418
11371
|
} | undefined;
|
11419
11372
|
} | {
|
11420
11373
|
type: "PHONE";
|
@@ -11747,8 +11700,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
11747
11700
|
postcodeOrZip?: string | undefined;
|
11748
11701
|
} | undefined;
|
11749
11702
|
configuration?: {
|
11750
|
-
|
11751
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
11703
|
+
searchMode?: boolean | undefined;
|
11752
11704
|
} | undefined;
|
11753
11705
|
} | {
|
11754
11706
|
type: "DATA";
|
@@ -12412,21 +12364,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
12412
12364
|
name?: {
|
12413
12365
|
firstname?: {
|
12414
12366
|
required: boolean;
|
12415
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
12416
12367
|
} | undefined;
|
12417
12368
|
surname?: {
|
12418
12369
|
required: boolean;
|
12419
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
12420
12370
|
} | undefined;
|
12421
12371
|
middlename?: {
|
12422
12372
|
required: boolean;
|
12423
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
12424
12373
|
} | undefined;
|
12425
12374
|
} | undefined;
|
12426
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
12427
12375
|
maxLength?: number | undefined;
|
12428
12376
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
12429
12377
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
12378
|
+
searchMode?: boolean | undefined;
|
12430
12379
|
} | undefined;
|
12431
12380
|
} | {
|
12432
12381
|
type: "PHONE";
|
@@ -12759,8 +12708,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
12759
12708
|
postcodeOrZip?: string | undefined;
|
12760
12709
|
} | undefined;
|
12761
12710
|
configuration?: {
|
12762
|
-
|
12763
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
12711
|
+
searchMode?: boolean | undefined;
|
12764
12712
|
} | undefined;
|
12765
12713
|
} | {
|
12766
12714
|
type: "DATA";
|
@@ -13379,21 +13327,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
13379
13327
|
name?: {
|
13380
13328
|
firstname?: {
|
13381
13329
|
required: boolean;
|
13382
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
13383
13330
|
} | undefined;
|
13384
13331
|
surname?: {
|
13385
13332
|
required: boolean;
|
13386
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
13387
13333
|
} | undefined;
|
13388
13334
|
middlename?: {
|
13389
13335
|
required: boolean;
|
13390
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
13391
13336
|
} | undefined;
|
13392
13337
|
} | undefined;
|
13393
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
13394
13338
|
maxLength?: number | undefined;
|
13395
13339
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
13396
13340
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
13341
|
+
searchMode?: boolean | undefined;
|
13397
13342
|
} | undefined;
|
13398
13343
|
} | {
|
13399
13344
|
type: "PHONE";
|
@@ -13726,8 +13671,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
13726
13671
|
postcodeOrZip?: string | undefined;
|
13727
13672
|
} | undefined;
|
13728
13673
|
configuration?: {
|
13729
|
-
|
13730
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
13674
|
+
searchMode?: boolean | undefined;
|
13731
13675
|
} | undefined;
|
13732
13676
|
} | {
|
13733
13677
|
type: "DATA";
|
@@ -14349,21 +14293,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
14349
14293
|
name?: {
|
14350
14294
|
firstname?: {
|
14351
14295
|
required: boolean;
|
14352
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
14353
14296
|
} | undefined;
|
14354
14297
|
surname?: {
|
14355
14298
|
required: boolean;
|
14356
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
14357
14299
|
} | undefined;
|
14358
14300
|
middlename?: {
|
14359
14301
|
required: boolean;
|
14360
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
14361
14302
|
} | undefined;
|
14362
14303
|
} | undefined;
|
14363
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
14364
14304
|
maxLength?: number | undefined;
|
14365
14305
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
14366
14306
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
14307
|
+
searchMode?: boolean | undefined;
|
14367
14308
|
} | undefined;
|
14368
14309
|
} | {
|
14369
14310
|
type: "PHONE";
|
@@ -14696,8 +14637,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
14696
14637
|
postcodeOrZip?: string | undefined;
|
14697
14638
|
} | undefined;
|
14698
14639
|
configuration?: {
|
14699
|
-
|
14700
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
14640
|
+
searchMode?: boolean | undefined;
|
14701
14641
|
} | undefined;
|
14702
14642
|
} | {
|
14703
14643
|
type: "DATA";
|
@@ -15316,21 +15256,18 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15316
15256
|
name?: {
|
15317
15257
|
firstname?: {
|
15318
15258
|
required: boolean;
|
15319
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
15320
15259
|
} | undefined;
|
15321
15260
|
surname?: {
|
15322
15261
|
required: boolean;
|
15323
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
15324
15262
|
} | undefined;
|
15325
15263
|
middlename?: {
|
15326
15264
|
required: boolean;
|
15327
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
15328
15265
|
} | undefined;
|
15329
15266
|
} | undefined;
|
15330
|
-
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
15331
15267
|
maxLength?: number | undefined;
|
15332
15268
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
15333
15269
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
15270
|
+
searchMode?: boolean | undefined;
|
15334
15271
|
} | undefined;
|
15335
15272
|
} | {
|
15336
15273
|
type: "PHONE";
|
@@ -15663,8 +15600,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15663
15600
|
postcodeOrZip?: string | undefined;
|
15664
15601
|
} | undefined;
|
15665
15602
|
configuration?: {
|
15666
|
-
|
15667
|
-
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
15603
|
+
searchMode?: boolean | undefined;
|
15668
15604
|
} | undefined;
|
15669
15605
|
} | {
|
15670
15606
|
type: "DATA";
|
package/dist/events/index.js
CHANGED
@@ -917,9 +917,9 @@ var SelectDateRangeField = BaseField.extend({
|
|
917
917
|
options: import_zod7.z.array(SelectDateRangeOption).describe("A list of options")
|
918
918
|
}).describe("Select input with date range options");
|
919
919
|
var NameConfig = import_zod7.z.object({
|
920
|
-
firstname: import_zod7.z.object({ required: import_zod7.z.boolean()
|
921
|
-
middlename: import_zod7.z.object({ required: import_zod7.z.boolean()
|
922
|
-
surname: import_zod7.z.object({ required: import_zod7.z.boolean()
|
920
|
+
firstname: import_zod7.z.object({ required: import_zod7.z.boolean() }).optional(),
|
921
|
+
middlename: import_zod7.z.object({ required: import_zod7.z.boolean() }).optional(),
|
922
|
+
surname: import_zod7.z.object({ required: import_zod7.z.boolean() }).optional()
|
923
923
|
});
|
924
924
|
var NameField = BaseField.extend({
|
925
925
|
type: import_zod7.z.literal(FieldType.NAME),
|
@@ -933,10 +933,10 @@ var NameField = BaseField.extend({
|
|
933
933
|
firstname: { required: true },
|
934
934
|
surname: { required: true }
|
935
935
|
}).optional(),
|
936
|
-
order: import_zod7.z.array(import_zod7.z.enum(["firstname", "middlename", "surname"])).optional(),
|
937
936
|
maxLength: import_zod7.z.number().optional().describe("Maximum length of the text"),
|
938
937
|
prefix: TranslationConfig.optional(),
|
939
|
-
postfix: TranslationConfig.optional()
|
938
|
+
postfix: TranslationConfig.optional(),
|
939
|
+
searchMode: import_zod7.z.boolean().optional()
|
940
940
|
}).default({
|
941
941
|
name: {
|
942
942
|
firstname: { required: true },
|
@@ -1004,32 +1004,10 @@ var Office = BaseField.extend({
|
|
1004
1004
|
}).describe("Input field for an office");
|
1005
1005
|
var Address = BaseField.extend({
|
1006
1006
|
type: import_zod7.z.literal(FieldType.ADDRESS),
|
1007
|
+
defaultValue: AddressFieldValue.optional(),
|
1007
1008
|
configuration: import_zod7.z.object({
|
1008
|
-
|
1009
|
-
|
1010
|
-
import_zod7.z.enum([
|
1011
|
-
"number",
|
1012
|
-
"country",
|
1013
|
-
"province",
|
1014
|
-
"addressType",
|
1015
|
-
"district",
|
1016
|
-
"urbanOrRural",
|
1017
|
-
"town",
|
1018
|
-
"residentialArea",
|
1019
|
-
"street",
|
1020
|
-
"zipCode",
|
1021
|
-
"village",
|
1022
|
-
"state",
|
1023
|
-
"district2",
|
1024
|
-
"cityOrTown",
|
1025
|
-
"addressLine1",
|
1026
|
-
"addressLine2",
|
1027
|
-
"addressLine3",
|
1028
|
-
"postcodeOrZip"
|
1029
|
-
])
|
1030
|
-
).optional()
|
1031
|
-
}).optional(),
|
1032
|
-
defaultValue: AddressFieldValue.optional()
|
1009
|
+
searchMode: import_zod7.z.boolean().optional()
|
1010
|
+
}).optional()
|
1033
1011
|
}).describe("Address input field \u2013 a combination of location and text fields");
|
1034
1012
|
var DataEntry = import_zod7.z.union([
|
1035
1013
|
import_zod7.z.object({
|
@@ -4479,7 +4457,7 @@ function getCurrentEventStateWithDrafts({
|
|
4479
4457
|
configuration
|
4480
4458
|
}) {
|
4481
4459
|
const actions = event2.actions.slice().sort((a, b) => a.createdAt.localeCompare(b.createdAt));
|
4482
|
-
const activeDrafts = drafts.map((draft) => draft.action).flatMap((action) => {
|
4460
|
+
const activeDrafts = findActiveDrafts(event2, drafts).map((draft) => draft.action).flatMap((action) => {
|
4483
4461
|
if (action.type === ActionType.REQUEST_CORRECTION) {
|
4484
4462
|
return [
|
4485
4463
|
action,
|