Files
fabric_trade_server/dist/sms/sms.service.d.ts
T
mohmdsdgandCursor 345a4a4708 Add SMS OTP, harden auth, and fix order/checkout server bugs.
Ship 4-digit OTP with rate-limit attempts, Tehran-safe expiry/rass math, larger JSON body limit for check images, and safer order pricing/status guards. Include rebuilt dist for prebuilt deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 14:55:26 +03:30

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;
}