@opencrvs/toolkit 2.1.0-rc.d24aa5e → 2.1.0-rc.d544d85

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;
@@ -1491,9 +1491,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1491
1491
  waitFor?: boolean | undefined;
1492
1492
  createdAtLocation?: string | null | undefined;
1493
1493
  type?: "EDIT" | undefined;
1494
- content?: {
1495
- comment?: string | undefined;
1496
- } | undefined;
1497
1494
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1498
1495
  actionId: string;
1499
1496
  };
@@ -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;
@@ -2483,9 +2480,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2483
2480
  waitFor?: boolean | undefined;
2484
2481
  createdAtLocation?: string | null | undefined;
2485
2482
  type?: "EDIT" | undefined;
2486
- content?: {
2487
- comment?: string | undefined;
2488
- } | undefined;
2489
2483
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2490
2484
  actionId: string;
2491
2485
  };
@@ -2790,9 +2784,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2790
2784
  waitFor?: boolean | undefined;
2791
2785
  createdAtLocation?: string | null | undefined;
2792
2786
  type?: "EDIT" | undefined;
2793
- content?: {
2794
- comment?: string | undefined;
2795
- } | undefined;
2796
2787
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2797
2788
  actionId: string;
2798
2789
  };
@@ -3097,9 +3088,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3097
3088
  waitFor?: boolean | undefined;
3098
3089
  createdAtLocation?: string | null | undefined;
3099
3090
  type?: "EDIT" | undefined;
3100
- content?: {
3101
- comment?: string | undefined;
3102
- } | undefined;
3103
3091
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
3104
3092
  actionId: string;
3105
3093
  };
@@ -3404,9 +3392,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3404
3392
  waitFor?: boolean | undefined;
3405
3393
  createdAtLocation?: string | null | undefined;
3406
3394
  type?: "EDIT" | undefined;
3407
- content?: {
3408
- comment?: string | undefined;
3409
- } | undefined;
3410
3395
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
3411
3396
  actionId: string;
3412
3397
  };
@@ -3711,9 +3696,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3711
3696
  waitFor?: boolean | undefined;
3712
3697
  createdAtLocation?: string | null | undefined;
3713
3698
  type?: "EDIT" | undefined;
3714
- content?: {
3715
- comment?: string | undefined;
3716
- } | undefined;
3717
3699
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
3718
3700
  actionId: string;
3719
3701
  };
@@ -4018,9 +4000,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4018
4000
  waitFor?: boolean | undefined;
4019
4001
  createdAtLocation?: string | null | undefined;
4020
4002
  type?: "EDIT" | undefined;
4021
- content?: {
4022
- comment?: string | undefined;
4023
- } | undefined;
4024
4003
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
4025
4004
  actionId: string;
4026
4005
  };
@@ -4325,9 +4304,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4325
4304
  waitFor?: boolean | undefined;
4326
4305
  createdAtLocation?: string | null | undefined;
4327
4306
  type?: "EDIT" | undefined;
4328
- content?: {
4329
- comment?: string | undefined;
4330
- } | undefined;
4331
4307
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
4332
4308
  actionId: string;
4333
4309
  };
@@ -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;
@@ -4962,9 +4938,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4962
4938
  waitFor?: boolean | undefined;
4963
4939
  createdAtLocation?: string | null | undefined;
4964
4940
  type?: "EDIT" | undefined;
4965
- content?: {
4966
- comment?: string | undefined;
4967
- } | undefined;
4968
4941
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
4969
4942
  actionId: string;
4970
4943
  };
@@ -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;
@@ -5984,9 +5957,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5984
5957
  waitFor?: boolean | undefined;
5985
5958
  createdAtLocation?: string | null | undefined;
5986
5959
  type?: "EDIT" | undefined;
5987
- content?: {
5988
- comment?: string | undefined;
5989
- } | undefined;
5990
5960
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
5991
5961
  actionId: string;
5992
5962
  };
@@ -6291,9 +6261,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6291
6261
  waitFor?: boolean | undefined;
6292
6262
  createdAtLocation?: string | null | undefined;
6293
6263
  type?: "EDIT" | undefined;
6294
- content?: {
6295
- comment?: string | undefined;
6296
- } | undefined;
6297
6264
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
6298
6265
  actionId: string;
6299
6266
  };
@@ -6598,9 +6565,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6598
6565
  waitFor?: boolean | undefined;
6599
6566
  createdAtLocation?: string | null | undefined;
6600
6567
  type?: "EDIT" | undefined;
6601
- content?: {
6602
- comment?: string | undefined;
6603
- } | undefined;
6604
6568
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
6605
6569
  actionId: string;
6606
6570
  };
@@ -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.ZodOptional<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.ZodOptional<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;
@@ -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,11 +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
- /** @deprecated Edit-action should no longer contain content. This is kept for old 2.0 edits. */
6420
- content: z38.object({
6421
- comment: z38.string().describe("Comment for the edit action.").optional()
6422
- }).optional()
6419
+ type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
6423
6420
  }).shape
6424
6421
  );
6425
6422
  var PrintCertificateActionInput = BaseActionInput.extend(
@@ -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,11 +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
- /** @deprecated Edit-action should no longer contain content. This is kept for old 2.0 edits. */
4657
- content: z38.object({
4658
- comment: z38.string().describe("Comment for the edit action.").optional()
4659
- }).optional()
4656
+ type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
4660
4657
  }).shape
4661
4658
  );
4662
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.d24aa5e",
3
+ "version": "2.1.0-rc.d544d85",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {