/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { WeekdayIntervalV2, WeekdayIntervalV2$inboundSchema, WeekdayIntervalV2$Outbound, WeekdayIntervalV2$outboundSchema, } from "./weekdayintervalv2.js"; export type WeekdayIntervalConfigV2 = { /** * The unique identifier for this set of working intervals */ id: string; /** * A human readable label for this set of working intervals */ name: string; /** * How to interpret all the intervals */ timezone: string; weekdayIntervals: Array; }; /** @internal */ export const WeekdayIntervalConfigV2$inboundSchema: z.ZodType< WeekdayIntervalConfigV2, z.ZodTypeDef, unknown > = z.object({ id: z.string(), name: z.string(), timezone: z.string(), weekday_intervals: z.array(WeekdayIntervalV2$inboundSchema), }).transform((v) => { return remap$(v, { "weekday_intervals": "weekdayIntervals", }); }); /** @internal */ export type WeekdayIntervalConfigV2$Outbound = { id: string; name: string; timezone: string; weekday_intervals: Array; }; /** @internal */ export const WeekdayIntervalConfigV2$outboundSchema: z.ZodType< WeekdayIntervalConfigV2$Outbound, z.ZodTypeDef, WeekdayIntervalConfigV2 > = z.object({ id: z.string(), name: z.string(), timezone: z.string(), weekdayIntervals: z.array(WeekdayIntervalV2$outboundSchema), }).transform((v) => { return remap$(v, { weekdayIntervals: "weekday_intervals", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace WeekdayIntervalConfigV2$ { /** @deprecated use `WeekdayIntervalConfigV2$inboundSchema` instead. */ export const inboundSchema = WeekdayIntervalConfigV2$inboundSchema; /** @deprecated use `WeekdayIntervalConfigV2$outboundSchema` instead. */ export const outboundSchema = WeekdayIntervalConfigV2$outboundSchema; /** @deprecated use `WeekdayIntervalConfigV2$Outbound` instead. */ export type Outbound = WeekdayIntervalConfigV2$Outbound; }