fix(platformservice): Update dependency versions and refactor import paths for improved compatibility; add initial DcRouter plan documentation.

This commit is contained in:
2025-05-04 10:10:07 +00:00
parent a29cff2fc5
commit efd64d6304
10 changed files with 1743 additions and 1235 deletions

View File

@ -61,7 +61,7 @@ export class ApiManager {
);
// Add endpoint to check email status
this.typedRouter.addTypedHandler<{ emailId: string }>(
this.typedRouter.addTypedHandler<plugins.servezoneInterfaces.platformservice.mta.IReq_CheckEmailStatus>(
new plugins.typedrequest.TypedHandler('checkEmailStatus', async (requestData) => {
// If MTA is enabled, use it to check status
if (this.emailRef.mtaConnector) {
@ -78,7 +78,7 @@ export class ApiManager {
);
// Add statistics endpoint
this.typedRouter.addTypedHandler<void>(
this.typedRouter.addTypedHandler<plugins.servezoneInterfaces.platformservice.mta.IReq_GetEMailStats>(
new plugins.typedrequest.TypedHandler('getEmailStats', async () => {
return this.emailRef.getStats();
})