@chevre/factory 5.4.0-alpha.0 → 5.4.0-alpha.2
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.
|
@@ -8,15 +8,23 @@ import { OfferType } from '../offerType';
|
|
|
8
8
|
import { PlaceType } from '../placeType';
|
|
9
9
|
export type IUnacceptedPaymentMethodType = 'MovieTicket';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 施設コンテンツに対する単一オファー
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface ISingleOffer {
|
|
14
14
|
typeOf: OfferType.Offer;
|
|
15
15
|
/**
|
|
16
16
|
* 利用不可決済方法区分
|
|
17
17
|
*/
|
|
18
18
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* 施設コンテンツに対する集約オファー
|
|
22
|
+
* 対応決済方法は別リポジトリで管理される
|
|
23
|
+
*/
|
|
24
|
+
export interface IAggregateOffer {
|
|
25
|
+
typeOf: OfferType.AggregateOffer;
|
|
26
|
+
unacceptedPaymentMethod?: never;
|
|
27
|
+
}
|
|
20
28
|
export interface IVideoFormat {
|
|
21
29
|
typeOf: string;
|
|
22
30
|
name: string;
|
|
@@ -132,7 +140,7 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
132
140
|
/**
|
|
133
141
|
* 販売情報
|
|
134
142
|
*/
|
|
135
|
-
offers?:
|
|
143
|
+
offers?: ISingleOffer | IAggregateOffer;
|
|
136
144
|
/**
|
|
137
145
|
* その他COA情報
|
|
138
146
|
*/
|
|
@@ -142,6 +150,14 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
142
150
|
* 施設コンテンツ
|
|
143
151
|
*/
|
|
144
152
|
export type IEvent = EventFactory.IEvent<IAttributes>;
|
|
153
|
+
export type IOffers4create = Pick<ISingleOffer, 'unacceptedPaymentMethod'> & {
|
|
154
|
+
typeOf?: never;
|
|
155
|
+
} | Pick<IAggregateOffer, 'typeOf'> & {
|
|
156
|
+
unacceptedPaymentMethod?: never;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* 施設コンテンツ作成パラメータ
|
|
160
|
+
*/
|
|
145
161
|
export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | 'endDate' | 'headline' | 'startDate' | 'additionalProperty' | 'kanaName' | 'eventStatus' | 'description'> & {
|
|
146
162
|
subtitleLanguage?: Pick<ILanguage, 'name'>;
|
|
147
163
|
dubLanguage?: Pick<ILanguage, 'name'>;
|
|
@@ -151,7 +167,7 @@ export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | '
|
|
|
151
167
|
*/
|
|
152
168
|
id: string;
|
|
153
169
|
};
|
|
154
|
-
offers?:
|
|
170
|
+
offers?: IOffers4create;
|
|
155
171
|
workPerformed: {
|
|
156
172
|
/**
|
|
157
173
|
* コンテンツコード
|