mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Omar López <[email protected]> Co-authored-by: Amit Sharma <[email protected]>
18 lines
565 B
TypeScript
18 lines
565 B
TypeScript
import { z } from "zod";
|
|
|
|
import { emailSchema } from "@calcom/lib/emailSchema";
|
|
|
|
const BillingType = z.enum(["PER_BOOKING", "PER_USER"]);
|
|
const BillingPeriod = z.enum(["MONTHLY", "ANNUALLY"]);
|
|
|
|
export const ZCreateSelfHostedLicenseSchema = z.object({
|
|
billingType: BillingType,
|
|
entityCount: z.number().int().nonnegative(),
|
|
entityPrice: z.number().nonnegative(),
|
|
billingPeriod: BillingPeriod,
|
|
overages: z.number().nonnegative(),
|
|
billingEmail: emailSchema,
|
|
});
|
|
|
|
export type TCreateSelfHostedLicenseSchema = z.infer<typeof ZCreateSelfHostedLicenseSchema>;
|