refactor: edit type
This commit is contained in:
parent
921faed0c4
commit
26842a4c06
1 changed files with 26 additions and 12 deletions
|
|
@ -9,15 +9,20 @@ export type Customer = {
|
|||
id: string;
|
||||
code: string;
|
||||
customerType: CustomerType;
|
||||
customerName: string;
|
||||
customerNameEN: string;
|
||||
status: Status;
|
||||
|
||||
namePrefix: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
firstNameEN: string;
|
||||
lastNameEN: string;
|
||||
gender: string;
|
||||
birthDate: Date;
|
||||
|
||||
createdBy: string | null;
|
||||
createdAt: string;
|
||||
updatedBy: string | null;
|
||||
updatedAt: string;
|
||||
taxNo: string;
|
||||
personName: string;
|
||||
};
|
||||
|
||||
export type CustomerBranch = {
|
||||
|
|
@ -98,26 +103,35 @@ export type CustomerBranchCreate = {
|
|||
export type CustomerCreate = {
|
||||
code: string;
|
||||
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
||||
taxNo?: string | null;
|
||||
customerNameEN: string;
|
||||
customerName: string;
|
||||
customerType: CustomerType;
|
||||
status?: Status;
|
||||
image: File | null;
|
||||
personName: string;
|
||||
registeredBranchId: string;
|
||||
|
||||
namePrefix: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
firstNameEN: string;
|
||||
lastNameEN: string;
|
||||
gender: string;
|
||||
birthDate: Date;
|
||||
};
|
||||
|
||||
export type CustomerUpdate = {
|
||||
status?: Status;
|
||||
customerType?: CustomerType;
|
||||
customerName?: string;
|
||||
customerNameEN?: string;
|
||||
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
||||
taxNo?: string | null;
|
||||
image?: File;
|
||||
personName: string;
|
||||
registeredBranchId: string;
|
||||
|
||||
namePrefix: string;
|
||||
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
firstNameEN: string;
|
||||
lastNameEN: string;
|
||||
gender: string;
|
||||
birthDate: Date;
|
||||
};
|
||||
|
||||
export type BranchAttachmentCreate = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue