Class: ModuleWorkflow
Extends
Implements
Constructors
Constructor
new ModuleWorkflow(actionManager, context): ModuleWorkflow;
Parameters
actionManagerActionManagercontextSDKContextReturns
ModuleWorkflow
Inherited from
Methods
editImage()
editImage(
docConfig,
appConfig?,
exportConfig?,
containerConfig?
): Promise<EditImageContext>;
Perform editing tasks on any image.
Parameters
Returns
Promise<EditImageContext>
Promise that resolves with EditImageContext when the workflow is loaded
Implementation of
createImageFromText()
createImageFromText(
appConfig?,
exportConfig?,
containerConfig?
): void;
Generate images by just passing a text prompt.
Parameters
Returns
void
Implementation of
ModuleWorkflow.createImageFromText
startFromContent()
startFromContent(
appConfig?,
exportConfig?,
containerConfig?
): void;
Open the Start From Content module.
Parameters
Returns
void
Implementation of
ModuleWorkflow.startFromContent
createDesign()
createDesign(
appConfig?,
exportConfig?,
containerConfig?
): Promise<DesignContext>;
Create a new design. Open template gallery as the default entry experience.
Parameters
Returns
Promise<DesignContext>
Promise resolving with DesignContext when loaded; rejects on failure or cancellation.
Implementation of
createGuidedDesign()
createGuidedDesign(
appConfig?,
exportConfig?,
containerConfig?
): void;
Launches a guided design creation flow in the Focused Design Editor (FDE).
Parameters
appConfig?Returns
void
Implementation of
ModuleWorkflow.createGuidedDesign
editDesign()
editDesign(
docConfig?,
appConfig?,
exportConfig?,
containerConfig?
): Promise<DesignContext>;
Edit and customize a template or document in the Focused Design Editor (FDE).
Parameters
docConfig?templateId, docId, a standalone asset, or documentUrl paired with assetappConfig?Returns
Promise<DesignContext>
Promise resolving with DesignContext when loaded; rejects on failure or cancellation.
Implementation of
viewDesign()
viewDesign(
docConfig?,
appConfig?,
exportConfig?,
containerConfig?
): Promise<IDesignViewerContext>;
Launches the design viewer for a personalized design.
Parameters
Returns
Promise<IDesignViewerContext>
Promise that resolves with the DesignViewerContext when the workflow is loaded. Call IDesignViewerContext.updateDesignAssets on it to update the asset(s) rendered in the open viewer.
Implementation of
migrateAssets()
migrateAssets(documentIds): Promise<MigrateAssetsResult>;
Migrate a transitioning user's guest documents to their newly signed-in account.
Requires the SDK to be initialized with a PartnerAssertionAuthOption whose config is a TransitionAssertionConfig (both guest and user assertions present). Runs headlessly (no UI) in the Focused Design Editor.
Parameters
documentIdsstring[]Returns
Promise<MigrateAssetsResult>
Promise resolving with a Module.MigrateAssetsResult mapping each input document id to its migrated output id; rejects on migration error or after a 180-second timeout.