Binary files service that provides methods to fetch and create binary files

Type Parameters

Constructors

Properties

dataSource: DataSource
idService: IdService
loggerFactory: WinstonLoggerFactory

Accessors

  • get repository(): Repository<I>

    Returns Repository<I>

Methods

  • Delete binary file

    Parameters

    • id: string

      ID of the binary file

    Returns Promise<void>

  • Returns string

  • Fetch binary file by id

    Parameters

    • id: string

      ID of the binary file

    Returns Promise<MaybeNull<I>>

    • binary file
  • Fetch binary file by id or throw an error if not found

    Parameters

    Returns Promise<I>

    • binary file
  • Returns void