@opencrvs/toolkit 1.8.1-rc.38945e7 → 1.8.1-rc.38ac682
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 +24 -0
- package/dist/commons/events/ActionConfig.d.ts +6654 -2652
- package/dist/commons/events/ActionDocument.d.ts +36 -0
- package/dist/commons/events/ActionInput.d.ts +36 -0
- package/dist/commons/events/EventConfig.d.ts +2726 -937
- package/dist/commons/events/EventDocument.d.ts +26 -0
- package/dist/commons/events/FieldConfig.d.ts +302 -2
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +9 -2
- package/dist/commons/events/FormConfig.d.ts +3566 -1688
- package/dist/commons/events/PageConfig.d.ts +462 -0
- package/dist/commons/events/defineConfig.d.ts +279 -0
- package/dist/commons/events/test.utils.d.ts +5 -1
- package/dist/commons/events/utils.d.ts +496 -0
- package/dist/events/index.js +33 -7
- package/package.json +1 -1
@@ -7945,10 +7945,24 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
7945
7945
|
}, {
|
7946
7946
|
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
7947
7947
|
requestId: z.ZodString;
|
7948
|
+
reason: z.ZodObject<{
|
7949
|
+
message: z.ZodString;
|
7950
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
7951
|
+
}, "strip", z.ZodTypeAny, {
|
7952
|
+
message: string;
|
7953
|
+
isDuplicate?: boolean | undefined;
|
7954
|
+
}, {
|
7955
|
+
message: string;
|
7956
|
+
isDuplicate?: boolean | undefined;
|
7957
|
+
}>;
|
7948
7958
|
}>, "strip", z.ZodTypeAny, {
|
7949
7959
|
type: "REJECT_CORRECTION";
|
7950
7960
|
id: string & z.BRAND<"UUID">;
|
7951
7961
|
status: "Rejected" | "Requested" | "Accepted";
|
7962
|
+
reason: {
|
7963
|
+
message: string;
|
7964
|
+
isDuplicate?: boolean | undefined;
|
7965
|
+
};
|
7952
7966
|
transactionId: string;
|
7953
7967
|
createdByUserType: "system" | "user";
|
7954
7968
|
createdAt: string;
|
@@ -8052,6 +8066,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
8052
8066
|
type: "REJECT_CORRECTION";
|
8053
8067
|
id: string;
|
8054
8068
|
status: "Rejected" | "Requested" | "Accepted";
|
8069
|
+
reason: {
|
8070
|
+
message: string;
|
8071
|
+
isDuplicate?: boolean | undefined;
|
8072
|
+
};
|
8055
8073
|
transactionId: string;
|
8056
8074
|
createdByUserType: "system" | "user";
|
8057
8075
|
createdAt: string;
|
@@ -15610,10 +15628,24 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
15610
15628
|
}, {
|
15611
15629
|
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
15612
15630
|
requestId: z.ZodString;
|
15631
|
+
reason: z.ZodObject<{
|
15632
|
+
message: z.ZodString;
|
15633
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
15634
|
+
}, "strip", z.ZodTypeAny, {
|
15635
|
+
message: string;
|
15636
|
+
isDuplicate?: boolean | undefined;
|
15637
|
+
}, {
|
15638
|
+
message: string;
|
15639
|
+
isDuplicate?: boolean | undefined;
|
15640
|
+
}>;
|
15613
15641
|
}>, "strip", z.ZodTypeAny, {
|
15614
15642
|
type: "REJECT_CORRECTION";
|
15615
15643
|
id: string & z.BRAND<"UUID">;
|
15616
15644
|
status: "Rejected" | "Requested" | "Accepted";
|
15645
|
+
reason: {
|
15646
|
+
message: string;
|
15647
|
+
isDuplicate?: boolean | undefined;
|
15648
|
+
};
|
15617
15649
|
transactionId: string;
|
15618
15650
|
createdByUserType: "system" | "user";
|
15619
15651
|
createdAt: string;
|
@@ -15717,6 +15749,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
15717
15749
|
type: "REJECT_CORRECTION";
|
15718
15750
|
id: string;
|
15719
15751
|
status: "Rejected" | "Requested" | "Accepted";
|
15752
|
+
reason: {
|
15753
|
+
message: string;
|
15754
|
+
isDuplicate?: boolean | undefined;
|
15755
|
+
};
|
15720
15756
|
transactionId: string;
|
15721
15757
|
createdByUserType: "system" | "user";
|
15722
15758
|
createdAt: string;
|
@@ -5971,8 +5971,22 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
|
|
5971
5971
|
}, {
|
5972
5972
|
requestId: z.ZodString;
|
5973
5973
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
5974
|
+
reason: z.ZodObject<{
|
5975
|
+
message: z.ZodString;
|
5976
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
5977
|
+
}, "strip", z.ZodTypeAny, {
|
5978
|
+
message: string;
|
5979
|
+
isDuplicate?: boolean | undefined;
|
5980
|
+
}, {
|
5981
|
+
message: string;
|
5982
|
+
isDuplicate?: boolean | undefined;
|
5983
|
+
}>;
|
5974
5984
|
}>, "strip", z.ZodTypeAny, {
|
5975
5985
|
type: "REJECT_CORRECTION";
|
5986
|
+
reason: {
|
5987
|
+
message: string;
|
5988
|
+
isDuplicate?: boolean | undefined;
|
5989
|
+
};
|
5976
5990
|
transactionId: string;
|
5977
5991
|
declaration: Record<string, string | number | boolean | {
|
5978
5992
|
type: string;
|
@@ -6069,6 +6083,10 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
|
|
6069
6083
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
6070
6084
|
keepAssignment?: boolean | undefined;
|
6071
6085
|
}, {
|
6086
|
+
reason: {
|
6087
|
+
message: string;
|
6088
|
+
isDuplicate?: boolean | undefined;
|
6089
|
+
};
|
6072
6090
|
transactionId: string;
|
6073
6091
|
requestId: string;
|
6074
6092
|
eventId: string;
|
@@ -13085,8 +13103,22 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
13085
13103
|
}, {
|
13086
13104
|
requestId: z.ZodString;
|
13087
13105
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
13106
|
+
reason: z.ZodObject<{
|
13107
|
+
message: z.ZodString;
|
13108
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
13109
|
+
}, "strip", z.ZodTypeAny, {
|
13110
|
+
message: string;
|
13111
|
+
isDuplicate?: boolean | undefined;
|
13112
|
+
}, {
|
13113
|
+
message: string;
|
13114
|
+
isDuplicate?: boolean | undefined;
|
13115
|
+
}>;
|
13088
13116
|
}>, "strip", z.ZodTypeAny, {
|
13089
13117
|
type: "REJECT_CORRECTION";
|
13118
|
+
reason: {
|
13119
|
+
message: string;
|
13120
|
+
isDuplicate?: boolean | undefined;
|
13121
|
+
};
|
13090
13122
|
transactionId: string;
|
13091
13123
|
declaration: Record<string, string | number | boolean | {
|
13092
13124
|
type: string;
|
@@ -13183,6 +13215,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
13183
13215
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
13184
13216
|
keepAssignment?: boolean | undefined;
|
13185
13217
|
}, {
|
13218
|
+
reason: {
|
13219
|
+
message: string;
|
13220
|
+
isDuplicate?: boolean | undefined;
|
13221
|
+
};
|
13186
13222
|
transactionId: string;
|
13187
13223
|
requestId: string;
|
13188
13224
|
eventId: string;
|