@opencrvs/toolkit 2.1.0-rc.9c06fd8 → 2.1.0-rc.9cf8328
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/application-config/index.js +1 -1
- package/dist/commons/api/router.d.ts +33 -33
- package/dist/commons/events/ActionDocument.d.ts +6 -6
- package/dist/commons/events/EventDocument.d.ts +2 -2
- package/dist/commons/events/test.utils.d.ts +0 -3
- package/dist/commons/events/utils.d.ts +3 -3
- package/dist/events/index.js +1 -2
- package/dist/notification/index.js +1 -1
- package/opencrvs-toolkit-2.1.0-rc.9cf8328.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.1.0-rc.9c06fd8.tgz +0 -0
|
@@ -992,7 +992,7 @@ var EditAction = ActionBase.extend(
|
|
|
992
992
|
/** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
|
|
993
993
|
content: z13.object({
|
|
994
994
|
comment: z13.string().describe("Comment for the edit action.").optional()
|
|
995
|
-
})
|
|
995
|
+
}).optional()
|
|
996
996
|
}).shape
|
|
997
997
|
);
|
|
998
998
|
var PrintContent = z13.object({
|
|
@@ -402,14 +402,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
402
402
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
403
403
|
status: "Requested" | "Accepted" | "Rejected";
|
|
404
404
|
type: "EDIT";
|
|
405
|
-
content: {
|
|
406
|
-
comment?: string | undefined;
|
|
407
|
-
};
|
|
408
405
|
createdByRole?: string | undefined;
|
|
409
406
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
410
407
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
411
408
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
412
409
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
410
|
+
content?: {
|
|
411
|
+
comment?: string | undefined;
|
|
412
|
+
} | undefined;
|
|
413
413
|
} | {
|
|
414
414
|
id: string & import("zod").$brand<"UUID">;
|
|
415
415
|
transactionId: string;
|
|
@@ -728,14 +728,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
728
728
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
729
729
|
status: "Requested" | "Accepted" | "Rejected";
|
|
730
730
|
type: "EDIT";
|
|
731
|
-
content: {
|
|
732
|
-
comment?: string | undefined;
|
|
733
|
-
};
|
|
734
731
|
createdByRole?: string | undefined;
|
|
735
732
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
736
733
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
737
734
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
738
735
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
736
|
+
content?: {
|
|
737
|
+
comment?: string | undefined;
|
|
738
|
+
} | undefined;
|
|
739
739
|
} | {
|
|
740
740
|
id: string & import("zod").$brand<"UUID">;
|
|
741
741
|
transactionId: string;
|
|
@@ -1053,14 +1053,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1053
1053
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1054
1054
|
status: "Requested" | "Accepted" | "Rejected";
|
|
1055
1055
|
type: "EDIT";
|
|
1056
|
-
content: {
|
|
1057
|
-
comment?: string | undefined;
|
|
1058
|
-
};
|
|
1059
1056
|
createdByRole?: string | undefined;
|
|
1060
1057
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1061
1058
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1062
1059
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1063
1060
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1061
|
+
content?: {
|
|
1062
|
+
comment?: string | undefined;
|
|
1063
|
+
} | undefined;
|
|
1064
1064
|
} | {
|
|
1065
1065
|
id: string & import("zod").$brand<"UUID">;
|
|
1066
1066
|
transactionId: string;
|
|
@@ -1824,14 +1824,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1824
1824
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1825
1825
|
status: "Requested" | "Accepted" | "Rejected";
|
|
1826
1826
|
type: "EDIT";
|
|
1827
|
-
content: {
|
|
1828
|
-
comment?: string | undefined;
|
|
1829
|
-
};
|
|
1830
1827
|
createdByRole?: string | undefined;
|
|
1831
1828
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1832
1829
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1833
1830
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1834
1831
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1832
|
+
content?: {
|
|
1833
|
+
comment?: string | undefined;
|
|
1834
|
+
} | undefined;
|
|
1835
1835
|
} | {
|
|
1836
1836
|
id: string & import("zod").$brand<"UUID">;
|
|
1837
1837
|
transactionId: string;
|
|
@@ -2181,14 +2181,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2181
2181
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
2182
2182
|
status: "Requested" | "Accepted" | "Rejected";
|
|
2183
2183
|
type: "EDIT";
|
|
2184
|
-
content: {
|
|
2185
|
-
comment?: string | undefined;
|
|
2186
|
-
};
|
|
2187
2184
|
createdByRole?: string | undefined;
|
|
2188
2185
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
2189
2186
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2190
2187
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
2191
2188
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2189
|
+
content?: {
|
|
2190
|
+
comment?: string | undefined;
|
|
2191
|
+
} | undefined;
|
|
2192
2192
|
} | {
|
|
2193
2193
|
id: string & import("zod").$brand<"UUID">;
|
|
2194
2194
|
transactionId: string;
|
|
@@ -4639,14 +4639,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4639
4639
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
4640
4640
|
status: "Requested" | "Accepted" | "Rejected";
|
|
4641
4641
|
type: "EDIT";
|
|
4642
|
-
content: {
|
|
4643
|
-
comment?: string | undefined;
|
|
4644
|
-
};
|
|
4645
4642
|
createdByRole?: string | undefined;
|
|
4646
4643
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4647
4644
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4648
4645
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
4649
4646
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4647
|
+
content?: {
|
|
4648
|
+
comment?: string | undefined;
|
|
4649
|
+
} | undefined;
|
|
4650
4650
|
} | {
|
|
4651
4651
|
id: string & import("zod").$brand<"UUID">;
|
|
4652
4652
|
transactionId: string;
|
|
@@ -5273,14 +5273,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5273
5273
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
5274
5274
|
status: "Requested" | "Accepted" | "Rejected";
|
|
5275
5275
|
type: "EDIT";
|
|
5276
|
-
content: {
|
|
5277
|
-
comment?: string | undefined;
|
|
5278
|
-
};
|
|
5279
5276
|
createdByRole?: string | undefined;
|
|
5280
5277
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
5281
5278
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5282
5279
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
5283
5280
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5281
|
+
content?: {
|
|
5282
|
+
comment?: string | undefined;
|
|
5283
|
+
} | undefined;
|
|
5284
5284
|
} | {
|
|
5285
5285
|
id: string & import("zod").$brand<"UUID">;
|
|
5286
5286
|
transactionId: string;
|
|
@@ -5608,14 +5608,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5608
5608
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
5609
5609
|
status: "Requested" | "Accepted" | "Rejected";
|
|
5610
5610
|
type: "EDIT";
|
|
5611
|
-
content: {
|
|
5612
|
-
comment?: string | undefined;
|
|
5613
|
-
};
|
|
5614
5611
|
createdByRole?: string | undefined;
|
|
5615
5612
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
5616
5613
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5617
5614
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
5618
5615
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5616
|
+
content?: {
|
|
5617
|
+
comment?: string | undefined;
|
|
5618
|
+
} | undefined;
|
|
5619
5619
|
} | {
|
|
5620
5620
|
id: string & import("zod").$brand<"UUID">;
|
|
5621
5621
|
transactionId: string;
|
|
@@ -6903,14 +6903,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6903
6903
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
6904
6904
|
status: "Requested" | "Accepted" | "Rejected";
|
|
6905
6905
|
type: "EDIT";
|
|
6906
|
-
content: {
|
|
6907
|
-
comment?: string | undefined;
|
|
6908
|
-
};
|
|
6909
6906
|
createdByRole?: string | undefined;
|
|
6910
6907
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6911
6908
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6912
6909
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
6913
6910
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6911
|
+
content?: {
|
|
6912
|
+
comment?: string | undefined;
|
|
6913
|
+
} | undefined;
|
|
6914
6914
|
} | {
|
|
6915
6915
|
id: string & import("zod").$brand<"UUID">;
|
|
6916
6916
|
transactionId: string;
|
|
@@ -7237,14 +7237,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7237
7237
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
7238
7238
|
status: "Requested" | "Accepted" | "Rejected";
|
|
7239
7239
|
type: "EDIT";
|
|
7240
|
-
content: {
|
|
7241
|
-
comment?: string | undefined;
|
|
7242
|
-
};
|
|
7243
7240
|
createdByRole?: string | undefined;
|
|
7244
7241
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
7245
7242
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
7246
7243
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
7247
7244
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
7245
|
+
content?: {
|
|
7246
|
+
comment?: string | undefined;
|
|
7247
|
+
} | undefined;
|
|
7248
7248
|
} | {
|
|
7249
7249
|
id: string & import("zod").$brand<"UUID">;
|
|
7250
7250
|
transactionId: string;
|
|
@@ -7622,14 +7622,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7622
7622
|
declaration: Record<string, unknown>;
|
|
7623
7623
|
status: "Requested" | "Accepted" | "Rejected";
|
|
7624
7624
|
type: "EDIT";
|
|
7625
|
-
content: {
|
|
7626
|
-
comment?: string | undefined;
|
|
7627
|
-
};
|
|
7628
7625
|
createdByRole?: string | undefined;
|
|
7629
7626
|
createdBySignature?: string | null | undefined;
|
|
7630
7627
|
createdAtLocation?: string | null | undefined;
|
|
7631
7628
|
annotation?: Record<string, unknown> | null | undefined;
|
|
7632
7629
|
originalActionId?: string | null | undefined;
|
|
7630
|
+
content?: {
|
|
7631
|
+
comment?: string | undefined;
|
|
7632
|
+
} | undefined;
|
|
7633
7633
|
} | {
|
|
7634
7634
|
id: string;
|
|
7635
7635
|
transactionId: string;
|
|
@@ -165,9 +165,9 @@ declare const EditAction: z.ZodObject<{
|
|
|
165
165
|
}>;
|
|
166
166
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
167
167
|
type: z.ZodLiteral<"EDIT">;
|
|
168
|
-
content: z.ZodObject<{
|
|
168
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
169
169
|
comment: z.ZodOptional<z.ZodString>;
|
|
170
|
-
}, z.core.$strip
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
export type EditAction = z.infer<typeof EditAction>;
|
|
173
173
|
export declare const PrintContent: z.ZodObject<{
|
|
@@ -653,9 +653,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
653
653
|
}>;
|
|
654
654
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
655
655
|
type: z.ZodLiteral<"EDIT">;
|
|
656
|
-
content: z.ZodObject<{
|
|
656
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
657
657
|
comment: z.ZodOptional<z.ZodString>;
|
|
658
|
-
}, z.core.$strip
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
659
|
}, z.core.$strip>, z.ZodObject<{
|
|
660
660
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
661
661
|
transactionId: z.ZodString;
|
|
@@ -1116,9 +1116,9 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1116
1116
|
}>;
|
|
1117
1117
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1118
1118
|
type: z.ZodLiteral<"EDIT">;
|
|
1119
|
-
content: z.ZodObject<{
|
|
1119
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
1120
1120
|
comment: z.ZodOptional<z.ZodString>;
|
|
1121
|
-
}, z.core.$strip
|
|
1121
|
+
}, z.core.$strip>>;
|
|
1122
1122
|
}, z.core.$strip>, z.ZodObject<{
|
|
1123
1123
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
1124
1124
|
transactionId: z.ZodString;
|
|
@@ -410,9 +410,9 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
410
410
|
}>;
|
|
411
411
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
412
412
|
type: z.ZodLiteral<"EDIT">;
|
|
413
|
-
content: z.ZodObject<{
|
|
413
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
414
414
|
comment: z.ZodOptional<z.ZodString>;
|
|
415
|
-
}, z.core.$strip
|
|
415
|
+
}, z.core.$strip>>;
|
|
416
416
|
}, z.core.$strip>, z.ZodObject<{
|
|
417
417
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
418
418
|
transactionId: z.ZodString;
|
|
@@ -101,9 +101,6 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
101
101
|
annotation: {};
|
|
102
102
|
keepAssignment?: boolean | undefined;
|
|
103
103
|
type: "EDIT";
|
|
104
|
-
content: {
|
|
105
|
-
comment: string;
|
|
106
|
-
};
|
|
107
104
|
eventId: string;
|
|
108
105
|
};
|
|
109
106
|
assign: (eventId: string, input?: Partial<Pick<AssignActionInput, "transactionId" | "assignedTo">>) => {
|
|
@@ -203,14 +203,14 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
203
203
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
204
204
|
status: "Requested" | "Accepted" | "Rejected";
|
|
205
205
|
type: "EDIT";
|
|
206
|
-
content: {
|
|
207
|
-
comment?: string | undefined;
|
|
208
|
-
};
|
|
209
206
|
createdByRole?: string | undefined;
|
|
210
207
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
211
208
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
212
209
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
213
210
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
211
|
+
content?: {
|
|
212
|
+
comment?: string | undefined;
|
|
213
|
+
} | undefined;
|
|
214
214
|
} | {
|
|
215
215
|
id: string & import("zod").$brand<"UUID">;
|
|
216
216
|
transactionId: string;
|
package/dist/events/index.js
CHANGED
|
@@ -1679,7 +1679,7 @@ var EditAction = ActionBase.extend(
|
|
|
1679
1679
|
/** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
|
|
1680
1680
|
content: z14.object({
|
|
1681
1681
|
comment: z14.string().describe("Comment for the edit action.").optional()
|
|
1682
|
-
})
|
|
1682
|
+
}).optional()
|
|
1683
1683
|
}).shape
|
|
1684
1684
|
);
|
|
1685
1685
|
var PrintContent = z14.object({
|
|
@@ -9961,7 +9961,6 @@ function eventPayloadGenerator(rng, configuration = tennisClubMembershipEvent) {
|
|
|
9961
9961
|
},
|
|
9962
9962
|
edit: (eventId, input = {}) => ({
|
|
9963
9963
|
type: ActionType.EDIT,
|
|
9964
|
-
content: { comment: "Test comment" },
|
|
9965
9964
|
transactionId: input.transactionId ?? getUUID(),
|
|
9966
9965
|
declaration: input.declaration ?? generateActionDeclarationInput(configuration, ActionType.EDIT, rng),
|
|
9967
9966
|
annotation: input.annotation ?? generateActionAnnotationInput(configuration, ActionType.EDIT, rng),
|
|
@@ -1219,7 +1219,7 @@ var EditAction = ActionBase.extend(
|
|
|
1219
1219
|
/** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
|
|
1220
1220
|
content: z14.object({
|
|
1221
1221
|
comment: z14.string().describe("Comment for the edit action.").optional()
|
|
1222
|
-
})
|
|
1222
|
+
}).optional()
|
|
1223
1223
|
}).shape
|
|
1224
1224
|
);
|
|
1225
1225
|
var PrintContent = z14.object({
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|