@spiffcommerce/core 34.0.3 → 34.1.0-beta.045b4f76-f7f9-5412-8815-ccbd8e5a09a4
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 +13 -2
- package/dist/index.js +252 -203
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2829 -2710
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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",
|
|
@@ -4046,6 +4048,7 @@ interface Partner {
|
|
|
4046
4048
|
currencyCode?: string;
|
|
4047
4049
|
customerDetailsPromptMarkdown?: string;
|
|
4048
4050
|
activeAddons?: AddonHandle[];
|
|
4051
|
+
beta?: boolean;
|
|
4049
4052
|
}
|
|
4050
4053
|
declare enum AddonHandle {
|
|
4051
4054
|
BackgroundRemover = "BackgroundRemover",
|
|
@@ -4256,6 +4259,14 @@ declare enum ProductCameraRig {
|
|
|
4256
4259
|
Orbit = 0,
|
|
4257
4260
|
Pan = 1
|
|
4258
4261
|
}
|
|
4262
|
+
interface Design {
|
|
4263
|
+
id?: string;
|
|
4264
|
+
sku?: string;
|
|
4265
|
+
transaction?: Transaction;
|
|
4266
|
+
processExecution?: {
|
|
4267
|
+
id?: string;
|
|
4268
|
+
};
|
|
4269
|
+
}
|
|
4259
4270
|
/**
|
|
4260
4271
|
* Someone who has used a workflow experience and entered their contact details.
|
|
4261
4272
|
*/
|