/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type WeekdayIntervalV2 = { /** * End time of the interval, in 24hr format */ endTime: string; /** * Start time of the interval, in 24hr format */ startTime: string; /** * Weekday this interval applies to */ weekday: string; }; /** @internal */ export const WeekdayIntervalV2$inboundSchema: z.ZodType< WeekdayIntervalV2, z.ZodTypeDef, unknown > = z.object({ end_time: z.string(), start_time: z.string(), weekday: z.string(), }).transform((v) => { return remap$(v, { "end_time": "endTime", "start_time": "startTime", }); }); /** @internal */ export type WeekdayIntervalV2$Outbound = { end_time: string; start_time: string; weekday: string; }; /** @internal */ export const WeekdayIntervalV2$outboundSchema: z.ZodType< WeekdayIntervalV2$Outbound, z.ZodTypeDef, WeekdayIntervalV2 > = z.object({ endTime: z.string(), startTime: z.string(), weekday: z.string(), }).transform((v) => { return remap$(v, { endTime: "end_time", startTime: "start_time", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace WeekdayIntervalV2$ { /** @deprecated use `WeekdayIntervalV2$inboundSchema` instead. */ export const inboundSchema = WeekdayIntervalV2$inboundSchema; /** @deprecated use `WeekdayIntervalV2$outboundSchema` instead. */ export const outboundSchema = WeekdayIntervalV2$outboundSchema; /** @deprecated use `WeekdayIntervalV2$Outbound` instead. */ export type Outbound = WeekdayIntervalV2$Outbound; }