@opencrvs/toolkit 1.9.13-rc.7fdf45e → 1.9.13-rc.8742682
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 +2489 -166
- package/dist/commons/conditionals/conditionals.d.ts +345 -2
- package/dist/commons/conditionals/validate.d.ts +9 -0
- package/dist/commons/events/ActionInput.d.ts +204 -0
- package/dist/commons/events/Draft.d.ts +6 -0
- package/dist/commons/events/EventConfig.d.ts +7 -0
- package/dist/commons/events/FieldConfig.d.ts +1489 -97
- package/dist/commons/events/defineConfig.d.ts +1 -0
- package/dist/commons/events/field.d.ts +47 -1
- package/dist/commons/events/utils.d.ts +2 -170
- package/dist/conditionals/index.js +48 -1
- package/dist/events/index.js +143 -51
- package/dist/notification/index.js +115 -39
- package/package.json +7 -7
|
@@ -88,6 +88,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
88
88
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>;
|
|
89
89
|
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
|
90
90
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
91
93
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
|
92
94
|
}, {
|
|
93
95
|
type: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DUPLICATE_DETECTED", "REJECT", "MARK_AS_DUPLICATE", "MARK_AS_NOT_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
|
@@ -102,6 +104,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
102
104
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | undefined;
|
|
103
105
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
|
104
106
|
keepAssignment?: boolean | undefined;
|
|
107
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
108
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
105
109
|
}, {
|
|
106
110
|
type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
|
107
111
|
status: "Rejected" | "Requested" | "Accepted";
|
|
@@ -112,6 +116,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
112
116
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | undefined;
|
|
113
117
|
originalActionId?: string | undefined;
|
|
114
118
|
keepAssignment?: boolean | undefined;
|
|
119
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
120
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
115
121
|
}>;
|
|
116
122
|
export type Draft = z.infer<typeof Draft>;
|
|
117
123
|
export type DraftInput = z.infer<typeof DraftInput>;
|
|
@@ -17,12 +17,15 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
17
17
|
dateOfEvent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
18
18
|
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
19
19
|
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
20
|
+
$$code: z.ZodOptional<z.ZodString>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
$$field: string;
|
|
22
23
|
$$subfield: string[];
|
|
24
|
+
$$code?: string | undefined;
|
|
23
25
|
}, {
|
|
24
26
|
$$field: string;
|
|
25
27
|
$$subfield?: string[] | undefined;
|
|
28
|
+
$$code?: string | undefined;
|
|
26
29
|
}>, z.ZodObject<{
|
|
27
30
|
$$event: z.ZodEnum<["createdAt", "updatedAt", "legalStatuses.DECLARED.createdAt", "legalStatuses.DECLARED.acceptedAt", "legalStatuses.REGISTERED.createdAt", "legalStatuses.REGISTERED.acceptedAt"]>;
|
|
28
31
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1287,6 +1290,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1287
1290
|
dateOfEvent?: {
|
|
1288
1291
|
$$field: string;
|
|
1289
1292
|
$$subfield: string[];
|
|
1293
|
+
$$code?: string | undefined;
|
|
1290
1294
|
} | {
|
|
1291
1295
|
$$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
|
|
1292
1296
|
} | undefined;
|
|
@@ -1618,6 +1622,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1618
1622
|
dateOfEvent?: {
|
|
1619
1623
|
$$field: string;
|
|
1620
1624
|
$$subfield?: string[] | undefined;
|
|
1625
|
+
$$code?: string | undefined;
|
|
1621
1626
|
} | {
|
|
1622
1627
|
$$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
|
|
1623
1628
|
} | undefined;
|
|
@@ -1973,6 +1978,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1973
1978
|
dateOfEvent?: {
|
|
1974
1979
|
$$field: string;
|
|
1975
1980
|
$$subfield: string[];
|
|
1981
|
+
$$code?: string | undefined;
|
|
1976
1982
|
} | {
|
|
1977
1983
|
$$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
|
|
1978
1984
|
} | undefined;
|
|
@@ -2304,6 +2310,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2304
2310
|
dateOfEvent?: {
|
|
2305
2311
|
$$field: string;
|
|
2306
2312
|
$$subfield?: string[] | undefined;
|
|
2313
|
+
$$code?: string | undefined;
|
|
2307
2314
|
} | {
|
|
2308
2315
|
$$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
|
|
2309
2316
|
} | undefined;
|