@chevre/factory 4.393.0-alpha.46 → 4.393.0-alpha.47
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.
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IMultilingualString } from './multilingualString';
|
|
2
|
+
import { IProject } from './project';
|
|
3
|
+
import { IQuantitativeValue } from './quantitativeValue';
|
|
4
|
+
import { SortType } from './sortType';
|
|
5
|
+
import { UnitCode } from './unitCode';
|
|
6
|
+
interface IAdvanceBookingActualUsageHours {
|
|
7
|
+
typeOf: 'OpeningHoursSpecification';
|
|
8
|
+
/**
|
|
9
|
+
* 開始時刻
|
|
10
|
+
* hh:mm:ss[Z|(+|-)hh:mm]
|
|
11
|
+
*/
|
|
12
|
+
opens: string;
|
|
13
|
+
}
|
|
14
|
+
interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Day>, 'typeOf' | 'maxValue' | 'minValue' | 'unitCode' | 'description'> {
|
|
15
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* 事前予約要件コード
|
|
19
|
+
*/
|
|
20
|
+
identifier: string;
|
|
21
|
+
/**
|
|
22
|
+
* n日前から
|
|
23
|
+
*/
|
|
24
|
+
maxValue?: number;
|
|
25
|
+
/**
|
|
26
|
+
* n日前まで
|
|
27
|
+
*/
|
|
28
|
+
minValue?: number;
|
|
29
|
+
description?: IMultilingualString;
|
|
30
|
+
/**
|
|
31
|
+
* 基準となるイベント開始日の時刻
|
|
32
|
+
* 未定義の場合、イベントのstartDate
|
|
33
|
+
*/
|
|
34
|
+
valueReference?: IAdvanceBookingActualUsageHours;
|
|
35
|
+
}
|
|
36
|
+
interface ISearchConditions {
|
|
37
|
+
limit?: number;
|
|
38
|
+
page?: number;
|
|
39
|
+
sort?: {
|
|
40
|
+
identifier?: SortType;
|
|
41
|
+
};
|
|
42
|
+
project?: {
|
|
43
|
+
id?: {
|
|
44
|
+
$eq?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
id?: {
|
|
48
|
+
$eq?: string;
|
|
49
|
+
$in?: string[];
|
|
50
|
+
};
|
|
51
|
+
identifier?: {
|
|
52
|
+
$eq?: string;
|
|
53
|
+
$regex?: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export { IAdvanceBookingActualUsageHours, IAdvanceBookingRequirement, ISearchConditions };
|
package/lib/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ import { ActionType } from './actionType';
|
|
|
50
50
|
import * as AccountTitleFactory from './accountTitle';
|
|
51
51
|
import { AccountType } from './accountType';
|
|
52
52
|
import * as AdditionalPropertyFactory from './additionalProperty';
|
|
53
|
+
import * as AdvanceBookingRequirementFactory from './advanceBookingRequirement';
|
|
53
54
|
import * as AggregationFactory from './aggregation';
|
|
54
55
|
import * as AuthorizationFactory from './authorization';
|
|
55
56
|
import * as CategoryCodeFactory from './categoryCode';
|
|
@@ -335,6 +336,7 @@ export declare namespace action {
|
|
|
335
336
|
export import accountTitle = AccountTitleFactory;
|
|
336
337
|
export import accountType = AccountType;
|
|
337
338
|
export import additionalProperty = AdditionalPropertyFactory;
|
|
339
|
+
export import advanceBookingRequirement = AdvanceBookingRequirementFactory;
|
|
338
340
|
export import aggregation = AggregationFactory;
|
|
339
341
|
export import aggregateOffer = AggregateOfferFactory;
|
|
340
342
|
export import authorization = AuthorizationFactory;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = void 0;
|
|
3
|
+
exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -49,6 +49,7 @@ var actionType_1 = require("./actionType");
|
|
|
49
49
|
var AccountTitleFactory = require("./accountTitle");
|
|
50
50
|
var accountType_1 = require("./accountType");
|
|
51
51
|
var AdditionalPropertyFactory = require("./additionalProperty");
|
|
52
|
+
var AdvanceBookingRequirementFactory = require("./advanceBookingRequirement");
|
|
52
53
|
var AggregationFactory = require("./aggregation");
|
|
53
54
|
var AuthorizationFactory = require("./authorization");
|
|
54
55
|
var CategoryCodeFactory = require("./categoryCode");
|
|
@@ -321,6 +322,7 @@ var action;
|
|
|
321
322
|
exports.accountTitle = AccountTitleFactory;
|
|
322
323
|
exports.accountType = accountType_1.AccountType;
|
|
323
324
|
exports.additionalProperty = AdditionalPropertyFactory;
|
|
325
|
+
exports.advanceBookingRequirement = AdvanceBookingRequirementFactory;
|
|
324
326
|
exports.aggregation = AggregationFactory;
|
|
325
327
|
exports.aggregateOffer = AggregateOfferFactory;
|
|
326
328
|
exports.authorization = AuthorizationFactory;
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPointAward } from './action/transfer/moneyTransfer';
|
|
2
|
+
import { IAdvanceBookingRequirement as IActualAdvanceBookingRequirement } from './advanceBookingRequirement';
|
|
2
3
|
import { ItemAvailability } from './itemAvailability';
|
|
3
4
|
import { IAddOn, ICategory, IEligibleCategoryCode, IEligibleMonetaryAmount, IName, IOffer } from './offer';
|
|
4
5
|
import { OfferType } from './offerType';
|
|
@@ -6,9 +7,7 @@ import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './perm
|
|
|
6
7
|
import { IAccounting } from './priceSpecification';
|
|
7
8
|
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
8
9
|
import { IProduct, ProductType } from './product';
|
|
9
|
-
import { IQuantitativeValue } from './quantitativeValue';
|
|
10
10
|
import { SortType } from './sortType';
|
|
11
|
-
import { UnitCode } from './unitCode';
|
|
12
11
|
import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './unitPriceOffer/merchantReturnPolicy';
|
|
13
12
|
export type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
|
|
14
13
|
id: string;
|
|
@@ -57,8 +56,7 @@ export interface ISettings {
|
|
|
57
56
|
*/
|
|
58
57
|
includedInAggregateReservation?: boolean;
|
|
59
58
|
}
|
|
60
|
-
export
|
|
61
|
-
}
|
|
59
|
+
export type IAdvanceBookingRequirement = Pick<IActualAdvanceBookingRequirement, 'id' | 'typeOf'>;
|
|
62
60
|
export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
63
61
|
/**
|
|
64
62
|
* 単価オファー
|
|
@@ -115,7 +113,7 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
|
|
|
115
113
|
/**
|
|
116
114
|
* 事前予約要件
|
|
117
115
|
*/
|
|
118
|
-
advanceBookingRequirement?: Pick<
|
|
116
|
+
advanceBookingRequirement?: Pick<IActualAdvanceBookingRequirement, 'identifier'>;
|
|
119
117
|
/**
|
|
120
118
|
* カテゴリー
|
|
121
119
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "4.393.0-alpha.
|
|
3
|
+
"version": "4.393.0-alpha.47",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/mocha": "^5.2.7",
|
|
45
45
|
"@types/node": "18.19.4",
|
|
46
|
-
"coveralls": "
|
|
46
|
+
"coveralls": "3.1.1",
|
|
47
47
|
"mocha": "^5.2.0",
|
|
48
48
|
"nyc": "15.1.0",
|
|
49
49
|
"rimraf": "^2.6.3",
|