@opencrvs/toolkit 2.1.0-rc.9c04c04 → 2.1.0-rc.9c06fd8

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,6 +989,7 @@ 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
  })
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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>;
@@ -1676,6 +1676,7 @@ 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
  })
@@ -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(
@@ -1216,6 +1216,7 @@ 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
  })
@@ -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.9c06fd8",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {