@chevre/factory 4.268.0-alpha.3 → 4.268.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.
@@ -318,29 +318,32 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
318
318
  * イベント
319
319
  */
320
320
  export declare type IEvent = EventFactory.IEvent<IAttributes>;
321
- export declare type ICreateParams = Pick<IAttributes, 'project' | 'typeOf' | 'doorTime' | 'startDate' | 'endDate' | 'name' | 'eventStatus' | 'additionalProperty'> & {
321
+ export declare type ILocation4create = Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
322
+ export declare type ISuperEvent4create = Pick<ISuperEvent, 'id'>;
323
+ export declare type IOffers4create = Pick<IOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'unacceptedPaymentMethod'> & {
324
+ /**
325
+ * 最大予約数を指定
326
+ */
327
+ eligibleQuantity: Pick<IEligibleQuantity, 'maxValue'>;
328
+ /**
329
+ * 興行IDと座席有無を指定
330
+ */
331
+ itemOffered: Pick<IItemOffered, 'id' | 'serviceOutput'>;
332
+ /**
333
+ * 販売者IDを指定
334
+ */
335
+ seller: Pick<ISeller, 'id'>;
336
+ };
337
+ export declare type ICreateParams = Pick<IAttributes, 'project' | 'typeOf' | 'doorTime' | 'startDate' | 'endDate' | 'eventStatus' | 'additionalProperty'> & {
322
338
  /**
323
339
  * ルームコードとキャパシティを指定
324
340
  */
325
- location: Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
341
+ location: ILocation4create;
326
342
  /**
327
343
  * 施設コンテンツIDを指定
328
344
  */
329
- superEvent: Pick<ISuperEvent, 'id'>;
330
- offers: Pick<IOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'unacceptedPaymentMethod'> & {
331
- /**
332
- * 最大予約数を指定
333
- */
334
- eligibleQuantity: Pick<IEligibleQuantity, 'maxValue'>;
335
- /**
336
- * 興行IDと座席有無を指定
337
- */
338
- itemOffered: Pick<IItemOffered, 'id' | 'serviceOutput'>;
339
- /**
340
- * 販売者IDを指定
341
- */
342
- seller: Pick<ISeller, 'id'>;
343
- };
345
+ superEvent: ISuperEvent4create;
346
+ offers: IOffers4create;
344
347
  };
345
348
  /**
346
349
  * ソート条件
@@ -371,8 +374,32 @@ export interface IOfferSearchConditions {
371
374
  * イベント検索条件
372
375
  */
373
376
  export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.ScreeningEvent> {
377
+ location?: {
378
+ /**
379
+ * ルームコード
380
+ */
381
+ branchCode?: {
382
+ $eq?: string;
383
+ };
384
+ };
374
385
  /**
375
386
  * 販売情報
376
387
  */
377
388
  offers?: IOfferSearchConditions;
389
+ superEvent?: {
390
+ ids?: string[];
391
+ location?: {
392
+ id?: {
393
+ $eq?: string;
394
+ };
395
+ };
396
+ /**
397
+ * 施設コンテンツの施設コードリスト
398
+ */
399
+ locationBranchCodes?: string[];
400
+ /**
401
+ * 施設コンテンツのコンテンツコードリスト
402
+ */
403
+ workPerformedIdentifiers?: string[];
404
+ };
378
405
  }
@@ -144,7 +144,15 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
144
144
  * 施設コンテンツ
145
145
  */
146
146
  export declare type IEvent = EventFactory.IEvent<IAttributes>;
147
- export declare type ICreateParams = IAttributes;
147
+ export declare type ICreateParams = Omit<IAttributes, 'location' | 'workPerformed' | 'coaInfo' | 'organizer' | 'duration' | 'videoFormat' | 'alternativeHeadline'> & {
148
+ location: {
149
+ id: string;
150
+ };
151
+ workPerformed: {
152
+ identifier: string;
153
+ };
154
+ videoFormat: IVideoFormat[];
155
+ };
148
156
  /**
149
157
  * ソート条件
150
158
  */
@@ -154,6 +162,21 @@ export declare type ISortOrder = EventFactory.ISortOrder;
154
162
  */
155
163
  export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.ScreeningEventSeries> {
156
164
  sort?: ISortOrder;
165
+ location?: {
166
+ branchCode?: {
167
+ $eq?: string;
168
+ };
169
+ /**
170
+ * 施設コードリスト
171
+ */
172
+ branchCodes?: string[];
173
+ /**
174
+ * 施設ID
175
+ */
176
+ id?: {
177
+ $eq?: string;
178
+ };
179
+ };
157
180
  videoFormat?: {
158
181
  typeOf?: {
159
182
  $eq?: string;
package/lib/event.d.ts CHANGED
@@ -142,31 +142,6 @@ export interface ISearchConditions<T extends EventType> {
142
142
  * イベントステータス
143
143
  */
144
144
  eventStatuses?: EventStatusType[];
145
- location?: {
146
- branchCode?: {
147
- $eq?: string;
148
- };
149
- /**
150
- * 場所の識別子リスト
151
- */
152
- branchCodes?: string[];
153
- };
154
- superEvent?: {
155
- ids?: string[];
156
- location?: {
157
- id?: {
158
- $eq?: string;
159
- };
160
- };
161
- /**
162
- * 親イベント(施設コンテンツ)が実施される場所の識別子リスト
163
- */
164
- locationBranchCodes?: string[];
165
- /**
166
- * イベントで上演されるコンテンツコードリスト
167
- */
168
- workPerformedIdentifiers?: string[];
169
- };
170
145
  hasOfferCatalog?: {
171
146
  id?: {
172
147
  $eq?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.268.0-alpha.3",
3
+ "version": "4.268.0-alpha.5",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",