@opencrvs/toolkit 2.1.0-rc.a95b09c → 2.1.0-rc.aae3e77

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 (109) hide show
  1. package/README.md +3 -12
  2. package/build.sh +9 -1
  3. package/create-countryconfig/index.js +412 -59
  4. package/create-countryconfig/node_modules/.bin/degit +21 -0
  5. package/create-countryconfig/package.json +4 -1
  6. package/dist/application-config/index.js +340 -275
  7. package/dist/authentication/index.d.ts +67 -0
  8. package/dist/authentication/index.d.ts.map +1 -0
  9. package/dist/authentication/index.js +750 -0
  10. package/dist/cli.js +1925 -283
  11. package/dist/commons/api/router.d.ts +702 -108
  12. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  13. package/dist/commons/conditionals/validate.d.ts +16 -5
  14. package/dist/commons/events/ActionDocument.d.ts +5 -11
  15. package/dist/commons/events/ActionInput.d.ts +4 -4
  16. package/dist/commons/events/ActionStatus.d.ts +14 -0
  17. package/dist/commons/events/AdvancedSearchConfig.d.ts +24 -0
  18. package/dist/commons/events/AuditLog.d.ts +147 -0
  19. package/dist/commons/events/EventConfig.d.ts +3 -0
  20. package/dist/commons/events/EventDocument.d.ts +470 -2
  21. package/dist/commons/events/EventIndex.d.ts +3 -26
  22. package/dist/commons/events/EventMetadata.d.ts +1 -11
  23. package/dist/commons/events/EventStatus.d.ts +19 -0
  24. package/dist/commons/events/FieldConfig.d.ts +89 -53
  25. package/dist/commons/events/FieldTypeMapping.d.ts +27 -27
  26. package/dist/commons/events/FieldValue.d.ts +2 -2
  27. package/dist/commons/events/Flag.d.ts +42 -0
  28. package/dist/commons/events/PlainDate.d.ts +8 -0
  29. package/dist/commons/events/SummaryConfig.d.ts +249 -0
  30. package/dist/commons/events/WorkqueueConfig.d.ts +17 -14
  31. package/dist/commons/events/event.d.ts +12 -0
  32. package/dist/commons/events/index.d.ts +1 -0
  33. package/dist/commons/events/locationPayloads.d.ts +95 -0
  34. package/dist/commons/events/locations.d.ts +246 -13
  35. package/dist/commons/events/mocks.test.utils.d.ts +46 -2
  36. package/dist/commons/events/test.utils.d.ts +29 -8
  37. package/dist/commons/events/utils.d.ts +13 -2
  38. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  39. package/dist/commons/notification/dispatch.d.ts +10 -0
  40. package/dist/commons/notification/index.d.ts +1 -0
  41. package/dist/conditionals/index.js +328 -58
  42. package/dist/csv.d.ts +25 -0
  43. package/dist/csv.d.ts.map +1 -0
  44. package/dist/csv.js +120 -0
  45. package/dist/environment/index.d.ts +1 -0
  46. package/dist/environment/index.d.ts.map +1 -1
  47. package/dist/environment/index.js +10 -0
  48. package/dist/environment/logger.d.ts +15 -3
  49. package/dist/environment/logger.d.ts.map +1 -1
  50. package/dist/environment/manage-users.js +1 -1
  51. package/dist/environment/paths.d.ts +7 -0
  52. package/dist/environment/paths.d.ts.map +1 -0
  53. package/dist/environment/paths.js +72 -0
  54. package/dist/environment/questions.d.ts.map +1 -1
  55. package/dist/environment/questions.js +20 -14
  56. package/dist/environment/setup-environment.js +47 -28
  57. package/dist/environment/templates.d.ts +0 -1
  58. package/dist/environment/templates.d.ts.map +1 -1
  59. package/dist/environment/templates.js +5 -9
  60. package/dist/environment/update-workflows.d.ts.map +1 -1
  61. package/dist/environment/update-workflows.js +21 -5
  62. package/dist/environment/upgrade.d.ts +2 -0
  63. package/dist/environment/upgrade.d.ts.map +1 -0
  64. package/dist/environment/upgrade.js +82 -0
  65. package/dist/environment/users.js +11 -13
  66. package/dist/environment/utils.d.ts +0 -12
  67. package/dist/environment/utils.d.ts.map +1 -1
  68. package/dist/environment/utils.js +1 -28
  69. package/dist/events/index.js +7589 -7100
  70. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
  71. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  72. package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
  73. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  74. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  75. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  76. package/dist/migrations/v2.1/add-translations.d.ts +9 -0
  77. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
  78. package/dist/migrations/v2.1/add-translations.js +213 -0
  79. package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
  80. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  81. package/dist/migrations/v2.1/enable-telemetry.js +438 -0
  82. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  83. package/dist/migrations/v2.1/index.js +1058 -0
  84. package/dist/notification/index.js +1858 -1460
  85. package/dist/scopes/index.d.ts +327 -32
  86. package/dist/scopes/index.js +329 -58
  87. package/dist/telemetry/index.d.ts +45 -0
  88. package/dist/telemetry/index.d.ts.map +1 -0
  89. package/dist/telemetry/index.js +39 -0
  90. package/dist/templates/charts-values/dependencies/values.yaml +2 -0
  91. package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -3
  92. package/dist/templates/charts-values/opentelemetry/values.yaml +95 -0
  93. package/dist/templates/charts-values/traefik/values.yaml +23 -9
  94. package/dist/templates/inventory/inventory.template.yml +1 -3
  95. package/dist/translations/check.d.ts +21 -0
  96. package/dist/translations/check.d.ts.map +1 -0
  97. package/dist/translations/check.js +132 -0
  98. package/dist/verify/endpoints.d.ts +2 -0
  99. package/dist/verify/endpoints.d.ts.map +1 -0
  100. package/dist/verify/endpoints.js +345 -0
  101. package/opencrvs-toolkit-2.1.0-rc.aae3e77.tgz +0 -0
  102. package/package.json +13 -7
  103. package/tsconfig.build.json +11 -0
  104. package/tsconfig.build.tsbuildinfo +1 -0
  105. package/tsconfig.json +3 -0
  106. package/dist/templates/inventory/production.example.yml +0 -77
  107. package/dist/templates/inventory/qa.example.yml +0 -48
  108. package/opencrvs-toolkit-2.1.0-rc.a95b09c.tgz +0 -0
  109. package/tsconfig.tsbuildinfo +0 -1
@@ -223,9 +223,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
223
223
  status: "Accepted" | "Rejected" | "Requested";
224
224
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
225
225
  type: "ARCHIVE";
226
- content: {
226
+ content?: {
227
227
  reason: string;
228
- };
228
+ } | undefined;
229
229
  } | {
230
230
  id: string & import("zod").$brand<"UUID">;
231
231
  transactionId: string;
@@ -549,9 +549,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
549
549
  status: "Accepted" | "Rejected" | "Requested";
550
550
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
551
551
  type: "ARCHIVE";
552
- content: {
552
+ content?: {
553
553
  reason: string;
554
- };
554
+ } | undefined;
555
555
  } | {
556
556
  id: string & import("zod").$brand<"UUID">;
557
557
  transactionId: string;
@@ -874,9 +874,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
874
874
  status: "Accepted" | "Rejected" | "Requested";
875
875
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
876
876
  type: "ARCHIVE";
877
- content: {
877
+ content?: {
878
878
  reason: string;
879
- };
879
+ } | undefined;
880
880
  } | {
881
881
  id: string & import("zod").$brand<"UUID">;
882
882
  transactionId: string;
@@ -1354,9 +1354,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1354
1354
  waitFor?: boolean | undefined;
1355
1355
  createdAtLocation?: string | null | undefined;
1356
1356
  type?: "ARCHIVE" | undefined;
1357
- content: {
1357
+ content?: {
1358
1358
  reason: string;
1359
- };
1359
+ } | undefined;
1360
1360
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1361
1361
  eventId: string;
1362
1362
  transactionId: string;
@@ -1645,9 +1645,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1645
1645
  status: "Accepted" | "Rejected" | "Requested";
1646
1646
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1647
1647
  type: "ARCHIVE";
1648
- content: {
1648
+ content?: {
1649
1649
  reason: string;
1650
- };
1650
+ } | undefined;
1651
1651
  } | {
1652
1652
  id: string & import("zod").$brand<"UUID">;
1653
1653
  transactionId: string;
@@ -2009,9 +2009,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2009
2009
  waitFor?: boolean | undefined;
2010
2010
  createdAtLocation?: string | null | undefined;
2011
2011
  type?: "ARCHIVE" | undefined;
2012
- content: {
2012
+ content?: {
2013
2013
  reason: string;
2014
- };
2014
+ } | undefined;
2015
2015
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2016
2016
  eventId: string;
2017
2017
  transactionId: string;
@@ -2278,9 +2278,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2278
2278
  status: "Accepted" | "Rejected" | "Requested";
2279
2279
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2280
2280
  type: "ARCHIVE";
2281
- content: {
2281
+ content?: {
2282
2282
  reason: string;
2283
- };
2283
+ } | undefined;
2284
2284
  } | {
2285
2285
  id: string & import("zod").$brand<"UUID">;
2286
2286
  transactionId: string;
@@ -2647,9 +2647,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2647
2647
  waitFor?: boolean | undefined;
2648
2648
  createdAtLocation?: string | null | undefined;
2649
2649
  type?: "ARCHIVE" | undefined;
2650
- content: {
2650
+ content?: {
2651
2651
  reason: string;
2652
- };
2652
+ } | undefined;
2653
2653
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2654
2654
  eventId: string;
2655
2655
  transactionId: string;
@@ -2951,9 +2951,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2951
2951
  waitFor?: boolean | undefined;
2952
2952
  createdAtLocation?: string | null | undefined;
2953
2953
  type?: "ARCHIVE" | undefined;
2954
- content: {
2954
+ content?: {
2955
2955
  reason: string;
2956
- };
2956
+ } | undefined;
2957
2957
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2958
2958
  eventId: string;
2959
2959
  transactionId: string;
@@ -3255,9 +3255,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3255
3255
  waitFor?: boolean | undefined;
3256
3256
  createdAtLocation?: string | null | undefined;
3257
3257
  type?: "ARCHIVE" | undefined;
3258
- content: {
3258
+ content?: {
3259
3259
  reason: string;
3260
- };
3260
+ } | undefined;
3261
3261
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3262
3262
  eventId: string;
3263
3263
  transactionId: string;
@@ -3559,9 +3559,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3559
3559
  waitFor?: boolean | undefined;
3560
3560
  createdAtLocation?: string | null | undefined;
3561
3561
  type?: "ARCHIVE" | undefined;
3562
- content: {
3562
+ content?: {
3563
3563
  reason: string;
3564
- };
3564
+ } | undefined;
3565
3565
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3566
3566
  eventId: string;
3567
3567
  transactionId: string;
@@ -3863,9 +3863,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3863
3863
  waitFor?: boolean | undefined;
3864
3864
  createdAtLocation?: string | null | undefined;
3865
3865
  type?: "ARCHIVE" | undefined;
3866
- content: {
3866
+ content?: {
3867
3867
  reason: string;
3868
- };
3868
+ } | undefined;
3869
3869
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3870
3870
  eventId: string;
3871
3871
  transactionId: string;
@@ -4167,9 +4167,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4167
4167
  waitFor?: boolean | undefined;
4168
4168
  createdAtLocation?: string | null | undefined;
4169
4169
  type?: "ARCHIVE" | undefined;
4170
- content: {
4170
+ content?: {
4171
4171
  reason: string;
4172
- };
4172
+ } | undefined;
4173
4173
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4174
4174
  eventId: string;
4175
4175
  transactionId: string;
@@ -4466,9 +4466,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4466
4466
  waitFor?: boolean | undefined;
4467
4467
  createdAtLocation?: string | null | undefined;
4468
4468
  type?: "ARCHIVE" | undefined;
4469
- content: {
4469
+ content?: {
4470
4470
  reason: string;
4471
- };
4471
+ } | undefined;
4472
4472
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4473
4473
  eventId: string;
4474
4474
  transactionId: string;
@@ -4736,9 +4736,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4736
4736
  status: "Accepted" | "Rejected" | "Requested";
4737
4737
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4738
4738
  type: "ARCHIVE";
4739
- content: {
4739
+ content?: {
4740
4740
  reason: string;
4741
- };
4741
+ } | undefined;
4742
4742
  } | {
4743
4743
  id: string & import("zod").$brand<"UUID">;
4744
4744
  transactionId: string;
@@ -4998,6 +4998,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4998
4998
  type: string;
4999
4999
  createdAt: string;
5000
5000
  updatedAt: string;
5001
+ trackingId: string;
5001
5002
  actions: ({
5002
5003
  id: string & import("zod").$brand<"UUID">;
5003
5004
  transactionId: string;
@@ -5094,9 +5095,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5094
5095
  status: "Accepted" | "Rejected" | "Requested";
5095
5096
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5096
5097
  type: "ARCHIVE";
5097
- content: {
5098
+ content?: {
5098
5099
  reason: string;
5099
- };
5100
+ } | undefined;
5100
5101
  } | {
5101
5102
  id: string & import("zod").$brand<"UUID">;
5102
5103
  transactionId: string;
@@ -5309,8 +5310,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5309
5310
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5310
5311
  status: "Rejected";
5311
5312
  })[];
5312
- trackingId: string;
5313
- };
5313
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5314
5314
  meta: import("trpc-to-openapi").OpenApiMeta;
5315
5315
  }>;
5316
5316
  unassign: import("@trpc/server").TRPCMutationProcedure<{
@@ -5333,6 +5333,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5333
5333
  type: string;
5334
5334
  createdAt: string;
5335
5335
  updatedAt: string;
5336
+ trackingId: string;
5336
5337
  actions: ({
5337
5338
  id: string & import("zod").$brand<"UUID">;
5338
5339
  transactionId: string;
@@ -5429,9 +5430,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5429
5430
  status: "Accepted" | "Rejected" | "Requested";
5430
5431
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5431
5432
  type: "ARCHIVE";
5432
- content: {
5433
+ content?: {
5433
5434
  reason: string;
5434
- };
5435
+ } | undefined;
5435
5436
  } | {
5436
5437
  id: string & import("zod").$brand<"UUID">;
5437
5438
  transactionId: string;
@@ -5644,8 +5645,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5644
5645
  type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5645
5646
  status: "Rejected";
5646
5647
  })[];
5647
- trackingId: string;
5648
- };
5648
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5649
5649
  meta: import("trpc-to-openapi").OpenApiMeta;
5650
5650
  }>;
5651
5651
  }>>;
@@ -5820,9 +5820,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5820
5820
  waitFor?: boolean | undefined;
5821
5821
  createdAtLocation?: string | null | undefined;
5822
5822
  type?: "ARCHIVE" | undefined;
5823
- content: {
5823
+ content?: {
5824
5824
  reason: string;
5825
- };
5825
+ } | undefined;
5826
5826
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5827
5827
  eventId: string;
5828
5828
  transactionId: string;
@@ -6124,9 +6124,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6124
6124
  waitFor?: boolean | undefined;
6125
6125
  createdAtLocation?: string | null | undefined;
6126
6126
  type?: "ARCHIVE" | undefined;
6127
- content: {
6127
+ content?: {
6128
6128
  reason: string;
6129
- };
6129
+ } | undefined;
6130
6130
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6131
6131
  eventId: string;
6132
6132
  transactionId: string;
@@ -6428,9 +6428,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6428
6428
  waitFor?: boolean | undefined;
6429
6429
  createdAtLocation?: string | null | undefined;
6430
6430
  type?: "ARCHIVE" | undefined;
6431
- content: {
6431
+ content?: {
6432
6432
  reason: string;
6433
- };
6433
+ } | undefined;
6434
6434
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6435
6435
  eventId: string;
6436
6436
  transactionId: string;
@@ -6724,9 +6724,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6724
6724
  status: "Accepted" | "Rejected" | "Requested";
6725
6725
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6726
6726
  type: "ARCHIVE";
6727
- content: {
6727
+ content?: {
6728
6728
  reason: string;
6729
- };
6729
+ } | undefined;
6730
6730
  } | {
6731
6731
  id: string & import("zod").$brand<"UUID">;
6732
6732
  transactionId: string;
@@ -7058,9 +7058,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7058
7058
  status: "Accepted" | "Rejected" | "Requested";
7059
7059
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7060
7060
  type: "ARCHIVE";
7061
- content: {
7061
+ content?: {
7062
7062
  reason: string;
7063
- };
7063
+ } | undefined;
7064
7064
  } | {
7065
7065
  id: string & import("zod").$brand<"UUID">;
7066
7066
  transactionId: string;
@@ -7443,9 +7443,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7443
7443
  status: "Accepted" | "Rejected" | "Requested";
7444
7444
  originalActionId?: string | null | undefined;
7445
7445
  type: "ARCHIVE";
7446
- content: {
7446
+ content?: {
7447
7447
  reason: string;
7448
- };
7448
+ } | undefined;
7449
7449
  } | {
7450
7450
  id: string;
7451
7451
  transactionId: string;
@@ -7834,8 +7834,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7834
7834
  email?: string | undefined;
7835
7835
  status?: string | undefined;
7836
7836
  primaryOfficeId?: string | undefined;
7837
- count: number;
7838
- skip: number;
7837
+ count?: number | undefined;
7838
+ skip?: number | undefined;
7839
7839
  sortBy?: "createdAt" | "email" | "firstname" | "role" | "status" | "surname" | "username" | undefined;
7840
7840
  sortOrder: "asc" | "desc";
7841
7841
  };
@@ -8046,46 +8046,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8046
8046
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8047
8047
  transformer: true;
8048
8048
  }, 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
8049
  list: import("@trpc/server").TRPCQueryProcedure<{
8090
8050
  input: {
8091
8051
  userId: string;
@@ -8242,6 +8202,135 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8242
8202
  responseSummary: {
8243
8203
  clientId: string;
8244
8204
  };
8205
+ } | {
8206
+ id: string;
8207
+ clientId: string;
8208
+ clientType: "system" | "user";
8209
+ createdAt: string;
8210
+ operation: "locations.create";
8211
+ requestData: {
8212
+ id: string;
8213
+ versionId: string;
8214
+ name: string;
8215
+ externalId?: string | null | undefined;
8216
+ effectiveFrom: string;
8217
+ status: string;
8218
+ administrativeAreaId?: string | null | undefined;
8219
+ locationType?: string | null | undefined;
8220
+ };
8221
+ } | {
8222
+ id: string;
8223
+ clientId: string;
8224
+ clientType: "system" | "user";
8225
+ createdAt: string;
8226
+ operation: "locations.update";
8227
+ requestData: {
8228
+ id: string;
8229
+ versionId: string;
8230
+ name: string;
8231
+ externalId?: string | null | undefined;
8232
+ status: string;
8233
+ effectiveFrom: string;
8234
+ lastVersionId: string;
8235
+ };
8236
+ responseSummary: {
8237
+ previousVersionId: string;
8238
+ versionId: string;
8239
+ changed: {
8240
+ name?: {
8241
+ from: string;
8242
+ to: string;
8243
+ } | undefined;
8244
+ externalId?: {
8245
+ from: string | null;
8246
+ to: string | null;
8247
+ } | undefined;
8248
+ status?: {
8249
+ from: string;
8250
+ to: string;
8251
+ } | undefined;
8252
+ };
8253
+ };
8254
+ } | {
8255
+ id: string;
8256
+ clientId: string;
8257
+ clientType: "system" | "user";
8258
+ createdAt: string;
8259
+ operation: "administrativeAreas.update";
8260
+ requestData: {
8261
+ id: string;
8262
+ versionId: string;
8263
+ name: string;
8264
+ externalId?: string | null | undefined;
8265
+ status: string;
8266
+ effectiveFrom: string;
8267
+ lastVersionId: string;
8268
+ };
8269
+ responseSummary: {
8270
+ previousVersionId: string;
8271
+ versionId: string;
8272
+ changed: {
8273
+ name?: {
8274
+ from: string;
8275
+ to: string;
8276
+ } | undefined;
8277
+ externalId?: {
8278
+ from: string | null;
8279
+ to: string | null;
8280
+ } | undefined;
8281
+ status?: {
8282
+ from: string;
8283
+ to: string;
8284
+ } | undefined;
8285
+ };
8286
+ };
8287
+ } | {
8288
+ id: string;
8289
+ clientId: string;
8290
+ clientType: "system" | "user";
8291
+ createdAt: string;
8292
+ operation: "locations.withdrawVersion";
8293
+ requestData: {
8294
+ id: string;
8295
+ versionId: string;
8296
+ };
8297
+ responseSummary: {
8298
+ effectiveFrom: string;
8299
+ name: string;
8300
+ externalId?: string | null | undefined;
8301
+ status: string;
8302
+ };
8303
+ } | {
8304
+ id: string;
8305
+ clientId: string;
8306
+ clientType: "system" | "user";
8307
+ createdAt: string;
8308
+ operation: "administrativeAreas.withdrawVersion";
8309
+ requestData: {
8310
+ id: string;
8311
+ versionId: string;
8312
+ };
8313
+ responseSummary: {
8314
+ effectiveFrom: string;
8315
+ name: string;
8316
+ externalId?: string | null | undefined;
8317
+ status: string;
8318
+ };
8319
+ } | {
8320
+ id: string;
8321
+ clientId: string;
8322
+ clientType: "system" | "user";
8323
+ createdAt: string;
8324
+ operation: "administrativeAreas.create";
8325
+ requestData: {
8326
+ id: string;
8327
+ versionId: string;
8328
+ name: string;
8329
+ externalId?: string | null | undefined;
8330
+ effectiveFrom: string;
8331
+ status: string;
8332
+ parentId?: string | null | undefined;
8333
+ };
8245
8334
  } | {
8246
8335
  id: string;
8247
8336
  clientId: string;
@@ -8351,22 +8440,94 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8351
8440
  name: string;
8352
8441
  externalId?: string | null | undefined;
8353
8442
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8354
- validUntil: string | null;
8355
8443
  locationType: string | null;
8444
+ status: "active" | "inactive";
8445
+ versions: {
8446
+ versionId: string & import("zod").$brand<"UUID">;
8447
+ effectiveFrom: string;
8448
+ name: string;
8449
+ externalId?: string | null | undefined;
8450
+ status: "active" | "inactive";
8451
+ }[];
8356
8452
  }[];
8357
8453
  meta: object;
8358
8454
  }>;
8359
- set: import("@trpc/server").TRPCMutationProcedure<{
8455
+ create: import("@trpc/server").TRPCMutationProcedure<{
8360
8456
  input: {
8361
- id: string;
8457
+ id?: string | undefined;
8458
+ versionId?: string | undefined;
8362
8459
  name: string;
8363
8460
  externalId?: string | null | undefined;
8364
8461
  administrativeAreaId: string | null;
8365
- validUntil: string | null;
8366
8462
  locationType: string | null;
8367
- }[];
8368
- output: void;
8369
- meta: object;
8463
+ effectiveFrom?: string | undefined;
8464
+ status?: "active" | "inactive" | undefined;
8465
+ };
8466
+ output: {
8467
+ id: string & import("zod").$brand<"UUID">;
8468
+ name: string;
8469
+ externalId?: string | null | undefined;
8470
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8471
+ locationType: string | null;
8472
+ status: "active" | "inactive";
8473
+ versions: {
8474
+ versionId: string & import("zod").$brand<"UUID">;
8475
+ effectiveFrom: string;
8476
+ name: string;
8477
+ externalId?: string | null | undefined;
8478
+ status: "active" | "inactive";
8479
+ }[];
8480
+ };
8481
+ meta: import("trpc-to-openapi").OpenApiMeta;
8482
+ }>;
8483
+ update: import("@trpc/server").TRPCMutationProcedure<{
8484
+ input: {
8485
+ id: string;
8486
+ versionId?: string | undefined;
8487
+ name: string;
8488
+ externalId?: string | null | undefined;
8489
+ status: "active" | "inactive";
8490
+ effectiveFrom?: string | undefined;
8491
+ lastVersionId: string;
8492
+ };
8493
+ output: {
8494
+ id: string & import("zod").$brand<"UUID">;
8495
+ name: string;
8496
+ externalId?: string | null | undefined;
8497
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8498
+ locationType: string | null;
8499
+ status: "active" | "inactive";
8500
+ versions: {
8501
+ versionId: string & import("zod").$brand<"UUID">;
8502
+ effectiveFrom: string;
8503
+ name: string;
8504
+ externalId?: string | null | undefined;
8505
+ status: "active" | "inactive";
8506
+ }[];
8507
+ };
8508
+ meta: import("trpc-to-openapi").OpenApiMeta;
8509
+ }>;
8510
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
8511
+ input: {
8512
+ id: string;
8513
+ versionId: string;
8514
+ };
8515
+ output: {
8516
+ id: string & import("zod").$brand<"UUID">;
8517
+ name: string;
8518
+ externalId?: string | null | undefined;
8519
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8520
+ locationType: string | null;
8521
+ status: "active" | "inactive";
8522
+ versions: {
8523
+ versionId: string & import("zod").$brand<"UUID">;
8524
+ effectiveFrom: string;
8525
+ name: string;
8526
+ externalId?: string | null | undefined;
8527
+ status: "active" | "inactive";
8528
+ }[];
8529
+ };
8530
+ meta: import("trpc-to-openapi").OpenApiMeta;
8370
8531
  }>;
8371
8532
  get: import("@trpc/server").TRPCQueryProcedure<{
8372
8533
  input: {
@@ -8377,8 +8538,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8377
8538
  name: string;
8378
8539
  externalId?: string | null | undefined;
8379
8540
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8380
- validUntil: string | null;
8381
8541
  locationType: string | null;
8542
+ status: "active" | "inactive";
8543
+ versions: {
8544
+ versionId: string & import("zod").$brand<"UUID">;
8545
+ effectiveFrom: string;
8546
+ name: string;
8547
+ externalId?: string | null | undefined;
8548
+ status: "active" | "inactive";
8549
+ }[];
8382
8550
  };
8383
8551
  meta: import("trpc-to-openapi").OpenApiMeta;
8384
8552
  }>;
@@ -8735,7 +8903,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8735
8903
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
8736
8904
  };
8737
8905
  }[];
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";
8906
+ 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
8907
  emptyMessage?: {
8740
8908
  id: string;
8741
8909
  defaultMessage: string;
@@ -8786,20 +8954,89 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8786
8954
  name: string;
8787
8955
  externalId?: string | null | undefined;
8788
8956
  parentId: (string & import("zod").$brand<"UUID">) | null;
8789
- validUntil: string | null;
8957
+ status: "active" | "inactive";
8958
+ versions: {
8959
+ versionId: string & import("zod").$brand<"UUID">;
8960
+ effectiveFrom: string;
8961
+ name: string;
8962
+ externalId?: string | null | undefined;
8963
+ status: "active" | "inactive";
8964
+ }[];
8790
8965
  }[];
8791
8966
  meta: import("trpc-to-openapi").OpenApiMeta;
8792
8967
  }>;
8793
- set: import("@trpc/server").TRPCMutationProcedure<{
8968
+ create: import("@trpc/server").TRPCMutationProcedure<{
8794
8969
  input: {
8795
- id: string;
8970
+ id?: string | undefined;
8971
+ versionId?: string | undefined;
8796
8972
  name: string;
8797
8973
  externalId?: string | null | undefined;
8798
8974
  parentId: string | null;
8799
- validUntil: string | null;
8800
- }[];
8801
- output: void;
8802
- meta: object;
8975
+ effectiveFrom?: string | undefined;
8976
+ status?: "active" | "inactive" | undefined;
8977
+ };
8978
+ output: {
8979
+ id: string & import("zod").$brand<"UUID">;
8980
+ name: string;
8981
+ externalId?: string | null | undefined;
8982
+ parentId: (string & import("zod").$brand<"UUID">) | null;
8983
+ status: "active" | "inactive";
8984
+ versions: {
8985
+ versionId: string & import("zod").$brand<"UUID">;
8986
+ effectiveFrom: string;
8987
+ name: string;
8988
+ externalId?: string | null | undefined;
8989
+ status: "active" | "inactive";
8990
+ }[];
8991
+ };
8992
+ meta: import("trpc-to-openapi").OpenApiMeta;
8993
+ }>;
8994
+ update: import("@trpc/server").TRPCMutationProcedure<{
8995
+ input: {
8996
+ id: string;
8997
+ versionId?: string | undefined;
8998
+ name: string;
8999
+ externalId?: string | null | undefined;
9000
+ status: "active" | "inactive";
9001
+ effectiveFrom?: string | undefined;
9002
+ lastVersionId: string;
9003
+ };
9004
+ output: {
9005
+ id: string & import("zod").$brand<"UUID">;
9006
+ name: string;
9007
+ externalId?: string | null | undefined;
9008
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9009
+ status: "active" | "inactive";
9010
+ versions: {
9011
+ versionId: string & import("zod").$brand<"UUID">;
9012
+ effectiveFrom: string;
9013
+ name: string;
9014
+ externalId?: string | null | undefined;
9015
+ status: "active" | "inactive";
9016
+ }[];
9017
+ };
9018
+ meta: import("trpc-to-openapi").OpenApiMeta;
9019
+ }>;
9020
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
9021
+ input: {
9022
+ id: string;
9023
+ versionId: string;
9024
+ };
9025
+ output: {
9026
+ id: string & import("zod").$brand<"UUID">;
9027
+ name: string;
9028
+ externalId?: string | null | undefined;
9029
+ parentId: (string & import("zod").$brand<"UUID">) | null;
9030
+ status: "active" | "inactive";
9031
+ versions: {
9032
+ versionId: string & import("zod").$brand<"UUID">;
9033
+ effectiveFrom: string;
9034
+ name: string;
9035
+ externalId?: string | null | undefined;
9036
+ status: "active" | "inactive";
9037
+ }[];
9038
+ };
9039
+ meta: import("trpc-to-openapi").OpenApiMeta;
8803
9040
  }>;
8804
9041
  }>>;
8805
9042
  integrations: import("@trpc/server").TRPCBuiltRouter<{
@@ -8919,6 +9156,363 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8919
9156
  };
8920
9157
  meta: import("trpc-to-openapi").OpenApiMeta;
8921
9158
  }>;
9159
+ audit: import("@trpc/server").TRPCQueryProcedure<{
9160
+ input: {
9161
+ id: string;
9162
+ skip?: number | undefined;
9163
+ count?: number | undefined;
9164
+ timeStart?: string | undefined;
9165
+ timeEnd?: string | undefined;
9166
+ };
9167
+ output: {
9168
+ results: ({
9169
+ id: string;
9170
+ clientId: string;
9171
+ clientType: "system" | "user";
9172
+ createdAt: string;
9173
+ operation: "event.create";
9174
+ requestData: {
9175
+ transactionId: string;
9176
+ type: string;
9177
+ createdAtLocation: string | null;
9178
+ };
9179
+ responseSummary: {
9180
+ eventId: string;
9181
+ trackingId: string;
9182
+ };
9183
+ } | {
9184
+ id: string;
9185
+ clientId: string;
9186
+ clientType: "system" | "user";
9187
+ createdAt: string;
9188
+ operation: "event.get";
9189
+ requestData: {
9190
+ eventId: string;
9191
+ };
9192
+ responseSummary: {
9193
+ eventType: string;
9194
+ trackingId: string;
9195
+ };
9196
+ } | {
9197
+ id: string;
9198
+ clientId: string;
9199
+ createdAt: string;
9200
+ operation: "event.search";
9201
+ clientType: "system";
9202
+ requestData: {
9203
+ query: Record<string, unknown> | null;
9204
+ limit: number | null;
9205
+ offset: number | null;
9206
+ };
9207
+ responseSummary: {
9208
+ total: number;
9209
+ eventIds: string[];
9210
+ };
9211
+ } | {
9212
+ id: string;
9213
+ clientId: string;
9214
+ clientType: "system" | "user";
9215
+ createdAt: string;
9216
+ operation: "event.actions.archive.request" | "event.actions.assign.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.correction.request.request" | "event.actions.declare.request" | "event.actions.edit.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request" | "event.actions.notify.request" | "event.actions.print_certificate.request" | "event.actions.read.request" | "event.actions.register.request" | "event.actions.reinstate.request" | "event.actions.reject.request" | "event.actions.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
9217
+ requestData: {
9218
+ eventId: string;
9219
+ actionType: string;
9220
+ eventType: string;
9221
+ trackingId: string;
9222
+ transactionId: string;
9223
+ };
9224
+ } | {
9225
+ id: string;
9226
+ clientId: string;
9227
+ clientType: "system" | "user";
9228
+ createdAt: string;
9229
+ operation: "event.actions.custom.request";
9230
+ requestData: {
9231
+ eventId: string;
9232
+ actionType: "CUSTOM";
9233
+ customAction: string;
9234
+ eventType: string;
9235
+ trackingId: string;
9236
+ transactionId: string;
9237
+ };
9238
+ } | {
9239
+ id: string;
9240
+ clientId: string;
9241
+ clientType: "system" | "user";
9242
+ createdAt: string;
9243
+ operation: "integrations.create";
9244
+ requestData: {
9245
+ name: string;
9246
+ scopes: string[];
9247
+ };
9248
+ responseSummary: {
9249
+ clientId: string;
9250
+ };
9251
+ } | {
9252
+ id: string;
9253
+ clientId: string;
9254
+ clientType: "system" | "user";
9255
+ createdAt: string;
9256
+ operation: "integrations.refreshToken";
9257
+ requestData: {
9258
+ clientId: string;
9259
+ };
9260
+ responseSummary: {
9261
+ clientId: string;
9262
+ };
9263
+ } | {
9264
+ id: string;
9265
+ clientId: string;
9266
+ clientType: "system" | "user";
9267
+ createdAt: string;
9268
+ operation: "integrations.deactivate";
9269
+ requestData: {
9270
+ id: string;
9271
+ };
9272
+ responseSummary: {
9273
+ id: string;
9274
+ status: string;
9275
+ };
9276
+ } | {
9277
+ id: string;
9278
+ clientId: string;
9279
+ clientType: "system" | "user";
9280
+ createdAt: string;
9281
+ operation: "integrations.activate";
9282
+ requestData: {
9283
+ id: string;
9284
+ };
9285
+ responseSummary: {
9286
+ id: string;
9287
+ status: string;
9288
+ };
9289
+ } | {
9290
+ id: string;
9291
+ clientId: string;
9292
+ clientType: "system" | "user";
9293
+ createdAt: string;
9294
+ operation: "integrations.delete";
9295
+ requestData: {
9296
+ id: string;
9297
+ };
9298
+ responseSummary: {
9299
+ id: string;
9300
+ name: string;
9301
+ };
9302
+ } | {
9303
+ id: string;
9304
+ clientId: string;
9305
+ clientType: "system" | "user";
9306
+ createdAt: string;
9307
+ operation: "integrations.refreshSecret";
9308
+ requestData: {
9309
+ id: string;
9310
+ };
9311
+ responseSummary: {
9312
+ clientId: string;
9313
+ };
9314
+ } | {
9315
+ id: string;
9316
+ clientId: string;
9317
+ clientType: "system" | "user";
9318
+ createdAt: string;
9319
+ operation: "locations.create";
9320
+ requestData: {
9321
+ id: string;
9322
+ versionId: string;
9323
+ name: string;
9324
+ externalId?: string | null | undefined;
9325
+ effectiveFrom: string;
9326
+ status: string;
9327
+ administrativeAreaId?: string | null | undefined;
9328
+ locationType?: string | null | undefined;
9329
+ };
9330
+ } | {
9331
+ id: string;
9332
+ clientId: string;
9333
+ clientType: "system" | "user";
9334
+ createdAt: string;
9335
+ operation: "locations.update";
9336
+ requestData: {
9337
+ id: string;
9338
+ versionId: string;
9339
+ name: string;
9340
+ externalId?: string | null | undefined;
9341
+ status: string;
9342
+ effectiveFrom: string;
9343
+ lastVersionId: string;
9344
+ };
9345
+ responseSummary: {
9346
+ previousVersionId: string;
9347
+ versionId: string;
9348
+ changed: {
9349
+ name?: {
9350
+ from: string;
9351
+ to: string;
9352
+ } | undefined;
9353
+ externalId?: {
9354
+ from: string | null;
9355
+ to: string | null;
9356
+ } | undefined;
9357
+ status?: {
9358
+ from: string;
9359
+ to: string;
9360
+ } | undefined;
9361
+ };
9362
+ };
9363
+ } | {
9364
+ id: string;
9365
+ clientId: string;
9366
+ clientType: "system" | "user";
9367
+ createdAt: string;
9368
+ operation: "administrativeAreas.update";
9369
+ requestData: {
9370
+ id: string;
9371
+ versionId: string;
9372
+ name: string;
9373
+ externalId?: string | null | undefined;
9374
+ status: string;
9375
+ effectiveFrom: string;
9376
+ lastVersionId: string;
9377
+ };
9378
+ responseSummary: {
9379
+ previousVersionId: string;
9380
+ versionId: string;
9381
+ changed: {
9382
+ name?: {
9383
+ from: string;
9384
+ to: string;
9385
+ } | undefined;
9386
+ externalId?: {
9387
+ from: string | null;
9388
+ to: string | null;
9389
+ } | undefined;
9390
+ status?: {
9391
+ from: string;
9392
+ to: string;
9393
+ } | undefined;
9394
+ };
9395
+ };
9396
+ } | {
9397
+ id: string;
9398
+ clientId: string;
9399
+ clientType: "system" | "user";
9400
+ createdAt: string;
9401
+ operation: "locations.withdrawVersion";
9402
+ requestData: {
9403
+ id: string;
9404
+ versionId: string;
9405
+ };
9406
+ responseSummary: {
9407
+ effectiveFrom: string;
9408
+ name: string;
9409
+ externalId?: string | null | undefined;
9410
+ status: string;
9411
+ };
9412
+ } | {
9413
+ id: string;
9414
+ clientId: string;
9415
+ clientType: "system" | "user";
9416
+ createdAt: string;
9417
+ operation: "administrativeAreas.withdrawVersion";
9418
+ requestData: {
9419
+ id: string;
9420
+ versionId: string;
9421
+ };
9422
+ responseSummary: {
9423
+ effectiveFrom: string;
9424
+ name: string;
9425
+ externalId?: string | null | undefined;
9426
+ status: string;
9427
+ };
9428
+ } | {
9429
+ id: string;
9430
+ clientId: string;
9431
+ clientType: "system" | "user";
9432
+ createdAt: string;
9433
+ operation: "administrativeAreas.create";
9434
+ requestData: {
9435
+ id: string;
9436
+ versionId: string;
9437
+ name: string;
9438
+ externalId?: string | null | undefined;
9439
+ effectiveFrom: string;
9440
+ status: string;
9441
+ parentId?: string | null | undefined;
9442
+ };
9443
+ } | {
9444
+ id: string;
9445
+ clientId: string;
9446
+ clientType: "system" | "user";
9447
+ createdAt: string;
9448
+ operation: "attachments.upload";
9449
+ requestData: {
9450
+ transactionId: string;
9451
+ path: string | null;
9452
+ };
9453
+ responseSummary: {
9454
+ fileUrl: string;
9455
+ };
9456
+ } | {
9457
+ id: string;
9458
+ clientId: string;
9459
+ clientType: "system" | "user";
9460
+ createdAt: string;
9461
+ operation: "user.create_user";
9462
+ requestData: {
9463
+ subjectId: string;
9464
+ role: string;
9465
+ primaryOfficeId: string;
9466
+ };
9467
+ } | {
9468
+ id: string;
9469
+ clientId: string;
9470
+ clientType: "system" | "user";
9471
+ createdAt: string;
9472
+ operation: "user.deactivate" | "user.reactivate";
9473
+ requestData: {
9474
+ subjectId: string;
9475
+ reason: string;
9476
+ comment?: string | undefined;
9477
+ };
9478
+ } | {
9479
+ id: string;
9480
+ clientId: string;
9481
+ clientType: "system" | "user";
9482
+ createdAt: string;
9483
+ 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";
9484
+ requestData: {
9485
+ subjectId: string;
9486
+ };
9487
+ } | {
9488
+ id: string;
9489
+ clientId: string;
9490
+ clientType: "system" | "user";
9491
+ createdAt: string;
9492
+ operation: "user.email_address_changed";
9493
+ requestData: {
9494
+ subjectId: string;
9495
+ };
9496
+ responseSummary: {
9497
+ email: string;
9498
+ };
9499
+ } | {
9500
+ id: string;
9501
+ clientId: string;
9502
+ clientType: "system" | "user";
9503
+ createdAt: string;
9504
+ operation: "user.phone_number_changed";
9505
+ requestData: {
9506
+ subjectId: string;
9507
+ };
9508
+ responseSummary: {
9509
+ phoneNumber: string;
9510
+ };
9511
+ })[];
9512
+ total: number;
9513
+ };
9514
+ meta: import("trpc-to-openapi").OpenApiMeta;
9515
+ }>;
8922
9516
  }>>;
8923
9517
  attachments: import("@trpc/server").TRPCBuiltRouter<{
8924
9518
  ctx: Partial<{