create customer
This commit is contained in:
1 parent
7b207f2ccb
commit
01c0e9ef4d
11 files changed
+159
-14
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
} from "@/db/models/index.js";
|
||||
import { z } from "zod";
|
||||
import mongoose from "mongoose";
|
||||
import { PlanKeys, type PlanKey } from "@/types/entitlements.js";
|
||||
|
||||
export const registerSchema = z.object({
|
||||
email: z.email({ message: "Invalid email address" }),
|
||||
@@ -127,6 +128,10 @@ export const monitorImportSchema = z.object({
|
||||
.min(1, { message: "Provide at least one monitor" }),
|
||||
});
|
||||
|
||||
export const subscribePlanSchema = z.object({
|
||||
planKey: z.enum(PlanKeys).optional(),
|
||||
});
|
||||
|
||||
export type MonitorImportPayload = z.infer<typeof monitorImportSchema>;
|
||||
|
||||
export const monitorPatchSchema = monitorSchema
|
||||
|
||||
Reference in new issue
Block a user