refactor: type, required and nullable
This commit is contained in:
parent
bc7b0c6309
commit
858c6a1125
2 changed files with 32 additions and 32 deletions
|
|
@ -21,9 +21,9 @@ export type Branch = {
|
||||||
districtId: string | null;
|
districtId: string | null;
|
||||||
provinceId: string | null;
|
provinceId: string | null;
|
||||||
addressEN: string;
|
addressEN: string;
|
||||||
addressTH: string;
|
address: string;
|
||||||
nameEN: string;
|
nameEN: string;
|
||||||
nameTH: string;
|
name: string;
|
||||||
taxNo: string;
|
taxNo: string;
|
||||||
code: string;
|
code: string;
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -33,9 +33,9 @@ export type BranchCreate = {
|
||||||
code: string;
|
code: string;
|
||||||
taxNo: string;
|
taxNo: string;
|
||||||
nameEN: string;
|
nameEN: string;
|
||||||
nameTH: string;
|
name: string;
|
||||||
addressEN: string;
|
addressEN: string;
|
||||||
addressTH: string;
|
address: string;
|
||||||
zipCode: string;
|
zipCode: string;
|
||||||
email: string;
|
email: string;
|
||||||
telephoneNo: string;
|
telephoneNo: string;
|
||||||
|
|
|
||||||
|
|
@ -10,18 +10,18 @@ export type User = {
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
status: Status;
|
status: Status;
|
||||||
trainingPlace: string;
|
trainingPlace: string | null;
|
||||||
importNationality: string;
|
importNationality: string | null;
|
||||||
sourceNationality: string;
|
sourceNationality: string | null;
|
||||||
licenseExpireDate: string;
|
licenseExpireDate: string | null;
|
||||||
licenseIssueDate: string;
|
licenseIssueDate: string | null;
|
||||||
licenseNo: string;
|
licenseNo: string | null;
|
||||||
discountCondition: string;
|
discountCondition: string | null;
|
||||||
userRole: string;
|
userRole: string;
|
||||||
userType: string;
|
userType: string;
|
||||||
retireDate: string;
|
retireDate: string | null;
|
||||||
startDate: string;
|
startDate: string | null;
|
||||||
registrationNo: string;
|
registrationNo: string | null;
|
||||||
telephoneNo: string;
|
telephoneNo: string;
|
||||||
email: string;
|
email: string;
|
||||||
zipCode: string;
|
zipCode: string;
|
||||||
|
|
@ -29,12 +29,12 @@ export type User = {
|
||||||
districtId: string | null;
|
districtId: string | null;
|
||||||
provinceId: string | null;
|
provinceId: string | null;
|
||||||
addressEN: string;
|
addressEN: string;
|
||||||
addressTH: string;
|
address: string;
|
||||||
lastNameEN: string;
|
lastNameEN: string;
|
||||||
lastNameTH: string;
|
lastName: string;
|
||||||
firstNameEN: string;
|
firstNameEN: string;
|
||||||
firstNameTH: string;
|
firstName: string;
|
||||||
code: string;
|
code: string | null;
|
||||||
keycloakId: string;
|
keycloakId: string;
|
||||||
id: string;
|
id: string;
|
||||||
profileImageUrl: string;
|
profileImageUrl: string;
|
||||||
|
|
@ -48,22 +48,22 @@ export type UserCreate = {
|
||||||
email: string;
|
email: string;
|
||||||
zipCode: string;
|
zipCode: string;
|
||||||
addressEN: string;
|
addressEN: string;
|
||||||
addressTH: string;
|
address: string;
|
||||||
trainingPlace: string;
|
trainingPlace?: string;
|
||||||
importNationality: string;
|
importNationality?: string;
|
||||||
sourceNationality: string;
|
sourceNationality?: string;
|
||||||
licenseExpireDate: Date;
|
licenseExpireDate?: Date;
|
||||||
licenseIssueDate: Date;
|
licenseIssueDate?: Date;
|
||||||
licenseNo: string;
|
licenseNo?: string;
|
||||||
discountCondition: string;
|
discountCondition?: string;
|
||||||
retireDate: Date;
|
retireDate?: Date;
|
||||||
startDate: Date;
|
startDate?: Date;
|
||||||
registrationNo: string;
|
registrationNo?: string;
|
||||||
code: string;
|
code?: string;
|
||||||
lastNameEN: string;
|
lastNameEN: string;
|
||||||
lastNameTH: string;
|
lastName: string;
|
||||||
firstNameEN: string;
|
firstNameEN: string;
|
||||||
firstNameTH: string;
|
firstName: string;
|
||||||
userRole: string;
|
userRole: string;
|
||||||
userType: string;
|
userType: string;
|
||||||
keycloakId: string;
|
keycloakId: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue