IUserChanges Interface

A structure containing all changes the user made to the product when personalizing it. For details, see the Handling Product Customization topic.

example
// Completing product customization.
editor.finishProductDesign()
    // If product customization is completed successfully.
    .then(function (result) {
        // Get the promise properties.
        stateId = result.stateId;
        userId = result.userId;
        userChanges = result.userChanges;
        console.log("Text user changes: ", userChanges.texts);
    })
    // If there was an error thrown when completing product customization.
    .catch(function (error) {
        console.error("Completing product customization failed with exception: ", error);
    });

Properties

inStringPlaceholders

inStringPlaceholders: object []

An array of texts entered by the user in text placeholders. For each text placeholder, which was changed by the user, corresponding object contains its name and new value.

inStringPlaceholders declaration

  • name: string

    A name of the text placeholder.

  • usersValue: string

    A new value of the text placeholder.

mockups

mockups: object

An object containing array of mockups that the user set up. For each mockup, which was applied to a surface, corresponding object contains the surface and mockup names.

mockups declaration

  • [surfaceName: string ]: string

    A mockup defined for a surface.

texts

texts: object []

An array of texts entered by the user in text elements. For each text element, which was changed by the user, corresponding object contains its name and new value.

texts declaration

  • name: string

    A name of the text element.

  • usersValue: string

    A new value of the text element.