485 lines
21 KiB
TypeScript
485 lines
21 KiB
TypeScript
import { zp_deletar_registros } from "./_deletar_registros";
|
|
export { PREFIXO_PILAO, urlPilao } from "./variaveis";
|
|
import { zp_enviar_registros } from "./_enviar_registros";
|
|
import { zp_produto_conta } from "./variaveis";
|
|
import { visoes } from "./visoes";
|
|
export declare const pPilao: {
|
|
extruturas_de_campos: {
|
|
z_contagem_em_barra_vertical: {
|
|
visao: "z_contagem_em_barra_vertical";
|
|
rotulo: string;
|
|
tabela: (_: {
|
|
tabela: string;
|
|
colanuEixoX: string;
|
|
colunaAgrupamento?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}) => string;
|
|
descricao: (_: {
|
|
tabela: string;
|
|
colanuEixoX: string;
|
|
colunaAgrupamento?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}) => string;
|
|
campos: {
|
|
tabela: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
};
|
|
colanuEixoX: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
};
|
|
colunaAgrupamento?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
filtros?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
descricao_pelo_usuario?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
};
|
|
};
|
|
z_contagem_em_pizza: {
|
|
visao: "z_contagem_em_pizza";
|
|
rotulo: string;
|
|
tabela: (_: {
|
|
tabela: string;
|
|
classes: string;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}) => string;
|
|
descricao: (_: {
|
|
tabela: string;
|
|
classes: string;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}) => string;
|
|
campos: {
|
|
tabela: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
};
|
|
classes: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
};
|
|
filtros?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
descricao_pelo_usuario?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
};
|
|
};
|
|
z_tabela: {
|
|
visao: "z_tabela";
|
|
rotulo: string;
|
|
tabela: (_: {
|
|
tabela: string;
|
|
colunas?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}) => string;
|
|
descricao: (_: {
|
|
tabela: string;
|
|
colunas?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}) => string;
|
|
campos: {
|
|
tabela: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
};
|
|
colunas?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
filtros?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
descricao_pelo_usuario?: {
|
|
rotulo: string;
|
|
tipo_campo: import("zod").TypeOf<import("zod").ZodEnum<["tabela", "coluna", "texto", "lista_colunas", "lista_filtros"]>>;
|
|
order: number;
|
|
} | undefined;
|
|
};
|
|
};
|
|
};
|
|
z_contagem_em_barra_vertical: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
colanuEixoX: import("zod").ZodString;
|
|
colunaAgrupamento: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
filtros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodAny;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>, "many">>;
|
|
descricao_pelo_usuario: import("zod").ZodOptional<import("zod").ZodString>;
|
|
}, "strip", import("zod").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: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
classes: import("zod").ZodString;
|
|
filtros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodAny;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>, "many">>;
|
|
descricao_pelo_usuario: import("zod").ZodOptional<import("zod").ZodString>;
|
|
}, "strip", import("zod").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: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
colunas: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
filtros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodAny;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>, "many">>;
|
|
descricao_pelo_usuario: import("zod").ZodOptional<import("zod").ZodString>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
colunas?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}, {
|
|
tabela: string;
|
|
colunas?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}>;
|
|
zp_registrar_base_dados: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
colunas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero", "data", "mes"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}>, "many">;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}[];
|
|
}, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}[];
|
|
}>;
|
|
enviar_registros: ({ conta, produto, emDesenvolvimento }: import("zod").TypeOf<typeof zp_produto_conta>) => ({ registros, tabela, }: import("zod").TypeOf<typeof zp_enviar_registros>) => Promise<import("p-respostas").tipoResposta<true>>;
|
|
zp_enviar_registros: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
registros: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
valor: import("zod").ZodAny;
|
|
tipo: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero", "data", "mes"]>>>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}>>, "many">;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
registros: Record<string, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}>[];
|
|
}, {
|
|
tabela: string;
|
|
registros: Record<string, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}>[];
|
|
}>;
|
|
serie_consultar: (cliente: import("zod").TypeOf<typeof zp_produto_conta>) => <T extends keyof typeof visoes>(tipoVisao: T, parametros: import("zod").TypeOf<(typeof visoes)[T]>) => {
|
|
dados: () => Promise<import("p-respostas").tipoResposta<{
|
|
registros: any[];
|
|
legenda: string;
|
|
serie: import("zod").TypeOf<(typeof visoes)[T]>;
|
|
}>>;
|
|
url: () => string;
|
|
};
|
|
zp_produto_conta: import("zod").ZodObject<{
|
|
produto: import("zod").ZodString;
|
|
conta: import("zod").ZodString;
|
|
emDesenvolvimento: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
conta: string;
|
|
produto: string;
|
|
emDesenvolvimento?: boolean | undefined;
|
|
}, {
|
|
conta: string;
|
|
produto: string;
|
|
emDesenvolvimento?: boolean | undefined;
|
|
}>;
|
|
validarZ: <T>(zodType: import("zod").ZodType<T, any>, objeto: any, mensagem: string) => import("p-respostas").tipoRespostaErro | import("p-respostas").tipoRespostaSucesso<T>;
|
|
deletar_registros: ({ conta, produto, emDesenvolvimento }: import("zod").TypeOf<typeof zp_produto_conta>) => ({ codigos, tabela, }: import("zod").TypeOf<typeof zp_deletar_registros>) => Promise<import("p-respostas").tipoResposta<true>>;
|
|
zp_deletar_registros: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
codigos: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
codigos: string[];
|
|
}, {
|
|
tabela: string;
|
|
codigos: string[];
|
|
}>;
|
|
operadores_pilao: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
operadores_permitidos_por_tipo: {
|
|
texto: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
numero: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
confirmacao: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
lista_texto: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
lista_numero: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
data: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
mes: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
};
|
|
z_filtro: import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodAny;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>;
|
|
visoes: {
|
|
z_contagem_em_barra_vertical: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
colanuEixoX: import("zod").ZodString;
|
|
colunaAgrupamento: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
filtros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodAny;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>, "many">>;
|
|
descricao_pelo_usuario: import("zod").ZodOptional<import("zod").ZodString>;
|
|
}, "strip", import("zod").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: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
classes: import("zod").ZodString;
|
|
filtros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodAny;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>, "many">>;
|
|
descricao_pelo_usuario: import("zod").ZodOptional<import("zod").ZodString>;
|
|
}, "strip", import("zod").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: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
colunas: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
filtros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodAny;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>, "many">>;
|
|
descricao_pelo_usuario: import("zod").ZodOptional<import("zod").ZodString>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
colunas?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}, {
|
|
tabela: string;
|
|
colunas?: string[] | undefined;
|
|
filtros?: {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}[] | undefined;
|
|
descricao_pelo_usuario?: string | undefined;
|
|
}>;
|
|
};
|
|
};
|