/* * 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 { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type StoreFinderInteractiveFindPlaceNamesResponseItem = { /** * The ID for this company. This is not the URN. */ id?: string | undefined; /** * The name of the place. */ place?: string | undefined; }; export type StoreFinderInteractiveFindPlaceNamesResponse = { items?: Array | undefined; }; /** @internal */ export const StoreFinderInteractiveFindPlaceNamesResponseItem$inboundSchema: z.ZodType< StoreFinderInteractiveFindPlaceNamesResponseItem, z.ZodTypeDef, unknown > = z.object({ Id: z.string().optional(), Place: z.string().optional(), }).transform((v) => { return remap$(v, { "Id": "id", "Place": "place", }); }); export function storeFinderInteractiveFindPlaceNamesResponseItemFromJSON( jsonString: string, ): SafeParseResult< StoreFinderInteractiveFindPlaceNamesResponseItem, SDKValidationError > { return safeParse( jsonString, (x) => StoreFinderInteractiveFindPlaceNamesResponseItem$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'StoreFinderInteractiveFindPlaceNamesResponseItem' from JSON`, ); } /** @internal */ export const StoreFinderInteractiveFindPlaceNamesResponse$inboundSchema: z.ZodType< StoreFinderInteractiveFindPlaceNamesResponse, z.ZodTypeDef, unknown > = z.object({ Items: z.array( z.lazy(() => StoreFinderInteractiveFindPlaceNamesResponseItem$inboundSchema ), ).optional(), }).transform((v) => { return remap$(v, { "Items": "items", }); }); export function storeFinderInteractiveFindPlaceNamesResponseFromJSON( jsonString: string, ): SafeParseResult< StoreFinderInteractiveFindPlaceNamesResponse, SDKValidationError > { return safeParse( jsonString, (x) => StoreFinderInteractiveFindPlaceNamesResponse$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'StoreFinderInteractiveFindPlaceNamesResponse' from JSON`, ); }