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