@opencrvs/toolkit 2.1.0-rc.d876831 → 2.1.0-rc.d987aec
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.
- package/README.md +2 -12
- package/build.sh +9 -1
- package/create-countryconfig/index.js +412 -59
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +4 -1
- package/dist/application-config/index.js +248 -215
- package/dist/authentication/index.d.ts +67 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/authentication/index.js +750 -0
- package/dist/cli.js +1650 -100
- package/dist/commons/api/router.d.ts +407 -50
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +7 -3
- package/dist/commons/events/ActionDocument.d.ts +4 -4
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
- package/dist/commons/events/EventDocument.d.ts +470 -2
- package/dist/commons/events/EventMetadata.d.ts +1 -11
- package/dist/commons/events/EventStatus.d.ts +19 -0
- package/dist/commons/events/FieldConfig.d.ts +24 -5
- package/dist/commons/events/FieldTypeMapping.d.ts +15 -15
- package/dist/commons/events/locations.d.ts +63 -10
- package/dist/commons/events/test.utils.d.ts +25 -4
- package/dist/commons/events/utils.d.ts +13 -2
- package/dist/commons/notification/UserNotifications.d.ts +28 -13
- package/dist/commons/notification/dispatch.d.ts +10 -0
- package/dist/commons/notification/index.d.ts +1 -0
- package/dist/conditionals/index.js +79 -57
- package/dist/csv.d.ts +25 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/csv.js +120 -0
- package/dist/environment/logger.d.ts +3 -0
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +1 -1
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +20 -14
- package/dist/environment/setup-environment.js +26 -6
- package/dist/environment/templates.d.ts +0 -1
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +3 -8
- package/dist/events/index.js +2632 -2481
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
- package/dist/migrations/v2.1/add-translations.d.ts +9 -0
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-translations.js +213 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
- package/dist/migrations/v2.1/enable-telemetry.js +438 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -1
- package/dist/migrations/v2.1/index.js +1058 -0
- package/dist/notification/index.js +1027 -1452
- package/dist/scopes/index.d.ts +77 -7
- package/dist/scopes/index.js +79 -57
- package/dist/telemetry/index.d.ts +45 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +39 -0
- package/dist/templates/charts-values/dependencies/values.yaml +2 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +1 -1
- package/dist/templates/charts-values/opentelemetry/values.yaml +22 -0
- package/dist/templates/charts-values/traefik/values.yaml +23 -9
- package/dist/templates/inventory/inventory.template.yml +1 -3
- package/dist/translations/check.d.ts +21 -0
- package/dist/translations/check.d.ts.map +1 -0
- package/dist/translations/check.js +132 -0
- package/dist/verify/endpoints.d.ts +2 -0
- package/dist/verify/endpoints.d.ts.map +1 -0
- package/dist/verify/endpoints.js +345 -0
- package/opencrvs-toolkit-2.1.0-rc.d987aec.tgz +0 -0
- package/package.json +9 -4
- package/tsconfig.build.json +11 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/dist/templates/inventory/production.example.yml +0 -77
- package/dist/templates/inventory/qa.example.yml +0 -48
- package/opencrvs-toolkit-2.1.0-rc.d876831.tgz +0 -0
- 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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -9196,6 +9196,363 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
9196
9196
|
};
|
|
9197
9197
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
9198
9198
|
}>;
|
|
9199
|
+
audit: import("@trpc/server").TRPCQueryProcedure<{
|
|
9200
|
+
input: {
|
|
9201
|
+
id: string;
|
|
9202
|
+
skip?: number | undefined;
|
|
9203
|
+
count?: number | undefined;
|
|
9204
|
+
timeStart?: string | undefined;
|
|
9205
|
+
timeEnd?: string | undefined;
|
|
9206
|
+
};
|
|
9207
|
+
output: {
|
|
9208
|
+
results: ({
|
|
9209
|
+
id: string;
|
|
9210
|
+
clientId: string;
|
|
9211
|
+
clientType: "system" | "user";
|
|
9212
|
+
createdAt: string;
|
|
9213
|
+
operation: "event.create";
|
|
9214
|
+
requestData: {
|
|
9215
|
+
transactionId: string;
|
|
9216
|
+
type: string;
|
|
9217
|
+
createdAtLocation: string | null;
|
|
9218
|
+
};
|
|
9219
|
+
responseSummary: {
|
|
9220
|
+
eventId: string;
|
|
9221
|
+
trackingId: string;
|
|
9222
|
+
};
|
|
9223
|
+
} | {
|
|
9224
|
+
id: string;
|
|
9225
|
+
clientId: string;
|
|
9226
|
+
clientType: "system" | "user";
|
|
9227
|
+
createdAt: string;
|
|
9228
|
+
operation: "event.get";
|
|
9229
|
+
requestData: {
|
|
9230
|
+
eventId: string;
|
|
9231
|
+
};
|
|
9232
|
+
responseSummary: {
|
|
9233
|
+
eventType: string;
|
|
9234
|
+
trackingId: string;
|
|
9235
|
+
};
|
|
9236
|
+
} | {
|
|
9237
|
+
id: string;
|
|
9238
|
+
clientId: string;
|
|
9239
|
+
createdAt: string;
|
|
9240
|
+
operation: "event.search";
|
|
9241
|
+
clientType: "system";
|
|
9242
|
+
requestData: {
|
|
9243
|
+
query: Record<string, unknown> | null;
|
|
9244
|
+
limit: number | null;
|
|
9245
|
+
offset: number | null;
|
|
9246
|
+
};
|
|
9247
|
+
responseSummary: {
|
|
9248
|
+
total: number;
|
|
9249
|
+
eventIds: string[];
|
|
9250
|
+
};
|
|
9251
|
+
} | {
|
|
9252
|
+
id: string;
|
|
9253
|
+
clientId: string;
|
|
9254
|
+
clientType: "system" | "user";
|
|
9255
|
+
createdAt: string;
|
|
9256
|
+
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";
|
|
9257
|
+
requestData: {
|
|
9258
|
+
eventId: string;
|
|
9259
|
+
actionType: string;
|
|
9260
|
+
eventType: string;
|
|
9261
|
+
trackingId: string;
|
|
9262
|
+
transactionId: string;
|
|
9263
|
+
};
|
|
9264
|
+
} | {
|
|
9265
|
+
id: string;
|
|
9266
|
+
clientId: string;
|
|
9267
|
+
clientType: "system" | "user";
|
|
9268
|
+
createdAt: string;
|
|
9269
|
+
operation: "event.actions.custom.request";
|
|
9270
|
+
requestData: {
|
|
9271
|
+
eventId: string;
|
|
9272
|
+
actionType: "CUSTOM";
|
|
9273
|
+
customAction: string;
|
|
9274
|
+
eventType: string;
|
|
9275
|
+
trackingId: string;
|
|
9276
|
+
transactionId: string;
|
|
9277
|
+
};
|
|
9278
|
+
} | {
|
|
9279
|
+
id: string;
|
|
9280
|
+
clientId: string;
|
|
9281
|
+
clientType: "system" | "user";
|
|
9282
|
+
createdAt: string;
|
|
9283
|
+
operation: "integrations.create";
|
|
9284
|
+
requestData: {
|
|
9285
|
+
name: string;
|
|
9286
|
+
scopes: string[];
|
|
9287
|
+
};
|
|
9288
|
+
responseSummary: {
|
|
9289
|
+
clientId: string;
|
|
9290
|
+
};
|
|
9291
|
+
} | {
|
|
9292
|
+
id: string;
|
|
9293
|
+
clientId: string;
|
|
9294
|
+
clientType: "system" | "user";
|
|
9295
|
+
createdAt: string;
|
|
9296
|
+
operation: "integrations.refreshToken";
|
|
9297
|
+
requestData: {
|
|
9298
|
+
clientId: string;
|
|
9299
|
+
};
|
|
9300
|
+
responseSummary: {
|
|
9301
|
+
clientId: string;
|
|
9302
|
+
};
|
|
9303
|
+
} | {
|
|
9304
|
+
id: string;
|
|
9305
|
+
clientId: string;
|
|
9306
|
+
clientType: "system" | "user";
|
|
9307
|
+
createdAt: string;
|
|
9308
|
+
operation: "integrations.deactivate";
|
|
9309
|
+
requestData: {
|
|
9310
|
+
id: string;
|
|
9311
|
+
};
|
|
9312
|
+
responseSummary: {
|
|
9313
|
+
id: string;
|
|
9314
|
+
status: string;
|
|
9315
|
+
};
|
|
9316
|
+
} | {
|
|
9317
|
+
id: string;
|
|
9318
|
+
clientId: string;
|
|
9319
|
+
clientType: "system" | "user";
|
|
9320
|
+
createdAt: string;
|
|
9321
|
+
operation: "integrations.activate";
|
|
9322
|
+
requestData: {
|
|
9323
|
+
id: string;
|
|
9324
|
+
};
|
|
9325
|
+
responseSummary: {
|
|
9326
|
+
id: string;
|
|
9327
|
+
status: string;
|
|
9328
|
+
};
|
|
9329
|
+
} | {
|
|
9330
|
+
id: string;
|
|
9331
|
+
clientId: string;
|
|
9332
|
+
clientType: "system" | "user";
|
|
9333
|
+
createdAt: string;
|
|
9334
|
+
operation: "integrations.delete";
|
|
9335
|
+
requestData: {
|
|
9336
|
+
id: string;
|
|
9337
|
+
};
|
|
9338
|
+
responseSummary: {
|
|
9339
|
+
id: string;
|
|
9340
|
+
name: string;
|
|
9341
|
+
};
|
|
9342
|
+
} | {
|
|
9343
|
+
id: string;
|
|
9344
|
+
clientId: string;
|
|
9345
|
+
clientType: "system" | "user";
|
|
9346
|
+
createdAt: string;
|
|
9347
|
+
operation: "integrations.refreshSecret";
|
|
9348
|
+
requestData: {
|
|
9349
|
+
id: string;
|
|
9350
|
+
};
|
|
9351
|
+
responseSummary: {
|
|
9352
|
+
clientId: string;
|
|
9353
|
+
};
|
|
9354
|
+
} | {
|
|
9355
|
+
id: string;
|
|
9356
|
+
clientId: string;
|
|
9357
|
+
clientType: "system" | "user";
|
|
9358
|
+
createdAt: string;
|
|
9359
|
+
operation: "locations.create";
|
|
9360
|
+
requestData: {
|
|
9361
|
+
id: string;
|
|
9362
|
+
versionId: string;
|
|
9363
|
+
name: string;
|
|
9364
|
+
externalId?: string | null | undefined;
|
|
9365
|
+
effectiveFrom: string;
|
|
9366
|
+
status: string;
|
|
9367
|
+
administrativeAreaId?: string | null | undefined;
|
|
9368
|
+
locationType?: string | null | undefined;
|
|
9369
|
+
};
|
|
9370
|
+
} | {
|
|
9371
|
+
id: string;
|
|
9372
|
+
clientId: string;
|
|
9373
|
+
clientType: "system" | "user";
|
|
9374
|
+
createdAt: string;
|
|
9375
|
+
operation: "locations.update";
|
|
9376
|
+
requestData: {
|
|
9377
|
+
id: string;
|
|
9378
|
+
versionId: string;
|
|
9379
|
+
name: string;
|
|
9380
|
+
externalId?: string | null | undefined;
|
|
9381
|
+
status: string;
|
|
9382
|
+
effectiveFrom: string;
|
|
9383
|
+
lastVersionId: string;
|
|
9384
|
+
};
|
|
9385
|
+
responseSummary: {
|
|
9386
|
+
previousVersionId: string;
|
|
9387
|
+
versionId: string;
|
|
9388
|
+
changed: {
|
|
9389
|
+
name?: {
|
|
9390
|
+
from: string;
|
|
9391
|
+
to: string;
|
|
9392
|
+
} | undefined;
|
|
9393
|
+
externalId?: {
|
|
9394
|
+
from: string | null;
|
|
9395
|
+
to: string | null;
|
|
9396
|
+
} | undefined;
|
|
9397
|
+
status?: {
|
|
9398
|
+
from: string;
|
|
9399
|
+
to: string;
|
|
9400
|
+
} | undefined;
|
|
9401
|
+
};
|
|
9402
|
+
};
|
|
9403
|
+
} | {
|
|
9404
|
+
id: string;
|
|
9405
|
+
clientId: string;
|
|
9406
|
+
clientType: "system" | "user";
|
|
9407
|
+
createdAt: string;
|
|
9408
|
+
operation: "administrativeAreas.update";
|
|
9409
|
+
requestData: {
|
|
9410
|
+
id: string;
|
|
9411
|
+
versionId: string;
|
|
9412
|
+
name: string;
|
|
9413
|
+
externalId?: string | null | undefined;
|
|
9414
|
+
status: string;
|
|
9415
|
+
effectiveFrom: string;
|
|
9416
|
+
lastVersionId: string;
|
|
9417
|
+
};
|
|
9418
|
+
responseSummary: {
|
|
9419
|
+
previousVersionId: string;
|
|
9420
|
+
versionId: string;
|
|
9421
|
+
changed: {
|
|
9422
|
+
name?: {
|
|
9423
|
+
from: string;
|
|
9424
|
+
to: string;
|
|
9425
|
+
} | undefined;
|
|
9426
|
+
externalId?: {
|
|
9427
|
+
from: string | null;
|
|
9428
|
+
to: string | null;
|
|
9429
|
+
} | undefined;
|
|
9430
|
+
status?: {
|
|
9431
|
+
from: string;
|
|
9432
|
+
to: string;
|
|
9433
|
+
} | undefined;
|
|
9434
|
+
};
|
|
9435
|
+
};
|
|
9436
|
+
} | {
|
|
9437
|
+
id: string;
|
|
9438
|
+
clientId: string;
|
|
9439
|
+
clientType: "system" | "user";
|
|
9440
|
+
createdAt: string;
|
|
9441
|
+
operation: "locations.withdrawVersion";
|
|
9442
|
+
requestData: {
|
|
9443
|
+
id: string;
|
|
9444
|
+
versionId: string;
|
|
9445
|
+
};
|
|
9446
|
+
responseSummary: {
|
|
9447
|
+
effectiveFrom: string;
|
|
9448
|
+
name: string;
|
|
9449
|
+
externalId?: string | null | undefined;
|
|
9450
|
+
status: string;
|
|
9451
|
+
};
|
|
9452
|
+
} | {
|
|
9453
|
+
id: string;
|
|
9454
|
+
clientId: string;
|
|
9455
|
+
clientType: "system" | "user";
|
|
9456
|
+
createdAt: string;
|
|
9457
|
+
operation: "administrativeAreas.withdrawVersion";
|
|
9458
|
+
requestData: {
|
|
9459
|
+
id: string;
|
|
9460
|
+
versionId: string;
|
|
9461
|
+
};
|
|
9462
|
+
responseSummary: {
|
|
9463
|
+
effectiveFrom: string;
|
|
9464
|
+
name: string;
|
|
9465
|
+
externalId?: string | null | undefined;
|
|
9466
|
+
status: string;
|
|
9467
|
+
};
|
|
9468
|
+
} | {
|
|
9469
|
+
id: string;
|
|
9470
|
+
clientId: string;
|
|
9471
|
+
clientType: "system" | "user";
|
|
9472
|
+
createdAt: string;
|
|
9473
|
+
operation: "administrativeAreas.create";
|
|
9474
|
+
requestData: {
|
|
9475
|
+
id: string;
|
|
9476
|
+
versionId: string;
|
|
9477
|
+
name: string;
|
|
9478
|
+
externalId?: string | null | undefined;
|
|
9479
|
+
effectiveFrom: string;
|
|
9480
|
+
status: string;
|
|
9481
|
+
parentId?: string | null | undefined;
|
|
9482
|
+
};
|
|
9483
|
+
} | {
|
|
9484
|
+
id: string;
|
|
9485
|
+
clientId: string;
|
|
9486
|
+
clientType: "system" | "user";
|
|
9487
|
+
createdAt: string;
|
|
9488
|
+
operation: "attachments.upload";
|
|
9489
|
+
requestData: {
|
|
9490
|
+
transactionId: string;
|
|
9491
|
+
path: string | null;
|
|
9492
|
+
};
|
|
9493
|
+
responseSummary: {
|
|
9494
|
+
fileUrl: string;
|
|
9495
|
+
};
|
|
9496
|
+
} | {
|
|
9497
|
+
id: string;
|
|
9498
|
+
clientId: string;
|
|
9499
|
+
clientType: "system" | "user";
|
|
9500
|
+
createdAt: string;
|
|
9501
|
+
operation: "user.create_user";
|
|
9502
|
+
requestData: {
|
|
9503
|
+
subjectId: string;
|
|
9504
|
+
role: string;
|
|
9505
|
+
primaryOfficeId: string;
|
|
9506
|
+
};
|
|
9507
|
+
} | {
|
|
9508
|
+
id: string;
|
|
9509
|
+
clientId: string;
|
|
9510
|
+
clientType: "system" | "user";
|
|
9511
|
+
createdAt: string;
|
|
9512
|
+
operation: "user.deactivate" | "user.reactivate";
|
|
9513
|
+
requestData: {
|
|
9514
|
+
subjectId: string;
|
|
9515
|
+
reason: string;
|
|
9516
|
+
comment?: string | undefined;
|
|
9517
|
+
};
|
|
9518
|
+
} | {
|
|
9519
|
+
id: string;
|
|
9520
|
+
clientId: string;
|
|
9521
|
+
clientType: "system" | "user";
|
|
9522
|
+
createdAt: string;
|
|
9523
|
+
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";
|
|
9524
|
+
requestData: {
|
|
9525
|
+
subjectId: string;
|
|
9526
|
+
};
|
|
9527
|
+
} | {
|
|
9528
|
+
id: string;
|
|
9529
|
+
clientId: string;
|
|
9530
|
+
clientType: "system" | "user";
|
|
9531
|
+
createdAt: string;
|
|
9532
|
+
operation: "user.email_address_changed";
|
|
9533
|
+
requestData: {
|
|
9534
|
+
subjectId: string;
|
|
9535
|
+
};
|
|
9536
|
+
responseSummary: {
|
|
9537
|
+
email: string;
|
|
9538
|
+
};
|
|
9539
|
+
} | {
|
|
9540
|
+
id: string;
|
|
9541
|
+
clientId: string;
|
|
9542
|
+
clientType: "system" | "user";
|
|
9543
|
+
createdAt: string;
|
|
9544
|
+
operation: "user.phone_number_changed";
|
|
9545
|
+
requestData: {
|
|
9546
|
+
subjectId: string;
|
|
9547
|
+
};
|
|
9548
|
+
responseSummary: {
|
|
9549
|
+
phoneNumber: string;
|
|
9550
|
+
};
|
|
9551
|
+
})[];
|
|
9552
|
+
total: number;
|
|
9553
|
+
};
|
|
9554
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
9555
|
+
}>;
|
|
9199
9556
|
}>>;
|
|
9200
9557
|
attachments: import("@trpc/server").TRPCBuiltRouter<{
|
|
9201
9558
|
ctx: Partial<{
|