Options
All
  • Public
  • Public/Protected
  • All
Menu

Module orm_functions/job_application

Index

Functions

  • changeEmailStatusOfJobApplication(jobApplicationId: number, emailStatus: email_status_enum): Promise<job_application>
  • change the email status of a given job application

    returns:

    the updated database record

    Parameters

    • jobApplicationId: number
    • emailStatus: email_status_enum

    Returns Promise<job_application>

  • deleteJobApplication(jobApplicationId: number): Promise<job_application>
  • deleteJobApplicationsFromStudent(studentId: number): Promise<BatchPayload>
  • removes all job applications from a given student

    Parameters

    • studentId: number

    Returns Promise<BatchPayload>

    the number of deleted job applications {count: number}

  • getEvaluationsByYearForStudent(studentId: number, year: number): Promise<null | { evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { account_status: account_status_enum; is_admin: boolean; is_coach: boolean; login_user_id: number; person: person; person_id: number }; motivation: null | string }[] }>
  • Parameters

    • studentId: number
    • year: number

    Returns Promise<null | { evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { account_status: account_status_enum; is_admin: boolean; is_coach: boolean; login_user_id: number; person: person; person_id: number }; motivation: null | string }[] }>

    all the job applications associated with the given year

  • getJobApplication(jobApplicationId: number): Promise<null | (job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[]; osoc: osoc })>
  • Parameters

    • jobApplicationId: number

    Returns Promise<null | (job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[]; osoc: osoc })>

    the found job application

  • getJobApplicationByYear(year: number): Promise<(job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[] })[]>
  • Parameters

    • year: number

    Returns Promise<(job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[] })[]>

    all the job applications associated with the given year

  • getJobApplicationByYearForStudent(studentId: number, year: number): Promise<job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[] }>
  • Parameters

    • studentId: number
    • year: number

    Returns Promise<job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[] }>

    all the job applications associated with the given year

  • getLatestApplicationRolesForStudent(studentId: number): Promise<null | { applied_role: { role_id: number }[] }>
  • Parameters

    • studentId: number

    Returns Promise<null | { applied_role: { role_id: number }[] }>

    the list of selected roles in the application (if it exists)

  • getLatestJobApplicationOfStudent(studentId: number): Promise<null | (job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[]; osoc: osoc })>
  • Parameters

    • studentId: number

    Returns Promise<null | (job_application & { applied_role: applied_role[]; attachment: attachment[]; job_application_skill: job_application_skill[]; osoc: osoc })>

    the found job applications of the given student

  • getStudentEvaluationsFinal(studentId: number): Promise<{ evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { login_user_id: number; person: { email: null | string; github: null | string; name: string; person_id: number } }; motivation: null | string }[]; osoc: { year: number } }[]>
  • Parameters

    • studentId: number

    Returns Promise<{ evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { login_user_id: number; person: { email: null | string; github: null | string; name: string; person_id: number } }; motivation: null | string }[]; osoc: { year: number } }[]>

    al the evaluations associated with this student together with the osoc year

  • getStudentEvaluationsTemp(studentId: number): Promise<{ evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { login_user_id: number; person: { email: null | string; github: null | string; name: string; person_id: number } }; motivation: null | string }[]; osoc: { year: number } }[]>
  • Parameters

    • studentId: number

    Returns Promise<{ evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { login_user_id: number; person: { email: null | string; github: null | string; name: string; person_id: number } }; motivation: null | string }[]; osoc: { year: number } }[]>

    al the evaluations associated with this student together with the osoc year

  • getStudentEvaluationsTotal(studentId: number): Promise<{ evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { login_user_id: number; person: { email: null | string; github: null | string; name: string; person_id: number } }; motivation: null | string }[]; osoc: { year: number } }[]>
  • Parameters

    • studentId: number

    Returns Promise<{ evaluation: { decision: decision_enum; evaluation_id: number; is_final: boolean; login_user: null | { login_user_id: number; person: { email: null | string; github: null | string; name: string; person_id: number } }; motivation: null | string }[]; osoc: { year: number } }[]>

    al the evaluations associated with this student together with the osoc year

Generated using TypeDoc