This commit is contained in:
Luiz H. R. Silva 2024-06-18 14:41:01 -03:00
parent b8fc3ab8b6
commit a2553130f4
8 changed files with 58 additions and 82 deletions

View file

@ -28,33 +28,28 @@ export declare const zp_registrar_base_dados: z.ZodObject<{
}>;
export declare const zp_enviar_registros: z.ZodObject<{
tabela: z.ZodString;
registros: z.ZodArray<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
registros: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
valor: z.ZodAny;
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
tipo: z.ZodNullable<z.ZodOptional<z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>>>;
}, "strip", z.ZodTypeAny, {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
valor?: any;
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}, {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
valor?: any;
}>, "many">, "many">;
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}>>, "many">;
}, "strip", z.ZodTypeAny, {
tabela: string;
registros: {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
registros: Record<string, {
valor?: any;
}[][];
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}>[];
}, {
tabela: string;
registros: {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
registros: Record<string, {
valor?: any;
}[][];
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}>[];
}>;
export declare const enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {
emDesenvolvimento?: boolean | undefined | null;

View file

@ -50,10 +50,9 @@ exports.zp_registrar_base_dados = zod_1.z.object({
//enviar registros para base de dados
exports.zp_enviar_registros = zod_1.z.object({
tabela: zod_1.z.string(),
registros: zod_1.z.array(zod_1.z.array(zod_1.z.object({
coluna: zod_1.z.string(),
registros: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.object({
valor: zod_1.z.any(),
tipo: _variaveis_1.z_tipo_coluna_base_dados,
tipo: _variaveis_1.z_tipo_coluna_base_dados.optional().nullable(),
}))),
});
var enviar_registros = function (_a) {

View file

@ -34,42 +34,36 @@ export declare const pPilao: {
};
parametros: {
tabela: string;
registros: {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
registros: Record<string, {
valor?: any;
}[][];
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}>[];
};
}) => Promise<import("p-respostas").tipoResposta<true>>;
zp_enviar_registros: import("zod").ZodObject<{
tabela: import("zod").ZodString;
registros: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodObject<{
coluna: import("zod").ZodString;
registros: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
valor: import("zod").ZodAny;
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
tipo: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>>>;
}, "strip", import("zod").ZodTypeAny, {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
valor?: any;
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}, {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
valor?: any;
}>, "many">, "many">;
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}>>, "many">;
}, "strip", import("zod").ZodTypeAny, {
tabela: string;
registros: {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
registros: Record<string, {
valor?: any;
}[][];
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}>[];
}, {
tabela: string;
registros: {
coluna: string;
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
registros: Record<string, {
valor?: any;
}[][];
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | null | undefined;
}>[];
}>;
serie_registrar: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }: {
emDesenvolvimento?: boolean | null | undefined;