2024-02-15 11:46:25 +07:00
|
|
|
import env from "../index";
|
2024-04-05 17:54:56 +07:00
|
|
|
const KPI = `${env.API_URI}/kpi`;
|
|
|
|
|
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
2024-04-18 18:09:32 +07:00
|
|
|
const kpiEvaluation = `${env.API_URI}/kpi/evaluation`;
|
2024-04-26 16:14:54 +07:00
|
|
|
const kpiUserEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
|
|
|
|
const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
2024-04-19 11:36:48 +07:00
|
|
|
const kpiGroup = `${env.API_URI}/kpi/group`;
|
2024-04-19 14:34:15 +07:00
|
|
|
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
2024-04-19 14:38:05 +07:00
|
|
|
const kpiCapacity = `${env.API_URI}/kpi/capacity`;
|
2024-04-22 09:28:14 +07:00
|
|
|
const kpiLink = `${env.API_URI}/kpi/link`;
|
2024-04-26 16:14:54 +07:00
|
|
|
const KpiUser = `${env.API_URI}/kpi/user`;
|
2024-02-15 11:46:25 +07:00
|
|
|
export default {
|
|
|
|
|
KPI,
|
2024-04-05 17:54:56 +07:00
|
|
|
/** รอบการประเมินผล*/
|
2024-04-26 16:14:54 +07:00
|
|
|
kpiPeriod,
|
2024-04-05 17:54:56 +07:00
|
|
|
kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`,
|
2024-04-19 14:15:08 +07:00
|
|
|
kpiEvaluation,
|
|
|
|
|
|
|
|
|
|
/** role */
|
2024-04-26 16:14:54 +07:00
|
|
|
kpiRoleMainList: `${KPI}/role`,
|
2024-04-19 14:19:06 +07:00
|
|
|
|
2024-04-19 11:36:48 +07:00
|
|
|
kpiGroup,
|
2024-04-19 14:34:15 +07:00
|
|
|
kpiGroupById: (id: string) => `${kpiGroup}/${id}`,
|
|
|
|
|
kpiPlan,
|
|
|
|
|
kpiPlanById: (id: string) => `${kpiPlan}/${id}`,
|
2024-04-19 14:38:05 +07:00
|
|
|
|
|
|
|
|
/** สมรรถนะ */
|
|
|
|
|
kpiCapacity,
|
2024-04-22 09:28:14 +07:00
|
|
|
|
|
|
|
|
kpiLink,
|
2024-04-26 16:14:54 +07:00
|
|
|
|
|
|
|
|
kpiUserEvaluation,
|
|
|
|
|
profilePosition: () => `${env.API_URI}/org/profile/keycloak/position`,
|
|
|
|
|
kpiAchievement: (type: string) => `${kpiAchievement}/${type}`,
|
|
|
|
|
kpiAchievementPoint: (type: string) => `${kpiAchievement}/${type}/point`,
|
|
|
|
|
kpiUserCapacity: `${KpiUser}/capacity`,
|
2024-02-15 11:46:25 +07:00
|
|
|
};
|