@opencrvs/toolkit 2.1.0-rc.6ec0d1f → 2.1.0-rc.7051d1e

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.
@@ -989,10 +989,9 @@ var NotifiedAction = ActionBase.extend(
989
989
  var EditAction = ActionBase.extend(
990
990
  z13.object({
991
991
  type: z13.literal(ActionType.EDIT),
992
- /** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
993
992
  content: z13.object({
994
993
  comment: z13.string().describe("Comment for the edit action.").optional()
995
- }).optional()
994
+ })
996
995
  }).shape
997
996
  );
998
997
  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
+ };
405
408
  createdByRole?: string | undefined;
406
409
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
407
410
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
408
411
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
409
412
  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
+ };
731
734
  createdByRole?: string | undefined;
732
735
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
733
736
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
734
737
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
735
738
  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
+ };
1056
1059
  createdByRole?: string | undefined;
1057
1060
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1058
1061
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1059
1062
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1060
1063
  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;
@@ -1482,6 +1482,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1482
1482
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1483
1483
  eventId: string;
1484
1484
  transactionId: string;
1485
+ content: {
1486
+ comment?: string | undefined;
1487
+ };
1485
1488
  declaration?: Record<string, unknown> | undefined;
1486
1489
  annotation?: Record<string, unknown> | undefined;
1487
1490
  originalActionId?: string | undefined;
@@ -1824,14 +1827,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1824
1827
  declaration: Record<string, import("../commons").FieldUpdateValue>;
1825
1828
  status: "Requested" | "Accepted" | "Rejected";
1826
1829
  type: "EDIT";
1830
+ content: {
1831
+ comment?: string | undefined;
1832
+ };
1827
1833
  createdByRole?: string | undefined;
1828
1834
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1829
1835
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1830
1836
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1831
1837
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1832
- content?: {
1833
- comment?: string | undefined;
1834
- } | undefined;
1835
1838
  } | {
1836
1839
  id: string & import("zod").$brand<"UUID">;
1837
1840
  transactionId: string;
@@ -2181,14 +2184,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2181
2184
  declaration: Record<string, import("../commons").FieldUpdateValue>;
2182
2185
  status: "Requested" | "Accepted" | "Rejected";
2183
2186
  type: "EDIT";
2187
+ content: {
2188
+ comment?: string | undefined;
2189
+ };
2184
2190
  createdByRole?: string | undefined;
2185
2191
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2186
2192
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2187
2193
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2188
2194
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2189
- content?: {
2190
- comment?: string | undefined;
2191
- } | undefined;
2192
2195
  } | {
2193
2196
  id: string & import("zod").$brand<"UUID">;
2194
2197
  transactionId: string;
@@ -2471,6 +2474,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2471
2474
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2472
2475
  eventId: string;
2473
2476
  transactionId: string;
2477
+ content: {
2478
+ comment?: string | undefined;
2479
+ };
2474
2480
  declaration?: Record<string, unknown> | undefined;
2475
2481
  annotation?: Record<string, unknown> | undefined;
2476
2482
  originalActionId?: string | undefined;
@@ -2775,6 +2781,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2775
2781
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2776
2782
  eventId: string;
2777
2783
  transactionId: string;
2784
+ content: {
2785
+ comment?: string | undefined;
2786
+ };
2778
2787
  declaration?: Record<string, unknown> | undefined;
2779
2788
  annotation?: Record<string, unknown> | undefined;
2780
2789
  originalActionId?: string | undefined;
@@ -3079,6 +3088,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3079
3088
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3080
3089
  eventId: string;
3081
3090
  transactionId: string;
3091
+ content: {
3092
+ comment?: string | undefined;
3093
+ };
3082
3094
  declaration?: Record<string, unknown> | undefined;
3083
3095
  annotation?: Record<string, unknown> | undefined;
3084
3096
  originalActionId?: string | undefined;
@@ -3383,6 +3395,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3383
3395
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3384
3396
  eventId: string;
3385
3397
  transactionId: string;
3398
+ content: {
3399
+ comment?: string | undefined;
3400
+ };
3386
3401
  declaration?: Record<string, unknown> | undefined;
3387
3402
  annotation?: Record<string, unknown> | undefined;
3388
3403
  originalActionId?: string | undefined;
@@ -3687,6 +3702,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3687
3702
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3688
3703
  eventId: string;
3689
3704
  transactionId: string;
3705
+ content: {
3706
+ comment?: string | undefined;
3707
+ };
3690
3708
  declaration?: Record<string, unknown> | undefined;
3691
3709
  annotation?: Record<string, unknown> | undefined;
3692
3710
  originalActionId?: string | undefined;
@@ -3991,6 +4009,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3991
4009
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3992
4010
  eventId: string;
3993
4011
  transactionId: string;
4012
+ content: {
4013
+ comment?: string | undefined;
4014
+ };
3994
4015
  declaration?: Record<string, unknown> | undefined;
3995
4016
  annotation?: Record<string, unknown> | undefined;
3996
4017
  originalActionId?: string | undefined;
@@ -4295,6 +4316,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4295
4316
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4296
4317
  eventId: string;
4297
4318
  transactionId: string;
4319
+ content: {
4320
+ comment?: string | undefined;
4321
+ };
4298
4322
  declaration?: Record<string, unknown> | undefined;
4299
4323
  annotation?: Record<string, unknown> | undefined;
4300
4324
  originalActionId?: string | undefined;
@@ -4639,14 +4663,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4639
4663
  declaration: Record<string, import("../commons").FieldUpdateValue>;
4640
4664
  status: "Requested" | "Accepted" | "Rejected";
4641
4665
  type: "EDIT";
4666
+ content: {
4667
+ comment?: string | undefined;
4668
+ };
4642
4669
  createdByRole?: string | undefined;
4643
4670
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4644
4671
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4645
4672
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4646
4673
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4647
- content?: {
4648
- comment?: string | undefined;
4649
- } | undefined;
4650
4674
  } | {
4651
4675
  id: string & import("zod").$brand<"UUID">;
4652
4676
  transactionId: string;
@@ -4929,6 +4953,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4929
4953
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4930
4954
  eventId: string;
4931
4955
  transactionId: string;
4956
+ content: {
4957
+ comment?: string | undefined;
4958
+ };
4932
4959
  declaration?: Record<string, unknown> | undefined;
4933
4960
  annotation?: Record<string, unknown> | undefined;
4934
4961
  originalActionId?: string | undefined;
@@ -5273,14 +5300,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5273
5300
  declaration: Record<string, import("../commons").FieldUpdateValue>;
5274
5301
  status: "Requested" | "Accepted" | "Rejected";
5275
5302
  type: "EDIT";
5303
+ content: {
5304
+ comment?: string | undefined;
5305
+ };
5276
5306
  createdByRole?: string | undefined;
5277
5307
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5278
5308
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5279
5309
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5280
5310
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5281
- content?: {
5282
- comment?: string | undefined;
5283
- } | undefined;
5284
5311
  } | {
5285
5312
  id: string & import("zod").$brand<"UUID">;
5286
5313
  transactionId: string;
@@ -5608,14 +5635,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5608
5635
  declaration: Record<string, import("../commons").FieldUpdateValue>;
5609
5636
  status: "Requested" | "Accepted" | "Rejected";
5610
5637
  type: "EDIT";
5638
+ content: {
5639
+ comment?: string | undefined;
5640
+ };
5611
5641
  createdByRole?: string | undefined;
5612
5642
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5613
5643
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5614
5644
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5615
5645
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5616
- content?: {
5617
- comment?: string | undefined;
5618
- } | undefined;
5619
5646
  } | {
5620
5647
  id: string & import("zod").$brand<"UUID">;
5621
5648
  transactionId: string;
@@ -5948,6 +5975,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5948
5975
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5949
5976
  eventId: string;
5950
5977
  transactionId: string;
5978
+ content: {
5979
+ comment?: string | undefined;
5980
+ };
5951
5981
  declaration?: Record<string, unknown> | undefined;
5952
5982
  annotation?: Record<string, unknown> | undefined;
5953
5983
  originalActionId?: string | undefined;
@@ -6252,6 +6282,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6252
6282
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6253
6283
  eventId: string;
6254
6284
  transactionId: string;
6285
+ content: {
6286
+ comment?: string | undefined;
6287
+ };
6255
6288
  declaration?: Record<string, unknown> | undefined;
6256
6289
  annotation?: Record<string, unknown> | undefined;
6257
6290
  originalActionId?: string | undefined;
@@ -6556,6 +6589,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6556
6589
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6557
6590
  eventId: string;
6558
6591
  transactionId: string;
6592
+ content: {
6593
+ comment?: string | undefined;
6594
+ };
6559
6595
  declaration?: Record<string, unknown> | undefined;
6560
6596
  annotation?: Record<string, unknown> | undefined;
6561
6597
  originalActionId?: string | undefined;
@@ -6903,14 +6939,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6903
6939
  declaration: Record<string, import("../commons").FieldUpdateValue>;
6904
6940
  status: "Requested" | "Accepted" | "Rejected";
6905
6941
  type: "EDIT";
6942
+ content: {
6943
+ comment?: string | undefined;
6944
+ };
6906
6945
  createdByRole?: string | undefined;
6907
6946
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6908
6947
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6909
6948
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6910
6949
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6911
- content?: {
6912
- comment?: string | undefined;
6913
- } | undefined;
6914
6950
  } | {
6915
6951
  id: string & import("zod").$brand<"UUID">;
6916
6952
  transactionId: string;
@@ -7237,14 +7273,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7237
7273
  declaration: Record<string, import("../commons").FieldUpdateValue>;
7238
7274
  status: "Requested" | "Accepted" | "Rejected";
7239
7275
  type: "EDIT";
7276
+ content: {
7277
+ comment?: string | undefined;
7278
+ };
7240
7279
  createdByRole?: string | undefined;
7241
7280
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7242
7281
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7243
7282
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7244
7283
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7245
- content?: {
7246
- comment?: string | undefined;
7247
- } | undefined;
7248
7284
  } | {
7249
7285
  id: string & import("zod").$brand<"UUID">;
7250
7286
  transactionId: string;
@@ -7622,14 +7658,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7622
7658
  declaration: Record<string, unknown>;
7623
7659
  status: "Requested" | "Accepted" | "Rejected";
7624
7660
  type: "EDIT";
7661
+ content: {
7662
+ comment?: string | undefined;
7663
+ };
7625
7664
  createdByRole?: string | undefined;
7626
7665
  createdBySignature?: string | null | undefined;
7627
7666
  createdAtLocation?: string | null | undefined;
7628
7667
  annotation?: Record<string, unknown> | null | undefined;
7629
7668
  originalActionId?: string | null | undefined;
7630
- content?: {
7631
- comment?: string | undefined;
7632
- } | undefined;
7633
7669
  } | {
7634
7670
  id: string;
7635
7671
  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.ZodOptional<z.ZodObject<{
168
+ content: 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.ZodOptional<z.ZodObject<{
656
+ content: 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.ZodOptional<z.ZodObject<{
1119
+ content: 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;
@@ -65,6 +65,9 @@ export declare const EditActionInput: z.ZodObject<{
65
65
  waitFor: z.ZodDefault<z.ZodBoolean>;
66
66
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
67
67
  type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
68
+ content: z.ZodObject<{
69
+ comment: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>;
68
71
  }, z.core.$strip>;
69
72
  export type EditActionInput = z.infer<typeof EditActionInput>;
70
73
  export declare const PrintCertificateActionInput: z.ZodObject<{
@@ -561,6 +564,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
561
564
  waitFor: z.ZodDefault<z.ZodBoolean>;
562
565
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
563
566
  type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
567
+ content: z.ZodObject<{
568
+ comment: z.ZodOptional<z.ZodString>;
569
+ }, z.core.$strip>;
564
570
  }, z.core.$strip>], "type">;
565
571
  export type ActionInput = z.input<typeof ActionInput>;
566
572
  export type ActionInputWithType = z.infer<typeof ActionInput>;
@@ -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.ZodOptional<z.ZodObject<{
413
+ content: 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,6 +101,9 @@ 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
+ };
104
107
  eventId: string;
105
108
  };
106
109
  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
+ };
206
209
  createdByRole?: string | undefined;
207
210
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
208
211
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
209
212
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
210
213
  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;
@@ -1676,10 +1676,9 @@ var NotifiedAction = ActionBase.extend(
1676
1676
  var EditAction = ActionBase.extend(
1677
1677
  z14.object({
1678
1678
  type: z14.literal(ActionType.EDIT),
1679
- /** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
1680
1679
  content: z14.object({
1681
1680
  comment: z14.string().describe("Comment for the edit action.").optional()
1682
- }).optional()
1681
+ })
1683
1682
  }).shape
1684
1683
  );
1685
1684
  var PrintContent = z14.object({
@@ -6416,7 +6415,10 @@ var DeclareActionInput = BaseActionInput.extend(
6416
6415
  );
6417
6416
  var EditActionInput = BaseActionInput.extend(
6418
6417
  z38.object({
6419
- type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
6418
+ type: z38.literal(ActionType.EDIT).default(ActionType.EDIT),
6419
+ content: z38.object({
6420
+ comment: z38.string().describe("Comment for the edit action.").optional()
6421
+ })
6420
6422
  }).shape
6421
6423
  );
6422
6424
  var PrintCertificateActionInput = BaseActionInput.extend(
@@ -9961,6 +9963,7 @@ function eventPayloadGenerator(rng, configuration = tennisClubMembershipEvent) {
9961
9963
  },
9962
9964
  edit: (eventId, input = {}) => ({
9963
9965
  type: ActionType.EDIT,
9966
+ content: { comment: "Test comment" },
9964
9967
  transactionId: input.transactionId ?? getUUID(),
9965
9968
  declaration: input.declaration ?? generateActionDeclarationInput(configuration, ActionType.EDIT, rng),
9966
9969
  annotation: input.annotation ?? generateActionAnnotationInput(configuration, ActionType.EDIT, rng),
@@ -1216,10 +1216,9 @@ var NotifiedAction = ActionBase.extend(
1216
1216
  var EditAction = ActionBase.extend(
1217
1217
  z14.object({
1218
1218
  type: z14.literal(ActionType.EDIT),
1219
- /** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
1220
1219
  content: z14.object({
1221
1220
  comment: z14.string().describe("Comment for the edit action.").optional()
1222
- }).optional()
1221
+ })
1223
1222
  }).shape
1224
1223
  );
1225
1224
  var PrintContent = z14.object({
@@ -4653,7 +4652,10 @@ var DeclareActionInput = BaseActionInput.extend(
4653
4652
  );
4654
4653
  var EditActionInput = BaseActionInput.extend(
4655
4654
  z38.object({
4656
- type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
4655
+ type: z38.literal(ActionType.EDIT).default(ActionType.EDIT),
4656
+ content: z38.object({
4657
+ comment: z38.string().describe("Comment for the edit action.").optional()
4658
+ })
4657
4659
  }).shape
4658
4660
  );
4659
4661
  var PrintCertificateActionInput = BaseActionInput.extend(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.1.0-rc.6ec0d1f",
3
+ "version": "2.1.0-rc.7051d1e",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "ajv-formats": "^3.0.1",
34
34
  "date-fns": "^2.28.0",
35
35
  "dotenv": "^16.4.5",
36
- "glob": "11.1.0",
36
+ "glob": "11.0.3",
37
37
  "handlebars": "^4.7.8",
38
38
  "js-yaml": "4.1.0",
39
39
  "jwt-decode": "^3.0.0",