UNPKG

@dugongjs/nestjs

Version:

11 lines (10 loc) 674 B
import type { AbstractAggregateRoot, Constructor, HandleMessageContext } from "@dugongjs/core"; import { EventSourcingService } from "../event-sourcing/event-sourcing.service.js"; import { IQueryModelProjectionHandler } from "./i-query-model-projection-handler.js"; export declare class QueryModelProjectionConsumerService { private readonly eventSourcingService; private readonly queryModelProjectionHandler; constructor(eventSourcingService: EventSourcingService, queryModelProjectionHandler: IQueryModelProjectionHandler<any>); getAggregateClass(): Constructor<AbstractAggregateRoot>; updateQueryModel(context: HandleMessageContext): Promise<void>; }