The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
import * as z from "zod/v4";
import { saleEventSchemaTB } from "../zod/schemas/sales";
import { tb } from "./client";
export const recordSale = tb.buildIngestEndpoint({
datasource: "dub_sale_events",
event: saleEventSchemaTB,
});
export const recordSaleWithTimestamp = tb.buildIngestEndpoint({
datasource: "dub_sale_events",
event: saleEventSchemaTB.extend({
timestamp: z.string(),
}),
});