This commit is contained in:
Luiz H. R. Silva 2024-06-14 15:00:06 -03:00
parent b799294b0e
commit 1a2cd2ce56
8 changed files with 28 additions and 28 deletions

View file

@ -11,7 +11,7 @@ export declare const pPilao: {
tabela: string;
colunas: {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}[];
};
}) => Promise<import("p-respostas").tipoResposta<true>>;
@ -19,25 +19,25 @@ export declare const pPilao: {
tabela: import("zod").ZodString;
colunas: import("zod").ZodArray<import("zod").ZodObject<{
coluna: import("zod").ZodString;
tipo: import("zod").ZodEnum<["contagem", "somatoria"]>;
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
}, "strip", import("zod").ZodTypeAny, {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}, {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}>, "many">;
}, "strip", import("zod").ZodTypeAny, {
tabela: string;
colunas: {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}[];
}, {
tabela: string;
colunas: {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}[];
}>;
enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {

View file

@ -6,25 +6,25 @@ export declare const zp_registrar_base_dados: z.ZodObject<{
tabela: z.ZodString;
colunas: z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
tipo: z.ZodEnum<["contagem", "somatoria"]>;
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
}, "strip", z.ZodTypeAny, {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}, {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}>, "many">;
}, "strip", z.ZodTypeAny, {
tabela: string;
colunas: {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}[];
}, {
tabela: string;
colunas: {
coluna: string;
tipo: "contagem" | "somatoria";
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
}[];
}>;
export declare const registrar_base_dados: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { colunas, tabela }, }: {

View file

@ -9,13 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
import { respostaComuns } from "p-respostas";
import { z } from "zod";
import { PREFIXO, tiposSeriesAgregacoes, } from "./_variaveis";
import { PREFIXO, tiposColunasBasedados, } from "./_variaveis";
/** Faz o registro de uma nova base de dados configurado a estrutura de colunas */
export const zp_registrar_base_dados = z.object({
tabela: z.string(),
colunas: z.array(z.object({
coluna: z.string(),
tipo: tiposSeriesAgregacoes,
tipo: tiposColunasBasedados,
})),
});
export const registrar_base_dados = ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { colunas, tabela }, }) => __awaiter(void 0, void 0, void 0, function* () {