/* * 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"; /** * Type of custom field */ export const CreateRequestBody4FieldType = { SingleSelect: "single_select", MultiSelect: "multi_select", Text: "text", Link: "link", Numeric: "numeric", } as const; /** * Type of custom field */ export type CreateRequestBody4FieldType = ClosedEnum< typeof CreateRequestBody4FieldType >; export type CreateRequestBody4 = { /** * Description of the custom field */ description: string; /** * Type of custom field */ fieldType: CreateRequestBody4FieldType; /** * Human readable name for the custom field */ name: string; }; /** @internal */ export const CreateRequestBody4FieldType$inboundSchema: z.ZodNativeEnum< typeof CreateRequestBody4FieldType > = z.nativeEnum(CreateRequestBody4FieldType); /** @internal */ export const CreateRequestBody4FieldType$outboundSchema: z.ZodNativeEnum< typeof CreateRequestBody4FieldType > = CreateRequestBody4FieldType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CreateRequestBody4FieldType$ { /** @deprecated use `CreateRequestBody4FieldType$inboundSchema` instead. */ export const inboundSchema = CreateRequestBody4FieldType$inboundSchema; /** @deprecated use `CreateRequestBody4FieldType$outboundSchema` instead. */ export const outboundSchema = CreateRequestBody4FieldType$outboundSchema; } /** @internal */ export const CreateRequestBody4$inboundSchema: z.ZodType< CreateRequestBody4, z.ZodTypeDef, unknown > = z.object({ description: z.string(), field_type: CreateRequestBody4FieldType$inboundSchema, name: z.string(), }).transform((v) => { return remap$(v, { "field_type": "fieldType", }); }); /** @internal */ export type CreateRequestBody4$Outbound = { description: string; field_type: string; name: string; }; /** @internal */ export const CreateRequestBody4$outboundSchema: z.ZodType< CreateRequestBody4$Outbound, z.ZodTypeDef, CreateRequestBody4 > = z.object({ description: z.string(), fieldType: CreateRequestBody4FieldType$outboundSchema, name: z.string(), }).transform((v) => { return remap$(v, { fieldType: "field_type", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CreateRequestBody4$ { /** @deprecated use `CreateRequestBody4$inboundSchema` instead. */ export const inboundSchema = CreateRequestBody4$inboundSchema; /** @deprecated use `CreateRequestBody4$outboundSchema` instead. */ export const outboundSchema = CreateRequestBody4$outboundSchema; /** @deprecated use `CreateRequestBody4$Outbound` instead. */ export type Outbound = CreateRequestBody4$Outbound; }