@chevre/factory 4.174.0-alpha.0 → 4.174.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,11 @@ import * as ReserveActionFactory from '../action/reserve';
2
2
  import * as TransactionFactory from '../assetTransaction';
3
3
  import AssetTransactionType from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
5
- import { IAcceptedTicketOfferWithoutDetail, IEvent as IScreeningEvent } from '../event/screeningEvent';
5
+ import { IAcceptedTicketOfferWithoutDetail } from '../event/screeningEvent';
6
6
  import { IInformParams, IOnReservationStatusChanged } from '../project';
7
7
  import { IPropertyValue } from '../propertyValue';
8
8
  import * as ReservationFactory from '../reservation';
9
- import { IReservation as IEventReservation } from '../reservation/event';
9
+ import { IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor } from '../reservation/event';
10
10
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
11
11
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
12
12
  /**
@@ -83,13 +83,17 @@ export interface IObjectWithoutDetail {
83
83
  };
84
84
  onReservationStatusChanged?: IOnReservationStatusChanged;
85
85
  }
86
- export declare type IReservationFor = IScreeningEvent;
87
- export declare type ISubReservation = IEventReservation;
86
+ export declare type IReservationFor = IEventReservationReservationFor;
87
+ export interface IEventReservationWithAnyReservationFor extends IEventReservation {
88
+ reservationFor: any;
89
+ }
90
+ export interface ISubReservation extends IEventReservationWithAnyReservationFor {
91
+ reservationFor: undefined;
92
+ }
88
93
  /**
89
94
  * 取引対象物インターフェース
90
95
  */
91
96
  export interface IObject extends IReservationPackage {
92
- event?: IReservationFor;
93
97
  reservationFor?: IReservationFor;
94
98
  subReservation?: ISubReservation[];
95
99
  onReservationStatusChanged?: IOnReservationStatusChanged;
@@ -293,6 +293,33 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
293
293
  */
294
294
  usePoint: number;
295
295
  };
296
+ export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
297
+ export interface ILocation {
298
+ project: IProject;
299
+ /**
300
+ * 場所タイプ
301
+ */
302
+ typeOf: PlaceType.ScreeningRoom;
303
+ /**
304
+ * 場所枝番号
305
+ * スクリーンコードに相当
306
+ */
307
+ branchCode: string;
308
+ /**
309
+ * 場所名称
310
+ */
311
+ name?: IMultilingualString;
312
+ alternateName?: IMultilingualString;
313
+ description?: IMultilingualString;
314
+ address?: IMultilingualString;
315
+ /**
316
+ * イベント固有のキャパシティ
317
+ * 施設のキャパシティに依存しない場合に使用
318
+ */
319
+ maximumAttendeeCapacity?: number;
320
+ }
321
+ export declare type ISuperEvent = ScreeningEventSeriesFactory.IEvent;
322
+ export declare type IName = IMultilingualString;
296
323
  /**
297
324
  * 上映イベント属性インターフェース
298
325
  */
@@ -300,38 +327,15 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
300
327
  /**
301
328
  * コンテンツ
302
329
  */
303
- workPerformed?: ScreeningEventSeriesFactory.IWorkPerformed;
330
+ workPerformed?: IWorkPerformed;
304
331
  /**
305
332
  * 上映場所
306
333
  */
307
- location: {
308
- project: IProject;
309
- /**
310
- * 場所タイプ
311
- */
312
- typeOf: PlaceType.ScreeningRoom;
313
- /**
314
- * 場所枝番号
315
- * スクリーンコードに相当
316
- */
317
- branchCode: string;
318
- /**
319
- * 場所名称
320
- */
321
- name?: IMultilingualString;
322
- alternateName?: IMultilingualString;
323
- description?: IMultilingualString;
324
- address?: IMultilingualString;
325
- /**
326
- * イベント固有のキャパシティ
327
- * 施設のキャパシティに依存しない場合に使用
328
- */
329
- maximumAttendeeCapacity?: number;
330
- };
334
+ location: ILocation;
331
335
  /**
332
336
  * イベント名称
333
337
  */
334
- name: IMultilingualString;
338
+ name: IName;
335
339
  /**
336
340
  * 開場日時
337
341
  * ISO 8601 date format
@@ -351,7 +355,7 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
351
355
  * 親イベント
352
356
  * 施設コンテンツに相当
353
357
  */
354
- superEvent: ScreeningEventSeriesFactory.IEvent;
358
+ superEvent: ISuperEvent;
355
359
  /**
356
360
  * 販売情報
357
361
  */
@@ -1,12 +1,35 @@
1
- import { IEvent as IScreeningEvent } from '../event/screeningEvent';
1
+ import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent, IWorkPerformed } from '../event/screeningEvent';
2
+ import EventStatusType from '../eventStatusType';
2
3
  import EventType from '../eventType';
3
4
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
4
5
  import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
5
6
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
6
7
  import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
8
+ import { IProject } from '../project';
7
9
  import * as ReservationFactory from '../reservation';
8
10
  import ReservationType from '../reservationType';
9
- export declare type IReservationFor = IScreeningEvent;
11
+ export interface IReservationFor {
12
+ endDate: Date;
13
+ eventStatus: EventStatusType;
14
+ id: string;
15
+ /**
16
+ * COA予約でのみ使用されている
17
+ */
18
+ identifier?: string;
19
+ /**
20
+ * その他COA情報
21
+ * @deprecated 基本的にCinemaSunshineの互換性維持目的であり、そのうち廃止予定
22
+ */
23
+ coaInfo?: ICOAInfo;
24
+ location: IEventLocation;
25
+ name: IEventName;
26
+ project: IProject;
27
+ startDate: Date;
28
+ superEvent: ISuperEvent;
29
+ typeOf: EventType.ScreeningEvent;
30
+ workPerformed?: IWorkPerformed;
31
+ doorTime?: Date;
32
+ }
10
33
  export declare type IPriceComponentSpecification = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceSpecification;
11
34
  export declare type IPriceSpecification = ICompoundPriceSpecification<IPriceComponentSpecification>;
12
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.174.0-alpha.0",
3
+ "version": "4.174.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",