@scayle/storefront-core 7.66.6 → 7.67.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/CHANGELOG.md +12 -0
- package/dist/helpers/categoryHelper.d.ts +1 -1
- package/dist/helpers/productHelpers.d.ts +1 -1
- package/dist/index.cjs +43 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +7 -1
- package/dist/rpc/methods/basket/basket.cjs +4 -4
- package/dist/rpc/methods/basket/basket.mjs +4 -4
- package/dist/rpc/methods/checkout/checkout.cjs +1 -1
- package/dist/rpc/methods/checkout/checkout.mjs +1 -1
- package/dist/rpc/methods/search.d.ts +1 -1
- package/dist/types/index.cjs +15 -15
- package/dist/types/index.d.ts +15 -15
- package/dist/types/index.mjs +15 -15
- package/dist/types/user.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/types/{bapi → sapi}/basket.cjs +0 -0
- /package/dist/types/{bapi → sapi}/basket.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/basket.mjs +0 -0
- /package/dist/types/{bapi → sapi}/brand.cjs +0 -0
- /package/dist/types/{bapi → sapi}/brand.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/brand.mjs +0 -0
- /package/dist/types/{bapi → sapi}/campaign.cjs +0 -0
- /package/dist/types/{bapi → sapi}/campaign.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/campaign.mjs +0 -0
- /package/dist/types/{bapi → sapi}/category.cjs +0 -0
- /package/dist/types/{bapi → sapi}/category.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/category.mjs +0 -0
- /package/dist/types/{bapi → sapi}/filter.cjs +0 -0
- /package/dist/types/{bapi → sapi}/filter.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/filter.mjs +0 -0
- /package/dist/types/{bapi → sapi}/navigation.cjs +0 -0
- /package/dist/types/{bapi → sapi}/navigation.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/navigation.mjs +0 -0
- /package/dist/types/{bapi → sapi}/order.cjs +0 -0
- /package/dist/types/{bapi → sapi}/order.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/order.mjs +0 -0
- /package/dist/types/{bapi → sapi}/product.cjs +0 -0
- /package/dist/types/{bapi → sapi}/product.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/product.mjs +0 -0
- /package/dist/types/{bapi → sapi}/productFilter.cjs +0 -0
- /package/dist/types/{bapi → sapi}/productFilter.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/productFilter.mjs +0 -0
- /package/dist/types/{bapi → sapi}/promotion.cjs +0 -0
- /package/dist/types/{bapi → sapi}/promotion.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/promotion.mjs +0 -0
- /package/dist/types/{bapi → sapi}/redirects.cjs +0 -0
- /package/dist/types/{bapi → sapi}/redirects.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/redirects.mjs +0 -0
- /package/dist/types/{bapi → sapi}/router.cjs +0 -0
- /package/dist/types/{bapi → sapi}/router.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/router.mjs +0 -0
- /package/dist/types/{bapi → sapi}/search.cjs +0 -0
- /package/dist/types/{bapi → sapi}/search.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/search.mjs +0 -0
- /package/dist/types/{bapi → sapi}/sorting.cjs +0 -0
- /package/dist/types/{bapi → sapi}/sorting.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/sorting.mjs +0 -0
- /package/dist/types/{bapi → sapi}/variant.cjs +0 -0
- /package/dist/types/{bapi → sapi}/variant.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/variant.mjs +0 -0
- /package/dist/types/{bapi → sapi}/wishlist.cjs +0 -0
- /package/dist/types/{bapi → sapi}/wishlist.d.ts +0 -0
- /package/dist/types/{bapi → sapi}/wishlist.mjs +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/storefront-core
|
|
2
2
|
|
|
3
|
+
## 7.67.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Expose SAPI test factories externally
|
|
8
|
+
|
|
9
|
+
## 7.66.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependency `@scayle/storefront-api@17.9.5` to `@scayle/storefront-api@17.10.0`
|
|
14
|
+
|
|
3
15
|
## 7.66.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Category, ProductCategory } from '../types/
|
|
1
|
+
import type { Category, ProductCategory } from '../types/sapi/category';
|
|
2
2
|
import type { BreadcrumbItem } from '../types/breadcrumb';
|
|
3
3
|
export declare const getBreadcrumbsFromProductCategories: (categories: ProductCategory[] | Category[]) => BreadcrumbItem[];
|
|
4
4
|
export declare const getBreadcrumbsFromCategory: (category: Category, activeNode?: Category) => BreadcrumbItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AppliedReduction, BasketItemPrice, Product, Value, Variant, VariantPrice } from '@scayle/storefront-api';
|
|
2
|
-
import type { ProductSibling } from '../types/
|
|
2
|
+
import type { ProductSibling } from '../types/sapi/product';
|
|
3
3
|
interface Route {
|
|
4
4
|
path?: string;
|
|
5
5
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
rpcMethods: true,
|
|
8
8
|
APISortOption: true,
|
|
9
|
-
APISortOrder: true
|
|
9
|
+
APISortOrder: true,
|
|
10
|
+
attributeGroupFactory: true,
|
|
11
|
+
advancedAttributeFactory: true,
|
|
12
|
+
categoryFactory: true,
|
|
13
|
+
productFactory: true,
|
|
14
|
+
priceFactory: true,
|
|
15
|
+
variantFactory: true
|
|
10
16
|
};
|
|
11
17
|
Object.defineProperty(exports, "APISortOption", {
|
|
12
18
|
enumerable: true,
|
|
@@ -20,7 +26,43 @@ Object.defineProperty(exports, "APISortOrder", {
|
|
|
20
26
|
return _storefrontApi.APISortOrder;
|
|
21
27
|
}
|
|
22
28
|
});
|
|
29
|
+
Object.defineProperty(exports, "advancedAttributeFactory", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _storefrontApi.advancedAttributeFactory;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "attributeGroupFactory", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () {
|
|
38
|
+
return _storefrontApi.attributeGroupFactory;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "categoryFactory", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () {
|
|
44
|
+
return _storefrontApi.categoryFactory;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "priceFactory", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () {
|
|
50
|
+
return _storefrontApi.priceFactory;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "productFactory", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () {
|
|
56
|
+
return _storefrontApi.productFactory;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
23
59
|
exports.rpcMethods = void 0;
|
|
60
|
+
Object.defineProperty(exports, "variantFactory", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _storefrontApi.variantFactory;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
24
66
|
var rpcMethods = _interopRequireWildcard(require("./rpc/methods/index.cjs"));
|
|
25
67
|
exports.rpcMethods = rpcMethods;
|
|
26
68
|
var _errors = require("./errors/index.cjs");
|
package/dist/index.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ export type RpcMethodName = Resolve<keyof RpcMethods>;
|
|
|
17
17
|
export type RpcMethod<N extends RpcMethodName> = RpcMethods[N];
|
|
18
18
|
export type RpcMethodParameters<N extends RpcMethodName> = Parameters<RpcMethod<N>>[0];
|
|
19
19
|
export type RpcMethodReturnType<N extends RpcMethodName> = ReturnType<RpcMethod<N>>;
|
|
20
|
-
export { APISortOption, APISortOrder, type ProductSortConfig, } from '@scayle/storefront-api';
|
|
20
|
+
export { APISortOption, APISortOrder, type ProductSortConfig, attributeGroupFactory, advancedAttributeFactory, categoryFactory, productFactory, priceFactory, variantFactory, } from '@scayle/storefront-api';
|
package/dist/index.mjs
CHANGED
|
@@ -8,5 +8,11 @@ export * from "./helpers/index.mjs";
|
|
|
8
8
|
export * from "./types/index.mjs";
|
|
9
9
|
export {
|
|
10
10
|
APISortOption,
|
|
11
|
-
APISortOrder
|
|
11
|
+
APISortOrder,
|
|
12
|
+
attributeGroupFactory,
|
|
13
|
+
advancedAttributeFactory,
|
|
14
|
+
categoryFactory,
|
|
15
|
+
productFactory,
|
|
16
|
+
priceFactory,
|
|
17
|
+
variantFactory
|
|
12
18
|
} from "@scayle/storefront-api";
|
|
@@ -9,7 +9,7 @@ var _types = require("../../../types/index.cjs");
|
|
|
9
9
|
var _constants = require("../../../constants/index.cjs");
|
|
10
10
|
var _user = require("../../../utils/user.cjs");
|
|
11
11
|
var _response = require("../../../utils/response.cjs");
|
|
12
|
-
const
|
|
12
|
+
const SAPI_ERROR_NAME = "SAPI ERROR";
|
|
13
13
|
function getWithParams(params, context) {
|
|
14
14
|
return params.with ?? context.withParams?.basket ?? _constants.MIN_WITH_PARAMS_BASKET;
|
|
15
15
|
}
|
|
@@ -65,7 +65,7 @@ const addItemToBasket = exports.addItemToBasket = async function addItemToBasket
|
|
|
65
65
|
message,
|
|
66
66
|
statusCode
|
|
67
67
|
});
|
|
68
|
-
return new _errors.ErrorResponse(statusCode,
|
|
68
|
+
return new _errors.ErrorResponse(statusCode, SAPI_ERROR_NAME, "Adding item to basket failed", {
|
|
69
69
|
detail: message
|
|
70
70
|
});
|
|
71
71
|
}
|
|
@@ -112,7 +112,7 @@ const addItemsToBasket = exports.addItemsToBasket = async function addItemsToBas
|
|
|
112
112
|
statusCode,
|
|
113
113
|
message
|
|
114
114
|
});
|
|
115
|
-
return new _errors.ErrorResponse(statusCode,
|
|
115
|
+
return new _errors.ErrorResponse(statusCode, SAPI_ERROR_NAME, "Adding one or more items to basket failed", {
|
|
116
116
|
detail: message
|
|
117
117
|
});
|
|
118
118
|
}
|
|
@@ -140,7 +140,7 @@ const getBasket = exports.getBasket = async function getBasket2(options, context
|
|
|
140
140
|
statusCode,
|
|
141
141
|
message
|
|
142
142
|
} = parseBasketError(response);
|
|
143
|
-
return new _errors.ErrorResponse(statusCode,
|
|
143
|
+
return new _errors.ErrorResponse(statusCode, SAPI_ERROR_NAME, "Adding item to basket failed", {
|
|
144
144
|
detail: message
|
|
145
145
|
});
|
|
146
146
|
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "../../../constants/index.mjs";
|
|
9
9
|
import { mergeBaskets as mergeBasketFunction } from "../../../utils/user.mjs";
|
|
10
10
|
import { unwrap } from "../../../utils/response.mjs";
|
|
11
|
-
const
|
|
11
|
+
const SAPI_ERROR_NAME = "SAPI ERROR";
|
|
12
12
|
function getWithParams(params, context) {
|
|
13
13
|
return params.with ?? context.withParams?.basket ?? MIN_WITH_PARAMS_BASKET;
|
|
14
14
|
}
|
|
@@ -68,7 +68,7 @@ export const addItemToBasket = async function addItemToBasket2({
|
|
|
68
68
|
context.log.error("Adding item to basket failed", { message, statusCode });
|
|
69
69
|
return new ErrorResponse(
|
|
70
70
|
statusCode,
|
|
71
|
-
|
|
71
|
+
SAPI_ERROR_NAME,
|
|
72
72
|
"Adding item to basket failed",
|
|
73
73
|
{
|
|
74
74
|
detail: message
|
|
@@ -122,7 +122,7 @@ export const addItemsToBasket = async function addItemsToBasket2(params, context
|
|
|
122
122
|
});
|
|
123
123
|
return new ErrorResponse(
|
|
124
124
|
statusCode,
|
|
125
|
-
|
|
125
|
+
SAPI_ERROR_NAME,
|
|
126
126
|
"Adding one or more items to basket failed",
|
|
127
127
|
{
|
|
128
128
|
detail: message
|
|
@@ -153,7 +153,7 @@ export const getBasket = async function getBasket2(options, context) {
|
|
|
153
153
|
const { statusCode, message } = parseBasketError(response);
|
|
154
154
|
return new ErrorResponse(
|
|
155
155
|
statusCode,
|
|
156
|
-
|
|
156
|
+
SAPI_ERROR_NAME,
|
|
157
157
|
"Adding item to basket failed",
|
|
158
158
|
{
|
|
159
159
|
detail: message
|
|
@@ -37,7 +37,7 @@ const getCheckoutToken = exports.getCheckoutToken = async function getCheckoutTo
|
|
|
37
37
|
carrier,
|
|
38
38
|
basketId: context.basketKey,
|
|
39
39
|
campaignKey: context.campaignKey
|
|
40
|
-
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.
|
|
40
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.67.0"}`).setProtectedHeader({
|
|
41
41
|
alg: "HS256",
|
|
42
42
|
typ: "JWT"
|
|
43
43
|
}).sign(secret);
|
|
@@ -35,7 +35,7 @@ export const getCheckoutToken = async function getCheckoutToken2(jwtPayload = {}
|
|
|
35
35
|
carrier,
|
|
36
36
|
basketId: context.basketKey,
|
|
37
37
|
campaignKey: context.campaignKey
|
|
38
|
-
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.
|
|
38
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"7.67.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
|
|
39
39
|
return {
|
|
40
40
|
accessToken: refreshedAccessToken,
|
|
41
41
|
checkoutJwt
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TypeaheadSuggestionsEndpointRequestParameters, TypeaheadSuggestionsEndpointResponseData } from '@scayle/storefront-api';
|
|
2
|
-
import type { SearchV2ResolveEndpointParameters, SearchV2SuggestionsEndpointParameters, SearchV2SuggestionsEndpointResponseData } from '../../types/
|
|
2
|
+
import type { SearchV2ResolveEndpointParameters, SearchV2SuggestionsEndpointParameters, SearchV2SuggestionsEndpointResponseData } from '../../types/sapi/search';
|
|
3
3
|
type SearchWith = TypeaheadSuggestionsEndpointRequestParameters['with'];
|
|
4
4
|
/** @deprecated `searchProducts` is deprecated. Please, use `getSuggestions` or `resolve` RPC methods */
|
|
5
5
|
export declare const searchProducts: ({ term, slug, with: _with, productLimit }: {
|
package/dist/types/index.cjs
CHANGED
|
@@ -85,7 +85,7 @@ Object.keys(_auth).forEach(function (key) {
|
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
87
|
var _storefrontApi = require("@scayle/storefront-api");
|
|
88
|
-
var _basket = require("./
|
|
88
|
+
var _basket = require("./sapi/basket.cjs");
|
|
89
89
|
Object.keys(_basket).forEach(function (key) {
|
|
90
90
|
if (key === "default" || key === "__esModule") return;
|
|
91
91
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -97,7 +97,7 @@ Object.keys(_basket).forEach(function (key) {
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
|
-
var _brand = require("./
|
|
100
|
+
var _brand = require("./sapi/brand.cjs");
|
|
101
101
|
Object.keys(_brand).forEach(function (key) {
|
|
102
102
|
if (key === "default" || key === "__esModule") return;
|
|
103
103
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -109,7 +109,7 @@ Object.keys(_brand).forEach(function (key) {
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
|
-
var _campaign = require("./
|
|
112
|
+
var _campaign = require("./sapi/campaign.cjs");
|
|
113
113
|
Object.keys(_campaign).forEach(function (key) {
|
|
114
114
|
if (key === "default" || key === "__esModule") return;
|
|
115
115
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -121,7 +121,7 @@ Object.keys(_campaign).forEach(function (key) {
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
|
-
var _category = require("./
|
|
124
|
+
var _category = require("./sapi/category.cjs");
|
|
125
125
|
Object.keys(_category).forEach(function (key) {
|
|
126
126
|
if (key === "default" || key === "__esModule") return;
|
|
127
127
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -133,7 +133,7 @@ Object.keys(_category).forEach(function (key) {
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
|
-
var _filter = require("./
|
|
136
|
+
var _filter = require("./sapi/filter.cjs");
|
|
137
137
|
Object.keys(_filter).forEach(function (key) {
|
|
138
138
|
if (key === "default" || key === "__esModule") return;
|
|
139
139
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -145,7 +145,7 @@ Object.keys(_filter).forEach(function (key) {
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
|
-
var _navigation = require("./
|
|
148
|
+
var _navigation = require("./sapi/navigation.cjs");
|
|
149
149
|
Object.keys(_navigation).forEach(function (key) {
|
|
150
150
|
if (key === "default" || key === "__esModule") return;
|
|
151
151
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -157,7 +157,7 @@ Object.keys(_navigation).forEach(function (key) {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
-
var _order = require("./
|
|
160
|
+
var _order = require("./sapi/order.cjs");
|
|
161
161
|
Object.keys(_order).forEach(function (key) {
|
|
162
162
|
if (key === "default" || key === "__esModule") return;
|
|
163
163
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -169,7 +169,7 @@ Object.keys(_order).forEach(function (key) {
|
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
|
-
var _product = require("./
|
|
172
|
+
var _product = require("./sapi/product.cjs");
|
|
173
173
|
Object.keys(_product).forEach(function (key) {
|
|
174
174
|
if (key === "default" || key === "__esModule") return;
|
|
175
175
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -181,7 +181,7 @@ Object.keys(_product).forEach(function (key) {
|
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
});
|
|
184
|
-
var _productFilter = require("./
|
|
184
|
+
var _productFilter = require("./sapi/productFilter.cjs");
|
|
185
185
|
Object.keys(_productFilter).forEach(function (key) {
|
|
186
186
|
if (key === "default" || key === "__esModule") return;
|
|
187
187
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -193,7 +193,7 @@ Object.keys(_productFilter).forEach(function (key) {
|
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
|
-
var _redirects = require("./
|
|
196
|
+
var _redirects = require("./sapi/redirects.cjs");
|
|
197
197
|
Object.keys(_redirects).forEach(function (key) {
|
|
198
198
|
if (key === "default" || key === "__esModule") return;
|
|
199
199
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -205,7 +205,7 @@ Object.keys(_redirects).forEach(function (key) {
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
});
|
|
208
|
-
var _router = require("./
|
|
208
|
+
var _router = require("./sapi/router.cjs");
|
|
209
209
|
Object.keys(_router).forEach(function (key) {
|
|
210
210
|
if (key === "default" || key === "__esModule") return;
|
|
211
211
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -217,7 +217,7 @@ Object.keys(_router).forEach(function (key) {
|
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
|
-
var _search = require("./
|
|
220
|
+
var _search = require("./sapi/search.cjs");
|
|
221
221
|
Object.keys(_search).forEach(function (key) {
|
|
222
222
|
if (key === "default" || key === "__esModule") return;
|
|
223
223
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -229,7 +229,7 @@ Object.keys(_search).forEach(function (key) {
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
});
|
|
232
|
-
var _sorting = require("./
|
|
232
|
+
var _sorting = require("./sapi/sorting.cjs");
|
|
233
233
|
Object.keys(_sorting).forEach(function (key) {
|
|
234
234
|
if (key === "default" || key === "__esModule") return;
|
|
235
235
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -241,7 +241,7 @@ Object.keys(_sorting).forEach(function (key) {
|
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
});
|
|
244
|
-
var _wishlist = require("./
|
|
244
|
+
var _wishlist = require("./sapi/wishlist.cjs");
|
|
245
245
|
Object.keys(_wishlist).forEach(function (key) {
|
|
246
246
|
if (key === "default" || key === "__esModule") return;
|
|
247
247
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -253,7 +253,7 @@ Object.keys(_wishlist).forEach(function (key) {
|
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
});
|
|
256
|
-
var _promotion = require("./
|
|
256
|
+
var _promotion = require("./sapi/promotion.cjs");
|
|
257
257
|
Object.keys(_promotion).forEach(function (key) {
|
|
258
258
|
if (key === "default" || key === "__esModule") return;
|
|
259
259
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,18 +5,18 @@ export * from './api/rpc';
|
|
|
5
5
|
export * from './api/context';
|
|
6
6
|
export * from './api/auth';
|
|
7
7
|
export { StorefrontAPIClient } from '@scayle/storefront-api';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
8
|
+
export * from './sapi/basket';
|
|
9
|
+
export * from './sapi/brand';
|
|
10
|
+
export * from './sapi/campaign';
|
|
11
|
+
export * from './sapi/category';
|
|
12
|
+
export * from './sapi/filter';
|
|
13
|
+
export * from './sapi/navigation';
|
|
14
|
+
export * from './sapi/order';
|
|
15
|
+
export * from './sapi/product';
|
|
16
|
+
export * from './sapi/productFilter';
|
|
17
|
+
export * from './sapi/redirects';
|
|
18
|
+
export * from './sapi/router';
|
|
19
|
+
export * from './sapi/search';
|
|
20
|
+
export * from './sapi/sorting';
|
|
21
|
+
export * from './sapi/wishlist';
|
|
22
|
+
export * from './sapi/promotion';
|
package/dist/types/index.mjs
CHANGED
|
@@ -5,18 +5,18 @@ export * from "./api/rpc.mjs";
|
|
|
5
5
|
export * from "./api/context.mjs";
|
|
6
6
|
export * from "./api/auth.mjs";
|
|
7
7
|
export { StorefrontAPIClient } from "@scayle/storefront-api";
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./
|
|
8
|
+
export * from "./sapi/basket.mjs";
|
|
9
|
+
export * from "./sapi/brand.mjs";
|
|
10
|
+
export * from "./sapi/campaign.mjs";
|
|
11
|
+
export * from "./sapi/category.mjs";
|
|
12
|
+
export * from "./sapi/filter.mjs";
|
|
13
|
+
export * from "./sapi/navigation.mjs";
|
|
14
|
+
export * from "./sapi/order.mjs";
|
|
15
|
+
export * from "./sapi/product.mjs";
|
|
16
|
+
export * from "./sapi/productFilter.mjs";
|
|
17
|
+
export * from "./sapi/redirects.mjs";
|
|
18
|
+
export * from "./sapi/router.mjs";
|
|
19
|
+
export * from "./sapi/search.mjs";
|
|
20
|
+
export * from "./sapi/sorting.mjs";
|
|
21
|
+
export * from "./sapi/wishlist.mjs";
|
|
22
|
+
export * from "./sapi/promotion.mjs";
|
package/dist/types/user.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UseBasketParams } from './
|
|
2
|
-
import type { UseWishlistParams } from './
|
|
1
|
+
import type { UseBasketParams } from './sapi/basket';
|
|
2
|
+
import type { UseWishlistParams } from './sapi/wishlist';
|
|
3
3
|
export type Gender = 'm' | 'f' | 'd';
|
|
4
4
|
export interface UpdatePasswordParams {
|
|
5
5
|
oldPassword: string;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|