fix: แก้ type Update ให้รับ null ได้
This commit is contained in:
parent
fae2ee80b1
commit
323d95813b
8 changed files with 75 additions and 75 deletions
|
|
@ -90,12 +90,12 @@ export class CreateProfileAbility {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileAbility = {
|
export type UpdateProfileAbility = {
|
||||||
profileId: string | null;
|
profileId?: string | null;
|
||||||
isActive: boolean;
|
isActive?: boolean;
|
||||||
remark: string | null;
|
remark?: string | null;
|
||||||
detail: string | null;
|
detail?: string | null;
|
||||||
reference: string | null;
|
reference?: string | null;
|
||||||
dateStart?: Date | null;
|
dateStart?: Date | null;
|
||||||
dateEnd?: Date | null;
|
dateEnd?: Date | null;
|
||||||
field: string | null;
|
field?: string | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -108,14 +108,14 @@ export class CreateProfileAssessment {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileAssessment = {
|
export type UpdateProfileAssessment = {
|
||||||
profileId: string | null;
|
profileId?: string | null;
|
||||||
isActive: boolean;
|
isActive?: boolean;
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
date?: Date | null;
|
date?: Date | null;
|
||||||
point1: number | null;
|
point1?: number | null;
|
||||||
point1Total: number | null;
|
point1Total?: number | null;
|
||||||
point2: number | null;
|
point2?: number | null;
|
||||||
point2Total: number | null;
|
point2Total?: number | null;
|
||||||
pointSum: number | null;
|
pointSum?: number | null;
|
||||||
pointSumTotal: number | null;
|
pointSumTotal?: number | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -90,11 +90,11 @@ export class CreateProfileDiscipline {
|
||||||
|
|
||||||
export type UpdateProfileDiscipline = {
|
export type UpdateProfileDiscipline = {
|
||||||
date?: Date | null;
|
date?: Date | null;
|
||||||
profileId: string;
|
profileId?: string;
|
||||||
isActive: boolean | null;
|
isActive?: boolean | null;
|
||||||
level: string | null;
|
level?: string | null;
|
||||||
detail: string | null;
|
detail?: string | null;
|
||||||
refCommandDate?: Date | null;
|
refCommandDate?: Date | null;
|
||||||
refCommandNo: string | null;
|
refCommandNo?: string | null;
|
||||||
unStigma: string | null;
|
unStigma?: string | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -87,12 +87,12 @@ export class CreateProfileDuty {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileDuty = {
|
export type UpdateProfileDuty = {
|
||||||
profileId: string | null;
|
profileId?: string | null;
|
||||||
isActive: boolean;
|
isActive?: boolean;
|
||||||
dateStart?: Date | null;
|
dateStart?: Date | null;
|
||||||
dateEnd?: Date | null;
|
dateEnd?: Date | null;
|
||||||
detail: string | null;
|
detail?: string | null;
|
||||||
reference: string | null;
|
reference?: string | null;
|
||||||
refCommandDate?: Date | null;
|
refCommandDate?: Date | null;
|
||||||
refCommandNo: string | null;
|
refCommandNo?: string | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -312,37 +312,37 @@ export class CreateProfileLeave {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileLeave = {
|
export type UpdateProfileLeave = {
|
||||||
profileId: string | null;
|
profileId?: string | null;
|
||||||
isActive: boolean;
|
isActive?: boolean;
|
||||||
restCount: number | null;
|
restCount?: number | null;
|
||||||
restDay: number | null;
|
restDay?: number | null;
|
||||||
sickCount: number | null;
|
sickCount?: number | null;
|
||||||
sickDay: number | null;
|
sickDay?: number | null;
|
||||||
otherDay: number | null;
|
otherDay?: number | null;
|
||||||
personalCount: number | null;
|
personalCount?: number | null;
|
||||||
personalDay: number | null;
|
personalDay?: number | null;
|
||||||
studyCount: number | null;
|
studyCount?: number | null;
|
||||||
absentCount: number | null;
|
absentCount?: number | null;
|
||||||
absentDay: number | null;
|
absentDay?: number | null;
|
||||||
agencyCount: number | null;
|
agencyCount?: number | null;
|
||||||
agencyDay: number | null;
|
agencyDay?: number | null;
|
||||||
coupleCount: number | null;
|
coupleCount?: number | null;
|
||||||
coupleDay: number | null;
|
coupleDay?: number | null;
|
||||||
lateCount: number | null;
|
lateCount?: number | null;
|
||||||
lateDay: number | null;
|
lateDay?: number | null;
|
||||||
maternityCount: number | null;
|
maternityCount?: number | null;
|
||||||
maternityDay: number | null;
|
maternityDay?: number | null;
|
||||||
militaryCount: number | null;
|
militaryCount?: number | null;
|
||||||
militaryDay: number | null;
|
militaryDay?: number | null;
|
||||||
ordainCount: number | null;
|
ordainCount?: number | null;
|
||||||
ordainDay: number | null;
|
ordainDay?: number | null;
|
||||||
otherCount: number | null;
|
otherCount?: number | null;
|
||||||
dateStartLeave?: Date | null;
|
dateStartLeave?: Date | null;
|
||||||
dateEndLeave?: Date | null;
|
dateEndLeave?: Date | null;
|
||||||
numLeave: number | null;
|
numLeave?: number | null;
|
||||||
sumLeave: number | null;
|
sumLeave?: number | null;
|
||||||
totalLeave: number | null;
|
totalLeave?: number | null;
|
||||||
status: string | null;
|
status?: string | null;
|
||||||
typeLeaveId: string | null;
|
typeLeaveId?: string | null;
|
||||||
reason: string | null;
|
reason?: string | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -78,11 +78,11 @@ export class CreateProfileNopaid {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileNopaid = {
|
export type UpdateProfileNopaid = {
|
||||||
profileId: string | null;
|
profileId?: string | null;
|
||||||
isActive: boolean;
|
isActive?: boolean;
|
||||||
date?: Date | null;
|
date?: Date | null;
|
||||||
detail: string | null;
|
detail?: string | null;
|
||||||
reference: string | null;
|
reference?: string | null;
|
||||||
refCommandDate?: Date | null;
|
refCommandDate?: Date | null;
|
||||||
refCommandNo: string | null;
|
refCommandNo?: string | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,8 @@ export class CreateProfileOther {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileOther = {
|
export type UpdateProfileOther = {
|
||||||
profileId: string | null;
|
profileId?: string | null;
|
||||||
isActive: boolean;
|
isActive?: boolean;
|
||||||
detail: string | null;
|
detail?: string | null;
|
||||||
date?: Date | null;
|
date?: Date | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -133,17 +133,17 @@ export class CreateProfileTraining {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileTraining = {
|
export type UpdateProfileTraining = {
|
||||||
profileId: string | null;
|
profileId?: string | null;
|
||||||
isActive: boolean;
|
isActive?: boolean;
|
||||||
startDate?: Date | null;
|
startDate?: Date | null;
|
||||||
endDate?: Date | null;
|
endDate?: Date | null;
|
||||||
numberOrder: string | null;
|
numberOrder?: string | null;
|
||||||
topic: string | null;
|
topic?: string | null;
|
||||||
place: string | null;
|
place?: string | null;
|
||||||
dateOrder?: Date | null;
|
dateOrder?: Date | null;
|
||||||
department: string | null;
|
department?: string | null;
|
||||||
duration: string | null;
|
duration?: string | null;
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
yearly: number | null;
|
yearly?: number | null;
|
||||||
isDate: boolean | null;
|
isDate?: boolean | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue