UNPKG

@adonis-agora/media

Version:

Media-library for AdonisJS — owner collections (MIME whitelist, single-file replace, ordering), image conversions (eager/lazy), pluggable content transformers (HLS video via mediabunny, metadata probe, image blur-up placeholder), and column attachments, a

17 lines • 1.11 kB
import type { MediaRecord } from '../media_record.js'; import { type MediaCollectionTotals, type MediaListOptions, type MediaListPage, type MediaOwnerPageOptions, type MediaStore, type MediaTotalsOptions } from '../media_store.js'; /** In-memory {@link MediaStore} for tests and scratch apps. */ export declare class InMemoryMediaStore implements MediaStore { private readonly records; readonly tenantFiltering = true; save(record: MediaRecord): Promise<MediaRecord>; find(id: string): Promise<MediaRecord | null>; listByOwner(ownerType: string, ownerId: string, collection?: string): Promise<MediaRecord[]>; list(options?: MediaListOptions): Promise<MediaListPage>; listByOwnerPaged(ownerType: string, ownerId: string, options?: MediaOwnerPageOptions): Promise<MediaListPage>; delete(id: string): Promise<void>; collectionTotals(options?: MediaTotalsOptions): Promise<MediaCollectionTotals[]>; listTenants(): Promise<string[]>; nextOrder(ownerType: string, ownerId: string, collection: string): Promise<number>; } //# sourceMappingURL=in_memory_media_store.d.ts.map