@chevre/factory 4.337.0 → 4.339.0

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.
@@ -5,6 +5,7 @@ import { IMultilingualString } from './multilingualString';
5
5
  import { IOfferCatalog } from './offerCatalog';
6
6
  import { OfferType } from './offerType';
7
7
  import { OrderType } from './order';
8
+ import { PlaceType } from './placeType';
8
9
  import { IProject } from './project';
9
10
  import { PropertyValueType } from './propertyValue';
10
11
  import { ISeller } from './seller';
@@ -13,7 +14,7 @@ import { IThing } from './thing';
13
14
  export type CategoryCodeType = ICategoryCode['typeOf'];
14
15
  export type OfferCatalogType = IOfferCatalog['typeOf'];
15
16
  export type SellerType = ISeller['typeOf'];
16
- export type CategorySetIdentifier = CategoryCodeType | CreativeWorkType.Movie | EventType.ScreeningEvent | EventType.ScreeningEventSeries | PropertyValueType.LocationFeatureSpecification | OfferCatalogType | OfferType.Offer | OrderType.Order | SellerType;
17
+ export type CategorySetIdentifier = CategoryCodeType | CreativeWorkType.Movie | EventType.ScreeningEvent | EventType.ScreeningEventSeries | PropertyValueType.LocationFeatureSpecification | OfferCatalogType | OfferType.Offer | OrderType.Order | PlaceType.MovieTheater | SellerType;
17
18
  /**
18
19
  * {@link https://schema.org/CategoryCodeSet}
19
20
  */
@@ -17,7 +17,7 @@ export interface IAvailabilityEndsGraceTime extends Pick<IQuantitativeValue<Unit
17
17
  /**
18
18
  * 施設に対するオファー
19
19
  */
20
- export interface IOffer extends Pick<OfferFactory.IOffer, 'priceCurrency' | 'project' | 'typeOf' | 'eligibleQuantity'> {
20
+ export interface IOffer extends Pick<OfferFactory.IOffer, 'typeOf' | 'eligibleQuantity'> {
21
21
  /**
22
22
  * イベント開始前の販売猶予期間
23
23
  */
@@ -69,7 +69,7 @@ export type IParentOrganization = Pick<ISeller, 'typeOf' | 'id'> & {
69
69
  /**
70
70
  * 施設
71
71
  */
72
- export interface IPlace extends Pick<PlaceFactory.IPlace, 'additionalProperty' | 'branchCode' | 'name' | 'project' | 'telephone' | 'typeOf'> {
72
+ export interface IPlace extends Pick<PlaceFactory.IPlace, 'additionalProperty' | 'branchCode' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'> {
73
73
  typeOf: PlaceType.MovieTheater;
74
74
  id: string;
75
75
  /**
@@ -11,15 +11,16 @@ import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpec
11
11
  export type IPriceComponent = ICategoryCodeChargeSpecification;
12
12
  /**
13
13
  * 座席に対する価格仕様
14
- * 最適化(2022-11-15~)
15
14
  */
16
15
  export type IPriceSpecification = Pick<ICompoundPriceSpecification<IPriceComponent>, 'typeOf' | 'priceComponent'>;
17
16
  /**
18
- * 座席オファー
19
- * 最適化(2022-11-15~)
17
+ * 座席に対するオファー
20
18
  */
21
- export interface IOffer extends Pick<OfferFactory.IOffer, 'typeOf'> {
19
+ export interface IOffer extends Pick<OfferFactory.IOffer, 'availability'> {
22
20
  availability: ItemAvailability;
21
+ /**
22
+ * 座席区分加算料金の存在する場合、価格仕様が含まれる
23
+ */
23
24
  priceSpecification?: IPriceSpecification;
24
25
  }
25
26
  /**
@@ -47,7 +48,7 @@ export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' |
47
48
  export interface IPlaceWithOffer extends IPlace {
48
49
  offers?: IOffer[];
49
50
  }
50
- export type IKeyOfProjection = 'typeOf' | 'branchCode' | 'name' | 'seatingType' | 'additionalProperty' | 'containedInPlace.containedInPlace';
51
+ export type IKeyOfProjection = 'typeOf' | 'branchCode' | 'name' | 'seatingType' | 'additionalProperty' | 'containedInPlace.containedInPlace' | 'containedInPlace.typeOf' | 'containedInPlace.branchCode' | 'containedInPlace.name';
51
52
  export type IProjection = {
52
53
  [key in IKeyOfProjection]?: 0;
53
54
  };
package/lib/place.d.ts CHANGED
@@ -8,7 +8,7 @@ export type IAmenityFeature = ILocationFeatureSpecification;
8
8
  /**
9
9
  * 場所インターフェース
10
10
  */
11
- export interface IPlace extends Pick<IThing, 'identifier' | 'name'> {
11
+ export interface IPlace extends Pick<IThing, 'identifier' | 'name' | 'url'> {
12
12
  project: Pick<IProject, 'id' | 'typeOf'>;
13
13
  typeOf: PlaceType;
14
14
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.337.0",
3
+ "version": "4.339.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",