@chevre/factory 5.0.0-alpha.2 → 5.0.0-alpha.3

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.
@@ -120,7 +120,20 @@ export interface IOrganizer {
120
120
  /**
121
121
  * イベント属性
122
122
  */
123
- export interface IAttributes extends Pick<EventFactory.IAttributes<EventType>, 'maximumPhysicalAttendeeCapacity' | 'additionalProperty' | 'project' | 'identifier' | 'description' | 'eventStatus' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'location' | 'name' | 'doorTime' | 'endDate' | 'startDate' | 'typeOf'> {
123
+ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType>, 'additionalProperty' | 'project' | 'identifier' | 'description' | 'eventStatus' | 'name' | 'typeOf'> {
124
+ /**
125
+ * 予約集計結果としてのキャパシティ
126
+ */
127
+ maximumAttendeeCapacity?: number;
128
+ /**
129
+ * イベント固有のキャパシティ
130
+ * 施設のキャパシティに依存しない場合に使用
131
+ */
132
+ maximumPhysicalAttendeeCapacity?: number;
133
+ /**
134
+ * 残り収容人数
135
+ */
136
+ remainingAttendeeCapacity?: number;
124
137
  /**
125
138
  * ルーム
126
139
  */
@@ -1,6 +1,6 @@
1
1
  import type * as COA from '@motionpicture/coa-service';
2
2
  import * as EventFactory from '../event';
3
- import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
3
+ import { IEvent as IEventSeries, IUnacceptedPaymentMethodType } from '../event/screeningEventSeries';
4
4
  import { EventType } from '../eventType';
5
5
  import { OfferType } from '../offerType';
6
6
  import { PlaceType } from '../placeType';
@@ -65,7 +65,7 @@ export interface IOffer {
65
65
  * オファー供給サービス
66
66
  */
67
67
  offeredThrough?: IOfferedThrough;
68
- unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
68
+ unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
69
69
  seller: ISeller;
70
70
  /**
71
71
  * プロダクトオファーコレクションコード
@@ -122,9 +122,11 @@ export type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
122
122
  */
123
123
  usePoint: number;
124
124
  };
125
- export type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
126
125
  export import ILocation = AnyEventFactory.ILocation;
127
- export type ISuperEvent = Pick<ScreeningEventSeriesFactory.IEvent, 'typeOf' | 'id' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'startDate' | 'endDate' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'>;
126
+ export type ISuperEvent = Pick<IEventSeries, 'typeOf' | 'id' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
127
+ startDate?: Date;
128
+ endDate?: Date;
129
+ };
128
130
  export import IName = AnyEventFactory.IName;
129
131
  /**
130
132
  * イベント属性
@@ -6,6 +6,7 @@ import { ILanguage } from '../language';
6
6
  import { IMultilingualString } from '../multilingualString';
7
7
  import { OfferType } from '../offerType';
8
8
  import { PlaceType } from '../placeType';
9
+ export type IUnacceptedPaymentMethodType = 'MovieTicket';
9
10
  /**
10
11
  * 施設コンテンツに対するオファー
11
12
  */
@@ -14,7 +15,7 @@ export interface IOffer {
14
15
  /**
15
16
  * 利用不可決済方法区分
16
17
  */
17
- unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
18
+ unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
18
19
  }
19
20
  export interface IVideoFormat {
20
21
  typeOf: string;
@@ -76,7 +77,14 @@ export interface ILocation {
76
77
  */
77
78
  name?: IMultilingualString;
78
79
  }
79
- export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'project' | 'typeOf' | 'identifier' | 'name' | 'alternativeHeadline' | 'description' | 'duration' | 'endDate' | 'eventStatus' | 'headline' | 'location' | 'offers' | 'startDate' | 'additionalProperty'> {
80
+ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'project' | 'typeOf' | 'identifier' | 'name' | 'description' | 'eventStatus' | 'additionalProperty'> {
81
+ alternativeHeadline?: IMultilingualString | string;
82
+ headline?: IMultilingualString;
83
+ /**
84
+ * イベント上演時間
85
+ * ISO 8601 date format
86
+ */
87
+ duration?: string;
80
88
  /**
81
89
  * 字幕利用可能言語
82
90
  */
@@ -115,12 +123,12 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
115
123
  * 終了日時
116
124
  * ISO 8601 date format
117
125
  */
118
- endDate?: Date;
126
+ endDate: Date;
119
127
  /**
120
128
  * 開始日時
121
129
  * ISO 8601 date format
122
130
  */
123
- startDate?: Date;
131
+ startDate: Date;
124
132
  /**
125
133
  * 販売情報
126
134
  */
package/lib/event.d.ts CHANGED
@@ -1,13 +1,9 @@
1
1
  import { EventStatusType } from './eventStatusType';
2
2
  import { EventType } from './eventType';
3
3
  import { IMultilingualString } from './multilingualString';
4
- import * as OfferFactory from './offer';
5
- import * as PlaceFactory from './place';
6
4
  import { IProject } from './project';
7
5
  import { IPropertyValue } from './propertyValue';
8
6
  import { SortType } from './sortType';
9
- export type IUnacceptedPaymentMethodType = 'MovieTicket';
10
- export type IOffer = Pick<OfferFactory.IOffer, 'typeOf' | 'unacceptedPaymentMethod' | 'seller' | 'eligibleQuantity' | 'itemOffered' | 'offeredThrough'>;
11
7
  export interface IAttributes<T extends EventType> {
12
8
  project: Pick<IProject, 'id' | 'typeOf'>;
13
9
  /**
@@ -23,60 +19,15 @@ export interface IAttributes<T extends EventType> {
23
19
  * イベント名称
24
20
  */
25
21
  name: IMultilingualString;
26
- alternateName?: IMultilingualString;
27
- alternativeHeadline?: IMultilingualString | string;
28
22
  /**
29
23
  * イベント説明
30
24
  */
31
25
  description?: IMultilingualString;
32
- /**
33
- * 開場日時
34
- * ISO 8601 date format
35
- */
36
- doorTime?: Date;
37
- /**
38
- * イベント上演時間
39
- * ISO 8601 date format
40
- */
41
- duration?: string;
42
- /**
43
- * 終了日時
44
- * ISO 8601 date format
45
- */
46
- endDate?: Date;
47
26
  /**
48
27
  * イベントステータス
49
28
  * イベントがキャンセル、あるいは、延期された場合に主に使用されます。
50
29
  */
51
30
  eventStatus: EventStatusType;
52
- headline?: IMultilingualString;
53
- /**
54
- * イベントが実行される場所
55
- */
56
- location?: Omit<PlaceFactory.IPlace, 'project'>;
57
- /**
58
- * 予約集計結果としてのキャパシティ
59
- */
60
- maximumAttendeeCapacity?: number;
61
- /**
62
- * イベント固有のキャパシティ
63
- * 施設のキャパシティに依存しない場合に使用
64
- */
65
- maximumPhysicalAttendeeCapacity?: number;
66
- /**
67
- * An offer to provide this item—for example, an offer to sell a product,
68
- * rent the DVD of a movie, perform a service, or give away tickets to an event.
69
- */
70
- offers?: IOffer | IOffer[];
71
- /**
72
- * 残り収容人数
73
- */
74
- remainingAttendeeCapacity?: number;
75
- /**
76
- * 開始日時
77
- * ISO 8601 date format
78
- */
79
- startDate?: Date;
80
31
  additionalProperty?: IPropertyValue<string>[];
81
32
  }
82
33
  /**
@@ -1,4 +1,5 @@
1
- import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent, IWorkPerformed } from '../event/screeningEvent';
1
+ import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
2
+ import { IWorkPerformed } from '../event/screeningEventSeries';
2
3
  import { EventType } from '../eventType';
3
4
  import { IMultilingualString } from '../multilingualString';
4
5
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",