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 { 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(),
  }),
});