/* * 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 ActivitiesFilter = { /** * Company ID to filter on */ companyId?: string | undefined; /** * Owner ID to filter on */ ownerId?: string | undefined; /** * Primary contact ID to filter on */ contactId?: string | undefined; updatedSince?: Date | undefined; /** * Type to filter on */ type?: string | undefined; }; /** @internal */ export type ActivitiesFilter$Outbound = { company_id?: string | undefined; owner_id?: string | undefined; contact_id?: string | undefined; updated_since?: string | undefined; type?: string | undefined; }; /** @internal */ export const ActivitiesFilter$outboundSchema: z.ZodType< ActivitiesFilter$Outbound, z.ZodTypeDef, ActivitiesFilter > = /* @__PURE__ */ lazySchema$(() => z.object({ companyId: z.string().optional(), ownerId: z.string().optional(), contactId: z.string().optional(), updatedSince: z.date().transform(v => v.toISOString()).optional(), type: z.string().optional(), }).transform((v) => { return remap$(v, { companyId: "company_id", ownerId: "owner_id", contactId: "contact_id", updatedSince: "updated_since", }); }) ); export function activitiesFilterToJSON( activitiesFilter: ActivitiesFilter, ): string { return JSON.stringify( ActivitiesFilter$outboundSchema.parse(activitiesFilter), ); }