@spiffcommerce/core 26.41.0 → 26.41.1-beta.684f86eb-1346-5eca-ad6d-dc39e10d26b6
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 +21 -1
- package/dist/index.js +195 -179
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1396 -1251
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
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,10 @@ declare class SpiffCommerceClient {
|
|
|
2295
2298
|
private activeIntegration?;
|
|
2296
2299
|
private marketplaceThemeInstallId?;
|
|
2297
2300
|
private marketplaceThemeInstallConfigurationId?;
|
|
2301
|
+
private userPoolClientId?;
|
|
2302
|
+
private userPoolRegion?;
|
|
2303
|
+
private spiffRegion?;
|
|
2304
|
+
private challengeSession?;
|
|
2298
2305
|
constructor(options: ClientOptions);
|
|
2299
2306
|
configure(configuration: ClientConfiguration): void;
|
|
2300
2307
|
/**
|
|
@@ -2354,6 +2361,19 @@ declare class SpiffCommerceClient {
|
|
|
2354
2361
|
* @returns True if the verification was successful, false otherwise.
|
|
2355
2362
|
*/
|
|
2356
2363
|
verifyCode(emailAddress: string, verificationCode: string): Promise<boolean>;
|
|
2364
|
+
/**
|
|
2365
|
+
* Generate an email code to allow logging in as a Spiff user.
|
|
2366
|
+
*/
|
|
2367
|
+
generateLoginCode(emailAddress: string): Promise<void>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Verify an email code to log in as a Spiff user.
|
|
2370
|
+
*/
|
|
2371
|
+
verifyLoginCode(emailAddress: string, code: string): Promise<void>;
|
|
2372
|
+
/**
|
|
2373
|
+
* Log out the currently logged-in Spiff user.
|
|
2374
|
+
*/
|
|
2375
|
+
logOut(): Promise<void>;
|
|
2376
|
+
loggedInBearerToken(): Promise<string>;
|
|
2357
2377
|
getCustomerMetafields(): Promise<Metafield[]>;
|
|
2358
2378
|
/**
|
|
2359
2379
|
* @param collectionId Optional: The id of the product collection that the bundle can use.
|
|
@@ -4680,7 +4700,7 @@ declare const optionService: OptionService;
|
|
|
4680
4700
|
declare const setBearerAuthenticationToken: (token: string) => void;
|
|
4681
4701
|
declare class GraphQlManager {
|
|
4682
4702
|
private shadowGraphqlClient;
|
|
4683
|
-
constructor();
|
|
4703
|
+
constructor(spiffClient?: SpiffCommerceClient);
|
|
4684
4704
|
getShadowGraphqlClient(): ApolloClient<any>;
|
|
4685
4705
|
private constructShadowGraphqlClient;
|
|
4686
4706
|
}
|