import { z } from 'zod'; import { DimensionType, TimeLevelType } from '../../models'; import { Semantics } from '../../annotations'; /** * Schema for hierarchy, which is used in dimension */ export declare const HierarchySchema: z.ZodObject<{ name: z.ZodString; caption: z.ZodString; tables: z.ZodArray, "many">; primaryKey: z.ZodString; hasAll: z.ZodBoolean; levels: z.ZodArray>>; levelType: z.ZodNullable>>; semantics: z.ZodNullable>>; formatter: z.ZodNullable>; }, "strip", z.ZodTypeAny, { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }, { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }>>>; captionColumn: z.ZodNullable>; parentColumn: z.ZodNullable>; ordinalColumn: z.ZodNullable>; uniqueMembers: z.ZodNullable>; nullParentValue: z.ZodNullable>; properties: z.ZodNullable>; description: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; column?: string; description?: string; }, { name?: string; caption?: string; column?: string; description?: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }, { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }, { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }>; /** * Schema for shared dimension, which is used in cube */ export declare const SharedDimensionSchema: z.ZodObject<{ name: z.ZodString; caption: z.ZodString; description: z.ZodNullable>; type: z.ZodNullable>>; hierarchies: z.ZodArray, "many">; primaryKey: z.ZodString; hasAll: z.ZodBoolean; levels: z.ZodArray>>; levelType: z.ZodNullable>>; semantics: z.ZodNullable>>; formatter: z.ZodNullable>; }, "strip", z.ZodTypeAny, { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }, { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }>>>; captionColumn: z.ZodNullable>; parentColumn: z.ZodNullable>; ordinalColumn: z.ZodNullable>; uniqueMembers: z.ZodNullable>; nullParentValue: z.ZodNullable>; properties: z.ZodNullable>; description: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; column?: string; description?: string; }, { name?: string; caption?: string; column?: string; description?: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }, { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }, { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }>, "many">; __id__: z.ZodNullable>; }, "strip", z.ZodTypeAny, { type?: DimensionType.StandardDimension | DimensionType.TimeDimension; name?: string; caption?: string; description?: string; __id__?: string; hierarchies?: { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }[]; }, { type?: DimensionType.StandardDimension | DimensionType.TimeDimension; name?: string; caption?: string; description?: string; __id__?: string; hierarchies?: { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }[]; }>; export declare const CubeMeasureSchema: z.ZodObject<{ name: z.ZodString; caption: z.ZodString; column: z.ZodString; aggregator: z.ZodNullable>>; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; column?: string; aggregator?: "sum" | "avg" | "count" | "max" | "min" | "distinct-count"; }, { name?: string; caption?: string; column?: string; aggregator?: "sum" | "avg" | "count" | "max" | "min" | "distinct-count"; }>; /** * Cube schema for defining a cube structure */ export declare const BaseCubeSchema: { name: z.ZodString; caption: z.ZodNullable>; description: z.ZodNullable>; fact: z.ZodNullable>>; defaultMeasure: z.ZodNullable>; measures: z.ZodNullable>>; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; column?: string; aggregator?: "sum" | "avg" | "count" | "max" | "min" | "distinct-count"; }, { name?: string; caption?: string; column?: string; aggregator?: "sum" | "avg" | "count" | "max" | "min" | "distinct-count"; }>, "many">>>; dimensions: z.ZodNullable>; hierarchies: z.ZodArray, "many">>; primaryKey: z.ZodNullable>; name: z.ZodString; caption: z.ZodString; hasAll: z.ZodBoolean; levels: z.ZodArray>>; levelType: z.ZodNullable>>; semantics: z.ZodNullable>>; formatter: z.ZodNullable>; }, "strip", z.ZodTypeAny, { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }, { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }>>>; captionColumn: z.ZodNullable>; parentColumn: z.ZodNullable>; ordinalColumn: z.ZodNullable>; uniqueMembers: z.ZodNullable>; nullParentValue: z.ZodNullable>; properties: z.ZodNullable>; description: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; column?: string; description?: string; }, { name?: string; caption?: string; column?: string; description?: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }, { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }, { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }>, "many">; name: z.ZodString; caption: z.ZodString; description: z.ZodNullable>; type: z.ZodNullable>>; }, "strip", z.ZodTypeAny, { type?: DimensionType.StandardDimension | DimensionType.TimeDimension; name?: string; caption?: string; description?: string; hierarchies?: { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }[]; foreignKey?: string; }, { type?: DimensionType.StandardDimension | DimensionType.TimeDimension; name?: string; caption?: string; description?: string; hierarchies?: { name?: string; caption?: string; tables?: { name?: string; }[]; primaryKey?: string; hasAll?: boolean; levels?: { type?: "String" | "Integer" | "Numeric" | "Boolean" | "Date"; name?: string; caption?: string; column?: string; levelType?: TimeLevelType; semantics?: { semantic?: (typeof Semantics)["Calendar.Year"] | (typeof Semantics)["Calendar.Quarter"] | (typeof Semantics)["Calendar.Month"] | (typeof Semantics)["Calendar.Week"] | (typeof Semantics)["Calendar.Day"]; formatter?: string; }; captionColumn?: string; parentColumn?: string; ordinalColumn?: string; uniqueMembers?: boolean; nullParentValue?: string; properties?: { name?: string; caption?: string; column?: string; description?: string; }[]; }[]; }[]; foreignKey?: string; }>, "many">>>; dimensionUsages: z.ZodNullable>; source: z.ZodString; foreignKey: z.ZodString; description: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name?: string; caption?: string; description?: string; foreignKey?: string; source?: string; }, { name?: string; caption?: string; description?: string; foreignKey?: string; source?: string; }>, "many">>>; }; /** * Query schema for querying a cube use statement */ export declare const QueryCubeSchema: z.ZodObject<{ statement: z.ZodString; }, "strip", z.ZodTypeAny, { statement?: string; }, { statement?: string; }>;