import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type MetricSourceUpdateContractDtoIdTypeMapping = { /** * The identifier mapping for Statsig units. */ statsigUnitID: string; /** * The corresponding column name in the source that relates to the Statsig unit ID. */ column: string; }; /** * The type of source, indicating whether it is a database table or a custom query. */ export declare const MetricSourceUpdateContractDtoSourceType: { readonly Table: "table"; readonly Query: "query"; }; /** * The type of source, indicating whether it is a database table or a custom query. */ export type MetricSourceUpdateContractDtoSourceType = ClosedEnum; export type MetricSourceUpdateContractDtoCustomFieldMapping = { /** * The identifier for the custom field mapping. */ key: string; /** * The formula or expression used to compute the custom field value. */ formula: string; }; export type MetricSourceUpdateContractDto = { /** * The name of the metric source cannot be changed in this update, ensuring the identity remains consistent. */ name?: string | undefined; /** * An optional updated description for the metric source, providing additional context or changes. */ description?: string | undefined; /** * Optional array of tags for categorizing the metric source, allowing for updates to its categorization. */ tags?: Array | undefined; /** * The SQL query or statement used to extract data from the metric source. */ sql: string; /** * The name of the column containing timestamp data for the metric source. */ timestampColumn: string; /** * Indicates whether the timestamp should be treated as a day-level granularity. */ timestampAsDay?: boolean | undefined; /** * Array defining the mapping between Statsig unit IDs and their respective source columns. */ idTypeMapping: Array; /** * The type of source, indicating whether it is a database table or a custom query. */ sourceType?: MetricSourceUpdateContractDtoSourceType | undefined; /** * The name of the database table if the source type is "table". */ tableName?: string | undefined; /** * Optional array defining mappings for custom fields using specific formulas. */ customFieldMapping?: Array | undefined; }; /** @internal */ export declare const MetricSourceUpdateContractDtoIdTypeMapping$inboundSchema: z.ZodType; /** @internal */ export type MetricSourceUpdateContractDtoIdTypeMapping$Outbound = { statsigUnitID: string; column: string; }; /** @internal */ export declare const MetricSourceUpdateContractDtoIdTypeMapping$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace MetricSourceUpdateContractDtoIdTypeMapping$ { /** @deprecated use `MetricSourceUpdateContractDtoIdTypeMapping$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `MetricSourceUpdateContractDtoIdTypeMapping$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `MetricSourceUpdateContractDtoIdTypeMapping$Outbound` instead. */ type Outbound = MetricSourceUpdateContractDtoIdTypeMapping$Outbound; } /** @internal */ export declare const MetricSourceUpdateContractDtoSourceType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const MetricSourceUpdateContractDtoSourceType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace MetricSourceUpdateContractDtoSourceType$ { /** @deprecated use `MetricSourceUpdateContractDtoSourceType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Table: "table"; readonly Query: "query"; }>; /** @deprecated use `MetricSourceUpdateContractDtoSourceType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Table: "table"; readonly Query: "query"; }>; } /** @internal */ export declare const MetricSourceUpdateContractDtoCustomFieldMapping$inboundSchema: z.ZodType; /** @internal */ export type MetricSourceUpdateContractDtoCustomFieldMapping$Outbound = { key: string; formula: string; }; /** @internal */ export declare const MetricSourceUpdateContractDtoCustomFieldMapping$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace MetricSourceUpdateContractDtoCustomFieldMapping$ { /** @deprecated use `MetricSourceUpdateContractDtoCustomFieldMapping$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `MetricSourceUpdateContractDtoCustomFieldMapping$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `MetricSourceUpdateContractDtoCustomFieldMapping$Outbound` instead. */ type Outbound = MetricSourceUpdateContractDtoCustomFieldMapping$Outbound; } /** @internal */ export declare const MetricSourceUpdateContractDto$inboundSchema: z.ZodType; /** @internal */ export type MetricSourceUpdateContractDto$Outbound = { name?: string | undefined; description?: string | undefined; tags?: Array | undefined; sql: string; timestampColumn: string; timestampAsDay?: boolean | undefined; idTypeMapping: Array; sourceType?: string | undefined; tableName?: string | undefined; customFieldMapping?: Array | undefined; }; /** @internal */ export declare const MetricSourceUpdateContractDto$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace MetricSourceUpdateContractDto$ { /** @deprecated use `MetricSourceUpdateContractDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `MetricSourceUpdateContractDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `MetricSourceUpdateContractDto$Outbound` instead. */ type Outbound = MetricSourceUpdateContractDto$Outbound; } //# sourceMappingURL=metricsourceupdatecontractdto.d.ts.map