@chevre/domain
Version:
Chevre Domain Library for Node.js
19 lines (18 loc) • 802 B
TypeScript
import { RedisRepository as ScreeningEventAggregationRepo } from '../repo/aggregation/screeningEvent';
import { MongoRepository as EventRepo } from '../repo/event';
import { RedisRepository as ScreeningEventAvailabilityRepo } from '../repo/itemAvailability/screeningEvent';
import { MongoRepository as PlaceRepo } from '../repo/place';
export declare type IAggregateScreeningEventOperation<T> = (repos: {
aggregation: ScreeningEventAggregationRepo;
screeningEventAvailability: ScreeningEventAvailabilityRepo;
event: EventRepo;
place: PlaceRepo;
}) => Promise<T>;
/**
* 上映イベントデーターを集計する
*/
export declare function aggregateScreeningEvents(params: {
startFrom: Date;
startThrough: Date;
ttl: number;
}): IAggregateScreeningEventOperation<void>;