56 lines
1.2 KiB
TypeScript

import { Role } from './auth';
export interface Category {
id: string;
parentId: string | null;
name: string;
slug: string;
imageUrl: string | null;
isActive: boolean;
children: Category[];
}
export interface onBoardPayload {
name: string;
email: string;
latitude: number;
longitude: number;
addressLabel: string;
addressLine1: string;
mapAddress: string;
houseNumber: string;
landmark: string;
city: string;
state: string;
postalCode: string;
addressPhone: string;
categoryPreferences: string[];
gender: string;
}
export interface UserProfile {
id: string;
roleId: string;
roleEnum: 'CUSTOMER' | 'MERCHANT' | 'BUSINESS_ADMIN' | 'SUPER_ADMIN';
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;
}