50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import { Gender, UserStatus } from './auth';
|
|
|
|
export interface CustomerResponse {
|
|
id: string;
|
|
userId: string;
|
|
customerCode: string;
|
|
createdAt: string;
|
|
deletedAt: string | null;
|
|
user: CustomerUser;
|
|
addresses: CustomerAddress[];
|
|
}
|
|
|
|
export interface CustomerUser {
|
|
id: string;
|
|
name: string;
|
|
email: string;
|
|
phone: string;
|
|
profileImage: string | null;
|
|
status: UserStatus;
|
|
gender: Gender;
|
|
dateOfBirth: string | null;
|
|
categoryPreferences: string[];
|
|
}
|
|
|
|
export interface CustomerAddress {
|
|
id: string;
|
|
customerId: string;
|
|
merchantId: string | null;
|
|
deliveryPartnerId: string | null;
|
|
latitude: string;
|
|
longitude: string;
|
|
mapAddress: string;
|
|
houseNumber: string;
|
|
landmark: string;
|
|
addressLine1: string;
|
|
city: string;
|
|
state: string;
|
|
postalCode: string;
|
|
phone: string;
|
|
label: AddressLabel;
|
|
isDefault: boolean;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
deletedAt: string | null;
|
|
}
|
|
|
|
// export type UserStatus = 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
|
|
|
|
export type AddressLabel = 'Home' | 'Work' | 'Other';
|