2024-04-22 17:25:58 +07:00
|
|
|
import env from "../index";
|
|
|
|
|
|
2024-04-22 18:11:24 +07:00
|
|
|
const url = `${env.API_URI}/salary`;
|
2024-04-22 17:25:58 +07:00
|
|
|
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
|
|
|
|
const kpiEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
|
|
|
|
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
2024-04-23 10:20:33 +07:00
|
|
|
const kpiRole = `${env.API_URI}/kpi/role`;
|
2024-05-09 11:55:37 +07:00
|
|
|
const kpiSpecial = `${env.API_URI}/kpi/special`;
|
2024-04-22 17:34:56 +07:00
|
|
|
const KpiCapacity = `${env.API_URI}/kpi/capacity`;
|
|
|
|
|
const KpiFile = `${env.API_URI}/salary/file`;
|
2024-04-29 09:55:15 +07:00
|
|
|
const KpiEvaluationInfo = `${env.API_URI}/kpi/evaluation`;
|
|
|
|
|
const Kpiorg = `${env.API_URI}/org/profile/commander`;
|
2024-04-23 16:23:49 +07:00
|
|
|
|
2024-12-19 17:52:43 +07:00
|
|
|
const developmentOrg = `${env.API_URI}/org`;
|
2024-06-27 18:15:20 +07:00
|
|
|
const Kpi = `${env.API_URI}/kpi`;
|
2024-04-23 16:23:49 +07:00
|
|
|
const KpiUser = `${env.API_URI}/kpi/user`;
|
2024-04-23 15:43:41 +07:00
|
|
|
const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
2024-05-13 17:50:26 +07:00
|
|
|
const kpiReason = `${env.API_URI}/kpi/reason`;
|
2024-08-07 14:53:58 +07:00
|
|
|
const development = `${env.API_URI}/development`;
|
2024-06-17 09:18:25 +07:00
|
|
|
// const placementKeycloak = `${env.API_URI}/placement/officer/keycloak`;
|
|
|
|
|
const placementKeycloak = `${env.API_URI}/placement/officer/profileId`;
|
2024-06-17 10:02:54 +07:00
|
|
|
// const orgPosition = `${env.API_URI}/org/profile/keycloak/position `;
|
2024-06-26 17:07:01 +07:00
|
|
|
const orgPosition = `${env.API_URI}/org/profile/profileid/position`;
|
2024-04-22 17:25:58 +07:00
|
|
|
export default {
|
|
|
|
|
kpiPeriod,
|
|
|
|
|
kpiEvaluation,
|
|
|
|
|
kpiPlan,
|
2024-04-23 10:20:33 +07:00
|
|
|
kpiRole,
|
2024-05-09 11:55:37 +07:00
|
|
|
kpiSpecial,
|
2024-04-22 17:34:56 +07:00
|
|
|
KpiCapacity,
|
|
|
|
|
file: KpiFile,
|
2024-04-22 18:11:24 +07:00
|
|
|
|
2024-04-23 15:43:41 +07:00
|
|
|
kpiAchievement: (type: string) => `${kpiAchievement}/${type}`,
|
2024-04-24 15:00:53 +07:00
|
|
|
kpiAchievementPoint: (type: string) => `${kpiAchievement}/${type}/point`,
|
2024-04-23 15:43:41 +07:00
|
|
|
|
2024-04-29 13:41:41 +07:00
|
|
|
kpiScoreTotal: () => `${kpiEvaluation}/point`,
|
|
|
|
|
|
2024-04-23 15:43:41 +07:00
|
|
|
/** ผลสัมฤทธิ์ของงาน*/
|
2024-04-22 18:11:24 +07:00
|
|
|
fileByFile: (name: string, group: string, id: string, fileName: string) =>
|
|
|
|
|
`${url}/file/${name}/${group}/${id}/${fileName}`,
|
2024-05-28 15:44:17 +07:00
|
|
|
fileByFileUser: (name: string, group: string, id: string) =>
|
|
|
|
|
`${url}/file/${name}/${group}/${id}`,
|
2024-04-24 15:00:53 +07:00
|
|
|
kpiUserCapacity: `${KpiUser}/capacity`,
|
2024-04-29 09:55:15 +07:00
|
|
|
KpiEvaluationInfo,
|
2024-04-26 15:18:28 +07:00
|
|
|
Kpiorg,
|
2024-04-29 09:55:15 +07:00
|
|
|
kpiEvaluationCheck: `${kpiEvaluation}/check`,
|
2024-05-09 17:14:21 +07:00
|
|
|
kpiSendToStatus: (id: string) => `${kpiEvaluation}/status/${id}`,
|
2024-06-26 17:00:34 +07:00
|
|
|
kpiSendToSummary: (id: string) => `${kpiEvaluation}/summary/${id}`,
|
|
|
|
|
kpiSendToGet: (id: string) => `${kpiEvaluation}/reason/${id}`,
|
2024-06-27 17:30:50 +07:00
|
|
|
kpiSendToReason: (id: string, type: string) =>
|
|
|
|
|
`${kpiEvaluation}/reason/${type}/${id}`,
|
2025-01-30 11:36:43 +07:00
|
|
|
kpiSendToReasonreject: (id: string) =>
|
|
|
|
|
`${kpiEvaluation}/reject-result/${id}`,
|
|
|
|
|
|
|
|
|
|
|
2024-05-09 18:09:43 +07:00
|
|
|
kpiReqEdit: (id: string) => `${kpiEvaluation}/edit/${id}`,
|
2024-04-29 09:55:15 +07:00
|
|
|
/**ประเมิน*/
|
2024-05-09 18:09:43 +07:00
|
|
|
kpiAchievementDevelop: `${kpiAchievement}/development`,
|
2024-05-13 17:50:26 +07:00
|
|
|
|
2024-06-26 17:07:01 +07:00
|
|
|
kpiCommentP: (typP: string, type: string, role: string, id: string) =>
|
|
|
|
|
`${kpiReason}/${typP}/${type}/${role}/${id}`,
|
2024-06-13 10:34:06 +07:00
|
|
|
|
|
|
|
|
placementKeycloak,
|
|
|
|
|
orgPosition,
|
2024-06-26 17:07:01 +07:00
|
|
|
sendToCommander: `${KpiUser}/evaluation/admin/change-status`,
|
|
|
|
|
sendToSummary: (id: string) => `${kpiEvaluation}/summary/${id}`,
|
|
|
|
|
updatePoint: (id: string) => `${kpiEvaluation}/point/${id}`,
|
|
|
|
|
openPoint: (id: string) => `${kpiEvaluation}/open/${id}`,
|
2024-07-04 10:33:20 +07:00
|
|
|
kpiReport: (id: string) => `${Kpi}/report/kpi-user/${id}`,
|
2024-08-07 14:53:58 +07:00
|
|
|
|
|
|
|
|
developmentMain: `${development}/main`,
|
2024-12-19 17:52:43 +07:00
|
|
|
|
|
|
|
|
developmentReQuestIDP: (id: string) => `${developmentOrg}/profile/development/registry/USER/${id}`,
|
|
|
|
|
developmentIDP: (id: string) => `${development}/main/registry/USER/${id}`,
|
2025-01-30 11:36:43 +07:00
|
|
|
|
2025-02-20 11:40:35 +07:00
|
|
|
kpiReject:(id:string)=>`${kpiEvaluation}/reject-agreement/${id}`,
|
|
|
|
|
|
|
|
|
|
kpiReportList:(id:string)=>`${Kpi}/report/list/${id}`
|
2024-04-22 17:25:58 +07:00
|
|
|
};
|
2024-12-19 17:52:43 +07:00
|
|
|
|