63 lines
1.3 KiB
TypeScript

import { Gender, Role, VehicleType } from './auth';
export interface OnBoardPayload {
name: string;
email: string;
vehicleNumber: string;
vehicleType: VehicleType;
gender: Gender;
}
export interface UserProfile {
id: string;
roleId: string;
roleEnum:
| 'CUSTOMER'
| 'MERCHANT'
| 'BUSINESS_ADMIN'
| 'SUPER_ADMIN'
| 'DELIVERY';
name: string;
email: string;
phone: string;
profileImage: string | null;
status: 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
mfaEnabled: boolean;
createdAt: string;
updatedAt: string;
deletedAt: string | null;
isDeleted: boolean;
lastLogoutAt: string | null;
loginAt: string;
refreshTokenId: string;
refreshTokenHash: string;
refreshTokenExpiresAt: string;
categoryPreferences: string[];
gender: 'MALE' | 'FEMALE' | 'OTHER';
dateOfBirth: string;
role: Role;
}
export interface DashboardResponce {
message: string;
isOnboarded?: boolean;
isKycApproved?: boolean;
deliveryPartner: {
id: string;
userId: string;
partnerCode: string;
kycStatus: string;
status: string;
availabilityStatus: string;
rating: string;
currentLatitude: string;
currentLongitude: string;
lastLocationAt: string;
user: {
id: string;
name: string;
status: string;
};
};
}