From 38228a7bfb16089f20a08134da0dfcf438e1322d Mon Sep 17 00:00:00 2001 From: Tetsu Yamazaki Date: Mon, 4 Jan 2021 05:30:22 +0000 Subject: [PATCH] =?UTF-8?q?-=20=E3=83=91=E3=83=95=E3=82=A9=E3=83=BC?= =?UTF-8?q?=E3=83=9E=E3=83=B3=E3=82=B9=E3=82=A4=E3=83=B3=E3=82=BF=E3=83=BC?= =?UTF-8?q?=E3=83=95=E3=82=A7=E3=83=BC=E3=82=B9=E3=81=8B=E3=82=89=E9=9B=86?= =?UTF-8?q?=E8=A8=88=E5=B1=9E=E6=80=A7=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ src/factory/performance.ts | 49 +++++--------------------------------- 2 files changed, 8 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8211d20..baf868a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Changed +- パフォーマンスインターフェースから集計属性を削除 + ### Deprecated ### Removed diff --git a/src/factory/performance.ts b/src/factory/performance.ts index e178afa..4b27311 100644 --- a/src/factory/performance.ts +++ b/src/factory/performance.ts @@ -1,7 +1,5 @@ import { chevre, person, propertyValue } from '@cinerino/factory'; -import { ICheckin } from './reservation/event'; - /** * 検索条件インターフェース */ @@ -61,6 +59,10 @@ export interface IExtension { * 販売ステータス最終更新時の予約データリスト */ reservationsAtLastUpdateDate?: IReservationAtLastupdateDate[]; + /** + * 入場済予約リスト + */ + checkedReservations?: { id: string }[]; } /** @@ -72,49 +74,10 @@ export interface IReservationAtLastupdateDate { transaction_agent: person.IPerson; } -export type ICheckinWithTicketType = ICheckin & { - ticketType: string; - ticketCategory: string; -}; - -export interface ICheckinCountsByTicketType { - ticketType: string; - ticketCategory: string; - count?: number; -} - -export interface ICheckinCountByWhere { - /** - * 入場場所 - */ - where: string; - /** - * 券種ごとの入場数 - */ - checkinCountsByTicketType: ICheckinCountsByTicketType[]; -} - -export interface IReservationCountByTicketType { - ticketType: string; - count?: number; -} - -/** - * パフォーマンス集計データインターフェース - */ -export interface IPerformanceAggregation { - id: string; - aggregateEntranceGate?: chevre.event.screeningEvent.IAggregateEntranceGate; - aggregateOffer?: chevre.event.screeningEvent.IAggregateOffer; - aggregateReservation?: chevre.event.screeningEvent.IAggregateReservation; - checkinCount?: number; - checkinCountsByWhere?: ICheckinCountByWhere[]; -} - /** * パフォーマンスインターフェース */ -export type IPerformance = { +export interface IPerformance { project: chevre.project.IProject; id: string; startDate: Date; @@ -122,4 +85,4 @@ export type IPerformance = { eventStatus: chevre.eventStatusType; additionalProperty?: propertyValue.IPropertyValue[]; ttts_extension?: IExtension; -} & IPerformanceAggregation; +}