UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

21 lines (20 loc) 875 B
/** * 予約確定時アクション */ import * as factory from '../../../factory'; import { AuthorizationRepo } from '../../../repo/authorization'; import type { SettingRepo } from '../../../repo/setting'; import type { TaskRepo } from '../../../repo/task'; type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>; /** * 予約確定後のアクション */ export declare function onReservationConfirmedByAction(actionAttributes: Pick<factory.action.reserve.IAttributes, 'potentialActions'>): (repos: { task: TaskRepo; }) => Promise<void>; export declare function onReservationConfirmed(confirmedReservations: IEventReservation[], reserveAction: Pick<factory.action.reserve.IAttributes, 'instrument'>): (repos: { code: AuthorizationRepo; setting: SettingRepo; task: TaskRepo; }) => Promise<void>; export {};