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