@opencrvs/toolkit 1.8.1-rc.6c27961 → 1.8.1-rc.6eacccb
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 +391 -390
- package/dist/commons/conditionals/validate.d.ts +11 -2
- package/dist/commons/events/ActionConfig.d.ts +2730 -532
- package/dist/commons/events/ActionDocument.d.ts +736 -736
- package/dist/commons/events/ActionInput.d.ts +600 -600
- package/dist/commons/events/AdvancedSearchConfig.d.ts +49 -31
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
- package/dist/commons/events/DeduplicationConfig.d.ts +21 -48
- package/dist/commons/events/Draft.d.ts +48 -48
- package/dist/commons/events/EventConfig.d.ts +1009 -195
- package/dist/commons/events/EventDocument.d.ts +432 -432
- package/dist/commons/events/EventIndex.d.ts +62 -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 +199 -164
- package/dist/commons/events/defineConfig.d.ts +187 -33
- package/dist/commons/events/event.d.ts +61 -7
- package/dist/commons/events/test.utils.d.ts +12 -12
- package/dist/commons/events/utils.d.ts +294 -63
- package/dist/conditionals/index.js +3 -2
- package/dist/events/index.js +383 -257
- package/package.json +1 -1
@@ -567,14 +567,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
567
567
|
hideLabel?: boolean | undefined;
|
568
568
|
uncorrectable?: boolean | undefined;
|
569
569
|
defaultValue?: {
|
570
|
-
firstname
|
571
|
-
surname
|
570
|
+
firstname?: string | undefined;
|
571
|
+
surname?: string | undefined;
|
572
|
+
middlename?: string | undefined;
|
572
573
|
} | undefined;
|
573
574
|
configuration?: {
|
575
|
+
name?: {
|
576
|
+
firstname?: {
|
577
|
+
required: boolean;
|
578
|
+
} | undefined;
|
579
|
+
surname?: {
|
580
|
+
required: boolean;
|
581
|
+
} | undefined;
|
582
|
+
middlename?: {
|
583
|
+
required: boolean;
|
584
|
+
} | undefined;
|
585
|
+
} | undefined;
|
574
586
|
maxLength?: number | undefined;
|
575
587
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
576
588
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
577
|
-
includeMiddlename?: boolean | undefined;
|
578
589
|
searchMode?: boolean | undefined;
|
579
590
|
} | undefined;
|
580
591
|
} | {
|
@@ -1517,14 +1528,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
1517
1528
|
hideLabel?: boolean | undefined;
|
1518
1529
|
uncorrectable?: boolean | undefined;
|
1519
1530
|
defaultValue?: {
|
1520
|
-
firstname
|
1521
|
-
surname
|
1531
|
+
firstname?: string | undefined;
|
1532
|
+
surname?: string | undefined;
|
1533
|
+
middlename?: string | undefined;
|
1522
1534
|
} | undefined;
|
1523
1535
|
configuration?: {
|
1536
|
+
name?: {
|
1537
|
+
firstname?: {
|
1538
|
+
required: boolean;
|
1539
|
+
} | undefined;
|
1540
|
+
surname?: {
|
1541
|
+
required: boolean;
|
1542
|
+
} | undefined;
|
1543
|
+
middlename?: {
|
1544
|
+
required: boolean;
|
1545
|
+
} | undefined;
|
1546
|
+
} | undefined;
|
1524
1547
|
maxLength?: number | undefined;
|
1525
1548
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1526
1549
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1527
|
-
includeMiddlename?: boolean | undefined;
|
1528
1550
|
searchMode?: boolean | undefined;
|
1529
1551
|
} | undefined;
|
1530
1552
|
} | {
|
@@ -1899,6 +1921,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
1899
1921
|
})[];
|
1900
1922
|
};
|
1901
1923
|
draft?: boolean | undefined;
|
1924
|
+
deduplication?: {
|
1925
|
+
id: string;
|
1926
|
+
label: import("./TranslationConfig").TranslationConfig;
|
1927
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
1928
|
+
} | undefined;
|
1902
1929
|
} | {
|
1903
1930
|
type: "DECLARE";
|
1904
1931
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -2466,14 +2493,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
2466
2493
|
hideLabel?: boolean | undefined;
|
2467
2494
|
uncorrectable?: boolean | undefined;
|
2468
2495
|
defaultValue?: {
|
2469
|
-
firstname
|
2470
|
-
surname
|
2496
|
+
firstname?: string | undefined;
|
2497
|
+
surname?: string | undefined;
|
2498
|
+
middlename?: string | undefined;
|
2471
2499
|
} | undefined;
|
2472
2500
|
configuration?: {
|
2501
|
+
name?: {
|
2502
|
+
firstname?: {
|
2503
|
+
required: boolean;
|
2504
|
+
} | undefined;
|
2505
|
+
surname?: {
|
2506
|
+
required: boolean;
|
2507
|
+
} | undefined;
|
2508
|
+
middlename?: {
|
2509
|
+
required: boolean;
|
2510
|
+
} | undefined;
|
2511
|
+
} | undefined;
|
2473
2512
|
maxLength?: number | undefined;
|
2474
2513
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2475
2514
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2476
|
-
includeMiddlename?: boolean | undefined;
|
2477
2515
|
searchMode?: boolean | undefined;
|
2478
2516
|
} | undefined;
|
2479
2517
|
} | {
|
@@ -2848,6 +2886,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
2848
2886
|
})[];
|
2849
2887
|
};
|
2850
2888
|
draft?: boolean | undefined;
|
2889
|
+
deduplication?: {
|
2890
|
+
id: string;
|
2891
|
+
label: import("./TranslationConfig").TranslationConfig;
|
2892
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
2893
|
+
} | undefined;
|
2851
2894
|
} | {
|
2852
2895
|
type: "VALIDATE";
|
2853
2896
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -3415,14 +3458,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
3415
3458
|
hideLabel?: boolean | undefined;
|
3416
3459
|
uncorrectable?: boolean | undefined;
|
3417
3460
|
defaultValue?: {
|
3418
|
-
firstname
|
3419
|
-
surname
|
3461
|
+
firstname?: string | undefined;
|
3462
|
+
surname?: string | undefined;
|
3463
|
+
middlename?: string | undefined;
|
3420
3464
|
} | undefined;
|
3421
3465
|
configuration?: {
|
3466
|
+
name?: {
|
3467
|
+
firstname?: {
|
3468
|
+
required: boolean;
|
3469
|
+
} | undefined;
|
3470
|
+
surname?: {
|
3471
|
+
required: boolean;
|
3472
|
+
} | undefined;
|
3473
|
+
middlename?: {
|
3474
|
+
required: boolean;
|
3475
|
+
} | undefined;
|
3476
|
+
} | undefined;
|
3422
3477
|
maxLength?: number | undefined;
|
3423
3478
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3424
3479
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3425
|
-
includeMiddlename?: boolean | undefined;
|
3426
3480
|
searchMode?: boolean | undefined;
|
3427
3481
|
} | undefined;
|
3428
3482
|
} | {
|
@@ -3797,6 +3851,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
3797
3851
|
})[];
|
3798
3852
|
};
|
3799
3853
|
draft?: boolean | undefined;
|
3854
|
+
deduplication?: {
|
3855
|
+
id: string;
|
3856
|
+
label: import("./TranslationConfig").TranslationConfig;
|
3857
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
3858
|
+
} | undefined;
|
3800
3859
|
} | {
|
3801
3860
|
type: "REGISTER";
|
3802
3861
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -4364,14 +4423,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
4364
4423
|
hideLabel?: boolean | undefined;
|
4365
4424
|
uncorrectable?: boolean | undefined;
|
4366
4425
|
defaultValue?: {
|
4367
|
-
firstname
|
4368
|
-
surname
|
4426
|
+
firstname?: string | undefined;
|
4427
|
+
surname?: string | undefined;
|
4428
|
+
middlename?: string | undefined;
|
4369
4429
|
} | undefined;
|
4370
4430
|
configuration?: {
|
4431
|
+
name?: {
|
4432
|
+
firstname?: {
|
4433
|
+
required: boolean;
|
4434
|
+
} | undefined;
|
4435
|
+
surname?: {
|
4436
|
+
required: boolean;
|
4437
|
+
} | undefined;
|
4438
|
+
middlename?: {
|
4439
|
+
required: boolean;
|
4440
|
+
} | undefined;
|
4441
|
+
} | undefined;
|
4371
4442
|
maxLength?: number | undefined;
|
4372
4443
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4373
4444
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4374
|
-
includeMiddlename?: boolean | undefined;
|
4375
4445
|
searchMode?: boolean | undefined;
|
4376
4446
|
} | undefined;
|
4377
4447
|
} | {
|
@@ -4746,6 +4816,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
4746
4816
|
})[];
|
4747
4817
|
};
|
4748
4818
|
draft?: boolean | undefined;
|
4819
|
+
deduplication?: {
|
4820
|
+
id: string;
|
4821
|
+
label: import("./TranslationConfig").TranslationConfig;
|
4822
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
4823
|
+
} | undefined;
|
4749
4824
|
} | {
|
4750
4825
|
type: "REJECT";
|
4751
4826
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -4757,6 +4832,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
4757
4832
|
conditional: import(".").JSONSchema;
|
4758
4833
|
})[];
|
4759
4834
|
draft?: boolean | undefined;
|
4835
|
+
deduplication?: {
|
4836
|
+
id: string;
|
4837
|
+
label: import("./TranslationConfig").TranslationConfig;
|
4838
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
4839
|
+
} | undefined;
|
4760
4840
|
} | {
|
4761
4841
|
type: "MARKED_AS_DUPLICATE";
|
4762
4842
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -4768,6 +4848,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
4768
4848
|
conditional: import(".").JSONSchema;
|
4769
4849
|
})[];
|
4770
4850
|
draft?: boolean | undefined;
|
4851
|
+
deduplication?: {
|
4852
|
+
id: string;
|
4853
|
+
label: import("./TranslationConfig").TranslationConfig;
|
4854
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
4855
|
+
} | undefined;
|
4771
4856
|
} | {
|
4772
4857
|
type: "ARCHIVE";
|
4773
4858
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -4779,6 +4864,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
4779
4864
|
conditional: import(".").JSONSchema;
|
4780
4865
|
})[];
|
4781
4866
|
draft?: boolean | undefined;
|
4867
|
+
deduplication?: {
|
4868
|
+
id: string;
|
4869
|
+
label: import("./TranslationConfig").TranslationConfig;
|
4870
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
4871
|
+
} | undefined;
|
4782
4872
|
} | {
|
4783
4873
|
type: "DELETE";
|
4784
4874
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -4790,6 +4880,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
4790
4880
|
conditional: import(".").JSONSchema;
|
4791
4881
|
})[];
|
4792
4882
|
draft?: boolean | undefined;
|
4883
|
+
deduplication?: {
|
4884
|
+
id: string;
|
4885
|
+
label: import("./TranslationConfig").TranslationConfig;
|
4886
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
4887
|
+
} | undefined;
|
4793
4888
|
} | {
|
4794
4889
|
type: "PRINT_CERTIFICATE";
|
4795
4890
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -5361,14 +5456,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
5361
5456
|
hideLabel?: boolean | undefined;
|
5362
5457
|
uncorrectable?: boolean | undefined;
|
5363
5458
|
defaultValue?: {
|
5364
|
-
firstname
|
5365
|
-
surname
|
5459
|
+
firstname?: string | undefined;
|
5460
|
+
surname?: string | undefined;
|
5461
|
+
middlename?: string | undefined;
|
5366
5462
|
} | undefined;
|
5367
5463
|
configuration?: {
|
5464
|
+
name?: {
|
5465
|
+
firstname?: {
|
5466
|
+
required: boolean;
|
5467
|
+
} | undefined;
|
5468
|
+
surname?: {
|
5469
|
+
required: boolean;
|
5470
|
+
} | undefined;
|
5471
|
+
middlename?: {
|
5472
|
+
required: boolean;
|
5473
|
+
} | undefined;
|
5474
|
+
} | undefined;
|
5368
5475
|
maxLength?: number | undefined;
|
5369
5476
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5370
5477
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5371
|
-
includeMiddlename?: boolean | undefined;
|
5372
5478
|
searchMode?: boolean | undefined;
|
5373
5479
|
} | undefined;
|
5374
5480
|
} | {
|
@@ -6313,14 +6419,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
6313
6419
|
hideLabel?: boolean | undefined;
|
6314
6420
|
uncorrectable?: boolean | undefined;
|
6315
6421
|
defaultValue?: {
|
6316
|
-
firstname
|
6317
|
-
surname
|
6422
|
+
firstname?: string | undefined;
|
6423
|
+
surname?: string | undefined;
|
6424
|
+
middlename?: string | undefined;
|
6318
6425
|
} | undefined;
|
6319
6426
|
configuration?: {
|
6427
|
+
name?: {
|
6428
|
+
firstname?: {
|
6429
|
+
required: boolean;
|
6430
|
+
} | undefined;
|
6431
|
+
surname?: {
|
6432
|
+
required: boolean;
|
6433
|
+
} | undefined;
|
6434
|
+
middlename?: {
|
6435
|
+
required: boolean;
|
6436
|
+
} | undefined;
|
6437
|
+
} | undefined;
|
6320
6438
|
maxLength?: number | undefined;
|
6321
6439
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6322
6440
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6323
|
-
includeMiddlename?: boolean | undefined;
|
6324
6441
|
searchMode?: boolean | undefined;
|
6325
6442
|
} | undefined;
|
6326
6443
|
} | {
|
@@ -6697,6 +6814,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
6697
6814
|
})[];
|
6698
6815
|
};
|
6699
6816
|
draft?: boolean | undefined;
|
6817
|
+
deduplication?: {
|
6818
|
+
id: string;
|
6819
|
+
label: import("./TranslationConfig").TranslationConfig;
|
6820
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
6821
|
+
} | undefined;
|
6700
6822
|
} | {
|
6701
6823
|
type: "REQUEST_CORRECTION";
|
6702
6824
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -7268,14 +7390,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
7268
7390
|
hideLabel?: boolean | undefined;
|
7269
7391
|
uncorrectable?: boolean | undefined;
|
7270
7392
|
defaultValue?: {
|
7271
|
-
firstname
|
7272
|
-
surname
|
7393
|
+
firstname?: string | undefined;
|
7394
|
+
surname?: string | undefined;
|
7395
|
+
middlename?: string | undefined;
|
7273
7396
|
} | undefined;
|
7274
7397
|
configuration?: {
|
7398
|
+
name?: {
|
7399
|
+
firstname?: {
|
7400
|
+
required: boolean;
|
7401
|
+
} | undefined;
|
7402
|
+
surname?: {
|
7403
|
+
required: boolean;
|
7404
|
+
} | undefined;
|
7405
|
+
middlename?: {
|
7406
|
+
required: boolean;
|
7407
|
+
} | undefined;
|
7408
|
+
} | undefined;
|
7275
7409
|
maxLength?: number | undefined;
|
7276
7410
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7277
7411
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7278
|
-
includeMiddlename?: boolean | undefined;
|
7279
7412
|
searchMode?: boolean | undefined;
|
7280
7413
|
} | undefined;
|
7281
7414
|
} | {
|
@@ -8220,14 +8353,25 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8220
8353
|
hideLabel?: boolean | undefined;
|
8221
8354
|
uncorrectable?: boolean | undefined;
|
8222
8355
|
defaultValue?: {
|
8223
|
-
firstname
|
8224
|
-
surname
|
8356
|
+
firstname?: string | undefined;
|
8357
|
+
surname?: string | undefined;
|
8358
|
+
middlename?: string | undefined;
|
8225
8359
|
} | undefined;
|
8226
8360
|
configuration?: {
|
8361
|
+
name?: {
|
8362
|
+
firstname?: {
|
8363
|
+
required: boolean;
|
8364
|
+
} | undefined;
|
8365
|
+
surname?: {
|
8366
|
+
required: boolean;
|
8367
|
+
} | undefined;
|
8368
|
+
middlename?: {
|
8369
|
+
required: boolean;
|
8370
|
+
} | undefined;
|
8371
|
+
} | undefined;
|
8227
8372
|
maxLength?: number | undefined;
|
8228
8373
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8229
8374
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8230
|
-
includeMiddlename?: boolean | undefined;
|
8231
8375
|
searchMode?: boolean | undefined;
|
8232
8376
|
} | undefined;
|
8233
8377
|
} | {
|
@@ -8604,6 +8748,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8604
8748
|
})[];
|
8605
8749
|
};
|
8606
8750
|
draft?: boolean | undefined;
|
8751
|
+
deduplication?: {
|
8752
|
+
id: string;
|
8753
|
+
label: import("./TranslationConfig").TranslationConfig;
|
8754
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
8755
|
+
} | undefined;
|
8607
8756
|
} | {
|
8608
8757
|
type: "REJECT_CORRECTION";
|
8609
8758
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -8615,6 +8764,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8615
8764
|
conditional: import(".").JSONSchema;
|
8616
8765
|
})[];
|
8617
8766
|
draft?: boolean | undefined;
|
8767
|
+
deduplication?: {
|
8768
|
+
id: string;
|
8769
|
+
label: import("./TranslationConfig").TranslationConfig;
|
8770
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
8771
|
+
} | undefined;
|
8618
8772
|
} | {
|
8619
8773
|
type: "APPROVE_CORRECTION";
|
8620
8774
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -8626,6 +8780,11 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8626
8780
|
conditional: import(".").JSONSchema;
|
8627
8781
|
})[];
|
8628
8782
|
draft?: boolean | undefined;
|
8783
|
+
deduplication?: {
|
8784
|
+
id: string;
|
8785
|
+
label: import("./TranslationConfig").TranslationConfig;
|
8786
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
8787
|
+
} | undefined;
|
8629
8788
|
})[];
|
8630
8789
|
label: import("./TranslationConfig").TranslationConfig;
|
8631
8790
|
summary: {
|
@@ -8648,11 +8807,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8648
8807
|
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
8649
8808
|
})[];
|
8650
8809
|
};
|
8651
|
-
deduplication: {
|
8652
|
-
id: string;
|
8653
|
-
label: import("./TranslationConfig").TranslationConfig;
|
8654
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
8655
|
-
}[];
|
8656
8810
|
advancedSearch: {
|
8657
8811
|
title: import("./TranslationConfig").TranslationConfig;
|
8658
8812
|
fields: ({
|
@@ -8686,7 +8840,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8686
8840
|
config: {
|
8687
8841
|
type: "exact" | "fuzzy" | "range" | "within";
|
8688
8842
|
};
|
8689
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
8843
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
8690
8844
|
fieldType: "event";
|
8691
8845
|
options?: {
|
8692
8846
|
value: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ActionType } from './ActionType';
|
2
|
-
import {
|
2
|
+
import { EventFieldIdInput } from './AdvancedSearchConfig';
|
3
3
|
import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
|
4
4
|
/**
|
5
5
|
* Creates a function that acts like a callable + static method container.
|
@@ -8,9 +8,9 @@ import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConf
|
|
8
8
|
* event('status') // → returns search config
|
9
9
|
* event.hasAction('CLICKED') // → returns conditional
|
10
10
|
*/
|
11
|
-
declare function eventFn(fieldId:
|
11
|
+
declare function eventFn(fieldId: EventFieldIdInput): {
|
12
12
|
range: () => {
|
13
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
13
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
14
14
|
fieldType: "event";
|
15
15
|
} & {
|
16
16
|
config: {
|
@@ -18,7 +18,7 @@ declare function eventFn(fieldId: EventFieldId): {
|
|
18
18
|
};
|
19
19
|
};
|
20
20
|
exact: () => {
|
21
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
21
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
22
22
|
fieldType: "event";
|
23
23
|
} & {
|
24
24
|
config: {
|
@@ -26,7 +26,7 @@ declare function eventFn(fieldId: EventFieldId): {
|
|
26
26
|
};
|
27
27
|
};
|
28
28
|
fuzzy: () => {
|
29
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
29
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
30
30
|
fieldType: "event";
|
31
31
|
} & {
|
32
32
|
config: {
|
@@ -34,7 +34,7 @@ declare function eventFn(fieldId: EventFieldId): {
|
|
34
34
|
};
|
35
35
|
};
|
36
36
|
within: () => {
|
37
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
37
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
38
38
|
fieldType: "event";
|
39
39
|
} & {
|
40
40
|
config: {
|
@@ -45,9 +45,63 @@ declare function eventFn(fieldId: EventFieldId): {
|
|
45
45
|
declare const event: typeof eventFn & {
|
46
46
|
/**
|
47
47
|
* Checks if the event contains a specific action type.
|
48
|
+
* Can be used directly as a conditional or chained with additional methods.
|
48
49
|
* @param action - The action type to check for.
|
49
50
|
*/
|
50
|
-
hasAction: (action: ActionType) =>
|
51
|
+
hasAction: (action: ActionType) => {
|
52
|
+
/**
|
53
|
+
* Creates a conditional that checks if the event contains a specific action type
|
54
|
+
* with a minimum count of occurrences.
|
55
|
+
*
|
56
|
+
* @param minCount - The minimum number of actions required.
|
57
|
+
*/
|
58
|
+
minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
|
59
|
+
/**
|
60
|
+
* Builds a conditional that sets a maximum count for the number of actions.
|
61
|
+
* This is useful for limiting the number of actions of a specific type in a single event.
|
62
|
+
*/
|
63
|
+
maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
|
64
|
+
/**
|
65
|
+
* Adds additional field constraints to the action matching.
|
66
|
+
*
|
67
|
+
* @param fields - Object containing additional fields to match on the action.
|
68
|
+
*/
|
69
|
+
withFields: (fields: Record<string, unknown>) => {
|
70
|
+
/**
|
71
|
+
* Creates a conditional that checks if the event contains a specific action type
|
72
|
+
* with a minimum count of occurrences.
|
73
|
+
*
|
74
|
+
* @param minCount - The minimum number of actions required.
|
75
|
+
*/
|
76
|
+
minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
|
77
|
+
/**
|
78
|
+
* Builds a conditional that sets a maximum count for the number of actions.
|
79
|
+
* This is useful for limiting the number of actions of a specific type in a single event.
|
80
|
+
*/
|
81
|
+
maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
|
82
|
+
};
|
83
|
+
/**
|
84
|
+
* Adds template ID constraint to the action matching.
|
85
|
+
* This is a convenience method that adds content.templateId to the fields.
|
86
|
+
*
|
87
|
+
* @param id - The template ID to match against.
|
88
|
+
*/
|
89
|
+
withTemplate: (id: string) => {
|
90
|
+
/**
|
91
|
+
* Creates a conditional that checks if the event contains a specific action type
|
92
|
+
* with a minimum count of occurrences.
|
93
|
+
*
|
94
|
+
* @param minCount - The minimum number of actions required.
|
95
|
+
*/
|
96
|
+
minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
|
97
|
+
/**
|
98
|
+
* Builds a conditional that sets a maximum count for the number of actions.
|
99
|
+
* This is useful for limiting the number of actions of a specific type in a single event.
|
100
|
+
*/
|
101
|
+
maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
|
102
|
+
};
|
103
|
+
__nominal__type: "JSONSchema";
|
104
|
+
};
|
51
105
|
field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
|
52
106
|
};
|
53
107
|
export { event };
|
@@ -67,8 +67,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
67
67
|
street?: string | null | undefined;
|
68
68
|
zipCode?: string | null | undefined;
|
69
69
|
} | {
|
70
|
-
firstname
|
71
|
-
surname
|
70
|
+
firstname: string;
|
71
|
+
surname: string;
|
72
72
|
middlename?: string | null | undefined;
|
73
73
|
} | {
|
74
74
|
country: string;
|
@@ -123,8 +123,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
123
123
|
street?: string | null | undefined;
|
124
124
|
zipCode?: string | null | undefined;
|
125
125
|
} | {
|
126
|
-
firstname
|
127
|
-
surname
|
126
|
+
firstname: string;
|
127
|
+
surname: string;
|
128
128
|
middlename?: string | null | undefined;
|
129
129
|
} | {
|
130
130
|
country: string;
|
@@ -173,8 +173,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
173
173
|
street?: string | null | undefined;
|
174
174
|
zipCode?: string | null | undefined;
|
175
175
|
} | {
|
176
|
-
firstname
|
177
|
-
surname
|
176
|
+
firstname: string;
|
177
|
+
surname: string;
|
178
178
|
middlename?: string | null | undefined;
|
179
179
|
} | {
|
180
180
|
country: string;
|
@@ -240,8 +240,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
240
240
|
street?: string | null | undefined;
|
241
241
|
zipCode?: string | null | undefined;
|
242
242
|
} | {
|
243
|
-
firstname
|
244
|
-
surname
|
243
|
+
firstname: string;
|
244
|
+
surname: string;
|
245
245
|
middlename?: string | null | undefined;
|
246
246
|
} | {
|
247
247
|
country: string;
|
@@ -309,8 +309,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
309
309
|
street?: string | null | undefined;
|
310
310
|
zipCode?: string | null | undefined;
|
311
311
|
} | {
|
312
|
-
firstname
|
313
|
-
surname
|
312
|
+
firstname: string;
|
313
|
+
surname: string;
|
314
314
|
middlename?: string | null | undefined;
|
315
315
|
} | {
|
316
316
|
country: string;
|
@@ -372,8 +372,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
372
372
|
street?: string | null | undefined;
|
373
373
|
zipCode?: string | null | undefined;
|
374
374
|
} | {
|
375
|
-
firstname
|
376
|
-
surname
|
375
|
+
firstname: string;
|
376
|
+
surname: string;
|
377
377
|
middlename?: string | null | undefined;
|
378
378
|
} | {
|
379
379
|
country: string;
|