drivers/dist-import/pilao-de-dados/visoes/index.d.ts
2024-07-10 14:57:02 -03:00

260 lines
8.9 KiB
TypeScript

import { z } from "zod";
declare const z_tipos_campos: z.ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros", "ordem"]>;
export declare const z_contagem_em_barra_vertical: z.ZodObject<{
tabela: z.ZodString;
colanuEixoX: z.ZodString;
colunaAgrupamento: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
filtros: z.ZodOptional<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
valor: z.ZodAny;
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
}, "strip", z.ZodTypeAny, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}>, "many">>;
descricao_pelo_usuario: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tabela: string;
colanuEixoX: string;
colunaAgrupamento?: string[] | undefined;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}, {
tabela: string;
colanuEixoX: string;
colunaAgrupamento?: string[] | undefined;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}>;
export declare const z_contagem_em_pizza: z.ZodObject<{
tabela: z.ZodString;
classes: z.ZodString;
filtros: z.ZodOptional<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
valor: z.ZodAny;
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
}, "strip", z.ZodTypeAny, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}>, "many">>;
descricao_pelo_usuario: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tabela: string;
classes: string;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}, {
tabela: string;
classes: string;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}>;
export declare const z_tabela: z.ZodObject<{
tabela: z.ZodString;
colunas: z.ZodArray<z.ZodString, "many">;
coluna_ordem: z.ZodOptional<z.ZodString>;
direcao_ordem: z.ZodOptional<z.ZodEnum<["asc", "desc", "1", "-1"]>>;
filtros: z.ZodOptional<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
valor: z.ZodAny;
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
}, "strip", z.ZodTypeAny, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}>, "many">>;
descricao_pelo_usuario: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tabela: string;
colunas: string[];
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
coluna_ordem?: string | undefined;
direcao_ordem?: "1" | "asc" | "desc" | "-1" | undefined;
}, {
tabela: string;
colunas: string[];
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
coluna_ordem?: string | undefined;
direcao_ordem?: "1" | "asc" | "desc" | "-1" | undefined;
}>;
export declare const visoes: {
z_contagem_em_barra_vertical: z.ZodObject<{
tabela: z.ZodString;
colanuEixoX: z.ZodString;
colunaAgrupamento: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
filtros: z.ZodOptional<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
valor: z.ZodAny;
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
}, "strip", z.ZodTypeAny, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}>, "many">>;
descricao_pelo_usuario: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tabela: string;
colanuEixoX: string;
colunaAgrupamento?: string[] | undefined;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}, {
tabela: string;
colanuEixoX: string;
colunaAgrupamento?: string[] | undefined;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}>;
z_contagem_em_pizza: z.ZodObject<{
tabela: z.ZodString;
classes: z.ZodString;
filtros: z.ZodOptional<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
valor: z.ZodAny;
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
}, "strip", z.ZodTypeAny, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}>, "many">>;
descricao_pelo_usuario: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tabela: string;
classes: string;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}, {
tabela: string;
classes: string;
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
}>;
z_tabela: z.ZodObject<{
tabela: z.ZodString;
colunas: z.ZodArray<z.ZodString, "many">;
coluna_ordem: z.ZodOptional<z.ZodString>;
direcao_ordem: z.ZodOptional<z.ZodEnum<["asc", "desc", "1", "-1"]>>;
filtros: z.ZodOptional<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
valor: z.ZodAny;
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
}, "strip", z.ZodTypeAny, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}, {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}>, "many">>;
descricao_pelo_usuario: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tabela: string;
colunas: string[];
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
coluna_ordem?: string | undefined;
direcao_ordem?: "1" | "asc" | "desc" | "-1" | undefined;
}, {
tabela: string;
colunas: string[];
filtros?: {
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
valor?: any;
}[] | undefined;
descricao_pelo_usuario?: string | undefined;
coluna_ordem?: string | undefined;
direcao_ordem?: "1" | "asc" | "desc" | "-1" | undefined;
}>;
};
/** Cria a estrutura de campos para insersão de dados */
export declare const extruturas_de_campos: {
[z in keyof typeof visoes]: {
/** Nome da Visão */
visao: z;
/** Rotulo */
rotulo: string;
/** Retorna a tabela Referente ao Registro */
tabela: (_: z.infer<(typeof visoes)[z]>) => string;
/** Descrição */
descricao: (_: z.infer<(typeof visoes)[z]>) => string;
/** Lista os campos e suas configurações */
campos: {
[c in keyof Required<z.infer<(typeof visoes)[z]>>]: {
rotulo: string;
tipo_campo: z.infer<typeof z_tipos_campos>;
order: number;
};
};
};
};
export {};