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

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 (99) hide show
  1. package/build.sh +4 -0
  2. package/dist/application-config/index.js +2045 -41
  3. package/dist/cli.js +3573 -4
  4. package/dist/commons/api/router.d.ts +248 -206
  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 +4 -2
  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 +157 -46
  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 +159 -37
  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/checkout-upstream-files.d.ts +3 -0
  39. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  40. package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
  41. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  42. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  43. package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
  44. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  45. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  46. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  47. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  48. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  49. package/dist/migrations/v2.0/create-events-index.js +326 -0
  50. package/dist/migrations/v2.0/index.d.ts +7 -0
  51. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  52. package/dist/migrations/v2.0/index.js +3572 -0
  53. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  54. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  55. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  56. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  57. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  58. package/dist/migrations/v2.0/migrate-scopes.js +282 -0
  59. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  60. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  61. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  62. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  63. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  64. package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
  65. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  66. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  67. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  68. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  69. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  70. package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
  71. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  72. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  73. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  74. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  75. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  76. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  77. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  78. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  79. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  80. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  81. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  82. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  83. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  84. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  85. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  86. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  87. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  88. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  89. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  90. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  91. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
  92. package/dist/notification/index.js +78 -25
  93. package/dist/scopes/index.d.ts +31 -10
  94. package/dist/scopes/index.js +17 -5
  95. package/opencrvs-toolkit-1.9.12-rc.c284e0c.tgz +0 -0
  96. package/package.json +8 -7
  97. package/tsconfig.json +3 -0
  98. package/tsconfig.tsbuildinfo +1 -1
  99. 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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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;
@@ -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
- 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;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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;
@@ -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
- 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;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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
  }>;
@@ -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
- 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;
@@ -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
- 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
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;
@@ -4011,16 +4012,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4011
4012
  given: string[];
4012
4013
  family: string;
4013
4014
  }[];
4014
- email: string;
4015
4015
  role: string;
4016
4016
  primaryOfficeId: string;
4017
- username?: string | undefined;
4018
- mobile?: string | undefined;
4017
+ data?: Record<string, unknown> | undefined;
4019
4018
  fullHonorificName?: string | undefined;
4020
- emailForNotification?: string | undefined;
4021
- password?: string | undefined;
4022
4019
  device?: string | undefined;
4023
- status?: "active" | "pending" | undefined;
4020
+ email?: string | undefined;
4021
+ mobile?: string | undefined;
4022
+ username?: undefined;
4023
+ password?: undefined;
4024
4024
  signature?: {
4025
4025
  path: string;
4026
4026
  originalFilename: string;
@@ -4028,7 +4028,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4028
4028
  } | undefined;
4029
4029
  };
4030
4030
  output: {
4031
- id: string;
4031
+ id: string & import("zod").$brand<"UUID">;
4032
4032
  name: {
4033
4033
  use: string;
4034
4034
  given: string[];
@@ -4039,42 +4039,40 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4039
4039
  type: "user";
4040
4040
  status: "active" | "pending" | "deactivated";
4041
4041
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4042
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4042
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4043
4043
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4044
4044
  device?: string | undefined;
4045
4045
  fullHonorificName?: string | undefined;
4046
4046
  mobile?: string | undefined;
4047
4047
  email?: string | undefined;
4048
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4048
4049
  };
4049
4050
  meta: import("trpc-to-openapi").OpenApiMeta;
4050
4051
  }>;
4051
4052
  update: import("@trpc/server").TRPCMutationProcedure<{
4052
4053
  input: {
4053
- name: {
4054
+ id: string;
4055
+ data?: Record<string, unknown> | undefined;
4056
+ name?: {
4054
4057
  use: string;
4055
4058
  given: string[];
4056
4059
  family: string;
4057
- }[];
4058
- email: string;
4059
- role: string;
4060
- primaryOfficeId: string;
4061
- username?: string | undefined;
4062
- mobile?: string | undefined;
4060
+ }[] | undefined;
4061
+ role?: string | undefined;
4063
4062
  fullHonorificName?: string | undefined;
4064
- emailForNotification?: string | undefined;
4065
- password?: string | undefined;
4066
4063
  device?: string | undefined;
4067
- status?: "active" | "pending" | undefined;
4064
+ primaryOfficeId?: string | undefined;
4065
+ email?: string | undefined;
4066
+ mobile?: string | undefined;
4068
4067
  signature?: {
4069
4068
  path: string;
4070
4069
  originalFilename: string;
4071
4070
  type: string;
4072
4071
  } | undefined;
4073
- } & {
4074
- id: string;
4072
+ status?: "active" | "deactivated" | undefined;
4075
4073
  };
4076
4074
  output: {
4077
- id: string;
4075
+ id: string & import("zod").$brand<"UUID">;
4078
4076
  name: {
4079
4077
  use: string;
4080
4078
  given: string[];
@@ -4085,19 +4083,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4085
4083
  type: "user";
4086
4084
  status: "active" | "pending" | "deactivated";
4087
4085
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4088
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4086
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4089
4087
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4090
4088
  device?: string | undefined;
4091
4089
  fullHonorificName?: string | undefined;
4092
4090
  mobile?: string | undefined;
4093
4091
  email?: string | undefined;
4092
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4094
4093
  };
4095
4094
  meta: import("trpc-to-openapi").OpenApiMeta;
4096
4095
  }>;
4097
4096
  list: import("@trpc/server").TRPCQueryProcedure<{
4098
4097
  input: string[];
4099
4098
  output: ({
4100
- id: string;
4099
+ id: string & import("zod").$brand<"UUID">;
4101
4100
  name: {
4102
4101
  use: string;
4103
4102
  given: string[];
@@ -4108,18 +4107,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4108
4107
  type: "user";
4109
4108
  status: "active" | "pending" | "deactivated";
4110
4109
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4111
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4110
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4112
4111
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4113
4112
  device?: string | undefined;
4114
4113
  fullHonorificName?: string | undefined;
4115
4114
  mobile?: string | undefined;
4116
4115
  email?: string | undefined;
4116
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4117
4117
  } | {
4118
4118
  id: string;
4119
4119
  name: string;
4120
4120
  type: "system";
4121
- primaryOfficeId?: undefined;
4122
- administrativeAreaId?: undefined;
4121
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4122
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4123
4123
  signature?: undefined;
4124
4124
  avatar?: undefined;
4125
4125
  fullHonorificName?: string | undefined;
@@ -4135,12 +4135,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4135
4135
  sortOrder: "desc" | "asc";
4136
4136
  username?: string | undefined;
4137
4137
  mobile?: string | undefined;
4138
+ email?: string | undefined;
4138
4139
  status?: string | undefined;
4139
4140
  primaryOfficeId?: string | undefined;
4140
- locationId?: string | undefined;
4141
+ sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined;
4141
4142
  };
4142
4143
  output: ({
4143
- id: string;
4144
+ id: string & import("zod").$brand<"UUID">;
4144
4145
  name: {
4145
4146
  use: string;
4146
4147
  given: string[];
@@ -4151,25 +4152,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4151
4152
  type: "user";
4152
4153
  status: "active" | "pending" | "deactivated";
4153
4154
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4154
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4155
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4155
4156
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4156
4157
  device?: string | undefined;
4157
4158
  fullHonorificName?: string | undefined;
4158
4159
  mobile?: string | undefined;
4159
4160
  email?: string | undefined;
4161
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4160
4162
  } | {
4161
4163
  id: string;
4162
4164
  name: string;
4163
4165
  type: "system";
4164
- primaryOfficeId?: undefined;
4165
- administrativeAreaId?: undefined;
4166
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4167
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4166
4168
  signature?: undefined;
4167
4169
  avatar?: undefined;
4168
4170
  fullHonorificName?: string | undefined;
4169
4171
  legacyId?: string | undefined;
4170
4172
  status?: undefined;
4171
4173
  })[];
4172
- meta: import("trpc-to-openapi").OpenApiMeta;
4174
+ meta: object;
4173
4175
  }>;
4174
4176
  actions: import("@trpc/server").TRPCQueryProcedure<{
4175
4177
  input: {
@@ -4215,15 +4217,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4215
4217
  user: {
4216
4218
  id: string;
4217
4219
  type: "system";
4218
- primaryOfficeId?: undefined;
4219
4220
  signature?: undefined;
4220
- administrativeAreaId?: undefined;
4221
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4222
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4221
4223
  } | {
4222
- id: string;
4224
+ id: string & import("zod").$brand<"UUID">;
4223
4225
  type: "user";
4224
4226
  role: string;
4225
4227
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4226
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4228
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4227
4229
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4228
4230
  };
4229
4231
  }>;
@@ -4242,7 +4244,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4242
4244
  }>>;
4243
4245
  changePassword: import("@trpc/server").TRPCMutationProcedure<{
4244
4246
  input: {
4245
- userId: string;
4246
4247
  existingPassword: string;
4247
4248
  password: string;
4248
4249
  };
@@ -4290,7 +4291,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4290
4291
  meta: import("trpc-to-openapi").OpenApiMeta;
4291
4292
  }>;
4292
4293
  activate: import("@trpc/server").TRPCMutationProcedure<{
4293
- input: any;
4294
+ input: {
4295
+ userId: string;
4296
+ password: string;
4297
+ securityQNAs: {
4298
+ questionKey: string;
4299
+ answer: string;
4300
+ }[];
4301
+ };
4302
+ output: void;
4303
+ meta: import("trpc-to-openapi").OpenApiMeta;
4304
+ }>;
4305
+ sendUsernameReminder: import("@trpc/server").TRPCMutationProcedure<{
4306
+ input: string;
4307
+ output: void;
4308
+ meta: import("trpc-to-openapi").OpenApiMeta;
4309
+ }>;
4310
+ sendResetPasswordInvite: import("@trpc/server").TRPCMutationProcedure<{
4311
+ input: string;
4294
4312
  output: void;
4295
4313
  meta: import("trpc-to-openapi").OpenApiMeta;
4296
4314
  }>;
@@ -4300,15 +4318,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4300
4318
  user: {
4301
4319
  id: string;
4302
4320
  type: "system";
4303
- primaryOfficeId?: undefined;
4304
4321
  signature?: undefined;
4305
- administrativeAreaId?: undefined;
4322
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4323
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4306
4324
  } | {
4307
- id: string;
4325
+ id: string & import("zod").$brand<"UUID">;
4308
4326
  type: "user";
4309
4327
  role: string;
4310
4328
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4311
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4329
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4312
4330
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4313
4331
  };
4314
4332
  }>;
@@ -4593,15 +4611,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4593
4611
  user: {
4594
4612
  id: string;
4595
4613
  type: "system";
4596
- primaryOfficeId?: undefined;
4597
4614
  signature?: undefined;
4598
- administrativeAreaId?: undefined;
4615
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4616
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4599
4617
  } | {
4600
- id: string;
4618
+ id: string & import("zod").$brand<"UUID">;
4601
4619
  type: "user";
4602
4620
  role: string;
4603
4621
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4604
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4622
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4605
4623
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4606
4624
  };
4607
4625
  }>;
@@ -4624,7 +4642,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4624
4642
  locationType: string | null;
4625
4643
  externalId?: string | null | undefined;
4626
4644
  }[];
4627
- meta: import("trpc-to-openapi").OpenApiMeta;
4645
+ meta: object;
4628
4646
  }>;
4629
4647
  set: import("@trpc/server").TRPCMutationProcedure<{
4630
4648
  input: {
@@ -4636,7 +4654,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4636
4654
  externalId?: string | null | undefined;
4637
4655
  }[];
4638
4656
  output: void;
4639
- meta: import("trpc-to-openapi").OpenApiMeta;
4657
+ meta: object;
4640
4658
  }>;
4641
4659
  get: import("@trpc/server").TRPCQueryProcedure<{
4642
4660
  input: {
@@ -4666,15 +4684,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4666
4684
  user: {
4667
4685
  id: string;
4668
4686
  type: "system";
4669
- primaryOfficeId?: undefined;
4670
4687
  signature?: undefined;
4671
- administrativeAreaId?: undefined;
4688
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4689
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4672
4690
  } | {
4673
- id: string;
4691
+ id: string & import("zod").$brand<"UUID">;
4674
4692
  type: "user";
4675
4693
  role: string;
4676
4694
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4677
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4695
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4678
4696
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4679
4697
  };
4680
4698
  }>;
@@ -4688,15 +4706,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4688
4706
  user: {
4689
4707
  id: string;
4690
4708
  type: "system";
4691
- primaryOfficeId?: undefined;
4692
4709
  signature?: undefined;
4693
- administrativeAreaId?: undefined;
4710
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4711
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4694
4712
  } | {
4695
- id: string;
4713
+ id: string & import("zod").$brand<"UUID">;
4696
4714
  type: "user";
4697
4715
  role: string;
4698
4716
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4699
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4717
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4700
4718
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4701
4719
  };
4702
4720
  }>;
@@ -4719,10 +4737,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4719
4737
  eventType?: string | undefined;
4720
4738
  status?: {
4721
4739
  type: "anyOf";
4722
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4740
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4723
4741
  } | {
4724
4742
  type: "exact";
4725
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4743
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4726
4744
  } | undefined;
4727
4745
  createdAt?: {
4728
4746
  type: "exact";
@@ -4749,7 +4767,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4749
4767
  'legalStatuses.DECLARED.createdAtLocation'?: {
4750
4768
  type: "within";
4751
4769
  location: string | {
4752
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4770
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4753
4771
  $location?: string | undefined;
4754
4772
  };
4755
4773
  } | undefined;
@@ -4771,7 +4789,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4771
4789
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4772
4790
  type: "within";
4773
4791
  location: string | {
4774
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4792
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4775
4793
  $location?: string | undefined;
4776
4794
  };
4777
4795
  } | undefined;
@@ -4786,35 +4804,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4786
4804
  createdAtLocation?: {
4787
4805
  type: "within";
4788
4806
  location: string | {
4789
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4807
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4808
+ $location?: string | undefined;
4809
+ };
4810
+ } | {
4811
+ type: "exact";
4812
+ term: string | {
4813
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4790
4814
  $location?: string | undefined;
4791
4815
  };
4792
4816
  } | undefined;
4793
4817
  updatedAtLocation?: {
4794
4818
  type: "within";
4795
4819
  location: string | {
4796
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4820
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4821
+ $location?: string | undefined;
4822
+ };
4823
+ } | {
4824
+ type: "exact";
4825
+ term: string | {
4826
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4797
4827
  $location?: string | undefined;
4798
4828
  };
4799
4829
  } | undefined;
4800
4830
  updatedByUserRole?: {
4801
4831
  type: "exact";
4802
4832
  term: string | {
4803
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4833
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4804
4834
  $location?: string | undefined;
4805
4835
  };
4806
4836
  } | undefined;
4807
4837
  assignedTo?: {
4808
4838
  type: "exact";
4809
4839
  term: string | {
4810
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4840
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4811
4841
  $location?: string | undefined;
4812
4842
  };
4813
4843
  } | undefined;
4814
4844
  createdBy?: {
4815
4845
  type: "exact";
4816
4846
  term: string | {
4817
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4847
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4818
4848
  $location?: string | undefined;
4819
4849
  };
4820
4850
  } | undefined;
@@ -4825,7 +4855,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4825
4855
  updatedBy?: {
4826
4856
  type: "exact";
4827
4857
  term: string | {
4828
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4858
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4829
4859
  $location?: string | undefined;
4830
4860
  };
4831
4861
  } | undefined;
@@ -4845,10 +4875,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4845
4875
  eventType?: string | undefined;
4846
4876
  status?: {
4847
4877
  type: "anyOf";
4848
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4878
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4849
4879
  } | {
4850
4880
  type: "exact";
4851
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4881
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4852
4882
  } | undefined;
4853
4883
  createdAt?: {
4854
4884
  type: "exact";
@@ -4875,7 +4905,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4875
4905
  'legalStatuses.DECLARED.createdAtLocation'?: {
4876
4906
  type: "within";
4877
4907
  location: string | {
4878
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4908
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4879
4909
  $location?: string | undefined;
4880
4910
  };
4881
4911
  } | undefined;
@@ -4897,7 +4927,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4897
4927
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4898
4928
  type: "within";
4899
4929
  location: string | {
4900
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4930
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4901
4931
  $location?: string | undefined;
4902
4932
  };
4903
4933
  } | undefined;
@@ -4912,35 +4942,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4912
4942
  createdAtLocation?: {
4913
4943
  type: "within";
4914
4944
  location: string | {
4915
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4945
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4946
+ $location?: string | undefined;
4947
+ };
4948
+ } | {
4949
+ type: "exact";
4950
+ term: string | {
4951
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4916
4952
  $location?: string | undefined;
4917
4953
  };
4918
4954
  } | undefined;
4919
4955
  updatedAtLocation?: {
4920
4956
  type: "within";
4921
4957
  location: string | {
4922
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4958
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4959
+ $location?: string | undefined;
4960
+ };
4961
+ } | {
4962
+ type: "exact";
4963
+ term: string | {
4964
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4923
4965
  $location?: string | undefined;
4924
4966
  };
4925
4967
  } | undefined;
4926
4968
  updatedByUserRole?: {
4927
4969
  type: "exact";
4928
4970
  term: string | {
4929
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4971
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4930
4972
  $location?: string | undefined;
4931
4973
  };
4932
4974
  } | undefined;
4933
4975
  assignedTo?: {
4934
4976
  type: "exact";
4935
4977
  term: string | {
4936
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4978
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4937
4979
  $location?: string | undefined;
4938
4980
  };
4939
4981
  } | undefined;
4940
4982
  createdBy?: {
4941
4983
  type: "exact";
4942
4984
  term: string | {
4943
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4985
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4944
4986
  $location?: string | undefined;
4945
4987
  };
4946
4988
  } | undefined;
@@ -4951,7 +4993,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4951
4993
  updatedBy?: {
4952
4994
  type: "exact";
4953
4995
  term: string | {
4954
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4996
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4955
4997
  $location?: string | undefined;
4956
4998
  };
4957
4999
  } | undefined;
@@ -5004,15 +5046,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5004
5046
  user: {
5005
5047
  id: string;
5006
5048
  type: "system";
5007
- primaryOfficeId?: undefined;
5008
5049
  signature?: undefined;
5009
- administrativeAreaId?: undefined;
5050
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5051
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5010
5052
  } | {
5011
- id: string;
5053
+ id: string & import("zod").$brand<"UUID">;
5012
5054
  type: "user";
5013
5055
  role: string;
5014
5056
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5015
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5057
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5016
5058
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5017
5059
  };
5018
5060
  }>;
@@ -5043,7 +5085,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5043
5085
  externalId?: string | null | undefined;
5044
5086
  }[];
5045
5087
  output: void;
5046
- meta: import("trpc-to-openapi").OpenApiMeta;
5088
+ meta: object;
5047
5089
  }>;
5048
5090
  }>>;
5049
5091
  integrations: import("@trpc/server").TRPCBuiltRouter<{
@@ -5052,15 +5094,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5052
5094
  user: {
5053
5095
  id: string;
5054
5096
  type: "system";
5055
- primaryOfficeId?: undefined;
5056
5097
  signature?: undefined;
5057
- administrativeAreaId?: undefined;
5098
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5099
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5058
5100
  } | {
5059
- id: string;
5101
+ id: string & import("zod").$brand<"UUID">;
5060
5102
  type: "user";
5061
5103
  role: string;
5062
5104
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5063
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5105
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5064
5106
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5065
5107
  };
5066
5108
  }>;
@@ -5170,15 +5212,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5170
5212
  user: {
5171
5213
  id: string;
5172
5214
  type: "system";
5173
- primaryOfficeId?: undefined;
5174
5215
  signature?: undefined;
5175
- administrativeAreaId?: undefined;
5216
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5217
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5176
5218
  } | {
5177
- id: string;
5219
+ id: string & import("zod").$brand<"UUID">;
5178
5220
  type: "user";
5179
5221
  role: string;
5180
5222
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5181
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5223
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5182
5224
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5183
5225
  };
5184
5226
  }>;
@@ -5205,15 +5247,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5205
5247
  user: {
5206
5248
  id: string;
5207
5249
  type: "system";
5208
- primaryOfficeId?: undefined;
5209
5250
  signature?: undefined;
5210
- administrativeAreaId?: undefined;
5251
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5252
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5211
5253
  } | {
5212
- id: string;
5254
+ id: string & import("zod").$brand<"UUID">;
5213
5255
  type: "user";
5214
5256
  role: string;
5215
5257
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5216
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5258
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5217
5259
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5218
5260
  };
5219
5261
  }>;