/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; export type EntityPropertySourcePartialUpdateDtoIdTypeMapping = { /** * ID for the Statsig unit. */ statsigUnitID: string; /** * Column name linked to the ID. */ column: string; }; export type EntityPropertySourcePartialUpdateDto = { /** * Unique identifier for the entity property source. */ name?: string | undefined; /** * Detailed context and purpose of the entity property source. */ description?: string | undefined; /** * Tags for categorization and search. */ tags?: Array | undefined; /** * SQL query defining the data source */ sql?: string | undefined; /** * Optional column name for timestamp. */ timestampColumn?: string | undefined; /** * Indicates if the timestamp is treated as a day. */ timestampAsDay?: boolean | undefined; /** * Mappings of Statsig units to their columns. */ idTypeMapping?: Array | undefined; }; /** @internal */ export const EntityPropertySourcePartialUpdateDtoIdTypeMapping$inboundSchema: z.ZodType< EntityPropertySourcePartialUpdateDtoIdTypeMapping, z.ZodTypeDef, unknown > = z.object({ statsigUnitID: z.string(), column: z.string(), }); /** @internal */ export type EntityPropertySourcePartialUpdateDtoIdTypeMapping$Outbound = { statsigUnitID: string; column: string; }; /** @internal */ export const EntityPropertySourcePartialUpdateDtoIdTypeMapping$outboundSchema: z.ZodType< EntityPropertySourcePartialUpdateDtoIdTypeMapping$Outbound, z.ZodTypeDef, EntityPropertySourcePartialUpdateDtoIdTypeMapping > = z.object({ statsigUnitID: z.string(), column: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace EntityPropertySourcePartialUpdateDtoIdTypeMapping$ { /** @deprecated use `EntityPropertySourcePartialUpdateDtoIdTypeMapping$inboundSchema` instead. */ export const inboundSchema = EntityPropertySourcePartialUpdateDtoIdTypeMapping$inboundSchema; /** @deprecated use `EntityPropertySourcePartialUpdateDtoIdTypeMapping$outboundSchema` instead. */ export const outboundSchema = EntityPropertySourcePartialUpdateDtoIdTypeMapping$outboundSchema; /** @deprecated use `EntityPropertySourcePartialUpdateDtoIdTypeMapping$Outbound` instead. */ export type Outbound = EntityPropertySourcePartialUpdateDtoIdTypeMapping$Outbound; } /** @internal */ export const EntityPropertySourcePartialUpdateDto$inboundSchema: z.ZodType< EntityPropertySourcePartialUpdateDto, z.ZodTypeDef, unknown > = z.object({ name: z.string().optional(), description: z.string().optional(), tags: z.array(z.string()).optional(), sql: z.string().optional(), timestampColumn: z.string().optional(), timestampAsDay: z.boolean().optional(), idTypeMapping: z .array(z.lazy(() => EntityPropertySourcePartialUpdateDtoIdTypeMapping$inboundSchema)) .optional(), }); /** @internal */ export type EntityPropertySourcePartialUpdateDto$Outbound = { name?: string | undefined; description?: string | undefined; tags?: Array | undefined; sql?: string | undefined; timestampColumn?: string | undefined; timestampAsDay?: boolean | undefined; idTypeMapping?: Array | undefined; }; /** @internal */ export const EntityPropertySourcePartialUpdateDto$outboundSchema: z.ZodType< EntityPropertySourcePartialUpdateDto$Outbound, z.ZodTypeDef, EntityPropertySourcePartialUpdateDto > = z.object({ name: z.string().optional(), description: z.string().optional(), tags: z.array(z.string()).optional(), sql: z.string().optional(), timestampColumn: z.string().optional(), timestampAsDay: z.boolean().optional(), idTypeMapping: z .array(z.lazy(() => EntityPropertySourcePartialUpdateDtoIdTypeMapping$outboundSchema)) .optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace EntityPropertySourcePartialUpdateDto$ { /** @deprecated use `EntityPropertySourcePartialUpdateDto$inboundSchema` instead. */ export const inboundSchema = EntityPropertySourcePartialUpdateDto$inboundSchema; /** @deprecated use `EntityPropertySourcePartialUpdateDto$outboundSchema` instead. */ export const outboundSchema = EntityPropertySourcePartialUpdateDto$outboundSchema; /** @deprecated use `EntityPropertySourcePartialUpdateDto$Outbound` instead. */ export type Outbound = EntityPropertySourcePartialUpdateDto$Outbound; }