15 lines
412 B
TypeScript
15 lines
412 B
TypeScript
import { ConfigService } from '@nestjs/config';
|
|||
|
|
export type SmsSendResult = {
|
||
|
|
success: boolean;
|
||
|
|
raw: unknown;
|
||
|
|
};
|
||
|
|
export declare class SmsService {
|
||
|
|
private readonly config;
|
||
|
|
private readonly logger;
|
||
|
|
constructor(config: ConfigService);
|
||
|
|
isEnabled(): boolean;
|
||
|
|
send(to: string, message: string): Promise<SmsSendResult>;
|
||
|
|
buildOtpMessage(code: string): string;
|
||
|
|
private resolveHost;
|
||
|
|
}
|