/* * 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"; import * as openEnums from "../../types/enums.js"; import { OpenEnum } from "../../types/enums.js"; export const AccountingEmployeesFilterStatus = { Active: "active", Inactive: "inactive", Terminated: "terminated", } as const; export type AccountingEmployeesFilterStatus = OpenEnum< typeof AccountingEmployeesFilterStatus >; export type AccountingEmployeesFilter = { updatedSince?: Date | undefined; status?: AccountingEmployeesFilterStatus | undefined; }; /** @internal */ export const AccountingEmployeesFilterStatus$outboundSchema: z.ZodType< string, z.ZodTypeDef, AccountingEmployeesFilterStatus > = /* @__PURE__ */ lazySchema$(() => openEnums.outboundSchema(AccountingEmployeesFilterStatus) ); /** @internal */ export type AccountingEmployeesFilter$Outbound = { updated_since?: string | undefined; status?: string | undefined; }; /** @internal */ export const AccountingEmployeesFilter$outboundSchema: z.ZodType< AccountingEmployeesFilter$Outbound, z.ZodTypeDef, AccountingEmployeesFilter > = /* @__PURE__ */ lazySchema$(() => z.object({ updatedSince: z.date().transform(v => v.toISOString()).optional(), status: AccountingEmployeesFilterStatus$outboundSchema.optional(), }).transform((v) => { return remap$(v, { updatedSince: "updated_since", }); }) ); export function accountingEmployeesFilterToJSON( accountingEmployeesFilter: AccountingEmployeesFilter, ): string { return JSON.stringify( AccountingEmployeesFilter$outboundSchema.parse(accountingEmployeesFilter), ); }