import { z } from 'zod';

import { registerEvent } from 'src/engine/core-modules/analytics/utils/events/track/track';

export const OBJECT_RECORD_CREATED_EVENT = 'Object Record Created' as const;
export const objectRecordCreatedSchema = z.object({
  event: z.literal(OBJECT_RECORD_CREATED_EVENT),
  properties: z.object({}).passthrough(),
});

export type ObjectRecordCreatedTrackEvent = z.infer<
  typeof objectRecordCreatedSchema
>;

registerEvent(OBJECT_RECORD_CREATED_EVENT, objectRecordCreatedSchema);
