@becomes/cms
Version:
Simple CMS for building APIs.
12 lines (11 loc) • 537 B
TypeScript
import { IMongooseEntityService } from 'purple-cheetah';
import { Webhook } from './models/webhook.model';
export declare class WebhookService implements IMongooseEntityService<Webhook> {
findAll: () => Promise<Webhook[]>;
findAllById: (ids: string[]) => Promise<Webhook[]>;
findById: (id: string) => Promise<Webhook>;
add: (e: Webhook) => Promise<boolean>;
update: (e: Webhook) => Promise<boolean>;
deleteById: (id: string) => Promise<boolean>;
deleteAllById: (ids: string[]) => Promise<number | boolean>;
}