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