@opencrvs/toolkit 2.1.0-rc.0ec4a9a → 2.1.0-rc.14fb6a5

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 (244) hide show
  1. package/README.md +3 -12
  2. package/build.sh +22 -4
  3. package/create-countryconfig/index.js +441 -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 +362 -284
  7. package/dist/authentication/index.d.ts +66 -0
  8. package/dist/authentication/index.d.ts.map +1 -0
  9. package/dist/authentication/index.js +765 -0
  10. package/dist/cli.js +3751 -1232
  11. package/dist/commons/api/router.d.ts +940 -366
  12. package/dist/commons/application-config/index.d.ts +0 -2
  13. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  14. package/dist/commons/conditionals/validate.d.ts +34 -8
  15. package/dist/commons/events/ActionConfig.d.ts +5 -14
  16. package/dist/commons/events/ActionDocument.d.ts +35 -15
  17. package/dist/commons/events/ActionInput.d.ts +4 -4
  18. package/dist/commons/events/ActionStatus.d.ts +14 -0
  19. package/dist/commons/events/AdvancedSearchConfig.d.ts +48 -12
  20. package/dist/commons/events/AuditLog.d.ts +148 -0
  21. package/dist/commons/events/Draft.d.ts +1 -21
  22. package/dist/commons/events/EventConfig.d.ts +3 -0
  23. package/dist/commons/events/EventDocument.d.ts +472 -4
  24. package/dist/commons/events/EventIndex.d.ts +3 -26
  25. package/dist/commons/events/EventMetadata.d.ts +1 -11
  26. package/dist/commons/events/EventStatus.d.ts +19 -0
  27. package/dist/commons/events/FieldConfig.d.ts +109 -63
  28. package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
  29. package/dist/commons/events/FieldValue.d.ts +3 -2
  30. package/dist/commons/events/Flag.d.ts +42 -0
  31. package/dist/commons/events/FormConfig.d.ts +6 -0
  32. package/dist/commons/events/PageConfig.d.ts +4 -0
  33. package/dist/commons/events/PlainDate.d.ts +8 -0
  34. package/dist/commons/events/SummaryConfig.d.ts +249 -0
  35. package/dist/commons/events/WorkqueueConfig.d.ts +17 -14
  36. package/dist/commons/events/event.d.ts +12 -0
  37. package/dist/commons/events/index.d.ts +1 -0
  38. package/dist/commons/events/locationPayloads.d.ts +95 -0
  39. package/dist/commons/events/locations.d.ts +169 -29
  40. package/dist/commons/events/mocks.test.utils.d.ts +30 -2
  41. package/dist/commons/events/scopes.d.ts +21 -1
  42. package/dist/commons/events/test.utils.d.ts +78 -25
  43. package/dist/commons/events/utils.d.ts +39 -4
  44. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  45. package/dist/commons/notification/dispatch.d.ts +10 -0
  46. package/dist/commons/notification/index.d.ts +1 -0
  47. package/dist/conditionals/index.js +349 -65
  48. package/dist/csv.d.ts +25 -0
  49. package/dist/csv.d.ts.map +1 -0
  50. package/dist/csv.js +120 -0
  51. package/dist/environment/index.d.ts +1 -0
  52. package/dist/environment/index.d.ts.map +1 -1
  53. package/dist/environment/index.js +12 -1
  54. package/dist/environment/logger.d.ts +15 -3
  55. package/dist/environment/logger.d.ts.map +1 -1
  56. package/dist/environment/manage-users.js +1 -1
  57. package/dist/environment/paths.d.ts +7 -0
  58. package/dist/environment/paths.d.ts.map +1 -0
  59. package/dist/environment/paths.js +72 -0
  60. package/dist/environment/questions.d.ts.map +1 -1
  61. package/dist/environment/questions.js +20 -14
  62. package/dist/environment/setup-environment.d.ts +1 -1
  63. package/dist/environment/setup-environment.d.ts.map +1 -1
  64. package/dist/environment/setup-environment.js +594 -562
  65. package/dist/environment/swarm-to-k8s.js +3 -4
  66. package/dist/environment/templates.d.ts +0 -1
  67. package/dist/environment/templates.d.ts.map +1 -1
  68. package/dist/environment/templates.js +5 -9
  69. package/dist/environment/update-workflows.d.ts.map +1 -1
  70. package/dist/environment/update-workflows.js +21 -5
  71. package/dist/environment/upgrade.d.ts +2 -0
  72. package/dist/environment/upgrade.d.ts.map +1 -0
  73. package/dist/environment/upgrade.js +82 -0
  74. package/dist/environment/users.js +11 -13
  75. package/dist/environment/utils.d.ts +0 -12
  76. package/dist/environment/utils.d.ts.map +1 -1
  77. package/dist/environment/utils.js +1 -28
  78. package/dist/events/index.js +7686 -7063
  79. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  80. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  81. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  82. package/dist/migrations/v2.1/add-translations.d.ts +9 -0
  83. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
  84. package/dist/migrations/v2.1/add-translations.js +149 -0
  85. package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/enable-telemetry.d.ts} +1 -1
  86. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  87. package/dist/migrations/v2.1/enable-telemetry.js +455 -0
  88. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  89. package/dist/migrations/v2.1/index.js +1952 -0
  90. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +14 -0
  91. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
  92. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
  93. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
  94. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
  95. package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
  96. package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
  97. package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
  98. package/dist/migrations/v2.1/remove-sentry.js +354 -0
  99. package/dist/migrations/{v2.0/create-events-index.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
  100. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
  101. package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
  102. package/dist/migrations/v2.1/template-files.d.ts +8 -0
  103. package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
  104. package/dist/migrations/v2.1/template-files.js +49 -0
  105. package/dist/migrations/v2.1/upgrade-tilt.d.ts +8 -0
  106. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
  107. package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
  108. package/dist/notification/index.js +1886 -1440
  109. package/dist/scopes/index.d.ts +614 -36
  110. package/dist/scopes/index.js +351 -65
  111. package/dist/telemetry/index.d.ts +45 -0
  112. package/dist/telemetry/index.d.ts.map +1 -0
  113. package/dist/telemetry/index.js +43 -0
  114. package/dist/templates/charts-values/dependencies/values.yaml +8 -0
  115. package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
  116. package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
  117. package/dist/templates/charts-values/traefik/values.yaml +23 -9
  118. package/dist/templates/countryconfig-template/.tiltignore +1 -0
  119. package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
  120. package/dist/templates/countryconfig-template/Tiltfile +112 -0
  121. package/dist/templates/countryconfig-template/assets/README.md +1 -0
  122. package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
  123. package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
  124. package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
  125. package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
  126. package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
  127. package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
  128. package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
  129. package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
  130. package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
  131. package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
  132. package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
  133. package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
  134. package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
  135. package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
  136. package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
  137. package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
  138. package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
  139. package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
  140. package/dist/templates/countryconfig-template/tilt/common.tilt +145 -0
  141. package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
  142. package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
  143. package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
  144. package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
  145. package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
  146. package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
  147. package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
  148. package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
  149. package/dist/templates/inventory/inventory.template.yml +1 -3
  150. package/dist/translations/template.d.ts +11 -0
  151. package/dist/translations/template.d.ts.map +1 -0
  152. package/dist/translations/template.js +100 -0
  153. package/dist/verify/endpoints.d.ts +2 -0
  154. package/dist/verify/endpoints.d.ts.map +1 -0
  155. package/dist/verify/endpoints.js +510 -0
  156. package/opencrvs-toolkit-2.1.0-rc.14fb6a5.tgz +0 -0
  157. package/package.json +13 -6
  158. package/tsconfig.build.json +11 -0
  159. package/tsconfig.build.tsbuildinfo +1 -0
  160. package/tsconfig.json +3 -0
  161. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  162. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  163. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
  164. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
  165. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
  166. package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
  167. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
  168. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
  169. package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
  170. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  171. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  172. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
  173. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  174. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  175. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
  176. package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
  177. package/dist/migrations/v2.0/create-events-index.js +0 -325
  178. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
  179. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
  180. package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
  181. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
  182. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
  183. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
  184. package/dist/migrations/v2.0/index.d.ts +0 -13
  185. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  186. package/dist/migrations/v2.0/index.js +0 -103
  187. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  188. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  189. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
  190. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
  191. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
  192. package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
  193. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
  194. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
  195. package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
  196. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  197. package/dist/migrations/v2.0/migrate-scopes.js +0 -305
  198. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  199. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  200. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
  201. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
  202. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
  203. package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
  204. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  205. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  206. package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
  207. package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
  208. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
  209. package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
  210. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  211. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  212. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
  213. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
  214. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
  215. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
  216. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
  217. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
  218. package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
  219. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
  220. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
  221. package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
  222. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  223. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  224. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
  225. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  226. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  227. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
  228. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
  229. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
  230. package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
  231. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  232. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  233. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  234. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
  235. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
  236. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
  237. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
  238. package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
  239. package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
  240. package/dist/migrations/v2.0/update-package-json.js +0 -105
  241. package/dist/templates/inventory/production.example.yml +0 -77
  242. package/dist/templates/inventory/qa.example.yml +0 -48
  243. package/opencrvs-toolkit-2.1.0-rc.0ec4a9a.tgz +0 -0
  244. package/tsconfig.tsbuildinfo +0 -1
@@ -2,18 +2,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: Partial<{
3
3
  token: `Bearer ${string}`;
4
4
  user: {
5
- id: string & import("zod").$brand<"UUID">;
6
- type: "system";
7
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9
- signature?: undefined;
10
- } | {
11
5
  id: string & import("zod").$brand<"UUID">;
12
6
  role: string;
13
7
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
14
8
  primaryOfficeId: string & import("zod").$brand<"UUID">;
15
9
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
16
10
  type: "user";
11
+ } | {
12
+ id: string & import("zod").$brand<"UUID">;
13
+ type: "system";
14
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
15
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
16
+ signature?: undefined;
17
17
  };
18
18
  }>;
19
19
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -24,18 +24,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
24
24
  ctx: Partial<{
25
25
  token: `Bearer ${string}`;
26
26
  user: {
27
- id: string & import("zod").$brand<"UUID">;
28
- type: "system";
29
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
30
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
31
- signature?: undefined;
32
- } | {
33
27
  id: string & import("zod").$brand<"UUID">;
34
28
  role: string;
35
29
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
36
30
  primaryOfficeId: string & import("zod").$brand<"UUID">;
37
31
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
38
32
  type: "user";
33
+ } | {
34
+ id: string & import("zod").$brand<"UUID">;
35
+ type: "system";
36
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
37
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
38
+ signature?: undefined;
39
39
  };
40
40
  }>;
41
41
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -46,18 +46,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
46
46
  ctx: Partial<{
47
47
  token: `Bearer ${string}`;
48
48
  user: {
49
- id: string & import("zod").$brand<"UUID">;
50
- type: "system";
51
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
52
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
53
- signature?: undefined;
54
- } | {
55
49
  id: string & import("zod").$brand<"UUID">;
56
50
  role: string;
57
51
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
58
52
  primaryOfficeId: string & import("zod").$brand<"UUID">;
59
53
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
60
54
  type: "user";
55
+ } | {
56
+ id: string & import("zod").$brand<"UUID">;
57
+ type: "system";
58
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
59
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
60
+ signature?: undefined;
61
61
  };
62
62
  }>;
63
63
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -81,6 +81,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
81
81
  status: "completed" | "failed" | "running";
82
82
  progress: {
83
83
  processed: number;
84
+ skipped: number;
85
+ errors: string[];
84
86
  };
85
87
  error_message: string | null;
86
88
  completed_at: string | null;
@@ -92,18 +94,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
92
94
  ctx: Partial<{
93
95
  token: `Bearer ${string}`;
94
96
  user: {
95
- id: string & import("zod").$brand<"UUID">;
96
- type: "system";
97
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
98
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
99
- signature?: undefined;
100
- } | {
101
97
  id: string & import("zod").$brand<"UUID">;
102
98
  role: string;
103
99
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
104
100
  primaryOfficeId: string & import("zod").$brand<"UUID">;
105
101
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
106
102
  type: "user";
103
+ } | {
104
+ id: string & import("zod").$brand<"UUID">;
105
+ type: "system";
106
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
107
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
108
+ signature?: undefined;
107
109
  };
108
110
  }>;
109
111
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -223,9 +225,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
223
225
  status: "Accepted" | "Rejected" | "Requested";
224
226
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
225
227
  type: "ARCHIVE";
226
- content: {
228
+ content?: {
227
229
  reason: string;
228
- };
230
+ } | undefined;
229
231
  } | {
230
232
  id: string & import("zod").$brand<"UUID">;
231
233
  transactionId: string;
@@ -326,7 +328,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
326
328
  status: "Accepted" | "Rejected" | "Requested";
327
329
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
328
330
  type: "APPROVE_CORRECTION";
329
- requestId: string;
331
+ requestId: string & import("zod").$brand<"UUID">;
330
332
  content?: {
331
333
  immediateCorrection?: boolean | undefined;
332
334
  } | undefined;
@@ -344,7 +346,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
344
346
  status: "Accepted" | "Rejected" | "Requested";
345
347
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
346
348
  type: "REJECT_CORRECTION";
347
- requestId: string;
349
+ requestId: string & import("zod").$brand<"UUID">;
348
350
  content: {
349
351
  reason: string;
350
352
  };
@@ -446,7 +448,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
446
448
  input: {
447
449
  eventId: string;
448
450
  customActionType?: string | undefined;
449
- waitFor?: boolean | undefined;
450
451
  };
451
452
  output: {
452
453
  id: string & import("zod").$brand<"UUID">;
@@ -549,9 +550,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
549
550
  status: "Accepted" | "Rejected" | "Requested";
550
551
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
551
552
  type: "ARCHIVE";
552
- content: {
553
+ content?: {
553
554
  reason: string;
554
- };
555
+ } | undefined;
555
556
  } | {
556
557
  id: string & import("zod").$brand<"UUID">;
557
558
  transactionId: string;
@@ -652,7 +653,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
652
653
  status: "Accepted" | "Rejected" | "Requested";
653
654
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
654
655
  type: "APPROVE_CORRECTION";
655
- requestId: string;
656
+ requestId: string & import("zod").$brand<"UUID">;
656
657
  content?: {
657
658
  immediateCorrection?: boolean | undefined;
658
659
  } | undefined;
@@ -670,7 +671,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
670
671
  status: "Accepted" | "Rejected" | "Requested";
671
672
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
672
673
  type: "REJECT_CORRECTION";
673
- requestId: string;
674
+ requestId: string & import("zod").$brand<"UUID">;
674
675
  content: {
675
676
  reason: string;
676
677
  };
@@ -874,9 +875,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
874
875
  status: "Accepted" | "Rejected" | "Requested";
875
876
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
876
877
  type: "ARCHIVE";
877
- content: {
878
+ content?: {
878
879
  reason: string;
879
- };
880
+ } | undefined;
880
881
  } | {
881
882
  id: string & import("zod").$brand<"UUID">;
882
883
  transactionId: string;
@@ -977,7 +978,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
977
978
  status: "Accepted" | "Rejected" | "Requested";
978
979
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
979
980
  type: "APPROVE_CORRECTION";
980
- requestId: string;
981
+ requestId: string & import("zod").$brand<"UUID">;
981
982
  content?: {
982
983
  immediateCorrection?: boolean | undefined;
983
984
  } | undefined;
@@ -995,7 +996,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
995
996
  status: "Accepted" | "Rejected" | "Requested";
996
997
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
997
998
  type: "REJECT_CORRECTION";
998
- requestId: string;
999
+ requestId: string & import("zod").$brand<"UUID">;
999
1000
  content: {
1000
1001
  reason: string;
1001
1002
  };
@@ -1106,18 +1107,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1106
1107
  ctx: Partial<{
1107
1108
  token: `Bearer ${string}`;
1108
1109
  user: {
1109
- id: string & import("zod").$brand<"UUID">;
1110
- type: "system";
1111
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1112
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1113
- signature?: undefined;
1114
- } | {
1115
1110
  id: string & import("zod").$brand<"UUID">;
1116
1111
  role: string;
1117
1112
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1118
1113
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1119
1114
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1120
1115
  type: "user";
1116
+ } | {
1117
+ id: string & import("zod").$brand<"UUID">;
1118
+ type: "system";
1119
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1120
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1121
+ signature?: undefined;
1121
1122
  };
1122
1123
  }>;
1123
1124
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1158,7 +1159,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1158
1159
  keepAssignmentIfAccepted?: boolean | undefined;
1159
1160
  keepAssignmentIfRejected?: boolean | undefined;
1160
1161
  createdAtLocation?: string | null | undefined;
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
+ type: "DECLARE";
1162
1163
  status: "Accepted" | "Rejected" | "Requested";
1163
1164
  };
1164
1165
  output: {
@@ -1183,22 +1184,54 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1183
1184
  meta: import("trpc-to-openapi").OpenApiMeta;
1184
1185
  }>;
1185
1186
  }>>;
1186
- actions: import("@trpc/server").TRPCBuiltRouter<{
1187
+ file: import("@trpc/server").TRPCBuiltRouter<{
1187
1188
  ctx: Partial<{
1188
1189
  token: `Bearer ${string}`;
1189
1190
  user: {
1191
+ id: string & import("zod").$brand<"UUID">;
1192
+ role: string;
1193
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1194
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1195
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1196
+ type: "user";
1197
+ } | {
1190
1198
  id: string & import("zod").$brand<"UUID">;
1191
1199
  type: "system";
1192
1200
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1193
1201
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1194
1202
  signature?: undefined;
1195
- } | {
1203
+ };
1204
+ }>;
1205
+ meta: import("trpc-to-openapi").OpenApiMeta;
1206
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1207
+ transformer: true;
1208
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1209
+ getPresignedUrl: import("@trpc/server").TRPCQueryProcedure<{
1210
+ input: {
1211
+ filePath: string;
1212
+ };
1213
+ output: {
1214
+ presignedURL: string;
1215
+ };
1216
+ meta: import("trpc-to-openapi").OpenApiMeta;
1217
+ }>;
1218
+ }>>;
1219
+ actions: import("@trpc/server").TRPCBuiltRouter<{
1220
+ ctx: Partial<{
1221
+ token: `Bearer ${string}`;
1222
+ user: {
1196
1223
  id: string & import("zod").$brand<"UUID">;
1197
1224
  role: string;
1198
1225
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1199
1226
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1200
1227
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1201
1228
  type: "user";
1229
+ } | {
1230
+ id: string & import("zod").$brand<"UUID">;
1231
+ type: "system";
1232
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1233
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1234
+ signature?: undefined;
1202
1235
  };
1203
1236
  }>;
1204
1237
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1209,18 +1242,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1209
1242
  ctx: Partial<{
1210
1243
  token: `Bearer ${string}`;
1211
1244
  user: {
1212
- id: string & import("zod").$brand<"UUID">;
1213
- type: "system";
1214
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1215
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1216
- signature?: undefined;
1217
- } | {
1218
1245
  id: string & import("zod").$brand<"UUID">;
1219
1246
  role: string;
1220
1247
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1221
1248
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1222
1249
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1223
1250
  type: "user";
1251
+ } | {
1252
+ id: string & import("zod").$brand<"UUID">;
1253
+ type: "system";
1254
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1255
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1256
+ signature?: undefined;
1224
1257
  };
1225
1258
  }>;
1226
1259
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1354,9 +1387,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1354
1387
  waitFor?: boolean | undefined;
1355
1388
  createdAtLocation?: string | null | undefined;
1356
1389
  type?: "ARCHIVE" | undefined;
1357
- content: {
1390
+ content?: {
1358
1391
  reason: string;
1359
- };
1392
+ } | undefined;
1360
1393
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1361
1394
  eventId: string;
1362
1395
  transactionId: string;
@@ -1513,18 +1546,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1513
1546
  ctx: Partial<{
1514
1547
  token: `Bearer ${string}`;
1515
1548
  user: {
1516
- id: string & import("zod").$brand<"UUID">;
1517
- type: "system";
1518
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1519
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1520
- signature?: undefined;
1521
- } | {
1522
1549
  id: string & import("zod").$brand<"UUID">;
1523
1550
  role: string;
1524
1551
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1525
1552
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1526
1553
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1527
1554
  type: "user";
1555
+ } | {
1556
+ id: string & import("zod").$brand<"UUID">;
1557
+ type: "system";
1558
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1559
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1560
+ signature?: undefined;
1528
1561
  };
1529
1562
  }>;
1530
1563
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1645,9 +1678,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1645
1678
  status: "Accepted" | "Rejected" | "Requested";
1646
1679
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1647
1680
  type: "ARCHIVE";
1648
- content: {
1681
+ content?: {
1649
1682
  reason: string;
1650
- };
1683
+ } | undefined;
1651
1684
  } | {
1652
1685
  id: string & import("zod").$brand<"UUID">;
1653
1686
  transactionId: string;
@@ -1748,7 +1781,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1748
1781
  status: "Accepted" | "Rejected" | "Requested";
1749
1782
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1750
1783
  type: "APPROVE_CORRECTION";
1751
- requestId: string;
1784
+ requestId: string & import("zod").$brand<"UUID">;
1752
1785
  content?: {
1753
1786
  immediateCorrection?: boolean | undefined;
1754
1787
  } | undefined;
@@ -1766,7 +1799,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1766
1799
  status: "Accepted" | "Rejected" | "Requested";
1767
1800
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1768
1801
  type: "REJECT_CORRECTION";
1769
- requestId: string;
1802
+ requestId: string & import("zod").$brand<"UUID">;
1770
1803
  content: {
1771
1804
  reason: string;
1772
1805
  };
@@ -1869,18 +1902,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1869
1902
  ctx: Partial<{
1870
1903
  token: `Bearer ${string}`;
1871
1904
  user: {
1872
- id: string & import("zod").$brand<"UUID">;
1873
- type: "system";
1874
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1875
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1876
- signature?: undefined;
1877
- } | {
1878
1905
  id: string & import("zod").$brand<"UUID">;
1879
1906
  role: string;
1880
1907
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1881
1908
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1882
1909
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1883
1910
  type: "user";
1911
+ } | {
1912
+ id: string & import("zod").$brand<"UUID">;
1913
+ type: "system";
1914
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1915
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1916
+ signature?: undefined;
1884
1917
  };
1885
1918
  }>;
1886
1919
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2009,9 +2042,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2009
2042
  waitFor?: boolean | undefined;
2010
2043
  createdAtLocation?: string | null | undefined;
2011
2044
  type?: "ARCHIVE" | undefined;
2012
- content: {
2045
+ content?: {
2013
2046
  reason: string;
2014
- };
2047
+ } | undefined;
2015
2048
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2016
2049
  eventId: string;
2017
2050
  transactionId: string;
@@ -2278,9 +2311,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2278
2311
  status: "Accepted" | "Rejected" | "Requested";
2279
2312
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2280
2313
  type: "ARCHIVE";
2281
- content: {
2314
+ content?: {
2282
2315
  reason: string;
2283
- };
2316
+ } | undefined;
2284
2317
  } | {
2285
2318
  id: string & import("zod").$brand<"UUID">;
2286
2319
  transactionId: string;
@@ -2381,7 +2414,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2381
2414
  status: "Accepted" | "Rejected" | "Requested";
2382
2415
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2383
2416
  type: "APPROVE_CORRECTION";
2384
- requestId: string;
2417
+ requestId: string & import("zod").$brand<"UUID">;
2385
2418
  content?: {
2386
2419
  immediateCorrection?: boolean | undefined;
2387
2420
  } | undefined;
@@ -2399,7 +2432,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2399
2432
  status: "Accepted" | "Rejected" | "Requested";
2400
2433
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2401
2434
  type: "REJECT_CORRECTION";
2402
- requestId: string;
2435
+ requestId: string & import("zod").$brand<"UUID">;
2403
2436
  content: {
2404
2437
  reason: string;
2405
2438
  };
@@ -2502,18 +2535,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2502
2535
  ctx: Partial<{
2503
2536
  token: `Bearer ${string}`;
2504
2537
  user: {
2505
- id: string & import("zod").$brand<"UUID">;
2506
- type: "system";
2507
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2508
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2509
- signature?: undefined;
2510
- } | {
2511
2538
  id: string & import("zod").$brand<"UUID">;
2512
2539
  role: string;
2513
2540
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2514
2541
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2515
2542
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2516
2543
  type: "user";
2544
+ } | {
2545
+ id: string & import("zod").$brand<"UUID">;
2546
+ type: "system";
2547
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2548
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2549
+ signature?: undefined;
2517
2550
  };
2518
2551
  }>;
2519
2552
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2647,9 +2680,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2647
2680
  waitFor?: boolean | undefined;
2648
2681
  createdAtLocation?: string | null | undefined;
2649
2682
  type?: "ARCHIVE" | undefined;
2650
- content: {
2683
+ content?: {
2651
2684
  reason: string;
2652
- };
2685
+ } | undefined;
2653
2686
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2654
2687
  eventId: string;
2655
2688
  transactionId: string;
@@ -2806,18 +2839,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2806
2839
  ctx: Partial<{
2807
2840
  token: `Bearer ${string}`;
2808
2841
  user: {
2809
- id: string & import("zod").$brand<"UUID">;
2810
- type: "system";
2811
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2812
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2813
- signature?: undefined;
2814
- } | {
2815
2842
  id: string & import("zod").$brand<"UUID">;
2816
2843
  role: string;
2817
2844
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2818
2845
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2819
2846
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2820
2847
  type: "user";
2848
+ } | {
2849
+ id: string & import("zod").$brand<"UUID">;
2850
+ type: "system";
2851
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2852
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2853
+ signature?: undefined;
2821
2854
  };
2822
2855
  }>;
2823
2856
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2951,9 +2984,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2951
2984
  waitFor?: boolean | undefined;
2952
2985
  createdAtLocation?: string | null | undefined;
2953
2986
  type?: "ARCHIVE" | undefined;
2954
- content: {
2987
+ content?: {
2955
2988
  reason: string;
2956
- };
2989
+ } | undefined;
2957
2990
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2958
2991
  eventId: string;
2959
2992
  transactionId: string;
@@ -3110,18 +3143,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3110
3143
  ctx: Partial<{
3111
3144
  token: `Bearer ${string}`;
3112
3145
  user: {
3113
- id: string & import("zod").$brand<"UUID">;
3114
- type: "system";
3115
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3116
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3117
- signature?: undefined;
3118
- } | {
3119
3146
  id: string & import("zod").$brand<"UUID">;
3120
3147
  role: string;
3121
3148
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3122
3149
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3123
3150
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3124
3151
  type: "user";
3152
+ } | {
3153
+ id: string & import("zod").$brand<"UUID">;
3154
+ type: "system";
3155
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3156
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3157
+ signature?: undefined;
3125
3158
  };
3126
3159
  }>;
3127
3160
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3255,9 +3288,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3255
3288
  waitFor?: boolean | undefined;
3256
3289
  createdAtLocation?: string | null | undefined;
3257
3290
  type?: "ARCHIVE" | undefined;
3258
- content: {
3291
+ content?: {
3259
3292
  reason: string;
3260
- };
3293
+ } | undefined;
3261
3294
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3262
3295
  eventId: string;
3263
3296
  transactionId: string;
@@ -3414,18 +3447,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3414
3447
  ctx: Partial<{
3415
3448
  token: `Bearer ${string}`;
3416
3449
  user: {
3417
- id: string & import("zod").$brand<"UUID">;
3418
- type: "system";
3419
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3420
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3421
- signature?: undefined;
3422
- } | {
3423
3450
  id: string & import("zod").$brand<"UUID">;
3424
3451
  role: string;
3425
3452
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3426
3453
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3427
3454
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3428
3455
  type: "user";
3456
+ } | {
3457
+ id: string & import("zod").$brand<"UUID">;
3458
+ type: "system";
3459
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3460
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3461
+ signature?: undefined;
3429
3462
  };
3430
3463
  }>;
3431
3464
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3559,9 +3592,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3559
3592
  waitFor?: boolean | undefined;
3560
3593
  createdAtLocation?: string | null | undefined;
3561
3594
  type?: "ARCHIVE" | undefined;
3562
- content: {
3595
+ content?: {
3563
3596
  reason: string;
3564
- };
3597
+ } | undefined;
3565
3598
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3566
3599
  eventId: string;
3567
3600
  transactionId: string;
@@ -3718,18 +3751,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3718
3751
  ctx: Partial<{
3719
3752
  token: `Bearer ${string}`;
3720
3753
  user: {
3721
- id: string & import("zod").$brand<"UUID">;
3722
- type: "system";
3723
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3724
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3725
- signature?: undefined;
3726
- } | {
3727
3754
  id: string & import("zod").$brand<"UUID">;
3728
3755
  role: string;
3729
3756
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3730
3757
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3731
3758
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3732
3759
  type: "user";
3760
+ } | {
3761
+ id: string & import("zod").$brand<"UUID">;
3762
+ type: "system";
3763
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3764
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3765
+ signature?: undefined;
3733
3766
  };
3734
3767
  }>;
3735
3768
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3863,9 +3896,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3863
3896
  waitFor?: boolean | undefined;
3864
3897
  createdAtLocation?: string | null | undefined;
3865
3898
  type?: "ARCHIVE" | undefined;
3866
- content: {
3899
+ content?: {
3867
3900
  reason: string;
3868
- };
3901
+ } | undefined;
3869
3902
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3870
3903
  eventId: string;
3871
3904
  transactionId: string;
@@ -4022,21 +4055,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4022
4055
  ctx: Partial<{
4023
4056
  token: `Bearer ${string}`;
4024
4057
  user: {
4025
- id: string & import("zod").$brand<"UUID">;
4026
- type: "system";
4027
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4028
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4029
- signature?: undefined;
4030
- } | {
4031
4058
  id: string & import("zod").$brand<"UUID">;
4032
4059
  role: string;
4033
4060
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4034
4061
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4035
4062
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4036
4063
  type: "user";
4037
- };
4038
- }>;
4039
- meta: import("trpc-to-openapi").OpenApiMeta;
4064
+ } | {
4065
+ id: string & import("zod").$brand<"UUID">;
4066
+ type: "system";
4067
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4068
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4069
+ signature?: undefined;
4070
+ };
4071
+ }>;
4072
+ meta: import("trpc-to-openapi").OpenApiMeta;
4040
4073
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4041
4074
  transformer: true;
4042
4075
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
@@ -4167,9 +4200,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4167
4200
  waitFor?: boolean | undefined;
4168
4201
  createdAtLocation?: string | null | undefined;
4169
4202
  type?: "ARCHIVE" | undefined;
4170
- content: {
4203
+ content?: {
4171
4204
  reason: string;
4172
- };
4205
+ } | undefined;
4173
4206
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4174
4207
  eventId: string;
4175
4208
  transactionId: string;
@@ -4326,18 +4359,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4326
4359
  ctx: Partial<{
4327
4360
  token: `Bearer ${string}`;
4328
4361
  user: {
4329
- id: string & import("zod").$brand<"UUID">;
4330
- type: "system";
4331
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4332
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4333
- signature?: undefined;
4334
- } | {
4335
4362
  id: string & import("zod").$brand<"UUID">;
4336
4363
  role: string;
4337
4364
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4338
4365
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4339
4366
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4340
4367
  type: "user";
4368
+ } | {
4369
+ id: string & import("zod").$brand<"UUID">;
4370
+ type: "system";
4371
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4372
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4373
+ signature?: undefined;
4341
4374
  };
4342
4375
  }>;
4343
4376
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4466,9 +4499,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4466
4499
  waitFor?: boolean | undefined;
4467
4500
  createdAtLocation?: string | null | undefined;
4468
4501
  type?: "ARCHIVE" | undefined;
4469
- content: {
4502
+ content?: {
4470
4503
  reason: string;
4471
- };
4504
+ } | undefined;
4472
4505
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4473
4506
  eventId: string;
4474
4507
  transactionId: string;
@@ -4736,9 +4769,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4736
4769
  status: "Accepted" | "Rejected" | "Requested";
4737
4770
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4738
4771
  type: "ARCHIVE";
4739
- content: {
4772
+ content?: {
4740
4773
  reason: string;
4741
- };
4774
+ } | undefined;
4742
4775
  } | {
4743
4776
  id: string & import("zod").$brand<"UUID">;
4744
4777
  transactionId: string;
@@ -4839,7 +4872,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4839
4872
  status: "Accepted" | "Rejected" | "Requested";
4840
4873
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4841
4874
  type: "APPROVE_CORRECTION";
4842
- requestId: string;
4875
+ requestId: string & import("zod").$brand<"UUID">;
4843
4876
  content?: {
4844
4877
  immediateCorrection?: boolean | undefined;
4845
4878
  } | undefined;
@@ -4857,7 +4890,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4857
4890
  status: "Accepted" | "Rejected" | "Requested";
4858
4891
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4859
4892
  type: "REJECT_CORRECTION";
4860
- requestId: string;
4893
+ requestId: string & import("zod").$brand<"UUID">;
4861
4894
  content: {
4862
4895
  reason: string;
4863
4896
  };
@@ -4960,18 +4993,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4960
4993
  ctx: Partial<{
4961
4994
  token: `Bearer ${string}`;
4962
4995
  user: {
4963
- id: string & import("zod").$brand<"UUID">;
4964
- type: "system";
4965
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4966
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4967
- signature?: undefined;
4968
- } | {
4969
4996
  id: string & import("zod").$brand<"UUID">;
4970
4997
  role: string;
4971
4998
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4972
4999
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4973
5000
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4974
5001
  type: "user";
5002
+ } | {
5003
+ id: string & import("zod").$brand<"UUID">;
5004
+ type: "system";
5005
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5006
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5007
+ signature?: undefined;
4975
5008
  };
4976
5009
  }>;
4977
5010
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4998,6 +5031,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4998
5031
  type: string;
4999
5032
  createdAt: string;
5000
5033
  updatedAt: string;
5034
+ trackingId: string;
5001
5035
  actions: ({
5002
5036
  id: string & import("zod").$brand<"UUID">;
5003
5037
  transactionId: string;
@@ -5094,9 +5128,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5094
5128
  status: "Accepted" | "Rejected" | "Requested";
5095
5129
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5096
5130
  type: "ARCHIVE";
5097
- content: {
5131
+ content?: {
5098
5132
  reason: string;
5099
- };
5133
+ } | undefined;
5100
5134
  } | {
5101
5135
  id: string & import("zod").$brand<"UUID">;
5102
5136
  transactionId: string;
@@ -5197,7 +5231,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5197
5231
  status: "Accepted" | "Rejected" | "Requested";
5198
5232
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5199
5233
  type: "APPROVE_CORRECTION";
5200
- requestId: string;
5234
+ requestId: string & import("zod").$brand<"UUID">;
5201
5235
  content?: {
5202
5236
  immediateCorrection?: boolean | undefined;
5203
5237
  } | undefined;
@@ -5215,7 +5249,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5215
5249
  status: "Accepted" | "Rejected" | "Requested";
5216
5250
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5217
5251
  type: "REJECT_CORRECTION";
5218
- requestId: string;
5252
+ requestId: string & import("zod").$brand<"UUID">;
5219
5253
  content: {
5220
5254
  reason: string;
5221
5255
  };
@@ -5309,8 +5343,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5309
5343
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5310
5344
  status: "Rejected";
5311
5345
  })[];
5312
- trackingId: string;
5313
- };
5346
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5314
5347
  meta: import("trpc-to-openapi").OpenApiMeta;
5315
5348
  }>;
5316
5349
  unassign: import("@trpc/server").TRPCMutationProcedure<{
@@ -5333,6 +5366,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5333
5366
  type: string;
5334
5367
  createdAt: string;
5335
5368
  updatedAt: string;
5369
+ trackingId: string;
5336
5370
  actions: ({
5337
5371
  id: string & import("zod").$brand<"UUID">;
5338
5372
  transactionId: string;
@@ -5429,9 +5463,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5429
5463
  status: "Accepted" | "Rejected" | "Requested";
5430
5464
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5431
5465
  type: "ARCHIVE";
5432
- content: {
5466
+ content?: {
5433
5467
  reason: string;
5434
- };
5468
+ } | undefined;
5435
5469
  } | {
5436
5470
  id: string & import("zod").$brand<"UUID">;
5437
5471
  transactionId: string;
@@ -5532,7 +5566,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5532
5566
  status: "Accepted" | "Rejected" | "Requested";
5533
5567
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5534
5568
  type: "APPROVE_CORRECTION";
5535
- requestId: string;
5569
+ requestId: string & import("zod").$brand<"UUID">;
5536
5570
  content?: {
5537
5571
  immediateCorrection?: boolean | undefined;
5538
5572
  } | undefined;
@@ -5550,7 +5584,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5550
5584
  status: "Accepted" | "Rejected" | "Requested";
5551
5585
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5552
5586
  type: "REJECT_CORRECTION";
5553
- requestId: string;
5587
+ requestId: string & import("zod").$brand<"UUID">;
5554
5588
  content: {
5555
5589
  reason: string;
5556
5590
  };
@@ -5644,8 +5678,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5644
5678
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5645
5679
  status: "Rejected";
5646
5680
  })[];
5647
- trackingId: string;
5648
- };
5681
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5649
5682
  meta: import("trpc-to-openapi").OpenApiMeta;
5650
5683
  }>;
5651
5684
  }>>;
@@ -5653,18 +5686,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5653
5686
  ctx: Partial<{
5654
5687
  token: `Bearer ${string}`;
5655
5688
  user: {
5656
- id: string & import("zod").$brand<"UUID">;
5657
- type: "system";
5658
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5659
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5660
- signature?: undefined;
5661
- } | {
5662
5689
  id: string & import("zod").$brand<"UUID">;
5663
5690
  role: string;
5664
5691
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5665
5692
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5666
5693
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5667
5694
  type: "user";
5695
+ } | {
5696
+ id: string & import("zod").$brand<"UUID">;
5697
+ type: "system";
5698
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5699
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5700
+ signature?: undefined;
5668
5701
  };
5669
5702
  }>;
5670
5703
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5675,18 +5708,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5675
5708
  ctx: Partial<{
5676
5709
  token: `Bearer ${string}`;
5677
5710
  user: {
5678
- id: string & import("zod").$brand<"UUID">;
5679
- type: "system";
5680
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5681
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5682
- signature?: undefined;
5683
- } | {
5684
5711
  id: string & import("zod").$brand<"UUID">;
5685
5712
  role: string;
5686
5713
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5687
5714
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5688
5715
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5689
5716
  type: "user";
5717
+ } | {
5718
+ id: string & import("zod").$brand<"UUID">;
5719
+ type: "system";
5720
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5721
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5722
+ signature?: undefined;
5690
5723
  };
5691
5724
  }>;
5692
5725
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5820,9 +5853,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5820
5853
  waitFor?: boolean | undefined;
5821
5854
  createdAtLocation?: string | null | undefined;
5822
5855
  type?: "ARCHIVE" | undefined;
5823
- content: {
5856
+ content?: {
5824
5857
  reason: string;
5825
- };
5858
+ } | undefined;
5826
5859
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5827
5860
  eventId: string;
5828
5861
  transactionId: string;
@@ -5979,18 +6012,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5979
6012
  ctx: Partial<{
5980
6013
  token: `Bearer ${string}`;
5981
6014
  user: {
5982
- id: string & import("zod").$brand<"UUID">;
5983
- type: "system";
5984
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5985
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5986
- signature?: undefined;
5987
- } | {
5988
6015
  id: string & import("zod").$brand<"UUID">;
5989
6016
  role: string;
5990
6017
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5991
6018
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5992
6019
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5993
6020
  type: "user";
6021
+ } | {
6022
+ id: string & import("zod").$brand<"UUID">;
6023
+ type: "system";
6024
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6025
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6026
+ signature?: undefined;
5994
6027
  };
5995
6028
  }>;
5996
6029
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6124,9 +6157,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6124
6157
  waitFor?: boolean | undefined;
6125
6158
  createdAtLocation?: string | null | undefined;
6126
6159
  type?: "ARCHIVE" | undefined;
6127
- content: {
6160
+ content?: {
6128
6161
  reason: string;
6129
- };
6162
+ } | undefined;
6130
6163
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6131
6164
  eventId: string;
6132
6165
  transactionId: string;
@@ -6283,18 +6316,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6283
6316
  ctx: Partial<{
6284
6317
  token: `Bearer ${string}`;
6285
6318
  user: {
6286
- id: string & import("zod").$brand<"UUID">;
6287
- type: "system";
6288
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6289
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6290
- signature?: undefined;
6291
- } | {
6292
6319
  id: string & import("zod").$brand<"UUID">;
6293
6320
  role: string;
6294
6321
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6295
6322
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6296
6323
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6297
6324
  type: "user";
6325
+ } | {
6326
+ id: string & import("zod").$brand<"UUID">;
6327
+ type: "system";
6328
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6329
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6330
+ signature?: undefined;
6298
6331
  };
6299
6332
  }>;
6300
6333
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6428,9 +6461,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6428
6461
  waitFor?: boolean | undefined;
6429
6462
  createdAtLocation?: string | null | undefined;
6430
6463
  type?: "ARCHIVE" | undefined;
6431
- content: {
6464
+ content?: {
6432
6465
  reason: string;
6433
- };
6466
+ } | undefined;
6434
6467
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6435
6468
  eventId: string;
6436
6469
  transactionId: string;
@@ -6588,18 +6621,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6588
6621
  ctx: Partial<{
6589
6622
  token: `Bearer ${string}`;
6590
6623
  user: {
6591
- id: string & import("zod").$brand<"UUID">;
6592
- type: "system";
6593
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6594
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6595
- signature?: undefined;
6596
- } | {
6597
6624
  id: string & import("zod").$brand<"UUID">;
6598
6625
  role: string;
6599
6626
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6600
6627
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6601
6628
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6602
6629
  type: "user";
6630
+ } | {
6631
+ id: string & import("zod").$brand<"UUID">;
6632
+ type: "system";
6633
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6634
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6635
+ signature?: undefined;
6603
6636
  };
6604
6637
  }>;
6605
6638
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6724,9 +6757,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6724
6757
  status: "Accepted" | "Rejected" | "Requested";
6725
6758
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6726
6759
  type: "ARCHIVE";
6727
- content: {
6760
+ content?: {
6728
6761
  reason: string;
6729
- };
6762
+ } | undefined;
6730
6763
  } | {
6731
6764
  id: string & import("zod").$brand<"UUID">;
6732
6765
  transactionId: string;
@@ -6827,7 +6860,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6827
6860
  status: "Accepted" | "Rejected" | "Requested";
6828
6861
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6829
6862
  type: "APPROVE_CORRECTION";
6830
- requestId: string;
6863
+ requestId: string & import("zod").$brand<"UUID">;
6831
6864
  content?: {
6832
6865
  immediateCorrection?: boolean | undefined;
6833
6866
  } | undefined;
@@ -6845,7 +6878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6845
6878
  status: "Accepted" | "Rejected" | "Requested";
6846
6879
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6847
6880
  type: "REJECT_CORRECTION";
6848
- requestId: string;
6881
+ requestId: string & import("zod").$brand<"UUID">;
6849
6882
  content: {
6850
6883
  reason: string;
6851
6884
  };
@@ -7058,9 +7091,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7058
7091
  status: "Accepted" | "Rejected" | "Requested";
7059
7092
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7060
7093
  type: "ARCHIVE";
7061
- content: {
7094
+ content?: {
7062
7095
  reason: string;
7063
- };
7096
+ } | undefined;
7064
7097
  } | {
7065
7098
  id: string & import("zod").$brand<"UUID">;
7066
7099
  transactionId: string;
@@ -7161,7 +7194,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7161
7194
  status: "Accepted" | "Rejected" | "Requested";
7162
7195
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7163
7196
  type: "APPROVE_CORRECTION";
7164
- requestId: string;
7197
+ requestId: string & import("zod").$brand<"UUID">;
7165
7198
  content?: {
7166
7199
  immediateCorrection?: boolean | undefined;
7167
7200
  } | undefined;
@@ -7179,7 +7212,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7179
7212
  status: "Accepted" | "Rejected" | "Requested";
7180
7213
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7181
7214
  type: "REJECT_CORRECTION";
7182
- requestId: string;
7215
+ requestId: string & import("zod").$brand<"UUID">;
7183
7216
  content: {
7184
7217
  reason: string;
7185
7218
  };
@@ -7443,9 +7476,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7443
7476
  status: "Accepted" | "Rejected" | "Requested";
7444
7477
  originalActionId?: string | null | undefined;
7445
7478
  type: "ARCHIVE";
7446
- content: {
7479
+ content?: {
7447
7480
  reason: string;
7448
- };
7481
+ } | undefined;
7449
7482
  } | {
7450
7483
  id: string;
7451
7484
  transactionId: string;
@@ -7668,18 +7701,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7668
7701
  ctx: Partial<{
7669
7702
  token: `Bearer ${string}`;
7670
7703
  user: {
7671
- id: string & import("zod").$brand<"UUID">;
7672
- type: "system";
7673
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7674
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7675
- signature?: undefined;
7676
- } | {
7677
7704
  id: string & import("zod").$brand<"UUID">;
7678
7705
  role: string;
7679
7706
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7680
7707
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7681
7708
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7682
7709
  type: "user";
7710
+ } | {
7711
+ id: string & import("zod").$brand<"UUID">;
7712
+ type: "system";
7713
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7714
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7715
+ signature?: undefined;
7683
7716
  };
7684
7717
  }>;
7685
7718
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7834,8 +7867,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7834
7867
  email?: string | undefined;
7835
7868
  status?: string | undefined;
7836
7869
  primaryOfficeId?: string | undefined;
7837
- count: number;
7838
- skip: number;
7870
+ count?: number | undefined;
7871
+ skip?: number | undefined;
7839
7872
  sortBy?: "createdAt" | "email" | "firstname" | "role" | "status" | "surname" | "username" | undefined;
7840
7873
  sortOrder: "asc" | "desc";
7841
7874
  };
@@ -7862,60 +7895,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7862
7895
  })[];
7863
7896
  meta: object;
7864
7897
  }>;
7865
- actions: import("@trpc/server").TRPCQueryProcedure<{
7866
- input: {
7867
- userId: string;
7868
- skip?: number | undefined;
7869
- count?: number | undefined;
7870
- timeStart?: string | undefined;
7871
- timeEnd?: string | undefined;
7872
- actionTypes?: ("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")[] | undefined;
7873
- };
7874
- output: {
7875
- results: {
7876
- actionType: string;
7877
- annotation: Record<string, any> | null;
7878
- assignedTo: string | null;
7879
- content: Record<string, any> | null;
7880
- createdAt: string | null;
7881
- createdAtLocation: (string & import("zod").$brand<"UUID">) | null;
7882
- createdBy: string;
7883
- createdByRole: string | null;
7884
- createdBySignature: string | null;
7885
- createdByUserType: import("../storage/postgres/events/schema/app/UserType").default;
7886
- customActionType: string | null;
7887
- declaration: Record<string, any>;
7888
- eventId: string & import("zod").$brand<"UUID">;
7889
- eventType: string | null;
7890
- id: (string & import("zod").$brand<"UUID">) | null;
7891
- originalActionId: (string & import("zod").$brand<"UUID">) | null;
7892
- registrationNumber: string | null;
7893
- requestId: string | null;
7894
- status: import("../storage/postgres/events/schema/app/ActionStatus").default;
7895
- trackingId: string | null;
7896
- transactionId: string | null;
7897
- updatedAt: string | null;
7898
- }[];
7899
- total: number;
7900
- };
7901
- meta: import("trpc-to-openapi").OpenApiMeta;
7902
- }>;
7903
7898
  roles: import("@trpc/server").TRPCBuiltRouter<{
7904
7899
  ctx: Partial<{
7905
7900
  token: `Bearer ${string}`;
7906
7901
  user: {
7907
- id: string & import("zod").$brand<"UUID">;
7908
- type: "system";
7909
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7910
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7911
- signature?: undefined;
7912
- } | {
7913
7902
  id: string & import("zod").$brand<"UUID">;
7914
7903
  role: string;
7915
7904
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7916
7905
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7917
7906
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7918
7907
  type: "user";
7908
+ } | {
7909
+ id: string & import("zod").$brand<"UUID">;
7910
+ type: "system";
7911
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7912
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7913
+ signature?: undefined;
7919
7914
  };
7920
7915
  }>;
7921
7916
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8028,64 +8023,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8028
8023
  ctx: Partial<{
8029
8024
  token: `Bearer ${string}`;
8030
8025
  user: {
8031
- id: string & import("zod").$brand<"UUID">;
8032
- type: "system";
8033
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8034
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8035
- signature?: undefined;
8036
- } | {
8037
8026
  id: string & import("zod").$brand<"UUID">;
8038
8027
  role: string;
8039
8028
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8040
8029
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8041
8030
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8042
8031
  type: "user";
8032
+ } | {
8033
+ id: string & import("zod").$brand<"UUID">;
8034
+ type: "system";
8035
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8036
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8037
+ signature?: undefined;
8043
8038
  };
8044
8039
  }>;
8045
8040
  meta: import("trpc-to-openapi").OpenApiMeta;
8046
8041
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8047
8042
  transformer: true;
8048
8043
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
8049
- record: import("@trpc/server").TRPCMutationProcedure<{
8050
- input: {
8051
- operation: "user.create_user";
8052
- requestData: {
8053
- subjectId: string;
8054
- role: string;
8055
- primaryOfficeId: string;
8056
- };
8057
- } | {
8058
- operation: "user.deactivate" | "user.reactivate";
8059
- requestData: {
8060
- subjectId: string;
8061
- reason: string;
8062
- comment?: string | undefined;
8063
- };
8064
- } | {
8065
- 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";
8066
- requestData: {
8067
- subjectId: string;
8068
- };
8069
- } | {
8070
- operation: "user.email_address_changed";
8071
- requestData: {
8072
- subjectId: string;
8073
- };
8074
- responseSummary: {
8075
- email: string;
8076
- };
8077
- } | {
8078
- operation: "user.phone_number_changed";
8079
- requestData: {
8080
- subjectId: string;
8081
- };
8082
- responseSummary: {
8083
- phoneNumber: string;
8084
- };
8085
- };
8086
- output: void;
8087
- meta: import("trpc-to-openapi").OpenApiMeta;
8088
- }>;
8089
8044
  list: import("@trpc/server").TRPCQueryProcedure<{
8090
8045
  input: {
8091
8046
  userId: string;
@@ -8247,20 +8202,150 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8247
8202
  clientId: string;
8248
8203
  clientType: "system" | "user";
8249
8204
  createdAt: string;
8250
- operation: "attachments.upload";
8205
+ operation: "locations.create";
8251
8206
  requestData: {
8252
- transactionId: string;
8253
- path: string | null;
8254
- };
8255
- responseSummary: {
8256
- fileUrl: string;
8207
+ id: string;
8208
+ versionId: string;
8209
+ name: string;
8210
+ externalId?: string | null | undefined;
8211
+ effectiveFrom: string;
8212
+ status: string;
8213
+ administrativeAreaId?: string | null | undefined;
8214
+ locationType?: string | null | undefined;
8257
8215
  };
8258
8216
  } | {
8259
8217
  id: string;
8260
8218
  clientId: string;
8261
8219
  clientType: "system" | "user";
8262
8220
  createdAt: string;
8263
- operation: "user.create_user";
8221
+ operation: "locations.update";
8222
+ requestData: {
8223
+ id: string;
8224
+ versionId: string;
8225
+ name: string;
8226
+ externalId?: string | null | undefined;
8227
+ status: string;
8228
+ effectiveFrom: string;
8229
+ lastVersionId: string;
8230
+ };
8231
+ responseSummary: {
8232
+ previousVersionId: string;
8233
+ versionId: string;
8234
+ changed: {
8235
+ name?: {
8236
+ from: string;
8237
+ to: string;
8238
+ } | undefined;
8239
+ externalId?: {
8240
+ from: string | null;
8241
+ to: string | null;
8242
+ } | undefined;
8243
+ status?: {
8244
+ from: string;
8245
+ to: string;
8246
+ } | undefined;
8247
+ };
8248
+ };
8249
+ } | {
8250
+ id: string;
8251
+ clientId: string;
8252
+ clientType: "system" | "user";
8253
+ createdAt: string;
8254
+ operation: "administrativeAreas.update";
8255
+ requestData: {
8256
+ id: string;
8257
+ versionId: string;
8258
+ name: string;
8259
+ externalId?: string | null | undefined;
8260
+ status: string;
8261
+ effectiveFrom: string;
8262
+ lastVersionId: string;
8263
+ };
8264
+ responseSummary: {
8265
+ previousVersionId: string;
8266
+ versionId: string;
8267
+ changed: {
8268
+ name?: {
8269
+ from: string;
8270
+ to: string;
8271
+ } | undefined;
8272
+ externalId?: {
8273
+ from: string | null;
8274
+ to: string | null;
8275
+ } | undefined;
8276
+ status?: {
8277
+ from: string;
8278
+ to: string;
8279
+ } | undefined;
8280
+ };
8281
+ };
8282
+ } | {
8283
+ id: string;
8284
+ clientId: string;
8285
+ clientType: "system" | "user";
8286
+ createdAt: string;
8287
+ operation: "locations.withdrawVersion";
8288
+ requestData: {
8289
+ id: string;
8290
+ versionId: string;
8291
+ };
8292
+ responseSummary: {
8293
+ effectiveFrom: string;
8294
+ name: string;
8295
+ externalId?: string | null | undefined;
8296
+ status: string;
8297
+ };
8298
+ } | {
8299
+ id: string;
8300
+ clientId: string;
8301
+ clientType: "system" | "user";
8302
+ createdAt: string;
8303
+ operation: "administrativeAreas.withdrawVersion";
8304
+ requestData: {
8305
+ id: string;
8306
+ versionId: string;
8307
+ };
8308
+ responseSummary: {
8309
+ effectiveFrom: string;
8310
+ name: string;
8311
+ externalId?: string | null | undefined;
8312
+ status: string;
8313
+ };
8314
+ } | {
8315
+ id: string;
8316
+ clientId: string;
8317
+ clientType: "system" | "user";
8318
+ createdAt: string;
8319
+ operation: "administrativeAreas.create";
8320
+ requestData: {
8321
+ id: string;
8322
+ versionId: string;
8323
+ name: string;
8324
+ externalId?: string | null | undefined;
8325
+ effectiveFrom: string;
8326
+ status: string;
8327
+ parentId?: string | null | undefined;
8328
+ };
8329
+ } | {
8330
+ id: string;
8331
+ clientId: string;
8332
+ clientType: "system" | "user";
8333
+ createdAt: string;
8334
+ operation: "attachments.upload";
8335
+ requestData: {
8336
+ transactionId: string;
8337
+ eventId?: string | undefined;
8338
+ path: string | null;
8339
+ };
8340
+ responseSummary: {
8341
+ fileUrl: string;
8342
+ };
8343
+ } | {
8344
+ id: string;
8345
+ clientId: string;
8346
+ clientType: "system" | "user";
8347
+ createdAt: string;
8348
+ operation: "user.create_user";
8264
8349
  requestData: {
8265
8350
  subjectId: string;
8266
8351
  role: string;
@@ -8321,18 +8406,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8321
8406
  ctx: Partial<{
8322
8407
  token: `Bearer ${string}`;
8323
8408
  user: {
8324
- id: string & import("zod").$brand<"UUID">;
8325
- type: "system";
8326
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8327
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8328
- signature?: undefined;
8329
- } | {
8330
8409
  id: string & import("zod").$brand<"UUID">;
8331
8410
  role: string;
8332
8411
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8333
8412
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8334
8413
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8335
8414
  type: "user";
8415
+ } | {
8416
+ id: string & import("zod").$brand<"UUID">;
8417
+ type: "system";
8418
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8419
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8420
+ signature?: undefined;
8336
8421
  };
8337
8422
  }>;
8338
8423
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8353,7 +8438,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8353
8438
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8354
8439
  locationType: string | null;
8355
8440
  status: "active" | "inactive";
8356
- effectiveFrom: string;
8357
8441
  versions: {
8358
8442
  versionId: string & import("zod").$brand<"UUID">;
8359
8443
  effectiveFrom: string;
@@ -8364,16 +8448,82 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8364
8448
  }[];
8365
8449
  meta: object;
8366
8450
  }>;
8367
- set: import("@trpc/server").TRPCMutationProcedure<{
8451
+ create: import("@trpc/server").TRPCMutationProcedure<{
8368
8452
  input: {
8369
- id: string;
8453
+ id?: string | undefined;
8454
+ versionId?: string | undefined;
8370
8455
  name: string;
8371
8456
  externalId?: string | null | undefined;
8372
8457
  administrativeAreaId: string | null;
8373
8458
  locationType: string | null;
8374
- }[];
8375
- output: void;
8376
- meta: object;
8459
+ effectiveFrom?: string | undefined;
8460
+ status?: "active" | "inactive" | undefined;
8461
+ };
8462
+ output: {
8463
+ id: string & import("zod").$brand<"UUID">;
8464
+ name: string;
8465
+ externalId?: string | null | undefined;
8466
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8467
+ locationType: string | null;
8468
+ status: "active" | "inactive";
8469
+ versions: {
8470
+ versionId: string & import("zod").$brand<"UUID">;
8471
+ effectiveFrom: string;
8472
+ name: string;
8473
+ externalId?: string | null | undefined;
8474
+ status: "active" | "inactive";
8475
+ }[];
8476
+ };
8477
+ meta: import("trpc-to-openapi").OpenApiMeta;
8478
+ }>;
8479
+ update: import("@trpc/server").TRPCMutationProcedure<{
8480
+ input: {
8481
+ id: string;
8482
+ versionId?: string | undefined;
8483
+ name: string;
8484
+ externalId?: string | null | undefined;
8485
+ status: "active" | "inactive";
8486
+ effectiveFrom?: string | undefined;
8487
+ lastVersionId: string;
8488
+ };
8489
+ output: {
8490
+ id: string & import("zod").$brand<"UUID">;
8491
+ name: string;
8492
+ externalId?: string | null | undefined;
8493
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8494
+ locationType: string | null;
8495
+ status: "active" | "inactive";
8496
+ versions: {
8497
+ versionId: string & import("zod").$brand<"UUID">;
8498
+ effectiveFrom: string;
8499
+ name: string;
8500
+ externalId?: string | null | undefined;
8501
+ status: "active" | "inactive";
8502
+ }[];
8503
+ };
8504
+ meta: import("trpc-to-openapi").OpenApiMeta;
8505
+ }>;
8506
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
8507
+ input: {
8508
+ id: string;
8509
+ versionId: string;
8510
+ };
8511
+ output: {
8512
+ id: string & import("zod").$brand<"UUID">;
8513
+ name: string;
8514
+ externalId?: string | null | undefined;
8515
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8516
+ locationType: string | null;
8517
+ status: "active" | "inactive";
8518
+ versions: {
8519
+ versionId: string & import("zod").$brand<"UUID">;
8520
+ effectiveFrom: string;
8521
+ name: string;
8522
+ externalId?: string | null | undefined;
8523
+ status: "active" | "inactive";
8524
+ }[];
8525
+ };
8526
+ meta: import("trpc-to-openapi").OpenApiMeta;
8377
8527
  }>;
8378
8528
  get: import("@trpc/server").TRPCQueryProcedure<{
8379
8529
  input: {
@@ -8386,7 +8536,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8386
8536
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8387
8537
  locationType: string | null;
8388
8538
  status: "active" | "inactive";
8389
- effectiveFrom: string;
8390
8539
  versions: {
8391
8540
  versionId: string & import("zod").$brand<"UUID">;
8392
8541
  effectiveFrom: string;
@@ -8409,18 +8558,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8409
8558
  ctx: Partial<{
8410
8559
  token: `Bearer ${string}`;
8411
8560
  user: {
8412
- id: string & import("zod").$brand<"UUID">;
8413
- type: "system";
8414
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8415
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8416
- signature?: undefined;
8417
- } | {
8418
8561
  id: string & import("zod").$brand<"UUID">;
8419
8562
  role: string;
8420
8563
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8421
8564
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8422
8565
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8423
8566
  type: "user";
8567
+ } | {
8568
+ id: string & import("zod").$brand<"UUID">;
8569
+ type: "system";
8570
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8571
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8572
+ signature?: undefined;
8424
8573
  };
8425
8574
  }>;
8426
8575
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8431,18 +8580,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8431
8580
  ctx: Partial<{
8432
8581
  token: `Bearer ${string}`;
8433
8582
  user: {
8434
- id: string & import("zod").$brand<"UUID">;
8435
- type: "system";
8436
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8437
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8438
- signature?: undefined;
8439
- } | {
8440
8583
  id: string & import("zod").$brand<"UUID">;
8441
8584
  role: string;
8442
8585
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8443
8586
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8444
8587
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8445
8588
  type: "user";
8589
+ } | {
8590
+ id: string & import("zod").$brand<"UUID">;
8591
+ type: "system";
8592
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8593
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8594
+ signature?: undefined;
8446
8595
  };
8447
8596
  }>;
8448
8597
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8750,7 +8899,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8750
8899
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
8751
8900
  };
8752
8901
  }[];
8753
- 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";
8902
+ 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";
8754
8903
  emptyMessage?: {
8755
8904
  id: string;
8756
8905
  defaultMessage: string;
@@ -8773,18 +8922,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8773
8922
  ctx: Partial<{
8774
8923
  token: `Bearer ${string}`;
8775
8924
  user: {
8776
- id: string & import("zod").$brand<"UUID">;
8777
- type: "system";
8778
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8779
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8780
- signature?: undefined;
8781
- } | {
8782
8925
  id: string & import("zod").$brand<"UUID">;
8783
8926
  role: string;
8784
8927
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8785
8928
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8786
8929
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8787
8930
  type: "user";
8931
+ } | {
8932
+ id: string & import("zod").$brand<"UUID">;
8933
+ type: "system";
8934
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8935
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8936
+ signature?: undefined;
8788
8937
  };
8789
8938
  }>;
8790
8939
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8802,7 +8951,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8802
8951
  externalId?: string | null | undefined;
8803
8952
  parentId: (string & import("zod").$brand<"UUID">) | null;
8804
8953
  status: "active" | "inactive";
8805
- effectiveFrom: string;
8806
8954
  versions: {
8807
8955
  versionId: string & import("zod").$brand<"UUID">;
8808
8956
  effectiveFrom: string;
@@ -8813,33 +8961,96 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8813
8961
  }[];
8814
8962
  meta: import("trpc-to-openapi").OpenApiMeta;
8815
8963
  }>;
8816
- set: import("@trpc/server").TRPCMutationProcedure<{
8964
+ create: import("@trpc/server").TRPCMutationProcedure<{
8817
8965
  input: {
8818
- id: string;
8966
+ id?: string | undefined;
8967
+ versionId?: string | undefined;
8819
8968
  name: string;
8820
8969
  externalId?: string | null | undefined;
8821
8970
  parentId: string | null;
8822
- }[];
8823
- output: void;
8824
- meta: object;
8971
+ effectiveFrom?: string | undefined;
8972
+ status?: "active" | "inactive" | undefined;
8973
+ };
8974
+ output: {
8975
+ id: string & import("zod").$brand<"UUID">;
8976
+ name: string;
8977
+ externalId?: string | null | undefined;
8978
+ parentId: (string & import("zod").$brand<"UUID">) | null;
8979
+ status: "active" | "inactive";
8980
+ versions: {
8981
+ versionId: string & import("zod").$brand<"UUID">;
8982
+ effectiveFrom: string;
8983
+ name: string;
8984
+ externalId?: string | null | undefined;
8985
+ status: "active" | "inactive";
8986
+ }[];
8987
+ };
8988
+ meta: import("trpc-to-openapi").OpenApiMeta;
8989
+ }>;
8990
+ update: import("@trpc/server").TRPCMutationProcedure<{
8991
+ input: {
8992
+ id: string;
8993
+ versionId?: string | undefined;
8994
+ name: string;
8995
+ externalId?: string | null | undefined;
8996
+ status: "active" | "inactive";
8997
+ effectiveFrom?: string | undefined;
8998
+ lastVersionId: string;
8999
+ };
9000
+ output: {
9001
+ id: string & import("zod").$brand<"UUID">;
9002
+ name: string;
9003
+ externalId?: string | null | undefined;
9004
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9005
+ status: "active" | "inactive";
9006
+ versions: {
9007
+ versionId: string & import("zod").$brand<"UUID">;
9008
+ effectiveFrom: string;
9009
+ name: string;
9010
+ externalId?: string | null | undefined;
9011
+ status: "active" | "inactive";
9012
+ }[];
9013
+ };
9014
+ meta: import("trpc-to-openapi").OpenApiMeta;
9015
+ }>;
9016
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
9017
+ input: {
9018
+ id: string;
9019
+ versionId: string;
9020
+ };
9021
+ output: {
9022
+ id: string & import("zod").$brand<"UUID">;
9023
+ name: string;
9024
+ externalId?: string | null | undefined;
9025
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9026
+ status: "active" | "inactive";
9027
+ versions: {
9028
+ versionId: string & import("zod").$brand<"UUID">;
9029
+ effectiveFrom: string;
9030
+ name: string;
9031
+ externalId?: string | null | undefined;
9032
+ status: "active" | "inactive";
9033
+ }[];
9034
+ };
9035
+ meta: import("trpc-to-openapi").OpenApiMeta;
8825
9036
  }>;
8826
9037
  }>>;
8827
9038
  integrations: import("@trpc/server").TRPCBuiltRouter<{
8828
9039
  ctx: Partial<{
8829
9040
  token: `Bearer ${string}`;
8830
9041
  user: {
8831
- id: string & import("zod").$brand<"UUID">;
8832
- type: "system";
8833
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8834
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8835
- signature?: undefined;
8836
- } | {
8837
9042
  id: string & import("zod").$brand<"UUID">;
8838
9043
  role: string;
8839
9044
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8840
9045
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8841
9046
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8842
9047
  type: "user";
9048
+ } | {
9049
+ id: string & import("zod").$brand<"UUID">;
9050
+ type: "system";
9051
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9052
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9053
+ signature?: undefined;
8843
9054
  };
8844
9055
  }>;
8845
9056
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8850,6 +9061,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8850
9061
  input: {
8851
9062
  name: string;
8852
9063
  scopes: string[];
9064
+ credentials?: {
9065
+ clientId: string;
9066
+ clientSecret: string;
9067
+ } | undefined;
8853
9068
  };
8854
9069
  output: {
8855
9070
  clientId: string;
@@ -8880,7 +9095,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8880
9095
  scopes: string[];
8881
9096
  status: string;
8882
9097
  createdAt: string;
8883
- createdBy: string & import("zod").$brand<"UUID">;
9098
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8884
9099
  }[];
8885
9100
  meta: import("trpc-to-openapi").OpenApiMeta;
8886
9101
  }>;
@@ -8895,7 +9110,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8895
9110
  status: string;
8896
9111
  shaSecret: string | null;
8897
9112
  createdAt: string;
8898
- createdBy: string & import("zod").$brand<"UUID">;
9113
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8899
9114
  };
8900
9115
  meta: import("trpc-to-openapi").OpenApiMeta;
8901
9116
  }>;
@@ -8941,23 +9156,381 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8941
9156
  };
8942
9157
  meta: import("trpc-to-openapi").OpenApiMeta;
8943
9158
  }>;
9159
+ audit: import("@trpc/server").TRPCQueryProcedure<{
9160
+ input: {
9161
+ id: string;
9162
+ skip?: number | undefined;
9163
+ count?: number | undefined;
9164
+ timeStart?: string | undefined;
9165
+ timeEnd?: string | undefined;
9166
+ };
9167
+ output: {
9168
+ results: ({
9169
+ id: string;
9170
+ clientId: string;
9171
+ clientType: "system" | "user";
9172
+ createdAt: string;
9173
+ operation: "event.create";
9174
+ requestData: {
9175
+ transactionId: string;
9176
+ type: string;
9177
+ createdAtLocation: string | null;
9178
+ };
9179
+ responseSummary: {
9180
+ eventId: string;
9181
+ trackingId: string;
9182
+ };
9183
+ } | {
9184
+ id: string;
9185
+ clientId: string;
9186
+ clientType: "system" | "user";
9187
+ createdAt: string;
9188
+ operation: "event.get";
9189
+ requestData: {
9190
+ eventId: string;
9191
+ };
9192
+ responseSummary: {
9193
+ eventType: string;
9194
+ trackingId: string;
9195
+ };
9196
+ } | {
9197
+ id: string;
9198
+ clientId: string;
9199
+ createdAt: string;
9200
+ operation: "event.search";
9201
+ clientType: "system";
9202
+ requestData: {
9203
+ query: Record<string, unknown> | null;
9204
+ limit: number | null;
9205
+ offset: number | null;
9206
+ };
9207
+ responseSummary: {
9208
+ total: number;
9209
+ eventIds: string[];
9210
+ };
9211
+ } | {
9212
+ id: string;
9213
+ clientId: string;
9214
+ clientType: "system" | "user";
9215
+ createdAt: string;
9216
+ 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";
9217
+ requestData: {
9218
+ eventId: string;
9219
+ actionType: string;
9220
+ eventType: string;
9221
+ trackingId: string;
9222
+ transactionId: string;
9223
+ };
9224
+ } | {
9225
+ id: string;
9226
+ clientId: string;
9227
+ clientType: "system" | "user";
9228
+ createdAt: string;
9229
+ operation: "event.actions.custom.request";
9230
+ requestData: {
9231
+ eventId: string;
9232
+ actionType: "CUSTOM";
9233
+ customAction: string;
9234
+ eventType: string;
9235
+ trackingId: string;
9236
+ transactionId: string;
9237
+ };
9238
+ } | {
9239
+ id: string;
9240
+ clientId: string;
9241
+ clientType: "system" | "user";
9242
+ createdAt: string;
9243
+ operation: "integrations.create";
9244
+ requestData: {
9245
+ name: string;
9246
+ scopes: string[];
9247
+ };
9248
+ responseSummary: {
9249
+ clientId: string;
9250
+ };
9251
+ } | {
9252
+ id: string;
9253
+ clientId: string;
9254
+ clientType: "system" | "user";
9255
+ createdAt: string;
9256
+ operation: "integrations.refreshToken";
9257
+ requestData: {
9258
+ clientId: string;
9259
+ };
9260
+ responseSummary: {
9261
+ clientId: string;
9262
+ };
9263
+ } | {
9264
+ id: string;
9265
+ clientId: string;
9266
+ clientType: "system" | "user";
9267
+ createdAt: string;
9268
+ operation: "integrations.deactivate";
9269
+ requestData: {
9270
+ id: string;
9271
+ };
9272
+ responseSummary: {
9273
+ id: string;
9274
+ status: string;
9275
+ };
9276
+ } | {
9277
+ id: string;
9278
+ clientId: string;
9279
+ clientType: "system" | "user";
9280
+ createdAt: string;
9281
+ operation: "integrations.activate";
9282
+ requestData: {
9283
+ id: string;
9284
+ };
9285
+ responseSummary: {
9286
+ id: string;
9287
+ status: string;
9288
+ };
9289
+ } | {
9290
+ id: string;
9291
+ clientId: string;
9292
+ clientType: "system" | "user";
9293
+ createdAt: string;
9294
+ operation: "integrations.delete";
9295
+ requestData: {
9296
+ id: string;
9297
+ };
9298
+ responseSummary: {
9299
+ id: string;
9300
+ name: string;
9301
+ };
9302
+ } | {
9303
+ id: string;
9304
+ clientId: string;
9305
+ clientType: "system" | "user";
9306
+ createdAt: string;
9307
+ operation: "integrations.refreshSecret";
9308
+ requestData: {
9309
+ id: string;
9310
+ };
9311
+ responseSummary: {
9312
+ clientId: string;
9313
+ };
9314
+ } | {
9315
+ id: string;
9316
+ clientId: string;
9317
+ clientType: "system" | "user";
9318
+ createdAt: string;
9319
+ operation: "locations.create";
9320
+ requestData: {
9321
+ id: string;
9322
+ versionId: string;
9323
+ name: string;
9324
+ externalId?: string | null | undefined;
9325
+ effectiveFrom: string;
9326
+ status: string;
9327
+ administrativeAreaId?: string | null | undefined;
9328
+ locationType?: string | null | undefined;
9329
+ };
9330
+ } | {
9331
+ id: string;
9332
+ clientId: string;
9333
+ clientType: "system" | "user";
9334
+ createdAt: string;
9335
+ operation: "locations.update";
9336
+ requestData: {
9337
+ id: string;
9338
+ versionId: string;
9339
+ name: string;
9340
+ externalId?: string | null | undefined;
9341
+ status: string;
9342
+ effectiveFrom: string;
9343
+ lastVersionId: string;
9344
+ };
9345
+ responseSummary: {
9346
+ previousVersionId: string;
9347
+ versionId: string;
9348
+ changed: {
9349
+ name?: {
9350
+ from: string;
9351
+ to: string;
9352
+ } | undefined;
9353
+ externalId?: {
9354
+ from: string | null;
9355
+ to: string | null;
9356
+ } | undefined;
9357
+ status?: {
9358
+ from: string;
9359
+ to: string;
9360
+ } | undefined;
9361
+ };
9362
+ };
9363
+ } | {
9364
+ id: string;
9365
+ clientId: string;
9366
+ clientType: "system" | "user";
9367
+ createdAt: string;
9368
+ operation: "administrativeAreas.update";
9369
+ requestData: {
9370
+ id: string;
9371
+ versionId: string;
9372
+ name: string;
9373
+ externalId?: string | null | undefined;
9374
+ status: string;
9375
+ effectiveFrom: string;
9376
+ lastVersionId: string;
9377
+ };
9378
+ responseSummary: {
9379
+ previousVersionId: string;
9380
+ versionId: string;
9381
+ changed: {
9382
+ name?: {
9383
+ from: string;
9384
+ to: string;
9385
+ } | undefined;
9386
+ externalId?: {
9387
+ from: string | null;
9388
+ to: string | null;
9389
+ } | undefined;
9390
+ status?: {
9391
+ from: string;
9392
+ to: string;
9393
+ } | undefined;
9394
+ };
9395
+ };
9396
+ } | {
9397
+ id: string;
9398
+ clientId: string;
9399
+ clientType: "system" | "user";
9400
+ createdAt: string;
9401
+ operation: "locations.withdrawVersion";
9402
+ requestData: {
9403
+ id: string;
9404
+ versionId: string;
9405
+ };
9406
+ responseSummary: {
9407
+ effectiveFrom: string;
9408
+ name: string;
9409
+ externalId?: string | null | undefined;
9410
+ status: string;
9411
+ };
9412
+ } | {
9413
+ id: string;
9414
+ clientId: string;
9415
+ clientType: "system" | "user";
9416
+ createdAt: string;
9417
+ operation: "administrativeAreas.withdrawVersion";
9418
+ requestData: {
9419
+ id: string;
9420
+ versionId: string;
9421
+ };
9422
+ responseSummary: {
9423
+ effectiveFrom: string;
9424
+ name: string;
9425
+ externalId?: string | null | undefined;
9426
+ status: string;
9427
+ };
9428
+ } | {
9429
+ id: string;
9430
+ clientId: string;
9431
+ clientType: "system" | "user";
9432
+ createdAt: string;
9433
+ operation: "administrativeAreas.create";
9434
+ requestData: {
9435
+ id: string;
9436
+ versionId: string;
9437
+ name: string;
9438
+ externalId?: string | null | undefined;
9439
+ effectiveFrom: string;
9440
+ status: string;
9441
+ parentId?: string | null | undefined;
9442
+ };
9443
+ } | {
9444
+ id: string;
9445
+ clientId: string;
9446
+ clientType: "system" | "user";
9447
+ createdAt: string;
9448
+ operation: "attachments.upload";
9449
+ requestData: {
9450
+ transactionId: string;
9451
+ eventId?: string | undefined;
9452
+ path: string | null;
9453
+ };
9454
+ responseSummary: {
9455
+ fileUrl: string;
9456
+ };
9457
+ } | {
9458
+ id: string;
9459
+ clientId: string;
9460
+ clientType: "system" | "user";
9461
+ createdAt: string;
9462
+ operation: "user.create_user";
9463
+ requestData: {
9464
+ subjectId: string;
9465
+ role: string;
9466
+ primaryOfficeId: string;
9467
+ };
9468
+ } | {
9469
+ id: string;
9470
+ clientId: string;
9471
+ clientType: "system" | "user";
9472
+ createdAt: string;
9473
+ operation: "user.deactivate" | "user.reactivate";
9474
+ requestData: {
9475
+ subjectId: string;
9476
+ reason: string;
9477
+ comment?: string | undefined;
9478
+ };
9479
+ } | {
9480
+ id: string;
9481
+ clientId: string;
9482
+ clientType: "system" | "user";
9483
+ createdAt: string;
9484
+ 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";
9485
+ requestData: {
9486
+ subjectId: string;
9487
+ };
9488
+ } | {
9489
+ id: string;
9490
+ clientId: string;
9491
+ clientType: "system" | "user";
9492
+ createdAt: string;
9493
+ operation: "user.email_address_changed";
9494
+ requestData: {
9495
+ subjectId: string;
9496
+ };
9497
+ responseSummary: {
9498
+ email: string;
9499
+ };
9500
+ } | {
9501
+ id: string;
9502
+ clientId: string;
9503
+ clientType: "system" | "user";
9504
+ createdAt: string;
9505
+ operation: "user.phone_number_changed";
9506
+ requestData: {
9507
+ subjectId: string;
9508
+ };
9509
+ responseSummary: {
9510
+ phoneNumber: string;
9511
+ };
9512
+ })[];
9513
+ total: number;
9514
+ };
9515
+ meta: import("trpc-to-openapi").OpenApiMeta;
9516
+ }>;
8944
9517
  }>>;
8945
9518
  attachments: import("@trpc/server").TRPCBuiltRouter<{
8946
9519
  ctx: Partial<{
8947
9520
  token: `Bearer ${string}`;
8948
9521
  user: {
8949
- id: string & import("zod").$brand<"UUID">;
8950
- type: "system";
8951
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8952
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8953
- signature?: undefined;
8954
- } | {
8955
9522
  id: string & import("zod").$brand<"UUID">;
8956
9523
  role: string;
8957
9524
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8958
9525
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8959
9526
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8960
9527
  type: "user";
9528
+ } | {
9529
+ id: string & import("zod").$brand<"UUID">;
9530
+ type: "system";
9531
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9532
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9533
+ signature?: undefined;
8961
9534
  };
8962
9535
  }>;
8963
9536
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8971,6 +9544,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8971
9544
  } | {
8972
9545
  file: unknown;
8973
9546
  transactionId: unknown;
9547
+ eventId: unknown;
8974
9548
  path: unknown;
8975
9549
  };
8976
9550
  output: string;
@@ -8981,18 +9555,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8981
9555
  ctx: Partial<{
8982
9556
  token: `Bearer ${string}`;
8983
9557
  user: {
8984
- id: string & import("zod").$brand<"UUID">;
8985
- type: "system";
8986
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8987
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8988
- signature?: undefined;
8989
- } | {
8990
9558
  id: string & import("zod").$brand<"UUID">;
8991
9559
  role: string;
8992
9560
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8993
9561
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8994
9562
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8995
9563
  type: "user";
9564
+ } | {
9565
+ id: string & import("zod").$brand<"UUID">;
9566
+ type: "system";
9567
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9568
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9569
+ signature?: undefined;
8996
9570
  };
8997
9571
  }>;
8998
9572
  meta: import("trpc-to-openapi").OpenApiMeta;