@jrmc/adonis-attachment
Version:
Turn any field on your Lucid model to an attachment data type
22 lines • 776 B
TypeScript
/**
* @jrmc/adonis-attachment
*
* @license MIT
* @copyright Jeremy Chaufourier <jeremy@chaufourier.fr>
*/
import type { RecordWithAttachment as RecordWithAttachmentImplementation } from '../../types/service.js';
export declare class AttachmentPersisterService {
/**
* Persist attachments before saving the row to the database
*/
persistAttachments(record: RecordWithAttachmentImplementation): Promise<void>;
/**
* Pre-compute URLs for all attachments
*/
preComputeUrls(record: RecordWithAttachmentImplementation): Promise<void>;
/**
* Set key IDs for all attachments using encryption
*/
setKeyIds(record: RecordWithAttachmentImplementation): Promise<void>;
}
//# sourceMappingURL=attachment_persister_service.d.ts.map