import { myPassport } from 'api/passport';

export interface registerPayload {
  firstName: string;
  lastName: string;
  phoneNumber: string;
  recommend: string;
  branchId: number;
}

export interface otpPayload {
  phoneNumber: string;
  otp: string;
  otpType: 'LOGIN' | 'RESET_PASSWORD' | 'REGISTRATION';
}
export interface resendPayload {
  phoneNumber: string;
  otpType?: 'LOGIN' | 'RESET_PASSWORD' | 'REGISTRATION';
}

export interface loginPayload {
  phoneNumber: string;
  passportSerial: string;
  // passportNumber: string;
  branchId: number;
}

export interface getMeData {
  id: number;
  fullName: string;
  phone: string;
  address: string;
  dateOfBirth: string;
  passport: myPassport[];
  aviaCargoId: string;
  autoCargoId: string;
  status: string;
}
