This commit is contained in:
Luiz H. R. Silva 2024-06-14 14:56:17 -03:00
parent d8a5a12387
commit b799294b0e
24 changed files with 90 additions and 70 deletions

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, tiposColunas } from "./_variaveis";
import { PREFIXO, tiposSeriesAgregacoes, } 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: tiposColunas,
tipo: tiposSeriesAgregacoes,
})),
});
export const registrar_base_dados = ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { colunas, tabela }, }) => __awaiter(void 0, void 0, void 0, function* () {