@spiffcommerce/core 42.1.0 → 42.1.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.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BuxV3n7D.cjs");exports.AddonHandle=e.AddonHandle;exports.AddressValidationJobStatus=e.AddressValidationJobStatus;exports.AddressValidationResultConfirmationLevel=e.AddressValidationResultConfirmationLevel;exports.AddressValidationStatus=e.AddressValidationStatus;exports.ArrayInput=e.ArrayInput;exports.AspectType=e.AspectType;exports.AssetNotFoundError=e.AssetNotFoundError;exports.AssetType=e.AssetType;exports.BringForwardCommand=e.BringForwardCommand;exports.BringToBackCommand=e.BringToBackCommand;exports.BringToFrontCommand=e.BringToFrontCommand;exports.BundleDesignCreationCartAddMode=e.BundleDesignCreationCartAddMode;exports.CanvasCommand=e.CanvasCommand;exports.CollectionProduct=e.CollectionProduct;exports.ColorOptionGlobalPropertyHandle=e.ColorOptionGlobalPropertyHandle;exports.CommandContext=e.CommandContext;exports.ConversionDataType=e.ConversionDataType;exports.CreateElementCommand=e.CreateElementCommand;exports.CreateLayoutCommand=e.CreateLayoutCommand;exports.CurrencyContext=e.CurrencyContext;exports.CurrencyService=e.CurrencyService;exports.DeleteElementCommand=e.DeleteElementCommand;exports.DigitalContentStepHandle=e.DigitalContentStepHandle;exports.FileUploadGlobalPropertyHandle=e.FileUploadGlobalPropertyHandle;exports.FlowExecutionNodeResult=e.FlowExecutionNodeResult;exports.FlowExecutionResult=e.FlowExecutionResult;exports.FlowService=e.FlowService;exports.FontAlignmentCommand=e.FontAlignmentCommand;exports.FontColorCommand=e.FontColorCommand;exports.FontSizeCommand=e.FontSizeCommand;exports.FontSourceCommand=e.FontSourceCommand;exports.FrameService=e.FrameService;exports.FrameStep=e.FrameStep;exports.FrameStepHandle=e.FrameStepHandle;exports.GlobalPropertyHandle=e.GlobalPropertyHandle;exports.GroupCommand=e.GroupCommand;exports.IllustrationStepHandle=e.IllustrationStepHandle;exports.ImageState=e.ImageState;exports.InformationMessageType=e.InformationMessageType;exports.InformationStepHandle=e.InformationStepHandle;exports.IntegrationProduct=e.IntegrationProduct;exports.IntegrationType=e.IntegrationType;exports.LayoutElementFactory=e.LayoutElementFactory;exports.LayoutElementType=e.LayoutElementType;exports.LayoutNotFoundError=e.LayoutNotFoundError;exports.LayoutRenderingPurpose=e.LayoutRenderingPurpose;exports.MaterialStepHandle=e.MaterialStepHandle;exports.MisconfigurationError=e.MisconfigurationError;exports.MockWorkflowManager=e.MockWorkflowManager;exports.ModelStepHandle=e.ModelStepHandle;exports.ModuleStepHandle=e.ModuleStepHandle;exports.MoveCommand=e.MoveCommand;exports.ObjectInput=e.ObjectInput;exports.ObjectInputType=e.ObjectInputType;exports.OptionGlobalPropertyHandle=e.OptionGlobalPropertyHandle;exports.OptionNotFoundError=e.OptionNotFoundError;exports.ParseError=e.ParseError;exports.PictureStepHandle=e.PictureStepHandle;exports.ProductCameraRig=e.ProductCameraRig;exports.ProductCollection=e.ProductCollection;exports.ProductCollectionProductSortKey=e.ProductCollectionProductSortKey;exports.ProductStepHandle=e.ProductStepHandle;exports.ProductWorkflow=e.ProductWorkflow;exports.PromiseCache=e.promiseCache;exports.PromiseQueue=e.PromiseQueue;exports.QuestionStepHandle=e.QuestionStepHandle;exports.QueueablePromise=e.QueueablePromise;exports.ResizeCommand=e.ResizeCommand;exports.ResourceNotFoundError=e.ResourceNotFoundError;exports.RotateCommand=e.RotateCommand;exports.ScaleAxis=e.ScaleAxis;exports.SendBackwardsCommand=e.SendBackwardsCommand;exports.ShapeStepHandle=e.ShapeStepHandle;exports.ShareActionType=e.ShareActionType;exports.SpiffCommerceClient=e.SpiffCommerceClient;exports.StakeholderType=e.StakeholderType;exports.StepAspectType=e.StepAspectType;exports.StepHandle=e.StepHandle;exports.StepType=e.StepType;exports.TextAlgorithm=e.TextAlgorithm;exports.TextChangeCommand=e.TextChangeCommand;exports.TextGlobalPropertyHandle=e.TextGlobalPropertyHandle;exports.TextInput=e.TextInput;exports.TextStepHandle=e.TextStepHandle;exports.UnhandledBehaviorError=e.UnhandledBehaviorError;exports.UnitOfMeasurement=e.UnitOfMeasurement;exports.UpdateImageSourceCommand=e.UpdateImageSourceCommand;exports.Variant=e.Variant;exports.WorkflowExperienceEventType=e.WorkflowExperienceEventType;exports.WorkflowExperienceImpl=e.WorkflowExperienceImpl;exports.amtChannelsForAspect=e.amtChannelsForAspect;exports.assetConfigurationDeleteMutation=e.assetConfigurationDeleteMutation;exports.assetConfigurationUpdateMutation=e.assetConfigurationUpdateMutation;exports.assetConfigurationsQuery=e.assetConfigurationsQuery;exports.assetService=e.assetService;exports.browserColorToHex=e.browserColorToHex;exports.bundleEmailMutation=e.bundleEmailMutation;exports.cmPerPixel=e.cmPerPixel;exports.currentDirection=e.currentDirection;exports.dataUrlFromExternalUrl=e.dataUrlFromExternalUrl;exports.deleteBundle=e.deleteBundle;exports.designService=e.designService;exports.determineCorrectFontSizeAndLines=e.determineCorrectFontSizeAndLines;exports.digitalContentStepService=e.digitalContentStepService;exports.domParser=e.domParser;exports.duplicateBundle=e.duplicateBundle;exports.duplicateTransaction=e.duplicateTransaction;exports.fetchAsString=e.fetchAsString;exports.findAngle=e.findAngle;exports.findElement=e.findElement;exports.findPmsColors=e.findPmsColors;exports.frameDataCache=e.frameDataCache;exports.frameStepService=e.frameStepService;exports.generate=e.generate;exports.generateCommands=e.generateCommands;exports.generateSVGWithUnknownColors=e.generateSVGWithUnknownColors;exports.generateStateFromDesignInputSteps=e.generateStateFromDesignInputSteps;exports.getAddressValidationJobs=e.getAddressValidationJobs;exports.getAssetsForProductImagesQuery=e.getAssetsForProductImagesQuery;exports.getAttributesFromArrayBuffer=e.getAttributesFromArrayBuffer;exports.getAxisAlignedBoundingBox=e.getAxisAlignedBoundingBox;exports.getBoundedOffsets=e.getBoundedOffsets;exports.getBundleIdForTransaction=e.getBundleIdForTransaction;exports.getBundleThemeConfiguration=e.getBundleThemeConfiguration;exports.getCustomer=e.getCustomer;exports.getCustomerBundles=e.getCustomerBundles;exports.getElementVertices=e.getElementVertices;exports.getFrameData=e.getFrameData;exports.getGlobalPropertyStateForBundle=e.getGlobalPropertyStateForBundle;exports.getIntegration=e.getIntegration;exports.getIntegrationProducts=e.getIntegrationProducts;exports.getNEPoint=e.getNEPoint;exports.getNWPoint=e.getNWPoint;exports.getOrderedTransactions=e.getOrderedTransactions;exports.getOverrideThemeConfiguration=e.getOverrideThemeConfiguration;exports.getPointOfRotation=e.getPointOfRotation;exports.getProductCollections=e.getProductCollections;exports.getSEPoint=e.getSEPoint;exports.getSvgElement=e.getSvgElement;exports.getTemplateBundles=e.getTemplateBundles;exports.getTemplateTransactions=e.getTemplateTransactions;exports.getTransaction=e.getTransaction;exports.getTransactionThemeConfiguration=e.getTransactionThemeConfiguration;exports.getTransactionsForBundle=e.getTransactionsForBundle;exports.getTransformedAssetURL=e.getTransformedAssetURL;exports.getTrueCoordinates=e.getTrueCoordinates;exports.getUnorderedTransactions=e.getUnorderedTransactions;exports.getValidationJobsForWorkflowExperiences=e.getValidationJobsForWorkflowExperiences;exports.getWorkflow=e.getWorkflow;exports.getWorkflows=e.getWorkflows;exports.graphQlManager=e.graphQlManager;exports.illustrationStepService=e.illustrationStepService;exports.isCloseToValue=e.isCloseToValue;exports.loadFont=e.loadFont;exports.matchHexToPms=e.matchHexToPms;exports.materialStepService=e.materialStepService;exports.mergeColorClasses=e.mergeColorClasses;exports.metafieldManager=e.metafieldManager;exports.mmPerPixel=e.mmPerPixel;exports.modelStepService=e.modelStepService;exports.modifySVGColors=e.modifySVGColors;exports.moduleStepService=e.moduleStepService;exports.nameBundle=e.nameBundle;exports.nameTransaction=e.nameTransaction;exports.optionService=e.optionService;exports.outlineFontsInSvg=e.outlineFontsInSvg;exports.overrideWorkflowExperienceRecipientAddress=e.overrideWorkflowExperienceRecipientAddress;exports.patternImageDataCache=e.patternImageDataCache;exports.persistenceService=e.persistenceService;exports.pictureStepService=e.pictureStepService;exports.pmsToRgb=e.pmsToRgb;exports.questionStepService=e.questionStepService;exports.registerFetchImplementation=e.registerFetchImplementation;exports.registerWindowImplementation=e.registerWindowImplementation;exports.rehydrateSerializedLayout=e.rehydrateSerializedLayout;exports.rgbToPms=e.rgbToPms;exports.rotateAroundPoint=e.rotateAroundPoint;exports.sanitizeSvgTree=e.sanitizeSvgTree;exports.setBearerAuthenticationToken=e.setBearerAuthenticationToken;exports.setCanvasModule=e.setCanvasModule;exports.shapeStepService=e.shapeStepService;exports.shortenUrl=e.shortenUrl;exports.spiffCoreConfiguration=e.spiffCoreConfiguration;exports.stepAspectValuesToDesignInputSteps=e.stepAspectValuesToDesignInputSteps;exports.svgColorValueToDefinition=e.svgColorValueToDefinition;exports.svgStringDimensions=e.svgStringDimensions;exports.svgToDataUrl=e.svgToDataUrl;exports.textStepService=e.textStepService;exports.toast=e.toast;exports.validateWorkflowExperienceRecipient=e.validateWorkflowExperienceRecipient;exports.validateWorkflowExperienceRecipients=e.validateWorkflowExperienceRecipients;exports.xmlSerializer=e.xmlSerializer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BKUDskKV.cjs");exports.AddonHandle=e.AddonHandle;exports.AddressValidationJobStatus=e.AddressValidationJobStatus;exports.AddressValidationResultConfirmationLevel=e.AddressValidationResultConfirmationLevel;exports.AddressValidationStatus=e.AddressValidationStatus;exports.ArrayInput=e.ArrayInput;exports.AspectType=e.AspectType;exports.AssetNotFoundError=e.AssetNotFoundError;exports.AssetType=e.AssetType;exports.BringForwardCommand=e.BringForwardCommand;exports.BringToBackCommand=e.BringToBackCommand;exports.BringToFrontCommand=e.BringToFrontCommand;exports.BundleDesignCreationCartAddMode=e.BundleDesignCreationCartAddMode;exports.CanvasCommand=e.CanvasCommand;exports.CollectionProduct=e.CollectionProduct;exports.ColorOptionGlobalPropertyHandle=e.ColorOptionGlobalPropertyHandle;exports.CommandContext=e.CommandContext;exports.ConversionDataType=e.ConversionDataType;exports.CreateElementCommand=e.CreateElementCommand;exports.CreateLayoutCommand=e.CreateLayoutCommand;exports.CurrencyContext=e.CurrencyContext;exports.CurrencyService=e.CurrencyService;exports.DeleteElementCommand=e.DeleteElementCommand;exports.DigitalContentStepHandle=e.DigitalContentStepHandle;exports.FileUploadGlobalPropertyHandle=e.FileUploadGlobalPropertyHandle;exports.FlowExecutionNodeResult=e.FlowExecutionNodeResult;exports.FlowExecutionResult=e.FlowExecutionResult;exports.FlowService=e.FlowService;exports.FontAlignmentCommand=e.FontAlignmentCommand;exports.FontColorCommand=e.FontColorCommand;exports.FontSizeCommand=e.FontSizeCommand;exports.FontSourceCommand=e.FontSourceCommand;exports.FrameService=e.FrameService;exports.FrameStep=e.FrameStep;exports.FrameStepHandle=e.FrameStepHandle;exports.GlobalPropertyHandle=e.GlobalPropertyHandle;exports.GroupCommand=e.GroupCommand;exports.IllustrationStepHandle=e.IllustrationStepHandle;exports.ImageState=e.ImageState;exports.InformationMessageType=e.InformationMessageType;exports.InformationStepHandle=e.InformationStepHandle;exports.IntegrationProduct=e.IntegrationProduct;exports.IntegrationType=e.IntegrationType;exports.LayoutElementFactory=e.LayoutElementFactory;exports.LayoutElementType=e.LayoutElementType;exports.LayoutNotFoundError=e.LayoutNotFoundError;exports.LayoutRenderingPurpose=e.LayoutRenderingPurpose;exports.MaterialStepHandle=e.MaterialStepHandle;exports.MisconfigurationError=e.MisconfigurationError;exports.MockWorkflowManager=e.MockWorkflowManager;exports.ModelStepHandle=e.ModelStepHandle;exports.ModuleStepHandle=e.ModuleStepHandle;exports.MoveCommand=e.MoveCommand;exports.ObjectInput=e.ObjectInput;exports.ObjectInputType=e.ObjectInputType;exports.OptionGlobalPropertyHandle=e.OptionGlobalPropertyHandle;exports.OptionNotFoundError=e.OptionNotFoundError;exports.ParseError=e.ParseError;exports.PictureStepHandle=e.PictureStepHandle;exports.ProductCameraRig=e.ProductCameraRig;exports.ProductCollection=e.ProductCollection;exports.ProductCollectionProductSortKey=e.ProductCollectionProductSortKey;exports.ProductStepHandle=e.ProductStepHandle;exports.ProductWorkflow=e.ProductWorkflow;exports.PromiseCache=e.promiseCache;exports.PromiseQueue=e.PromiseQueue;exports.QuestionStepHandle=e.QuestionStepHandle;exports.QueueablePromise=e.QueueablePromise;exports.ResizeCommand=e.ResizeCommand;exports.ResourceNotFoundError=e.ResourceNotFoundError;exports.RotateCommand=e.RotateCommand;exports.ScaleAxis=e.ScaleAxis;exports.SendBackwardsCommand=e.SendBackwardsCommand;exports.ShapeStepHandle=e.ShapeStepHandle;exports.ShareActionType=e.ShareActionType;exports.SpiffCommerceClient=e.SpiffCommerceClient;exports.StakeholderType=e.StakeholderType;exports.StepAspectType=e.StepAspectType;exports.StepHandle=e.StepHandle;exports.StepType=e.StepType;exports.TextAlgorithm=e.TextAlgorithm;exports.TextChangeCommand=e.TextChangeCommand;exports.TextGlobalPropertyHandle=e.TextGlobalPropertyHandle;exports.TextInput=e.TextInput;exports.TextStepHandle=e.TextStepHandle;exports.UnhandledBehaviorError=e.UnhandledBehaviorError;exports.UnitOfMeasurement=e.UnitOfMeasurement;exports.UpdateImageSourceCommand=e.UpdateImageSourceCommand;exports.Variant=e.Variant;exports.WorkflowExperienceEventType=e.WorkflowExperienceEventType;exports.WorkflowExperienceImpl=e.WorkflowExperienceImpl;exports.amtChannelsForAspect=e.amtChannelsForAspect;exports.assetConfigurationDeleteMutation=e.assetConfigurationDeleteMutation;exports.assetConfigurationUpdateMutation=e.assetConfigurationUpdateMutation;exports.assetConfigurationsQuery=e.assetConfigurationsQuery;exports.assetService=e.assetService;exports.browserColorToHex=e.browserColorToHex;exports.bundleEmailMutation=e.bundleEmailMutation;exports.cmPerPixel=e.cmPerPixel;exports.currentDirection=e.currentDirection;exports.dataUrlFromExternalUrl=e.dataUrlFromExternalUrl;exports.deleteBundle=e.deleteBundle;exports.designService=e.designService;exports.determineCorrectFontSizeAndLines=e.determineCorrectFontSizeAndLines;exports.digitalContentStepService=e.digitalContentStepService;exports.domParser=e.domParser;exports.duplicateBundle=e.duplicateBundle;exports.duplicateTransaction=e.duplicateTransaction;exports.fetchAsString=e.fetchAsString;exports.findAngle=e.findAngle;exports.findElement=e.findElement;exports.findPmsColors=e.findPmsColors;exports.frameDataCache=e.frameDataCache;exports.frameStepService=e.frameStepService;exports.generate=e.generate;exports.generateCommands=e.generateCommands;exports.generateSVGWithUnknownColors=e.generateSVGWithUnknownColors;exports.generateStateFromDesignInputSteps=e.generateStateFromDesignInputSteps;exports.getAddressValidationJobs=e.getAddressValidationJobs;exports.getAssetsForProductImagesQuery=e.getAssetsForProductImagesQuery;exports.getAttributesFromArrayBuffer=e.getAttributesFromArrayBuffer;exports.getAxisAlignedBoundingBox=e.getAxisAlignedBoundingBox;exports.getBoundedOffsets=e.getBoundedOffsets;exports.getBundleIdForTransaction=e.getBundleIdForTransaction;exports.getBundleThemeConfiguration=e.getBundleThemeConfiguration;exports.getCustomer=e.getCustomer;exports.getCustomerBundles=e.getCustomerBundles;exports.getElementVertices=e.getElementVertices;exports.getFrameData=e.getFrameData;exports.getGlobalPropertyStateForBundle=e.getGlobalPropertyStateForBundle;exports.getIntegration=e.getIntegration;exports.getIntegrationProducts=e.getIntegrationProducts;exports.getNEPoint=e.getNEPoint;exports.getNWPoint=e.getNWPoint;exports.getOrderedTransactions=e.getOrderedTransactions;exports.getOverrideThemeConfiguration=e.getOverrideThemeConfiguration;exports.getPointOfRotation=e.getPointOfRotation;exports.getProductCollections=e.getProductCollections;exports.getSEPoint=e.getSEPoint;exports.getSvgElement=e.getSvgElement;exports.getTemplateBundles=e.getTemplateBundles;exports.getTemplateTransactions=e.getTemplateTransactions;exports.getTransaction=e.getTransaction;exports.getTransactionThemeConfiguration=e.getTransactionThemeConfiguration;exports.getTransactionsForBundle=e.getTransactionsForBundle;exports.getTransformedAssetURL=e.getTransformedAssetURL;exports.getTrueCoordinates=e.getTrueCoordinates;exports.getUnorderedTransactions=e.getUnorderedTransactions;exports.getValidationJobsForWorkflowExperiences=e.getValidationJobsForWorkflowExperiences;exports.getWorkflow=e.getWorkflow;exports.getWorkflows=e.getWorkflows;exports.graphQlManager=e.graphQlManager;exports.illustrationStepService=e.illustrationStepService;exports.isCloseToValue=e.isCloseToValue;exports.loadFont=e.loadFont;exports.matchHexToPms=e.matchHexToPms;exports.materialStepService=e.materialStepService;exports.mergeColorClasses=e.mergeColorClasses;exports.metafieldManager=e.metafieldManager;exports.mmPerPixel=e.mmPerPixel;exports.modelStepService=e.modelStepService;exports.modifySVGColors=e.modifySVGColors;exports.moduleStepService=e.moduleStepService;exports.nameBundle=e.nameBundle;exports.nameTransaction=e.nameTransaction;exports.optionService=e.optionService;exports.outlineFontsInSvg=e.outlineFontsInSvg;exports.overrideWorkflowExperienceRecipientAddress=e.overrideWorkflowExperienceRecipientAddress;exports.patternImageDataCache=e.patternImageDataCache;exports.persistenceService=e.persistenceService;exports.pictureStepService=e.pictureStepService;exports.pmsToRgb=e.pmsToRgb;exports.questionStepService=e.questionStepService;exports.registerFetchImplementation=e.registerFetchImplementation;exports.registerWindowImplementation=e.registerWindowImplementation;exports.rehydrateSerializedLayout=e.rehydrateSerializedLayout;exports.rgbToPms=e.rgbToPms;exports.rotateAroundPoint=e.rotateAroundPoint;exports.sanitizeSvgTree=e.sanitizeSvgTree;exports.setBearerAuthenticationToken=e.setBearerAuthenticationToken;exports.setCanvasModule=e.setCanvasModule;exports.shapeStepService=e.shapeStepService;exports.shortenUrl=e.shortenUrl;exports.spiffCoreConfiguration=e.spiffCoreConfiguration;exports.stepAspectValuesToDesignInputSteps=e.stepAspectValuesToDesignInputSteps;exports.svgColorValueToDefinition=e.svgColorValueToDefinition;exports.svgStringDimensions=e.svgStringDimensions;exports.svgToDataUrl=e.svgToDataUrl;exports.textStepService=e.textStepService;exports.toast=e.toast;exports.validateWorkflowExperienceRecipient=e.validateWorkflowExperienceRecipient;exports.validateWorkflowExperienceRecipients=e.validateWorkflowExperienceRecipients;exports.xmlSerializer=e.xmlSerializer;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -2045,6 +2045,15 @@ interface Bundle$1 {
2045
2045
  * Returns all workflow experiences currently added to this bundle.
2046
2046
  */
2047
2047
  getWorkflowExperiences(): WorkflowExperience[];
2048
+ /**
2049
+ * Returns only top-level workflow experiences (excludes child transactions
2050
+ * that were added as extras/add-ons via Product Steps).
2051
+ */
2052
+ getTopLevelWorkflowExperiences(): WorkflowExperience[];
2053
+ /**
2054
+ * Returns child workflow experiences that belong to a given parent transaction.
2055
+ */
2056
+ getChildWorkflowExperiences(parentTransactionId: string): WorkflowExperience[];
2048
2057
  /**
2049
2058
  * Sort the list of workflow experiences. The sorting is performed locally, and then the order is updated in the Spiff Commerce system.
2050
2059
  * @returns A promise that resolves when the re-ordering of the workflow experiences has been updated in the Spiff Commerce system.
@@ -2632,6 +2641,7 @@ declare class SpiffCommerceClient {
2632
2641
  * @returns
2633
2642
  */
2634
2643
  private updateTransactionState;
2644
+ private getCreateTransactionContext;
2635
2645
  storeCustomer(customer: Customer): void;
2636
2646
  getIntegrationProductById(integrationProductId: string, fetchIntegrationsOnProduct?: boolean): Promise<IntegrationProduct>;
2637
2647
  getIntegrationProductFromExternalIds(externalIntegrationId: string, externalProductId: string, fetchIntegrationsOnProduct?: boolean): Promise<IntegrationProduct>;
@@ -5867,9 +5877,21 @@ declare class MaterialStepHandle extends StepHandle<MaterialStepData> {
5867
5877
  }
5868
5878
 
5869
5879
  declare class ProductStepHandle extends StepHandle<ProductStepData> {
5880
+ private cachedProductIds;
5870
5881
  constructor(manager: WorkflowManager, step: Step<ProductStepData>, tags: string[]);
5871
5882
  selectVariant(): Promise<void>;
5883
+ getAvailableVariants(): Promise<Variant[]>;
5884
+ /**
5885
+ * Whether a product's variant has an associated workflow (is personalisable).
5886
+ */
5887
+ private isPersonalisable;
5872
5888
  addProduct(variant: Variant): Promise<void>;
5889
+ /**
5890
+ * For non-personalisable products: if a transaction already exists for this product,
5891
+ * increment its quantity. Otherwise create a new transaction with quantity 1.
5892
+ */
5893
+ private incrementNonPersonalisable;
5894
+ removeProduct(transactionId: string): Promise<void>;
5873
5895
  /**
5874
5896
  * Whether category filtering is enabled.
5875
5897
  */
@@ -5895,16 +5917,23 @@ declare class ProductStepHandle extends StepHandle<ProductStepData> {
5895
5917
  */
5896
5918
  getWorkflows(): string[];
5897
5919
  /**
5898
- * Get child transactions that belong to this transaction.
5899
- * Returns transactions where parentTransaction.id matches current transaction ID.
5920
+ * Get child transactions that belong to this step specifically.
5921
+ * Filters by parent transaction AND by products available in this step's option.
5900
5922
  */
5901
5923
  getChildTransactions(): Transaction[];
5902
5924
  /**
5903
- * Remove a product transaction from the bundle.
5904
- * @param transactionId The ID of the transaction to remove.
5905
- * @throws Error if the transaction is not a child of this transaction.
5925
+ * Get the set of product IDs that belong to this step's option.
5926
+ * Uses cached data from getAvailableVariants() which has full product info.
5906
5927
  */
5907
- removeProduct(transactionId: string): Promise<void>;
5928
+ private getStepProductIds;
5929
+ /**
5930
+ * Get locked add-ons configured on this product step.
5931
+ */
5932
+ getLockedAddOns(): ProductStepLockedAddOn[];
5933
+ /**
5934
+ * Find an existing WorkflowExperience for a given product ID within this step's children.
5935
+ */
5936
+ private findExperienceForProduct;
5908
5937
  }
5909
5938
 
5910
5939
  declare class QuestionStepHandle extends StepHandle<QuestionStepData> {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, a as t, b as o, c as n, d as r, e as i, g as l, h as d, B as m, i as c, j as u, k as p, C as g, l as b, m as S, n as C, o as T, p as f, q as P, r as v, s as y, D as F, u as A, F as E, v as x, w as h, x as I, y as B, z as H, E as w, G as k, H as M, I as D, J as R, K as W, L as U, M as V, N as O, O as G, P as L, Q as N, R as z, S as Q, T as J, U as j, V as q, W as K, X, Y, Z, _, $, a0 as aa, a1 as ea, a2 as sa, a3 as ta, a4 as oa, a5 as na, a6 as ra, a7 as ia, a8 as la, a9 as da, aa as ma, ab as ca, ac as ua, ad as pa, ae as ga, af as ba, ag as Sa, ah as Ca, ai as Ta, aj as fa, ak as Pa, al as va, am as ya, an as Fa, ao as Aa, ap as Ea, aq as xa, ar as ha, as as Ia, at as Ba, au as Ha, av as wa, aw as ka, ax as Ma, ay as Da, az as Ra, aA as Wa, aB as Ua, aC as Va, aD as Oa, aE as Ga, aF as La, aG as Na, aH as za, aI as Qa, aJ as Ja, aK as ja, aL as qa, aM as Ka, aN as Xa, aO as Ya, aP as Za, aQ as _a, aR as $a, aS as ae, aT as ee, aU as se, aV as te, aW as oe, aX as ne, aY as re, aZ as ie, a_ as le, a$ as de, b0 as me, b1 as ce, b2 as ue, b3 as pe, b4 as ge, b5 as be, b6 as Se, b7 as Ce, b8 as Te, b9 as fe, ba as Pe, bb as ve, bc as ye, bd as Fe, be as Ae, bf as Ee, bg as xe, bh as he, bi as Ie, bj as Be, bk as He, bl as we, bm as ke, bn as Me, bo as De, bp as Re, bq as We, br as Ue, bs as Ve, bt as Oe, bu as Ge, bv as Le, bw as Ne, bx as ze, by as Qe, bz as Je, bA as je, bB as qe, bC as Ke, bD as Xe, bE as Ye, bF as Ze, bG as _e, bH as $e, bI as as, bJ as es, bK as ss, bL as ts, bM as os, bN as ns, bO as rs, bP as is, bQ as ls, bR as ds, bS as ms, bT as cs, bU as us, bV as ps, bW as gs, bX as bs, bY as Ss, bZ as Cs, b_ as Ts, b$ as fs, c0 as Ps, c1 as vs, c2 as ys, c3 as Fs, c4 as As, c5 as Es, c6 as xs, c7 as hs, c8 as Is, c9 as Bs, ca as Hs, cb as ws } from "./index-DHkGAaKB.js";
1
+ import { A as s, a as t, b as o, c as n, d as r, e as i, g as l, h as d, B as m, i as c, j as u, k as p, C as g, l as b, m as S, n as C, o as T, p as f, q as P, r as v, s as y, D as F, u as A, F as E, v as x, w as h, x as I, y as B, z as H, E as w, G as k, H as M, I as D, J as R, K as W, L as U, M as V, N as O, O as G, P as L, Q as N, R as z, S as Q, T as J, U as j, V as q, W as K, X, Y, Z, _, $, a0 as aa, a1 as ea, a2 as sa, a3 as ta, a4 as oa, a5 as na, a6 as ra, a7 as ia, a8 as la, a9 as da, aa as ma, ab as ca, ac as ua, ad as pa, ae as ga, af as ba, ag as Sa, ah as Ca, ai as Ta, aj as fa, ak as Pa, al as va, am as ya, an as Fa, ao as Aa, ap as Ea, aq as xa, ar as ha, as as Ia, at as Ba, au as Ha, av as wa, aw as ka, ax as Ma, ay as Da, az as Ra, aA as Wa, aB as Ua, aC as Va, aD as Oa, aE as Ga, aF as La, aG as Na, aH as za, aI as Qa, aJ as Ja, aK as ja, aL as qa, aM as Ka, aN as Xa, aO as Ya, aP as Za, aQ as _a, aR as $a, aS as ae, aT as ee, aU as se, aV as te, aW as oe, aX as ne, aY as re, aZ as ie, a_ as le, a$ as de, b0 as me, b1 as ce, b2 as ue, b3 as pe, b4 as ge, b5 as be, b6 as Se, b7 as Ce, b8 as Te, b9 as fe, ba as Pe, bb as ve, bc as ye, bd as Fe, be as Ae, bf as Ee, bg as xe, bh as he, bi as Ie, bj as Be, bk as He, bl as we, bm as ke, bn as Me, bo as De, bp as Re, bq as We, br as Ue, bs as Ve, bt as Oe, bu as Ge, bv as Le, bw as Ne, bx as ze, by as Qe, bz as Je, bA as je, bB as qe, bC as Ke, bD as Xe, bE as Ye, bF as Ze, bG as _e, bH as $e, bI as as, bJ as es, bK as ss, bL as ts, bM as os, bN as ns, bO as rs, bP as is, bQ as ls, bR as ds, bS as ms, bT as cs, bU as us, bV as ps, bW as gs, bX as bs, bY as Ss, bZ as Cs, b_ as Ts, b$ as fs, c0 as Ps, c1 as vs, c2 as ys, c3 as Fs, c4 as As, c5 as Es, c6 as xs, c7 as hs, c8 as Is, c9 as Bs, ca as Hs, cb as ws } from "./index-D_-p69Jf.js";
2
2
  export {
3
3
  s as AddonHandle,
4
4
  t as AddressValidationJobStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "42.1.0",
3
+ "version": "42.1.2",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "./dist/index.cjs",