@opencrvs/toolkit 1.8.1-rc.e23b224 → 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.
Files changed (32) hide show
  1. package/dist/commons/api/router.d.ts +433 -410
  2. package/dist/commons/conditionals/validate.d.ts +11 -2
  3. package/dist/commons/events/ActionConfig.d.ts +2004 -366
  4. package/dist/commons/events/ActionDocument.d.ts +795 -759
  5. package/dist/commons/events/ActionInput.d.ts +650 -614
  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 -48
  10. package/dist/commons/events/EventConfig.d.ts +695 -168
  11. package/dist/commons/events/EventDocument.d.ts +471 -445
  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 +254 -43
  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 +1032 -246
  18. package/dist/commons/events/PageConfig.d.ts +264 -46
  19. package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
  20. package/dist/commons/events/defineConfig.d.ts +129 -30
  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 +236 -60
  25. package/dist/conditionals/index.js +3 -2
  26. package/dist/events/index.js +260 -99
  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,14 +569,25 @@ 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
+ } | 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: string;
1516
- surname: string;
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: string;
2458
- surname: string;
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: string;
3410
- surname: string;
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: string;
4347
- surname: string;
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): import("./FieldConfig").Inferred[];
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: string;
5290
- surname: string;
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: string;
6226
- surname: string;
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?: string | null | undefined;
6635
- surname?: string | null | undefined;
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?: string | null | undefined;
6686
- surname?: string | null | undefined;
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?: string | null | undefined;
6733
- surname?: string | null | undefined;
6809
+ firstname: string;
6810
+ surname: string;
6734
6811
  middlename?: string | null | undefined;
6735
6812
  } | {
6736
6813
  country: string;
@@ -6804,8 +6881,8 @@ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, d
6804
6881
  surname: string;
6805
6882
  middlename?: string | undefined;
6806
6883
  } | {
6807
- firstname?: string | null | undefined;
6808
- surname?: string | null | undefined;
6884
+ firstname: string;
6885
+ surname: string;
6809
6886
  middlename?: string | null | undefined;
6810
6887
  } | {
6811
6888
  country: string;
@@ -7430,14 +7507,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
7430
7507
  hideLabel?: boolean | undefined;
7431
7508
  uncorrectable?: boolean | undefined;
7432
7509
  defaultValue?: {
7433
- firstname: string;
7434
- surname: string;
7510
+ firstname?: string | undefined;
7511
+ surname?: string | undefined;
7512
+ middlename?: string | undefined;
7435
7513
  } | undefined;
7436
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;
7437
7526
  maxLength?: number | undefined;
7438
7527
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
7439
7528
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
7440
- includeMiddlename?: boolean | undefined;
7441
7529
  searchMode?: boolean | undefined;
7442
7530
  } | undefined;
7443
7531
  } | {
@@ -8380,14 +8468,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
8380
8468
  hideLabel?: boolean | undefined;
8381
8469
  uncorrectable?: boolean | undefined;
8382
8470
  defaultValue?: {
8383
- firstname: string;
8384
- surname: string;
8471
+ firstname?: string | undefined;
8472
+ surname?: string | undefined;
8473
+ middlename?: string | undefined;
8385
8474
  } | undefined;
8386
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;
8387
8487
  maxLength?: number | undefined;
8388
8488
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
8389
8489
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
8390
- includeMiddlename?: boolean | undefined;
8391
8490
  searchMode?: boolean | undefined;
8392
8491
  } | undefined;
8393
8492
  } | {
@@ -9329,14 +9428,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
9329
9428
  hideLabel?: boolean | undefined;
9330
9429
  uncorrectable?: boolean | undefined;
9331
9430
  defaultValue?: {
9332
- firstname: string;
9333
- surname: string;
9431
+ firstname?: string | undefined;
9432
+ surname?: string | undefined;
9433
+ middlename?: string | undefined;
9334
9434
  } | undefined;
9335
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;
9336
9447
  maxLength?: number | undefined;
9337
9448
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
9338
9449
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
9339
- includeMiddlename?: boolean | undefined;
9340
9450
  searchMode?: boolean | undefined;
9341
9451
  } | undefined;
9342
9452
  } | {
@@ -10278,14 +10388,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
10278
10388
  hideLabel?: boolean | undefined;
10279
10389
  uncorrectable?: boolean | undefined;
10280
10390
  defaultValue?: {
10281
- firstname: string;
10282
- surname: string;
10391
+ firstname?: string | undefined;
10392
+ surname?: string | undefined;
10393
+ middlename?: string | undefined;
10283
10394
  } | undefined;
10284
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;
10285
10407
  maxLength?: number | undefined;
10286
10408
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
10287
10409
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
10288
- includeMiddlename?: boolean | undefined;
10289
10410
  searchMode?: boolean | undefined;
10290
10411
  } | undefined;
10291
10412
  } | {
@@ -11227,14 +11348,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
11227
11348
  hideLabel?: boolean | undefined;
11228
11349
  uncorrectable?: boolean | undefined;
11229
11350
  defaultValue?: {
11230
- firstname: string;
11231
- surname: string;
11351
+ firstname?: string | undefined;
11352
+ surname?: string | undefined;
11353
+ middlename?: string | undefined;
11232
11354
  } | undefined;
11233
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;
11234
11367
  maxLength?: number | undefined;
11235
11368
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
11236
11369
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
11237
- includeMiddlename?: boolean | undefined;
11238
11370
  searchMode?: boolean | undefined;
11239
11371
  } | undefined;
11240
11372
  } | {
@@ -12224,14 +12356,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
12224
12356
  hideLabel?: boolean | undefined;
12225
12357
  uncorrectable?: boolean | undefined;
12226
12358
  defaultValue?: {
12227
- firstname: string;
12228
- surname: string;
12359
+ firstname?: string | undefined;
12360
+ surname?: string | undefined;
12361
+ middlename?: string | undefined;
12229
12362
  } | undefined;
12230
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;
12231
12375
  maxLength?: number | undefined;
12232
12376
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
12233
12377
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
12234
- includeMiddlename?: boolean | undefined;
12235
12378
  searchMode?: boolean | undefined;
12236
12379
  } | undefined;
12237
12380
  } | {
@@ -13176,14 +13319,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
13176
13319
  hideLabel?: boolean | undefined;
13177
13320
  uncorrectable?: boolean | undefined;
13178
13321
  defaultValue?: {
13179
- firstname: string;
13180
- surname: string;
13322
+ firstname?: string | undefined;
13323
+ surname?: string | undefined;
13324
+ middlename?: string | undefined;
13181
13325
  } | undefined;
13182
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;
13183
13338
  maxLength?: number | undefined;
13184
13339
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
13185
13340
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
13186
- includeMiddlename?: boolean | undefined;
13187
13341
  searchMode?: boolean | undefined;
13188
13342
  } | undefined;
13189
13343
  } | {
@@ -14131,14 +14285,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
14131
14285
  hideLabel?: boolean | undefined;
14132
14286
  uncorrectable?: boolean | undefined;
14133
14287
  defaultValue?: {
14134
- firstname: string;
14135
- surname: string;
14288
+ firstname?: string | undefined;
14289
+ surname?: string | undefined;
14290
+ middlename?: string | undefined;
14136
14291
  } | undefined;
14137
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;
14138
14304
  maxLength?: number | undefined;
14139
14305
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
14140
14306
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
14141
- includeMiddlename?: boolean | undefined;
14142
14307
  searchMode?: boolean | undefined;
14143
14308
  } | undefined;
14144
14309
  } | {
@@ -15083,14 +15248,25 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15083
15248
  hideLabel?: boolean | undefined;
15084
15249
  uncorrectable?: boolean | undefined;
15085
15250
  defaultValue?: {
15086
- firstname: string;
15087
- surname: string;
15251
+ firstname?: string | undefined;
15252
+ surname?: string | undefined;
15253
+ middlename?: string | undefined;
15088
15254
  } | undefined;
15089
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;
15090
15267
  maxLength?: number | undefined;
15091
15268
  prefix?: import("./TranslationConfig").TranslationConfig | undefined;
15092
15269
  postfix?: import("./TranslationConfig").TranslationConfig | undefined;
15093
- includeMiddlename?: boolean | undefined;
15094
15270
  searchMode?: boolean | undefined;
15095
15271
  } | undefined;
15096
15272
  } | {
@@ -15520,7 +15696,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15520
15696
  title: import("./TranslationConfig").TranslationConfig;
15521
15697
  fields: ({
15522
15698
  config: {
15523
- type: "exact" | "fuzzy" | "range";
15699
+ type: "exact" | "fuzzy" | "range" | "within";
15524
15700
  };
15525
15701
  fieldId: string;
15526
15702
  fieldType: "field";
@@ -15547,9 +15723,9 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15547
15723
  excludeInSearchQuery?: boolean | undefined;
15548
15724
  } | {
15549
15725
  config: {
15550
- type: "exact" | "fuzzy" | "range";
15726
+ type: "exact" | "fuzzy" | "range" | "within";
15551
15727
  };
15552
- 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";
15553
15729
  fieldType: "event";
15554
15730
  options?: {
15555
15731
  value: string;
@@ -287,8 +287,9 @@ function createFieldConditionals(fieldId) {
287
287
  properties: {
288
288
  [fieldId]: {
289
289
  type: "string",
290
- 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'._-]*)*$",
291
- description: "Name must contain only letters, numbers, and allowed special characters ('._-). No double spaces."
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
  }),