/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { lazySchema as lazySchema$ } from "../../lib/schemas.js"; export type LeadsFilter = { /** * Name of the lead to filter on */ name?: string | undefined; /** * First name of the lead to filter on */ firstName?: string | undefined; /** * Last name of the lead to filter on */ lastName?: string | undefined; /** * E-mail of the lead to filter on */ email?: string | undefined; /** * Phone number of the lead to filter on */ phoneNumber?: string | undefined; }; /** @internal */ export type LeadsFilter$Outbound = { name?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; email?: string | undefined; phone_number?: string | undefined; }; /** @internal */ export const LeadsFilter$outboundSchema: z.ZodType< LeadsFilter$Outbound, z.ZodTypeDef, LeadsFilter > = /* @__PURE__ */ lazySchema$(() => z.object({ name: z.string().optional(), firstName: z.string().optional(), lastName: z.string().optional(), email: z.string().optional(), phoneNumber: z.string().optional(), }).transform((v) => { return remap$(v, { firstName: "first_name", lastName: "last_name", phoneNumber: "phone_number", }); }) ); export function leadsFilterToJSON(leadsFilter: LeadsFilter): string { return JSON.stringify(LeadsFilter$outboundSchema.parse(leadsFilter)); }