127 lines
5.3 KiB
TypeScript
127 lines
5.3 KiB
TypeScript
import env from "../index";
|
|
|
|
const registryNew = `${env.API_URI}/org/profile/`;
|
|
const metadata = `${env.API_URI}/org/metadata/`;
|
|
|
|
export default {
|
|
registryNew,
|
|
registryNewByProfileId: (profileId: string) => `${registryNew}${profileId}`,
|
|
|
|
// metadata
|
|
profileNewGender: `${metadata}gender`,
|
|
profileNewReligion: `${metadata}religion`,
|
|
profileNewRelationship: `${metadata}relationship`,
|
|
profileNewBloodGroup: `${metadata}bloodGroup`,
|
|
|
|
// ประวัติส่วนตัว
|
|
profileNewProfileByProfileId: (profileId: string) =>
|
|
`${registryNew}${profileId}`,
|
|
profileNewProfileById: (dataId: string) =>
|
|
`${registryNew}${dataId}`,
|
|
profileNewProfileHisById: (dataId: string) =>
|
|
`${registryNew}history/${dataId}`,
|
|
|
|
// บันทึกวันที่ไม่ได้รับเงินเดือนฯ
|
|
profileNewNoPaid: `${registryNew}nopaid`,
|
|
profileNewNoPaidByProfileId: (profileId: string) =>
|
|
`${registryNew}nopaid/${profileId}`,
|
|
profileNewNoPaidById: (dataId: string) => `${registryNew}nopaid/${dataId}`,
|
|
profileNewNoPaidHisById: (dataId: string) =>
|
|
`${registryNew}nopaid/history/${dataId}`,
|
|
|
|
// เครื่องราชฯ
|
|
profileNewInsign: `${registryNew}insignia`,
|
|
profileNewInsignByProfileId: (profileId: string) =>
|
|
`${registryNew}insignia/${profileId}`,
|
|
profileNewInsignById: (dataId: string) => `${registryNew}insignia/${dataId}`,
|
|
profileNewInsignHisById: (dataId: string) =>
|
|
`${registryNew}insignia/history/${dataId}`,
|
|
|
|
// ประกาศเกียรติคุณ
|
|
profileNewHonor: `${registryNew}honor`,
|
|
profileNewHonorByProfileId: (profileId: string) =>
|
|
`${registryNew}honor/${profileId}`,
|
|
profileNewHonorById: (dataId: string) => `${registryNew}honor/${dataId}`,
|
|
profileNewHonorHisById: (dataId: string) =>
|
|
`${registryNew}honor/history/${dataId}`,
|
|
|
|
// ผลการประเมินการปฏิบัติราชการ
|
|
profileNewAssessments: `${registryNew}assessments`,
|
|
profileNewAssessmentsByProfileId: (profileId: string) =>
|
|
`${registryNew}assessments/${profileId}`,
|
|
profileNewAssessmentsById: (dataId: string) =>
|
|
`${registryNew}assessments/${dataId}`,
|
|
profileNewAssessmentsHisById: (dataId: string) =>
|
|
`${registryNew}assessments/history/${dataId}`,
|
|
|
|
// การฝึกอบรม
|
|
profileNewTraining: `${registryNew}training`,
|
|
profileNewTrainingByProfileId: (profileId: string) =>
|
|
`${registryNew}training/${profileId}`,
|
|
profileNewTrainingByTrainingId: (trainingId: string) =>
|
|
`${registryNew}training/${trainingId}`,
|
|
profileNewTrainingHisByTrainingId: (trainingId: string) =>
|
|
`${registryNew}training/history/${trainingId}`,
|
|
|
|
// ประวัติการศึกษา
|
|
profileNewEducation: `${registryNew}educations`,
|
|
profileNewEducationByProfileId: (profileId: string) =>
|
|
`${registryNew}educations/${profileId}`,
|
|
profileNewEducationByEducationId: (educationId: string) =>
|
|
`${registryNew}educations/${educationId}`,
|
|
profileNewEducationHisByEducationId: (educationsId: string) =>
|
|
`${registryNew}educations/history/${educationsId}`,
|
|
|
|
// ความสามารถพิเศษ
|
|
profileNewAbility: `${registryNew}ability`,
|
|
profileNewAbilityByProfileId: (profileId: string) =>
|
|
`${registryNew}ability/${profileId}`,
|
|
profileNewAbilityByAbilityId: (abilityId: string) =>
|
|
`${registryNew}ability/${abilityId}`,
|
|
profileNewAbilityHisByAbilityId: (abilityId: string) =>
|
|
`${registryNew}ability/history/${abilityId}`,
|
|
|
|
// ใบอนุญาตประกอบวิชาชีพ
|
|
profileNewCertificate: `${registryNew}certificate`,
|
|
profileNewCertificateByProfileId: (profileId: string) =>
|
|
`${registryNew}certificate/${profileId}`,
|
|
profileNewCertificateByCertificateId: (certificateId: string) =>
|
|
`${registryNew}certificate/${certificateId}`,
|
|
profileNewCertificateHisByCertificateId: (certificateId: string) =>
|
|
`${registryNew}certificate/history/${certificateId}`,
|
|
|
|
// ข้อมูลอื่นๆ
|
|
profileNewOther: `${registryNew}other`,
|
|
profileNewOtherByProfileId: (profileId: string) =>
|
|
`${registryNew}other/${profileId}`,
|
|
profileNewOtherById: (dataId: string) => `${registryNew}other/${dataId}`,
|
|
profileNewOtherHisById: (dataId: string) =>
|
|
`${registryNew}other/history/${dataId}`,
|
|
|
|
// ข้อมูลครอบครัว
|
|
profileNewFamily: `${registryNew}family`,
|
|
profileNewFamilyByProfileId: (profileId: string) =>
|
|
`${registryNew}family/${profileId}`,
|
|
profileNewFamilyByFamilyId: (familyId: string) =>
|
|
`${registryNew}family/${familyId}`,
|
|
profileNewFamilyeHisByFamilyId: (familyId: string) =>
|
|
`${registryNew}family/history/${familyId}`,
|
|
|
|
// วินัย
|
|
profileNewDiscipline: `${registryNew}discipline`,
|
|
profileNewDisciplineByProfileId: (profileId: string) =>
|
|
`${registryNew}discipline/${profileId}`,
|
|
profileNewDisciplineByDisciplineId: (disciplineId: string) =>
|
|
`${registryNew}discipline/${disciplineId}`,
|
|
profileNewDisciplineHisByDisciplineId: (disciplineId: string) =>
|
|
`${registryNew}discipline/history/${disciplineId}`,
|
|
|
|
// ปฏิบัติราชการพิเศษ
|
|
profileNewDuty: `${registryNew}duty`,
|
|
profileNewDutyByProfileId: (profileId: string) =>
|
|
`${registryNew}duty/${profileId}`,
|
|
profileNewDutyByDutyId: (dutyId: string) =>
|
|
`${registryNew}duty/${dutyId}`,
|
|
profileNewDutyHisByDutyId: (dutyId: string) =>
|
|
`${registryNew}duty/history/${dutyId}`,
|
|
};
|