@opencrvs/toolkit 1.9.12-rc.ba2ea5c → 1.9.12-rc.ba81d1a

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 (44) hide show
  1. package/dist/application-config/index.js +2038 -45
  2. package/dist/cli.js +497 -25
  3. package/dist/commons/api/router.d.ts +247 -233
  4. package/dist/commons/application-config/index.d.ts +6 -4
  5. package/dist/commons/events/ActionDocument.d.ts +6 -6
  6. package/dist/commons/events/ActionType.d.ts +3 -3
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +10 -10
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +222 -222
  9. package/dist/commons/events/Draft.d.ts +8 -8
  10. package/dist/commons/events/EventConfig.d.ts +4 -2
  11. package/dist/commons/events/EventDocument.d.ts +3 -3
  12. package/dist/commons/events/EventIndex.d.ts +15 -15
  13. package/dist/commons/events/EventMetadata.d.ts +12 -12
  14. package/dist/commons/events/FieldConfig.d.ts +28 -28
  15. package/dist/commons/events/FieldType.d.ts +1 -1
  16. package/dist/commons/events/FieldTypeMapping.d.ts +4 -4
  17. package/dist/commons/events/WorkqueueColumnConfig.d.ts +13 -13
  18. package/dist/commons/events/WorkqueueConfig.d.ts +239 -239
  19. package/dist/commons/events/scopes.d.ts +1 -1
  20. package/dist/commons/events/state/index.d.ts +2 -2
  21. package/dist/commons/events/state/utils.d.ts +3 -3
  22. package/dist/commons/events/utils.d.ts +3 -3
  23. package/dist/events/index.js +17 -4
  24. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
  25. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  26. package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
  27. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  28. package/dist/migrations/v2.0/convert-config-files-to-ts.js +97 -21
  29. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  30. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  31. package/dist/migrations/v2.0/create-events-index.js +326 -0
  32. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  33. package/dist/migrations/v2.0/index.js +495 -23
  34. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  35. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  36. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  37. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  38. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  39. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
  40. package/dist/notification/index.js +5 -2
  41. package/opencrvs-toolkit-1.9.12-rc.ba81d1a.tgz +0 -0
  42. package/package.json +1 -1
  43. package/tsconfig.tsbuildinfo +1 -1
  44. package/opencrvs-toolkit-1.9.12-rc.ba2ea5c.tgz +0 -0
@@ -2,17 +2,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: Partial<{
3
3
  token: `Bearer ${string}`;
4
4
  user: {
5
- id: string;
5
+ id: string & import("zod").$brand<"UUID">;
6
6
  type: "system";
7
- primaryOfficeId?: undefined;
8
7
  signature?: undefined;
9
- administrativeAreaId?: undefined;
8
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10
10
  } | {
11
- id: string;
11
+ id: string & import("zod").$brand<"UUID">;
12
12
  type: "user";
13
13
  role: string;
14
14
  primaryOfficeId: string & import("zod").$brand<"UUID">;
15
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
15
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
16
16
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
17
17
  };
18
18
  }>;
@@ -24,17 +24,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
24
24
  ctx: Partial<{
25
25
  token: `Bearer ${string}`;
26
26
  user: {
27
- id: string;
27
+ id: string & import("zod").$brand<"UUID">;
28
28
  type: "system";
29
- primaryOfficeId?: undefined;
30
29
  signature?: undefined;
31
- administrativeAreaId?: undefined;
30
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
32
32
  } | {
33
- id: string;
33
+ id: string & import("zod").$brand<"UUID">;
34
34
  type: "user";
35
35
  role: string;
36
36
  primaryOfficeId: string & import("zod").$brand<"UUID">;
37
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
37
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
38
38
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
39
39
  };
40
40
  }>;
@@ -46,17 +46,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
46
46
  ctx: Partial<{
47
47
  token: `Bearer ${string}`;
48
48
  user: {
49
- id: string;
49
+ id: string & import("zod").$brand<"UUID">;
50
50
  type: "system";
51
- primaryOfficeId?: undefined;
52
51
  signature?: undefined;
53
- administrativeAreaId?: undefined;
52
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
54
54
  } | {
55
- id: string;
55
+ id: string & import("zod").$brand<"UUID">;
56
56
  type: "user";
57
57
  role: string;
58
58
  primaryOfficeId: string & import("zod").$brand<"UUID">;
59
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
59
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
60
60
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
61
61
  };
62
62
  }>;
@@ -92,17 +92,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
92
92
  ctx: Partial<{
93
93
  token: `Bearer ${string}`;
94
94
  user: {
95
- id: string;
95
+ id: string & import("zod").$brand<"UUID">;
96
96
  type: "system";
97
- primaryOfficeId?: undefined;
98
97
  signature?: undefined;
99
- administrativeAreaId?: undefined;
98
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
100
100
  } | {
101
- id: string;
101
+ id: string & import("zod").$brand<"UUID">;
102
102
  type: "user";
103
103
  role: string;
104
104
  primaryOfficeId: string & import("zod").$brand<"UUID">;
105
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
105
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
106
106
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
107
107
  };
108
108
  }>;
@@ -410,15 +410,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
410
410
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
411
411
  } | {
412
412
  id: string & import("zod").$brand<"UUID">;
413
- createdAt: string;
414
413
  transactionId: string;
415
414
  createdByUserType: "system" | "user";
415
+ createdAt: string;
416
416
  createdBy: string;
417
417
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
418
418
  status: "Rejected";
419
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
420
419
  createdByRole?: string | undefined;
421
420
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
421
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
422
422
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
423
423
  })[];
424
424
  trackingId: string;
@@ -718,15 +718,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
718
718
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
719
719
  } | {
720
720
  id: string & import("zod").$brand<"UUID">;
721
- createdAt: string;
722
721
  transactionId: string;
723
722
  createdByUserType: "system" | "user";
723
+ createdAt: string;
724
724
  createdBy: string;
725
725
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
726
726
  status: "Rejected";
727
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
728
727
  createdByRole?: string | undefined;
729
728
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
729
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
730
730
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
731
731
  })[];
732
732
  trackingId: string;
@@ -1026,15 +1026,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1026
1026
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1027
1027
  } | {
1028
1028
  id: string & import("zod").$brand<"UUID">;
1029
- createdAt: string;
1030
1029
  transactionId: string;
1031
1030
  createdByUserType: "system" | "user";
1031
+ createdAt: string;
1032
1032
  createdBy: string;
1033
1033
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1034
1034
  status: "Rejected";
1035
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1036
1035
  createdByRole?: string | undefined;
1037
1036
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1037
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1038
1038
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1039
1039
  })[];
1040
1040
  trackingId: string;
@@ -1054,17 +1054,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1054
1054
  ctx: Partial<{
1055
1055
  token: `Bearer ${string}`;
1056
1056
  user: {
1057
- id: string;
1057
+ id: string & import("zod").$brand<"UUID">;
1058
1058
  type: "system";
1059
- primaryOfficeId?: undefined;
1060
1059
  signature?: undefined;
1061
- administrativeAreaId?: undefined;
1060
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1061
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1062
1062
  } | {
1063
- id: string;
1063
+ id: string & import("zod").$brand<"UUID">;
1064
1064
  type: "user";
1065
1065
  role: string;
1066
1066
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1067
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1067
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1068
1068
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1069
1069
  };
1070
1070
  }>;
@@ -1081,12 +1081,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1081
1081
  createdAt: string;
1082
1082
  action: {
1083
1083
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1084
- createdAt: string;
1085
1084
  transactionId: string;
1086
- status: "Requested" | "Accepted" | "Rejected";
1087
1085
  createdByUserType: "system" | "user";
1086
+ createdAt: string;
1088
1087
  createdBy: string;
1089
1088
  declaration: Record<string, import("../commons").FieldUpdateValue>;
1089
+ status: "Requested" | "Accepted" | "Rejected";
1090
1090
  createdByRole?: string | undefined;
1091
1091
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1092
1092
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
@@ -1114,12 +1114,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1114
1114
  createdAt: string;
1115
1115
  action: {
1116
1116
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1117
- createdAt: string;
1118
1117
  transactionId: string;
1119
- status: "Requested" | "Accepted" | "Rejected";
1120
1118
  createdByUserType: "system" | "user";
1119
+ createdAt: string;
1121
1120
  createdBy: string;
1122
1121
  declaration: Record<string, import("../commons").FieldUpdateValue>;
1122
+ status: "Requested" | "Accepted" | "Rejected";
1123
1123
  createdByRole?: string | undefined;
1124
1124
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1125
1125
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
@@ -1133,17 +1133,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1133
1133
  ctx: Partial<{
1134
1134
  token: `Bearer ${string}`;
1135
1135
  user: {
1136
- id: string;
1136
+ id: string & import("zod").$brand<"UUID">;
1137
1137
  type: "system";
1138
- primaryOfficeId?: undefined;
1139
1138
  signature?: undefined;
1140
- administrativeAreaId?: undefined;
1139
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1140
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1141
1141
  } | {
1142
- id: string;
1142
+ id: string & import("zod").$brand<"UUID">;
1143
1143
  type: "user";
1144
1144
  role: string;
1145
1145
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1146
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1146
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1147
1147
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1148
1148
  };
1149
1149
  }>;
@@ -1155,17 +1155,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1155
1155
  ctx: Partial<{
1156
1156
  token: `Bearer ${string}`;
1157
1157
  user: {
1158
- id: string;
1158
+ id: string & import("zod").$brand<"UUID">;
1159
1159
  type: "system";
1160
- primaryOfficeId?: undefined;
1161
1160
  signature?: undefined;
1162
- administrativeAreaId?: undefined;
1161
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1162
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1163
1163
  } | {
1164
- id: string;
1164
+ id: string & import("zod").$brand<"UUID">;
1165
1165
  type: "user";
1166
1166
  role: string;
1167
1167
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1168
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1168
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1169
1169
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1170
1170
  };
1171
1171
  }>;
@@ -1199,17 +1199,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1199
1199
  ctx: Partial<{
1200
1200
  token: `Bearer ${string}`;
1201
1201
  user: {
1202
- id: string;
1202
+ id: string & import("zod").$brand<"UUID">;
1203
1203
  type: "system";
1204
- primaryOfficeId?: undefined;
1205
1204
  signature?: undefined;
1206
- administrativeAreaId?: undefined;
1205
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1206
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1207
1207
  } | {
1208
- id: string;
1208
+ id: string & import("zod").$brand<"UUID">;
1209
1209
  type: "user";
1210
1210
  role: string;
1211
1211
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1212
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1212
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1213
1213
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1214
1214
  };
1215
1215
  }>;
@@ -1516,15 +1516,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1516
1516
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1517
1517
  } | {
1518
1518
  id: string & import("zod").$brand<"UUID">;
1519
- createdAt: string;
1520
1519
  transactionId: string;
1521
1520
  createdByUserType: "system" | "user";
1521
+ createdAt: string;
1522
1522
  createdBy: string;
1523
1523
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1524
1524
  status: "Rejected";
1525
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1526
1525
  createdByRole?: string | undefined;
1527
1526
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1527
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1528
1528
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1529
1529
  })[];
1530
1530
  trackingId: string;
@@ -1552,17 +1552,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1552
1552
  ctx: Partial<{
1553
1553
  token: `Bearer ${string}`;
1554
1554
  user: {
1555
- id: string;
1555
+ id: string & import("zod").$brand<"UUID">;
1556
1556
  type: "system";
1557
- primaryOfficeId?: undefined;
1558
1557
  signature?: undefined;
1559
- administrativeAreaId?: undefined;
1558
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1559
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1560
1560
  } | {
1561
- id: string;
1561
+ id: string & import("zod").$brand<"UUID">;
1562
1562
  type: "user";
1563
1563
  role: string;
1564
1564
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1565
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1565
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1566
1566
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1567
1567
  };
1568
1568
  }>;
@@ -1596,17 +1596,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1596
1596
  ctx: Partial<{
1597
1597
  token: `Bearer ${string}`;
1598
1598
  user: {
1599
- id: string;
1599
+ id: string & import("zod").$brand<"UUID">;
1600
1600
  type: "system";
1601
- primaryOfficeId?: undefined;
1602
1601
  signature?: undefined;
1603
- administrativeAreaId?: undefined;
1602
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1603
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1604
1604
  } | {
1605
- id: string;
1605
+ id: string & import("zod").$brand<"UUID">;
1606
1606
  type: "user";
1607
1607
  role: string;
1608
1608
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1609
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1609
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1610
1610
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1611
1611
  };
1612
1612
  }>;
@@ -1640,17 +1640,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1640
1640
  ctx: Partial<{
1641
1641
  token: `Bearer ${string}`;
1642
1642
  user: {
1643
- id: string;
1643
+ id: string & import("zod").$brand<"UUID">;
1644
1644
  type: "system";
1645
- primaryOfficeId?: undefined;
1646
1645
  signature?: undefined;
1647
- administrativeAreaId?: undefined;
1646
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1647
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1648
1648
  } | {
1649
- id: string;
1649
+ id: string & import("zod").$brand<"UUID">;
1650
1650
  type: "user";
1651
1651
  role: string;
1652
1652
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1653
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1653
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1654
1654
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1655
1655
  };
1656
1656
  }>;
@@ -1684,17 +1684,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1684
1684
  ctx: Partial<{
1685
1685
  token: `Bearer ${string}`;
1686
1686
  user: {
1687
- id: string;
1687
+ id: string & import("zod").$brand<"UUID">;
1688
1688
  type: "system";
1689
- primaryOfficeId?: undefined;
1690
1689
  signature?: undefined;
1691
- administrativeAreaId?: undefined;
1690
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1691
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1692
1692
  } | {
1693
- id: string;
1693
+ id: string & import("zod").$brand<"UUID">;
1694
1694
  type: "user";
1695
1695
  role: string;
1696
1696
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1697
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1697
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1698
1698
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1699
1699
  };
1700
1700
  }>;
@@ -1728,17 +1728,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1728
1728
  ctx: Partial<{
1729
1729
  token: `Bearer ${string}`;
1730
1730
  user: {
1731
- id: string;
1731
+ id: string & import("zod").$brand<"UUID">;
1732
1732
  type: "system";
1733
- primaryOfficeId?: undefined;
1734
1733
  signature?: undefined;
1735
- administrativeAreaId?: undefined;
1734
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1735
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1736
1736
  } | {
1737
- id: string;
1737
+ id: string & import("zod").$brand<"UUID">;
1738
1738
  type: "user";
1739
1739
  role: string;
1740
1740
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1741
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1741
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1742
1742
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1743
1743
  };
1744
1744
  }>;
@@ -1772,17 +1772,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1772
1772
  ctx: Partial<{
1773
1773
  token: `Bearer ${string}`;
1774
1774
  user: {
1775
- id: string;
1775
+ id: string & import("zod").$brand<"UUID">;
1776
1776
  type: "system";
1777
- primaryOfficeId?: undefined;
1778
1777
  signature?: undefined;
1779
- administrativeAreaId?: undefined;
1778
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1779
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1780
1780
  } | {
1781
- id: string;
1781
+ id: string & import("zod").$brand<"UUID">;
1782
1782
  type: "user";
1783
1783
  role: string;
1784
1784
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1785
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
1785
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1786
1786
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1787
1787
  };
1788
1788
  }>;
@@ -2090,15 +2090,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2090
2090
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2091
2091
  } | {
2092
2092
  id: string & import("zod").$brand<"UUID">;
2093
- createdAt: string;
2094
2093
  transactionId: string;
2095
2094
  createdByUserType: "system" | "user";
2095
+ createdAt: string;
2096
2096
  createdBy: string;
2097
2097
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2098
2098
  status: "Rejected";
2099
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2100
2099
  createdByRole?: string | undefined;
2101
2100
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2101
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2102
2102
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2103
2103
  })[];
2104
2104
  trackingId: string;
@@ -2126,17 +2126,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2126
2126
  ctx: Partial<{
2127
2127
  token: `Bearer ${string}`;
2128
2128
  user: {
2129
- id: string;
2129
+ id: string & import("zod").$brand<"UUID">;
2130
2130
  type: "system";
2131
- primaryOfficeId?: undefined;
2132
2131
  signature?: undefined;
2133
- administrativeAreaId?: undefined;
2132
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2133
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2134
2134
  } | {
2135
- id: string;
2135
+ id: string & import("zod").$brand<"UUID">;
2136
2136
  type: "user";
2137
2137
  role: string;
2138
2138
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2139
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2139
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2140
2140
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2141
2141
  };
2142
2142
  }>;
@@ -2444,15 +2444,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2444
2444
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2445
2445
  } | {
2446
2446
  id: string & import("zod").$brand<"UUID">;
2447
- createdAt: string;
2448
2447
  transactionId: string;
2449
2448
  createdByUserType: "system" | "user";
2449
+ createdAt: string;
2450
2450
  createdBy: string;
2451
2451
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2452
2452
  status: "Rejected";
2453
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2454
2453
  createdByRole?: string | undefined;
2455
2454
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2455
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2456
2456
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2457
2457
  })[];
2458
2458
  trackingId: string;
@@ -2759,15 +2759,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2759
2759
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2760
2760
  } | {
2761
2761
  id: string & import("zod").$brand<"UUID">;
2762
- createdAt: string;
2763
2762
  transactionId: string;
2764
2763
  createdByUserType: "system" | "user";
2764
+ createdAt: string;
2765
2765
  createdBy: string;
2766
2766
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2767
2767
  status: "Rejected";
2768
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2769
2768
  createdByRole?: string | undefined;
2770
2769
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2770
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2771
2771
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2772
2772
  })[];
2773
2773
  trackingId: string;
@@ -2779,17 +2779,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2779
2779
  ctx: Partial<{
2780
2780
  token: `Bearer ${string}`;
2781
2781
  user: {
2782
- id: string;
2782
+ id: string & import("zod").$brand<"UUID">;
2783
2783
  type: "system";
2784
- primaryOfficeId?: undefined;
2785
2784
  signature?: undefined;
2786
- administrativeAreaId?: undefined;
2785
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2786
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2787
2787
  } | {
2788
- id: string;
2788
+ id: string & import("zod").$brand<"UUID">;
2789
2789
  type: "user";
2790
2790
  role: string;
2791
2791
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2792
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2792
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2793
2793
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2794
2794
  };
2795
2795
  }>;
@@ -2801,17 +2801,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2801
2801
  ctx: Partial<{
2802
2802
  token: `Bearer ${string}`;
2803
2803
  user: {
2804
- id: string;
2804
+ id: string & import("zod").$brand<"UUID">;
2805
2805
  type: "system";
2806
- primaryOfficeId?: undefined;
2807
2806
  signature?: undefined;
2808
- administrativeAreaId?: undefined;
2807
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2808
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2809
2809
  } | {
2810
- id: string;
2810
+ id: string & import("zod").$brand<"UUID">;
2811
2811
  type: "user";
2812
2812
  role: string;
2813
2813
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2814
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2814
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2815
2815
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2816
2816
  };
2817
2817
  }>;
@@ -2845,17 +2845,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2845
2845
  ctx: Partial<{
2846
2846
  token: `Bearer ${string}`;
2847
2847
  user: {
2848
- id: string;
2848
+ id: string & import("zod").$brand<"UUID">;
2849
2849
  type: "system";
2850
- primaryOfficeId?: undefined;
2851
2850
  signature?: undefined;
2852
- administrativeAreaId?: undefined;
2851
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2852
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2853
2853
  } | {
2854
- id: string;
2854
+ id: string & import("zod").$brand<"UUID">;
2855
2855
  type: "user";
2856
2856
  role: string;
2857
2857
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2858
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2858
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2859
2859
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2860
2860
  };
2861
2861
  }>;
@@ -2889,17 +2889,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2889
2889
  ctx: Partial<{
2890
2890
  token: `Bearer ${string}`;
2891
2891
  user: {
2892
- id: string;
2892
+ id: string & import("zod").$brand<"UUID">;
2893
2893
  type: "system";
2894
- primaryOfficeId?: undefined;
2895
2894
  signature?: undefined;
2896
- administrativeAreaId?: undefined;
2895
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2896
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2897
2897
  } | {
2898
- id: string;
2898
+ id: string & import("zod").$brand<"UUID">;
2899
2899
  type: "user";
2900
2900
  role: string;
2901
2901
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2902
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2902
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2903
2903
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2904
2904
  };
2905
2905
  }>;
@@ -2934,17 +2934,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2934
2934
  ctx: Partial<{
2935
2935
  token: `Bearer ${string}`;
2936
2936
  user: {
2937
- id: string;
2937
+ id: string & import("zod").$brand<"UUID">;
2938
2938
  type: "system";
2939
- primaryOfficeId?: undefined;
2940
2939
  signature?: undefined;
2941
- administrativeAreaId?: undefined;
2940
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2941
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2942
2942
  } | {
2943
- id: string;
2943
+ id: string & import("zod").$brand<"UUID">;
2944
2944
  type: "user";
2945
2945
  role: string;
2946
2946
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2947
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
2947
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2948
2948
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2949
2949
  };
2950
2950
  }>;
@@ -3254,15 +3254,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3254
3254
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3255
3255
  } | {
3256
3256
  id: string & import("zod").$brand<"UUID">;
3257
- createdAt: string;
3258
3257
  transactionId: string;
3259
3258
  createdByUserType: "system" | "user";
3259
+ createdAt: string;
3260
3260
  createdBy: string;
3261
3261
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
3262
3262
  status: "Rejected";
3263
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3264
3263
  createdByRole?: string | undefined;
3265
3264
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3265
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3266
3266
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3267
3267
  })[];
3268
3268
  trackingId: string;
@@ -3568,15 +3568,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3568
3568
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3569
3569
  } | {
3570
3570
  id: string & import("zod").$brand<"UUID">;
3571
- createdAt: string;
3572
3571
  transactionId: string;
3573
3572
  createdByUserType: "system" | "user";
3573
+ createdAt: string;
3574
3574
  createdBy: string;
3575
3575
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
3576
3576
  status: "Rejected";
3577
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3578
3577
  createdByRole?: string | undefined;
3579
3578
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3579
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3580
3580
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3581
3581
  })[];
3582
3582
  trackingId: string;
@@ -3596,7 +3596,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3596
3596
  results: {
3597
3597
  id: string & import("zod").$brand<"UUID">;
3598
3598
  type: string;
3599
- status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
3599
+ status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
3600
3600
  legalStatuses: {
3601
3601
  DECLARED?: {
3602
3602
  createdAt: string;
@@ -3931,15 +3931,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3931
3931
  originalActionId?: string | null | undefined;
3932
3932
  } | {
3933
3933
  id: string;
3934
- createdAt: string;
3935
3934
  transactionId: string;
3936
3935
  createdByUserType: "system" | "user";
3936
+ createdAt: string;
3937
3937
  createdBy: string;
3938
3938
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
3939
3939
  status: "Rejected";
3940
- createdAtLocation?: string | null | undefined;
3941
3940
  createdByRole?: string | undefined;
3942
3941
  createdBySignature?: string | null | undefined;
3942
+ createdAtLocation?: string | null | undefined;
3943
3943
  originalActionId?: string | null | undefined;
3944
3944
  })[];
3945
3945
  trackingId: string;
@@ -3952,17 +3952,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3952
3952
  ctx: Partial<{
3953
3953
  token: `Bearer ${string}`;
3954
3954
  user: {
3955
- id: string;
3955
+ id: string & import("zod").$brand<"UUID">;
3956
3956
  type: "system";
3957
- primaryOfficeId?: undefined;
3958
3957
  signature?: undefined;
3959
- administrativeAreaId?: undefined;
3958
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3959
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3960
3960
  } | {
3961
- id: string;
3961
+ id: string & import("zod").$brand<"UUID">;
3962
3962
  type: "user";
3963
3963
  role: string;
3964
3964
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3965
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
3965
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3966
3966
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3967
3967
  };
3968
3968
  }>;
@@ -3973,7 +3973,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3973
3973
  get: import("@trpc/server").TRPCQueryProcedure<{
3974
3974
  input: string;
3975
3975
  output: {
3976
- id: string;
3976
+ id: string & import("zod").$brand<"UUID">;
3977
3977
  name: {
3978
3978
  use: string;
3979
3979
  given: string[];
@@ -3984,18 +3984,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3984
3984
  type: "user";
3985
3985
  status: "active" | "pending" | "deactivated";
3986
3986
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
3987
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
3987
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3988
3988
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3989
3989
  device?: string | undefined;
3990
3990
  fullHonorificName?: string | undefined;
3991
3991
  mobile?: string | undefined;
3992
3992
  email?: string | undefined;
3993
+ data?: Record<string, import("../commons").FieldValue> | undefined;
3993
3994
  } | {
3994
- id: string;
3995
+ id: string & import("zod").$brand<"UUID">;
3995
3996
  name: string;
3996
3997
  type: "system";
3997
- primaryOfficeId?: undefined;
3998
- administrativeAreaId?: undefined;
3998
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3999
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3999
4000
  signature?: undefined;
4000
4001
  avatar?: undefined;
4001
4002
  fullHonorificName?: string | undefined;
@@ -4026,9 +4027,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4026
4027
  originalFilename: string;
4027
4028
  type: string;
4028
4029
  } | undefined;
4030
+ data?: Record<string, unknown> | undefined;
4029
4031
  };
4030
4032
  output: {
4031
- id: string;
4033
+ id: string & import("zod").$brand<"UUID">;
4032
4034
  name: {
4033
4035
  use: string;
4034
4036
  given: string[];
@@ -4039,30 +4041,31 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4039
4041
  type: "user";
4040
4042
  status: "active" | "pending" | "deactivated";
4041
4043
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4042
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4044
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4043
4045
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4044
4046
  device?: string | undefined;
4045
4047
  fullHonorificName?: string | undefined;
4046
4048
  mobile?: string | undefined;
4047
4049
  email?: string | undefined;
4050
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4048
4051
  };
4049
- meta: import("trpc-to-openapi").OpenApiMeta;
4052
+ meta: object;
4050
4053
  }>;
4051
4054
  update: import("@trpc/server").TRPCMutationProcedure<{
4052
4055
  input: {
4053
- name: {
4056
+ name?: {
4054
4057
  use: string;
4055
4058
  given: string[];
4056
4059
  family: string;
4057
- }[];
4058
- email: string;
4059
- role: string;
4060
- primaryOfficeId: string;
4060
+ }[] | undefined;
4061
4061
  username?: string | undefined;
4062
+ email?: string | undefined;
4062
4063
  mobile?: string | undefined;
4063
4064
  fullHonorificName?: string | undefined;
4064
4065
  emailForNotification?: string | undefined;
4065
4066
  password?: string | undefined;
4067
+ role?: string | undefined;
4068
+ primaryOfficeId?: string | undefined;
4066
4069
  device?: string | undefined;
4067
4070
  status?: "active" | "pending" | undefined;
4068
4071
  signature?: {
@@ -4070,11 +4073,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4070
4073
  originalFilename: string;
4071
4074
  type: string;
4072
4075
  } | undefined;
4076
+ data?: Record<string, unknown> | undefined;
4073
4077
  } & {
4074
4078
  id: string;
4075
4079
  };
4076
4080
  output: {
4077
- id: string;
4081
+ id: string & import("zod").$brand<"UUID">;
4078
4082
  name: {
4079
4083
  use: string;
4080
4084
  given: string[];
@@ -4085,19 +4089,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4085
4089
  type: "user";
4086
4090
  status: "active" | "pending" | "deactivated";
4087
4091
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4088
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4092
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4089
4093
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4090
4094
  device?: string | undefined;
4091
4095
  fullHonorificName?: string | undefined;
4092
4096
  mobile?: string | undefined;
4093
4097
  email?: string | undefined;
4098
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4094
4099
  };
4095
4100
  meta: import("trpc-to-openapi").OpenApiMeta;
4096
4101
  }>;
4097
4102
  list: import("@trpc/server").TRPCQueryProcedure<{
4098
4103
  input: string[];
4099
4104
  output: ({
4100
- id: string;
4105
+ id: string & import("zod").$brand<"UUID">;
4101
4106
  name: {
4102
4107
  use: string;
4103
4108
  given: string[];
@@ -4108,18 +4113,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4108
4113
  type: "user";
4109
4114
  status: "active" | "pending" | "deactivated";
4110
4115
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4111
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4116
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4112
4117
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4113
4118
  device?: string | undefined;
4114
4119
  fullHonorificName?: string | undefined;
4115
4120
  mobile?: string | undefined;
4116
4121
  email?: string | undefined;
4122
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4117
4123
  } | {
4118
- id: string;
4124
+ id: string & import("zod").$brand<"UUID">;
4119
4125
  name: string;
4120
4126
  type: "system";
4121
- primaryOfficeId?: undefined;
4122
- administrativeAreaId?: undefined;
4127
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4128
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4123
4129
  signature?: undefined;
4124
4130
  avatar?: undefined;
4125
4131
  fullHonorificName?: string | undefined;
@@ -4135,12 +4141,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4135
4141
  sortOrder: "desc" | "asc";
4136
4142
  username?: string | undefined;
4137
4143
  mobile?: string | undefined;
4144
+ email?: string | undefined;
4138
4145
  status?: string | undefined;
4139
4146
  primaryOfficeId?: string | undefined;
4140
- locationId?: string | undefined;
4147
+ sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined;
4141
4148
  };
4142
4149
  output: ({
4143
- id: string;
4150
+ id: string & import("zod").$brand<"UUID">;
4144
4151
  name: {
4145
4152
  use: string;
4146
4153
  given: string[];
@@ -4151,25 +4158,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4151
4158
  type: "user";
4152
4159
  status: "active" | "pending" | "deactivated";
4153
4160
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4154
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4161
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4155
4162
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4156
4163
  device?: string | undefined;
4157
4164
  fullHonorificName?: string | undefined;
4158
4165
  mobile?: string | undefined;
4159
4166
  email?: string | undefined;
4167
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4160
4168
  } | {
4161
- id: string;
4169
+ id: string & import("zod").$brand<"UUID">;
4162
4170
  name: string;
4163
4171
  type: "system";
4164
- primaryOfficeId?: undefined;
4165
- administrativeAreaId?: undefined;
4172
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4173
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4166
4174
  signature?: undefined;
4167
4175
  avatar?: undefined;
4168
4176
  fullHonorificName?: string | undefined;
4169
4177
  legacyId?: string | undefined;
4170
4178
  status?: undefined;
4171
4179
  })[];
4172
- meta: import("trpc-to-openapi").OpenApiMeta;
4180
+ meta: object;
4173
4181
  }>;
4174
4182
  actions: import("@trpc/server").TRPCQueryProcedure<{
4175
4183
  input: {
@@ -4213,17 +4221,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4213
4221
  ctx: Partial<{
4214
4222
  token: `Bearer ${string}`;
4215
4223
  user: {
4216
- id: string;
4224
+ id: string & import("zod").$brand<"UUID">;
4217
4225
  type: "system";
4218
- primaryOfficeId?: undefined;
4219
4226
  signature?: undefined;
4220
- administrativeAreaId?: undefined;
4227
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4228
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4221
4229
  } | {
4222
- id: string;
4230
+ id: string & import("zod").$brand<"UUID">;
4223
4231
  type: "user";
4224
4232
  role: string;
4225
4233
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4226
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4234
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4227
4235
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4228
4236
  };
4229
4237
  }>;
@@ -4242,7 +4250,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4242
4250
  }>>;
4243
4251
  changePassword: import("@trpc/server").TRPCMutationProcedure<{
4244
4252
  input: {
4245
- userId: string;
4246
4253
  existingPassword: string;
4247
4254
  password: string;
4248
4255
  };
@@ -4290,7 +4297,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4290
4297
  meta: import("trpc-to-openapi").OpenApiMeta;
4291
4298
  }>;
4292
4299
  activate: import("@trpc/server").TRPCMutationProcedure<{
4293
- input: any;
4300
+ input: {
4301
+ userId: string;
4302
+ password: string;
4303
+ securityQNAs: {
4304
+ questionKey: string;
4305
+ answer: string;
4306
+ }[];
4307
+ };
4294
4308
  output: void;
4295
4309
  meta: import("trpc-to-openapi").OpenApiMeta;
4296
4310
  }>;
@@ -4298,17 +4312,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4298
4312
  ctx: Partial<{
4299
4313
  token: `Bearer ${string}`;
4300
4314
  user: {
4301
- id: string;
4315
+ id: string & import("zod").$brand<"UUID">;
4302
4316
  type: "system";
4303
- primaryOfficeId?: undefined;
4304
4317
  signature?: undefined;
4305
- administrativeAreaId?: undefined;
4318
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4319
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4306
4320
  } | {
4307
- id: string;
4321
+ id: string & import("zod").$brand<"UUID">;
4308
4322
  type: "user";
4309
4323
  role: string;
4310
4324
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4311
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4325
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4312
4326
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4313
4327
  };
4314
4328
  }>;
@@ -4591,17 +4605,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4591
4605
  ctx: Partial<{
4592
4606
  token: `Bearer ${string}`;
4593
4607
  user: {
4594
- id: string;
4608
+ id: string & import("zod").$brand<"UUID">;
4595
4609
  type: "system";
4596
- primaryOfficeId?: undefined;
4597
4610
  signature?: undefined;
4598
- administrativeAreaId?: undefined;
4611
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4612
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4599
4613
  } | {
4600
- id: string;
4614
+ id: string & import("zod").$brand<"UUID">;
4601
4615
  type: "user";
4602
4616
  role: string;
4603
4617
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4604
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4618
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4605
4619
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4606
4620
  };
4607
4621
  }>;
@@ -4624,7 +4638,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4624
4638
  locationType: string | null;
4625
4639
  externalId?: string | null | undefined;
4626
4640
  }[];
4627
- meta: import("trpc-to-openapi").OpenApiMeta;
4641
+ meta: object;
4628
4642
  }>;
4629
4643
  set: import("@trpc/server").TRPCMutationProcedure<{
4630
4644
  input: {
@@ -4636,7 +4650,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4636
4650
  externalId?: string | null | undefined;
4637
4651
  }[];
4638
4652
  output: void;
4639
- meta: import("trpc-to-openapi").OpenApiMeta;
4653
+ meta: object;
4640
4654
  }>;
4641
4655
  get: import("@trpc/server").TRPCQueryProcedure<{
4642
4656
  input: {
@@ -4664,17 +4678,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4664
4678
  ctx: Partial<{
4665
4679
  token: `Bearer ${string}`;
4666
4680
  user: {
4667
- id: string;
4681
+ id: string & import("zod").$brand<"UUID">;
4668
4682
  type: "system";
4669
- primaryOfficeId?: undefined;
4670
4683
  signature?: undefined;
4671
- administrativeAreaId?: undefined;
4684
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4685
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4672
4686
  } | {
4673
- id: string;
4687
+ id: string & import("zod").$brand<"UUID">;
4674
4688
  type: "user";
4675
4689
  role: string;
4676
4690
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4677
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4691
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4678
4692
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4679
4693
  };
4680
4694
  }>;
@@ -4686,17 +4700,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4686
4700
  ctx: Partial<{
4687
4701
  token: `Bearer ${string}`;
4688
4702
  user: {
4689
- id: string;
4703
+ id: string & import("zod").$brand<"UUID">;
4690
4704
  type: "system";
4691
- primaryOfficeId?: undefined;
4692
4705
  signature?: undefined;
4693
- administrativeAreaId?: undefined;
4706
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4707
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4694
4708
  } | {
4695
- id: string;
4709
+ id: string & import("zod").$brand<"UUID">;
4696
4710
  type: "user";
4697
4711
  role: string;
4698
4712
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4699
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4713
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4700
4714
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4701
4715
  };
4702
4716
  }>;
@@ -4719,10 +4733,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4719
4733
  eventType?: string | undefined;
4720
4734
  status?: {
4721
4735
  type: "anyOf";
4722
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4736
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4723
4737
  } | {
4724
4738
  type: "exact";
4725
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4739
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4726
4740
  } | undefined;
4727
4741
  createdAt?: {
4728
4742
  type: "exact";
@@ -4749,7 +4763,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4749
4763
  'legalStatuses.DECLARED.createdAtLocation'?: {
4750
4764
  type: "within";
4751
4765
  location: string | {
4752
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4766
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4753
4767
  $location?: string | undefined;
4754
4768
  };
4755
4769
  } | undefined;
@@ -4771,7 +4785,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4771
4785
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4772
4786
  type: "within";
4773
4787
  location: string | {
4774
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4788
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4775
4789
  $location?: string | undefined;
4776
4790
  };
4777
4791
  } | undefined;
@@ -4786,47 +4800,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4786
4800
  createdAtLocation?: {
4787
4801
  type: "within";
4788
4802
  location: string | {
4789
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4803
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4790
4804
  $location?: string | undefined;
4791
4805
  };
4792
4806
  } | {
4793
4807
  type: "exact";
4794
4808
  term: string | {
4795
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4809
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4796
4810
  $location?: string | undefined;
4797
4811
  };
4798
4812
  } | undefined;
4799
4813
  updatedAtLocation?: {
4800
4814
  type: "within";
4801
4815
  location: string | {
4802
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4816
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4803
4817
  $location?: string | undefined;
4804
4818
  };
4805
4819
  } | {
4806
4820
  type: "exact";
4807
4821
  term: string | {
4808
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4822
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4809
4823
  $location?: string | undefined;
4810
4824
  };
4811
4825
  } | undefined;
4812
4826
  updatedByUserRole?: {
4813
4827
  type: "exact";
4814
4828
  term: string | {
4815
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4829
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4816
4830
  $location?: string | undefined;
4817
4831
  };
4818
4832
  } | undefined;
4819
4833
  assignedTo?: {
4820
4834
  type: "exact";
4821
4835
  term: string | {
4822
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4836
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4823
4837
  $location?: string | undefined;
4824
4838
  };
4825
4839
  } | undefined;
4826
4840
  createdBy?: {
4827
4841
  type: "exact";
4828
4842
  term: string | {
4829
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4843
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4830
4844
  $location?: string | undefined;
4831
4845
  };
4832
4846
  } | undefined;
@@ -4837,7 +4851,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4837
4851
  updatedBy?: {
4838
4852
  type: "exact";
4839
4853
  term: string | {
4840
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4854
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4841
4855
  $location?: string | undefined;
4842
4856
  };
4843
4857
  } | undefined;
@@ -4857,10 +4871,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4857
4871
  eventType?: string | undefined;
4858
4872
  status?: {
4859
4873
  type: "anyOf";
4860
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4874
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4861
4875
  } | {
4862
4876
  type: "exact";
4863
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4877
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4864
4878
  } | undefined;
4865
4879
  createdAt?: {
4866
4880
  type: "exact";
@@ -4887,7 +4901,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4887
4901
  'legalStatuses.DECLARED.createdAtLocation'?: {
4888
4902
  type: "within";
4889
4903
  location: string | {
4890
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4904
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4891
4905
  $location?: string | undefined;
4892
4906
  };
4893
4907
  } | undefined;
@@ -4909,7 +4923,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4909
4923
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4910
4924
  type: "within";
4911
4925
  location: string | {
4912
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4926
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4913
4927
  $location?: string | undefined;
4914
4928
  };
4915
4929
  } | undefined;
@@ -4924,47 +4938,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4924
4938
  createdAtLocation?: {
4925
4939
  type: "within";
4926
4940
  location: string | {
4927
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4941
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4928
4942
  $location?: string | undefined;
4929
4943
  };
4930
4944
  } | {
4931
4945
  type: "exact";
4932
4946
  term: string | {
4933
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4947
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4934
4948
  $location?: string | undefined;
4935
4949
  };
4936
4950
  } | undefined;
4937
4951
  updatedAtLocation?: {
4938
4952
  type: "within";
4939
4953
  location: string | {
4940
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4954
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4941
4955
  $location?: string | undefined;
4942
4956
  };
4943
4957
  } | {
4944
4958
  type: "exact";
4945
4959
  term: string | {
4946
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4960
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4947
4961
  $location?: string | undefined;
4948
4962
  };
4949
4963
  } | undefined;
4950
4964
  updatedByUserRole?: {
4951
4965
  type: "exact";
4952
4966
  term: string | {
4953
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4967
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4954
4968
  $location?: string | undefined;
4955
4969
  };
4956
4970
  } | undefined;
4957
4971
  assignedTo?: {
4958
4972
  type: "exact";
4959
4973
  term: string | {
4960
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4974
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4961
4975
  $location?: string | undefined;
4962
4976
  };
4963
4977
  } | undefined;
4964
4978
  createdBy?: {
4965
4979
  type: "exact";
4966
4980
  term: string | {
4967
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4981
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4968
4982
  $location?: string | undefined;
4969
4983
  };
4970
4984
  } | undefined;
@@ -4975,7 +4989,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4975
4989
  updatedBy?: {
4976
4990
  type: "exact";
4977
4991
  term: string | {
4978
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4992
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4979
4993
  $location?: string | undefined;
4980
4994
  };
4981
4995
  } | undefined;
@@ -5026,17 +5040,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5026
5040
  ctx: Partial<{
5027
5041
  token: `Bearer ${string}`;
5028
5042
  user: {
5029
- id: string;
5043
+ id: string & import("zod").$brand<"UUID">;
5030
5044
  type: "system";
5031
- primaryOfficeId?: undefined;
5032
5045
  signature?: undefined;
5033
- administrativeAreaId?: undefined;
5046
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5047
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5034
5048
  } | {
5035
- id: string;
5049
+ id: string & import("zod").$brand<"UUID">;
5036
5050
  type: "user";
5037
5051
  role: string;
5038
5052
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5039
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5053
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5040
5054
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5041
5055
  };
5042
5056
  }>;
@@ -5067,24 +5081,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5067
5081
  externalId?: string | null | undefined;
5068
5082
  }[];
5069
5083
  output: void;
5070
- meta: import("trpc-to-openapi").OpenApiMeta;
5084
+ meta: object;
5071
5085
  }>;
5072
5086
  }>>;
5073
5087
  integrations: import("@trpc/server").TRPCBuiltRouter<{
5074
5088
  ctx: Partial<{
5075
5089
  token: `Bearer ${string}`;
5076
5090
  user: {
5077
- id: string;
5091
+ id: string & import("zod").$brand<"UUID">;
5078
5092
  type: "system";
5079
- primaryOfficeId?: undefined;
5080
5093
  signature?: undefined;
5081
- administrativeAreaId?: undefined;
5094
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5095
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5082
5096
  } | {
5083
- id: string;
5097
+ id: string & import("zod").$brand<"UUID">;
5084
5098
  type: "user";
5085
5099
  role: string;
5086
5100
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5087
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5101
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5088
5102
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5089
5103
  };
5090
5104
  }>;
@@ -5126,7 +5140,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5126
5140
  scopes: string[];
5127
5141
  status: string;
5128
5142
  createdAt: string;
5129
- createdBy: string;
5143
+ createdBy: string & import("zod").$brand<"UUID">;
5130
5144
  }[];
5131
5145
  meta: import("trpc-to-openapi").OpenApiMeta;
5132
5146
  }>;
@@ -5141,7 +5155,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5141
5155
  status: string;
5142
5156
  shaSecret: string | null;
5143
5157
  createdAt: string;
5144
- createdBy: string;
5158
+ createdBy: string & import("zod").$brand<"UUID">;
5145
5159
  };
5146
5160
  meta: import("trpc-to-openapi").OpenApiMeta;
5147
5161
  }>;
@@ -5192,17 +5206,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5192
5206
  ctx: Partial<{
5193
5207
  token: `Bearer ${string}`;
5194
5208
  user: {
5195
- id: string;
5209
+ id: string & import("zod").$brand<"UUID">;
5196
5210
  type: "system";
5197
- primaryOfficeId?: undefined;
5198
5211
  signature?: undefined;
5199
- administrativeAreaId?: undefined;
5212
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5213
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5200
5214
  } | {
5201
- id: string;
5215
+ id: string & import("zod").$brand<"UUID">;
5202
5216
  type: "user";
5203
5217
  role: string;
5204
5218
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5205
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5219
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5206
5220
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5207
5221
  };
5208
5222
  }>;
@@ -5227,17 +5241,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5227
5241
  ctx: Partial<{
5228
5242
  token: `Bearer ${string}`;
5229
5243
  user: {
5230
- id: string;
5244
+ id: string & import("zod").$brand<"UUID">;
5231
5245
  type: "system";
5232
- primaryOfficeId?: undefined;
5233
5246
  signature?: undefined;
5234
- administrativeAreaId?: undefined;
5247
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5248
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5235
5249
  } | {
5236
- id: string;
5250
+ id: string & import("zod").$brand<"UUID">;
5237
5251
  type: "user";
5238
5252
  role: string;
5239
5253
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5240
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5254
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5241
5255
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5242
5256
  };
5243
5257
  }>;