/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ScheduleConfigCreatePayloadV2, ScheduleConfigCreatePayloadV2$inboundSchema, ScheduleConfigCreatePayloadV2$Outbound, ScheduleConfigCreatePayloadV2$outboundSchema, } from "./scheduleconfigcreatepayloadv2.js"; import { ScheduleHolidaysPublicConfigV2, ScheduleHolidaysPublicConfigV2$inboundSchema, ScheduleHolidaysPublicConfigV2$Outbound, ScheduleHolidaysPublicConfigV2$outboundSchema, } from "./scheduleholidayspublicconfigv2.js"; export type ScheduleCreatePayloadV2 = { /** * Annotations that can track metadata about the schedule */ annotations?: { [k: string]: string } | undefined; config?: ScheduleConfigCreatePayloadV2 | undefined; holidaysPublicConfig?: ScheduleHolidaysPublicConfigV2 | undefined; /** * Name of the schedule */ name?: string | undefined; /** * Timezone of the schedule */ timezone?: string | undefined; }; /** @internal */ export const ScheduleCreatePayloadV2$inboundSchema: z.ZodType< ScheduleCreatePayloadV2, z.ZodTypeDef, unknown > = z.object({ annotations: z.record(z.string()).optional(), config: ScheduleConfigCreatePayloadV2$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 ScheduleCreatePayloadV2$Outbound = { annotations?: { [k: string]: string } | undefined; config?: ScheduleConfigCreatePayloadV2$Outbound | undefined; holidays_public_config?: ScheduleHolidaysPublicConfigV2$Outbound | undefined; name?: string | undefined; timezone?: string | undefined; }; /** @internal */ export const ScheduleCreatePayloadV2$outboundSchema: z.ZodType< ScheduleCreatePayloadV2$Outbound, z.ZodTypeDef, ScheduleCreatePayloadV2 > = z.object({ annotations: z.record(z.string()).optional(), config: ScheduleConfigCreatePayloadV2$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 ScheduleCreatePayloadV2$ { /** @deprecated use `ScheduleCreatePayloadV2$inboundSchema` instead. */ export const inboundSchema = ScheduleCreatePayloadV2$inboundSchema; /** @deprecated use `ScheduleCreatePayloadV2$outboundSchema` instead. */ export const outboundSchema = ScheduleCreatePayloadV2$outboundSchema; /** @deprecated use `ScheduleCreatePayloadV2$Outbound` instead. */ export type Outbound = ScheduleCreatePayloadV2$Outbound; }