Fetches the static state on the server side using your engine definition.
Fetches the hydrated state on the client side using your engine definition and the static state.
The access token to update.
This method will be removed in a future major version. It mutates the shared engine
definition, so on a server handling concurrent requests one request can overwrite another
request's token. Provide the access token directly when fetching the static state, and pass the
same token to hydrateStaticState(). To rotate the token of an engine that is already running,
configure renewAccessToken on the engine configuration.
This method will be removed in a future major version. Navigator context should be provided directly when fetching the static state.
Sets the navigator context provider. This provider is essential for retrieving navigation-related data such as referrer, userAgent, location, and clientId, which are crucial for handling both server-side and client-side API requests effectively.
Note: The implementation specifics of the navigator context provider depend on the Node.js framework being utilized. It is the developer's responsibility to appropriately define and implement the navigator context provider to ensure accurate navigation context is available throughout the application. If the user fails to provide a navigator context provider, a warning will be logged either on the server or the browser console.
Deprecated
This type will be removed in the future. Use CommerceEngineDefinition instead.