@spiffcommerce/core 18.1.0-alpha.3 → 18.1.0-beta.0
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 +28 -1
- package/dist/index.js +1089 -1044
- package/dist/index.umd.cjs +112 -78
- package/package.json +1 -1
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,22 @@ 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 one or both of `integrationType` or `externalId`.
|
|
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
|
+
}): number;
|
|
1671
|
+
private getIntegrationProductByExternalId;
|
|
1645
1672
|
}
|
|
1646
1673
|
/**
|
|
1647
1674
|
* Represents a the relationship between a workflow and a product.
|
|
@@ -2357,7 +2384,7 @@ declare class IllustrationStepService implements StepService<IllustrationStepDat
|
|
|
2357
2384
|
};
|
|
2358
2385
|
init(stepData: Step<IllustrationStepData>, workflowManager: WorkflowManager, reducerState?: LayoutsState): Promise<CommandWithFollowup | null>;
|
|
2359
2386
|
private reload;
|
|
2360
|
-
availableColors(stepData: Step<IllustrationStepData>,
|
|
2387
|
+
availableColors(stepData: Step<IllustrationStepData>, workflowManager: WorkflowManager): Promise<{
|
|
2361
2388
|
fill: string | undefined;
|
|
2362
2389
|
stroke: string | undefined;
|
|
2363
2390
|
variant: VariantResource;
|