@commercengine/storefront-sdk 0.4.3 → 0.4.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/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.iife.js +14 -14
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +9 -17
package/dist/index.js
CHANGED
|
@@ -2221,7 +2221,7 @@ var StorefrontSDK = class {
|
|
|
2221
2221
|
/**
|
|
2222
2222
|
* Client for store config-related endpoints
|
|
2223
2223
|
*/
|
|
2224
|
-
|
|
2224
|
+
store;
|
|
2225
2225
|
/**
|
|
2226
2226
|
* Create a new StorefrontSDK instance
|
|
2227
2227
|
*
|
|
@@ -2250,7 +2250,7 @@ var StorefrontSDK = class {
|
|
|
2250
2250
|
this.helpers = new HelpersClient(config);
|
|
2251
2251
|
this.shipping = new ShippingClient(config);
|
|
2252
2252
|
this.order = new OrderClient(config);
|
|
2253
|
-
this.
|
|
2253
|
+
this.store = new StoreConfigClient(config);
|
|
2254
2254
|
}
|
|
2255
2255
|
/**
|
|
2256
2256
|
* Set authentication tokens for all clients
|
|
@@ -2270,7 +2270,7 @@ var StorefrontSDK = class {
|
|
|
2270
2270
|
await this.helpers.setTokens(accessToken, refreshToken);
|
|
2271
2271
|
await this.shipping.setTokens(accessToken, refreshToken);
|
|
2272
2272
|
await this.order.setTokens(accessToken, refreshToken);
|
|
2273
|
-
await this.
|
|
2273
|
+
await this.store.setTokens(accessToken, refreshToken);
|
|
2274
2274
|
}
|
|
2275
2275
|
/**
|
|
2276
2276
|
* Clear all authentication tokens from all clients
|
|
@@ -2287,7 +2287,7 @@ var StorefrontSDK = class {
|
|
|
2287
2287
|
await this.helpers.clearTokens();
|
|
2288
2288
|
await this.shipping.clearTokens();
|
|
2289
2289
|
await this.order.clearTokens();
|
|
2290
|
-
await this.
|
|
2290
|
+
await this.store.clearTokens();
|
|
2291
2291
|
}
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Set the API key for all clients
|
|
@@ -2302,7 +2302,7 @@ var StorefrontSDK = class {
|
|
|
2302
2302
|
this.helpers.setApiKey(apiKey);
|
|
2303
2303
|
this.shipping.setApiKey(apiKey);
|
|
2304
2304
|
this.order.setApiKey(apiKey);
|
|
2305
|
-
this.
|
|
2305
|
+
this.store.setApiKey(apiKey);
|
|
2306
2306
|
}
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Clear the API key from all clients
|
|
@@ -2315,7 +2315,7 @@ var StorefrontSDK = class {
|
|
|
2315
2315
|
this.helpers.clearApiKey();
|
|
2316
2316
|
this.shipping.clearApiKey();
|
|
2317
2317
|
this.order.clearApiKey();
|
|
2318
|
-
this.
|
|
2318
|
+
this.store.clearApiKey();
|
|
2319
2319
|
}
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Get the current access token if using token storage
|
|
@@ -2397,7 +2397,7 @@ var StorefrontSDK = class {
|
|
|
2397
2397
|
this.helpers["config"] = newConfig;
|
|
2398
2398
|
this.shipping["config"] = newConfig;
|
|
2399
2399
|
this.order["config"] = newConfig;
|
|
2400
|
-
this.
|
|
2400
|
+
this.store["config"] = newConfig;
|
|
2401
2401
|
}
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Get current default headers
|