UNPKG

@becomes/cms

Version:

Simple CMS for building APIs.

44 lines (43 loc) 1.09 kB
import { IEntity } from 'purple-cheetah'; import { Types, Schema } from 'mongoose'; export declare enum MediaType { DIR = "DIR", IMG = "IMG", VID = "VID", TXT = "TXT", GIF = "GIF", OTH = "OTH", PDF = "PDF", CODE = "CODE", JS = "JS", HTML = "HTML", CSS = "CSS", JAVA = "JAVA", PHP = "PHP", FONT = "FONT" } export interface IMedia extends IEntity { userId: string; type: MediaType; mimetype: string; size: number; name: string; path: string; isInRoot: boolean; childrenIds?: string[]; } export declare class Media { _id: Types.ObjectId; createdAt: number; updatedAt: number; userId: string; type: MediaType; mimetype: string; size: number; name: string; path: string; isInRoot: boolean; childrenIds?: string[]; constructor(_id: Types.ObjectId, createdAt: number, updatedAt: number, userId: string, type: MediaType, mimetype: string, size: number, name: string, path: string, isInRoot: boolean, childrenIds?: string[]); static get schema(): Schema; }