UNPKG

@dugongjs/nestjs-microservice-query

Version:

12 lines (11 loc) 816 B
import type { IAggregateQueryService, SerializedDomainEvent } from "@dugongjs/core"; import { ClientProxy } from "@nestjs/microservices"; export declare class AggregateQueryClientProxyService implements IAggregateQueryService { private readonly queryClientProxy; constructor(queryClientProxy: ClientProxy); getAggregateTypes(): Promise<string[]>; getAggregateIds(origin: string | null, aggregateType: string, tenantId?: string): Promise<string[]>; getAggregate(origin: string | null, aggregateType: string, aggregateId: string, tenantId?: string | null, toSequenceNumber?: number): Promise<object | null>; getDomainEventsForAggregate(origin: string | null, aggregateType: string, aggregateId: string, tenantId?: string | null): Promise<SerializedDomainEvent[]>; close(): Promise<void>; }