@opencrvs/toolkit 1.8.0-rc.fb96ec1 → 1.8.0-rc.fbababd

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 (30) hide show
  1. package/dist/commons/api/router.d.ts +5865 -12088
  2. package/dist/commons/events/ActionConfig.d.ts +18584 -30632
  3. package/dist/commons/events/ActionDocument.d.ts +387 -486
  4. package/dist/commons/events/ActionInput.d.ts +126 -126
  5. package/dist/commons/events/ActionType.d.ts +0 -2
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -204
  7. package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
  8. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  9. package/dist/commons/events/Draft.d.ts +23 -28
  10. package/dist/commons/events/EventConfig.d.ts +17504 -26141
  11. package/dist/commons/events/EventDocument.d.ts +275 -350
  12. package/dist/commons/events/EventIndex.d.ts +214 -629
  13. package/dist/commons/events/EventMetadata.d.ts +31 -73
  14. package/dist/commons/events/FieldConfig.d.ts +37 -19
  15. package/dist/commons/events/FormConfig.d.ts +66 -0
  16. package/dist/commons/events/PageConfig.d.ts +18 -0
  17. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  18. package/dist/commons/events/WorkqueueConfig.d.ts +740 -3237
  19. package/dist/commons/events/defineConfig.d.ts +1589 -3224
  20. package/dist/commons/events/field.d.ts +0 -5
  21. package/dist/commons/events/index.d.ts +0 -1
  22. package/dist/commons/events/scopes.d.ts +3 -2
  23. package/dist/commons/events/test.utils.d.ts +5 -28
  24. package/dist/commons/events/transactions.d.ts +1 -1
  25. package/dist/commons/events/utils.d.ts +1600 -3232
  26. package/dist/conditionals/index.js +17 -20
  27. package/dist/events/index.js +1312 -1681
  28. package/dist/scopes/index.d.ts +1 -4
  29. package/dist/scopes/index.js +17 -67
  30. package/package.json +3 -3
@@ -1,18 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
- id: z.ZodBranded<z.ZodString, "UUID">;
3
+ id: z.ZodString;
4
4
  type: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
- id: z.ZodBranded<z.ZodString, "UUID">;
8
+ id: z.ZodString;
9
9
  transactionId: z.ZodString;
10
- createdByUserType: z.ZodEnum<["user", "system"]>;
11
10
  createdAt: z.ZodString;
12
11
  createdBy: z.ZodString;
13
12
  createdByRole: z.ZodString;
14
13
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
15
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
17
16
  filename: z.ZodString;
18
17
  originalFilename: z.ZodString;
@@ -139,7 +138,7 @@ export declare const EventDocument: z.ZodObject<{
139
138
  surname: string;
140
139
  middlename?: string | null | undefined;
141
140
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
142
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
141
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
143
142
  filename: z.ZodString;
144
143
  originalFilename: z.ZodString;
145
144
  type: z.ZodString;
@@ -264,17 +263,16 @@ export declare const EventDocument: z.ZodObject<{
264
263
  firstname: string;
265
264
  surname: string;
266
265
  middlename?: string | null | undefined;
267
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
266
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
268
267
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
269
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
268
+ originalActionId: z.ZodOptional<z.ZodString>;
270
269
  }, {
271
270
  type: z.ZodLiteral<"CREATE">;
272
271
  }>, "strip", z.ZodTypeAny, {
273
272
  type: "CREATE";
274
- id: string & z.BRAND<"UUID">;
273
+ id: string;
275
274
  status: "Rejected" | "Requested" | "Accepted";
276
275
  transactionId: string;
277
- createdByUserType: "system" | "user";
278
276
  createdAt: string;
279
277
  createdBy: string;
280
278
  createdByRole: string;
@@ -321,7 +319,7 @@ export declare const EventDocument: z.ZodObject<{
321
319
  originalFilename: string;
322
320
  }[] | [string, string] | null | undefined>;
323
321
  createdBySignature?: string | null | undefined;
324
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
322
+ createdAtLocation?: string | null | undefined;
325
323
  annotation?: Record<string, string | number | boolean | {
326
324
  type: string;
327
325
  filename: string;
@@ -363,14 +361,13 @@ export declare const EventDocument: z.ZodObject<{
363
361
  option: string;
364
362
  filename: string;
365
363
  originalFilename: string;
366
- }[] | [string, string] | null | undefined> | null | undefined;
367
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
364
+ }[] | [string, string] | null | undefined> | undefined;
365
+ originalActionId?: string | undefined;
368
366
  }, {
369
367
  type: "CREATE";
370
368
  id: string;
371
369
  status: "Rejected" | "Requested" | "Accepted";
372
370
  transactionId: string;
373
- createdByUserType: "system" | "user";
374
371
  createdAt: string;
375
372
  createdBy: string;
376
373
  createdByRole: string;
@@ -459,17 +456,16 @@ export declare const EventDocument: z.ZodObject<{
459
456
  option: string;
460
457
  filename: string;
461
458
  originalFilename: string;
462
- }[] | [string, string] | null | undefined> | null | undefined;
463
- originalActionId?: string | null | undefined;
459
+ }[] | [string, string] | null | undefined> | undefined;
460
+ originalActionId?: string | undefined;
464
461
  }>, z.ZodObject<z.objectUtil.extendShape<{
465
- id: z.ZodBranded<z.ZodString, "UUID">;
462
+ id: z.ZodString;
466
463
  transactionId: z.ZodString;
467
- createdByUserType: z.ZodEnum<["user", "system"]>;
468
464
  createdAt: z.ZodString;
469
465
  createdBy: z.ZodString;
470
466
  createdByRole: z.ZodString;
471
467
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
468
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
469
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
474
470
  filename: z.ZodString;
475
471
  originalFilename: z.ZodString;
@@ -596,7 +592,7 @@ export declare const EventDocument: z.ZodObject<{
596
592
  surname: string;
597
593
  middlename?: string | null | undefined;
598
594
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
599
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
595
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
600
596
  filename: z.ZodString;
601
597
  originalFilename: z.ZodString;
602
598
  type: z.ZodString;
@@ -721,17 +717,16 @@ export declare const EventDocument: z.ZodObject<{
721
717
  firstname: string;
722
718
  surname: string;
723
719
  middlename?: string | null | undefined;
724
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
720
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
725
721
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
726
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
722
+ originalActionId: z.ZodOptional<z.ZodString>;
727
723
  }, {
728
724
  type: z.ZodLiteral<"VALIDATE">;
729
725
  }>, "strip", z.ZodTypeAny, {
730
726
  type: "VALIDATE";
731
- id: string & z.BRAND<"UUID">;
727
+ id: string;
732
728
  status: "Rejected" | "Requested" | "Accepted";
733
729
  transactionId: string;
734
- createdByUserType: "system" | "user";
735
730
  createdAt: string;
736
731
  createdBy: string;
737
732
  createdByRole: string;
@@ -778,7 +773,7 @@ export declare const EventDocument: z.ZodObject<{
778
773
  originalFilename: string;
779
774
  }[] | [string, string] | null | undefined>;
780
775
  createdBySignature?: string | null | undefined;
781
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
776
+ createdAtLocation?: string | null | undefined;
782
777
  annotation?: Record<string, string | number | boolean | {
783
778
  type: string;
784
779
  filename: string;
@@ -820,14 +815,13 @@ export declare const EventDocument: z.ZodObject<{
820
815
  option: string;
821
816
  filename: string;
822
817
  originalFilename: string;
823
- }[] | [string, string] | null | undefined> | null | undefined;
824
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
818
+ }[] | [string, string] | null | undefined> | undefined;
819
+ originalActionId?: string | undefined;
825
820
  }, {
826
821
  type: "VALIDATE";
827
822
  id: string;
828
823
  status: "Rejected" | "Requested" | "Accepted";
829
824
  transactionId: string;
830
- createdByUserType: "system" | "user";
831
825
  createdAt: string;
832
826
  createdBy: string;
833
827
  createdByRole: string;
@@ -916,17 +910,16 @@ export declare const EventDocument: z.ZodObject<{
916
910
  option: string;
917
911
  filename: string;
918
912
  originalFilename: string;
919
- }[] | [string, string] | null | undefined> | null | undefined;
920
- originalActionId?: string | null | undefined;
913
+ }[] | [string, string] | null | undefined> | undefined;
914
+ originalActionId?: string | undefined;
921
915
  }>, z.ZodObject<z.objectUtil.extendShape<{
922
- id: z.ZodBranded<z.ZodString, "UUID">;
916
+ id: z.ZodString;
923
917
  transactionId: z.ZodString;
924
- createdByUserType: z.ZodEnum<["user", "system"]>;
925
918
  createdAt: z.ZodString;
926
919
  createdBy: z.ZodString;
927
920
  createdByRole: z.ZodString;
928
921
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
922
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
923
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
931
924
  filename: z.ZodString;
932
925
  originalFilename: z.ZodString;
@@ -1053,7 +1046,7 @@ export declare const EventDocument: z.ZodObject<{
1053
1046
  surname: string;
1054
1047
  middlename?: string | null | undefined;
1055
1048
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1056
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1049
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1057
1050
  filename: z.ZodString;
1058
1051
  originalFilename: z.ZodString;
1059
1052
  type: z.ZodString;
@@ -1178,9 +1171,9 @@ export declare const EventDocument: z.ZodObject<{
1178
1171
  firstname: string;
1179
1172
  surname: string;
1180
1173
  middlename?: string | null | undefined;
1181
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1174
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1182
1175
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1183
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1176
+ originalActionId: z.ZodOptional<z.ZodString>;
1184
1177
  }, {
1185
1178
  type: z.ZodLiteral<"REJECT">;
1186
1179
  reason: z.ZodObject<{
@@ -1195,14 +1188,13 @@ export declare const EventDocument: z.ZodObject<{
1195
1188
  }>;
1196
1189
  }>, "strip", z.ZodTypeAny, {
1197
1190
  type: "REJECT";
1198
- id: string & z.BRAND<"UUID">;
1191
+ id: string;
1199
1192
  status: "Rejected" | "Requested" | "Accepted";
1200
1193
  reason: {
1201
1194
  message: string;
1202
1195
  isDuplicate?: boolean | undefined;
1203
1196
  };
1204
1197
  transactionId: string;
1205
- createdByUserType: "system" | "user";
1206
1198
  createdAt: string;
1207
1199
  createdBy: string;
1208
1200
  createdByRole: string;
@@ -1249,7 +1241,7 @@ export declare const EventDocument: z.ZodObject<{
1249
1241
  originalFilename: string;
1250
1242
  }[] | [string, string] | null | undefined>;
1251
1243
  createdBySignature?: string | null | undefined;
1252
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1244
+ createdAtLocation?: string | null | undefined;
1253
1245
  annotation?: Record<string, string | number | boolean | {
1254
1246
  type: string;
1255
1247
  filename: string;
@@ -1291,8 +1283,8 @@ export declare const EventDocument: z.ZodObject<{
1291
1283
  option: string;
1292
1284
  filename: string;
1293
1285
  originalFilename: string;
1294
- }[] | [string, string] | null | undefined> | null | undefined;
1295
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1286
+ }[] | [string, string] | null | undefined> | undefined;
1287
+ originalActionId?: string | undefined;
1296
1288
  }, {
1297
1289
  type: "REJECT";
1298
1290
  id: string;
@@ -1302,7 +1294,6 @@ export declare const EventDocument: z.ZodObject<{
1302
1294
  isDuplicate?: boolean | undefined;
1303
1295
  };
1304
1296
  transactionId: string;
1305
- createdByUserType: "system" | "user";
1306
1297
  createdAt: string;
1307
1298
  createdBy: string;
1308
1299
  createdByRole: string;
@@ -1391,17 +1382,16 @@ export declare const EventDocument: z.ZodObject<{
1391
1382
  option: string;
1392
1383
  filename: string;
1393
1384
  originalFilename: string;
1394
- }[] | [string, string] | null | undefined> | null | undefined;
1395
- originalActionId?: string | null | undefined;
1385
+ }[] | [string, string] | null | undefined> | undefined;
1386
+ originalActionId?: string | undefined;
1396
1387
  }>, z.ZodObject<z.objectUtil.extendShape<{
1397
- id: z.ZodBranded<z.ZodString, "UUID">;
1388
+ id: z.ZodString;
1398
1389
  transactionId: z.ZodString;
1399
- createdByUserType: z.ZodEnum<["user", "system"]>;
1400
1390
  createdAt: z.ZodString;
1401
1391
  createdBy: z.ZodString;
1402
1392
  createdByRole: z.ZodString;
1403
1393
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1394
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1405
1395
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1406
1396
  filename: z.ZodString;
1407
1397
  originalFilename: z.ZodString;
@@ -1528,7 +1518,7 @@ export declare const EventDocument: z.ZodObject<{
1528
1518
  surname: string;
1529
1519
  middlename?: string | null | undefined;
1530
1520
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1531
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1521
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1532
1522
  filename: z.ZodString;
1533
1523
  originalFilename: z.ZodString;
1534
1524
  type: z.ZodString;
@@ -1653,17 +1643,16 @@ export declare const EventDocument: z.ZodObject<{
1653
1643
  firstname: string;
1654
1644
  surname: string;
1655
1645
  middlename?: string | null | undefined;
1656
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1646
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1657
1647
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1658
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1648
+ originalActionId: z.ZodOptional<z.ZodString>;
1659
1649
  }, {
1660
1650
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1661
1651
  }>, "strip", z.ZodTypeAny, {
1662
1652
  type: "MARKED_AS_DUPLICATE";
1663
- id: string & z.BRAND<"UUID">;
1653
+ id: string;
1664
1654
  status: "Rejected" | "Requested" | "Accepted";
1665
1655
  transactionId: string;
1666
- createdByUserType: "system" | "user";
1667
1656
  createdAt: string;
1668
1657
  createdBy: string;
1669
1658
  createdByRole: string;
@@ -1710,7 +1699,7 @@ export declare const EventDocument: z.ZodObject<{
1710
1699
  originalFilename: string;
1711
1700
  }[] | [string, string] | null | undefined>;
1712
1701
  createdBySignature?: string | null | undefined;
1713
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1702
+ createdAtLocation?: string | null | undefined;
1714
1703
  annotation?: Record<string, string | number | boolean | {
1715
1704
  type: string;
1716
1705
  filename: string;
@@ -1752,14 +1741,13 @@ export declare const EventDocument: z.ZodObject<{
1752
1741
  option: string;
1753
1742
  filename: string;
1754
1743
  originalFilename: string;
1755
- }[] | [string, string] | null | undefined> | null | undefined;
1756
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1744
+ }[] | [string, string] | null | undefined> | undefined;
1745
+ originalActionId?: string | undefined;
1757
1746
  }, {
1758
1747
  type: "MARKED_AS_DUPLICATE";
1759
1748
  id: string;
1760
1749
  status: "Rejected" | "Requested" | "Accepted";
1761
1750
  transactionId: string;
1762
- createdByUserType: "system" | "user";
1763
1751
  createdAt: string;
1764
1752
  createdBy: string;
1765
1753
  createdByRole: string;
@@ -1848,17 +1836,16 @@ export declare const EventDocument: z.ZodObject<{
1848
1836
  option: string;
1849
1837
  filename: string;
1850
1838
  originalFilename: string;
1851
- }[] | [string, string] | null | undefined> | null | undefined;
1852
- originalActionId?: string | null | undefined;
1839
+ }[] | [string, string] | null | undefined> | undefined;
1840
+ originalActionId?: string | undefined;
1853
1841
  }>, z.ZodObject<z.objectUtil.extendShape<{
1854
- id: z.ZodBranded<z.ZodString, "UUID">;
1842
+ id: z.ZodString;
1855
1843
  transactionId: z.ZodString;
1856
- createdByUserType: z.ZodEnum<["user", "system"]>;
1857
1844
  createdAt: z.ZodString;
1858
1845
  createdBy: z.ZodString;
1859
1846
  createdByRole: z.ZodString;
1860
1847
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1848
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1862
1849
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1863
1850
  filename: z.ZodString;
1864
1851
  originalFilename: z.ZodString;
@@ -1985,7 +1972,7 @@ export declare const EventDocument: z.ZodObject<{
1985
1972
  surname: string;
1986
1973
  middlename?: string | null | undefined;
1987
1974
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1988
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1975
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1989
1976
  filename: z.ZodString;
1990
1977
  originalFilename: z.ZodString;
1991
1978
  type: z.ZodString;
@@ -2110,9 +2097,9 @@ export declare const EventDocument: z.ZodObject<{
2110
2097
  firstname: string;
2111
2098
  surname: string;
2112
2099
  middlename?: string | null | undefined;
2113
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2100
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2114
2101
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2115
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2102
+ originalActionId: z.ZodOptional<z.ZodString>;
2116
2103
  }, {
2117
2104
  type: z.ZodLiteral<"ARCHIVE">;
2118
2105
  reason: z.ZodObject<{
@@ -2127,14 +2114,13 @@ export declare const EventDocument: z.ZodObject<{
2127
2114
  }>;
2128
2115
  }>, "strip", z.ZodTypeAny, {
2129
2116
  type: "ARCHIVE";
2130
- id: string & z.BRAND<"UUID">;
2117
+ id: string;
2131
2118
  status: "Rejected" | "Requested" | "Accepted";
2132
2119
  reason: {
2133
2120
  message: string;
2134
2121
  isDuplicate?: boolean | undefined;
2135
2122
  };
2136
2123
  transactionId: string;
2137
- createdByUserType: "system" | "user";
2138
2124
  createdAt: string;
2139
2125
  createdBy: string;
2140
2126
  createdByRole: string;
@@ -2181,7 +2167,7 @@ export declare const EventDocument: z.ZodObject<{
2181
2167
  originalFilename: string;
2182
2168
  }[] | [string, string] | null | undefined>;
2183
2169
  createdBySignature?: string | null | undefined;
2184
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2170
+ createdAtLocation?: string | null | undefined;
2185
2171
  annotation?: Record<string, string | number | boolean | {
2186
2172
  type: string;
2187
2173
  filename: string;
@@ -2223,8 +2209,8 @@ export declare const EventDocument: z.ZodObject<{
2223
2209
  option: string;
2224
2210
  filename: string;
2225
2211
  originalFilename: string;
2226
- }[] | [string, string] | null | undefined> | null | undefined;
2227
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2212
+ }[] | [string, string] | null | undefined> | undefined;
2213
+ originalActionId?: string | undefined;
2228
2214
  }, {
2229
2215
  type: "ARCHIVE";
2230
2216
  id: string;
@@ -2234,7 +2220,6 @@ export declare const EventDocument: z.ZodObject<{
2234
2220
  isDuplicate?: boolean | undefined;
2235
2221
  };
2236
2222
  transactionId: string;
2237
- createdByUserType: "system" | "user";
2238
2223
  createdAt: string;
2239
2224
  createdBy: string;
2240
2225
  createdByRole: string;
@@ -2323,17 +2308,16 @@ export declare const EventDocument: z.ZodObject<{
2323
2308
  option: string;
2324
2309
  filename: string;
2325
2310
  originalFilename: string;
2326
- }[] | [string, string] | null | undefined> | null | undefined;
2327
- originalActionId?: string | null | undefined;
2311
+ }[] | [string, string] | null | undefined> | undefined;
2312
+ originalActionId?: string | undefined;
2328
2313
  }>, z.ZodObject<z.objectUtil.extendShape<{
2329
- id: z.ZodBranded<z.ZodString, "UUID">;
2314
+ id: z.ZodString;
2330
2315
  transactionId: z.ZodString;
2331
- createdByUserType: z.ZodEnum<["user", "system"]>;
2332
2316
  createdAt: z.ZodString;
2333
2317
  createdBy: z.ZodString;
2334
2318
  createdByRole: z.ZodString;
2335
2319
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2320
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2337
2321
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2338
2322
  filename: z.ZodString;
2339
2323
  originalFilename: z.ZodString;
@@ -2460,7 +2444,7 @@ export declare const EventDocument: z.ZodObject<{
2460
2444
  surname: string;
2461
2445
  middlename?: string | null | undefined;
2462
2446
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2463
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2447
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2464
2448
  filename: z.ZodString;
2465
2449
  originalFilename: z.ZodString;
2466
2450
  type: z.ZodString;
@@ -2585,17 +2569,16 @@ export declare const EventDocument: z.ZodObject<{
2585
2569
  firstname: string;
2586
2570
  surname: string;
2587
2571
  middlename?: string | null | undefined;
2588
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2572
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2589
2573
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2590
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2574
+ originalActionId: z.ZodOptional<z.ZodString>;
2591
2575
  }, {
2592
2576
  type: z.ZodLiteral<"NOTIFY">;
2593
2577
  }>, "strip", z.ZodTypeAny, {
2594
2578
  type: "NOTIFY";
2595
- id: string & z.BRAND<"UUID">;
2579
+ id: string;
2596
2580
  status: "Rejected" | "Requested" | "Accepted";
2597
2581
  transactionId: string;
2598
- createdByUserType: "system" | "user";
2599
2582
  createdAt: string;
2600
2583
  createdBy: string;
2601
2584
  createdByRole: string;
@@ -2642,7 +2625,7 @@ export declare const EventDocument: z.ZodObject<{
2642
2625
  originalFilename: string;
2643
2626
  }[] | [string, string] | null | undefined>;
2644
2627
  createdBySignature?: string | null | undefined;
2645
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2628
+ createdAtLocation?: string | null | undefined;
2646
2629
  annotation?: Record<string, string | number | boolean | {
2647
2630
  type: string;
2648
2631
  filename: string;
@@ -2684,14 +2667,13 @@ export declare const EventDocument: z.ZodObject<{
2684
2667
  option: string;
2685
2668
  filename: string;
2686
2669
  originalFilename: string;
2687
- }[] | [string, string] | null | undefined> | null | undefined;
2688
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2670
+ }[] | [string, string] | null | undefined> | undefined;
2671
+ originalActionId?: string | undefined;
2689
2672
  }, {
2690
2673
  type: "NOTIFY";
2691
2674
  id: string;
2692
2675
  status: "Rejected" | "Requested" | "Accepted";
2693
2676
  transactionId: string;
2694
- createdByUserType: "system" | "user";
2695
2677
  createdAt: string;
2696
2678
  createdBy: string;
2697
2679
  createdByRole: string;
@@ -2780,17 +2762,16 @@ export declare const EventDocument: z.ZodObject<{
2780
2762
  option: string;
2781
2763
  filename: string;
2782
2764
  originalFilename: string;
2783
- }[] | [string, string] | null | undefined> | null | undefined;
2784
- originalActionId?: string | null | undefined;
2765
+ }[] | [string, string] | null | undefined> | undefined;
2766
+ originalActionId?: string | undefined;
2785
2767
  }>, z.ZodObject<z.objectUtil.extendShape<{
2786
- id: z.ZodBranded<z.ZodString, "UUID">;
2768
+ id: z.ZodString;
2787
2769
  transactionId: z.ZodString;
2788
- createdByUserType: z.ZodEnum<["user", "system"]>;
2789
2770
  createdAt: z.ZodString;
2790
2771
  createdBy: z.ZodString;
2791
2772
  createdByRole: z.ZodString;
2792
2773
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2774
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2794
2775
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2795
2776
  filename: z.ZodString;
2796
2777
  originalFilename: z.ZodString;
@@ -2917,7 +2898,7 @@ export declare const EventDocument: z.ZodObject<{
2917
2898
  surname: string;
2918
2899
  middlename?: string | null | undefined;
2919
2900
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2920
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2901
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2921
2902
  filename: z.ZodString;
2922
2903
  originalFilename: z.ZodString;
2923
2904
  type: z.ZodString;
@@ -3042,18 +3023,17 @@ export declare const EventDocument: z.ZodObject<{
3042
3023
  firstname: string;
3043
3024
  surname: string;
3044
3025
  middlename?: string | null | undefined;
3045
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3026
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3046
3027
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3047
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3028
+ originalActionId: z.ZodOptional<z.ZodString>;
3048
3029
  }, {
3049
3030
  type: z.ZodLiteral<"REGISTER">;
3050
3031
  registrationNumber: z.ZodOptional<z.ZodString>;
3051
3032
  }>, "strip", z.ZodTypeAny, {
3052
3033
  type: "REGISTER";
3053
- id: string & z.BRAND<"UUID">;
3034
+ id: string;
3054
3035
  status: "Rejected" | "Requested" | "Accepted";
3055
3036
  transactionId: string;
3056
- createdByUserType: "system" | "user";
3057
3037
  createdAt: string;
3058
3038
  createdBy: string;
3059
3039
  createdByRole: string;
@@ -3100,7 +3080,7 @@ export declare const EventDocument: z.ZodObject<{
3100
3080
  originalFilename: string;
3101
3081
  }[] | [string, string] | null | undefined>;
3102
3082
  createdBySignature?: string | null | undefined;
3103
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3083
+ createdAtLocation?: string | null | undefined;
3104
3084
  annotation?: Record<string, string | number | boolean | {
3105
3085
  type: string;
3106
3086
  filename: string;
@@ -3142,15 +3122,14 @@ export declare const EventDocument: z.ZodObject<{
3142
3122
  option: string;
3143
3123
  filename: string;
3144
3124
  originalFilename: string;
3145
- }[] | [string, string] | null | undefined> | null | undefined;
3146
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3125
+ }[] | [string, string] | null | undefined> | undefined;
3126
+ originalActionId?: string | undefined;
3147
3127
  registrationNumber?: string | undefined;
3148
3128
  }, {
3149
3129
  type: "REGISTER";
3150
3130
  id: string;
3151
3131
  status: "Rejected" | "Requested" | "Accepted";
3152
3132
  transactionId: string;
3153
- createdByUserType: "system" | "user";
3154
3133
  createdAt: string;
3155
3134
  createdBy: string;
3156
3135
  createdByRole: string;
@@ -3239,18 +3218,17 @@ export declare const EventDocument: z.ZodObject<{
3239
3218
  option: string;
3240
3219
  filename: string;
3241
3220
  originalFilename: string;
3242
- }[] | [string, string] | null | undefined> | null | undefined;
3243
- originalActionId?: string | null | undefined;
3221
+ }[] | [string, string] | null | undefined> | undefined;
3222
+ originalActionId?: string | undefined;
3244
3223
  registrationNumber?: string | undefined;
3245
3224
  }>, z.ZodObject<z.objectUtil.extendShape<{
3246
- id: z.ZodBranded<z.ZodString, "UUID">;
3225
+ id: z.ZodString;
3247
3226
  transactionId: z.ZodString;
3248
- createdByUserType: z.ZodEnum<["user", "system"]>;
3249
3227
  createdAt: z.ZodString;
3250
3228
  createdBy: z.ZodString;
3251
3229
  createdByRole: z.ZodString;
3252
3230
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3253
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3231
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3254
3232
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3255
3233
  filename: z.ZodString;
3256
3234
  originalFilename: z.ZodString;
@@ -3377,7 +3355,7 @@ export declare const EventDocument: z.ZodObject<{
3377
3355
  surname: string;
3378
3356
  middlename?: string | null | undefined;
3379
3357
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3380
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3358
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3381
3359
  filename: z.ZodString;
3382
3360
  originalFilename: z.ZodString;
3383
3361
  type: z.ZodString;
@@ -3502,17 +3480,16 @@ export declare const EventDocument: z.ZodObject<{
3502
3480
  firstname: string;
3503
3481
  surname: string;
3504
3482
  middlename?: string | null | undefined;
3505
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3483
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3506
3484
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3507
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3485
+ originalActionId: z.ZodOptional<z.ZodString>;
3508
3486
  }, {
3509
3487
  type: z.ZodLiteral<"DECLARE">;
3510
3488
  }>, "strip", z.ZodTypeAny, {
3511
3489
  type: "DECLARE";
3512
- id: string & z.BRAND<"UUID">;
3490
+ id: string;
3513
3491
  status: "Rejected" | "Requested" | "Accepted";
3514
3492
  transactionId: string;
3515
- createdByUserType: "system" | "user";
3516
3493
  createdAt: string;
3517
3494
  createdBy: string;
3518
3495
  createdByRole: string;
@@ -3559,7 +3536,7 @@ export declare const EventDocument: z.ZodObject<{
3559
3536
  originalFilename: string;
3560
3537
  }[] | [string, string] | null | undefined>;
3561
3538
  createdBySignature?: string | null | undefined;
3562
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3539
+ createdAtLocation?: string | null | undefined;
3563
3540
  annotation?: Record<string, string | number | boolean | {
3564
3541
  type: string;
3565
3542
  filename: string;
@@ -3601,14 +3578,13 @@ export declare const EventDocument: z.ZodObject<{
3601
3578
  option: string;
3602
3579
  filename: string;
3603
3580
  originalFilename: string;
3604
- }[] | [string, string] | null | undefined> | null | undefined;
3605
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3581
+ }[] | [string, string] | null | undefined> | undefined;
3582
+ originalActionId?: string | undefined;
3606
3583
  }, {
3607
3584
  type: "DECLARE";
3608
3585
  id: string;
3609
3586
  status: "Rejected" | "Requested" | "Accepted";
3610
3587
  transactionId: string;
3611
- createdByUserType: "system" | "user";
3612
3588
  createdAt: string;
3613
3589
  createdBy: string;
3614
3590
  createdByRole: string;
@@ -3697,17 +3673,16 @@ export declare const EventDocument: z.ZodObject<{
3697
3673
  option: string;
3698
3674
  filename: string;
3699
3675
  originalFilename: string;
3700
- }[] | [string, string] | null | undefined> | null | undefined;
3701
- originalActionId?: string | null | undefined;
3676
+ }[] | [string, string] | null | undefined> | undefined;
3677
+ originalActionId?: string | undefined;
3702
3678
  }>, z.ZodObject<z.objectUtil.extendShape<{
3703
- id: z.ZodBranded<z.ZodString, "UUID">;
3679
+ id: z.ZodString;
3704
3680
  transactionId: z.ZodString;
3705
- createdByUserType: z.ZodEnum<["user", "system"]>;
3706
3681
  createdAt: z.ZodString;
3707
3682
  createdBy: z.ZodString;
3708
3683
  createdByRole: z.ZodString;
3709
3684
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3710
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3685
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3711
3686
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3712
3687
  filename: z.ZodString;
3713
3688
  originalFilename: z.ZodString;
@@ -3834,7 +3809,7 @@ export declare const EventDocument: z.ZodObject<{
3834
3809
  surname: string;
3835
3810
  middlename?: string | null | undefined;
3836
3811
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3837
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3812
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3838
3813
  filename: z.ZodString;
3839
3814
  originalFilename: z.ZodString;
3840
3815
  type: z.ZodString;
@@ -3959,18 +3934,17 @@ export declare const EventDocument: z.ZodObject<{
3959
3934
  firstname: string;
3960
3935
  surname: string;
3961
3936
  middlename?: string | null | undefined;
3962
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3937
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3963
3938
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3964
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3939
+ originalActionId: z.ZodOptional<z.ZodString>;
3965
3940
  }, {
3966
3941
  type: z.ZodLiteral<"ASSIGN">;
3967
3942
  assignedTo: z.ZodString;
3968
3943
  }>, "strip", z.ZodTypeAny, {
3969
3944
  type: "ASSIGN";
3970
- id: string & z.BRAND<"UUID">;
3945
+ id: string;
3971
3946
  status: "Rejected" | "Requested" | "Accepted";
3972
3947
  transactionId: string;
3973
- createdByUserType: "system" | "user";
3974
3948
  createdAt: string;
3975
3949
  createdBy: string;
3976
3950
  createdByRole: string;
@@ -4018,7 +3992,7 @@ export declare const EventDocument: z.ZodObject<{
4018
3992
  }[] | [string, string] | null | undefined>;
4019
3993
  assignedTo: string;
4020
3994
  createdBySignature?: string | null | undefined;
4021
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3995
+ createdAtLocation?: string | null | undefined;
4022
3996
  annotation?: Record<string, string | number | boolean | {
4023
3997
  type: string;
4024
3998
  filename: string;
@@ -4060,14 +4034,13 @@ export declare const EventDocument: z.ZodObject<{
4060
4034
  option: string;
4061
4035
  filename: string;
4062
4036
  originalFilename: string;
4063
- }[] | [string, string] | null | undefined> | null | undefined;
4064
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4037
+ }[] | [string, string] | null | undefined> | undefined;
4038
+ originalActionId?: string | undefined;
4065
4039
  }, {
4066
4040
  type: "ASSIGN";
4067
4041
  id: string;
4068
4042
  status: "Rejected" | "Requested" | "Accepted";
4069
4043
  transactionId: string;
4070
- createdByUserType: "system" | "user";
4071
4044
  createdAt: string;
4072
4045
  createdBy: string;
4073
4046
  createdByRole: string;
@@ -4157,17 +4130,16 @@ export declare const EventDocument: z.ZodObject<{
4157
4130
  option: string;
4158
4131
  filename: string;
4159
4132
  originalFilename: string;
4160
- }[] | [string, string] | null | undefined> | null | undefined;
4161
- originalActionId?: string | null | undefined;
4133
+ }[] | [string, string] | null | undefined> | undefined;
4134
+ originalActionId?: string | undefined;
4162
4135
  }>, z.ZodObject<z.objectUtil.extendShape<{
4163
- id: z.ZodBranded<z.ZodString, "UUID">;
4136
+ id: z.ZodString;
4164
4137
  transactionId: z.ZodString;
4165
- createdByUserType: z.ZodEnum<["user", "system"]>;
4166
4138
  createdAt: z.ZodString;
4167
4139
  createdBy: z.ZodString;
4168
4140
  createdByRole: z.ZodString;
4169
4141
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4170
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4142
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4171
4143
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4172
4144
  filename: z.ZodString;
4173
4145
  originalFilename: z.ZodString;
@@ -4294,7 +4266,7 @@ export declare const EventDocument: z.ZodObject<{
4294
4266
  surname: string;
4295
4267
  middlename?: string | null | undefined;
4296
4268
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4297
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4269
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4298
4270
  filename: z.ZodString;
4299
4271
  originalFilename: z.ZodString;
4300
4272
  type: z.ZodString;
@@ -4419,17 +4391,16 @@ export declare const EventDocument: z.ZodObject<{
4419
4391
  firstname: string;
4420
4392
  surname: string;
4421
4393
  middlename?: string | null | undefined;
4422
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4394
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4423
4395
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4424
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4396
+ originalActionId: z.ZodOptional<z.ZodString>;
4425
4397
  }, {
4426
4398
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
4427
4399
  }>, "strip", z.ZodTypeAny, {
4428
4400
  type: "REQUEST_CORRECTION";
4429
- id: string & z.BRAND<"UUID">;
4401
+ id: string;
4430
4402
  status: "Rejected" | "Requested" | "Accepted";
4431
4403
  transactionId: string;
4432
- createdByUserType: "system" | "user";
4433
4404
  createdAt: string;
4434
4405
  createdBy: string;
4435
4406
  createdByRole: string;
@@ -4476,7 +4447,7 @@ export declare const EventDocument: z.ZodObject<{
4476
4447
  originalFilename: string;
4477
4448
  }[] | [string, string] | null | undefined>;
4478
4449
  createdBySignature?: string | null | undefined;
4479
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4450
+ createdAtLocation?: string | null | undefined;
4480
4451
  annotation?: Record<string, string | number | boolean | {
4481
4452
  type: string;
4482
4453
  filename: string;
@@ -4518,14 +4489,13 @@ export declare const EventDocument: z.ZodObject<{
4518
4489
  option: string;
4519
4490
  filename: string;
4520
4491
  originalFilename: string;
4521
- }[] | [string, string] | null | undefined> | null | undefined;
4522
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4492
+ }[] | [string, string] | null | undefined> | undefined;
4493
+ originalActionId?: string | undefined;
4523
4494
  }, {
4524
4495
  type: "REQUEST_CORRECTION";
4525
4496
  id: string;
4526
4497
  status: "Rejected" | "Requested" | "Accepted";
4527
4498
  transactionId: string;
4528
- createdByUserType: "system" | "user";
4529
4499
  createdAt: string;
4530
4500
  createdBy: string;
4531
4501
  createdByRole: string;
@@ -4614,17 +4584,16 @@ export declare const EventDocument: z.ZodObject<{
4614
4584
  option: string;
4615
4585
  filename: string;
4616
4586
  originalFilename: string;
4617
- }[] | [string, string] | null | undefined> | null | undefined;
4618
- originalActionId?: string | null | undefined;
4587
+ }[] | [string, string] | null | undefined> | undefined;
4588
+ originalActionId?: string | undefined;
4619
4589
  }>, z.ZodObject<z.objectUtil.extendShape<{
4620
- id: z.ZodBranded<z.ZodString, "UUID">;
4590
+ id: z.ZodString;
4621
4591
  transactionId: z.ZodString;
4622
- createdByUserType: z.ZodEnum<["user", "system"]>;
4623
4592
  createdAt: z.ZodString;
4624
4593
  createdBy: z.ZodString;
4625
4594
  createdByRole: z.ZodString;
4626
4595
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4627
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4596
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4628
4597
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4629
4598
  filename: z.ZodString;
4630
4599
  originalFilename: z.ZodString;
@@ -4751,7 +4720,7 @@ export declare const EventDocument: z.ZodObject<{
4751
4720
  surname: string;
4752
4721
  middlename?: string | null | undefined;
4753
4722
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4754
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4723
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4755
4724
  filename: z.ZodString;
4756
4725
  originalFilename: z.ZodString;
4757
4726
  type: z.ZodString;
@@ -4876,18 +4845,17 @@ export declare const EventDocument: z.ZodObject<{
4876
4845
  firstname: string;
4877
4846
  surname: string;
4878
4847
  middlename?: string | null | undefined;
4879
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4848
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4880
4849
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4881
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4850
+ originalActionId: z.ZodOptional<z.ZodString>;
4882
4851
  }, {
4883
4852
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4884
4853
  requestId: z.ZodString;
4885
4854
  }>, "strip", z.ZodTypeAny, {
4886
4855
  type: "APPROVE_CORRECTION";
4887
- id: string & z.BRAND<"UUID">;
4856
+ id: string;
4888
4857
  status: "Rejected" | "Requested" | "Accepted";
4889
4858
  transactionId: string;
4890
- createdByUserType: "system" | "user";
4891
4859
  createdAt: string;
4892
4860
  createdBy: string;
4893
4861
  createdByRole: string;
@@ -4935,7 +4903,7 @@ export declare const EventDocument: z.ZodObject<{
4935
4903
  }[] | [string, string] | null | undefined>;
4936
4904
  requestId: string;
4937
4905
  createdBySignature?: string | null | undefined;
4938
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4906
+ createdAtLocation?: string | null | undefined;
4939
4907
  annotation?: Record<string, string | number | boolean | {
4940
4908
  type: string;
4941
4909
  filename: string;
@@ -4977,14 +4945,13 @@ export declare const EventDocument: z.ZodObject<{
4977
4945
  option: string;
4978
4946
  filename: string;
4979
4947
  originalFilename: string;
4980
- }[] | [string, string] | null | undefined> | null | undefined;
4981
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4948
+ }[] | [string, string] | null | undefined> | undefined;
4949
+ originalActionId?: string | undefined;
4982
4950
  }, {
4983
4951
  type: "APPROVE_CORRECTION";
4984
4952
  id: string;
4985
4953
  status: "Rejected" | "Requested" | "Accepted";
4986
4954
  transactionId: string;
4987
- createdByUserType: "system" | "user";
4988
4955
  createdAt: string;
4989
4956
  createdBy: string;
4990
4957
  createdByRole: string;
@@ -5074,17 +5041,16 @@ export declare const EventDocument: z.ZodObject<{
5074
5041
  option: string;
5075
5042
  filename: string;
5076
5043
  originalFilename: string;
5077
- }[] | [string, string] | null | undefined> | null | undefined;
5078
- originalActionId?: string | null | undefined;
5044
+ }[] | [string, string] | null | undefined> | undefined;
5045
+ originalActionId?: string | undefined;
5079
5046
  }>, z.ZodObject<z.objectUtil.extendShape<{
5080
- id: z.ZodBranded<z.ZodString, "UUID">;
5047
+ id: z.ZodString;
5081
5048
  transactionId: z.ZodString;
5082
- createdByUserType: z.ZodEnum<["user", "system"]>;
5083
5049
  createdAt: z.ZodString;
5084
5050
  createdBy: z.ZodString;
5085
5051
  createdByRole: z.ZodString;
5086
5052
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5087
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5053
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5088
5054
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5089
5055
  filename: z.ZodString;
5090
5056
  originalFilename: z.ZodString;
@@ -5211,7 +5177,7 @@ export declare const EventDocument: z.ZodObject<{
5211
5177
  surname: string;
5212
5178
  middlename?: string | null | undefined;
5213
5179
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5214
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5180
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5215
5181
  filename: z.ZodString;
5216
5182
  originalFilename: z.ZodString;
5217
5183
  type: z.ZodString;
@@ -5336,18 +5302,17 @@ export declare const EventDocument: z.ZodObject<{
5336
5302
  firstname: string;
5337
5303
  surname: string;
5338
5304
  middlename?: string | null | undefined;
5339
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5305
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5340
5306
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5341
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5307
+ originalActionId: z.ZodOptional<z.ZodString>;
5342
5308
  }, {
5343
5309
  type: z.ZodLiteral<"REJECT_CORRECTION">;
5344
5310
  requestId: z.ZodString;
5345
5311
  }>, "strip", z.ZodTypeAny, {
5346
5312
  type: "REJECT_CORRECTION";
5347
- id: string & z.BRAND<"UUID">;
5313
+ id: string;
5348
5314
  status: "Rejected" | "Requested" | "Accepted";
5349
5315
  transactionId: string;
5350
- createdByUserType: "system" | "user";
5351
5316
  createdAt: string;
5352
5317
  createdBy: string;
5353
5318
  createdByRole: string;
@@ -5395,7 +5360,7 @@ export declare const EventDocument: z.ZodObject<{
5395
5360
  }[] | [string, string] | null | undefined>;
5396
5361
  requestId: string;
5397
5362
  createdBySignature?: string | null | undefined;
5398
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5363
+ createdAtLocation?: string | null | undefined;
5399
5364
  annotation?: Record<string, string | number | boolean | {
5400
5365
  type: string;
5401
5366
  filename: string;
@@ -5437,14 +5402,13 @@ export declare const EventDocument: z.ZodObject<{
5437
5402
  option: string;
5438
5403
  filename: string;
5439
5404
  originalFilename: string;
5440
- }[] | [string, string] | null | undefined> | null | undefined;
5441
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5405
+ }[] | [string, string] | null | undefined> | undefined;
5406
+ originalActionId?: string | undefined;
5442
5407
  }, {
5443
5408
  type: "REJECT_CORRECTION";
5444
5409
  id: string;
5445
5410
  status: "Rejected" | "Requested" | "Accepted";
5446
5411
  transactionId: string;
5447
- createdByUserType: "system" | "user";
5448
5412
  createdAt: string;
5449
5413
  createdBy: string;
5450
5414
  createdByRole: string;
@@ -5534,17 +5498,16 @@ export declare const EventDocument: z.ZodObject<{
5534
5498
  option: string;
5535
5499
  filename: string;
5536
5500
  originalFilename: string;
5537
- }[] | [string, string] | null | undefined> | null | undefined;
5538
- originalActionId?: string | null | undefined;
5501
+ }[] | [string, string] | null | undefined> | undefined;
5502
+ originalActionId?: string | undefined;
5539
5503
  }>, z.ZodObject<z.objectUtil.extendShape<{
5540
- id: z.ZodBranded<z.ZodString, "UUID">;
5504
+ id: z.ZodString;
5541
5505
  transactionId: z.ZodString;
5542
- createdByUserType: z.ZodEnum<["user", "system"]>;
5543
5506
  createdAt: z.ZodString;
5544
5507
  createdBy: z.ZodString;
5545
5508
  createdByRole: z.ZodString;
5546
5509
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5547
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5510
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5548
5511
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5549
5512
  filename: z.ZodString;
5550
5513
  originalFilename: z.ZodString;
@@ -5671,7 +5634,7 @@ export declare const EventDocument: z.ZodObject<{
5671
5634
  surname: string;
5672
5635
  middlename?: string | null | undefined;
5673
5636
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5674
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5637
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5675
5638
  filename: z.ZodString;
5676
5639
  originalFilename: z.ZodString;
5677
5640
  type: z.ZodString;
@@ -5796,17 +5759,17 @@ export declare const EventDocument: z.ZodObject<{
5796
5759
  firstname: string;
5797
5760
  surname: string;
5798
5761
  middlename?: string | null | undefined;
5799
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5762
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5800
5763
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5801
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5764
+ originalActionId: z.ZodOptional<z.ZodString>;
5802
5765
  }, {
5803
5766
  type: z.ZodLiteral<"UNASSIGN">;
5767
+ assignedTo: z.ZodLiteral<null>;
5804
5768
  }>, "strip", z.ZodTypeAny, {
5805
5769
  type: "UNASSIGN";
5806
- id: string & z.BRAND<"UUID">;
5770
+ id: string;
5807
5771
  status: "Rejected" | "Requested" | "Accepted";
5808
5772
  transactionId: string;
5809
- createdByUserType: "system" | "user";
5810
5773
  createdAt: string;
5811
5774
  createdBy: string;
5812
5775
  createdByRole: string;
@@ -5852,8 +5815,9 @@ export declare const EventDocument: z.ZodObject<{
5852
5815
  filename: string;
5853
5816
  originalFilename: string;
5854
5817
  }[] | [string, string] | null | undefined>;
5818
+ assignedTo: null;
5855
5819
  createdBySignature?: string | null | undefined;
5856
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5820
+ createdAtLocation?: string | null | undefined;
5857
5821
  annotation?: Record<string, string | number | boolean | {
5858
5822
  type: string;
5859
5823
  filename: string;
@@ -5895,14 +5859,13 @@ export declare const EventDocument: z.ZodObject<{
5895
5859
  option: string;
5896
5860
  filename: string;
5897
5861
  originalFilename: string;
5898
- }[] | [string, string] | null | undefined> | null | undefined;
5899
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5862
+ }[] | [string, string] | null | undefined> | undefined;
5863
+ originalActionId?: string | undefined;
5900
5864
  }, {
5901
5865
  type: "UNASSIGN";
5902
5866
  id: string;
5903
5867
  status: "Rejected" | "Requested" | "Accepted";
5904
5868
  transactionId: string;
5905
- createdByUserType: "system" | "user";
5906
5869
  createdAt: string;
5907
5870
  createdBy: string;
5908
5871
  createdByRole: string;
@@ -5948,6 +5911,7 @@ export declare const EventDocument: z.ZodObject<{
5948
5911
  filename: string;
5949
5912
  originalFilename: string;
5950
5913
  }[] | [string, string] | null | undefined>;
5914
+ assignedTo: null;
5951
5915
  createdBySignature?: string | null | undefined;
5952
5916
  createdAtLocation?: string | null | undefined;
5953
5917
  annotation?: Record<string, string | number | boolean | {
@@ -5991,17 +5955,16 @@ export declare const EventDocument: z.ZodObject<{
5991
5955
  option: string;
5992
5956
  filename: string;
5993
5957
  originalFilename: string;
5994
- }[] | [string, string] | null | undefined> | null | undefined;
5995
- originalActionId?: string | null | undefined;
5958
+ }[] | [string, string] | null | undefined> | undefined;
5959
+ originalActionId?: string | undefined;
5996
5960
  }>, z.ZodObject<z.objectUtil.extendShape<{
5997
- id: z.ZodBranded<z.ZodString, "UUID">;
5961
+ id: z.ZodString;
5998
5962
  transactionId: z.ZodString;
5999
- createdByUserType: z.ZodEnum<["user", "system"]>;
6000
5963
  createdAt: z.ZodString;
6001
5964
  createdBy: z.ZodString;
6002
5965
  createdByRole: z.ZodString;
6003
5966
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6004
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5967
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6005
5968
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6006
5969
  filename: z.ZodString;
6007
5970
  originalFilename: z.ZodString;
@@ -6128,7 +6091,7 @@ export declare const EventDocument: z.ZodObject<{
6128
6091
  surname: string;
6129
6092
  middlename?: string | null | undefined;
6130
6093
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6131
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6094
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6132
6095
  filename: z.ZodString;
6133
6096
  originalFilename: z.ZodString;
6134
6097
  type: z.ZodString;
@@ -6253,17 +6216,16 @@ export declare const EventDocument: z.ZodObject<{
6253
6216
  firstname: string;
6254
6217
  surname: string;
6255
6218
  middlename?: string | null | undefined;
6256
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6219
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6257
6220
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6258
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6221
+ originalActionId: z.ZodOptional<z.ZodString>;
6259
6222
  }, {
6260
6223
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
6261
6224
  }>, "strip", z.ZodTypeAny, {
6262
6225
  type: "PRINT_CERTIFICATE";
6263
- id: string & z.BRAND<"UUID">;
6226
+ id: string;
6264
6227
  status: "Rejected" | "Requested" | "Accepted";
6265
6228
  transactionId: string;
6266
- createdByUserType: "system" | "user";
6267
6229
  createdAt: string;
6268
6230
  createdBy: string;
6269
6231
  createdByRole: string;
@@ -6310,7 +6272,7 @@ export declare const EventDocument: z.ZodObject<{
6310
6272
  originalFilename: string;
6311
6273
  }[] | [string, string] | null | undefined>;
6312
6274
  createdBySignature?: string | null | undefined;
6313
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6275
+ createdAtLocation?: string | null | undefined;
6314
6276
  annotation?: Record<string, string | number | boolean | {
6315
6277
  type: string;
6316
6278
  filename: string;
@@ -6352,14 +6314,13 @@ export declare const EventDocument: z.ZodObject<{
6352
6314
  option: string;
6353
6315
  filename: string;
6354
6316
  originalFilename: string;
6355
- }[] | [string, string] | null | undefined> | null | undefined;
6356
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6317
+ }[] | [string, string] | null | undefined> | undefined;
6318
+ originalActionId?: string | undefined;
6357
6319
  }, {
6358
6320
  type: "PRINT_CERTIFICATE";
6359
6321
  id: string;
6360
6322
  status: "Rejected" | "Requested" | "Accepted";
6361
6323
  transactionId: string;
6362
- createdByUserType: "system" | "user";
6363
6324
  createdAt: string;
6364
6325
  createdBy: string;
6365
6326
  createdByRole: string;
@@ -6448,17 +6409,16 @@ export declare const EventDocument: z.ZodObject<{
6448
6409
  option: string;
6449
6410
  filename: string;
6450
6411
  originalFilename: string;
6451
- }[] | [string, string] | null | undefined> | null | undefined;
6452
- originalActionId?: string | null | undefined;
6412
+ }[] | [string, string] | null | undefined> | undefined;
6413
+ originalActionId?: string | undefined;
6453
6414
  }>, z.ZodObject<z.objectUtil.extendShape<{
6454
- id: z.ZodBranded<z.ZodString, "UUID">;
6415
+ id: z.ZodString;
6455
6416
  transactionId: z.ZodString;
6456
- createdByUserType: z.ZodEnum<["user", "system"]>;
6457
6417
  createdAt: z.ZodString;
6458
6418
  createdBy: z.ZodString;
6459
6419
  createdByRole: z.ZodString;
6460
6420
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6461
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6421
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6462
6422
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6463
6423
  filename: z.ZodString;
6464
6424
  originalFilename: z.ZodString;
@@ -6585,7 +6545,7 @@ export declare const EventDocument: z.ZodObject<{
6585
6545
  surname: string;
6586
6546
  middlename?: string | null | undefined;
6587
6547
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6588
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6548
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6589
6549
  filename: z.ZodString;
6590
6550
  originalFilename: z.ZodString;
6591
6551
  type: z.ZodString;
@@ -6710,17 +6670,16 @@ export declare const EventDocument: z.ZodObject<{
6710
6670
  firstname: string;
6711
6671
  surname: string;
6712
6672
  middlename?: string | null | undefined;
6713
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6673
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6714
6674
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6715
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6675
+ originalActionId: z.ZodOptional<z.ZodString>;
6716
6676
  }, {
6717
6677
  type: z.ZodLiteral<"READ">;
6718
6678
  }>, "strip", z.ZodTypeAny, {
6719
6679
  type: "READ";
6720
- id: string & z.BRAND<"UUID">;
6680
+ id: string;
6721
6681
  status: "Rejected" | "Requested" | "Accepted";
6722
6682
  transactionId: string;
6723
- createdByUserType: "system" | "user";
6724
6683
  createdAt: string;
6725
6684
  createdBy: string;
6726
6685
  createdByRole: string;
@@ -6767,7 +6726,7 @@ export declare const EventDocument: z.ZodObject<{
6767
6726
  originalFilename: string;
6768
6727
  }[] | [string, string] | null | undefined>;
6769
6728
  createdBySignature?: string | null | undefined;
6770
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6729
+ createdAtLocation?: string | null | undefined;
6771
6730
  annotation?: Record<string, string | number | boolean | {
6772
6731
  type: string;
6773
6732
  filename: string;
@@ -6809,14 +6768,13 @@ export declare const EventDocument: z.ZodObject<{
6809
6768
  option: string;
6810
6769
  filename: string;
6811
6770
  originalFilename: string;
6812
- }[] | [string, string] | null | undefined> | null | undefined;
6813
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6771
+ }[] | [string, string] | null | undefined> | undefined;
6772
+ originalActionId?: string | undefined;
6814
6773
  }, {
6815
6774
  type: "READ";
6816
6775
  id: string;
6817
6776
  status: "Rejected" | "Requested" | "Accepted";
6818
6777
  transactionId: string;
6819
- createdByUserType: "system" | "user";
6820
6778
  createdAt: string;
6821
6779
  createdBy: string;
6822
6780
  createdByRole: string;
@@ -6905,17 +6863,16 @@ export declare const EventDocument: z.ZodObject<{
6905
6863
  option: string;
6906
6864
  filename: string;
6907
6865
  originalFilename: string;
6908
- }[] | [string, string] | null | undefined> | null | undefined;
6909
- originalActionId?: string | null | undefined;
6866
+ }[] | [string, string] | null | undefined> | undefined;
6867
+ originalActionId?: string | undefined;
6910
6868
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6911
- id: z.ZodBranded<z.ZodString, "UUID">;
6869
+ id: z.ZodString;
6912
6870
  transactionId: z.ZodString;
6913
- createdByUserType: z.ZodEnum<["user", "system"]>;
6914
6871
  createdAt: z.ZodString;
6915
6872
  createdBy: z.ZodString;
6916
6873
  createdByRole: z.ZodString;
6917
6874
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6918
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6875
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6919
6876
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6920
6877
  filename: z.ZodString;
6921
6878
  originalFilename: z.ZodString;
@@ -7042,7 +6999,7 @@ export declare const EventDocument: z.ZodObject<{
7042
6999
  surname: string;
7043
7000
  middlename?: string | null | undefined;
7044
7001
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
7045
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7002
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7046
7003
  filename: z.ZodString;
7047
7004
  originalFilename: z.ZodString;
7048
7005
  type: z.ZodString;
@@ -7167,49 +7124,46 @@ export declare const EventDocument: z.ZodObject<{
7167
7124
  firstname: string;
7168
7125
  surname: string;
7169
7126
  middlename?: string | null | undefined;
7170
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
7127
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
7171
7128
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7172
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7129
+ originalActionId: z.ZodOptional<z.ZodString>;
7173
7130
  }, "declaration" | "annotation">, {
7174
7131
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7175
7132
  status: z.ZodLiteral<"Rejected">;
7176
7133
  }>, "strip", z.ZodTypeAny, {
7177
7134
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7178
- id: string & z.BRAND<"UUID">;
7135
+ id: string;
7179
7136
  status: "Rejected";
7180
7137
  transactionId: string;
7181
- createdByUserType: "system" | "user";
7182
7138
  createdAt: string;
7183
7139
  createdBy: string;
7184
7140
  createdByRole: string;
7185
7141
  createdBySignature?: string | null | undefined;
7186
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7187
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7142
+ createdAtLocation?: string | null | undefined;
7143
+ originalActionId?: string | undefined;
7188
7144
  }, {
7189
7145
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7190
7146
  id: string;
7191
7147
  status: "Rejected";
7192
7148
  transactionId: string;
7193
- createdByUserType: "system" | "user";
7194
7149
  createdAt: string;
7195
7150
  createdBy: string;
7196
7151
  createdByRole: string;
7197
7152
  createdBySignature?: string | null | undefined;
7198
7153
  createdAtLocation?: string | null | undefined;
7199
- originalActionId?: string | null | undefined;
7154
+ originalActionId?: string | undefined;
7200
7155
  }>]>, "many">;
7201
7156
  trackingId: z.ZodString;
7202
7157
  }, "strip", z.ZodTypeAny, {
7203
7158
  type: string;
7204
- id: string & z.BRAND<"UUID">;
7159
+ id: string;
7205
7160
  createdAt: string;
7206
7161
  updatedAt: string;
7207
7162
  actions: ({
7208
7163
  type: "ASSIGN";
7209
- id: string & z.BRAND<"UUID">;
7164
+ id: string;
7210
7165
  status: "Rejected" | "Requested" | "Accepted";
7211
7166
  transactionId: string;
7212
- createdByUserType: "system" | "user";
7213
7167
  createdAt: string;
7214
7168
  createdBy: string;
7215
7169
  createdByRole: string;
@@ -7257,7 +7211,7 @@ export declare const EventDocument: z.ZodObject<{
7257
7211
  }[] | [string, string] | null | undefined>;
7258
7212
  assignedTo: string;
7259
7213
  createdBySignature?: string | null | undefined;
7260
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7214
+ createdAtLocation?: string | null | undefined;
7261
7215
  annotation?: Record<string, string | number | boolean | {
7262
7216
  type: string;
7263
7217
  filename: string;
@@ -7299,14 +7253,13 @@ export declare const EventDocument: z.ZodObject<{
7299
7253
  option: string;
7300
7254
  filename: string;
7301
7255
  originalFilename: string;
7302
- }[] | [string, string] | null | undefined> | null | undefined;
7303
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7256
+ }[] | [string, string] | null | undefined> | undefined;
7257
+ originalActionId?: string | undefined;
7304
7258
  } | {
7305
7259
  type: "UNASSIGN";
7306
- id: string & z.BRAND<"UUID">;
7260
+ id: string;
7307
7261
  status: "Rejected" | "Requested" | "Accepted";
7308
7262
  transactionId: string;
7309
- createdByUserType: "system" | "user";
7310
7263
  createdAt: string;
7311
7264
  createdBy: string;
7312
7265
  createdByRole: string;
@@ -7352,8 +7305,9 @@ export declare const EventDocument: z.ZodObject<{
7352
7305
  filename: string;
7353
7306
  originalFilename: string;
7354
7307
  }[] | [string, string] | null | undefined>;
7308
+ assignedTo: null;
7355
7309
  createdBySignature?: string | null | undefined;
7356
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7310
+ createdAtLocation?: string | null | undefined;
7357
7311
  annotation?: Record<string, string | number | boolean | {
7358
7312
  type: string;
7359
7313
  filename: string;
@@ -7395,14 +7349,13 @@ export declare const EventDocument: z.ZodObject<{
7395
7349
  option: string;
7396
7350
  filename: string;
7397
7351
  originalFilename: string;
7398
- }[] | [string, string] | null | undefined> | null | undefined;
7399
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7352
+ }[] | [string, string] | null | undefined> | undefined;
7353
+ originalActionId?: string | undefined;
7400
7354
  } | {
7401
7355
  type: "REGISTER";
7402
- id: string & z.BRAND<"UUID">;
7356
+ id: string;
7403
7357
  status: "Rejected" | "Requested" | "Accepted";
7404
7358
  transactionId: string;
7405
- createdByUserType: "system" | "user";
7406
7359
  createdAt: string;
7407
7360
  createdBy: string;
7408
7361
  createdByRole: string;
@@ -7449,7 +7402,7 @@ export declare const EventDocument: z.ZodObject<{
7449
7402
  originalFilename: string;
7450
7403
  }[] | [string, string] | null | undefined>;
7451
7404
  createdBySignature?: string | null | undefined;
7452
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7405
+ createdAtLocation?: string | null | undefined;
7453
7406
  annotation?: Record<string, string | number | boolean | {
7454
7407
  type: string;
7455
7408
  filename: string;
@@ -7491,15 +7444,14 @@ export declare const EventDocument: z.ZodObject<{
7491
7444
  option: string;
7492
7445
  filename: string;
7493
7446
  originalFilename: string;
7494
- }[] | [string, string] | null | undefined> | null | undefined;
7495
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7447
+ }[] | [string, string] | null | undefined> | undefined;
7448
+ originalActionId?: string | undefined;
7496
7449
  registrationNumber?: string | undefined;
7497
7450
  } | {
7498
7451
  type: "DECLARE";
7499
- id: string & z.BRAND<"UUID">;
7452
+ id: string;
7500
7453
  status: "Rejected" | "Requested" | "Accepted";
7501
7454
  transactionId: string;
7502
- createdByUserType: "system" | "user";
7503
7455
  createdAt: string;
7504
7456
  createdBy: string;
7505
7457
  createdByRole: string;
@@ -7546,7 +7498,7 @@ export declare const EventDocument: z.ZodObject<{
7546
7498
  originalFilename: string;
7547
7499
  }[] | [string, string] | null | undefined>;
7548
7500
  createdBySignature?: string | null | undefined;
7549
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7501
+ createdAtLocation?: string | null | undefined;
7550
7502
  annotation?: Record<string, string | number | boolean | {
7551
7503
  type: string;
7552
7504
  filename: string;
@@ -7588,14 +7540,13 @@ export declare const EventDocument: z.ZodObject<{
7588
7540
  option: string;
7589
7541
  filename: string;
7590
7542
  originalFilename: string;
7591
- }[] | [string, string] | null | undefined> | null | undefined;
7592
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7543
+ }[] | [string, string] | null | undefined> | undefined;
7544
+ originalActionId?: string | undefined;
7593
7545
  } | {
7594
7546
  type: "VALIDATE";
7595
- id: string & z.BRAND<"UUID">;
7547
+ id: string;
7596
7548
  status: "Rejected" | "Requested" | "Accepted";
7597
7549
  transactionId: string;
7598
- createdByUserType: "system" | "user";
7599
7550
  createdAt: string;
7600
7551
  createdBy: string;
7601
7552
  createdByRole: string;
@@ -7642,7 +7593,7 @@ export declare const EventDocument: z.ZodObject<{
7642
7593
  originalFilename: string;
7643
7594
  }[] | [string, string] | null | undefined>;
7644
7595
  createdBySignature?: string | null | undefined;
7645
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7596
+ createdAtLocation?: string | null | undefined;
7646
7597
  annotation?: Record<string, string | number | boolean | {
7647
7598
  type: string;
7648
7599
  filename: string;
@@ -7684,18 +7635,17 @@ export declare const EventDocument: z.ZodObject<{
7684
7635
  option: string;
7685
7636
  filename: string;
7686
7637
  originalFilename: string;
7687
- }[] | [string, string] | null | undefined> | null | undefined;
7688
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7638
+ }[] | [string, string] | null | undefined> | undefined;
7639
+ originalActionId?: string | undefined;
7689
7640
  } | {
7690
7641
  type: "REJECT";
7691
- id: string & z.BRAND<"UUID">;
7642
+ id: string;
7692
7643
  status: "Rejected" | "Requested" | "Accepted";
7693
7644
  reason: {
7694
7645
  message: string;
7695
7646
  isDuplicate?: boolean | undefined;
7696
7647
  };
7697
7648
  transactionId: string;
7698
- createdByUserType: "system" | "user";
7699
7649
  createdAt: string;
7700
7650
  createdBy: string;
7701
7651
  createdByRole: string;
@@ -7742,7 +7692,7 @@ export declare const EventDocument: z.ZodObject<{
7742
7692
  originalFilename: string;
7743
7693
  }[] | [string, string] | null | undefined>;
7744
7694
  createdBySignature?: string | null | undefined;
7745
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7695
+ createdAtLocation?: string | null | undefined;
7746
7696
  annotation?: Record<string, string | number | boolean | {
7747
7697
  type: string;
7748
7698
  filename: string;
@@ -7784,14 +7734,13 @@ export declare const EventDocument: z.ZodObject<{
7784
7734
  option: string;
7785
7735
  filename: string;
7786
7736
  originalFilename: string;
7787
- }[] | [string, string] | null | undefined> | null | undefined;
7788
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7737
+ }[] | [string, string] | null | undefined> | undefined;
7738
+ originalActionId?: string | undefined;
7789
7739
  } | {
7790
7740
  type: "MARKED_AS_DUPLICATE";
7791
- id: string & z.BRAND<"UUID">;
7741
+ id: string;
7792
7742
  status: "Rejected" | "Requested" | "Accepted";
7793
7743
  transactionId: string;
7794
- createdByUserType: "system" | "user";
7795
7744
  createdAt: string;
7796
7745
  createdBy: string;
7797
7746
  createdByRole: string;
@@ -7838,7 +7787,7 @@ export declare const EventDocument: z.ZodObject<{
7838
7787
  originalFilename: string;
7839
7788
  }[] | [string, string] | null | undefined>;
7840
7789
  createdBySignature?: string | null | undefined;
7841
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7790
+ createdAtLocation?: string | null | undefined;
7842
7791
  annotation?: Record<string, string | number | boolean | {
7843
7792
  type: string;
7844
7793
  filename: string;
@@ -7880,18 +7829,17 @@ export declare const EventDocument: z.ZodObject<{
7880
7829
  option: string;
7881
7830
  filename: string;
7882
7831
  originalFilename: string;
7883
- }[] | [string, string] | null | undefined> | null | undefined;
7884
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7832
+ }[] | [string, string] | null | undefined> | undefined;
7833
+ originalActionId?: string | undefined;
7885
7834
  } | {
7886
7835
  type: "ARCHIVE";
7887
- id: string & z.BRAND<"UUID">;
7836
+ id: string;
7888
7837
  status: "Rejected" | "Requested" | "Accepted";
7889
7838
  reason: {
7890
7839
  message: string;
7891
7840
  isDuplicate?: boolean | undefined;
7892
7841
  };
7893
7842
  transactionId: string;
7894
- createdByUserType: "system" | "user";
7895
7843
  createdAt: string;
7896
7844
  createdBy: string;
7897
7845
  createdByRole: string;
@@ -7938,7 +7886,7 @@ export declare const EventDocument: z.ZodObject<{
7938
7886
  originalFilename: string;
7939
7887
  }[] | [string, string] | null | undefined>;
7940
7888
  createdBySignature?: string | null | undefined;
7941
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7889
+ createdAtLocation?: string | null | undefined;
7942
7890
  annotation?: Record<string, string | number | boolean | {
7943
7891
  type: string;
7944
7892
  filename: string;
@@ -7980,14 +7928,13 @@ export declare const EventDocument: z.ZodObject<{
7980
7928
  option: string;
7981
7929
  filename: string;
7982
7930
  originalFilename: string;
7983
- }[] | [string, string] | null | undefined> | null | undefined;
7984
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7931
+ }[] | [string, string] | null | undefined> | undefined;
7932
+ originalActionId?: string | undefined;
7985
7933
  } | {
7986
7934
  type: "CREATE";
7987
- id: string & z.BRAND<"UUID">;
7935
+ id: string;
7988
7936
  status: "Rejected" | "Requested" | "Accepted";
7989
7937
  transactionId: string;
7990
- createdByUserType: "system" | "user";
7991
7938
  createdAt: string;
7992
7939
  createdBy: string;
7993
7940
  createdByRole: string;
@@ -8034,7 +7981,7 @@ export declare const EventDocument: z.ZodObject<{
8034
7981
  originalFilename: string;
8035
7982
  }[] | [string, string] | null | undefined>;
8036
7983
  createdBySignature?: string | null | undefined;
8037
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7984
+ createdAtLocation?: string | null | undefined;
8038
7985
  annotation?: Record<string, string | number | boolean | {
8039
7986
  type: string;
8040
7987
  filename: string;
@@ -8076,14 +8023,13 @@ export declare const EventDocument: z.ZodObject<{
8076
8023
  option: string;
8077
8024
  filename: string;
8078
8025
  originalFilename: string;
8079
- }[] | [string, string] | null | undefined> | null | undefined;
8080
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8026
+ }[] | [string, string] | null | undefined> | undefined;
8027
+ originalActionId?: string | undefined;
8081
8028
  } | {
8082
8029
  type: "NOTIFY";
8083
- id: string & z.BRAND<"UUID">;
8030
+ id: string;
8084
8031
  status: "Rejected" | "Requested" | "Accepted";
8085
8032
  transactionId: string;
8086
- createdByUserType: "system" | "user";
8087
8033
  createdAt: string;
8088
8034
  createdBy: string;
8089
8035
  createdByRole: string;
@@ -8130,7 +8076,7 @@ export declare const EventDocument: z.ZodObject<{
8130
8076
  originalFilename: string;
8131
8077
  }[] | [string, string] | null | undefined>;
8132
8078
  createdBySignature?: string | null | undefined;
8133
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8079
+ createdAtLocation?: string | null | undefined;
8134
8080
  annotation?: Record<string, string | number | boolean | {
8135
8081
  type: string;
8136
8082
  filename: string;
@@ -8172,14 +8118,13 @@ export declare const EventDocument: z.ZodObject<{
8172
8118
  option: string;
8173
8119
  filename: string;
8174
8120
  originalFilename: string;
8175
- }[] | [string, string] | null | undefined> | null | undefined;
8176
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8121
+ }[] | [string, string] | null | undefined> | undefined;
8122
+ originalActionId?: string | undefined;
8177
8123
  } | {
8178
8124
  type: "PRINT_CERTIFICATE";
8179
- id: string & z.BRAND<"UUID">;
8125
+ id: string;
8180
8126
  status: "Rejected" | "Requested" | "Accepted";
8181
8127
  transactionId: string;
8182
- createdByUserType: "system" | "user";
8183
8128
  createdAt: string;
8184
8129
  createdBy: string;
8185
8130
  createdByRole: string;
@@ -8226,7 +8171,7 @@ export declare const EventDocument: z.ZodObject<{
8226
8171
  originalFilename: string;
8227
8172
  }[] | [string, string] | null | undefined>;
8228
8173
  createdBySignature?: string | null | undefined;
8229
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8174
+ createdAtLocation?: string | null | undefined;
8230
8175
  annotation?: Record<string, string | number | boolean | {
8231
8176
  type: string;
8232
8177
  filename: string;
@@ -8268,14 +8213,13 @@ export declare const EventDocument: z.ZodObject<{
8268
8213
  option: string;
8269
8214
  filename: string;
8270
8215
  originalFilename: string;
8271
- }[] | [string, string] | null | undefined> | null | undefined;
8272
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8216
+ }[] | [string, string] | null | undefined> | undefined;
8217
+ originalActionId?: string | undefined;
8273
8218
  } | {
8274
8219
  type: "REQUEST_CORRECTION";
8275
- id: string & z.BRAND<"UUID">;
8220
+ id: string;
8276
8221
  status: "Rejected" | "Requested" | "Accepted";
8277
8222
  transactionId: string;
8278
- createdByUserType: "system" | "user";
8279
8223
  createdAt: string;
8280
8224
  createdBy: string;
8281
8225
  createdByRole: string;
@@ -8322,7 +8266,7 @@ export declare const EventDocument: z.ZodObject<{
8322
8266
  originalFilename: string;
8323
8267
  }[] | [string, string] | null | undefined>;
8324
8268
  createdBySignature?: string | null | undefined;
8325
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8269
+ createdAtLocation?: string | null | undefined;
8326
8270
  annotation?: Record<string, string | number | boolean | {
8327
8271
  type: string;
8328
8272
  filename: string;
@@ -8364,14 +8308,13 @@ export declare const EventDocument: z.ZodObject<{
8364
8308
  option: string;
8365
8309
  filename: string;
8366
8310
  originalFilename: string;
8367
- }[] | [string, string] | null | undefined> | null | undefined;
8368
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8311
+ }[] | [string, string] | null | undefined> | undefined;
8312
+ originalActionId?: string | undefined;
8369
8313
  } | {
8370
8314
  type: "APPROVE_CORRECTION";
8371
- id: string & z.BRAND<"UUID">;
8315
+ id: string;
8372
8316
  status: "Rejected" | "Requested" | "Accepted";
8373
8317
  transactionId: string;
8374
- createdByUserType: "system" | "user";
8375
8318
  createdAt: string;
8376
8319
  createdBy: string;
8377
8320
  createdByRole: string;
@@ -8419,7 +8362,7 @@ export declare const EventDocument: z.ZodObject<{
8419
8362
  }[] | [string, string] | null | undefined>;
8420
8363
  requestId: string;
8421
8364
  createdBySignature?: string | null | undefined;
8422
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8365
+ createdAtLocation?: string | null | undefined;
8423
8366
  annotation?: Record<string, string | number | boolean | {
8424
8367
  type: string;
8425
8368
  filename: string;
@@ -8461,14 +8404,13 @@ export declare const EventDocument: z.ZodObject<{
8461
8404
  option: string;
8462
8405
  filename: string;
8463
8406
  originalFilename: string;
8464
- }[] | [string, string] | null | undefined> | null | undefined;
8465
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8407
+ }[] | [string, string] | null | undefined> | undefined;
8408
+ originalActionId?: string | undefined;
8466
8409
  } | {
8467
8410
  type: "REJECT_CORRECTION";
8468
- id: string & z.BRAND<"UUID">;
8411
+ id: string;
8469
8412
  status: "Rejected" | "Requested" | "Accepted";
8470
8413
  transactionId: string;
8471
- createdByUserType: "system" | "user";
8472
8414
  createdAt: string;
8473
8415
  createdBy: string;
8474
8416
  createdByRole: string;
@@ -8516,7 +8458,7 @@ export declare const EventDocument: z.ZodObject<{
8516
8458
  }[] | [string, string] | null | undefined>;
8517
8459
  requestId: string;
8518
8460
  createdBySignature?: string | null | undefined;
8519
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8461
+ createdAtLocation?: string | null | undefined;
8520
8462
  annotation?: Record<string, string | number | boolean | {
8521
8463
  type: string;
8522
8464
  filename: string;
@@ -8558,14 +8500,13 @@ export declare const EventDocument: z.ZodObject<{
8558
8500
  option: string;
8559
8501
  filename: string;
8560
8502
  originalFilename: string;
8561
- }[] | [string, string] | null | undefined> | null | undefined;
8562
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8503
+ }[] | [string, string] | null | undefined> | undefined;
8504
+ originalActionId?: string | undefined;
8563
8505
  } | {
8564
8506
  type: "READ";
8565
- id: string & z.BRAND<"UUID">;
8507
+ id: string;
8566
8508
  status: "Rejected" | "Requested" | "Accepted";
8567
8509
  transactionId: string;
8568
- createdByUserType: "system" | "user";
8569
8510
  createdAt: string;
8570
8511
  createdBy: string;
8571
8512
  createdByRole: string;
@@ -8612,7 +8553,7 @@ export declare const EventDocument: z.ZodObject<{
8612
8553
  originalFilename: string;
8613
8554
  }[] | [string, string] | null | undefined>;
8614
8555
  createdBySignature?: string | null | undefined;
8615
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8556
+ createdAtLocation?: string | null | undefined;
8616
8557
  annotation?: Record<string, string | number | boolean | {
8617
8558
  type: string;
8618
8559
  filename: string;
@@ -8654,20 +8595,19 @@ export declare const EventDocument: z.ZodObject<{
8654
8595
  option: string;
8655
8596
  filename: string;
8656
8597
  originalFilename: string;
8657
- }[] | [string, string] | null | undefined> | null | undefined;
8658
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8598
+ }[] | [string, string] | null | undefined> | undefined;
8599
+ originalActionId?: string | undefined;
8659
8600
  } | {
8660
8601
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8661
- id: string & z.BRAND<"UUID">;
8602
+ id: string;
8662
8603
  status: "Rejected";
8663
8604
  transactionId: string;
8664
- createdByUserType: "system" | "user";
8665
8605
  createdAt: string;
8666
8606
  createdBy: string;
8667
8607
  createdByRole: string;
8668
8608
  createdBySignature?: string | null | undefined;
8669
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8670
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8609
+ createdAtLocation?: string | null | undefined;
8610
+ originalActionId?: string | undefined;
8671
8611
  })[];
8672
8612
  trackingId: string;
8673
8613
  }, {
@@ -8680,7 +8620,6 @@ export declare const EventDocument: z.ZodObject<{
8680
8620
  id: string;
8681
8621
  status: "Rejected" | "Requested" | "Accepted";
8682
8622
  transactionId: string;
8683
- createdByUserType: "system" | "user";
8684
8623
  createdAt: string;
8685
8624
  createdBy: string;
8686
8625
  createdByRole: string;
@@ -8770,14 +8709,13 @@ export declare const EventDocument: z.ZodObject<{
8770
8709
  option: string;
8771
8710
  filename: string;
8772
8711
  originalFilename: string;
8773
- }[] | [string, string] | null | undefined> | null | undefined;
8774
- originalActionId?: string | null | undefined;
8712
+ }[] | [string, string] | null | undefined> | undefined;
8713
+ originalActionId?: string | undefined;
8775
8714
  } | {
8776
8715
  type: "UNASSIGN";
8777
8716
  id: string;
8778
8717
  status: "Rejected" | "Requested" | "Accepted";
8779
8718
  transactionId: string;
8780
- createdByUserType: "system" | "user";
8781
8719
  createdAt: string;
8782
8720
  createdBy: string;
8783
8721
  createdByRole: string;
@@ -8823,6 +8761,7 @@ export declare const EventDocument: z.ZodObject<{
8823
8761
  filename: string;
8824
8762
  originalFilename: string;
8825
8763
  }[] | [string, string] | null | undefined>;
8764
+ assignedTo: null;
8826
8765
  createdBySignature?: string | null | undefined;
8827
8766
  createdAtLocation?: string | null | undefined;
8828
8767
  annotation?: Record<string, string | number | boolean | {
@@ -8866,14 +8805,13 @@ export declare const EventDocument: z.ZodObject<{
8866
8805
  option: string;
8867
8806
  filename: string;
8868
8807
  originalFilename: string;
8869
- }[] | [string, string] | null | undefined> | null | undefined;
8870
- originalActionId?: string | null | undefined;
8808
+ }[] | [string, string] | null | undefined> | undefined;
8809
+ originalActionId?: string | undefined;
8871
8810
  } | {
8872
8811
  type: "REGISTER";
8873
8812
  id: string;
8874
8813
  status: "Rejected" | "Requested" | "Accepted";
8875
8814
  transactionId: string;
8876
- createdByUserType: "system" | "user";
8877
8815
  createdAt: string;
8878
8816
  createdBy: string;
8879
8817
  createdByRole: string;
@@ -8962,15 +8900,14 @@ export declare const EventDocument: z.ZodObject<{
8962
8900
  option: string;
8963
8901
  filename: string;
8964
8902
  originalFilename: string;
8965
- }[] | [string, string] | null | undefined> | null | undefined;
8966
- originalActionId?: string | null | undefined;
8903
+ }[] | [string, string] | null | undefined> | undefined;
8904
+ originalActionId?: string | undefined;
8967
8905
  registrationNumber?: string | undefined;
8968
8906
  } | {
8969
8907
  type: "DECLARE";
8970
8908
  id: string;
8971
8909
  status: "Rejected" | "Requested" | "Accepted";
8972
8910
  transactionId: string;
8973
- createdByUserType: "system" | "user";
8974
8911
  createdAt: string;
8975
8912
  createdBy: string;
8976
8913
  createdByRole: string;
@@ -9059,14 +8996,13 @@ export declare const EventDocument: z.ZodObject<{
9059
8996
  option: string;
9060
8997
  filename: string;
9061
8998
  originalFilename: string;
9062
- }[] | [string, string] | null | undefined> | null | undefined;
9063
- originalActionId?: string | null | undefined;
8999
+ }[] | [string, string] | null | undefined> | undefined;
9000
+ originalActionId?: string | undefined;
9064
9001
  } | {
9065
9002
  type: "VALIDATE";
9066
9003
  id: string;
9067
9004
  status: "Rejected" | "Requested" | "Accepted";
9068
9005
  transactionId: string;
9069
- createdByUserType: "system" | "user";
9070
9006
  createdAt: string;
9071
9007
  createdBy: string;
9072
9008
  createdByRole: string;
@@ -9155,8 +9091,8 @@ export declare const EventDocument: z.ZodObject<{
9155
9091
  option: string;
9156
9092
  filename: string;
9157
9093
  originalFilename: string;
9158
- }[] | [string, string] | null | undefined> | null | undefined;
9159
- originalActionId?: string | null | undefined;
9094
+ }[] | [string, string] | null | undefined> | undefined;
9095
+ originalActionId?: string | undefined;
9160
9096
  } | {
9161
9097
  type: "REJECT";
9162
9098
  id: string;
@@ -9166,7 +9102,6 @@ export declare const EventDocument: z.ZodObject<{
9166
9102
  isDuplicate?: boolean | undefined;
9167
9103
  };
9168
9104
  transactionId: string;
9169
- createdByUserType: "system" | "user";
9170
9105
  createdAt: string;
9171
9106
  createdBy: string;
9172
9107
  createdByRole: string;
@@ -9255,14 +9190,13 @@ export declare const EventDocument: z.ZodObject<{
9255
9190
  option: string;
9256
9191
  filename: string;
9257
9192
  originalFilename: string;
9258
- }[] | [string, string] | null | undefined> | null | undefined;
9259
- originalActionId?: string | null | undefined;
9193
+ }[] | [string, string] | null | undefined> | undefined;
9194
+ originalActionId?: string | undefined;
9260
9195
  } | {
9261
9196
  type: "MARKED_AS_DUPLICATE";
9262
9197
  id: string;
9263
9198
  status: "Rejected" | "Requested" | "Accepted";
9264
9199
  transactionId: string;
9265
- createdByUserType: "system" | "user";
9266
9200
  createdAt: string;
9267
9201
  createdBy: string;
9268
9202
  createdByRole: string;
@@ -9351,8 +9285,8 @@ export declare const EventDocument: z.ZodObject<{
9351
9285
  option: string;
9352
9286
  filename: string;
9353
9287
  originalFilename: string;
9354
- }[] | [string, string] | null | undefined> | null | undefined;
9355
- originalActionId?: string | null | undefined;
9288
+ }[] | [string, string] | null | undefined> | undefined;
9289
+ originalActionId?: string | undefined;
9356
9290
  } | {
9357
9291
  type: "ARCHIVE";
9358
9292
  id: string;
@@ -9362,7 +9296,6 @@ export declare const EventDocument: z.ZodObject<{
9362
9296
  isDuplicate?: boolean | undefined;
9363
9297
  };
9364
9298
  transactionId: string;
9365
- createdByUserType: "system" | "user";
9366
9299
  createdAt: string;
9367
9300
  createdBy: string;
9368
9301
  createdByRole: string;
@@ -9451,14 +9384,13 @@ export declare const EventDocument: z.ZodObject<{
9451
9384
  option: string;
9452
9385
  filename: string;
9453
9386
  originalFilename: string;
9454
- }[] | [string, string] | null | undefined> | null | undefined;
9455
- originalActionId?: string | null | undefined;
9387
+ }[] | [string, string] | null | undefined> | undefined;
9388
+ originalActionId?: string | undefined;
9456
9389
  } | {
9457
9390
  type: "CREATE";
9458
9391
  id: string;
9459
9392
  status: "Rejected" | "Requested" | "Accepted";
9460
9393
  transactionId: string;
9461
- createdByUserType: "system" | "user";
9462
9394
  createdAt: string;
9463
9395
  createdBy: string;
9464
9396
  createdByRole: string;
@@ -9547,14 +9479,13 @@ export declare const EventDocument: z.ZodObject<{
9547
9479
  option: string;
9548
9480
  filename: string;
9549
9481
  originalFilename: string;
9550
- }[] | [string, string] | null | undefined> | null | undefined;
9551
- originalActionId?: string | null | undefined;
9482
+ }[] | [string, string] | null | undefined> | undefined;
9483
+ originalActionId?: string | undefined;
9552
9484
  } | {
9553
9485
  type: "NOTIFY";
9554
9486
  id: string;
9555
9487
  status: "Rejected" | "Requested" | "Accepted";
9556
9488
  transactionId: string;
9557
- createdByUserType: "system" | "user";
9558
9489
  createdAt: string;
9559
9490
  createdBy: string;
9560
9491
  createdByRole: string;
@@ -9643,14 +9574,13 @@ export declare const EventDocument: z.ZodObject<{
9643
9574
  option: string;
9644
9575
  filename: string;
9645
9576
  originalFilename: string;
9646
- }[] | [string, string] | null | undefined> | null | undefined;
9647
- originalActionId?: string | null | undefined;
9577
+ }[] | [string, string] | null | undefined> | undefined;
9578
+ originalActionId?: string | undefined;
9648
9579
  } | {
9649
9580
  type: "PRINT_CERTIFICATE";
9650
9581
  id: string;
9651
9582
  status: "Rejected" | "Requested" | "Accepted";
9652
9583
  transactionId: string;
9653
- createdByUserType: "system" | "user";
9654
9584
  createdAt: string;
9655
9585
  createdBy: string;
9656
9586
  createdByRole: string;
@@ -9739,14 +9669,13 @@ export declare const EventDocument: z.ZodObject<{
9739
9669
  option: string;
9740
9670
  filename: string;
9741
9671
  originalFilename: string;
9742
- }[] | [string, string] | null | undefined> | null | undefined;
9743
- originalActionId?: string | null | undefined;
9672
+ }[] | [string, string] | null | undefined> | undefined;
9673
+ originalActionId?: string | undefined;
9744
9674
  } | {
9745
9675
  type: "REQUEST_CORRECTION";
9746
9676
  id: string;
9747
9677
  status: "Rejected" | "Requested" | "Accepted";
9748
9678
  transactionId: string;
9749
- createdByUserType: "system" | "user";
9750
9679
  createdAt: string;
9751
9680
  createdBy: string;
9752
9681
  createdByRole: string;
@@ -9835,14 +9764,13 @@ export declare const EventDocument: z.ZodObject<{
9835
9764
  option: string;
9836
9765
  filename: string;
9837
9766
  originalFilename: string;
9838
- }[] | [string, string] | null | undefined> | null | undefined;
9839
- originalActionId?: string | null | undefined;
9767
+ }[] | [string, string] | null | undefined> | undefined;
9768
+ originalActionId?: string | undefined;
9840
9769
  } | {
9841
9770
  type: "APPROVE_CORRECTION";
9842
9771
  id: string;
9843
9772
  status: "Rejected" | "Requested" | "Accepted";
9844
9773
  transactionId: string;
9845
- createdByUserType: "system" | "user";
9846
9774
  createdAt: string;
9847
9775
  createdBy: string;
9848
9776
  createdByRole: string;
@@ -9932,14 +9860,13 @@ export declare const EventDocument: z.ZodObject<{
9932
9860
  option: string;
9933
9861
  filename: string;
9934
9862
  originalFilename: string;
9935
- }[] | [string, string] | null | undefined> | null | undefined;
9936
- originalActionId?: string | null | undefined;
9863
+ }[] | [string, string] | null | undefined> | undefined;
9864
+ originalActionId?: string | undefined;
9937
9865
  } | {
9938
9866
  type: "REJECT_CORRECTION";
9939
9867
  id: string;
9940
9868
  status: "Rejected" | "Requested" | "Accepted";
9941
9869
  transactionId: string;
9942
- createdByUserType: "system" | "user";
9943
9870
  createdAt: string;
9944
9871
  createdBy: string;
9945
9872
  createdByRole: string;
@@ -10029,14 +9956,13 @@ export declare const EventDocument: z.ZodObject<{
10029
9956
  option: string;
10030
9957
  filename: string;
10031
9958
  originalFilename: string;
10032
- }[] | [string, string] | null | undefined> | null | undefined;
10033
- originalActionId?: string | null | undefined;
9959
+ }[] | [string, string] | null | undefined> | undefined;
9960
+ originalActionId?: string | undefined;
10034
9961
  } | {
10035
9962
  type: "READ";
10036
9963
  id: string;
10037
9964
  status: "Rejected" | "Requested" | "Accepted";
10038
9965
  transactionId: string;
10039
- createdByUserType: "system" | "user";
10040
9966
  createdAt: string;
10041
9967
  createdBy: string;
10042
9968
  createdByRole: string;
@@ -10125,20 +10051,19 @@ export declare const EventDocument: z.ZodObject<{
10125
10051
  option: string;
10126
10052
  filename: string;
10127
10053
  originalFilename: string;
10128
- }[] | [string, string] | null | undefined> | null | undefined;
10129
- originalActionId?: string | null | undefined;
10054
+ }[] | [string, string] | null | undefined> | undefined;
10055
+ originalActionId?: string | undefined;
10130
10056
  } | {
10131
10057
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
10132
10058
  id: string;
10133
10059
  status: "Rejected";
10134
10060
  transactionId: string;
10135
- createdByUserType: "system" | "user";
10136
10061
  createdAt: string;
10137
10062
  createdBy: string;
10138
10063
  createdByRole: string;
10139
10064
  createdBySignature?: string | null | undefined;
10140
10065
  createdAtLocation?: string | null | undefined;
10141
- originalActionId?: string | null | undefined;
10066
+ originalActionId?: string | undefined;
10142
10067
  })[];
10143
10068
  trackingId: string;
10144
10069
  }>;