@opencrvs/toolkit 2.1.0-rc.2ec6bd5 → 2.1.0-rc.3028b2e

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 (247) 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 +3778 -1231
  11. package/dist/commons/api/router.d.ts +1010 -414
  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 +246 -13
  40. package/dist/commons/events/mocks.test.utils.d.ts +46 -2
  41. package/dist/commons/events/scopes.d.ts +21 -1
  42. package/dist/commons/events/test.utils.d.ts +82 -29
  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/derived-variables.d.ts +12 -0
  52. package/dist/environment/derived-variables.d.ts.map +1 -1
  53. package/dist/environment/derived-variables.js +14 -0
  54. package/dist/environment/index.d.ts +1 -0
  55. package/dist/environment/index.d.ts.map +1 -1
  56. package/dist/environment/index.js +12 -1
  57. package/dist/environment/logger.d.ts +15 -3
  58. package/dist/environment/logger.d.ts.map +1 -1
  59. package/dist/environment/manage-users.js +1 -1
  60. package/dist/environment/paths.d.ts +7 -0
  61. package/dist/environment/paths.d.ts.map +1 -0
  62. package/dist/environment/paths.js +72 -0
  63. package/dist/environment/questions.d.ts.map +1 -1
  64. package/dist/environment/questions.js +20 -14
  65. package/dist/environment/setup-environment.d.ts +1 -1
  66. package/dist/environment/setup-environment.d.ts.map +1 -1
  67. package/dist/environment/setup-environment.js +603 -562
  68. package/dist/environment/swarm-to-k8s.js +3 -4
  69. package/dist/environment/templates.d.ts +0 -1
  70. package/dist/environment/templates.d.ts.map +1 -1
  71. package/dist/environment/templates.js +5 -9
  72. package/dist/environment/update-workflows.d.ts.map +1 -1
  73. package/dist/environment/update-workflows.js +21 -5
  74. package/dist/environment/upgrade.d.ts +2 -0
  75. package/dist/environment/upgrade.d.ts.map +1 -0
  76. package/dist/environment/upgrade.js +82 -0
  77. package/dist/environment/users.js +11 -13
  78. package/dist/environment/utils.d.ts +0 -12
  79. package/dist/environment/utils.d.ts.map +1 -1
  80. package/dist/environment/utils.js +1 -28
  81. package/dist/events/index.js +7841 -7208
  82. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  83. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  84. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  85. package/dist/migrations/v2.1/add-translations.d.ts +9 -0
  86. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
  87. package/dist/migrations/v2.1/add-translations.js +149 -0
  88. package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/enable-telemetry.d.ts} +1 -1
  89. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  90. package/dist/migrations/v2.1/enable-telemetry.js +455 -0
  91. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  92. package/dist/migrations/v2.1/index.js +1952 -0
  93. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +14 -0
  94. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
  95. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
  96. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
  97. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
  98. package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
  99. package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
  100. package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
  101. package/dist/migrations/v2.1/remove-sentry.js +354 -0
  102. package/dist/migrations/{v2.0/create-events-index.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
  103. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
  104. package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
  105. package/dist/migrations/v2.1/template-files.d.ts +8 -0
  106. package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
  107. package/dist/migrations/v2.1/template-files.js +49 -0
  108. package/dist/migrations/v2.1/upgrade-tilt.d.ts +8 -0
  109. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
  110. package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
  111. package/dist/notification/index.js +1923 -1481
  112. package/dist/scopes/index.d.ts +614 -36
  113. package/dist/scopes/index.js +351 -65
  114. package/dist/telemetry/index.d.ts +45 -0
  115. package/dist/telemetry/index.d.ts.map +1 -0
  116. package/dist/telemetry/index.js +43 -0
  117. package/dist/templates/charts-values/dependencies/values.yaml +8 -0
  118. package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
  119. package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
  120. package/dist/templates/charts-values/traefik/values.yaml +23 -9
  121. package/dist/templates/countryconfig-template/.tiltignore +1 -0
  122. package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
  123. package/dist/templates/countryconfig-template/Tiltfile +112 -0
  124. package/dist/templates/countryconfig-template/assets/README.md +1 -0
  125. package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
  126. package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
  127. package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
  128. package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
  129. package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
  130. package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
  131. package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
  132. package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
  133. package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
  134. package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
  135. package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
  136. package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
  137. package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
  138. package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
  139. package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
  140. package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
  141. package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
  142. package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
  143. package/dist/templates/countryconfig-template/tilt/common.tilt +145 -0
  144. package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
  145. package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
  146. package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
  147. package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
  148. package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
  149. package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
  150. package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
  151. package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
  152. package/dist/templates/inventory/inventory.template.yml +1 -3
  153. package/dist/translations/template.d.ts +11 -0
  154. package/dist/translations/template.d.ts.map +1 -0
  155. package/dist/translations/template.js +100 -0
  156. package/dist/verify/endpoints.d.ts +2 -0
  157. package/dist/verify/endpoints.d.ts.map +1 -0
  158. package/dist/verify/endpoints.js +510 -0
  159. package/opencrvs-toolkit-2.1.0-rc.3028b2e.tgz +0 -0
  160. package/package.json +13 -6
  161. package/tsconfig.build.json +11 -0
  162. package/tsconfig.build.tsbuildinfo +1 -0
  163. package/tsconfig.json +3 -0
  164. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  165. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  166. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
  167. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
  168. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
  169. package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
  170. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
  171. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
  172. package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
  173. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  174. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  175. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
  176. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  177. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  178. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
  179. package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
  180. package/dist/migrations/v2.0/create-events-index.js +0 -325
  181. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
  182. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
  183. package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
  184. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
  185. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
  186. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
  187. package/dist/migrations/v2.0/index.d.ts +0 -13
  188. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  189. package/dist/migrations/v2.0/index.js +0 -103
  190. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  191. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  192. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
  193. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
  194. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
  195. package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
  196. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
  197. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
  198. package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
  199. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  200. package/dist/migrations/v2.0/migrate-scopes.js +0 -305
  201. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  202. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  203. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
  204. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
  205. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
  206. package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
  207. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  208. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  209. package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
  210. package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
  211. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
  212. package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
  213. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  214. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  215. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
  216. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
  217. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
  218. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
  219. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
  220. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
  221. package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
  222. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
  223. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
  224. package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
  225. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  226. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  227. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
  228. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  229. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  230. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
  231. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
  232. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
  233. package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
  234. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  235. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  236. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  237. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
  238. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
  239. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
  240. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
  241. package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
  242. package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
  243. package/dist/migrations/v2.0/update-package-json.js +0 -105
  244. package/dist/templates/inventory/production.example.yml +0 -77
  245. package/dist/templates/inventory/qa.example.yml +0 -48
  246. package/opencrvs-toolkit-2.1.0-rc.2ec6bd5.tgz +0 -0
  247. package/tsconfig.tsbuildinfo +0 -1
@@ -3,17 +3,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3
3
  token: `Bearer ${string}`;
4
4
  user: {
5
5
  id: string & import("zod").$brand<"UUID">;
6
- type: "system";
7
- signature?: undefined;
8
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10
- } | {
11
- id: string & import("zod").$brand<"UUID">;
12
- type: "user";
13
6
  role: string;
14
7
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
15
8
  primaryOfficeId: string & import("zod").$brand<"UUID">;
16
9
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -25,17 +25,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25
25
  token: `Bearer ${string}`;
26
26
  user: {
27
27
  id: string & import("zod").$brand<"UUID">;
28
- type: "system";
29
- signature?: undefined;
30
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
32
- } | {
33
- id: string & import("zod").$brand<"UUID">;
34
- type: "user";
35
28
  role: string;
36
29
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
37
30
  primaryOfficeId: string & import("zod").$brand<"UUID">;
38
31
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -47,17 +47,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
47
47
  token: `Bearer ${string}`;
48
48
  user: {
49
49
  id: string & import("zod").$brand<"UUID">;
50
- type: "system";
51
- signature?: undefined;
52
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
54
- } | {
55
- id: string & import("zod").$brand<"UUID">;
56
- type: "user";
57
50
  role: string;
58
51
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
59
52
  primaryOfficeId: string & import("zod").$brand<"UUID">;
60
53
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -93,17 +95,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
93
95
  token: `Bearer ${string}`;
94
96
  user: {
95
97
  id: string & import("zod").$brand<"UUID">;
96
- type: "system";
97
- signature?: undefined;
98
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
100
- } | {
101
- id: string & import("zod").$brand<"UUID">;
102
- type: "user";
103
98
  role: string;
104
99
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
105
100
  primaryOfficeId: string & import("zod").$brand<"UUID">;
106
101
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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
  };
@@ -1107,17 +1108,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1107
1108
  token: `Bearer ${string}`;
1108
1109
  user: {
1109
1110
  id: string & import("zod").$brand<"UUID">;
1110
- type: "system";
1111
- signature?: undefined;
1112
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1113
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1114
- } | {
1115
- id: string & import("zod").$brand<"UUID">;
1116
- type: "user";
1117
1111
  role: string;
1118
1112
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1119
1113
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1120
1114
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -1132,7 +1133,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1132
1133
  transactionId: string;
1133
1134
  createdAt: string;
1134
1135
  action: {
1135
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1136
1136
  transactionId: string;
1137
1137
  createdByUserType: "system" | "user";
1138
1138
  createdAt: string;
@@ -1143,22 +1143,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1143
1143
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1144
1144
  status: "Accepted" | "Rejected" | "Requested";
1145
1145
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1146
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1146
1147
  };
1147
1148
  }[];
1148
1149
  meta: import("trpc-to-openapi").OpenApiMeta;
1149
1150
  }>;
1150
1151
  create: import("@trpc/server").TRPCMutationProcedure<{
1151
1152
  input: {
1153
+ eventId: string;
1152
1154
  transactionId: string;
1153
- createdAtLocation?: string | null | undefined;
1154
1155
  declaration?: Record<string, unknown> | undefined;
1155
1156
  annotation?: Record<string, unknown> | undefined;
1156
1157
  originalActionId?: string | undefined;
1157
- eventId: string;
1158
1158
  keepAssignment?: boolean | undefined;
1159
1159
  keepAssignmentIfAccepted?: boolean | undefined;
1160
1160
  keepAssignmentIfRejected?: boolean | 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";
1161
+ createdAtLocation?: string | null | undefined;
1162
+ type: "DECLARE";
1162
1163
  status: "Accepted" | "Rejected" | "Requested";
1163
1164
  };
1164
1165
  output: {
@@ -1167,7 +1168,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1167
1168
  transactionId: string;
1168
1169
  createdAt: string;
1169
1170
  action: {
1170
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1171
1171
  transactionId: string;
1172
1172
  createdByUserType: "system" | "user";
1173
1173
  createdAt: string;
@@ -1178,27 +1178,60 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1178
1178
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1179
1179
  status: "Accepted" | "Rejected" | "Requested";
1180
1180
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1181
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1181
1182
  };
1182
1183
  };
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
- signature?: undefined;
1193
1200
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1194
1201
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1195
- } | {
1202
+ signature?: undefined;
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
- type: "user";
1198
1224
  role: string;
1199
1225
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1200
1226
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1201
1227
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -1210,17 +1243,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1210
1243
  token: `Bearer ${string}`;
1211
1244
  user: {
1212
1245
  id: string & import("zod").$brand<"UUID">;
1213
- type: "system";
1214
- signature?: undefined;
1215
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1216
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1217
- } | {
1218
- id: string & import("zod").$brand<"UUID">;
1219
- type: "user";
1220
1246
  role: string;
1221
1247
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1222
1248
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1223
1249
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -1514,17 +1547,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1514
1547
  token: `Bearer ${string}`;
1515
1548
  user: {
1516
1549
  id: string & import("zod").$brand<"UUID">;
1517
- type: "system";
1518
- signature?: undefined;
1519
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1520
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1521
- } | {
1522
- id: string & import("zod").$brand<"UUID">;
1523
- type: "user";
1524
1550
  role: string;
1525
1551
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1526
1552
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1527
1553
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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
  };
@@ -1870,17 +1903,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1870
1903
  token: `Bearer ${string}`;
1871
1904
  user: {
1872
1905
  id: string & import("zod").$brand<"UUID">;
1873
- type: "system";
1874
- signature?: undefined;
1875
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1876
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1877
- } | {
1878
- id: string & import("zod").$brand<"UUID">;
1879
- type: "user";
1880
1906
  role: string;
1881
1907
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1882
1908
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1883
1909
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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
  };
@@ -2503,17 +2536,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2503
2536
  token: `Bearer ${string}`;
2504
2537
  user: {
2505
2538
  id: string & import("zod").$brand<"UUID">;
2506
- type: "system";
2507
- signature?: undefined;
2508
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2509
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2510
- } | {
2511
- id: string & import("zod").$brand<"UUID">;
2512
- type: "user";
2513
2539
  role: string;
2514
2540
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2515
2541
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2516
2542
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -2807,17 +2840,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2807
2840
  token: `Bearer ${string}`;
2808
2841
  user: {
2809
2842
  id: string & import("zod").$brand<"UUID">;
2810
- type: "system";
2811
- signature?: undefined;
2812
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2813
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2814
- } | {
2815
- id: string & import("zod").$brand<"UUID">;
2816
- type: "user";
2817
2843
  role: string;
2818
2844
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2819
2845
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2820
2846
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -3111,17 +3144,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3111
3144
  token: `Bearer ${string}`;
3112
3145
  user: {
3113
3146
  id: string & import("zod").$brand<"UUID">;
3114
- type: "system";
3115
- signature?: undefined;
3116
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3117
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3118
- } | {
3119
- id: string & import("zod").$brand<"UUID">;
3120
- type: "user";
3121
3147
  role: string;
3122
3148
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3123
3149
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3124
3150
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -3415,17 +3448,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3415
3448
  token: `Bearer ${string}`;
3416
3449
  user: {
3417
3450
  id: string & import("zod").$brand<"UUID">;
3418
- type: "system";
3419
- signature?: undefined;
3420
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3421
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3422
- } | {
3423
- id: string & import("zod").$brand<"UUID">;
3424
- type: "user";
3425
3451
  role: string;
3426
3452
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3427
3453
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3428
3454
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -3719,17 +3752,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3719
3752
  token: `Bearer ${string}`;
3720
3753
  user: {
3721
3754
  id: string & import("zod").$brand<"UUID">;
3722
- type: "system";
3723
- signature?: undefined;
3724
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3725
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3726
- } | {
3727
- id: string & import("zod").$brand<"UUID">;
3728
- type: "user";
3729
3755
  role: string;
3730
3756
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3731
3757
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3732
3758
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -4023,17 +4056,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4023
4056
  token: `Bearer ${string}`;
4024
4057
  user: {
4025
4058
  id: string & import("zod").$brand<"UUID">;
4026
- type: "system";
4027
- signature?: undefined;
4028
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4029
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4030
- } | {
4031
- id: string & import("zod").$brand<"UUID">;
4032
- type: "user";
4033
4059
  role: string;
4034
4060
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4035
4061
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4036
4062
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4063
+ type: "user";
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;
4037
4070
  };
4038
4071
  }>;
4039
4072
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -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;
@@ -4327,17 +4360,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4327
4360
  token: `Bearer ${string}`;
4328
4361
  user: {
4329
4362
  id: string & import("zod").$brand<"UUID">;
4330
- type: "system";
4331
- signature?: undefined;
4332
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4333
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4334
- } | {
4335
- id: string & import("zod").$brand<"UUID">;
4336
- type: "user";
4337
4363
  role: string;
4338
4364
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4339
4365
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4340
4366
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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
  };
@@ -4961,17 +4994,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4961
4994
  token: `Bearer ${string}`;
4962
4995
  user: {
4963
4996
  id: string & import("zod").$brand<"UUID">;
4964
- type: "system";
4965
- signature?: undefined;
4966
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4967
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4968
- } | {
4969
- id: string & import("zod").$brand<"UUID">;
4970
- type: "user";
4971
4997
  role: string;
4972
4998
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4973
4999
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4974
5000
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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
  }>>;
@@ -5654,17 +5687,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5654
5687
  token: `Bearer ${string}`;
5655
5688
  user: {
5656
5689
  id: string & import("zod").$brand<"UUID">;
5657
- type: "system";
5658
- signature?: undefined;
5659
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5660
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5661
- } | {
5662
- id: string & import("zod").$brand<"UUID">;
5663
- type: "user";
5664
5690
  role: string;
5665
5691
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5666
5692
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5667
5693
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -5676,17 +5709,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5676
5709
  token: `Bearer ${string}`;
5677
5710
  user: {
5678
5711
  id: string & import("zod").$brand<"UUID">;
5679
- type: "system";
5680
- signature?: undefined;
5681
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5682
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5683
- } | {
5684
- id: string & import("zod").$brand<"UUID">;
5685
- type: "user";
5686
5712
  role: string;
5687
5713
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5688
5714
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5689
5715
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -5980,17 +6013,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5980
6013
  token: `Bearer ${string}`;
5981
6014
  user: {
5982
6015
  id: string & import("zod").$brand<"UUID">;
5983
- type: "system";
5984
- signature?: undefined;
5985
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5986
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5987
- } | {
5988
- id: string & import("zod").$brand<"UUID">;
5989
- type: "user";
5990
6016
  role: string;
5991
6017
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5992
6018
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5993
6019
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -6284,17 +6317,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6284
6317
  token: `Bearer ${string}`;
6285
6318
  user: {
6286
6319
  id: string & import("zod").$brand<"UUID">;
6287
- type: "system";
6288
- signature?: undefined;
6289
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6290
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6291
- } | {
6292
- id: string & import("zod").$brand<"UUID">;
6293
- type: "user";
6294
6320
  role: string;
6295
6321
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6296
6322
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6297
6323
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -6589,17 +6622,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6589
6622
  token: `Bearer ${string}`;
6590
6623
  user: {
6591
6624
  id: string & import("zod").$brand<"UUID">;
6592
- type: "system";
6593
- signature?: undefined;
6594
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6595
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6596
- } | {
6597
- id: string & import("zod").$brand<"UUID">;
6598
- type: "user";
6599
6625
  role: string;
6600
6626
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6601
6627
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6602
6628
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -7669,17 +7702,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7669
7702
  token: `Bearer ${string}`;
7670
7703
  user: {
7671
7704
  id: string & import("zod").$brand<"UUID">;
7672
- type: "system";
7673
- signature?: undefined;
7674
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7675
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7676
- } | {
7677
- id: string & import("zod").$brand<"UUID">;
7678
- type: "user";
7679
7705
  role: string;
7680
7706
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7681
7707
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7682
7708
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -7722,17 +7755,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7722
7755
  }>;
7723
7756
  create: import("@trpc/server").TRPCMutationProcedure<{
7724
7757
  input: {
7725
- data?: Record<string, unknown> | undefined;
7726
7758
  name: {
7727
7759
  firstname: string;
7728
7760
  surname: string;
7729
7761
  };
7730
- email?: string | undefined;
7731
7762
  role: string;
7732
- fullHonorificName?: string | undefined;
7733
- device?: string | undefined;
7734
7763
  primaryOfficeId: string;
7764
+ device?: string | undefined;
7765
+ fullHonorificName?: string | undefined;
7735
7766
  mobile?: string | undefined;
7767
+ email?: string | undefined;
7768
+ data?: Record<string, unknown> | undefined;
7736
7769
  username?: undefined;
7737
7770
  password?: undefined;
7738
7771
  signature?: {
@@ -7764,17 +7797,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7764
7797
  }>;
7765
7798
  update: import("@trpc/server").TRPCMutationProcedure<{
7766
7799
  input: {
7767
- data?: Record<string, unknown> | undefined;
7768
7800
  name?: {
7769
7801
  firstname: string;
7770
7802
  surname: string;
7771
7803
  } | undefined;
7772
- email?: string | undefined;
7773
7804
  role?: string | undefined;
7774
- fullHonorificName?: string | undefined;
7775
- device?: string | undefined;
7776
7805
  primaryOfficeId?: string | undefined;
7806
+ device?: string | undefined;
7807
+ fullHonorificName?: string | undefined;
7777
7808
  mobile?: string | undefined;
7809
+ email?: string | undefined;
7810
+ data?: Record<string, unknown> | undefined;
7778
7811
  signature?: {
7779
7812
  path: string;
7780
7813
  originalFilename: string;
@@ -7808,20 +7841,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7808
7841
  input: string[];
7809
7842
  output: ({
7810
7843
  id: string & import("zod").$brand<"UUID">;
7811
- type: "user";
7812
7844
  name: {
7813
7845
  firstname: string;
7814
7846
  surname: string;
7815
7847
  };
7816
7848
  role: string;
7817
- fullHonorificName?: string | undefined;
7818
7849
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7819
7850
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7820
7851
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7852
+ fullHonorificName?: string | undefined;
7853
+ type: "user";
7821
7854
  } | {
7822
7855
  id: string & import("zod").$brand<"UUID">;
7823
- type: "system";
7824
7856
  name: string;
7857
+ type: "system";
7825
7858
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7826
7859
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7827
7860
  })[];
@@ -7834,88 +7867,50 @@ 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
  };
7842
7875
  output: ({
7843
7876
  id: string & import("zod").$brand<"UUID">;
7844
- type: "user";
7845
7877
  name: {
7846
7878
  firstname: string;
7847
7879
  surname: string;
7848
7880
  };
7849
7881
  role: string;
7850
- fullHonorificName?: string | undefined;
7851
7882
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7852
7883
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7853
7884
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7885
+ fullHonorificName?: string | undefined;
7886
+ type: "user";
7854
7887
  status: "active" | "deactivated" | "pending";
7855
7888
  } | {
7856
7889
  id: string & import("zod").$brand<"UUID">;
7857
- type: "system";
7858
7890
  name: string;
7891
+ type: "system";
7859
7892
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7860
7893
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7861
7894
  status?: "active" | "deactivated" | "pending" | undefined;
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
7902
  id: string & import("zod").$brand<"UUID">;
7908
- type: "system";
7909
- signature?: undefined;
7910
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7911
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7912
- } | {
7913
- id: string & import("zod").$brand<"UUID">;
7914
- type: "user";
7915
7903
  role: string;
7916
7904
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7917
7905
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7918
7906
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -8029,63 +8024,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8029
8024
  token: `Bearer ${string}`;
8030
8025
  user: {
8031
8026
  id: string & import("zod").$brand<"UUID">;
8032
- type: "system";
8033
- signature?: undefined;
8034
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8035
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8036
- } | {
8037
- id: string & import("zod").$brand<"UUID">;
8038
- type: "user";
8039
8027
  role: string;
8040
8028
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8041
8029
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8042
8030
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -8242,6 +8197,135 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8242
8197
  responseSummary: {
8243
8198
  clientId: string;
8244
8199
  };
8200
+ } | {
8201
+ id: string;
8202
+ clientId: string;
8203
+ clientType: "system" | "user";
8204
+ createdAt: string;
8205
+ operation: "locations.create";
8206
+ requestData: {
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;
8215
+ };
8216
+ } | {
8217
+ id: string;
8218
+ clientId: string;
8219
+ clientType: "system" | "user";
8220
+ createdAt: string;
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
+ };
8245
8329
  } | {
8246
8330
  id: string;
8247
8331
  clientId: string;
@@ -8250,6 +8334,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8250
8334
  operation: "attachments.upload";
8251
8335
  requestData: {
8252
8336
  transactionId: string;
8337
+ eventId?: string | undefined;
8253
8338
  path: string | null;
8254
8339
  };
8255
8340
  responseSummary: {
@@ -8322,17 +8407,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8322
8407
  token: `Bearer ${string}`;
8323
8408
  user: {
8324
8409
  id: string & import("zod").$brand<"UUID">;
8325
- type: "system";
8326
- signature?: undefined;
8327
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8328
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8329
- } | {
8330
- id: string & import("zod").$brand<"UUID">;
8331
- type: "user";
8332
8410
  role: string;
8333
8411
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8334
8412
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8335
8413
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
@@ -8351,22 +8436,94 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8351
8436
  name: string;
8352
8437
  externalId?: string | null | undefined;
8353
8438
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8354
- validUntil: string | null;
8355
8439
  locationType: string | null;
8440
+ status: "active" | "inactive";
8441
+ versions: {
8442
+ versionId: string & import("zod").$brand<"UUID">;
8443
+ effectiveFrom: string;
8444
+ name: string;
8445
+ externalId?: string | null | undefined;
8446
+ status: "active" | "inactive";
8447
+ }[];
8356
8448
  }[];
8357
8449
  meta: object;
8358
8450
  }>;
8359
- set: import("@trpc/server").TRPCMutationProcedure<{
8451
+ create: import("@trpc/server").TRPCMutationProcedure<{
8360
8452
  input: {
8361
- id: string;
8453
+ id?: string | undefined;
8454
+ versionId?: string | undefined;
8362
8455
  name: string;
8363
8456
  externalId?: string | null | undefined;
8364
8457
  administrativeAreaId: string | null;
8365
- validUntil: string | null;
8366
8458
  locationType: string | null;
8367
- }[];
8368
- output: void;
8369
- 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;
8370
8527
  }>;
8371
8528
  get: import("@trpc/server").TRPCQueryProcedure<{
8372
8529
  input: {
@@ -8377,8 +8534,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8377
8534
  name: string;
8378
8535
  externalId?: string | null | undefined;
8379
8536
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8380
- validUntil: string | null;
8381
8537
  locationType: string | null;
8538
+ status: "active" | "inactive";
8539
+ versions: {
8540
+ versionId: string & import("zod").$brand<"UUID">;
8541
+ effectiveFrom: string;
8542
+ name: string;
8543
+ externalId?: string | null | undefined;
8544
+ status: "active" | "inactive";
8545
+ }[];
8382
8546
  };
8383
8547
  meta: import("trpc-to-openapi").OpenApiMeta;
8384
8548
  }>;
@@ -8395,17 +8559,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8395
8559
  token: `Bearer ${string}`;
8396
8560
  user: {
8397
8561
  id: string & import("zod").$brand<"UUID">;
8398
- type: "system";
8399
- signature?: undefined;
8400
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8401
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8402
- } | {
8403
- id: string & import("zod").$brand<"UUID">;
8404
- type: "user";
8405
8562
  role: string;
8406
8563
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8407
8564
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8408
8565
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
8409
8573
  };
8410
8574
  }>;
8411
8575
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8417,17 +8581,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8417
8581
  token: `Bearer ${string}`;
8418
8582
  user: {
8419
8583
  id: string & import("zod").$brand<"UUID">;
8420
- type: "system";
8421
- signature?: undefined;
8422
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8423
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8424
- } | {
8425
- id: string & import("zod").$brand<"UUID">;
8426
- type: "user";
8427
8584
  role: string;
8428
8585
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8429
8586
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8430
8587
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
8431
8595
  };
8432
8596
  }>;
8433
8597
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8735,7 +8899,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8735
8899
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
8736
8900
  };
8737
8901
  }[];
8738
- icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
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";
8739
8903
  emptyMessage?: {
8740
8904
  id: string;
8741
8905
  defaultMessage: string;
@@ -8759,17 +8923,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8759
8923
  token: `Bearer ${string}`;
8760
8924
  user: {
8761
8925
  id: string & import("zod").$brand<"UUID">;
8762
- type: "system";
8763
- signature?: undefined;
8764
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8765
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8766
- } | {
8767
- id: string & import("zod").$brand<"UUID">;
8768
- type: "user";
8769
8926
  role: string;
8770
8927
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8771
8928
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8772
8929
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
8773
8937
  };
8774
8938
  }>;
8775
8939
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8786,38 +8950,107 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8786
8950
  name: string;
8787
8951
  externalId?: string | null | undefined;
8788
8952
  parentId: (string & import("zod").$brand<"UUID">) | null;
8789
- validUntil: string | null;
8953
+ status: "active" | "inactive";
8954
+ versions: {
8955
+ versionId: string & import("zod").$brand<"UUID">;
8956
+ effectiveFrom: string;
8957
+ name: string;
8958
+ externalId?: string | null | undefined;
8959
+ status: "active" | "inactive";
8960
+ }[];
8790
8961
  }[];
8791
8962
  meta: import("trpc-to-openapi").OpenApiMeta;
8792
8963
  }>;
8793
- set: import("@trpc/server").TRPCMutationProcedure<{
8964
+ create: import("@trpc/server").TRPCMutationProcedure<{
8794
8965
  input: {
8795
- id: string;
8966
+ id?: string | undefined;
8967
+ versionId?: string | undefined;
8796
8968
  name: string;
8797
8969
  externalId?: string | null | undefined;
8798
8970
  parentId: string | null;
8799
- validUntil: string | null;
8800
- }[];
8801
- output: void;
8802
- meta: object;
8803
- }>;
8804
- }>>;
8805
- integrations: import("@trpc/server").TRPCBuiltRouter<{
8806
- ctx: Partial<{
8807
- token: `Bearer ${string}`;
8808
- user: {
8971
+ effectiveFrom?: string | undefined;
8972
+ status?: "active" | "inactive" | undefined;
8973
+ };
8974
+ output: {
8809
8975
  id: string & import("zod").$brand<"UUID">;
8810
- type: "system";
8811
- signature?: undefined;
8812
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8813
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8814
- } | {
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;
9036
+ }>;
9037
+ }>>;
9038
+ integrations: import("@trpc/server").TRPCBuiltRouter<{
9039
+ ctx: Partial<{
9040
+ token: `Bearer ${string}`;
9041
+ user: {
8815
9042
  id: string & import("zod").$brand<"UUID">;
8816
- type: "user";
8817
9043
  role: string;
8818
9044
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8819
9045
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8820
9046
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
8821
9054
  };
8822
9055
  }>;
8823
9056
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8828,6 +9061,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8828
9061
  input: {
8829
9062
  name: string;
8830
9063
  scopes: string[];
9064
+ credentials?: {
9065
+ clientId: string;
9066
+ clientSecret: string;
9067
+ } | undefined;
8831
9068
  };
8832
9069
  output: {
8833
9070
  clientId: string;
@@ -8858,7 +9095,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8858
9095
  scopes: string[];
8859
9096
  status: string;
8860
9097
  createdAt: string;
8861
- createdBy: string & import("zod").$brand<"UUID">;
9098
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8862
9099
  }[];
8863
9100
  meta: import("trpc-to-openapi").OpenApiMeta;
8864
9101
  }>;
@@ -8873,7 +9110,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8873
9110
  status: string;
8874
9111
  shaSecret: string | null;
8875
9112
  createdAt: string;
8876
- createdBy: string & import("zod").$brand<"UUID">;
9113
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8877
9114
  };
8878
9115
  meta: import("trpc-to-openapi").OpenApiMeta;
8879
9116
  }>;
@@ -8919,23 +9156,381 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8919
9156
  };
8920
9157
  meta: import("trpc-to-openapi").OpenApiMeta;
8921
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
+ }>;
8922
9517
  }>>;
8923
9518
  attachments: import("@trpc/server").TRPCBuiltRouter<{
8924
9519
  ctx: Partial<{
8925
9520
  token: `Bearer ${string}`;
8926
9521
  user: {
8927
9522
  id: string & import("zod").$brand<"UUID">;
8928
- type: "system";
8929
- signature?: undefined;
8930
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8931
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8932
- } | {
8933
- id: string & import("zod").$brand<"UUID">;
8934
- type: "user";
8935
9523
  role: string;
8936
9524
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8937
9525
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8938
9526
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
8939
9534
  };
8940
9535
  }>;
8941
9536
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8949,6 +9544,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8949
9544
  } | {
8950
9545
  file: unknown;
8951
9546
  transactionId: unknown;
9547
+ eventId: unknown;
8952
9548
  path: unknown;
8953
9549
  };
8954
9550
  output: string;
@@ -8960,17 +9556,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8960
9556
  token: `Bearer ${string}`;
8961
9557
  user: {
8962
9558
  id: string & import("zod").$brand<"UUID">;
8963
- type: "system";
8964
- signature?: undefined;
8965
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8966
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8967
- } | {
8968
- id: string & import("zod").$brand<"UUID">;
8969
- type: "user";
8970
9559
  role: string;
8971
9560
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8972
9561
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8973
9562
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
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;
8974
9570
  };
8975
9571
  }>;
8976
9572
  meta: import("trpc-to-openapi").OpenApiMeta;