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;
|
id: string;
|
||||||
code: string;
|
code: string;
|
||||||
customerType: CustomerType;
|
customerType: CustomerType;
|
||||||
customerName: string;
|
|
||||||
customerNameEN: string;
|
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
||||||
|
namePrefix: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
firstNameEN: string;
|
||||||
|
lastNameEN: string;
|
||||||
|
gender: string;
|
||||||
|
birthDate: Date;
|
||||||
|
|
||||||
createdBy: string | null;
|
createdBy: string | null;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updatedBy: string | null;
|
updatedBy: string | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
taxNo: string;
|
|
||||||
personName: string;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CustomerBranch = {
|
export type CustomerBranch = {
|
||||||
|
|
@ -98,26 +103,35 @@ export type CustomerBranchCreate = {
|
||||||
export type CustomerCreate = {
|
export type CustomerCreate = {
|
||||||
code: string;
|
code: string;
|
||||||
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
||||||
taxNo?: string | null;
|
|
||||||
customerNameEN: string;
|
|
||||||
customerName: string;
|
|
||||||
customerType: CustomerType;
|
customerType: CustomerType;
|
||||||
status?: Status;
|
status?: Status;
|
||||||
image: File | null;
|
image: File | null;
|
||||||
personName: string;
|
|
||||||
registeredBranchId: string;
|
registeredBranchId: string;
|
||||||
|
|
||||||
|
namePrefix: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
firstNameEN: string;
|
||||||
|
lastNameEN: string;
|
||||||
|
gender: string;
|
||||||
|
birthDate: Date;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CustomerUpdate = {
|
export type CustomerUpdate = {
|
||||||
status?: Status;
|
status?: Status;
|
||||||
customerType?: CustomerType;
|
customerType?: CustomerType;
|
||||||
customerName?: string;
|
|
||||||
customerNameEN?: string;
|
|
||||||
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
||||||
taxNo?: string | null;
|
|
||||||
image?: File;
|
image?: File;
|
||||||
personName: string;
|
|
||||||
registeredBranchId: string;
|
registeredBranchId: string;
|
||||||
|
|
||||||
|
namePrefix: string;
|
||||||
|
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
firstNameEN: string;
|
||||||
|
lastNameEN: string;
|
||||||
|
gender: string;
|
||||||
|
birthDate: Date;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BranchAttachmentCreate = {
|
export type BranchAttachmentCreate = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue