Skip to content

Class: EcomRemoteApi

Server module of the Frontend API for Connect for Commerce.

Export

Constructors

constructor

new EcomRemoteApi(fsxaRemoteApi)

Parameters

Name Type
fsxaRemoteApi FSXARemoteApi

Properties

contentMode

contentMode: "release" | "preview"

Methods

fetchNavigation

fetchNavigation(params): Promise\<null | NavigationData>

Fetches the navigation service.

Parameters

Name Type Description
params FetchNavigationParams Parameters to use to fetch the service.

Returns

Promise\<null | NavigationData>

The navigation returned by the navigation service.


findElement

findElement\<T>(params): Promise\<T>

Looks up an element from the CaaS.

Type parameters

Name Type
T any

Parameters

Name Type Description
params FindElementParams Parameters to use to find the element.

Returns

Promise\<T>

Details about the element.


findPage

findPage(params): Promise\<null | Page>

Finds a CaaS page.

Parameters

Name Type Description
params FindPageParams Parameters to use to find the page

Returns

Promise\<null | Page>

Details about the page.


Last update: July 10, 2024