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.

WARNING: This is a read-only class and it is not meant to be instantiated directly.

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.

WARNING: This is a read-only class and it is not meant to be instantiated directly.

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
😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker