@spiffcommerce/core 34.1.0-beta.ad8ae86e-9b1c-5fbd-bd4b-f385c5bfbb76 → 34.1.0-beta.d188dea5-287a-5e0d-b596-4d184da61dff

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
@@ -2025,12 +2025,13 @@ interface Bundle$1 {
2025
2025
  * Finalizes all experiences within the bundle. This will return a promise that resolves when all experiences have been finalized.
2026
2026
  * The promise resolves with a list of messages that indicate the status of each experience including
2027
2027
  * helpful details like what product to add to cart on supported e-commerce platforms.
2028
- * @param onProgressUpdate A callback that will be called when the progress of the finalization changes.
2028
+ * @param onProgressUpdate Deprecated: A callback that will be called when the progress of the finalization changes.
2029
2029
  * @param createPreviewImage A callback that will be called when a preview image is required. This is used to generate a preview image for the design.
2030
2030
  * If this callback is not provided, no preview image will be generated.
2031
+ * @param onProgress A callback that will be called when using the background process method (currently in beta).
2031
2032
  * @returns {BundleDesignCreationMessage} An object containing an array of design messages, along with the Bundle's Id and the event type.
2032
2033
  */
2033
- finish(onProgressUpdate?: DesignCreationProgressUpdate, createPreviewImage?: (workflowExperience: WorkflowExperience, shouldRender3D?: boolean) => Promise<string | undefined>): Promise<BundleDesignCreationMessage>;
2034
+ finish(onProgressUpdate?: DesignCreationProgressUpdate, createPreviewImage?: (workflowExperience: WorkflowExperience, shouldRender3D?: boolean) => Promise<string | undefined>, onProgress?: (completed: number, total: number) => void): Promise<BundleDesignCreationMessage>;
2034
2035
  /**
2035
2036
  * A convenience function allowing you to place an order with all the items in the bundle.
2036
2037
  */
@@ -3893,6 +3894,7 @@ interface Transaction {
3893
3894
  marketplaceThemeInstallConfiguration?: ThemeInstallConfigurationGraphQl;
3894
3895
  completed?: boolean;
3895
3896
  addressValidationStatus?: AddressValidationStatus;
3897
+ design?: Design;
3896
3898
  }
3897
3899
  declare enum AddressValidationStatus {
3898
3900
  Pending = "Pending",
@@ -4257,6 +4259,14 @@ declare enum ProductCameraRig {
4257
4259
  Orbit = 0,
4258
4260
  Pan = 1
4259
4261
  }
4262
+ interface Design {
4263
+ id?: string;
4264
+ sku?: string;
4265
+ transaction?: Transaction;
4266
+ processExecution?: {
4267
+ id?: string;
4268
+ };
4269
+ }
4260
4270
  /**
4261
4271
  * Someone who has used a workflow experience and entered their contact details.
4262
4272
  */