@spiffcommerce/core 26.42.1-beta.11005913-44ed-53ed-be12-8745ec5907c4 → 26.42.1-beta.6d592ead-6fc8-54c3-b94a-058972ea68f5
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 +7 -20
- package/dist/index.js +93 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1035 -1077
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2301,7 +2301,6 @@ declare class SpiffCommerceClient {
|
|
|
2301
2301
|
private userPoolClientId?;
|
|
2302
2302
|
private userPoolRegion?;
|
|
2303
2303
|
private spiffRegion?;
|
|
2304
|
-
private challengeSession?;
|
|
2305
2304
|
constructor(options: ClientOptions);
|
|
2306
2305
|
configure(configuration: ClientConfiguration): void;
|
|
2307
2306
|
/**
|
|
@@ -2348,37 +2347,25 @@ declare class SpiffCommerceClient {
|
|
|
2348
2347
|
isAuthenticated: boolean;
|
|
2349
2348
|
}>;
|
|
2350
2349
|
getCustomer(): Customer | undefined;
|
|
2351
|
-
private authenticateCustomerId;
|
|
2352
2350
|
/**
|
|
2353
|
-
*
|
|
2354
|
-
*
|
|
2355
|
-
|
|
2356
|
-
generateVerificationCode(emailAddress: string): Promise<void>;
|
|
2357
|
-
/**
|
|
2358
|
-
* Verifies the given email address with the given verification code.
|
|
2359
|
-
* @param emailAddress The email address to verify.
|
|
2360
|
-
* @param verificationCode The verification code to verify the email address with.
|
|
2361
|
-
* @returns True if the verification was successful, false otherwise.
|
|
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.
|
|
2362
2354
|
*/
|
|
2363
|
-
|
|
2355
|
+
authenticateCustomerId(customerId: string): Promise<boolean>;
|
|
2364
2356
|
/**
|
|
2365
2357
|
* Generate an email code to allow logging in as a Spiff user.
|
|
2366
2358
|
*/
|
|
2367
|
-
|
|
2359
|
+
generateVerificationCode(emailAddress: string): Promise<void>;
|
|
2368
2360
|
/**
|
|
2369
2361
|
* Verify an email code to log in as a Spiff user.
|
|
2362
|
+
* Always returns true if it doesn't throw.
|
|
2370
2363
|
*/
|
|
2371
|
-
|
|
2364
|
+
verifyCode(emailAddress: string, code: string): Promise<boolean>;
|
|
2372
2365
|
/**
|
|
2373
2366
|
* Log out the currently logged-in Spiff user.
|
|
2374
2367
|
*/
|
|
2375
2368
|
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>;
|
|
2382
2369
|
loggedInBearerToken(): Promise<string>;
|
|
2383
2370
|
getCustomerMetafields(): Promise<Metafield[]>;
|
|
2384
2371
|
/**
|