Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InternshipProposalService

The internship proposal service

extends

{BaseService}

Hierarchy

Index

Constructors

constructor

Methods

addAttendances

  • addAttendances(internshipProposalId: string, attendances: Array<Attendance>): Promise<ApiResponseDto<InternshipProposal>>
  • Add the list of attendances to the internship proposal

    Parameters

    • internshipProposalId: string

      The internship proposal id

    • attendances: Array<Attendance>

      The list of attendances to add

    Returns Promise<ApiResponseDto<InternshipProposal>>

create

  • create(internshipProposal: InternshipProposal): Promise<ApiResponseDto<InternshipProposal>>

Protected deleteVerb

  • deleteVerb(path: string): Promise<any>

forceUpdateStatus

  • forceUpdateStatus(internshipId: string, newState: InternshipProposalStatusType): Promise<ApiResponseDto<InternshipProposal>>
  • Update the status of an internship proposal without following the state machine transition function

    Parameters

    • internshipId: string

      The internship proposal to update

    • newState: InternshipProposalStatusType

      The new state

    Returns Promise<ApiResponseDto<InternshipProposal>>

generateDocs

  • generateDocs(internshipProposalId: string): Promise<Blob>

getAvailablePlace

  • getAvailablePlace(internshipId: string): Promise<ApiResponseDto<number>>

getByCompanyOwnerId

  • getByCompanyOwnerId(companyOwnerId: string): Promise<ApiResponseDto<Array<InternshipProposal>>>
  • Return a list af all proposals that reference the given company owner id

    Parameters

    • companyOwnerId: string

      The company owner id

    Returns Promise<ApiResponseDto<Array<InternshipProposal>>>

getById

  • getById(internshipProposalId: string): Promise<ApiResponseDto<InternshipProposal>>

getByProfessorId

  • getByProfessorId(professorId: string): Promise<ApiResponseDto<Array<InternshipProposal>>>
  • Return a list af all proposals that reference the given professor id

    Parameters

    • professorId: string

      The professor id

    Returns Promise<ApiResponseDto<Array<InternshipProposal>>>

getByStudentId

  • getByStudentId(studentId: string): Promise<ApiResponseDto<Array<InternshipProposal>>>

Protected getVerb

  • getVerb(path: string, options?: any): Promise<any>

Protected postVerb

  • postVerb(path: string, body: any): Promise<any>

Protected postVerbObservable

  • postVerbObservable(path: string, body: any): Observable<any>

Protected putVerb

  • putVerb(path: string, body: any): Promise<any>

updateStatus

  • updateStatus(internshipId: string, newState: InternshipProposalStatusType): Promise<ApiResponseDto<InternshipProposal>>
  • Update the status of an internship proposal following the state machine transition function

    Parameters

    • internshipId: string

      The internship proposal to update

    • newState: InternshipProposalStatusType

      The new state that follows the machine state transition function

    Returns Promise<ApiResponseDto<InternshipProposal>>

Generated using TypeDoc