Options
All
  • Public
  • Public/Protected
  • All
Menu

Module orm_functions/attachment

Index

Functions

  • createAttachment(jobApplicationId: number, data: string[], type: type_enum[]): Promise<attachment>
  • create an attachment for job_application_id

    Parameters

    • jobApplicationId: number
    • data: string[]
    • type: type_enum[]

    Returns Promise<attachment>

    the created attachment

  • deleteAllAttachmentsForApplication(jobApplicationId: number): Promise<BatchPayload>
  • removes all attachments associated with the given job application

    Parameters

    • jobApplicationId: number

    Returns Promise<BatchPayload>

    the number of removed attachments {count: number}

  • deleteAttachment(attachmentId: number): Promise<attachment>
  • getAttachmentById(attachmentId: number): Promise<null | attachment>

Generated using TypeDoc