@chevre/factory 8.0.0-alpha.2 → 8.0.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.
- package/lib/chevre/index.d.ts +0 -2
- package/lib/chevre/index.js +0 -2
- package/lib/chevre/offer.d.ts +0 -9
- package/lib/chevre/placeType.d.ts +0 -1
- package/lib/chevre/placeType.js +0 -1
- package/lib/chevre/product.d.ts +1 -1
- package/lib/chevre/reservedCodeValues.js +0 -1
- package/lib/chevre/unitPriceOffer.d.ts +2 -11
- package/package.json +1 -1
- package/lib/chevre/place/busStop.d.ts +0 -41
- package/lib/chevre/place/busStop.js +0 -2
package/lib/chevre/index.d.ts
CHANGED
|
@@ -90,7 +90,6 @@ import { PaymentStatusType } from './paymentStatusType';
|
|
|
90
90
|
import * as PermitFactory from './permit';
|
|
91
91
|
import * as PersonFactory from './person';
|
|
92
92
|
import { PersonType } from './personType';
|
|
93
|
-
import * as BusStopFactory from './place/busStop';
|
|
94
93
|
import * as EntranceGateFactory from './place/entranceGate';
|
|
95
94
|
import * as MovieTheaterPlaceFactory from './place/movieTheater';
|
|
96
95
|
import * as ScreeningRoomPlaceFactory from './place/screeningRoom';
|
|
@@ -401,7 +400,6 @@ export import person = PersonFactory;
|
|
|
401
400
|
export import personType = PersonType;
|
|
402
401
|
export import priceCurrency = PriceCurrency;
|
|
403
402
|
export declare namespace place {
|
|
404
|
-
export import busStop = BusStopFactory;
|
|
405
403
|
export import entranceGate = EntranceGateFactory;
|
|
406
404
|
export import movieTheater = MovieTheaterPlaceFactory;
|
|
407
405
|
export import screeningRoom = ScreeningRoomPlaceFactory;
|
package/lib/chevre/index.js
CHANGED
|
@@ -90,7 +90,6 @@ const paymentStatusType_1 = require("./paymentStatusType");
|
|
|
90
90
|
const PermitFactory = require("./permit");
|
|
91
91
|
const PersonFactory = require("./person");
|
|
92
92
|
const personType_1 = require("./personType");
|
|
93
|
-
const BusStopFactory = require("./place/busStop");
|
|
94
93
|
const EntranceGateFactory = require("./place/entranceGate");
|
|
95
94
|
const MovieTheaterPlaceFactory = require("./place/movieTheater");
|
|
96
95
|
const ScreeningRoomPlaceFactory = require("./place/screeningRoom");
|
|
@@ -392,7 +391,6 @@ exports.personType = personType_1.PersonType;
|
|
|
392
391
|
exports.priceCurrency = priceCurrency_1.PriceCurrency;
|
|
393
392
|
var place;
|
|
394
393
|
(function (place) {
|
|
395
|
-
place.busStop = BusStopFactory;
|
|
396
394
|
place.entranceGate = EntranceGateFactory;
|
|
397
395
|
place.movieTheater = MovieTheaterPlaceFactory;
|
|
398
396
|
place.screeningRoom = ScreeningRoomPlaceFactory;
|
package/lib/chevre/offer.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ICategoryCode } from './categoryCode';
|
|
2
2
|
import { ItemAvailability } from './itemAvailability';
|
|
3
|
-
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
3
|
import { IMultilingualString } from './multilingualString';
|
|
5
4
|
import { OfferType } from './offerType';
|
|
6
5
|
import { OrganizationType } from './organizationType';
|
|
@@ -24,9 +23,6 @@ export interface ICategory {
|
|
|
24
23
|
export type IEligibleCategoryCode = Pick<ICategoryCode, 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'> & {
|
|
25
24
|
id: string;
|
|
26
25
|
};
|
|
27
|
-
export type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
|
|
28
|
-
value: number;
|
|
29
|
-
};
|
|
30
26
|
/**
|
|
31
27
|
* 対象サブ予約条件
|
|
32
28
|
*/
|
|
@@ -144,11 +140,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
144
140
|
* 対象座席タイプ
|
|
145
141
|
*/
|
|
146
142
|
eligibleSeatingType?: [IEligibleCategoryCode];
|
|
147
|
-
/**
|
|
148
|
-
* 対象金額
|
|
149
|
-
* 6ポイントで無料、などの設定に使用
|
|
150
|
-
*/
|
|
151
|
-
eligibleMonetaryAmount?: [IEligibleMonetaryAmount];
|
|
152
143
|
/**
|
|
153
144
|
* 対象サブ予約条件
|
|
154
145
|
*/
|
package/lib/chevre/placeType.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.PlaceType = void 0;
|
|
|
7
7
|
var PlaceType;
|
|
8
8
|
(function (PlaceType) {
|
|
9
9
|
PlaceType["AggregatePlace"] = "AggregatePlace";
|
|
10
|
-
PlaceType["BusStop"] = "BusStop";
|
|
11
10
|
PlaceType["EntranceGate"] = "EntranceGate";
|
|
12
11
|
PlaceType["MovieTheater"] = "MovieTheater";
|
|
13
12
|
PlaceType["Place"] = "Place";
|
package/lib/chevre/product.d.ts
CHANGED
|
@@ -336,7 +336,7 @@ export type IMinimizedTicketAddOn = IAddOn4unitPriceOffer;
|
|
|
336
336
|
* プロダクトオファー
|
|
337
337
|
*/
|
|
338
338
|
export interface ITicketOffer extends Pick<IBaseOffer, 'acceptedPaymentMethod' | // add(2023-11-15~)
|
|
339
|
-
'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | '
|
|
339
|
+
'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
|
|
340
340
|
addOn?: IMinimizedTicketAddOn[];
|
|
341
341
|
identifier: string;
|
|
342
342
|
name: IOfferName;
|
|
@@ -85,7 +85,6 @@ exports.RESERVED_CODE_VALUES = [
|
|
|
85
85
|
paymentStatusType_1.PaymentStatusType.PaymentPastDue,
|
|
86
86
|
personType_1.PersonType.Person,
|
|
87
87
|
placeType_1.PlaceType.AggregatePlace,
|
|
88
|
-
placeType_1.PlaceType.BusStop,
|
|
89
88
|
placeType_1.PlaceType.MovieTheater,
|
|
90
89
|
placeType_1.PlaceType.Place,
|
|
91
90
|
placeType_1.PlaceType.ScreeningRoom,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAdvanceBookingRequirement as IActualAdvanceBookingRequirement } from './advanceBookingRequirement';
|
|
2
2
|
import { ItemAvailability } from './itemAvailability';
|
|
3
|
-
import { IAddOn, ICategory, IEligibleCategoryCode,
|
|
3
|
+
import { IAddOn, ICategory, IEligibleCategoryCode, IName, IOffer } from './offer';
|
|
4
4
|
import { OfferType } from './offerType';
|
|
5
5
|
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
6
6
|
import { IAccounting } from './priceSpecification';
|
|
@@ -60,7 +60,7 @@ export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfSto
|
|
|
60
60
|
/**
|
|
61
61
|
* 単価オファー
|
|
62
62
|
*/
|
|
63
|
-
export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | '
|
|
63
|
+
export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
|
|
64
64
|
/**
|
|
65
65
|
* The amount of time that is required between accepting the offer and the actual usage of the resource or service.
|
|
66
66
|
* 事前予約要件(興行オファー承認日時とイベント開始日時の差)
|
|
@@ -121,7 +121,6 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
|
|
|
121
121
|
* 対象メンバーシップ
|
|
122
122
|
*/
|
|
123
123
|
eligibleMembershipType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
|
|
124
|
-
eligibleMonetaryAmount?: [Pick<IEligibleMonetaryAmount, 'currency' | 'value'>];
|
|
125
124
|
eligibleSeatingType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
|
|
126
125
|
/**
|
|
127
126
|
* 返品ポリシー
|
|
@@ -246,14 +245,6 @@ export interface ISearchConditions {
|
|
|
246
245
|
$eq?: string;
|
|
247
246
|
};
|
|
248
247
|
};
|
|
249
|
-
eligibleMonetaryAmount?: {
|
|
250
|
-
/**
|
|
251
|
-
* 対象通貨区分
|
|
252
|
-
*/
|
|
253
|
-
currency?: {
|
|
254
|
-
$eq?: string;
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
248
|
eligibleSeatingType?: {
|
|
258
249
|
/**
|
|
259
250
|
* 対象座席区分
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IMultilingualString } from '../multilingualString';
|
|
2
|
-
import { IPlace as IBasePlace } from '../place';
|
|
3
|
-
import { PlaceType } from '../placeType';
|
|
4
|
-
import { SortType } from '../sortType';
|
|
5
|
-
export interface IPlace extends Pick<IBasePlace, 'project' | 'typeOf' | 'id' | 'name' | 'branchCode'> {
|
|
6
|
-
typeOf: PlaceType.BusStop;
|
|
7
|
-
id: string;
|
|
8
|
-
branchCode: string;
|
|
9
|
-
name: IMultilingualString;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* ソート条件
|
|
13
|
-
*/
|
|
14
|
-
export interface ISortOrder {
|
|
15
|
-
branchCode?: SortType;
|
|
16
|
-
}
|
|
17
|
-
export interface ISearchConditions {
|
|
18
|
-
limit?: number;
|
|
19
|
-
page?: number;
|
|
20
|
-
sort?: ISortOrder;
|
|
21
|
-
project?: {
|
|
22
|
-
id?: {
|
|
23
|
-
$eq?: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
id?: {
|
|
27
|
-
$eq?: string;
|
|
28
|
-
$in?: string[];
|
|
29
|
-
};
|
|
30
|
-
branchCode?: {
|
|
31
|
-
$eq?: string;
|
|
32
|
-
$regex?: string;
|
|
33
|
-
$in?: string[];
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* 名称
|
|
37
|
-
*/
|
|
38
|
-
name?: {
|
|
39
|
-
$regex?: string;
|
|
40
|
-
};
|
|
41
|
-
}
|