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