@spiffcommerce/theme-bridge 1.6.0 → 1.7.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +20 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GetWorkflowOptions, SpiffCommerceClient } from '@spiffcommerce/core';
1
+ import { SpiffCommerceClient } from '@spiffcommerce/core';
2
2
 
3
3
  interface SpiffThemeContextBase {
4
4
  applicationKey: string;
@@ -29,6 +29,24 @@ interface SpiffThemeContextBundle extends SpiffThemeContextBase {
29
29
  bundleOptions: GetBundleOptions;
30
30
  type: "bundle";
31
31
  }
32
+ interface GetWorkflowOptionsBase {
33
+ }
34
+ interface GetWorkflowFromTransactionOptions extends GetWorkflowOptionsBase {
35
+ transactionId: string;
36
+ type: "transaction";
37
+ }
38
+ interface GetWorkflowFromIntegrationProductOptions extends GetWorkflowOptionsBase {
39
+ integrationProductId: string;
40
+ workflowId?: string;
41
+ type: "integration";
42
+ }
43
+ interface GetWorkflowFromExternalProductOptions extends GetWorkflowOptionsBase {
44
+ externalProductId: string;
45
+ externalIntegrationId: string;
46
+ workflowId?: string;
47
+ type: "external";
48
+ }
49
+ type GetWorkflowOptions = GetWorkflowFromTransactionOptions | GetWorkflowFromIntegrationProductOptions | GetWorkflowFromExternalProductOptions;
32
50
  interface SpiffThemeContextTransaction extends SpiffThemeContextBase {
33
51
  workflowOptions: GetWorkflowOptions;
34
52
  type: "transaction";
@@ -145,4 +163,4 @@ type SpiffDevOptions = Omit<SpiffThemeContextTransaction, "container"> | Omit<Sp
145
163
  declare function setSpiffDevOptions(container: HTMLElement | string, context: SpiffDevOptions): void;
146
164
  declare function exampleThemeInstallConfig(opts?: Partial<SpiffThemeInstallConfiguration>): SpiffThemeInstallConfiguration;
147
165
 
148
- export { type GetBundleOptions, type SpiffAsset, SpiffAssetType, type SpiffDevOptions, type SpiffTheme, SpiffThemeConfigurationFieldType, type SpiffThemeConfigurationFile, type SpiffThemeConfigurationLaunchData, type SpiffThemeConfigurationLaunchDataTargetFile, type SpiffThemeConfigurationSchema, type SpiffThemeConfigurationSchemaField, type SpiffThemeContext, type SpiffThemeContextBundle, type SpiffThemeContextTransaction, SpiffThemeFileType, type SpiffThemeInstallConfiguration, type SpiffThemeInstallConfigurationField, type SpiffThemeLaunchData, type SpiffThemeLaunchDataTargetFile, type SpiffThemeLoader, type SpiffThemeVersion, exampleThemeInstallConfig, setSpiffDevOptions };
166
+ export { type GetBundleOptions, type GetWorkflowFromExternalProductOptions, type GetWorkflowFromIntegrationProductOptions, type GetWorkflowFromTransactionOptions, type GetWorkflowOptions, type SpiffAsset, SpiffAssetType, type SpiffDevOptions, type SpiffTheme, SpiffThemeConfigurationFieldType, type SpiffThemeConfigurationFile, type SpiffThemeConfigurationLaunchData, type SpiffThemeConfigurationLaunchDataTargetFile, type SpiffThemeConfigurationSchema, type SpiffThemeConfigurationSchemaField, type SpiffThemeContext, type SpiffThemeContextBundle, type SpiffThemeContextTransaction, SpiffThemeFileType, type SpiffThemeInstallConfiguration, type SpiffThemeInstallConfigurationField, type SpiffThemeLaunchData, type SpiffThemeLaunchDataTargetFile, type SpiffThemeLoader, type SpiffThemeVersion, exampleThemeInstallConfig, setSpiffDevOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/theme-bridge",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsc && vite build",