@opencrvs/toolkit 2.1.0-rc.2ec6bd5 → 2.1.0-rc.343362d

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 (104) hide show
  1. package/README.md +1 -0
  2. package/build.sh +9 -1
  3. package/create-countryconfig/index.js +412 -59
  4. package/create-countryconfig/node_modules/.bin/degit +21 -0
  5. package/create-countryconfig/package.json +4 -1
  6. package/dist/application-config/index.js +341 -274
  7. package/dist/authentication/index.d.ts +67 -0
  8. package/dist/authentication/index.d.ts.map +1 -0
  9. package/dist/authentication/index.js +750 -0
  10. package/dist/cli.js +1782 -113
  11. package/dist/commons/api/router.d.ts +795 -161
  12. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  13. package/dist/commons/conditionals/validate.d.ts +16 -5
  14. package/dist/commons/events/ActionDocument.d.ts +5 -11
  15. package/dist/commons/events/ActionInput.d.ts +4 -4
  16. package/dist/commons/events/ActionStatus.d.ts +14 -0
  17. package/dist/commons/events/AdvancedSearchConfig.d.ts +24 -0
  18. package/dist/commons/events/AuditLog.d.ts +147 -0
  19. package/dist/commons/events/EventConfig.d.ts +3 -0
  20. package/dist/commons/events/EventDocument.d.ts +470 -2
  21. package/dist/commons/events/EventIndex.d.ts +3 -26
  22. package/dist/commons/events/EventMetadata.d.ts +1 -11
  23. package/dist/commons/events/EventStatus.d.ts +19 -0
  24. package/dist/commons/events/FieldConfig.d.ts +88 -53
  25. package/dist/commons/events/FieldTypeMapping.d.ts +27 -27
  26. package/dist/commons/events/FieldValue.d.ts +2 -2
  27. package/dist/commons/events/Flag.d.ts +42 -0
  28. package/dist/commons/events/PlainDate.d.ts +8 -0
  29. package/dist/commons/events/SummaryConfig.d.ts +249 -0
  30. package/dist/commons/events/WorkqueueConfig.d.ts +17 -14
  31. package/dist/commons/events/event.d.ts +12 -0
  32. package/dist/commons/events/index.d.ts +1 -0
  33. package/dist/commons/events/locationPayloads.d.ts +95 -0
  34. package/dist/commons/events/locations.d.ts +246 -13
  35. package/dist/commons/events/mocks.test.utils.d.ts +46 -2
  36. package/dist/commons/events/test.utils.d.ts +29 -8
  37. package/dist/commons/events/utils.d.ts +13 -2
  38. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  39. package/dist/commons/notification/dispatch.d.ts +10 -0
  40. package/dist/commons/notification/index.d.ts +1 -0
  41. package/dist/conditionals/index.js +328 -58
  42. package/dist/csv.d.ts +25 -0
  43. package/dist/csv.d.ts.map +1 -0
  44. package/dist/csv.js +120 -0
  45. package/dist/environment/index.d.ts +1 -0
  46. package/dist/environment/index.d.ts.map +1 -1
  47. package/dist/environment/index.js +10 -0
  48. package/dist/environment/logger.d.ts +15 -3
  49. package/dist/environment/logger.d.ts.map +1 -1
  50. package/dist/environment/paths.d.ts +7 -0
  51. package/dist/environment/paths.d.ts.map +1 -0
  52. package/dist/environment/paths.js +72 -0
  53. package/dist/environment/questions.d.ts.map +1 -1
  54. package/dist/environment/questions.js +20 -14
  55. package/dist/environment/setup-environment.js +28 -7
  56. package/dist/environment/templates.d.ts.map +1 -1
  57. package/dist/environment/templates.js +2 -1
  58. package/dist/environment/update-workflows.d.ts.map +1 -1
  59. package/dist/environment/update-workflows.js +17 -5
  60. package/dist/environment/upgrade.d.ts +2 -0
  61. package/dist/environment/upgrade.d.ts.map +1 -0
  62. package/dist/environment/upgrade.js +82 -0
  63. package/dist/environment/users.js +11 -13
  64. package/dist/events/index.js +7590 -7099
  65. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
  66. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  67. package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
  68. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  69. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  70. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  71. package/dist/migrations/v2.1/add-translations.d.ts +9 -0
  72. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
  73. package/dist/migrations/v2.1/add-translations.js +213 -0
  74. package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
  75. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  76. package/dist/migrations/v2.1/enable-telemetry.js +438 -0
  77. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  78. package/dist/migrations/v2.1/index.js +1058 -0
  79. package/dist/notification/index.js +1859 -1459
  80. package/dist/scopes/index.d.ts +327 -32
  81. package/dist/scopes/index.js +329 -58
  82. package/dist/telemetry/index.d.ts +45 -0
  83. package/dist/telemetry/index.d.ts.map +1 -0
  84. package/dist/telemetry/index.js +39 -0
  85. package/dist/templates/charts-values/dependencies/values.yaml +2 -0
  86. package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -3
  87. package/dist/templates/charts-values/opentelemetry/values.yaml +95 -0
  88. package/dist/templates/charts-values/traefik/values.yaml +23 -9
  89. package/dist/templates/inventory/inventory.template.yml +1 -3
  90. package/dist/translations/check.d.ts +21 -0
  91. package/dist/translations/check.d.ts.map +1 -0
  92. package/dist/translations/check.js +132 -0
  93. package/dist/verify/endpoints.d.ts +2 -0
  94. package/dist/verify/endpoints.d.ts.map +1 -0
  95. package/dist/verify/endpoints.js +345 -0
  96. package/opencrvs-toolkit-2.1.0-rc.343362d.tgz +0 -0
  97. package/package.json +12 -6
  98. package/tsconfig.build.json +11 -0
  99. package/tsconfig.build.tsbuildinfo +1 -0
  100. package/tsconfig.json +3 -0
  101. package/dist/templates/inventory/production.example.yml +0 -77
  102. package/dist/templates/inventory/qa.example.yml +0 -48
  103. package/opencrvs-toolkit-2.1.0-rc.2ec6bd5.tgz +0 -0
  104. package/tsconfig.tsbuildinfo +0 -1
@@ -4,16 +4,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4
4
  user: {
5
5
  id: string & import("zod").$brand<"UUID">;
6
6
  type: "system";
7
- signature?: undefined;
8
7
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
8
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9
+ signature?: undefined;
10
10
  } | {
11
11
  id: string & import("zod").$brand<"UUID">;
12
- type: "user";
13
12
  role: string;
14
13
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
15
14
  primaryOfficeId: string & import("zod").$brand<"UUID">;
16
15
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
16
+ type: "user";
17
17
  };
18
18
  }>;
19
19
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -26,16 +26,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26
26
  user: {
27
27
  id: string & import("zod").$brand<"UUID">;
28
28
  type: "system";
29
- signature?: undefined;
30
29
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
30
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
31
+ signature?: undefined;
32
32
  } | {
33
33
  id: string & import("zod").$brand<"UUID">;
34
- type: "user";
35
34
  role: string;
36
35
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
37
36
  primaryOfficeId: string & import("zod").$brand<"UUID">;
38
37
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
38
+ type: "user";
39
39
  };
40
40
  }>;
41
41
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -48,16 +48,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
48
48
  user: {
49
49
  id: string & import("zod").$brand<"UUID">;
50
50
  type: "system";
51
- signature?: undefined;
52
51
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
52
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
53
+ signature?: undefined;
54
54
  } | {
55
55
  id: string & import("zod").$brand<"UUID">;
56
- type: "user";
57
56
  role: string;
58
57
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
59
58
  primaryOfficeId: string & import("zod").$brand<"UUID">;
60
59
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
60
+ type: "user";
61
61
  };
62
62
  }>;
63
63
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -94,16 +94,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
94
94
  user: {
95
95
  id: string & import("zod").$brand<"UUID">;
96
96
  type: "system";
97
- signature?: undefined;
98
97
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
98
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
99
+ signature?: undefined;
100
100
  } | {
101
101
  id: string & import("zod").$brand<"UUID">;
102
- type: "user";
103
102
  role: string;
104
103
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
105
104
  primaryOfficeId: string & import("zod").$brand<"UUID">;
106
105
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
106
+ type: "user";
107
107
  };
108
108
  }>;
109
109
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -223,9 +223,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
223
223
  status: "Accepted" | "Rejected" | "Requested";
224
224
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
225
225
  type: "ARCHIVE";
226
- content: {
226
+ content?: {
227
227
  reason: string;
228
- };
228
+ } | undefined;
229
229
  } | {
230
230
  id: string & import("zod").$brand<"UUID">;
231
231
  transactionId: string;
@@ -549,9 +549,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
549
549
  status: "Accepted" | "Rejected" | "Requested";
550
550
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
551
551
  type: "ARCHIVE";
552
- content: {
552
+ content?: {
553
553
  reason: string;
554
- };
554
+ } | undefined;
555
555
  } | {
556
556
  id: string & import("zod").$brand<"UUID">;
557
557
  transactionId: string;
@@ -874,9 +874,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
874
874
  status: "Accepted" | "Rejected" | "Requested";
875
875
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
876
876
  type: "ARCHIVE";
877
- content: {
877
+ content?: {
878
878
  reason: string;
879
- };
879
+ } | undefined;
880
880
  } | {
881
881
  id: string & import("zod").$brand<"UUID">;
882
882
  transactionId: string;
@@ -1108,16 +1108,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1108
1108
  user: {
1109
1109
  id: string & import("zod").$brand<"UUID">;
1110
1110
  type: "system";
1111
- signature?: undefined;
1112
1111
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1113
1112
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1113
+ signature?: undefined;
1114
1114
  } | {
1115
1115
  id: string & import("zod").$brand<"UUID">;
1116
- type: "user";
1117
1116
  role: string;
1118
1117
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1119
1118
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1120
1119
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1120
+ type: "user";
1121
1121
  };
1122
1122
  }>;
1123
1123
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1132,7 +1132,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1132
1132
  transactionId: string;
1133
1133
  createdAt: string;
1134
1134
  action: {
1135
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1136
1135
  transactionId: string;
1137
1136
  createdByUserType: "system" | "user";
1138
1137
  createdAt: string;
@@ -1143,21 +1142,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1143
1142
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1144
1143
  status: "Accepted" | "Rejected" | "Requested";
1145
1144
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1145
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1146
1146
  };
1147
1147
  }[];
1148
1148
  meta: import("trpc-to-openapi").OpenApiMeta;
1149
1149
  }>;
1150
1150
  create: import("@trpc/server").TRPCMutationProcedure<{
1151
1151
  input: {
1152
+ eventId: string;
1152
1153
  transactionId: string;
1153
- createdAtLocation?: string | null | undefined;
1154
1154
  declaration?: Record<string, unknown> | undefined;
1155
1155
  annotation?: Record<string, unknown> | undefined;
1156
1156
  originalActionId?: string | undefined;
1157
- eventId: string;
1158
1157
  keepAssignment?: boolean | undefined;
1159
1158
  keepAssignmentIfAccepted?: boolean | undefined;
1160
1159
  keepAssignmentIfRejected?: boolean | undefined;
1160
+ createdAtLocation?: string | null | undefined;
1161
1161
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1162
1162
  status: "Accepted" | "Rejected" | "Requested";
1163
1163
  };
@@ -1167,7 +1167,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1167
1167
  transactionId: string;
1168
1168
  createdAt: string;
1169
1169
  action: {
1170
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1171
1170
  transactionId: string;
1172
1171
  createdByUserType: "system" | "user";
1173
1172
  createdAt: string;
@@ -1178,6 +1177,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1178
1177
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1179
1178
  status: "Accepted" | "Rejected" | "Requested";
1180
1179
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1180
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1181
1181
  };
1182
1182
  };
1183
1183
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1189,16 +1189,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1189
1189
  user: {
1190
1190
  id: string & import("zod").$brand<"UUID">;
1191
1191
  type: "system";
1192
- signature?: undefined;
1193
1192
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1194
1193
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1194
+ signature?: undefined;
1195
1195
  } | {
1196
1196
  id: string & import("zod").$brand<"UUID">;
1197
- type: "user";
1198
1197
  role: string;
1199
1198
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1200
1199
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1201
1200
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1201
+ type: "user";
1202
1202
  };
1203
1203
  }>;
1204
1204
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1211,16 +1211,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1211
1211
  user: {
1212
1212
  id: string & import("zod").$brand<"UUID">;
1213
1213
  type: "system";
1214
- signature?: undefined;
1215
1214
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1216
1215
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1216
+ signature?: undefined;
1217
1217
  } | {
1218
1218
  id: string & import("zod").$brand<"UUID">;
1219
- type: "user";
1220
1219
  role: string;
1221
1220
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1222
1221
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1223
1222
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1223
+ type: "user";
1224
1224
  };
1225
1225
  }>;
1226
1226
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1354,9 +1354,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1354
1354
  waitFor?: boolean | undefined;
1355
1355
  createdAtLocation?: string | null | undefined;
1356
1356
  type?: "ARCHIVE" | undefined;
1357
- content: {
1357
+ content?: {
1358
1358
  reason: string;
1359
- };
1359
+ } | undefined;
1360
1360
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1361
1361
  eventId: string;
1362
1362
  transactionId: string;
@@ -1515,16 +1515,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1515
1515
  user: {
1516
1516
  id: string & import("zod").$brand<"UUID">;
1517
1517
  type: "system";
1518
- signature?: undefined;
1519
1518
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1520
1519
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1520
+ signature?: undefined;
1521
1521
  } | {
1522
1522
  id: string & import("zod").$brand<"UUID">;
1523
- type: "user";
1524
1523
  role: string;
1525
1524
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1526
1525
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1527
1526
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1527
+ type: "user";
1528
1528
  };
1529
1529
  }>;
1530
1530
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1645,9 +1645,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1645
1645
  status: "Accepted" | "Rejected" | "Requested";
1646
1646
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1647
1647
  type: "ARCHIVE";
1648
- content: {
1648
+ content?: {
1649
1649
  reason: string;
1650
- };
1650
+ } | undefined;
1651
1651
  } | {
1652
1652
  id: string & import("zod").$brand<"UUID">;
1653
1653
  transactionId: string;
@@ -1871,16 +1871,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1871
1871
  user: {
1872
1872
  id: string & import("zod").$brand<"UUID">;
1873
1873
  type: "system";
1874
- signature?: undefined;
1875
1874
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1876
1875
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1876
+ signature?: undefined;
1877
1877
  } | {
1878
1878
  id: string & import("zod").$brand<"UUID">;
1879
- type: "user";
1880
1879
  role: string;
1881
1880
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1882
1881
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1883
1882
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1883
+ type: "user";
1884
1884
  };
1885
1885
  }>;
1886
1886
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2009,9 +2009,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2009
2009
  waitFor?: boolean | undefined;
2010
2010
  createdAtLocation?: string | null | undefined;
2011
2011
  type?: "ARCHIVE" | undefined;
2012
- content: {
2012
+ content?: {
2013
2013
  reason: string;
2014
- };
2014
+ } | undefined;
2015
2015
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2016
2016
  eventId: string;
2017
2017
  transactionId: string;
@@ -2278,9 +2278,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2278
2278
  status: "Accepted" | "Rejected" | "Requested";
2279
2279
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2280
2280
  type: "ARCHIVE";
2281
- content: {
2281
+ content?: {
2282
2282
  reason: string;
2283
- };
2283
+ } | undefined;
2284
2284
  } | {
2285
2285
  id: string & import("zod").$brand<"UUID">;
2286
2286
  transactionId: string;
@@ -2504,16 +2504,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2504
2504
  user: {
2505
2505
  id: string & import("zod").$brand<"UUID">;
2506
2506
  type: "system";
2507
- signature?: undefined;
2508
2507
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2509
2508
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2509
+ signature?: undefined;
2510
2510
  } | {
2511
2511
  id: string & import("zod").$brand<"UUID">;
2512
- type: "user";
2513
2512
  role: string;
2514
2513
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2515
2514
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2516
2515
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2516
+ type: "user";
2517
2517
  };
2518
2518
  }>;
2519
2519
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2647,9 +2647,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2647
2647
  waitFor?: boolean | undefined;
2648
2648
  createdAtLocation?: string | null | undefined;
2649
2649
  type?: "ARCHIVE" | undefined;
2650
- content: {
2650
+ content?: {
2651
2651
  reason: string;
2652
- };
2652
+ } | undefined;
2653
2653
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2654
2654
  eventId: string;
2655
2655
  transactionId: string;
@@ -2808,16 +2808,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2808
2808
  user: {
2809
2809
  id: string & import("zod").$brand<"UUID">;
2810
2810
  type: "system";
2811
- signature?: undefined;
2812
2811
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2813
2812
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2813
+ signature?: undefined;
2814
2814
  } | {
2815
2815
  id: string & import("zod").$brand<"UUID">;
2816
- type: "user";
2817
2816
  role: string;
2818
2817
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2819
2818
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2820
2819
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2820
+ type: "user";
2821
2821
  };
2822
2822
  }>;
2823
2823
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2951,9 +2951,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2951
2951
  waitFor?: boolean | undefined;
2952
2952
  createdAtLocation?: string | null | undefined;
2953
2953
  type?: "ARCHIVE" | undefined;
2954
- content: {
2954
+ content?: {
2955
2955
  reason: string;
2956
- };
2956
+ } | undefined;
2957
2957
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2958
2958
  eventId: string;
2959
2959
  transactionId: string;
@@ -3112,16 +3112,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3112
3112
  user: {
3113
3113
  id: string & import("zod").$brand<"UUID">;
3114
3114
  type: "system";
3115
- signature?: undefined;
3116
3115
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3117
3116
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3117
+ signature?: undefined;
3118
3118
  } | {
3119
3119
  id: string & import("zod").$brand<"UUID">;
3120
- type: "user";
3121
3120
  role: string;
3122
3121
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3123
3122
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3124
3123
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3124
+ type: "user";
3125
3125
  };
3126
3126
  }>;
3127
3127
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3255,9 +3255,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3255
3255
  waitFor?: boolean | undefined;
3256
3256
  createdAtLocation?: string | null | undefined;
3257
3257
  type?: "ARCHIVE" | undefined;
3258
- content: {
3258
+ content?: {
3259
3259
  reason: string;
3260
- };
3260
+ } | undefined;
3261
3261
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3262
3262
  eventId: string;
3263
3263
  transactionId: string;
@@ -3416,16 +3416,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3416
3416
  user: {
3417
3417
  id: string & import("zod").$brand<"UUID">;
3418
3418
  type: "system";
3419
- signature?: undefined;
3420
3419
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3421
3420
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3421
+ signature?: undefined;
3422
3422
  } | {
3423
3423
  id: string & import("zod").$brand<"UUID">;
3424
- type: "user";
3425
3424
  role: string;
3426
3425
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3427
3426
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3428
3427
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3428
+ type: "user";
3429
3429
  };
3430
3430
  }>;
3431
3431
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3559,9 +3559,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3559
3559
  waitFor?: boolean | undefined;
3560
3560
  createdAtLocation?: string | null | undefined;
3561
3561
  type?: "ARCHIVE" | undefined;
3562
- content: {
3562
+ content?: {
3563
3563
  reason: string;
3564
- };
3564
+ } | undefined;
3565
3565
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3566
3566
  eventId: string;
3567
3567
  transactionId: string;
@@ -3720,16 +3720,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3720
3720
  user: {
3721
3721
  id: string & import("zod").$brand<"UUID">;
3722
3722
  type: "system";
3723
- signature?: undefined;
3724
3723
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3725
3724
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3725
+ signature?: undefined;
3726
3726
  } | {
3727
3727
  id: string & import("zod").$brand<"UUID">;
3728
- type: "user";
3729
3728
  role: string;
3730
3729
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3731
3730
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3732
3731
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3732
+ type: "user";
3733
3733
  };
3734
3734
  }>;
3735
3735
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3863,9 +3863,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3863
3863
  waitFor?: boolean | undefined;
3864
3864
  createdAtLocation?: string | null | undefined;
3865
3865
  type?: "ARCHIVE" | undefined;
3866
- content: {
3866
+ content?: {
3867
3867
  reason: string;
3868
- };
3868
+ } | undefined;
3869
3869
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3870
3870
  eventId: string;
3871
3871
  transactionId: string;
@@ -4024,16 +4024,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4024
4024
  user: {
4025
4025
  id: string & import("zod").$brand<"UUID">;
4026
4026
  type: "system";
4027
- signature?: undefined;
4028
4027
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4029
4028
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4029
+ signature?: undefined;
4030
4030
  } | {
4031
4031
  id: string & import("zod").$brand<"UUID">;
4032
- type: "user";
4033
4032
  role: string;
4034
4033
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4035
4034
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4036
4035
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4036
+ type: "user";
4037
4037
  };
4038
4038
  }>;
4039
4039
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4167,9 +4167,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4167
4167
  waitFor?: boolean | undefined;
4168
4168
  createdAtLocation?: string | null | undefined;
4169
4169
  type?: "ARCHIVE" | undefined;
4170
- content: {
4170
+ content?: {
4171
4171
  reason: string;
4172
- };
4172
+ } | undefined;
4173
4173
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4174
4174
  eventId: string;
4175
4175
  transactionId: string;
@@ -4328,16 +4328,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4328
4328
  user: {
4329
4329
  id: string & import("zod").$brand<"UUID">;
4330
4330
  type: "system";
4331
- signature?: undefined;
4332
4331
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4333
4332
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4333
+ signature?: undefined;
4334
4334
  } | {
4335
4335
  id: string & import("zod").$brand<"UUID">;
4336
- type: "user";
4337
4336
  role: string;
4338
4337
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4339
4338
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4340
4339
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4340
+ type: "user";
4341
4341
  };
4342
4342
  }>;
4343
4343
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4466,9 +4466,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4466
4466
  waitFor?: boolean | undefined;
4467
4467
  createdAtLocation?: string | null | undefined;
4468
4468
  type?: "ARCHIVE" | undefined;
4469
- content: {
4469
+ content?: {
4470
4470
  reason: string;
4471
- };
4471
+ } | undefined;
4472
4472
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4473
4473
  eventId: string;
4474
4474
  transactionId: string;
@@ -4736,9 +4736,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4736
4736
  status: "Accepted" | "Rejected" | "Requested";
4737
4737
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4738
4738
  type: "ARCHIVE";
4739
- content: {
4739
+ content?: {
4740
4740
  reason: string;
4741
- };
4741
+ } | undefined;
4742
4742
  } | {
4743
4743
  id: string & import("zod").$brand<"UUID">;
4744
4744
  transactionId: string;
@@ -4962,16 +4962,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4962
4962
  user: {
4963
4963
  id: string & import("zod").$brand<"UUID">;
4964
4964
  type: "system";
4965
- signature?: undefined;
4966
4965
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4967
4966
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4967
+ signature?: undefined;
4968
4968
  } | {
4969
4969
  id: string & import("zod").$brand<"UUID">;
4970
- type: "user";
4971
4970
  role: string;
4972
4971
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4973
4972
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4974
4973
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4974
+ type: "user";
4975
4975
  };
4976
4976
  }>;
4977
4977
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4998,6 +4998,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4998
4998
  type: string;
4999
4999
  createdAt: string;
5000
5000
  updatedAt: string;
5001
+ trackingId: string;
5001
5002
  actions: ({
5002
5003
  id: string & import("zod").$brand<"UUID">;
5003
5004
  transactionId: string;
@@ -5094,9 +5095,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5094
5095
  status: "Accepted" | "Rejected" | "Requested";
5095
5096
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5096
5097
  type: "ARCHIVE";
5097
- content: {
5098
+ content?: {
5098
5099
  reason: string;
5099
- };
5100
+ } | undefined;
5100
5101
  } | {
5101
5102
  id: string & import("zod").$brand<"UUID">;
5102
5103
  transactionId: string;
@@ -5309,8 +5310,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5309
5310
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5310
5311
  status: "Rejected";
5311
5312
  })[];
5312
- trackingId: string;
5313
- };
5313
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5314
5314
  meta: import("trpc-to-openapi").OpenApiMeta;
5315
5315
  }>;
5316
5316
  unassign: import("@trpc/server").TRPCMutationProcedure<{
@@ -5333,6 +5333,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5333
5333
  type: string;
5334
5334
  createdAt: string;
5335
5335
  updatedAt: string;
5336
+ trackingId: string;
5336
5337
  actions: ({
5337
5338
  id: string & import("zod").$brand<"UUID">;
5338
5339
  transactionId: string;
@@ -5429,9 +5430,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5429
5430
  status: "Accepted" | "Rejected" | "Requested";
5430
5431
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5431
5432
  type: "ARCHIVE";
5432
- content: {
5433
+ content?: {
5433
5434
  reason: string;
5434
- };
5435
+ } | undefined;
5435
5436
  } | {
5436
5437
  id: string & import("zod").$brand<"UUID">;
5437
5438
  transactionId: string;
@@ -5644,8 +5645,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5644
5645
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5645
5646
  status: "Rejected";
5646
5647
  })[];
5647
- trackingId: string;
5648
- };
5648
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5649
5649
  meta: import("trpc-to-openapi").OpenApiMeta;
5650
5650
  }>;
5651
5651
  }>>;
@@ -5655,16 +5655,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5655
5655
  user: {
5656
5656
  id: string & import("zod").$brand<"UUID">;
5657
5657
  type: "system";
5658
- signature?: undefined;
5659
5658
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5660
5659
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5660
+ signature?: undefined;
5661
5661
  } | {
5662
5662
  id: string & import("zod").$brand<"UUID">;
5663
- type: "user";
5664
5663
  role: string;
5665
5664
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5666
5665
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5667
5666
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5667
+ type: "user";
5668
5668
  };
5669
5669
  }>;
5670
5670
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5677,16 +5677,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5677
5677
  user: {
5678
5678
  id: string & import("zod").$brand<"UUID">;
5679
5679
  type: "system";
5680
- signature?: undefined;
5681
5680
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5682
5681
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5682
+ signature?: undefined;
5683
5683
  } | {
5684
5684
  id: string & import("zod").$brand<"UUID">;
5685
- type: "user";
5686
5685
  role: string;
5687
5686
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5688
5687
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5689
5688
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5689
+ type: "user";
5690
5690
  };
5691
5691
  }>;
5692
5692
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5820,9 +5820,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5820
5820
  waitFor?: boolean | undefined;
5821
5821
  createdAtLocation?: string | null | undefined;
5822
5822
  type?: "ARCHIVE" | undefined;
5823
- content: {
5823
+ content?: {
5824
5824
  reason: string;
5825
- };
5825
+ } | undefined;
5826
5826
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5827
5827
  eventId: string;
5828
5828
  transactionId: string;
@@ -5981,16 +5981,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5981
5981
  user: {
5982
5982
  id: string & import("zod").$brand<"UUID">;
5983
5983
  type: "system";
5984
- signature?: undefined;
5985
5984
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5986
5985
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5986
+ signature?: undefined;
5987
5987
  } | {
5988
5988
  id: string & import("zod").$brand<"UUID">;
5989
- type: "user";
5990
5989
  role: string;
5991
5990
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5992
5991
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5993
5992
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5993
+ type: "user";
5994
5994
  };
5995
5995
  }>;
5996
5996
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6124,9 +6124,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6124
6124
  waitFor?: boolean | undefined;
6125
6125
  createdAtLocation?: string | null | undefined;
6126
6126
  type?: "ARCHIVE" | undefined;
6127
- content: {
6127
+ content?: {
6128
6128
  reason: string;
6129
- };
6129
+ } | undefined;
6130
6130
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6131
6131
  eventId: string;
6132
6132
  transactionId: string;
@@ -6285,16 +6285,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6285
6285
  user: {
6286
6286
  id: string & import("zod").$brand<"UUID">;
6287
6287
  type: "system";
6288
- signature?: undefined;
6289
6288
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6290
6289
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6290
+ signature?: undefined;
6291
6291
  } | {
6292
6292
  id: string & import("zod").$brand<"UUID">;
6293
- type: "user";
6294
6293
  role: string;
6295
6294
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6296
6295
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6297
6296
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6297
+ type: "user";
6298
6298
  };
6299
6299
  }>;
6300
6300
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6428,9 +6428,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6428
6428
  waitFor?: boolean | undefined;
6429
6429
  createdAtLocation?: string | null | undefined;
6430
6430
  type?: "ARCHIVE" | undefined;
6431
- content: {
6431
+ content?: {
6432
6432
  reason: string;
6433
- };
6433
+ } | undefined;
6434
6434
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6435
6435
  eventId: string;
6436
6436
  transactionId: string;
@@ -6590,16 +6590,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6590
6590
  user: {
6591
6591
  id: string & import("zod").$brand<"UUID">;
6592
6592
  type: "system";
6593
- signature?: undefined;
6594
6593
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6595
6594
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6595
+ signature?: undefined;
6596
6596
  } | {
6597
6597
  id: string & import("zod").$brand<"UUID">;
6598
- type: "user";
6599
6598
  role: string;
6600
6599
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6601
6600
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6602
6601
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6602
+ type: "user";
6603
6603
  };
6604
6604
  }>;
6605
6605
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6724,9 +6724,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6724
6724
  status: "Accepted" | "Rejected" | "Requested";
6725
6725
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6726
6726
  type: "ARCHIVE";
6727
- content: {
6727
+ content?: {
6728
6728
  reason: string;
6729
- };
6729
+ } | undefined;
6730
6730
  } | {
6731
6731
  id: string & import("zod").$brand<"UUID">;
6732
6732
  transactionId: string;
@@ -7058,9 +7058,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7058
7058
  status: "Accepted" | "Rejected" | "Requested";
7059
7059
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7060
7060
  type: "ARCHIVE";
7061
- content: {
7061
+ content?: {
7062
7062
  reason: string;
7063
- };
7063
+ } | undefined;
7064
7064
  } | {
7065
7065
  id: string & import("zod").$brand<"UUID">;
7066
7066
  transactionId: string;
@@ -7443,9 +7443,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7443
7443
  status: "Accepted" | "Rejected" | "Requested";
7444
7444
  originalActionId?: string | null | undefined;
7445
7445
  type: "ARCHIVE";
7446
- content: {
7446
+ content?: {
7447
7447
  reason: string;
7448
- };
7448
+ } | undefined;
7449
7449
  } | {
7450
7450
  id: string;
7451
7451
  transactionId: string;
@@ -7670,16 +7670,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7670
7670
  user: {
7671
7671
  id: string & import("zod").$brand<"UUID">;
7672
7672
  type: "system";
7673
- signature?: undefined;
7674
7673
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7675
7674
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7675
+ signature?: undefined;
7676
7676
  } | {
7677
7677
  id: string & import("zod").$brand<"UUID">;
7678
- type: "user";
7679
7678
  role: string;
7680
7679
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7681
7680
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7682
7681
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7682
+ type: "user";
7683
7683
  };
7684
7684
  }>;
7685
7685
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7722,17 +7722,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7722
7722
  }>;
7723
7723
  create: import("@trpc/server").TRPCMutationProcedure<{
7724
7724
  input: {
7725
- data?: Record<string, unknown> | undefined;
7726
7725
  name: {
7727
7726
  firstname: string;
7728
7727
  surname: string;
7729
7728
  };
7730
- email?: string | undefined;
7731
7729
  role: string;
7732
- fullHonorificName?: string | undefined;
7733
- device?: string | undefined;
7734
7730
  primaryOfficeId: string;
7731
+ device?: string | undefined;
7732
+ fullHonorificName?: string | undefined;
7735
7733
  mobile?: string | undefined;
7734
+ email?: string | undefined;
7735
+ data?: Record<string, unknown> | undefined;
7736
7736
  username?: undefined;
7737
7737
  password?: undefined;
7738
7738
  signature?: {
@@ -7764,17 +7764,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7764
7764
  }>;
7765
7765
  update: import("@trpc/server").TRPCMutationProcedure<{
7766
7766
  input: {
7767
- data?: Record<string, unknown> | undefined;
7768
7767
  name?: {
7769
7768
  firstname: string;
7770
7769
  surname: string;
7771
7770
  } | undefined;
7772
- email?: string | undefined;
7773
7771
  role?: string | undefined;
7774
- fullHonorificName?: string | undefined;
7775
- device?: string | undefined;
7776
7772
  primaryOfficeId?: string | undefined;
7773
+ device?: string | undefined;
7774
+ fullHonorificName?: string | undefined;
7777
7775
  mobile?: string | undefined;
7776
+ email?: string | undefined;
7777
+ data?: Record<string, unknown> | undefined;
7778
7778
  signature?: {
7779
7779
  path: string;
7780
7780
  originalFilename: string;
@@ -7808,20 +7808,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7808
7808
  input: string[];
7809
7809
  output: ({
7810
7810
  id: string & import("zod").$brand<"UUID">;
7811
- type: "user";
7812
7811
  name: {
7813
7812
  firstname: string;
7814
7813
  surname: string;
7815
7814
  };
7816
7815
  role: string;
7817
- fullHonorificName?: string | undefined;
7818
7816
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7819
7817
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7820
7818
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7819
+ fullHonorificName?: string | undefined;
7820
+ type: "user";
7821
7821
  } | {
7822
7822
  id: string & import("zod").$brand<"UUID">;
7823
- type: "system";
7824
7823
  name: string;
7824
+ type: "system";
7825
7825
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7826
7826
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7827
7827
  })[];
@@ -7834,28 +7834,28 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7834
7834
  email?: string | undefined;
7835
7835
  status?: string | undefined;
7836
7836
  primaryOfficeId?: string | undefined;
7837
- count: number;
7838
- skip: number;
7837
+ count?: number | undefined;
7838
+ skip?: number | undefined;
7839
7839
  sortBy?: "createdAt" | "email" | "firstname" | "role" | "status" | "surname" | "username" | undefined;
7840
7840
  sortOrder: "asc" | "desc";
7841
7841
  };
7842
7842
  output: ({
7843
7843
  id: string & import("zod").$brand<"UUID">;
7844
- type: "user";
7845
7844
  name: {
7846
7845
  firstname: string;
7847
7846
  surname: string;
7848
7847
  };
7849
7848
  role: string;
7850
- fullHonorificName?: string | undefined;
7851
7849
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7852
7850
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7853
7851
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7852
+ fullHonorificName?: string | undefined;
7853
+ type: "user";
7854
7854
  status: "active" | "deactivated" | "pending";
7855
7855
  } | {
7856
7856
  id: string & import("zod").$brand<"UUID">;
7857
- type: "system";
7858
7857
  name: string;
7858
+ type: "system";
7859
7859
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7860
7860
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7861
7861
  status?: "active" | "deactivated" | "pending" | undefined;
@@ -7906,16 +7906,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7906
7906
  user: {
7907
7907
  id: string & import("zod").$brand<"UUID">;
7908
7908
  type: "system";
7909
- signature?: undefined;
7910
7909
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7911
7910
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7911
+ signature?: undefined;
7912
7912
  } | {
7913
7913
  id: string & import("zod").$brand<"UUID">;
7914
- type: "user";
7915
7914
  role: string;
7916
7915
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7917
7916
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7918
7917
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7918
+ type: "user";
7919
7919
  };
7920
7920
  }>;
7921
7921
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8030,16 +8030,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8030
8030
  user: {
8031
8031
  id: string & import("zod").$brand<"UUID">;
8032
8032
  type: "system";
8033
- signature?: undefined;
8034
8033
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8035
8034
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8035
+ signature?: undefined;
8036
8036
  } | {
8037
8037
  id: string & import("zod").$brand<"UUID">;
8038
- type: "user";
8039
8038
  role: string;
8040
8039
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8041
8040
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8042
8041
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8042
+ type: "user";
8043
8043
  };
8044
8044
  }>;
8045
8045
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8247,31 +8247,160 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8247
8247
  clientId: string;
8248
8248
  clientType: "system" | "user";
8249
8249
  createdAt: string;
8250
- operation: "attachments.upload";
8250
+ operation: "locations.create";
8251
8251
  requestData: {
8252
- transactionId: string;
8253
- path: string | null;
8254
- };
8255
- responseSummary: {
8256
- fileUrl: string;
8252
+ id: string;
8253
+ versionId: string;
8254
+ name: string;
8255
+ externalId?: string | null | undefined;
8256
+ effectiveFrom: string;
8257
+ status: string;
8258
+ administrativeAreaId?: string | null | undefined;
8259
+ locationType?: string | null | undefined;
8257
8260
  };
8258
8261
  } | {
8259
8262
  id: string;
8260
8263
  clientId: string;
8261
8264
  clientType: "system" | "user";
8262
8265
  createdAt: string;
8263
- operation: "user.create_user";
8266
+ operation: "locations.update";
8264
8267
  requestData: {
8265
- subjectId: string;
8266
- role: string;
8267
- primaryOfficeId: string;
8268
+ id: string;
8269
+ versionId: string;
8270
+ name: string;
8271
+ externalId?: string | null | undefined;
8272
+ status: string;
8273
+ effectiveFrom: string;
8274
+ lastVersionId: string;
8275
+ };
8276
+ responseSummary: {
8277
+ previousVersionId: string;
8278
+ versionId: string;
8279
+ changed: {
8280
+ name?: {
8281
+ from: string;
8282
+ to: string;
8283
+ } | undefined;
8284
+ externalId?: {
8285
+ from: string | null;
8286
+ to: string | null;
8287
+ } | undefined;
8288
+ status?: {
8289
+ from: string;
8290
+ to: string;
8291
+ } | undefined;
8292
+ };
8268
8293
  };
8269
8294
  } | {
8270
8295
  id: string;
8271
8296
  clientId: string;
8272
8297
  clientType: "system" | "user";
8273
8298
  createdAt: string;
8274
- operation: "user.deactivate" | "user.reactivate";
8299
+ operation: "administrativeAreas.update";
8300
+ requestData: {
8301
+ id: string;
8302
+ versionId: string;
8303
+ name: string;
8304
+ externalId?: string | null | undefined;
8305
+ status: string;
8306
+ effectiveFrom: string;
8307
+ lastVersionId: string;
8308
+ };
8309
+ responseSummary: {
8310
+ previousVersionId: string;
8311
+ versionId: string;
8312
+ changed: {
8313
+ name?: {
8314
+ from: string;
8315
+ to: string;
8316
+ } | undefined;
8317
+ externalId?: {
8318
+ from: string | null;
8319
+ to: string | null;
8320
+ } | undefined;
8321
+ status?: {
8322
+ from: string;
8323
+ to: string;
8324
+ } | undefined;
8325
+ };
8326
+ };
8327
+ } | {
8328
+ id: string;
8329
+ clientId: string;
8330
+ clientType: "system" | "user";
8331
+ createdAt: string;
8332
+ operation: "locations.withdrawVersion";
8333
+ requestData: {
8334
+ id: string;
8335
+ versionId: string;
8336
+ };
8337
+ responseSummary: {
8338
+ effectiveFrom: string;
8339
+ name: string;
8340
+ externalId?: string | null | undefined;
8341
+ status: string;
8342
+ };
8343
+ } | {
8344
+ id: string;
8345
+ clientId: string;
8346
+ clientType: "system" | "user";
8347
+ createdAt: string;
8348
+ operation: "administrativeAreas.withdrawVersion";
8349
+ requestData: {
8350
+ id: string;
8351
+ versionId: string;
8352
+ };
8353
+ responseSummary: {
8354
+ effectiveFrom: string;
8355
+ name: string;
8356
+ externalId?: string | null | undefined;
8357
+ status: string;
8358
+ };
8359
+ } | {
8360
+ id: string;
8361
+ clientId: string;
8362
+ clientType: "system" | "user";
8363
+ createdAt: string;
8364
+ operation: "administrativeAreas.create";
8365
+ requestData: {
8366
+ id: string;
8367
+ versionId: string;
8368
+ name: string;
8369
+ externalId?: string | null | undefined;
8370
+ effectiveFrom: string;
8371
+ status: string;
8372
+ parentId?: string | null | undefined;
8373
+ };
8374
+ } | {
8375
+ id: string;
8376
+ clientId: string;
8377
+ clientType: "system" | "user";
8378
+ createdAt: string;
8379
+ operation: "attachments.upload";
8380
+ requestData: {
8381
+ transactionId: string;
8382
+ path: string | null;
8383
+ };
8384
+ responseSummary: {
8385
+ fileUrl: string;
8386
+ };
8387
+ } | {
8388
+ id: string;
8389
+ clientId: string;
8390
+ clientType: "system" | "user";
8391
+ createdAt: string;
8392
+ operation: "user.create_user";
8393
+ requestData: {
8394
+ subjectId: string;
8395
+ role: string;
8396
+ primaryOfficeId: string;
8397
+ };
8398
+ } | {
8399
+ id: string;
8400
+ clientId: string;
8401
+ clientType: "system" | "user";
8402
+ createdAt: string;
8403
+ operation: "user.deactivate" | "user.reactivate";
8275
8404
  requestData: {
8276
8405
  subjectId: string;
8277
8406
  reason: string;
@@ -8323,16 +8452,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8323
8452
  user: {
8324
8453
  id: string & import("zod").$brand<"UUID">;
8325
8454
  type: "system";
8326
- signature?: undefined;
8327
8455
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8328
8456
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8457
+ signature?: undefined;
8329
8458
  } | {
8330
8459
  id: string & import("zod").$brand<"UUID">;
8331
- type: "user";
8332
8460
  role: string;
8333
8461
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8334
8462
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8335
8463
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8464
+ type: "user";
8336
8465
  };
8337
8466
  }>;
8338
8467
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8351,22 +8480,94 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8351
8480
  name: string;
8352
8481
  externalId?: string | null | undefined;
8353
8482
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8354
- validUntil: string | null;
8355
8483
  locationType: string | null;
8484
+ status: "active" | "inactive";
8485
+ versions: {
8486
+ versionId: string & import("zod").$brand<"UUID">;
8487
+ effectiveFrom: string;
8488
+ name: string;
8489
+ externalId?: string | null | undefined;
8490
+ status: "active" | "inactive";
8491
+ }[];
8356
8492
  }[];
8357
8493
  meta: object;
8358
8494
  }>;
8359
- set: import("@trpc/server").TRPCMutationProcedure<{
8495
+ create: import("@trpc/server").TRPCMutationProcedure<{
8360
8496
  input: {
8361
- id: string;
8497
+ id?: string | undefined;
8498
+ versionId?: string | undefined;
8362
8499
  name: string;
8363
8500
  externalId?: string | null | undefined;
8364
8501
  administrativeAreaId: string | null;
8365
- validUntil: string | null;
8366
8502
  locationType: string | null;
8367
- }[];
8368
- output: void;
8369
- meta: object;
8503
+ effectiveFrom?: string | undefined;
8504
+ status?: "active" | "inactive" | undefined;
8505
+ };
8506
+ output: {
8507
+ id: string & import("zod").$brand<"UUID">;
8508
+ name: string;
8509
+ externalId?: string | null | undefined;
8510
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8511
+ locationType: string | null;
8512
+ status: "active" | "inactive";
8513
+ versions: {
8514
+ versionId: string & import("zod").$brand<"UUID">;
8515
+ effectiveFrom: string;
8516
+ name: string;
8517
+ externalId?: string | null | undefined;
8518
+ status: "active" | "inactive";
8519
+ }[];
8520
+ };
8521
+ meta: import("trpc-to-openapi").OpenApiMeta;
8522
+ }>;
8523
+ update: import("@trpc/server").TRPCMutationProcedure<{
8524
+ input: {
8525
+ id: string;
8526
+ versionId?: string | undefined;
8527
+ name: string;
8528
+ externalId?: string | null | undefined;
8529
+ status: "active" | "inactive";
8530
+ effectiveFrom?: string | undefined;
8531
+ lastVersionId: string;
8532
+ };
8533
+ output: {
8534
+ id: string & import("zod").$brand<"UUID">;
8535
+ name: string;
8536
+ externalId?: string | null | undefined;
8537
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8538
+ locationType: string | null;
8539
+ status: "active" | "inactive";
8540
+ versions: {
8541
+ versionId: string & import("zod").$brand<"UUID">;
8542
+ effectiveFrom: string;
8543
+ name: string;
8544
+ externalId?: string | null | undefined;
8545
+ status: "active" | "inactive";
8546
+ }[];
8547
+ };
8548
+ meta: import("trpc-to-openapi").OpenApiMeta;
8549
+ }>;
8550
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
8551
+ input: {
8552
+ id: string;
8553
+ versionId: string;
8554
+ };
8555
+ output: {
8556
+ id: string & import("zod").$brand<"UUID">;
8557
+ name: string;
8558
+ externalId?: string | null | undefined;
8559
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8560
+ locationType: string | null;
8561
+ status: "active" | "inactive";
8562
+ versions: {
8563
+ versionId: string & import("zod").$brand<"UUID">;
8564
+ effectiveFrom: string;
8565
+ name: string;
8566
+ externalId?: string | null | undefined;
8567
+ status: "active" | "inactive";
8568
+ }[];
8569
+ };
8570
+ meta: import("trpc-to-openapi").OpenApiMeta;
8370
8571
  }>;
8371
8572
  get: import("@trpc/server").TRPCQueryProcedure<{
8372
8573
  input: {
@@ -8377,8 +8578,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8377
8578
  name: string;
8378
8579
  externalId?: string | null | undefined;
8379
8580
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8380
- validUntil: string | null;
8381
8581
  locationType: string | null;
8582
+ status: "active" | "inactive";
8583
+ versions: {
8584
+ versionId: string & import("zod").$brand<"UUID">;
8585
+ effectiveFrom: string;
8586
+ name: string;
8587
+ externalId?: string | null | undefined;
8588
+ status: "active" | "inactive";
8589
+ }[];
8382
8590
  };
8383
8591
  meta: import("trpc-to-openapi").OpenApiMeta;
8384
8592
  }>;
@@ -8396,16 +8604,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8396
8604
  user: {
8397
8605
  id: string & import("zod").$brand<"UUID">;
8398
8606
  type: "system";
8399
- signature?: undefined;
8400
8607
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8401
8608
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8609
+ signature?: undefined;
8402
8610
  } | {
8403
8611
  id: string & import("zod").$brand<"UUID">;
8404
- type: "user";
8405
8612
  role: string;
8406
8613
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8407
8614
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8408
8615
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8616
+ type: "user";
8409
8617
  };
8410
8618
  }>;
8411
8619
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8418,16 +8626,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8418
8626
  user: {
8419
8627
  id: string & import("zod").$brand<"UUID">;
8420
8628
  type: "system";
8421
- signature?: undefined;
8422
8629
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8423
8630
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8631
+ signature?: undefined;
8424
8632
  } | {
8425
8633
  id: string & import("zod").$brand<"UUID">;
8426
- type: "user";
8427
8634
  role: string;
8428
8635
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8429
8636
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8430
8637
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8638
+ type: "user";
8431
8639
  };
8432
8640
  }>;
8433
8641
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8735,7 +8943,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8735
8943
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
8736
8944
  };
8737
8945
  }[];
8738
- icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
8946
+ icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileLock" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
8739
8947
  emptyMessage?: {
8740
8948
  id: string;
8741
8949
  defaultMessage: string;
@@ -8760,16 +8968,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8760
8968
  user: {
8761
8969
  id: string & import("zod").$brand<"UUID">;
8762
8970
  type: "system";
8763
- signature?: undefined;
8764
8971
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8765
8972
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8973
+ signature?: undefined;
8766
8974
  } | {
8767
8975
  id: string & import("zod").$brand<"UUID">;
8768
- type: "user";
8769
8976
  role: string;
8770
8977
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8771
8978
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8772
8979
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8980
+ type: "user";
8773
8981
  };
8774
8982
  }>;
8775
8983
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8786,20 +8994,89 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8786
8994
  name: string;
8787
8995
  externalId?: string | null | undefined;
8788
8996
  parentId: (string & import("zod").$brand<"UUID">) | null;
8789
- validUntil: string | null;
8997
+ status: "active" | "inactive";
8998
+ versions: {
8999
+ versionId: string & import("zod").$brand<"UUID">;
9000
+ effectiveFrom: string;
9001
+ name: string;
9002
+ externalId?: string | null | undefined;
9003
+ status: "active" | "inactive";
9004
+ }[];
8790
9005
  }[];
8791
9006
  meta: import("trpc-to-openapi").OpenApiMeta;
8792
9007
  }>;
8793
- set: import("@trpc/server").TRPCMutationProcedure<{
9008
+ create: import("@trpc/server").TRPCMutationProcedure<{
8794
9009
  input: {
8795
- id: string;
9010
+ id?: string | undefined;
9011
+ versionId?: string | undefined;
8796
9012
  name: string;
8797
9013
  externalId?: string | null | undefined;
8798
9014
  parentId: string | null;
8799
- validUntil: string | null;
8800
- }[];
8801
- output: void;
8802
- meta: object;
9015
+ effectiveFrom?: string | undefined;
9016
+ status?: "active" | "inactive" | undefined;
9017
+ };
9018
+ output: {
9019
+ id: string & import("zod").$brand<"UUID">;
9020
+ name: string;
9021
+ externalId?: string | null | undefined;
9022
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9023
+ status: "active" | "inactive";
9024
+ versions: {
9025
+ versionId: string & import("zod").$brand<"UUID">;
9026
+ effectiveFrom: string;
9027
+ name: string;
9028
+ externalId?: string | null | undefined;
9029
+ status: "active" | "inactive";
9030
+ }[];
9031
+ };
9032
+ meta: import("trpc-to-openapi").OpenApiMeta;
9033
+ }>;
9034
+ update: import("@trpc/server").TRPCMutationProcedure<{
9035
+ input: {
9036
+ id: string;
9037
+ versionId?: string | undefined;
9038
+ name: string;
9039
+ externalId?: string | null | undefined;
9040
+ status: "active" | "inactive";
9041
+ effectiveFrom?: string | undefined;
9042
+ lastVersionId: string;
9043
+ };
9044
+ output: {
9045
+ id: string & import("zod").$brand<"UUID">;
9046
+ name: string;
9047
+ externalId?: string | null | undefined;
9048
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9049
+ status: "active" | "inactive";
9050
+ versions: {
9051
+ versionId: string & import("zod").$brand<"UUID">;
9052
+ effectiveFrom: string;
9053
+ name: string;
9054
+ externalId?: string | null | undefined;
9055
+ status: "active" | "inactive";
9056
+ }[];
9057
+ };
9058
+ meta: import("trpc-to-openapi").OpenApiMeta;
9059
+ }>;
9060
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
9061
+ input: {
9062
+ id: string;
9063
+ versionId: string;
9064
+ };
9065
+ output: {
9066
+ id: string & import("zod").$brand<"UUID">;
9067
+ name: string;
9068
+ externalId?: string | null | undefined;
9069
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9070
+ status: "active" | "inactive";
9071
+ versions: {
9072
+ versionId: string & import("zod").$brand<"UUID">;
9073
+ effectiveFrom: string;
9074
+ name: string;
9075
+ externalId?: string | null | undefined;
9076
+ status: "active" | "inactive";
9077
+ }[];
9078
+ };
9079
+ meta: import("trpc-to-openapi").OpenApiMeta;
8803
9080
  }>;
8804
9081
  }>>;
8805
9082
  integrations: import("@trpc/server").TRPCBuiltRouter<{
@@ -8808,16 +9085,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8808
9085
  user: {
8809
9086
  id: string & import("zod").$brand<"UUID">;
8810
9087
  type: "system";
8811
- signature?: undefined;
8812
9088
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8813
9089
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9090
+ signature?: undefined;
8814
9091
  } | {
8815
9092
  id: string & import("zod").$brand<"UUID">;
8816
- type: "user";
8817
9093
  role: string;
8818
9094
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8819
9095
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8820
9096
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9097
+ type: "user";
8821
9098
  };
8822
9099
  }>;
8823
9100
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8919,6 +9196,363 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8919
9196
  };
8920
9197
  meta: import("trpc-to-openapi").OpenApiMeta;
8921
9198
  }>;
9199
+ audit: import("@trpc/server").TRPCQueryProcedure<{
9200
+ input: {
9201
+ id: string;
9202
+ skip?: number | undefined;
9203
+ count?: number | undefined;
9204
+ timeStart?: string | undefined;
9205
+ timeEnd?: string | undefined;
9206
+ };
9207
+ output: {
9208
+ results: ({
9209
+ id: string;
9210
+ clientId: string;
9211
+ clientType: "system" | "user";
9212
+ createdAt: string;
9213
+ operation: "event.create";
9214
+ requestData: {
9215
+ transactionId: string;
9216
+ type: string;
9217
+ createdAtLocation: string | null;
9218
+ };
9219
+ responseSummary: {
9220
+ eventId: string;
9221
+ trackingId: string;
9222
+ };
9223
+ } | {
9224
+ id: string;
9225
+ clientId: string;
9226
+ clientType: "system" | "user";
9227
+ createdAt: string;
9228
+ operation: "event.get";
9229
+ requestData: {
9230
+ eventId: string;
9231
+ };
9232
+ responseSummary: {
9233
+ eventType: string;
9234
+ trackingId: string;
9235
+ };
9236
+ } | {
9237
+ id: string;
9238
+ clientId: string;
9239
+ createdAt: string;
9240
+ operation: "event.search";
9241
+ clientType: "system";
9242
+ requestData: {
9243
+ query: Record<string, unknown> | null;
9244
+ limit: number | null;
9245
+ offset: number | null;
9246
+ };
9247
+ responseSummary: {
9248
+ total: number;
9249
+ eventIds: string[];
9250
+ };
9251
+ } | {
9252
+ id: string;
9253
+ clientId: string;
9254
+ clientType: "system" | "user";
9255
+ createdAt: string;
9256
+ operation: "event.actions.archive.request" | "event.actions.assign.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.correction.request.request" | "event.actions.declare.request" | "event.actions.edit.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request" | "event.actions.notify.request" | "event.actions.print_certificate.request" | "event.actions.read.request" | "event.actions.register.request" | "event.actions.reinstate.request" | "event.actions.reject.request" | "event.actions.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
9257
+ requestData: {
9258
+ eventId: string;
9259
+ actionType: string;
9260
+ eventType: string;
9261
+ trackingId: string;
9262
+ transactionId: string;
9263
+ };
9264
+ } | {
9265
+ id: string;
9266
+ clientId: string;
9267
+ clientType: "system" | "user";
9268
+ createdAt: string;
9269
+ operation: "event.actions.custom.request";
9270
+ requestData: {
9271
+ eventId: string;
9272
+ actionType: "CUSTOM";
9273
+ customAction: string;
9274
+ eventType: string;
9275
+ trackingId: string;
9276
+ transactionId: string;
9277
+ };
9278
+ } | {
9279
+ id: string;
9280
+ clientId: string;
9281
+ clientType: "system" | "user";
9282
+ createdAt: string;
9283
+ operation: "integrations.create";
9284
+ requestData: {
9285
+ name: string;
9286
+ scopes: string[];
9287
+ };
9288
+ responseSummary: {
9289
+ clientId: string;
9290
+ };
9291
+ } | {
9292
+ id: string;
9293
+ clientId: string;
9294
+ clientType: "system" | "user";
9295
+ createdAt: string;
9296
+ operation: "integrations.refreshToken";
9297
+ requestData: {
9298
+ clientId: string;
9299
+ };
9300
+ responseSummary: {
9301
+ clientId: string;
9302
+ };
9303
+ } | {
9304
+ id: string;
9305
+ clientId: string;
9306
+ clientType: "system" | "user";
9307
+ createdAt: string;
9308
+ operation: "integrations.deactivate";
9309
+ requestData: {
9310
+ id: string;
9311
+ };
9312
+ responseSummary: {
9313
+ id: string;
9314
+ status: string;
9315
+ };
9316
+ } | {
9317
+ id: string;
9318
+ clientId: string;
9319
+ clientType: "system" | "user";
9320
+ createdAt: string;
9321
+ operation: "integrations.activate";
9322
+ requestData: {
9323
+ id: string;
9324
+ };
9325
+ responseSummary: {
9326
+ id: string;
9327
+ status: string;
9328
+ };
9329
+ } | {
9330
+ id: string;
9331
+ clientId: string;
9332
+ clientType: "system" | "user";
9333
+ createdAt: string;
9334
+ operation: "integrations.delete";
9335
+ requestData: {
9336
+ id: string;
9337
+ };
9338
+ responseSummary: {
9339
+ id: string;
9340
+ name: string;
9341
+ };
9342
+ } | {
9343
+ id: string;
9344
+ clientId: string;
9345
+ clientType: "system" | "user";
9346
+ createdAt: string;
9347
+ operation: "integrations.refreshSecret";
9348
+ requestData: {
9349
+ id: string;
9350
+ };
9351
+ responseSummary: {
9352
+ clientId: string;
9353
+ };
9354
+ } | {
9355
+ id: string;
9356
+ clientId: string;
9357
+ clientType: "system" | "user";
9358
+ createdAt: string;
9359
+ operation: "locations.create";
9360
+ requestData: {
9361
+ id: string;
9362
+ versionId: string;
9363
+ name: string;
9364
+ externalId?: string | null | undefined;
9365
+ effectiveFrom: string;
9366
+ status: string;
9367
+ administrativeAreaId?: string | null | undefined;
9368
+ locationType?: string | null | undefined;
9369
+ };
9370
+ } | {
9371
+ id: string;
9372
+ clientId: string;
9373
+ clientType: "system" | "user";
9374
+ createdAt: string;
9375
+ operation: "locations.update";
9376
+ requestData: {
9377
+ id: string;
9378
+ versionId: string;
9379
+ name: string;
9380
+ externalId?: string | null | undefined;
9381
+ status: string;
9382
+ effectiveFrom: string;
9383
+ lastVersionId: string;
9384
+ };
9385
+ responseSummary: {
9386
+ previousVersionId: string;
9387
+ versionId: string;
9388
+ changed: {
9389
+ name?: {
9390
+ from: string;
9391
+ to: string;
9392
+ } | undefined;
9393
+ externalId?: {
9394
+ from: string | null;
9395
+ to: string | null;
9396
+ } | undefined;
9397
+ status?: {
9398
+ from: string;
9399
+ to: string;
9400
+ } | undefined;
9401
+ };
9402
+ };
9403
+ } | {
9404
+ id: string;
9405
+ clientId: string;
9406
+ clientType: "system" | "user";
9407
+ createdAt: string;
9408
+ operation: "administrativeAreas.update";
9409
+ requestData: {
9410
+ id: string;
9411
+ versionId: string;
9412
+ name: string;
9413
+ externalId?: string | null | undefined;
9414
+ status: string;
9415
+ effectiveFrom: string;
9416
+ lastVersionId: string;
9417
+ };
9418
+ responseSummary: {
9419
+ previousVersionId: string;
9420
+ versionId: string;
9421
+ changed: {
9422
+ name?: {
9423
+ from: string;
9424
+ to: string;
9425
+ } | undefined;
9426
+ externalId?: {
9427
+ from: string | null;
9428
+ to: string | null;
9429
+ } | undefined;
9430
+ status?: {
9431
+ from: string;
9432
+ to: string;
9433
+ } | undefined;
9434
+ };
9435
+ };
9436
+ } | {
9437
+ id: string;
9438
+ clientId: string;
9439
+ clientType: "system" | "user";
9440
+ createdAt: string;
9441
+ operation: "locations.withdrawVersion";
9442
+ requestData: {
9443
+ id: string;
9444
+ versionId: string;
9445
+ };
9446
+ responseSummary: {
9447
+ effectiveFrom: string;
9448
+ name: string;
9449
+ externalId?: string | null | undefined;
9450
+ status: string;
9451
+ };
9452
+ } | {
9453
+ id: string;
9454
+ clientId: string;
9455
+ clientType: "system" | "user";
9456
+ createdAt: string;
9457
+ operation: "administrativeAreas.withdrawVersion";
9458
+ requestData: {
9459
+ id: string;
9460
+ versionId: string;
9461
+ };
9462
+ responseSummary: {
9463
+ effectiveFrom: string;
9464
+ name: string;
9465
+ externalId?: string | null | undefined;
9466
+ status: string;
9467
+ };
9468
+ } | {
9469
+ id: string;
9470
+ clientId: string;
9471
+ clientType: "system" | "user";
9472
+ createdAt: string;
9473
+ operation: "administrativeAreas.create";
9474
+ requestData: {
9475
+ id: string;
9476
+ versionId: string;
9477
+ name: string;
9478
+ externalId?: string | null | undefined;
9479
+ effectiveFrom: string;
9480
+ status: string;
9481
+ parentId?: string | null | undefined;
9482
+ };
9483
+ } | {
9484
+ id: string;
9485
+ clientId: string;
9486
+ clientType: "system" | "user";
9487
+ createdAt: string;
9488
+ operation: "attachments.upload";
9489
+ requestData: {
9490
+ transactionId: string;
9491
+ path: string | null;
9492
+ };
9493
+ responseSummary: {
9494
+ fileUrl: string;
9495
+ };
9496
+ } | {
9497
+ id: string;
9498
+ clientId: string;
9499
+ clientType: "system" | "user";
9500
+ createdAt: string;
9501
+ operation: "user.create_user";
9502
+ requestData: {
9503
+ subjectId: string;
9504
+ role: string;
9505
+ primaryOfficeId: string;
9506
+ };
9507
+ } | {
9508
+ id: string;
9509
+ clientId: string;
9510
+ clientType: "system" | "user";
9511
+ createdAt: string;
9512
+ operation: "user.deactivate" | "user.reactivate";
9513
+ requestData: {
9514
+ subjectId: string;
9515
+ reason: string;
9516
+ comment?: string | undefined;
9517
+ };
9518
+ } | {
9519
+ id: string;
9520
+ clientId: string;
9521
+ clientType: "system" | "user";
9522
+ createdAt: string;
9523
+ operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin";
9524
+ requestData: {
9525
+ subjectId: string;
9526
+ };
9527
+ } | {
9528
+ id: string;
9529
+ clientId: string;
9530
+ clientType: "system" | "user";
9531
+ createdAt: string;
9532
+ operation: "user.email_address_changed";
9533
+ requestData: {
9534
+ subjectId: string;
9535
+ };
9536
+ responseSummary: {
9537
+ email: string;
9538
+ };
9539
+ } | {
9540
+ id: string;
9541
+ clientId: string;
9542
+ clientType: "system" | "user";
9543
+ createdAt: string;
9544
+ operation: "user.phone_number_changed";
9545
+ requestData: {
9546
+ subjectId: string;
9547
+ };
9548
+ responseSummary: {
9549
+ phoneNumber: string;
9550
+ };
9551
+ })[];
9552
+ total: number;
9553
+ };
9554
+ meta: import("trpc-to-openapi").OpenApiMeta;
9555
+ }>;
8922
9556
  }>>;
8923
9557
  attachments: import("@trpc/server").TRPCBuiltRouter<{
8924
9558
  ctx: Partial<{
@@ -8926,16 +9560,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8926
9560
  user: {
8927
9561
  id: string & import("zod").$brand<"UUID">;
8928
9562
  type: "system";
8929
- signature?: undefined;
8930
9563
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8931
9564
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9565
+ signature?: undefined;
8932
9566
  } | {
8933
9567
  id: string & import("zod").$brand<"UUID">;
8934
- type: "user";
8935
9568
  role: string;
8936
9569
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8937
9570
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8938
9571
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9572
+ type: "user";
8939
9573
  };
8940
9574
  }>;
8941
9575
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8961,16 +9595,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8961
9595
  user: {
8962
9596
  id: string & import("zod").$brand<"UUID">;
8963
9597
  type: "system";
8964
- signature?: undefined;
8965
9598
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8966
9599
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9600
+ signature?: undefined;
8967
9601
  } | {
8968
9602
  id: string & import("zod").$brand<"UUID">;
8969
- type: "user";
8970
9603
  role: string;
8971
9604
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8972
9605
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8973
9606
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9607
+ type: "user";
8974
9608
  };
8975
9609
  }>;
8976
9610
  meta: import("trpc-to-openapi").OpenApiMeta;