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