@spiffcommerce/core 16.10.4 → 16.10.5-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 +7 -131
- package/dist/index.js +3124 -3645
- package/dist/index.umd.cjs +97 -194
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _spiffcommerce_papyrus from '@spiffcommerce/papyrus';
|
|
2
|
-
import { OptionResource, VariantResource, Step, AnyStepData, FrameOffsets, PatternImageData, Region, Workflow, ILayout, LayoutsState, LayoutData, SilentStepData, Placeable, StepStorage, CanvasCommand, CommandContext, LayoutState, SerializableStep, CommandState, GlobalPropertyConfiguration, Asset, MaterialResource, AssetType, StepType, GlobalPropertyConfigurationAspect, AspectType, Theme,
|
|
3
|
-
export { Animatable, AnyStepData, Asset, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand,
|
|
2
|
+
import { OptionResource, VariantResource, Step, AnyStepData, FrameOffsets, PatternImageData, Region, Workflow, ILayout, LayoutsState, LayoutData, SilentStepData, Placeable, StepStorage, CanvasCommand, CommandContext, LayoutState, SerializableStep, CommandState, GlobalPropertyConfiguration, Asset, MaterialResource, AssetType, StepType, GlobalPropertyConfigurationAspect, AspectType, Theme, FrameStepData, CreateElementCommand, FrameElement, IllustrationStepData, IllustrationElement, ColorDefinition, MaterialStepData, ModelStepData, TextStepData, TextboxElement, TextFillImage, FontData, GroupCommand, PictureStepData, QuestionStepData, ShapeStepData, ModuleStepData, DigitalContentStepData, FrameData as FrameData$1, InformationStepData } from '@spiffcommerce/papyrus';
|
|
3
|
+
export { Animatable, AnyStepData, Asset, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, CanvasCommand, ColorDefinition, ColorProfileProps, CommandContext, CommandState, CreateElementCommand, CreateLayoutCommand, DeleteElementCommand, DigitalContentStepData, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameStepData, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, ImageElement, InformationStepData, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutsState, MaterialStepData, ModelStepData, ModuleStepData, MoveCommand, OptionResource, PictureStepData, QuestionStepData, ResizeCommand, RotateCommand, SendBackwardsCommand, ShapeStepData, Step, StepAspect, StepAspectType, StepStorage, StepType, TextChangeCommand, TextStepData, TextboxElement, Theme, UnitOfMeasurement, VariantResource, Workflow, WorkflowPanel, dataUrlFromExternalUrl, determineCorrectFontSizeAndLines, findElement, frameDataCache, generate, generateSVGWithUnknownColors, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getFrameData, getSvgElement, loadFont, patternImageDataCache, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout, setCanvasModule } from '@spiffcommerce/papyrus';
|
|
4
4
|
import { ApolloClient, MutationOptions, FetchResult } from '@apollo/client/core';
|
|
5
5
|
import { RenderableContextService, RenderableContext, ThreeDPreviewService, ModelContainer } from '@spiffcommerce/preview';
|
|
6
6
|
import * as lodash from 'lodash';
|
|
@@ -318,7 +318,7 @@ declare class LayoutPreviewBridge implements RenderableContext {
|
|
|
318
318
|
/**
|
|
319
319
|
* Actions to perform when a static render event is fired for this canvas.
|
|
320
320
|
*/
|
|
321
|
-
render(workflow: Workflow, layouts: LayoutData[],
|
|
321
|
+
render(workflow: Workflow, layouts: LayoutData[], productOverlayImageUrl?: string): Promise<void>;
|
|
322
322
|
}
|
|
323
323
|
interface StepAspectValue {
|
|
324
324
|
stepName: string;
|
|
@@ -387,13 +387,10 @@ type SelectionCallback = (callbackOptions: {
|
|
|
387
387
|
}) => void;
|
|
388
388
|
type StepSpecificStorageCallback = (selections: StepStorage) => void;
|
|
389
389
|
type StorageCallback = (storage: WorkflowStorage) => void;
|
|
390
|
-
type CurrentVariationRecordCallback = (variationRecord: null | VariationRecord) => void;
|
|
391
|
-
type VariationRecordsCallback = (records: VariationRecord[]) => void;
|
|
392
390
|
type StateMutationFunc = (options?: Omit<MutationOptions, "mutation">) => Promise<FetchResult<any, Record<string, any>, Record<string, any>>>;
|
|
393
391
|
interface WorkflowManager {
|
|
394
392
|
addPoller: (poller: Poller) => void;
|
|
395
393
|
addConfirmCallback: (callback: ConfirmCallback) => void;
|
|
396
|
-
addCurrentVariationCallback: (callback: CurrentVariationRecordCallback) => void;
|
|
397
394
|
addEditedCallback: (callback: EditedCallback) => void;
|
|
398
395
|
addElementsCallback: (callback: ElementsCallback) => void;
|
|
399
396
|
addInformationResultCallback: (callback: InformationResultCallback) => void;
|
|
@@ -404,11 +401,7 @@ interface WorkflowManager {
|
|
|
404
401
|
addSelectionCallback: (callback: SelectionCallback) => void;
|
|
405
402
|
addStepSpecificStorageCallback: (callback: StepSpecificStorageCallback, stepName: string) => void;
|
|
406
403
|
addStorageCallback: (callback: StorageCallback) => void;
|
|
407
|
-
addVariationRecord: (variationRecord: Omit<VariationRecord, "recordNumber">) => VariationRecord;
|
|
408
|
-
addVariationRecordsCallback: (callback: VariationRecordsCallback) => void;
|
|
409
404
|
getCommandDispatcher: () => (command: CanvasCommand) => void;
|
|
410
|
-
getCurrentVariationRecord: () => VariationRecord | undefined;
|
|
411
|
-
getVariationRecords: () => VariationRecord[];
|
|
412
405
|
getCommandContext: () => CommandContext;
|
|
413
406
|
getLayouts: () => ILayout[];
|
|
414
407
|
getAllLayoutData: () => LayoutState[];
|
|
@@ -447,18 +440,12 @@ interface WorkflowManager {
|
|
|
447
440
|
markUpdateCompleted: (id: string) => void;
|
|
448
441
|
markUpdatePending: () => string;
|
|
449
442
|
outstandingRequestsPromise: () => Promise<void>;
|
|
450
|
-
removeVariationRecord: (recordNumber: number) => VariationRecord[];
|
|
451
443
|
reset: () => Promise<void>;
|
|
452
444
|
setCurrentAdjustingStepId: (stepId: string) => void;
|
|
453
|
-
/**
|
|
454
|
-
* Sets the given variation record. NOTE: This is also used to update existing variation records.
|
|
455
|
-
*/
|
|
456
|
-
setCurrentVariationRecord: (variationRecord: null | VariationRecord) => void;
|
|
457
445
|
setEditedStatus: (stepName: string, status: boolean) => void;
|
|
458
446
|
setInformationResults: (results: InformationResult[]) => void;
|
|
459
447
|
setMandatoryFulfilled: (stepName: string, status: boolean) => void;
|
|
460
448
|
setSelectionsAndElements: (stepName: string, variants: VariantResource[], elements: RegionElement[], callback?: () => Promise<void>) => Promise<void>;
|
|
461
|
-
setVariationRecords: (variationRecords: VariationRecord[]) => void;
|
|
462
449
|
toggleDesignConfirmed: () => void;
|
|
463
450
|
updateMetadata: (stepName: string, update: any) => void;
|
|
464
451
|
/**
|
|
@@ -555,11 +542,6 @@ interface Transaction {
|
|
|
555
542
|
* User-supplied name for the associated design.
|
|
556
543
|
*/
|
|
557
544
|
designName?: string;
|
|
558
|
-
/**
|
|
559
|
-
* When true the transaction is a bulk transaction & will allow for modifying
|
|
560
|
-
* variations based on bulk configuration on the workflow.
|
|
561
|
-
*/
|
|
562
|
-
bulk?: boolean;
|
|
563
545
|
/**
|
|
564
546
|
* The workflow associated with this transaction.
|
|
565
547
|
*/
|
|
@@ -629,18 +611,12 @@ interface Transaction {
|
|
|
629
611
|
*/
|
|
630
612
|
externalCartProductVariantId?: string;
|
|
631
613
|
priceModifierTotal?: number;
|
|
632
|
-
/**
|
|
633
|
-
* The amount of variations associated with this transaction.
|
|
634
|
-
*/
|
|
635
|
-
variationsCount?: number;
|
|
636
614
|
/**
|
|
637
615
|
* URL to open the transaction in the workflow viewer.
|
|
638
616
|
*/
|
|
639
617
|
workflowViewerLink?: string;
|
|
640
618
|
workflowViewerReadOnlyLink?: string;
|
|
641
619
|
previewImageLink?: string;
|
|
642
|
-
bulkSourceUrl?: string;
|
|
643
|
-
bulkEmailAddress?: string;
|
|
644
620
|
lastSyncedAt?: string;
|
|
645
621
|
/**
|
|
646
622
|
* The users who have access to this transaction.
|
|
@@ -794,10 +770,6 @@ interface Product {
|
|
|
794
770
|
* See attachCustomerDetails on the WorkflowExperience for how to supply us with the details you collect.
|
|
795
771
|
*/
|
|
796
772
|
promptForCustomerDetails?: boolean;
|
|
797
|
-
/**
|
|
798
|
-
* Configuration for bulk creations
|
|
799
|
-
*/
|
|
800
|
-
bulkConfiguration?: BulkConfiguration;
|
|
801
773
|
/**
|
|
802
774
|
* Configuration for conversion. Optional.
|
|
803
775
|
*/
|
|
@@ -816,19 +788,6 @@ interface ColorOption {
|
|
|
816
788
|
variant?: VariantResource;
|
|
817
789
|
colorProfileAssetKey?: string;
|
|
818
790
|
}
|
|
819
|
-
/**
|
|
820
|
-
* Represents a variation as seen in Google sheets.
|
|
821
|
-
* Record number = row# - 1
|
|
822
|
-
*/
|
|
823
|
-
interface VariationRecord {
|
|
824
|
-
recordNumber: number;
|
|
825
|
-
transactionId: string;
|
|
826
|
-
values: {
|
|
827
|
-
stepName: string;
|
|
828
|
-
aspect: string;
|
|
829
|
-
value: string;
|
|
830
|
-
}[];
|
|
831
|
-
}
|
|
832
791
|
interface RegionElement {
|
|
833
792
|
id: string;
|
|
834
793
|
region?: Region;
|
|
@@ -882,26 +841,6 @@ declare enum ProductCameraRig {
|
|
|
882
841
|
Orbit = 0,
|
|
883
842
|
Pan = 1
|
|
884
843
|
}
|
|
885
|
-
/**
|
|
886
|
-
* Defines the different strategies to use when calculating the total price
|
|
887
|
-
* when creating bulk designs.
|
|
888
|
-
*/
|
|
889
|
-
declare enum BulkPriceCalculationStrategy {
|
|
890
|
-
/** The total price should increase with the amount of variations. */
|
|
891
|
-
PerVariation = "PerVariation",
|
|
892
|
-
/** The total price should remain at the base price of the product. */
|
|
893
|
-
BaseProduct = "BaseProduct"
|
|
894
|
-
}
|
|
895
|
-
interface BulkConfiguration {
|
|
896
|
-
id: string;
|
|
897
|
-
name?: string;
|
|
898
|
-
sceneTitle: string;
|
|
899
|
-
stepTitle: string;
|
|
900
|
-
helpText?: string;
|
|
901
|
-
supportsGoogleSheet: boolean;
|
|
902
|
-
maxVariations: number;
|
|
903
|
-
pricingStrategy: BulkPriceCalculationStrategy;
|
|
904
|
-
}
|
|
905
844
|
/**
|
|
906
845
|
* Defines the locations at which a conversion attempt can take place.
|
|
907
846
|
*/
|
|
@@ -1273,7 +1212,7 @@ declare abstract class StepHandle<T extends AnyStepData> {
|
|
|
1273
1212
|
executeAnimations(): void;
|
|
1274
1213
|
}
|
|
1275
1214
|
|
|
1276
|
-
declare const createDesign: (workflowManager: WorkflowManager, workflow: Workflow, layouts: ILayout[], getReducerState: () => CommandState, product: Product, transaction: Transaction, workflowSelections: WorkflowSelections, designName: string, onProgressUpdate: DesignCreationProgressUpdate,
|
|
1215
|
+
declare const createDesign: (workflowManager: WorkflowManager, workflow: Workflow, layouts: ILayout[], getReducerState: () => CommandState, product: Product, transaction: Transaction, workflowSelections: WorkflowSelections, designName: string, onProgressUpdate: DesignCreationProgressUpdate, createPreviewImage: (shouldRender3D?: boolean) => Promise<string | undefined>, workflowMetadata?: WorkflowMetadata) => Promise<DesignCreationMessage>;
|
|
1277
1216
|
interface SavedDesign {
|
|
1278
1217
|
/**
|
|
1279
1218
|
* The user's name for this saved design.
|
|
@@ -1426,19 +1365,11 @@ interface WorkflowExperience {
|
|
|
1426
1365
|
* Get the low level workflow amanager instance for this experience. Don't touch this unless you're willing to break things.
|
|
1427
1366
|
*/
|
|
1428
1367
|
getWorkflowManager(): WorkflowManager;
|
|
1429
|
-
/**
|
|
1430
|
-
* Bulk workflow operation, used to update multiple variations at once.
|
|
1431
|
-
*/
|
|
1432
|
-
updateVariationRecords(variationRecords: VariationRecord[]): Promise<void>;
|
|
1433
1368
|
/**
|
|
1434
1369
|
* Returns the step matching a given name, undefined if not found.
|
|
1435
1370
|
* @param id The id the step must match.
|
|
1436
1371
|
*/
|
|
1437
1372
|
getStepById(id: string): StepHandle<AnyStepData> | undefined;
|
|
1438
|
-
/**
|
|
1439
|
-
* Returns the bulk step, undefined if not found.
|
|
1440
|
-
*/
|
|
1441
|
-
getBulkStep(): BulkStepHandle | undefined;
|
|
1442
1373
|
/**
|
|
1443
1374
|
* Returns the step matching a given name, undefined if not found.
|
|
1444
1375
|
* @param name The name the step must match.
|
|
@@ -1544,16 +1475,14 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
|
|
|
1544
1475
|
getIsReadOnly(): boolean;
|
|
1545
1476
|
getCommandContext(): CommandContext;
|
|
1546
1477
|
getWorkflowManager(): WorkflowManager;
|
|
1547
|
-
updateVariationRecords(variationRecords: VariationRecord[]): Promise<void>;
|
|
1548
1478
|
createPreviewImage(isThreeD?: boolean, resolution?: number): Promise<string>;
|
|
1549
|
-
getStepById(id: string): TextStepHandle | FrameStepHandle |
|
|
1479
|
+
getStepById(id: string): TextStepHandle | FrameStepHandle | ShapeStepHandle | InformationStepHandle | IllustrationStepHandle | MaterialStepHandle | ModelStepHandle | PictureStepHandle | QuestionStepHandle | undefined;
|
|
1550
1480
|
getSteps(): StepHandle<AnyStepData>[];
|
|
1551
1481
|
getScenes(): Scene[];
|
|
1552
1482
|
getSelectionPriceSubunits(): number;
|
|
1553
1483
|
getBasePriceSubunits(): number;
|
|
1554
1484
|
getTotalPriceSubunits(): number;
|
|
1555
|
-
|
|
1556
|
-
getStepByName(name: string): TextStepHandle | FrameStepHandle | BulkStepHandle | ShapeStepHandle | InformationStepHandle | IllustrationStepHandle | MaterialStepHandle | ModelStepHandle | PictureStepHandle | QuestionStepHandle | undefined;
|
|
1485
|
+
getStepByName(name: string): TextStepHandle | FrameStepHandle | ShapeStepHandle | InformationStepHandle | IllustrationStepHandle | MaterialStepHandle | ModelStepHandle | PictureStepHandle | QuestionStepHandle | undefined;
|
|
1557
1486
|
getStepsByType(type: StepType): StepHandle<AnyStepData>[];
|
|
1558
1487
|
getStepsByScene(scene: Scene): StepHandle<AnyStepData>[];
|
|
1559
1488
|
attachCustomerDetails(details: {
|
|
@@ -2107,12 +2036,6 @@ declare const getWorkflow: (id: string, options?: GetWorkflowGraphqlOptions) =>
|
|
|
2107
2036
|
* Please refer to the documentation for more information.
|
|
2108
2037
|
*/
|
|
2109
2038
|
interface ClientOptions {
|
|
2110
|
-
/**
|
|
2111
|
-
* When set to true, the client will treat the workflow as a bulk order
|
|
2112
|
-
* containing multiple variations of the base design.
|
|
2113
|
-
* @deprecated Specify when calling getWorkflowExperience instead.
|
|
2114
|
-
*/
|
|
2115
|
-
bulk?: boolean;
|
|
2116
2039
|
/**
|
|
2117
2040
|
* When provided, the client will use the provided application key to
|
|
2118
2041
|
* authenticate with the SpiffCommerce API.
|
|
@@ -2145,7 +2068,6 @@ interface GetWorkflowOptionsBase {
|
|
|
2145
2068
|
/**
|
|
2146
2069
|
* Configuration for the graphQL request made for workflows. Allows for retrieval
|
|
2147
2070
|
* of additional data.
|
|
2148
|
-
* NOTE: When using bulk functionality of Core eg. 'getWorkflowExperiences(...)' this parameter will be ignored in favor of the equivelant passed to the bulk function.
|
|
2149
2071
|
*/
|
|
2150
2072
|
graphql?: GetWorkflowGraphqlOptions;
|
|
2151
2073
|
}
|
|
@@ -2164,7 +2086,6 @@ interface GetWorkflowFromIntegrationProductOptions extends GetWorkflowOptionsBas
|
|
|
2164
2086
|
integrationProductId: string;
|
|
2165
2087
|
/** An existing workflow state, if available. */
|
|
2166
2088
|
workflowState?: string;
|
|
2167
|
-
bulk?: boolean;
|
|
2168
2089
|
type: "integration";
|
|
2169
2090
|
}
|
|
2170
2091
|
interface GetWorkflowFromExternalProductOptions extends GetWorkflowOptionsBase {
|
|
@@ -2176,7 +2097,6 @@ interface GetWorkflowFromExternalProductOptions extends GetWorkflowOptionsBase {
|
|
|
2176
2097
|
externalProductId: string;
|
|
2177
2098
|
/** An existing workflow state, if available. */
|
|
2178
2099
|
workflowState?: string;
|
|
2179
|
-
bulk?: boolean;
|
|
2180
2100
|
type: "external";
|
|
2181
2101
|
}
|
|
2182
2102
|
type GetWorkflowOptions = GetWorkflowFromTransactionOptions | GetWorkflowFromIntegrationProductOptions | GetWorkflowFromExternalProductOptions;
|
|
@@ -2343,8 +2263,6 @@ declare class Configuration {
|
|
|
2343
2263
|
}
|
|
2344
2264
|
declare const spiffCoreConfiguration: Configuration;
|
|
2345
2265
|
|
|
2346
|
-
declare const gatherVaryingStepAspects: (workflow: Workflow) => StepAspect[];
|
|
2347
|
-
|
|
2348
2266
|
type ToastCallback = (callbackOptions: {
|
|
2349
2267
|
toastMessage: null | string;
|
|
2350
2268
|
toastType: InformationMessageType | null;
|
|
@@ -2559,21 +2477,12 @@ declare class MockWorkflowManager implements WorkflowManager {
|
|
|
2559
2477
|
getWorkflowMetadata: () => WorkflowMetadata;
|
|
2560
2478
|
getStepStorage: (stepName: string) => StepStorage | undefined;
|
|
2561
2479
|
getInformationResults(): InformationResult[];
|
|
2562
|
-
getVariationRecords(): VariationRecord[];
|
|
2563
2480
|
reset(): Promise<void>;
|
|
2564
2481
|
updateStateWithServer(_getReducerState: () => CommandState): void;
|
|
2565
|
-
addVariationRecord(_variationRecord: Omit<VariationRecord, "recordNumber">): {
|
|
2566
|
-
recordNumber: number;
|
|
2567
|
-
transactionId: string;
|
|
2568
|
-
values: never[];
|
|
2569
|
-
};
|
|
2570
|
-
getCurrentVariationRecord(): undefined;
|
|
2571
|
-
removeVariationRecord(_recordNumber: number): never[];
|
|
2572
2482
|
outstandingRequestsPromise(): Promise<void>;
|
|
2573
2483
|
updateStateWithServerImmediate(_getReducerState: () => CommandState): Promise<void>;
|
|
2574
2484
|
addPoller(_poller: Poller): void;
|
|
2575
2485
|
addConfirmCallback(_callback: ConfirmCallback): void;
|
|
2576
|
-
addCurrentVariationCallback(_callback: CurrentVariationRecordCallback): void;
|
|
2577
2486
|
addEditedCallback(_callback: EditedCallback): void;
|
|
2578
2487
|
addElementsCallback(_callback: ElementsCallback): void;
|
|
2579
2488
|
addInformationResultCallback(_callback: InformationResultCallback): void;
|
|
@@ -2584,7 +2493,6 @@ declare class MockWorkflowManager implements WorkflowManager {
|
|
|
2584
2493
|
addSelectionCallback(_callback: SelectionCallback): void;
|
|
2585
2494
|
addStepSpecificStorageCallback(_callback: StepSpecificStorageCallback, _stepName: string): void;
|
|
2586
2495
|
addStorageCallback(_callback: StorageCallback): void;
|
|
2587
|
-
addVariationRecordsCallback(_callback: VariationRecordsCallback): void;
|
|
2588
2496
|
getCommandDispatcher(): (_command: CanvasCommand) => void;
|
|
2589
2497
|
getLayouts(): never[];
|
|
2590
2498
|
getLayoutPreviewService(): any;
|
|
@@ -2617,12 +2525,10 @@ declare class MockWorkflowManager implements WorkflowManager {
|
|
|
2617
2525
|
markUpdatePending(): string;
|
|
2618
2526
|
getWorkflowSelections(): {};
|
|
2619
2527
|
setCurrentAdjustingStepId(_stepId: string): void;
|
|
2620
|
-
setCurrentVariationRecord(_variationRecord: VariationRecord | null): void;
|
|
2621
2528
|
setEditedStatus(_stepName: string, _status: boolean): void;
|
|
2622
2529
|
setInformationResults(_results: InformationResult[]): void;
|
|
2623
2530
|
setMandatoryFulfilled(_stepName: string, _status: boolean): void;
|
|
2624
2531
|
setSelectionsAndElements(_stepName: string, _variants: VariantResource[], _elements: RegionElement[]): Promise<void>;
|
|
2625
|
-
setVariationRecords(_variationRecords: VariationRecord[]): void;
|
|
2626
2532
|
toggleDesignConfirmed(): void;
|
|
2627
2533
|
updateMetadata(_stepName: string, _update: any): void;
|
|
2628
2534
|
updateStorage(_stepName: string, _update: StepStorage): Promise<void>;
|
|
@@ -2657,8 +2563,6 @@ declare class IllustrationStepHandle extends StepHandle<IllustrationStepData> {
|
|
|
2657
2563
|
stroke: string | undefined;
|
|
2658
2564
|
variant: _spiffcommerce_papyrus.VariantResource;
|
|
2659
2565
|
}[] | undefined>;
|
|
2660
|
-
hasVaryingSelection(): boolean | undefined;
|
|
2661
|
-
hasVaryingColors(): boolean | undefined;
|
|
2662
2566
|
isColorPickerEnabled(): boolean | undefined;
|
|
2663
2567
|
}
|
|
2664
2568
|
|
|
@@ -2712,9 +2616,6 @@ declare class TextStepHandle extends StepHandle<TextStepData> {
|
|
|
2712
2616
|
* Returns a text change rwsult if a clear occurred.
|
|
2713
2617
|
*/
|
|
2714
2618
|
clearDefaultTextIfNecessary(): TextChangeResult | undefined;
|
|
2715
|
-
hasVaryingText(): boolean | undefined;
|
|
2716
|
-
hasVaryingColor(): boolean | undefined;
|
|
2717
|
-
hasVaryingSelection(): boolean | undefined;
|
|
2718
2619
|
hasColorPicker(): boolean | undefined;
|
|
2719
2620
|
getRegions(): _spiffcommerce_papyrus.Region[];
|
|
2720
2621
|
/**
|
|
@@ -2834,8 +2735,6 @@ declare class FrameStepHandle extends StepHandle<FrameStepData> {
|
|
|
2834
2735
|
getFrameService(): FrameService | undefined;
|
|
2835
2736
|
hasOverlayImageKey(): string | undefined;
|
|
2836
2737
|
hasOverlayImageUrl(): any;
|
|
2837
|
-
hasVaryingUpload(): boolean | undefined;
|
|
2838
|
-
hasVaryingSelection(): boolean | undefined;
|
|
2839
2738
|
}
|
|
2840
2739
|
|
|
2841
2740
|
declare class MaterialStepHandle extends StepHandle<MaterialStepData> {
|
|
@@ -2879,29 +2778,6 @@ declare class ShapeStepHandle extends StepHandle<ShapeStepData> {
|
|
|
2879
2778
|
getCustomColor(): string;
|
|
2880
2779
|
}
|
|
2881
2780
|
|
|
2882
|
-
declare class BulkStepHandle extends StepHandle<BulkStepData> {
|
|
2883
|
-
constructor(manager: WorkflowManager, step: Step<BulkStepData>);
|
|
2884
|
-
private transaction;
|
|
2885
|
-
selectVariant(): Promise<void>;
|
|
2886
|
-
setDesignName(designName: string): Promise<void>;
|
|
2887
|
-
addVariationRecord(): VariationRecord;
|
|
2888
|
-
updateBulkIsConnected(bulkIsConnected: boolean): void;
|
|
2889
|
-
/**
|
|
2890
|
-
* Opens the bulk source in a seperate tab. This bulk source could be a google sheet or a csv file.
|
|
2891
|
-
*/
|
|
2892
|
-
openBulkSourceUrl(): void;
|
|
2893
|
-
sendGoogleSheetLinkToEmail(email: string): Promise<void>;
|
|
2894
|
-
/**
|
|
2895
|
-
* Removes a variation from the bulk step.
|
|
2896
|
-
* @param recordNumber The record number of the variation to remove.
|
|
2897
|
-
*/
|
|
2898
|
-
deleteVariationRecord(recordNumber: number): void;
|
|
2899
|
-
/**
|
|
2900
|
-
* @returns The aspects of each step that are modifiable from the bulk handle. These are configured in the workflow.
|
|
2901
|
-
*/
|
|
2902
|
-
getAspects(): _spiffcommerce_papyrus.StepAspect[];
|
|
2903
|
-
}
|
|
2904
|
-
|
|
2905
2781
|
declare const shortenUrl: (longUrl: string) => Promise<string>;
|
|
2906
2782
|
|
|
2907
2783
|
declare class InformationStepHandle extends StepHandle<InformationStepData> {
|
|
@@ -2936,4 +2812,4 @@ declare class PromiseCache {
|
|
|
2936
2812
|
}
|
|
2937
2813
|
declare const promiseCache: PromiseCache;
|
|
2938
2814
|
|
|
2939
|
-
export { AssetNotFoundError,
|
|
2815
|
+
export { AssetNotFoundError, Bundle, CollectionProduct, ColorOption, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, EditedSteps, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, GetWorkflowOptions, GlobalPropertyHandle, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, 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 };
|