UNPKG

@becomes/cms

Version:

Simple CMS for building APIs.

15 lines (14 loc) 580 B
import { IMongooseEntityService } from 'purple-cheetah'; import { Key } from './models/key.model'; export declare class KeyService implements IMongooseEntityService<Key> { private repo; private logger; findAll: () => Promise<Key[]>; findAllById: (ids: string[]) => Promise<Key[]>; findById: (id: string) => Promise<Key>; add: (e: Key) => Promise<boolean>; update: (e: Key) => Promise<boolean>; deleteById: (id: string) => Promise<boolean>; deleteAllById: (ids: string[]) => Promise<number | boolean>; updateNew(e: Key): Promise<boolean>; }