/* * 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 LinkedLocationInput = { /** * The unique identifier for the location. */ id?: string | undefined; /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The name of the location. */ name?: string | null | undefined; }; /** @internal */ export type LinkedLocationInput$Outbound = { id?: string | undefined; display_id?: string | null | undefined; name?: string | null | undefined; }; /** @internal */ export const LinkedLocationInput$outboundSchema: z.ZodType< LinkedLocationInput$Outbound, z.ZodTypeDef, LinkedLocationInput > = /* @__PURE__ */ lazySchema$(() => z.object({ id: z.string().optional(), displayId: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { displayId: "display_id", }); }) ); export function linkedLocationInputToJSON( linkedLocationInput: LinkedLocationInput, ): string { return JSON.stringify( LinkedLocationInput$outboundSchema.parse(linkedLocationInput), ); }