@spiffcommerce/core 19.3.0 → 19.3.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 +12 -7
- package/dist/index.js +550 -527
- package/dist/index.umd.cjs +84 -78
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -995,8 +995,8 @@ interface BundleStakeholderInput {
|
|
|
995
995
|
type ProductCollectionResource = {
|
|
996
996
|
id: string;
|
|
997
997
|
globalPropertyConfiguration?: GlobalPropertyConfiguration;
|
|
998
|
+
productCollectionProducts?: ProductCollectionProductResource[];
|
|
998
999
|
name: string;
|
|
999
|
-
productCollectionProducts: ProductCollectionProductResource[];
|
|
1000
1000
|
transformCollection?: TransformCollection$1;
|
|
1001
1001
|
};
|
|
1002
1002
|
type ProductCollectionProductResource = {
|
|
@@ -1638,7 +1638,7 @@ declare class ProductCollection {
|
|
|
1638
1638
|
/**
|
|
1639
1639
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
1640
1640
|
*/
|
|
1641
|
-
getProducts(): CollectionProduct[]
|
|
1641
|
+
getProducts(): Promise<CollectionProduct[]>;
|
|
1642
1642
|
getTransformCollection(): TransformCollection | undefined;
|
|
1643
1643
|
/**
|
|
1644
1644
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -1798,10 +1798,6 @@ interface Bundle {
|
|
|
1798
1798
|
* @returns A promise that resolves when the name and metadata have been updated in the Spiff Commerce system.
|
|
1799
1799
|
*/
|
|
1800
1800
|
setNameAndMetadata(name: string, metadata: Map<string, string>): Promise<void>;
|
|
1801
|
-
/**
|
|
1802
|
-
* Returns true when the bundle contains products that share global properties.
|
|
1803
|
-
*/
|
|
1804
|
-
hasGlobalProperties(): boolean;
|
|
1805
1801
|
/**
|
|
1806
1802
|
* Get a handle to the global properties available within this bundle. Setting values
|
|
1807
1803
|
* via this method will make selections on all bundles that share the property.
|
|
@@ -2117,6 +2113,9 @@ declare const enum ObjectInputType {
|
|
|
2117
2113
|
LineItem = "LineItem",
|
|
2118
2114
|
Asset = "Asset"
|
|
2119
2115
|
}
|
|
2116
|
+
declare class TextInput extends FlowExecutionInput {
|
|
2117
|
+
constructor(input: string);
|
|
2118
|
+
}
|
|
2120
2119
|
/**
|
|
2121
2120
|
* Handles validation of spiffObject structure for transmission to the server.
|
|
2122
2121
|
*/
|
|
@@ -2124,6 +2123,12 @@ declare class ObjectInput extends FlowExecutionInput {
|
|
|
2124
2123
|
constructor(id: string, type: ObjectInputType);
|
|
2125
2124
|
static validUUID(uuid: string): RegExpMatchArray | null;
|
|
2126
2125
|
}
|
|
2126
|
+
/**
|
|
2127
|
+
* Handles validation of array input for transmission to the server.
|
|
2128
|
+
*/
|
|
2129
|
+
declare class ArrayInput extends FlowExecutionInput {
|
|
2130
|
+
constructor(elements: FlowExecutionInput[]);
|
|
2131
|
+
}
|
|
2127
2132
|
|
|
2128
2133
|
declare class IntegrationProduct {
|
|
2129
2134
|
private readonly integrationProduct;
|
|
@@ -2931,4 +2936,4 @@ declare class PromiseCache {
|
|
|
2931
2936
|
}
|
|
2932
2937
|
declare const promiseCache: PromiseCache;
|
|
2933
2938
|
|
|
2934
|
-
export { AssetNotFoundError, Bundle, CollectionProduct, ColorOption, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, EditedSteps, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, FrameThresholdSettings, GetWorkflowOptions, GlobalPropertyHandle, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, IntegrationProduct, IntegrationType, LayoutNotFoundError, MandatorySteps, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepHandle, NodeType, ObjectInput, ObjectInputType, OptionNotFoundError, ParseError, PictureStepHandle, Product, ProductCameraRig, ProductCollection, ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepHandle, QueueablePromise, RegionElement, RenderableScene, ResourceNotFoundError, SavedDesign, SelectionStorage, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, StepElements, StepHandle, TextStepHandle, TextStepStorage, Transaction, Transform, TransformCollection, UnhandledBehaviorError, Variant, Vector3, WorkflowExperience, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, createDesign, designService, digitalContentStepService, frameStepService, generateCommands, generateStateFromDesignInputSteps, getBoundedOffsets, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, materialStepService, modelStepService, moduleStepService, optionService, persistenceService, pictureStepService, questionStepService, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, textStepService, toast };
|
|
2939
|
+
export { ArrayInput, AssetNotFoundError, Bundle, CollectionProduct, ColorOption, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, EditedSteps, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, FrameThresholdSettings, GetWorkflowOptions, GlobalPropertyHandle, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, IntegrationProduct, IntegrationType, LayoutNotFoundError, MandatorySteps, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepHandle, NodeType, ObjectInput, ObjectInputType, OptionNotFoundError, ParseError, PictureStepHandle, Product, ProductCameraRig, ProductCollection, ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepHandle, QueueablePromise, RegionElement, RenderableScene, ResourceNotFoundError, SavedDesign, SelectionStorage, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, StepElements, StepHandle, TextInput, TextStepHandle, TextStepStorage, Transaction, Transform, TransformCollection, UnhandledBehaviorError, Variant, Vector3, WorkflowExperience, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, createDesign, designService, digitalContentStepService, frameStepService, generateCommands, generateStateFromDesignInputSteps, getBoundedOffsets, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, materialStepService, modelStepService, moduleStepService, optionService, persistenceService, pictureStepService, questionStepService, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, textStepService, toast };
|