import { Injectable, Logger } from "@nestjs/common";

@Injectable()
export class NotificationsService {
  private readonly logger = new Logger(NotificationsService.name);

  /**
   * Dispatch a notification to an operator or customer.
   * TODO: wire to email/SMS provider (SendGrid, SMS API, etc.) via a mailer service.
   */
  async send(recipient: string, subject: string, body: string): Promise<void> {
    this.logger.log(`[notify] ${recipient} :: ${subject} :: ${body}`);
  }
}
