@spiffcommerce/core 25.0.1 → 25.0.3
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 +13 -6
- package/dist/index.js +44 -30
- package/dist/index.mjs +344 -321
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1862,6 +1862,9 @@ interface Bundle$1 {
|
|
|
1862
1862
|
* @param productCollectionId The ID of the Product Collection to assign to this Bundle.
|
|
1863
1863
|
*/
|
|
1864
1864
|
assignProductCollection(productCollectionId: string): Promise<void>;
|
|
1865
|
+
getShareActions(): undefined | ShareAction[];
|
|
1866
|
+
getWorkflowViewerLink(): string;
|
|
1867
|
+
getWorkflowViewerAmendLink(): string;
|
|
1865
1868
|
}
|
|
1866
1869
|
type BundleEventType = "conditional-global-properties-changed" | "workflow-experience-hover-enter" | "workflow-experience-hover-exit";
|
|
1867
1870
|
type BundleEventData = ConditionalGlobalPropertiesChangedEventData | WorkflowExperienceHoverEventData;
|
|
@@ -2352,7 +2355,7 @@ declare class SpiffCommerceClient {
|
|
|
2352
2355
|
externalIntegrationId: string;
|
|
2353
2356
|
externalProductId: string;
|
|
2354
2357
|
}>): Promise<IntegrationProduct>;
|
|
2355
|
-
getShareActionsForTransaction(transactionId: string): Promise<
|
|
2358
|
+
getShareActionsForTransaction(transactionId: string): Promise<ShareAction[] | undefined>;
|
|
2356
2359
|
}
|
|
2357
2360
|
|
|
2358
2361
|
interface SilentIllustrationStepData extends SilentStepData, Placeable {
|
|
@@ -3493,20 +3496,20 @@ interface Transaction {
|
|
|
3493
3496
|
/**
|
|
3494
3497
|
* A list of actions that have been associated to this transaction. To be used by the client to interact further post design.
|
|
3495
3498
|
*/
|
|
3496
|
-
transactionShareActions?:
|
|
3499
|
+
transactionShareActions?: ShareAction[];
|
|
3497
3500
|
/** Whether any share actions for this Transaction require the user to be authenticated as a stakeholder */
|
|
3498
3501
|
hasAuthenticatedActions?: boolean;
|
|
3499
3502
|
marketplaceThemeInstallConfiguration?: ThemeInstallConfigurationGraphQl;
|
|
3500
3503
|
}
|
|
3501
|
-
interface
|
|
3504
|
+
interface ShareAction {
|
|
3502
3505
|
id: string;
|
|
3503
|
-
type:
|
|
3506
|
+
type: ShareActionType;
|
|
3504
3507
|
title?: string;
|
|
3505
3508
|
precedence?: number;
|
|
3506
3509
|
stakeholderType?: string;
|
|
3507
3510
|
url?: string;
|
|
3508
3511
|
}
|
|
3509
|
-
declare enum
|
|
3512
|
+
declare enum ShareActionType {
|
|
3510
3513
|
Hyperlink = "Hyperlink",
|
|
3511
3514
|
Edit = "Edit",
|
|
3512
3515
|
Approve = "Approve"
|
|
@@ -3934,6 +3937,10 @@ interface Bundle {
|
|
|
3934
3937
|
transactions?: Transaction[];
|
|
3935
3938
|
template?: boolean;
|
|
3936
3939
|
templateStatus?: BundleTemplateStatus;
|
|
3940
|
+
bundleShareActions?: ShareAction[];
|
|
3941
|
+
workflowViewerLink: string;
|
|
3942
|
+
workflowViewerAmendLink: string;
|
|
3943
|
+
workflowViewerReadOnlyLink: string;
|
|
3937
3944
|
}
|
|
3938
3945
|
interface BundleStakeholder {
|
|
3939
3946
|
id: string;
|
|
@@ -5464,4 +5471,4 @@ declare const determineCorrectFontSizeAndLines: (curFontSize: number, fontData:
|
|
|
5464
5471
|
*/
|
|
5465
5472
|
declare const loadFont: (url: string) => Promise<Font>;
|
|
5466
5473
|
|
|
5467
|
-
export { AddonHandle, Animatable, AnyStepData, ArrayInput, AspectType, Asset, AssetNotFoundError, AssetObjectVersion, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, Bundle$1 as Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, CanvasCommand, CollectionProduct, ColorDefinition, ColorOption, ColorOptionGlobalPropertyHandle, ColorProfileProps, CommandContext, CommandState, Condition, ConditionalGlobalPropertiesChangedEventData, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, CreateElementCommand, CreateLayoutCommand, Customer, CustomerDetailsInput, DeleteElementCommand, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, DigitalContentStepData, DigitalContentStepHandle, EditedSteps, FileUploadGlobalPropertyHandle, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameService, FrameStep, FrameStepData, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyConfiguration, GlobalPropertyHandle, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, IllustrationStepHandle, ImageElement, InformationMessageType, InformationResult, InformationStepData, InformationStepHandle, Integration, IntegrationOptionResource, IntegrationProduct, IntegrationType, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutNotFoundError, LayoutRenderingPurpose, LayoutState, LayoutsState, MandatorySteps, MaterialEffectMode, MaterialStepData, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepData, ModelStepHandle, ModuleStepData, ModuleStepHandle, MoveCommand, NodeType, ObjectInput, ObjectInputType, OptionGlobalPropertyHandle, OptionNotFoundError, OptionResource, PapyrusComponent, ParseError, PictureStepData, PictureStepHandle, Placeable, PmsSearchResult, Point, Product, ProductCameraRig, ProductCollection, ProductWorkflow$1 as ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepData, QuestionStepHandle, QueueablePromise, Region, RegionElement, RenderableScene, ResizeCommand, ResourceNotFoundError, RotateCommand, SavedDesign, ScaleAxis, SelectionStorage, SendBackwardsCommand, ShapeStepData, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, Step, StepAspect, StepAspectType, StepElements, StepGroup, StepHandle, StepStorage, StepType, TextAlgorithm, TextChangeCommand, TextChangeResult, TextGlobalPropertyHandle, TextInput, TextStepData, TextStepHandle, TextStepStorage, TextboxElement, Theme, ToastCallback, Transaction,
|
|
5474
|
+
export { AddonHandle, Animatable, AnyStepData, ArrayInput, AspectType, Asset, AssetNotFoundError, AssetObjectVersion, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, Bundle$1 as Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, CanvasCommand, CollectionProduct, ColorDefinition, ColorOption, ColorOptionGlobalPropertyHandle, ColorProfileProps, CommandContext, CommandState, Condition, ConditionalGlobalPropertiesChangedEventData, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, CreateElementCommand, CreateLayoutCommand, Customer, CustomerDetailsInput, DeleteElementCommand, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, DigitalContentStepData, DigitalContentStepHandle, EditedSteps, FileUploadGlobalPropertyHandle, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameService, FrameStep, FrameStepData, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyConfiguration, GlobalPropertyHandle, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, IllustrationStepHandle, ImageElement, InformationMessageType, InformationResult, InformationStepData, InformationStepHandle, Integration, IntegrationOptionResource, IntegrationProduct, IntegrationType, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutNotFoundError, LayoutRenderingPurpose, LayoutState, LayoutsState, MandatorySteps, MaterialEffectMode, MaterialStepData, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepData, ModelStepHandle, ModuleStepData, ModuleStepHandle, MoveCommand, NodeType, ObjectInput, ObjectInputType, OptionGlobalPropertyHandle, OptionNotFoundError, OptionResource, PapyrusComponent, ParseError, PictureStepData, PictureStepHandle, Placeable, PmsSearchResult, Point, Product, ProductCameraRig, ProductCollection, ProductWorkflow$1 as ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepData, QuestionStepHandle, QueueablePromise, Region, RegionElement, RenderableScene, ResizeCommand, ResourceNotFoundError, RotateCommand, SavedDesign, ScaleAxis, SelectionStorage, SendBackwardsCommand, ShapeStepData, ShapeStepHandle, ShareAction, ShareActionType, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, Step, StepAspect, StepAspectType, StepElements, StepGroup, StepHandle, StepStorage, StepType, TextAlgorithm, TextChangeCommand, TextChangeResult, TextGlobalPropertyHandle, TextInput, TextStepData, TextStepHandle, TextStepStorage, TextboxElement, Theme, ToastCallback, Transaction, Transform, TransformCollection$1 as TransformCollection, UnhandledBehaviorError, UnitOfMeasurement, UpdateImageSourceCommand, Variant, VariantResource, Vector3, Workflow, WorkflowExperience, WorkflowExperienceEventType, WorkflowExperienceHoverEventData, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowPanel, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, browserColorToHex, cmPerPixel, createDesign, currentDirection, dataUrlFromExternalUrl, designService, determineCorrectFontSizeAndLines, digitalContentStepService, fetchAsString, findAngle, findElement, findPmsColors, frameDataCache, frameStepService, generate, generateCommands, generateSVGWithUnknownColors, generateStateFromDesignInputSteps, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getBoundedOffsets, getElementVertices, getFrameData, getNEPoint, getNWPoint, getPointOfRotation, getSEPoint, getSvgElement, getTrueCoordinates, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, isCloseToValue, loadFont, matchHexToPms, materialStepService, mmPerPixel, modelStepService, moduleStepService, optionService, patternImageDataCache, persistenceService, pictureStepService, pmsToRgb, questionStepService, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout, rgbToPms, rotateAroundPoint, sanitizeSvgTree, setBearerAuthenticationToken, setCanvasModule, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, svgColorValueToDefinition, svgStringDimensions, svgToDataUrl, textStepService, toast, xmlSerializer };
|