import env from "../index"; const registryNew = `${env.API_URI}/org/profile`; const metadata = `${env.API_URI}/org/metadata/`; const salaryNew = `${env.API_URI}/org/profile/salary`; export default { registryNew: (type: string) => `${registryNew}${type}`, registryNewByProfileId: (profileId: string, type: string) => `${registryNew}${type}/${profileId}`, // metadata profileNewMetaMain: `${metadata}main/person`, profileNewProvince: `${metadata}province`, profileNewDistrictByPId: (id: string) => `${metadata}province/${id}`, profileNewSubDistrictByDId: (id: string) => `${metadata}district/${id}`, // ประวัติส่วนตัว profileNewProfileById: (dataId: string, type: string) => `${registryNew}${type}/${dataId}`, profileNewProfileHisById: (dataId: string, type: string) => `${registryNew}${type}/history/${dataId}`, // ข้อมูลที่อยู่ profileNewAddressByProfileId: (profileId: string, type: string) => `${registryNew}${type}/address/${profileId}`, profileNewAddressById: (dataId: string, type: string) => `${registryNew}${type}/address/${dataId}`, profileNewAddressHisById: (dataId: string, type: string) => `${registryNew}${type}/address/history/${dataId}`, // บันทึกวันที่ไม่ได้รับเงินเดือนฯ profileNewNoPaid: (type: string) => `${registryNew}${type}/nopaid`, profileNewNoPaidByProfileId: (profileId: string, type: string) => `${registryNew}${type}/nopaid/${profileId}`, profileNewNoPaidById: (dataId: string, type: string) => `${registryNew}${type}/nopaid/${dataId}`, profileNewNoPaidHisById: (dataId: string, type: string) => `${registryNew}${type}/nopaid/history/${dataId}`, // เครื่องราชฯ profileNewInsign: (type: string) => `${registryNew}${type}/insignia`, profileNewInsignByProfileId: (profileId: string, type: string) => `${registryNew}${type}/insignia/${profileId}`, profileNewInsignById: (dataId: string, type: string) => `${registryNew}${type}/insignia/${dataId}`, profileNewInsignHisById: (dataId: string, type: string) => `${registryNew}${type}/insignia/history/${dataId}`, // ประกาศเกียรติคุณ profileNewHonor: (type: string) => `${registryNew}${type}/honor`, profileNewHonorByProfileId: (profileId: string, type: string) => `${registryNew}${type}/honor/${profileId}`, profileNewHonorById: (dataId: string, type: string) => `${registryNew}${type}/honor/${dataId}`, profileNewHonorHisById: (dataId: string, type: string) => `${registryNew}${type}/honor/history/${dataId}`, // ผลการประเมินการปฏิบัติราชการ profileNewAssessments: (type: string) => `${registryNew}${type}/assessments`, profileNewAssessmentsByProfileId: (profileId: string, type: string) => `${registryNew}${type}/assessments/${profileId}`, profileNewAssessmentsById: (dataId: string, type: string) => `${registryNew}${type}/assessments/${dataId}`, profileNewAssessmentsHisById: (dataId: string, type: string) => `${registryNew}${type}/assessments/history/${dataId}`, // การฝึกอบรม profileNewTraining: (type: string) => `${registryNew}${type}/training`, profileNewTrainingByProfileId: (profileId: string, type: string) => `${registryNew}${type}/training/${profileId}`, profileNewTrainingByTrainingId: (trainingId: string, type: string) => `${registryNew}${type}/training/${trainingId}`, profileNewTrainingHisByTrainingId: (trainingId: string, type: string) => `${registryNew}${type}/training/history/${trainingId}`, // ประวัติการศึกษา profileNewEducation: (type: string) => `${registryNew}${type}/educations`, profileNewEducationByProfileId: (profileId: string, type: string) => `${registryNew}${type}/educations/${profileId}`, profileNewEducationByEducationId: (educationId: string, type: string) => `${registryNew}${type}/educations/${educationId}`, profileNewEducationHisByEducationId: (educationsId: string, type: string) => `${registryNew}${type}/educations/history/${educationsId}`, // ความสามารถพิเศษ profileNewAbility: (type: string) => `${registryNew}${type}/ability`, profileNewAbilityByProfileId: (profileId: string, type: string) => `${registryNew}${type}/ability/${profileId}`, profileNewAbilityByAbilityId: (abilityId: string, type: string) => `${registryNew}${type}/ability/${abilityId}`, profileNewAbilityHisByAbilityId: (abilityId: string, type: string) => `${registryNew}${type}/ability/history/${abilityId}`, // ใบอนุญาตประกอบวิชาชีพ profileNewCertificate: (type: string) => `${registryNew}${type}/certificate`, profileNewCertificateByProfileId: (profileId: string, type: string) => `${registryNew}${type}/certificate/${profileId}`, profileNewCertificateByCertificateId: (certificateId: string, type: string) => `${registryNew}${type}/certificate/${certificateId}`, profileNewCertificateHisByCertificateId: ( certificateId: string, type: string ) => `${registryNew}${type}/certificate/history/${certificateId}`, // ข้อมูลอื่นๆ profileNewOther: (type: string) => `${registryNew}${type}/other`, profileNewOtherByProfileId: (profileId: string, type: string) => `${registryNew}${type}/other/${profileId}`, profileNewOtherById: (dataId: string, type: string) => `${registryNew}${type}/other/${dataId}`, profileNewOtherHisById: (dataId: string, type: string) => `${registryNew}${type}/other/history/${dataId}`, // ข้อมูลครอบครัว profileNewFamily: (type: string) => `${registryNew}${type}/family`, profileNewFamilyByProfileId: (profileId: string, type: string) => `${registryNew}${type}/family/${profileId}`, profileNewFamilyByFamilyId: (familyId: string, type: string) => `${registryNew}${type}/family/${familyId}`, profileNewFamilyHisByFamilyId: (familyId: string, type: string) => `${registryNew}${type}/family/history/${familyId}`, // วินัย profileNewDiscipline: (type: string) => `${registryNew}${type}/discipline`, profileNewDisciplineByProfileId: (profileId: string, type: string) => `${registryNew}${type}/discipline/${profileId}`, profileNewDisciplineByDisciplineId: (disciplineId: string, type: string) => `${registryNew}${type}/discipline/${disciplineId}`, profileNewDisciplineHisByDisciplineId: (disciplineId: string, type: string) => `${registryNew}${type}/discipline/history/${disciplineId}`, // ปฏิบัติราชการพิเศษ profileNewDuty: (type: string) => `${registryNew}${type}/duty`, profileNewDutyByProfileId: (profileId: string, type: string) => `${registryNew}${type}/duty/${profileId}`, profileNewDutyByDutyId: (dutyId: string, type: string) => `${registryNew}${type}/duty/${dutyId}`, profileNewDutyHisByDutyId: (dutyId: string, type: string) => `${registryNew}${type}/duty/history/${dutyId}`, //ข้อมูลราชการ profileNewGovernment: (type: string) => `${registryNew}${type}/government`, profileNewGovernmentById: (id: string, type: string) => `${registryNew}${type}/government/${id}`, profileNewGovernmentHistory: (id: string, type: string) => `${registryNew}${type}/government/history/${id}`, //การลา profileNewLeave: (type: string) => `${registryNew}${type}/leave`, profileNewLeaveById: (id: string, type: string) => `${registryNew}${type}/leave/${id}`, profileNewLeaveHistory: (id: string, type: string) => `${registryNew}${type}/leave/history/${id}`, profileCheckDate: () => `${env.API_URI}/leave/user/check`, profileNewLeaveType: () => `${env.API_URI}/leave/type`, /** ตำแหน่งเงินเดือน*/ profileSalaryNew: (type: string) => `${registryNew}${type}/salary`, profileListSalaryNew: (id: string, type: string) => `${registryNew}${type}/salary/${id}`, profileListSalaryHistoryNew: (profileId: string, type: string) => `${registryNew}${type}/salary/history/${profileId}`, profileSalarySwapNew: (type: string, id: string, type2: string) => `${registryNew}${type2}/salary/swap/${type}/${id}`, // ประวัติการเปลี่ยนชื่อ-นามสกุล profileNewChangeName: (type: string) => `${registryNew}${type}/changeName`, profileNewChangeNameByProfileId: (profileId: string, type: string) => `${registryNew}${type}/changeName/${profileId}`, profileNewChangeNameByChangeNameId: (changeNameId: string, type: string) => `${registryNew}${type}/changeName/${changeNameId}`, profileNewChangeNameHisByChangeNameId: (changeNameId: string, type: string) => `${registryNew}${type}/changeName/history/${changeNameId}`, //ข้อมูลครอบครับ profileFamily: (empType: string, type: string) => `${registryNew}${empType}/${type}`, };