@opencrvs/toolkit 2.0.0-rc.18f6ed6 → 2.0.0-rc.19dfbbb

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,8 @@ var RequestedCorrectionAction = ActionBase.extend(
989
989
  var ApprovedCorrectionAction = ActionBase.extend(
990
990
  z13.object({
991
991
  type: z13.literal(ActionType.APPROVE_CORRECTION),
992
- requestId: z13.string(),
992
+ requestId: z13.string()
993
993
  // TODO move into 'content' property
994
- content: z13.object({ immediateCorrection: z13.boolean().optional() }).optional()
995
994
  }).shape
996
995
  );
997
996
  var RejectedCorrectionAction = ActionBase.extend(
@@ -313,9 +313,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
313
313
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
314
314
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
315
315
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
316
- content?: {
317
- immediateCorrection?: boolean | undefined;
318
- } | undefined;
319
316
  } | {
320
317
  id: string & import("zod").$brand<"UUID">;
321
318
  transactionId: string;
@@ -624,9 +621,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
624
621
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
625
622
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
626
623
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
627
- content?: {
628
- immediateCorrection?: boolean | undefined;
629
- } | undefined;
630
624
  } | {
631
625
  id: string & import("zod").$brand<"UUID">;
632
626
  transactionId: string;
@@ -935,9 +929,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
935
929
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
936
930
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
937
931
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
938
- content?: {
939
- immediateCorrection?: boolean | undefined;
940
- } | undefined;
941
932
  } | {
942
933
  id: string & import("zod").$brand<"UUID">;
943
934
  transactionId: string;
@@ -1397,9 +1388,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1397
1388
  waitFor?: boolean | undefined;
1398
1389
  createdAtLocation?: string | null | undefined;
1399
1390
  type?: "APPROVE_CORRECTION" | undefined;
1400
- content?: {
1401
- immediateCorrection?: boolean | undefined;
1402
- } | undefined;
1403
1391
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1404
1392
  eventId: string;
1405
1393
  transactionId: string;
@@ -1683,9 +1671,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1683
1671
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1684
1672
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1685
1673
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1686
- content?: {
1687
- immediateCorrection?: boolean | undefined;
1688
- } | undefined;
1689
1674
  } | {
1690
1675
  id: string & import("zod").$brand<"UUID">;
1691
1676
  transactionId: string;
@@ -2026,9 +2011,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2026
2011
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2027
2012
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2028
2013
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2029
- content?: {
2030
- immediateCorrection?: boolean | undefined;
2031
- } | undefined;
2032
2014
  } | {
2033
2015
  id: string & import("zod").$brand<"UUID">;
2034
2016
  transactionId: string;
@@ -2348,9 +2330,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2348
2330
  waitFor?: boolean | undefined;
2349
2331
  createdAtLocation?: string | null | undefined;
2350
2332
  type?: "APPROVE_CORRECTION" | undefined;
2351
- content?: {
2352
- immediateCorrection?: boolean | undefined;
2353
- } | undefined;
2354
2333
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2355
2334
  eventId: string;
2356
2335
  transactionId: string;
@@ -2642,9 +2621,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2642
2621
  waitFor?: boolean | undefined;
2643
2622
  createdAtLocation?: string | null | undefined;
2644
2623
  type?: "APPROVE_CORRECTION" | undefined;
2645
- content?: {
2646
- immediateCorrection?: boolean | undefined;
2647
- } | undefined;
2648
2624
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2649
2625
  eventId: string;
2650
2626
  transactionId: string;
@@ -2936,9 +2912,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2936
2912
  waitFor?: boolean | undefined;
2937
2913
  createdAtLocation?: string | null | undefined;
2938
2914
  type?: "APPROVE_CORRECTION" | undefined;
2939
- content?: {
2940
- immediateCorrection?: boolean | undefined;
2941
- } | undefined;
2942
2915
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2943
2916
  eventId: string;
2944
2917
  transactionId: string;
@@ -3230,9 +3203,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3230
3203
  waitFor?: boolean | undefined;
3231
3204
  createdAtLocation?: string | null | undefined;
3232
3205
  type?: "APPROVE_CORRECTION" | undefined;
3233
- content?: {
3234
- immediateCorrection?: boolean | undefined;
3235
- } | undefined;
3236
3206
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3237
3207
  eventId: string;
3238
3208
  transactionId: string;
@@ -3524,9 +3494,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3524
3494
  waitFor?: boolean | undefined;
3525
3495
  createdAtLocation?: string | null | undefined;
3526
3496
  type?: "APPROVE_CORRECTION" | undefined;
3527
- content?: {
3528
- immediateCorrection?: boolean | undefined;
3529
- } | undefined;
3530
3497
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3531
3498
  eventId: string;
3532
3499
  transactionId: string;
@@ -3818,9 +3785,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3818
3785
  waitFor?: boolean | undefined;
3819
3786
  createdAtLocation?: string | null | undefined;
3820
3787
  type?: "APPROVE_CORRECTION" | undefined;
3821
- content?: {
3822
- immediateCorrection?: boolean | undefined;
3823
- } | undefined;
3824
3788
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3825
3789
  eventId: string;
3826
3790
  transactionId: string;
@@ -4106,9 +4070,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4106
4070
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4107
4071
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4108
4072
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4109
- content?: {
4110
- immediateCorrection?: boolean | undefined;
4111
- } | undefined;
4112
4073
  } | {
4113
4074
  id: string & import("zod").$brand<"UUID">;
4114
4075
  transactionId: string;
@@ -4428,9 +4389,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4428
4389
  waitFor?: boolean | undefined;
4429
4390
  createdAtLocation?: string | null | undefined;
4430
4391
  type?: "APPROVE_CORRECTION" | undefined;
4431
- content?: {
4432
- immediateCorrection?: boolean | undefined;
4433
- } | undefined;
4434
4392
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4435
4393
  eventId: string;
4436
4394
  transactionId: string;
@@ -4716,9 +4674,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4716
4674
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4717
4675
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4718
4676
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4719
- content?: {
4720
- immediateCorrection?: boolean | undefined;
4721
- } | undefined;
4722
4677
  } | {
4723
4678
  id: string & import("zod").$brand<"UUID">;
4724
4679
  transactionId: string;
@@ -5037,9 +4992,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5037
4992
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5038
4993
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5039
4994
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5040
- content?: {
5041
- immediateCorrection?: boolean | undefined;
5042
- } | undefined;
5043
4995
  } | {
5044
4996
  id: string & import("zod").$brand<"UUID">;
5045
4997
  transactionId: string;
@@ -5409,9 +5361,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5409
5361
  waitFor?: boolean | undefined;
5410
5362
  createdAtLocation?: string | null | undefined;
5411
5363
  type?: "APPROVE_CORRECTION" | undefined;
5412
- content?: {
5413
- immediateCorrection?: boolean | undefined;
5414
- } | undefined;
5415
5364
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5416
5365
  eventId: string;
5417
5366
  transactionId: string;
@@ -5703,9 +5652,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5703
5652
  waitFor?: boolean | undefined;
5704
5653
  createdAtLocation?: string | null | undefined;
5705
5654
  type?: "APPROVE_CORRECTION" | undefined;
5706
- content?: {
5707
- immediateCorrection?: boolean | undefined;
5708
- } | undefined;
5709
5655
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5710
5656
  eventId: string;
5711
5657
  transactionId: string;
@@ -5997,9 +5943,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5997
5943
  waitFor?: boolean | undefined;
5998
5944
  createdAtLocation?: string | null | undefined;
5999
5945
  type?: "APPROVE_CORRECTION" | undefined;
6000
- content?: {
6001
- immediateCorrection?: boolean | undefined;
6002
- } | undefined;
6003
5946
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6004
5947
  eventId: string;
6005
5948
  transactionId: string;
@@ -6288,9 +6231,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6288
6231
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6289
6232
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6290
6233
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6291
- content?: {
6292
- immediateCorrection?: boolean | undefined;
6293
- } | undefined;
6294
6234
  } | {
6295
6235
  id: string & import("zod").$brand<"UUID">;
6296
6236
  transactionId: string;
@@ -6608,9 +6548,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6608
6548
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6609
6549
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6610
6550
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6611
- content?: {
6612
- immediateCorrection?: boolean | undefined;
6613
- } | undefined;
6614
6551
  } | {
6615
6552
  id: string & import("zod").$brand<"UUID">;
6616
6553
  transactionId: string;
@@ -6971,9 +6908,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6971
6908
  createdAtLocation?: string | null | undefined;
6972
6909
  annotation?: Record<string, unknown> | null | undefined;
6973
6910
  originalActionId?: string | null | undefined;
6974
- content?: {
6975
- immediateCorrection?: boolean | undefined;
6976
- } | undefined;
6977
6911
  } | {
6978
6912
  id: string;
6979
6913
  transactionId: string;
@@ -517,9 +517,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
517
517
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
518
518
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
519
519
  requestId: z.ZodString;
520
- content: z.ZodOptional<z.ZodObject<{
521
- immediateCorrection: z.ZodOptional<z.ZodBoolean>;
522
- }, z.core.$strip>>;
523
520
  }, z.core.$strip>, z.ZodObject<{
524
521
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
525
522
  transactionId: z.ZodString;
@@ -958,9 +955,6 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
958
955
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
959
956
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
960
957
  requestId: z.ZodString;
961
- content: z.ZodOptional<z.ZodObject<{
962
- immediateCorrection: z.ZodOptional<z.ZodBoolean>;
963
- }, z.core.$strip>>;
964
958
  }, z.core.$strip>, z.ZodObject<{
965
959
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
966
960
  transactionId: z.ZodString;
@@ -246,9 +246,6 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
246
246
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
247
247
  requestId: z.ZodString;
248
248
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
249
- content: z.ZodOptional<z.ZodObject<{
250
- immediateCorrection: z.ZodOptional<z.ZodBoolean>;
251
- }, z.core.$strip>>;
252
249
  }, z.core.$strip>;
253
250
  export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
254
251
  export declare const ReadActionInput: z.ZodObject<{
@@ -498,9 +495,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
498
495
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
499
496
  requestId: z.ZodString;
500
497
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
501
- content: z.ZodOptional<z.ZodObject<{
502
- immediateCorrection: z.ZodOptional<z.ZodBoolean>;
503
- }, z.core.$strip>>;
504
498
  }, z.core.$strip>, z.ZodObject<{
505
499
  eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
506
500
  transactionId: z.ZodString;
@@ -274,9 +274,6 @@ export declare const EventDocument: z.ZodObject<{
274
274
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
275
275
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
276
276
  requestId: z.ZodString;
277
- content: z.ZodOptional<z.ZodObject<{
278
- immediateCorrection: z.ZodOptional<z.ZodBoolean>;
279
- }, z.core.$strip>>;
280
277
  }, z.core.$strip>, z.ZodObject<{
281
278
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
282
279
  transactionId: z.ZodString;
@@ -241,9 +241,6 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
241
241
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
242
242
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
243
243
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
244
- content?: {
245
- immediateCorrection?: boolean | undefined;
246
- } | undefined;
247
244
  } | {
248
245
  id: string & import("zod").$brand<"UUID">;
249
246
  transactionId: string;
@@ -386,9 +386,6 @@ export declare function findLastAssignmentAction(actions: Action[]): {
386
386
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
387
387
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
388
388
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
389
- content?: {
390
- immediateCorrection?: boolean | undefined;
391
- } | undefined;
392
389
  } | {
393
390
  id: string & import("zod").$brand<"UUID">;
394
391
  transactionId: string;
@@ -1648,9 +1648,8 @@ var RequestedCorrectionAction = ActionBase.extend(
1648
1648
  var ApprovedCorrectionAction = ActionBase.extend(
1649
1649
  z14.object({
1650
1650
  type: z14.literal(ActionType.APPROVE_CORRECTION),
1651
- requestId: z14.string(),
1651
+ requestId: z14.string()
1652
1652
  // TODO move into 'content' property
1653
- content: z14.object({ immediateCorrection: z14.boolean().optional() }).optional()
1654
1653
  }).shape
1655
1654
  );
1656
1655
  var RejectedCorrectionAction = ActionBase.extend(
@@ -6011,8 +6010,7 @@ var RejectCorrectionActionInput = BaseActionInput.extend(
6011
6010
  var ApproveCorrectionActionInput = BaseActionInput.extend(
6012
6011
  z38.object({
6013
6012
  requestId: z38.string(),
6014
- type: z38.literal(ActionType.APPROVE_CORRECTION).default(ActionType.APPROVE_CORRECTION),
6015
- content: z38.object({ immediateCorrection: z38.boolean().optional() }).optional()
6013
+ type: z38.literal(ActionType.APPROVE_CORRECTION).default(ActionType.APPROVE_CORRECTION)
6016
6014
  }).shape
6017
6015
  );
6018
6016
  var ReadActionInput = BaseActionInput.extend(
@@ -1215,9 +1215,8 @@ var RequestedCorrectionAction = ActionBase.extend(
1215
1215
  var ApprovedCorrectionAction = ActionBase.extend(
1216
1216
  z14.object({
1217
1217
  type: z14.literal(ActionType.APPROVE_CORRECTION),
1218
- requestId: z14.string(),
1218
+ requestId: z14.string()
1219
1219
  // TODO move into 'content' property
1220
- content: z14.object({ immediateCorrection: z14.boolean().optional() }).optional()
1221
1220
  }).shape
1222
1221
  );
1223
1222
  var RejectedCorrectionAction = ActionBase.extend(
@@ -4293,8 +4292,7 @@ var RejectCorrectionActionInput = BaseActionInput.extend(
4293
4292
  var ApproveCorrectionActionInput = BaseActionInput.extend(
4294
4293
  z38.object({
4295
4294
  requestId: z38.string(),
4296
- type: z38.literal(ActionType.APPROVE_CORRECTION).default(ActionType.APPROVE_CORRECTION),
4297
- content: z38.object({ immediateCorrection: z38.boolean().optional() }).optional()
4295
+ type: z38.literal(ActionType.APPROVE_CORRECTION).default(ActionType.APPROVE_CORRECTION)
4298
4296
  }).shape
4299
4297
  );
4300
4298
  var ReadActionInput = BaseActionInput.extend(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.0-rc.18f6ed6",
3
+ "version": "2.0.0-rc.19dfbbb",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {