Type Alias: SaveFavouriteSceneAs()
SaveFavouriteSceneAs: (
sceneName
,favouriteCollectionIds
) =>Promise
<boolean
>
Save current scene under new name. Calls favouriteService
/add-to-favourites
endpoint.
Dispatches SET_LOADED_SCENE_NAME
Redux action after successful call and returns true.
Before calling favouriteService
creates product short code calling productService
/create-short-code
endpoint. If call fails returns false
.
Parameters
• sceneName: string
Scene name
• favouriteCollectionIds: string
[]
Favourite collection ids
Returns
Promise
<boolean
>
If true
save was successful
Fires
@mimeeq#mimeeq-modular-save-scene