10 lines
306 B
TypeScript
10 lines
306 B
TypeScript
import { isValidPhoneNumber } from "libphonenumber-js/max";
|
|
import { z } from "zod";
|
|
|
|
export const ZDeleteInputSchema = z.object({
|
|
phoneNumber: z.string().refine((val) => isValidPhoneNumber(val)),
|
|
teamId: z.number().optional(),
|
|
});
|
|
|
|
export type TDeleteInputSchema = z.infer<typeof ZDeleteInputSchema>;
|