Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
- パフォーマンスインターフェースから集計属性を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Jan 4, 2021
1 parent b03202d commit 38228a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 43 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Changed

- パフォーマンスインターフェースから集計属性を削除

### Deprecated

### Removed
Expand Down
49 changes: 6 additions & 43 deletions src/factory/performance.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { chevre, person, propertyValue } from '@cinerino/factory';

import { ICheckin } from './reservation/event';

/**
* 検索条件インターフェース
*/
Expand Down Expand Up @@ -61,6 +59,10 @@ export interface IExtension {
* 販売ステータス最終更新時の予約データリスト
*/
reservationsAtLastUpdateDate?: IReservationAtLastupdateDate[];
/**
* 入場済予約リスト
*/
checkedReservations?: { id: string }[];
}

/**
Expand All @@ -72,54 +74,15 @@ 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;
endDate: Date;
eventStatus: chevre.eventStatusType;
additionalProperty?: propertyValue.IPropertyValue<string>[];
ttts_extension?: IExtension;
} & IPerformanceAggregation;
}

0 comments on commit 38228a7

Please sign in to comment.