@opencrvs/toolkit 2.1.0-rc.bb6887b → 2.1.0-rc.bed50b3

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 (113) hide show
  1. package/README.md +3 -12
  2. package/build.sh +12 -4
  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 +346 -277
  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 +754 -0
  10. package/dist/cli.js +1944 -283
  11. package/dist/commons/api/router.d.ts +689 -110
  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/ActionConfig.d.ts +4 -0
  15. package/dist/commons/events/ActionDocument.d.ts +5 -11
  16. package/dist/commons/events/ActionInput.d.ts +4 -4
  17. package/dist/commons/events/ActionStatus.d.ts +14 -0
  18. package/dist/commons/events/AdvancedSearchConfig.d.ts +36 -0
  19. package/dist/commons/events/AuditLog.d.ts +147 -0
  20. package/dist/commons/events/EventConfig.d.ts +3 -0
  21. package/dist/commons/events/EventDocument.d.ts +470 -2
  22. package/dist/commons/events/EventIndex.d.ts +3 -26
  23. package/dist/commons/events/EventMetadata.d.ts +1 -11
  24. package/dist/commons/events/EventStatus.d.ts +19 -0
  25. package/dist/commons/events/FieldConfig.d.ts +99 -53
  26. package/dist/commons/events/FieldTypeMapping.d.ts +27 -27
  27. package/dist/commons/events/FieldValue.d.ts +2 -2
  28. package/dist/commons/events/Flag.d.ts +42 -0
  29. package/dist/commons/events/FormConfig.d.ts +6 -0
  30. package/dist/commons/events/PageConfig.d.ts +4 -0
  31. package/dist/commons/events/PlainDate.d.ts +8 -0
  32. package/dist/commons/events/SummaryConfig.d.ts +249 -0
  33. package/dist/commons/events/WorkqueueConfig.d.ts +17 -14
  34. package/dist/commons/events/event.d.ts +12 -0
  35. package/dist/commons/events/index.d.ts +1 -0
  36. package/dist/commons/events/locationPayloads.d.ts +95 -0
  37. package/dist/commons/events/locations.d.ts +169 -26
  38. package/dist/commons/events/mocks.test.utils.d.ts +30 -0
  39. package/dist/commons/events/test.utils.d.ts +25 -4
  40. package/dist/commons/events/utils.d.ts +17 -2
  41. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  42. package/dist/commons/notification/dispatch.d.ts +10 -0
  43. package/dist/commons/notification/index.d.ts +1 -0
  44. package/dist/conditionals/index.js +334 -60
  45. package/dist/csv.d.ts +25 -0
  46. package/dist/csv.d.ts.map +1 -0
  47. package/dist/csv.js +120 -0
  48. package/dist/environment/index.d.ts +1 -0
  49. package/dist/environment/index.d.ts.map +1 -1
  50. package/dist/environment/index.js +10 -0
  51. package/dist/environment/logger.d.ts +15 -3
  52. package/dist/environment/logger.d.ts.map +1 -1
  53. package/dist/environment/manage-users.js +1 -1
  54. package/dist/environment/paths.d.ts +7 -0
  55. package/dist/environment/paths.d.ts.map +1 -0
  56. package/dist/environment/paths.js +72 -0
  57. package/dist/environment/questions.d.ts.map +1 -1
  58. package/dist/environment/questions.js +20 -14
  59. package/dist/environment/setup-environment.js +47 -28
  60. package/dist/environment/templates.d.ts +0 -1
  61. package/dist/environment/templates.d.ts.map +1 -1
  62. package/dist/environment/templates.js +5 -9
  63. package/dist/environment/update-workflows.d.ts.map +1 -1
  64. package/dist/environment/update-workflows.js +21 -5
  65. package/dist/environment/upgrade.d.ts +2 -0
  66. package/dist/environment/upgrade.d.ts.map +1 -0
  67. package/dist/environment/upgrade.js +82 -0
  68. package/dist/environment/users.js +11 -13
  69. package/dist/environment/utils.d.ts +0 -12
  70. package/dist/environment/utils.d.ts.map +1 -1
  71. package/dist/environment/utils.js +1 -28
  72. package/dist/events/index.js +7659 -7152
  73. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
  74. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  75. package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
  76. package/dist/migrations/v2.0/merge-infrastructure-directory.js +3 -3
  77. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  78. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  79. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  80. package/dist/migrations/v2.1/add-translations.d.ts +9 -0
  81. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
  82. package/dist/migrations/v2.1/add-translations.js +213 -0
  83. package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
  84. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  85. package/dist/migrations/v2.1/enable-telemetry.js +455 -0
  86. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  87. package/dist/migrations/v2.1/index.js +1081 -0
  88. package/dist/notification/index.js +1844 -1422
  89. package/dist/scopes/index.d.ts +435 -32
  90. package/dist/scopes/index.js +335 -60
  91. package/dist/telemetry/index.d.ts +45 -0
  92. package/dist/telemetry/index.d.ts.map +1 -0
  93. package/dist/telemetry/index.js +43 -0
  94. package/dist/templates/charts-values/dependencies/values.yaml +2 -0
  95. package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -3
  96. package/dist/templates/charts-values/opentelemetry/values.yaml +95 -0
  97. package/dist/templates/charts-values/traefik/values.yaml +23 -9
  98. package/dist/templates/inventory/inventory.template.yml +1 -3
  99. package/dist/translations/check.d.ts +21 -0
  100. package/dist/translations/check.d.ts.map +1 -0
  101. package/dist/translations/check.js +132 -0
  102. package/dist/verify/endpoints.d.ts +2 -0
  103. package/dist/verify/endpoints.d.ts.map +1 -0
  104. package/dist/verify/endpoints.js +345 -0
  105. package/opencrvs-toolkit-2.1.0-rc.bed50b3.tgz +0 -0
  106. package/package.json +13 -7
  107. package/tsconfig.build.json +11 -0
  108. package/tsconfig.build.tsbuildinfo +1 -0
  109. package/tsconfig.json +3 -0
  110. package/dist/templates/inventory/production.example.yml +0 -77
  111. package/dist/templates/inventory/qa.example.yml +0 -48
  112. package/opencrvs-toolkit-2.1.0-rc.bb6887b.tgz +0 -0
  113. 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;
@@ -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;
@@ -8363,20 +8452,43 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8363
8452
  }[];
8364
8453
  meta: object;
8365
8454
  }>;
8366
- set: import("@trpc/server").TRPCMutationProcedure<{
8455
+ create: import("@trpc/server").TRPCMutationProcedure<{
8367
8456
  input: {
8368
- id: string;
8457
+ id?: string | undefined;
8458
+ versionId?: string | undefined;
8369
8459
  name: string;
8370
8460
  externalId?: string | null | undefined;
8371
8461
  administrativeAreaId: string | null;
8372
8462
  locationType: string | null;
8373
- }[];
8374
- output: void;
8375
- 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;
8376
8482
  }>;
8377
- get: import("@trpc/server").TRPCQueryProcedure<{
8483
+ update: import("@trpc/server").TRPCMutationProcedure<{
8378
8484
  input: {
8379
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;
8380
8492
  };
8381
8493
  output: {
8382
8494
  id: string & import("zod").$brand<"UUID">;
@@ -8395,16 +8507,59 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8395
8507
  };
8396
8508
  meta: import("trpc-to-openapi").OpenApiMeta;
8397
8509
  }>;
8398
- getLocationHierarchy: import("@trpc/server").TRPCQueryProcedure<{
8510
+ withdrawVersion: import("@trpc/server").TRPCMutationProcedure<{
8399
8511
  input: {
8400
- locationId: string;
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
+ }[];
8401
8529
  };
8402
- output: (string & import("zod").$brand<"UUID">)[];
8403
8530
  meta: import("trpc-to-openapi").OpenApiMeta;
8404
8531
  }>;
8405
- }>>;
8406
- workqueue: import("@trpc/server").TRPCBuiltRouter<{
8407
- ctx: Partial<{
8532
+ get: import("@trpc/server").TRPCQueryProcedure<{
8533
+ input: {
8534
+ id: string;
8535
+ };
8536
+ output: {
8537
+ id: string & import("zod").$brand<"UUID">;
8538
+ name: string;
8539
+ externalId?: string | null | undefined;
8540
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
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
+ }[];
8550
+ };
8551
+ meta: import("trpc-to-openapi").OpenApiMeta;
8552
+ }>;
8553
+ getLocationHierarchy: import("@trpc/server").TRPCQueryProcedure<{
8554
+ input: {
8555
+ locationId: string;
8556
+ };
8557
+ output: (string & import("zod").$brand<"UUID">)[];
8558
+ meta: import("trpc-to-openapi").OpenApiMeta;
8559
+ }>;
8560
+ }>>;
8561
+ workqueue: import("@trpc/server").TRPCBuiltRouter<{
8562
+ ctx: Partial<{
8408
8563
  token: `Bearer ${string}`;
8409
8564
  user: {
8410
8565
  id: string & import("zod").$brand<"UUID">;
@@ -8748,7 +8903,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8748
8903
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
8749
8904
  };
8750
8905
  }[];
8751
- 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";
8752
8907
  emptyMessage?: {
8753
8908
  id: string;
8754
8909
  defaultMessage: string;
@@ -8810,15 +8965,78 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8810
8965
  }[];
8811
8966
  meta: import("trpc-to-openapi").OpenApiMeta;
8812
8967
  }>;
8813
- set: import("@trpc/server").TRPCMutationProcedure<{
8968
+ create: import("@trpc/server").TRPCMutationProcedure<{
8814
8969
  input: {
8815
- id: string;
8970
+ id?: string | undefined;
8971
+ versionId?: string | undefined;
8816
8972
  name: string;
8817
8973
  externalId?: string | null | undefined;
8818
8974
  parentId: string | null;
8819
- }[];
8820
- output: void;
8821
- 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;
8822
9040
  }>;
8823
9041
  }>>;
8824
9042
  integrations: import("@trpc/server").TRPCBuiltRouter<{
@@ -8847,6 +9065,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8847
9065
  input: {
8848
9066
  name: string;
8849
9067
  scopes: string[];
9068
+ credentials?: {
9069
+ clientId: string;
9070
+ clientSecret: string;
9071
+ } | undefined;
8850
9072
  };
8851
9073
  output: {
8852
9074
  clientId: string;
@@ -8877,7 +9099,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8877
9099
  scopes: string[];
8878
9100
  status: string;
8879
9101
  createdAt: string;
8880
- createdBy: string & import("zod").$brand<"UUID">;
9102
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8881
9103
  }[];
8882
9104
  meta: import("trpc-to-openapi").OpenApiMeta;
8883
9105
  }>;
@@ -8892,7 +9114,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8892
9114
  status: string;
8893
9115
  shaSecret: string | null;
8894
9116
  createdAt: string;
8895
- createdBy: string & import("zod").$brand<"UUID">;
9117
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8896
9118
  };
8897
9119
  meta: import("trpc-to-openapi").OpenApiMeta;
8898
9120
  }>;
@@ -8938,6 +9160,363 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8938
9160
  };
8939
9161
  meta: import("trpc-to-openapi").OpenApiMeta;
8940
9162
  }>;
9163
+ audit: import("@trpc/server").TRPCQueryProcedure<{
9164
+ input: {
9165
+ id: string;
9166
+ skip?: number | undefined;
9167
+ count?: number | undefined;
9168
+ timeStart?: string | undefined;
9169
+ timeEnd?: string | undefined;
9170
+ };
9171
+ output: {
9172
+ results: ({
9173
+ id: string;
9174
+ clientId: string;
9175
+ clientType: "system" | "user";
9176
+ createdAt: string;
9177
+ operation: "event.create";
9178
+ requestData: {
9179
+ transactionId: string;
9180
+ type: string;
9181
+ createdAtLocation: string | null;
9182
+ };
9183
+ responseSummary: {
9184
+ eventId: string;
9185
+ trackingId: string;
9186
+ };
9187
+ } | {
9188
+ id: string;
9189
+ clientId: string;
9190
+ clientType: "system" | "user";
9191
+ createdAt: string;
9192
+ operation: "event.get";
9193
+ requestData: {
9194
+ eventId: string;
9195
+ };
9196
+ responseSummary: {
9197
+ eventType: string;
9198
+ trackingId: string;
9199
+ };
9200
+ } | {
9201
+ id: string;
9202
+ clientId: string;
9203
+ createdAt: string;
9204
+ operation: "event.search";
9205
+ clientType: "system";
9206
+ requestData: {
9207
+ query: Record<string, unknown> | null;
9208
+ limit: number | null;
9209
+ offset: number | null;
9210
+ };
9211
+ responseSummary: {
9212
+ total: number;
9213
+ eventIds: string[];
9214
+ };
9215
+ } | {
9216
+ id: string;
9217
+ clientId: string;
9218
+ clientType: "system" | "user";
9219
+ createdAt: string;
9220
+ 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";
9221
+ requestData: {
9222
+ eventId: string;
9223
+ actionType: string;
9224
+ eventType: string;
9225
+ trackingId: string;
9226
+ transactionId: string;
9227
+ };
9228
+ } | {
9229
+ id: string;
9230
+ clientId: string;
9231
+ clientType: "system" | "user";
9232
+ createdAt: string;
9233
+ operation: "event.actions.custom.request";
9234
+ requestData: {
9235
+ eventId: string;
9236
+ actionType: "CUSTOM";
9237
+ customAction: string;
9238
+ eventType: string;
9239
+ trackingId: string;
9240
+ transactionId: string;
9241
+ };
9242
+ } | {
9243
+ id: string;
9244
+ clientId: string;
9245
+ clientType: "system" | "user";
9246
+ createdAt: string;
9247
+ operation: "integrations.create";
9248
+ requestData: {
9249
+ name: string;
9250
+ scopes: string[];
9251
+ };
9252
+ responseSummary: {
9253
+ clientId: string;
9254
+ };
9255
+ } | {
9256
+ id: string;
9257
+ clientId: string;
9258
+ clientType: "system" | "user";
9259
+ createdAt: string;
9260
+ operation: "integrations.refreshToken";
9261
+ requestData: {
9262
+ clientId: string;
9263
+ };
9264
+ responseSummary: {
9265
+ clientId: string;
9266
+ };
9267
+ } | {
9268
+ id: string;
9269
+ clientId: string;
9270
+ clientType: "system" | "user";
9271
+ createdAt: string;
9272
+ operation: "integrations.deactivate";
9273
+ requestData: {
9274
+ id: string;
9275
+ };
9276
+ responseSummary: {
9277
+ id: string;
9278
+ status: string;
9279
+ };
9280
+ } | {
9281
+ id: string;
9282
+ clientId: string;
9283
+ clientType: "system" | "user";
9284
+ createdAt: string;
9285
+ operation: "integrations.activate";
9286
+ requestData: {
9287
+ id: string;
9288
+ };
9289
+ responseSummary: {
9290
+ id: string;
9291
+ status: string;
9292
+ };
9293
+ } | {
9294
+ id: string;
9295
+ clientId: string;
9296
+ clientType: "system" | "user";
9297
+ createdAt: string;
9298
+ operation: "integrations.delete";
9299
+ requestData: {
9300
+ id: string;
9301
+ };
9302
+ responseSummary: {
9303
+ id: string;
9304
+ name: string;
9305
+ };
9306
+ } | {
9307
+ id: string;
9308
+ clientId: string;
9309
+ clientType: "system" | "user";
9310
+ createdAt: string;
9311
+ operation: "integrations.refreshSecret";
9312
+ requestData: {
9313
+ id: string;
9314
+ };
9315
+ responseSummary: {
9316
+ clientId: string;
9317
+ };
9318
+ } | {
9319
+ id: string;
9320
+ clientId: string;
9321
+ clientType: "system" | "user";
9322
+ createdAt: string;
9323
+ operation: "locations.create";
9324
+ requestData: {
9325
+ id: string;
9326
+ versionId: string;
9327
+ name: string;
9328
+ externalId?: string | null | undefined;
9329
+ effectiveFrom: string;
9330
+ status: string;
9331
+ administrativeAreaId?: string | null | undefined;
9332
+ locationType?: string | null | undefined;
9333
+ };
9334
+ } | {
9335
+ id: string;
9336
+ clientId: string;
9337
+ clientType: "system" | "user";
9338
+ createdAt: string;
9339
+ operation: "locations.update";
9340
+ requestData: {
9341
+ id: string;
9342
+ versionId: string;
9343
+ name: string;
9344
+ externalId?: string | null | undefined;
9345
+ status: string;
9346
+ effectiveFrom: string;
9347
+ lastVersionId: string;
9348
+ };
9349
+ responseSummary: {
9350
+ previousVersionId: string;
9351
+ versionId: string;
9352
+ changed: {
9353
+ name?: {
9354
+ from: string;
9355
+ to: string;
9356
+ } | undefined;
9357
+ externalId?: {
9358
+ from: string | null;
9359
+ to: string | null;
9360
+ } | undefined;
9361
+ status?: {
9362
+ from: string;
9363
+ to: string;
9364
+ } | undefined;
9365
+ };
9366
+ };
9367
+ } | {
9368
+ id: string;
9369
+ clientId: string;
9370
+ clientType: "system" | "user";
9371
+ createdAt: string;
9372
+ operation: "administrativeAreas.update";
9373
+ requestData: {
9374
+ id: string;
9375
+ versionId: string;
9376
+ name: string;
9377
+ externalId?: string | null | undefined;
9378
+ status: string;
9379
+ effectiveFrom: string;
9380
+ lastVersionId: string;
9381
+ };
9382
+ responseSummary: {
9383
+ previousVersionId: string;
9384
+ versionId: string;
9385
+ changed: {
9386
+ name?: {
9387
+ from: string;
9388
+ to: string;
9389
+ } | undefined;
9390
+ externalId?: {
9391
+ from: string | null;
9392
+ to: string | null;
9393
+ } | undefined;
9394
+ status?: {
9395
+ from: string;
9396
+ to: string;
9397
+ } | undefined;
9398
+ };
9399
+ };
9400
+ } | {
9401
+ id: string;
9402
+ clientId: string;
9403
+ clientType: "system" | "user";
9404
+ createdAt: string;
9405
+ operation: "locations.withdrawVersion";
9406
+ requestData: {
9407
+ id: string;
9408
+ versionId: string;
9409
+ };
9410
+ responseSummary: {
9411
+ effectiveFrom: string;
9412
+ name: string;
9413
+ externalId?: string | null | undefined;
9414
+ status: string;
9415
+ };
9416
+ } | {
9417
+ id: string;
9418
+ clientId: string;
9419
+ clientType: "system" | "user";
9420
+ createdAt: string;
9421
+ operation: "administrativeAreas.withdrawVersion";
9422
+ requestData: {
9423
+ id: string;
9424
+ versionId: string;
9425
+ };
9426
+ responseSummary: {
9427
+ effectiveFrom: string;
9428
+ name: string;
9429
+ externalId?: string | null | undefined;
9430
+ status: string;
9431
+ };
9432
+ } | {
9433
+ id: string;
9434
+ clientId: string;
9435
+ clientType: "system" | "user";
9436
+ createdAt: string;
9437
+ operation: "administrativeAreas.create";
9438
+ requestData: {
9439
+ id: string;
9440
+ versionId: string;
9441
+ name: string;
9442
+ externalId?: string | null | undefined;
9443
+ effectiveFrom: string;
9444
+ status: string;
9445
+ parentId?: string | null | undefined;
9446
+ };
9447
+ } | {
9448
+ id: string;
9449
+ clientId: string;
9450
+ clientType: "system" | "user";
9451
+ createdAt: string;
9452
+ operation: "attachments.upload";
9453
+ requestData: {
9454
+ transactionId: string;
9455
+ path: string | null;
9456
+ };
9457
+ responseSummary: {
9458
+ fileUrl: string;
9459
+ };
9460
+ } | {
9461
+ id: string;
9462
+ clientId: string;
9463
+ clientType: "system" | "user";
9464
+ createdAt: string;
9465
+ operation: "user.create_user";
9466
+ requestData: {
9467
+ subjectId: string;
9468
+ role: string;
9469
+ primaryOfficeId: string;
9470
+ };
9471
+ } | {
9472
+ id: string;
9473
+ clientId: string;
9474
+ clientType: "system" | "user";
9475
+ createdAt: string;
9476
+ operation: "user.deactivate" | "user.reactivate";
9477
+ requestData: {
9478
+ subjectId: string;
9479
+ reason: string;
9480
+ comment?: string | undefined;
9481
+ };
9482
+ } | {
9483
+ id: string;
9484
+ clientId: string;
9485
+ clientType: "system" | "user";
9486
+ createdAt: string;
9487
+ 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";
9488
+ requestData: {
9489
+ subjectId: string;
9490
+ };
9491
+ } | {
9492
+ id: string;
9493
+ clientId: string;
9494
+ clientType: "system" | "user";
9495
+ createdAt: string;
9496
+ operation: "user.email_address_changed";
9497
+ requestData: {
9498
+ subjectId: string;
9499
+ };
9500
+ responseSummary: {
9501
+ email: string;
9502
+ };
9503
+ } | {
9504
+ id: string;
9505
+ clientId: string;
9506
+ clientType: "system" | "user";
9507
+ createdAt: string;
9508
+ operation: "user.phone_number_changed";
9509
+ requestData: {
9510
+ subjectId: string;
9511
+ };
9512
+ responseSummary: {
9513
+ phoneNumber: string;
9514
+ };
9515
+ })[];
9516
+ total: number;
9517
+ };
9518
+ meta: import("trpc-to-openapi").OpenApiMeta;
9519
+ }>;
8941
9520
  }>>;
8942
9521
  attachments: import("@trpc/server").TRPCBuiltRouter<{
8943
9522
  ctx: Partial<{