@chevre/factory 4.268.0-alpha.1 → 4.268.0-alpha.3

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.
@@ -110,6 +110,7 @@ export interface ISeller {
110
110
  id: string;
111
111
  name?: string | IMultilingualString;
112
112
  }
113
+ export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
113
114
  /**
114
115
  * イベントに対するオファー
115
116
  */
@@ -125,7 +126,7 @@ export interface IOffer {
125
126
  * 情報提供開始日時
126
127
  */
127
128
  availabilityStarts: Date;
128
- eligibleQuantity: IQuantitativeValue<UnitCode.C62>;
129
+ eligibleQuantity: IEligibleQuantity;
129
130
  itemOffered: IItemOffered;
130
131
  /**
131
132
  * オファー供給サービス
@@ -317,6 +318,30 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
317
318
  * イベント
318
319
  */
319
320
  export declare type IEvent = EventFactory.IEvent<IAttributes>;
321
+ export declare type ICreateParams = Pick<IAttributes, 'project' | 'typeOf' | 'doorTime' | 'startDate' | 'endDate' | 'name' | 'eventStatus' | 'additionalProperty'> & {
322
+ /**
323
+ * ルームコードとキャパシティを指定
324
+ */
325
+ location: Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
326
+ /**
327
+ * 施設コンテンツIDを指定
328
+ */
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
+ };
344
+ };
320
345
  /**
321
346
  * ソート条件
322
347
  */
@@ -144,6 +144,7 @@ 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
148
  /**
148
149
  * ソート条件
149
150
  */
package/lib/index.d.ts CHANGED
@@ -54,7 +54,6 @@ import * as WebApplicationFactory from './creativeWork/softwareApplication/webAp
54
54
  import { CreativeWorkType } from './creativeWorkType';
55
55
  import * as CustomerFactory from './customer';
56
56
  import * as EncodingFormat from './encodingFormat';
57
- import * as EventFactory from './event';
58
57
  import * as ScreeningEventFactory from './event/screeningEvent';
59
58
  import * as ScreeningEventSeriesFactory from './event/screeningEventSeries';
60
59
  import { EventStatusType } from './eventStatusType';
@@ -293,9 +292,10 @@ export declare namespace creativeWork {
293
292
  export import creativeWorkType = CreativeWorkType;
294
293
  export import customer = CustomerFactory;
295
294
  export declare namespace event {
296
- type ISearchConditions<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ISearchConditions : EventFactory.ISearchConditions<T>;
297
- type IAttributes<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IAttributes : EventFactory.IAttributes<T>;
298
- type IEvent<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IEvent : EventFactory.IEvent<EventFactory.IAttributes<T>>;
295
+ type ISearchConditions<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ISearchConditions : never;
296
+ type IAttributes<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IAttributes : never;
297
+ type IEvent<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IEvent : never;
298
+ type ICreateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : never;
299
299
  export import screeningEvent = ScreeningEventFactory;
300
300
  export import screeningEventSeries = ScreeningEventSeriesFactory;
301
301
  }
package/lib/product.d.ts CHANGED
@@ -136,6 +136,7 @@ export interface ISearchConditions {
136
136
  };
137
137
  id?: {
138
138
  $eq?: string;
139
+ $in?: string[];
139
140
  };
140
141
  name?: {
141
142
  $regex?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.268.0-alpha.1",
3
+ "version": "4.268.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",