.
This commit is contained in:
parent
b799294b0e
commit
1a2cd2ce56
8 changed files with 28 additions and 28 deletions
12
dist-import/pilao-de-dados/index.d.ts
vendored
12
dist-import/pilao-de-dados/index.d.ts
vendored
|
|
@ -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 }, }: {
|
||||
|
|
|
|||
|
|
@ -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 }, }: {
|
||||
|
|
|
|||
|
|
@ -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* () {
|
||||
|
|
|
|||
12
dist-require/pilao-de-dados/index.d.ts
vendored
12
dist-require/pilao-de-dados/index.d.ts
vendored
|
|
@ -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 }, }: {
|
||||
|
|
|
|||
|
|
@ -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 }, }: {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ exports.zp_registrar_base_dados = zod_1.z.object({
|
|||
tabela: zod_1.z.string(),
|
||||
colunas: zod_1.z.array(zod_1.z.object({
|
||||
coluna: zod_1.z.string(),
|
||||
tipo: _variaveis_1.tiposSeriesAgregacoes,
|
||||
tipo: _variaveis_1.tiposColunasBasedados,
|
||||
})),
|
||||
});
|
||||
var registrar_base_dados = function (_a) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-drives",
|
||||
"version": "0.60.0",
|
||||
"version": "0.61.0",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { respostaComuns } from "p-respostas"
|
|||
import { z } from "zod"
|
||||
import {
|
||||
PREFIXO,
|
||||
tiposSeriesAgregacoes,
|
||||
tiposColunasBasedados,
|
||||
type zp_produto_conta,
|
||||
} from "./_variaveis"
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ export const zp_registrar_base_dados = z.object({
|
|||
colunas: z.array(
|
||||
z.object({
|
||||
coluna: z.string(),
|
||||
tipo: tiposSeriesAgregacoes,
|
||||
tipo: tiposColunasBasedados,
|
||||
}),
|
||||
),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue