@opencrvs/toolkit 1.8.1-rc.e32d7b8 → 1.8.1-rc.e59d03c
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/api/router.d.ts +433 -796
- package/dist/commons/conditionals/validate.d.ts +11 -2
- package/dist/commons/events/ActionConfig.d.ts +2004 -366
- package/dist/commons/events/ActionDocument.d.ts +1302 -1389
- package/dist/commons/events/ActionInput.d.ts +658 -1136
- package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
- package/dist/commons/events/Draft.d.ts +48 -92
- package/dist/commons/events/EventConfig.d.ts +695 -168
- package/dist/commons/events/EventDocument.d.ts +475 -846
- package/dist/commons/events/EventIndex.d.ts +184 -62
- package/dist/commons/events/EventMetadata.d.ts +9 -9
- package/dist/commons/events/FieldConfig.d.ts +254 -43
- package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/FormConfig.d.ts +1032 -246
- package/dist/commons/events/PageConfig.d.ts +264 -46
- package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
- package/dist/commons/events/defineConfig.d.ts +129 -30
- package/dist/commons/events/event.d.ts +68 -6
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/test.utils.d.ts +17 -13
- package/dist/commons/events/utils.d.ts +236 -64
- package/dist/conditionals/index.js +3 -2
- package/dist/events/index.js +265 -102
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
- package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
- package/dist/commons/conditionals/validate.test.d.ts +0 -2
- package/dist/commons/events/utils.test.d.ts +0 -2
@@ -569,14 +569,25 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
569
569
|
hideLabel?: boolean | undefined;
|
570
570
|
uncorrectable?: boolean | undefined;
|
571
571
|
defaultValue?: {
|
572
|
-
firstname
|
573
|
-
surname
|
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
|
+
} | undefined;
|
581
|
+
surname?: {
|
582
|
+
required: boolean;
|
583
|
+
} | undefined;
|
584
|
+
middlename?: {
|
585
|
+
required: boolean;
|
586
|
+
} | undefined;
|
587
|
+
} | undefined;
|
576
588
|
maxLength?: number | undefined;
|
577
589
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
578
590
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
579
|
-
includeMiddlename?: boolean | undefined;
|
580
591
|
searchMode?: boolean | undefined;
|
581
592
|
} | undefined;
|
582
593
|
} | {
|
@@ -1512,14 +1523,25 @@ export declare function getDeclaration(configuration: EventConfig): {
|
|
1512
1523
|
hideLabel?: boolean | undefined;
|
1513
1524
|
uncorrectable?: boolean | undefined;
|
1514
1525
|
defaultValue?: {
|
1515
|
-
firstname
|
1516
|
-
surname
|
1526
|
+
firstname?: string | undefined;
|
1527
|
+
surname?: string | undefined;
|
1528
|
+
middlename?: string | undefined;
|
1517
1529
|
} | undefined;
|
1518
1530
|
configuration?: {
|
1531
|
+
name?: {
|
1532
|
+
firstname?: {
|
1533
|
+
required: boolean;
|
1534
|
+
} | undefined;
|
1535
|
+
surname?: {
|
1536
|
+
required: boolean;
|
1537
|
+
} | undefined;
|
1538
|
+
middlename?: {
|
1539
|
+
required: boolean;
|
1540
|
+
} | undefined;
|
1541
|
+
} | undefined;
|
1519
1542
|
maxLength?: number | undefined;
|
1520
1543
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1521
1544
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1522
|
-
includeMiddlename?: boolean | undefined;
|
1523
1545
|
searchMode?: boolean | undefined;
|
1524
1546
|
} | undefined;
|
1525
1547
|
} | {
|
@@ -2454,14 +2476,25 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
2454
2476
|
hideLabel?: boolean | undefined;
|
2455
2477
|
uncorrectable?: boolean | undefined;
|
2456
2478
|
defaultValue?: {
|
2457
|
-
firstname
|
2458
|
-
surname
|
2479
|
+
firstname?: string | undefined;
|
2480
|
+
surname?: string | undefined;
|
2481
|
+
middlename?: string | undefined;
|
2459
2482
|
} | undefined;
|
2460
2483
|
configuration?: {
|
2484
|
+
name?: {
|
2485
|
+
firstname?: {
|
2486
|
+
required: boolean;
|
2487
|
+
} | undefined;
|
2488
|
+
surname?: {
|
2489
|
+
required: boolean;
|
2490
|
+
} | undefined;
|
2491
|
+
middlename?: {
|
2492
|
+
required: boolean;
|
2493
|
+
} | undefined;
|
2494
|
+
} | undefined;
|
2461
2495
|
maxLength?: number | undefined;
|
2462
2496
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2463
2497
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2464
|
-
includeMiddlename?: boolean | undefined;
|
2465
2498
|
searchMode?: boolean | undefined;
|
2466
2499
|
} | undefined;
|
2467
2500
|
} | {
|
@@ -3406,14 +3439,25 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
3406
3439
|
hideLabel?: boolean | undefined;
|
3407
3440
|
uncorrectable?: boolean | undefined;
|
3408
3441
|
defaultValue?: {
|
3409
|
-
firstname
|
3410
|
-
surname
|
3442
|
+
firstname?: string | undefined;
|
3443
|
+
surname?: string | undefined;
|
3444
|
+
middlename?: string | undefined;
|
3411
3445
|
} | undefined;
|
3412
3446
|
configuration?: {
|
3447
|
+
name?: {
|
3448
|
+
firstname?: {
|
3449
|
+
required: boolean;
|
3450
|
+
} | undefined;
|
3451
|
+
surname?: {
|
3452
|
+
required: boolean;
|
3453
|
+
} | undefined;
|
3454
|
+
middlename?: {
|
3455
|
+
required: boolean;
|
3456
|
+
} | undefined;
|
3457
|
+
} | undefined;
|
3413
3458
|
maxLength?: number | undefined;
|
3414
3459
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3415
3460
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3416
|
-
includeMiddlename?: boolean | undefined;
|
3417
3461
|
searchMode?: boolean | undefined;
|
3418
3462
|
} | undefined;
|
3419
3463
|
} | {
|
@@ -4343,14 +4387,25 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
|
|
4343
4387
|
hideLabel?: boolean | undefined;
|
4344
4388
|
uncorrectable?: boolean | undefined;
|
4345
4389
|
defaultValue?: {
|
4346
|
-
firstname
|
4347
|
-
surname
|
4390
|
+
firstname?: string | undefined;
|
4391
|
+
surname?: string | undefined;
|
4392
|
+
middlename?: string | undefined;
|
4348
4393
|
} | undefined;
|
4349
4394
|
configuration?: {
|
4395
|
+
name?: {
|
4396
|
+
firstname?: {
|
4397
|
+
required: boolean;
|
4398
|
+
} | undefined;
|
4399
|
+
surname?: {
|
4400
|
+
required: boolean;
|
4401
|
+
} | undefined;
|
4402
|
+
middlename?: {
|
4403
|
+
required: boolean;
|
4404
|
+
} | undefined;
|
4405
|
+
} | undefined;
|
4350
4406
|
maxLength?: number | undefined;
|
4351
4407
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4352
4408
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4353
|
-
includeMiddlename?: boolean | undefined;
|
4354
4409
|
searchMode?: boolean | undefined;
|
4355
4410
|
} | undefined;
|
4356
4411
|
} | {
|
@@ -4723,7 +4778,7 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
|
|
4723
4778
|
hideLabel?: boolean | undefined;
|
4724
4779
|
uncorrectable?: boolean | undefined;
|
4725
4780
|
})[];
|
4726
|
-
export declare function getAllUniqueFields(eventConfig: EventConfig):
|
4781
|
+
export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
|
4727
4782
|
export declare function getDeclarationFieldById(config: EventConfig, fieldId: string): FieldConfig;
|
4728
4783
|
/**
|
4729
4784
|
* @TODO: Request correction should have same format as print certificate
|
@@ -5286,14 +5341,25 @@ export declare function getActionReview(configuration: EventConfig, actionType:
|
|
5286
5341
|
hideLabel?: boolean | undefined;
|
5287
5342
|
uncorrectable?: boolean | undefined;
|
5288
5343
|
defaultValue?: {
|
5289
|
-
firstname
|
5290
|
-
surname
|
5344
|
+
firstname?: string | undefined;
|
5345
|
+
surname?: string | undefined;
|
5346
|
+
middlename?: string | undefined;
|
5291
5347
|
} | undefined;
|
5292
5348
|
configuration?: {
|
5349
|
+
name?: {
|
5350
|
+
firstname?: {
|
5351
|
+
required: boolean;
|
5352
|
+
} | undefined;
|
5353
|
+
surname?: {
|
5354
|
+
required: boolean;
|
5355
|
+
} | undefined;
|
5356
|
+
middlename?: {
|
5357
|
+
required: boolean;
|
5358
|
+
} | undefined;
|
5359
|
+
} | undefined;
|
5293
5360
|
maxLength?: number | undefined;
|
5294
5361
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5295
5362
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5296
|
-
includeMiddlename?: boolean | undefined;
|
5297
5363
|
searchMode?: boolean | undefined;
|
5298
5364
|
} | undefined;
|
5299
5365
|
} | {
|
@@ -6222,14 +6288,25 @@ export declare function getActionReviewFields(configuration: EventConfig, action
|
|
6222
6288
|
hideLabel?: boolean | undefined;
|
6223
6289
|
uncorrectable?: boolean | undefined;
|
6224
6290
|
defaultValue?: {
|
6225
|
-
firstname
|
6226
|
-
surname
|
6291
|
+
firstname?: string | undefined;
|
6292
|
+
surname?: string | undefined;
|
6293
|
+
middlename?: string | undefined;
|
6227
6294
|
} | undefined;
|
6228
6295
|
configuration?: {
|
6296
|
+
name?: {
|
6297
|
+
firstname?: {
|
6298
|
+
required: boolean;
|
6299
|
+
} | undefined;
|
6300
|
+
surname?: {
|
6301
|
+
required: boolean;
|
6302
|
+
} | undefined;
|
6303
|
+
middlename?: {
|
6304
|
+
required: boolean;
|
6305
|
+
} | undefined;
|
6306
|
+
} | undefined;
|
6229
6307
|
maxLength?: number | undefined;
|
6230
6308
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6231
6309
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6232
|
-
includeMiddlename?: boolean | undefined;
|
6233
6310
|
searchMode?: boolean | undefined;
|
6234
6311
|
} | undefined;
|
6235
6312
|
} | {
|
@@ -6631,8 +6708,8 @@ export declare function omitHiddenPaginatedFields(formConfig: FormConfig, declar
|
|
6631
6708
|
surname: string;
|
6632
6709
|
middlename?: string | undefined;
|
6633
6710
|
} | {
|
6634
|
-
firstname
|
6635
|
-
surname
|
6711
|
+
firstname: string;
|
6712
|
+
surname: string;
|
6636
6713
|
middlename?: string | null | undefined;
|
6637
6714
|
} | {
|
6638
6715
|
country: string;
|
@@ -6682,8 +6759,8 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
6682
6759
|
street?: string | null | undefined;
|
6683
6760
|
zipCode?: string | null | undefined;
|
6684
6761
|
} | {
|
6685
|
-
firstname
|
6686
|
-
surname
|
6762
|
+
firstname: string;
|
6763
|
+
surname: string;
|
6687
6764
|
middlename?: string | null | undefined;
|
6688
6765
|
} | {
|
6689
6766
|
country: string;
|
@@ -6729,8 +6806,8 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
6729
6806
|
street?: string | null | undefined;
|
6730
6807
|
zipCode?: string | null | undefined;
|
6731
6808
|
} | {
|
6732
|
-
firstname
|
6733
|
-
surname
|
6809
|
+
firstname: string;
|
6810
|
+
surname: string;
|
6734
6811
|
middlename?: string | null | undefined;
|
6735
6812
|
} | {
|
6736
6813
|
country: string;
|
@@ -6758,10 +6835,6 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
6758
6835
|
start: string;
|
6759
6836
|
end: string;
|
6760
6837
|
} | null | undefined> | null | undefined;
|
6761
|
-
actionDetails?: {
|
6762
|
-
templateId?: string | undefined;
|
6763
|
-
isImmediateCorrection?: boolean | undefined;
|
6764
|
-
} | null | undefined;
|
6765
6838
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
6766
6839
|
};
|
6767
6840
|
}[];
|
@@ -6808,8 +6881,8 @@ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, d
|
|
6808
6881
|
surname: string;
|
6809
6882
|
middlename?: string | undefined;
|
6810
6883
|
} | {
|
6811
|
-
firstname
|
6812
|
-
surname
|
6884
|
+
firstname: string;
|
6885
|
+
surname: string;
|
6813
6886
|
middlename?: string | null | undefined;
|
6814
6887
|
} | {
|
6815
6888
|
country: string;
|
@@ -7434,14 +7507,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
7434
7507
|
hideLabel?: boolean | undefined;
|
7435
7508
|
uncorrectable?: boolean | undefined;
|
7436
7509
|
defaultValue?: {
|
7437
|
-
firstname
|
7438
|
-
surname
|
7510
|
+
firstname?: string | undefined;
|
7511
|
+
surname?: string | undefined;
|
7512
|
+
middlename?: string | undefined;
|
7439
7513
|
} | undefined;
|
7440
7514
|
configuration?: {
|
7515
|
+
name?: {
|
7516
|
+
firstname?: {
|
7517
|
+
required: boolean;
|
7518
|
+
} | undefined;
|
7519
|
+
surname?: {
|
7520
|
+
required: boolean;
|
7521
|
+
} | undefined;
|
7522
|
+
middlename?: {
|
7523
|
+
required: boolean;
|
7524
|
+
} | undefined;
|
7525
|
+
} | undefined;
|
7441
7526
|
maxLength?: number | undefined;
|
7442
7527
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7443
7528
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7444
|
-
includeMiddlename?: boolean | undefined;
|
7445
7529
|
searchMode?: boolean | undefined;
|
7446
7530
|
} | undefined;
|
7447
7531
|
} | {
|
@@ -8384,14 +8468,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
8384
8468
|
hideLabel?: boolean | undefined;
|
8385
8469
|
uncorrectable?: boolean | undefined;
|
8386
8470
|
defaultValue?: {
|
8387
|
-
firstname
|
8388
|
-
surname
|
8471
|
+
firstname?: string | undefined;
|
8472
|
+
surname?: string | undefined;
|
8473
|
+
middlename?: string | undefined;
|
8389
8474
|
} | undefined;
|
8390
8475
|
configuration?: {
|
8476
|
+
name?: {
|
8477
|
+
firstname?: {
|
8478
|
+
required: boolean;
|
8479
|
+
} | undefined;
|
8480
|
+
surname?: {
|
8481
|
+
required: boolean;
|
8482
|
+
} | undefined;
|
8483
|
+
middlename?: {
|
8484
|
+
required: boolean;
|
8485
|
+
} | undefined;
|
8486
|
+
} | undefined;
|
8391
8487
|
maxLength?: number | undefined;
|
8392
8488
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8393
8489
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8394
|
-
includeMiddlename?: boolean | undefined;
|
8395
8490
|
searchMode?: boolean | undefined;
|
8396
8491
|
} | undefined;
|
8397
8492
|
} | {
|
@@ -9333,14 +9428,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
9333
9428
|
hideLabel?: boolean | undefined;
|
9334
9429
|
uncorrectable?: boolean | undefined;
|
9335
9430
|
defaultValue?: {
|
9336
|
-
firstname
|
9337
|
-
surname
|
9431
|
+
firstname?: string | undefined;
|
9432
|
+
surname?: string | undefined;
|
9433
|
+
middlename?: string | undefined;
|
9338
9434
|
} | undefined;
|
9339
9435
|
configuration?: {
|
9436
|
+
name?: {
|
9437
|
+
firstname?: {
|
9438
|
+
required: boolean;
|
9439
|
+
} | undefined;
|
9440
|
+
surname?: {
|
9441
|
+
required: boolean;
|
9442
|
+
} | undefined;
|
9443
|
+
middlename?: {
|
9444
|
+
required: boolean;
|
9445
|
+
} | undefined;
|
9446
|
+
} | undefined;
|
9340
9447
|
maxLength?: number | undefined;
|
9341
9448
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9342
9449
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9343
|
-
includeMiddlename?: boolean | undefined;
|
9344
9450
|
searchMode?: boolean | undefined;
|
9345
9451
|
} | undefined;
|
9346
9452
|
} | {
|
@@ -10282,14 +10388,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
10282
10388
|
hideLabel?: boolean | undefined;
|
10283
10389
|
uncorrectable?: boolean | undefined;
|
10284
10390
|
defaultValue?: {
|
10285
|
-
firstname
|
10286
|
-
surname
|
10391
|
+
firstname?: string | undefined;
|
10392
|
+
surname?: string | undefined;
|
10393
|
+
middlename?: string | undefined;
|
10287
10394
|
} | undefined;
|
10288
10395
|
configuration?: {
|
10396
|
+
name?: {
|
10397
|
+
firstname?: {
|
10398
|
+
required: boolean;
|
10399
|
+
} | undefined;
|
10400
|
+
surname?: {
|
10401
|
+
required: boolean;
|
10402
|
+
} | undefined;
|
10403
|
+
middlename?: {
|
10404
|
+
required: boolean;
|
10405
|
+
} | undefined;
|
10406
|
+
} | undefined;
|
10289
10407
|
maxLength?: number | undefined;
|
10290
10408
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10291
10409
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10292
|
-
includeMiddlename?: boolean | undefined;
|
10293
10410
|
searchMode?: boolean | undefined;
|
10294
10411
|
} | undefined;
|
10295
10412
|
} | {
|
@@ -11231,14 +11348,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
11231
11348
|
hideLabel?: boolean | undefined;
|
11232
11349
|
uncorrectable?: boolean | undefined;
|
11233
11350
|
defaultValue?: {
|
11234
|
-
firstname
|
11235
|
-
surname
|
11351
|
+
firstname?: string | undefined;
|
11352
|
+
surname?: string | undefined;
|
11353
|
+
middlename?: string | undefined;
|
11236
11354
|
} | undefined;
|
11237
11355
|
configuration?: {
|
11356
|
+
name?: {
|
11357
|
+
firstname?: {
|
11358
|
+
required: boolean;
|
11359
|
+
} | undefined;
|
11360
|
+
surname?: {
|
11361
|
+
required: boolean;
|
11362
|
+
} | undefined;
|
11363
|
+
middlename?: {
|
11364
|
+
required: boolean;
|
11365
|
+
} | undefined;
|
11366
|
+
} | undefined;
|
11238
11367
|
maxLength?: number | undefined;
|
11239
11368
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
11240
11369
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
11241
|
-
includeMiddlename?: boolean | undefined;
|
11242
11370
|
searchMode?: boolean | undefined;
|
11243
11371
|
} | undefined;
|
11244
11372
|
} | {
|
@@ -12228,14 +12356,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
12228
12356
|
hideLabel?: boolean | undefined;
|
12229
12357
|
uncorrectable?: boolean | undefined;
|
12230
12358
|
defaultValue?: {
|
12231
|
-
firstname
|
12232
|
-
surname
|
12359
|
+
firstname?: string | undefined;
|
12360
|
+
surname?: string | undefined;
|
12361
|
+
middlename?: string | undefined;
|
12233
12362
|
} | undefined;
|
12234
12363
|
configuration?: {
|
12364
|
+
name?: {
|
12365
|
+
firstname?: {
|
12366
|
+
required: boolean;
|
12367
|
+
} | undefined;
|
12368
|
+
surname?: {
|
12369
|
+
required: boolean;
|
12370
|
+
} | undefined;
|
12371
|
+
middlename?: {
|
12372
|
+
required: boolean;
|
12373
|
+
} | undefined;
|
12374
|
+
} | undefined;
|
12235
12375
|
maxLength?: number | undefined;
|
12236
12376
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
12237
12377
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
12238
|
-
includeMiddlename?: boolean | undefined;
|
12239
12378
|
searchMode?: boolean | undefined;
|
12240
12379
|
} | undefined;
|
12241
12380
|
} | {
|
@@ -13180,14 +13319,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
13180
13319
|
hideLabel?: boolean | undefined;
|
13181
13320
|
uncorrectable?: boolean | undefined;
|
13182
13321
|
defaultValue?: {
|
13183
|
-
firstname
|
13184
|
-
surname
|
13322
|
+
firstname?: string | undefined;
|
13323
|
+
surname?: string | undefined;
|
13324
|
+
middlename?: string | undefined;
|
13185
13325
|
} | undefined;
|
13186
13326
|
configuration?: {
|
13327
|
+
name?: {
|
13328
|
+
firstname?: {
|
13329
|
+
required: boolean;
|
13330
|
+
} | undefined;
|
13331
|
+
surname?: {
|
13332
|
+
required: boolean;
|
13333
|
+
} | undefined;
|
13334
|
+
middlename?: {
|
13335
|
+
required: boolean;
|
13336
|
+
} | undefined;
|
13337
|
+
} | undefined;
|
13187
13338
|
maxLength?: number | undefined;
|
13188
13339
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
13189
13340
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
13190
|
-
includeMiddlename?: boolean | undefined;
|
13191
13341
|
searchMode?: boolean | undefined;
|
13192
13342
|
} | undefined;
|
13193
13343
|
} | {
|
@@ -14135,14 +14285,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
14135
14285
|
hideLabel?: boolean | undefined;
|
14136
14286
|
uncorrectable?: boolean | undefined;
|
14137
14287
|
defaultValue?: {
|
14138
|
-
firstname
|
14139
|
-
surname
|
14288
|
+
firstname?: string | undefined;
|
14289
|
+
surname?: string | undefined;
|
14290
|
+
middlename?: string | undefined;
|
14140
14291
|
} | undefined;
|
14141
14292
|
configuration?: {
|
14293
|
+
name?: {
|
14294
|
+
firstname?: {
|
14295
|
+
required: boolean;
|
14296
|
+
} | undefined;
|
14297
|
+
surname?: {
|
14298
|
+
required: boolean;
|
14299
|
+
} | undefined;
|
14300
|
+
middlename?: {
|
14301
|
+
required: boolean;
|
14302
|
+
} | undefined;
|
14303
|
+
} | undefined;
|
14142
14304
|
maxLength?: number | undefined;
|
14143
14305
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
14144
14306
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
14145
|
-
includeMiddlename?: boolean | undefined;
|
14146
14307
|
searchMode?: boolean | undefined;
|
14147
14308
|
} | undefined;
|
14148
14309
|
} | {
|
@@ -15087,14 +15248,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15087
15248
|
hideLabel?: boolean | undefined;
|
15088
15249
|
uncorrectable?: boolean | undefined;
|
15089
15250
|
defaultValue?: {
|
15090
|
-
firstname
|
15091
|
-
surname
|
15251
|
+
firstname?: string | undefined;
|
15252
|
+
surname?: string | undefined;
|
15253
|
+
middlename?: string | undefined;
|
15092
15254
|
} | undefined;
|
15093
15255
|
configuration?: {
|
15256
|
+
name?: {
|
15257
|
+
firstname?: {
|
15258
|
+
required: boolean;
|
15259
|
+
} | undefined;
|
15260
|
+
surname?: {
|
15261
|
+
required: boolean;
|
15262
|
+
} | undefined;
|
15263
|
+
middlename?: {
|
15264
|
+
required: boolean;
|
15265
|
+
} | undefined;
|
15266
|
+
} | undefined;
|
15094
15267
|
maxLength?: number | undefined;
|
15095
15268
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
15096
15269
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
15097
|
-
includeMiddlename?: boolean | undefined;
|
15098
15270
|
searchMode?: boolean | undefined;
|
15099
15271
|
} | undefined;
|
15100
15272
|
} | {
|
@@ -15524,7 +15696,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15524
15696
|
title: import("./TranslationConfig").TranslationConfig;
|
15525
15697
|
fields: ({
|
15526
15698
|
config: {
|
15527
|
-
type: "exact" | "fuzzy" | "range";
|
15699
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
15528
15700
|
};
|
15529
15701
|
fieldId: string;
|
15530
15702
|
fieldType: "field";
|
@@ -15551,9 +15723,9 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15551
15723
|
excludeInSearchQuery?: boolean | undefined;
|
15552
15724
|
} | {
|
15553
15725
|
config: {
|
15554
|
-
type: "exact" | "fuzzy" | "range";
|
15726
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
15555
15727
|
};
|
15556
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
15728
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
15557
15729
|
fieldType: "event";
|
15558
15730
|
options?: {
|
15559
15731
|
value: string;
|
@@ -287,8 +287,9 @@ function createFieldConditionals(fieldId) {
|
|
287
287
|
properties: {
|
288
288
|
[fieldId]: {
|
289
289
|
type: "string",
|
290
|
-
|
291
|
-
|
290
|
+
minLength: 1,
|
291
|
+
pattern: "^[\\p{Script=Latin}0-9'.-]*(\\([\\p{Script=Latin}0-9'.-]+\\))?[\\p{Script=Latin}0-9'.-]*( [\\p{Script=Latin}0-9'.-]*(\\([\\p{Script=Latin}0-9'.-]+\\))?[\\p{Script=Latin}0-9'.-]*)*$",
|
292
|
+
description: "Name must contain only letters, numbers, and allowed special characters ('.-). No double spaces."
|
292
293
|
}
|
293
294
|
}
|
294
295
|
}),
|