@opencrvs/toolkit 1.8.1-rc.4c1434e → 1.8.1-rc.4ed8a2e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commons/api/router.d.ts +391 -394
- package/dist/commons/conditionals/validate.d.ts +8 -0
- package/dist/commons/events/ActionConfig.d.ts +2004 -366
- package/dist/commons/events/ActionDocument.d.ts +736 -736
- package/dist/commons/events/ActionInput.d.ts +600 -600
- package/dist/commons/events/AdvancedSearchConfig.d.ts +49 -31
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
- package/dist/commons/events/Draft.d.ts +48 -48
- package/dist/commons/events/EventConfig.d.ts +673 -146
- package/dist/commons/events/EventDocument.d.ts +432 -432
- package/dist/commons/events/EventIndex.d.ts +62 -65
- package/dist/commons/events/EventMetadata.d.ts +9 -12
- package/dist/commons/events/FieldConfig.d.ts +254 -43
- package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/FormConfig.d.ts +1032 -246
- package/dist/commons/events/PageConfig.d.ts +264 -46
- package/dist/commons/events/WorkqueueConfig.d.ts +199 -164
- package/dist/commons/events/defineConfig.d.ts +127 -28
- package/dist/commons/events/event.d.ts +6 -6
- package/dist/commons/events/test.utils.d.ts +12 -12
- package/dist/commons/events/utils.d.ts +234 -58
- package/dist/conditionals/index.js +3 -2
- package/dist/events/index.js +142 -94
- 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
@@ -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", "
|
5
|
+
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
6
6
|
legalStatuses: z.ZodObject<{
|
7
7
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
8
8
|
createdAt: z.ZodString;
|
@@ -112,12 +112,11 @@ 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 PENDING_CERTIFICATION: "pending-certification";
|
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>;
|
121
120
|
}, {
|
122
121
|
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
123
122
|
start: z.ZodString;
|
@@ -254,22 +253,22 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
254
253
|
surname: string;
|
255
254
|
middlename?: string | undefined;
|
256
255
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
257
|
-
firstname: z.
|
258
|
-
surname: z.
|
256
|
+
firstname: z.ZodString;
|
257
|
+
surname: z.ZodString;
|
259
258
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
260
259
|
}, "strip", z.ZodTypeAny, {
|
261
|
-
firstname
|
262
|
-
surname
|
260
|
+
firstname: string;
|
261
|
+
surname: string;
|
263
262
|
middlename?: string | null | undefined;
|
264
263
|
}, {
|
265
|
-
firstname
|
266
|
-
surname
|
264
|
+
firstname: string;
|
265
|
+
surname: string;
|
267
266
|
middlename?: string | null | undefined;
|
268
267
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
269
268
|
}>, "strip", z.ZodTypeAny, {
|
270
269
|
type: string;
|
271
270
|
id: string & z.BRAND<"UUID">;
|
272
|
-
status: "ARCHIVED" | "
|
271
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
273
272
|
createdAt: string;
|
274
273
|
createdBy: string;
|
275
274
|
declaration: Record<string, string | number | boolean | {
|
@@ -299,8 +298,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
299
298
|
surname: string;
|
300
299
|
middlename?: string | undefined;
|
301
300
|
} | {
|
302
|
-
firstname
|
303
|
-
surname
|
301
|
+
firstname: string;
|
302
|
+
surname: string;
|
304
303
|
middlename?: string | null | undefined;
|
305
304
|
} | {
|
306
305
|
country: string;
|
@@ -353,11 +352,10 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
353
352
|
dateOfEvent?: string | null | undefined;
|
354
353
|
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
355
354
|
updatedBy?: string | null | undefined;
|
356
|
-
modifiedAt?: string | undefined;
|
357
355
|
}, {
|
358
356
|
type: string;
|
359
357
|
id: string;
|
360
|
-
status: "ARCHIVED" | "
|
358
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
361
359
|
createdAt: string;
|
362
360
|
createdBy: string;
|
363
361
|
declaration: Record<string, string | number | boolean | {
|
@@ -387,8 +385,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
387
385
|
surname: string;
|
388
386
|
middlename?: string | undefined;
|
389
387
|
} | {
|
390
|
-
firstname
|
391
|
-
surname
|
388
|
+
firstname: string;
|
389
|
+
surname: string;
|
392
390
|
middlename?: string | null | undefined;
|
393
391
|
} | {
|
394
392
|
country: string;
|
@@ -441,7 +439,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
441
439
|
dateOfEvent?: string | null | undefined;
|
442
440
|
updatedAtLocation?: string | null | undefined;
|
443
441
|
updatedBy?: string | null | undefined;
|
444
|
-
modifiedAt?: string | undefined;
|
445
442
|
}>;
|
446
443
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
447
444
|
type: z.ZodString;
|
@@ -474,13 +471,13 @@ export declare const Exact: z.ZodObject<{
|
|
474
471
|
}>;
|
475
472
|
export declare const ExactStatus: z.ZodObject<{
|
476
473
|
type: z.ZodLiteral<"exact">;
|
477
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
474
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
478
475
|
}, "strip", z.ZodTypeAny, {
|
479
476
|
type: "exact";
|
480
|
-
term: "ARCHIVED" | "
|
477
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
481
478
|
}, {
|
482
479
|
type: "exact";
|
483
|
-
term: "ARCHIVED" | "
|
480
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
484
481
|
}>;
|
485
482
|
export declare const ExactUserType: z.ZodObject<{
|
486
483
|
type: z.ZodLiteral<"exact">;
|
@@ -504,13 +501,13 @@ export declare const AnyOf: z.ZodObject<{
|
|
504
501
|
}>;
|
505
502
|
export declare const AnyOfStatus: z.ZodObject<{
|
506
503
|
type: z.ZodLiteral<"anyOf">;
|
507
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
504
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
508
505
|
}, "strip", z.ZodTypeAny, {
|
509
506
|
type: "anyOf";
|
510
|
-
terms: ("ARCHIVED" | "
|
507
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
511
508
|
}, {
|
512
509
|
type: "anyOf";
|
513
|
-
terms: ("ARCHIVED" | "
|
510
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
514
511
|
}>;
|
515
512
|
export declare const Range: z.ZodObject<{
|
516
513
|
type: z.ZodLiteral<"range">;
|
@@ -527,13 +524,13 @@ export declare const Range: z.ZodObject<{
|
|
527
524
|
}>;
|
528
525
|
export declare const ContainsFlags: z.ZodObject<{
|
529
526
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
530
|
-
readonly
|
527
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
531
528
|
readonly INCOMPLETE: "incomplete";
|
532
529
|
readonly REJECTED: "rejected";
|
533
530
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
534
531
|
}>]>, "many">>;
|
535
532
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
536
|
-
readonly
|
533
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
537
534
|
readonly INCOMPLETE: "incomplete";
|
538
535
|
readonly REJECTED: "rejected";
|
539
536
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -612,22 +609,22 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
612
609
|
eventType: z.ZodOptional<z.ZodString>;
|
613
610
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
614
611
|
type: z.ZodLiteral<"anyOf">;
|
615
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
612
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
616
613
|
}, "strip", z.ZodTypeAny, {
|
617
614
|
type: "anyOf";
|
618
|
-
terms: ("ARCHIVED" | "
|
615
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
619
616
|
}, {
|
620
617
|
type: "anyOf";
|
621
|
-
terms: ("ARCHIVED" | "
|
618
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
622
619
|
}>, z.ZodObject<{
|
623
620
|
type: z.ZodLiteral<"exact">;
|
624
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
621
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
625
622
|
}, "strip", z.ZodTypeAny, {
|
626
623
|
type: "exact";
|
627
|
-
term: "ARCHIVED" | "
|
624
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
628
625
|
}, {
|
629
626
|
type: "exact";
|
630
|
-
term: "ARCHIVED" | "
|
627
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
631
628
|
}>]>>>;
|
632
629
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
633
630
|
type: z.ZodLiteral<"exact">;
|
@@ -866,13 +863,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
866
863
|
}>>>;
|
867
864
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
868
865
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
869
|
-
readonly
|
866
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
870
867
|
readonly INCOMPLETE: "incomplete";
|
871
868
|
readonly REJECTED: "rejected";
|
872
869
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
873
870
|
}>]>, "many">>;
|
874
871
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
875
|
-
readonly
|
872
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
876
873
|
readonly INCOMPLETE: "incomplete";
|
877
874
|
readonly REJECTED: "rejected";
|
878
875
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -889,10 +886,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
889
886
|
id?: string | undefined;
|
890
887
|
status?: {
|
891
888
|
type: "exact";
|
892
|
-
term: "ARCHIVED" | "
|
889
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
893
890
|
} | {
|
894
891
|
type: "anyOf";
|
895
|
-
terms: ("ARCHIVED" | "
|
892
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
896
893
|
} | undefined;
|
897
894
|
data?: any;
|
898
895
|
createdByUserType?: {
|
@@ -989,10 +986,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
989
986
|
id?: string | undefined;
|
990
987
|
status?: {
|
991
988
|
type: "exact";
|
992
|
-
term: "ARCHIVED" | "
|
989
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
993
990
|
} | {
|
994
991
|
type: "anyOf";
|
995
|
-
terms: ("ARCHIVED" | "
|
992
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
996
993
|
} | undefined;
|
997
994
|
data?: any;
|
998
995
|
createdByUserType?: {
|
@@ -1089,10 +1086,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1089
1086
|
id?: string | undefined;
|
1090
1087
|
status?: {
|
1091
1088
|
type: "exact";
|
1092
|
-
term: "ARCHIVED" | "
|
1089
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1093
1090
|
} | {
|
1094
1091
|
type: "anyOf";
|
1095
|
-
terms: ("ARCHIVED" | "
|
1092
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1096
1093
|
} | undefined;
|
1097
1094
|
data?: any;
|
1098
1095
|
createdByUserType?: {
|
@@ -1189,10 +1186,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1189
1186
|
id?: string | undefined;
|
1190
1187
|
status?: {
|
1191
1188
|
type: "exact";
|
1192
|
-
term: "ARCHIVED" | "
|
1189
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1193
1190
|
} | {
|
1194
1191
|
type: "anyOf";
|
1195
|
-
terms: ("ARCHIVED" | "
|
1192
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1196
1193
|
} | undefined;
|
1197
1194
|
data?: any;
|
1198
1195
|
createdByUserType?: {
|
@@ -1293,22 +1290,22 @@ export declare const QueryType: z.ZodObject<{
|
|
1293
1290
|
eventType: z.ZodOptional<z.ZodString>;
|
1294
1291
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1295
1292
|
type: z.ZodLiteral<"anyOf">;
|
1296
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
1293
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
1297
1294
|
}, "strip", z.ZodTypeAny, {
|
1298
1295
|
type: "anyOf";
|
1299
|
-
terms: ("ARCHIVED" | "
|
1296
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1300
1297
|
}, {
|
1301
1298
|
type: "anyOf";
|
1302
|
-
terms: ("ARCHIVED" | "
|
1299
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1303
1300
|
}>, z.ZodObject<{
|
1304
1301
|
type: z.ZodLiteral<"exact">;
|
1305
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
1302
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
1306
1303
|
}, "strip", z.ZodTypeAny, {
|
1307
1304
|
type: "exact";
|
1308
|
-
term: "ARCHIVED" | "
|
1305
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1309
1306
|
}, {
|
1310
1307
|
type: "exact";
|
1311
|
-
term: "ARCHIVED" | "
|
1308
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1312
1309
|
}>]>>>;
|
1313
1310
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
1314
1311
|
type: z.ZodLiteral<"exact">;
|
@@ -1547,13 +1544,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1547
1544
|
}>>>;
|
1548
1545
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1549
1546
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
1550
|
-
readonly
|
1547
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
1551
1548
|
readonly INCOMPLETE: "incomplete";
|
1552
1549
|
readonly REJECTED: "rejected";
|
1553
1550
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
1554
1551
|
}>]>, "many">>;
|
1555
1552
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
1556
|
-
readonly
|
1553
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
1557
1554
|
readonly INCOMPLETE: "incomplete";
|
1558
1555
|
readonly REJECTED: "rejected";
|
1559
1556
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -1570,10 +1567,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1570
1567
|
id?: string | undefined;
|
1571
1568
|
status?: {
|
1572
1569
|
type: "exact";
|
1573
|
-
term: "ARCHIVED" | "
|
1570
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1574
1571
|
} | {
|
1575
1572
|
type: "anyOf";
|
1576
|
-
terms: ("ARCHIVED" | "
|
1573
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1577
1574
|
} | undefined;
|
1578
1575
|
data?: any;
|
1579
1576
|
createdByUserType?: {
|
@@ -1670,10 +1667,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1670
1667
|
id?: string | undefined;
|
1671
1668
|
status?: {
|
1672
1669
|
type: "exact";
|
1673
|
-
term: "ARCHIVED" | "
|
1670
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1674
1671
|
} | {
|
1675
1672
|
type: "anyOf";
|
1676
|
-
terms: ("ARCHIVED" | "
|
1673
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1677
1674
|
} | undefined;
|
1678
1675
|
data?: any;
|
1679
1676
|
createdByUserType?: {
|
@@ -1770,10 +1767,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1770
1767
|
id?: string | undefined;
|
1771
1768
|
status?: {
|
1772
1769
|
type: "exact";
|
1773
|
-
term: "ARCHIVED" | "
|
1770
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1774
1771
|
} | {
|
1775
1772
|
type: "anyOf";
|
1776
|
-
terms: ("ARCHIVED" | "
|
1773
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1777
1774
|
} | undefined;
|
1778
1775
|
data?: any;
|
1779
1776
|
createdByUserType?: {
|
@@ -1870,10 +1867,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1870
1867
|
id?: string | undefined;
|
1871
1868
|
status?: {
|
1872
1869
|
type: "exact";
|
1873
|
-
term: "ARCHIVED" | "
|
1870
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1874
1871
|
} | {
|
1875
1872
|
type: "anyOf";
|
1876
|
-
terms: ("ARCHIVED" | "
|
1873
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1877
1874
|
} | undefined;
|
1878
1875
|
data?: any;
|
1879
1876
|
createdByUserType?: {
|
@@ -1970,10 +1967,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1970
1967
|
id?: string | undefined;
|
1971
1968
|
status?: {
|
1972
1969
|
type: "exact";
|
1973
|
-
term: "ARCHIVED" | "
|
1970
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1974
1971
|
} | {
|
1975
1972
|
type: "anyOf";
|
1976
|
-
terms: ("ARCHIVED" | "
|
1973
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1977
1974
|
} | undefined;
|
1978
1975
|
data?: any;
|
1979
1976
|
createdByUserType?: {
|
@@ -2070,10 +2067,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2070
2067
|
id?: string | undefined;
|
2071
2068
|
status?: {
|
2072
2069
|
type: "exact";
|
2073
|
-
term: "ARCHIVED" | "
|
2070
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2074
2071
|
} | {
|
2075
2072
|
type: "anyOf";
|
2076
|
-
terms: ("ARCHIVED" | "
|
2073
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2077
2074
|
} | undefined;
|
2078
2075
|
data?: any;
|
2079
2076
|
createdByUserType?: {
|
@@ -2173,10 +2170,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2173
2170
|
id?: string | undefined;
|
2174
2171
|
status?: {
|
2175
2172
|
type: "exact";
|
2176
|
-
term: "ARCHIVED" | "
|
2173
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2177
2174
|
} | {
|
2178
2175
|
type: "anyOf";
|
2179
|
-
terms: ("ARCHIVED" | "
|
2176
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2180
2177
|
} | undefined;
|
2181
2178
|
data?: any;
|
2182
2179
|
createdByUserType?: {
|
@@ -2273,10 +2270,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2273
2270
|
id?: string | undefined;
|
2274
2271
|
status?: {
|
2275
2272
|
type: "exact";
|
2276
|
-
term: "ARCHIVED" | "
|
2273
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2277
2274
|
} | {
|
2278
2275
|
type: "anyOf";
|
2279
|
-
terms: ("ARCHIVED" | "
|
2276
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2280
2277
|
} | undefined;
|
2281
2278
|
data?: any;
|
2282
2279
|
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", "
|
6
|
+
export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "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>;
|
10
8
|
export declare const InherentFlags: {
|
11
|
-
readonly
|
9
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
12
10
|
readonly INCOMPLETE: "incomplete";
|
13
11
|
readonly REJECTED: "rejected";
|
14
12
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
15
13
|
};
|
16
14
|
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
15
|
+
export declare const ActionFlag: z.ZodString;
|
17
16
|
export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
18
|
-
readonly
|
17
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
19
18
|
readonly INCOMPLETE: "incomplete";
|
20
19
|
readonly REJECTED: "rejected";
|
21
20
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
22
21
|
}>]>;
|
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", "
|
185
|
+
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
186
186
|
legalStatuses: z.ZodObject<{
|
187
187
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
188
188
|
createdAt: z.ZodString;
|
@@ -292,16 +292,15 @@ 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 PENDING_CERTIFICATION: "pending-certification";
|
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>;
|
301
300
|
}, "strip", z.ZodTypeAny, {
|
302
301
|
type: string;
|
303
302
|
id: string & z.BRAND<"UUID">;
|
304
|
-
status: "ARCHIVED" | "
|
303
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
305
304
|
createdAt: string;
|
306
305
|
createdBy: string;
|
307
306
|
updatedAt: string;
|
@@ -336,11 +335,10 @@ export declare const EventMetadata: z.ZodObject<{
|
|
336
335
|
dateOfEvent?: string | null | undefined;
|
337
336
|
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
338
337
|
updatedBy?: string | null | undefined;
|
339
|
-
modifiedAt?: string | undefined;
|
340
338
|
}, {
|
341
339
|
type: string;
|
342
340
|
id: string;
|
343
|
-
status: "ARCHIVED" | "
|
341
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
344
342
|
createdAt: string;
|
345
343
|
createdBy: string;
|
346
344
|
updatedAt: string;
|
@@ -375,7 +373,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
375
373
|
dateOfEvent?: string | null | undefined;
|
376
374
|
updatedAtLocation?: string | null | undefined;
|
377
375
|
updatedBy?: string | null | undefined;
|
378
|
-
modifiedAt?: string | undefined;
|
379
376
|
}>;
|
380
377
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
381
378
|
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|