cal.pub0.org/packages/app-store/plausible/zod.ts

13 lines
366 B
TypeScript

import { z } from "zod";
import { eventTypeAppCardZod } from "../eventTypeAppCardZod";
export const appDataSchema = eventTypeAppCardZod.merge(
z.object({
PLAUSIBLE_URL: z.string().optional().default("https://plausible.io/js/script.js").or(z.undefined()),
trackingId: z.string().default("").optional(),
})
);
export const appKeysSchema = z.object({});