/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ClosedEnum } from "../../types/enums.js"; /** * Weekday this interval applies to */ export const Weekday = { Monday: "monday", Tuesday: "tuesday", Wednesday: "wednesday", Thursday: "thursday", Friday: "friday", Saturday: "saturday", Sunday: "sunday", } as const; /** * Weekday this interval applies to */ export type Weekday = ClosedEnum; export type ScheduleRotationWorkingIntervalUpdatePayloadV2 = { /** * End time of the interval, in 24hr format */ endTime?: string | undefined; /** * Start time of the interval, in 24hr format */ startTime?: string | undefined; /** * Weekday this interval applies to */ weekday?: Weekday | undefined; }; /** @internal */ export const Weekday$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Weekday); /** @internal */ export const Weekday$outboundSchema: z.ZodNativeEnum = Weekday$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace Weekday$ { /** @deprecated use `Weekday$inboundSchema` instead. */ export const inboundSchema = Weekday$inboundSchema; /** @deprecated use `Weekday$outboundSchema` instead. */ export const outboundSchema = Weekday$outboundSchema; } /** @internal */ export const ScheduleRotationWorkingIntervalUpdatePayloadV2$inboundSchema: z.ZodType< ScheduleRotationWorkingIntervalUpdatePayloadV2, z.ZodTypeDef, unknown > = z.object({ end_time: z.string().optional(), start_time: z.string().optional(), weekday: Weekday$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "end_time": "endTime", "start_time": "startTime", }); }); /** @internal */ export type ScheduleRotationWorkingIntervalUpdatePayloadV2$Outbound = { end_time?: string | undefined; start_time?: string | undefined; weekday?: string | undefined; }; /** @internal */ export const ScheduleRotationWorkingIntervalUpdatePayloadV2$outboundSchema: z.ZodType< ScheduleRotationWorkingIntervalUpdatePayloadV2$Outbound, z.ZodTypeDef, ScheduleRotationWorkingIntervalUpdatePayloadV2 > = z.object({ endTime: z.string().optional(), startTime: z.string().optional(), weekday: Weekday$outboundSchema.optional(), }).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 ScheduleRotationWorkingIntervalUpdatePayloadV2$ { /** @deprecated use `ScheduleRotationWorkingIntervalUpdatePayloadV2$inboundSchema` instead. */ export const inboundSchema = ScheduleRotationWorkingIntervalUpdatePayloadV2$inboundSchema; /** @deprecated use `ScheduleRotationWorkingIntervalUpdatePayloadV2$outboundSchema` instead. */ export const outboundSchema = ScheduleRotationWorkingIntervalUpdatePayloadV2$outboundSchema; /** @deprecated use `ScheduleRotationWorkingIntervalUpdatePayloadV2$Outbound` instead. */ export type Outbound = ScheduleRotationWorkingIntervalUpdatePayloadV2$Outbound; }