UNPKG

notification-services

Version:

use email, sms and custom notification services for node.js application easily

46 lines (45 loc) 1.33 kB
import nodemailer, { SentMessageInfo } from 'nodemailer'; export declare const mailConfig: (type: string, options: { path?: string; newline?: string; awsAccessId?: string; awsAccessKey?: string; apiVersion?: string; region?: string; host?: string; user?: string; pass?: string; }, callback: { (res: any, err: any): void; (arg0: {} | null, arg1: Error | null): void; }) => void; export declare const sendMail: (transporter: nodemailer.Transporter<SentMessageInfo>, mailOptions: { from?: string; to?: string; cc?: string; bcc?: string; subject?: string; text?: string; html?: string; attachments?: []; }, template: boolean, callback: (res: any, err: any) => void) => void; export declare const SMSSend: (type: string, options: { userId?: string; password?: string; mask?: string; appid?: string; apiKey?: string; twilioAuthToken?: string; twilioAccountSid?: string; from?: string; to?: string; message?: string; senderId?: string; fast2smsRoute?: string; }, callback: (res: any, err: any) => void) => void; export declare const sendCustomNotification: (options: { serverKey?: string; title?: string; text?: string; fcm_tokens?: string[]; }, callback: (res: any, err: any) => void) => void;