fix issues in adapters

This commit is contained in:
2025-12-22 22:46:15 +01:00
parent 41b27402dc
commit 1efd971032
25 changed files with 144 additions and 103 deletions

View File

@@ -5,12 +5,12 @@
* Currently a stub - to be implemented when email integration is needed.
*/
import type { Notification } from '../../domain/entities/Notification';
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type {
INotificationGateway,
NotificationGateway,
NotificationDeliveryResult
} from '../../application/ports/INotificationGateway';
import type { NotificationChannel } from '../../domain/types/NotificationTypes';
} from '@core/notifications/application/ports/NotificationGateway';
import type { NotificationChannel } from '@core/notifications/domain/types/NotificationTypes';
export interface EmailAdapterConfig {
smtpHost?: string;
@@ -20,7 +20,7 @@ export interface EmailAdapterConfig {
fromAddress?: string;
}
export class EmailNotificationAdapter implements INotificationGateway {
export class EmailNotificationAdapter implements NotificationGateway {
private readonly channel: NotificationChannel = 'email';
private config: EmailAdapterConfig;