@spiffcommerce/core 26.41.0 → 26.41.1-beta.438429d5-5f9e-5e1d-a155-533cd98103a3

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 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,25 @@ 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
+ /**
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
+ loggedInBearerToken(): Promise<string>;
2357
2383
  getCustomerMetafields(): Promise<Metafield[]>;
2358
2384
  /**
2359
2385
  * @param collectionId Optional: The id of the product collection that the bundle can use.
@@ -4680,7 +4706,9 @@ declare const optionService: OptionService;
4680
4706
  declare const setBearerAuthenticationToken: (token: string) => void;
4681
4707
  declare class GraphQlManager {
4682
4708
  private shadowGraphqlClient;
4709
+ private spiffClient?;
4683
4710
  constructor();
4711
+ setSpiffCommerceClient(client: SpiffCommerceClient): void;
4684
4712
  getShadowGraphqlClient(): ApolloClient<any>;
4685
4713
  private constructShadowGraphqlClient;
4686
4714
  }