@chevre/factory 4.289.0-alpha.12 → 4.289.0-alpha.14

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.
@@ -7,13 +7,11 @@ import { OrganizationType } from '../organizationType';
7
7
  import { PlaceType } from '../placeType';
8
8
  import { PriceCurrency } from '../priceCurrency';
9
9
  import { IServiceType as IProductServiceType, ProductType } from '../product';
10
- import { IQuantitativeValue } from '../quantitativeValue';
11
10
  import * as ReservationFactory from '../reservation';
12
11
  import { ReservationType } from '../reservationType';
13
12
  import * as WebAPIFactory from '../service/webAPI';
14
13
  import { IThing } from '../thing';
15
14
  import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
16
- import { UnitCode } from '../unitCode';
17
15
  /**
18
16
  * 予約集計
19
17
  */
@@ -126,7 +124,7 @@ export interface ISeller {
126
124
  name?: IMultilingualString;
127
125
  makesOffer: ISellerMakesOffer[];
128
126
  }
129
- export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
127
+ export import IEligibleQuantity = OfferFactory.IEligibleQuantity;
130
128
  /**
131
129
  * イベントに対するオファー
132
130
  */
package/lib/offer.d.ts CHANGED
@@ -76,6 +76,7 @@ export interface IAddOn {
76
76
  validFrom?: Date;
77
77
  validThrough?: Date;
78
78
  }
79
+ export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
79
80
  /**
80
81
  * offer interface
81
82
  * An offer to transfer some rights to an item or to provide a service
@@ -143,7 +144,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
143
144
  /**
144
145
  * オファーの有効となる数
145
146
  */
146
- eligibleQuantity?: IQuantitativeValue<UnitCode>;
147
+ eligibleQuantity?: IEligibleQuantity;
147
148
  /**
148
149
  * The item being offered.
149
150
  */
package/lib/product.d.ts CHANGED
@@ -12,6 +12,7 @@ import { IPropertyValue } from './propertyValue';
12
12
  import { IQuantitativeValue } from './quantitativeValue';
13
13
  import { SortType } from './sortType';
14
14
  import { IThing } from './thing';
15
+ import { UnitCode } from './unitCode';
15
16
  import * as UnitPriceOfferFactory from './unitPriceOffer';
16
17
  /**
17
18
  * プロダクトタイプ
@@ -252,14 +253,16 @@ export declare type ICategoryCodeChargePriceComponent = Omit<ICategoryCodeCharge
252
253
  export declare type IMovieTicketTypeChargePriceComponent = Omit<IMovieTicketTypeChargeSpecification, 'project'>;
253
254
  export declare type ITicketUnitPriceComponent = Omit<IUnitPriceSpecification, 'project'>;
254
255
  export declare type ITicketPriceComponent = ICategoryCodeChargePriceComponent | IMovieTicketTypeChargePriceComponent | ITicketUnitPriceComponent;
256
+ export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
255
257
  /**
256
258
  * プロダクトオファーの価格仕様
257
259
  */
258
260
  export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
259
261
  /**
260
262
  * プロダクトオファー
263
+ * strict definition(2023-02-24~)
261
264
  */
262
- export interface ITicketOffer extends Omit<IBaseOffer, 'priceSpecification' | 'project'> {
265
+ export interface ITicketOffer extends Pick<IBaseOffer, 'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'addOn' | 'availability' | 'availableAtOrFrom' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
263
266
  identifier: string;
264
267
  priceSpecification: ITicketPriceSpecification;
265
268
  itemOffered?: UnitPriceOfferFactory.IItemOffered;
@@ -220,4 +220,8 @@ export interface ISearchConditions {
220
220
  };
221
221
  };
222
222
  };
223
+ /**
224
+ * 有効期間設定がない、あるいは、有効期間内
225
+ */
226
+ onlyValid?: boolean;
223
227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.289.0-alpha.12",
3
+ "version": "4.289.0-alpha.14",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",