@opencrvs/toolkit 1.9.12-rc.a6c95e7 → 1.9.12-rc.a77b6bb

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 +197 -159
  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.a77b6bb.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.a6c95e7.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,30 +4041,31 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4039
4041
  type: "user";
4040
4042
  status: "active" | "pending" | "deactivated";
4041
4043
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4042
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4044
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4043
4045
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4044
4046
  device?: string | undefined;
4045
4047
  fullHonorificName?: string | undefined;
4046
4048
  mobile?: string | undefined;
4047
4049
  email?: string | undefined;
4050
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4048
4051
  };
4049
- meta: import("trpc-to-openapi").OpenApiMeta;
4052
+ meta: object;
4050
4053
  }>;
4051
4054
  update: import("@trpc/server").TRPCMutationProcedure<{
4052
4055
  input: {
4053
- name: {
4056
+ name?: {
4054
4057
  use: string;
4055
4058
  given: string[];
4056
4059
  family: string;
4057
- }[];
4058
- email: string;
4059
- role: string;
4060
- primaryOfficeId: string;
4060
+ }[] | undefined;
4061
4061
  username?: string | undefined;
4062
+ email?: string | undefined;
4062
4063
  mobile?: string | undefined;
4063
4064
  fullHonorificName?: string | undefined;
4064
4065
  emailForNotification?: string | undefined;
4065
4066
  password?: string | undefined;
4067
+ role?: string | undefined;
4068
+ primaryOfficeId?: string | undefined;
4066
4069
  device?: string | undefined;
4067
4070
  status?: "active" | "pending" | undefined;
4068
4071
  signature?: {
@@ -4070,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,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4135
4141
  sortOrder: "desc" | "asc";
4136
4142
  username?: string | undefined;
4137
4143
  mobile?: string | undefined;
4144
+ email?: string | undefined;
4138
4145
  status?: string | undefined;
4139
4146
  primaryOfficeId?: string | undefined;
4140
- locationId?: string | undefined;
4147
+ sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined;
4141
4148
  };
4142
4149
  output: ({
4143
4150
  id: string;
@@ -4151,25 +4158,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4151
4158
  type: "user";
4152
4159
  status: "active" | "pending" | "deactivated";
4153
4160
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4154
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4161
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4155
4162
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4156
4163
  device?: string | undefined;
4157
4164
  fullHonorificName?: string | undefined;
4158
4165
  mobile?: string | undefined;
4159
4166
  email?: string | undefined;
4167
+ data?: Record<string, import("../commons").FieldValue> | undefined;
4160
4168
  } | {
4161
4169
  id: string;
4162
4170
  name: string;
4163
4171
  type: "system";
4164
- primaryOfficeId?: undefined;
4165
- administrativeAreaId?: undefined;
4172
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4173
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4166
4174
  signature?: undefined;
4167
4175
  avatar?: undefined;
4168
4176
  fullHonorificName?: string | undefined;
4169
4177
  legacyId?: string | undefined;
4170
4178
  status?: undefined;
4171
4179
  })[];
4172
- meta: import("trpc-to-openapi").OpenApiMeta;
4180
+ meta: object;
4173
4181
  }>;
4174
4182
  actions: import("@trpc/server").TRPCQueryProcedure<{
4175
4183
  input: {
@@ -4215,15 +4223,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4215
4223
  user: {
4216
4224
  id: string;
4217
4225
  type: "system";
4218
- primaryOfficeId?: undefined;
4219
4226
  signature?: undefined;
4220
- administrativeAreaId?: undefined;
4227
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4228
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4221
4229
  } | {
4222
4230
  id: string;
4223
4231
  type: "user";
4224
4232
  role: string;
4225
4233
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4226
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4234
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4227
4235
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4228
4236
  };
4229
4237
  }>;
@@ -4242,7 +4250,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4242
4250
  }>>;
4243
4251
  changePassword: import("@trpc/server").TRPCMutationProcedure<{
4244
4252
  input: {
4245
- userId: string;
4246
4253
  existingPassword: string;
4247
4254
  password: string;
4248
4255
  };
@@ -4290,7 +4297,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4290
4297
  meta: import("trpc-to-openapi").OpenApiMeta;
4291
4298
  }>;
4292
4299
  activate: import("@trpc/server").TRPCMutationProcedure<{
4293
- input: any;
4300
+ input: {
4301
+ userId: string;
4302
+ password: string;
4303
+ securityQNAs: {
4304
+ questionKey: string;
4305
+ answer: string;
4306
+ }[];
4307
+ };
4294
4308
  output: void;
4295
4309
  meta: import("trpc-to-openapi").OpenApiMeta;
4296
4310
  }>;
@@ -4300,15 +4314,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4300
4314
  user: {
4301
4315
  id: string;
4302
4316
  type: "system";
4303
- primaryOfficeId?: undefined;
4304
4317
  signature?: undefined;
4305
- administrativeAreaId?: undefined;
4318
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4319
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4306
4320
  } | {
4307
4321
  id: string;
4308
4322
  type: "user";
4309
4323
  role: string;
4310
4324
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4311
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4325
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4312
4326
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4313
4327
  };
4314
4328
  }>;
@@ -4593,15 +4607,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4593
4607
  user: {
4594
4608
  id: string;
4595
4609
  type: "system";
4596
- primaryOfficeId?: undefined;
4597
4610
  signature?: undefined;
4598
- administrativeAreaId?: undefined;
4611
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4612
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4599
4613
  } | {
4600
4614
  id: string;
4601
4615
  type: "user";
4602
4616
  role: string;
4603
4617
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4604
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4618
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4605
4619
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4606
4620
  };
4607
4621
  }>;
@@ -4624,7 +4638,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4624
4638
  locationType: string | null;
4625
4639
  externalId?: string | null | undefined;
4626
4640
  }[];
4627
- meta: import("trpc-to-openapi").OpenApiMeta;
4641
+ meta: object;
4628
4642
  }>;
4629
4643
  set: import("@trpc/server").TRPCMutationProcedure<{
4630
4644
  input: {
@@ -4636,7 +4650,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4636
4650
  externalId?: string | null | undefined;
4637
4651
  }[];
4638
4652
  output: void;
4639
- meta: import("trpc-to-openapi").OpenApiMeta;
4653
+ meta: object;
4640
4654
  }>;
4641
4655
  get: import("@trpc/server").TRPCQueryProcedure<{
4642
4656
  input: {
@@ -4666,15 +4680,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4666
4680
  user: {
4667
4681
  id: string;
4668
4682
  type: "system";
4669
- primaryOfficeId?: undefined;
4670
4683
  signature?: undefined;
4671
- administrativeAreaId?: undefined;
4684
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4685
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4672
4686
  } | {
4673
4687
  id: string;
4674
4688
  type: "user";
4675
4689
  role: string;
4676
4690
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4677
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4691
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4678
4692
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4679
4693
  };
4680
4694
  }>;
@@ -4688,15 +4702,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4688
4702
  user: {
4689
4703
  id: string;
4690
4704
  type: "system";
4691
- primaryOfficeId?: undefined;
4692
4705
  signature?: undefined;
4693
- administrativeAreaId?: undefined;
4706
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4707
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4694
4708
  } | {
4695
4709
  id: string;
4696
4710
  type: "user";
4697
4711
  role: string;
4698
4712
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4699
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4713
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4700
4714
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4701
4715
  };
4702
4716
  }>;
@@ -4719,10 +4733,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4719
4733
  eventType?: string | undefined;
4720
4734
  status?: {
4721
4735
  type: "anyOf";
4722
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4736
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4723
4737
  } | {
4724
4738
  type: "exact";
4725
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4739
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4726
4740
  } | undefined;
4727
4741
  createdAt?: {
4728
4742
  type: "exact";
@@ -4749,7 +4763,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4749
4763
  'legalStatuses.DECLARED.createdAtLocation'?: {
4750
4764
  type: "within";
4751
4765
  location: string | {
4752
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4766
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4753
4767
  $location?: string | undefined;
4754
4768
  };
4755
4769
  } | undefined;
@@ -4771,7 +4785,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4771
4785
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4772
4786
  type: "within";
4773
4787
  location: string | {
4774
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4788
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4775
4789
  $location?: string | undefined;
4776
4790
  };
4777
4791
  } | undefined;
@@ -4786,35 +4800,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4786
4800
  createdAtLocation?: {
4787
4801
  type: "within";
4788
4802
  location: string | {
4789
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4803
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4804
+ $location?: string | undefined;
4805
+ };
4806
+ } | {
4807
+ type: "exact";
4808
+ term: string | {
4809
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4790
4810
  $location?: string | undefined;
4791
4811
  };
4792
4812
  } | undefined;
4793
4813
  updatedAtLocation?: {
4794
4814
  type: "within";
4795
4815
  location: string | {
4796
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4816
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4817
+ $location?: string | undefined;
4818
+ };
4819
+ } | {
4820
+ type: "exact";
4821
+ term: string | {
4822
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4797
4823
  $location?: string | undefined;
4798
4824
  };
4799
4825
  } | undefined;
4800
4826
  updatedByUserRole?: {
4801
4827
  type: "exact";
4802
4828
  term: string | {
4803
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4829
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4804
4830
  $location?: string | undefined;
4805
4831
  };
4806
4832
  } | undefined;
4807
4833
  assignedTo?: {
4808
4834
  type: "exact";
4809
4835
  term: string | {
4810
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4836
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4811
4837
  $location?: string | undefined;
4812
4838
  };
4813
4839
  } | undefined;
4814
4840
  createdBy?: {
4815
4841
  type: "exact";
4816
4842
  term: string | {
4817
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4843
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4818
4844
  $location?: string | undefined;
4819
4845
  };
4820
4846
  } | undefined;
@@ -4825,7 +4851,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4825
4851
  updatedBy?: {
4826
4852
  type: "exact";
4827
4853
  term: string | {
4828
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4854
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4829
4855
  $location?: string | undefined;
4830
4856
  };
4831
4857
  } | undefined;
@@ -4845,10 +4871,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4845
4871
  eventType?: string | undefined;
4846
4872
  status?: {
4847
4873
  type: "anyOf";
4848
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED")[];
4874
+ terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
4849
4875
  } | {
4850
4876
  type: "exact";
4851
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
4877
+ term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
4852
4878
  } | undefined;
4853
4879
  createdAt?: {
4854
4880
  type: "exact";
@@ -4875,7 +4901,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4875
4901
  'legalStatuses.DECLARED.createdAtLocation'?: {
4876
4902
  type: "within";
4877
4903
  location: string | {
4878
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4904
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4879
4905
  $location?: string | undefined;
4880
4906
  };
4881
4907
  } | undefined;
@@ -4897,7 +4923,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4897
4923
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4898
4924
  type: "within";
4899
4925
  location: string | {
4900
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4926
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4901
4927
  $location?: string | undefined;
4902
4928
  };
4903
4929
  } | undefined;
@@ -4912,35 +4938,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4912
4938
  createdAtLocation?: {
4913
4939
  type: "within";
4914
4940
  location: string | {
4915
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4941
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4942
+ $location?: string | undefined;
4943
+ };
4944
+ } | {
4945
+ type: "exact";
4946
+ term: string | {
4947
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4916
4948
  $location?: string | undefined;
4917
4949
  };
4918
4950
  } | undefined;
4919
4951
  updatedAtLocation?: {
4920
4952
  type: "within";
4921
4953
  location: string | {
4922
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4954
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4955
+ $location?: string | undefined;
4956
+ };
4957
+ } | {
4958
+ type: "exact";
4959
+ term: string | {
4960
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4923
4961
  $location?: string | undefined;
4924
4962
  };
4925
4963
  } | undefined;
4926
4964
  updatedByUserRole?: {
4927
4965
  type: "exact";
4928
4966
  term: string | {
4929
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4967
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4930
4968
  $location?: string | undefined;
4931
4969
  };
4932
4970
  } | undefined;
4933
4971
  assignedTo?: {
4934
4972
  type: "exact";
4935
4973
  term: string | {
4936
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4974
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4937
4975
  $location?: string | undefined;
4938
4976
  };
4939
4977
  } | undefined;
4940
4978
  createdBy?: {
4941
4979
  type: "exact";
4942
4980
  term: string | {
4943
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4981
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4944
4982
  $location?: string | undefined;
4945
4983
  };
4946
4984
  } | undefined;
@@ -4951,7 +4989,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4951
4989
  updatedBy?: {
4952
4990
  type: "exact";
4953
4991
  term: string | {
4954
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4992
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "signature" | "middlename" | "avatar";
4955
4993
  $location?: string | undefined;
4956
4994
  };
4957
4995
  } | undefined;
@@ -5004,15 +5042,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5004
5042
  user: {
5005
5043
  id: string;
5006
5044
  type: "system";
5007
- primaryOfficeId?: undefined;
5008
5045
  signature?: undefined;
5009
- administrativeAreaId?: undefined;
5046
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5047
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5010
5048
  } | {
5011
5049
  id: string;
5012
5050
  type: "user";
5013
5051
  role: string;
5014
5052
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5015
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5053
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5016
5054
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5017
5055
  };
5018
5056
  }>;
@@ -5043,7 +5081,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5043
5081
  externalId?: string | null | undefined;
5044
5082
  }[];
5045
5083
  output: void;
5046
- meta: import("trpc-to-openapi").OpenApiMeta;
5084
+ meta: object;
5047
5085
  }>;
5048
5086
  }>>;
5049
5087
  integrations: import("@trpc/server").TRPCBuiltRouter<{
@@ -5052,15 +5090,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5052
5090
  user: {
5053
5091
  id: string;
5054
5092
  type: "system";
5055
- primaryOfficeId?: undefined;
5056
5093
  signature?: undefined;
5057
- administrativeAreaId?: undefined;
5094
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5095
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5058
5096
  } | {
5059
5097
  id: string;
5060
5098
  type: "user";
5061
5099
  role: string;
5062
5100
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5063
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5101
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5064
5102
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5065
5103
  };
5066
5104
  }>;
@@ -5170,15 +5208,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5170
5208
  user: {
5171
5209
  id: string;
5172
5210
  type: "system";
5173
- primaryOfficeId?: undefined;
5174
5211
  signature?: undefined;
5175
- administrativeAreaId?: undefined;
5212
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5213
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5176
5214
  } | {
5177
5215
  id: string;
5178
5216
  type: "user";
5179
5217
  role: string;
5180
5218
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5181
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5219
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5182
5220
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5183
5221
  };
5184
5222
  }>;
@@ -5205,15 +5243,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5205
5243
  user: {
5206
5244
  id: string;
5207
5245
  type: "system";
5208
- primaryOfficeId?: undefined;
5209
5246
  signature?: undefined;
5210
- administrativeAreaId?: undefined;
5247
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5248
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5211
5249
  } | {
5212
5250
  id: string;
5213
5251
  type: "user";
5214
5252
  role: string;
5215
5253
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5216
- signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
5254
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5217
5255
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5218
5256
  };
5219
5257
  }>;