import { getCurrentUnixTimestamp } from '../utils/helper'; import { EventRequest } from './EventRequest'; import type { IAddProductDetailViewEvent } from './types'; export class AddProductDetailViewEvent extends EventRequest { constructor({ itemId, url, ref, recommendationId, from, timestamp = getCurrentUnixTimestamp(), userProperties, eventProperties, }: IAddProductDetailViewEvent) { super({ itemId, eventType: 'product_detail_view', timestamp, url, ref, recommendationId, from, userProperties, eventProperties, }); } }