@chevre/factory 4.274.0-alpha.3 → 4.275.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.
@@ -2,12 +2,11 @@ import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
4
4
  import { AssetTransactionType } from '../../../assetTransactionType';
5
- import { ITicketPriceSpecification } from '../../../event/screeningEvent';
6
5
  import { IOffer } from '../../../offer';
7
6
  import * as OrderFactory from '../../../order';
8
7
  import { IPermit } from '../../../permit';
9
8
  import { PriceCurrency } from '../../../priceCurrency';
10
- import { IProduct, IServiceOutput as IProductServiceOutput } from '../../../product';
9
+ import { IProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
11
10
  import { ISeller } from '../../../seller';
12
11
  import { TransactionType } from '../../../transactionType';
13
12
  import * as AuthorizeActionFactory from '../../authorize';
@@ -8,6 +8,7 @@ import * as ScreeningEventFactory from '../../../event/screeningEvent';
8
8
  import * as OfferFactory from '../../../offer';
9
9
  import * as OrderFactory from '../../../order';
10
10
  import { PriceCurrency } from '../../../priceCurrency';
11
+ import { ITicketOffer, ITicketPriceSpecification } from '../../../product';
11
12
  import * as WebAPIFactory from '../../../service/webAPI';
12
13
  import { TransactionType } from '../../../transactionType';
13
14
  import * as AuthorizeActionFactory from '../../authorize';
@@ -49,7 +50,7 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
49
50
  responseBody: IResponseBody<T>;
50
51
  acceptedOffers?: IResultAcceptedOffer[];
51
52
  }
52
- export declare type IAcceptedOfferPriceSpecification = ScreeningEventFactory.ITicketPriceSpecification & {
53
+ export declare type IAcceptedOfferPriceSpecification = ITicketPriceSpecification & {
53
54
  /**
54
55
  * 複合価格仕様に、指定された適用決済カード情報を付加できるように
55
56
  */
@@ -58,7 +59,7 @@ export declare type IAcceptedOfferPriceSpecification = ScreeningEventFactory.ITi
58
59
  /**
59
60
  * 受け入れられたチケットオファー
60
61
  */
61
- export declare type IAcceptedOffer4chevre = Pick<ScreeningEventFactory.ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'addOn' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty' | 'paymentMethod'> & {
62
+ export declare type IAcceptedOffer4chevre = Pick<ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'addOn' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty' | 'paymentMethod'> & {
62
63
  itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
63
64
  priceSpecification: IAcceptedOfferPriceSpecification;
64
65
  };
@@ -8,10 +8,6 @@ import { OfferType } from '../offerType';
8
8
  import { OrganizationType } from '../organizationType';
9
9
  import { PlaceType } from '../placeType';
10
10
  import { PriceCurrency } from '../priceCurrency';
11
- import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
12
- import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
13
- import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
14
- import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
15
11
  import { IServiceType as IProductServiceType } from '../product';
16
12
  import { IProject } from '../project';
17
13
  import { IQuantitativeValue } from '../quantitativeValue';
@@ -20,7 +16,6 @@ import { ReservationType } from '../reservationType';
20
16
  import * as WebAPIFactory from '../service/webAPI';
21
17
  import { IThing } from '../thing';
22
18
  import { UnitCode } from '../unitCode';
23
- import * as UnitPriceOfferFactory from '../unitPriceOffer';
24
19
  /**
25
20
  * 予約集計
26
21
  */
@@ -149,20 +144,6 @@ export interface IOffer {
149
144
  seller: ISeller;
150
145
  }
151
146
  export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
152
- export declare type ITicketUnitPriceComponent = Omit<IUnitPriceSpecification, 'project'>;
153
- export declare type ITicketPriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'> | Omit<IMovieTicketTypeChargeSpecification, 'project'> | ITicketUnitPriceComponent;
154
- /**
155
- * 興行オファーの価格仕様
156
- */
157
- export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
158
- /**
159
- * 興行オファー
160
- */
161
- export interface ITicketOffer extends Omit<OfferFactory.IOffer, 'priceSpecification'> {
162
- identifier: string;
163
- priceSpecification: ITicketPriceSpecification;
164
- itemOffered?: UnitPriceOfferFactory.IItemOffered;
165
- }
166
147
  export interface ICOAInfo {
167
148
  theaterCode: string;
168
149
  dateJouei: string;
package/lib/offer.d.ts CHANGED
@@ -67,7 +67,6 @@ export interface IAddOn {
67
67
  * コード
68
68
  */
69
69
  identifier?: string;
70
- project: Pick<IProject, 'id' | 'typeOf'>;
71
70
  typeOf: OfferType.Offer;
72
71
  id?: string;
73
72
  availableAtOrFrom?: IAvailableAtOrFrom[];
package/lib/product.d.ts CHANGED
@@ -3,11 +3,16 @@ import { ICategoryCode } from './categoryCode';
3
3
  import { IMonetaryAmount } from './monetaryAmount';
4
4
  import { IOffer as IBaseOffer } from './offer';
5
5
  import { IPermit } from './permit';
6
+ import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
7
+ import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
8
+ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
9
+ import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
6
10
  import { IProject } from './project';
7
11
  import { IPropertyValue } from './propertyValue';
8
12
  import { IQuantitativeValue } from './quantitativeValue';
9
13
  import { SortType } from './sortType';
10
14
  import { IThing } from './thing';
15
+ import * as UnitPriceOfferFactory from './unitPriceOffer';
11
16
  /**
12
17
  * プロダクトタイプ
13
18
  */
@@ -40,7 +45,7 @@ export declare type IServiceOutput = Pick<IPermit, 'typeOf' | 'amount'> & {
40
45
  };
41
46
  export declare type IPointAwardAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
42
47
  /**
43
- * ポイント特典インターフェース
48
+ * ポイント特典
44
49
  */
45
50
  export interface IPointAward {
46
51
  typeOf: ActionType.MoneyTransfer;
@@ -92,7 +97,7 @@ export declare type IOffer = Pick<IBaseOffer, 'project' | 'typeOf' | 'priceCurre
92
97
  };
93
98
  };
94
99
  /**
95
- * プロダクトインターフェース
100
+ * プロダクト
96
101
  * {@link https://schema.org/Product}
97
102
  */
98
103
  export interface IProduct extends Pick<IThing, 'name' | 'description'> {
@@ -150,6 +155,7 @@ export interface ISearchConditions {
150
155
  productID?: {
151
156
  $eq?: string;
152
157
  $in?: string[];
158
+ $regex?: string;
153
159
  };
154
160
  typeOf?: {
155
161
  $eq?: string;
@@ -238,3 +244,19 @@ export interface IServiceOutputSearchConditions {
238
244
  $eq?: string;
239
245
  };
240
246
  }
247
+ export declare type ICategoryCodeChargePriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'>;
248
+ export declare type IMovieTicketTypeChargePriceComponent = Omit<IMovieTicketTypeChargeSpecification, 'project'>;
249
+ export declare type ITicketUnitPriceComponent = Omit<IUnitPriceSpecification, 'project'>;
250
+ export declare type ITicketPriceComponent = ICategoryCodeChargePriceComponent | IMovieTicketTypeChargePriceComponent | ITicketUnitPriceComponent;
251
+ /**
252
+ * プロダクトオファーの価格仕様
253
+ */
254
+ export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
255
+ /**
256
+ * プロダクトオファー
257
+ */
258
+ export interface ITicketOffer extends Omit<IBaseOffer, 'priceSpecification' | 'project'> {
259
+ identifier: string;
260
+ priceSpecification: ITicketPriceSpecification;
261
+ itemOffered?: UnitPriceOfferFactory.IItemOffered;
262
+ }
@@ -53,7 +53,7 @@ export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecifica
53
53
  };
54
54
  export interface IAddOnItemOffered extends Pick<IProduct, 'typeOf' | 'id' | 'name'> {
55
55
  }
56
- export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'project' | 'typeOf' | 'priceCurrency'> {
56
+ export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'typeOf' | 'priceCurrency'> {
57
57
  itemOffered: IAddOnItemOffered;
58
58
  }
59
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.274.0-alpha.3",
3
+ "version": "4.275.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",