.
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;
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
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 { 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 const pPilao = {
|
||||
registrar_base_dados,
|
||||
zp_registrar_base_dados,
|
||||
enviar_registros,
|
||||
zp_enviar_registros,
|
||||
registrar_serie,
|
||||
zp_registrar_serie,
|
||||
consultar_serie,
|
||||
zp_consultar_serie,
|
||||
serie_registrar,
|
||||
zp_serie_registrar,
|
||||
serie_consultar,
|
||||
zp_serie_consultar,
|
||||
zp_produto_conta,
|
||||
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;
|
||||
};
|
||||
|
|
@ -11,10 +11,10 @@ import { respostaComuns } from "p-respostas";
|
|||
import { z } from "zod";
|
||||
import { PREFIXO, tiposSeriesAgregacoes, } from "./_variaveis";
|
||||
//consultar compilação
|
||||
export const zp_consultar_serie = z.object({
|
||||
export const zp_serie_consultar = z.object({
|
||||
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 url = new URL(`${emDesenvolvimento
|
||||
? "http://127.0.0.1:5080"
|
||||
|
|
@ -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>>;
|
||||
|
|
@ -11,14 +11,14 @@ import { respostaComuns } from "p-respostas";
|
|||
import { z } from "zod";
|
||||
import { PREFIXO, tiposSeriesAgregacoes, } from "./_variaveis";
|
||||
//registrar serie
|
||||
export const zp_registrar_serie = z.object({
|
||||
export const zp_serie_registrar = z.object({
|
||||
tabela: z.string(),
|
||||
identificador: z.string(),
|
||||
colanuEixoX: z.string(),
|
||||
colunaAgrupamento: z.string(),
|
||||
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
|
||||
? "http://127.0.0.1:5080"
|
||||
: "https://carro-de-boi.idz.one"}${`${PREFIXO}/registar-serie/${produto}/${conta}`}`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue