import env from "../index";

const evaluation = `${env.API_URI}/evaluation`;

export default {
  evaluationList: () => `${evaluation}/user`,
  evaluationByid: (id: string) => `${evaluation}/${id}`,
  evaluationCheckStatus: () => `${evaluation}/check-status`,
  evaluationCheckStep: (id: string) => `${evaluation}/check/${id}`,
  evaluationCheckById: (id: string) => `${evaluation}/check/${id}`,
  evaluationCheckspec: () => `${evaluation}/check-spec`,
  evaluationCheckspecByid: (id: string) => `${evaluation}/check-spec/${id}`,
  evaluationReportCheckspecByid: (id: string) => `${evaluation}/report/check-spec-report/${id}`,
  evaluationPreparedoc: (id: string, type: string) =>
    `${evaluation}/prepare-doc-v1/${type}/${id}`,
  evaluationCheckdoc: (id: string, type: string) =>
    `${evaluation}/check-doc-v1/${type}/${id}`,
  evaluationDoc1: (id: string, type: string) =>
    `${evaluation}/doc1/${type}/${id}`,
  evaluationCheckdocV2: (id: string) => `${evaluation}/check-doc-v1/${id}`,
  evaluationPreparedocV2: (id: string) =>
    `${evaluation}/prepare-doc-v2/approve/${id}`,
  evaluationPreparedocRejectV2: (id: string) =>
    `${evaluation}/prepare-doc-v2/reject/${id}`,
  evaluationWaitCheck: (id: string) => `${evaluation}/wait-check-doc-v2/${id}`,
  evaluationDoc2: (id: string) => `${evaluation}/doc2/reject/${id}`,
  evaluationHistory: (id: string) => `${evaluation}/step-history/${id}`,
  evaluationDetail: () => `${env.API_URI}/profile/keycloak`,
  evaluationSignerDoc1: (id: string) => `${evaluation}/doc1-signer/${id}`,
  evaluationSignerDoc2: (id: string) => `${evaluation}/doc2-signer/${id}`,
  evaluationDirectorMeetring: (id: string) =>
    `${evaluation}/director-meeting/${id}`,
  evaluationCheckDate: (id: string) => `${evaluation}/check-date/${id}`,
  evaluationUpdateAuthor: (id: string, type: string) =>
    `${evaluation}/update-author-${type}/${id}`,

  /**document */
  loadPathDocument: (val: string, id: string) =>
    `${evaluation}/document/${val}/${id}`,
  loadFileDocument: (val: string, id: string, file: String) =>
    `${evaluation}/document/${val}/${id}/${file}`,

  evaluationExpertise: `${evaluation}/expertise`,
};
