Interface Editor.ISaveProductResult
A structure used by Editor.saveProduct() to store a return value.
Package: @aurigma/design-editor-iframe
Examples
const savingResult = await editor.saveProduct("mug");
// When the product has been saved correctly, get the promise properties through ISaveProductResult.
let userId = savingResult.userId;
let stateId = savingResult.stateId;
let returnToEditUrl = savingResult.returnToEditUrl;
console.log("User " + userId + " successfully saved state " + stateId);
Properties
returnToEditUrl
A return-to-edit URL. This property is provided for backward compatibility only; it utilizes the old API based on query string.
Declaration
returnToEditUrl: string;
Property Value
| Type | Description |
|---|---|
| string | A return-to-edit URL. This property is provided for backward compatibility only; it utilizes the old API based on query string. |
stateId
A product state identifier
Declaration
stateId: string;
Property Value
| Type | Description |
|---|---|
| string | A product state identifier |
userId
The identifier of the user who currently works with the editor. Note that you can not use custom file names for saving states, working under the default user or the master user.
Declaration
userId: string;
Property Value
| Type | Description |
|---|---|
| string | The identifier of the user who currently works with the editor. Note that you can not use custom file names for saving states, working under the default user or the master user. |