.
This commit is contained in:
parent
1a2cd2ce56
commit
a435b0c6ae
17 changed files with 124 additions and 227 deletions
|
|
@ -1,11 +1,11 @@
|
|||
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 }
|
||||
|
||||
|
|
@ -16,11 +16,11 @@ export const pPilao = {
|
|||
enviar_registros,
|
||||
zp_enviar_registros,
|
||||
|
||||
registrar_serie,
|
||||
zp_registrar_serie,
|
||||
serie_registrar,
|
||||
zp_serie_registrar,
|
||||
|
||||
consultar_serie,
|
||||
zp_consultar_serie,
|
||||
serie_consultar,
|
||||
zp_serie_consultar,
|
||||
|
||||
zp_produto_conta,
|
||||
validarZ,
|
||||
|
|
|
|||
|
|
@ -6,15 +6,15 @@ import {
|
|||
tiposSeriesAgregacoes,
|
||||
type zp_produto_conta,
|
||||
} from "./_variaveis"
|
||||
import type { zp_registrar_serie } from "./registrar_serie"
|
||||
import type { zp_serie_registrar } from "./serie_registrar"
|
||||
|
||||
//consultar compilação
|
||||
|
||||
export const zp_consultar_serie = z.object({
|
||||
export const zp_serie_consultar = z.object({
|
||||
identificador: z.string(),
|
||||
})
|
||||
|
||||
export const consultar_serie = ({
|
||||
export const serie_consultar = ({
|
||||
emDesenvolvimento,
|
||||
parametros: { identificador },
|
||||
cliente: { conta, produto },
|
||||
|
|
@ -23,13 +23,13 @@ export const consultar_serie = ({
|
|||
|
||||
/** 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>
|
||||
}) => {
|
||||
const dados = async (): Promise<
|
||||
tipoResposta<{
|
||||
registros: any[]
|
||||
legenda: string
|
||||
serie: z.infer<typeof zp_registrar_serie>
|
||||
serie: z.infer<typeof zp_serie_registrar>
|
||||
}>
|
||||
> => {
|
||||
const url = new URL(
|
||||
|
|
@ -9,7 +9,7 @@ import {
|
|||
|
||||
//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(),
|
||||
|
|
@ -17,7 +17,7 @@ export const zp_registrar_serie = z.object({
|
|||
agregacao: tiposSeriesAgregacoes,
|
||||
})
|
||||
|
||||
export const registrar_serie = async ({
|
||||
export const serie_registrar = async ({
|
||||
emDesenvolvimento,
|
||||
cliente: { conta, produto },
|
||||
parametros: {
|
||||
|
|
@ -33,7 +33,7 @@ export const registrar_serie = async ({
|
|||
/** 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>> => {
|
||||
const url = new URL(
|
||||
`${
|
||||
Loading…
Add table
Add a link
Reference in a new issue