/** * Created by reunion on 19/05/2017. */ import { ExternalInterface } from "./external-interface.interface"; import { Observable, ReplaySubject, Subscription } from "rxjs/Rx"; import { DataEntity } from "../data-entity.class"; import { DataEntityCollection } from "../data-entity-collection.class"; import { Response } from "@angular/http"; import { NodeJSInterfaceConfig } from "./nodejs-interface-config.interface"; import { DataManagerService } from "../data-manager.service"; import { NodeJsDataInterface } from "./nodejs-data.interface"; export declare class NodeJsInterface implements ExternalInterface { private manager; private configuration; socket: any; messageSubject: ReplaySubject; wallSubject: Map>; collectionSubscriptions: Subscription[]; paramsByEndpoint: { [key: string]: Object; }; messageEventType: string; wallEventType: string; currentWallId: string; socketHandlersParams: { [key: string]: any; }; hasSuccess: boolean; initialized: boolean; socketTry: number; constructor(manager: DataManagerService, configuration: NodeJSInterfaceConfig); useLocale(locale: string): void; init(type: any): void; connectionAndRetrieve(key: string, params?: Object): void; initializeSocket(): void; onDisconnection(): void; onConnection(): void; setEndPointsValidityBooleans(value: boolean): void; endpointFilterValidity(data: NodeJsDataInterface): boolean; initSubscriptions(): void; clearSocket(): void; getParamsAndTypeFilteredObservable(entityType: string, params: Object): Observable; getWallAndTypeFilteredObservable(entityType: string, wall: string): Observable; getTypeFilteredObservable(entityType: string): Observable; getMappedEntitiesDatas(command: string): Observable; paramsEquality(itemData: NodeJsDataInterface, params: Object): boolean; paramsEntityEquality(data: DataEntity, params: Object): boolean; typeObjectFilterCollectionData(data: NodeJsDataInterface[]): DataEntityCollection; filterCollectionData(data: NodeJsDataInterface[]): DataEntityCollection; typeFilterCollectionData(data: NodeJsDataInterface[]): DataEntityCollection; filterEntityData(data: NodeJsDataInterface[]): DataEntity[]; mapToCollection(entityType: string, data: NodeJsDataInterface[]): DataEntityCollection; mapToEntity(data: NodeJsDataInterface): DataEntity; getEntity(entityType: string): Observable; loadEntity(entityType: string, entityId: any): Observable; saveEntity(entity: DataEntity, applyDiff: boolean, exclusions?: string[]): Observable; saveRawEntity(entity: DataEntity): Observable; getParamsHash(params: Object): string; loadEntityCollection(entityType: string, fields: Array, params?: Object): Observable; clearCollectionSubscriptions(): void; createEntity(entityType: string, datas: Object, params?: Object, exclusions?: string[]): Observable; generateTempId(): number; putEntity(entityType: string, datas: Object, params?: Object): Observable; deleteEntity(entity: DataEntity, params?: Object): Observable; duplicateEntity(entity: DataEntity): Observable; release(): void; }