UNPKG

blast-graph-angular2

Version:

![Alt text](./resources/images/b-circle-trans-100.png) **with** ![Alt text](./resources/images/angular.png)

49 lines (48 loc) 2.33 kB
import { BlastService, BlastServiceConfig } from './blast-angular2'; import { BlastException } from './blast-exception'; import { GraphRequest } from './graph-request'; import { PathParameters } from './path-parameters'; import { PathDetails } from './path-details'; import { GraphResponseMessage } from './graph-response-message'; import { Instruction } from './instruction'; import { Attachment } from './attachment'; import { LogService } from './log-service'; export declare const useKebab: boolean; export declare class GraphBlastService extends BlastService { private _url; private _logging; private _connectNow; private _protocols; private _config; private _correlatedGraphRequestMap; private _collectionMap; private _correlationId; _logService: LogService; constructor(_url: string, _logging: boolean, _connectNow?: boolean, _protocols?: Array<string>, _config?: BlastServiceConfig); add(collection: string, entity: any): Promise<any>; update(key: string, entity: any): Promise<any>; remove(key: string): Promise<any>; private randomId(); attach(key: string, data: any, parameters?: PathParameters): Attachment; handlePromiseError(blastException: BlastException): Promise<any>; detach(key: string): Promise<any>; detachAll(): Promise<any>; getAttachments(): Promise<any>; fetch(key: string, parameters?: PathParameters): Promise<any>; fetchRoot(): Promise<any>; getSchema(): Promise<any>; loggingOn(): void; loggingOff(): void; sendGraphRequest(request: GraphRequest): Promise<any>; buildPath(startIndex: number, pathDetails: PathDetails[], addLastKey: boolean): string; calculateTruePath(key: string, path: string, operation: string): string; applyChangeToRecord(collection: any, instruction: Instruction): void; getGraphMessage(value: string): GraphResponseMessage; handleInitialLoad(graphRequest: GraphRequest, graphMessage: GraphResponseMessage): void; handleJsonMessage(message: any): boolean; handleCommand(graphMessage: GraphResponseMessage): void; handleTheCommand(graphMessage: GraphResponseMessage): void; handleGraphModify(graphMessage: GraphResponseMessage): void; private shouldAbandonProcessing(graphMessage); mergeMap(baseObject: any, changedObject: any): void; }