@opencrvs/toolkit 1.8.1-rc.c6281e8 → 1.8.1-rc.e23b224
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 -24
- package/dist/commons/events/ActionDocument.d.ts +536 -36
- package/dist/commons/events/ActionInput.d.ts +26 -36
- 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 -26
- package/dist/commons/events/EventIndex.d.ts +0 -122
- package/dist/commons/events/WorkqueueConfig.d.ts +0 -89
- package/dist/commons/events/defineConfig.d.ts +2 -2
- package/dist/commons/events/event.d.ts +0 -8
- package/dist/commons/events/field.d.ts +0 -14
- package/dist/commons/events/test.utils.d.ts +1 -5
- package/dist/commons/events/utils.d.ts +2 -2
- package/dist/events/index.js +17 -28
- package/package.json +1 -1
@@ -725,25 +725,6 @@ 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
|
-
}>]>>>;
|
747
728
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
748
729
|
type: z.ZodLiteral<"within">;
|
749
730
|
location: z.ZodString;
|
@@ -964,13 +945,6 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
964
945
|
type: "timePeriod";
|
965
946
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
966
947
|
} | undefined;
|
967
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
968
|
-
type: "exact";
|
969
|
-
term: string;
|
970
|
-
} | {
|
971
|
-
type: "within";
|
972
|
-
location: string;
|
973
|
-
} | undefined;
|
974
948
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
975
949
|
type: "exact";
|
976
950
|
term: string;
|
@@ -1064,13 +1038,6 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1064
1038
|
type: "timePeriod";
|
1065
1039
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1066
1040
|
} | undefined;
|
1067
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1068
|
-
type: "exact";
|
1069
|
-
term: string;
|
1070
|
-
} | {
|
1071
|
-
type: "within";
|
1072
|
-
location: string;
|
1073
|
-
} | undefined;
|
1074
1041
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1075
1042
|
type: "exact";
|
1076
1043
|
term: string;
|
@@ -1164,13 +1131,6 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1164
1131
|
type: "timePeriod";
|
1165
1132
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1166
1133
|
} | undefined;
|
1167
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1168
|
-
type: "exact";
|
1169
|
-
term: string;
|
1170
|
-
} | {
|
1171
|
-
type: "within";
|
1172
|
-
location: string;
|
1173
|
-
} | undefined;
|
1174
1134
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1175
1135
|
type: "exact";
|
1176
1136
|
term: string;
|
@@ -1264,13 +1224,6 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1264
1224
|
type: "timePeriod";
|
1265
1225
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1266
1226
|
} | undefined;
|
1267
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1268
|
-
type: "exact";
|
1269
|
-
term: string;
|
1270
|
-
} | {
|
1271
|
-
type: "within";
|
1272
|
-
location: string;
|
1273
|
-
} | undefined;
|
1274
1227
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1275
1228
|
type: "exact";
|
1276
1229
|
term: string;
|
@@ -1406,25 +1359,6 @@ export declare const QueryType: z.ZodObject<{
|
|
1406
1359
|
type: "timePeriod";
|
1407
1360
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1408
1361
|
}>]>>>;
|
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
|
-
}>]>>>;
|
1428
1362
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1429
1363
|
type: z.ZodLiteral<"within">;
|
1430
1364
|
location: z.ZodString;
|
@@ -1645,13 +1579,6 @@ export declare const QueryType: z.ZodObject<{
|
|
1645
1579
|
type: "timePeriod";
|
1646
1580
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1647
1581
|
} | undefined;
|
1648
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1649
|
-
type: "exact";
|
1650
|
-
term: string;
|
1651
|
-
} | {
|
1652
|
-
type: "within";
|
1653
|
-
location: string;
|
1654
|
-
} | undefined;
|
1655
1582
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1656
1583
|
type: "exact";
|
1657
1584
|
term: string;
|
@@ -1745,13 +1672,6 @@ export declare const QueryType: z.ZodObject<{
|
|
1745
1672
|
type: "timePeriod";
|
1746
1673
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1747
1674
|
} | undefined;
|
1748
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1749
|
-
type: "exact";
|
1750
|
-
term: string;
|
1751
|
-
} | {
|
1752
|
-
type: "within";
|
1753
|
-
location: string;
|
1754
|
-
} | undefined;
|
1755
1675
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1756
1676
|
type: "exact";
|
1757
1677
|
term: string;
|
@@ -1845,13 +1765,6 @@ export declare const QueryType: z.ZodObject<{
|
|
1845
1765
|
type: "timePeriod";
|
1846
1766
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1847
1767
|
} | undefined;
|
1848
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1849
|
-
type: "exact";
|
1850
|
-
term: string;
|
1851
|
-
} | {
|
1852
|
-
type: "within";
|
1853
|
-
location: string;
|
1854
|
-
} | undefined;
|
1855
1768
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1856
1769
|
type: "exact";
|
1857
1770
|
term: string;
|
@@ -1945,13 +1858,6 @@ export declare const QueryType: z.ZodObject<{
|
|
1945
1858
|
type: "timePeriod";
|
1946
1859
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1947
1860
|
} | undefined;
|
1948
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1949
|
-
type: "exact";
|
1950
|
-
term: string;
|
1951
|
-
} | {
|
1952
|
-
type: "within";
|
1953
|
-
location: string;
|
1954
|
-
} | undefined;
|
1955
1861
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1956
1862
|
type: "exact";
|
1957
1863
|
term: string;
|
@@ -2045,13 +1951,6 @@ export declare const QueryType: z.ZodObject<{
|
|
2045
1951
|
type: "timePeriod";
|
2046
1952
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2047
1953
|
} | undefined;
|
2048
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2049
|
-
type: "exact";
|
2050
|
-
term: string;
|
2051
|
-
} | {
|
2052
|
-
type: "within";
|
2053
|
-
location: string;
|
2054
|
-
} | undefined;
|
2055
1954
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2056
1955
|
type: "exact";
|
2057
1956
|
term: string;
|
@@ -2145,13 +2044,6 @@ export declare const QueryType: z.ZodObject<{
|
|
2145
2044
|
type: "timePeriod";
|
2146
2045
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2147
2046
|
} | undefined;
|
2148
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2149
|
-
type: "exact";
|
2150
|
-
term: string;
|
2151
|
-
} | {
|
2152
|
-
type: "within";
|
2153
|
-
location: string;
|
2154
|
-
} | undefined;
|
2155
2047
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2156
2048
|
type: "exact";
|
2157
2049
|
term: string;
|
@@ -2248,13 +2140,6 @@ export declare const QueryType: z.ZodObject<{
|
|
2248
2140
|
type: "timePeriod";
|
2249
2141
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2250
2142
|
} | undefined;
|
2251
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2252
|
-
type: "exact";
|
2253
|
-
term: string;
|
2254
|
-
} | {
|
2255
|
-
type: "within";
|
2256
|
-
location: string;
|
2257
|
-
} | undefined;
|
2258
2143
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2259
2144
|
type: "exact";
|
2260
2145
|
term: string;
|
@@ -2348,13 +2233,6 @@ export declare const QueryType: z.ZodObject<{
|
|
2348
2233
|
type: "timePeriod";
|
2349
2234
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2350
2235
|
} | undefined;
|
2351
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2352
|
-
type: "exact";
|
2353
|
-
term: string;
|
2354
|
-
} | {
|
2355
|
-
type: "within";
|
2356
|
-
location: string;
|
2357
|
-
} | undefined;
|
2358
2236
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2359
2237
|
type: "exact";
|
2360
2238
|
term: string;
|
@@ -7037,25 +7037,6 @@ 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
|
-
}>]>>>;
|
7059
7040
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
7060
7041
|
type: z.ZodLiteral<"within">;
|
7061
7042
|
location: z.ZodString;
|
@@ -7276,13 +7257,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7276
7257
|
type: "timePeriod";
|
7277
7258
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7278
7259
|
} | undefined;
|
7279
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7280
|
-
type: "exact";
|
7281
|
-
term: string;
|
7282
|
-
} | {
|
7283
|
-
type: "within";
|
7284
|
-
location: string;
|
7285
|
-
} | undefined;
|
7286
7260
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7287
7261
|
type: "exact";
|
7288
7262
|
term: string;
|
@@ -7376,13 +7350,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7376
7350
|
type: "timePeriod";
|
7377
7351
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7378
7352
|
} | undefined;
|
7379
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7380
|
-
type: "exact";
|
7381
|
-
term: string;
|
7382
|
-
} | {
|
7383
|
-
type: "within";
|
7384
|
-
location: string;
|
7385
|
-
} | undefined;
|
7386
7353
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7387
7354
|
type: "exact";
|
7388
7355
|
term: string;
|
@@ -7476,13 +7443,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7476
7443
|
type: "timePeriod";
|
7477
7444
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7478
7445
|
} | undefined;
|
7479
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7480
|
-
type: "exact";
|
7481
|
-
term: string;
|
7482
|
-
} | {
|
7483
|
-
type: "within";
|
7484
|
-
location: string;
|
7485
|
-
} | undefined;
|
7486
7446
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7487
7447
|
type: "exact";
|
7488
7448
|
term: string;
|
@@ -7576,13 +7536,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7576
7536
|
type: "timePeriod";
|
7577
7537
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7578
7538
|
} | undefined;
|
7579
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7580
|
-
type: "exact";
|
7581
|
-
term: string;
|
7582
|
-
} | {
|
7583
|
-
type: "within";
|
7584
|
-
location: string;
|
7585
|
-
} | undefined;
|
7586
7539
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7587
7540
|
type: "exact";
|
7588
7541
|
term: string;
|
@@ -7676,13 +7629,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7676
7629
|
type: "timePeriod";
|
7677
7630
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7678
7631
|
} | undefined;
|
7679
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7680
|
-
type: "exact";
|
7681
|
-
term: string;
|
7682
|
-
} | {
|
7683
|
-
type: "within";
|
7684
|
-
location: string;
|
7685
|
-
} | undefined;
|
7686
7632
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7687
7633
|
type: "exact";
|
7688
7634
|
term: string;
|
@@ -7776,13 +7722,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7776
7722
|
type: "timePeriod";
|
7777
7723
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7778
7724
|
} | undefined;
|
7779
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7780
|
-
type: "exact";
|
7781
|
-
term: string;
|
7782
|
-
} | {
|
7783
|
-
type: "within";
|
7784
|
-
location: string;
|
7785
|
-
} | undefined;
|
7786
7725
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7787
7726
|
type: "exact";
|
7788
7727
|
term: string;
|
@@ -7879,13 +7818,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7879
7818
|
type: "timePeriod";
|
7880
7819
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7881
7820
|
} | undefined;
|
7882
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7883
|
-
type: "exact";
|
7884
|
-
term: string;
|
7885
|
-
} | {
|
7886
|
-
type: "within";
|
7887
|
-
location: string;
|
7888
|
-
} | undefined;
|
7889
7821
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7890
7822
|
type: "exact";
|
7891
7823
|
term: string;
|
@@ -7979,13 +7911,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
7979
7911
|
type: "timePeriod";
|
7980
7912
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
7981
7913
|
} | undefined;
|
7982
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
7983
|
-
type: "exact";
|
7984
|
-
term: string;
|
7985
|
-
} | {
|
7986
|
-
type: "within";
|
7987
|
-
location: string;
|
7988
|
-
} | undefined;
|
7989
7914
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
7990
7915
|
type: "exact";
|
7991
7916
|
term: string;
|
@@ -8087,13 +8012,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
8087
8012
|
type: "timePeriod";
|
8088
8013
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
8089
8014
|
} | undefined;
|
8090
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
8091
|
-
type: "exact";
|
8092
|
-
term: string;
|
8093
|
-
} | {
|
8094
|
-
type: "within";
|
8095
|
-
location: string;
|
8096
|
-
} | undefined;
|
8097
8015
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
8098
8016
|
type: "exact";
|
8099
8017
|
term: string;
|
@@ -8187,13 +8105,6 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
8187
8105
|
type: "timePeriod";
|
8188
8106
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
8189
8107
|
} | undefined;
|
8190
|
-
'legalStatuses.DECLARED.createdAtLocation'?: {
|
8191
|
-
type: "exact";
|
8192
|
-
term: string;
|
8193
|
-
} | {
|
8194
|
-
type: "within";
|
8195
|
-
location: string;
|
8196
|
-
} | undefined;
|
8197
8108
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
8198
8109
|
type: "exact";
|
8199
8110
|
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";
|
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";
|
8688
8688
|
};
|
8689
8689
|
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
8690
8690
|
fieldType: "event";
|
@@ -33,14 +33,6 @@ 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
|
-
};
|
44
36
|
};
|
45
37
|
declare const event: typeof eventFn & {
|
46
38
|
/**
|
@@ -56,20 +56,6 @@ 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
|
-
};
|
73
59
|
$$field: string;
|
74
60
|
isAfter: () => {
|
75
61
|
days: (days: number) => {
|
@@ -414,7 +414,7 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
414
414
|
requestId: string;
|
415
415
|
keepAssignment: boolean | undefined;
|
416
416
|
};
|
417
|
-
reject: (eventId: string, requestId: string, input
|
417
|
+
reject: (eventId: string, requestId: string, input?: Partial<Pick<RejectCorrectionActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
|
418
418
|
type: "REJECT_CORRECTION";
|
419
419
|
transactionId: string;
|
420
420
|
declaration: {};
|
@@ -422,10 +422,6 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
422
422
|
eventId: string;
|
423
423
|
requestId: string;
|
424
424
|
keepAssignment: boolean | undefined;
|
425
|
-
reason: {
|
426
|
-
message: string;
|
427
|
-
isDuplicate?: boolean | undefined;
|
428
|
-
};
|
429
425
|
};
|
430
426
|
};
|
431
427
|
};
|
@@ -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";
|
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";
|
15551
15551
|
};
|
15552
15552
|
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
15553
15553
|
fieldType: "event";
|
package/dist/events/index.js
CHANGED
@@ -139,6 +139,7 @@ __export(events_exports, {
|
|
139
139
|
PageConfig: () => PageConfig,
|
140
140
|
PageTypes: () => PageTypes,
|
141
141
|
PrintCertificateActionInput: () => PrintCertificateActionInput,
|
142
|
+
PrintDetails: () => PrintDetails,
|
142
143
|
QueryExpression: () => QueryExpression,
|
143
144
|
QueryInput: () => QueryInput,
|
144
145
|
QueryType: () => QueryType,
|
@@ -1340,7 +1341,7 @@ var SummaryConfig = import_zod14.z.object({
|
|
1340
1341
|
|
1341
1342
|
// ../commons/src/events/AdvancedSearchConfig.ts
|
1342
1343
|
var import_zod15 = require("zod");
|
1343
|
-
var MatchType = import_zod15.z.enum(["fuzzy", "exact", "range"
|
1344
|
+
var MatchType = import_zod15.z.enum(["fuzzy", "exact", "range"]);
|
1344
1345
|
var BaseField3 = import_zod15.z.object({
|
1345
1346
|
config: import_zod15.z.object({
|
1346
1347
|
type: MatchType.describe("Determines the type of field")
|
@@ -1902,6 +1903,9 @@ var ActionBase = import_zod19.z.object({
|
|
1902
1903
|
originalActionId: UUID.optional().nullable().describe(
|
1903
1904
|
"Reference to the original action that was asynchronously rejected or accepted by 3rd party integration."
|
1904
1905
|
)
|
1906
|
+
// 'actionDetails' field reserved for additional metadata
|
1907
|
+
// Each action can define its own action details specifc to the action
|
1908
|
+
// See PrintCertificateAction
|
1905
1909
|
});
|
1906
1910
|
var AssignedAction = ActionBase.merge(
|
1907
1911
|
import_zod19.z.object({
|
@@ -1961,9 +1965,13 @@ var NotifiedAction = ActionBase.merge(
|
|
1961
1965
|
type: import_zod19.z.literal(ActionType.NOTIFY)
|
1962
1966
|
})
|
1963
1967
|
);
|
1968
|
+
var PrintDetails = import_zod19.z.object({
|
1969
|
+
templateId: import_zod19.z.string().optional()
|
1970
|
+
});
|
1964
1971
|
var PrintCertificateAction = ActionBase.merge(
|
1965
1972
|
import_zod19.z.object({
|
1966
|
-
type: import_zod19.z.literal(ActionType.PRINT_CERTIFICATE)
|
1973
|
+
type: import_zod19.z.literal(ActionType.PRINT_CERTIFICATE),
|
1974
|
+
actionDetails: PrintDetails.optional().nullable()
|
1967
1975
|
})
|
1968
1976
|
);
|
1969
1977
|
var RequestedCorrectionAction = ActionBase.merge(
|
@@ -1980,8 +1988,7 @@ var ApprovedCorrectionAction = ActionBase.merge(
|
|
1980
1988
|
var RejectedCorrectionAction = ActionBase.merge(
|
1981
1989
|
import_zod19.z.object({
|
1982
1990
|
type: import_zod19.z.literal(ActionType.REJECT_CORRECTION),
|
1983
|
-
requestId: import_zod19.z.string()
|
1984
|
-
reason: RejectionReason
|
1991
|
+
requestId: import_zod19.z.string()
|
1985
1992
|
})
|
1986
1993
|
);
|
1987
1994
|
var ReadAction = ActionBase.merge(
|
@@ -3175,19 +3182,6 @@ function createSearchConfig(baseField) {
|
|
3175
3182
|
fuzzy: () => ({
|
3176
3183
|
...baseField,
|
3177
3184
|
config: { type: "fuzzy" }
|
3178
|
-
}),
|
3179
|
-
/**
|
3180
|
-
* Creates a configuration for matching locations and the child locations
|
3181
|
-
* @returns An object containing the field ID and a configuration object with a type of 'within'.
|
3182
|
-
* @example field('createdAtLocation').within()
|
3183
|
-
* // {
|
3184
|
-
* // ...
|
3185
|
-
* // config: { type: 'within' }
|
3186
|
-
* // }
|
3187
|
-
*/
|
3188
|
-
within: () => ({
|
3189
|
-
...baseField,
|
3190
|
-
config: { type: "within" }
|
3191
3185
|
})
|
3192
3186
|
};
|
3193
3187
|
}
|
@@ -3537,9 +3531,6 @@ var QueryExpression = import_zod25.z.object({
|
|
3537
3531
|
createdAt: import_zod25.z.optional(DateCondition),
|
3538
3532
|
updatedAt: import_zod25.z.optional(DateCondition),
|
3539
3533
|
"legalStatuses.REGISTERED.acceptedAt": import_zod25.z.optional(DateCondition),
|
3540
|
-
"legalStatuses.DECLARED.createdAtLocation": import_zod25.z.optional(
|
3541
|
-
import_zod25.z.union([Within, Exact])
|
3542
|
-
),
|
3543
3534
|
"legalStatuses.REGISTERED.createdAtLocation": import_zod25.z.optional(
|
3544
3535
|
import_zod25.z.union([Within, Exact])
|
3545
3536
|
),
|
@@ -3893,7 +3884,8 @@ var DeclareActionInput = BaseActionInput.merge(
|
|
3893
3884
|
);
|
3894
3885
|
var PrintCertificateActionInput = BaseActionInput.merge(
|
3895
3886
|
import_zod29.z.object({
|
3896
|
-
type: import_zod29.z.literal(ActionType.PRINT_CERTIFICATE).default(ActionType.PRINT_CERTIFICATE)
|
3887
|
+
type: import_zod29.z.literal(ActionType.PRINT_CERTIFICATE).default(ActionType.PRINT_CERTIFICATE),
|
3888
|
+
actionDetails: PrintDetails.optional()
|
3897
3889
|
})
|
3898
3890
|
);
|
3899
3891
|
var RejectDeclarationActionInput = BaseActionInput.merge(
|
@@ -3933,8 +3925,7 @@ var RequestCorrectionActionInput = BaseActionInput.merge(
|
|
3933
3925
|
var RejectCorrectionActionInput = BaseActionInput.merge(
|
3934
3926
|
import_zod29.z.object({
|
3935
3927
|
requestId: import_zod29.z.string(),
|
3936
|
-
type: import_zod29.z.literal(ActionType.REJECT_CORRECTION).default(ActionType.REJECT_CORRECTION)
|
3937
|
-
reason: RejectionReason
|
3928
|
+
type: import_zod29.z.literal(ActionType.REJECT_CORRECTION).default(ActionType.REJECT_CORRECTION)
|
3938
3929
|
})
|
3939
3930
|
);
|
3940
3931
|
var ApproveCorrectionActionInput = BaseActionInput.merge(
|
@@ -6773,7 +6764,7 @@ function eventPayloadGenerator(rng) {
|
|
6773
6764
|
requestId,
|
6774
6765
|
keepAssignment: input.keepAssignment
|
6775
6766
|
}),
|
6776
|
-
reject: (eventId, requestId, input) => ({
|
6767
|
+
reject: (eventId, requestId, input = {}) => ({
|
6777
6768
|
type: ActionType.REJECT_CORRECTION,
|
6778
6769
|
transactionId: input.transactionId ?? getUUID(),
|
6779
6770
|
declaration: {},
|
@@ -6784,8 +6775,7 @@ function eventPayloadGenerator(rng) {
|
|
6784
6775
|
),
|
6785
6776
|
eventId,
|
6786
6777
|
requestId,
|
6787
|
-
keepAssignment: input.keepAssignment
|
6788
|
-
reason: input.reason ?? { message: "" }
|
6778
|
+
keepAssignment: input.keepAssignment
|
6789
6779
|
})
|
6790
6780
|
}
|
6791
6781
|
}
|
@@ -6844,8 +6834,7 @@ function generateActionDocument({
|
|
6844
6834
|
return {
|
6845
6835
|
...actionBase,
|
6846
6836
|
requestId: getUUID(),
|
6847
|
-
type: action
|
6848
|
-
reason: { message: "Correction rejection" }
|
6837
|
+
type: action
|
6849
6838
|
};
|
6850
6839
|
case ActionType.REGISTER:
|
6851
6840
|
return {
|