@opencrvs/toolkit 1.8.1-rc.bbbfede → 1.8.1-rc.c2e6905
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 +24 -408
- package/dist/commons/conditionals/validate.d.ts +2 -3
- package/dist/commons/events/ActionDocument.d.ts +36 -659
- package/dist/commons/events/ActionInput.d.ts +36 -540
- package/dist/commons/events/AdvancedSearchConfig.d.ts +34 -34
- package/dist/commons/events/Draft.d.ts +0 -44
- package/dist/commons/events/EventConfig.d.ts +22 -22
- package/dist/commons/events/EventDocument.d.ts +26 -416
- package/dist/commons/events/EventIndex.d.ts +122 -6
- package/dist/commons/events/EventMetadata.d.ts +0 -6
- 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 +9 -55
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/test.utils.d.ts +5 -1
- package/dist/commons/events/utils.d.ts +2 -6
- package/dist/events/index.js +53 -128
- package/package.json +1 -1
@@ -117,8 +117,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
117
117
|
readonly REJECTED: "rejected";
|
118
118
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
119
119
|
}>]>, "many">;
|
120
|
-
copiesPrintedForTemplate: z.ZodOptional<z.ZodNumber>;
|
121
|
-
modifiedAt: z.ZodOptional<z.ZodString>;
|
122
120
|
}, {
|
123
121
|
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
124
122
|
start: z.ZodString;
|
@@ -354,8 +352,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
354
352
|
dateOfEvent?: string | null | undefined;
|
355
353
|
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
356
354
|
updatedBy?: string | null | undefined;
|
357
|
-
copiesPrintedForTemplate?: number | undefined;
|
358
|
-
modifiedAt?: string | undefined;
|
359
355
|
}, {
|
360
356
|
type: string;
|
361
357
|
id: string;
|
@@ -443,8 +439,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
443
439
|
dateOfEvent?: string | null | undefined;
|
444
440
|
updatedAtLocation?: string | null | undefined;
|
445
441
|
updatedBy?: string | null | undefined;
|
446
|
-
copiesPrintedForTemplate?: number | undefined;
|
447
|
-
modifiedAt?: string | undefined;
|
448
442
|
}>;
|
449
443
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
450
444
|
type: z.ZodString;
|
@@ -731,6 +725,25 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
731
725
|
type: "timePeriod";
|
732
726
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
733
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
|
+
}>]>>>;
|
734
747
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
735
748
|
type: z.ZodLiteral<"within">;
|
736
749
|
location: z.ZodString;
|
@@ -951,6 +964,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
951
964
|
type: "timePeriod";
|
952
965
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
953
966
|
} | undefined;
|
967
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
968
|
+
type: "exact";
|
969
|
+
term: string;
|
970
|
+
} | {
|
971
|
+
type: "within";
|
972
|
+
location: string;
|
973
|
+
} | undefined;
|
954
974
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
955
975
|
type: "exact";
|
956
976
|
term: string;
|
@@ -1044,6 +1064,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1044
1064
|
type: "timePeriod";
|
1045
1065
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1046
1066
|
} | undefined;
|
1067
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1068
|
+
type: "exact";
|
1069
|
+
term: string;
|
1070
|
+
} | {
|
1071
|
+
type: "within";
|
1072
|
+
location: string;
|
1073
|
+
} | undefined;
|
1047
1074
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1048
1075
|
type: "exact";
|
1049
1076
|
term: string;
|
@@ -1137,6 +1164,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1137
1164
|
type: "timePeriod";
|
1138
1165
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1139
1166
|
} | undefined;
|
1167
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1168
|
+
type: "exact";
|
1169
|
+
term: string;
|
1170
|
+
} | {
|
1171
|
+
type: "within";
|
1172
|
+
location: string;
|
1173
|
+
} | undefined;
|
1140
1174
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1141
1175
|
type: "exact";
|
1142
1176
|
term: string;
|
@@ -1230,6 +1264,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1230
1264
|
type: "timePeriod";
|
1231
1265
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1232
1266
|
} | undefined;
|
1267
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1268
|
+
type: "exact";
|
1269
|
+
term: string;
|
1270
|
+
} | {
|
1271
|
+
type: "within";
|
1272
|
+
location: string;
|
1273
|
+
} | undefined;
|
1233
1274
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1234
1275
|
type: "exact";
|
1235
1276
|
term: string;
|
@@ -1365,6 +1406,25 @@ export declare const QueryType: z.ZodObject<{
|
|
1365
1406
|
type: "timePeriod";
|
1366
1407
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1367
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
|
+
}>]>>>;
|
1368
1428
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1369
1429
|
type: z.ZodLiteral<"within">;
|
1370
1430
|
location: z.ZodString;
|
@@ -1585,6 +1645,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1585
1645
|
type: "timePeriod";
|
1586
1646
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1587
1647
|
} | undefined;
|
1648
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1649
|
+
type: "exact";
|
1650
|
+
term: string;
|
1651
|
+
} | {
|
1652
|
+
type: "within";
|
1653
|
+
location: string;
|
1654
|
+
} | undefined;
|
1588
1655
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1589
1656
|
type: "exact";
|
1590
1657
|
term: string;
|
@@ -1678,6 +1745,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1678
1745
|
type: "timePeriod";
|
1679
1746
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1680
1747
|
} | undefined;
|
1748
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1749
|
+
type: "exact";
|
1750
|
+
term: string;
|
1751
|
+
} | {
|
1752
|
+
type: "within";
|
1753
|
+
location: string;
|
1754
|
+
} | undefined;
|
1681
1755
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1682
1756
|
type: "exact";
|
1683
1757
|
term: string;
|
@@ -1771,6 +1845,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1771
1845
|
type: "timePeriod";
|
1772
1846
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1773
1847
|
} | undefined;
|
1848
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1849
|
+
type: "exact";
|
1850
|
+
term: string;
|
1851
|
+
} | {
|
1852
|
+
type: "within";
|
1853
|
+
location: string;
|
1854
|
+
} | undefined;
|
1774
1855
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1775
1856
|
type: "exact";
|
1776
1857
|
term: string;
|
@@ -1864,6 +1945,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1864
1945
|
type: "timePeriod";
|
1865
1946
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1866
1947
|
} | undefined;
|
1948
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
1949
|
+
type: "exact";
|
1950
|
+
term: string;
|
1951
|
+
} | {
|
1952
|
+
type: "within";
|
1953
|
+
location: string;
|
1954
|
+
} | undefined;
|
1867
1955
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1868
1956
|
type: "exact";
|
1869
1957
|
term: string;
|
@@ -1957,6 +2045,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1957
2045
|
type: "timePeriod";
|
1958
2046
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
1959
2047
|
} | undefined;
|
2048
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2049
|
+
type: "exact";
|
2050
|
+
term: string;
|
2051
|
+
} | {
|
2052
|
+
type: "within";
|
2053
|
+
location: string;
|
2054
|
+
} | undefined;
|
1960
2055
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
1961
2056
|
type: "exact";
|
1962
2057
|
term: string;
|
@@ -2050,6 +2145,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2050
2145
|
type: "timePeriod";
|
2051
2146
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2052
2147
|
} | undefined;
|
2148
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2149
|
+
type: "exact";
|
2150
|
+
term: string;
|
2151
|
+
} | {
|
2152
|
+
type: "within";
|
2153
|
+
location: string;
|
2154
|
+
} | undefined;
|
2053
2155
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2054
2156
|
type: "exact";
|
2055
2157
|
term: string;
|
@@ -2146,6 +2248,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2146
2248
|
type: "timePeriod";
|
2147
2249
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2148
2250
|
} | undefined;
|
2251
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2252
|
+
type: "exact";
|
2253
|
+
term: string;
|
2254
|
+
} | {
|
2255
|
+
type: "within";
|
2256
|
+
location: string;
|
2257
|
+
} | undefined;
|
2149
2258
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2150
2259
|
type: "exact";
|
2151
2260
|
term: string;
|
@@ -2239,6 +2348,13 @@ export declare const QueryType: z.ZodObject<{
|
|
2239
2348
|
type: "timePeriod";
|
2240
2349
|
term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
|
2241
2350
|
} | undefined;
|
2351
|
+
'legalStatuses.DECLARED.createdAtLocation'?: {
|
2352
|
+
type: "exact";
|
2353
|
+
term: string;
|
2354
|
+
} | {
|
2355
|
+
type: "within";
|
2356
|
+
location: string;
|
2357
|
+
} | undefined;
|
2242
2358
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
2243
2359
|
type: "exact";
|
2244
2360
|
term: string;
|
@@ -297,8 +297,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
297
297
|
readonly REJECTED: "rejected";
|
298
298
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
299
299
|
}>]>, "many">;
|
300
|
-
copiesPrintedForTemplate: z.ZodOptional<z.ZodNumber>;
|
301
|
-
modifiedAt: z.ZodOptional<z.ZodString>;
|
302
300
|
}, "strip", z.ZodTypeAny, {
|
303
301
|
type: string;
|
304
302
|
id: string & z.BRAND<"UUID">;
|
@@ -337,8 +335,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
337
335
|
dateOfEvent?: string | null | undefined;
|
338
336
|
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
339
337
|
updatedBy?: string | null | undefined;
|
340
|
-
copiesPrintedForTemplate?: number | undefined;
|
341
|
-
modifiedAt?: string | undefined;
|
342
338
|
}, {
|
343
339
|
type: string;
|
344
340
|
id: string;
|
@@ -377,8 +373,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
377
373
|
dateOfEvent?: string | null | undefined;
|
378
374
|
updatedAtLocation?: string | null | undefined;
|
379
375
|
updatedBy?: string | null | undefined;
|
380
|
-
copiesPrintedForTemplate?: number | undefined;
|
381
|
-
modifiedAt?: string | undefined;
|
382
376
|
}>;
|
383
377
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
384
378
|
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|
@@ -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,67 +33,21 @@ 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.
|
40
|
-
* Can be used directly as a conditional or chained with additional methods.
|
41
48
|
* @param action - The action type to check for.
|
42
49
|
*/
|
43
|
-
hasAction: (action: ActionType) =>
|
44
|
-
/**
|
45
|
-
* Creates a conditional that checks if the event contains a specific action type
|
46
|
-
* with a minimum count of occurrences.
|
47
|
-
*
|
48
|
-
* @param minCount - The minimum number of actions required.
|
49
|
-
*/
|
50
|
-
minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
|
51
|
-
/**
|
52
|
-
* Builds a conditional that sets a maximum count for the number of actions.
|
53
|
-
* This is useful for limiting the number of actions of a specific type in a single event.
|
54
|
-
*/
|
55
|
-
maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
|
56
|
-
/**
|
57
|
-
* Adds additional field constraints to the action matching.
|
58
|
-
*
|
59
|
-
* @param fields - Object containing additional fields to match on the action.
|
60
|
-
*/
|
61
|
-
withFields: (fields: Record<string, unknown>) => {
|
62
|
-
/**
|
63
|
-
* Creates a conditional that checks if the event contains a specific action type
|
64
|
-
* with a minimum count of occurrences.
|
65
|
-
*
|
66
|
-
* @param minCount - The minimum number of actions required.
|
67
|
-
*/
|
68
|
-
minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
|
69
|
-
/**
|
70
|
-
* Builds a conditional that sets a maximum count for the number of actions.
|
71
|
-
* This is useful for limiting the number of actions of a specific type in a single event.
|
72
|
-
*/
|
73
|
-
maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
|
74
|
-
};
|
75
|
-
/**
|
76
|
-
* Adds template ID constraint to the action matching.
|
77
|
-
* This is a convenience method that adds actionDetails.templateId to the fields.
|
78
|
-
*
|
79
|
-
* @param id - The template ID to match against.
|
80
|
-
*/
|
81
|
-
withTemplate: (id: string) => {
|
82
|
-
/**
|
83
|
-
* Creates a conditional that checks if the event contains a specific action type
|
84
|
-
* with a minimum count of occurrences.
|
85
|
-
*
|
86
|
-
* @param minCount - The minimum number of actions required.
|
87
|
-
*/
|
88
|
-
minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
|
89
|
-
/**
|
90
|
-
* Builds a conditional that sets a maximum count for the number of actions.
|
91
|
-
* This is useful for limiting the number of actions of a specific type in a single event.
|
92
|
-
*/
|
93
|
-
maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
|
94
|
-
};
|
95
|
-
__nominal__type: "JSONSchema";
|
96
|
-
};
|
50
|
+
hasAction: (action: ActionType) => import("../conditionals/conditionals").JSONSchema;
|
97
51
|
field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
|
98
52
|
};
|
99
53
|
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) => {
|
@@ -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" | "reason">>) => {
|
418
418
|
type: "REJECT_CORRECTION";
|
419
419
|
transactionId: string;
|
420
420
|
declaration: {};
|
@@ -422,6 +422,10 @@ 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
|
+
};
|
425
429
|
};
|
426
430
|
};
|
427
431
|
};
|
@@ -6758,10 +6758,6 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
6758
6758
|
start: string;
|
6759
6759
|
end: string;
|
6760
6760
|
} | null | undefined> | null | undefined;
|
6761
|
-
actionDetails?: {
|
6762
|
-
templateId?: string | undefined;
|
6763
|
-
isImmediateCorrection?: boolean | undefined;
|
6764
|
-
} | null | undefined;
|
6765
6761
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
6766
6762
|
};
|
6767
6763
|
}[];
|
@@ -15524,7 +15520,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15524
15520
|
title: import("./TranslationConfig").TranslationConfig;
|
15525
15521
|
fields: ({
|
15526
15522
|
config: {
|
15527
|
-
type: "exact" | "fuzzy" | "range";
|
15523
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
15528
15524
|
};
|
15529
15525
|
fieldId: string;
|
15530
15526
|
fieldType: "field";
|
@@ -15551,7 +15547,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
15551
15547
|
excludeInSearchQuery?: boolean | undefined;
|
15552
15548
|
} | {
|
15553
15549
|
config: {
|
15554
|
-
type: "exact" | "fuzzy" | "range";
|
15550
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
15555
15551
|
};
|
15556
15552
|
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
15557
15553
|
fieldType: "event";
|