.
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;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
};
|
};
|
||||||
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
||||||
|
|
@ -19,25 +19,25 @@ export declare const pPilao: {
|
||||||
tabela: import("zod").ZodString;
|
tabela: import("zod").ZodString;
|
||||||
colunas: import("zod").ZodArray<import("zod").ZodObject<{
|
colunas: import("zod").ZodArray<import("zod").ZodObject<{
|
||||||
coluna: import("zod").ZodString;
|
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, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}, {
|
}, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}>, "many">;
|
}>, "many">;
|
||||||
}, "strip", import("zod").ZodTypeAny, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
}>;
|
}>;
|
||||||
enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {
|
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;
|
tabela: z.ZodString;
|
||||||
colunas: z.ZodArray<z.ZodObject<{
|
colunas: z.ZodArray<z.ZodObject<{
|
||||||
coluna: z.ZodString;
|
coluna: z.ZodString;
|
||||||
tipo: z.ZodEnum<["contagem", "somatoria"]>;
|
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}, {
|
}, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}>, "many">;
|
}>, "many">;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
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 }, }: {
|
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 { respostaComuns } from "p-respostas";
|
||||||
import { z } from "zod";
|
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 */
|
/** Faz o registro de uma nova base de dados configurado a estrutura de colunas */
|
||||||
export const zp_registrar_base_dados = z.object({
|
export const zp_registrar_base_dados = z.object({
|
||||||
tabela: z.string(),
|
tabela: z.string(),
|
||||||
colunas: z.array(z.object({
|
colunas: z.array(z.object({
|
||||||
coluna: z.string(),
|
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* () {
|
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;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
};
|
};
|
||||||
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
||||||
|
|
@ -19,25 +19,25 @@ export declare const pPilao: {
|
||||||
tabela: import("zod").ZodString;
|
tabela: import("zod").ZodString;
|
||||||
colunas: import("zod").ZodArray<import("zod").ZodObject<{
|
colunas: import("zod").ZodArray<import("zod").ZodObject<{
|
||||||
coluna: import("zod").ZodString;
|
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, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}, {
|
}, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}>, "many">;
|
}>, "many">;
|
||||||
}, "strip", import("zod").ZodTypeAny, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
}>;
|
}>;
|
||||||
enviar_registros: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { registros, tabela }, }: {
|
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;
|
tabela: z.ZodString;
|
||||||
colunas: z.ZodArray<z.ZodObject<{
|
colunas: z.ZodArray<z.ZodObject<{
|
||||||
coluna: z.ZodString;
|
coluna: z.ZodString;
|
||||||
tipo: z.ZodEnum<["contagem", "somatoria"]>;
|
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero"]>;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}, {
|
}, {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}>, "many">;
|
}>, "many">;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
coluna: string;
|
||||||
tipo: "contagem" | "somatoria";
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero";
|
||||||
}[];
|
}[];
|
||||||
}, {
|
}, {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
colunas: {
|
colunas: {
|
||||||
coluna: string;
|
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 }, }: {
|
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(),
|
tabela: zod_1.z.string(),
|
||||||
colunas: zod_1.z.array(zod_1.z.object({
|
colunas: zod_1.z.array(zod_1.z.object({
|
||||||
coluna: zod_1.z.string(),
|
coluna: zod_1.z.string(),
|
||||||
tipo: _variaveis_1.tiposSeriesAgregacoes,
|
tipo: _variaveis_1.tiposColunasBasedados,
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
var registrar_base_dados = function (_a) {
|
var registrar_base_dados = function (_a) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.60.0",
|
"version": "0.61.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { respostaComuns } from "p-respostas"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
import {
|
import {
|
||||||
PREFIXO,
|
PREFIXO,
|
||||||
tiposSeriesAgregacoes,
|
tiposColunasBasedados,
|
||||||
type zp_produto_conta,
|
type zp_produto_conta,
|
||||||
} from "./_variaveis"
|
} from "./_variaveis"
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@ export const zp_registrar_base_dados = z.object({
|
||||||
colunas: z.array(
|
colunas: z.array(
|
||||||
z.object({
|
z.object({
|
||||||
coluna: z.string(),
|
coluna: z.string(),
|
||||||
tipo: tiposSeriesAgregacoes,
|
tipo: tiposColunasBasedados,
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue