@chevre/factory 4.279.0 → 4.280.0-alpha.1

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.
@@ -317,8 +317,8 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
317
317
  export declare type IEvent = EventFactory.IEvent<IAttributes>;
318
318
  export declare type ILocation4create = Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
319
319
  export declare type ISuperEvent4create = Pick<ISuperEvent, 'id'>;
320
- export declare type ISeller4create = Pick<ISeller, 'id' | 'makesOffer'>;
321
- export declare type IOffers4create = Pick<IOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'unacceptedPaymentMethod'> & {
320
+ export declare type ISeller4create = Pick<ISeller, 'makesOffer'>;
321
+ export declare type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
322
322
  /**
323
323
  * 最大予約数を指定
324
324
  */
@@ -332,6 +332,20 @@ export declare type IOffers4create = Pick<IOffer, 'availabilityEnds' | 'availabi
332
332
  */
333
333
  seller: ISeller4create;
334
334
  };
335
+ export declare type IOffers4update = Pick<IOffer, 'unacceptedPaymentMethod'> & {
336
+ /**
337
+ * 最大予約数を指定
338
+ */
339
+ eligibleQuantity: Pick<IEligibleQuantity, 'maxValue'>;
340
+ /**
341
+ * 興行IDを指定
342
+ */
343
+ itemOffered: Pick<IItemOffered, 'id'>;
344
+ /**
345
+ * 販売者IDとアプリケーション設定
346
+ */
347
+ seller: ISeller4create;
348
+ };
335
349
  export declare type ICreateParams = Pick<IAttributes, 'project' | 'typeOf' | 'doorTime' | 'startDate' | 'endDate' | 'eventStatus' | 'additionalProperty'> & {
336
350
  /**
337
351
  * ルームコードとキャパシティを指定
@@ -343,6 +357,19 @@ export declare type ICreateParams = Pick<IAttributes, 'project' | 'typeOf' | 'do
343
357
  superEvent: ISuperEvent4create;
344
358
  offers: IOffers4create;
345
359
  };
360
+ /**
361
+ * イベント更新パラメータ
362
+ */
363
+ export declare type IUpdateParams = Pick<IAttributes, 'project' | 'typeOf' | 'doorTime' | 'startDate' | 'endDate' | 'eventStatus' | 'additionalProperty'> & {
364
+ /**
365
+ * キャパシティを指定
366
+ */
367
+ location: Pick<ILocation4create, 'maximumAttendeeCapacity'>;
368
+ /**
369
+ * 施設コンテンツIDを指定
370
+ */
371
+ offers: IOffers4update;
372
+ };
346
373
  /**
347
374
  * ソート条件
348
375
  */
package/lib/index.d.ts CHANGED
@@ -298,6 +298,7 @@ export declare namespace event {
298
298
  type IAttributes<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IAttributes : never;
299
299
  type IEvent<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IEvent : never;
300
300
  type ICreateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : never;
301
+ type IUpdateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IUpdateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : never;
301
302
  export import screeningEvent = ScreeningEventFactory;
302
303
  export import screeningEventSeries = ScreeningEventSeriesFactory;
303
304
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.279.0",
3
+ "version": "4.280.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",