diff --git a/src/entities/ProfileAbility.ts b/src/entities/ProfileAbility.ts index 261484a8..886b3557 100644 --- a/src/entities/ProfileAbility.ts +++ b/src/entities/ProfileAbility.ts @@ -90,12 +90,12 @@ export class CreateProfileAbility { } export type UpdateProfileAbility = { - profileId: string | null; - isActive: boolean; - remark: string | null; - detail: string | null; - reference: string | null; + profileId?: string | null; + isActive?: boolean; + remark?: string | null; + detail?: string | null; + reference?: string | null; dateStart?: Date | null; dateEnd?: Date | null; - field: string | null; + field?: string | null; }; diff --git a/src/entities/ProfileAssessment.ts b/src/entities/ProfileAssessment.ts index b6c7f5e5..14af96d1 100644 --- a/src/entities/ProfileAssessment.ts +++ b/src/entities/ProfileAssessment.ts @@ -108,14 +108,14 @@ export class CreateProfileAssessment { } export type UpdateProfileAssessment = { - profileId: string | null; - isActive: boolean; - name: string | null; + profileId?: string | null; + isActive?: boolean; + name?: string | null; date?: Date | null; - point1: number | null; - point1Total: number | null; - point2: number | null; - point2Total: number | null; - pointSum: number | null; - pointSumTotal: number | null; + point1?: number | null; + point1Total?: number | null; + point2?: number | null; + point2Total?: number | null; + pointSum?: number | null; + pointSumTotal?: number | null; }; diff --git a/src/entities/ProfileDiscipline.ts b/src/entities/ProfileDiscipline.ts index f6a332f0..cacce0d1 100644 --- a/src/entities/ProfileDiscipline.ts +++ b/src/entities/ProfileDiscipline.ts @@ -90,11 +90,11 @@ export class CreateProfileDiscipline { export type UpdateProfileDiscipline = { date?: Date | null; - profileId: string; - isActive: boolean | null; - level: string | null; - detail: string | null; + profileId?: string; + isActive?: boolean | null; + level?: string | null; + detail?: string | null; refCommandDate?: Date | null; - refCommandNo: string | null; - unStigma: string | null; + refCommandNo?: string | null; + unStigma?: string | null; }; diff --git a/src/entities/ProfileDuty.ts b/src/entities/ProfileDuty.ts index da3e5749..44ebd987 100644 --- a/src/entities/ProfileDuty.ts +++ b/src/entities/ProfileDuty.ts @@ -87,12 +87,12 @@ export class CreateProfileDuty { } export type UpdateProfileDuty = { - profileId: string | null; - isActive: boolean; + profileId?: string | null; + isActive?: boolean; dateStart?: Date | null; dateEnd?: Date | null; - detail: string | null; - reference: string | null; + detail?: string | null; + reference?: string | null; refCommandDate?: Date | null; - refCommandNo: string | null; + refCommandNo?: string | null; }; diff --git a/src/entities/ProfileLeave.ts b/src/entities/ProfileLeave.ts index f10e91c5..a3f1b668 100644 --- a/src/entities/ProfileLeave.ts +++ b/src/entities/ProfileLeave.ts @@ -312,37 +312,37 @@ export class CreateProfileLeave { } export type UpdateProfileLeave = { - profileId: string | null; - isActive: boolean; - restCount: number | null; - restDay: number | null; - sickCount: number | null; - sickDay: number | null; - otherDay: number | null; - personalCount: number | null; - personalDay: number | null; - studyCount: number | null; - absentCount: number | null; - absentDay: number | null; - agencyCount: number | null; - agencyDay: number | null; - coupleCount: number | null; - coupleDay: number | null; - lateCount: number | null; - lateDay: number | null; - maternityCount: number | null; - maternityDay: number | null; - militaryCount: number | null; - militaryDay: number | null; - ordainCount: number | null; - ordainDay: number | null; - otherCount: number | null; + profileId?: string | null; + isActive?: boolean; + restCount?: number | null; + restDay?: number | null; + sickCount?: number | null; + sickDay?: number | null; + otherDay?: number | null; + personalCount?: number | null; + personalDay?: number | null; + studyCount?: number | null; + absentCount?: number | null; + absentDay?: number | null; + agencyCount?: number | null; + agencyDay?: number | null; + coupleCount?: number | null; + coupleDay?: number | null; + lateCount?: number | null; + lateDay?: number | null; + maternityCount?: number | null; + maternityDay?: number | null; + militaryCount?: number | null; + militaryDay?: number | null; + ordainCount?: number | null; + ordainDay?: number | null; + otherCount?: number | null; dateStartLeave?: Date | null; dateEndLeave?: Date | null; - numLeave: number | null; - sumLeave: number | null; - totalLeave: number | null; - status: string | null; - typeLeaveId: string | null; - reason: string | null; + numLeave?: number | null; + sumLeave?: number | null; + totalLeave?: number | null; + status?: string | null; + typeLeaveId?: string | null; + reason?: string | null; }; diff --git a/src/entities/ProfileNopaid.ts b/src/entities/ProfileNopaid.ts index b985994a..97cd89d8 100644 --- a/src/entities/ProfileNopaid.ts +++ b/src/entities/ProfileNopaid.ts @@ -78,11 +78,11 @@ export class CreateProfileNopaid { } export type UpdateProfileNopaid = { - profileId: string | null; - isActive: boolean; + profileId?: string | null; + isActive?: boolean; date?: Date | null; - detail: string | null; - reference: string | null; + detail?: string | null; + reference?: string | null; refCommandDate?: Date | null; - refCommandNo: string | null; + refCommandNo?: string | null; }; diff --git a/src/entities/ProfileOther.ts b/src/entities/ProfileOther.ts index 941ecffe..010849cc 100644 --- a/src/entities/ProfileOther.ts +++ b/src/entities/ProfileOther.ts @@ -51,8 +51,8 @@ export class CreateProfileOther { } export type UpdateProfileOther = { - profileId: string | null; - isActive: boolean; - detail: string | null; + profileId?: string | null; + isActive?: boolean; + detail?: string | null; date?: Date | null; }; diff --git a/src/entities/ProfileTraining.ts b/src/entities/ProfileTraining.ts index 30b1256d..97571df8 100644 --- a/src/entities/ProfileTraining.ts +++ b/src/entities/ProfileTraining.ts @@ -133,17 +133,17 @@ export class CreateProfileTraining { } export type UpdateProfileTraining = { - profileId: string | null; - isActive: boolean; + profileId?: string | null; + isActive?: boolean; startDate?: Date | null; endDate?: Date | null; - numberOrder: string | null; - topic: string | null; - place: string | null; + numberOrder?: string | null; + topic?: string | null; + place?: string | null; dateOrder?: Date | null; - department: string | null; - duration: string | null; - name: string | null; - yearly: number | null; - isDate: boolean | null; + department?: string | null; + duration?: string | null; + name?: string | null; + yearly?: number | null; + isDate?: boolean | null; };