@chevre/factory 11.1.0-alpha.3 → 11.1.0-alpha.5
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.
- package/lib/chevre/acceptedOffer.d.ts +2 -2
- package/lib/chevre/action/update/delete.d.ts +1 -1
- package/lib/chevre/action/update/update/object.d.ts +1 -1
- package/lib/chevre/action/update/update/result.d.ts +1 -1
- package/lib/chevre/action/update/update/targetCollection.d.ts +1 -1
- package/lib/chevre/assetTransaction/reserve.d.ts +1 -1
- package/lib/chevre/event/anyEvent.d.ts +0 -5
- package/lib/chevre/event/screeningEvent.d.ts +90 -35
- package/lib/chevre/event/sellerMakesOffer.d.ts +7 -6
- package/lib/chevre/{event/eventSeries.d.ts → eventSeries.d.ts} +82 -22
- package/lib/chevre/index.d.ts +1 -1
- package/lib/chevre/index.js +1 -1
- package/lib/chevre/notification/eventSeries.d.ts +10 -3
- package/lib/chevre/reservation/event.d.ts +1 -2
- package/package.json +1 -1
- package/lib/chevre/event.d.ts +0 -94
- package/lib/chevre/event.js +0 -2
- /package/lib/chevre/{event/eventSeries.js → eventSeries.js} +0 -0
|
@@ -8,7 +8,7 @@ import { IPropertyValue } from './propertyValue';
|
|
|
8
8
|
import { IReservation as IRawReservation, IReservedTicket as IRawReservedTicket } from './reservation/event';
|
|
9
9
|
import { Identifier } from './service/webAPI';
|
|
10
10
|
export type IWorkPerformed = Pick<IOptimizedWorkPerformedLegacy, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
11
|
-
export type ISuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | '
|
|
11
|
+
export type ISuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'typeOf' | 'headline'> & {
|
|
12
12
|
workPerformed: IWorkPerformed;
|
|
13
13
|
identifier?: never;
|
|
14
14
|
alternativeHeadline?: never;
|
|
@@ -18,7 +18,7 @@ export type ISuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | '
|
|
|
18
18
|
/**
|
|
19
19
|
* COAの場合の施設コンテンツ
|
|
20
20
|
*/
|
|
21
|
-
export type ICOASuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | '
|
|
21
|
+
export type ICOASuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
22
22
|
workPerformed: IWorkPerformed;
|
|
23
23
|
};
|
|
24
24
|
export type IEventAsReservationFor = Omit<IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IParticipantAsProject, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
import { IEvent as IEventSeries } from '../../
|
|
3
|
+
import { IEvent as IEventSeries } from '../../eventSeries';
|
|
4
4
|
import { IAggregateOffer } from '../../offer/aggregateOffer';
|
|
5
5
|
import { IOfferCatalog } from '../../offerCatalog';
|
|
6
6
|
import { IPlace as IMovieTheater } from '../../place/movieTheater';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
2
|
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
3
|
-
import { IEvent as IEventSeries } from '../../../
|
|
3
|
+
import { IEvent as IEventSeries } from '../../../eventSeries';
|
|
4
4
|
import { EventType } from '../../../eventType';
|
|
5
5
|
import { IOfferCatalog } from '../../../offerCatalog';
|
|
6
6
|
import { IOrder } from '../../../order';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
2
|
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
3
|
-
import { IEvent as IEventSeries } from '../../../
|
|
3
|
+
import { IEvent as IEventSeries } from '../../../eventSeries';
|
|
4
4
|
import { EventType } from '../../../eventType';
|
|
5
5
|
import { IOfferCatalog } from '../../../offerCatalog';
|
|
6
6
|
import { IOrder } from '../../../order';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
2
|
import { IAbout as INoteAbout } from '../../../creativeWork/noteDigitalDocument';
|
|
3
3
|
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
4
|
-
import { IEvent as IEventSeries } from '../../../
|
|
4
|
+
import { IEvent as IEventSeries } from '../../../eventSeries';
|
|
5
5
|
import { EventType } from '../../../eventType';
|
|
6
6
|
import { IOfferCatalog } from '../../../offerCatalog';
|
|
7
7
|
import { OrderType } from '../../../order';
|
|
@@ -2,7 +2,7 @@ import { IInstrument as IReserveActionInstrument } from '../action/reserve';
|
|
|
2
2
|
import { IAgent, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../assetTransaction';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IExtendId } from '../autoGenerated';
|
|
5
|
-
import { IWorkPerformed } from '../
|
|
5
|
+
import { IWorkPerformed } from '../eventSeries';
|
|
6
6
|
import { ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
|
|
7
7
|
import { EventType } from '../eventType';
|
|
8
8
|
import { IMultilingualString } from '../multilingualString';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { IAvailableAtOrFrom, ICategory as IOfferCategory } from '../offer';
|
|
2
2
|
import { OfferType } from '../offerType';
|
|
3
3
|
import { IServiceType as IProductServiceType } from '../product';
|
|
4
|
-
import { ISellerMakesOffer } from './sellerMakesOffer';
|
|
5
|
-
export { ISellerMakesOffer };
|
|
6
4
|
/**
|
|
7
5
|
* 予約集計
|
|
8
6
|
*/
|
|
@@ -39,6 +37,3 @@ export type IServiceType = IProductServiceType & {
|
|
|
39
37
|
id?: string;
|
|
40
38
|
};
|
|
41
39
|
export type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
|
|
42
|
-
export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf' | 'identifier'> & {
|
|
43
|
-
availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
|
|
44
|
-
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { COAFactory } from '@coasystems/factory';
|
|
2
|
-
import { IEvent as IBaseEvent, ISearchConditions as IBaseSearchConditions, ISortOrder, IAttributes as IBaseAttributes } from '../event';
|
|
3
2
|
import { EventStatusType } from '../eventStatusType';
|
|
4
|
-
import { IEvent as IEventSeries, IUnacceptedPaymentMethodType } from '
|
|
3
|
+
import { IEvent as IEventSeries, IUnacceptedPaymentMethodType } from '../eventSeries';
|
|
5
4
|
import { EventType } from '../eventType';
|
|
6
5
|
import { IMultilingualString } from '../multilingualString';
|
|
7
6
|
import { IEligibleQuantity } from '../offer';
|
|
@@ -9,11 +8,15 @@ import { OfferType } from '../offerType';
|
|
|
9
8
|
import { OrganizationType } from '../organizationType';
|
|
10
9
|
import { PlaceType } from '../placeType';
|
|
11
10
|
import { ProductType } from '../product';
|
|
11
|
+
import { IProject } from '../project';
|
|
12
|
+
import { IPropertyValue } from '../propertyValue';
|
|
12
13
|
import { TicketType } from '../reservation';
|
|
13
14
|
import { ReservationType } from '../reservationType';
|
|
14
15
|
import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
|
|
15
|
-
import {
|
|
16
|
-
|
|
16
|
+
import { SortType } from '../sortType';
|
|
17
|
+
import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, IServiceType } from './anyEvent';
|
|
18
|
+
import { ISellerMakesOffer, ISellerMakesOffer4create } from './sellerMakesOffer';
|
|
19
|
+
export { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, IServiceType, IEligibleQuantity, ISellerMakesOffer, ISellerMakesOffer4create };
|
|
17
20
|
export interface IServiceOutput {
|
|
18
21
|
typeOf: ReservationType.EventReservation;
|
|
19
22
|
reservedTicket?: {
|
|
@@ -50,7 +53,6 @@ export interface IItemOffered {
|
|
|
50
53
|
*/
|
|
51
54
|
serviceOutput?: IServiceOutput;
|
|
52
55
|
typeOf: ProductType.EventService;
|
|
53
|
-
availableChannel?: never;
|
|
54
56
|
}
|
|
55
57
|
export type IOfferedThrough = Pick<IWebAPIService<WebAPIIdentifier.Chevre>, 'identifier' | 'typeOf'>;
|
|
56
58
|
export interface ISeller {
|
|
@@ -61,11 +63,14 @@ export interface ISeller {
|
|
|
61
63
|
id: string;
|
|
62
64
|
name?: IMultilingualString;
|
|
63
65
|
/**
|
|
64
|
-
* アプリケーションごとのオファー
|
|
66
|
+
* アプリケーションごとのオファー(max:10)
|
|
65
67
|
*/
|
|
66
68
|
makesOffer: ISellerMakesOffer[];
|
|
67
69
|
}
|
|
68
70
|
export interface ISeller4create {
|
|
71
|
+
/**
|
|
72
|
+
* アプリケーションごとのオファー(max:10)
|
|
73
|
+
*/
|
|
69
74
|
makesOffer: ISellerMakesOffer4create[];
|
|
70
75
|
/**
|
|
71
76
|
* POS以外のアプリケーションの共通設定
|
|
@@ -85,7 +90,6 @@ export interface IOffer {
|
|
|
85
90
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
86
91
|
seller: ISeller;
|
|
87
92
|
itemOffered: IItemOffered;
|
|
88
|
-
identifier?: never;
|
|
89
93
|
}
|
|
90
94
|
/**
|
|
91
95
|
* 拡張可能なイベントオファー
|
|
@@ -101,7 +105,6 @@ export interface IExtensibleEventOffer {
|
|
|
101
105
|
seller: ISeller;
|
|
102
106
|
itemOffered: IItemOffered;
|
|
103
107
|
offeredThrough?: never;
|
|
104
|
-
identifier?: never;
|
|
105
108
|
}
|
|
106
109
|
export type ISeller4COA = Pick<ISeller, 'id' | 'makesOffer' | 'typeOf'>;
|
|
107
110
|
export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
|
|
@@ -114,7 +117,6 @@ export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
|
|
|
114
117
|
availableChannel?: never;
|
|
115
118
|
};
|
|
116
119
|
unacceptedPaymentMethod?: never;
|
|
117
|
-
identifier?: never;
|
|
118
120
|
};
|
|
119
121
|
export type ICOAKubun = COAFactory.master.IKubunNameResult;
|
|
120
122
|
export type ICOAInfo = Pick<COAFactory.master.IScheduleResult, 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'timeEnd' | 'screenCode' | 'trailerTime' | 'nameServiceDay' | 'availableNum' | 'rsvStartDate' | 'rsvEndDate' | 'flgEarlyBooking'> & {
|
|
@@ -150,7 +152,7 @@ export type ICOAOffer = COAFactory.reserve.IUpdReserveTicket & {
|
|
|
150
152
|
*/
|
|
151
153
|
usePoint: number;
|
|
152
154
|
};
|
|
153
|
-
export type ISuperEvent = Pick<IEventSeries, 'typeOf' | 'id' | '
|
|
155
|
+
export type ISuperEvent = Pick<IEventSeries, 'typeOf' | 'id' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
154
156
|
startDate?: Date;
|
|
155
157
|
endDate?: Date;
|
|
156
158
|
};
|
|
@@ -178,18 +180,28 @@ export interface ILocation {
|
|
|
178
180
|
* COAでは値無し
|
|
179
181
|
*/
|
|
180
182
|
address?: IMultilingualString;
|
|
181
|
-
/**
|
|
182
|
-
* maximumPhysicalAttendeeCapacityへ移行
|
|
183
|
-
* 2025-08-24時点で、まだ実態としては属性が残っている
|
|
184
|
-
* 2025-08-30: 値をunset
|
|
185
|
-
*/
|
|
186
|
-
maximumAttendeeCapacity?: never;
|
|
187
183
|
}
|
|
188
184
|
export type IName = IMultilingualString;
|
|
189
185
|
/**
|
|
190
186
|
* イベント属性
|
|
191
187
|
*/
|
|
192
|
-
interface IAnyEventAttributes
|
|
188
|
+
interface IAnyEventAttributes {
|
|
189
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
190
|
+
/**
|
|
191
|
+
* イベントタイプ
|
|
192
|
+
*/
|
|
193
|
+
typeOf: EventType.ScreeningEvent;
|
|
194
|
+
/**
|
|
195
|
+
* イベント識別子
|
|
196
|
+
* プロジェクト内でユニーク必須
|
|
197
|
+
*/
|
|
198
|
+
identifier?: string;
|
|
199
|
+
/**
|
|
200
|
+
* イベントステータス
|
|
201
|
+
* イベントがキャンセル、あるいは、延期された場合に主に使用されます。
|
|
202
|
+
*/
|
|
203
|
+
eventStatus: EventStatusType;
|
|
204
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
193
205
|
/**
|
|
194
206
|
* 予約集計結果としてのキャパシティ
|
|
195
207
|
*/
|
|
@@ -264,8 +276,10 @@ export interface IAttributes extends Pick<IAnyEventAttributes, 'maximumPhysicalA
|
|
|
264
276
|
/**
|
|
265
277
|
* イベント
|
|
266
278
|
*/
|
|
267
|
-
export type IEvent =
|
|
268
|
-
|
|
279
|
+
export type IEvent = IAttributes & {
|
|
280
|
+
id: string;
|
|
281
|
+
};
|
|
282
|
+
export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
|
|
269
283
|
/**
|
|
270
284
|
* 最大予約数を指定
|
|
271
285
|
*/
|
|
@@ -280,24 +294,18 @@ export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod' | 'identifie
|
|
|
280
294
|
seller: ISeller4create;
|
|
281
295
|
};
|
|
282
296
|
export type ICreateParams = Pick<IAttributes, 'doorTime' | 'startDate' | 'endDate' | 'eventStatus' | 'additionalProperty' | 'identifier' | 'maximumPhysicalAttendeeCapacity'> & {
|
|
283
|
-
location?: never;
|
|
284
|
-
superEvent?: never;
|
|
285
297
|
offers: IOffers4create;
|
|
286
298
|
};
|
|
287
|
-
export type IOffer4update = Pick<IOffers4create, 'eligibleQuantity' | '
|
|
299
|
+
export type IOffer4update = Pick<IOffers4create, 'eligibleQuantity' | 'unacceptedPaymentMethod'> & {
|
|
288
300
|
/**
|
|
289
301
|
* 興行IDを指定
|
|
290
302
|
*/
|
|
291
|
-
itemOffered: Pick<IItemOffered, 'id'> & {
|
|
292
|
-
serviceOutput?: never;
|
|
293
|
-
};
|
|
294
|
-
seller?: never;
|
|
303
|
+
itemOffered: Pick<IItemOffered, 'id'> & {};
|
|
295
304
|
};
|
|
296
305
|
/**
|
|
297
306
|
* 単一イベント編集パラメータ
|
|
298
307
|
*/
|
|
299
308
|
export type IUpdateByIdParams = Pick<ICreateParams, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'startDate' | 'maximumPhysicalAttendeeCapacity'> & {
|
|
300
|
-
location?: never;
|
|
301
309
|
offers: IOffer4update;
|
|
302
310
|
};
|
|
303
311
|
/**
|
|
@@ -314,19 +322,12 @@ export type IUpdateByIdentifierParams = Pick<IUpdateByIdParams, 'additionalPrope
|
|
|
314
322
|
*/
|
|
315
323
|
seller: Pick<ISeller4create, 'makesOffer'>;
|
|
316
324
|
};
|
|
317
|
-
location?: never;
|
|
318
|
-
superEvent?: never;
|
|
319
325
|
};
|
|
320
|
-
/**
|
|
321
|
-
* ソート条件
|
|
322
|
-
*/
|
|
323
|
-
export { ISortOrder };
|
|
324
326
|
export interface IOfferSearchConditions {
|
|
325
327
|
itemOffered?: {
|
|
326
328
|
id?: {
|
|
327
329
|
$in?: string[];
|
|
328
330
|
};
|
|
329
|
-
serviceType?: never;
|
|
330
331
|
serviceOutput?: {
|
|
331
332
|
reservedTicket?: {
|
|
332
333
|
ticketedSeat?: {
|
|
@@ -361,10 +362,64 @@ export interface IOfferSearchConditions {
|
|
|
361
362
|
};
|
|
362
363
|
};
|
|
363
364
|
}
|
|
365
|
+
/**
|
|
366
|
+
* ソート条件
|
|
367
|
+
*/
|
|
368
|
+
export interface ISortOrder {
|
|
369
|
+
startDate?: SortType;
|
|
370
|
+
}
|
|
364
371
|
/**
|
|
365
372
|
* イベント検索条件
|
|
366
373
|
*/
|
|
367
|
-
export interface ISearchConditions
|
|
374
|
+
export interface ISearchConditions {
|
|
375
|
+
limit?: number;
|
|
376
|
+
page?: number;
|
|
377
|
+
sort?: ISortOrder;
|
|
378
|
+
id?: {
|
|
379
|
+
$eq?: string;
|
|
380
|
+
$in?: string[];
|
|
381
|
+
};
|
|
382
|
+
identifiers?: string[];
|
|
383
|
+
organizer?: {
|
|
384
|
+
id?: {
|
|
385
|
+
$eq?: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
project?: {
|
|
389
|
+
id?: {
|
|
390
|
+
$eq?: string;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* 開催中 from
|
|
395
|
+
* ISO 8601 date format
|
|
396
|
+
*/
|
|
397
|
+
inSessionFrom?: Date;
|
|
398
|
+
/**
|
|
399
|
+
* 開催中 through
|
|
400
|
+
* ISO 8601 date format
|
|
401
|
+
*/
|
|
402
|
+
inSessionThrough?: Date;
|
|
403
|
+
/**
|
|
404
|
+
* 開始日時 from
|
|
405
|
+
* ISO 8601 date format
|
|
406
|
+
*/
|
|
407
|
+
startFrom?: Date;
|
|
408
|
+
/**
|
|
409
|
+
* 開始日時 through
|
|
410
|
+
* ISO 8601 date format
|
|
411
|
+
*/
|
|
412
|
+
startThrough?: Date;
|
|
413
|
+
/**
|
|
414
|
+
* 終了日時 from
|
|
415
|
+
* ISO 8601 date format
|
|
416
|
+
*/
|
|
417
|
+
endFrom?: Date;
|
|
418
|
+
/**
|
|
419
|
+
* 終了日時 through
|
|
420
|
+
* ISO 8601 date format
|
|
421
|
+
*/
|
|
422
|
+
endThrough?: Date;
|
|
368
423
|
additionalProperty?: {
|
|
369
424
|
$elemMatch?: {
|
|
370
425
|
name?: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { IAvailableAtOrFrom
|
|
1
|
+
import { IAvailableAtOrFrom } from '../offer';
|
|
2
2
|
import { OfferType } from '../offerType';
|
|
3
3
|
type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
|
|
4
4
|
/**
|
|
5
5
|
* イベントに対する単一オファー
|
|
6
6
|
* 利用可能アプリケーションのみ定義
|
|
7
|
+
* 基本的にこれ以上拡張はしない(2026-10-11)
|
|
7
8
|
*/
|
|
8
|
-
interface ISingleEventOffer
|
|
9
|
+
interface ISingleEventOffer {
|
|
9
10
|
typeOf: OfferType.Offer;
|
|
10
11
|
/**
|
|
11
12
|
* いつまで表示可能か
|
|
@@ -24,13 +25,13 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
|
|
|
24
25
|
*/
|
|
25
26
|
validThrough: Date;
|
|
26
27
|
availableAtOrFrom: IOfferAvailableAtOrFrom;
|
|
27
|
-
identifier?: never;
|
|
28
|
-
validForMemberTier?: never;
|
|
29
|
-
offeredBy?: never;
|
|
30
28
|
}
|
|
31
29
|
/**
|
|
32
30
|
* アプリケーションごとのイベントに対するオファー
|
|
33
31
|
* 基本的に有効期間を定義
|
|
34
32
|
*/
|
|
35
33
|
type ISellerMakesOffer = ISingleEventOffer;
|
|
36
|
-
export
|
|
34
|
+
export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf'> & {
|
|
35
|
+
availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
|
|
36
|
+
};
|
|
37
|
+
export { ISellerMakesOffer };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { COAFactory } from '@coasystems/factory';
|
|
2
|
-
import { ICreativeWork as IMovie } from '
|
|
3
|
-
import {
|
|
4
|
-
import { EventType } from '
|
|
5
|
-
import { ILanguage } from '
|
|
6
|
-
import { IMultilingualString } from '
|
|
7
|
-
import { OfferType } from '
|
|
8
|
-
import { PlaceType } from '
|
|
2
|
+
import { ICreativeWork as IMovie } from './creativeWork/movie';
|
|
3
|
+
import { EventStatusType } from './eventStatusType';
|
|
4
|
+
import { EventType } from './eventType';
|
|
5
|
+
import { ILanguage } from './language';
|
|
6
|
+
import { IMultilingualString } from './multilingualString';
|
|
7
|
+
import { OfferType } from './offerType';
|
|
8
|
+
import { PlaceType } from './placeType';
|
|
9
|
+
import { IProject } from './project';
|
|
10
|
+
import { IPropertyValue } from './propertyValue';
|
|
11
|
+
import { SortType } from './sortType';
|
|
9
12
|
export type IUnacceptedPaymentMethodType = 'MovieTicket';
|
|
10
13
|
/**
|
|
11
14
|
* 施設コンテンツに対する単一オファー
|
|
@@ -17,14 +20,6 @@ export interface ISingleOffer {
|
|
|
17
20
|
*/
|
|
18
21
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
19
22
|
}
|
|
20
|
-
export interface IVideoFormat {
|
|
21
|
-
typeOf: string;
|
|
22
|
-
name: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ISoundFormat {
|
|
25
|
-
typeOf: string;
|
|
26
|
-
name: string;
|
|
27
|
-
}
|
|
28
23
|
/**
|
|
29
24
|
* サブイベント
|
|
30
25
|
* 施設コンテンツに所属するScreeningEventの属性など
|
|
@@ -94,7 +89,20 @@ export interface ILocation {
|
|
|
94
89
|
*/
|
|
95
90
|
name?: IMultilingualString;
|
|
96
91
|
}
|
|
97
|
-
export interface IAttributes
|
|
92
|
+
export interface IAttributes {
|
|
93
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
94
|
+
typeOf: EventType.ScreeningEventSeries;
|
|
95
|
+
/**
|
|
96
|
+
* 施設コンテンツ識別子(COAのみ)
|
|
97
|
+
* プロジェクト内でユニーク必須
|
|
98
|
+
*/
|
|
99
|
+
identifier?: string;
|
|
100
|
+
/**
|
|
101
|
+
* イベント説明
|
|
102
|
+
*/
|
|
103
|
+
description?: IMultilingualString;
|
|
104
|
+
eventStatus: EventStatusType.EventScheduled;
|
|
105
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
98
106
|
alternativeHeadline?: IMultilingualString | string;
|
|
99
107
|
headline?: IMultilingualString;
|
|
100
108
|
/**
|
|
@@ -110,10 +118,6 @@ export interface IAttributes extends Pick<IBaseAttributes<EventType.ScreeningEve
|
|
|
110
118
|
* 吹替利用可能言語
|
|
111
119
|
*/
|
|
112
120
|
dubLanguage?: ILanguage;
|
|
113
|
-
/**
|
|
114
|
-
* 音響方式
|
|
115
|
-
*/
|
|
116
|
-
soundFormat?: ISoundFormat[];
|
|
117
121
|
subEvent?: ISubEvent;
|
|
118
122
|
/**
|
|
119
123
|
* コンテンツ
|
|
@@ -154,7 +158,9 @@ export interface IAttributes extends Pick<IBaseAttributes<EventType.ScreeningEve
|
|
|
154
158
|
/**
|
|
155
159
|
* 施設コンテンツ
|
|
156
160
|
*/
|
|
157
|
-
export type IEvent =
|
|
161
|
+
export type IEvent = IAttributes & {
|
|
162
|
+
id: string;
|
|
163
|
+
};
|
|
158
164
|
/**
|
|
159
165
|
* 施設コンテンツ追加時の利用不可決済方法区分指定
|
|
160
166
|
* offerType:AggregateOfferの場合、指定は無視される
|
|
@@ -188,10 +194,64 @@ export type ICreateParams = Pick<IAttributes, 'name' | 'duration' | 'endDate' |
|
|
|
188
194
|
typeOf: string;
|
|
189
195
|
}[];
|
|
190
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
* ソート条件
|
|
199
|
+
*/
|
|
200
|
+
export interface ISortOrder {
|
|
201
|
+
startDate?: SortType;
|
|
202
|
+
}
|
|
191
203
|
/**
|
|
192
204
|
* 検索条件
|
|
193
205
|
*/
|
|
194
|
-
export interface ISearchConditions
|
|
206
|
+
export interface ISearchConditions {
|
|
207
|
+
limit?: number;
|
|
208
|
+
page?: number;
|
|
209
|
+
sort?: ISortOrder;
|
|
210
|
+
id?: {
|
|
211
|
+
$eq?: string;
|
|
212
|
+
$in?: string[];
|
|
213
|
+
};
|
|
214
|
+
identifiers?: string[];
|
|
215
|
+
organizer?: {
|
|
216
|
+
id?: {
|
|
217
|
+
$eq?: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
project?: {
|
|
221
|
+
id?: {
|
|
222
|
+
$eq?: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* 開催中 from
|
|
227
|
+
* ISO 8601 date format
|
|
228
|
+
*/
|
|
229
|
+
inSessionFrom?: Date;
|
|
230
|
+
/**
|
|
231
|
+
* 開催中 through
|
|
232
|
+
* ISO 8601 date format
|
|
233
|
+
*/
|
|
234
|
+
inSessionThrough?: Date;
|
|
235
|
+
/**
|
|
236
|
+
* 開始日時 from
|
|
237
|
+
* ISO 8601 date format
|
|
238
|
+
*/
|
|
239
|
+
startFrom?: Date;
|
|
240
|
+
/**
|
|
241
|
+
* 開始日時 through
|
|
242
|
+
* ISO 8601 date format
|
|
243
|
+
*/
|
|
244
|
+
startThrough?: Date;
|
|
245
|
+
/**
|
|
246
|
+
* 終了日時 from
|
|
247
|
+
* ISO 8601 date format
|
|
248
|
+
*/
|
|
249
|
+
endFrom?: Date;
|
|
250
|
+
/**
|
|
251
|
+
* 終了日時 through
|
|
252
|
+
* ISO 8601 date format
|
|
253
|
+
*/
|
|
254
|
+
endThrough?: Date;
|
|
195
255
|
additionalProperty?: {
|
|
196
256
|
$elemMatch?: {
|
|
197
257
|
name?: {
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ import * as CustomerFactory from './customer';
|
|
|
51
51
|
import * as EncodingFormat from './encodingFormat';
|
|
52
52
|
import * as entryPoint from './entryPoint';
|
|
53
53
|
import * as ScreeningEventFactory from './event/screeningEvent';
|
|
54
|
-
export * as eventSeries from './
|
|
54
|
+
export * as eventSeries from './eventSeries';
|
|
55
55
|
import { EventStatusType } from './eventStatusType';
|
|
56
56
|
import { EventType } from './eventType';
|
|
57
57
|
import * as IAMFactory from './iam';
|
package/lib/chevre/index.js
CHANGED
|
@@ -56,7 +56,7 @@ const EncodingFormat = require("./encodingFormat");
|
|
|
56
56
|
const entryPoint = require("./entryPoint");
|
|
57
57
|
exports.entryPoint = entryPoint;
|
|
58
58
|
const ScreeningEventFactory = require("./event/screeningEvent");
|
|
59
|
-
exports.eventSeries = require("./
|
|
59
|
+
exports.eventSeries = require("./eventSeries");
|
|
60
60
|
const eventStatusType_1 = require("./eventStatusType");
|
|
61
61
|
const eventType_1 = require("./eventType");
|
|
62
62
|
const IAMFactory = require("./iam");
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { IEvent as IEventSeries
|
|
1
|
+
import { IEvent as IEventSeries } from '../eventSeries';
|
|
2
|
+
export interface IVideoFormat {
|
|
3
|
+
typeOf: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
2
6
|
/**
|
|
3
7
|
* 外部への施設コンテンツ通知
|
|
4
8
|
* redefine(2025-11-01~)
|
|
5
9
|
*/
|
|
6
|
-
export type IEventSeriesAsNotification = Pick<IEventSeries, 'project' | 'organizer' | 'typeOf' | 'name' | 'endDate' | 'location' | 'startDate' | 'id' | 'additionalProperty' | 'subtitleLanguage' | 'dubLanguage' | '
|
|
10
|
+
export type IEventSeriesAsNotification = Pick<IEventSeries, 'project' | 'organizer' | 'typeOf' | 'name' | 'endDate' | 'location' | 'startDate' | 'id' | 'additionalProperty' | 'subtitleLanguage' | 'dubLanguage' | 'workPerformed' | 'kanaName' | 'alternativeHeadline' | 'description' | 'duration' | 'eventStatus' | 'headline'> & {
|
|
7
11
|
offers?: never;
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* 上映方式区分リスト
|
|
14
|
+
*/
|
|
15
|
+
videoFormat: IVideoFormat[] | string[];
|
|
9
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ILocation as IEventLocation, ISuperEvent } from '../event/screeningEvent';
|
|
2
|
-
import { IWorkPerformed } from '../
|
|
2
|
+
import { IWorkPerformed } from '../eventSeries';
|
|
3
3
|
import { EventType } from '../eventType';
|
|
4
4
|
import { TicketType, ISeat as IReservationSeat, IReservation as IBaseReservation, IAvailableReservationStatusType, ITicket } from '../reservation';
|
|
5
5
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
@@ -22,7 +22,6 @@ export type IMinimizedSuperEvent = Pick<ISuperEvent, 'id' | 'typeOf'> & {
|
|
|
22
22
|
} & {
|
|
23
23
|
additionalProperty?: never;
|
|
24
24
|
name?: never;
|
|
25
|
-
soundFormat?: never;
|
|
26
25
|
headline?: never;
|
|
27
26
|
};
|
|
28
27
|
export type IMinimizedRoom = Pick<IEventLocation, 'branchCode' | 'typeOf'> & {
|
package/package.json
CHANGED
package/lib/chevre/event.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { EventStatusType } from './eventStatusType';
|
|
2
|
-
import { EventType } from './eventType';
|
|
3
|
-
import { IMultilingualString } from './multilingualString';
|
|
4
|
-
import { IProject } from './project';
|
|
5
|
-
import { IPropertyValue } from './propertyValue';
|
|
6
|
-
import { SortType } from './sortType';
|
|
7
|
-
export interface IAttributes<T extends EventType> {
|
|
8
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
9
|
-
/**
|
|
10
|
-
* イベントタイプ
|
|
11
|
-
*/
|
|
12
|
-
typeOf: T;
|
|
13
|
-
/**
|
|
14
|
-
* イベント識別子
|
|
15
|
-
* プロジェクト内でユニーク必須
|
|
16
|
-
*/
|
|
17
|
-
identifier?: string;
|
|
18
|
-
/**
|
|
19
|
-
* イベント名称
|
|
20
|
-
*/
|
|
21
|
-
name: IMultilingualString;
|
|
22
|
-
/**
|
|
23
|
-
* イベント説明
|
|
24
|
-
*/
|
|
25
|
-
description?: IMultilingualString;
|
|
26
|
-
/**
|
|
27
|
-
* イベントステータス
|
|
28
|
-
* イベントがキャンセル、あるいは、延期された場合に主に使用されます。
|
|
29
|
-
*/
|
|
30
|
-
eventStatus: EventStatusType;
|
|
31
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* イベント
|
|
35
|
-
*/
|
|
36
|
-
export type IEvent<T extends IAttributes<EventType>> = T & {
|
|
37
|
-
id: string;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* ソート条件
|
|
41
|
-
*/
|
|
42
|
-
export interface ISortOrder {
|
|
43
|
-
startDate?: SortType;
|
|
44
|
-
}
|
|
45
|
-
export interface ISearchConditions {
|
|
46
|
-
limit?: number;
|
|
47
|
-
page?: number;
|
|
48
|
-
sort?: ISortOrder;
|
|
49
|
-
id?: {
|
|
50
|
-
$eq?: string;
|
|
51
|
-
$in?: string[];
|
|
52
|
-
};
|
|
53
|
-
identifiers?: string[];
|
|
54
|
-
organizer?: {
|
|
55
|
-
id?: {
|
|
56
|
-
$eq?: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
project?: {
|
|
60
|
-
id?: {
|
|
61
|
-
$eq?: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* 開催中 from
|
|
66
|
-
* ISO 8601 date format
|
|
67
|
-
*/
|
|
68
|
-
inSessionFrom?: Date;
|
|
69
|
-
/**
|
|
70
|
-
* 開催中 through
|
|
71
|
-
* ISO 8601 date format
|
|
72
|
-
*/
|
|
73
|
-
inSessionThrough?: Date;
|
|
74
|
-
/**
|
|
75
|
-
* 開始日時 from
|
|
76
|
-
* ISO 8601 date format
|
|
77
|
-
*/
|
|
78
|
-
startFrom?: Date;
|
|
79
|
-
/**
|
|
80
|
-
* 開始日時 through
|
|
81
|
-
* ISO 8601 date format
|
|
82
|
-
*/
|
|
83
|
-
startThrough?: Date;
|
|
84
|
-
/**
|
|
85
|
-
* 終了日時 from
|
|
86
|
-
* ISO 8601 date format
|
|
87
|
-
*/
|
|
88
|
-
endFrom?: Date;
|
|
89
|
-
/**
|
|
90
|
-
* 終了日時 through
|
|
91
|
-
* ISO 8601 date format
|
|
92
|
-
*/
|
|
93
|
-
endThrough?: Date;
|
|
94
|
-
}
|
package/lib/chevre/event.js
DELETED
|
File without changes
|