/* * 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 PayrollsFilter = { /** * Return payrolls whose pay period is after the start date */ startDate?: string | undefined; /** * Return payrolls whose pay period is before the end date */ endDate?: string | undefined; }; /** @internal */ export type PayrollsFilter$Outbound = { start_date?: string | undefined; end_date?: string | undefined; }; /** @internal */ export const PayrollsFilter$outboundSchema: z.ZodType< PayrollsFilter$Outbound, z.ZodTypeDef, PayrollsFilter > = /* @__PURE__ */ lazySchema$(() => z.object({ startDate: z.string().optional(), endDate: z.string().optional(), }).transform((v) => { return remap$(v, { startDate: "start_date", endDate: "end_date", }); }) ); export function payrollsFilterToJSON(payrollsFilter: PayrollsFilter): string { return JSON.stringify(PayrollsFilter$outboundSchema.parse(payrollsFilter)); }