@spiffcommerce/core 26.42.1 → 27.0.0-beta.7123ea0f-ccbb-57f9-919e-cf0e8d93ccc4
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/index.d.ts +27 -8
- package/dist/index.js +168 -168
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3081 -2963
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
## [27.0.0] - 15-07-2025
|
|
18
|
+
|
|
19
|
+
## Changed
|
|
20
|
+
|
|
21
|
+
- Modified the functions for logging in as a customer.
|
|
22
|
+
|
|
17
23
|
## [26.40.0] - 10-07-2025
|
|
18
24
|
|
|
19
25
|
## Added
|
package/dist/index.d.ts
CHANGED
|
@@ -2283,6 +2283,9 @@ interface ClientConfiguration {
|
|
|
2283
2283
|
marketplaceThemeInstallId?: string;
|
|
2284
2284
|
marketplaceThemeInstallConfigurationId?: string;
|
|
2285
2285
|
bearerAuthenticationToken?: string;
|
|
2286
|
+
userPoolClientId?: string;
|
|
2287
|
+
userPoolRegion?: string;
|
|
2288
|
+
spiffRegion?: string;
|
|
2286
2289
|
}
|
|
2287
2290
|
/**
|
|
2288
2291
|
* The Spiff Commerce Javascript Client. Required for
|
|
@@ -2295,6 +2298,9 @@ declare class SpiffCommerceClient {
|
|
|
2295
2298
|
private activeIntegration?;
|
|
2296
2299
|
private marketplaceThemeInstallId?;
|
|
2297
2300
|
private marketplaceThemeInstallConfigurationId?;
|
|
2301
|
+
private userPoolClientId?;
|
|
2302
|
+
private userPoolRegion?;
|
|
2303
|
+
private spiffRegion?;
|
|
2298
2304
|
constructor(options: ClientOptions);
|
|
2299
2305
|
configure(configuration: ClientConfiguration): void;
|
|
2300
2306
|
/**
|
|
@@ -2341,19 +2347,26 @@ declare class SpiffCommerceClient {
|
|
|
2341
2347
|
isAuthenticated: boolean;
|
|
2342
2348
|
}>;
|
|
2343
2349
|
getCustomer(): Customer | undefined;
|
|
2344
|
-
private authenticateCustomerId;
|
|
2345
2350
|
/**
|
|
2346
|
-
*
|
|
2347
|
-
*
|
|
2351
|
+
* Check if a customer is logged in.
|
|
2352
|
+
* If they are, set the customer object.
|
|
2353
|
+
* This is how we resume sessions between loads.
|
|
2354
|
+
*/
|
|
2355
|
+
reloadLoggedInCustomer(): Promise<boolean>;
|
|
2356
|
+
/**
|
|
2357
|
+
* Generate an email code to allow logging in as a Spiff user.
|
|
2348
2358
|
*/
|
|
2349
2359
|
generateVerificationCode(emailAddress: string): Promise<void>;
|
|
2350
2360
|
/**
|
|
2351
|
-
*
|
|
2352
|
-
*
|
|
2353
|
-
|
|
2354
|
-
|
|
2361
|
+
* Verify an email code to log in as a Spiff user.
|
|
2362
|
+
* Always returns true if it doesn't throw.
|
|
2363
|
+
*/
|
|
2364
|
+
verifyCode(emailAddress: string, code: string): Promise<boolean>;
|
|
2365
|
+
/**
|
|
2366
|
+
* Log out the currently logged-in Spiff user.
|
|
2355
2367
|
*/
|
|
2356
|
-
|
|
2368
|
+
logOut(): Promise<void>;
|
|
2369
|
+
loggedInBearerToken(): Promise<string>;
|
|
2357
2370
|
getCustomerMetafields(): Promise<Metafield[]>;
|
|
2358
2371
|
/**
|
|
2359
2372
|
* @param collectionId Optional: The id of the product collection that the bundle can use.
|
|
@@ -3375,6 +3388,10 @@ interface RenderingConfiguration {
|
|
|
3375
3388
|
* Allow for debug rendering on elements.
|
|
3376
3389
|
*/
|
|
3377
3390
|
debug?: boolean;
|
|
3391
|
+
/**
|
|
3392
|
+
* Contents variables for templating text.
|
|
3393
|
+
*/
|
|
3394
|
+
templatingContext?: any;
|
|
3378
3395
|
}
|
|
3379
3396
|
interface ColorProfileProps {
|
|
3380
3397
|
name: string;
|
|
@@ -4680,7 +4697,9 @@ declare const optionService: OptionService;
|
|
|
4680
4697
|
declare const setBearerAuthenticationToken: (token: string) => void;
|
|
4681
4698
|
declare class GraphQlManager {
|
|
4682
4699
|
private shadowGraphqlClient;
|
|
4700
|
+
private spiffClient?;
|
|
4683
4701
|
constructor();
|
|
4702
|
+
setSpiffCommerceClient(client: SpiffCommerceClient): void;
|
|
4684
4703
|
getShadowGraphqlClient(): ApolloClient<any>;
|
|
4685
4704
|
private constructShadowGraphqlClient;
|
|
4686
4705
|
}
|