36 lines
1.4 KiB
TypeScript
36 lines
1.4 KiB
TypeScript
import type { tipoResposta } from "p-respostas";
|
|
import { z } from "zod";
|
|
import { type zp_produto_conta } from "./_variaveis";
|
|
/** Faz o registro de uma nova base de dados configurado a estrutura de colunas */
|
|
export declare const zp_registrar_base_dados: z.ZodObject<{
|
|
tabela: z.ZodString;
|
|
colunas: z.ZodArray<z.ZodObject<{
|
|
coluna: z.ZodString;
|
|
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
|
}, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
|
}>, "many">;
|
|
}, "strip", z.ZodTypeAny, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
|
}[];
|
|
}, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
|
}[];
|
|
}>;
|
|
export declare const registrar_base_dados: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { colunas, tabela }, }: {
|
|
emDesenvolvimento?: boolean | undefined | null;
|
|
/** Identificação do cliente */
|
|
cliente: z.infer<typeof zp_produto_conta>;
|
|
/** parametros da função */
|
|
parametros: z.infer<typeof zp_registrar_base_dados>;
|
|
}) => Promise<tipoResposta<true>>;
|