UNPKG

918 BTypeScriptView Raw
1import { ServiceOptions } from './declarations';
2export declare const SERVICE: string | symbol;
3export declare const defaultServiceArguments: {
4 find: string[];
5 get: string[];
6 create: string[];
7 update: string[];
8 patch: string[];
9 remove: string[];
10};
11export declare const defaultServiceMethods: string[];
12export declare const defaultEventMap: {
13 create: string;
14 update: string;
15 patch: string;
16 remove: string;
17};
18export declare const defaultServiceEvents: string[];
19export declare const protectedMethods: string[];
20export declare function getHookMethods(service: any, options: ServiceOptions): string[];
21export declare function getServiceOptions(service: any): ServiceOptions;
22export declare const normalizeServiceOptions: (service: any, options?: ServiceOptions) => ServiceOptions;
23export declare function wrapService(location: string, service: any, options: ServiceOptions): any;