/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ScheduleConfigUpdatePayloadV2, ScheduleConfigUpdatePayloadV2$inboundSchema, ScheduleConfigUpdatePayloadV2$Outbound, ScheduleConfigUpdatePayloadV2$outboundSchema, } from "./scheduleconfigupdatepayloadv2.js"; import { ScheduleHolidaysPublicConfigV2, ScheduleHolidaysPublicConfigV2$inboundSchema, ScheduleHolidaysPublicConfigV2$Outbound, ScheduleHolidaysPublicConfigV2$outboundSchema, } from "./scheduleholidayspublicconfigv2.js"; export type ScheduleUpdatePayloadV2 = { /** * Annotations that can track metadata about the schedule */ annotations?: { [k: string]: string } | undefined; config?: ScheduleConfigUpdatePayloadV2 | undefined; holidaysPublicConfig?: ScheduleHolidaysPublicConfigV2 | undefined; /** * Name of the schedule */ name?: string | undefined; /** * Timezone of the schedule */ timezone?: string | undefined; }; /** @internal */ export const ScheduleUpdatePayloadV2$inboundSchema: z.ZodType< ScheduleUpdatePayloadV2, z.ZodTypeDef, unknown > = z.object({ annotations: z.record(z.string()).optional(), config: ScheduleConfigUpdatePayloadV2$inboundSchema.optional(), holidays_public_config: ScheduleHolidaysPublicConfigV2$inboundSchema .optional(), name: z.string().optional(), timezone: z.string().optional(), }).transform((v) => { return remap$(v, { "holidays_public_config": "holidaysPublicConfig", }); }); /** @internal */ export type ScheduleUpdatePayloadV2$Outbound = { annotations?: { [k: string]: string } | undefined; config?: ScheduleConfigUpdatePayloadV2$Outbound | undefined; holidays_public_config?: ScheduleHolidaysPublicConfigV2$Outbound | undefined; name?: string | undefined; timezone?: string | undefined; }; /** @internal */ export const ScheduleUpdatePayloadV2$outboundSchema: z.ZodType< ScheduleUpdatePayloadV2$Outbound, z.ZodTypeDef, ScheduleUpdatePayloadV2 > = z.object({ annotations: z.record(z.string()).optional(), config: ScheduleConfigUpdatePayloadV2$outboundSchema.optional(), holidaysPublicConfig: ScheduleHolidaysPublicConfigV2$outboundSchema .optional(), name: z.string().optional(), timezone: z.string().optional(), }).transform((v) => { return remap$(v, { holidaysPublicConfig: "holidays_public_config", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ScheduleUpdatePayloadV2$ { /** @deprecated use `ScheduleUpdatePayloadV2$inboundSchema` instead. */ export const inboundSchema = ScheduleUpdatePayloadV2$inboundSchema; /** @deprecated use `ScheduleUpdatePayloadV2$outboundSchema` instead. */ export const outboundSchema = ScheduleUpdatePayloadV2$outboundSchema; /** @deprecated use `ScheduleUpdatePayloadV2$Outbound` instead. */ export type Outbound = ScheduleUpdatePayloadV2$Outbound; }