@chevre/factory 4.313.0-alpha.4 → 4.313.0-alpha.5
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/index.d.ts +2 -0
- package/lib/index.js +4 -2
- package/lib/merchantReturnPolicy.d.ts +3 -0
- package/lib/offerItemCondition.d.ts +47 -0
- package/lib/offerItemCondition.js +2 -0
- package/lib/seller.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
|
|
|
70
70
|
import { IMultilingualString } from './multilingualString';
|
|
71
71
|
import * as OfferFactory from './offer';
|
|
72
72
|
import * as OfferCatalogFactory from './offerCatalog';
|
|
73
|
+
import * as OfferItemConditionFactory from './offerItemCondition';
|
|
73
74
|
import { OfferType } from './offerType';
|
|
74
75
|
import * as OrderFactory from './order';
|
|
75
76
|
import { OrderStatus } from './orderStatus';
|
|
@@ -322,6 +323,7 @@ export import monetaryAmount = MonetaryAmountFactory;
|
|
|
322
323
|
export declare type multilingualString = IMultilingualString;
|
|
323
324
|
export import offer = OfferFactory;
|
|
324
325
|
export import offerCatalog = OfferCatalogFactory;
|
|
326
|
+
export import offerItemCondition = OfferItemConditionFactory;
|
|
325
327
|
export import offerType = OfferType;
|
|
326
328
|
export import order = OrderFactory;
|
|
327
329
|
export import orderStatus = OrderStatus;
|
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.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = void 0;
|
|
3
|
+
exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = 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.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = 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.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -67,6 +67,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
|
|
|
67
67
|
var MonetaryAmountFactory = require("./monetaryAmount");
|
|
68
68
|
var OfferFactory = require("./offer");
|
|
69
69
|
var OfferCatalogFactory = require("./offerCatalog");
|
|
70
|
+
var OfferItemConditionFactory = require("./offerItemCondition");
|
|
70
71
|
var offerType_1 = require("./offerType");
|
|
71
72
|
var OrderFactory = require("./order");
|
|
72
73
|
var orderStatus_1 = require("./orderStatus");
|
|
@@ -302,6 +303,7 @@ exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
|
|
|
302
303
|
exports.monetaryAmount = MonetaryAmountFactory;
|
|
303
304
|
exports.offer = OfferFactory;
|
|
304
305
|
exports.offerCatalog = OfferCatalogFactory;
|
|
306
|
+
exports.offerItemCondition = OfferItemConditionFactory;
|
|
305
307
|
exports.offerType = offerType_1.OfferType;
|
|
306
308
|
exports.order = OrderFactory;
|
|
307
309
|
exports.orderStatus = orderStatus_1.OrderStatus;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
2
|
+
import { IOfferItemCondition } from './offerItemCondition';
|
|
2
3
|
import { IThing } from './thing';
|
|
3
4
|
export declare enum RefundTypeEnumeration {
|
|
4
5
|
ExchangeRefund = "ExchangeRefund",
|
|
@@ -42,6 +43,7 @@ export declare enum MerchantReturnEnumeration {
|
|
|
42
43
|
MerchantReturnUnspecified = "MerchantReturnUnspecified"
|
|
43
44
|
}
|
|
44
45
|
export declare type IRestockingFee = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
46
|
+
export declare type IItemCondition = Pick<IOfferItemCondition, 'typeOf' | 'id'>;
|
|
45
47
|
export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
|
|
46
48
|
typeOf: 'MerchantReturnPolicy';
|
|
47
49
|
/**
|
|
@@ -56,6 +58,7 @@ export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
|
|
|
56
58
|
* Are in-store returns offered?
|
|
57
59
|
*/
|
|
58
60
|
inStoreReturnsOffered?: boolean;
|
|
61
|
+
itemCondition?: IItemCondition;
|
|
59
62
|
/**
|
|
60
63
|
* The merchantReturnDays property indicates the number of days (from purchase)
|
|
61
64
|
* within which relevant merchant return policy is applicable. Supersedes productReturnDays.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IMultilingualString } from './multilingualString';
|
|
2
|
+
import { ProductType } from './product';
|
|
3
|
+
import { IProject } from './project';
|
|
4
|
+
import { IQuantitativeValue } from './quantitativeValue';
|
|
5
|
+
import { ReservationType } from './reservationType';
|
|
6
|
+
import { SortType } from './sortType';
|
|
7
|
+
import { UnitCode } from './unitCode';
|
|
8
|
+
declare type IGracePeriodBeforeStart = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'minValue' | 'typeOf' | 'unitCode'>;
|
|
9
|
+
export interface IItemOffered {
|
|
10
|
+
typeOf: ProductType.EventService;
|
|
11
|
+
serviceOutput?: {
|
|
12
|
+
typeOf: ReservationType.EventReservation;
|
|
13
|
+
reservationFor: {
|
|
14
|
+
gracePeriodBeforeStart?: IGracePeriodBeforeStart;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface IOfferItemCondition {
|
|
19
|
+
id?: string;
|
|
20
|
+
identifier: string;
|
|
21
|
+
itemOffered: IItemOffered;
|
|
22
|
+
name: IMultilingualString;
|
|
23
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
24
|
+
typeOf: 'OfferItemCondition';
|
|
25
|
+
}
|
|
26
|
+
export interface ISortOrder {
|
|
27
|
+
identifier?: SortType;
|
|
28
|
+
}
|
|
29
|
+
export interface ISearchConditions {
|
|
30
|
+
limit?: number;
|
|
31
|
+
page?: number;
|
|
32
|
+
sort?: ISortOrder;
|
|
33
|
+
project?: {
|
|
34
|
+
id?: {
|
|
35
|
+
$eq?: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
id?: {
|
|
39
|
+
$eq?: string;
|
|
40
|
+
$in?: string[];
|
|
41
|
+
};
|
|
42
|
+
identifier?: {
|
|
43
|
+
$eq?: string;
|
|
44
|
+
$in?: string[];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export {};
|
package/lib/seller.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { IPropertyValue } from './propertyValue';
|
|
|
8
8
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
9
9
|
import { SortType } from './sortType';
|
|
10
10
|
import { UnitCode } from './unitCode';
|
|
11
|
-
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
|
|
11
|
+
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
|
|
12
12
|
export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
|
|
13
13
|
/**
|
|
14
14
|
* 利用可能決済
|