Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

406 B
Raw Blame
import * as z from "zod/v4";
import { leadEventSchemaTB } from "../zod/schemas/leads";
import { tb } from "./client";

export const recordLead = tb.buildIngestEndpoint({
  datasource: "dub_lead_events",
  event: leadEventSchemaTB,
});

export const recordLeadWithTimestamp = tb.buildIngestEndpoint({
  datasource: "dub_lead_events",
  event: leadEventSchemaTB.extend({
    timestamp: z.string(),
  }),
});