UNPKG

@nepwork/dashboards

Version:

Dashboards for emergencies and monitoring

61 lines (56 loc) 2.61 kB
import { PipeService } from './pipes/pipe.service'; import { InterstellarService } from './interstellar/interstellar.service'; import { PaymentService } from './payment/lib/payment.service'; import { PaymentStream } from './payment/lib/model/payment.stream'; import { Injectable } from '@angular/core'; import { ModelStream, UserStream, PipeStream, CosmosStream } from './model/model.stream'; import { CacheService, CacheStream } from './cache/cache.service'; import { ConceptService, ConceptStream } from './concept/concept.service'; import { EntityService, EntityStream, ValueStream } from './entity/entity.service'; import { IdentityService, IdStream } from './identity/identity.service'; import { KeyService, KeyStream } from './key/key.service'; import { Graph } from './model/hgraph.model'; import { ModelService } from './model/model.service'; import { QueueService, TemporalQueue } from './queue/queue.service'; import { SsotService, TruthStream } from './ssot/ssot.service'; import { HgraphService } from './hgraph.service'; import { UserService } from './user/user.service'; @Injectable({ providedIn: 'root' }) export class HgraphApiService { constructor( private graph: HgraphService, private cache: CacheService, private concept: ConceptService, private entity: EntityService, private identity: IdentityService, private key: KeyService, private model: ModelService, private queue: QueueService, private ssot: SsotService, private payment: PaymentService, private xellar: InterstellarService, private pipe: PipeService, private user: UserService ) {} updateInMemoryGraph(g: Graph, remove = false): Graph { this.graph.updateNodes(g.nodes, remove); this.graph.updateEdges(g.edges, remove); return this.graph.graph; } get xellars(): CosmosStream { return this.xellar.cosmo; } get pipes(): PipeStream { return this.pipe.pipe; } get caches(): CacheStream { return this.cache.cache; } get users(): UserStream { return this.user.; } get concepts(): ConceptStream { return this.concept.concept; } get identities(): IdStream { return this.identity.id; } get entityKeys(): EntityStream { return this.entity.id; } get entityValues(): ValueStream { return this.entity.val; } get keys(): KeyStream { return this.key.id; } get values(): ValueStream { return this.key.value; } get models(): ModelStream { return this.model.model; } get queues(): TemporalQueue { return this.queue.queue; } get truths(): TruthStream { return this.ssot.truth; } get payments(): PaymentStream { return this.payment.pay; } }