@opencrvs/toolkit 1.8.1-rc.fa83f7b → 1.8.1-rc.faf1965
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 +8 -7
- package/dist/commons/conditionals/validate.d.ts +3 -2
- package/dist/commons/events/AdvancedSearchConfig.d.ts +13 -31
- package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
- package/dist/commons/events/EventConfig.d.ts +9 -9
- package/dist/commons/events/EventIndex.d.ts +55 -52
- package/dist/commons/events/EventMetadata.d.ts +12 -9
- package/dist/commons/events/FieldConfig.d.ts +8 -1
- package/dist/commons/events/WorkqueueConfig.d.ts +164 -199
- package/dist/commons/events/defineConfig.d.ts +1 -1
- package/dist/commons/events/event.d.ts +61 -7
- package/dist/commons/events/utils.d.ts +2 -2
- package/dist/conditionals/index.js +2 -2
- package/dist/events/index.js +171 -74
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { z, ZodType } from 'zod';
|
|
2
2
|
export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
3
3
|
id: z.ZodBranded<z.ZodString, "UUID">;
|
4
4
|
type: z.ZodString;
|
5
|
-
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
5
|
+
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
6
6
|
legalStatuses: z.ZodObject<{
|
7
7
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
8
8
|
createdAt: z.ZodString;
|
@@ -112,11 +112,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
112
112
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
113
113
|
trackingId: z.ZodString;
|
114
114
|
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
115
|
-
readonly
|
115
|
+
readonly PRINTED: "printed";
|
116
116
|
readonly INCOMPLETE: "incomplete";
|
117
117
|
readonly REJECTED: "rejected";
|
118
118
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
119
119
|
}>]>, "many">;
|
120
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
120
121
|
}, {
|
121
122
|
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
122
123
|
start: z.ZodString;
|
@@ -268,7 +269,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
268
269
|
}>, "strip", z.ZodTypeAny, {
|
269
270
|
type: string;
|
270
271
|
id: string & z.BRAND<"UUID">;
|
271
|
-
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
272
|
+
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
272
273
|
createdAt: string;
|
273
274
|
createdBy: string;
|
274
275
|
declaration: Record<string, string | number | boolean | {
|
@@ -352,10 +353,11 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
352
353
|
dateOfEvent?: string | null | undefined;
|
353
354
|
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
354
355
|
updatedBy?: string | null | undefined;
|
356
|
+
modifiedAt?: string | undefined;
|
355
357
|
}, {
|
356
358
|
type: string;
|
357
359
|
id: string;
|
358
|
-
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
360
|
+
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
359
361
|
createdAt: string;
|
360
362
|
createdBy: string;
|
361
363
|
declaration: Record<string, string | number | boolean | {
|
@@ -439,6 +441,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
439
441
|
dateOfEvent?: string | null | undefined;
|
440
442
|
updatedAtLocation?: string | null | undefined;
|
441
443
|
updatedBy?: string | null | undefined;
|
444
|
+
modifiedAt?: string | undefined;
|
442
445
|
}>;
|
443
446
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
444
447
|
type: z.ZodString;
|
@@ -471,13 +474,13 @@ export declare const Exact: z.ZodObject<{
|
|
471
474
|
}>;
|
472
475
|
export declare const ExactStatus: z.ZodObject<{
|
473
476
|
type: z.ZodLiteral<"exact">;
|
474
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
477
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
475
478
|
}, "strip", z.ZodTypeAny, {
|
476
479
|
type: "exact";
|
477
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
480
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
478
481
|
}, {
|
479
482
|
type: "exact";
|
480
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
483
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
481
484
|
}>;
|
482
485
|
export declare const ExactUserType: z.ZodObject<{
|
483
486
|
type: z.ZodLiteral<"exact">;
|
@@ -501,13 +504,13 @@ export declare const AnyOf: z.ZodObject<{
|
|
501
504
|
}>;
|
502
505
|
export declare const AnyOfStatus: z.ZodObject<{
|
503
506
|
type: z.ZodLiteral<"anyOf">;
|
504
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
507
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
|
505
508
|
}, "strip", z.ZodTypeAny, {
|
506
509
|
type: "anyOf";
|
507
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
510
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
508
511
|
}, {
|
509
512
|
type: "anyOf";
|
510
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
513
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
511
514
|
}>;
|
512
515
|
export declare const Range: z.ZodObject<{
|
513
516
|
type: z.ZodLiteral<"range">;
|
@@ -524,13 +527,13 @@ export declare const Range: z.ZodObject<{
|
|
524
527
|
}>;
|
525
528
|
export declare const ContainsFlags: z.ZodObject<{
|
526
529
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
527
|
-
readonly
|
530
|
+
readonly PRINTED: "printed";
|
528
531
|
readonly INCOMPLETE: "incomplete";
|
529
532
|
readonly REJECTED: "rejected";
|
530
533
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
531
534
|
}>]>, "many">>;
|
532
535
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
533
|
-
readonly
|
536
|
+
readonly PRINTED: "printed";
|
534
537
|
readonly INCOMPLETE: "incomplete";
|
535
538
|
readonly REJECTED: "rejected";
|
536
539
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -609,22 +612,22 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
609
612
|
eventType: z.ZodOptional<z.ZodString>;
|
610
613
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
611
614
|
type: z.ZodLiteral<"anyOf">;
|
612
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
615
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
|
613
616
|
}, "strip", z.ZodTypeAny, {
|
614
617
|
type: "anyOf";
|
615
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
618
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
616
619
|
}, {
|
617
620
|
type: "anyOf";
|
618
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
621
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
619
622
|
}>, z.ZodObject<{
|
620
623
|
type: z.ZodLiteral<"exact">;
|
621
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
624
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
622
625
|
}, "strip", z.ZodTypeAny, {
|
623
626
|
type: "exact";
|
624
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
627
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
625
628
|
}, {
|
626
629
|
type: "exact";
|
627
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
630
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
628
631
|
}>]>>>;
|
629
632
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
630
633
|
type: z.ZodLiteral<"exact">;
|
@@ -863,13 +866,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
863
866
|
}>>>;
|
864
867
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
865
868
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
866
|
-
readonly
|
869
|
+
readonly PRINTED: "printed";
|
867
870
|
readonly INCOMPLETE: "incomplete";
|
868
871
|
readonly REJECTED: "rejected";
|
869
872
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
870
873
|
}>]>, "many">>;
|
871
874
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
872
|
-
readonly
|
875
|
+
readonly PRINTED: "printed";
|
873
876
|
readonly INCOMPLETE: "incomplete";
|
874
877
|
readonly REJECTED: "rejected";
|
875
878
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -886,10 +889,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
886
889
|
id?: string | undefined;
|
887
890
|
status?: {
|
888
891
|
type: "exact";
|
889
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
892
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
890
893
|
} | {
|
891
894
|
type: "anyOf";
|
892
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
895
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
893
896
|
} | undefined;
|
894
897
|
data?: any;
|
895
898
|
createdByUserType?: {
|
@@ -986,10 +989,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
986
989
|
id?: string | undefined;
|
987
990
|
status?: {
|
988
991
|
type: "exact";
|
989
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
992
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
990
993
|
} | {
|
991
994
|
type: "anyOf";
|
992
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
995
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
993
996
|
} | undefined;
|
994
997
|
data?: any;
|
995
998
|
createdByUserType?: {
|
@@ -1086,10 +1089,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1086
1089
|
id?: string | undefined;
|
1087
1090
|
status?: {
|
1088
1091
|
type: "exact";
|
1089
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1092
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1090
1093
|
} | {
|
1091
1094
|
type: "anyOf";
|
1092
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1095
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1093
1096
|
} | undefined;
|
1094
1097
|
data?: any;
|
1095
1098
|
createdByUserType?: {
|
@@ -1186,10 +1189,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1186
1189
|
id?: string | undefined;
|
1187
1190
|
status?: {
|
1188
1191
|
type: "exact";
|
1189
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1192
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1190
1193
|
} | {
|
1191
1194
|
type: "anyOf";
|
1192
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1195
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1193
1196
|
} | undefined;
|
1194
1197
|
data?: any;
|
1195
1198
|
createdByUserType?: {
|
@@ -1290,22 +1293,22 @@ export declare const QueryType: z.ZodObject<{
|
|
1290
1293
|
eventType: z.ZodOptional<z.ZodString>;
|
1291
1294
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1292
1295
|
type: z.ZodLiteral<"anyOf">;
|
1293
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
1296
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
|
1294
1297
|
}, "strip", z.ZodTypeAny, {
|
1295
1298
|
type: "anyOf";
|
1296
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1299
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1297
1300
|
}, {
|
1298
1301
|
type: "anyOf";
|
1299
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1302
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1300
1303
|
}>, z.ZodObject<{
|
1301
1304
|
type: z.ZodLiteral<"exact">;
|
1302
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
1305
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
1303
1306
|
}, "strip", z.ZodTypeAny, {
|
1304
1307
|
type: "exact";
|
1305
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1308
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1306
1309
|
}, {
|
1307
1310
|
type: "exact";
|
1308
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1311
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1309
1312
|
}>]>>>;
|
1310
1313
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
1311
1314
|
type: z.ZodLiteral<"exact">;
|
@@ -1544,13 +1547,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1544
1547
|
}>>>;
|
1545
1548
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1546
1549
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
1547
|
-
readonly
|
1550
|
+
readonly PRINTED: "printed";
|
1548
1551
|
readonly INCOMPLETE: "incomplete";
|
1549
1552
|
readonly REJECTED: "rejected";
|
1550
1553
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
1551
1554
|
}>]>, "many">>;
|
1552
1555
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
1553
|
-
readonly
|
1556
|
+
readonly PRINTED: "printed";
|
1554
1557
|
readonly INCOMPLETE: "incomplete";
|
1555
1558
|
readonly REJECTED: "rejected";
|
1556
1559
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -1567,10 +1570,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1567
1570
|
id?: string | undefined;
|
1568
1571
|
status?: {
|
1569
1572
|
type: "exact";
|
1570
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1573
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1571
1574
|
} | {
|
1572
1575
|
type: "anyOf";
|
1573
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1576
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1574
1577
|
} | undefined;
|
1575
1578
|
data?: any;
|
1576
1579
|
createdByUserType?: {
|
@@ -1667,10 +1670,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1667
1670
|
id?: string | undefined;
|
1668
1671
|
status?: {
|
1669
1672
|
type: "exact";
|
1670
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1673
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1671
1674
|
} | {
|
1672
1675
|
type: "anyOf";
|
1673
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1676
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1674
1677
|
} | undefined;
|
1675
1678
|
data?: any;
|
1676
1679
|
createdByUserType?: {
|
@@ -1767,10 +1770,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1767
1770
|
id?: string | undefined;
|
1768
1771
|
status?: {
|
1769
1772
|
type: "exact";
|
1770
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1773
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1771
1774
|
} | {
|
1772
1775
|
type: "anyOf";
|
1773
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1776
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1774
1777
|
} | undefined;
|
1775
1778
|
data?: any;
|
1776
1779
|
createdByUserType?: {
|
@@ -1867,10 +1870,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1867
1870
|
id?: string | undefined;
|
1868
1871
|
status?: {
|
1869
1872
|
type: "exact";
|
1870
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1873
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1871
1874
|
} | {
|
1872
1875
|
type: "anyOf";
|
1873
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1876
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1874
1877
|
} | undefined;
|
1875
1878
|
data?: any;
|
1876
1879
|
createdByUserType?: {
|
@@ -1967,10 +1970,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1967
1970
|
id?: string | undefined;
|
1968
1971
|
status?: {
|
1969
1972
|
type: "exact";
|
1970
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1973
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1971
1974
|
} | {
|
1972
1975
|
type: "anyOf";
|
1973
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1976
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1974
1977
|
} | undefined;
|
1975
1978
|
data?: any;
|
1976
1979
|
createdByUserType?: {
|
@@ -2067,10 +2070,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2067
2070
|
id?: string | undefined;
|
2068
2071
|
status?: {
|
2069
2072
|
type: "exact";
|
2070
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2073
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2071
2074
|
} | {
|
2072
2075
|
type: "anyOf";
|
2073
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2076
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2074
2077
|
} | undefined;
|
2075
2078
|
data?: any;
|
2076
2079
|
createdByUserType?: {
|
@@ -2170,10 +2173,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2170
2173
|
id?: string | undefined;
|
2171
2174
|
status?: {
|
2172
2175
|
type: "exact";
|
2173
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2176
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2174
2177
|
} | {
|
2175
2178
|
type: "anyOf";
|
2176
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2179
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2177
2180
|
} | undefined;
|
2178
2181
|
data?: any;
|
2179
2182
|
createdByUserType?: {
|
@@ -2270,10 +2273,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2270
2273
|
id?: string | undefined;
|
2271
2274
|
status?: {
|
2272
2275
|
type: "exact";
|
2273
|
-
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2276
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2274
2277
|
} | {
|
2275
2278
|
type: "anyOf";
|
2276
|
-
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2279
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2277
2280
|
} | undefined;
|
2278
2281
|
data?: any;
|
2279
2282
|
createdByUserType?: {
|
@@ -3,23 +3,23 @@ import { TranslationConfig } from './TranslationConfig';
|
|
3
3
|
/**
|
4
4
|
* Event statuses recognized by the system
|
5
5
|
*/
|
6
|
-
export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
6
|
+
export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
7
7
|
export type EventStatus = z.infer<typeof EventStatus>;
|
8
|
+
export declare const VisibleStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED", "REJECTED"]>;
|
9
|
+
export type VisibleStatus = z.infer<typeof VisibleStatus>;
|
8
10
|
export declare const InherentFlags: {
|
9
|
-
readonly
|
11
|
+
readonly PRINTED: "printed";
|
10
12
|
readonly INCOMPLETE: "incomplete";
|
11
13
|
readonly REJECTED: "rejected";
|
12
14
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
13
15
|
};
|
14
16
|
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
15
|
-
export declare const ActionFlag: z.ZodString;
|
16
17
|
export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
17
|
-
readonly
|
18
|
+
readonly PRINTED: "printed";
|
18
19
|
readonly INCOMPLETE: "incomplete";
|
19
20
|
readonly REJECTED: "rejected";
|
20
21
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
21
22
|
}>]>;
|
22
|
-
export type ActionFlag = z.infer<typeof ActionFlag>;
|
23
23
|
export type Flag = z.infer<typeof Flag>;
|
24
24
|
export declare const ZodDate: z.ZodString;
|
25
25
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
@@ -182,7 +182,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
182
182
|
export declare const EventMetadata: z.ZodObject<{
|
183
183
|
id: z.ZodBranded<z.ZodString, "UUID">;
|
184
184
|
type: z.ZodString;
|
185
|
-
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
185
|
+
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
186
186
|
legalStatuses: z.ZodObject<{
|
187
187
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
188
188
|
createdAt: z.ZodString;
|
@@ -292,15 +292,16 @@ export declare const EventMetadata: z.ZodObject<{
|
|
292
292
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
293
293
|
trackingId: z.ZodString;
|
294
294
|
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
295
|
-
readonly
|
295
|
+
readonly PRINTED: "printed";
|
296
296
|
readonly INCOMPLETE: "incomplete";
|
297
297
|
readonly REJECTED: "rejected";
|
298
298
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
299
299
|
}>]>, "many">;
|
300
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
300
301
|
}, "strip", z.ZodTypeAny, {
|
301
302
|
type: string;
|
302
303
|
id: string & z.BRAND<"UUID">;
|
303
|
-
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
304
|
+
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
304
305
|
createdAt: string;
|
305
306
|
createdBy: string;
|
306
307
|
updatedAt: string;
|
@@ -335,10 +336,11 @@ export declare const EventMetadata: z.ZodObject<{
|
|
335
336
|
dateOfEvent?: string | null | undefined;
|
336
337
|
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
337
338
|
updatedBy?: string | null | undefined;
|
339
|
+
modifiedAt?: string | undefined;
|
338
340
|
}, {
|
339
341
|
type: string;
|
340
342
|
id: string;
|
341
|
-
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
343
|
+
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
342
344
|
createdAt: string;
|
343
345
|
createdBy: string;
|
344
346
|
updatedAt: string;
|
@@ -373,6 +375,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
373
375
|
dateOfEvent?: string | null | undefined;
|
374
376
|
updatedAtLocation?: string | null | undefined;
|
375
377
|
updatedBy?: string | null | undefined;
|
378
|
+
modifiedAt?: string | undefined;
|
376
379
|
}>;
|
377
380
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
378
381
|
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|
@@ -4724,7 +4724,13 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
4724
4724
|
uncorrectable?: boolean | undefined;
|
4725
4725
|
}>;
|
4726
4726
|
export type DataField = z.infer<typeof DataField>;
|
4727
|
-
|
4727
|
+
/** @knipignore */
|
4728
|
+
export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField>;
|
4729
|
+
/** @knipignore */
|
4730
|
+
/**
|
4731
|
+
* This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
|
4732
|
+
*/
|
4733
|
+
export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof TimeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField>;
|
4728
4734
|
export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
4729
4735
|
id: z.ZodString;
|
4730
4736
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
@@ -9142,6 +9148,7 @@ export type LocationField = z.infer<typeof Location>;
|
|
9142
9148
|
export type RadioField = z.infer<typeof RadioGroup>;
|
9143
9149
|
export type AddressField = z.infer<typeof Address>;
|
9144
9150
|
export type NumberField = z.infer<typeof NumberField>;
|
9151
|
+
export type FieldConfig = Inferred;
|
9145
9152
|
export type FieldProps<T extends FieldType> = Extract<FieldConfig, {
|
9146
9153
|
type: T;
|
9147
9154
|
}>;
|