@chevre/factory 4.290.0 → 4.291.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.
- package/lib/offer.d.ts +3 -0
- package/lib/priceSpecification.d.ts +8 -0
- package/lib/product.d.ts +4 -1
- package/lib/unitPriceOffer.d.ts +5 -3
- package/package.json +1 -1
package/lib/offer.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ICategoryCode } from './categoryCode';
|
|
2
2
|
import { ItemAvailability } from './itemAvailability';
|
|
3
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
|
+
import { IMultilingualString } from './multilingualString';
|
|
4
5
|
import { OfferType } from './offerType';
|
|
5
6
|
import { OrganizationType } from './organizationType';
|
|
6
7
|
import { PriceCurrency } from './priceCurrency';
|
|
@@ -77,6 +78,7 @@ export interface IAddOn {
|
|
|
77
78
|
validThrough?: Date;
|
|
78
79
|
}
|
|
79
80
|
export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
|
|
81
|
+
export declare type IName = IMultilingualString;
|
|
80
82
|
/**
|
|
81
83
|
* offer interface
|
|
82
84
|
* An offer to transfer some rights to an item or to provide a service
|
|
@@ -148,6 +150,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
148
150
|
* The item being offered.
|
|
149
151
|
*/
|
|
150
152
|
itemOffered?: any;
|
|
153
|
+
name?: IName;
|
|
151
154
|
/**
|
|
152
155
|
* オファー供給サービス
|
|
153
156
|
*/
|
|
@@ -94,10 +94,18 @@ export interface ISearchConditions<T extends PriceSpecificationType> {
|
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
+
price?: {
|
|
98
|
+
$eq?: number;
|
|
99
|
+
};
|
|
97
100
|
validFrom?: Date;
|
|
98
101
|
validThrough?: Date;
|
|
99
102
|
appliesToVideoFormats?: string[];
|
|
100
103
|
appliesToMovieTicket?: {
|
|
101
104
|
serviceTypes?: string[];
|
|
105
|
+
serviceOutput?: {
|
|
106
|
+
typeOf?: {
|
|
107
|
+
$eq?: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
102
110
|
};
|
|
103
111
|
}
|
package/lib/product.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
2
|
import { ICategoryCode } from './categoryCode';
|
|
3
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
|
-
import { IAddOn as IBaseAddOn, IOffer as IBaseOffer } from './offer';
|
|
4
|
+
import { IAddOn as IBaseAddOn, IName as IOfferName, IOffer as IBaseOffer } from './offer';
|
|
5
|
+
import { OfferType } from './offerType';
|
|
5
6
|
import { IPermit } from './permit';
|
|
6
7
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
8
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
@@ -268,7 +269,9 @@ export declare type ITicketAddOn = Pick<IBaseAddOn, 'id' | 'identifier' | 'itemO
|
|
|
268
269
|
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'> {
|
|
269
270
|
addOn?: ITicketAddOn[];
|
|
270
271
|
identifier: string;
|
|
272
|
+
name: IOfferName;
|
|
271
273
|
priceSpecification: ITicketPriceSpecification;
|
|
272
274
|
itemOffered?: UnitPriceOfferFactory.IItemOffered;
|
|
273
275
|
sortIndex?: number;
|
|
276
|
+
typeOf: OfferType.Offer;
|
|
274
277
|
}
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
|
-
import {
|
|
2
|
+
import { ItemAvailability } from './itemAvailability';
|
|
3
|
+
import { IAddOn, IName, IOffer } from './offer';
|
|
3
4
|
import { OfferType } from './offerType';
|
|
4
5
|
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
5
6
|
import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
@@ -51,8 +52,7 @@ export interface IItemOffered {
|
|
|
51
52
|
export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket' | 'project'> & {
|
|
52
53
|
appliesToMovieTicket?: IAppliesToMovieTicket[];
|
|
53
54
|
};
|
|
54
|
-
export
|
|
55
|
-
}
|
|
55
|
+
export declare type IAddOnItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'>;
|
|
56
56
|
export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'typeOf' | 'priceCurrency'> {
|
|
57
57
|
itemOffered: IAddOnItemOffered;
|
|
58
58
|
}
|
|
@@ -63,10 +63,12 @@ export interface ISettings {
|
|
|
63
63
|
* 単価オファー
|
|
64
64
|
*/
|
|
65
65
|
export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
|
|
66
|
+
availability: ItemAvailability;
|
|
66
67
|
/**
|
|
67
68
|
* コード
|
|
68
69
|
*/
|
|
69
70
|
identifier: string;
|
|
71
|
+
name: IName;
|
|
70
72
|
/**
|
|
71
73
|
* 単価仕様
|
|
72
74
|
*/
|