UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

20 lines (19 loc) 701 B
import * as factory from '../factory'; import { MongoRepository as EventRepo } from '../repo/event'; import { MongoRepository as PlaceRepo } from '../repo/place'; import { MongoRepository as ReservationRepo } from '../repo/reservation'; export declare type IAggregateScreeningEventOperation<T> = (repos: { event: EventRepo; place: PlaceRepo; reservation: ReservationRepo; }) => Promise<T>; /** * 上映イベントデータを期間指定で集計する */ /** * 上映イベントデータをID指定で集計する */ export declare function aggregateScreeningEvent(params: { typeOf: factory.eventType.ScreeningEvent; id: string; }): IAggregateScreeningEventOperation<void>;