@spiffcommerce/core 18.1.0-alpha.3 → 18.1.0-beta.1

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
@@ -645,8 +645,19 @@ interface IntegrationProduct {
645
645
  * The integration that this product is associated with. For example a Shopify integration.
646
646
  */
647
647
  integration?: Integration;
648
+ /**
649
+ * The ID of an additional product (on the third party platform) that should be added to the cart.
650
+ */
648
651
  additionalExternalProductId?: string;
652
+ /**
653
+ * A supplementary ID for the additional product. Shopify uses the variant ids to add products to the cart.
654
+ */
649
655
  additionalExternalVariantId?: string;
656
+ /**
657
+ * When the additionalExternalProductId is set, this is the Spiff product that is associated with it.
658
+ * If no Spiff product has been associated with the additionalExternalProductId, this will be null.
659
+ */
660
+ additionalProduct?: Product;
650
661
  }
651
662
  interface Integration {
652
663
  id: string;
@@ -1642,6 +1653,25 @@ declare class CollectionProduct {
1642
1653
  * The raw product resource. This is generally not needed and should be avoided.
1643
1654
  */
1644
1655
  getResource(): Product;
1656
+ /**
1657
+ * Gets the base price of the product. Optionally include additional product pricing.
1658
+ * @param includeAdditionalProduct Optionally include additional product pricing. You must provide at least one of the fields on this object.
1659
+ * @returns
1660
+ */
1661
+ getBasePrice(includeAdditionalProduct?: {
1662
+ /**
1663
+ * The integration type to locate the additional product on.
1664
+ */
1665
+ integrationType?: IntegrationType;
1666
+ /**
1667
+ * The external ID of the integration to locate the additional product on.
1668
+ */
1669
+ externalId?: string;
1670
+ /**
1671
+ * The internal Spiff integration ID to locate the additional product on.
1672
+ */
1673
+ integrationId?: string;
1674
+ }): number;
1645
1675
  }
1646
1676
  /**
1647
1677
  * Represents a the relationship between a workflow and a product.
@@ -2357,7 +2387,7 @@ declare class IllustrationStepService implements StepService<IllustrationStepDat
2357
2387
  };
2358
2388
  init(stepData: Step<IllustrationStepData>, workflowManager: WorkflowManager, reducerState?: LayoutsState): Promise<CommandWithFollowup | null>;
2359
2389
  private reload;
2360
- availableColors(stepData: Step<IllustrationStepData>, _workflowManager: WorkflowManager): Promise<{
2390
+ availableColors(stepData: Step<IllustrationStepData>, workflowManager: WorkflowManager): Promise<{
2361
2391
  fill: string | undefined;
2362
2392
  stroke: string | undefined;
2363
2393
  variant: VariantResource;