@spiffcommerce/core 26.41.1-beta.c4c84bca-b016-5039-a123-8e19090d5e06 → 26.41.1-beta.cfe1b2be-79ed-58e3-a363-a42c2516a93e
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/dist/index.d.ts +9 -1
- package/dist/index.js +59 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +780 -732
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2373,6 +2373,12 @@ declare class SpiffCommerceClient {
|
|
|
2373
2373
|
* Log out the currently logged-in Spiff user.
|
|
2374
2374
|
*/
|
|
2375
2375
|
logOut(): Promise<void>;
|
|
2376
|
+
/**
|
|
2377
|
+
* Check if a customer is logged in.
|
|
2378
|
+
* If they are, set the customer object.
|
|
2379
|
+
* This is how we resume sessions between loads.
|
|
2380
|
+
*/
|
|
2381
|
+
reloadLoggedInCustomer(): Promise<void>;
|
|
2376
2382
|
loggedInBearerToken(): Promise<string>;
|
|
2377
2383
|
getCustomerMetafields(): Promise<Metafield[]>;
|
|
2378
2384
|
/**
|
|
@@ -4700,7 +4706,9 @@ declare const optionService: OptionService;
|
|
|
4700
4706
|
declare const setBearerAuthenticationToken: (token: string) => void;
|
|
4701
4707
|
declare class GraphQlManager {
|
|
4702
4708
|
private shadowGraphqlClient;
|
|
4703
|
-
|
|
4709
|
+
private spiffClient?;
|
|
4710
|
+
constructor();
|
|
4711
|
+
setSpiffCommerceClient(client: SpiffCommerceClient): void;
|
|
4704
4712
|
getShadowGraphqlClient(): ApolloClient<any>;
|
|
4705
4713
|
private constructShadowGraphqlClient;
|
|
4706
4714
|
}
|