UNPKG

@becomes/cms

Version:

Simple CMS for building APIs.

40 lines (39 loc) 1.11 kB
import { IEntity } from 'purple-cheetah'; import { Types, Schema } from 'mongoose'; import { Prop } from '../../prop/interfaces/prop.interface'; export declare enum TemplateType { RICH_CONTENT = "RICH_CONTENT", DATA_MODEL = "DATA_MODEL" } export interface ITemplate extends IEntity { type: TemplateType; name: string; desc: string; userId: string; entryTemplate: Prop[]; entryIds: string[]; defaults?: { title: string; coverImageUri: string; }; } export declare class Template { _id: Types.ObjectId; createdAt: number; updatedAt: number; type: TemplateType; name: string; desc: string; userId: string; entryTemplate: Prop[]; entryIds: string[]; defaults?: { title: string; coverImageUri: string; }; constructor(_id: Types.ObjectId, createdAt: number, updatedAt: number, type: TemplateType, name: string, desc: string, userId: string, entryTemplate: Prop[], entryIds: string[], defaults?: { title: string; coverImageUri: string; }); static get schema(): Schema; }