@spiffcommerce/core 22.2.1-beta.fef6d89e-adc7-52bb-a379-e231ad44eba6 → 22.2.2

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
@@ -4,7 +4,6 @@ export { Animatable, AnyStepData, AspectType, Asset, AssetType, BringForwardComm
4
4
  import { ApolloClient, MutationOptions, FetchResult } from '@apollo/client/core';
5
5
  import { RenderableContextService, RenderableContext, ThreeDPreviewService, ModelContainer } from '@spiffcommerce/preview';
6
6
  import * as lodash from 'lodash';
7
- import { ThemeInstallConfigurationResource } from '@spiffcommerce/theme-bridge';
8
7
  import { FuseResult } from 'fuse.js';
9
8
 
10
9
  declare class OptionService {
@@ -1794,14 +1793,6 @@ interface GetWorkflowFromExternalProductOptions extends GetNewWorkflowOptionsBas
1794
1793
  }
1795
1794
  type GetNewWorkflowOptions = GetWorkflowFromIntegrationProductOptions | GetWorkflowFromExternalProductOptions;
1796
1795
  type GetWorkflowOptions = GetWorkflowFromTransactionOptions | GetNewWorkflowOptions;
1797
- interface ClientConfiguration {
1798
- hubUrl: string;
1799
- serverUrl: string;
1800
- servicesApiUrl: string;
1801
- marketplaceThemeInstallId: string;
1802
- marketplaceThemeInstallConfigurationId: string;
1803
- bearerAuthenticationToken?: string;
1804
- }
1805
1796
  /**
1806
1797
  * The Spiff Commerce Javascript Client. Required for
1807
1798
  * creating workflow experiences.
@@ -1812,17 +1803,12 @@ declare class SpiffCommerceClient {
1812
1803
  private currencyCode?;
1813
1804
  private customer?;
1814
1805
  private activeIntegration?;
1815
- private marketplaceThemeInstallId?;
1816
- private marketplaceThemeInstallConfigurationId?;
1817
1806
  /**
1818
1807
  * @deprecated This object is passed to the WorkflowExperience constructor and is no longer needed on this object.
1819
1808
  * Any functionality referencing this object will be removed in a future release.
1820
1809
  */
1821
1810
  private experienceOptions?;
1822
1811
  constructor(options: ClientOptions);
1823
- /** @deprecated Use `configure` instead */
1824
- configureUrls(hubUrl: string, serverUrl: string, servicesApiUrl: string): void;
1825
- configure(configuration: ClientConfiguration): void;
1826
1812
  /**
1827
1813
  * @returns The asset manager allows for common operations related to assets
1828
1814
  * and the Spiff Commerce platform.
@@ -1951,6 +1937,7 @@ declare class SpiffCommerceClient {
1951
1937
  * @returns The transaction associated with this client.
1952
1938
  */
1953
1939
  getTransaction(): Transaction;
1940
+ configureUrls(hubUrl: string, serverUrl: string, servicesApiUrl: string): void;
1954
1941
  /**
1955
1942
  * A function used to synchronize transaction state with the server.
1956
1943
  * @param options New state details. To be spread into the query.
@@ -2128,6 +2115,10 @@ interface WorkflowManager {
2128
2115
  * Returns the client that was responsible for spawning this manager.
2129
2116
  */
2130
2117
  getClient(): SpiffCommerceClient;
2118
+ /**
2119
+ * Returns the worjkflow experience that was responsible for creating this manager.
2120
+ */
2121
+ getWorkflowExperience(): WorkflowExperience;
2131
2122
  /**
2132
2123
  * Re-fetches the transactionShareActions for this WorkflowManager's Transaction object.
2133
2124
  * The updated transactionShareActions overwrite the existing values on the Transaction object returned by `getTransaction()`.
@@ -2330,7 +2321,6 @@ interface Transaction {
2330
2321
  transactionShareActions?: TransactionShareAction[];
2331
2322
  /** Whether any share actions for this Transaction require the user to be authenticated as a stakeholder */
2332
2323
  hasAuthenticatedActions?: boolean;
2333
- marketplaceThemeInstallConfiguration?: ThemeInstallConfigurationResource;
2334
2324
  }
2335
2325
  interface TransactionShareAction {
2336
2326
  id: string;
@@ -3074,6 +3064,7 @@ declare const digitalContentStepService: DigitalContentStepService;
3074
3064
  declare class MockWorkflowManager implements WorkflowManager {
3075
3065
  private client;
3076
3066
  getClient(): SpiffCommerceClient;
3067
+ getWorkflowExperience(): WorkflowExperience;
3077
3068
  setClient(client: SpiffCommerceClient): void;
3078
3069
  getInitializationPromise(): Promise<void>;
3079
3070
  getProduct: () => Product;