@opencrvs/toolkit 1.8.0-rc.f9c5526 → 1.8.0-rc.f9d33b7

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.
Files changed (34) hide show
  1. package/dist/commons/api/router.d.ts +7290 -4133
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +86380 -1682
  5. package/dist/commons/events/ActionDocument.d.ts +420 -103
  6. package/dist/commons/events/ActionInput.d.ts +158 -60
  7. package/dist/commons/events/ActionType.d.ts +2 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +27 -9
  11. package/dist/commons/events/EventConfig.d.ts +41061 -1337
  12. package/dist/commons/events/EventDocument.d.ts +334 -77
  13. package/dist/commons/events/EventIndex.d.ts +915 -4
  14. package/dist/commons/events/EventInput.d.ts +13 -0
  15. package/dist/commons/events/EventMetadata.d.ts +13 -3
  16. package/dist/commons/events/FieldConfig.d.ts +3466 -721
  17. package/dist/commons/events/FieldType.d.ts +1 -2
  18. package/dist/commons/events/FieldValue.d.ts +1 -1
  19. package/dist/commons/events/FormConfig.d.ts +38845 -517
  20. package/dist/commons/events/PageConfig.d.ts +9671 -203
  21. package/dist/commons/events/SummaryConfig.d.ts +81 -42
  22. package/dist/commons/events/User.d.ts +5 -0
  23. package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
  24. package/dist/commons/events/defineConfig.d.ts +6681 -31
  25. package/dist/commons/events/event.d.ts +25 -0
  26. package/dist/commons/events/field.d.ts +68 -0
  27. package/dist/commons/events/index.d.ts +3 -0
  28. package/dist/commons/events/scopes.d.ts +26 -0
  29. package/dist/commons/events/test.utils.d.ts +1 -38
  30. package/dist/commons/events/utils.d.ts +3404 -91
  31. package/dist/commons/events/utils.test.d.ts +2 -0
  32. package/dist/conditionals/index.js +36 -33
  33. package/dist/events/index.js +975 -625
  34. package/package.json +3 -2
@@ -231,7 +231,9 @@ export declare const BaseActionInput: z.ZodObject<{
231
231
  postcodeOrZip?: string | null | undefined;
232
232
  }>]>>>;
233
233
  originalActionId: z.ZodOptional<z.ZodString>;
234
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
234
235
  }, "strip", z.ZodTypeAny, {
236
+ transactionId: string;
235
237
  declaration: Record<string, string | number | boolean | {
236
238
  type: string;
237
239
  filename: string;
@@ -271,7 +273,6 @@ export declare const BaseActionInput: z.ZodObject<{
271
273
  originalFilename: string;
272
274
  }[] | undefined>;
273
275
  eventId: string;
274
- transactionId: string;
275
276
  annotation?: Record<string, string | number | boolean | {
276
277
  type: string;
277
278
  filename: string;
@@ -311,9 +312,10 @@ export declare const BaseActionInput: z.ZodObject<{
311
312
  originalFilename: string;
312
313
  }[] | undefined> | undefined;
313
314
  originalActionId?: string | undefined;
315
+ keepAssignment?: boolean | undefined;
314
316
  }, {
315
- eventId: string;
316
317
  transactionId: string;
318
+ eventId: string;
317
319
  declaration?: Record<string, string | number | boolean | {
318
320
  type: string;
319
321
  filename: string;
@@ -391,6 +393,7 @@ export declare const BaseActionInput: z.ZodObject<{
391
393
  originalFilename: string;
392
394
  }[] | undefined> | undefined;
393
395
  originalActionId?: string | undefined;
396
+ keepAssignment?: boolean | undefined;
394
397
  }>;
395
398
  export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
396
399
  eventId: z.ZodString;
@@ -624,11 +627,13 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
624
627
  postcodeOrZip?: string | null | undefined;
625
628
  }>]>>>;
626
629
  originalActionId: z.ZodOptional<z.ZodString>;
630
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
627
631
  }, {
628
632
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
629
633
  registrationNumber: z.ZodOptional<z.ZodString>;
630
634
  }>, "strip", z.ZodTypeAny, {
631
635
  type: "REGISTER";
636
+ transactionId: string;
632
637
  declaration: Record<string, string | number | boolean | {
633
638
  type: string;
634
639
  filename: string;
@@ -668,7 +673,6 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
668
673
  originalFilename: string;
669
674
  }[] | undefined>;
670
675
  eventId: string;
671
- transactionId: string;
672
676
  annotation?: Record<string, string | number | boolean | {
673
677
  type: string;
674
678
  filename: string;
@@ -709,9 +713,10 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
709
713
  }[] | undefined> | undefined;
710
714
  originalActionId?: string | undefined;
711
715
  registrationNumber?: string | undefined;
716
+ keepAssignment?: boolean | undefined;
712
717
  }, {
713
- eventId: string;
714
718
  transactionId: string;
719
+ eventId: string;
715
720
  type?: "REGISTER" | undefined;
716
721
  declaration?: Record<string, string | number | boolean | {
717
722
  type: string;
@@ -791,6 +796,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
791
796
  }[] | undefined> | undefined;
792
797
  originalActionId?: string | undefined;
793
798
  registrationNumber?: string | undefined;
799
+ keepAssignment?: boolean | undefined;
794
800
  }>;
795
801
  export type RegisterActionInput = z.infer<typeof RegisterActionInput>;
796
802
  export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -1025,11 +1031,13 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1025
1031
  postcodeOrZip?: string | null | undefined;
1026
1032
  }>]>>>;
1027
1033
  originalActionId: z.ZodOptional<z.ZodString>;
1034
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1028
1035
  }, {
1029
1036
  type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
1030
1037
  duplicates: z.ZodArray<z.ZodString, "many">;
1031
1038
  }>, "strip", z.ZodTypeAny, {
1032
1039
  type: "VALIDATE";
1040
+ transactionId: string;
1033
1041
  declaration: Record<string, string | number | boolean | {
1034
1042
  type: string;
1035
1043
  filename: string;
@@ -1069,7 +1077,6 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1069
1077
  originalFilename: string;
1070
1078
  }[] | undefined>;
1071
1079
  eventId: string;
1072
- transactionId: string;
1073
1080
  duplicates: string[];
1074
1081
  annotation?: Record<string, string | number | boolean | {
1075
1082
  type: string;
@@ -1110,9 +1117,10 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1110
1117
  originalFilename: string;
1111
1118
  }[] | undefined> | undefined;
1112
1119
  originalActionId?: string | undefined;
1120
+ keepAssignment?: boolean | undefined;
1113
1121
  }, {
1114
- eventId: string;
1115
1122
  transactionId: string;
1123
+ eventId: string;
1116
1124
  duplicates: string[];
1117
1125
  type?: "VALIDATE" | undefined;
1118
1126
  declaration?: Record<string, string | number | boolean | {
@@ -1192,6 +1200,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1192
1200
  originalFilename: string;
1193
1201
  }[] | undefined> | undefined;
1194
1202
  originalActionId?: string | undefined;
1203
+ keepAssignment?: boolean | undefined;
1195
1204
  }>;
1196
1205
  export type ValidateActionInput = z.infer<typeof ValidateActionInput>;
1197
1206
  export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -1426,10 +1435,12 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1426
1435
  postcodeOrZip?: string | null | undefined;
1427
1436
  }>]>>>;
1428
1437
  originalActionId: z.ZodOptional<z.ZodString>;
1438
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1429
1439
  }, {
1430
1440
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
1431
1441
  }>, "strip", z.ZodTypeAny, {
1432
1442
  type: "NOTIFY";
1443
+ transactionId: string;
1433
1444
  declaration: Record<string, string | number | boolean | {
1434
1445
  type: string;
1435
1446
  filename: string;
@@ -1469,7 +1480,6 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1469
1480
  originalFilename: string;
1470
1481
  }[] | undefined>;
1471
1482
  eventId: string;
1472
- transactionId: string;
1473
1483
  annotation?: Record<string, string | number | boolean | {
1474
1484
  type: string;
1475
1485
  filename: string;
@@ -1509,9 +1519,10 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1509
1519
  originalFilename: string;
1510
1520
  }[] | undefined> | undefined;
1511
1521
  originalActionId?: string | undefined;
1522
+ keepAssignment?: boolean | undefined;
1512
1523
  }, {
1513
- eventId: string;
1514
1524
  transactionId: string;
1525
+ eventId: string;
1515
1526
  type?: "NOTIFY" | undefined;
1516
1527
  declaration?: Record<string, string | number | boolean | {
1517
1528
  type: string;
@@ -1590,6 +1601,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1590
1601
  originalFilename: string;
1591
1602
  }[] | undefined> | undefined;
1592
1603
  originalActionId?: string | undefined;
1604
+ keepAssignment?: boolean | undefined;
1593
1605
  }>;
1594
1606
  export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
1595
1607
  export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -1824,10 +1836,12 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1824
1836
  postcodeOrZip?: string | null | undefined;
1825
1837
  }>]>>>;
1826
1838
  originalActionId: z.ZodOptional<z.ZodString>;
1839
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1827
1840
  }, {
1828
1841
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
1829
1842
  }>, "strip", z.ZodTypeAny, {
1830
1843
  type: "DECLARE";
1844
+ transactionId: string;
1831
1845
  declaration: Record<string, string | number | boolean | {
1832
1846
  type: string;
1833
1847
  filename: string;
@@ -1867,7 +1881,6 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1867
1881
  originalFilename: string;
1868
1882
  }[] | undefined>;
1869
1883
  eventId: string;
1870
- transactionId: string;
1871
1884
  annotation?: Record<string, string | number | boolean | {
1872
1885
  type: string;
1873
1886
  filename: string;
@@ -1907,9 +1920,10 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1907
1920
  originalFilename: string;
1908
1921
  }[] | undefined> | undefined;
1909
1922
  originalActionId?: string | undefined;
1923
+ keepAssignment?: boolean | undefined;
1910
1924
  }, {
1911
- eventId: string;
1912
1925
  transactionId: string;
1926
+ eventId: string;
1913
1927
  type?: "DECLARE" | undefined;
1914
1928
  declaration?: Record<string, string | number | boolean | {
1915
1929
  type: string;
@@ -1988,6 +2002,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1988
2002
  originalFilename: string;
1989
2003
  }[] | undefined> | undefined;
1990
2004
  originalActionId?: string | undefined;
2005
+ keepAssignment?: boolean | undefined;
1991
2006
  }>;
1992
2007
  export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1993
2008
  eventId: z.ZodString;
@@ -2221,10 +2236,12 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2221
2236
  postcodeOrZip?: string | null | undefined;
2222
2237
  }>]>>>;
2223
2238
  originalActionId: z.ZodOptional<z.ZodString>;
2239
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
2224
2240
  }, {
2225
2241
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
2226
2242
  }>, "strip", z.ZodTypeAny, {
2227
2243
  type: "PRINT_CERTIFICATE";
2244
+ transactionId: string;
2228
2245
  declaration: Record<string, string | number | boolean | {
2229
2246
  type: string;
2230
2247
  filename: string;
@@ -2264,7 +2281,6 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2264
2281
  originalFilename: string;
2265
2282
  }[] | undefined>;
2266
2283
  eventId: string;
2267
- transactionId: string;
2268
2284
  annotation?: Record<string, string | number | boolean | {
2269
2285
  type: string;
2270
2286
  filename: string;
@@ -2304,9 +2320,10 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2304
2320
  originalFilename: string;
2305
2321
  }[] | undefined> | undefined;
2306
2322
  originalActionId?: string | undefined;
2323
+ keepAssignment?: boolean | undefined;
2307
2324
  }, {
2308
- eventId: string;
2309
2325
  transactionId: string;
2326
+ eventId: string;
2310
2327
  type?: "PRINT_CERTIFICATE" | undefined;
2311
2328
  declaration?: Record<string, string | number | boolean | {
2312
2329
  type: string;
@@ -2385,6 +2402,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2385
2402
  originalFilename: string;
2386
2403
  }[] | undefined> | undefined;
2387
2404
  originalActionId?: string | undefined;
2405
+ keepAssignment?: boolean | undefined;
2388
2406
  }>;
2389
2407
  export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
2390
2408
  export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -2619,10 +2637,12 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2619
2637
  postcodeOrZip?: string | null | undefined;
2620
2638
  }>]>>>;
2621
2639
  originalActionId: z.ZodOptional<z.ZodString>;
2640
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
2622
2641
  }, {
2623
2642
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
2624
2643
  }>, "strip", z.ZodTypeAny, {
2625
2644
  type: "REJECT";
2645
+ transactionId: string;
2626
2646
  declaration: Record<string, string | number | boolean | {
2627
2647
  type: string;
2628
2648
  filename: string;
@@ -2662,7 +2682,6 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2662
2682
  originalFilename: string;
2663
2683
  }[] | undefined>;
2664
2684
  eventId: string;
2665
- transactionId: string;
2666
2685
  annotation?: Record<string, string | number | boolean | {
2667
2686
  type: string;
2668
2687
  filename: string;
@@ -2702,9 +2721,10 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2702
2721
  originalFilename: string;
2703
2722
  }[] | undefined> | undefined;
2704
2723
  originalActionId?: string | undefined;
2724
+ keepAssignment?: boolean | undefined;
2705
2725
  }, {
2706
- eventId: string;
2707
2726
  transactionId: string;
2727
+ eventId: string;
2708
2728
  type?: "REJECT" | undefined;
2709
2729
  declaration?: Record<string, string | number | boolean | {
2710
2730
  type: string;
@@ -2783,6 +2803,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2783
2803
  originalFilename: string;
2784
2804
  }[] | undefined> | undefined;
2785
2805
  originalActionId?: string | undefined;
2806
+ keepAssignment?: boolean | undefined;
2786
2807
  }>;
2787
2808
  export type RejectDeclarationActionInput = z.infer<typeof RejectDeclarationActionInput>;
2788
2809
  export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -3017,10 +3038,12 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3017
3038
  postcodeOrZip?: string | null | undefined;
3018
3039
  }>]>>>;
3019
3040
  originalActionId: z.ZodOptional<z.ZodString>;
3041
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3020
3042
  }, {
3021
3043
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
3022
3044
  }>, "strip", z.ZodTypeAny, {
3023
3045
  type: "MARKED_AS_DUPLICATE";
3046
+ transactionId: string;
3024
3047
  declaration: Record<string, string | number | boolean | {
3025
3048
  type: string;
3026
3049
  filename: string;
@@ -3060,7 +3083,6 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3060
3083
  originalFilename: string;
3061
3084
  }[] | undefined>;
3062
3085
  eventId: string;
3063
- transactionId: string;
3064
3086
  annotation?: Record<string, string | number | boolean | {
3065
3087
  type: string;
3066
3088
  filename: string;
@@ -3100,9 +3122,10 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3100
3122
  originalFilename: string;
3101
3123
  }[] | undefined> | undefined;
3102
3124
  originalActionId?: string | undefined;
3125
+ keepAssignment?: boolean | undefined;
3103
3126
  }, {
3104
- eventId: string;
3105
3127
  transactionId: string;
3128
+ eventId: string;
3106
3129
  type?: "MARKED_AS_DUPLICATE" | undefined;
3107
3130
  declaration?: Record<string, string | number | boolean | {
3108
3131
  type: string;
@@ -3181,6 +3204,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3181
3204
  originalFilename: string;
3182
3205
  }[] | undefined> | undefined;
3183
3206
  originalActionId?: string | undefined;
3207
+ keepAssignment?: boolean | undefined;
3184
3208
  }>;
3185
3209
  export type MarkedAsDuplicateActionInput = z.infer<typeof MarkedAsDuplicateActionInput>;
3186
3210
  export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -3415,10 +3439,12 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3415
3439
  postcodeOrZip?: string | null | undefined;
3416
3440
  }>]>>>;
3417
3441
  originalActionId: z.ZodOptional<z.ZodString>;
3442
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3418
3443
  }, {
3419
3444
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
3420
3445
  }>, "strip", z.ZodTypeAny, {
3421
3446
  type: "ARCHIVE";
3447
+ transactionId: string;
3422
3448
  declaration: Record<string, string | number | boolean | {
3423
3449
  type: string;
3424
3450
  filename: string;
@@ -3458,7 +3484,6 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3458
3484
  originalFilename: string;
3459
3485
  }[] | undefined>;
3460
3486
  eventId: string;
3461
- transactionId: string;
3462
3487
  annotation?: Record<string, string | number | boolean | {
3463
3488
  type: string;
3464
3489
  filename: string;
@@ -3498,9 +3523,10 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3498
3523
  originalFilename: string;
3499
3524
  }[] | undefined> | undefined;
3500
3525
  originalActionId?: string | undefined;
3526
+ keepAssignment?: boolean | undefined;
3501
3527
  }, {
3502
- eventId: string;
3503
3528
  transactionId: string;
3529
+ eventId: string;
3504
3530
  type?: "ARCHIVE" | undefined;
3505
3531
  declaration?: Record<string, string | number | boolean | {
3506
3532
  type: string;
@@ -3579,6 +3605,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3579
3605
  originalFilename: string;
3580
3606
  }[] | undefined> | undefined;
3581
3607
  originalActionId?: string | undefined;
3608
+ keepAssignment?: boolean | undefined;
3582
3609
  }>;
3583
3610
  export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
3584
3611
  export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -3813,11 +3840,13 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3813
3840
  postcodeOrZip?: string | null | undefined;
3814
3841
  }>]>>>;
3815
3842
  originalActionId: z.ZodOptional<z.ZodString>;
3843
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3816
3844
  }, {
3817
3845
  type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
3818
3846
  assignedTo: z.ZodString;
3819
3847
  }>, "strip", z.ZodTypeAny, {
3820
3848
  type: "ASSIGN";
3849
+ transactionId: string;
3821
3850
  declaration: Record<string, string | number | boolean | {
3822
3851
  type: string;
3823
3852
  filename: string;
@@ -3858,7 +3887,6 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3858
3887
  }[] | undefined>;
3859
3888
  assignedTo: string;
3860
3889
  eventId: string;
3861
- transactionId: string;
3862
3890
  annotation?: Record<string, string | number | boolean | {
3863
3891
  type: string;
3864
3892
  filename: string;
@@ -3898,10 +3926,11 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3898
3926
  originalFilename: string;
3899
3927
  }[] | undefined> | undefined;
3900
3928
  originalActionId?: string | undefined;
3929
+ keepAssignment?: boolean | undefined;
3901
3930
  }, {
3931
+ transactionId: string;
3902
3932
  assignedTo: string;
3903
3933
  eventId: string;
3904
- transactionId: string;
3905
3934
  type?: "ASSIGN" | undefined;
3906
3935
  declaration?: Record<string, string | number | boolean | {
3907
3936
  type: string;
@@ -3980,6 +4009,7 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3980
4009
  originalFilename: string;
3981
4010
  }[] | undefined> | undefined;
3982
4011
  originalActionId?: string | undefined;
4012
+ keepAssignment?: boolean | undefined;
3983
4013
  }>;
3984
4014
  export type AssignActionInput = z.infer<typeof AssignActionInput>;
3985
4015
  export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -4214,11 +4244,13 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4214
4244
  postcodeOrZip?: string | null | undefined;
4215
4245
  }>]>>>;
4216
4246
  originalActionId: z.ZodOptional<z.ZodString>;
4247
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
4217
4248
  }, {
4218
4249
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
4219
4250
  assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
4220
4251
  }>, "strip", z.ZodTypeAny, {
4221
4252
  type: "UNASSIGN";
4253
+ transactionId: string;
4222
4254
  declaration: Record<string, string | number | boolean | {
4223
4255
  type: string;
4224
4256
  filename: string;
@@ -4259,7 +4291,6 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4259
4291
  }[] | undefined>;
4260
4292
  assignedTo: null;
4261
4293
  eventId: string;
4262
- transactionId: string;
4263
4294
  annotation?: Record<string, string | number | boolean | {
4264
4295
  type: string;
4265
4296
  filename: string;
@@ -4299,9 +4330,10 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4299
4330
  originalFilename: string;
4300
4331
  }[] | undefined> | undefined;
4301
4332
  originalActionId?: string | undefined;
4333
+ keepAssignment?: boolean | undefined;
4302
4334
  }, {
4303
- eventId: string;
4304
4335
  transactionId: string;
4336
+ eventId: string;
4305
4337
  type?: "UNASSIGN" | undefined;
4306
4338
  declaration?: Record<string, string | number | boolean | {
4307
4339
  type: string;
@@ -4381,6 +4413,7 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4381
4413
  }[] | undefined> | undefined;
4382
4414
  originalActionId?: string | undefined;
4383
4415
  assignedTo?: null | undefined;
4416
+ keepAssignment?: boolean | undefined;
4384
4417
  }>;
4385
4418
  export type UnassignActionInput = z.infer<typeof UnassignActionInput>;
4386
4419
  export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -4615,10 +4648,12 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4615
4648
  postcodeOrZip?: string | null | undefined;
4616
4649
  }>]>>>;
4617
4650
  originalActionId: z.ZodOptional<z.ZodString>;
4651
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
4618
4652
  }, {
4619
4653
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
4620
4654
  }>, "strip", z.ZodTypeAny, {
4621
4655
  type: "REQUEST_CORRECTION";
4656
+ transactionId: string;
4622
4657
  declaration: Record<string, string | number | boolean | {
4623
4658
  type: string;
4624
4659
  filename: string;
@@ -4658,7 +4693,6 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4658
4693
  originalFilename: string;
4659
4694
  }[] | undefined>;
4660
4695
  eventId: string;
4661
- transactionId: string;
4662
4696
  annotation?: Record<string, string | number | boolean | {
4663
4697
  type: string;
4664
4698
  filename: string;
@@ -4698,9 +4732,10 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4698
4732
  originalFilename: string;
4699
4733
  }[] | undefined> | undefined;
4700
4734
  originalActionId?: string | undefined;
4735
+ keepAssignment?: boolean | undefined;
4701
4736
  }, {
4702
- eventId: string;
4703
4737
  transactionId: string;
4738
+ eventId: string;
4704
4739
  type?: "REQUEST_CORRECTION" | undefined;
4705
4740
  declaration?: Record<string, string | number | boolean | {
4706
4741
  type: string;
@@ -4779,6 +4814,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4779
4814
  originalFilename: string;
4780
4815
  }[] | undefined> | undefined;
4781
4816
  originalActionId?: string | undefined;
4817
+ keepAssignment?: boolean | undefined;
4782
4818
  }>;
4783
4819
  export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
4784
4820
  export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -5013,11 +5049,13 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5013
5049
  postcodeOrZip?: string | null | undefined;
5014
5050
  }>]>>>;
5015
5051
  originalActionId: z.ZodOptional<z.ZodString>;
5052
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5016
5053
  }, {
5017
5054
  requestId: z.ZodString;
5018
5055
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
5019
5056
  }>, "strip", z.ZodTypeAny, {
5020
5057
  type: "REJECT_CORRECTION";
5058
+ transactionId: string;
5021
5059
  declaration: Record<string, string | number | boolean | {
5022
5060
  type: string;
5023
5061
  filename: string;
@@ -5058,7 +5096,6 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5058
5096
  }[] | undefined>;
5059
5097
  requestId: string;
5060
5098
  eventId: string;
5061
- transactionId: string;
5062
5099
  annotation?: Record<string, string | number | boolean | {
5063
5100
  type: string;
5064
5101
  filename: string;
@@ -5098,10 +5135,11 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5098
5135
  originalFilename: string;
5099
5136
  }[] | undefined> | undefined;
5100
5137
  originalActionId?: string | undefined;
5138
+ keepAssignment?: boolean | undefined;
5101
5139
  }, {
5140
+ transactionId: string;
5102
5141
  requestId: string;
5103
5142
  eventId: string;
5104
- transactionId: string;
5105
5143
  type?: "REJECT_CORRECTION" | undefined;
5106
5144
  declaration?: Record<string, string | number | boolean | {
5107
5145
  type: string;
@@ -5180,6 +5218,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5180
5218
  originalFilename: string;
5181
5219
  }[] | undefined> | undefined;
5182
5220
  originalActionId?: string | undefined;
5221
+ keepAssignment?: boolean | undefined;
5183
5222
  }>;
5184
5223
  export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
5185
5224
  export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -5414,11 +5453,13 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5414
5453
  postcodeOrZip?: string | null | undefined;
5415
5454
  }>]>>>;
5416
5455
  originalActionId: z.ZodOptional<z.ZodString>;
5456
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5417
5457
  }, {
5418
5458
  requestId: z.ZodString;
5419
5459
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
5420
5460
  }>, "strip", z.ZodTypeAny, {
5421
5461
  type: "APPROVE_CORRECTION";
5462
+ transactionId: string;
5422
5463
  declaration: Record<string, string | number | boolean | {
5423
5464
  type: string;
5424
5465
  filename: string;
@@ -5459,7 +5500,6 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5459
5500
  }[] | undefined>;
5460
5501
  requestId: string;
5461
5502
  eventId: string;
5462
- transactionId: string;
5463
5503
  annotation?: Record<string, string | number | boolean | {
5464
5504
  type: string;
5465
5505
  filename: string;
@@ -5499,10 +5539,11 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5499
5539
  originalFilename: string;
5500
5540
  }[] | undefined> | undefined;
5501
5541
  originalActionId?: string | undefined;
5542
+ keepAssignment?: boolean | undefined;
5502
5543
  }, {
5544
+ transactionId: string;
5503
5545
  requestId: string;
5504
5546
  eventId: string;
5505
- transactionId: string;
5506
5547
  type?: "APPROVE_CORRECTION" | undefined;
5507
5548
  declaration?: Record<string, string | number | boolean | {
5508
5549
  type: string;
@@ -5581,6 +5622,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5581
5622
  originalFilename: string;
5582
5623
  }[] | undefined> | undefined;
5583
5624
  originalActionId?: string | undefined;
5625
+ keepAssignment?: boolean | undefined;
5584
5626
  }>;
5585
5627
  export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
5586
5628
  export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
@@ -5815,10 +5857,12 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5815
5857
  postcodeOrZip?: string | null | undefined;
5816
5858
  }>]>>>;
5817
5859
  originalActionId: z.ZodOptional<z.ZodString>;
5860
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5818
5861
  }, {
5819
5862
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
5820
5863
  }>, "strip", z.ZodTypeAny, {
5821
5864
  type: "READ";
5865
+ transactionId: string;
5822
5866
  declaration: Record<string, string | number | boolean | {
5823
5867
  type: string;
5824
5868
  filename: string;
@@ -5858,7 +5902,6 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5858
5902
  originalFilename: string;
5859
5903
  }[] | undefined>;
5860
5904
  eventId: string;
5861
- transactionId: string;
5862
5905
  annotation?: Record<string, string | number | boolean | {
5863
5906
  type: string;
5864
5907
  filename: string;
@@ -5898,9 +5941,10 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5898
5941
  originalFilename: string;
5899
5942
  }[] | undefined> | undefined;
5900
5943
  originalActionId?: string | undefined;
5944
+ keepAssignment?: boolean | undefined;
5901
5945
  }, {
5902
- eventId: string;
5903
5946
  transactionId: string;
5947
+ eventId: string;
5904
5948
  type?: "READ" | undefined;
5905
5949
  declaration?: Record<string, string | number | boolean | {
5906
5950
  type: string;
@@ -5979,8 +6023,17 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5979
6023
  originalFilename: string;
5980
6024
  }[] | undefined> | undefined;
5981
6025
  originalActionId?: string | undefined;
6026
+ keepAssignment?: boolean | undefined;
5982
6027
  }>;
5983
6028
  export type ReadActionInput = z.infer<typeof ReadActionInput>;
6029
+ export declare const DeleteActionInput: z.ZodObject<{
6030
+ eventId: z.ZodString;
6031
+ }, "strip", z.ZodTypeAny, {
6032
+ eventId: string;
6033
+ }, {
6034
+ eventId: string;
6035
+ }>;
6036
+ export type DeleteActionInput = z.infer<typeof DeleteActionInput>;
5984
6037
  /**
5985
6038
  * ActionInput types are used to validate the input data for the action.
5986
6039
  * In our use case, we use it directly with TRPC to validate the input data for the action.
@@ -6221,11 +6274,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6221
6274
  postcodeOrZip?: string | null | undefined;
6222
6275
  }>]>>>;
6223
6276
  originalActionId: z.ZodOptional<z.ZodString>;
6277
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6224
6278
  }, {
6225
6279
  type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
6226
6280
  createdAtLocation: z.ZodString;
6227
6281
  }>, "strip", z.ZodTypeAny, {
6228
6282
  type: "CREATE";
6283
+ transactionId: string;
6229
6284
  declaration: Record<string, string | number | boolean | {
6230
6285
  type: string;
6231
6286
  filename: string;
@@ -6266,7 +6321,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6266
6321
  }[] | undefined>;
6267
6322
  createdAtLocation: string;
6268
6323
  eventId: string;
6269
- transactionId: string;
6270
6324
  annotation?: Record<string, string | number | boolean | {
6271
6325
  type: string;
6272
6326
  filename: string;
@@ -6306,10 +6360,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6306
6360
  originalFilename: string;
6307
6361
  }[] | undefined> | undefined;
6308
6362
  originalActionId?: string | undefined;
6363
+ keepAssignment?: boolean | undefined;
6309
6364
  }, {
6365
+ transactionId: string;
6310
6366
  createdAtLocation: string;
6311
6367
  eventId: string;
6312
- transactionId: string;
6313
6368
  type?: "CREATE" | undefined;
6314
6369
  declaration?: Record<string, string | number | boolean | {
6315
6370
  type: string;
@@ -6388,6 +6443,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6388
6443
  originalFilename: string;
6389
6444
  }[] | undefined> | undefined;
6390
6445
  originalActionId?: string | undefined;
6446
+ keepAssignment?: boolean | undefined;
6391
6447
  }>, z.ZodObject<z.objectUtil.extendShape<{
6392
6448
  eventId: z.ZodString;
6393
6449
  transactionId: z.ZodString;
@@ -6620,11 +6676,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6620
6676
  postcodeOrZip?: string | null | undefined;
6621
6677
  }>]>>>;
6622
6678
  originalActionId: z.ZodOptional<z.ZodString>;
6679
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6623
6680
  }, {
6624
6681
  type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
6625
6682
  duplicates: z.ZodArray<z.ZodString, "many">;
6626
6683
  }>, "strip", z.ZodTypeAny, {
6627
6684
  type: "VALIDATE";
6685
+ transactionId: string;
6628
6686
  declaration: Record<string, string | number | boolean | {
6629
6687
  type: string;
6630
6688
  filename: string;
@@ -6664,7 +6722,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6664
6722
  originalFilename: string;
6665
6723
  }[] | undefined>;
6666
6724
  eventId: string;
6667
- transactionId: string;
6668
6725
  duplicates: string[];
6669
6726
  annotation?: Record<string, string | number | boolean | {
6670
6727
  type: string;
@@ -6705,9 +6762,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6705
6762
  originalFilename: string;
6706
6763
  }[] | undefined> | undefined;
6707
6764
  originalActionId?: string | undefined;
6765
+ keepAssignment?: boolean | undefined;
6708
6766
  }, {
6709
- eventId: string;
6710
6767
  transactionId: string;
6768
+ eventId: string;
6711
6769
  duplicates: string[];
6712
6770
  type?: "VALIDATE" | undefined;
6713
6771
  declaration?: Record<string, string | number | boolean | {
@@ -6787,6 +6845,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6787
6845
  originalFilename: string;
6788
6846
  }[] | undefined> | undefined;
6789
6847
  originalActionId?: string | undefined;
6848
+ keepAssignment?: boolean | undefined;
6790
6849
  }>, z.ZodObject<z.objectUtil.extendShape<{
6791
6850
  eventId: z.ZodString;
6792
6851
  transactionId: z.ZodString;
@@ -7019,11 +7078,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7019
7078
  postcodeOrZip?: string | null | undefined;
7020
7079
  }>]>>>;
7021
7080
  originalActionId: z.ZodOptional<z.ZodString>;
7081
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7022
7082
  }, {
7023
7083
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
7024
7084
  registrationNumber: z.ZodOptional<z.ZodString>;
7025
7085
  }>, "strip", z.ZodTypeAny, {
7026
7086
  type: "REGISTER";
7087
+ transactionId: string;
7027
7088
  declaration: Record<string, string | number | boolean | {
7028
7089
  type: string;
7029
7090
  filename: string;
@@ -7063,7 +7124,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7063
7124
  originalFilename: string;
7064
7125
  }[] | undefined>;
7065
7126
  eventId: string;
7066
- transactionId: string;
7067
7127
  annotation?: Record<string, string | number | boolean | {
7068
7128
  type: string;
7069
7129
  filename: string;
@@ -7104,9 +7164,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7104
7164
  }[] | undefined> | undefined;
7105
7165
  originalActionId?: string | undefined;
7106
7166
  registrationNumber?: string | undefined;
7167
+ keepAssignment?: boolean | undefined;
7107
7168
  }, {
7108
- eventId: string;
7109
7169
  transactionId: string;
7170
+ eventId: string;
7110
7171
  type?: "REGISTER" | undefined;
7111
7172
  declaration?: Record<string, string | number | boolean | {
7112
7173
  type: string;
@@ -7186,6 +7247,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7186
7247
  }[] | undefined> | undefined;
7187
7248
  originalActionId?: string | undefined;
7188
7249
  registrationNumber?: string | undefined;
7250
+ keepAssignment?: boolean | undefined;
7189
7251
  }>, z.ZodObject<z.objectUtil.extendShape<{
7190
7252
  eventId: z.ZodString;
7191
7253
  transactionId: z.ZodString;
@@ -7418,10 +7480,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7418
7480
  postcodeOrZip?: string | null | undefined;
7419
7481
  }>]>>>;
7420
7482
  originalActionId: z.ZodOptional<z.ZodString>;
7483
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7421
7484
  }, {
7422
7485
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
7423
7486
  }>, "strip", z.ZodTypeAny, {
7424
7487
  type: "NOTIFY";
7488
+ transactionId: string;
7425
7489
  declaration: Record<string, string | number | boolean | {
7426
7490
  type: string;
7427
7491
  filename: string;
@@ -7461,7 +7525,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7461
7525
  originalFilename: string;
7462
7526
  }[] | undefined>;
7463
7527
  eventId: string;
7464
- transactionId: string;
7465
7528
  annotation?: Record<string, string | number | boolean | {
7466
7529
  type: string;
7467
7530
  filename: string;
@@ -7501,9 +7564,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7501
7564
  originalFilename: string;
7502
7565
  }[] | undefined> | undefined;
7503
7566
  originalActionId?: string | undefined;
7567
+ keepAssignment?: boolean | undefined;
7504
7568
  }, {
7505
- eventId: string;
7506
7569
  transactionId: string;
7570
+ eventId: string;
7507
7571
  type?: "NOTIFY" | undefined;
7508
7572
  declaration?: Record<string, string | number | boolean | {
7509
7573
  type: string;
@@ -7582,6 +7646,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7582
7646
  originalFilename: string;
7583
7647
  }[] | undefined> | undefined;
7584
7648
  originalActionId?: string | undefined;
7649
+ keepAssignment?: boolean | undefined;
7585
7650
  }>, z.ZodObject<z.objectUtil.extendShape<{
7586
7651
  eventId: z.ZodString;
7587
7652
  transactionId: z.ZodString;
@@ -7814,10 +7879,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7814
7879
  postcodeOrZip?: string | null | undefined;
7815
7880
  }>]>>>;
7816
7881
  originalActionId: z.ZodOptional<z.ZodString>;
7882
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7817
7883
  }, {
7818
7884
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
7819
7885
  }>, "strip", z.ZodTypeAny, {
7820
7886
  type: "DECLARE";
7887
+ transactionId: string;
7821
7888
  declaration: Record<string, string | number | boolean | {
7822
7889
  type: string;
7823
7890
  filename: string;
@@ -7857,7 +7924,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7857
7924
  originalFilename: string;
7858
7925
  }[] | undefined>;
7859
7926
  eventId: string;
7860
- transactionId: string;
7861
7927
  annotation?: Record<string, string | number | boolean | {
7862
7928
  type: string;
7863
7929
  filename: string;
@@ -7897,9 +7963,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7897
7963
  originalFilename: string;
7898
7964
  }[] | undefined> | undefined;
7899
7965
  originalActionId?: string | undefined;
7966
+ keepAssignment?: boolean | undefined;
7900
7967
  }, {
7901
- eventId: string;
7902
7968
  transactionId: string;
7969
+ eventId: string;
7903
7970
  type?: "DECLARE" | undefined;
7904
7971
  declaration?: Record<string, string | number | boolean | {
7905
7972
  type: string;
@@ -7978,6 +8045,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7978
8045
  originalFilename: string;
7979
8046
  }[] | undefined> | undefined;
7980
8047
  originalActionId?: string | undefined;
8048
+ keepAssignment?: boolean | undefined;
7981
8049
  }>, z.ZodObject<z.objectUtil.extendShape<{
7982
8050
  eventId: z.ZodString;
7983
8051
  transactionId: z.ZodString;
@@ -8210,10 +8278,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8210
8278
  postcodeOrZip?: string | null | undefined;
8211
8279
  }>]>>>;
8212
8280
  originalActionId: z.ZodOptional<z.ZodString>;
8281
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8213
8282
  }, {
8214
8283
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
8215
8284
  }>, "strip", z.ZodTypeAny, {
8216
8285
  type: "REJECT";
8286
+ transactionId: string;
8217
8287
  declaration: Record<string, string | number | boolean | {
8218
8288
  type: string;
8219
8289
  filename: string;
@@ -8253,7 +8323,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8253
8323
  originalFilename: string;
8254
8324
  }[] | undefined>;
8255
8325
  eventId: string;
8256
- transactionId: string;
8257
8326
  annotation?: Record<string, string | number | boolean | {
8258
8327
  type: string;
8259
8328
  filename: string;
@@ -8293,9 +8362,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8293
8362
  originalFilename: string;
8294
8363
  }[] | undefined> | undefined;
8295
8364
  originalActionId?: string | undefined;
8365
+ keepAssignment?: boolean | undefined;
8296
8366
  }, {
8297
- eventId: string;
8298
8367
  transactionId: string;
8368
+ eventId: string;
8299
8369
  type?: "REJECT" | undefined;
8300
8370
  declaration?: Record<string, string | number | boolean | {
8301
8371
  type: string;
@@ -8374,6 +8444,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8374
8444
  originalFilename: string;
8375
8445
  }[] | undefined> | undefined;
8376
8446
  originalActionId?: string | undefined;
8447
+ keepAssignment?: boolean | undefined;
8377
8448
  }>, z.ZodObject<z.objectUtil.extendShape<{
8378
8449
  eventId: z.ZodString;
8379
8450
  transactionId: z.ZodString;
@@ -8606,10 +8677,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8606
8677
  postcodeOrZip?: string | null | undefined;
8607
8678
  }>]>>>;
8608
8679
  originalActionId: z.ZodOptional<z.ZodString>;
8680
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8609
8681
  }, {
8610
8682
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
8611
8683
  }>, "strip", z.ZodTypeAny, {
8612
8684
  type: "MARKED_AS_DUPLICATE";
8685
+ transactionId: string;
8613
8686
  declaration: Record<string, string | number | boolean | {
8614
8687
  type: string;
8615
8688
  filename: string;
@@ -8649,7 +8722,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8649
8722
  originalFilename: string;
8650
8723
  }[] | undefined>;
8651
8724
  eventId: string;
8652
- transactionId: string;
8653
8725
  annotation?: Record<string, string | number | boolean | {
8654
8726
  type: string;
8655
8727
  filename: string;
@@ -8689,9 +8761,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8689
8761
  originalFilename: string;
8690
8762
  }[] | undefined> | undefined;
8691
8763
  originalActionId?: string | undefined;
8764
+ keepAssignment?: boolean | undefined;
8692
8765
  }, {
8693
- eventId: string;
8694
8766
  transactionId: string;
8767
+ eventId: string;
8695
8768
  type?: "MARKED_AS_DUPLICATE" | undefined;
8696
8769
  declaration?: Record<string, string | number | boolean | {
8697
8770
  type: string;
@@ -8770,6 +8843,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8770
8843
  originalFilename: string;
8771
8844
  }[] | undefined> | undefined;
8772
8845
  originalActionId?: string | undefined;
8846
+ keepAssignment?: boolean | undefined;
8773
8847
  }>, z.ZodObject<z.objectUtil.extendShape<{
8774
8848
  eventId: z.ZodString;
8775
8849
  transactionId: z.ZodString;
@@ -9002,10 +9076,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9002
9076
  postcodeOrZip?: string | null | undefined;
9003
9077
  }>]>>>;
9004
9078
  originalActionId: z.ZodOptional<z.ZodString>;
9079
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9005
9080
  }, {
9006
9081
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
9007
9082
  }>, "strip", z.ZodTypeAny, {
9008
9083
  type: "ARCHIVE";
9084
+ transactionId: string;
9009
9085
  declaration: Record<string, string | number | boolean | {
9010
9086
  type: string;
9011
9087
  filename: string;
@@ -9045,7 +9121,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9045
9121
  originalFilename: string;
9046
9122
  }[] | undefined>;
9047
9123
  eventId: string;
9048
- transactionId: string;
9049
9124
  annotation?: Record<string, string | number | boolean | {
9050
9125
  type: string;
9051
9126
  filename: string;
@@ -9085,9 +9160,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9085
9160
  originalFilename: string;
9086
9161
  }[] | undefined> | undefined;
9087
9162
  originalActionId?: string | undefined;
9163
+ keepAssignment?: boolean | undefined;
9088
9164
  }, {
9089
- eventId: string;
9090
9165
  transactionId: string;
9166
+ eventId: string;
9091
9167
  type?: "ARCHIVE" | undefined;
9092
9168
  declaration?: Record<string, string | number | boolean | {
9093
9169
  type: string;
@@ -9166,6 +9242,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9166
9242
  originalFilename: string;
9167
9243
  }[] | undefined> | undefined;
9168
9244
  originalActionId?: string | undefined;
9245
+ keepAssignment?: boolean | undefined;
9169
9246
  }>, z.ZodObject<z.objectUtil.extendShape<{
9170
9247
  eventId: z.ZodString;
9171
9248
  transactionId: z.ZodString;
@@ -9398,11 +9475,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9398
9475
  postcodeOrZip?: string | null | undefined;
9399
9476
  }>]>>>;
9400
9477
  originalActionId: z.ZodOptional<z.ZodString>;
9478
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9401
9479
  }, {
9402
9480
  type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
9403
9481
  assignedTo: z.ZodString;
9404
9482
  }>, "strip", z.ZodTypeAny, {
9405
9483
  type: "ASSIGN";
9484
+ transactionId: string;
9406
9485
  declaration: Record<string, string | number | boolean | {
9407
9486
  type: string;
9408
9487
  filename: string;
@@ -9443,7 +9522,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9443
9522
  }[] | undefined>;
9444
9523
  assignedTo: string;
9445
9524
  eventId: string;
9446
- transactionId: string;
9447
9525
  annotation?: Record<string, string | number | boolean | {
9448
9526
  type: string;
9449
9527
  filename: string;
@@ -9483,10 +9561,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9483
9561
  originalFilename: string;
9484
9562
  }[] | undefined> | undefined;
9485
9563
  originalActionId?: string | undefined;
9564
+ keepAssignment?: boolean | undefined;
9486
9565
  }, {
9566
+ transactionId: string;
9487
9567
  assignedTo: string;
9488
9568
  eventId: string;
9489
- transactionId: string;
9490
9569
  type?: "ASSIGN" | undefined;
9491
9570
  declaration?: Record<string, string | number | boolean | {
9492
9571
  type: string;
@@ -9565,6 +9644,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9565
9644
  originalFilename: string;
9566
9645
  }[] | undefined> | undefined;
9567
9646
  originalActionId?: string | undefined;
9647
+ keepAssignment?: boolean | undefined;
9568
9648
  }>, z.ZodObject<z.objectUtil.extendShape<{
9569
9649
  eventId: z.ZodString;
9570
9650
  transactionId: z.ZodString;
@@ -9797,11 +9877,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9797
9877
  postcodeOrZip?: string | null | undefined;
9798
9878
  }>]>>>;
9799
9879
  originalActionId: z.ZodOptional<z.ZodString>;
9880
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9800
9881
  }, {
9801
9882
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
9802
9883
  assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
9803
9884
  }>, "strip", z.ZodTypeAny, {
9804
9885
  type: "UNASSIGN";
9886
+ transactionId: string;
9805
9887
  declaration: Record<string, string | number | boolean | {
9806
9888
  type: string;
9807
9889
  filename: string;
@@ -9842,7 +9924,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9842
9924
  }[] | undefined>;
9843
9925
  assignedTo: null;
9844
9926
  eventId: string;
9845
- transactionId: string;
9846
9927
  annotation?: Record<string, string | number | boolean | {
9847
9928
  type: string;
9848
9929
  filename: string;
@@ -9882,9 +9963,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9882
9963
  originalFilename: string;
9883
9964
  }[] | undefined> | undefined;
9884
9965
  originalActionId?: string | undefined;
9966
+ keepAssignment?: boolean | undefined;
9885
9967
  }, {
9886
- eventId: string;
9887
9968
  transactionId: string;
9969
+ eventId: string;
9888
9970
  type?: "UNASSIGN" | undefined;
9889
9971
  declaration?: Record<string, string | number | boolean | {
9890
9972
  type: string;
@@ -9964,6 +10046,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9964
10046
  }[] | undefined> | undefined;
9965
10047
  originalActionId?: string | undefined;
9966
10048
  assignedTo?: null | undefined;
10049
+ keepAssignment?: boolean | undefined;
9967
10050
  }>, z.ZodObject<z.objectUtil.extendShape<{
9968
10051
  eventId: z.ZodString;
9969
10052
  transactionId: z.ZodString;
@@ -10196,10 +10279,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10196
10279
  postcodeOrZip?: string | null | undefined;
10197
10280
  }>]>>>;
10198
10281
  originalActionId: z.ZodOptional<z.ZodString>;
10282
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
10199
10283
  }, {
10200
10284
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
10201
10285
  }>, "strip", z.ZodTypeAny, {
10202
10286
  type: "PRINT_CERTIFICATE";
10287
+ transactionId: string;
10203
10288
  declaration: Record<string, string | number | boolean | {
10204
10289
  type: string;
10205
10290
  filename: string;
@@ -10239,7 +10324,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10239
10324
  originalFilename: string;
10240
10325
  }[] | undefined>;
10241
10326
  eventId: string;
10242
- transactionId: string;
10243
10327
  annotation?: Record<string, string | number | boolean | {
10244
10328
  type: string;
10245
10329
  filename: string;
@@ -10279,9 +10363,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10279
10363
  originalFilename: string;
10280
10364
  }[] | undefined> | undefined;
10281
10365
  originalActionId?: string | undefined;
10366
+ keepAssignment?: boolean | undefined;
10282
10367
  }, {
10283
- eventId: string;
10284
10368
  transactionId: string;
10369
+ eventId: string;
10285
10370
  type?: "PRINT_CERTIFICATE" | undefined;
10286
10371
  declaration?: Record<string, string | number | boolean | {
10287
10372
  type: string;
@@ -10360,6 +10445,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10360
10445
  originalFilename: string;
10361
10446
  }[] | undefined> | undefined;
10362
10447
  originalActionId?: string | undefined;
10448
+ keepAssignment?: boolean | undefined;
10363
10449
  }>, z.ZodObject<z.objectUtil.extendShape<{
10364
10450
  eventId: z.ZodString;
10365
10451
  transactionId: z.ZodString;
@@ -10592,10 +10678,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10592
10678
  postcodeOrZip?: string | null | undefined;
10593
10679
  }>]>>>;
10594
10680
  originalActionId: z.ZodOptional<z.ZodString>;
10681
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
10595
10682
  }, {
10596
10683
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
10597
10684
  }>, "strip", z.ZodTypeAny, {
10598
10685
  type: "REQUEST_CORRECTION";
10686
+ transactionId: string;
10599
10687
  declaration: Record<string, string | number | boolean | {
10600
10688
  type: string;
10601
10689
  filename: string;
@@ -10635,7 +10723,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10635
10723
  originalFilename: string;
10636
10724
  }[] | undefined>;
10637
10725
  eventId: string;
10638
- transactionId: string;
10639
10726
  annotation?: Record<string, string | number | boolean | {
10640
10727
  type: string;
10641
10728
  filename: string;
@@ -10675,9 +10762,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10675
10762
  originalFilename: string;
10676
10763
  }[] | undefined> | undefined;
10677
10764
  originalActionId?: string | undefined;
10765
+ keepAssignment?: boolean | undefined;
10678
10766
  }, {
10679
- eventId: string;
10680
10767
  transactionId: string;
10768
+ eventId: string;
10681
10769
  type?: "REQUEST_CORRECTION" | undefined;
10682
10770
  declaration?: Record<string, string | number | boolean | {
10683
10771
  type: string;
@@ -10756,6 +10844,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10756
10844
  originalFilename: string;
10757
10845
  }[] | undefined> | undefined;
10758
10846
  originalActionId?: string | undefined;
10847
+ keepAssignment?: boolean | undefined;
10759
10848
  }>, z.ZodObject<z.objectUtil.extendShape<{
10760
10849
  eventId: z.ZodString;
10761
10850
  transactionId: z.ZodString;
@@ -10988,11 +11077,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10988
11077
  postcodeOrZip?: string | null | undefined;
10989
11078
  }>]>>>;
10990
11079
  originalActionId: z.ZodOptional<z.ZodString>;
11080
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
10991
11081
  }, {
10992
11082
  requestId: z.ZodString;
10993
11083
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
10994
11084
  }>, "strip", z.ZodTypeAny, {
10995
11085
  type: "REJECT_CORRECTION";
11086
+ transactionId: string;
10996
11087
  declaration: Record<string, string | number | boolean | {
10997
11088
  type: string;
10998
11089
  filename: string;
@@ -11033,7 +11124,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11033
11124
  }[] | undefined>;
11034
11125
  requestId: string;
11035
11126
  eventId: string;
11036
- transactionId: string;
11037
11127
  annotation?: Record<string, string | number | boolean | {
11038
11128
  type: string;
11039
11129
  filename: string;
@@ -11073,10 +11163,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11073
11163
  originalFilename: string;
11074
11164
  }[] | undefined> | undefined;
11075
11165
  originalActionId?: string | undefined;
11166
+ keepAssignment?: boolean | undefined;
11076
11167
  }, {
11168
+ transactionId: string;
11077
11169
  requestId: string;
11078
11170
  eventId: string;
11079
- transactionId: string;
11080
11171
  type?: "REJECT_CORRECTION" | undefined;
11081
11172
  declaration?: Record<string, string | number | boolean | {
11082
11173
  type: string;
@@ -11155,6 +11246,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11155
11246
  originalFilename: string;
11156
11247
  }[] | undefined> | undefined;
11157
11248
  originalActionId?: string | undefined;
11249
+ keepAssignment?: boolean | undefined;
11158
11250
  }>, z.ZodObject<z.objectUtil.extendShape<{
11159
11251
  eventId: z.ZodString;
11160
11252
  transactionId: z.ZodString;
@@ -11387,11 +11479,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11387
11479
  postcodeOrZip?: string | null | undefined;
11388
11480
  }>]>>>;
11389
11481
  originalActionId: z.ZodOptional<z.ZodString>;
11482
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
11390
11483
  }, {
11391
11484
  requestId: z.ZodString;
11392
11485
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
11393
11486
  }>, "strip", z.ZodTypeAny, {
11394
11487
  type: "APPROVE_CORRECTION";
11488
+ transactionId: string;
11395
11489
  declaration: Record<string, string | number | boolean | {
11396
11490
  type: string;
11397
11491
  filename: string;
@@ -11432,7 +11526,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11432
11526
  }[] | undefined>;
11433
11527
  requestId: string;
11434
11528
  eventId: string;
11435
- transactionId: string;
11436
11529
  annotation?: Record<string, string | number | boolean | {
11437
11530
  type: string;
11438
11531
  filename: string;
@@ -11472,10 +11565,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11472
11565
  originalFilename: string;
11473
11566
  }[] | undefined> | undefined;
11474
11567
  originalActionId?: string | undefined;
11568
+ keepAssignment?: boolean | undefined;
11475
11569
  }, {
11570
+ transactionId: string;
11476
11571
  requestId: string;
11477
11572
  eventId: string;
11478
- transactionId: string;
11479
11573
  type?: "APPROVE_CORRECTION" | undefined;
11480
11574
  declaration?: Record<string, string | number | boolean | {
11481
11575
  type: string;
@@ -11554,6 +11648,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11554
11648
  originalFilename: string;
11555
11649
  }[] | undefined> | undefined;
11556
11650
  originalActionId?: string | undefined;
11651
+ keepAssignment?: boolean | undefined;
11557
11652
  }>, z.ZodObject<z.objectUtil.extendShape<{
11558
11653
  eventId: z.ZodString;
11559
11654
  transactionId: z.ZodString;
@@ -11786,10 +11881,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11786
11881
  postcodeOrZip?: string | null | undefined;
11787
11882
  }>]>>>;
11788
11883
  originalActionId: z.ZodOptional<z.ZodString>;
11884
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
11789
11885
  }, {
11790
11886
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
11791
11887
  }>, "strip", z.ZodTypeAny, {
11792
11888
  type: "READ";
11889
+ transactionId: string;
11793
11890
  declaration: Record<string, string | number | boolean | {
11794
11891
  type: string;
11795
11892
  filename: string;
@@ -11829,7 +11926,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11829
11926
  originalFilename: string;
11830
11927
  }[] | undefined>;
11831
11928
  eventId: string;
11832
- transactionId: string;
11833
11929
  annotation?: Record<string, string | number | boolean | {
11834
11930
  type: string;
11835
11931
  filename: string;
@@ -11869,9 +11965,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11869
11965
  originalFilename: string;
11870
11966
  }[] | undefined> | undefined;
11871
11967
  originalActionId?: string | undefined;
11968
+ keepAssignment?: boolean | undefined;
11872
11969
  }, {
11873
- eventId: string;
11874
11970
  transactionId: string;
11971
+ eventId: string;
11875
11972
  type?: "READ" | undefined;
11876
11973
  declaration?: Record<string, string | number | boolean | {
11877
11974
  type: string;
@@ -11950,6 +12047,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11950
12047
  originalFilename: string;
11951
12048
  }[] | undefined> | undefined;
11952
12049
  originalActionId?: string | undefined;
12050
+ keepAssignment?: boolean | undefined;
11953
12051
  }>]>;
11954
12052
  export type ActionInput = z.input<typeof ActionInput>;
11955
12053
  export type ActionInputWithType = z.infer<typeof ActionInput>;