@scayle/storefront-nuxt 7.84.1 → 7.84.3
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 +16 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/core/useAvailableShops.d.ts +1 -1
- package/dist/runtime/composables/core/useIDP.d.ts +11 -7
- package/dist/runtime/composables/core/useUser.d.ts +6 -6
- package/dist/runtime/composables/storefront/useBasket.d.ts +12 -10
- package/dist/runtime/composables/storefront/useBasket.mjs +7 -0
- package/dist/runtime/composables/storefront/useCategories.d.ts +18 -6
- package/dist/runtime/composables/storefront/useCurrentPromotions.d.ts +2 -2
- package/dist/runtime/composables/storefront/useFacet.d.ts +28 -24
- package/dist/runtime/composables/storefront/useOrder.d.ts +144 -6
- package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +144 -6
- package/dist/runtime/composables/storefront/useProduct.d.ts +2 -2
- package/dist/runtime/composables/storefront/useProducts.d.ts +2 -2
- package/dist/runtime/composables/storefront/useProductsByIds.d.ts +2 -2
- package/dist/runtime/composables/storefront/useProductsByReferenceKeys.d.ts +2 -2
- package/dist/runtime/composables/storefront/usePromotions.d.ts +2 -2
- package/dist/runtime/composables/storefront/usePromotionsByIds.d.ts +2 -2
- package/dist/runtime/composables/storefront/useSearch.d.ts +4 -4
- package/dist/runtime/composables/storefront/useStorefrontSearch.d.ts +4 -4
- package/dist/runtime/composables/storefront/useVariant.d.ts +2 -2
- package/dist/runtime/composables/storefront/useWishlist.d.ts +8 -8
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.84.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
-
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @scayle/storefront-core@7.64.0
|
|
10
|
+
|
|
11
|
+
## 7.84.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Add support for removing basket items using their item key
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @scayle/storefront-core@7.63.1
|
|
18
|
+
|
|
3
19
|
## 7.84.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PublicShopConfig } from '../../../module';
|
|
2
|
-
export declare function useAvailableShops(): import("vue").Ref<PublicShopConfig[]>;
|
|
2
|
+
export declare function useAvailableShops(): import("vue").Ref<PublicShopConfig[], PublicShopConfig[]>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MaybeRefOrGetter } from 'vue';
|
|
2
2
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
3
3
|
export declare function useIDP(params?: MaybeRefOrGetter<RpcMethodParameters<'getExternalIdpRedirect'>>, key?: string): {
|
|
4
4
|
data: import("vue").Ref<{
|
|
5
5
|
[k: string]: string;
|
|
6
|
+
}, {
|
|
7
|
+
[k: string]: string;
|
|
6
8
|
}>;
|
|
7
9
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
8
|
-
fetching: import("vue").Ref<boolean>;
|
|
9
|
-
error: import("vue").Ref<any>;
|
|
10
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
11
|
+
error: import("vue").Ref<any, any>;
|
|
10
12
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
11
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
13
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
12
14
|
handleIDPLoginCallback: (params: string | {
|
|
13
15
|
code: string;
|
|
14
16
|
}) => Promise<{
|
|
@@ -17,12 +19,14 @@ export declare function useIDP(params?: MaybeRefOrGetter<RpcMethodParameters<'ge
|
|
|
17
19
|
} & Promise<{
|
|
18
20
|
data: import("vue").Ref<{
|
|
19
21
|
[k: string]: string;
|
|
22
|
+
}, {
|
|
23
|
+
[k: string]: string;
|
|
20
24
|
}>;
|
|
21
25
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
22
|
-
fetching: import("vue").Ref<boolean>;
|
|
23
|
-
error: import("vue").Ref<any>;
|
|
26
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
27
|
+
error: import("vue").Ref<any, any>;
|
|
24
28
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
25
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
29
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
26
30
|
handleIDPLoginCallback: (params: string | {
|
|
27
31
|
code: string;
|
|
28
32
|
}) => Promise<{
|
|
@@ -10,22 +10,22 @@ export declare function useUser(options?: ExtendedUseUserParams): {
|
|
|
10
10
|
user: import("vue").ComputedRef<ShopUser | undefined>;
|
|
11
11
|
isLoggedIn: import("vue").ComputedRef<boolean>;
|
|
12
12
|
customerType: import("vue").ComputedRef<"guest" | "new" | "existing">;
|
|
13
|
-
fetching: import("vue").Ref<boolean>;
|
|
13
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
14
14
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
15
15
|
forceRefresh: () => Promise<void>;
|
|
16
16
|
updateUser: (payload: Partial<ShopUser>) => Promise<void>;
|
|
17
17
|
updatePassword: (payload: UpdatePasswordParams) => Promise<void>;
|
|
18
|
-
error: import("vue").Ref<any>;
|
|
19
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
18
|
+
error: import("vue").Ref<any, any>;
|
|
19
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
20
20
|
} & Promise<{
|
|
21
21
|
user: import("vue").ComputedRef<ShopUser | undefined>;
|
|
22
22
|
isLoggedIn: import("vue").ComputedRef<boolean>;
|
|
23
23
|
customerType: import("vue").ComputedRef<"guest" | "new" | "existing">;
|
|
24
|
-
fetching: import("vue").Ref<boolean>;
|
|
24
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
25
25
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
26
26
|
forceRefresh: () => Promise<void>;
|
|
27
27
|
updateUser: (payload: Partial<ShopUser>) => Promise<void>;
|
|
28
28
|
updatePassword: (payload: UpdatePasswordParams) => Promise<void>;
|
|
29
|
-
error: import("vue").Ref<any>;
|
|
30
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
29
|
+
error: import("vue").Ref<any, any>;
|
|
30
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
31
31
|
}>;
|
|
@@ -6,15 +6,15 @@ type UseBasketOptions = Partial<{
|
|
|
6
6
|
key: string;
|
|
7
7
|
}>;
|
|
8
8
|
export declare function useBasket({ params, key, }?: UseBasketOptions): {
|
|
9
|
-
data: import("vue").Ref<BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>>;
|
|
9
|
+
data: import("vue").Ref<BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>, BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>>;
|
|
10
10
|
items: import("vue").ComputedRef<import("@scayle/storefront-api").BasketItem<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>[]>;
|
|
11
11
|
cost: import("vue").ComputedRef<import("@scayle/storefront-api").BasketTotalPrice>;
|
|
12
12
|
key: import("vue").ComputedRef<import("@scayle/storefront-api").BasketKey>;
|
|
13
13
|
packages: import("vue").ComputedRef<import("@scayle/storefront-api").BasketPackageInformation[]>;
|
|
14
14
|
shippingDates: import("vue").ComputedRef<(string | null)[] | undefined>;
|
|
15
15
|
isEmpty: import("vue").ComputedRef<boolean>;
|
|
16
|
-
fetching: import("vue").Ref<boolean>;
|
|
17
|
-
pending: import("vue").Ref<boolean>;
|
|
16
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
pending: import("vue").Ref<boolean, boolean>;
|
|
18
18
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
19
19
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
20
20
|
count: import("vue").ComputedRef<number>;
|
|
@@ -26,6 +26,7 @@ export declare function useBasket({ params, key, }?: UseBasketOptions): {
|
|
|
26
26
|
removeItem: (item: {
|
|
27
27
|
variantId: number;
|
|
28
28
|
}) => Promise<void>;
|
|
29
|
+
removeItemByKey: (itemKey: string) => Promise<void>;
|
|
29
30
|
clear: () => Promise<void>;
|
|
30
31
|
contains: (item: {
|
|
31
32
|
variantId: number;
|
|
@@ -60,18 +61,18 @@ export declare function useBasket({ params, key, }?: UseBasketOptions): {
|
|
|
60
61
|
readonly basket: BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>;
|
|
61
62
|
readonly errors: import("@scayle/storefront-api").AddOrUpdateItemError[];
|
|
62
63
|
} | undefined>;
|
|
63
|
-
error: import("vue").Ref<any>;
|
|
64
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
64
|
+
error: import("vue").Ref<any, any>;
|
|
65
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
65
66
|
} & Promise<{
|
|
66
|
-
data: import("vue").Ref<BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>>;
|
|
67
|
+
data: import("vue").Ref<BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>, BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>>;
|
|
67
68
|
items: import("vue").ComputedRef<import("@scayle/storefront-api").BasketItem<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>[]>;
|
|
68
69
|
cost: import("vue").ComputedRef<import("@scayle/storefront-api").BasketTotalPrice>;
|
|
69
70
|
key: import("vue").ComputedRef<import("@scayle/storefront-api").BasketKey>;
|
|
70
71
|
packages: import("vue").ComputedRef<import("@scayle/storefront-api").BasketPackageInformation[]>;
|
|
71
72
|
shippingDates: import("vue").ComputedRef<(string | null)[] | undefined>;
|
|
72
73
|
isEmpty: import("vue").ComputedRef<boolean>;
|
|
73
|
-
fetching: import("vue").Ref<boolean>;
|
|
74
|
-
pending: import("vue").Ref<boolean>;
|
|
74
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
75
|
+
pending: import("vue").Ref<boolean, boolean>;
|
|
75
76
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
76
77
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
77
78
|
count: import("vue").ComputedRef<number>;
|
|
@@ -83,6 +84,7 @@ export declare function useBasket({ params, key, }?: UseBasketOptions): {
|
|
|
83
84
|
removeItem: (item: {
|
|
84
85
|
variantId: number;
|
|
85
86
|
}) => Promise<void>;
|
|
87
|
+
removeItemByKey: (itemKey: string) => Promise<void>;
|
|
86
88
|
clear: () => Promise<void>;
|
|
87
89
|
contains: (item: {
|
|
88
90
|
variantId: number;
|
|
@@ -117,7 +119,7 @@ export declare function useBasket({ params, key, }?: UseBasketOptions): {
|
|
|
117
119
|
readonly basket: BasketResponseData<import("@scayle/storefront-api").Product, import("@scayle/storefront-api").Variant>;
|
|
118
120
|
readonly errors: import("@scayle/storefront-api").AddOrUpdateItemError[];
|
|
119
121
|
} | undefined>;
|
|
120
|
-
error: import("vue").Ref<any>;
|
|
121
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
122
|
+
error: import("vue").Ref<any, any>;
|
|
123
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
122
124
|
}>;
|
|
123
125
|
export {};
|
|
@@ -96,6 +96,12 @@ export function useBasket({
|
|
|
96
96
|
with: toValue(params)
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
+
const removeItemByKey = async (itemKey) => {
|
|
100
|
+
data.value = await removeItemFromBasketRpc({
|
|
101
|
+
itemKey,
|
|
102
|
+
with: toValue(params)
|
|
103
|
+
});
|
|
104
|
+
};
|
|
99
105
|
const clear = async () => {
|
|
100
106
|
await clearBasketRpc();
|
|
101
107
|
};
|
|
@@ -163,6 +169,7 @@ export function useBasket({
|
|
|
163
169
|
addItem,
|
|
164
170
|
addItems,
|
|
165
171
|
removeItem,
|
|
172
|
+
removeItemByKey,
|
|
166
173
|
clear,
|
|
167
174
|
contains,
|
|
168
175
|
products,
|
|
@@ -14,11 +14,17 @@ export declare function useCategories({ params, options, key: _key, }?: Options,
|
|
|
14
14
|
} | {
|
|
15
15
|
categories: import("@scayle/storefront-api").Category;
|
|
16
16
|
activeNode: import("@scayle/storefront-api").Category;
|
|
17
|
+
}, {
|
|
18
|
+
categories: import("@scayle/storefront-api").Category[];
|
|
19
|
+
activeNode: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
categories: import("@scayle/storefront-api").Category;
|
|
22
|
+
activeNode: import("@scayle/storefront-api").Category;
|
|
17
23
|
}>;
|
|
18
|
-
error: import("vue").Ref<any>;
|
|
19
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
24
|
+
error: import("vue").Ref<any, any>;
|
|
25
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
20
26
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
21
|
-
fetching: import("vue").Ref<boolean>;
|
|
27
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
22
28
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
23
29
|
getCategoryById: (id: number, includeHidden?: true) => Promise<import("@scayle/storefront-api").Category>;
|
|
24
30
|
} & Promise<{
|
|
@@ -28,11 +34,17 @@ export declare function useCategories({ params, options, key: _key, }?: Options,
|
|
|
28
34
|
} | {
|
|
29
35
|
categories: import("@scayle/storefront-api").Category;
|
|
30
36
|
activeNode: import("@scayle/storefront-api").Category;
|
|
37
|
+
}, {
|
|
38
|
+
categories: import("@scayle/storefront-api").Category[];
|
|
39
|
+
activeNode: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
categories: import("@scayle/storefront-api").Category;
|
|
42
|
+
activeNode: import("@scayle/storefront-api").Category;
|
|
31
43
|
}>;
|
|
32
|
-
error: import("vue").Ref<any>;
|
|
33
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
44
|
+
error: import("vue").Ref<any, any>;
|
|
45
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
34
46
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
35
|
-
fetching: import("vue").Ref<boolean>;
|
|
47
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
36
48
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
37
49
|
getCategoryById: (id: number, includeHidden?: true) => Promise<import("@scayle/storefront-api").Category>;
|
|
38
50
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getCurrentPromotions'>>;
|
|
6
6
|
options: UseRpcOptions<'getCurrentPromotions'>;
|
|
@@ -16,17 +16,19 @@ type Options = Partial<{
|
|
|
16
16
|
}>;
|
|
17
17
|
export declare function useFacet({ key: optionsKey, params, }?: Options, _key?: string): {
|
|
18
18
|
filters: import("vue").ComputedRef<import("@scayle/storefront-api").FiltersEndpointResponseData>;
|
|
19
|
-
filtersFetching: import("vue").Ref<boolean>;
|
|
19
|
+
filtersFetching: import("vue").Ref<boolean, boolean>;
|
|
20
20
|
unfilteredCount: import("vue").ComputedRef<number>;
|
|
21
|
-
filterStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
22
|
-
filterError: import("vue").Ref<any>;
|
|
21
|
+
filterStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
22
|
+
filterError: import("vue").Ref<any, any>;
|
|
23
23
|
productCountData: import("vue").Ref<{
|
|
24
24
|
count: number;
|
|
25
|
+
}, {
|
|
26
|
+
count: number;
|
|
25
27
|
}>;
|
|
26
28
|
refreshProductCount: ({ where, }?: FilterParams) => Promise<void>;
|
|
27
|
-
productCountFetching: import("vue").Ref<boolean>;
|
|
28
|
-
productCountError: import("vue").Ref<any>;
|
|
29
|
-
productCountStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
29
|
+
productCountFetching: import("vue").Ref<boolean, boolean>;
|
|
30
|
+
productCountError: import("vue").Ref<any, any>;
|
|
31
|
+
productCountStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
30
32
|
products: import("vue").ComputedRef<import("@scayle/storefront-api").Product[]>;
|
|
31
33
|
pagination: import("vue").ComputedRef<{
|
|
32
34
|
current: number;
|
|
@@ -38,15 +40,15 @@ export declare function useFacet({ key: optionsKey, params, }?: Options, _key?:
|
|
|
38
40
|
next: number;
|
|
39
41
|
last: number;
|
|
40
42
|
}>;
|
|
41
|
-
productsFetching: import("vue").Ref<boolean>;
|
|
43
|
+
productsFetching: import("vue").Ref<boolean, boolean>;
|
|
42
44
|
filterProducts: ({ where, page, sort, orFiltersOperator, }: FilterParams) => Promise<void>;
|
|
43
|
-
productError: import("vue").Ref<any>;
|
|
44
|
-
productStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
45
|
+
productError: import("vue").Ref<any, any>;
|
|
46
|
+
productStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
45
47
|
categories: import("vue").ComputedRef<import("@scayle/storefront-api").Category | import("@scayle/storefront-api").Category[]>;
|
|
46
48
|
selectedCategory: import("vue").ComputedRef<import("@scayle/storefront-api").Category | undefined>;
|
|
47
|
-
categoriesFetching: import("vue").Ref<boolean>;
|
|
48
|
-
categoriesError: import("vue").Ref<any>;
|
|
49
|
-
categoriesStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
49
|
+
categoriesFetching: import("vue").Ref<boolean, boolean>;
|
|
50
|
+
categoriesError: import("vue").Ref<any, any>;
|
|
51
|
+
categoriesStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
50
52
|
fetchProducts: ({ path, page, perPage, where, sort, pricePromotionKey, cache, orFiltersOperator, }: FilterParams & {
|
|
51
53
|
path: string;
|
|
52
54
|
pricePromotionKey?: string;
|
|
@@ -55,17 +57,19 @@ export declare function useFacet({ key: optionsKey, params, }?: Options, _key?:
|
|
|
55
57
|
fetchPage: (pageToFetch: number) => Promise<void>;
|
|
56
58
|
} & Promise<{
|
|
57
59
|
filters: import("vue").ComputedRef<import("@scayle/storefront-api").FiltersEndpointResponseData>;
|
|
58
|
-
filtersFetching: import("vue").Ref<boolean>;
|
|
60
|
+
filtersFetching: import("vue").Ref<boolean, boolean>;
|
|
59
61
|
unfilteredCount: import("vue").ComputedRef<number>;
|
|
60
|
-
filterStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
61
|
-
filterError: import("vue").Ref<any>;
|
|
62
|
+
filterStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
63
|
+
filterError: import("vue").Ref<any, any>;
|
|
62
64
|
productCountData: import("vue").Ref<{
|
|
63
65
|
count: number;
|
|
66
|
+
}, {
|
|
67
|
+
count: number;
|
|
64
68
|
}>;
|
|
65
69
|
refreshProductCount: ({ where, }?: FilterParams) => Promise<void>;
|
|
66
|
-
productCountFetching: import("vue").Ref<boolean>;
|
|
67
|
-
productCountError: import("vue").Ref<any>;
|
|
68
|
-
productCountStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
70
|
+
productCountFetching: import("vue").Ref<boolean, boolean>;
|
|
71
|
+
productCountError: import("vue").Ref<any, any>;
|
|
72
|
+
productCountStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
69
73
|
products: import("vue").ComputedRef<import("@scayle/storefront-api").Product[]>;
|
|
70
74
|
pagination: import("vue").ComputedRef<{
|
|
71
75
|
current: number;
|
|
@@ -77,15 +81,15 @@ export declare function useFacet({ key: optionsKey, params, }?: Options, _key?:
|
|
|
77
81
|
next: number;
|
|
78
82
|
last: number;
|
|
79
83
|
}>;
|
|
80
|
-
productsFetching: import("vue").Ref<boolean>;
|
|
84
|
+
productsFetching: import("vue").Ref<boolean, boolean>;
|
|
81
85
|
filterProducts: ({ where, page, sort, orFiltersOperator, }: FilterParams) => Promise<void>;
|
|
82
|
-
productError: import("vue").Ref<any>;
|
|
83
|
-
productStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
86
|
+
productError: import("vue").Ref<any, any>;
|
|
87
|
+
productStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
84
88
|
categories: import("vue").ComputedRef<import("@scayle/storefront-api").Category | import("@scayle/storefront-api").Category[]>;
|
|
85
89
|
selectedCategory: import("vue").ComputedRef<import("@scayle/storefront-api").Category | undefined>;
|
|
86
|
-
categoriesFetching: import("vue").Ref<boolean>;
|
|
87
|
-
categoriesError: import("vue").Ref<any>;
|
|
88
|
-
categoriesStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
90
|
+
categoriesFetching: import("vue").Ref<boolean, boolean>;
|
|
91
|
+
categoriesError: import("vue").Ref<any, any>;
|
|
92
|
+
categoriesStatus: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
89
93
|
fetchProducts: ({ path, page, perPage, where, sort, pricePromotionKey, cache, orFiltersOperator, }: FilterParams & {
|
|
90
94
|
path: string;
|
|
91
95
|
pricePromotionKey?: string;
|
|
@@ -81,12 +81,81 @@ export declare function useOrder<P = {
|
|
|
81
81
|
product: P;
|
|
82
82
|
variant: V;
|
|
83
83
|
})[];
|
|
84
|
+
}, Order & {
|
|
85
|
+
items?: ({
|
|
86
|
+
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
87
|
+
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
88
|
+
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
89
|
+
customData?: {
|
|
90
|
+
[k: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
93
|
+
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
94
|
+
itemGroup?: null | {
|
|
95
|
+
id: string;
|
|
96
|
+
isMainItem: boolean;
|
|
97
|
+
isRequired: boolean;
|
|
98
|
+
};
|
|
99
|
+
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
100
|
+
lowestPriorPrice?: null | {
|
|
101
|
+
relativeDifferenceToPrice: number;
|
|
102
|
+
withTax: number;
|
|
103
|
+
};
|
|
104
|
+
merchant?: {
|
|
105
|
+
id: number;
|
|
106
|
+
[k: string]: unknown;
|
|
107
|
+
};
|
|
108
|
+
packageId: import("@scayle/storefront-core").PackageReference;
|
|
109
|
+
price: {
|
|
110
|
+
appliedReductions?: {
|
|
111
|
+
amount: {
|
|
112
|
+
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
113
|
+
relative: number;
|
|
114
|
+
};
|
|
115
|
+
category: "sale" | "campaign" | "voucher";
|
|
116
|
+
code?: string;
|
|
117
|
+
type: "relative" | "absolute";
|
|
118
|
+
}[];
|
|
119
|
+
overrideWithoutTax?: number;
|
|
120
|
+
overrideWithTax?: number;
|
|
121
|
+
reference?: {
|
|
122
|
+
size?: string;
|
|
123
|
+
unit?: string;
|
|
124
|
+
withTax?: number;
|
|
125
|
+
};
|
|
126
|
+
tax: {
|
|
127
|
+
[k: string]: {
|
|
128
|
+
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
129
|
+
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
133
|
+
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
134
|
+
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
135
|
+
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
136
|
+
};
|
|
137
|
+
product: {
|
|
138
|
+
[k: string]: unknown;
|
|
139
|
+
};
|
|
140
|
+
reservationKey?: string;
|
|
141
|
+
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
142
|
+
variant: {
|
|
143
|
+
[k: string]: unknown;
|
|
144
|
+
};
|
|
145
|
+
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
146
|
+
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
147
|
+
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
148
|
+
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
149
|
+
} & {
|
|
150
|
+
product: P;
|
|
151
|
+
variant: V;
|
|
152
|
+
})[];
|
|
84
153
|
}>;
|
|
85
154
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
86
|
-
fetching: Ref<boolean>;
|
|
87
|
-
error: Ref<any>;
|
|
155
|
+
fetching: Ref<boolean, boolean>;
|
|
156
|
+
error: Ref<any, any>;
|
|
88
157
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
89
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
158
|
+
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
90
159
|
} & Promise<{
|
|
91
160
|
data: Ref<Order & {
|
|
92
161
|
items?: ({
|
|
@@ -157,11 +226,80 @@ export declare function useOrder<P = {
|
|
|
157
226
|
product: P;
|
|
158
227
|
variant: V;
|
|
159
228
|
})[];
|
|
229
|
+
}, Order & {
|
|
230
|
+
items?: ({
|
|
231
|
+
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
232
|
+
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
233
|
+
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
234
|
+
customData?: {
|
|
235
|
+
[k: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
238
|
+
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
239
|
+
itemGroup?: null | {
|
|
240
|
+
id: string;
|
|
241
|
+
isMainItem: boolean;
|
|
242
|
+
isRequired: boolean;
|
|
243
|
+
};
|
|
244
|
+
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
245
|
+
lowestPriorPrice?: null | {
|
|
246
|
+
relativeDifferenceToPrice: number;
|
|
247
|
+
withTax: number;
|
|
248
|
+
};
|
|
249
|
+
merchant?: {
|
|
250
|
+
id: number;
|
|
251
|
+
[k: string]: unknown;
|
|
252
|
+
};
|
|
253
|
+
packageId: import("@scayle/storefront-core").PackageReference;
|
|
254
|
+
price: {
|
|
255
|
+
appliedReductions?: {
|
|
256
|
+
amount: {
|
|
257
|
+
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
258
|
+
relative: number;
|
|
259
|
+
};
|
|
260
|
+
category: "sale" | "campaign" | "voucher";
|
|
261
|
+
code?: string;
|
|
262
|
+
type: "relative" | "absolute";
|
|
263
|
+
}[];
|
|
264
|
+
overrideWithoutTax?: number;
|
|
265
|
+
overrideWithTax?: number;
|
|
266
|
+
reference?: {
|
|
267
|
+
size?: string;
|
|
268
|
+
unit?: string;
|
|
269
|
+
withTax?: number;
|
|
270
|
+
};
|
|
271
|
+
tax: {
|
|
272
|
+
[k: string]: {
|
|
273
|
+
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
274
|
+
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
278
|
+
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
279
|
+
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
280
|
+
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
281
|
+
};
|
|
282
|
+
product: {
|
|
283
|
+
[k: string]: unknown;
|
|
284
|
+
};
|
|
285
|
+
reservationKey?: string;
|
|
286
|
+
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
287
|
+
variant: {
|
|
288
|
+
[k: string]: unknown;
|
|
289
|
+
};
|
|
290
|
+
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
291
|
+
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
292
|
+
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
293
|
+
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
294
|
+
} & {
|
|
295
|
+
product: P;
|
|
296
|
+
variant: V;
|
|
297
|
+
})[];
|
|
160
298
|
}>;
|
|
161
299
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
162
|
-
fetching: Ref<boolean>;
|
|
163
|
-
error: Ref<any>;
|
|
300
|
+
fetching: Ref<boolean, boolean>;
|
|
301
|
+
error: Ref<any, any>;
|
|
164
302
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
165
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
303
|
+
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
166
304
|
}>;
|
|
167
305
|
export {};
|
|
@@ -13,10 +13,10 @@ export declare function useOrderConfirmation<P = {
|
|
|
13
13
|
[k: string]: unknown;
|
|
14
14
|
}>({ params, options, key: _key }?: Options, key?: string): {
|
|
15
15
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
16
|
-
fetching: Ref<boolean>;
|
|
17
|
-
error: Ref<any>;
|
|
16
|
+
fetching: Ref<boolean, boolean>;
|
|
17
|
+
error: Ref<any, any>;
|
|
18
18
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
19
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
19
|
+
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
20
20
|
data: Ref<Order & {
|
|
21
21
|
items?: ({
|
|
22
22
|
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
@@ -86,13 +86,82 @@ export declare function useOrderConfirmation<P = {
|
|
|
86
86
|
product: P;
|
|
87
87
|
variant: V;
|
|
88
88
|
})[];
|
|
89
|
+
}, Order & {
|
|
90
|
+
items?: ({
|
|
91
|
+
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
92
|
+
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
93
|
+
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
94
|
+
customData?: {
|
|
95
|
+
[k: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
98
|
+
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
99
|
+
itemGroup?: null | {
|
|
100
|
+
id: string;
|
|
101
|
+
isMainItem: boolean;
|
|
102
|
+
isRequired: boolean;
|
|
103
|
+
};
|
|
104
|
+
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
105
|
+
lowestPriorPrice?: null | {
|
|
106
|
+
relativeDifferenceToPrice: number;
|
|
107
|
+
withTax: number;
|
|
108
|
+
};
|
|
109
|
+
merchant?: {
|
|
110
|
+
id: number;
|
|
111
|
+
[k: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
packageId: import("@scayle/storefront-core").PackageReference;
|
|
114
|
+
price: {
|
|
115
|
+
appliedReductions?: {
|
|
116
|
+
amount: {
|
|
117
|
+
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
118
|
+
relative: number;
|
|
119
|
+
};
|
|
120
|
+
category: "sale" | "campaign" | "voucher";
|
|
121
|
+
code?: string;
|
|
122
|
+
type: "relative" | "absolute";
|
|
123
|
+
}[];
|
|
124
|
+
overrideWithoutTax?: number;
|
|
125
|
+
overrideWithTax?: number;
|
|
126
|
+
reference?: {
|
|
127
|
+
size?: string;
|
|
128
|
+
unit?: string;
|
|
129
|
+
withTax?: number;
|
|
130
|
+
};
|
|
131
|
+
tax: {
|
|
132
|
+
[k: string]: {
|
|
133
|
+
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
134
|
+
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
138
|
+
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
139
|
+
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
140
|
+
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
141
|
+
};
|
|
142
|
+
product: {
|
|
143
|
+
[k: string]: unknown;
|
|
144
|
+
};
|
|
145
|
+
reservationKey?: string;
|
|
146
|
+
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
147
|
+
variant: {
|
|
148
|
+
[k: string]: unknown;
|
|
149
|
+
};
|
|
150
|
+
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
151
|
+
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
152
|
+
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
153
|
+
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
154
|
+
} & {
|
|
155
|
+
product: P;
|
|
156
|
+
variant: V;
|
|
157
|
+
})[];
|
|
89
158
|
}>;
|
|
90
159
|
} & Promise<{
|
|
91
160
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
92
|
-
fetching: Ref<boolean>;
|
|
93
|
-
error: Ref<any>;
|
|
161
|
+
fetching: Ref<boolean, boolean>;
|
|
162
|
+
error: Ref<any, any>;
|
|
94
163
|
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
95
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
164
|
+
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
96
165
|
data: Ref<Order & {
|
|
97
166
|
items?: ({
|
|
98
167
|
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
@@ -162,6 +231,75 @@ export declare function useOrderConfirmation<P = {
|
|
|
162
231
|
product: P;
|
|
163
232
|
variant: V;
|
|
164
233
|
})[];
|
|
234
|
+
}, Order & {
|
|
235
|
+
items?: ({
|
|
236
|
+
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
237
|
+
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
238
|
+
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
239
|
+
customData?: {
|
|
240
|
+
[k: string]: unknown;
|
|
241
|
+
};
|
|
242
|
+
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
243
|
+
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
244
|
+
itemGroup?: null | {
|
|
245
|
+
id: string;
|
|
246
|
+
isMainItem: boolean;
|
|
247
|
+
isRequired: boolean;
|
|
248
|
+
};
|
|
249
|
+
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
250
|
+
lowestPriorPrice?: null | {
|
|
251
|
+
relativeDifferenceToPrice: number;
|
|
252
|
+
withTax: number;
|
|
253
|
+
};
|
|
254
|
+
merchant?: {
|
|
255
|
+
id: number;
|
|
256
|
+
[k: string]: unknown;
|
|
257
|
+
};
|
|
258
|
+
packageId: import("@scayle/storefront-core").PackageReference;
|
|
259
|
+
price: {
|
|
260
|
+
appliedReductions?: {
|
|
261
|
+
amount: {
|
|
262
|
+
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
263
|
+
relative: number;
|
|
264
|
+
};
|
|
265
|
+
category: "sale" | "campaign" | "voucher";
|
|
266
|
+
code?: string;
|
|
267
|
+
type: "relative" | "absolute";
|
|
268
|
+
}[];
|
|
269
|
+
overrideWithoutTax?: number;
|
|
270
|
+
overrideWithTax?: number;
|
|
271
|
+
reference?: {
|
|
272
|
+
size?: string;
|
|
273
|
+
unit?: string;
|
|
274
|
+
withTax?: number;
|
|
275
|
+
};
|
|
276
|
+
tax: {
|
|
277
|
+
[k: string]: {
|
|
278
|
+
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
279
|
+
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
283
|
+
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
284
|
+
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
285
|
+
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
286
|
+
};
|
|
287
|
+
product: {
|
|
288
|
+
[k: string]: unknown;
|
|
289
|
+
};
|
|
290
|
+
reservationKey?: string;
|
|
291
|
+
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
292
|
+
variant: {
|
|
293
|
+
[k: string]: unknown;
|
|
294
|
+
};
|
|
295
|
+
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
296
|
+
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
297
|
+
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
298
|
+
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
299
|
+
} & {
|
|
300
|
+
product: P;
|
|
301
|
+
variant: V;
|
|
302
|
+
})[];
|
|
165
303
|
}>;
|
|
166
304
|
}>;
|
|
167
305
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getProductById'>>;
|
|
6
6
|
options: UseRpcOptions<'getProductById'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getProductsByCategory'>>;
|
|
6
6
|
options: UseRpcOptions<'getProductsByCategory'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getProductsByIds'>>;
|
|
6
6
|
options: UseRpcOptions<'getProductsByIds'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getProductsByReferenceKeys'>>;
|
|
6
6
|
options: UseRpcOptions<'getProductsByReferenceKeys'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getPromotions'>>;
|
|
6
6
|
options: UseRpcOptions<'getPromotions'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getPromotionsByIds'>>;
|
|
6
6
|
options: UseRpcOptions<'getPromotionsByIds'>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SearchInput, SearchOptions, TypeaheadSuggestionsEndpointResponseData } from '@scayle/storefront-core';
|
|
2
2
|
type Options = Partial<{
|
|
3
3
|
params: SearchOptions;
|
|
4
4
|
key: string;
|
|
5
5
|
}>;
|
|
6
6
|
/** @deprecated `useSearch` is deprecated. Please, use `useSearchSuggestions` or `useSearchResolve` */
|
|
7
7
|
export declare function useSearch({ params, key }?: Options): {
|
|
8
|
-
data: import("vue").Ref<TypeaheadSuggestionsEndpointResponseData | undefined>;
|
|
9
|
-
pending: import("vue").Ref<boolean>;
|
|
10
|
-
searchQuery: import("vue").Ref<string>;
|
|
8
|
+
data: import("vue").Ref<TypeaheadSuggestionsEndpointResponseData | undefined, TypeaheadSuggestionsEndpointResponseData | undefined>;
|
|
9
|
+
pending: import("vue").Ref<boolean, boolean>;
|
|
10
|
+
searchQuery: import("vue").Ref<string, string>;
|
|
11
11
|
resetSearch: () => void;
|
|
12
12
|
search: ({ term, slug, productLimit }: SearchInput) => Promise<void>;
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { SearchV2SuggestionsEndpointResponseData, SearchV2With } from '@scayle/storefront-core';
|
|
2
|
+
import type { Ref } from '#imports';
|
|
3
3
|
export type SearchOptions = Partial<{
|
|
4
4
|
params: Partial<{
|
|
5
5
|
categoryId: number;
|
|
@@ -8,8 +8,8 @@ export type SearchOptions = Partial<{
|
|
|
8
8
|
key: string;
|
|
9
9
|
}>;
|
|
10
10
|
export declare function useStorefrontSearch(searchQuery: Ref<string>, { params, key }?: SearchOptions): {
|
|
11
|
-
data: import("vue").Ref<SearchV2SuggestionsEndpointResponseData | undefined>;
|
|
12
|
-
pending: import("vue").Ref<boolean>;
|
|
11
|
+
data: import("vue").Ref<SearchV2SuggestionsEndpointResponseData | undefined, SearchV2SuggestionsEndpointResponseData | undefined>;
|
|
12
|
+
pending: import("vue").Ref<boolean, boolean>;
|
|
13
13
|
resetSearch: () => void;
|
|
14
14
|
getSearchSuggestions: () => Promise<void>;
|
|
15
15
|
resolveSearch: () => Promise<import("@scayle/storefront-api").SearchEntity | null | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
2
|
import { type UseRpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
|
-
import {
|
|
3
|
+
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getVariantById'>>;
|
|
6
6
|
options: UseRpcOptions<'getVariantById'>;
|
|
@@ -5,7 +5,7 @@ type Options = Partial<{
|
|
|
5
5
|
key: string;
|
|
6
6
|
}>;
|
|
7
7
|
export declare function useWishlist({ params, key, }?: Options): {
|
|
8
|
-
data: import("vue").Ref<WishlistResponseData>;
|
|
8
|
+
data: import("vue").Ref<WishlistResponseData, WishlistResponseData>;
|
|
9
9
|
count: import("vue").ComputedRef<number>;
|
|
10
10
|
items: import("vue").ComputedRef<WishlistItem[]>;
|
|
11
11
|
products: import("vue").ComputedRef<Product[]>;
|
|
@@ -25,7 +25,7 @@ export declare function useWishlist({ params, key, }?: Options): {
|
|
|
25
25
|
productId?: number;
|
|
26
26
|
}) => Promise<void>;
|
|
27
27
|
clear: () => Promise<void>;
|
|
28
|
-
fetching: import("vue").Ref<boolean>;
|
|
28
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
29
29
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
30
30
|
toggleItem: (item: {
|
|
31
31
|
variantId?: number;
|
|
@@ -40,10 +40,10 @@ export declare function useWishlist({ params, key, }?: Options): {
|
|
|
40
40
|
} | {
|
|
41
41
|
productId: number;
|
|
42
42
|
}) => boolean;
|
|
43
|
-
error: import("vue").Ref<any>;
|
|
44
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
43
|
+
error: import("vue").Ref<any, any>;
|
|
44
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
45
45
|
} & Promise<{
|
|
46
|
-
data: import("vue").Ref<WishlistResponseData>;
|
|
46
|
+
data: import("vue").Ref<WishlistResponseData, WishlistResponseData>;
|
|
47
47
|
count: import("vue").ComputedRef<number>;
|
|
48
48
|
items: import("vue").ComputedRef<WishlistItem[]>;
|
|
49
49
|
products: import("vue").ComputedRef<Product[]>;
|
|
@@ -63,7 +63,7 @@ export declare function useWishlist({ params, key, }?: Options): {
|
|
|
63
63
|
productId?: number;
|
|
64
64
|
}) => Promise<void>;
|
|
65
65
|
clear: () => Promise<void>;
|
|
66
|
-
fetching: import("vue").Ref<boolean>;
|
|
66
|
+
fetching: import("vue").Ref<boolean, boolean>;
|
|
67
67
|
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
68
68
|
toggleItem: (item: {
|
|
69
69
|
variantId?: number;
|
|
@@ -78,7 +78,7 @@ export declare function useWishlist({ params, key, }?: Options): {
|
|
|
78
78
|
} | {
|
|
79
79
|
productId: number;
|
|
80
80
|
}) => boolean;
|
|
81
|
-
error: import("vue").Ref<any>;
|
|
82
|
-
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus>;
|
|
81
|
+
error: import("vue").Ref<any, any>;
|
|
82
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
83
83
|
}>;
|
|
84
84
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.84.
|
|
4
|
+
"version": "7.84.3",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@nuxt/kit": "^3.12.2",
|
|
61
61
|
"@opentelemetry/api": "^1.9.0",
|
|
62
62
|
"@scayle/h3-session": "^0.4.0",
|
|
63
|
-
"@scayle/storefront-core": "^7.
|
|
63
|
+
"@scayle/storefront-core": "^7.64.0",
|
|
64
64
|
"@scayle/unstorage-compression-driver": "^0.1.3",
|
|
65
65
|
"@vueuse/core": "^10.11.0",
|
|
66
66
|
"consola": "^3.2.3",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"zod": "^3.23.8"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@nuxt/eslint": "0.
|
|
83
|
+
"@nuxt/eslint": "0.5.0",
|
|
84
84
|
"@nuxt/module-builder": "0.5.5",
|
|
85
85
|
"@nuxt/schema": "3.12.4",
|
|
86
86
|
"@nuxt/test-utils": "3.14.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
},
|
|
108
108
|
"resolutions": {
|
|
109
109
|
"h3": "1.12.0",
|
|
110
|
-
"vue": "3.4.
|
|
110
|
+
"vue": "3.4.36",
|
|
111
111
|
"@nuxt/kit": "3.12.4",
|
|
112
112
|
"@nuxt/schema": "3.12.4"
|
|
113
113
|
},
|