@withpotter/digital-file — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

DigitalFile — table digital_files

FieldType
idstring
tenantIdstring
contentIdstring
filenamestring
originalNamestring
storageKeystring
mimeTypestring | null
fileSizenumber | null
downloadLimitnumber | null
positionnumber
isActiveboolean
createdAtDate
updatedAtDate
contentContent
tenantTenant
downloadTokensDownloadToken[]
idstring
tenantIdstring
digitalFileIdstring
orderIdstring | null
memberIdstring | null
tokenstring
downloadCountnumber
downloadLimitnumber | null
expiresAtDate | null
lastDownloadedAtDate | null
ipAddressstring | null
createdAtDate
updatedAtDate
digitalFileDigitalFile

Repositories

Data-access classes wrapping the entities.

DigitalFileRepository

findById · findByContent · findByContentIds · create · update · remove · countByContent · getNextPosition · findByToken · findByOrder · findByMember · findByMemberPaginated · createForOrder · recordDownload

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.