@opencrvs/toolkit 1.8.0-rc.f7aaf07 → 1.8.0-rc.f7e4aad
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 +726 -662
- package/dist/commons/events/ActionDocument.d.ts +381 -387
- package/dist/commons/events/ActionInput.d.ts +126 -126
- package/dist/commons/events/CountryConfigQueryInput.d.ts +884 -222
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
- package/dist/commons/events/Draft.d.ts +23 -23
- package/dist/commons/events/EventDocument.d.ts +270 -275
- package/dist/commons/events/EventIndex.d.ts +120 -141
- package/dist/commons/events/EventMetadata.d.ts +38 -29
- package/dist/commons/events/WorkqueueConfig.d.ts +1504 -494
- package/dist/commons/events/test.utils.d.ts +16 -6
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +7 -6
- package/dist/conditionals/index.js +20 -17
- package/dist/events/index.js +176 -102
- package/package.json +3 -3
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
export declare const CreatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1
|
+
export declare const CreatedAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
|
3
2
|
//# sourceMappingURL=CreatedAtLocation.d.ts.map
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const Draft: z.ZodObject<{
|
3
|
-
id: z.ZodString
|
4
|
-
eventId: z.ZodString
|
3
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
4
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
5
5
|
transactionId: z.ZodString;
|
6
6
|
createdAt: z.ZodString;
|
7
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
8
|
-
id: z.ZodString
|
8
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
9
9
|
transactionId: z.ZodString;
|
10
10
|
createdByUserType: z.ZodEnum<["user", "system"]>;
|
11
11
|
createdAt: z.ZodString;
|
12
12
|
createdBy: z.ZodString;
|
13
13
|
createdByRole: z.ZodString;
|
14
14
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
15
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
15
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
16
16
|
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
17
17
|
filename: z.ZodString;
|
18
18
|
originalFilename: z.ZodString;
|
@@ -139,7 +139,7 @@ export declare const Draft: z.ZodObject<{
|
|
139
139
|
surname: string;
|
140
140
|
middlename?: string | null | undefined;
|
141
141
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
142
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
142
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
143
143
|
filename: z.ZodString;
|
144
144
|
originalFilename: z.ZodString;
|
145
145
|
type: z.ZodString;
|
@@ -264,9 +264,9 @@ export declare const Draft: z.ZodObject<{
|
|
264
264
|
firstname: string;
|
265
265
|
surname: string;
|
266
266
|
middlename?: string | null | undefined;
|
267
|
-
}>, z.ZodNull]>, z.ZodUndefined]>]
|
267
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
268
268
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
269
|
-
originalActionId: z.ZodOptional<z.ZodString
|
269
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
270
270
|
}, {
|
271
271
|
type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
272
272
|
}>, "id">, "strip", z.ZodTypeAny, {
|
@@ -320,7 +320,7 @@ export declare const Draft: z.ZodObject<{
|
|
320
320
|
originalFilename: string;
|
321
321
|
}[] | [string, string] | null | undefined>;
|
322
322
|
createdBySignature?: string | null | undefined;
|
323
|
-
createdAtLocation?: string | null | undefined;
|
323
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
324
324
|
annotation?: Record<string, string | number | boolean | {
|
325
325
|
type: string;
|
326
326
|
filename: string;
|
@@ -362,8 +362,8 @@ export declare const Draft: z.ZodObject<{
|
|
362
362
|
option: string;
|
363
363
|
filename: string;
|
364
364
|
originalFilename: string;
|
365
|
-
}[] | [string, string] | null | undefined> | undefined;
|
366
|
-
originalActionId?: string | undefined;
|
365
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
366
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
367
367
|
}, {
|
368
368
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
369
369
|
status: "Rejected" | "Requested" | "Accepted";
|
@@ -457,14 +457,14 @@ export declare const Draft: z.ZodObject<{
|
|
457
457
|
option: string;
|
458
458
|
filename: string;
|
459
459
|
originalFilename: string;
|
460
|
-
}[] | [string, string] | null | undefined> | undefined;
|
461
|
-
originalActionId?: string | undefined;
|
460
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
461
|
+
originalActionId?: string | null | undefined;
|
462
462
|
}>;
|
463
463
|
}, "strip", z.ZodTypeAny, {
|
464
|
-
id: string
|
464
|
+
id: string & z.BRAND<"UUID">;
|
465
465
|
transactionId: string;
|
466
466
|
createdAt: string;
|
467
|
-
eventId: string
|
467
|
+
eventId: string & z.BRAND<"UUID">;
|
468
468
|
action: {
|
469
469
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
470
470
|
status: "Rejected" | "Requested" | "Accepted";
|
@@ -516,7 +516,7 @@ export declare const Draft: z.ZodObject<{
|
|
516
516
|
originalFilename: string;
|
517
517
|
}[] | [string, string] | null | undefined>;
|
518
518
|
createdBySignature?: string | null | undefined;
|
519
|
-
createdAtLocation?: string | null | undefined;
|
519
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
520
520
|
annotation?: Record<string, string | number | boolean | {
|
521
521
|
type: string;
|
522
522
|
filename: string;
|
@@ -558,8 +558,8 @@ export declare const Draft: z.ZodObject<{
|
|
558
558
|
option: string;
|
559
559
|
filename: string;
|
560
560
|
originalFilename: string;
|
561
|
-
}[] | [string, string] | null | undefined> | undefined;
|
562
|
-
originalActionId?: string | undefined;
|
561
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
562
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
563
563
|
};
|
564
564
|
}, {
|
565
565
|
id: string;
|
@@ -659,12 +659,12 @@ export declare const Draft: z.ZodObject<{
|
|
659
659
|
option: string;
|
660
660
|
filename: string;
|
661
661
|
originalFilename: string;
|
662
|
-
}[] | [string, string] | null | undefined> | undefined;
|
663
|
-
originalActionId?: string | undefined;
|
662
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
663
|
+
originalActionId?: string | null | undefined;
|
664
664
|
};
|
665
665
|
}>;
|
666
666
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
667
|
-
eventId: z.ZodString
|
667
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
668
668
|
transactionId: z.ZodString;
|
669
669
|
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
670
670
|
filename: z.ZodString;
|
@@ -918,7 +918,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
918
918
|
surname: string;
|
919
919
|
middlename?: string | null | undefined;
|
920
920
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
921
|
-
originalActionId: z.ZodOptional<z.ZodString
|
921
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
922
922
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
923
923
|
}, {
|
924
924
|
type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
@@ -969,7 +969,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
969
969
|
filename: string;
|
970
970
|
originalFilename: string;
|
971
971
|
}[] | [string, string] | null | undefined>;
|
972
|
-
eventId: string
|
972
|
+
eventId: string & z.BRAND<"UUID">;
|
973
973
|
annotation?: Record<string, string | number | boolean | {
|
974
974
|
type: string;
|
975
975
|
filename: string;
|
@@ -1012,7 +1012,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1012
1012
|
filename: string;
|
1013
1013
|
originalFilename: string;
|
1014
1014
|
}[] | [string, string] | null | undefined> | undefined;
|
1015
|
-
originalActionId?: string | undefined;
|
1015
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1016
1016
|
keepAssignment?: boolean | undefined;
|
1017
1017
|
}, {
|
1018
1018
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|