atomic-recs-interface (Deprecated)
atomic-recs-interface (Deprecated)
The atomic-recs-interface
component is the parent to all other atomic components in a recommendation interface. It handles the headless recommendation engine and localization configurations.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
|
Whether analytics should be enabled. |
|
|
|
The recommendation interface headless engine. |
|
||
|
|
A list of non-default fields to include in the query results, separated by commas. |
|
|
|
The recommendation interface i18next instance. |
|
|
|
|
|
The icon assets path. By default, this will be a relative URL pointing to Example: "/mypublicpath/icons" |
|
|
|
|
The recommendation interface language. |
|
|
|
|
The language assets path. By default, this will be a relative URL pointing to Example: "/mypublicpath/languages" |
|
|
|
|
The severity level of the messages to log in the console. |
|
|
|
|
The recommendation interface query pipeline. |
|
|
|
|
The recommendation interface search hub. |
|
|
|
|
The tz database identifier of the time zone to use to correctly interpret dates in the query expression, facets, and result items. By default, the timezone will be guessed. Example: "America/Montreal" |
|
Methods
getRecommendations
Fetches new recommendations.
Signature: getRecommendations() => Promise<void>
Returns: Promise<void>
initialize
Initializes the connection with the headless recommendation engine using options for accessToken
(required), organizationId
(required), renewAccessToken
, and platformUrl
.
Signature: initialize(options: RecsInitializationOptions) => Promise<void>
Returns: Promise<void>
initializeWithRecommendationEngine
Initializes the connection with an already preconfigured headless recommendation engine. This bypasses the properties set on the component, such as analytics, recommendation, searchHub, language, timezone & logLevel.
Signature: initializeWithRecommendationEngine(engine: RecommendationEngine) => Promise<void>
Returns: Promise<void>