@scayle/storefront-core 7.22.1
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/CHANGELOG.md +480 -0
- package/LICENSE +21 -0
- package/README.md +29 -0
- package/dist/bapi/init.cjs +30 -0
- package/dist/bapi/init.d.ts +14 -0
- package/dist/bapi/init.mjs +23 -0
- package/dist/cache/cache.cjs +1 -0
- package/dist/cache/cache.d.ts +8 -0
- package/dist/cache/cache.mjs +0 -0
- package/dist/cache/cached.cjs +89 -0
- package/dist/cache/cached.d.ts +24 -0
- package/dist/cache/cached.mjs +92 -0
- package/dist/cache/index.cjs +38 -0
- package/dist/cache/index.d.ts +3 -0
- package/dist/cache/index.mjs +3 -0
- package/dist/cache/providers/redis.cjs +94 -0
- package/dist/cache/providers/redis.d.ts +28 -0
- package/dist/cache/providers/redis.mjs +86 -0
- package/dist/cache/providers/unstorage.cjs +54 -0
- package/dist/cache/providers/unstorage.d.ts +16 -0
- package/dist/cache/providers/unstorage.mjs +49 -0
- package/dist/cache/types.cjs +11 -0
- package/dist/cache/types.d.ts +6 -0
- package/dist/cache/types.mjs +4 -0
- package/dist/constants/basket.cjs +13 -0
- package/dist/constants/basket.d.ts +8 -0
- package/dist/constants/basket.mjs +6 -0
- package/dist/constants/cache.cjs +8 -0
- package/dist/constants/cache.d.ts +1 -0
- package/dist/constants/cache.mjs +1 -0
- package/dist/constants/hash.cjs +11 -0
- package/dist/constants/hash.d.ts +6 -0
- package/dist/constants/hash.mjs +4 -0
- package/dist/constants/httpStatus.cjs +636 -0
- package/dist/constants/httpStatus.d.ts +632 -0
- package/dist/constants/httpStatus.mjs +629 -0
- package/dist/constants/index.cjs +93 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/index.mjs +8 -0
- package/dist/constants/product.cjs +11 -0
- package/dist/constants/product.d.ts +6 -0
- package/dist/constants/product.mjs +4 -0
- package/dist/constants/promotion.cjs +10 -0
- package/dist/constants/promotion.d.ts +2 -0
- package/dist/constants/promotion.mjs +2 -0
- package/dist/constants/sorting.cjs +24 -0
- package/dist/constants/sorting.d.ts +20 -0
- package/dist/constants/sorting.mjs +17 -0
- package/dist/constants/withParameters.cjs +138 -0
- package/dist/constants/withParameters.d.ts +30 -0
- package/dist/constants/withParameters.mjs +132 -0
- package/dist/errors/BAPIError.cjs +16 -0
- package/dist/errors/BAPIError.d.ts +6 -0
- package/dist/errors/BAPIError.mjs +9 -0
- package/dist/errors/baseError.cjs +17 -0
- package/dist/errors/baseError.d.ts +5 -0
- package/dist/errors/baseError.mjs +10 -0
- package/dist/errors/index.cjs +27 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.mjs +2 -0
- package/dist/helpers/advancedAttributeHelpers.cjs +26 -0
- package/dist/helpers/advancedAttributeHelpers.d.ts +12 -0
- package/dist/helpers/advancedAttributeHelpers.mjs +21 -0
- package/dist/helpers/arrayHelpers.cjs +10 -0
- package/dist/helpers/arrayHelpers.d.ts +1 -0
- package/dist/helpers/arrayHelpers.mjs +3 -0
- package/dist/helpers/attributeHelpers.cjs +24 -0
- package/dist/helpers/attributeHelpers.d.ts +5 -0
- package/dist/helpers/attributeHelpers.mjs +17 -0
- package/dist/helpers/autobind.cjs +44 -0
- package/dist/helpers/autobind.d.ts +39 -0
- package/dist/helpers/autobind.mjs +35 -0
- package/dist/helpers/basketHelpers.cjs +12 -0
- package/dist/helpers/basketHelpers.d.ts +2 -0
- package/dist/helpers/basketHelpers.mjs +5 -0
- package/dist/helpers/categoryHelper.cjs +61 -0
- package/dist/helpers/categoryHelper.d.ts +7 -0
- package/dist/helpers/categoryHelper.mjs +44 -0
- package/dist/helpers/filterHelper.cjs +156 -0
- package/dist/helpers/filterHelper.d.ts +82 -0
- package/dist/helpers/filterHelper.mjs +147 -0
- package/dist/helpers/formHelpers.cjs +114 -0
- package/dist/helpers/formHelpers.d.ts +48 -0
- package/dist/helpers/formHelpers.mjs +106 -0
- package/dist/helpers/imageHelpers.cjs +20 -0
- package/dist/helpers/imageHelpers.d.ts +4 -0
- package/dist/helpers/imageHelpers.mjs +14 -0
- package/dist/helpers/index.cjs +192 -0
- package/dist/helpers/index.d.ts +17 -0
- package/dist/helpers/index.mjs +17 -0
- package/dist/helpers/localization.cjs +13 -0
- package/dist/helpers/localization.d.ts +7 -0
- package/dist/helpers/localization.mjs +6 -0
- package/dist/helpers/objectHelpers.cjs +19 -0
- package/dist/helpers/objectHelpers.d.ts +1 -0
- package/dist/helpers/objectHelpers.mjs +6 -0
- package/dist/helpers/orderHelpers.cjs +10 -0
- package/dist/helpers/orderHelpers.d.ts +67 -0
- package/dist/helpers/orderHelpers.mjs +4 -0
- package/dist/helpers/product.fixture.cjs +770 -0
- package/dist/helpers/product.fixture.d.ts +415 -0
- package/dist/helpers/product.fixture.mjs +838 -0
- package/dist/helpers/productDisruptorHelper.cjs +37 -0
- package/dist/helpers/productDisruptorHelper.d.ts +10 -0
- package/dist/helpers/productDisruptorHelper.mjs +23 -0
- package/dist/helpers/productHelpers.cjs +188 -0
- package/dist/helpers/productHelpers.d.ts +41 -0
- package/dist/helpers/productHelpers.mjs +170 -0
- package/dist/helpers/sanitizationHelpers.cjs +15 -0
- package/dist/helpers/sanitizationHelpers.d.ts +2 -0
- package/dist/helpers/sanitizationHelpers.mjs +6 -0
- package/dist/helpers/sortingHelper.cjs +67 -0
- package/dist/helpers/sortingHelper.d.ts +69 -0
- package/dist/helpers/sortingHelper.mjs +66 -0
- package/dist/helpers/stringHelpers.cjs +8 -0
- package/dist/helpers/stringHelpers.d.ts +2 -0
- package/dist/helpers/stringHelpers.mjs +2 -0
- package/dist/index.cjs +85 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.mjs +8 -0
- package/dist/rpc/methods/basket/basket.cjs +183 -0
- package/dist/rpc/methods/basket/basket.d.ts +23 -0
- package/dist/rpc/methods/basket/basket.mjs +181 -0
- package/dist/rpc/methods/brands.cjs +34 -0
- package/dist/rpc/methods/brands.d.ts +5 -0
- package/dist/rpc/methods/brands.mjs +16 -0
- package/dist/rpc/methods/categories.cjs +102 -0
- package/dist/rpc/methods/categories.d.ts +21 -0
- package/dist/rpc/methods/categories.mjs +64 -0
- package/dist/rpc/methods/cbd.cjs +45 -0
- package/dist/rpc/methods/cbd.d.ts +4 -0
- package/dist/rpc/methods/cbd.mjs +36 -0
- package/dist/rpc/methods/checkout/index.cjs +38 -0
- package/dist/rpc/methods/checkout/index.d.ts +3 -0
- package/dist/rpc/methods/checkout/index.mjs +3 -0
- package/dist/rpc/methods/checkout/order.cjs +55 -0
- package/dist/rpc/methods/checkout/order.d.ts +4 -0
- package/dist/rpc/methods/checkout/order.mjs +43 -0
- package/dist/rpc/methods/checkout/shopUser.cjs +126 -0
- package/dist/rpc/methods/checkout/shopUser.d.ts +7 -0
- package/dist/rpc/methods/checkout/shopUser.mjs +109 -0
- package/dist/rpc/methods/checkout/shopUserAddresses.cjs +25 -0
- package/dist/rpc/methods/checkout/shopUserAddresses.d.ts +3 -0
- package/dist/rpc/methods/checkout/shopUserAddresses.mjs +19 -0
- package/dist/rpc/methods/index.cjs +159 -0
- package/dist/rpc/methods/index.d.ts +14 -0
- package/dist/rpc/methods/index.mjs +14 -0
- package/dist/rpc/methods/navigationTrees.cjs +33 -0
- package/dist/rpc/methods/navigationTrees.d.ts +5 -0
- package/dist/rpc/methods/navigationTrees.mjs +10 -0
- package/dist/rpc/methods/products.cjs +261 -0
- package/dist/rpc/methods/products.d.ts +13 -0
- package/dist/rpc/methods/products.mjs +217 -0
- package/dist/rpc/methods/promotion.cjs +53 -0
- package/dist/rpc/methods/promotion.d.ts +4 -0
- package/dist/rpc/methods/promotion.mjs +38 -0
- package/dist/rpc/methods/search.cjs +38 -0
- package/dist/rpc/methods/search.d.ts +10 -0
- package/dist/rpc/methods/search.mjs +22 -0
- package/dist/rpc/methods/session.cjs +274 -0
- package/dist/rpc/methods/session.d.ts +20 -0
- package/dist/rpc/methods/session.mjs +309 -0
- package/dist/rpc/methods/shopConfiguration.cjs +15 -0
- package/dist/rpc/methods/shopConfiguration.d.ts +4 -0
- package/dist/rpc/methods/shopConfiguration.mjs +6 -0
- package/dist/rpc/methods/user.cjs +89 -0
- package/dist/rpc/methods/user.d.ts +20 -0
- package/dist/rpc/methods/user.mjs +56 -0
- package/dist/rpc/methods/variants.cjs +29 -0
- package/dist/rpc/methods/variants.d.ts +8 -0
- package/dist/rpc/methods/variants.mjs +12 -0
- package/dist/rpc/methods/wishlist.cjs +85 -0
- package/dist/rpc/methods/wishlist.d.ts +13 -0
- package/dist/rpc/methods/wishlist.mjs +61 -0
- package/dist/server.cjs +39 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.mjs +4 -0
- package/dist/types/api/auth.cjs +1 -0
- package/dist/types/api/auth.d.ts +63 -0
- package/dist/types/api/auth.mjs +0 -0
- package/dist/types/api/context.cjs +1 -0
- package/dist/types/api/context.d.ts +61 -0
- package/dist/types/api/context.mjs +0 -0
- package/dist/types/api/rpc.cjs +1 -0
- package/dist/types/api/rpc.d.ts +4 -0
- package/dist/types/api/rpc.mjs +0 -0
- package/dist/types/bapi/basket.cjs +1 -0
- package/dist/types/bapi/basket.d.ts +25 -0
- package/dist/types/bapi/basket.mjs +0 -0
- package/dist/types/bapi/brand.cjs +1 -0
- package/dist/types/bapi/brand.d.ts +2 -0
- package/dist/types/bapi/brand.mjs +0 -0
- package/dist/types/bapi/category.cjs +1 -0
- package/dist/types/bapi/category.d.ts +6 -0
- package/dist/types/bapi/category.mjs +0 -0
- package/dist/types/bapi/filter.cjs +1 -0
- package/dist/types/bapi/filter.d.ts +49 -0
- package/dist/types/bapi/filter.mjs +0 -0
- package/dist/types/bapi/navigation.cjs +1 -0
- package/dist/types/bapi/navigation.d.ts +10 -0
- package/dist/types/bapi/navigation.mjs +0 -0
- package/dist/types/bapi/order.cjs +1 -0
- package/dist/types/bapi/order.d.ts +554 -0
- package/dist/types/bapi/order.mjs +0 -0
- package/dist/types/bapi/pagination.cjs +1 -0
- package/dist/types/bapi/pagination.d.ts +13 -0
- package/dist/types/bapi/pagination.mjs +0 -0
- package/dist/types/bapi/product.cjs +1 -0
- package/dist/types/bapi/product.d.ts +84 -0
- package/dist/types/bapi/product.mjs +0 -0
- package/dist/types/bapi/productFilter.cjs +1 -0
- package/dist/types/bapi/productFilter.d.ts +7 -0
- package/dist/types/bapi/productFilter.mjs +0 -0
- package/dist/types/bapi/promotion.cjs +1 -0
- package/dist/types/bapi/promotion.d.ts +2 -0
- package/dist/types/bapi/promotion.mjs +0 -0
- package/dist/types/bapi/redirects.cjs +1 -0
- package/dist/types/bapi/redirects.d.ts +1 -0
- package/dist/types/bapi/redirects.mjs +0 -0
- package/dist/types/bapi/router.cjs +1 -0
- package/dist/types/bapi/router.d.ts +1 -0
- package/dist/types/bapi/router.mjs +0 -0
- package/dist/types/bapi/search.cjs +1 -0
- package/dist/types/bapi/search.d.ts +21 -0
- package/dist/types/bapi/search.mjs +0 -0
- package/dist/types/bapi/sorting.cjs +5 -0
- package/dist/types/bapi/sorting.d.ts +10 -0
- package/dist/types/bapi/sorting.mjs +1 -0
- package/dist/types/bapi/wishlist.cjs +1 -0
- package/dist/types/bapi/wishlist.d.ts +9 -0
- package/dist/types/bapi/wishlist.mjs +0 -0
- package/dist/types/breadcrumb.cjs +1 -0
- package/dist/types/breadcrumb.d.ts +4 -0
- package/dist/types/breadcrumb.mjs +0 -0
- package/dist/types/index.cjs +236 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.mjs +21 -0
- package/dist/types/promises.cjs +1 -0
- package/dist/types/promises.d.ts +2 -0
- package/dist/types/promises.mjs +0 -0
- package/dist/types/user.cjs +1 -0
- package/dist/types/user.d.ts +100 -0
- package/dist/types/user.mjs +0 -0
- package/dist/utils/compression.cjs +24 -0
- package/dist/utils/compression.d.ts +2 -0
- package/dist/utils/compression.mjs +16 -0
- package/dist/utils/hash.cjs +68 -0
- package/dist/utils/hash.d.ts +8 -0
- package/dist/utils/hash.mjs +61 -0
- package/dist/utils/index.cjs +27 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/keys.cjs +67 -0
- package/dist/utils/keys.d.ts +24 -0
- package/dist/utils/keys.mjs +56 -0
- package/dist/utils/log.cjs +93 -0
- package/dist/utils/log.d.ts +43 -0
- package/dist/utils/log.mjs +75 -0
- package/dist/utils/rpc.cjs +41 -0
- package/dist/utils/rpc.d.ts +6 -0
- package/dist/utils/rpc.mjs +35 -0
- package/dist/utils/timeout.cjs +17 -0
- package/dist/utils/timeout.d.ts +2 -0
- package/dist/utils/timeout.mjs +9 -0
- package/dist/utils/user.cjs +75 -0
- package/dist/utils/user.d.ts +14 -0
- package/dist/utils/user.mjs +65 -0
- package/package.json +97 -0
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
export type TimestampOfOrderConfirmation = string;
|
|
7
|
+
export type ThisFieldRepresentsTheAdditionalFeesExcludingTheTaxes = number;
|
|
8
|
+
export type ThisFieldRepresentsTheAdditionalFeesIncludingTheTaxes = number;
|
|
9
|
+
export type TheIncludedVATAmount = number;
|
|
10
|
+
export type TheIncludedVATRateInPercentAsIntegerRepresentation = number;
|
|
11
|
+
export type ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes = number;
|
|
12
|
+
export type AbsoluteValueOfTheAppliedTax = number;
|
|
13
|
+
/**
|
|
14
|
+
* This price excludes taxes, but also includes all applicable reductions.
|
|
15
|
+
*/
|
|
16
|
+
export type ItemPriceExcludingTaxes = number;
|
|
17
|
+
/**
|
|
18
|
+
* The price is calculated including taxes and all applicable reductions such as discounts for sale and campaigns (should a campaign key be provdided on the request).
|
|
19
|
+
*/
|
|
20
|
+
export type ItemPriceIncludingTaxes = number;
|
|
21
|
+
/**
|
|
22
|
+
* The three character [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code that identifies the currency. The currency is defined on the configuration of the shop, and can be modified in the cloud panel.
|
|
23
|
+
*/
|
|
24
|
+
export type CharacterCurrencyCode = string;
|
|
25
|
+
export type UniqueIdentifierOfTheState = string;
|
|
26
|
+
export type NameOfTheState = string;
|
|
27
|
+
export type UniqueIdentifierOfTheState1 = string;
|
|
28
|
+
export type NameOfTheState1 = string;
|
|
29
|
+
export type UniqueIdentifierOfTheState2 = string;
|
|
30
|
+
export type NameOfTheState2 = string;
|
|
31
|
+
export type TimestampOfOrderInvoice = string;
|
|
32
|
+
export type UniqueNumericIdentifierOfTheItem = number;
|
|
33
|
+
/**
|
|
34
|
+
* The number of deliverable items available in the warehouse for immediate shipping.
|
|
35
|
+
*/
|
|
36
|
+
export type AvailableQuantityInTheWarehouse = number;
|
|
37
|
+
/**
|
|
38
|
+
* The three character [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code that identifies the currency. The currency is defined on the configuration of the shop, and can be modified in the cloud panel.
|
|
39
|
+
*/
|
|
40
|
+
export type CharacterCurrencyCode1 = string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the return shipment got triggered manually. Is missing in case there is no return shipment.
|
|
43
|
+
*/
|
|
44
|
+
export type TheReturnShipmentHasBeenTriggeredByCCI = boolean;
|
|
45
|
+
export type UniqueIdentifierOfTheItem = string;
|
|
46
|
+
/**
|
|
47
|
+
* Items are grouped by package, depending on the item's supplier configuration. The `packageId` references an entry in the packages list with delivery estimates and expected carrier.
|
|
48
|
+
*/
|
|
49
|
+
export type PackageReference = number;
|
|
50
|
+
export type ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1 = number;
|
|
51
|
+
export type AbsoluteValueOfTheAppliedTax1 = number;
|
|
52
|
+
export type RelativeValueOfTheAppliedTax = number;
|
|
53
|
+
export type UndiscountedItemPriceExcludingTaxes = number;
|
|
54
|
+
export type UndiscountedItemPriceIncludingTaxes = number;
|
|
55
|
+
/**
|
|
56
|
+
* This price excludes taxes, but also includes all applicable reductions.
|
|
57
|
+
*/
|
|
58
|
+
export type ItemPriceExcludingTaxes1 = number;
|
|
59
|
+
/**
|
|
60
|
+
* The price is calculated including taxes and all applicable reductions such as discounts for sale and campaigns (should a campaign key be provdided on the request).
|
|
61
|
+
*/
|
|
62
|
+
export type ItemPriceIncludingTaxes1 = number;
|
|
63
|
+
/**
|
|
64
|
+
* the warehouse id where the item are being picking from.
|
|
65
|
+
*/
|
|
66
|
+
export type PickingWarehouseId = null | number;
|
|
67
|
+
/**
|
|
68
|
+
* The package identification inside of the warehouse.
|
|
69
|
+
*/
|
|
70
|
+
export type WarehousePackageReference = null | number;
|
|
71
|
+
export type TimestampOfItemCreation = string;
|
|
72
|
+
export type TimestampOfLastItemUpdate = string;
|
|
73
|
+
/**
|
|
74
|
+
* Basket and order items are matched to a package by cross-referencing the `item[].packageId`.
|
|
75
|
+
*/
|
|
76
|
+
export type ReferenceByWhichThePackageIsIdentified = number;
|
|
77
|
+
export type CarrierShippingTheItem = string;
|
|
78
|
+
export type LatestExpectedDeliveryDate = string;
|
|
79
|
+
export type EarliestExpectedDeliveryDate = string;
|
|
80
|
+
export type ReturnIdentCodeOfTheItem = null | string;
|
|
81
|
+
export type ShipmentKeyOfTheItem = string;
|
|
82
|
+
/**
|
|
83
|
+
* The distribution of items across packages is calculated based on the supplierId. Once shipments are processed, the packages may be updated to reflect the actual shipments.
|
|
84
|
+
*/
|
|
85
|
+
export type ListOfPackages = {
|
|
86
|
+
id: ReferenceByWhichThePackageIsIdentified;
|
|
87
|
+
carrierKey: CarrierShippingTheItem;
|
|
88
|
+
/**
|
|
89
|
+
* The delivery dates are calculated based on the hour-to-hour estimates configured per supplier in the cloud panel. Once the order has been confirmed and shipments have been received, the calculation is based on the warehouse cut-off times and transport duration. If the carrier provides a delivery estimate, this is applied.
|
|
90
|
+
*/
|
|
91
|
+
deliveryDate: {
|
|
92
|
+
maximum: LatestExpectedDeliveryDate;
|
|
93
|
+
minimum: EarliestExpectedDeliveryDate;
|
|
94
|
+
};
|
|
95
|
+
deliveryStatus: 'open' | 'shipment_pending' | 'delegation_pending' | 'shipment_completed' | 'cancellation_completed';
|
|
96
|
+
returnIdentCode?: ReturnIdentCodeOfTheItem;
|
|
97
|
+
shipmentKey?: ShipmentKeyOfTheItem;
|
|
98
|
+
tracking?: {
|
|
99
|
+
id?: string;
|
|
100
|
+
url?: string;
|
|
101
|
+
};
|
|
102
|
+
}[];
|
|
103
|
+
export type WhetherThePaymentMethodIsAGiftCard = boolean;
|
|
104
|
+
export type NumberOfInstallmentsChosenByTheCustomerForTheOrder = number;
|
|
105
|
+
export type IfTrueTheCustomerElectedToHaveADelayInPaymentCapture = boolean;
|
|
106
|
+
export type TimestampOfOrderCreation = string;
|
|
107
|
+
export type TimestampOfLastOrderUpdate = string;
|
|
108
|
+
export interface Order {
|
|
109
|
+
/**
|
|
110
|
+
* This `id` can be applied as a parameter on the url to retrieve an individual order in the [Fetch Order by ID](#fetch-order-by-id) endpoint.
|
|
111
|
+
*/
|
|
112
|
+
id: number;
|
|
113
|
+
address?: {
|
|
114
|
+
billing: {
|
|
115
|
+
id: number;
|
|
116
|
+
/**
|
|
117
|
+
* Additional data pertaining to the address, such as `c/o AboutYou`.
|
|
118
|
+
*/
|
|
119
|
+
additional?: string;
|
|
120
|
+
city: string;
|
|
121
|
+
/**
|
|
122
|
+
* A collection point is an alternate shipping address, which will hold the customer's packages until pickup. Examples for collection points are DHL Packstations, DHL Post Offices and Hermes Paketshops.
|
|
123
|
+
*/
|
|
124
|
+
collectionPoint?: {
|
|
125
|
+
customerKey?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
key: string;
|
|
128
|
+
type: ('hermes_parcelshop' | 'dhl_packstation' | 'dhl_postoffice' | 'postsk_postoffice' | 'postsk_parcelbox' | 'gls_postoffice' | 'gls_packstation' | 'gls_parcelshop' | 'post_office' | 'postsi_postoffice' | 'postsi_packstation' | 'omniva_parcel_shop' | 'omniva_packstation' | 'offline-store' | 'fastwayie_packstation' | 'fastwayie_parcelshop' | 'generic' | 'packstation' | 'parcel_shop' | 'posteitaliane_packstation' | 'posteitaliane_parcelshop' | 'postifi_packstation' | 'postifi_parcelshop' | 'zasilcz_parcelshop' | 'zasilcz_packstation' | 'reba_packstation' | 'reba_parcel_shop') | string;
|
|
129
|
+
};
|
|
130
|
+
countryCode: string;
|
|
131
|
+
houseNumber?: string;
|
|
132
|
+
isBillingAddress?: boolean;
|
|
133
|
+
isDefault: {
|
|
134
|
+
billing: boolean;
|
|
135
|
+
shipping: boolean;
|
|
136
|
+
};
|
|
137
|
+
isShippingAddress?: boolean;
|
|
138
|
+
recipient: {
|
|
139
|
+
firstName?: string;
|
|
140
|
+
gender?: 'm' | 'f' | 'd';
|
|
141
|
+
lastName: string;
|
|
142
|
+
title?: null | string;
|
|
143
|
+
type: 'personal' | 'retail' | 'organization' | 'family';
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* External reference set by the client to integrate a 3rd party system
|
|
147
|
+
*/
|
|
148
|
+
referenceKey?: string;
|
|
149
|
+
street: string;
|
|
150
|
+
zipCode: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
updatedAt: string;
|
|
153
|
+
};
|
|
154
|
+
forward?: {
|
|
155
|
+
/**
|
|
156
|
+
* Additional data pertaining to the address, such as `c/o AboutYou`.
|
|
157
|
+
*/
|
|
158
|
+
additional?: string;
|
|
159
|
+
city?: string;
|
|
160
|
+
/**
|
|
161
|
+
* A collection point is an alternate shipping address, which will hold the customer's packages until pickup. Examples for collection points are DHL Packstations, DHL Post Offices and Hermes Paketshops.
|
|
162
|
+
*/
|
|
163
|
+
collectionPoint?: {
|
|
164
|
+
customerKey?: string;
|
|
165
|
+
description?: string;
|
|
166
|
+
key?: string;
|
|
167
|
+
type?: ('hermes_parcelshop' | 'dhl_packstation' | 'dhl_postoffice' | 'postsk_postoffice' | 'postsk_parcelbox' | 'gls_postoffice' | 'gls_packstation' | 'gls_parcelshop' | 'post_office' | 'postsi_postoffice' | 'postsi_packstation' | 'omniva_parcel_shop' | 'omniva_packstation' | 'offline-store' | 'fastwayie_packstation' | 'fastwayie_parcelshop' | 'generic' | 'packstation' | 'parcel_shop' | 'posteitaliane_packstation' | 'posteitaliane_parcelshop' | 'postifi_packstation' | 'postifi_parcelshop' | 'zasilcz_parcelshop' | 'zasilcz_packstation' | 'reba_packstation' | 'reba_parcel_shop') | string;
|
|
168
|
+
};
|
|
169
|
+
countryCode?: string;
|
|
170
|
+
houseNumber?: string;
|
|
171
|
+
recipient?: {
|
|
172
|
+
firstName?: string;
|
|
173
|
+
gender?: 'm' | 'f' | 'd';
|
|
174
|
+
lastName?: string;
|
|
175
|
+
title?: null | string;
|
|
176
|
+
type?: 'personal' | 'retail' | 'organization' | 'family';
|
|
177
|
+
};
|
|
178
|
+
street?: string;
|
|
179
|
+
zipCode?: string;
|
|
180
|
+
createdAt?: string;
|
|
181
|
+
updatedAt?: string;
|
|
182
|
+
};
|
|
183
|
+
shipping: {
|
|
184
|
+
id: number;
|
|
185
|
+
/**
|
|
186
|
+
* Additional data pertaining to the address, such as `c/o AboutYou`.
|
|
187
|
+
*/
|
|
188
|
+
additional?: string;
|
|
189
|
+
city: string;
|
|
190
|
+
/**
|
|
191
|
+
* A collection point is an alternate shipping address, which will hold the customer's packages until pickup. Examples for collection points are DHL Packstations, DHL Post Offices and Hermes Paketshops.
|
|
192
|
+
*/
|
|
193
|
+
collectionPoint?: {
|
|
194
|
+
customerKey?: string;
|
|
195
|
+
description?: string;
|
|
196
|
+
key: string;
|
|
197
|
+
type: ('hermes_parcelshop' | 'dhl_packstation' | 'dhl_postoffice' | 'postsk_postoffice' | 'postsk_parcelbox' | 'gls_postoffice' | 'gls_packstation' | 'gls_parcelshop' | 'post_office' | 'postsi_postoffice' | 'postsi_packstation' | 'omniva_parcel_shop' | 'omniva_packstation' | 'offline-store' | 'fastwayie_packstation' | 'fastwayie_parcelshop' | 'generic' | 'packstation' | 'parcel_shop' | 'posteitaliane_packstation' | 'posteitaliane_parcelshop' | 'postifi_packstation' | 'postifi_parcelshop' | 'zasilcz_parcelshop' | 'zasilcz_packstation' | 'reba_packstation' | 'reba_parcel_shop') | string;
|
|
198
|
+
};
|
|
199
|
+
countryCode: string;
|
|
200
|
+
houseNumber?: string;
|
|
201
|
+
isBillingAddress?: boolean;
|
|
202
|
+
isDefault: {
|
|
203
|
+
billing: boolean;
|
|
204
|
+
shipping: boolean;
|
|
205
|
+
};
|
|
206
|
+
isShippingAddress?: boolean;
|
|
207
|
+
recipient: {
|
|
208
|
+
firstName?: string;
|
|
209
|
+
gender?: 'm' | 'f' | 'd';
|
|
210
|
+
lastName: string;
|
|
211
|
+
title?: null | string;
|
|
212
|
+
type: 'personal' | 'retail' | 'organization' | 'family';
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* External reference set by the client to integrate a 3rd party system
|
|
216
|
+
*/
|
|
217
|
+
referenceKey?: string;
|
|
218
|
+
street: string;
|
|
219
|
+
zipCode: string;
|
|
220
|
+
createdAt: string;
|
|
221
|
+
updatedAt: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Reference to the basket attached to this order
|
|
226
|
+
*/
|
|
227
|
+
basketKey: string;
|
|
228
|
+
/**
|
|
229
|
+
* Reference to the campaign applied to this order
|
|
230
|
+
*/
|
|
231
|
+
campaignKey?: string;
|
|
232
|
+
confirmedAt?: TimestampOfOrderConfirmation;
|
|
233
|
+
contacts?: {
|
|
234
|
+
type?: string;
|
|
235
|
+
value?: string;
|
|
236
|
+
}[];
|
|
237
|
+
/**
|
|
238
|
+
* The price is provided in a currency's lowest denomination (e.g. cent for EUR). In a multi-supplier environment, the price displayed on an item is dictated by the supplier order of preference, which is configured in the cloud panel.
|
|
239
|
+
*/
|
|
240
|
+
cost: {
|
|
241
|
+
/**
|
|
242
|
+
* The `appliedFees` detail the additional payment and delivery costs included in the final `price.withTax` and `price.withoutTax` calculation.
|
|
243
|
+
*/
|
|
244
|
+
appliedFees?: {
|
|
245
|
+
amount: {
|
|
246
|
+
withoutTax: ThisFieldRepresentsTheAdditionalFeesExcludingTheTaxes;
|
|
247
|
+
withTax: ThisFieldRepresentsTheAdditionalFeesIncludingTheTaxes;
|
|
248
|
+
};
|
|
249
|
+
category: 'payment' | 'delivery' | 'percentage_payment' | 'return';
|
|
250
|
+
key: string;
|
|
251
|
+
option?: string;
|
|
252
|
+
tax?: {
|
|
253
|
+
vat: ThisFieldHoldsDetailsAboutTheIncludedVATTax;
|
|
254
|
+
};
|
|
255
|
+
}[];
|
|
256
|
+
/**
|
|
257
|
+
* The discounts detail the reductions included in the final `price.withTax` and `price.withoutTax` calculation.
|
|
258
|
+
*/
|
|
259
|
+
appliedReductions?: {
|
|
260
|
+
amount: {
|
|
261
|
+
absoluteWithTax: ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes;
|
|
262
|
+
/**
|
|
263
|
+
* The `rate` is calculated on the basis of the reduction in relation to the `preDiscountPrice` price.
|
|
264
|
+
*/
|
|
265
|
+
relative: number;
|
|
266
|
+
};
|
|
267
|
+
category: 'voucher';
|
|
268
|
+
code?: string;
|
|
269
|
+
type: 'absolute';
|
|
270
|
+
}[];
|
|
271
|
+
itemGroups?: {
|
|
272
|
+
/**
|
|
273
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
274
|
+
* via the `patternProperty` "^[a-zA-Z0-9]+$".
|
|
275
|
+
*/
|
|
276
|
+
[k: string]: {
|
|
277
|
+
brutto: number;
|
|
278
|
+
bruttoDiscount: number;
|
|
279
|
+
bruttoDiscountWithoutMainProduct: number;
|
|
280
|
+
bruttoWithoutMainProduct: number;
|
|
281
|
+
netto: number;
|
|
282
|
+
nettoWithoutMainProduct: number;
|
|
283
|
+
tax: number;
|
|
284
|
+
taxWithoutMainProduct: number;
|
|
285
|
+
};
|
|
286
|
+
} | null;
|
|
287
|
+
tax: {
|
|
288
|
+
/**
|
|
289
|
+
* List of all taxes applied in calculating the `price.withTax`
|
|
290
|
+
*/
|
|
291
|
+
vat?: {
|
|
292
|
+
amount: AbsoluteValueOfTheAppliedTax;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
withoutTax: ItemPriceExcludingTaxes;
|
|
296
|
+
withTax: ItemPriceIncludingTaxes;
|
|
297
|
+
};
|
|
298
|
+
currencyCode: CharacterCurrencyCode;
|
|
299
|
+
customData?: {
|
|
300
|
+
score?: {
|
|
301
|
+
[k: string]: unknown;
|
|
302
|
+
} | string | number | unknown[] | boolean;
|
|
303
|
+
[k: string]: unknown;
|
|
304
|
+
};
|
|
305
|
+
customer?: {
|
|
306
|
+
id: number;
|
|
307
|
+
authentication?: {
|
|
308
|
+
data?: {
|
|
309
|
+
accessToken?: string;
|
|
310
|
+
userId?: string;
|
|
311
|
+
};
|
|
312
|
+
type: 'facebook' | 'password' | 'apple' | 'keycloak';
|
|
313
|
+
};
|
|
314
|
+
birthDate?: string;
|
|
315
|
+
/**
|
|
316
|
+
* Additional data attached by the client to enhance the customer
|
|
317
|
+
*/
|
|
318
|
+
customData?: {
|
|
319
|
+
score?: {
|
|
320
|
+
[k: string]: unknown;
|
|
321
|
+
} | string | number | unknown[] | boolean;
|
|
322
|
+
[k: string]: unknown;
|
|
323
|
+
};
|
|
324
|
+
email?: string;
|
|
325
|
+
firstName?: string;
|
|
326
|
+
gender?: 'm' | 'f' | 'd';
|
|
327
|
+
groups?: string[];
|
|
328
|
+
ipAddress?: string;
|
|
329
|
+
lastName: string;
|
|
330
|
+
phone?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Public reference set by the client to display to customers in account areas and transactional emails
|
|
333
|
+
*/
|
|
334
|
+
publicKey?: string;
|
|
335
|
+
/**
|
|
336
|
+
* External reference set by the client to integrate a 3rd party system
|
|
337
|
+
*/
|
|
338
|
+
referenceKey?: string;
|
|
339
|
+
status: {
|
|
340
|
+
isActive: boolean;
|
|
341
|
+
isGuestCustomer: boolean;
|
|
342
|
+
isTestCustomer: boolean;
|
|
343
|
+
};
|
|
344
|
+
title?: null | string;
|
|
345
|
+
type: 'personal' | 'retail' | 'organization' | 'family';
|
|
346
|
+
userAgent?: string;
|
|
347
|
+
createdAt: string;
|
|
348
|
+
updatedAt: string;
|
|
349
|
+
};
|
|
350
|
+
detailedStatus: {
|
|
351
|
+
billing: {
|
|
352
|
+
code: UniqueIdentifierOfTheState;
|
|
353
|
+
name: NameOfTheState;
|
|
354
|
+
[k: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
order: {
|
|
357
|
+
code: UniqueIdentifierOfTheState1;
|
|
358
|
+
name: NameOfTheState1;
|
|
359
|
+
[k: string]: unknown;
|
|
360
|
+
};
|
|
361
|
+
shipping: {
|
|
362
|
+
code: UniqueIdentifierOfTheState2;
|
|
363
|
+
name: NameOfTheState2;
|
|
364
|
+
[k: string]: unknown;
|
|
365
|
+
};
|
|
366
|
+
[k: string]: unknown;
|
|
367
|
+
};
|
|
368
|
+
invoicedAt?: TimestampOfOrderInvoice;
|
|
369
|
+
items?: {
|
|
370
|
+
id?: UniqueNumericIdentifierOfTheItem;
|
|
371
|
+
availableQuantity?: AvailableQuantityInTheWarehouse;
|
|
372
|
+
currency?: CharacterCurrencyCode1;
|
|
373
|
+
/**
|
|
374
|
+
* customData allows the tenant to attach data to an item. The data will remain attached to the item from the basket through the process of order creation and delegation and may be displayed to the customer during the order lifecycle.
|
|
375
|
+
*/
|
|
376
|
+
customData?: {
|
|
377
|
+
[k: string]: unknown;
|
|
378
|
+
};
|
|
379
|
+
deliveryForecast?: DeliveryForecastFromWarehouse;
|
|
380
|
+
isManuallyReturnedByCci?: TheReturnShipmentHasBeenTriggeredByCCI;
|
|
381
|
+
itemGroup?: null | {
|
|
382
|
+
/**
|
|
383
|
+
* Item group ID
|
|
384
|
+
*/
|
|
385
|
+
id: string;
|
|
386
|
+
/**
|
|
387
|
+
* Specifies the main item in the group (true for only one item in a group)
|
|
388
|
+
*/
|
|
389
|
+
isMainItem: boolean;
|
|
390
|
+
/**
|
|
391
|
+
* Specifies if the item is mandatory or optional
|
|
392
|
+
*/
|
|
393
|
+
isRequired: boolean;
|
|
394
|
+
};
|
|
395
|
+
key: UniqueIdentifierOfTheItem;
|
|
396
|
+
lowestPriorPrice?: null | {
|
|
397
|
+
/**
|
|
398
|
+
* Difference to the current price
|
|
399
|
+
*/
|
|
400
|
+
relativeDifferenceToPrice: number;
|
|
401
|
+
/**
|
|
402
|
+
* Lowest price including taxes
|
|
403
|
+
*/
|
|
404
|
+
withTax: number;
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* the merchant id to which the item belongs.
|
|
408
|
+
*/
|
|
409
|
+
merchant?: {
|
|
410
|
+
id: number;
|
|
411
|
+
[k: string]: unknown;
|
|
412
|
+
};
|
|
413
|
+
packageId: PackageReference;
|
|
414
|
+
/**
|
|
415
|
+
* The price is provided in a currency's lowest denomination (e.g. cent for EUR). In a multi-supplier environment, the price displayed on an item is dictated by the supplier order of preference, which is configured in the cloud panel.
|
|
416
|
+
*/
|
|
417
|
+
price: {
|
|
418
|
+
/**
|
|
419
|
+
* The discounts detail the reductions included in the final `price.withTax` and `price.withoutTax` calculation.
|
|
420
|
+
*/
|
|
421
|
+
appliedReductions?: {
|
|
422
|
+
amount: {
|
|
423
|
+
absoluteWithTax: ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
424
|
+
/**
|
|
425
|
+
* The `rate` is calculated on the basis of the reduction in relation to the `preDiscountPrice` price.
|
|
426
|
+
*/
|
|
427
|
+
relative: number;
|
|
428
|
+
};
|
|
429
|
+
category: 'sale' | 'campaign' | 'voucher';
|
|
430
|
+
code?: string;
|
|
431
|
+
type: 'relative' | 'absolute';
|
|
432
|
+
}[];
|
|
433
|
+
overrideWithoutTax?: number;
|
|
434
|
+
overrideWithTax?: number;
|
|
435
|
+
reference?: {
|
|
436
|
+
size?: string;
|
|
437
|
+
unit?: string;
|
|
438
|
+
withTax?: number;
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* List of all taxes applied in calculating the `price.withTax`
|
|
442
|
+
*/
|
|
443
|
+
tax: {
|
|
444
|
+
[k: string]: {
|
|
445
|
+
amount: AbsoluteValueOfTheAppliedTax1;
|
|
446
|
+
rate: RelativeValueOfTheAppliedTax;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
undiscountedWithOutTax?: UndiscountedItemPriceExcludingTaxes;
|
|
450
|
+
undiscountedWithTax?: UndiscountedItemPriceIncludingTaxes;
|
|
451
|
+
withoutTax: ItemPriceExcludingTaxes1;
|
|
452
|
+
withTax: ItemPriceIncludingTaxes1;
|
|
453
|
+
};
|
|
454
|
+
product: {
|
|
455
|
+
[k: string]: unknown;
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* Reference set in the checkout when an item was reserved successfully.
|
|
459
|
+
*/
|
|
460
|
+
reservationKey?: string;
|
|
461
|
+
status: 'available' | 'cancelled' | 'delivered' | 'returned' | 'unavailable';
|
|
462
|
+
variant: {
|
|
463
|
+
[k: string]: unknown;
|
|
464
|
+
};
|
|
465
|
+
warehouseId?: PickingWarehouseId;
|
|
466
|
+
warehousePackageGroupId?: WarehousePackageReference;
|
|
467
|
+
createdAt: TimestampOfItemCreation;
|
|
468
|
+
updatedAt: TimestampOfLastItemUpdate;
|
|
469
|
+
}[];
|
|
470
|
+
loyaltyCard?: {
|
|
471
|
+
cardNumber?: string;
|
|
472
|
+
points: number;
|
|
473
|
+
provider: string;
|
|
474
|
+
};
|
|
475
|
+
packages?: ListOfPackages;
|
|
476
|
+
payment?: {
|
|
477
|
+
amount?: number;
|
|
478
|
+
/**
|
|
479
|
+
* The `data` attribute will contain the data pushed to the Checkout by the Payment Provider in use (or internally generated, should the payment not be provided by an external PSP). This object's structure depends on the PSP itself, however, it will contain the minimum dataset necessary for further processing of the Order.
|
|
480
|
+
*/
|
|
481
|
+
data?: {
|
|
482
|
+
[k: string]: unknown;
|
|
483
|
+
};
|
|
484
|
+
/**
|
|
485
|
+
* Details about installments, included as a listing of the values involved in the Installments transaction.
|
|
486
|
+
*/
|
|
487
|
+
installment?: {
|
|
488
|
+
amount?: number;
|
|
489
|
+
type?: 'annualInterest' | 'firstInstallment' | 'subsequentInstallments';
|
|
490
|
+
}[];
|
|
491
|
+
isGiftCard?: WhetherThePaymentMethodIsAGiftCard;
|
|
492
|
+
key?: string;
|
|
493
|
+
options?: {
|
|
494
|
+
countOfInstallments?: NumberOfInstallmentsChosenByTheCustomerForTheOrder;
|
|
495
|
+
hasPaybreak?: IfTrueTheCustomerElectedToHaveADelayInPaymentCapture;
|
|
496
|
+
};
|
|
497
|
+
transactionKey?: string;
|
|
498
|
+
}[];
|
|
499
|
+
/**
|
|
500
|
+
* Public reference set by the client to display to customers in account areas and transactional emails
|
|
501
|
+
*/
|
|
502
|
+
publicKey?: string;
|
|
503
|
+
/**
|
|
504
|
+
* External reference set by the client to integrate a 3rd party system
|
|
505
|
+
*/
|
|
506
|
+
referenceKey?: string;
|
|
507
|
+
shipping?: {
|
|
508
|
+
deliveredOn?: string;
|
|
509
|
+
deliveryCosts?: number;
|
|
510
|
+
expressDeliveryCosts?: number;
|
|
511
|
+
policy: string;
|
|
512
|
+
};
|
|
513
|
+
shop?: {
|
|
514
|
+
id: number;
|
|
515
|
+
/**
|
|
516
|
+
* Three letter country code of the shop
|
|
517
|
+
*/
|
|
518
|
+
country: string;
|
|
519
|
+
/**
|
|
520
|
+
* Two letter language code of the shop
|
|
521
|
+
*/
|
|
522
|
+
language: string;
|
|
523
|
+
};
|
|
524
|
+
status: 'order_open' | 'payment_pending' | 'payment_reserved' | 'invoice_completed' | 'cancellation_pending' | 'cancellation_completed' | 'invoice_partially_completed';
|
|
525
|
+
vouchers?: {
|
|
526
|
+
id: number;
|
|
527
|
+
applicableItems?: {
|
|
528
|
+
isApplied?: boolean;
|
|
529
|
+
key?: string;
|
|
530
|
+
}[];
|
|
531
|
+
code: string;
|
|
532
|
+
type: 'absolute' | 'relative';
|
|
533
|
+
value: number;
|
|
534
|
+
}[];
|
|
535
|
+
createdAt: TimestampOfOrderCreation;
|
|
536
|
+
updatedAt: TimestampOfLastOrderUpdate;
|
|
537
|
+
}
|
|
538
|
+
export interface ThisFieldHoldsDetailsAboutTheIncludedVATTax {
|
|
539
|
+
amount: TheIncludedVATAmount;
|
|
540
|
+
rate: TheIncludedVATRateInPercentAsIntegerRepresentation;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* When an item cannot be shipped within the regular delivery timeframe, and the warehouse is already aware of this, prior to the customer placing the order (ie it is not an unintentionally delayed delivery). This is generally the case when the item is out of stock and: the warehouse is waiting for incoming returns to restock the item, the warehouse has ordered fresh stocks from the supplier/manufacturer and is waiting for these to be shipped to the warehouse.
|
|
544
|
+
*/
|
|
545
|
+
export interface DeliveryForecastFromWarehouse {
|
|
546
|
+
deliverable?: {
|
|
547
|
+
key?: string;
|
|
548
|
+
[k: string]: unknown;
|
|
549
|
+
};
|
|
550
|
+
subsequentDelivery?: {
|
|
551
|
+
key?: 'endOfJanuary' | 'endOfFebruary' | 'endOfMarch' | 'endOfApril' | 'endOfMay' | 'endOfJune' | 'endOfJuly' | 'endOfAugust' | 'endOfSeptember' | 'endOfOctober' | 'endOfNovember' | 'endOfDecember' | 'midOfJanuary' | 'midOfFebruary' | 'midOfMarch' | 'midOfApril' | 'midOfMay' | 'midOfJune' | 'midOfJuly' | 'midOfAugust' | 'midOfSeptember' | 'midOfOctober' | 'midOfNovember' | 'midOfDecember' | 'easter' | 'christmas' | 'available' | 'directShipping' | 'outsold';
|
|
552
|
+
[k: string]: unknown;
|
|
553
|
+
};
|
|
554
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Pagination {
|
|
2
|
+
current: number;
|
|
3
|
+
total: number;
|
|
4
|
+
perPage: number;
|
|
5
|
+
page: number;
|
|
6
|
+
first: number;
|
|
7
|
+
prev: number;
|
|
8
|
+
next: number;
|
|
9
|
+
last: number;
|
|
10
|
+
}
|
|
11
|
+
export type PaginatedResponse<Response = any> = {
|
|
12
|
+
pagination: Pagination;
|
|
13
|
+
} & Response;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { ProductSearchQuery } from '@aboutyou/backbone/types/ProductSearchQuery';
|
|
2
|
+
import type { ProductWith, VariantWith } from '@aboutyou/backbone/types/ProductWith';
|
|
3
|
+
import type { BapiProduct as Product, ProductImage, ProductsSearchEndpointParameters, Value } from '@aboutyou/backbone';
|
|
4
|
+
import type { CacheOptions } from '../../cache';
|
|
5
|
+
import type { FilterParams } from './filter';
|
|
6
|
+
import type { PaginatedResponse } from './pagination';
|
|
7
|
+
export type { AttributeGroup, AttributeGroupSingle, AttributeGroupMulti, RFC33339Date, } from '@aboutyou/backbone/types/BapiProduct';
|
|
8
|
+
export type { ProductImage, Value } from '@aboutyou/backbone';
|
|
9
|
+
export type { BasketItem, BasketTotalPrice, } from '@aboutyou/backbone/endpoints/basket/getBasket';
|
|
10
|
+
export type { WishlistItem } from '@aboutyou/backbone/endpoints/wishlist/getWishlist';
|
|
11
|
+
export type { AdvancedAttribute, AdvancedAttributes, Attributes, BapiProduct as Product, BapiPrice as Price, CentAmount, Stock, Variant, LowestPriorPrice, AppliedReduction, } from '@aboutyou/backbone/types/BapiProduct';
|
|
12
|
+
export type { ProductSortConfig, ProductsSearchEndpointParameters, ProductsSearchEndpointResponseData, } from '@aboutyou/backbone/endpoints/products/products';
|
|
13
|
+
export type { ProductWith, VariantWith, ProductSearchQuery };
|
|
14
|
+
export type VariantId = number;
|
|
15
|
+
export type FieldSet = Array<Array<{
|
|
16
|
+
[key: string]: string | number | null | undefined;
|
|
17
|
+
}>>;
|
|
18
|
+
export declare type GroupSet = Array<{
|
|
19
|
+
fieldSet: FieldSet;
|
|
20
|
+
groupSet: GroupSet;
|
|
21
|
+
}>;
|
|
22
|
+
export interface ProductColor {
|
|
23
|
+
id: number;
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
export interface FetchProductParams {
|
|
28
|
+
id: number;
|
|
29
|
+
with?: ProductWith;
|
|
30
|
+
pricePromotionKey?: string;
|
|
31
|
+
includeSellableForFree?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface FetchProductsParams {
|
|
34
|
+
ids: number[];
|
|
35
|
+
with?: ProductWith;
|
|
36
|
+
pricePromotionKey?: string;
|
|
37
|
+
includeSellableForFree?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface FetchProductsByCategoryParams {
|
|
40
|
+
category: string;
|
|
41
|
+
with?: ProductWith;
|
|
42
|
+
cache?: CacheOptions;
|
|
43
|
+
includedFilters?: Array<string>;
|
|
44
|
+
perPage?: number;
|
|
45
|
+
page?: number;
|
|
46
|
+
where?: {
|
|
47
|
+
term?: ProductSearchQuery['term'];
|
|
48
|
+
minPrice?: ProductSearchQuery['minPrice'];
|
|
49
|
+
maxPrice?: ProductSearchQuery['maxPrice'];
|
|
50
|
+
attributes?: ProductSearchQuery['attributes'];
|
|
51
|
+
disableFuzziness?: ProductSearchQuery['disableFuzziness'];
|
|
52
|
+
whitelistAttributes?: ProductSearchQuery['attributes'];
|
|
53
|
+
};
|
|
54
|
+
sort: FilterParams['sort'];
|
|
55
|
+
pricePromotionKey?: string;
|
|
56
|
+
includeSellableForFree?: boolean;
|
|
57
|
+
includeSoldOut?: boolean;
|
|
58
|
+
orFiltersOperator?: ProductsSearchEndpointParameters['orFiltersOperator'];
|
|
59
|
+
}
|
|
60
|
+
export type ProductsResponse = PaginatedResponse<{
|
|
61
|
+
products: Product[];
|
|
62
|
+
}>;
|
|
63
|
+
export type FetchProductsByCategoryResponse = ProductsResponse;
|
|
64
|
+
export interface FetchProductsCountParams {
|
|
65
|
+
category?: string;
|
|
66
|
+
categoryId?: number;
|
|
67
|
+
where?: {
|
|
68
|
+
term?: ProductSearchQuery['term'];
|
|
69
|
+
minPrice?: ProductSearchQuery['minPrice'];
|
|
70
|
+
maxPrice?: ProductSearchQuery['maxPrice'];
|
|
71
|
+
attributes?: ProductSearchQuery['attributes'];
|
|
72
|
+
};
|
|
73
|
+
includeSoldOut?: boolean;
|
|
74
|
+
includeSellableForFree?: boolean;
|
|
75
|
+
orFiltersOperator?: ProductsSearchEndpointParameters['orFiltersOperator'];
|
|
76
|
+
}
|
|
77
|
+
export interface FetchProductsCountResponse {
|
|
78
|
+
count: number;
|
|
79
|
+
}
|
|
80
|
+
export type ProductSibling = {
|
|
81
|
+
id: number;
|
|
82
|
+
image: ProductImage | null;
|
|
83
|
+
colors: Value[];
|
|
84
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AttributesFilterValue, FilterItemWithValues, IdentifierFilterValue } from '@aboutyou/backbone/endpoints/filters/filters';
|
|
2
|
+
export type ProductFilter = FilterItemWithValues;
|
|
3
|
+
export type ProductFilterValues = ProductFilter['values'];
|
|
4
|
+
export type ProductFilterValue = AttributesFilterValue | {
|
|
5
|
+
name: true | false;
|
|
6
|
+
productCount: number;
|
|
7
|
+
} | IdentifierFilterValue;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|