@scayle/storefront-nuxt 8.25.2 → 8.25.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 +11 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/test/factories.d.mts +86 -5
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.25.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
**Dependencies**
|
|
8
|
+
|
|
9
|
+
**@scayle/storefront-core v8.25.3**
|
|
10
|
+
|
|
11
|
+
- Patch
|
|
12
|
+
- Expose `MemberRole`, `FilterValuesEndpointParameters` and `GetRedirectsEndpointParameters` type
|
|
13
|
+
|
|
3
14
|
## 8.25.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,21 +1,102 @@
|
|
|
1
|
+
import * as fishery from 'fishery';
|
|
1
2
|
import { Factory } from 'fishery';
|
|
2
3
|
import { ModuleBaseOptions, ShopConfig } from '../../dist/runtime/types/module.js';
|
|
3
|
-
import
|
|
4
|
+
import * as hookable from 'hookable';
|
|
5
|
+
import * as _scayle_storefront_core from '@scayle/storefront-core';
|
|
6
|
+
import { RpcContext, StorefrontAPIClient, Log, RuntimeConfiguration, ContextWithoutSession, ContextWithSession } from '@scayle/storefront-core';
|
|
4
7
|
import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
|
|
5
8
|
export * from '@scayle/storefront-core/dist/test/factories';
|
|
6
9
|
|
|
7
10
|
interface ModuleOptionsFactoryParams {
|
|
8
11
|
shops: ShopConfig[];
|
|
9
12
|
}
|
|
10
|
-
declare const moduleOptionsFactory: Factory<ModuleBaseOptions, ModuleOptionsFactoryParams, ModuleBaseOptions
|
|
13
|
+
declare const moduleOptionsFactory: Factory<ModuleBaseOptions, ModuleOptionsFactoryParams, ModuleBaseOptions, fishery.DeepPartialObject<ModuleBaseOptions>>;
|
|
11
14
|
|
|
12
|
-
declare const shopConfigFactory: Factory<ShopConfig, any, ShopConfig
|
|
15
|
+
declare const shopConfigFactory: Factory<ShopConfig, any, ShopConfig, fishery.DeepPartialObject<ShopConfig>>;
|
|
13
16
|
|
|
14
17
|
interface RpcContextFactoryParams {
|
|
15
18
|
isLoggedIn: boolean;
|
|
16
19
|
}
|
|
17
|
-
declare const rpcContextFactory: Factory<RpcContext, RpcContextFactoryParams, RpcContext
|
|
20
|
+
declare const rpcContextFactory: Factory<RpcContext, RpcContextFactoryParams, RpcContext, fishery.DeepPartialObject<{
|
|
21
|
+
locale: string;
|
|
22
|
+
checkout: {
|
|
23
|
+
url: string;
|
|
24
|
+
token: string;
|
|
25
|
+
secret: string;
|
|
26
|
+
user: string;
|
|
27
|
+
accessHeader?: string;
|
|
28
|
+
cbdExpiration?: number;
|
|
29
|
+
};
|
|
30
|
+
sapiClient: StorefrontAPIClient;
|
|
31
|
+
cached: _scayle_storefront_core.CachedType;
|
|
32
|
+
shopId: number;
|
|
33
|
+
domain?: string;
|
|
34
|
+
withParams?: _scayle_storefront_core.WithParams;
|
|
35
|
+
campaignKey?: string;
|
|
36
|
+
destroySessionsForUserId: (userId: number, sessionsToKeep?: string[]) => Promise<void>;
|
|
37
|
+
generateBasketKeyForUserId: (userId: string) => Promise<string>;
|
|
38
|
+
generateWishlistKeyForUserId: (userId: string) => Promise<string>;
|
|
39
|
+
routerBasePath?: string;
|
|
40
|
+
ip?: string | undefined;
|
|
41
|
+
originalIp?: string;
|
|
42
|
+
log: Log;
|
|
43
|
+
auth: {
|
|
44
|
+
resetPasswordUrl?: string;
|
|
45
|
+
};
|
|
46
|
+
oauth?: {
|
|
47
|
+
clientId: string;
|
|
48
|
+
apiHost: string;
|
|
49
|
+
clientSecret: string;
|
|
50
|
+
};
|
|
51
|
+
runtimeConfiguration: RuntimeConfiguration;
|
|
52
|
+
idp?: _scayle_storefront_core.IDPConfig;
|
|
53
|
+
headers: Headers;
|
|
54
|
+
internalAccessHeader?: string;
|
|
55
|
+
callHook?: hookable.Hookable<_scayle_storefront_core.StorefrontHooks>["callHook"];
|
|
56
|
+
callHookParallel?: hookable.Hookable<_scayle_storefront_core.StorefrontHooks>["callHookParallel"];
|
|
57
|
+
callHookWith?: hookable.Hookable<_scayle_storefront_core.StorefrontHooks>["callHookWith"];
|
|
58
|
+
callRpc?: _scayle_storefront_core.RpcMethodCall;
|
|
59
|
+
} & _scayle_storefront_core.AdditionalRpcContext & ContextWithoutSession> | fishery.DeepPartialObject<{
|
|
60
|
+
locale: string;
|
|
61
|
+
checkout: {
|
|
62
|
+
url: string;
|
|
63
|
+
token: string;
|
|
64
|
+
secret: string;
|
|
65
|
+
user: string;
|
|
66
|
+
accessHeader?: string;
|
|
67
|
+
cbdExpiration?: number;
|
|
68
|
+
};
|
|
69
|
+
sapiClient: StorefrontAPIClient;
|
|
70
|
+
cached: _scayle_storefront_core.CachedType;
|
|
71
|
+
shopId: number;
|
|
72
|
+
domain?: string;
|
|
73
|
+
withParams?: _scayle_storefront_core.WithParams;
|
|
74
|
+
campaignKey?: string;
|
|
75
|
+
destroySessionsForUserId: (userId: number, sessionsToKeep?: string[]) => Promise<void>;
|
|
76
|
+
generateBasketKeyForUserId: (userId: string) => Promise<string>;
|
|
77
|
+
generateWishlistKeyForUserId: (userId: string) => Promise<string>;
|
|
78
|
+
routerBasePath?: string;
|
|
79
|
+
ip?: string | undefined;
|
|
80
|
+
originalIp?: string;
|
|
81
|
+
log: Log;
|
|
82
|
+
auth: {
|
|
83
|
+
resetPasswordUrl?: string;
|
|
84
|
+
};
|
|
85
|
+
oauth?: {
|
|
86
|
+
clientId: string;
|
|
87
|
+
apiHost: string;
|
|
88
|
+
clientSecret: string;
|
|
89
|
+
};
|
|
90
|
+
runtimeConfiguration: RuntimeConfiguration;
|
|
91
|
+
idp?: _scayle_storefront_core.IDPConfig;
|
|
92
|
+
headers: Headers;
|
|
93
|
+
internalAccessHeader?: string;
|
|
94
|
+
callHook?: hookable.Hookable<_scayle_storefront_core.StorefrontHooks>["callHook"];
|
|
95
|
+
callHookParallel?: hookable.Hookable<_scayle_storefront_core.StorefrontHooks>["callHookParallel"];
|
|
96
|
+
callHookWith?: hookable.Hookable<_scayle_storefront_core.StorefrontHooks>["callHookWith"];
|
|
97
|
+
callRpc?: _scayle_storefront_core.RpcMethodCall;
|
|
98
|
+
} & _scayle_storefront_core.AdditionalRpcContext & ContextWithSession>>;
|
|
18
99
|
|
|
19
|
-
declare const routeFactory: Factory<RouteLocationNormalizedLoadedGeneric, any, RouteLocationNormalizedLoadedGeneric
|
|
100
|
+
declare const routeFactory: Factory<RouteLocationNormalizedLoadedGeneric, any, RouteLocationNormalizedLoadedGeneric, fishery.DeepPartialObject<RouteLocationNormalizedLoadedGeneric>>;
|
|
20
101
|
|
|
21
102
|
export { moduleOptionsFactory, routeFactory, rpcContextFactory, shopConfigFactory };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.25.
|
|
4
|
+
"version": "8.25.3",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@opentelemetry/api": "^1.9.0",
|
|
83
83
|
"@scayle/h3-session": "0.6.1",
|
|
84
|
-
"@scayle/storefront-core": "8.25.
|
|
84
|
+
"@scayle/storefront-core": "8.25.3",
|
|
85
85
|
"@scayle/unstorage-compression-driver": "^0.2.7",
|
|
86
86
|
"@vercel/nft": "0.29.2",
|
|
87
87
|
"@vueuse/core": "13.1.0",
|
|
@@ -106,25 +106,25 @@
|
|
|
106
106
|
"@nuxt/kit": "3.16.2",
|
|
107
107
|
"@nuxt/module-builder": "1.0.1",
|
|
108
108
|
"@nuxt/schema": "3.16.2",
|
|
109
|
-
"@nuxt/test-utils": "3.
|
|
110
|
-
"@scayle/eslint-config-storefront": "4.5.
|
|
109
|
+
"@nuxt/test-utils": "3.18.0",
|
|
110
|
+
"@scayle/eslint-config-storefront": "4.5.1",
|
|
111
111
|
"@scayle/eslint-plugin-vue-composable": "0.2.1",
|
|
112
112
|
"@scayle/unstorage-scayle-kv-driver": "0.1.2",
|
|
113
|
-
"@types/node": "22.15.
|
|
113
|
+
"@types/node": "22.15.12",
|
|
114
114
|
"dprint": "0.49.1",
|
|
115
115
|
"eslint-formatter-gitlab": "6.0.0",
|
|
116
|
-
"eslint": "9.
|
|
117
|
-
"fishery": "2.
|
|
116
|
+
"eslint": "9.26.0",
|
|
117
|
+
"fishery": "2.3.1",
|
|
118
118
|
"h3": "1.15.3",
|
|
119
119
|
"nitropack": "2.11.11",
|
|
120
120
|
"nitro-test-utils": "0.9.2",
|
|
121
|
-
"node-mocks-http": "1.17.
|
|
121
|
+
"node-mocks-http": "1.17.2",
|
|
122
122
|
"nuxi": "3.25.0",
|
|
123
123
|
"nuxt": "3.16.2",
|
|
124
124
|
"publint": "0.2.12",
|
|
125
125
|
"typescript": "5.8.3",
|
|
126
126
|
"unbuild": "3.5.0",
|
|
127
|
-
"vitest": "3.1.
|
|
127
|
+
"vitest": "3.1.3",
|
|
128
128
|
"vue-tsc": "2.2.10"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|