/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type CustomFieldOptionV1 = { /** * ID of the custom field this option belongs to */ customFieldId: string; /** * Unique identifier for the custom field option */ id: string; /** * Sort key used to order the custom field options correctly */ sortKey?: number | undefined; /** * Human readable name for the custom field option */ value: string; }; /** @internal */ export const CustomFieldOptionV1$inboundSchema: z.ZodType< CustomFieldOptionV1, z.ZodTypeDef, unknown > = z.object({ custom_field_id: z.string(), id: z.string(), sort_key: z.number().int().default(1000), value: z.string(), }).transform((v) => { return remap$(v, { "custom_field_id": "customFieldId", "sort_key": "sortKey", }); }); /** @internal */ export type CustomFieldOptionV1$Outbound = { custom_field_id: string; id: string; sort_key: number; value: string; }; /** @internal */ export const CustomFieldOptionV1$outboundSchema: z.ZodType< CustomFieldOptionV1$Outbound, z.ZodTypeDef, CustomFieldOptionV1 > = z.object({ customFieldId: z.string(), id: z.string(), sortKey: z.number().int().default(1000), value: z.string(), }).transform((v) => { return remap$(v, { customFieldId: "custom_field_id", sortKey: "sort_key", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CustomFieldOptionV1$ { /** @deprecated use `CustomFieldOptionV1$inboundSchema` instead. */ export const inboundSchema = CustomFieldOptionV1$inboundSchema; /** @deprecated use `CustomFieldOptionV1$outboundSchema` instead. */ export const outboundSchema = CustomFieldOptionV1$outboundSchema; /** @deprecated use `CustomFieldOptionV1$Outbound` instead. */ export type Outbound = CustomFieldOptionV1$Outbound; }