@chevre/factory 11.1.0-alpha.2 → 11.1.0-alpha.4

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,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' | 'soundFormat' | 'typeOf' | 'headline'> & {
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' | 'soundFormat' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
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 '../../event/eventSeries';
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 '../../../event/eventSeries';
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 '../../../event/eventSeries';
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 '../../../event/eventSeries';
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 '../event/eventSeries';
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,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 './eventSeries';
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,9 +8,12 @@ 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';
16
+ import { SortType } from '../sortType';
15
17
  import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, ISellerMakesOffer, IServiceType, ISellerMakesOffer4create } from './anyEvent';
16
18
  export { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, ISellerMakesOffer, IServiceType, IEligibleQuantity, ISellerMakesOffer4create };
17
19
  export interface IServiceOutput {
@@ -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' | 'soundFormat' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
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
  };
@@ -189,7 +191,23 @@ export type IName = IMultilingualString;
189
191
  /**
190
192
  * イベント属性
191
193
  */
192
- interface IAnyEventAttributes extends Pick<IBaseAttributes<EventType.ScreeningEvent>, 'additionalProperty' | 'project' | 'identifier' | 'eventStatus' | 'name' | 'typeOf'> {
194
+ interface IAnyEventAttributes {
195
+ project: Pick<IProject, 'id' | 'typeOf'>;
196
+ /**
197
+ * イベントタイプ
198
+ */
199
+ typeOf: EventType.ScreeningEvent;
200
+ /**
201
+ * イベント識別子
202
+ * プロジェクト内でユニーク必須
203
+ */
204
+ identifier?: string;
205
+ /**
206
+ * イベントステータス
207
+ * イベントがキャンセル、あるいは、延期された場合に主に使用されます。
208
+ */
209
+ eventStatus: EventStatusType;
210
+ additionalProperty?: IPropertyValue<string>[];
193
211
  /**
194
212
  * 予約集計結果としてのキャパシティ
195
213
  */
@@ -264,7 +282,9 @@ export interface IAttributes extends Pick<IAnyEventAttributes, 'maximumPhysicalA
264
282
  /**
265
283
  * イベント
266
284
  */
267
- export type IEvent = IBaseEvent<IAttributes>;
285
+ export type IEvent = IAttributes & {
286
+ id: string;
287
+ };
268
288
  export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod' | 'identifier'> & {
269
289
  /**
270
290
  * 最大予約数を指定
@@ -317,10 +337,6 @@ export type IUpdateByIdentifierParams = Pick<IUpdateByIdParams, 'additionalPrope
317
337
  location?: never;
318
338
  superEvent?: never;
319
339
  };
320
- /**
321
- * ソート条件
322
- */
323
- export { ISortOrder };
324
340
  export interface IOfferSearchConditions {
325
341
  itemOffered?: {
326
342
  id?: {
@@ -361,10 +377,64 @@ export interface IOfferSearchConditions {
361
377
  };
362
378
  };
363
379
  }
380
+ /**
381
+ * ソート条件
382
+ */
383
+ export interface ISortOrder {
384
+ startDate?: SortType;
385
+ }
364
386
  /**
365
387
  * イベント検索条件
366
388
  */
367
- export interface ISearchConditions extends IBaseSearchConditions {
389
+ export interface ISearchConditions {
390
+ limit?: number;
391
+ page?: number;
392
+ sort?: ISortOrder;
393
+ id?: {
394
+ $eq?: string;
395
+ $in?: string[];
396
+ };
397
+ identifiers?: string[];
398
+ organizer?: {
399
+ id?: {
400
+ $eq?: string;
401
+ };
402
+ };
403
+ project?: {
404
+ id?: {
405
+ $eq?: string;
406
+ };
407
+ };
408
+ /**
409
+ * 開催中 from
410
+ * ISO 8601 date format
411
+ */
412
+ inSessionFrom?: Date;
413
+ /**
414
+ * 開催中 through
415
+ * ISO 8601 date format
416
+ */
417
+ inSessionThrough?: Date;
418
+ /**
419
+ * 開始日時 from
420
+ * ISO 8601 date format
421
+ */
422
+ startFrom?: Date;
423
+ /**
424
+ * 開始日時 through
425
+ * ISO 8601 date format
426
+ */
427
+ startThrough?: Date;
428
+ /**
429
+ * 終了日時 from
430
+ * ISO 8601 date format
431
+ */
432
+ endFrom?: Date;
433
+ /**
434
+ * 終了日時 through
435
+ * ISO 8601 date format
436
+ */
437
+ endThrough?: Date;
368
438
  additionalProperty?: {
369
439
  $elemMatch?: {
370
440
  name?: {
@@ -1,11 +1,14 @@
1
1
  import type { COAFactory } from '@coasystems/factory';
2
- import { ICreativeWork as IMovie } from '../creativeWork/movie';
3
- import { IEvent as IBaseEvent, IAttributes as IBaseAttributes, ISearchConditions as IBaseSearchConditions } from '../event';
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';
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 extends Pick<IBaseAttributes<EventType.ScreeningEventSeries>, 'project' | 'typeOf' | 'identifier' | 'name' | 'description' | 'eventStatus' | 'additionalProperty'> {
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 = IBaseEvent<IAttributes>;
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 extends Pick<IBaseSearchConditions, 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'organizer' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough'> {
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?: {
@@ -202,7 +262,6 @@ export interface ISearchConditions extends Pick<IBaseSearchConditions, 'endFrom'
202
262
  };
203
263
  };
204
264
  };
205
- typeOf?: EventType.ScreeningEventSeries;
206
265
  name?: string;
207
266
  location?: {
208
267
  branchCode?: {
@@ -230,13 +289,13 @@ export interface ISearchConditions extends Pick<IBaseSearchConditions, 'endFrom'
230
289
  $in?: string[];
231
290
  };
232
291
  };
233
- workPerformed?: {
234
- /**
235
- * コンテンツコード
236
- */
237
- identifiers?: string[];
238
- version?: {
239
- $eq?: string;
240
- };
241
- };
292
+ workPerformed?: never;
293
+ /**
294
+ * コンテンツコード
295
+ */
296
+ movieIdentifier?: string;
297
+ /**
298
+ * コンテンツバージョン
299
+ */
300
+ movieVersion?: string;
242
301
  }
@@ -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 './event/eventSeries';
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';
@@ -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("./event/eventSeries");
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, IVideoFormat } from '../event/eventSeries';
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' | 'soundFormat' | 'workPerformed' | 'kanaName' | 'alternativeHeadline' | 'description' | 'duration' | 'eventStatus' | 'headline'> & {
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
- videoFormat: IVideoFormat[];
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 '../event/eventSeries';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "11.1.0-alpha.2",
3
+ "version": "11.1.0-alpha.4",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [
@@ -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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });