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