/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { EscalationPathNodeV2, EscalationPathNodeV2$inboundSchema, EscalationPathNodeV2$Outbound, EscalationPathNodeV2$outboundSchema, } from "./escalationpathnodev2.js"; import { WeekdayIntervalConfigV2, WeekdayIntervalConfigV2$inboundSchema, WeekdayIntervalConfigV2$Outbound, WeekdayIntervalConfigV2$outboundSchema, } from "./weekdayintervalconfigv2.js"; export type EscalationPathV2 = { /** * Unique identifier for this escalation path. */ id: string; /** * The name of this escalation path, for the user's reference. */ name: string; /** * The nodes that form the levels and branches of this escalation path. */ path: Array; /** * The working hours for this escalation path. */ workingHours?: Array | undefined; }; /** @internal */ export const EscalationPathV2$inboundSchema: z.ZodType< EscalationPathV2, z.ZodTypeDef, unknown > = z.object({ id: z.string(), name: z.string(), path: z.array(EscalationPathNodeV2$inboundSchema), working_hours: z.array(WeekdayIntervalConfigV2$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "working_hours": "workingHours", }); }); /** @internal */ export type EscalationPathV2$Outbound = { id: string; name: string; path: Array; working_hours?: Array | undefined; }; /** @internal */ export const EscalationPathV2$outboundSchema: z.ZodType< EscalationPathV2$Outbound, z.ZodTypeDef, EscalationPathV2 > = z.object({ id: z.string(), name: z.string(), path: z.array(EscalationPathNodeV2$outboundSchema), workingHours: z.array(WeekdayIntervalConfigV2$outboundSchema).optional(), }).transform((v) => { return remap$(v, { workingHours: "working_hours", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace EscalationPathV2$ { /** @deprecated use `EscalationPathV2$inboundSchema` instead. */ export const inboundSchema = EscalationPathV2$inboundSchema; /** @deprecated use `EscalationPathV2$outboundSchema` instead. */ export const outboundSchema = EscalationPathV2$outboundSchema; /** @deprecated use `EscalationPathV2$Outbound` instead. */ export type Outbound = EscalationPathV2$Outbound; }