@spiffcommerce/core 18.1.0-beta.0 → 18.1.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 +1 -28
- package/dist/index.js +1044 -1089
- package/dist/index.umd.cjs +78 -112
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -645,19 +645,8 @@ 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
|
-
*/
|
|
651
648
|
additionalExternalProductId?: string;
|
|
652
|
-
/**
|
|
653
|
-
* A supplementary ID for the additional product. Shopify uses the variant ids to add products to the cart.
|
|
654
|
-
*/
|
|
655
649
|
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;
|
|
661
650
|
}
|
|
662
651
|
interface Integration {
|
|
663
652
|
id: string;
|
|
@@ -1653,22 +1642,6 @@ declare class CollectionProduct {
|
|
|
1653
1642
|
* The raw product resource. This is generally not needed and should be avoided.
|
|
1654
1643
|
*/
|
|
1655
1644
|
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;
|
|
1672
1645
|
}
|
|
1673
1646
|
/**
|
|
1674
1647
|
* Represents a the relationship between a workflow and a product.
|
|
@@ -2384,7 +2357,7 @@ declare class IllustrationStepService implements StepService<IllustrationStepDat
|
|
|
2384
2357
|
};
|
|
2385
2358
|
init(stepData: Step<IllustrationStepData>, workflowManager: WorkflowManager, reducerState?: LayoutsState): Promise<CommandWithFollowup | null>;
|
|
2386
2359
|
private reload;
|
|
2387
|
-
availableColors(stepData: Step<IllustrationStepData>,
|
|
2360
|
+
availableColors(stepData: Step<IllustrationStepData>, _workflowManager: WorkflowManager): Promise<{
|
|
2388
2361
|
fill: string | undefined;
|
|
2389
2362
|
stroke: string | undefined;
|
|
2390
2363
|
variant: VariantResource;
|