import { Document } from 'mongoose';

export interface IOtp {
  phone: number;
  otp: number;
  orderId: string;
  isVerified: boolean;
  createdAt: Date;
}

export interface IOtpDoc extends IOtp, Document {}

export type NewCreatedOtp = IOtp;

export interface SendOtpPayload {
  route: string;
  sender_id: string;
  variables_values: string;
  message: string;
  numbers: string;
}

export interface OtpPayload {
  otp?: string;
  orderId: string;
  phone?: number;
  dialCode?: number;
  deviceToken?: string;
  deviceType?: string;
}

export interface OtpRecord {
  _id: string;
  phone: string;
  otp: string;
  createdAt?: Date;
  updatedAt?: Date;
}
