@opencrvs/toolkit 2.1.0-rc.2ec6bd5 → 2.1.0-rc.312fbd1

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 (129) hide show
  1. package/README.md +3 -12
  2. package/build.sh +12 -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 +3347 -1229
  11. package/dist/commons/api/router.d.ts +846 -214
  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 -24
  43. package/dist/commons/events/utils.d.ts +39 -4
  44. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  45. package/dist/commons/notification/dispatch.d.ts +10 -0
  46. package/dist/commons/notification/index.d.ts +1 -0
  47. package/dist/conditionals/index.js +349 -65
  48. package/dist/csv.d.ts +25 -0
  49. package/dist/csv.d.ts.map +1 -0
  50. package/dist/csv.js +120 -0
  51. package/dist/environment/index.d.ts +1 -0
  52. package/dist/environment/index.d.ts.map +1 -1
  53. package/dist/environment/index.js +12 -1
  54. package/dist/environment/logger.d.ts +15 -3
  55. package/dist/environment/logger.d.ts.map +1 -1
  56. package/dist/environment/manage-users.js +1 -1
  57. package/dist/environment/paths.d.ts +7 -0
  58. package/dist/environment/paths.d.ts.map +1 -0
  59. package/dist/environment/paths.js +72 -0
  60. package/dist/environment/questions.d.ts.map +1 -1
  61. package/dist/environment/questions.js +20 -14
  62. package/dist/environment/setup-environment.d.ts +1 -1
  63. package/dist/environment/setup-environment.d.ts.map +1 -1
  64. package/dist/environment/setup-environment.js +587 -562
  65. package/dist/environment/templates.d.ts +0 -1
  66. package/dist/environment/templates.d.ts.map +1 -1
  67. package/dist/environment/templates.js +5 -9
  68. package/dist/environment/update-workflows.d.ts.map +1 -1
  69. package/dist/environment/update-workflows.js +21 -5
  70. package/dist/environment/upgrade.d.ts +2 -0
  71. package/dist/environment/upgrade.d.ts.map +1 -0
  72. package/dist/environment/upgrade.js +82 -0
  73. package/dist/environment/users.js +11 -13
  74. package/dist/environment/utils.d.ts +0 -12
  75. package/dist/environment/utils.d.ts.map +1 -1
  76. package/dist/environment/utils.js +1 -28
  77. package/dist/events/index.js +5910 -5301
  78. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
  79. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  80. package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
  81. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  82. package/dist/migrations/v2.0/convert-config-files-to-ts.js +3 -10
  83. package/dist/migrations/v2.0/merge-infrastructure-directory.js +3 -3
  84. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  85. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  86. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  87. package/dist/migrations/v2.1/add-translations.d.ts +9 -0
  88. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
  89. package/dist/migrations/v2.1/add-translations.js +149 -0
  90. package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
  91. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  92. package/dist/migrations/v2.1/enable-telemetry.js +455 -0
  93. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  94. package/dist/migrations/v2.1/index.js +1556 -0
  95. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
  96. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
  97. package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
  98. package/dist/migrations/v2.1/remove-sentry.d.ts +3 -0
  99. package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
  100. package/dist/migrations/v2.1/remove-sentry.js +354 -0
  101. package/dist/migrations/v2.1/rename-trigger-paths.d.ts +3 -0
  102. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
  103. package/dist/migrations/v2.1/rename-trigger-paths.js +216 -0
  104. package/dist/notification/index.js +1904 -1492
  105. package/dist/scopes/index.d.ts +614 -36
  106. package/dist/scopes/index.js +351 -65
  107. package/dist/telemetry/index.d.ts +45 -0
  108. package/dist/telemetry/index.d.ts.map +1 -0
  109. package/dist/telemetry/index.js +43 -0
  110. package/dist/templates/charts-values/dependencies/values.yaml +8 -0
  111. package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
  112. package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
  113. package/dist/templates/charts-values/traefik/values.yaml +23 -9
  114. package/dist/templates/inventory/inventory.template.yml +1 -3
  115. package/dist/translations/template.d.ts +11 -0
  116. package/dist/translations/template.d.ts.map +1 -0
  117. package/dist/translations/template.js +100 -0
  118. package/dist/verify/endpoints.d.ts +2 -0
  119. package/dist/verify/endpoints.d.ts.map +1 -0
  120. package/dist/verify/endpoints.js +510 -0
  121. package/opencrvs-toolkit-2.1.0-rc.312fbd1.tgz +0 -0
  122. package/package.json +13 -6
  123. package/tsconfig.build.json +11 -0
  124. package/tsconfig.build.tsbuildinfo +1 -0
  125. package/tsconfig.json +3 -0
  126. package/dist/templates/inventory/production.example.yml +0 -77
  127. package/dist/templates/inventory/qa.example.yml +0 -48
  128. package/opencrvs-toolkit-2.1.0-rc.2ec6bd5.tgz +0 -0
  129. package/tsconfig.tsbuildinfo +0 -1
@@ -4,16 +4,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4
4
  user: {
5
5
  id: string & import("zod").$brand<"UUID">;
6
6
  type: "system";
7
- signature?: undefined;
8
7
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
8
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9
+ signature?: undefined;
10
10
  } | {
11
11
  id: string & import("zod").$brand<"UUID">;
12
- type: "user";
13
12
  role: string;
14
13
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
15
14
  primaryOfficeId: string & import("zod").$brand<"UUID">;
16
15
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
16
+ type: "user";
17
17
  };
18
18
  }>;
19
19
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -26,16 +26,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26
26
  user: {
27
27
  id: string & import("zod").$brand<"UUID">;
28
28
  type: "system";
29
- signature?: undefined;
30
29
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
30
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
31
+ signature?: undefined;
32
32
  } | {
33
33
  id: string & import("zod").$brand<"UUID">;
34
- type: "user";
35
34
  role: string;
36
35
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
37
36
  primaryOfficeId: string & import("zod").$brand<"UUID">;
38
37
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
38
+ type: "user";
39
39
  };
40
40
  }>;
41
41
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -48,16 +48,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
48
48
  user: {
49
49
  id: string & import("zod").$brand<"UUID">;
50
50
  type: "system";
51
- signature?: undefined;
52
51
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
52
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
53
+ signature?: undefined;
54
54
  } | {
55
55
  id: string & import("zod").$brand<"UUID">;
56
- type: "user";
57
56
  role: string;
58
57
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
59
58
  primaryOfficeId: string & import("zod").$brand<"UUID">;
60
59
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
60
+ type: "user";
61
61
  };
62
62
  }>;
63
63
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -94,16 +94,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
94
94
  user: {
95
95
  id: string & import("zod").$brand<"UUID">;
96
96
  type: "system";
97
- signature?: undefined;
98
97
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
98
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
99
+ signature?: undefined;
100
100
  } | {
101
101
  id: string & import("zod").$brand<"UUID">;
102
- type: "user";
103
102
  role: string;
104
103
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
105
104
  primaryOfficeId: string & import("zod").$brand<"UUID">;
106
105
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
106
+ type: "user";
107
107
  };
108
108
  }>;
109
109
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -223,9 +223,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
223
223
  status: "Accepted" | "Rejected" | "Requested";
224
224
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
225
225
  type: "ARCHIVE";
226
- content: {
226
+ content?: {
227
227
  reason: string;
228
- };
228
+ } | undefined;
229
229
  } | {
230
230
  id: string & import("zod").$brand<"UUID">;
231
231
  transactionId: string;
@@ -326,7 +326,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
326
326
  status: "Accepted" | "Rejected" | "Requested";
327
327
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
328
328
  type: "APPROVE_CORRECTION";
329
- requestId: string;
329
+ requestId: string & import("zod").$brand<"UUID">;
330
330
  content?: {
331
331
  immediateCorrection?: boolean | undefined;
332
332
  } | undefined;
@@ -344,7 +344,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
344
344
  status: "Accepted" | "Rejected" | "Requested";
345
345
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
346
346
  type: "REJECT_CORRECTION";
347
- requestId: string;
347
+ requestId: string & import("zod").$brand<"UUID">;
348
348
  content: {
349
349
  reason: string;
350
350
  };
@@ -446,7 +446,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
446
446
  input: {
447
447
  eventId: string;
448
448
  customActionType?: string | undefined;
449
- waitFor?: boolean | undefined;
450
449
  };
451
450
  output: {
452
451
  id: string & import("zod").$brand<"UUID">;
@@ -549,9 +548,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
549
548
  status: "Accepted" | "Rejected" | "Requested";
550
549
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
551
550
  type: "ARCHIVE";
552
- content: {
551
+ content?: {
553
552
  reason: string;
554
- };
553
+ } | undefined;
555
554
  } | {
556
555
  id: string & import("zod").$brand<"UUID">;
557
556
  transactionId: string;
@@ -652,7 +651,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
652
651
  status: "Accepted" | "Rejected" | "Requested";
653
652
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
654
653
  type: "APPROVE_CORRECTION";
655
- requestId: string;
654
+ requestId: string & import("zod").$brand<"UUID">;
656
655
  content?: {
657
656
  immediateCorrection?: boolean | undefined;
658
657
  } | undefined;
@@ -670,7 +669,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
670
669
  status: "Accepted" | "Rejected" | "Requested";
671
670
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
672
671
  type: "REJECT_CORRECTION";
673
- requestId: string;
672
+ requestId: string & import("zod").$brand<"UUID">;
674
673
  content: {
675
674
  reason: string;
676
675
  };
@@ -874,9 +873,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
874
873
  status: "Accepted" | "Rejected" | "Requested";
875
874
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
876
875
  type: "ARCHIVE";
877
- content: {
876
+ content?: {
878
877
  reason: string;
879
- };
878
+ } | undefined;
880
879
  } | {
881
880
  id: string & import("zod").$brand<"UUID">;
882
881
  transactionId: string;
@@ -977,7 +976,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
977
976
  status: "Accepted" | "Rejected" | "Requested";
978
977
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
979
978
  type: "APPROVE_CORRECTION";
980
- requestId: string;
979
+ requestId: string & import("zod").$brand<"UUID">;
981
980
  content?: {
982
981
  immediateCorrection?: boolean | undefined;
983
982
  } | undefined;
@@ -995,7 +994,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
995
994
  status: "Accepted" | "Rejected" | "Requested";
996
995
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
997
996
  type: "REJECT_CORRECTION";
998
- requestId: string;
997
+ requestId: string & import("zod").$brand<"UUID">;
999
998
  content: {
1000
999
  reason: string;
1001
1000
  };
@@ -1108,16 +1107,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1108
1107
  user: {
1109
1108
  id: string & import("zod").$brand<"UUID">;
1110
1109
  type: "system";
1111
- signature?: undefined;
1112
1110
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1113
1111
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1112
+ signature?: undefined;
1114
1113
  } | {
1115
1114
  id: string & import("zod").$brand<"UUID">;
1116
- type: "user";
1117
1115
  role: string;
1118
1116
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1119
1117
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1120
1118
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1119
+ type: "user";
1121
1120
  };
1122
1121
  }>;
1123
1122
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1132,7 +1131,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1132
1131
  transactionId: string;
1133
1132
  createdAt: string;
1134
1133
  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
1134
  transactionId: string;
1137
1135
  createdByUserType: "system" | "user";
1138
1136
  createdAt: string;
@@ -1143,22 +1141,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1143
1141
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1144
1142
  status: "Accepted" | "Rejected" | "Requested";
1145
1143
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1144
+ 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
1145
  };
1147
1146
  }[];
1148
1147
  meta: import("trpc-to-openapi").OpenApiMeta;
1149
1148
  }>;
1150
1149
  create: import("@trpc/server").TRPCMutationProcedure<{
1151
1150
  input: {
1151
+ eventId: string;
1152
1152
  transactionId: string;
1153
- createdAtLocation?: string | null | undefined;
1154
1153
  declaration?: Record<string, unknown> | undefined;
1155
1154
  annotation?: Record<string, unknown> | undefined;
1156
1155
  originalActionId?: string | undefined;
1157
- eventId: string;
1158
1156
  keepAssignment?: boolean | undefined;
1159
1157
  keepAssignmentIfAccepted?: boolean | undefined;
1160
1158
  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";
1159
+ createdAtLocation?: string | null | undefined;
1160
+ type: "DECLARE";
1162
1161
  status: "Accepted" | "Rejected" | "Requested";
1163
1162
  };
1164
1163
  output: {
@@ -1167,7 +1166,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1167
1166
  transactionId: string;
1168
1167
  createdAt: string;
1169
1168
  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
1169
  transactionId: string;
1172
1170
  createdByUserType: "system" | "user";
1173
1171
  createdAt: string;
@@ -1178,27 +1176,60 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1178
1176
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1179
1177
  status: "Accepted" | "Rejected" | "Requested";
1180
1178
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1179
+ 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
1180
  };
1182
1181
  };
1183
1182
  meta: import("trpc-to-openapi").OpenApiMeta;
1184
1183
  }>;
1185
1184
  }>>;
1186
- actions: import("@trpc/server").TRPCBuiltRouter<{
1185
+ file: import("@trpc/server").TRPCBuiltRouter<{
1187
1186
  ctx: Partial<{
1188
1187
  token: `Bearer ${string}`;
1189
1188
  user: {
1190
1189
  id: string & import("zod").$brand<"UUID">;
1191
1190
  type: "system";
1192
- signature?: undefined;
1193
1191
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1194
1192
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1193
+ signature?: undefined;
1195
1194
  } | {
1196
1195
  id: string & import("zod").$brand<"UUID">;
1196
+ role: string;
1197
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1198
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1199
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1197
1200
  type: "user";
1201
+ };
1202
+ }>;
1203
+ meta: import("trpc-to-openapi").OpenApiMeta;
1204
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1205
+ transformer: true;
1206
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1207
+ getPresignedUrl: import("@trpc/server").TRPCQueryProcedure<{
1208
+ input: {
1209
+ filePath: string;
1210
+ };
1211
+ output: {
1212
+ presignedURL: string;
1213
+ };
1214
+ meta: import("trpc-to-openapi").OpenApiMeta;
1215
+ }>;
1216
+ }>>;
1217
+ actions: import("@trpc/server").TRPCBuiltRouter<{
1218
+ ctx: Partial<{
1219
+ token: `Bearer ${string}`;
1220
+ user: {
1221
+ id: string & import("zod").$brand<"UUID">;
1222
+ type: "system";
1223
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1224
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1225
+ signature?: undefined;
1226
+ } | {
1227
+ id: string & import("zod").$brand<"UUID">;
1198
1228
  role: string;
1199
1229
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1200
1230
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1201
1231
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1232
+ type: "user";
1202
1233
  };
1203
1234
  }>;
1204
1235
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1211,16 +1242,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1211
1242
  user: {
1212
1243
  id: string & import("zod").$brand<"UUID">;
1213
1244
  type: "system";
1214
- signature?: undefined;
1215
1245
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1216
1246
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1247
+ signature?: undefined;
1217
1248
  } | {
1218
1249
  id: string & import("zod").$brand<"UUID">;
1219
- type: "user";
1220
1250
  role: string;
1221
1251
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1222
1252
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1223
1253
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1254
+ type: "user";
1224
1255
  };
1225
1256
  }>;
1226
1257
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1354,9 +1385,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1354
1385
  waitFor?: boolean | undefined;
1355
1386
  createdAtLocation?: string | null | undefined;
1356
1387
  type?: "ARCHIVE" | undefined;
1357
- content: {
1388
+ content?: {
1358
1389
  reason: string;
1359
- };
1390
+ } | undefined;
1360
1391
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1361
1392
  eventId: string;
1362
1393
  transactionId: string;
@@ -1515,16 +1546,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1515
1546
  user: {
1516
1547
  id: string & import("zod").$brand<"UUID">;
1517
1548
  type: "system";
1518
- signature?: undefined;
1519
1549
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1520
1550
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1551
+ signature?: undefined;
1521
1552
  } | {
1522
1553
  id: string & import("zod").$brand<"UUID">;
1523
- type: "user";
1524
1554
  role: string;
1525
1555
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1526
1556
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1527
1557
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1558
+ type: "user";
1528
1559
  };
1529
1560
  }>;
1530
1561
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1645,9 +1676,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1645
1676
  status: "Accepted" | "Rejected" | "Requested";
1646
1677
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1647
1678
  type: "ARCHIVE";
1648
- content: {
1679
+ content?: {
1649
1680
  reason: string;
1650
- };
1681
+ } | undefined;
1651
1682
  } | {
1652
1683
  id: string & import("zod").$brand<"UUID">;
1653
1684
  transactionId: string;
@@ -1748,7 +1779,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1748
1779
  status: "Accepted" | "Rejected" | "Requested";
1749
1780
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1750
1781
  type: "APPROVE_CORRECTION";
1751
- requestId: string;
1782
+ requestId: string & import("zod").$brand<"UUID">;
1752
1783
  content?: {
1753
1784
  immediateCorrection?: boolean | undefined;
1754
1785
  } | undefined;
@@ -1766,7 +1797,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1766
1797
  status: "Accepted" | "Rejected" | "Requested";
1767
1798
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1768
1799
  type: "REJECT_CORRECTION";
1769
- requestId: string;
1800
+ requestId: string & import("zod").$brand<"UUID">;
1770
1801
  content: {
1771
1802
  reason: string;
1772
1803
  };
@@ -1871,16 +1902,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1871
1902
  user: {
1872
1903
  id: string & import("zod").$brand<"UUID">;
1873
1904
  type: "system";
1874
- signature?: undefined;
1875
1905
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1876
1906
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1907
+ signature?: undefined;
1877
1908
  } | {
1878
1909
  id: string & import("zod").$brand<"UUID">;
1879
- type: "user";
1880
1910
  role: string;
1881
1911
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1882
1912
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1883
1913
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1914
+ type: "user";
1884
1915
  };
1885
1916
  }>;
1886
1917
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2009,9 +2040,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2009
2040
  waitFor?: boolean | undefined;
2010
2041
  createdAtLocation?: string | null | undefined;
2011
2042
  type?: "ARCHIVE" | undefined;
2012
- content: {
2043
+ content?: {
2013
2044
  reason: string;
2014
- };
2045
+ } | undefined;
2015
2046
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2016
2047
  eventId: string;
2017
2048
  transactionId: string;
@@ -2278,9 +2309,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2278
2309
  status: "Accepted" | "Rejected" | "Requested";
2279
2310
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2280
2311
  type: "ARCHIVE";
2281
- content: {
2312
+ content?: {
2282
2313
  reason: string;
2283
- };
2314
+ } | undefined;
2284
2315
  } | {
2285
2316
  id: string & import("zod").$brand<"UUID">;
2286
2317
  transactionId: string;
@@ -2381,7 +2412,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2381
2412
  status: "Accepted" | "Rejected" | "Requested";
2382
2413
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2383
2414
  type: "APPROVE_CORRECTION";
2384
- requestId: string;
2415
+ requestId: string & import("zod").$brand<"UUID">;
2385
2416
  content?: {
2386
2417
  immediateCorrection?: boolean | undefined;
2387
2418
  } | undefined;
@@ -2399,7 +2430,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2399
2430
  status: "Accepted" | "Rejected" | "Requested";
2400
2431
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2401
2432
  type: "REJECT_CORRECTION";
2402
- requestId: string;
2433
+ requestId: string & import("zod").$brand<"UUID">;
2403
2434
  content: {
2404
2435
  reason: string;
2405
2436
  };
@@ -2504,16 +2535,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2504
2535
  user: {
2505
2536
  id: string & import("zod").$brand<"UUID">;
2506
2537
  type: "system";
2507
- signature?: undefined;
2508
2538
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2509
2539
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2540
+ signature?: undefined;
2510
2541
  } | {
2511
2542
  id: string & import("zod").$brand<"UUID">;
2512
- type: "user";
2513
2543
  role: string;
2514
2544
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2515
2545
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2516
2546
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2547
+ type: "user";
2517
2548
  };
2518
2549
  }>;
2519
2550
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2647,9 +2678,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2647
2678
  waitFor?: boolean | undefined;
2648
2679
  createdAtLocation?: string | null | undefined;
2649
2680
  type?: "ARCHIVE" | undefined;
2650
- content: {
2681
+ content?: {
2651
2682
  reason: string;
2652
- };
2683
+ } | undefined;
2653
2684
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2654
2685
  eventId: string;
2655
2686
  transactionId: string;
@@ -2808,16 +2839,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2808
2839
  user: {
2809
2840
  id: string & import("zod").$brand<"UUID">;
2810
2841
  type: "system";
2811
- signature?: undefined;
2812
2842
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2813
2843
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2844
+ signature?: undefined;
2814
2845
  } | {
2815
2846
  id: string & import("zod").$brand<"UUID">;
2816
- type: "user";
2817
2847
  role: string;
2818
2848
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2819
2849
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2820
2850
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2851
+ type: "user";
2821
2852
  };
2822
2853
  }>;
2823
2854
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2951,9 +2982,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2951
2982
  waitFor?: boolean | undefined;
2952
2983
  createdAtLocation?: string | null | undefined;
2953
2984
  type?: "ARCHIVE" | undefined;
2954
- content: {
2985
+ content?: {
2955
2986
  reason: string;
2956
- };
2987
+ } | undefined;
2957
2988
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2958
2989
  eventId: string;
2959
2990
  transactionId: string;
@@ -3112,16 +3143,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3112
3143
  user: {
3113
3144
  id: string & import("zod").$brand<"UUID">;
3114
3145
  type: "system";
3115
- signature?: undefined;
3116
3146
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3117
3147
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3148
+ signature?: undefined;
3118
3149
  } | {
3119
3150
  id: string & import("zod").$brand<"UUID">;
3120
- type: "user";
3121
3151
  role: string;
3122
3152
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3123
3153
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3124
3154
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3155
+ type: "user";
3125
3156
  };
3126
3157
  }>;
3127
3158
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3255,9 +3286,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3255
3286
  waitFor?: boolean | undefined;
3256
3287
  createdAtLocation?: string | null | undefined;
3257
3288
  type?: "ARCHIVE" | undefined;
3258
- content: {
3289
+ content?: {
3259
3290
  reason: string;
3260
- };
3291
+ } | undefined;
3261
3292
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3262
3293
  eventId: string;
3263
3294
  transactionId: string;
@@ -3416,16 +3447,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3416
3447
  user: {
3417
3448
  id: string & import("zod").$brand<"UUID">;
3418
3449
  type: "system";
3419
- signature?: undefined;
3420
3450
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3421
3451
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3452
+ signature?: undefined;
3422
3453
  } | {
3423
3454
  id: string & import("zod").$brand<"UUID">;
3424
- type: "user";
3425
3455
  role: string;
3426
3456
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3427
3457
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3428
3458
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3459
+ type: "user";
3429
3460
  };
3430
3461
  }>;
3431
3462
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3559,9 +3590,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3559
3590
  waitFor?: boolean | undefined;
3560
3591
  createdAtLocation?: string | null | undefined;
3561
3592
  type?: "ARCHIVE" | undefined;
3562
- content: {
3593
+ content?: {
3563
3594
  reason: string;
3564
- };
3595
+ } | undefined;
3565
3596
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3566
3597
  eventId: string;
3567
3598
  transactionId: string;
@@ -3720,16 +3751,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3720
3751
  user: {
3721
3752
  id: string & import("zod").$brand<"UUID">;
3722
3753
  type: "system";
3723
- signature?: undefined;
3724
3754
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3725
3755
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3756
+ signature?: undefined;
3726
3757
  } | {
3727
3758
  id: string & import("zod").$brand<"UUID">;
3728
- type: "user";
3729
3759
  role: string;
3730
3760
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3731
3761
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3732
3762
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3763
+ type: "user";
3733
3764
  };
3734
3765
  }>;
3735
3766
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3863,9 +3894,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3863
3894
  waitFor?: boolean | undefined;
3864
3895
  createdAtLocation?: string | null | undefined;
3865
3896
  type?: "ARCHIVE" | undefined;
3866
- content: {
3897
+ content?: {
3867
3898
  reason: string;
3868
- };
3899
+ } | undefined;
3869
3900
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3870
3901
  eventId: string;
3871
3902
  transactionId: string;
@@ -4024,16 +4055,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4024
4055
  user: {
4025
4056
  id: string & import("zod").$brand<"UUID">;
4026
4057
  type: "system";
4027
- signature?: undefined;
4028
4058
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4029
4059
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4060
+ signature?: undefined;
4030
4061
  } | {
4031
4062
  id: string & import("zod").$brand<"UUID">;
4032
- type: "user";
4033
4063
  role: string;
4034
4064
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4035
4065
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4036
4066
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4067
+ type: "user";
4037
4068
  };
4038
4069
  }>;
4039
4070
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4167,9 +4198,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4167
4198
  waitFor?: boolean | undefined;
4168
4199
  createdAtLocation?: string | null | undefined;
4169
4200
  type?: "ARCHIVE" | undefined;
4170
- content: {
4201
+ content?: {
4171
4202
  reason: string;
4172
- };
4203
+ } | undefined;
4173
4204
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4174
4205
  eventId: string;
4175
4206
  transactionId: string;
@@ -4328,16 +4359,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4328
4359
  user: {
4329
4360
  id: string & import("zod").$brand<"UUID">;
4330
4361
  type: "system";
4331
- signature?: undefined;
4332
4362
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4333
4363
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4364
+ signature?: undefined;
4334
4365
  } | {
4335
4366
  id: string & import("zod").$brand<"UUID">;
4336
- type: "user";
4337
4367
  role: string;
4338
4368
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4339
4369
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4340
4370
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4371
+ type: "user";
4341
4372
  };
4342
4373
  }>;
4343
4374
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4466,9 +4497,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4466
4497
  waitFor?: boolean | undefined;
4467
4498
  createdAtLocation?: string | null | undefined;
4468
4499
  type?: "ARCHIVE" | undefined;
4469
- content: {
4500
+ content?: {
4470
4501
  reason: string;
4471
- };
4502
+ } | undefined;
4472
4503
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4473
4504
  eventId: string;
4474
4505
  transactionId: string;
@@ -4736,9 +4767,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4736
4767
  status: "Accepted" | "Rejected" | "Requested";
4737
4768
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4738
4769
  type: "ARCHIVE";
4739
- content: {
4770
+ content?: {
4740
4771
  reason: string;
4741
- };
4772
+ } | undefined;
4742
4773
  } | {
4743
4774
  id: string & import("zod").$brand<"UUID">;
4744
4775
  transactionId: string;
@@ -4839,7 +4870,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4839
4870
  status: "Accepted" | "Rejected" | "Requested";
4840
4871
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4841
4872
  type: "APPROVE_CORRECTION";
4842
- requestId: string;
4873
+ requestId: string & import("zod").$brand<"UUID">;
4843
4874
  content?: {
4844
4875
  immediateCorrection?: boolean | undefined;
4845
4876
  } | undefined;
@@ -4857,7 +4888,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4857
4888
  status: "Accepted" | "Rejected" | "Requested";
4858
4889
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4859
4890
  type: "REJECT_CORRECTION";
4860
- requestId: string;
4891
+ requestId: string & import("zod").$brand<"UUID">;
4861
4892
  content: {
4862
4893
  reason: string;
4863
4894
  };
@@ -4962,16 +4993,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4962
4993
  user: {
4963
4994
  id: string & import("zod").$brand<"UUID">;
4964
4995
  type: "system";
4965
- signature?: undefined;
4966
4996
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4967
4997
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4998
+ signature?: undefined;
4968
4999
  } | {
4969
5000
  id: string & import("zod").$brand<"UUID">;
4970
- type: "user";
4971
5001
  role: string;
4972
5002
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4973
5003
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4974
5004
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5005
+ type: "user";
4975
5006
  };
4976
5007
  }>;
4977
5008
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4998,6 +5029,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4998
5029
  type: string;
4999
5030
  createdAt: string;
5000
5031
  updatedAt: string;
5032
+ trackingId: string;
5001
5033
  actions: ({
5002
5034
  id: string & import("zod").$brand<"UUID">;
5003
5035
  transactionId: string;
@@ -5094,9 +5126,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5094
5126
  status: "Accepted" | "Rejected" | "Requested";
5095
5127
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5096
5128
  type: "ARCHIVE";
5097
- content: {
5129
+ content?: {
5098
5130
  reason: string;
5099
- };
5131
+ } | undefined;
5100
5132
  } | {
5101
5133
  id: string & import("zod").$brand<"UUID">;
5102
5134
  transactionId: string;
@@ -5197,7 +5229,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5197
5229
  status: "Accepted" | "Rejected" | "Requested";
5198
5230
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5199
5231
  type: "APPROVE_CORRECTION";
5200
- requestId: string;
5232
+ requestId: string & import("zod").$brand<"UUID">;
5201
5233
  content?: {
5202
5234
  immediateCorrection?: boolean | undefined;
5203
5235
  } | undefined;
@@ -5215,7 +5247,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5215
5247
  status: "Accepted" | "Rejected" | "Requested";
5216
5248
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5217
5249
  type: "REJECT_CORRECTION";
5218
- requestId: string;
5250
+ requestId: string & import("zod").$brand<"UUID">;
5219
5251
  content: {
5220
5252
  reason: string;
5221
5253
  };
@@ -5309,8 +5341,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5309
5341
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5310
5342
  status: "Rejected";
5311
5343
  })[];
5312
- trackingId: string;
5313
- };
5344
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5314
5345
  meta: import("trpc-to-openapi").OpenApiMeta;
5315
5346
  }>;
5316
5347
  unassign: import("@trpc/server").TRPCMutationProcedure<{
@@ -5333,6 +5364,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5333
5364
  type: string;
5334
5365
  createdAt: string;
5335
5366
  updatedAt: string;
5367
+ trackingId: string;
5336
5368
  actions: ({
5337
5369
  id: string & import("zod").$brand<"UUID">;
5338
5370
  transactionId: string;
@@ -5429,9 +5461,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5429
5461
  status: "Accepted" | "Rejected" | "Requested";
5430
5462
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5431
5463
  type: "ARCHIVE";
5432
- content: {
5464
+ content?: {
5433
5465
  reason: string;
5434
- };
5466
+ } | undefined;
5435
5467
  } | {
5436
5468
  id: string & import("zod").$brand<"UUID">;
5437
5469
  transactionId: string;
@@ -5532,7 +5564,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5532
5564
  status: "Accepted" | "Rejected" | "Requested";
5533
5565
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5534
5566
  type: "APPROVE_CORRECTION";
5535
- requestId: string;
5567
+ requestId: string & import("zod").$brand<"UUID">;
5536
5568
  content?: {
5537
5569
  immediateCorrection?: boolean | undefined;
5538
5570
  } | undefined;
@@ -5550,7 +5582,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5550
5582
  status: "Accepted" | "Rejected" | "Requested";
5551
5583
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5552
5584
  type: "REJECT_CORRECTION";
5553
- requestId: string;
5585
+ requestId: string & import("zod").$brand<"UUID">;
5554
5586
  content: {
5555
5587
  reason: string;
5556
5588
  };
@@ -5644,8 +5676,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5644
5676
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5645
5677
  status: "Rejected";
5646
5678
  })[];
5647
- trackingId: string;
5648
- };
5679
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5649
5680
  meta: import("trpc-to-openapi").OpenApiMeta;
5650
5681
  }>;
5651
5682
  }>>;
@@ -5655,16 +5686,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5655
5686
  user: {
5656
5687
  id: string & import("zod").$brand<"UUID">;
5657
5688
  type: "system";
5658
- signature?: undefined;
5659
5689
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5660
5690
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5691
+ signature?: undefined;
5661
5692
  } | {
5662
5693
  id: string & import("zod").$brand<"UUID">;
5663
- type: "user";
5664
5694
  role: string;
5665
5695
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5666
5696
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5667
5697
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5698
+ type: "user";
5668
5699
  };
5669
5700
  }>;
5670
5701
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5677,16 +5708,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5677
5708
  user: {
5678
5709
  id: string & import("zod").$brand<"UUID">;
5679
5710
  type: "system";
5680
- signature?: undefined;
5681
5711
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5682
5712
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5713
+ signature?: undefined;
5683
5714
  } | {
5684
5715
  id: string & import("zod").$brand<"UUID">;
5685
- type: "user";
5686
5716
  role: string;
5687
5717
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5688
5718
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5689
5719
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5720
+ type: "user";
5690
5721
  };
5691
5722
  }>;
5692
5723
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -5820,9 +5851,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5820
5851
  waitFor?: boolean | undefined;
5821
5852
  createdAtLocation?: string | null | undefined;
5822
5853
  type?: "ARCHIVE" | undefined;
5823
- content: {
5854
+ content?: {
5824
5855
  reason: string;
5825
- };
5856
+ } | undefined;
5826
5857
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5827
5858
  eventId: string;
5828
5859
  transactionId: string;
@@ -5981,16 +6012,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5981
6012
  user: {
5982
6013
  id: string & import("zod").$brand<"UUID">;
5983
6014
  type: "system";
5984
- signature?: undefined;
5985
6015
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5986
6016
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6017
+ signature?: undefined;
5987
6018
  } | {
5988
6019
  id: string & import("zod").$brand<"UUID">;
5989
- type: "user";
5990
6020
  role: string;
5991
6021
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5992
6022
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5993
6023
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6024
+ type: "user";
5994
6025
  };
5995
6026
  }>;
5996
6027
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6124,9 +6155,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6124
6155
  waitFor?: boolean | undefined;
6125
6156
  createdAtLocation?: string | null | undefined;
6126
6157
  type?: "ARCHIVE" | undefined;
6127
- content: {
6158
+ content?: {
6128
6159
  reason: string;
6129
- };
6160
+ } | undefined;
6130
6161
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6131
6162
  eventId: string;
6132
6163
  transactionId: string;
@@ -6285,16 +6316,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6285
6316
  user: {
6286
6317
  id: string & import("zod").$brand<"UUID">;
6287
6318
  type: "system";
6288
- signature?: undefined;
6289
6319
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6290
6320
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6321
+ signature?: undefined;
6291
6322
  } | {
6292
6323
  id: string & import("zod").$brand<"UUID">;
6293
- type: "user";
6294
6324
  role: string;
6295
6325
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6296
6326
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6297
6327
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6328
+ type: "user";
6298
6329
  };
6299
6330
  }>;
6300
6331
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6428,9 +6459,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6428
6459
  waitFor?: boolean | undefined;
6429
6460
  createdAtLocation?: string | null | undefined;
6430
6461
  type?: "ARCHIVE" | undefined;
6431
- content: {
6462
+ content?: {
6432
6463
  reason: string;
6433
- };
6464
+ } | undefined;
6434
6465
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6435
6466
  eventId: string;
6436
6467
  transactionId: string;
@@ -6590,16 +6621,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6590
6621
  user: {
6591
6622
  id: string & import("zod").$brand<"UUID">;
6592
6623
  type: "system";
6593
- signature?: undefined;
6594
6624
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6595
6625
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6626
+ signature?: undefined;
6596
6627
  } | {
6597
6628
  id: string & import("zod").$brand<"UUID">;
6598
- type: "user";
6599
6629
  role: string;
6600
6630
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6601
6631
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6602
6632
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6633
+ type: "user";
6603
6634
  };
6604
6635
  }>;
6605
6636
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6724,9 +6755,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6724
6755
  status: "Accepted" | "Rejected" | "Requested";
6725
6756
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6726
6757
  type: "ARCHIVE";
6727
- content: {
6758
+ content?: {
6728
6759
  reason: string;
6729
- };
6760
+ } | undefined;
6730
6761
  } | {
6731
6762
  id: string & import("zod").$brand<"UUID">;
6732
6763
  transactionId: string;
@@ -6827,7 +6858,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6827
6858
  status: "Accepted" | "Rejected" | "Requested";
6828
6859
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6829
6860
  type: "APPROVE_CORRECTION";
6830
- requestId: string;
6861
+ requestId: string & import("zod").$brand<"UUID">;
6831
6862
  content?: {
6832
6863
  immediateCorrection?: boolean | undefined;
6833
6864
  } | undefined;
@@ -6845,7 +6876,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6845
6876
  status: "Accepted" | "Rejected" | "Requested";
6846
6877
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6847
6878
  type: "REJECT_CORRECTION";
6848
- requestId: string;
6879
+ requestId: string & import("zod").$brand<"UUID">;
6849
6880
  content: {
6850
6881
  reason: string;
6851
6882
  };
@@ -7058,9 +7089,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7058
7089
  status: "Accepted" | "Rejected" | "Requested";
7059
7090
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7060
7091
  type: "ARCHIVE";
7061
- content: {
7092
+ content?: {
7062
7093
  reason: string;
7063
- };
7094
+ } | undefined;
7064
7095
  } | {
7065
7096
  id: string & import("zod").$brand<"UUID">;
7066
7097
  transactionId: string;
@@ -7161,7 +7192,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7161
7192
  status: "Accepted" | "Rejected" | "Requested";
7162
7193
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7163
7194
  type: "APPROVE_CORRECTION";
7164
- requestId: string;
7195
+ requestId: string & import("zod").$brand<"UUID">;
7165
7196
  content?: {
7166
7197
  immediateCorrection?: boolean | undefined;
7167
7198
  } | undefined;
@@ -7179,7 +7210,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7179
7210
  status: "Accepted" | "Rejected" | "Requested";
7180
7211
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7181
7212
  type: "REJECT_CORRECTION";
7182
- requestId: string;
7213
+ requestId: string & import("zod").$brand<"UUID">;
7183
7214
  content: {
7184
7215
  reason: string;
7185
7216
  };
@@ -7443,9 +7474,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7443
7474
  status: "Accepted" | "Rejected" | "Requested";
7444
7475
  originalActionId?: string | null | undefined;
7445
7476
  type: "ARCHIVE";
7446
- content: {
7477
+ content?: {
7447
7478
  reason: string;
7448
- };
7479
+ } | undefined;
7449
7480
  } | {
7450
7481
  id: string;
7451
7482
  transactionId: string;
@@ -7670,16 +7701,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7670
7701
  user: {
7671
7702
  id: string & import("zod").$brand<"UUID">;
7672
7703
  type: "system";
7673
- signature?: undefined;
7674
7704
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7675
7705
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7706
+ signature?: undefined;
7676
7707
  } | {
7677
7708
  id: string & import("zod").$brand<"UUID">;
7678
- type: "user";
7679
7709
  role: string;
7680
7710
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7681
7711
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7682
7712
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7713
+ type: "user";
7683
7714
  };
7684
7715
  }>;
7685
7716
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7722,17 +7753,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7722
7753
  }>;
7723
7754
  create: import("@trpc/server").TRPCMutationProcedure<{
7724
7755
  input: {
7725
- data?: Record<string, unknown> | undefined;
7726
7756
  name: {
7727
7757
  firstname: string;
7728
7758
  surname: string;
7729
7759
  };
7730
- email?: string | undefined;
7731
7760
  role: string;
7732
- fullHonorificName?: string | undefined;
7733
- device?: string | undefined;
7734
7761
  primaryOfficeId: string;
7762
+ device?: string | undefined;
7763
+ fullHonorificName?: string | undefined;
7735
7764
  mobile?: string | undefined;
7765
+ email?: string | undefined;
7766
+ data?: Record<string, unknown> | undefined;
7736
7767
  username?: undefined;
7737
7768
  password?: undefined;
7738
7769
  signature?: {
@@ -7764,17 +7795,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7764
7795
  }>;
7765
7796
  update: import("@trpc/server").TRPCMutationProcedure<{
7766
7797
  input: {
7767
- data?: Record<string, unknown> | undefined;
7768
7798
  name?: {
7769
7799
  firstname: string;
7770
7800
  surname: string;
7771
7801
  } | undefined;
7772
- email?: string | undefined;
7773
7802
  role?: string | undefined;
7774
- fullHonorificName?: string | undefined;
7775
- device?: string | undefined;
7776
7803
  primaryOfficeId?: string | undefined;
7804
+ device?: string | undefined;
7805
+ fullHonorificName?: string | undefined;
7777
7806
  mobile?: string | undefined;
7807
+ email?: string | undefined;
7808
+ data?: Record<string, unknown> | undefined;
7778
7809
  signature?: {
7779
7810
  path: string;
7780
7811
  originalFilename: string;
@@ -7808,20 +7839,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7808
7839
  input: string[];
7809
7840
  output: ({
7810
7841
  id: string & import("zod").$brand<"UUID">;
7811
- type: "user";
7812
7842
  name: {
7813
7843
  firstname: string;
7814
7844
  surname: string;
7815
7845
  };
7816
7846
  role: string;
7817
- fullHonorificName?: string | undefined;
7818
7847
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7819
7848
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7820
7849
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7850
+ fullHonorificName?: string | undefined;
7851
+ type: "user";
7821
7852
  } | {
7822
7853
  id: string & import("zod").$brand<"UUID">;
7823
- type: "system";
7824
7854
  name: string;
7855
+ type: "system";
7825
7856
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7826
7857
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7827
7858
  })[];
@@ -7834,28 +7865,28 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7834
7865
  email?: string | undefined;
7835
7866
  status?: string | undefined;
7836
7867
  primaryOfficeId?: string | undefined;
7837
- count: number;
7838
- skip: number;
7868
+ count?: number | undefined;
7869
+ skip?: number | undefined;
7839
7870
  sortBy?: "createdAt" | "email" | "firstname" | "role" | "status" | "surname" | "username" | undefined;
7840
7871
  sortOrder: "asc" | "desc";
7841
7872
  };
7842
7873
  output: ({
7843
7874
  id: string & import("zod").$brand<"UUID">;
7844
- type: "user";
7845
7875
  name: {
7846
7876
  firstname: string;
7847
7877
  surname: string;
7848
7878
  };
7849
7879
  role: string;
7850
- fullHonorificName?: string | undefined;
7851
7880
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7852
7881
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7853
7882
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7883
+ fullHonorificName?: string | undefined;
7884
+ type: "user";
7854
7885
  status: "active" | "deactivated" | "pending";
7855
7886
  } | {
7856
7887
  id: string & import("zod").$brand<"UUID">;
7857
- type: "system";
7858
7888
  name: string;
7889
+ type: "system";
7859
7890
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7860
7891
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7861
7892
  status?: "active" | "deactivated" | "pending" | undefined;
@@ -7906,16 +7937,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7906
7937
  user: {
7907
7938
  id: string & import("zod").$brand<"UUID">;
7908
7939
  type: "system";
7909
- signature?: undefined;
7910
7940
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7911
7941
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7942
+ signature?: undefined;
7912
7943
  } | {
7913
7944
  id: string & import("zod").$brand<"UUID">;
7914
- type: "user";
7915
7945
  role: string;
7916
7946
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7917
7947
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7918
7948
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7949
+ type: "user";
7919
7950
  };
7920
7951
  }>;
7921
7952
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8030,62 +8061,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8030
8061
  user: {
8031
8062
  id: string & import("zod").$brand<"UUID">;
8032
8063
  type: "system";
8033
- signature?: undefined;
8034
8064
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8035
8065
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8066
+ signature?: undefined;
8036
8067
  } | {
8037
8068
  id: string & import("zod").$brand<"UUID">;
8038
- type: "user";
8039
8069
  role: string;
8040
8070
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8041
8071
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8042
8072
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8073
+ type: "user";
8043
8074
  };
8044
8075
  }>;
8045
8076
  meta: import("trpc-to-openapi").OpenApiMeta;
8046
8077
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8047
8078
  transformer: true;
8048
8079
  }, 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
8080
  list: import("@trpc/server").TRPCQueryProcedure<{
8090
8081
  input: {
8091
8082
  userId: string;
@@ -8242,6 +8233,135 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8242
8233
  responseSummary: {
8243
8234
  clientId: string;
8244
8235
  };
8236
+ } | {
8237
+ id: string;
8238
+ clientId: string;
8239
+ clientType: "system" | "user";
8240
+ createdAt: string;
8241
+ operation: "locations.create";
8242
+ requestData: {
8243
+ id: string;
8244
+ versionId: string;
8245
+ name: string;
8246
+ externalId?: string | null | undefined;
8247
+ effectiveFrom: string;
8248
+ status: string;
8249
+ administrativeAreaId?: string | null | undefined;
8250
+ locationType?: string | null | undefined;
8251
+ };
8252
+ } | {
8253
+ id: string;
8254
+ clientId: string;
8255
+ clientType: "system" | "user";
8256
+ createdAt: string;
8257
+ operation: "locations.update";
8258
+ requestData: {
8259
+ id: string;
8260
+ versionId: string;
8261
+ name: string;
8262
+ externalId?: string | null | undefined;
8263
+ status: string;
8264
+ effectiveFrom: string;
8265
+ lastVersionId: string;
8266
+ };
8267
+ responseSummary: {
8268
+ previousVersionId: string;
8269
+ versionId: string;
8270
+ changed: {
8271
+ name?: {
8272
+ from: string;
8273
+ to: string;
8274
+ } | undefined;
8275
+ externalId?: {
8276
+ from: string | null;
8277
+ to: string | null;
8278
+ } | undefined;
8279
+ status?: {
8280
+ from: string;
8281
+ to: string;
8282
+ } | undefined;
8283
+ };
8284
+ };
8285
+ } | {
8286
+ id: string;
8287
+ clientId: string;
8288
+ clientType: "system" | "user";
8289
+ createdAt: string;
8290
+ operation: "administrativeAreas.update";
8291
+ requestData: {
8292
+ id: string;
8293
+ versionId: string;
8294
+ name: string;
8295
+ externalId?: string | null | undefined;
8296
+ status: string;
8297
+ effectiveFrom: string;
8298
+ lastVersionId: string;
8299
+ };
8300
+ responseSummary: {
8301
+ previousVersionId: string;
8302
+ versionId: string;
8303
+ changed: {
8304
+ name?: {
8305
+ from: string;
8306
+ to: string;
8307
+ } | undefined;
8308
+ externalId?: {
8309
+ from: string | null;
8310
+ to: string | null;
8311
+ } | undefined;
8312
+ status?: {
8313
+ from: string;
8314
+ to: string;
8315
+ } | undefined;
8316
+ };
8317
+ };
8318
+ } | {
8319
+ id: string;
8320
+ clientId: string;
8321
+ clientType: "system" | "user";
8322
+ createdAt: string;
8323
+ operation: "locations.withdrawVersion";
8324
+ requestData: {
8325
+ id: string;
8326
+ versionId: string;
8327
+ };
8328
+ responseSummary: {
8329
+ effectiveFrom: string;
8330
+ name: string;
8331
+ externalId?: string | null | undefined;
8332
+ status: string;
8333
+ };
8334
+ } | {
8335
+ id: string;
8336
+ clientId: string;
8337
+ clientType: "system" | "user";
8338
+ createdAt: string;
8339
+ operation: "administrativeAreas.withdrawVersion";
8340
+ requestData: {
8341
+ id: string;
8342
+ versionId: string;
8343
+ };
8344
+ responseSummary: {
8345
+ effectiveFrom: string;
8346
+ name: string;
8347
+ externalId?: string | null | undefined;
8348
+ status: string;
8349
+ };
8350
+ } | {
8351
+ id: string;
8352
+ clientId: string;
8353
+ clientType: "system" | "user";
8354
+ createdAt: string;
8355
+ operation: "administrativeAreas.create";
8356
+ requestData: {
8357
+ id: string;
8358
+ versionId: string;
8359
+ name: string;
8360
+ externalId?: string | null | undefined;
8361
+ effectiveFrom: string;
8362
+ status: string;
8363
+ parentId?: string | null | undefined;
8364
+ };
8245
8365
  } | {
8246
8366
  id: string;
8247
8367
  clientId: string;
@@ -8250,6 +8370,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8250
8370
  operation: "attachments.upload";
8251
8371
  requestData: {
8252
8372
  transactionId: string;
8373
+ eventId?: string | undefined;
8253
8374
  path: string | null;
8254
8375
  };
8255
8376
  responseSummary: {
@@ -8323,16 +8444,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8323
8444
  user: {
8324
8445
  id: string & import("zod").$brand<"UUID">;
8325
8446
  type: "system";
8326
- signature?: undefined;
8327
8447
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8328
8448
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8449
+ signature?: undefined;
8329
8450
  } | {
8330
8451
  id: string & import("zod").$brand<"UUID">;
8331
- type: "user";
8332
8452
  role: string;
8333
8453
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8334
8454
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8335
8455
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8456
+ type: "user";
8336
8457
  };
8337
8458
  }>;
8338
8459
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8351,22 +8472,94 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8351
8472
  name: string;
8352
8473
  externalId?: string | null | undefined;
8353
8474
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8354
- validUntil: string | null;
8355
8475
  locationType: string | null;
8476
+ status: "active" | "inactive";
8477
+ versions: {
8478
+ versionId: string & import("zod").$brand<"UUID">;
8479
+ effectiveFrom: string;
8480
+ name: string;
8481
+ externalId?: string | null | undefined;
8482
+ status: "active" | "inactive";
8483
+ }[];
8356
8484
  }[];
8357
8485
  meta: object;
8358
8486
  }>;
8359
- set: import("@trpc/server").TRPCMutationProcedure<{
8487
+ create: import("@trpc/server").TRPCMutationProcedure<{
8360
8488
  input: {
8361
- id: string;
8489
+ id?: string | undefined;
8490
+ versionId?: string | undefined;
8362
8491
  name: string;
8363
8492
  externalId?: string | null | undefined;
8364
8493
  administrativeAreaId: string | null;
8365
- validUntil: string | null;
8366
8494
  locationType: string | null;
8367
- }[];
8368
- output: void;
8369
- meta: object;
8495
+ effectiveFrom?: string | undefined;
8496
+ status?: "active" | "inactive" | undefined;
8497
+ };
8498
+ output: {
8499
+ id: string & import("zod").$brand<"UUID">;
8500
+ name: string;
8501
+ externalId?: string | null | undefined;
8502
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8503
+ locationType: string | null;
8504
+ status: "active" | "inactive";
8505
+ versions: {
8506
+ versionId: string & import("zod").$brand<"UUID">;
8507
+ effectiveFrom: string;
8508
+ name: string;
8509
+ externalId?: string | null | undefined;
8510
+ status: "active" | "inactive";
8511
+ }[];
8512
+ };
8513
+ meta: import("trpc-to-openapi").OpenApiMeta;
8514
+ }>;
8515
+ update: import("@trpc/server").TRPCMutationProcedure<{
8516
+ input: {
8517
+ id: string;
8518
+ versionId?: string | undefined;
8519
+ name: string;
8520
+ externalId?: string | null | undefined;
8521
+ status: "active" | "inactive";
8522
+ effectiveFrom?: string | undefined;
8523
+ lastVersionId: string;
8524
+ };
8525
+ output: {
8526
+ id: string & import("zod").$brand<"UUID">;
8527
+ name: string;
8528
+ externalId?: string | null | undefined;
8529
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8530
+ locationType: string | null;
8531
+ status: "active" | "inactive";
8532
+ versions: {
8533
+ versionId: string & import("zod").$brand<"UUID">;
8534
+ effectiveFrom: string;
8535
+ name: string;
8536
+ externalId?: string | null | undefined;
8537
+ status: "active" | "inactive";
8538
+ }[];
8539
+ };
8540
+ meta: import("trpc-to-openapi").OpenApiMeta;
8541
+ }>;
8542
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
8543
+ input: {
8544
+ id: string;
8545
+ versionId: string;
8546
+ };
8547
+ output: {
8548
+ id: string & import("zod").$brand<"UUID">;
8549
+ name: string;
8550
+ externalId?: string | null | undefined;
8551
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8552
+ locationType: string | null;
8553
+ status: "active" | "inactive";
8554
+ versions: {
8555
+ versionId: string & import("zod").$brand<"UUID">;
8556
+ effectiveFrom: string;
8557
+ name: string;
8558
+ externalId?: string | null | undefined;
8559
+ status: "active" | "inactive";
8560
+ }[];
8561
+ };
8562
+ meta: import("trpc-to-openapi").OpenApiMeta;
8370
8563
  }>;
8371
8564
  get: import("@trpc/server").TRPCQueryProcedure<{
8372
8565
  input: {
@@ -8377,8 +8570,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8377
8570
  name: string;
8378
8571
  externalId?: string | null | undefined;
8379
8572
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8380
- validUntil: string | null;
8381
8573
  locationType: string | null;
8574
+ status: "active" | "inactive";
8575
+ versions: {
8576
+ versionId: string & import("zod").$brand<"UUID">;
8577
+ effectiveFrom: string;
8578
+ name: string;
8579
+ externalId?: string | null | undefined;
8580
+ status: "active" | "inactive";
8581
+ }[];
8382
8582
  };
8383
8583
  meta: import("trpc-to-openapi").OpenApiMeta;
8384
8584
  }>;
@@ -8396,16 +8596,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8396
8596
  user: {
8397
8597
  id: string & import("zod").$brand<"UUID">;
8398
8598
  type: "system";
8399
- signature?: undefined;
8400
8599
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8401
8600
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8601
+ signature?: undefined;
8402
8602
  } | {
8403
8603
  id: string & import("zod").$brand<"UUID">;
8404
- type: "user";
8405
8604
  role: string;
8406
8605
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8407
8606
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8408
8607
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8608
+ type: "user";
8409
8609
  };
8410
8610
  }>;
8411
8611
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8418,16 +8618,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8418
8618
  user: {
8419
8619
  id: string & import("zod").$brand<"UUID">;
8420
8620
  type: "system";
8421
- signature?: undefined;
8422
8621
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8423
8622
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8623
+ signature?: undefined;
8424
8624
  } | {
8425
8625
  id: string & import("zod").$brand<"UUID">;
8426
- type: "user";
8427
8626
  role: string;
8428
8627
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8429
8628
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8430
8629
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8630
+ type: "user";
8431
8631
  };
8432
8632
  }>;
8433
8633
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8735,7 +8935,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8735
8935
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
8736
8936
  };
8737
8937
  }[];
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";
8938
+ 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
8939
  emptyMessage?: {
8740
8940
  id: string;
8741
8941
  defaultMessage: string;
@@ -8760,16 +8960,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8760
8960
  user: {
8761
8961
  id: string & import("zod").$brand<"UUID">;
8762
8962
  type: "system";
8763
- signature?: undefined;
8764
8963
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8765
8964
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8965
+ signature?: undefined;
8766
8966
  } | {
8767
8967
  id: string & import("zod").$brand<"UUID">;
8768
- type: "user";
8769
8968
  role: string;
8770
8969
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8771
8970
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8772
8971
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8972
+ type: "user";
8773
8973
  };
8774
8974
  }>;
8775
8975
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8786,20 +8986,89 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8786
8986
  name: string;
8787
8987
  externalId?: string | null | undefined;
8788
8988
  parentId: (string & import("zod").$brand<"UUID">) | null;
8789
- validUntil: string | null;
8989
+ status: "active" | "inactive";
8990
+ versions: {
8991
+ versionId: string & import("zod").$brand<"UUID">;
8992
+ effectiveFrom: string;
8993
+ name: string;
8994
+ externalId?: string | null | undefined;
8995
+ status: "active" | "inactive";
8996
+ }[];
8790
8997
  }[];
8791
8998
  meta: import("trpc-to-openapi").OpenApiMeta;
8792
8999
  }>;
8793
- set: import("@trpc/server").TRPCMutationProcedure<{
9000
+ create: import("@trpc/server").TRPCMutationProcedure<{
8794
9001
  input: {
8795
- id: string;
9002
+ id?: string | undefined;
9003
+ versionId?: string | undefined;
8796
9004
  name: string;
8797
9005
  externalId?: string | null | undefined;
8798
9006
  parentId: string | null;
8799
- validUntil: string | null;
8800
- }[];
8801
- output: void;
8802
- meta: object;
9007
+ effectiveFrom?: string | undefined;
9008
+ status?: "active" | "inactive" | undefined;
9009
+ };
9010
+ output: {
9011
+ id: string & import("zod").$brand<"UUID">;
9012
+ name: string;
9013
+ externalId?: string | null | undefined;
9014
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9015
+ status: "active" | "inactive";
9016
+ versions: {
9017
+ versionId: string & import("zod").$brand<"UUID">;
9018
+ effectiveFrom: string;
9019
+ name: string;
9020
+ externalId?: string | null | undefined;
9021
+ status: "active" | "inactive";
9022
+ }[];
9023
+ };
9024
+ meta: import("trpc-to-openapi").OpenApiMeta;
9025
+ }>;
9026
+ update: import("@trpc/server").TRPCMutationProcedure<{
9027
+ input: {
9028
+ id: string;
9029
+ versionId?: string | undefined;
9030
+ name: string;
9031
+ externalId?: string | null | undefined;
9032
+ status: "active" | "inactive";
9033
+ effectiveFrom?: string | undefined;
9034
+ lastVersionId: string;
9035
+ };
9036
+ output: {
9037
+ id: string & import("zod").$brand<"UUID">;
9038
+ name: string;
9039
+ externalId?: string | null | undefined;
9040
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9041
+ status: "active" | "inactive";
9042
+ versions: {
9043
+ versionId: string & import("zod").$brand<"UUID">;
9044
+ effectiveFrom: string;
9045
+ name: string;
9046
+ externalId?: string | null | undefined;
9047
+ status: "active" | "inactive";
9048
+ }[];
9049
+ };
9050
+ meta: import("trpc-to-openapi").OpenApiMeta;
9051
+ }>;
9052
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
9053
+ input: {
9054
+ id: string;
9055
+ versionId: string;
9056
+ };
9057
+ output: {
9058
+ id: string & import("zod").$brand<"UUID">;
9059
+ name: string;
9060
+ externalId?: string | null | undefined;
9061
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9062
+ status: "active" | "inactive";
9063
+ versions: {
9064
+ versionId: string & import("zod").$brand<"UUID">;
9065
+ effectiveFrom: string;
9066
+ name: string;
9067
+ externalId?: string | null | undefined;
9068
+ status: "active" | "inactive";
9069
+ }[];
9070
+ };
9071
+ meta: import("trpc-to-openapi").OpenApiMeta;
8803
9072
  }>;
8804
9073
  }>>;
8805
9074
  integrations: import("@trpc/server").TRPCBuiltRouter<{
@@ -8808,16 +9077,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8808
9077
  user: {
8809
9078
  id: string & import("zod").$brand<"UUID">;
8810
9079
  type: "system";
8811
- signature?: undefined;
8812
9080
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8813
9081
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9082
+ signature?: undefined;
8814
9083
  } | {
8815
9084
  id: string & import("zod").$brand<"UUID">;
8816
- type: "user";
8817
9085
  role: string;
8818
9086
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8819
9087
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8820
9088
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9089
+ type: "user";
8821
9090
  };
8822
9091
  }>;
8823
9092
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8828,6 +9097,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8828
9097
  input: {
8829
9098
  name: string;
8830
9099
  scopes: string[];
9100
+ credentials?: {
9101
+ clientId: string;
9102
+ clientSecret: string;
9103
+ } | undefined;
8831
9104
  };
8832
9105
  output: {
8833
9106
  clientId: string;
@@ -8858,7 +9131,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8858
9131
  scopes: string[];
8859
9132
  status: string;
8860
9133
  createdAt: string;
8861
- createdBy: string & import("zod").$brand<"UUID">;
9134
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8862
9135
  }[];
8863
9136
  meta: import("trpc-to-openapi").OpenApiMeta;
8864
9137
  }>;
@@ -8873,7 +9146,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8873
9146
  status: string;
8874
9147
  shaSecret: string | null;
8875
9148
  createdAt: string;
8876
- createdBy: string & import("zod").$brand<"UUID">;
9149
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8877
9150
  };
8878
9151
  meta: import("trpc-to-openapi").OpenApiMeta;
8879
9152
  }>;
@@ -8919,6 +9192,364 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8919
9192
  };
8920
9193
  meta: import("trpc-to-openapi").OpenApiMeta;
8921
9194
  }>;
9195
+ audit: import("@trpc/server").TRPCQueryProcedure<{
9196
+ input: {
9197
+ id: string;
9198
+ skip?: number | undefined;
9199
+ count?: number | undefined;
9200
+ timeStart?: string | undefined;
9201
+ timeEnd?: string | undefined;
9202
+ };
9203
+ output: {
9204
+ results: ({
9205
+ id: string;
9206
+ clientId: string;
9207
+ clientType: "system" | "user";
9208
+ createdAt: string;
9209
+ operation: "event.create";
9210
+ requestData: {
9211
+ transactionId: string;
9212
+ type: string;
9213
+ createdAtLocation: string | null;
9214
+ };
9215
+ responseSummary: {
9216
+ eventId: string;
9217
+ trackingId: string;
9218
+ };
9219
+ } | {
9220
+ id: string;
9221
+ clientId: string;
9222
+ clientType: "system" | "user";
9223
+ createdAt: string;
9224
+ operation: "event.get";
9225
+ requestData: {
9226
+ eventId: string;
9227
+ };
9228
+ responseSummary: {
9229
+ eventType: string;
9230
+ trackingId: string;
9231
+ };
9232
+ } | {
9233
+ id: string;
9234
+ clientId: string;
9235
+ createdAt: string;
9236
+ operation: "event.search";
9237
+ clientType: "system";
9238
+ requestData: {
9239
+ query: Record<string, unknown> | null;
9240
+ limit: number | null;
9241
+ offset: number | null;
9242
+ };
9243
+ responseSummary: {
9244
+ total: number;
9245
+ eventIds: string[];
9246
+ };
9247
+ } | {
9248
+ id: string;
9249
+ clientId: string;
9250
+ clientType: "system" | "user";
9251
+ createdAt: string;
9252
+ 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";
9253
+ requestData: {
9254
+ eventId: string;
9255
+ actionType: string;
9256
+ eventType: string;
9257
+ trackingId: string;
9258
+ transactionId: string;
9259
+ };
9260
+ } | {
9261
+ id: string;
9262
+ clientId: string;
9263
+ clientType: "system" | "user";
9264
+ createdAt: string;
9265
+ operation: "event.actions.custom.request";
9266
+ requestData: {
9267
+ eventId: string;
9268
+ actionType: "CUSTOM";
9269
+ customAction: string;
9270
+ eventType: string;
9271
+ trackingId: string;
9272
+ transactionId: string;
9273
+ };
9274
+ } | {
9275
+ id: string;
9276
+ clientId: string;
9277
+ clientType: "system" | "user";
9278
+ createdAt: string;
9279
+ operation: "integrations.create";
9280
+ requestData: {
9281
+ name: string;
9282
+ scopes: string[];
9283
+ };
9284
+ responseSummary: {
9285
+ clientId: string;
9286
+ };
9287
+ } | {
9288
+ id: string;
9289
+ clientId: string;
9290
+ clientType: "system" | "user";
9291
+ createdAt: string;
9292
+ operation: "integrations.refreshToken";
9293
+ requestData: {
9294
+ clientId: string;
9295
+ };
9296
+ responseSummary: {
9297
+ clientId: string;
9298
+ };
9299
+ } | {
9300
+ id: string;
9301
+ clientId: string;
9302
+ clientType: "system" | "user";
9303
+ createdAt: string;
9304
+ operation: "integrations.deactivate";
9305
+ requestData: {
9306
+ id: string;
9307
+ };
9308
+ responseSummary: {
9309
+ id: string;
9310
+ status: string;
9311
+ };
9312
+ } | {
9313
+ id: string;
9314
+ clientId: string;
9315
+ clientType: "system" | "user";
9316
+ createdAt: string;
9317
+ operation: "integrations.activate";
9318
+ requestData: {
9319
+ id: string;
9320
+ };
9321
+ responseSummary: {
9322
+ id: string;
9323
+ status: string;
9324
+ };
9325
+ } | {
9326
+ id: string;
9327
+ clientId: string;
9328
+ clientType: "system" | "user";
9329
+ createdAt: string;
9330
+ operation: "integrations.delete";
9331
+ requestData: {
9332
+ id: string;
9333
+ };
9334
+ responseSummary: {
9335
+ id: string;
9336
+ name: string;
9337
+ };
9338
+ } | {
9339
+ id: string;
9340
+ clientId: string;
9341
+ clientType: "system" | "user";
9342
+ createdAt: string;
9343
+ operation: "integrations.refreshSecret";
9344
+ requestData: {
9345
+ id: string;
9346
+ };
9347
+ responseSummary: {
9348
+ clientId: string;
9349
+ };
9350
+ } | {
9351
+ id: string;
9352
+ clientId: string;
9353
+ clientType: "system" | "user";
9354
+ createdAt: string;
9355
+ operation: "locations.create";
9356
+ requestData: {
9357
+ id: string;
9358
+ versionId: string;
9359
+ name: string;
9360
+ externalId?: string | null | undefined;
9361
+ effectiveFrom: string;
9362
+ status: string;
9363
+ administrativeAreaId?: string | null | undefined;
9364
+ locationType?: string | null | undefined;
9365
+ };
9366
+ } | {
9367
+ id: string;
9368
+ clientId: string;
9369
+ clientType: "system" | "user";
9370
+ createdAt: string;
9371
+ operation: "locations.update";
9372
+ requestData: {
9373
+ id: string;
9374
+ versionId: string;
9375
+ name: string;
9376
+ externalId?: string | null | undefined;
9377
+ status: string;
9378
+ effectiveFrom: string;
9379
+ lastVersionId: string;
9380
+ };
9381
+ responseSummary: {
9382
+ previousVersionId: string;
9383
+ versionId: string;
9384
+ changed: {
9385
+ name?: {
9386
+ from: string;
9387
+ to: string;
9388
+ } | undefined;
9389
+ externalId?: {
9390
+ from: string | null;
9391
+ to: string | null;
9392
+ } | undefined;
9393
+ status?: {
9394
+ from: string;
9395
+ to: string;
9396
+ } | undefined;
9397
+ };
9398
+ };
9399
+ } | {
9400
+ id: string;
9401
+ clientId: string;
9402
+ clientType: "system" | "user";
9403
+ createdAt: string;
9404
+ operation: "administrativeAreas.update";
9405
+ requestData: {
9406
+ id: string;
9407
+ versionId: string;
9408
+ name: string;
9409
+ externalId?: string | null | undefined;
9410
+ status: string;
9411
+ effectiveFrom: string;
9412
+ lastVersionId: string;
9413
+ };
9414
+ responseSummary: {
9415
+ previousVersionId: string;
9416
+ versionId: string;
9417
+ changed: {
9418
+ name?: {
9419
+ from: string;
9420
+ to: string;
9421
+ } | undefined;
9422
+ externalId?: {
9423
+ from: string | null;
9424
+ to: string | null;
9425
+ } | undefined;
9426
+ status?: {
9427
+ from: string;
9428
+ to: string;
9429
+ } | undefined;
9430
+ };
9431
+ };
9432
+ } | {
9433
+ id: string;
9434
+ clientId: string;
9435
+ clientType: "system" | "user";
9436
+ createdAt: string;
9437
+ operation: "locations.withdrawVersion";
9438
+ requestData: {
9439
+ id: string;
9440
+ versionId: string;
9441
+ };
9442
+ responseSummary: {
9443
+ effectiveFrom: string;
9444
+ name: string;
9445
+ externalId?: string | null | undefined;
9446
+ status: string;
9447
+ };
9448
+ } | {
9449
+ id: string;
9450
+ clientId: string;
9451
+ clientType: "system" | "user";
9452
+ createdAt: string;
9453
+ operation: "administrativeAreas.withdrawVersion";
9454
+ requestData: {
9455
+ id: string;
9456
+ versionId: string;
9457
+ };
9458
+ responseSummary: {
9459
+ effectiveFrom: string;
9460
+ name: string;
9461
+ externalId?: string | null | undefined;
9462
+ status: string;
9463
+ };
9464
+ } | {
9465
+ id: string;
9466
+ clientId: string;
9467
+ clientType: "system" | "user";
9468
+ createdAt: string;
9469
+ operation: "administrativeAreas.create";
9470
+ requestData: {
9471
+ id: string;
9472
+ versionId: string;
9473
+ name: string;
9474
+ externalId?: string | null | undefined;
9475
+ effectiveFrom: string;
9476
+ status: string;
9477
+ parentId?: string | null | undefined;
9478
+ };
9479
+ } | {
9480
+ id: string;
9481
+ clientId: string;
9482
+ clientType: "system" | "user";
9483
+ createdAt: string;
9484
+ operation: "attachments.upload";
9485
+ requestData: {
9486
+ transactionId: string;
9487
+ eventId?: string | undefined;
9488
+ path: string | null;
9489
+ };
9490
+ responseSummary: {
9491
+ fileUrl: string;
9492
+ };
9493
+ } | {
9494
+ id: string;
9495
+ clientId: string;
9496
+ clientType: "system" | "user";
9497
+ createdAt: string;
9498
+ operation: "user.create_user";
9499
+ requestData: {
9500
+ subjectId: string;
9501
+ role: string;
9502
+ primaryOfficeId: string;
9503
+ };
9504
+ } | {
9505
+ id: string;
9506
+ clientId: string;
9507
+ clientType: "system" | "user";
9508
+ createdAt: string;
9509
+ operation: "user.deactivate" | "user.reactivate";
9510
+ requestData: {
9511
+ subjectId: string;
9512
+ reason: string;
9513
+ comment?: string | undefined;
9514
+ };
9515
+ } | {
9516
+ id: string;
9517
+ clientId: string;
9518
+ clientType: "system" | "user";
9519
+ createdAt: string;
9520
+ 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";
9521
+ requestData: {
9522
+ subjectId: string;
9523
+ };
9524
+ } | {
9525
+ id: string;
9526
+ clientId: string;
9527
+ clientType: "system" | "user";
9528
+ createdAt: string;
9529
+ operation: "user.email_address_changed";
9530
+ requestData: {
9531
+ subjectId: string;
9532
+ };
9533
+ responseSummary: {
9534
+ email: string;
9535
+ };
9536
+ } | {
9537
+ id: string;
9538
+ clientId: string;
9539
+ clientType: "system" | "user";
9540
+ createdAt: string;
9541
+ operation: "user.phone_number_changed";
9542
+ requestData: {
9543
+ subjectId: string;
9544
+ };
9545
+ responseSummary: {
9546
+ phoneNumber: string;
9547
+ };
9548
+ })[];
9549
+ total: number;
9550
+ };
9551
+ meta: import("trpc-to-openapi").OpenApiMeta;
9552
+ }>;
8922
9553
  }>>;
8923
9554
  attachments: import("@trpc/server").TRPCBuiltRouter<{
8924
9555
  ctx: Partial<{
@@ -8926,16 +9557,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8926
9557
  user: {
8927
9558
  id: string & import("zod").$brand<"UUID">;
8928
9559
  type: "system";
8929
- signature?: undefined;
8930
9560
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8931
9561
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9562
+ signature?: undefined;
8932
9563
  } | {
8933
9564
  id: string & import("zod").$brand<"UUID">;
8934
- type: "user";
8935
9565
  role: string;
8936
9566
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8937
9567
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8938
9568
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9569
+ type: "user";
8939
9570
  };
8940
9571
  }>;
8941
9572
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8949,6 +9580,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8949
9580
  } | {
8950
9581
  file: unknown;
8951
9582
  transactionId: unknown;
9583
+ eventId: unknown;
8952
9584
  path: unknown;
8953
9585
  };
8954
9586
  output: string;
@@ -8961,16 +9593,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8961
9593
  user: {
8962
9594
  id: string & import("zod").$brand<"UUID">;
8963
9595
  type: "system";
8964
- signature?: undefined;
8965
9596
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8966
9597
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9598
+ signature?: undefined;
8967
9599
  } | {
8968
9600
  id: string & import("zod").$brand<"UUID">;
8969
- type: "user";
8970
9601
  role: string;
8971
9602
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8972
9603
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8973
9604
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9605
+ type: "user";
8974
9606
  };
8975
9607
  }>;
8976
9608
  meta: import("trpc-to-openapi").OpenApiMeta;