/* * 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 { LocationServicesDistanceFinderNearbyDay, LocationServicesDistanceFinderNearbyDay$Outbound, LocationServicesDistanceFinderNearbyDay$outboundSchema, } from "./locationservicesdistancefindernearbyday.js"; export type LocationServicesDistanceFinderNearbyOpeningHours = { monday?: LocationServicesDistanceFinderNearbyDay | undefined; tuesday?: LocationServicesDistanceFinderNearbyDay | undefined; wednesday?: LocationServicesDistanceFinderNearbyDay | undefined; thursday?: LocationServicesDistanceFinderNearbyDay | undefined; friday?: LocationServicesDistanceFinderNearbyDay | undefined; saturday?: LocationServicesDistanceFinderNearbyDay | undefined; sunday?: LocationServicesDistanceFinderNearbyDay | undefined; }; /** @internal */ export type LocationServicesDistanceFinderNearbyOpeningHours$Outbound = { Monday?: LocationServicesDistanceFinderNearbyDay$Outbound | undefined; Tuesday?: LocationServicesDistanceFinderNearbyDay$Outbound | undefined; Wednesday?: LocationServicesDistanceFinderNearbyDay$Outbound | undefined; Thursday?: LocationServicesDistanceFinderNearbyDay$Outbound | undefined; Friday?: LocationServicesDistanceFinderNearbyDay$Outbound | undefined; Saturday?: LocationServicesDistanceFinderNearbyDay$Outbound | undefined; Sunday?: LocationServicesDistanceFinderNearbyDay$Outbound | undefined; }; /** @internal */ export const LocationServicesDistanceFinderNearbyOpeningHours$outboundSchema: z.ZodType< LocationServicesDistanceFinderNearbyOpeningHours$Outbound, z.ZodTypeDef, LocationServicesDistanceFinderNearbyOpeningHours > = z.object({ monday: LocationServicesDistanceFinderNearbyDay$outboundSchema.optional(), tuesday: LocationServicesDistanceFinderNearbyDay$outboundSchema.optional(), wednesday: LocationServicesDistanceFinderNearbyDay$outboundSchema .optional(), thursday: LocationServicesDistanceFinderNearbyDay$outboundSchema.optional(), friday: LocationServicesDistanceFinderNearbyDay$outboundSchema.optional(), saturday: LocationServicesDistanceFinderNearbyDay$outboundSchema.optional(), sunday: LocationServicesDistanceFinderNearbyDay$outboundSchema.optional(), }).transform((v) => { return remap$(v, { monday: "Monday", tuesday: "Tuesday", wednesday: "Wednesday", thursday: "Thursday", friday: "Friday", saturday: "Saturday", sunday: "Sunday", }); }); export function locationServicesDistanceFinderNearbyOpeningHoursToJSON( locationServicesDistanceFinderNearbyOpeningHours: LocationServicesDistanceFinderNearbyOpeningHours, ): string { return JSON.stringify( LocationServicesDistanceFinderNearbyOpeningHours$outboundSchema.parse( locationServicesDistanceFinderNearbyOpeningHours, ), ); }