// ----------------------------------------------------------------------------- // Enum Typedefs // ----------------------------------------------------------------------------- /** * @typedef {"pdp"} SimilarProductContext */ // ----------------------------------------------------------------------------- // Model Typedefs // ----------------------------------------------------------------------------- /** * Product price in USD * @typedef {Object} Price * @property {string} was formatted price in USD * @property {string} now formatted price in USD * @property {boolean} onSale true if now price is < was price. Used to */ /** * @typedef {Object} Recommendation * @property {string} productId * @property {string} productName * @property {string} productUrl * @property {string} productImageUrl * @property {string} brandName * @property {Price} price * @property {number} [rating] customer review's rating * @property {number} [numReviews] number of customers that reviewed the product */ /** * @typedef {Object} SimilarProductRecommendation * @property {Recommendation[]} recommendations */ // ----------------------------------------------------------------------------- // Union Typedefs // -----------------------------------------------------------------------------