64 lines
1.4 KiB
TypeScript
64 lines
1.4 KiB
TypeScript
import type { Attachment, Model, User } from "timi-web";
|
|
|
|
export type CustomerGender = "MALE" | "FEMALE";
|
|
export type CustomerBirthdateCalendar = "SOLAR" | "LUNAR";
|
|
|
|
export type BodyAreaValue = {
|
|
selectedCodeList: string[];
|
|
};
|
|
|
|
export type Customer = {
|
|
code?: string | null;
|
|
name?: string;
|
|
gender?: CustomerGender;
|
|
age?: number;
|
|
birthdate?: string | null;
|
|
birthdateCalendar?: CustomerBirthdateCalendar;
|
|
telephone?: string;
|
|
address?: string;
|
|
remark?: string;
|
|
disease?: string;
|
|
conditioningPart?: BodyAreaValue;
|
|
introducerCustomerId?: string | null;
|
|
creatorUserId?: string;
|
|
lastSignInAt?: number;
|
|
introducerCustomer?: Customer;
|
|
creatorUser?: Partial<User>;
|
|
invitedCount?: number;
|
|
attachmentList?: Attachment[];
|
|
attachmentIdList?: string[];
|
|
} & Model;
|
|
|
|
export type CustomerSearchReq = {
|
|
keyword?: string;
|
|
introducerCustomerId?: string;
|
|
};
|
|
|
|
export type CustomerTrendStatReq = {
|
|
beginCreatedAt: number;
|
|
endCreatedAt: number;
|
|
};
|
|
|
|
export type CustomerDailyStatView = {
|
|
dateValue?: number;
|
|
newCustomerCount?: number;
|
|
totalCustomerCount?: number;
|
|
};
|
|
|
|
export type CustomerGenderStatView = {
|
|
genderCode?: CustomerGender | "UNKNOWN";
|
|
count?: number;
|
|
};
|
|
|
|
export type CustomerInviteUpdateReq = {
|
|
customerId: string;
|
|
introducerCustomerId?: string;
|
|
};
|
|
|
|
export type QuickRegisterReq = {
|
|
customerCode: string;
|
|
registrationEventId: string;
|
|
remark?: string;
|
|
attachmentIdList?: string[];
|
|
};
|