Recommendations and Documents
Recommendations
RecommendationResponse
Declared In:
lib/classes/content/RecommendationResponse.js
Related To:
Recommendation
Inherits From:
BaseModel
Declaration:
class RecommendationResponse extends BaseModel
Properties:
Property | Type | Optional | Description |
---|---|---|---|
name | string | no | Recommendation’s name |
campaignHash | string | no | Campaign hash |
campaignID | string | no | Campaign ID |
items | Array |
no | List of items in the recommendation |
Recommendation
Model representating a recommendation item data.
Declared In:
lib/classes/Content/Recommendation.js
Related To:
RecommendationResponse
Inherits From:
BaseModel
Declaration:
class Recommendation extends BaseModel
Properties:
Property | Type | Optional | Description |
---|---|---|---|
itemID | string | no | Product’s GTIN |
attributes | Record<string, any> | no | Product’s recommendation attributes |
RecommendationOptions
Declared In:
lib/classes/content/RecommendationOptions.js
Declaration:
class RecommendationOptions
Properties:
Property | Type | Optional | Description |
---|---|---|---|
slug | string | no | Unique identifier of a specific recommendation |
productID | string | no | Item identifier |
Documents
DocumentsApiQuery
The object to set parameters easily for fetching documents from API.
Declared In:
lib/classes/api_queries/DocumentsApiQuery.js
Related To:
DocumentsApiQueryType
Declaration:
class DocumentsApiQuery
Properties:
Property | Type | Optional | Default | Description |
---|---|---|---|---|
type | DocumentsApiQueryType | no | .bySchema | Query type |
typeValue | string | no | nil | Value for query type |
version | string | yes | nil | Specifies the document version |
Initializers:
constructor(type: DocumentsApiQueryType, typeValue: string, version: string)
DocumentsApiQueryType
Declared In:
lib/classes/api_queries/DocumentsApiQueryType.js
Declaration:
enum DocumentsApiQueryType {
SCHEMA = 'by-schema',
}
Document
Model representing a highest-priority customer screen view campaign.
Declared In:
lib/classes/content/Document.js
Inherits From:
BaseModel
Declaration:
class Document extends BaseModel
Properties:
Property | Type | Optional | Description |
---|---|---|---|
uuid | string | no | Document’s identifier (UUID) |
slug | string | no | Document’s slug |
schema | string | no | Document’s schema type |
content | object | no | Document’s content |