.
This commit is contained in:
parent
1a2cd2ce56
commit
a435b0c6ae
17 changed files with 124 additions and 227 deletions
8
dist-require/pilao-de-dados/index.d.ts
vendored
8
dist-require/pilao-de-dados/index.d.ts
vendored
|
|
@ -61,7 +61,7 @@ export declare const pPilao: {
|
|||
tabela: string;
|
||||
registros: any[];
|
||||
}>;
|
||||
registrar_serie: ({ 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;
|
||||
cliente: {
|
||||
produto: string;
|
||||
|
|
@ -75,7 +75,7 @@ export declare const pPilao: {
|
|||
agregacao: "contagem" | "somatoria";
|
||||
};
|
||||
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
||||
zp_registrar_serie: import("zod").ZodObject<{
|
||||
zp_serie_registrar: import("zod").ZodObject<{
|
||||
tabela: import("zod").ZodString;
|
||||
identificador: import("zod").ZodString;
|
||||
colanuEixoX: import("zod").ZodString;
|
||||
|
|
@ -94,7 +94,7 @@ export declare const pPilao: {
|
|||
colunaAgrupamento: string;
|
||||
agregacao: "contagem" | "somatoria";
|
||||
}>;
|
||||
consultar_serie: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
||||
serie_consultar: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
||||
emDesenvolvimento?: boolean | null | undefined;
|
||||
cliente: {
|
||||
produto: string;
|
||||
|
|
@ -117,7 +117,7 @@ export declare const pPilao: {
|
|||
}>>;
|
||||
url: () => string;
|
||||
};
|
||||
zp_consultar_serie: import("zod").ZodObject<{
|
||||
zp_serie_consultar: import("zod").ZodObject<{
|
||||
identificador: import("zod").ZodString;
|
||||
}, "strip", import("zod").ZodTypeAny, {
|
||||
identificador: string;
|
||||
|
|
|
|||
|
|
@ -3,19 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.pPilao = exports.tiposSeriesAgregacoes = void 0;
|
||||
var _variaveis_1 = require("./_variaveis");
|
||||
Object.defineProperty(exports, "tiposSeriesAgregacoes", { enumerable: true, get: function () { return _variaveis_1.tiposSeriesAgregacoes; } });
|
||||
var consultar_serie_1 = require("./consultar_serie");
|
||||
var enviar_registros_1 = require("./enviar_registros");
|
||||
var registrar_base_dados_1 = require("./registrar_base_dados");
|
||||
var registrar_serie_1 = require("./registrar_serie");
|
||||
var serie_consultar_1 = require("./serie_consultar");
|
||||
var serie_registrar_1 = require("./serie_registrar");
|
||||
exports.pPilao = {
|
||||
registrar_base_dados: registrar_base_dados_1.registrar_base_dados,
|
||||
zp_registrar_base_dados: registrar_base_dados_1.zp_registrar_base_dados,
|
||||
enviar_registros: enviar_registros_1.enviar_registros,
|
||||
zp_enviar_registros: enviar_registros_1.zp_enviar_registros,
|
||||
registrar_serie: registrar_serie_1.registrar_serie,
|
||||
zp_registrar_serie: registrar_serie_1.zp_registrar_serie,
|
||||
consultar_serie: consultar_serie_1.consultar_serie,
|
||||
zp_consultar_serie: consultar_serie_1.zp_consultar_serie,
|
||||
serie_registrar: serie_registrar_1.serie_registrar,
|
||||
zp_serie_registrar: serie_registrar_1.zp_serie_registrar,
|
||||
serie_consultar: serie_consultar_1.serie_consultar,
|
||||
zp_serie_consultar: serie_consultar_1.zp_serie_consultar,
|
||||
zp_produto_conta: _variaveis_1.zp_produto_conta,
|
||||
validarZ: _variaveis_1.validarZ,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
import type { tipoResposta } from "p-respostas";
|
||||
import { z } from "zod";
|
||||
import { type zp_produto_conta } from "./_variaveis";
|
||||
import type { zp_registrar_serie } from "./registrar_serie";
|
||||
export declare const zp_consultar_serie: z.ZodObject<{
|
||||
import type { zp_serie_registrar } from "./serie_registrar";
|
||||
export declare const zp_serie_consultar: z.ZodObject<{
|
||||
identificador: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
identificador: string;
|
||||
}, {
|
||||
identificador: string;
|
||||
}>;
|
||||
export declare const consultar_serie: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
||||
export declare const serie_consultar: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
||||
emDesenvolvimento?: boolean | undefined | null;
|
||||
/** Identificação do cliente */
|
||||
cliente: z.infer<typeof zp_produto_conta>;
|
||||
parametros: z.infer<typeof zp_consultar_serie>;
|
||||
parametros: z.infer<typeof zp_serie_consultar>;
|
||||
}) => {
|
||||
dados: () => Promise<tipoResposta<{
|
||||
registros: any[];
|
||||
legenda: string;
|
||||
serie: z.infer<typeof zp_registrar_serie>;
|
||||
serie: z.infer<typeof zp_serie_registrar>;
|
||||
}>>;
|
||||
url: () => string;
|
||||
};
|
||||
|
|
@ -36,15 +36,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|||
}
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.consultar_serie = exports.zp_consultar_serie = void 0;
|
||||
exports.serie_consultar = exports.zp_serie_consultar = void 0;
|
||||
var p_respostas_1 = require("p-respostas");
|
||||
var zod_1 = require("zod");
|
||||
var _variaveis_1 = require("./_variaveis");
|
||||
//consultar compilação
|
||||
exports.zp_consultar_serie = zod_1.z.object({
|
||||
exports.zp_serie_consultar = zod_1.z.object({
|
||||
identificador: zod_1.z.string(),
|
||||
});
|
||||
var consultar_serie = function (_a) {
|
||||
var serie_consultar = function (_a) {
|
||||
var emDesenvolvimento = _a.emDesenvolvimento, identificador = _a.parametros.identificador, _b = _a.cliente, conta = _b.conta, produto = _b.produto;
|
||||
var dados = function () { return __awaiter(void 0, void 0, void 0, function () {
|
||||
var url, resp;
|
||||
|
|
@ -86,4 +86,4 @@ var consultar_serie = function (_a) {
|
|||
url: url,
|
||||
};
|
||||
};
|
||||
exports.consultar_serie = consultar_serie;
|
||||
exports.serie_consultar = serie_consultar;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { type tipoResposta } from "p-respostas";
|
||||
import { z } from "zod";
|
||||
import { type zp_produto_conta } from "./_variaveis";
|
||||
export declare const zp_registrar_serie: z.ZodObject<{
|
||||
export declare const zp_serie_registrar: z.ZodObject<{
|
||||
tabela: z.ZodString;
|
||||
identificador: z.ZodString;
|
||||
colanuEixoX: z.ZodString;
|
||||
|
|
@ -20,10 +20,10 @@ export declare const zp_registrar_serie: z.ZodObject<{
|
|||
colunaAgrupamento: string;
|
||||
agregacao: "contagem" | "somatoria";
|
||||
}>;
|
||||
export declare const registrar_serie: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }: {
|
||||
export declare const serie_registrar: ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, 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_serie>;
|
||||
parametros: z.infer<typeof zp_serie_registrar>;
|
||||
}) => Promise<tipoResposta<true>>;
|
||||
|
|
@ -36,19 +36,19 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|||
}
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.registrar_serie = exports.zp_registrar_serie = void 0;
|
||||
exports.serie_registrar = exports.zp_serie_registrar = void 0;
|
||||
var p_respostas_1 = require("p-respostas");
|
||||
var zod_1 = require("zod");
|
||||
var _variaveis_1 = require("./_variaveis");
|
||||
//registrar serie
|
||||
exports.zp_registrar_serie = zod_1.z.object({
|
||||
exports.zp_serie_registrar = zod_1.z.object({
|
||||
tabela: zod_1.z.string(),
|
||||
identificador: zod_1.z.string(),
|
||||
colanuEixoX: zod_1.z.string(),
|
||||
colunaAgrupamento: zod_1.z.string(),
|
||||
agregacao: _variaveis_1.tiposSeriesAgregacoes,
|
||||
});
|
||||
var registrar_serie = function (_a) {
|
||||
var serie_registrar = function (_a) {
|
||||
var emDesenvolvimento = _a.emDesenvolvimento, _b = _a.cliente, conta = _b.conta, produto = _b.produto, _c = _a.parametros, agregacao = _c.agregacao, colanuEixoX = _c.colanuEixoX, colunaAgrupamento = _c.colunaAgrupamento, identificador = _c.identificador, tabela = _c.tabela;
|
||||
return __awaiter(void 0, void 0, void 0, function () {
|
||||
var url, resp;
|
||||
|
|
@ -80,4 +80,4 @@ var registrar_serie = function (_a) {
|
|||
});
|
||||
});
|
||||
};
|
||||
exports.registrar_serie = registrar_serie;
|
||||
exports.serie_registrar = serie_registrar;
|
||||
Loading…
Add table
Add a link
Reference in a new issue