import { XyPixel } from '@xylabs/pixel' import { type EmptyObject, toSafeJsonObject } from '@xylabs/sdk-js' class XyBaseEvent { private name: string constructor(name: string) { this.name = name } async send(fields: T, eventId?: string) { await XyPixel.instance.send(this.name, toSafeJsonObject(fields, undefined, 10), eventId) } } export { XyBaseEvent }