@opencrvs/toolkit 2.0.0-rc.ff04b30 → 2.0.0-rc.ff777d6

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.
package/dist/cli.js CHANGED
@@ -2382,14 +2382,20 @@ var encodeScope = (scope) => {
2382
2382
  encode: false
2383
2383
  });
2384
2384
  };
2385
- var decodeScope = (query) => {
2386
- const scope = qs.parse(query, {
2385
+ var decodedScopeCache = /* @__PURE__ */ new Map();
2386
+ var decodeScope = (encodedScope) => {
2387
+ if (decodedScopeCache.has(encodedScope)) {
2388
+ return decodedScopeCache.get(encodedScope);
2389
+ }
2390
+ const scope = qs.parse(encodedScope, {
2387
2391
  ignoreQueryPrefix: true,
2388
2392
  comma: true,
2389
2393
  allowDots: true
2390
2394
  });
2391
2395
  const unflattenedScope = unflattenScope(scope);
2392
- return Scope2.safeParse(unflattenedScope)?.data;
2396
+ const result = Scope2.safeParse(unflattenedScope)?.data;
2397
+ decodedScopeCache.set(encodedScope, result);
2398
+ return result;
2393
2399
  };
2394
2400
  var DEFAULT_SCOPE_OPTIONS = {
2395
2401
  placeOfEvent: JurisdictionFilter.enum.all,
@@ -313,6 +313,9 @@ 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;
316
319
  } | {
317
320
  id: string & import("zod").$brand<"UUID">;
318
321
  transactionId: string;
@@ -414,7 +417,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
414
417
  createdByUserType: "system" | "user";
415
418
  createdAt: string;
416
419
  createdBy: string;
417
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
420
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
418
421
  status: "Rejected";
419
422
  createdByRole?: string | undefined;
420
423
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -429,6 +432,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
429
432
  input: {
430
433
  eventId: string;
431
434
  customActionType?: string | undefined;
435
+ waitFor?: boolean | undefined;
432
436
  };
433
437
  output: {
434
438
  id: string & import("zod").$brand<"UUID">;
@@ -621,6 +625,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
621
625
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
622
626
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
623
627
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
628
+ content?: {
629
+ immediateCorrection?: boolean | undefined;
630
+ } | undefined;
624
631
  } | {
625
632
  id: string & import("zod").$brand<"UUID">;
626
633
  transactionId: string;
@@ -722,7 +729,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
722
729
  createdByUserType: "system" | "user";
723
730
  createdAt: string;
724
731
  createdBy: string;
725
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
732
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
726
733
  status: "Rejected";
727
734
  createdByRole?: string | undefined;
728
735
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -929,6 +936,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
929
936
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
930
937
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
931
938
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
939
+ content?: {
940
+ immediateCorrection?: boolean | undefined;
941
+ } | undefined;
932
942
  } | {
933
943
  id: string & import("zod").$brand<"UUID">;
934
944
  transactionId: string;
@@ -1030,7 +1040,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1030
1040
  createdByUserType: "system" | "user";
1031
1041
  createdAt: string;
1032
1042
  createdBy: string;
1033
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1043
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1034
1044
  status: "Rejected";
1035
1045
  createdByRole?: string | undefined;
1036
1046
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1080,7 +1090,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1080
1090
  transactionId: string;
1081
1091
  createdAt: string;
1082
1092
  action: {
1083
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1093
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1084
1094
  transactionId: string;
1085
1095
  createdByUserType: "system" | "user";
1086
1096
  createdAt: string;
@@ -1097,18 +1107,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1097
1107
  }>;
1098
1108
  create: import("@trpc/server").TRPCMutationProcedure<{
1099
1109
  input: {
1100
- eventId: string;
1101
1110
  transactionId: string;
1102
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1111
+ eventId: string;
1112
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1103
1113
  status: "Requested" | "Accepted" | "Rejected";
1114
+ createdAtLocation?: string | null | undefined;
1104
1115
  declaration?: Record<string, unknown> | undefined;
1105
1116
  annotation?: Record<string, unknown> | undefined;
1106
1117
  originalActionId?: string | undefined;
1107
1118
  keepAssignment?: boolean | undefined;
1108
1119
  keepAssignmentIfAccepted?: boolean | undefined;
1109
1120
  keepAssignmentIfRejected?: boolean | undefined;
1110
- waitFor?: boolean | undefined;
1111
- createdAtLocation?: string | null | undefined;
1112
1121
  };
1113
1122
  output: {
1114
1123
  id: string & import("zod").$brand<"UUID">;
@@ -1116,7 +1125,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1116
1125
  transactionId: string;
1117
1126
  createdAt: string;
1118
1127
  action: {
1119
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1128
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1120
1129
  transactionId: string;
1121
1130
  createdByUserType: "system" | "user";
1122
1131
  createdAt: string;
@@ -1388,6 +1397,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1388
1397
  waitFor?: boolean | undefined;
1389
1398
  createdAtLocation?: string | null | undefined;
1390
1399
  type?: "APPROVE_CORRECTION" | undefined;
1400
+ content?: {
1401
+ immediateCorrection?: boolean | undefined;
1402
+ } | undefined;
1391
1403
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
1404
  eventId: string;
1393
1405
  transactionId: string;
@@ -1439,6 +1451,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
1451
  transactionId: import("zod").ZodString;
1440
1452
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
1453
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1454
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
1442
1455
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1443
1456
  }, import("zod/v4/core").$strip>>;
1444
1457
  output: import("../commons").EventDocument;
@@ -1671,6 +1684,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1671
1684
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1672
1685
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1673
1686
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1687
+ content?: {
1688
+ immediateCorrection?: boolean | undefined;
1689
+ } | undefined;
1674
1690
  } | {
1675
1691
  id: string & import("zod").$brand<"UUID">;
1676
1692
  transactionId: string;
@@ -1772,7 +1788,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1772
1788
  createdByUserType: "system" | "user";
1773
1789
  createdAt: string;
1774
1790
  createdBy: string;
1775
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1791
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1776
1792
  status: "Rejected";
1777
1793
  createdByRole?: string | undefined;
1778
1794
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -2011,6 +2027,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2011
2027
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2012
2028
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2013
2029
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2030
+ content?: {
2031
+ immediateCorrection?: boolean | undefined;
2032
+ } | undefined;
2014
2033
  } | {
2015
2034
  id: string & import("zod").$brand<"UUID">;
2016
2035
  transactionId: string;
@@ -2112,7 +2131,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2112
2131
  createdByUserType: "system" | "user";
2113
2132
  createdAt: string;
2114
2133
  createdBy: string;
2115
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2134
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
2116
2135
  status: "Rejected";
2117
2136
  createdByRole?: string | undefined;
2118
2137
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -2330,6 +2349,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2330
2349
  waitFor?: boolean | undefined;
2331
2350
  createdAtLocation?: string | null | undefined;
2332
2351
  type?: "APPROVE_CORRECTION" | undefined;
2352
+ content?: {
2353
+ immediateCorrection?: boolean | undefined;
2354
+ } | undefined;
2333
2355
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2334
2356
  eventId: string;
2335
2357
  transactionId: string;
@@ -2381,6 +2403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2381
2403
  transactionId: import("zod").ZodString;
2382
2404
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2383
2405
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2406
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2384
2407
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2385
2408
  }, import("zod/v4/core").$strip>>;
2386
2409
  output: import("../commons").EventDocument;
@@ -2621,6 +2644,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2621
2644
  waitFor?: boolean | undefined;
2622
2645
  createdAtLocation?: string | null | undefined;
2623
2646
  type?: "APPROVE_CORRECTION" | undefined;
2647
+ content?: {
2648
+ immediateCorrection?: boolean | undefined;
2649
+ } | undefined;
2624
2650
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2625
2651
  eventId: string;
2626
2652
  transactionId: string;
@@ -2672,6 +2698,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2672
2698
  transactionId: import("zod").ZodString;
2673
2699
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2674
2700
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2701
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2675
2702
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2676
2703
  }, import("zod/v4/core").$strip>>;
2677
2704
  output: import("../commons").EventDocument;
@@ -2912,6 +2939,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2912
2939
  waitFor?: boolean | undefined;
2913
2940
  createdAtLocation?: string | null | undefined;
2914
2941
  type?: "APPROVE_CORRECTION" | undefined;
2942
+ content?: {
2943
+ immediateCorrection?: boolean | undefined;
2944
+ } | undefined;
2915
2945
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2916
2946
  eventId: string;
2917
2947
  transactionId: string;
@@ -2963,6 +2993,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2963
2993
  transactionId: import("zod").ZodString;
2964
2994
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2965
2995
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2996
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2966
2997
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2967
2998
  }, import("zod/v4/core").$strip>>;
2968
2999
  output: import("../commons").EventDocument;
@@ -3203,6 +3234,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3203
3234
  waitFor?: boolean | undefined;
3204
3235
  createdAtLocation?: string | null | undefined;
3205
3236
  type?: "APPROVE_CORRECTION" | undefined;
3237
+ content?: {
3238
+ immediateCorrection?: boolean | undefined;
3239
+ } | undefined;
3206
3240
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3207
3241
  eventId: string;
3208
3242
  transactionId: string;
@@ -3254,6 +3288,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3254
3288
  transactionId: import("zod").ZodString;
3255
3289
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3256
3290
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3291
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3257
3292
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3258
3293
  }, import("zod/v4/core").$strip>>;
3259
3294
  output: import("../commons").EventDocument;
@@ -3494,6 +3529,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3494
3529
  waitFor?: boolean | undefined;
3495
3530
  createdAtLocation?: string | null | undefined;
3496
3531
  type?: "APPROVE_CORRECTION" | undefined;
3532
+ content?: {
3533
+ immediateCorrection?: boolean | undefined;
3534
+ } | undefined;
3497
3535
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3498
3536
  eventId: string;
3499
3537
  transactionId: string;
@@ -3545,6 +3583,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3545
3583
  transactionId: import("zod").ZodString;
3546
3584
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3547
3585
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3586
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3548
3587
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3549
3588
  }, import("zod/v4/core").$strip>>;
3550
3589
  output: import("../commons").EventDocument;
@@ -3785,6 +3824,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3785
3824
  waitFor?: boolean | undefined;
3786
3825
  createdAtLocation?: string | null | undefined;
3787
3826
  type?: "APPROVE_CORRECTION" | undefined;
3827
+ content?: {
3828
+ immediateCorrection?: boolean | undefined;
3829
+ } | undefined;
3788
3830
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3789
3831
  eventId: string;
3790
3832
  transactionId: string;
@@ -3836,6 +3878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3836
3878
  transactionId: import("zod").ZodString;
3837
3879
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3838
3880
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3881
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3839
3882
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3840
3883
  }, import("zod/v4/core").$strip>>;
3841
3884
  output: import("../commons").EventDocument;
@@ -4070,6 +4113,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4070
4113
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4071
4114
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4072
4115
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4116
+ content?: {
4117
+ immediateCorrection?: boolean | undefined;
4118
+ } | undefined;
4073
4119
  } | {
4074
4120
  id: string & import("zod").$brand<"UUID">;
4075
4121
  transactionId: string;
@@ -4171,7 +4217,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4171
4217
  createdByUserType: "system" | "user";
4172
4218
  createdAt: string;
4173
4219
  createdBy: string;
4174
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4220
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4175
4221
  status: "Rejected";
4176
4222
  createdByRole?: string | undefined;
4177
4223
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4389,6 +4435,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4389
4435
  waitFor?: boolean | undefined;
4390
4436
  createdAtLocation?: string | null | undefined;
4391
4437
  type?: "APPROVE_CORRECTION" | undefined;
4438
+ content?: {
4439
+ immediateCorrection?: boolean | undefined;
4440
+ } | undefined;
4392
4441
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4393
4442
  eventId: string;
4394
4443
  transactionId: string;
@@ -4440,6 +4489,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4440
4489
  transactionId: import("zod").ZodString;
4441
4490
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4442
4491
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4492
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
4443
4493
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4444
4494
  }, import("zod/v4/core").$strip>>;
4445
4495
  output: import("../commons").EventDocument;
@@ -4674,6 +4724,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4674
4724
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4675
4725
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4676
4726
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4727
+ content?: {
4728
+ immediateCorrection?: boolean | undefined;
4729
+ } | undefined;
4677
4730
  } | {
4678
4731
  id: string & import("zod").$brand<"UUID">;
4679
4732
  transactionId: string;
@@ -4775,7 +4828,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4775
4828
  createdByUserType: "system" | "user";
4776
4829
  createdAt: string;
4777
4830
  createdBy: string;
4778
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4831
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4779
4832
  status: "Rejected";
4780
4833
  createdByRole?: string | undefined;
4781
4834
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4992,6 +5045,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4992
5045
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4993
5046
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4994
5047
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5048
+ content?: {
5049
+ immediateCorrection?: boolean | undefined;
5050
+ } | undefined;
4995
5051
  } | {
4996
5052
  id: string & import("zod").$brand<"UUID">;
4997
5053
  transactionId: string;
@@ -5093,7 +5149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5093
5149
  createdByUserType: "system" | "user";
5094
5150
  createdAt: string;
5095
5151
  createdBy: string;
5096
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
5152
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
5097
5153
  status: "Rejected";
5098
5154
  createdByRole?: string | undefined;
5099
5155
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -5361,6 +5417,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5361
5417
  waitFor?: boolean | undefined;
5362
5418
  createdAtLocation?: string | null | undefined;
5363
5419
  type?: "APPROVE_CORRECTION" | undefined;
5420
+ content?: {
5421
+ immediateCorrection?: boolean | undefined;
5422
+ } | undefined;
5364
5423
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5365
5424
  eventId: string;
5366
5425
  transactionId: string;
@@ -5412,6 +5471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5412
5471
  transactionId: import("zod").ZodString;
5413
5472
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5414
5473
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5474
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5415
5475
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5416
5476
  }, import("zod/v4/core").$strip>>;
5417
5477
  output: import("../commons").EventDocument;
@@ -5652,6 +5712,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5652
5712
  waitFor?: boolean | undefined;
5653
5713
  createdAtLocation?: string | null | undefined;
5654
5714
  type?: "APPROVE_CORRECTION" | undefined;
5715
+ content?: {
5716
+ immediateCorrection?: boolean | undefined;
5717
+ } | undefined;
5655
5718
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5656
5719
  eventId: string;
5657
5720
  transactionId: string;
@@ -5703,6 +5766,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5703
5766
  transactionId: import("zod").ZodString;
5704
5767
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5705
5768
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5769
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5706
5770
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5707
5771
  }, import("zod/v4/core").$strip>>;
5708
5772
  output: import("../commons").EventDocument;
@@ -5943,6 +6007,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5943
6007
  waitFor?: boolean | undefined;
5944
6008
  createdAtLocation?: string | null | undefined;
5945
6009
  type?: "APPROVE_CORRECTION" | undefined;
6010
+ content?: {
6011
+ immediateCorrection?: boolean | undefined;
6012
+ } | undefined;
5946
6013
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5947
6014
  eventId: string;
5948
6015
  transactionId: string;
@@ -5994,6 +6061,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5994
6061
  transactionId: import("zod").ZodString;
5995
6062
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5996
6063
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6064
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5997
6065
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5998
6066
  }, import("zod/v4/core").$strip>>;
5999
6067
  output: import("../commons").EventDocument;
@@ -6231,6 +6299,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6231
6299
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6232
6300
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6233
6301
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6302
+ content?: {
6303
+ immediateCorrection?: boolean | undefined;
6304
+ } | undefined;
6234
6305
  } | {
6235
6306
  id: string & import("zod").$brand<"UUID">;
6236
6307
  transactionId: string;
@@ -6332,7 +6403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6332
6403
  createdByUserType: "system" | "user";
6333
6404
  createdAt: string;
6334
6405
  createdBy: string;
6335
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6406
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6336
6407
  status: "Rejected";
6337
6408
  createdByRole?: string | undefined;
6338
6409
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6548,6 +6619,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6548
6619
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6549
6620
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6550
6621
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6622
+ content?: {
6623
+ immediateCorrection?: boolean | undefined;
6624
+ } | undefined;
6551
6625
  } | {
6552
6626
  id: string & import("zod").$brand<"UUID">;
6553
6627
  transactionId: string;
@@ -6649,7 +6723,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6649
6723
  createdByUserType: "system" | "user";
6650
6724
  createdAt: string;
6651
6725
  createdBy: string;
6652
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6726
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6653
6727
  status: "Rejected";
6654
6728
  createdByRole?: string | undefined;
6655
6729
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6908,6 +6982,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6908
6982
  createdAtLocation?: string | null | undefined;
6909
6983
  annotation?: Record<string, unknown> | null | undefined;
6910
6984
  originalActionId?: string | null | undefined;
6985
+ content?: {
6986
+ immediateCorrection?: boolean | undefined;
6987
+ } | undefined;
6911
6988
  } | {
6912
6989
  id: string;
6913
6990
  transactionId: string;
@@ -7009,7 +7086,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7009
7086
  createdByUserType: "system" | "user";
7010
7087
  createdAt: string;
7011
7088
  createdBy: string;
7012
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
7089
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
7013
7090
  status: "Rejected";
7014
7091
  createdByRole?: string | undefined;
7015
7092
  createdBySignature?: string | null | undefined;
@@ -7227,7 +7304,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7227
7304
  count?: number | undefined;
7228
7305
  timeStart?: string | undefined;
7229
7306
  timeEnd?: string | undefined;
7230
- actionTypes?: ("DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN")[] | undefined;
7307
+ actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined;
7231
7308
  };
7232
7309
  output: {
7233
7310
  results: {
@@ -8079,7 +8156,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8079
8156
  $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
8080
8157
  };
8081
8158
  }[];
8082
- icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8159
+ icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8083
8160
  action?: {
8084
8161
  type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
8085
8162
  } | undefined;
@@ -74,6 +74,7 @@ export declare const ClientConfig: z.ZodObject<{
74
74
  COUNTRY: z.ZodString;
75
75
  LANGUAGES: z.ZodArray<z.ZodString>;
76
76
  SENTRY: z.ZodOptional<z.ZodString>;
77
+ LOGIN_URL: z.ZodOptional<z.ZodString>;
77
78
  REGISTER_BACKGROUND: z.ZodObject<{
78
79
  backgroundColor: z.ZodOptional<z.ZodString>;
79
80
  backgroundImage: z.ZodOptional<z.ZodString>;