@opencrvs/toolkit 1.8.1-rc.cacd557 → 1.8.1-rc.cc27fe6
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 -392
- package/dist/commons/conditionals/validate.d.ts +11 -2
- 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 -62
- package/dist/commons/events/EventMetadata.d.ts +9 -9
- 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 +61 -7
- 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 +224 -89
- 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,7 +112,7 @@ 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";
|
@@ -253,22 +253,22 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
253
253
|
surname: string;
|
254
254
|
middlename?: string | undefined;
|
255
255
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
256
|
-
firstname: z.
|
257
|
-
surname: z.
|
256
|
+
firstname: z.ZodString;
|
257
|
+
surname: z.ZodString;
|
258
258
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
260
|
-
firstname
|
261
|
-
surname
|
260
|
+
firstname: string;
|
261
|
+
surname: string;
|
262
262
|
middlename?: string | null | undefined;
|
263
263
|
}, {
|
264
|
-
firstname
|
265
|
-
surname
|
264
|
+
firstname: string;
|
265
|
+
surname: string;
|
266
266
|
middlename?: string | null | undefined;
|
267
267
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
268
268
|
}>, "strip", z.ZodTypeAny, {
|
269
269
|
type: string;
|
270
270
|
id: string & z.BRAND<"UUID">;
|
271
|
-
status: "ARCHIVED" | "
|
271
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
272
272
|
createdAt: string;
|
273
273
|
createdBy: string;
|
274
274
|
declaration: Record<string, string | number | boolean | {
|
@@ -298,8 +298,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
298
298
|
surname: string;
|
299
299
|
middlename?: string | undefined;
|
300
300
|
} | {
|
301
|
-
firstname
|
302
|
-
surname
|
301
|
+
firstname: string;
|
302
|
+
surname: string;
|
303
303
|
middlename?: string | null | undefined;
|
304
304
|
} | {
|
305
305
|
country: string;
|
@@ -355,7 +355,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
355
355
|
}, {
|
356
356
|
type: string;
|
357
357
|
id: string;
|
358
|
-
status: "ARCHIVED" | "
|
358
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
359
359
|
createdAt: string;
|
360
360
|
createdBy: string;
|
361
361
|
declaration: Record<string, string | number | boolean | {
|
@@ -385,8 +385,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
385
385
|
surname: string;
|
386
386
|
middlename?: string | undefined;
|
387
387
|
} | {
|
388
|
-
firstname
|
389
|
-
surname
|
388
|
+
firstname: string;
|
389
|
+
surname: string;
|
390
390
|
middlename?: string | null | undefined;
|
391
391
|
} | {
|
392
392
|
country: string;
|
@@ -471,13 +471,13 @@ export declare const Exact: z.ZodObject<{
|
|
471
471
|
}>;
|
472
472
|
export declare const ExactStatus: z.ZodObject<{
|
473
473
|
type: z.ZodLiteral<"exact">;
|
474
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
474
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
475
475
|
}, "strip", z.ZodTypeAny, {
|
476
476
|
type: "exact";
|
477
|
-
term: "ARCHIVED" | "
|
477
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
478
478
|
}, {
|
479
479
|
type: "exact";
|
480
|
-
term: "ARCHIVED" | "
|
480
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
481
481
|
}>;
|
482
482
|
export declare const ExactUserType: z.ZodObject<{
|
483
483
|
type: z.ZodLiteral<"exact">;
|
@@ -501,13 +501,13 @@ export declare const AnyOf: z.ZodObject<{
|
|
501
501
|
}>;
|
502
502
|
export declare const AnyOfStatus: z.ZodObject<{
|
503
503
|
type: z.ZodLiteral<"anyOf">;
|
504
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
504
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
506
506
|
type: "anyOf";
|
507
|
-
terms: ("ARCHIVED" | "
|
507
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
508
508
|
}, {
|
509
509
|
type: "anyOf";
|
510
|
-
terms: ("ARCHIVED" | "
|
510
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
511
511
|
}>;
|
512
512
|
export declare const Range: z.ZodObject<{
|
513
513
|
type: z.ZodLiteral<"range">;
|
@@ -524,13 +524,13 @@ export declare const Range: z.ZodObject<{
|
|
524
524
|
}>;
|
525
525
|
export declare const ContainsFlags: z.ZodObject<{
|
526
526
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
527
|
-
readonly
|
527
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
528
528
|
readonly INCOMPLETE: "incomplete";
|
529
529
|
readonly REJECTED: "rejected";
|
530
530
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
531
531
|
}>]>, "many">>;
|
532
532
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
533
|
-
readonly
|
533
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
534
534
|
readonly INCOMPLETE: "incomplete";
|
535
535
|
readonly REJECTED: "rejected";
|
536
536
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -609,22 +609,22 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
609
609
|
eventType: z.ZodOptional<z.ZodString>;
|
610
610
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
611
611
|
type: z.ZodLiteral<"anyOf">;
|
612
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
612
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
613
613
|
}, "strip", z.ZodTypeAny, {
|
614
614
|
type: "anyOf";
|
615
|
-
terms: ("ARCHIVED" | "
|
615
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
616
616
|
}, {
|
617
617
|
type: "anyOf";
|
618
|
-
terms: ("ARCHIVED" | "
|
618
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
619
619
|
}>, z.ZodObject<{
|
620
620
|
type: z.ZodLiteral<"exact">;
|
621
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
621
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
622
622
|
}, "strip", z.ZodTypeAny, {
|
623
623
|
type: "exact";
|
624
|
-
term: "ARCHIVED" | "
|
624
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
625
625
|
}, {
|
626
626
|
type: "exact";
|
627
|
-
term: "ARCHIVED" | "
|
627
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
628
628
|
}>]>>>;
|
629
629
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
630
630
|
type: z.ZodLiteral<"exact">;
|
@@ -863,13 +863,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
863
863
|
}>>>;
|
864
864
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
865
865
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
866
|
-
readonly
|
866
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
867
867
|
readonly INCOMPLETE: "incomplete";
|
868
868
|
readonly REJECTED: "rejected";
|
869
869
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
870
870
|
}>]>, "many">>;
|
871
871
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
872
|
-
readonly
|
872
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
873
873
|
readonly INCOMPLETE: "incomplete";
|
874
874
|
readonly REJECTED: "rejected";
|
875
875
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -886,10 +886,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
886
886
|
id?: string | undefined;
|
887
887
|
status?: {
|
888
888
|
type: "exact";
|
889
|
-
term: "ARCHIVED" | "
|
889
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
890
890
|
} | {
|
891
891
|
type: "anyOf";
|
892
|
-
terms: ("ARCHIVED" | "
|
892
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
893
893
|
} | undefined;
|
894
894
|
data?: any;
|
895
895
|
createdByUserType?: {
|
@@ -986,10 +986,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
986
986
|
id?: string | undefined;
|
987
987
|
status?: {
|
988
988
|
type: "exact";
|
989
|
-
term: "ARCHIVED" | "
|
989
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
990
990
|
} | {
|
991
991
|
type: "anyOf";
|
992
|
-
terms: ("ARCHIVED" | "
|
992
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
993
993
|
} | undefined;
|
994
994
|
data?: any;
|
995
995
|
createdByUserType?: {
|
@@ -1086,10 +1086,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1086
1086
|
id?: string | undefined;
|
1087
1087
|
status?: {
|
1088
1088
|
type: "exact";
|
1089
|
-
term: "ARCHIVED" | "
|
1089
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1090
1090
|
} | {
|
1091
1091
|
type: "anyOf";
|
1092
|
-
terms: ("ARCHIVED" | "
|
1092
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1093
1093
|
} | undefined;
|
1094
1094
|
data?: any;
|
1095
1095
|
createdByUserType?: {
|
@@ -1186,10 +1186,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
|
|
1186
1186
|
id?: string | undefined;
|
1187
1187
|
status?: {
|
1188
1188
|
type: "exact";
|
1189
|
-
term: "ARCHIVED" | "
|
1189
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1190
1190
|
} | {
|
1191
1191
|
type: "anyOf";
|
1192
|
-
terms: ("ARCHIVED" | "
|
1192
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1193
1193
|
} | undefined;
|
1194
1194
|
data?: any;
|
1195
1195
|
createdByUserType?: {
|
@@ -1290,22 +1290,22 @@ export declare const QueryType: z.ZodObject<{
|
|
1290
1290
|
eventType: z.ZodOptional<z.ZodString>;
|
1291
1291
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1292
1292
|
type: z.ZodLiteral<"anyOf">;
|
1293
|
-
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
1293
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
|
1294
1294
|
}, "strip", z.ZodTypeAny, {
|
1295
1295
|
type: "anyOf";
|
1296
|
-
terms: ("ARCHIVED" | "
|
1296
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1297
1297
|
}, {
|
1298
1298
|
type: "anyOf";
|
1299
|
-
terms: ("ARCHIVED" | "
|
1299
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1300
1300
|
}>, z.ZodObject<{
|
1301
1301
|
type: z.ZodLiteral<"exact">;
|
1302
|
-
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
1302
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
1303
1303
|
}, "strip", z.ZodTypeAny, {
|
1304
1304
|
type: "exact";
|
1305
|
-
term: "ARCHIVED" | "
|
1305
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1306
1306
|
}, {
|
1307
1307
|
type: "exact";
|
1308
|
-
term: "ARCHIVED" | "
|
1308
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1309
1309
|
}>]>>>;
|
1310
1310
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
1311
1311
|
type: z.ZodLiteral<"exact">;
|
@@ -1544,13 +1544,13 @@ export declare const QueryType: z.ZodObject<{
|
|
1544
1544
|
}>>>;
|
1545
1545
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1546
1546
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
1547
|
-
readonly
|
1547
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
1548
1548
|
readonly INCOMPLETE: "incomplete";
|
1549
1549
|
readonly REJECTED: "rejected";
|
1550
1550
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
1551
1551
|
}>]>, "many">>;
|
1552
1552
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
1553
|
-
readonly
|
1553
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
1554
1554
|
readonly INCOMPLETE: "incomplete";
|
1555
1555
|
readonly REJECTED: "rejected";
|
1556
1556
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -1567,10 +1567,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1567
1567
|
id?: string | undefined;
|
1568
1568
|
status?: {
|
1569
1569
|
type: "exact";
|
1570
|
-
term: "ARCHIVED" | "
|
1570
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1571
1571
|
} | {
|
1572
1572
|
type: "anyOf";
|
1573
|
-
terms: ("ARCHIVED" | "
|
1573
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1574
1574
|
} | undefined;
|
1575
1575
|
data?: any;
|
1576
1576
|
createdByUserType?: {
|
@@ -1667,10 +1667,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1667
1667
|
id?: string | undefined;
|
1668
1668
|
status?: {
|
1669
1669
|
type: "exact";
|
1670
|
-
term: "ARCHIVED" | "
|
1670
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1671
1671
|
} | {
|
1672
1672
|
type: "anyOf";
|
1673
|
-
terms: ("ARCHIVED" | "
|
1673
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1674
1674
|
} | undefined;
|
1675
1675
|
data?: any;
|
1676
1676
|
createdByUserType?: {
|
@@ -1767,10 +1767,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1767
1767
|
id?: string | undefined;
|
1768
1768
|
status?: {
|
1769
1769
|
type: "exact";
|
1770
|
-
term: "ARCHIVED" | "
|
1770
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1771
1771
|
} | {
|
1772
1772
|
type: "anyOf";
|
1773
|
-
terms: ("ARCHIVED" | "
|
1773
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1774
1774
|
} | undefined;
|
1775
1775
|
data?: any;
|
1776
1776
|
createdByUserType?: {
|
@@ -1867,10 +1867,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1867
1867
|
id?: string | undefined;
|
1868
1868
|
status?: {
|
1869
1869
|
type: "exact";
|
1870
|
-
term: "ARCHIVED" | "
|
1870
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1871
1871
|
} | {
|
1872
1872
|
type: "anyOf";
|
1873
|
-
terms: ("ARCHIVED" | "
|
1873
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1874
1874
|
} | undefined;
|
1875
1875
|
data?: any;
|
1876
1876
|
createdByUserType?: {
|
@@ -1967,10 +1967,10 @@ export declare const QueryType: z.ZodObject<{
|
|
1967
1967
|
id?: string | undefined;
|
1968
1968
|
status?: {
|
1969
1969
|
type: "exact";
|
1970
|
-
term: "ARCHIVED" | "
|
1970
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1971
1971
|
} | {
|
1972
1972
|
type: "anyOf";
|
1973
|
-
terms: ("ARCHIVED" | "
|
1973
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1974
1974
|
} | undefined;
|
1975
1975
|
data?: any;
|
1976
1976
|
createdByUserType?: {
|
@@ -2067,10 +2067,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2067
2067
|
id?: string | undefined;
|
2068
2068
|
status?: {
|
2069
2069
|
type: "exact";
|
2070
|
-
term: "ARCHIVED" | "
|
2070
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2071
2071
|
} | {
|
2072
2072
|
type: "anyOf";
|
2073
|
-
terms: ("ARCHIVED" | "
|
2073
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2074
2074
|
} | undefined;
|
2075
2075
|
data?: any;
|
2076
2076
|
createdByUserType?: {
|
@@ -2170,10 +2170,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2170
2170
|
id?: string | undefined;
|
2171
2171
|
status?: {
|
2172
2172
|
type: "exact";
|
2173
|
-
term: "ARCHIVED" | "
|
2173
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2174
2174
|
} | {
|
2175
2175
|
type: "anyOf";
|
2176
|
-
terms: ("ARCHIVED" | "
|
2176
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2177
2177
|
} | undefined;
|
2178
2178
|
data?: any;
|
2179
2179
|
createdByUserType?: {
|
@@ -2270,10 +2270,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2270
2270
|
id?: string | undefined;
|
2271
2271
|
status?: {
|
2272
2272
|
type: "exact";
|
2273
|
-
term: "ARCHIVED" | "
|
2273
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
2274
2274
|
} | {
|
2275
2275
|
type: "anyOf";
|
2276
|
-
terms: ("ARCHIVED" | "
|
2276
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2277
2277
|
} | undefined;
|
2278
2278
|
data?: any;
|
2279
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,7 +292,7 @@ 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";
|
@@ -300,7 +300,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
301
301
|
type: string;
|
302
302
|
id: string & z.BRAND<"UUID">;
|
303
|
-
status: "ARCHIVED" | "
|
303
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
304
304
|
createdAt: string;
|
305
305
|
createdBy: string;
|
306
306
|
updatedAt: string;
|
@@ -338,7 +338,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
338
338
|
}, {
|
339
339
|
type: string;
|
340
340
|
id: string;
|
341
|
-
status: "ARCHIVED" | "
|
341
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
342
342
|
createdAt: string;
|
343
343
|
createdBy: string;
|
344
344
|
updatedAt: string;
|