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