@opencrvs/toolkit 1.9.12-rc.c1f8f26 → 1.9.12-rc.c4223c6

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 (90) hide show
  1. package/build.sh +4 -0
  2. package/dist/application-config/index.js +2045 -41
  3. package/dist/cli.js +3177 -4
  4. package/dist/commons/api/router.d.ts +194 -150
  5. package/dist/commons/application-config/index.d.ts +13 -16
  6. package/dist/commons/conditionals/conditionals.d.ts +3 -3
  7. package/dist/commons/events/ActionDocument.d.ts +198 -198
  8. package/dist/commons/events/ActionInput.d.ts +113 -113
  9. package/dist/commons/events/ActionType.d.ts +3 -3
  10. package/dist/commons/events/AdvancedSearchConfig.d.ts +16 -10
  11. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +443 -172
  13. package/dist/commons/events/Draft.d.ts +15 -15
  14. package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
  15. package/dist/commons/events/EventConfig.d.ts +1 -1
  16. package/dist/commons/events/EventDocument.d.ts +81 -81
  17. package/dist/commons/events/EventIndex.d.ts +35 -27
  18. package/dist/commons/events/EventInput.d.ts +1 -1
  19. package/dist/commons/events/EventMetadata.d.ts +24 -24
  20. package/dist/commons/events/FieldConfig.d.ts +155 -44
  21. package/dist/commons/events/FieldType.d.ts +2 -1
  22. package/dist/commons/events/FieldTypeMapping.d.ts +98 -72
  23. package/dist/commons/events/FieldValue.d.ts +54 -26
  24. package/dist/commons/events/PlainDate.d.ts +1 -1
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +16 -16
  26. package/dist/commons/events/WorkqueueConfig.d.ts +438 -194
  27. package/dist/commons/events/defineConfig.d.ts +0 -4
  28. package/dist/commons/events/locations.d.ts +4 -4
  29. package/dist/commons/events/scopes.d.ts +1 -1
  30. package/dist/commons/events/state/index.d.ts +2 -2
  31. package/dist/commons/events/state/utils.d.ts +3 -3
  32. package/dist/commons/events/utils.d.ts +5 -177
  33. package/dist/conditionals/index.js +13 -5
  34. package/dist/events/index.js +145 -35
  35. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  36. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  37. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
  38. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  39. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  40. package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
  41. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  42. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  43. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  44. package/dist/migrations/v2.0/index.d.ts +7 -0
  45. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  46. package/dist/migrations/v2.0/index.js +3176 -0
  47. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  48. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  49. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  50. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  51. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  52. package/dist/migrations/v2.0/migrate-scopes.js +282 -0
  53. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  54. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  55. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  56. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  57. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  58. package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
  59. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  60. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  61. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  62. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  63. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  64. package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
  65. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  66. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  67. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  68. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  69. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  70. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  71. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  72. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  73. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  74. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  75. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  76. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  77. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  78. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  79. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  80. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  81. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  82. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  83. package/dist/notification/index.js +74 -24
  84. package/dist/scopes/index.d.ts +31 -10
  85. package/dist/scopes/index.js +17 -5
  86. package/opencrvs-toolkit-1.9.12-rc.c4223c6.tgz +0 -0
  87. package/package.json +8 -7
  88. package/tsconfig.json +3 -0
  89. package/tsconfig.tsbuildinfo +1 -1
  90. package/opencrvs-toolkit-1.9.12-rc.c1f8f26.tgz +0 -0
@@ -4,15 +4,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4
4
  user: {
5
5
  id: string;
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
11
  id: string;
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
  }>;
@@ -26,15 +26,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26
26
  user: {
27
27
  id: string;
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
33
  id: string;
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
  }>;
@@ -48,15 +48,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
48
48
  user: {
49
49
  id: string;
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
55
  id: string;
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
  }>;
@@ -94,15 +94,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
94
94
  user: {
95
95
  id: string;
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
101
  id: string;
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;
@@ -1056,15 +1056,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1056
1056
  user: {
1057
1057
  id: string;
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
1063
  id: string;
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;
@@ -1135,15 +1135,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1135
1135
  user: {
1136
1136
  id: string;
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
1142
  id: string;
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
  }>;
@@ -1157,15 +1157,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1157
1157
  user: {
1158
1158
  id: string;
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
1164
  id: string;
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
  }>;
@@ -1201,15 +1201,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1201
1201
  user: {
1202
1202
  id: string;
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
1208
  id: string;
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;
@@ -1554,15 +1554,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1554
1554
  user: {
1555
1555
  id: string;
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
1561
  id: string;
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
  }>;
@@ -1598,15 +1598,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1598
1598
  user: {
1599
1599
  id: string;
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
1605
  id: string;
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
  }>;
@@ -1642,15 +1642,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1642
1642
  user: {
1643
1643
  id: string;
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
1649
  id: string;
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
  }>;
@@ -1686,15 +1686,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1686
1686
  user: {
1687
1687
  id: string;
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
1693
  id: string;
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
  }>;
@@ -1730,15 +1730,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1730
1730
  user: {
1731
1731
  id: string;
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
1737
  id: string;
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
  }>;
@@ -1774,15 +1774,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1774
1774
  user: {
1775
1775
  id: string;
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
1781
  id: string;
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;
@@ -2128,15 +2128,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2128
2128
  user: {
2129
2129
  id: string;
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
2135
  id: string;
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;
@@ -2781,15 +2781,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2781
2781
  user: {
2782
2782
  id: string;
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
2788
  id: string;
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
  }>;
@@ -2803,15 +2803,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2803
2803
  user: {
2804
2804
  id: string;
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
2810
  id: string;
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
  }>;
@@ -2847,15 +2847,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2847
2847
  user: {
2848
2848
  id: string;
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
2854
  id: string;
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
  }>;
@@ -2891,15 +2891,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2891
2891
  user: {
2892
2892
  id: string;
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
2898
  id: string;
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
  }>;
@@ -2936,15 +2936,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2936
2936
  user: {
2937
2937
  id: string;
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
2943
  id: string;
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;
@@ -3954,15 +3954,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3954
3954
  user: {
3955
3955
  id: string;
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
3961
  id: string;
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
  }>;
@@ -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
3995
  id: string;
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,6 +4027,7 @@ 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
4033
  id: string;
@@ -4039,12 +4041,13 @@ 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
4052
  meta: import("trpc-to-openapi").OpenApiMeta;
4050
4053
  }>;
@@ -4070,6 +4073,7 @@ 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
  };
@@ -4085,12 +4089,13 @@ 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
  }>;
@@ -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
4124
  id: string;
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,9 +4141,9 @@ 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;
4141
4147
  };
4142
4148
  output: ({
4143
4149
  id: string;
@@ -4151,18 +4157,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4151
4157
  type: "user";
4152
4158
  status: "active" | "pending" | "deactivated";
4153
4159
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4154
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4160
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4155
4161
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4156
4162
  device?: string | undefined;
4157
4163
  fullHonorificName?: string | undefined;
4158
4164
  mobile?: string | undefined;
4159
4165
  email?: string | undefined;
4166
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4160
4167
  } | {
4161
4168
  id: string;
4162
4169
  name: string;
4163
4170
  type: "system";
4164
- primaryOfficeId?: undefined;
4165
- administrativeAreaId?: undefined;
4171
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4172
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4166
4173
  signature?: undefined;
4167
4174
  avatar?: undefined;
4168
4175
  fullHonorificName?: string | undefined;
@@ -4215,15 +4222,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4215
4222
  user: {
4216
4223
  id: string;
4217
4224
  type: "system";
4218
- primaryOfficeId?: undefined;
4219
4225
  signature?: undefined;
4220
- administrativeAreaId?: undefined;
4226
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4227
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4221
4228
  } | {
4222
4229
  id: string;
4223
4230
  type: "user";
4224
4231
  role: string;
4225
4232
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4226
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4233
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4227
4234
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4228
4235
  };
4229
4236
  }>;
@@ -4242,9 +4249,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4242
4249
  }>>;
4243
4250
  changePassword: import("@trpc/server").TRPCMutationProcedure<{
4244
4251
  input: {
4245
- userId: string;
4246
- existingPassword: string;
4247
4252
  password: string;
4253
+ existingPassword?: string | undefined;
4248
4254
  };
4249
4255
  output: void;
4250
4256
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4290,7 +4296,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4290
4296
  meta: import("trpc-to-openapi").OpenApiMeta;
4291
4297
  }>;
4292
4298
  activate: import("@trpc/server").TRPCMutationProcedure<{
4293
- input: any;
4299
+ input: {
4300
+ userId: string;
4301
+ password: string;
4302
+ securityQNAs: {
4303
+ questionKey: string;
4304
+ answer: string;
4305
+ }[];
4306
+ };
4307
+ output: void;
4308
+ meta: import("trpc-to-openapi").OpenApiMeta;
4309
+ }>;
4310
+ deactivateSuperUser: import("@trpc/server").TRPCMutationProcedure<{
4311
+ input: {
4312
+ username: string;
4313
+ };
4294
4314
  output: void;
4295
4315
  meta: import("trpc-to-openapi").OpenApiMeta;
4296
4316
  }>;
@@ -4300,15 +4320,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4300
4320
  user: {
4301
4321
  id: string;
4302
4322
  type: "system";
4303
- primaryOfficeId?: undefined;
4304
4323
  signature?: undefined;
4305
- administrativeAreaId?: undefined;
4324
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4325
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4306
4326
  } | {
4307
4327
  id: string;
4308
4328
  type: "user";
4309
4329
  role: string;
4310
4330
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4311
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4331
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4312
4332
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4313
4333
  };
4314
4334
  }>;
@@ -4593,15 +4613,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4593
4613
  user: {
4594
4614
  id: string;
4595
4615
  type: "system";
4596
- primaryOfficeId?: undefined;
4597
4616
  signature?: undefined;
4598
- administrativeAreaId?: undefined;
4617
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4618
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4599
4619
  } | {
4600
4620
  id: string;
4601
4621
  type: "user";
4602
4622
  role: string;
4603
4623
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4604
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4624
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4605
4625
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4606
4626
  };
4607
4627
  }>;
@@ -4666,15 +4686,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4666
4686
  user: {
4667
4687
  id: string;
4668
4688
  type: "system";
4669
- primaryOfficeId?: undefined;
4670
4689
  signature?: undefined;
4671
- administrativeAreaId?: undefined;
4690
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4691
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4672
4692
  } | {
4673
4693
  id: string;
4674
4694
  type: "user";
4675
4695
  role: string;
4676
4696
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4677
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4697
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4678
4698
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4679
4699
  };
4680
4700
  }>;
@@ -4688,15 +4708,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4688
4708
  user: {
4689
4709
  id: string;
4690
4710
  type: "system";
4691
- primaryOfficeId?: undefined;
4692
4711
  signature?: undefined;
4693
- administrativeAreaId?: undefined;
4712
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4713
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4694
4714
  } | {
4695
4715
  id: string;
4696
4716
  type: "user";
4697
4717
  role: string;
4698
4718
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4699
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4719
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4700
4720
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4701
4721
  };
4702
4722
  }>;
@@ -4719,10 +4739,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4719
4739
  eventType?: string | undefined;
4720
4740
  status?: {
4721
4741
  type: "anyOf";
4722
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4742
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4723
4743
  } | {
4724
4744
  type: "exact";
4725
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4745
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4726
4746
  } | undefined;
4727
4747
  createdAt?: {
4728
4748
  type: "exact";
@@ -4749,7 +4769,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4749
4769
  'legalStatuses.DECLARED.createdAtLocation'?: {
4750
4770
  type: "within";
4751
4771
  location: string | {
4752
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4772
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4753
4773
  $location?: string | undefined;
4754
4774
  };
4755
4775
  } | undefined;
@@ -4771,7 +4791,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4771
4791
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4772
4792
  type: "within";
4773
4793
  location: string | {
4774
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4794
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4775
4795
  $location?: string | undefined;
4776
4796
  };
4777
4797
  } | undefined;
@@ -4786,35 +4806,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4786
4806
  createdAtLocation?: {
4787
4807
  type: "within";
4788
4808
  location: string | {
4789
- $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";
4810
+ $location?: string | undefined;
4811
+ };
4812
+ } | {
4813
+ type: "exact";
4814
+ term: string | {
4815
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4790
4816
  $location?: string | undefined;
4791
4817
  };
4792
4818
  } | undefined;
4793
4819
  updatedAtLocation?: {
4794
4820
  type: "within";
4795
4821
  location: string | {
4796
- $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";
4823
+ $location?: string | undefined;
4824
+ };
4825
+ } | {
4826
+ type: "exact";
4827
+ term: string | {
4828
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4797
4829
  $location?: string | undefined;
4798
4830
  };
4799
4831
  } | undefined;
4800
4832
  updatedByUserRole?: {
4801
4833
  type: "exact";
4802
4834
  term: string | {
4803
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4835
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4804
4836
  $location?: string | undefined;
4805
4837
  };
4806
4838
  } | undefined;
4807
4839
  assignedTo?: {
4808
4840
  type: "exact";
4809
4841
  term: string | {
4810
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4842
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4811
4843
  $location?: string | undefined;
4812
4844
  };
4813
4845
  } | undefined;
4814
4846
  createdBy?: {
4815
4847
  type: "exact";
4816
4848
  term: string | {
4817
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4849
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4818
4850
  $location?: string | undefined;
4819
4851
  };
4820
4852
  } | undefined;
@@ -4825,7 +4857,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4825
4857
  updatedBy?: {
4826
4858
  type: "exact";
4827
4859
  term: string | {
4828
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4860
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4829
4861
  $location?: string | undefined;
4830
4862
  };
4831
4863
  } | undefined;
@@ -4845,10 +4877,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4845
4877
  eventType?: string | undefined;
4846
4878
  status?: {
4847
4879
  type: "anyOf";
4848
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4880
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4849
4881
  } | {
4850
4882
  type: "exact";
4851
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4883
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4852
4884
  } | undefined;
4853
4885
  createdAt?: {
4854
4886
  type: "exact";
@@ -4875,7 +4907,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4875
4907
  'legalStatuses.DECLARED.createdAtLocation'?: {
4876
4908
  type: "within";
4877
4909
  location: string | {
4878
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4910
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4879
4911
  $location?: string | undefined;
4880
4912
  };
4881
4913
  } | undefined;
@@ -4897,7 +4929,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4897
4929
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4898
4930
  type: "within";
4899
4931
  location: string | {
4900
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4932
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4901
4933
  $location?: string | undefined;
4902
4934
  };
4903
4935
  } | undefined;
@@ -4912,35 +4944,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4912
4944
  createdAtLocation?: {
4913
4945
  type: "within";
4914
4946
  location: string | {
4915
- $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";
4948
+ $location?: string | undefined;
4949
+ };
4950
+ } | {
4951
+ type: "exact";
4952
+ term: string | {
4953
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4916
4954
  $location?: string | undefined;
4917
4955
  };
4918
4956
  } | undefined;
4919
4957
  updatedAtLocation?: {
4920
4958
  type: "within";
4921
4959
  location: string | {
4922
- $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";
4961
+ $location?: string | undefined;
4962
+ };
4963
+ } | {
4964
+ type: "exact";
4965
+ term: string | {
4966
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4923
4967
  $location?: string | undefined;
4924
4968
  };
4925
4969
  } | undefined;
4926
4970
  updatedByUserRole?: {
4927
4971
  type: "exact";
4928
4972
  term: string | {
4929
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4973
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4930
4974
  $location?: string | undefined;
4931
4975
  };
4932
4976
  } | undefined;
4933
4977
  assignedTo?: {
4934
4978
  type: "exact";
4935
4979
  term: string | {
4936
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4980
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4937
4981
  $location?: string | undefined;
4938
4982
  };
4939
4983
  } | undefined;
4940
4984
  createdBy?: {
4941
4985
  type: "exact";
4942
4986
  term: string | {
4943
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4987
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4944
4988
  $location?: string | undefined;
4945
4989
  };
4946
4990
  } | undefined;
@@ -4951,7 +4995,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4951
4995
  updatedBy?: {
4952
4996
  type: "exact";
4953
4997
  term: string | {
4954
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4998
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4955
4999
  $location?: string | undefined;
4956
5000
  };
4957
5001
  } | undefined;
@@ -5004,15 +5048,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5004
5048
  user: {
5005
5049
  id: string;
5006
5050
  type: "system";
5007
- primaryOfficeId?: undefined;
5008
5051
  signature?: undefined;
5009
- administrativeAreaId?: undefined;
5052
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5053
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5010
5054
  } | {
5011
5055
  id: string;
5012
5056
  type: "user";
5013
5057
  role: string;
5014
5058
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5015
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5059
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5016
5060
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5017
5061
  };
5018
5062
  }>;
@@ -5052,15 +5096,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5052
5096
  user: {
5053
5097
  id: string;
5054
5098
  type: "system";
5055
- primaryOfficeId?: undefined;
5056
5099
  signature?: undefined;
5057
- administrativeAreaId?: undefined;
5100
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5101
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5058
5102
  } | {
5059
5103
  id: string;
5060
5104
  type: "user";
5061
5105
  role: string;
5062
5106
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5063
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5107
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5064
5108
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5065
5109
  };
5066
5110
  }>;
@@ -5170,15 +5214,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5170
5214
  user: {
5171
5215
  id: string;
5172
5216
  type: "system";
5173
- primaryOfficeId?: undefined;
5174
5217
  signature?: undefined;
5175
- administrativeAreaId?: undefined;
5218
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5219
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5176
5220
  } | {
5177
5221
  id: string;
5178
5222
  type: "user";
5179
5223
  role: string;
5180
5224
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5181
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5225
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5182
5226
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5183
5227
  };
5184
5228
  }>;
@@ -5205,15 +5249,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5205
5249
  user: {
5206
5250
  id: string;
5207
5251
  type: "system";
5208
- primaryOfficeId?: undefined;
5209
5252
  signature?: undefined;
5210
- administrativeAreaId?: undefined;
5253
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5254
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5211
5255
  } | {
5212
5256
  id: string;
5213
5257
  type: "user";
5214
5258
  role: string;
5215
5259
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5216
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5260
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5217
5261
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5218
5262
  };
5219
5263
  }>;