@opencrvs/toolkit 1.8.1-rc.facd84c → 1.8.1-rc.fbb3bff
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 +18 -2
- package/dist/commons/conditionals/validate.d.ts +3 -2
- package/dist/commons/events/ActionDocument.d.ts +536 -0
- package/dist/commons/events/ActionInput.d.ts +26 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +34 -34
- package/dist/commons/events/EventConfig.d.ts +22 -22
- package/dist/commons/events/EventDocument.d.ts +19 -0
- package/dist/commons/events/EventIndex.d.ts +122 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +89 -0
- package/dist/commons/events/defineConfig.d.ts +2 -2
- package/dist/commons/events/event.d.ts +63 -1
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/utils.d.ts +2 -2
- package/dist/events/index.js +147 -28
- 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
@@ -725,6 +725,25 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
725
725
|
type: "timePeriod";
|
726
726
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
727
727
|
}>]>>>;
|
728
|
+
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
729
|
+
type: z.ZodLiteral<"within">;
|
730
|
+
location: z.ZodString;
|
731
|
+
}, "strip", z.ZodTypeAny, {
|
732
|
+
type: "within";
|
733
|
+
location: string;
|
734
|
+
}, {
|
735
|
+
type: "within";
|
736
|
+
location: string;
|
737
|
+
}>, z.ZodObject<{
|
738
|
+
type: z.ZodLiteral<"exact">;
|
739
|
+
term: z.ZodString;
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
741
|
+
type: "exact";
|
742
|
+
term: string;
|
743
|
+
}, {
|
744
|
+
type: "exact";
|
745
|
+
term: string;
|
746
|
+
}>]>>>;
|
728
747
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
729
748
|
type: z.ZodLiteral<"within">;
|
730
749
|
location: z.ZodString;
|
@@ -945,6 +964,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
945
964
|
type: "timePeriod";
|
946
965
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
947
966
|
} | undefined;
|
967
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
968
|
+
type: "exact";
|
969
|
+
term: string;
|
970
|
+
} | {
|
971
|
+
type: "within";
|
972
|
+
location: string;
|
973
|
+
} | undefined;
|
948
974
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
949
975
|
type: "exact";
|
950
976
|
term: string;
|
@@ -1038,6 +1064,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1038
1064
|
type: "timePeriod";
|
1039
1065
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1040
1066
|
} | undefined;
|
1067
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1068
|
+
type: "exact";
|
1069
|
+
term: string;
|
1070
|
+
} | {
|
1071
|
+
type: "within";
|
1072
|
+
location: string;
|
1073
|
+
} | undefined;
|
1041
1074
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1042
1075
|
type: "exact";
|
1043
1076
|
term: string;
|
@@ -1131,6 +1164,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1131
1164
|
type: "timePeriod";
|
1132
1165
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1133
1166
|
} | undefined;
|
1167
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1168
|
+
type: "exact";
|
1169
|
+
term: string;
|
1170
|
+
} | {
|
1171
|
+
type: "within";
|
1172
|
+
location: string;
|
1173
|
+
} | undefined;
|
1134
1174
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1135
1175
|
type: "exact";
|
1136
1176
|
term: string;
|
@@ -1224,6 +1264,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1224
1264
|
type: "timePeriod";
|
1225
1265
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1226
1266
|
} | undefined;
|
1267
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1268
|
+
type: "exact";
|
1269
|
+
term: string;
|
1270
|
+
} | {
|
1271
|
+
type: "within";
|
1272
|
+
location: string;
|
1273
|
+
} | undefined;
|
1227
1274
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1228
1275
|
type: "exact";
|
1229
1276
|
term: string;
|
@@ -1359,6 +1406,25 @@ export declare const QueryType: z.ZodObject<{
|
|
1359
1406
|
type: "timePeriod";
|
1360
1407
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1361
1408
|
}>]>>>;
|
1409
|
+
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1410
|
+
type: z.ZodLiteral<"within">;
|
1411
|
+
location: z.ZodString;
|
1412
|
+
}, "strip", z.ZodTypeAny, {
|
1413
|
+
type: "within";
|
1414
|
+
location: string;
|
1415
|
+
}, {
|
1416
|
+
type: "within";
|
1417
|
+
location: string;
|
1418
|
+
}>, z.ZodObject<{
|
1419
|
+
type: z.ZodLiteral<"exact">;
|
1420
|
+
term: z.ZodString;
|
1421
|
+
}, "strip", z.ZodTypeAny, {
|
1422
|
+
type: "exact";
|
1423
|
+
term: string;
|
1424
|
+
}, {
|
1425
|
+
type: "exact";
|
1426
|
+
term: string;
|
1427
|
+
}>]>>>;
|
1362
1428
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1363
1429
|
type: z.ZodLiteral<"within">;
|
1364
1430
|
location: z.ZodString;
|
@@ -1579,6 +1645,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1579
1645
|
type: "timePeriod";
|
1580
1646
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1581
1647
|
} | undefined;
|
1648
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1649
|
+
type: "exact";
|
1650
|
+
term: string;
|
1651
|
+
} | {
|
1652
|
+
type: "within";
|
1653
|
+
location: string;
|
1654
|
+
} | undefined;
|
1582
1655
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1583
1656
|
type: "exact";
|
1584
1657
|
term: string;
|
@@ -1672,6 +1745,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1672
1745
|
type: "timePeriod";
|
1673
1746
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1674
1747
|
} | undefined;
|
1748
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1749
|
+
type: "exact";
|
1750
|
+
term: string;
|
1751
|
+
} | {
|
1752
|
+
type: "within";
|
1753
|
+
location: string;
|
1754
|
+
} | undefined;
|
1675
1755
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1676
1756
|
type: "exact";
|
1677
1757
|
term: string;
|
@@ -1765,6 +1845,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1765
1845
|
type: "timePeriod";
|
1766
1846
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1767
1847
|
} | undefined;
|
1848
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1849
|
+
type: "exact";
|
1850
|
+
term: string;
|
1851
|
+
} | {
|
1852
|
+
type: "within";
|
1853
|
+
location: string;
|
1854
|
+
} | undefined;
|
1768
1855
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1769
1856
|
type: "exact";
|
1770
1857
|
term: string;
|
@@ -1858,6 +1945,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1858
1945
|
type: "timePeriod";
|
1859
1946
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1860
1947
|
} | undefined;
|
1948
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1949
|
+
type: "exact";
|
1950
|
+
term: string;
|
1951
|
+
} | {
|
1952
|
+
type: "within";
|
1953
|
+
location: string;
|
1954
|
+
} | undefined;
|
1861
1955
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1862
1956
|
type: "exact";
|
1863
1957
|
term: string;
|
@@ -1951,6 +2045,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1951
2045
|
type: "timePeriod";
|
1952
2046
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1953
2047
|
} | undefined;
|
2048
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2049
|
+
type: "exact";
|
2050
|
+
term: string;
|
2051
|
+
} | {
|
2052
|
+
type: "within";
|
2053
|
+
location: string;
|
2054
|
+
} | undefined;
|
1954
2055
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1955
2056
|
type: "exact";
|
1956
2057
|
term: string;
|
@@ -2044,6 +2145,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2044
2145
|
type: "timePeriod";
|
2045
2146
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2046
2147
|
} | undefined;
|
2148
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2149
|
+
type: "exact";
|
2150
|
+
term: string;
|
2151
|
+
} | {
|
2152
|
+
type: "within";
|
2153
|
+
location: string;
|
2154
|
+
} | undefined;
|
2047
2155
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2048
2156
|
type: "exact";
|
2049
2157
|
term: string;
|
@@ -2140,6 +2248,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2140
2248
|
type: "timePeriod";
|
2141
2249
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2142
2250
|
} | undefined;
|
2251
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2252
|
+
type: "exact";
|
2253
|
+
term: string;
|
2254
|
+
} | {
|
2255
|
+
type: "within";
|
2256
|
+
location: string;
|
2257
|
+
} | undefined;
|
2143
2258
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2144
2259
|
type: "exact";
|
2145
2260
|
term: string;
|
@@ -2233,6 +2348,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2233
2348
|
type: "timePeriod";
|
2234
2349
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2235
2350
|
} | undefined;
|
2351
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2352
|
+
type: "exact";
|
2353
|
+
term: string;
|
2354
|
+
} | {
|
2355
|
+
type: "within";
|
2356
|
+
location: string;
|
2357
|
+
} | undefined;
|
2236
2358
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2237
2359
|
type: "exact";
|
2238
2360
|
term: string;
|
@@ -7037,6 +7037,25 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7037
7037
|
type: "timePeriod";
|
7038
7038
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7039
7039
|
}>]>>>;
|
7040
|
+
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
7041
|
+
type: z.ZodLiteral<"within">;
|
7042
|
+
location: z.ZodString;
|
7043
|
+
}, "strip", z.ZodTypeAny, {
|
7044
|
+
type: "within";
|
7045
|
+
location: string;
|
7046
|
+
}, {
|
7047
|
+
type: "within";
|
7048
|
+
location: string;
|
7049
|
+
}>, z.ZodObject<{
|
7050
|
+
type: z.ZodLiteral<"exact">;
|
7051
|
+
term: z.ZodString;
|
7052
|
+
}, "strip", z.ZodTypeAny, {
|
7053
|
+
type: "exact";
|
7054
|
+
term: string;
|
7055
|
+
}, {
|
7056
|
+
type: "exact";
|
7057
|
+
term: string;
|
7058
|
+
}>]>>>;
|
7040
7059
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
7041
7060
|
type: z.ZodLiteral<"within">;
|
7042
7061
|
location: z.ZodString;
|
@@ -7257,6 +7276,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7257
7276
|
type: "timePeriod";
|
7258
7277
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7259
7278
|
} | undefined;
|
7279
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7280
|
+
type: "exact";
|
7281
|
+
term: string;
|
7282
|
+
} | {
|
7283
|
+
type: "within";
|
7284
|
+
location: string;
|
7285
|
+
} | undefined;
|
7260
7286
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7261
7287
|
type: "exact";
|
7262
7288
|
term: string;
|
@@ -7350,6 +7376,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7350
7376
|
type: "timePeriod";
|
7351
7377
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7352
7378
|
} | undefined;
|
7379
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7380
|
+
type: "exact";
|
7381
|
+
term: string;
|
7382
|
+
} | {
|
7383
|
+
type: "within";
|
7384
|
+
location: string;
|
7385
|
+
} | undefined;
|
7353
7386
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7354
7387
|
type: "exact";
|
7355
7388
|
term: string;
|
@@ -7443,6 +7476,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7443
7476
|
type: "timePeriod";
|
7444
7477
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7445
7478
|
} | undefined;
|
7479
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7480
|
+
type: "exact";
|
7481
|
+
term: string;
|
7482
|
+
} | {
|
7483
|
+
type: "within";
|
7484
|
+
location: string;
|
7485
|
+
} | undefined;
|
7446
7486
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7447
7487
|
type: "exact";
|
7448
7488
|
term: string;
|
@@ -7536,6 +7576,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7536
7576
|
type: "timePeriod";
|
7537
7577
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7538
7578
|
} | undefined;
|
7579
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7580
|
+
type: "exact";
|
7581
|
+
term: string;
|
7582
|
+
} | {
|
7583
|
+
type: "within";
|
7584
|
+
location: string;
|
7585
|
+
} | undefined;
|
7539
7586
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7540
7587
|
type: "exact";
|
7541
7588
|
term: string;
|
@@ -7629,6 +7676,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7629
7676
|
type: "timePeriod";
|
7630
7677
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7631
7678
|
} | undefined;
|
7679
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7680
|
+
type: "exact";
|
7681
|
+
term: string;
|
7682
|
+
} | {
|
7683
|
+
type: "within";
|
7684
|
+
location: string;
|
7685
|
+
} | undefined;
|
7632
7686
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7633
7687
|
type: "exact";
|
7634
7688
|
term: string;
|
@@ -7722,6 +7776,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7722
7776
|
type: "timePeriod";
|
7723
7777
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7724
7778
|
} | undefined;
|
7779
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7780
|
+
type: "exact";
|
7781
|
+
term: string;
|
7782
|
+
} | {
|
7783
|
+
type: "within";
|
7784
|
+
location: string;
|
7785
|
+
} | undefined;
|
7725
7786
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7726
7787
|
type: "exact";
|
7727
7788
|
term: string;
|
@@ -7818,6 +7879,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7818
7879
|
type: "timePeriod";
|
7819
7880
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7820
7881
|
} | undefined;
|
7882
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7883
|
+
type: "exact";
|
7884
|
+
term: string;
|
7885
|
+
} | {
|
7886
|
+
type: "within";
|
7887
|
+
location: string;
|
7888
|
+
} | undefined;
|
7821
7889
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7822
7890
|
type: "exact";
|
7823
7891
|
term: string;
|
@@ -7911,6 +7979,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7911
7979
|
type: "timePeriod";
|
7912
7980
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7913
7981
|
} | undefined;
|
7982
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7983
|
+
type: "exact";
|
7984
|
+
term: string;
|
7985
|
+
} | {
|
7986
|
+
type: "within";
|
7987
|
+
location: string;
|
7988
|
+
} | undefined;
|
7914
7989
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7915
7990
|
type: "exact";
|
7916
7991
|
term: string;
|
@@ -8012,6 +8087,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
8012
8087
|
type: "timePeriod";
|
8013
8088
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
8014
8089
|
} | undefined;
|
8090
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
8091
|
+
type: "exact";
|
8092
|
+
term: string;
|
8093
|
+
} | {
|
8094
|
+
type: "within";
|
8095
|
+
location: string;
|
8096
|
+
} | undefined;
|
8015
8097
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
8016
8098
|
type: "exact";
|
8017
8099
|
term: string;
|
@@ -8105,6 +8187,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
8105
8187
|
type: "timePeriod";
|
8106
8188
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
8107
8189
|
} | undefined;
|
8190
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
8191
|
+
type: "exact";
|
8192
|
+
term: string;
|
8193
|
+
} | {
|
8194
|
+
type: "within";
|
8195
|
+
location: string;
|
8196
|
+
} | undefined;
|
8108
8197
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
8109
8198
|
type: "exact";
|
8110
8199
|
term: string;
|
@@ -8657,7 +8657,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8657
8657
|
title: import("./TranslationConfig").TranslationConfig;
|
8658
8658
|
fields: ({
|
8659
8659
|
config: {
|
8660
|
-
type: "exact" | "fuzzy" | "range";
|
8660
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
8661
8661
|
};
|
8662
8662
|
fieldId: string;
|
8663
8663
|
fieldType: "field";
|
@@ -8684,7 +8684,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8684
8684
|
excludeInSearchQuery?: boolean | undefined;
|
8685
8685
|
} | {
|
8686
8686
|
config: {
|
8687
|
-
type: "exact" | "fuzzy" | "range";
|
8687
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
8688
8688
|
};
|
8689
8689
|
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
8690
8690
|
fieldType: "event";
|
@@ -33,13 +33,75 @@ declare function eventFn(fieldId: EventFieldId): {
|
|
33
33
|
type: "fuzzy";
|
34
34
|
};
|
35
35
|
};
|
36
|
+
within: () => {
|
37
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
38
|
+
fieldType: "event";
|
39
|
+
} & {
|
40
|
+
config: {
|
41
|
+
type: "within";
|
42
|
+
};
|
43
|
+
};
|
36
44
|
};
|
37
45
|
declare const event: typeof eventFn & {
|
38
46
|
/**
|
39
47
|
* Checks if the event contains a specific action type.
|
48
|
+
* Can be used directly as a conditional or chained with additional methods.
|
40
49
|
* @param action - The action type to check for.
|
41
50
|
*/
|
42
|
-
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
|
+
};
|
43
105
|
field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
|
44
106
|
};
|
45
107
|
export { event };
|
@@ -56,6 +56,20 @@ export declare function field(fieldId: string, options?: {
|
|
56
56
|
type: "fuzzy";
|
57
57
|
};
|
58
58
|
};
|
59
|
+
within: () => {
|
60
|
+
options?: SelectOption[];
|
61
|
+
excludeInSearchQuery?: boolean;
|
62
|
+
alternateFieldIds?: string[];
|
63
|
+
conditionals?: FieldConditional[];
|
64
|
+
validations?: ValidationConfig[];
|
65
|
+
searchCriteriaLabelPrefix?: TranslationConfig;
|
66
|
+
fieldId: string;
|
67
|
+
fieldType: "field";
|
68
|
+
} & {
|
69
|
+
config: {
|
70
|
+
type: "within";
|
71
|
+
};
|
72
|
+
};
|
59
73
|
$$field: string;
|
60
74
|
isAfter: () => {
|
61
75
|
days: (days: number) => {
|
@@ -15520,7 +15520,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15520
15520
|
title: import("./TranslationConfig").TranslationConfig;
|
15521
15521
|
fields: ({
|
15522
15522
|
config: {
|
15523
|
-
type: "exact" | "fuzzy" | "range";
|
15523
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
15524
15524
|
};
|
15525
15525
|
fieldId: string;
|
15526
15526
|
fieldType: "field";
|
@@ -15547,7 +15547,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15547
15547
|
excludeInSearchQuery?: boolean | undefined;
|
15548
15548
|
} | {
|
15549
15549
|
config: {
|
15550
|
-
type: "exact" | "fuzzy" | "range";
|
15550
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
15551
15551
|
};
|
15552
15552
|
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
15553
15553
|
fieldType: "event";
|