@scayle/storefront-core 8.34.1 → 8.35.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-V7.md +1 -1
- package/CHANGELOG.md +16 -1
- package/dist/helpers/categoryHelper.d.ts +1 -1
- package/dist/helpers/categoryHelper.mjs +1 -1
- package/dist/rpc/methods/checkout/checkout.mjs +1 -1
- package/dist/types/sapi/filter.d.ts +2 -2
- package/dist/types/sapi/order.d.ts +3 -3
- package/dist/types/user.d.ts +0 -2
- package/package.json +2 -2
package/CHANGELOG-V7.md
CHANGED
|
@@ -43,7 +43,7 @@ This changelog contains all changes of `@scayle/storefront-core` above v6.0.0 an
|
|
|
43
43
|
|
|
44
44
|
### Minor Changes
|
|
45
45
|
|
|
46
|
-
- Set `sapiClient` in `RpcContext` as required to improve the
|
|
46
|
+
- Set `sapiClient` in `RpcContext` as required to improve the upgradability of RPC methods.
|
|
47
47
|
|
|
48
48
|
## 7.67.1
|
|
49
49
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @scayle/storefront-core
|
|
2
2
|
|
|
3
|
+
## 8.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Removed optional key `fbook` from `ShopUser` interface
|
|
8
|
+
- Renamed incorrectly formatted function `getBackurlFromBreadcrumbs` to `getBackURLFromBreadcrumbs`
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Renamed interface incorrectly named `IdenfitierFilterItemWithValues` to `IdentifierFilterItemWithValues`
|
|
13
|
+
|
|
14
|
+
**Dependencies**
|
|
15
|
+
|
|
16
|
+
- Updated dependency to @scayle/storefront-api@18.10.0
|
|
17
|
+
|
|
3
18
|
## 8.34.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -337,7 +352,7 @@ No changes in this release.
|
|
|
337
352
|
- `FilterItemWithValues`
|
|
338
353
|
- `BooleanFilterItemWithValues`
|
|
339
354
|
- `RangeFilterItemWithValues`
|
|
340
|
-
- `
|
|
355
|
+
- `IdentifierFilterItemWithValues`
|
|
341
356
|
- `AttributesFilterValue`
|
|
342
357
|
|
|
343
358
|
## 8.20.1
|
|
@@ -42,4 +42,4 @@ export declare const getBreadcrumbs: (categories: ProductCategory[] | Category,
|
|
|
42
42
|
*
|
|
43
43
|
* @returns The back URL or '/' if breadcrumbs is undefined or empty.
|
|
44
44
|
*/
|
|
45
|
-
export declare const
|
|
45
|
+
export declare const getBackURLFromBreadcrumbs: (breadcrumbs?: BreadcrumbItem[]) => string;
|
|
@@ -39,6 +39,6 @@ export const getBreadcrumbsFromPath = (path = "", shopLocale = "") => {
|
|
|
39
39
|
export const getBreadcrumbs = (categories, activeNode) => {
|
|
40
40
|
return Array.isArray(categories) ? getBreadcrumbsFromProductCategories(categories) : getBreadcrumbsFromCategory(categories, activeNode);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const getBackURLFromBreadcrumbs = (breadcrumbs) => {
|
|
43
43
|
return breadcrumbs?.[breadcrumbs?.length - 1].to ?? "/";
|
|
44
44
|
};
|
|
@@ -37,7 +37,7 @@ export const getCheckoutToken = defineRpcHandler(async (jwtPayload = {}, context
|
|
|
37
37
|
carrier,
|
|
38
38
|
basketId: context.basketKey,
|
|
39
39
|
campaignKey
|
|
40
|
-
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.
|
|
40
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.35.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
|
|
41
41
|
return {
|
|
42
42
|
accessToken: refreshedAccessToken,
|
|
43
43
|
checkoutJwt
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AttributeWithBooleanValueFilter, AttributeWithValuesFilter, FiltersEndpointResponseData, ProductSearchQuery, ProductSortConfig, ProductsSearchEndpointParameters } from '@scayle/storefront-api';
|
|
2
2
|
import type { Query } from './router';
|
|
3
|
-
export type { FilterItemWithValues, BooleanFilterItemWithValues, AttributesFilterItemWithValues, RangeFilterItemWithValues,
|
|
3
|
+
export type { FilterItemWithValues, BooleanFilterItemWithValues, AttributesFilterItemWithValues, RangeFilterItemWithValues, IdentifierFilterItemWithValues, AttributesFilterValue, AttributeWithBooleanValueFilter, AttributeWithValuesFilter, AttributeKey, } from '@scayle/storefront-api';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for filtering products.
|
|
6
6
|
*/
|
|
@@ -30,7 +30,7 @@ export interface FilterParams {
|
|
|
30
30
|
*/
|
|
31
31
|
export type FetchFiltersParams = {
|
|
32
32
|
includedFilters?: Array<string>;
|
|
33
|
-
/** where clause for
|
|
33
|
+
/** where clause for pre-filtering the filters */
|
|
34
34
|
where?: {
|
|
35
35
|
/** The search term. */
|
|
36
36
|
term?: ProductSearchQuery['term'];
|
|
@@ -30,7 +30,7 @@ export type ListOfPackages = {
|
|
|
30
30
|
};
|
|
31
31
|
}[];
|
|
32
32
|
/**
|
|
33
|
-
* When an item cannot be shipped within the regular delivery
|
|
33
|
+
* When an item cannot be shipped within the regular delivery time frame,
|
|
34
34
|
* and the warehouse is already aware of this, prior to the customer placing the
|
|
35
35
|
* order (ie it is not an unintentionally delayed delivery).
|
|
36
36
|
* This is generally the case when the item is out of stock and:
|
|
@@ -104,7 +104,7 @@ export interface OrderForwardAddress {
|
|
|
104
104
|
export type OrderStatus = 'order_open' | 'payment_pending' | 'payment_reserved' | 'invoice_completed' | 'cancellation_pending' | 'cancellation_completed' | 'invoice_partially_completed';
|
|
105
105
|
export type OrderStatusCode = 'order_created' | 'order_open' | 'order_pended' | 'order_confirmed' | 'order_delegated' | 'order_shipped' | 'order_invoiced' | 'order_aborted' | 'order_cancelled' | 'order_imported' | 'order_invoice_error';
|
|
106
106
|
export type BillingStatusCode = 'billing_open' | 'billing_pending' | 'billing_payment_pending' | 'billing_completed' | 'billing_payment_cancelled' | 'billing_partially_refunded' | 'billing_refunded';
|
|
107
|
-
export type ShippingStatusCode = 'shipping_open' | '
|
|
107
|
+
export type ShippingStatusCode = 'shipping_open' | 'shipping_not_deliverable' | 'shipping_ordered' | 'shipping_delivered' | 'shipping_cancelled' | 'shipping_undeliverable' | 'shipping_returned' | 'shipping_partially_returned' | 'shipping_partially_undeliverable';
|
|
108
108
|
export interface OrderItem<Product = Record<string, unknown>, Variant = Record<string, unknown>> {
|
|
109
109
|
id?: string;
|
|
110
110
|
/**
|
|
@@ -307,7 +307,7 @@ export interface Order<Product = Record<string, unknown>, Variant = Record<strin
|
|
|
307
307
|
*/
|
|
308
308
|
withoutTax: CentAmount;
|
|
309
309
|
/**
|
|
310
|
-
* The price is calculated including taxes and all applicable reductions such as discounts for sale and campaigns (should a campaign key be
|
|
310
|
+
* The price is calculated including taxes and all applicable reductions such as discounts for sale and campaigns (should a campaign key be provided on the request).
|
|
311
311
|
*/
|
|
312
312
|
withTax: CentAmount;
|
|
313
313
|
};
|
package/dist/types/user.d.ts
CHANGED
|
@@ -166,8 +166,6 @@ export interface ShopUser {
|
|
|
166
166
|
updatedAt: string;
|
|
167
167
|
/** The user's email address. */
|
|
168
168
|
email?: string;
|
|
169
|
-
/** Whether user has a connected facebook account*/
|
|
170
|
-
fbook?: boolean;
|
|
171
169
|
/** The user's ID. */
|
|
172
170
|
id: number;
|
|
173
171
|
/** Whether the user is a guest. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.35.0",
|
|
4
4
|
"description": "Collection of essential utilities to work with the Storefront API",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"ufo": "^1.5.3",
|
|
57
57
|
"uncrypto": "^0.1.3",
|
|
58
58
|
"utility-types": "^3.11.0",
|
|
59
|
-
"@scayle/storefront-api": "18.
|
|
59
|
+
"@scayle/storefront-api": "18.10.0",
|
|
60
60
|
"@scayle/unstorage-scayle-kv-driver": "1.0.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|