.
This commit is contained in:
parent
1a2cd2ce56
commit
a435b0c6ae
17 changed files with 124 additions and 227 deletions
8
dist-import/pilao-de-dados/index.d.ts
vendored
8
dist-import/pilao-de-dados/index.d.ts
vendored
|
|
@ -61,7 +61,7 @@ export declare const pPilao: {
|
||||||
tabela: string;
|
tabela: string;
|
||||||
registros: any[];
|
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;
|
emDesenvolvimento?: boolean | null | undefined;
|
||||||
cliente: {
|
cliente: {
|
||||||
produto: string;
|
produto: string;
|
||||||
|
|
@ -75,7 +75,7 @@ export declare const pPilao: {
|
||||||
agregacao: "contagem" | "somatoria";
|
agregacao: "contagem" | "somatoria";
|
||||||
};
|
};
|
||||||
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
||||||
zp_registrar_serie: import("zod").ZodObject<{
|
zp_serie_registrar: import("zod").ZodObject<{
|
||||||
tabela: import("zod").ZodString;
|
tabela: import("zod").ZodString;
|
||||||
identificador: import("zod").ZodString;
|
identificador: import("zod").ZodString;
|
||||||
colanuEixoX: import("zod").ZodString;
|
colanuEixoX: import("zod").ZodString;
|
||||||
|
|
@ -94,7 +94,7 @@ export declare const pPilao: {
|
||||||
colunaAgrupamento: string;
|
colunaAgrupamento: string;
|
||||||
agregacao: "contagem" | "somatoria";
|
agregacao: "contagem" | "somatoria";
|
||||||
}>;
|
}>;
|
||||||
consultar_serie: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
serie_consultar: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
||||||
emDesenvolvimento?: boolean | null | undefined;
|
emDesenvolvimento?: boolean | null | undefined;
|
||||||
cliente: {
|
cliente: {
|
||||||
produto: string;
|
produto: string;
|
||||||
|
|
@ -117,7 +117,7 @@ export declare const pPilao: {
|
||||||
}>>;
|
}>>;
|
||||||
url: () => string;
|
url: () => string;
|
||||||
};
|
};
|
||||||
zp_consultar_serie: import("zod").ZodObject<{
|
zp_serie_consultar: import("zod").ZodObject<{
|
||||||
identificador: import("zod").ZodString;
|
identificador: import("zod").ZodString;
|
||||||
}, "strip", import("zod").ZodTypeAny, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
identificador: string;
|
identificador: string;
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
import { tiposSeriesAgregacoes, validarZ, zp_produto_conta } from "./_variaveis";
|
import { tiposSeriesAgregacoes, validarZ, zp_produto_conta } from "./_variaveis";
|
||||||
import { consultar_serie, zp_consultar_serie } from "./consultar_serie";
|
|
||||||
import { enviar_registros, zp_enviar_registros } from "./enviar_registros";
|
import { enviar_registros, zp_enviar_registros } from "./enviar_registros";
|
||||||
import { registrar_base_dados, zp_registrar_base_dados, } from "./registrar_base_dados";
|
import { registrar_base_dados, zp_registrar_base_dados, } from "./registrar_base_dados";
|
||||||
import { registrar_serie, zp_registrar_serie } from "./registrar_serie";
|
import { serie_consultar, zp_serie_consultar } from "./serie_consultar";
|
||||||
|
import { serie_registrar, zp_serie_registrar } from "./serie_registrar";
|
||||||
export { tiposSeriesAgregacoes };
|
export { tiposSeriesAgregacoes };
|
||||||
export const pPilao = {
|
export const pPilao = {
|
||||||
registrar_base_dados,
|
registrar_base_dados,
|
||||||
zp_registrar_base_dados,
|
zp_registrar_base_dados,
|
||||||
enviar_registros,
|
enviar_registros,
|
||||||
zp_enviar_registros,
|
zp_enviar_registros,
|
||||||
registrar_serie,
|
serie_registrar,
|
||||||
zp_registrar_serie,
|
zp_serie_registrar,
|
||||||
consultar_serie,
|
serie_consultar,
|
||||||
zp_consultar_serie,
|
zp_serie_consultar,
|
||||||
zp_produto_conta,
|
zp_produto_conta,
|
||||||
validarZ,
|
validarZ,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
import type { tipoResposta } from "p-respostas";
|
import type { tipoResposta } from "p-respostas";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { type zp_produto_conta } from "./_variaveis";
|
import { type zp_produto_conta } from "./_variaveis";
|
||||||
import type { zp_registrar_serie } from "./registrar_serie";
|
import type { zp_serie_registrar } from "./serie_registrar";
|
||||||
export declare const zp_consultar_serie: z.ZodObject<{
|
export declare const zp_serie_consultar: z.ZodObject<{
|
||||||
identificador: z.ZodString;
|
identificador: z.ZodString;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
identificador: string;
|
identificador: string;
|
||||||
}, {
|
}, {
|
||||||
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;
|
emDesenvolvimento?: boolean | undefined | null;
|
||||||
/** Identificação do cliente */
|
/** Identificação do cliente */
|
||||||
cliente: z.infer<typeof zp_produto_conta>;
|
cliente: z.infer<typeof zp_produto_conta>;
|
||||||
parametros: z.infer<typeof zp_consultar_serie>;
|
parametros: z.infer<typeof zp_serie_consultar>;
|
||||||
}) => {
|
}) => {
|
||||||
dados: () => Promise<tipoResposta<{
|
dados: () => Promise<tipoResposta<{
|
||||||
registros: any[];
|
registros: any[];
|
||||||
legenda: string;
|
legenda: string;
|
||||||
serie: z.infer<typeof zp_registrar_serie>;
|
serie: z.infer<typeof zp_serie_registrar>;
|
||||||
}>>;
|
}>>;
|
||||||
url: () => string;
|
url: () => string;
|
||||||
};
|
};
|
||||||
|
|
@ -11,10 +11,10 @@ import { respostaComuns } from "p-respostas";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { PREFIXO, tiposSeriesAgregacoes, } from "./_variaveis";
|
import { PREFIXO, tiposSeriesAgregacoes, } from "./_variaveis";
|
||||||
//consultar compilação
|
//consultar compilação
|
||||||
export const zp_consultar_serie = z.object({
|
export const zp_serie_consultar = z.object({
|
||||||
identificador: z.string(),
|
identificador: z.string(),
|
||||||
});
|
});
|
||||||
export const consultar_serie = ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }) => {
|
export const serie_consultar = ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }) => {
|
||||||
const dados = () => __awaiter(void 0, void 0, void 0, function* () {
|
const dados = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
const url = new URL(`${emDesenvolvimento
|
const url = new URL(`${emDesenvolvimento
|
||||||
? "http://127.0.0.1:5080"
|
? "http://127.0.0.1:5080"
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { type tipoResposta } from "p-respostas";
|
import { type tipoResposta } from "p-respostas";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { type zp_produto_conta } from "./_variaveis";
|
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;
|
tabela: z.ZodString;
|
||||||
identificador: z.ZodString;
|
identificador: z.ZodString;
|
||||||
colanuEixoX: z.ZodString;
|
colanuEixoX: z.ZodString;
|
||||||
|
|
@ -20,10 +20,10 @@ export declare const zp_registrar_serie: z.ZodObject<{
|
||||||
colunaAgrupamento: string;
|
colunaAgrupamento: string;
|
||||||
agregacao: "contagem" | "somatoria";
|
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;
|
emDesenvolvimento?: boolean | undefined | null;
|
||||||
/** Identificação do cliente */
|
/** Identificação do cliente */
|
||||||
cliente: z.infer<typeof zp_produto_conta>;
|
cliente: z.infer<typeof zp_produto_conta>;
|
||||||
/** Parametros da função */
|
/** Parametros da função */
|
||||||
parametros: z.infer<typeof zp_registrar_serie>;
|
parametros: z.infer<typeof zp_serie_registrar>;
|
||||||
}) => Promise<tipoResposta<true>>;
|
}) => Promise<tipoResposta<true>>;
|
||||||
|
|
@ -11,14 +11,14 @@ import { respostaComuns } from "p-respostas";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { PREFIXO, tiposSeriesAgregacoes, } from "./_variaveis";
|
import { PREFIXO, tiposSeriesAgregacoes, } from "./_variaveis";
|
||||||
//registrar serie
|
//registrar serie
|
||||||
export const zp_registrar_serie = z.object({
|
export const zp_serie_registrar = z.object({
|
||||||
tabela: z.string(),
|
tabela: z.string(),
|
||||||
identificador: z.string(),
|
identificador: z.string(),
|
||||||
colanuEixoX: z.string(),
|
colanuEixoX: z.string(),
|
||||||
colunaAgrupamento: z.string(),
|
colunaAgrupamento: z.string(),
|
||||||
agregacao: tiposSeriesAgregacoes,
|
agregacao: tiposSeriesAgregacoes,
|
||||||
});
|
});
|
||||||
export const registrar_serie = ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }) => __awaiter(void 0, void 0, void 0, function* () {
|
export const serie_registrar = ({ emDesenvolvimento, cliente: { conta, produto }, parametros: { agregacao, colanuEixoX, colunaAgrupamento, identificador, tabela, }, }) => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
const url = new URL(`${emDesenvolvimento
|
const url = new URL(`${emDesenvolvimento
|
||||||
? "http://127.0.0.1:5080"
|
? "http://127.0.0.1:5080"
|
||||||
: "https://carro-de-boi.idz.one"}${`${PREFIXO}/registar-serie/${produto}/${conta}`}`);
|
: "https://carro-de-boi.idz.one"}${`${PREFIXO}/registar-serie/${produto}/${conta}`}`);
|
||||||
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;
|
tabela: string;
|
||||||
registros: any[];
|
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;
|
emDesenvolvimento?: boolean | null | undefined;
|
||||||
cliente: {
|
cliente: {
|
||||||
produto: string;
|
produto: string;
|
||||||
|
|
@ -75,7 +75,7 @@ export declare const pPilao: {
|
||||||
agregacao: "contagem" | "somatoria";
|
agregacao: "contagem" | "somatoria";
|
||||||
};
|
};
|
||||||
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
}) => Promise<import("p-respostas").tipoResposta<true>>;
|
||||||
zp_registrar_serie: import("zod").ZodObject<{
|
zp_serie_registrar: import("zod").ZodObject<{
|
||||||
tabela: import("zod").ZodString;
|
tabela: import("zod").ZodString;
|
||||||
identificador: import("zod").ZodString;
|
identificador: import("zod").ZodString;
|
||||||
colanuEixoX: import("zod").ZodString;
|
colanuEixoX: import("zod").ZodString;
|
||||||
|
|
@ -94,7 +94,7 @@ export declare const pPilao: {
|
||||||
colunaAgrupamento: string;
|
colunaAgrupamento: string;
|
||||||
agregacao: "contagem" | "somatoria";
|
agregacao: "contagem" | "somatoria";
|
||||||
}>;
|
}>;
|
||||||
consultar_serie: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
serie_consultar: ({ emDesenvolvimento, parametros: { identificador }, cliente: { conta, produto }, }: {
|
||||||
emDesenvolvimento?: boolean | null | undefined;
|
emDesenvolvimento?: boolean | null | undefined;
|
||||||
cliente: {
|
cliente: {
|
||||||
produto: string;
|
produto: string;
|
||||||
|
|
@ -117,7 +117,7 @@ export declare const pPilao: {
|
||||||
}>>;
|
}>>;
|
||||||
url: () => string;
|
url: () => string;
|
||||||
};
|
};
|
||||||
zp_consultar_serie: import("zod").ZodObject<{
|
zp_serie_consultar: import("zod").ZodObject<{
|
||||||
identificador: import("zod").ZodString;
|
identificador: import("zod").ZodString;
|
||||||
}, "strip", import("zod").ZodTypeAny, {
|
}, "strip", import("zod").ZodTypeAny, {
|
||||||
identificador: string;
|
identificador: string;
|
||||||
|
|
|
||||||
|
|
@ -3,19 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.pPilao = exports.tiposSeriesAgregacoes = void 0;
|
exports.pPilao = exports.tiposSeriesAgregacoes = void 0;
|
||||||
var _variaveis_1 = require("./_variaveis");
|
var _variaveis_1 = require("./_variaveis");
|
||||||
Object.defineProperty(exports, "tiposSeriesAgregacoes", { enumerable: true, get: function () { return _variaveis_1.tiposSeriesAgregacoes; } });
|
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 enviar_registros_1 = require("./enviar_registros");
|
||||||
var registrar_base_dados_1 = require("./registrar_base_dados");
|
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 = {
|
exports.pPilao = {
|
||||||
registrar_base_dados: registrar_base_dados_1.registrar_base_dados,
|
registrar_base_dados: registrar_base_dados_1.registrar_base_dados,
|
||||||
zp_registrar_base_dados: registrar_base_dados_1.zp_registrar_base_dados,
|
zp_registrar_base_dados: registrar_base_dados_1.zp_registrar_base_dados,
|
||||||
enviar_registros: enviar_registros_1.enviar_registros,
|
enviar_registros: enviar_registros_1.enviar_registros,
|
||||||
zp_enviar_registros: enviar_registros_1.zp_enviar_registros,
|
zp_enviar_registros: enviar_registros_1.zp_enviar_registros,
|
||||||
registrar_serie: registrar_serie_1.registrar_serie,
|
serie_registrar: serie_registrar_1.serie_registrar,
|
||||||
zp_registrar_serie: registrar_serie_1.zp_registrar_serie,
|
zp_serie_registrar: serie_registrar_1.zp_serie_registrar,
|
||||||
consultar_serie: consultar_serie_1.consultar_serie,
|
serie_consultar: serie_consultar_1.serie_consultar,
|
||||||
zp_consultar_serie: consultar_serie_1.zp_consultar_serie,
|
zp_serie_consultar: serie_consultar_1.zp_serie_consultar,
|
||||||
zp_produto_conta: _variaveis_1.zp_produto_conta,
|
zp_produto_conta: _variaveis_1.zp_produto_conta,
|
||||||
validarZ: _variaveis_1.validarZ,
|
validarZ: _variaveis_1.validarZ,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
import type { tipoResposta } from "p-respostas";
|
import type { tipoResposta } from "p-respostas";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { type zp_produto_conta } from "./_variaveis";
|
import { type zp_produto_conta } from "./_variaveis";
|
||||||
import type { zp_registrar_serie } from "./registrar_serie";
|
import type { zp_serie_registrar } from "./serie_registrar";
|
||||||
export declare const zp_consultar_serie: z.ZodObject<{
|
export declare const zp_serie_consultar: z.ZodObject<{
|
||||||
identificador: z.ZodString;
|
identificador: z.ZodString;
|
||||||
}, "strip", z.ZodTypeAny, {
|
}, "strip", z.ZodTypeAny, {
|
||||||
identificador: string;
|
identificador: string;
|
||||||
}, {
|
}, {
|
||||||
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;
|
emDesenvolvimento?: boolean | undefined | null;
|
||||||
/** Identificação do cliente */
|
/** Identificação do cliente */
|
||||||
cliente: z.infer<typeof zp_produto_conta>;
|
cliente: z.infer<typeof zp_produto_conta>;
|
||||||
parametros: z.infer<typeof zp_consultar_serie>;
|
parametros: z.infer<typeof zp_serie_consultar>;
|
||||||
}) => {
|
}) => {
|
||||||
dados: () => Promise<tipoResposta<{
|
dados: () => Promise<tipoResposta<{
|
||||||
registros: any[];
|
registros: any[];
|
||||||
legenda: string;
|
legenda: string;
|
||||||
serie: z.infer<typeof zp_registrar_serie>;
|
serie: z.infer<typeof zp_serie_registrar>;
|
||||||
}>>;
|
}>>;
|
||||||
url: () => string;
|
url: () => string;
|
||||||
};
|
};
|
||||||
|
|
@ -36,15 +36,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
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 p_respostas_1 = require("p-respostas");
|
||||||
var zod_1 = require("zod");
|
var zod_1 = require("zod");
|
||||||
var _variaveis_1 = require("./_variaveis");
|
var _variaveis_1 = require("./_variaveis");
|
||||||
//consultar compilação
|
//consultar compilação
|
||||||
exports.zp_consultar_serie = zod_1.z.object({
|
exports.zp_serie_consultar = zod_1.z.object({
|
||||||
identificador: zod_1.z.string(),
|
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 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 dados = function () { return __awaiter(void 0, void 0, void 0, function () {
|
||||||
var url, resp;
|
var url, resp;
|
||||||
|
|
@ -86,4 +86,4 @@ var consultar_serie = function (_a) {
|
||||||
url: url,
|
url: url,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.consultar_serie = consultar_serie;
|
exports.serie_consultar = serie_consultar;
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { type tipoResposta } from "p-respostas";
|
import { type tipoResposta } from "p-respostas";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { type zp_produto_conta } from "./_variaveis";
|
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;
|
tabela: z.ZodString;
|
||||||
identificador: z.ZodString;
|
identificador: z.ZodString;
|
||||||
colanuEixoX: z.ZodString;
|
colanuEixoX: z.ZodString;
|
||||||
|
|
@ -20,10 +20,10 @@ export declare const zp_registrar_serie: z.ZodObject<{
|
||||||
colunaAgrupamento: string;
|
colunaAgrupamento: string;
|
||||||
agregacao: "contagem" | "somatoria";
|
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;
|
emDesenvolvimento?: boolean | undefined | null;
|
||||||
/** Identificação do cliente */
|
/** Identificação do cliente */
|
||||||
cliente: z.infer<typeof zp_produto_conta>;
|
cliente: z.infer<typeof zp_produto_conta>;
|
||||||
/** Parametros da função */
|
/** Parametros da função */
|
||||||
parametros: z.infer<typeof zp_registrar_serie>;
|
parametros: z.infer<typeof zp_serie_registrar>;
|
||||||
}) => Promise<tipoResposta<true>>;
|
}) => Promise<tipoResposta<true>>;
|
||||||
|
|
@ -36,19 +36,19 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
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 p_respostas_1 = require("p-respostas");
|
||||||
var zod_1 = require("zod");
|
var zod_1 = require("zod");
|
||||||
var _variaveis_1 = require("./_variaveis");
|
var _variaveis_1 = require("./_variaveis");
|
||||||
//registrar serie
|
//registrar serie
|
||||||
exports.zp_registrar_serie = zod_1.z.object({
|
exports.zp_serie_registrar = zod_1.z.object({
|
||||||
tabela: zod_1.z.string(),
|
tabela: zod_1.z.string(),
|
||||||
identificador: zod_1.z.string(),
|
identificador: zod_1.z.string(),
|
||||||
colanuEixoX: zod_1.z.string(),
|
colanuEixoX: zod_1.z.string(),
|
||||||
colunaAgrupamento: zod_1.z.string(),
|
colunaAgrupamento: zod_1.z.string(),
|
||||||
agregacao: _variaveis_1.tiposSeriesAgregacoes,
|
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;
|
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 () {
|
return __awaiter(void 0, void 0, void 0, function () {
|
||||||
var url, resp;
|
var url, resp;
|
||||||
|
|
@ -80,4 +80,4 @@ var registrar_serie = function (_a) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
exports.registrar_serie = registrar_serie;
|
exports.serie_registrar = serie_registrar;
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.61.0",
|
"version": "0.62.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
225
pnpm-lock.yaml
generated
225
pnpm-lock.yaml
generated
|
|
@ -1,13 +1,10 @@
|
||||||
lockfileVersion: '6.0'
|
lockfileVersion: '9.0'
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
autoInstallPeers: true
|
autoInstallPeers: true
|
||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
dependencies:
|
importers:
|
||||||
zod:
|
|
||||||
specifier: 3.23.8
|
|
||||||
version: 3.23.8
|
|
||||||
|
|
||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
@ -17,10 +14,10 @@ dependencies:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@biomejs/biome':
|
'@biomejs/biome':
|
||||||
specifier: latest
|
specifier: latest
|
||||||
version: 1.8.0
|
version: 1.8.1
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^20.14.1
|
specifier: ^20.14.1
|
||||||
version: 20.14.1
|
version: 20.14.2
|
||||||
check-node-version:
|
check-node-version:
|
||||||
specifier: ^4.2.1
|
specifier: ^4.2.1
|
||||||
version: 4.2.1
|
version: 4.2.1
|
||||||
|
|
@ -36,61 +33,61 @@ dependencies:
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
/@biomejs/biome@1.8.1:
|
'@biomejs/biome@1.8.1':
|
||||||
resolution: {integrity: sha512-fQXGfvq6DIXem12dGQCM2tNF+vsNHH1qs3C7WeOu75Pd0trduoTmoO7G4ntLJ2qDs5wuw981H+cxQhi1uHnAtA==}
|
resolution: {integrity: sha512-fQXGfvq6DIXem12dGQCM2tNF+vsNHH1qs3C7WeOu75Pd0trduoTmoO7G4ntLJ2qDs5wuw981H+cxQhi1uHnAtA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
'@biomejs/cli-darwin-arm64@1.8.0':
|
'@biomejs/cli-darwin-arm64@1.8.1':
|
||||||
resolution: {integrity: sha512-dBAYzfIJ1JmWigKlWourT3sJ3I60LZPjqNwwlsyFjiv5AV7vPeWlHVVIImV2BpINwNjZQhpXnwDfVnGS4vr7AA==}
|
resolution: {integrity: sha512-XLiB7Uu6GALIOBWzQ2aMD0ru4Ly5/qSeQF7kk3AabzJ/kwsEWSe33iVySBP/SS2qv25cgqNiLksjGcw2bHT3mw==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@biomejs/cli-darwin-x64@1.8.0':
|
'@biomejs/cli-darwin-x64@1.8.1':
|
||||||
resolution: {integrity: sha512-ZTTSD0bP0nn9UpRDGQrQNTILcYSj+IkxTYr3CAV64DWBDtQBomlk2oVKWzDaA1LOhpAsTh0giLCbPJaVk2jfMQ==}
|
resolution: {integrity: sha512-uMTSxVLMfqkBVqyc25hSn83jBbp+wtWjzM/pHFlKXt3htJuw7FErVGW0nmQ9Sxa9vJ7GcqoltLMl28VQRIMYzg==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64-musl@1.8.0':
|
'@biomejs/cli-linux-arm64-musl@1.8.1':
|
||||||
resolution: {integrity: sha512-+ee/pZWsvhDv6eRI00krRNSgAg8DKSxzOv3LUsCjto6N1VzqatTASeQv2HRfG1nitf79rRKM75LkMJbqEfiKww==}
|
resolution: {integrity: sha512-UQ8Wc01J0wQL+5AYOc7qkJn20B4PZmQL1KrmDZh7ot0DvD6aX4+8mmfd/dG5b6Zjo/44QvCKcvkFGCMRYuhWZA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64@1.8.0':
|
'@biomejs/cli-linux-arm64@1.8.1':
|
||||||
resolution: {integrity: sha512-cx725jTlJS6dskvJJwwCQaaMRBKE2Qss7ukzmx27Rn/DXRxz6tnnBix4FUGPf1uZfwrERkiJlbWM05JWzpvvXg==}
|
resolution: {integrity: sha512-3SzZRuC/9Oi2P2IBNPsEj0KXxSXUEYRR2kfRF/Ve8QAfGgrt4qnwuWd6QQKKN5R+oYH691qjm+cXBKEcrP1v/Q==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64-musl@1.8.0':
|
'@biomejs/cli-linux-x64-musl@1.8.1':
|
||||||
resolution: {integrity: sha512-VPA4ocrAOak50VYl8gOAVnjuFFDpIUolShntc/aWM0pZfSIMbRucxnrfUfp44EVwayxjK6ruJTR5xEWj93WvDA==}
|
resolution: {integrity: sha512-fYbP/kNu/rtZ4kKzWVocIdqZOtBSUEg9qUhZaao3dy3CRzafR6u6KDtBeSCnt47O+iLnks1eOR1TUxzr5+QuqA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64@1.8.0':
|
'@biomejs/cli-linux-x64@1.8.1':
|
||||||
resolution: {integrity: sha512-cmgmhlD4QUxMhL1VdaNqnB81xBHb3R7huVNyYnPYzP+AykZ7XqJbPd1KcWAszNjUk2AHdx0aLKEBwCOWemxb2g==}
|
resolution: {integrity: sha512-AeBycVdNrTzsyYKEOtR2R0Ph0hCD0sCshcp2aOnfGP0hCZbtFg09D0SdKLbyzKntisY41HxKVrydYiaApp+2uw==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-win32-arm64@1.8.0':
|
'@biomejs/cli-win32-arm64@1.8.1':
|
||||||
resolution: {integrity: sha512-J31spvlh39FfRHQacYXxJX9PvTCH/a8+2Jx9D1lxw+LSF0JybqZcw/4JrlFUWUl4kF3yv8AuYUK0sENScc3g9w==}
|
resolution: {integrity: sha512-6tEd1H/iFKpgpE3OIB7oNgW5XkjiVMzMRPL8zYoZ036YfuJ5nMYm9eB9H/y81+8Z76vL48fiYzMPotJwukGPqQ==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@biomejs/cli-win32-x64@1.8.0':
|
'@biomejs/cli-win32-x64@1.8.1':
|
||||||
resolution: {integrity: sha512-uPHHvu76JC1zYe9zZDcOU9PAg+1MZmPuNgWkb5jljaDeATvzLFPB+0nuJTilf603LXL+E8IdPQAO61Wy2VuEJA==}
|
resolution: {integrity: sha512-g2H31jJzYmS4jkvl6TiyEjEX+Nv79a5km/xn+5DARTp5MBFzC9gwceusSSB2AkJKqZzY131AiACAWjKrVt5Ijw==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@types/node@20.14.1':
|
'@types/node@20.14.2':
|
||||||
resolution: {integrity: sha512-T2MzSGEu+ysB/FkWfqmhV3PLyQlowdptmmgD20C6QxsS8Fmv5SjpZ1ayXaEC0S21/h5UJ9iA6W/5vSNU5l00OA==}
|
resolution: {integrity: sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==}
|
||||||
|
|
||||||
ansi-styles@4.3.0:
|
ansi-styles@4.3.0:
|
||||||
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
|
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
|
||||||
|
|
@ -162,7 +159,7 @@ packages:
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
|
||||||
'@biomejs/biome@1.8.0':
|
'@biomejs/biome@1.8.1':
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@biomejs/cli-darwin-arm64': 1.8.1
|
'@biomejs/cli-darwin-arm64': 1.8.1
|
||||||
'@biomejs/cli-darwin-x64': 1.8.1
|
'@biomejs/cli-darwin-x64': 1.8.1
|
||||||
|
|
@ -172,105 +169,45 @@ snapshots:
|
||||||
'@biomejs/cli-linux-x64-musl': 1.8.1
|
'@biomejs/cli-linux-x64-musl': 1.8.1
|
||||||
'@biomejs/cli-win32-arm64': 1.8.1
|
'@biomejs/cli-win32-arm64': 1.8.1
|
||||||
'@biomejs/cli-win32-x64': 1.8.1
|
'@biomejs/cli-win32-x64': 1.8.1
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@biomejs/cli-darwin-arm64@1.8.1:
|
'@biomejs/cli-darwin-arm64@1.8.1':
|
||||||
resolution: {integrity: sha512-XLiB7Uu6GALIOBWzQ2aMD0ru4Ly5/qSeQF7kk3AabzJ/kwsEWSe33iVySBP/SS2qv25cgqNiLksjGcw2bHT3mw==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [arm64]
|
|
||||||
os: [darwin]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@biomejs/cli-darwin-x64@1.8.1:
|
'@biomejs/cli-darwin-x64@1.8.1':
|
||||||
resolution: {integrity: sha512-uMTSxVLMfqkBVqyc25hSn83jBbp+wtWjzM/pHFlKXt3htJuw7FErVGW0nmQ9Sxa9vJ7GcqoltLMl28VQRIMYzg==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [x64]
|
|
||||||
os: [darwin]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@biomejs/cli-linux-arm64-musl@1.8.1:
|
'@biomejs/cli-linux-arm64-musl@1.8.1':
|
||||||
resolution: {integrity: sha512-UQ8Wc01J0wQL+5AYOc7qkJn20B4PZmQL1KrmDZh7ot0DvD6aX4+8mmfd/dG5b6Zjo/44QvCKcvkFGCMRYuhWZA==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [arm64]
|
|
||||||
os: [linux]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@biomejs/cli-linux-arm64@1.8.1:
|
'@biomejs/cli-linux-arm64@1.8.1':
|
||||||
resolution: {integrity: sha512-3SzZRuC/9Oi2P2IBNPsEj0KXxSXUEYRR2kfRF/Ve8QAfGgrt4qnwuWd6QQKKN5R+oYH691qjm+cXBKEcrP1v/Q==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [arm64]
|
|
||||||
os: [linux]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@biomejs/cli-linux-x64-musl@1.8.1:
|
'@biomejs/cli-linux-x64-musl@1.8.1':
|
||||||
resolution: {integrity: sha512-fYbP/kNu/rtZ4kKzWVocIdqZOtBSUEg9qUhZaao3dy3CRzafR6u6KDtBeSCnt47O+iLnks1eOR1TUxzr5+QuqA==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [x64]
|
|
||||||
os: [linux]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@biomejs/cli-linux-x64@1.8.1:
|
'@biomejs/cli-linux-x64@1.8.1':
|
||||||
resolution: {integrity: sha512-AeBycVdNrTzsyYKEOtR2R0Ph0hCD0sCshcp2aOnfGP0hCZbtFg09D0SdKLbyzKntisY41HxKVrydYiaApp+2uw==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [x64]
|
|
||||||
os: [linux]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@biomejs/cli-win32-arm64@1.8.1:
|
'@biomejs/cli-win32-arm64@1.8.1':
|
||||||
resolution: {integrity: sha512-6tEd1H/iFKpgpE3OIB7oNgW5XkjiVMzMRPL8zYoZ036YfuJ5nMYm9eB9H/y81+8Z76vL48fiYzMPotJwukGPqQ==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [arm64]
|
|
||||||
os: [win32]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@biomejs/cli-win32-x64@1.8.1:
|
'@biomejs/cli-win32-x64@1.8.1':
|
||||||
resolution: {integrity: sha512-g2H31jJzYmS4jkvl6TiyEjEX+Nv79a5km/xn+5DARTp5MBFzC9gwceusSSB2AkJKqZzY131AiACAWjKrVt5Ijw==}
|
|
||||||
engines: {node: '>=14.21.3'}
|
|
||||||
cpu: [x64]
|
|
||||||
os: [win32]
|
|
||||||
requiresBuild: true
|
|
||||||
dev: true
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@types/node@20.14.2:
|
'@types/node@20.14.2':
|
||||||
resolution: {integrity: sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==}
|
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 5.26.5
|
undici-types: 5.26.5
|
||||||
dev: true
|
|
||||||
|
|
||||||
/ansi-styles@4.3.0:
|
ansi-styles@4.3.0:
|
||||||
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
|
|
||||||
engines: {node: '>=8'}
|
|
||||||
dependencies:
|
dependencies:
|
||||||
color-convert: 2.0.1
|
color-convert: 2.0.1
|
||||||
dev: true
|
|
||||||
|
|
||||||
/chalk@3.0.0:
|
chalk@3.0.0:
|
||||||
resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==}
|
|
||||||
engines: {node: '>=8'}
|
|
||||||
dependencies:
|
dependencies:
|
||||||
ansi-styles: 4.3.0
|
ansi-styles: 4.3.0
|
||||||
supports-color: 7.2.0
|
supports-color: 7.2.0
|
||||||
dev: true
|
|
||||||
|
|
||||||
/check-node-version@4.2.1:
|
check-node-version@4.2.1:
|
||||||
resolution: {integrity: sha512-YYmFYHV/X7kSJhuN/QYHUu998n/TRuDe8UenM3+m5NrkiH670lb9ILqHIvBencvJc4SDh+XcbXMR4b+TtubJiw==}
|
|
||||||
engines: {node: '>=8.3.0'}
|
|
||||||
hasBin: true
|
|
||||||
dependencies:
|
dependencies:
|
||||||
chalk: 3.0.0
|
chalk: 3.0.0
|
||||||
map-values: 1.0.1
|
map-values: 1.0.1
|
||||||
|
|
@ -278,84 +215,44 @@ snapshots:
|
||||||
object-filter: 1.0.2
|
object-filter: 1.0.2
|
||||||
run-parallel: 1.2.0
|
run-parallel: 1.2.0
|
||||||
semver: 6.3.1
|
semver: 6.3.1
|
||||||
dev: true
|
|
||||||
|
|
||||||
/color-convert@2.0.1:
|
color-convert@2.0.1:
|
||||||
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
|
|
||||||
engines: {node: '>=7.0.0'}
|
|
||||||
dependencies:
|
dependencies:
|
||||||
color-name: 1.1.4
|
color-name: 1.1.4
|
||||||
dev: true
|
|
||||||
|
|
||||||
/color-name@1.1.4:
|
color-name@1.1.4: {}
|
||||||
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/has-flag@4.0.0:
|
has-flag@4.0.0: {}
|
||||||
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
|
|
||||||
engines: {node: '>=8'}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/map-values@1.0.1:
|
map-values@1.0.1: {}
|
||||||
resolution: {integrity: sha512-BbShUnr5OartXJe1GeccAWtfro11hhgNJg6G9/UtWKjVGvV5U4C09cg5nk8JUevhXODaXY+hQ3xxMUKSs62ONQ==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/minimist@1.2.8:
|
minimist@1.2.8: {}
|
||||||
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/object-filter@1.0.2:
|
object-filter@1.0.2: {}
|
||||||
resolution: {integrity: sha512-NahvP2vZcy1ZiiYah30CEPw0FpDcSkSePJBMpzl5EQgCmISijiGuJm3SPYp7U+Lf2TljyaIw3E5EgkEx/TNEVA==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/queue-microtask@1.2.3:
|
p-comuns@git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git#ac72e915630a0f7750630a24389367141b0e8ae0(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/run-parallel@1.2.0:
|
|
||||||
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
|
|
||||||
dependencies:
|
|
||||||
queue-microtask: 1.2.3
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/semver@6.3.1:
|
|
||||||
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
|
|
||||||
hasBin: true
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/supports-color@7.2.0:
|
|
||||||
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
|
|
||||||
engines: {node: '>=8'}
|
|
||||||
dependencies:
|
|
||||||
has-flag: 4.0.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/typescript@4.9.5:
|
|
||||||
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
|
|
||||||
engines: {node: '>=4.2.0'}
|
|
||||||
hasBin: true
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/undici-types@5.26.5:
|
|
||||||
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/zod@3.23.8:
|
|
||||||
resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}
|
|
||||||
|
|
||||||
leitura+eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one+3000/git/multi-modulos-ambientais/_comuns/ac72e915630a0f7750630a24389367141b0e8ae0(typescript@4.9.5):
|
|
||||||
resolution: {commit: ac72e915630a0f7750630a24389367141b0e8ae0, repo: http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git, type: git}
|
|
||||||
id: leitura+eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one+3000/git/multi-modulos-ambientais/_comuns/ac72e915630a0f7750630a24389367141b0e8ae0
|
|
||||||
name: p-comuns
|
|
||||||
version: 0.29.0
|
|
||||||
peerDependencies:
|
|
||||||
typescript: ^5.0.0
|
|
||||||
dependencies:
|
dependencies:
|
||||||
typescript: 4.9.5
|
typescript: 4.9.5
|
||||||
zod: 3.23.8
|
zod: 3.23.8
|
||||||
dev: true
|
|
||||||
|
|
||||||
p-respostas@git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#d13e633204f5485d3af48c46f37317561250808a:
|
p-respostas@git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#d13e633204f5485d3af48c46f37317561250808a:
|
||||||
dependencies:
|
dependencies:
|
||||||
zod: 3.23.8
|
zod: 3.23.8
|
||||||
dev: true
|
|
||||||
|
queue-microtask@1.2.3: {}
|
||||||
|
|
||||||
|
run-parallel@1.2.0:
|
||||||
|
dependencies:
|
||||||
|
queue-microtask: 1.2.3
|
||||||
|
|
||||||
|
semver@6.3.1: {}
|
||||||
|
|
||||||
|
supports-color@7.2.0:
|
||||||
|
dependencies:
|
||||||
|
has-flag: 4.0.0
|
||||||
|
|
||||||
|
typescript@4.9.5: {}
|
||||||
|
|
||||||
|
undici-types@5.26.5: {}
|
||||||
|
|
||||||
|
zod@3.23.8: {}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
import { tiposSeriesAgregacoes, validarZ, zp_produto_conta } from "./_variaveis"
|
import { tiposSeriesAgregacoes, validarZ, zp_produto_conta } from "./_variaveis"
|
||||||
import { consultar_serie, zp_consultar_serie } from "./consultar_serie"
|
|
||||||
import { enviar_registros, zp_enviar_registros } from "./enviar_registros"
|
import { enviar_registros, zp_enviar_registros } from "./enviar_registros"
|
||||||
import {
|
import {
|
||||||
registrar_base_dados,
|
registrar_base_dados,
|
||||||
zp_registrar_base_dados,
|
zp_registrar_base_dados,
|
||||||
} from "./registrar_base_dados"
|
} from "./registrar_base_dados"
|
||||||
import { registrar_serie, zp_registrar_serie } from "./registrar_serie"
|
import { serie_consultar, zp_serie_consultar } from "./serie_consultar"
|
||||||
|
import { serie_registrar, zp_serie_registrar } from "./serie_registrar"
|
||||||
|
|
||||||
export { tiposSeriesAgregacoes }
|
export { tiposSeriesAgregacoes }
|
||||||
|
|
||||||
|
|
@ -16,11 +16,11 @@ export const pPilao = {
|
||||||
enviar_registros,
|
enviar_registros,
|
||||||
zp_enviar_registros,
|
zp_enviar_registros,
|
||||||
|
|
||||||
registrar_serie,
|
serie_registrar,
|
||||||
zp_registrar_serie,
|
zp_serie_registrar,
|
||||||
|
|
||||||
consultar_serie,
|
serie_consultar,
|
||||||
zp_consultar_serie,
|
zp_serie_consultar,
|
||||||
|
|
||||||
zp_produto_conta,
|
zp_produto_conta,
|
||||||
validarZ,
|
validarZ,
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,15 @@ import {
|
||||||
tiposSeriesAgregacoes,
|
tiposSeriesAgregacoes,
|
||||||
type zp_produto_conta,
|
type zp_produto_conta,
|
||||||
} from "./_variaveis"
|
} from "./_variaveis"
|
||||||
import type { zp_registrar_serie } from "./registrar_serie"
|
import type { zp_serie_registrar } from "./serie_registrar"
|
||||||
|
|
||||||
//consultar compilação
|
//consultar compilação
|
||||||
|
|
||||||
export const zp_consultar_serie = z.object({
|
export const zp_serie_consultar = z.object({
|
||||||
identificador: z.string(),
|
identificador: z.string(),
|
||||||
})
|
})
|
||||||
|
|
||||||
export const consultar_serie = ({
|
export const serie_consultar = ({
|
||||||
emDesenvolvimento,
|
emDesenvolvimento,
|
||||||
parametros: { identificador },
|
parametros: { identificador },
|
||||||
cliente: { conta, produto },
|
cliente: { conta, produto },
|
||||||
|
|
@ -23,13 +23,13 @@ export const consultar_serie = ({
|
||||||
|
|
||||||
/** Identificação do cliente */
|
/** Identificação do cliente */
|
||||||
cliente: z.infer<typeof zp_produto_conta>
|
cliente: z.infer<typeof zp_produto_conta>
|
||||||
parametros: z.infer<typeof zp_consultar_serie>
|
parametros: z.infer<typeof zp_serie_consultar>
|
||||||
}) => {
|
}) => {
|
||||||
const dados = async (): Promise<
|
const dados = async (): Promise<
|
||||||
tipoResposta<{
|
tipoResposta<{
|
||||||
registros: any[]
|
registros: any[]
|
||||||
legenda: string
|
legenda: string
|
||||||
serie: z.infer<typeof zp_registrar_serie>
|
serie: z.infer<typeof zp_serie_registrar>
|
||||||
}>
|
}>
|
||||||
> => {
|
> => {
|
||||||
const url = new URL(
|
const url = new URL(
|
||||||
|
|
@ -9,7 +9,7 @@ import {
|
||||||
|
|
||||||
//registrar serie
|
//registrar serie
|
||||||
|
|
||||||
export const zp_registrar_serie = z.object({
|
export const zp_serie_registrar = z.object({
|
||||||
tabela: z.string(),
|
tabela: z.string(),
|
||||||
identificador: z.string(),
|
identificador: z.string(),
|
||||||
colanuEixoX: z.string(),
|
colanuEixoX: z.string(),
|
||||||
|
|
@ -17,7 +17,7 @@ export const zp_registrar_serie = z.object({
|
||||||
agregacao: tiposSeriesAgregacoes,
|
agregacao: tiposSeriesAgregacoes,
|
||||||
})
|
})
|
||||||
|
|
||||||
export const registrar_serie = async ({
|
export const serie_registrar = async ({
|
||||||
emDesenvolvimento,
|
emDesenvolvimento,
|
||||||
cliente: { conta, produto },
|
cliente: { conta, produto },
|
||||||
parametros: {
|
parametros: {
|
||||||
|
|
@ -33,7 +33,7 @@ export const registrar_serie = async ({
|
||||||
/** Identificação do cliente */
|
/** Identificação do cliente */
|
||||||
cliente: z.infer<typeof zp_produto_conta>
|
cliente: z.infer<typeof zp_produto_conta>
|
||||||
/** Parametros da função */
|
/** Parametros da função */
|
||||||
parametros: z.infer<typeof zp_registrar_serie>
|
parametros: z.infer<typeof zp_serie_registrar>
|
||||||
}): Promise<tipoResposta<true>> => {
|
}): Promise<tipoResposta<true>> => {
|
||||||
const url = new URL(
|
const url = new URL(
|
||||||
`${
|
`${
|
||||||
Loading…
Add table
Add a link
Reference in a new issue