@scayle/storefront-nuxt 7.84.3 → 7.84.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/module.d.mts +2 -2
- package/dist/module.d.ts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/rpc.d.mts +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/runtime/composables/core/useIDP.d.ts +7 -34
- package/dist/runtime/composables/core/useUser.d.ts +9 -20
- package/dist/runtime/composables/storefront/useBasket.d.ts +26 -106
- package/dist/runtime/composables/storefront/useBasket.mjs +5 -2
- package/dist/runtime/composables/storefront/useCategories.d.ts +6 -43
- package/dist/runtime/composables/storefront/useOrder.d.ts +12 -292
- package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +12 -292
- package/dist/runtime/composables/storefront/useQueryFilterState.mjs +4 -1
- package/dist/runtime/composables/storefront/useWishlist.d.ts +12 -52
- package/dist/runtime/composables/storefront/useWishlist.mjs +1 -1
- package/dist/runtime/createLog.mjs +1 -18
- package/dist/runtime/log.d.ts +6 -6
- package/dist/runtime/log.mjs +9 -5
- package/dist/shared/{storefront-nuxt.d852fe87.d.mts → storefront-nuxt.891170da.d.mts} +2 -2
- package/dist/shared/{storefront-nuxt.d852fe87.d.ts → storefront-nuxt.891170da.d.ts} +2 -2
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters, Order } from '@scayle/storefront-core';
|
|
2
|
-
import type
|
|
2
|
+
import { type RpcOptions, type UseRpcReturn } from '../core/useRpc';
|
|
3
3
|
import type { Ref, MaybeRefOrGetter } from 'vue';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getOrderById'>>;
|
|
@@ -7,299 +7,19 @@ type Options = Partial<{
|
|
|
7
7
|
/** @deprecated use the second argument of the composable to define the key */
|
|
8
8
|
key: string;
|
|
9
9
|
}>;
|
|
10
|
+
type ItemsType = Exclude<Order['items'], undefined>;
|
|
11
|
+
type NewItemsType<P, V> = Exclude<ItemsType[number], 'product' | 'variant'> & {
|
|
12
|
+
product: P;
|
|
13
|
+
variant: V;
|
|
14
|
+
};
|
|
15
|
+
type UserOrderBaseReturn<P, V> = Pick<Awaited<UseRpcReturn<'getOrderById'>>, 'error' | 'status' | 'fetch' | 'fetching' | 'refresh'> & {
|
|
16
|
+
data: Ref<Order & {
|
|
17
|
+
items?: NewItemsType<P, V>[];
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
10
20
|
export declare function useOrder<P = {
|
|
11
21
|
[k: string]: unknown;
|
|
12
22
|
}, V = {
|
|
13
23
|
[k: string]: unknown;
|
|
14
|
-
}>({ params, options, key: _key }?: Options, key?: string):
|
|
15
|
-
data: Ref<Order & {
|
|
16
|
-
items?: ({
|
|
17
|
-
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
18
|
-
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
19
|
-
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
20
|
-
customData?: {
|
|
21
|
-
[k: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
24
|
-
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
25
|
-
itemGroup?: null | {
|
|
26
|
-
id: string;
|
|
27
|
-
isMainItem: boolean;
|
|
28
|
-
isRequired: boolean;
|
|
29
|
-
};
|
|
30
|
-
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
31
|
-
lowestPriorPrice?: null | {
|
|
32
|
-
relativeDifferenceToPrice: number;
|
|
33
|
-
withTax: number;
|
|
34
|
-
};
|
|
35
|
-
merchant?: {
|
|
36
|
-
id: number;
|
|
37
|
-
[k: string]: unknown;
|
|
38
|
-
};
|
|
39
|
-
packageId: import("@scayle/storefront-core").PackageReference;
|
|
40
|
-
price: {
|
|
41
|
-
appliedReductions?: {
|
|
42
|
-
amount: {
|
|
43
|
-
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
44
|
-
relative: number;
|
|
45
|
-
};
|
|
46
|
-
category: "sale" | "campaign" | "voucher";
|
|
47
|
-
code?: string;
|
|
48
|
-
type: "relative" | "absolute";
|
|
49
|
-
}[];
|
|
50
|
-
overrideWithoutTax?: number;
|
|
51
|
-
overrideWithTax?: number;
|
|
52
|
-
reference?: {
|
|
53
|
-
size?: string;
|
|
54
|
-
unit?: string;
|
|
55
|
-
withTax?: number;
|
|
56
|
-
};
|
|
57
|
-
tax: {
|
|
58
|
-
[k: string]: {
|
|
59
|
-
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
60
|
-
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
64
|
-
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
65
|
-
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
66
|
-
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
67
|
-
};
|
|
68
|
-
product: {
|
|
69
|
-
[k: string]: unknown;
|
|
70
|
-
};
|
|
71
|
-
reservationKey?: string;
|
|
72
|
-
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
73
|
-
variant: {
|
|
74
|
-
[k: string]: unknown;
|
|
75
|
-
};
|
|
76
|
-
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
77
|
-
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
78
|
-
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
79
|
-
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
80
|
-
} & {
|
|
81
|
-
product: P;
|
|
82
|
-
variant: V;
|
|
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
|
-
})[];
|
|
153
|
-
}>;
|
|
154
|
-
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
155
|
-
fetching: Ref<boolean, boolean>;
|
|
156
|
-
error: Ref<any, any>;
|
|
157
|
-
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
158
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
159
|
-
} & Promise<{
|
|
160
|
-
data: Ref<Order & {
|
|
161
|
-
items?: ({
|
|
162
|
-
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
163
|
-
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
164
|
-
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
165
|
-
customData?: {
|
|
166
|
-
[k: string]: unknown;
|
|
167
|
-
};
|
|
168
|
-
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
169
|
-
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
170
|
-
itemGroup?: null | {
|
|
171
|
-
id: string;
|
|
172
|
-
isMainItem: boolean;
|
|
173
|
-
isRequired: boolean;
|
|
174
|
-
};
|
|
175
|
-
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
176
|
-
lowestPriorPrice?: null | {
|
|
177
|
-
relativeDifferenceToPrice: number;
|
|
178
|
-
withTax: number;
|
|
179
|
-
};
|
|
180
|
-
merchant?: {
|
|
181
|
-
id: number;
|
|
182
|
-
[k: string]: unknown;
|
|
183
|
-
};
|
|
184
|
-
packageId: import("@scayle/storefront-core").PackageReference;
|
|
185
|
-
price: {
|
|
186
|
-
appliedReductions?: {
|
|
187
|
-
amount: {
|
|
188
|
-
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
189
|
-
relative: number;
|
|
190
|
-
};
|
|
191
|
-
category: "sale" | "campaign" | "voucher";
|
|
192
|
-
code?: string;
|
|
193
|
-
type: "relative" | "absolute";
|
|
194
|
-
}[];
|
|
195
|
-
overrideWithoutTax?: number;
|
|
196
|
-
overrideWithTax?: number;
|
|
197
|
-
reference?: {
|
|
198
|
-
size?: string;
|
|
199
|
-
unit?: string;
|
|
200
|
-
withTax?: number;
|
|
201
|
-
};
|
|
202
|
-
tax: {
|
|
203
|
-
[k: string]: {
|
|
204
|
-
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
205
|
-
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
209
|
-
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
210
|
-
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
211
|
-
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
212
|
-
};
|
|
213
|
-
product: {
|
|
214
|
-
[k: string]: unknown;
|
|
215
|
-
};
|
|
216
|
-
reservationKey?: string;
|
|
217
|
-
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
218
|
-
variant: {
|
|
219
|
-
[k: string]: unknown;
|
|
220
|
-
};
|
|
221
|
-
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
222
|
-
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
223
|
-
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
224
|
-
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
225
|
-
} & {
|
|
226
|
-
product: P;
|
|
227
|
-
variant: V;
|
|
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
|
-
})[];
|
|
298
|
-
}>;
|
|
299
|
-
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
300
|
-
fetching: Ref<boolean, boolean>;
|
|
301
|
-
error: Ref<any, any>;
|
|
302
|
-
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
303
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
304
|
-
}>;
|
|
24
|
+
}>({ params, options, key: _key }?: Options, key?: string): UserOrderBaseReturn<P, V> & Promise<UserOrderBaseReturn<P, V>>;
|
|
305
25
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters, Order } from '@scayle/storefront-core';
|
|
2
|
-
import type { RpcOptions } from '../core/useRpc';
|
|
2
|
+
import type { RpcOptions, UseRpcReturn } from '../core/useRpc';
|
|
3
3
|
import type { Ref, MaybeRefOrGetter } from 'vue';
|
|
4
4
|
type Options = Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getOrderDataByCbd'>>;
|
|
@@ -7,299 +7,19 @@ type Options = Partial<{
|
|
|
7
7
|
/** @deprecated use the second argument of the composable to define the key */
|
|
8
8
|
key: string;
|
|
9
9
|
}>;
|
|
10
|
+
type ItemsType = Exclude<Order['items'], undefined>;
|
|
11
|
+
type NewItemsType<P, V> = Exclude<ItemsType[number], 'product' | 'variant'> & {
|
|
12
|
+
product: P;
|
|
13
|
+
variant: V;
|
|
14
|
+
};
|
|
15
|
+
type UseOrderConfirmationBaseReturn<P, V> = Pick<Awaited<UseRpcReturn<'getOrderDataByCbd'>>, 'error' | 'status' | 'fetch' | 'fetching' | 'refresh'> & {
|
|
16
|
+
data: Ref<Order & {
|
|
17
|
+
items?: NewItemsType<P, V>[];
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
10
20
|
export declare function useOrderConfirmation<P = {
|
|
11
21
|
[k: string]: unknown;
|
|
12
22
|
}, V = {
|
|
13
23
|
[k: string]: unknown;
|
|
14
|
-
}>({ params, options, key: _key }?: Options, key?: string):
|
|
15
|
-
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
16
|
-
fetching: Ref<boolean, boolean>;
|
|
17
|
-
error: Ref<any, any>;
|
|
18
|
-
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
19
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
20
|
-
data: Ref<Order & {
|
|
21
|
-
items?: ({
|
|
22
|
-
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
23
|
-
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
24
|
-
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
25
|
-
customData?: {
|
|
26
|
-
[k: string]: unknown;
|
|
27
|
-
};
|
|
28
|
-
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
29
|
-
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
30
|
-
itemGroup?: null | {
|
|
31
|
-
id: string;
|
|
32
|
-
isMainItem: boolean;
|
|
33
|
-
isRequired: boolean;
|
|
34
|
-
};
|
|
35
|
-
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
36
|
-
lowestPriorPrice?: null | {
|
|
37
|
-
relativeDifferenceToPrice: number;
|
|
38
|
-
withTax: number;
|
|
39
|
-
};
|
|
40
|
-
merchant?: {
|
|
41
|
-
id: number;
|
|
42
|
-
[k: string]: unknown;
|
|
43
|
-
};
|
|
44
|
-
packageId: import("@scayle/storefront-core").PackageReference;
|
|
45
|
-
price: {
|
|
46
|
-
appliedReductions?: {
|
|
47
|
-
amount: {
|
|
48
|
-
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
49
|
-
relative: number;
|
|
50
|
-
};
|
|
51
|
-
category: "sale" | "campaign" | "voucher";
|
|
52
|
-
code?: string;
|
|
53
|
-
type: "relative" | "absolute";
|
|
54
|
-
}[];
|
|
55
|
-
overrideWithoutTax?: number;
|
|
56
|
-
overrideWithTax?: number;
|
|
57
|
-
reference?: {
|
|
58
|
-
size?: string;
|
|
59
|
-
unit?: string;
|
|
60
|
-
withTax?: number;
|
|
61
|
-
};
|
|
62
|
-
tax: {
|
|
63
|
-
[k: string]: {
|
|
64
|
-
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
65
|
-
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
69
|
-
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
70
|
-
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
71
|
-
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
72
|
-
};
|
|
73
|
-
product: {
|
|
74
|
-
[k: string]: unknown;
|
|
75
|
-
};
|
|
76
|
-
reservationKey?: string;
|
|
77
|
-
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
78
|
-
variant: {
|
|
79
|
-
[k: string]: unknown;
|
|
80
|
-
};
|
|
81
|
-
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
82
|
-
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
83
|
-
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
84
|
-
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
85
|
-
} & {
|
|
86
|
-
product: P;
|
|
87
|
-
variant: V;
|
|
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
|
-
})[];
|
|
158
|
-
}>;
|
|
159
|
-
} & Promise<{
|
|
160
|
-
fetch: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
161
|
-
fetching: Ref<boolean, boolean>;
|
|
162
|
-
error: Ref<any, any>;
|
|
163
|
-
refresh: (opts?: import("nuxt/dist/app/composables/asyncData").AsyncDataExecuteOptions) => Promise<void>;
|
|
164
|
-
status: Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
165
|
-
data: Ref<Order & {
|
|
166
|
-
items?: ({
|
|
167
|
-
id?: import("@scayle/storefront-core").UniqueNumericIdentifierOfTheItem;
|
|
168
|
-
availableQuantity?: import("@scayle/storefront-core").AvailableQuantityInTheWarehouse;
|
|
169
|
-
currency?: import("@scayle/storefront-core").CharacterCurrencyCode1;
|
|
170
|
-
customData?: {
|
|
171
|
-
[k: string]: unknown;
|
|
172
|
-
};
|
|
173
|
-
deliveryForecast?: import("@scayle/storefront-core").DeliveryForecastFromWarehouse;
|
|
174
|
-
isManuallyReturnedByCci?: import("@scayle/storefront-core").TheReturnShipmentHasBeenTriggeredByCCI;
|
|
175
|
-
itemGroup?: null | {
|
|
176
|
-
id: string;
|
|
177
|
-
isMainItem: boolean;
|
|
178
|
-
isRequired: boolean;
|
|
179
|
-
};
|
|
180
|
-
key: import("@scayle/storefront-core").UniqueIdentifierOfTheItem;
|
|
181
|
-
lowestPriorPrice?: null | {
|
|
182
|
-
relativeDifferenceToPrice: number;
|
|
183
|
-
withTax: number;
|
|
184
|
-
};
|
|
185
|
-
merchant?: {
|
|
186
|
-
id: number;
|
|
187
|
-
[k: string]: unknown;
|
|
188
|
-
};
|
|
189
|
-
packageId: import("@scayle/storefront-core").PackageReference;
|
|
190
|
-
price: {
|
|
191
|
-
appliedReductions?: {
|
|
192
|
-
amount: {
|
|
193
|
-
absoluteWithTax: import("@scayle/storefront-core").ThisFieldRepresentsTheDiscountAmountIncludingTheTaxes1;
|
|
194
|
-
relative: number;
|
|
195
|
-
};
|
|
196
|
-
category: "sale" | "campaign" | "voucher";
|
|
197
|
-
code?: string;
|
|
198
|
-
type: "relative" | "absolute";
|
|
199
|
-
}[];
|
|
200
|
-
overrideWithoutTax?: number;
|
|
201
|
-
overrideWithTax?: number;
|
|
202
|
-
reference?: {
|
|
203
|
-
size?: string;
|
|
204
|
-
unit?: string;
|
|
205
|
-
withTax?: number;
|
|
206
|
-
};
|
|
207
|
-
tax: {
|
|
208
|
-
[k: string]: {
|
|
209
|
-
amount: import("@scayle/storefront-core").AbsoluteValueOfTheAppliedTax1;
|
|
210
|
-
rate: import("@scayle/storefront-core").RelativeValueOfTheAppliedTax;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
undiscountedWithOutTax?: import("@scayle/storefront-core").UndiscountedItemPriceExcludingTaxes;
|
|
214
|
-
undiscountedWithTax?: import("@scayle/storefront-core").UndiscountedItemPriceIncludingTaxes;
|
|
215
|
-
withoutTax: import("@scayle/storefront-core").ItemPriceExcludingTaxes1;
|
|
216
|
-
withTax: import("@scayle/storefront-core").ItemPriceIncludingTaxes1;
|
|
217
|
-
};
|
|
218
|
-
product: {
|
|
219
|
-
[k: string]: unknown;
|
|
220
|
-
};
|
|
221
|
-
reservationKey?: string;
|
|
222
|
-
status: "available" | "cancelled" | "delivered" | "returned" | "unavailable";
|
|
223
|
-
variant: {
|
|
224
|
-
[k: string]: unknown;
|
|
225
|
-
};
|
|
226
|
-
warehouseId?: import("@scayle/storefront-core").PickingWarehouseId;
|
|
227
|
-
warehousePackageGroupId?: import("@scayle/storefront-core").WarehousePackageReference;
|
|
228
|
-
createdAt: import("@scayle/storefront-core").TimestampOfItemCreation;
|
|
229
|
-
updatedAt: import("@scayle/storefront-core").TimestampOfLastItemUpdate;
|
|
230
|
-
} & {
|
|
231
|
-
product: P;
|
|
232
|
-
variant: V;
|
|
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
|
-
})[];
|
|
303
|
-
}>;
|
|
304
|
-
}>;
|
|
24
|
+
}>({ params, options, key: _key }?: Options, key?: string): UseOrderConfirmationBaseReturn<P, V> & Promise<UseOrderConfirmationBaseReturn<P, V>>;
|
|
305
25
|
export {};
|
|
@@ -10,6 +10,9 @@ import { computed } from "vue";
|
|
|
10
10
|
import { getCurrentPage } from "../../utils/route.mjs";
|
|
11
11
|
import { useRoute, useRouter } from "#imports";
|
|
12
12
|
const DEFAULT_QUERY_KEYS = ["page", "sort", "term"];
|
|
13
|
+
function queryValueToString(value) {
|
|
14
|
+
return Array.isArray(value) ? value.map((v) => v?.toString()).filter(Boolean).join(",") : value?.toString();
|
|
15
|
+
}
|
|
13
16
|
export function useQueryFilterState(options = {}) {
|
|
14
17
|
const router = useRouter();
|
|
15
18
|
const route = useRoute();
|
|
@@ -17,7 +20,7 @@ export function useQueryFilterState(options = {}) {
|
|
|
17
20
|
const allowedFilters = Object.fromEntries(
|
|
18
21
|
Object.entries(route.query).filter(
|
|
19
22
|
([key]) => !DEFAULT_QUERY_KEYS.includes(key)
|
|
20
|
-
)
|
|
23
|
+
).map(([key, value]) => [key, queryValueToString(value)]).filter(([_key, value]) => !!value)
|
|
21
24
|
);
|
|
22
25
|
return deserializeFilters(allowedFilters);
|
|
23
26
|
});
|