ajustes
This commit is contained in:
parent
f6f39d2d86
commit
b8fc3ab8b6
8 changed files with 30 additions and 28 deletions
|
|
@ -28,7 +28,7 @@ export declare const zp_registrar_base_dados: z.ZodObject<{
|
||||||
}>;
|
}>;
|
||||||
export declare const zp_enviar_registros: z.ZodObject<{
|
export declare const zp_enviar_registros: z.ZodObject<{
|
||||||
tabela: z.ZodString;
|
tabela: z.ZodString;
|
||||||
registros: z.ZodArray<z.ZodObject<{
|
registros: z.ZodArray<z.ZodArray<z.ZodObject<{
|
||||||
coluna: z.ZodString;
|
coluna: z.ZodString;
|
||||||
valor: z.ZodAny;
|
valor: z.ZodAny;
|
||||||
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
||||||
|
|
@ -40,21 +40,21 @@ export declare const zp_enviar_registros: z.ZodObject<{
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}>, "many">;
|
}>, "many">, "many">;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}>;
|
}>;
|
||||||
export declare const enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {
|
export declare const enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {
|
||||||
emDesenvolvimento?: boolean | undefined | null;
|
emDesenvolvimento?: boolean | undefined | null;
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,11 @@ export const zp_registrar_base_dados = z.object({
|
||||||
//enviar registros para base de dados
|
//enviar registros para base de dados
|
||||||
export const zp_enviar_registros = z.object({
|
export const zp_enviar_registros = z.object({
|
||||||
tabela: z.string(),
|
tabela: z.string(),
|
||||||
registros: z.array(z.object({
|
registros: z.array(z.array(z.object({
|
||||||
coluna: z.string(),
|
coluna: z.string(),
|
||||||
valor: z.any(),
|
valor: z.any(),
|
||||||
tipo: z_tipo_coluna_base_dados,
|
tipo: z_tipo_coluna_base_dados,
|
||||||
})),
|
}))),
|
||||||
});
|
});
|
||||||
export const enviar_registros = ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }) => __awaiter(void 0, void 0, void 0, function* () {
|
export const enviar_registros = ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }) => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
const url = new URL(`${baseUrlPilao(emDesenvolvimento)}${PREFIXO}/${Object.keys({ enviar_registros })[0]}/${produto}/${conta}`);
|
const url = new URL(`${baseUrlPilao(emDesenvolvimento)}${PREFIXO}/${Object.keys({ enviar_registros })[0]}/${produto}/${conta}`);
|
||||||
|
|
|
||||||
10
dist-import/pilao-de-dados/index.d.ts
vendored
10
dist-import/pilao-de-dados/index.d.ts
vendored
|
|
@ -38,12 +38,12 @@ export declare const pPilao: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
};
|
};
|
||||||
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
||||||
zp_enviar_registros: import("zod").ZodObject<{
|
zp_enviar_registros: import("zod").ZodObject<{
|
||||||
tabela: import("zod").ZodString;
|
tabela: import("zod").ZodString;
|
||||||
registros: import("zod").ZodArray<import("zod").ZodObject<{
|
registros: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodObject<{
|
||||||
coluna: import("zod").ZodString;
|
coluna: import("zod").ZodString;
|
||||||
valor: import("zod").ZodAny;
|
valor: import("zod").ZodAny;
|
||||||
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
||||||
|
|
@ -55,21 +55,21 @@ export declare const pPilao: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}>, "many">;
|
}>, "many">, "many">;
|
||||||
}, "strip", import("zod").ZodTypeAny, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}>;
|
}>;
|
||||||
serie_registrar: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }: {
|
serie_registrar: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }: {
|
||||||
emDesenvolvimento?: boolean | null | undefined;
|
emDesenvolvimento?: boolean | null | undefined;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ export declare const zp_registrar_base_dados: z.ZodObject<{
|
||||||
}>;
|
}>;
|
||||||
export declare const zp_enviar_registros: z.ZodObject<{
|
export declare const zp_enviar_registros: z.ZodObject<{
|
||||||
tabela: z.ZodString;
|
tabela: z.ZodString;
|
||||||
registros: z.ZodArray<z.ZodObject<{
|
registros: z.ZodArray<z.ZodArray<z.ZodObject<{
|
||||||
coluna: z.ZodString;
|
coluna: z.ZodString;
|
||||||
valor: z.ZodAny;
|
valor: z.ZodAny;
|
||||||
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
||||||
|
|
@ -40,21 +40,21 @@ export declare const zp_enviar_registros: z.ZodObject<{
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}>, "many">;
|
}>, "many">, "many">;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}>;
|
}>;
|
||||||
export declare const enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {
|
export declare const enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {
|
||||||
emDesenvolvimento?: boolean | undefined | null;
|
emDesenvolvimento?: boolean | undefined | null;
|
||||||
|
|
|
||||||
|
|
@ -50,11 +50,11 @@ exports.zp_registrar_base_dados = zod_1.z.object({
|
||||||
//enviar registros para base de dados
|
//enviar registros para base de dados
|
||||||
exports.zp_enviar_registros = zod_1.z.object({
|
exports.zp_enviar_registros = zod_1.z.object({
|
||||||
tabela: zod_1.z.string(),
|
tabela: zod_1.z.string(),
|
||||||
registros: zod_1.z.array(zod_1.z.object({
|
registros: zod_1.z.array(zod_1.z.array(zod_1.z.object({
|
||||||
coluna: zod_1.z.string(),
|
coluna: zod_1.z.string(),
|
||||||
valor: zod_1.z.any(),
|
valor: zod_1.z.any(),
|
||||||
tipo: _variaveis_1.z_tipo_coluna_base_dados,
|
tipo: _variaveis_1.z_tipo_coluna_base_dados,
|
||||||
})),
|
}))),
|
||||||
});
|
});
|
||||||
var enviar_registros = function (_a) {
|
var enviar_registros = function (_a) {
|
||||||
var emDesenvolvimento = _a.emDesenvolvimento, _b = _a.cliente, conta = _b.conta, produto = _b.produto, _c = _a.parametros, registros = _c.registros, tabela = _c.tabela;
|
var emDesenvolvimento = _a.emDesenvolvimento, _b = _a.cliente, conta = _b.conta, produto = _b.produto, _c = _a.parametros, registros = _c.registros, tabela = _c.tabela;
|
||||||
|
|
|
||||||
10
dist-require/pilao-de-dados/index.d.ts
vendored
10
dist-require/pilao-de-dados/index.d.ts
vendored
|
|
@ -38,12 +38,12 @@ export declare const pPilao: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
};
|
};
|
||||||
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
||||||
zp_enviar_registros: import("zod").ZodObject<{
|
zp_enviar_registros: import("zod").ZodObject<{
|
||||||
tabela: import("zod").ZodString;
|
tabela: import("zod").ZodString;
|
||||||
registros: import("zod").ZodArray<import("zod").ZodObject<{
|
registros: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodObject<{
|
||||||
coluna: import("zod").ZodString;
|
coluna: import("zod").ZodString;
|
||||||
valor: import("zod").ZodAny;
|
valor: import("zod").ZodAny;
|
||||||
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
||||||
|
|
@ -55,21 +55,21 @@ export declare const pPilao: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}>, "many">;
|
}>, "many">, "many">;
|
||||||
}, "strip", import("zod").ZodTypeAny, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: {
|
registros: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
valor?: any;
|
valor?: any;
|
||||||
}[];
|
}[][];
|
||||||
}>;
|
}>;
|
||||||
serie_registrar: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }: {
|
serie_registrar: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }: {
|
||||||
emDesenvolvimento?: boolean | null | undefined;
|
emDesenvolvimento?: boolean | null | undefined;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.67.0",
|
"version": "0.68.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,13 @@ export const zp_registrar_base_dados = z.object({
|
||||||
export const zp_enviar_registros = z.object({
|
export const zp_enviar_registros = z.object({
|
||||||
tabela: z.string(),
|
tabela: z.string(),
|
||||||
registros: z.array(
|
registros: z.array(
|
||||||
z.object({
|
z.array(
|
||||||
coluna: z.string(),
|
z.object({
|
||||||
valor: z.any(),
|
coluna: z.string(),
|
||||||
tipo: z_tipo_coluna_base_dados,
|
valor: z.any(),
|
||||||
}),
|
tipo: z_tipo_coluna_base_dados,
|
||||||
|
}),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue