/* * 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 CustomFieldValuePayloadV1 = { /** * Unique identifier for the custom field value */ id?: string | undefined; /** * ID of the catalog entry. You can also use an ExternalID or an Alias of the catalog entry. */ valueCatalogEntryId?: string | undefined; /** * If the custom field type is 'link', this will contain the value assigned. */ valueLink?: string | undefined; /** * If the custom field type is 'numeric', this will contain the value assigned. */ valueNumeric?: string | undefined; /** * ID of the custom field option */ valueOptionId?: string | undefined; /** * If the custom field type is 'text', this will contain the value assigned. */ valueText?: string | undefined; /** * Deprecated: please use incident timestamp values instead */ valueTimestamp?: string | undefined; }; /** @internal */ export const CustomFieldValuePayloadV1$inboundSchema: z.ZodType< CustomFieldValuePayloadV1, z.ZodTypeDef, unknown > = z.object({ id: z.string().optional(), value_catalog_entry_id: z.string().optional(), value_link: z.string().optional(), value_numeric: z.string().optional(), value_option_id: z.string().optional(), value_text: z.string().optional(), value_timestamp: z.string().optional(), }).transform((v) => { return remap$(v, { "value_catalog_entry_id": "valueCatalogEntryId", "value_link": "valueLink", "value_numeric": "valueNumeric", "value_option_id": "valueOptionId", "value_text": "valueText", "value_timestamp": "valueTimestamp", }); }); /** @internal */ export type CustomFieldValuePayloadV1$Outbound = { id?: string | undefined; value_catalog_entry_id?: string | undefined; value_link?: string | undefined; value_numeric?: string | undefined; value_option_id?: string | undefined; value_text?: string | undefined; value_timestamp?: string | undefined; }; /** @internal */ export const CustomFieldValuePayloadV1$outboundSchema: z.ZodType< CustomFieldValuePayloadV1$Outbound, z.ZodTypeDef, CustomFieldValuePayloadV1 > = z.object({ id: z.string().optional(), valueCatalogEntryId: z.string().optional(), valueLink: z.string().optional(), valueNumeric: z.string().optional(), valueOptionId: z.string().optional(), valueText: z.string().optional(), valueTimestamp: z.string().optional(), }).transform((v) => { return remap$(v, { valueCatalogEntryId: "value_catalog_entry_id", valueLink: "value_link", valueNumeric: "value_numeric", valueOptionId: "value_option_id", valueText: "value_text", valueTimestamp: "value_timestamp", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CustomFieldValuePayloadV1$ { /** @deprecated use `CustomFieldValuePayloadV1$inboundSchema` instead. */ export const inboundSchema = CustomFieldValuePayloadV1$inboundSchema; /** @deprecated use `CustomFieldValuePayloadV1$outboundSchema` instead. */ export const outboundSchema = CustomFieldValuePayloadV1$outboundSchema; /** @deprecated use `CustomFieldValuePayloadV1$Outbound` instead. */ export type Outbound = CustomFieldValuePayloadV1$Outbound; }