UNPKG

@becomes/cms

Version:

Simple CMS for building APIs.

17 lines (16 loc) 779 B
import { IMongooseEntityService } from 'purple-cheetah'; import { Entry, IEntry } from './models/entry.model'; export declare class EntryService implements IMongooseEntityService<Entry> { private repo; findAll: () => Promise<Entry[]>; findAllById: (ids: string[]) => Promise<Entry[]>; findById: (id: string) => Promise<Entry>; add: (e: Entry) => Promise<boolean>; update: (e: Entry) => Promise<boolean>; deleteById: (id: string) => Promise<boolean>; deleteAllById: (ids: string[]) => Promise<number | boolean>; findAllByTemplateId(templateId: any): Promise<Entry[]>; findByTemplateIdAndEntrySlug(templateId: string, entrySlug: string): Promise<IEntry>; findAllByWidgetId(id: string): Promise<IEntry[]>; count(): Promise<number>; }