@opencrvs/toolkit 1.8.0-rc.fe799b0 → 1.8.0-rc.fef85f2
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +6711 -9366
- package/dist/commons/conditionals/conditionals.d.ts +26 -3
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +39 -17
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +1116 -2067
- package/dist/commons/events/ActionDocument.d.ts +9488 -312
- package/dist/commons/events/ActionInput.d.ts +5331 -558
- package/dist/commons/events/ActionType.d.ts +27 -12
- package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +351 -51
- package/dist/commons/events/EventConfig.d.ts +704 -1245
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3348 -429
- package/dist/commons/events/EventIndex.d.ts +9 -3
- package/dist/commons/events/EventMetadata.d.ts +6 -0
- package/dist/commons/events/FieldConfig.d.ts +568 -74
- package/dist/commons/events/FieldType.d.ts +6 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +154 -3
- package/dist/commons/events/FieldValue.d.ts +76 -2
- package/dist/commons/events/FormConfig.d.ts +633 -48
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/SummaryConfig.d.ts +93 -7
- package/dist/commons/events/TemplateConfig.d.ts +38 -0
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/defineConfig.d.ts +104 -224
- package/dist/commons/events/index.d.ts +4 -1
- package/dist/commons/events/scopes.d.ts +25 -0
- package/dist/commons/events/test.utils.d.ts +141 -214
- package/dist/commons/events/utils.d.ts +196 -69
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1747 -839
- package/package.json +1 -1
|
@@ -15,36 +15,42 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15
15
|
createdAt: z.ZodString;
|
|
16
16
|
createdBy: z.ZodString;
|
|
17
17
|
createdAtLocation: z.ZodString;
|
|
18
|
+
updatedAtLocation: z.ZodString;
|
|
18
19
|
modifiedAt: z.ZodString;
|
|
19
20
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
21
|
updatedBy: z.ZodString;
|
|
21
22
|
trackingId: z.ZodString;
|
|
23
|
+
registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, {
|
|
23
|
-
|
|
25
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
24
26
|
}>, "strip", z.ZodTypeAny, {
|
|
25
27
|
type: string;
|
|
26
28
|
id: string;
|
|
27
29
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
28
|
-
data: Record<string, any>;
|
|
29
30
|
createdAt: string;
|
|
30
31
|
createdBy: string;
|
|
32
|
+
declaration: Record<string, any>;
|
|
31
33
|
createdAtLocation: string;
|
|
34
|
+
updatedAtLocation: string;
|
|
32
35
|
trackingId: string;
|
|
33
36
|
modifiedAt: string;
|
|
34
37
|
updatedBy: string;
|
|
35
38
|
assignedTo?: string | null | undefined;
|
|
39
|
+
registrationNumber?: string | null | undefined;
|
|
36
40
|
}, {
|
|
37
41
|
type: string;
|
|
38
42
|
id: string;
|
|
39
43
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
40
|
-
data: Record<string, any>;
|
|
41
44
|
createdAt: string;
|
|
42
45
|
createdBy: string;
|
|
46
|
+
declaration: Record<string, any>;
|
|
43
47
|
createdAtLocation: string;
|
|
48
|
+
updatedAtLocation: string;
|
|
44
49
|
trackingId: string;
|
|
45
50
|
modifiedAt: string;
|
|
46
51
|
updatedBy: string;
|
|
47
52
|
assignedTo?: string | null | undefined;
|
|
53
|
+
registrationNumber?: string | null | undefined;
|
|
48
54
|
}>;
|
|
49
55
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
50
56
|
type: z.ZodString;
|
|
@@ -46,10 +46,12 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
46
46
|
createdAt: z.ZodString;
|
|
47
47
|
createdBy: z.ZodString;
|
|
48
48
|
createdAtLocation: z.ZodString;
|
|
49
|
+
updatedAtLocation: z.ZodString;
|
|
49
50
|
modifiedAt: z.ZodString;
|
|
50
51
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
52
|
updatedBy: z.ZodString;
|
|
52
53
|
trackingId: z.ZodString;
|
|
54
|
+
registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
55
|
}, "strip", z.ZodTypeAny, {
|
|
54
56
|
type: string;
|
|
55
57
|
id: string;
|
|
@@ -57,10 +59,12 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
57
59
|
createdAt: string;
|
|
58
60
|
createdBy: string;
|
|
59
61
|
createdAtLocation: string;
|
|
62
|
+
updatedAtLocation: string;
|
|
60
63
|
trackingId: string;
|
|
61
64
|
modifiedAt: string;
|
|
62
65
|
updatedBy: string;
|
|
63
66
|
assignedTo?: string | null | undefined;
|
|
67
|
+
registrationNumber?: string | null | undefined;
|
|
64
68
|
}, {
|
|
65
69
|
type: string;
|
|
66
70
|
id: string;
|
|
@@ -68,10 +72,12 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
68
72
|
createdAt: string;
|
|
69
73
|
createdBy: string;
|
|
70
74
|
createdAtLocation: string;
|
|
75
|
+
updatedAtLocation: string;
|
|
71
76
|
trackingId: string;
|
|
72
77
|
modifiedAt: string;
|
|
73
78
|
updatedBy: string;
|
|
74
79
|
assignedTo?: string | null | undefined;
|
|
80
|
+
registrationNumber?: string | null | undefined;
|
|
75
81
|
}>;
|
|
76
82
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
|
77
83
|
export type EventMetadataKeys = `event.${keyof EventMetadata}`;
|