UNPKG

@expressive-analytics/deep-thought-service

Version:

Typescript conversion of Deep Thought Services (formerly providers)

26 lines (25 loc) 731 B
export declare enum DTErr { NONE = 0, INVALID_KEY = 1, FAILED_QUERY = 2, PROHIBITED_ACTION = 3, UNAUTHORIZED_TOKEN = 4, OAUTH_CONSUMER_KEY_REFUSED = 5 } export declare class DTResponse { obj: any; protected err: number; as_proxy: boolean; rsp: any; constructor(rsp: any, obj?: any, err?: number); sendHeader(header: string): void; setResponse(obj: any): void; error(code?: any): number; /** Converts the +obj+ to a form it can be rendered. For DTModels, these are only the public properties. */ objectAsRenderable(obj?: any, $public?: any): any; renderAsDTR(): void; renderAsJSON(): void; render(str: any): void; respond(params?: {}): void; }