@spiffcommerce/core 34.1.0-beta.7aa1a99d-0a8c-5121-9077-e86bd0250c3d → 34.1.0-beta.7d1062f1-7d67-5ea3-8640-5d0681c80907
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 +2 -12
- package/dist/index.js +253 -305
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2901 -3022
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2025,13 +2025,12 @@ 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
|
|
2028
|
+
* @param onProgressUpdate 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).
|
|
2032
2031
|
* @returns {BundleDesignCreationMessage} An object containing an array of design messages, along with the Bundle's Id and the event type.
|
|
2033
2032
|
*/
|
|
2034
|
-
finish(onProgressUpdate?: DesignCreationProgressUpdate, createPreviewImage?: (workflowExperience: WorkflowExperience, shouldRender3D?: boolean) => Promise<string | undefined
|
|
2033
|
+
finish(onProgressUpdate?: DesignCreationProgressUpdate, createPreviewImage?: (workflowExperience: WorkflowExperience, shouldRender3D?: boolean) => Promise<string | undefined>): Promise<BundleDesignCreationMessage>;
|
|
2035
2034
|
/**
|
|
2036
2035
|
* A convenience function allowing you to place an order with all the items in the bundle.
|
|
2037
2036
|
*/
|
|
@@ -3894,7 +3893,6 @@ interface Transaction {
|
|
|
3894
3893
|
marketplaceThemeInstallConfiguration?: ThemeInstallConfigurationGraphQl;
|
|
3895
3894
|
completed?: boolean;
|
|
3896
3895
|
addressValidationStatus?: AddressValidationStatus;
|
|
3897
|
-
design?: Design;
|
|
3898
3896
|
}
|
|
3899
3897
|
declare enum AddressValidationStatus {
|
|
3900
3898
|
Pending = "Pending",
|
|
@@ -4259,14 +4257,6 @@ declare enum ProductCameraRig {
|
|
|
4259
4257
|
Orbit = 0,
|
|
4260
4258
|
Pan = 1
|
|
4261
4259
|
}
|
|
4262
|
-
interface Design {
|
|
4263
|
-
id?: string;
|
|
4264
|
-
sku?: string;
|
|
4265
|
-
transaction?: Transaction;
|
|
4266
|
-
processExecution?: {
|
|
4267
|
-
id?: string;
|
|
4268
|
-
};
|
|
4269
|
-
}
|
|
4270
4260
|
/**
|
|
4271
4261
|
* Someone who has used a workflow experience and entered their contact details.
|
|
4272
4262
|
*/
|