UNPKG

realm-object-server

Version:

Realm Object Server

56 lines (55 loc) 4.38 kB
import { CorsOptions } from "cors"; import { RequestHandler } from "express"; import { IService, IServiceConstructor } from "./Service"; export declare function Get(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Post(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Put(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Delete(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Options(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Head(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Trace(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Patch(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function All(path: string, config?: { allowAnonymous?: boolean; }): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Upgrade(path: string): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function MiddlewaresBefore(...middlewares: RequestHandler[]): (target: IService | IServiceConstructor, propertyKey?: string, descriptor?: PropertyDescriptor) => void; export declare function BaseRoute(path: string, config?: { allowAnonymous: boolean; }): (target: IServiceConstructor) => void; export declare function ServiceName(name: string): (target: IServiceConstructor) => void; export declare function Tags(tags: string[]): (target: IServiceConstructor) => void; export declare function ServeStatic(route: string, staticRoot: string): (target: IServiceConstructor) => any; export declare function Cors(path: string, options?: CorsOptions): (target: IServiceConstructor) => void; export declare function Body(keyPath?: string): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Headers(keyPath?: string | string): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Params(keyPath?: string | string[]): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Query(keyPath?: string): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Request(): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Response(): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Socket(): (target: IService, functionName: string, argumentIndex: number) => void; export declare function HeadBuffer(): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Next(): (target: IService, functionName: string, argumentIndex: number) => void; export declare function Start(): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Stop(): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Stopping(): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function ServerStarted(): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Address(): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function Unmute(contextual?: boolean): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare function EnhanceLog(): (target: IService, propertyKey: string, descriptor: PropertyDescriptor) => void;