@scayle/storefront-core 7.50.1 → 7.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/types/api/context.d.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,8 @@ export type WithParams = Partial<{
|
|
|
17
17
|
export interface RuntimeConfiguration {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}
|
|
20
|
+
export interface AdditionalRpcContext {
|
|
21
|
+
}
|
|
20
22
|
export interface ContextWithSession {
|
|
21
23
|
wishlistKey: string;
|
|
22
24
|
basketKey: string;
|
|
@@ -79,6 +81,6 @@ export type RpcContext = {
|
|
|
79
81
|
runtimeConfiguration: RuntimeConfiguration;
|
|
80
82
|
idp?: IDPConfig;
|
|
81
83
|
headers: Headers;
|
|
82
|
-
} & (ContextWithoutSession | ContextWithSession);
|
|
84
|
+
} & AdditionalRpcContext & (ContextWithoutSession | ContextWithSession);
|
|
83
85
|
export type RpcContextWithSession = RpcContext & ContextWithSession;
|
|
84
86
|
export declare function assertSession(context: RpcContext): asserts context is RpcContextWithSession;
|