@orbe-agro/client-core 5.6.71 → 5.6.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@ecme/locales/lang/ptBR/nav.js +3 -1
- package/dist/@ecme/locales/lang/ptBR/nav.js.map +1 -1
- package/dist/@ecme/services/axios/AxiosRequestIntrceptorConfigCallback.js +12 -0
- package/dist/@ecme/services/axios/AxiosRequestIntrceptorConfigCallback.js.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/nav.d.ts.map +1 -1
- package/dist/@types/@ecme/services/axios/AxiosRequestIntrceptorConfigCallback.d.ts.map +1 -1
- package/dist/@types/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.d.ts +1 -0
- package/dist/@types/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.d.ts.map +1 -1
- package/dist/@types/base/@types/models/agendamento/agendamento.d.ts +197 -0
- package/dist/@types/base/@types/models/agendamento/agendamento.d.ts.map +1 -0
- package/dist/@types/base/@types/models/agendamento/contratoVenda.d.ts +118 -0
- package/dist/@types/base/@types/models/agendamento/contratoVenda.d.ts.map +1 -0
- package/dist/@types/base/@types/models/agendamento/janela.d.ts +39 -0
- package/dist/@types/base/@types/models/agendamento/janela.d.ts.map +1 -0
- package/dist/@types/base/@types/models/agendamento/listaEmbarque.d.ts +62 -0
- package/dist/@types/base/@types/models/agendamento/listaEmbarque.d.ts.map +1 -0
- package/dist/@types/base/@types/models/agendamento/local.d.ts +66 -0
- package/dist/@types/base/@types/models/agendamento/local.d.ts.map +1 -0
- package/dist/@types/base/@types/models/agendamento/motivoCancelamento.d.ts +15 -0
- package/dist/@types/base/@types/models/agendamento/motivoCancelamento.d.ts.map +1 -0
- package/dist/@types/base/@types/models/agendamento/restricao.d.ts +38 -0
- package/dist/@types/base/@types/models/agendamento/restricao.d.ts.map +1 -0
- package/dist/@types/base/@types/models/ativos/{AnexoComponente.d.ts → anexoComponente.d.ts} +1 -1
- package/dist/@types/base/@types/models/ativos/{AnexoComponente.d.ts.map → anexoComponente.d.ts.map} +1 -1
- package/dist/@types/base/@types/models/ativos/ativo.d.ts +34 -0
- package/dist/@types/base/@types/models/ativos/ativo.d.ts.map +1 -0
- package/dist/@types/base/@types/models/ativos/documentacao.d.ts +57 -0
- package/dist/@types/base/@types/models/ativos/documentacao.d.ts.map +1 -0
- package/dist/@types/base/@types/models/ativos/formularioCampos.d.ts +22 -0
- package/dist/@types/base/@types/models/ativos/formularioCampos.d.ts.map +1 -0
- package/dist/@types/base/@types/models/ativos/index.d.ts +22 -0
- package/dist/@types/base/@types/models/ativos/index.d.ts.map +1 -0
- package/dist/@types/base/@types/models/ativos/sistemaOperacional.d.ts +1 -1
- package/dist/@types/base/@types/models/ativos/software.d.ts +1 -1
- package/dist/@types/base/@types/models/ativos/versaoMSOffice.d.ts +1 -1
- package/dist/@types/base/@types/models/index.d.ts +1 -0
- package/dist/@types/base/@types/models/index.d.ts.map +1 -1
- package/dist/@types/base/@types/models/transportadora/contratoFrete.d.ts +1 -0
- package/dist/@types/base/@types/models/transportadora/contratoFrete.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.d.ts +5 -0
- package/dist/@types/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/agendamento.d.ts +57 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/agendamento.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/agendamento/config/agendamentoCrud.d.ts +22 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/agendamentoCrud.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/contratoVenda.d.ts +11 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/contratoVenda.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/listaEmbarque.d.ts +6 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/listaEmbarque.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/local.d.ts +11 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/local.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/motivoCancelamento.d.ts +9 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/motivoCancelamento.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/restricao.d.ts +10 -0
- package/dist/@types/base/configs/endpoints.config/agendamento/config/restricao.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/ativos/ativos.d.ts +70 -0
- package/dist/@types/base/configs/endpoints.config/ativos/ativos.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/ativos/config/ativo.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/ativos/config/ativo.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/ativos/config/documentacao.d.ts +24 -0
- package/dist/@types/base/configs/endpoints.config/ativos/config/documentacao.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/ativos/config/formularioCampos.d.ts +24 -0
- package/dist/@types/base/configs/endpoints.config/ativos/config/formularioCampos.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +129 -13
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/flux/config/grupoAtendimento.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/flux/config/grupoAtendimento.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/flux/flux.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/flux/flux.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/insumos/config/vendas.d.ts +1 -13
- package/dist/@types/base/configs/endpoints.config/insumos/config/vendas.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/insumos/insumos.d.ts +1 -13
- package/dist/@types/base/configs/endpoints.config/insumos/insumos.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.submenu/HubFiscal/hubFiscal.navigation.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/HubFiscal/hubFiscal.navigation.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/ativos/contratos/submenu.contratos.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/ativos/contratos/submenu.contratos.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/ativos.submenu.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/submenu/ativos/cadastros.submenu.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/submenu/ativos/config/ativo.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/config/ativo.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/config/documentacao.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/config/documentacao.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/config/formularioCampos.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/config/formularioCampos.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/contratos.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/ativos/contratos.submenu.d.ts.map +1 -0
- package/dist/@types/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorFornecedorList.d.ts +3 -1
- package/dist/@types/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorFornecedorList.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/ptBR/modules/HubFiscal/hubFiscal.nav.d.ts +9 -0
- package/dist/@types/base/locales/lang/ptBR/modules/HubFiscal/hubFiscal.nav.d.ts.map +1 -0
- package/dist/@types/base/services/http.d.ts +25 -0
- package/dist/@types/base/services/http.d.ts.map +1 -0
- package/dist/@types/base/services/index.d.ts +1 -0
- package/dist/@types/base/services/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/HubFiscal/NfeService.d.ts +2 -0
- package/dist/@types/base/services/modules/HubFiscal/NfeService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/agendamento/AgendamentoService.d.ts +32 -0
- package/dist/@types/base/services/modules/agendamento/AgendamentoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/agendamento/ContratoVendaService.d.ts +18 -0
- package/dist/@types/base/services/modules/agendamento/ContratoVendaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/agendamento/ListaEmbarqueService.d.ts +5 -0
- package/dist/@types/base/services/modules/agendamento/ListaEmbarqueService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/agendamento/LocalService.d.ts +11 -0
- package/dist/@types/base/services/modules/agendamento/LocalService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/agendamento/MotivoCancelamentoService.d.ts +10 -0
- package/dist/@types/base/services/modules/agendamento/MotivoCancelamentoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/agendamento/RestricaoService.d.ts +33 -0
- package/dist/@types/base/services/modules/agendamento/RestricaoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/ativos/ativo/AtivoService.d.ts +9 -0
- package/dist/@types/base/services/modules/ativos/ativo/AtivoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/ativos/documentacao/DocumentacaoService.d.ts +8 -0
- package/dist/@types/base/services/modules/ativos/documentacao/DocumentacaoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/ativos/formularioCampos/FormularioCamposService.d.ts +8 -0
- package/dist/@types/base/services/modules/ativos/formularioCampos/FormularioCamposService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/ativos/index.d.ts +18 -0
- package/dist/@types/base/services/modules/ativos/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/flux/FluxService.d.ts +1 -0
- package/dist/@types/base/services/modules/flux/FluxService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.d.ts +8 -0
- package/dist/@types/base/services/modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.d.ts +4 -0
- package/dist/@types/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.d.ts +4 -0
- package/dist/@types/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.d.ts +6 -0
- package/dist/@types/base/services/modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/insumos/vendas/VendasService.d.ts +1 -4
- package/dist/@types/base/services/modules/insumos/vendas/VendasService.d.ts.map +1 -1
- package/dist/base/@types/models/agendamento/agendamento.js +2 -0
- package/dist/base/@types/models/agendamento/agendamento.js.map +1 -0
- package/dist/base/@types/models/agendamento/contratoVenda.js +2 -0
- package/dist/base/@types/models/agendamento/contratoVenda.js.map +1 -0
- package/dist/base/@types/models/agendamento/janela.js +2 -0
- package/dist/base/@types/models/agendamento/janela.js.map +1 -0
- package/dist/base/@types/models/agendamento/listaEmbarque.js +2 -0
- package/dist/base/@types/models/agendamento/listaEmbarque.js.map +1 -0
- package/dist/base/@types/models/agendamento/local.js +2 -0
- package/dist/base/@types/models/agendamento/local.js.map +1 -0
- package/dist/base/@types/models/agendamento/motivoCancelamento.js +2 -0
- package/dist/base/@types/models/agendamento/motivoCancelamento.js.map +1 -0
- package/dist/base/@types/models/agendamento/restricao.js +2 -0
- package/dist/base/@types/models/agendamento/restricao.js.map +1 -0
- package/dist/base/@types/models/ativos/anexoComponente.js +2 -0
- package/dist/base/@types/models/ativos/anexoComponente.js.map +1 -0
- package/dist/base/@types/models/ativos/ativo.js +2 -0
- package/dist/base/@types/models/ativos/ativo.js.map +1 -0
- package/dist/base/@types/models/ativos/documentacao.js +2 -0
- package/dist/base/@types/models/ativos/documentacao.js.map +1 -0
- package/dist/base/@types/models/ativos/formularioCampos.js +2 -0
- package/dist/base/@types/models/ativos/formularioCampos.js.map +1 -0
- package/dist/base/@types/models/ativos/index.js +22 -0
- package/dist/base/@types/models/ativos/index.js.map +1 -0
- package/dist/base/@types/models/index.js +1 -0
- package/dist/base/@types/models/index.js.map +1 -1
- package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js +8 -0
- package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js.map +1 -0
- package/dist/base/configs/endpoints.config/agendamento/agendamento.js +13 -1
- package/dist/base/configs/endpoints.config/agendamento/agendamento.js.map +1 -1
- package/dist/base/configs/endpoints.config/agendamento/config/agendamentoCrud.js +24 -0
- package/dist/base/configs/endpoints.config/agendamento/config/agendamentoCrud.js.map +1 -0
- package/dist/base/configs/endpoints.config/agendamento/config/contratoVenda.js +13 -0
- package/dist/base/configs/endpoints.config/agendamento/config/contratoVenda.js.map +1 -0
- package/dist/base/configs/endpoints.config/agendamento/config/listaEmbarque.js +8 -0
- package/dist/base/configs/endpoints.config/agendamento/config/listaEmbarque.js.map +1 -0
- package/dist/base/configs/endpoints.config/agendamento/config/local.js +13 -0
- package/dist/base/configs/endpoints.config/agendamento/config/local.js.map +1 -0
- package/dist/base/configs/endpoints.config/agendamento/config/motivoCancelamento.js +11 -0
- package/dist/base/configs/endpoints.config/agendamento/config/motivoCancelamento.js.map +1 -0
- package/dist/base/configs/endpoints.config/agendamento/config/restricao.js +12 -0
- package/dist/base/configs/endpoints.config/agendamento/config/restricao.js.map +1 -0
- package/dist/base/configs/endpoints.config/ativos/ativos.js +6 -0
- package/dist/base/configs/endpoints.config/ativos/ativos.js.map +1 -1
- package/dist/base/configs/endpoints.config/ativos/config/ativo.js +13 -0
- package/dist/base/configs/endpoints.config/ativos/config/ativo.js.map +1 -0
- package/dist/base/configs/endpoints.config/ativos/config/documentacao.js +12 -0
- package/dist/base/configs/endpoints.config/ativos/config/documentacao.js.map +1 -0
- package/dist/base/configs/endpoints.config/ativos/config/formularioCampos.js +12 -0
- package/dist/base/configs/endpoints.config/ativos/config/formularioCampos.js.map +1 -0
- package/dist/base/configs/endpoints.config/flux/config/grupoAtendimento.js +1 -0
- package/dist/base/configs/endpoints.config/flux/config/grupoAtendimento.js.map +1 -1
- package/dist/base/configs/endpoints.config/insumos/config/vendas.js +3 -6
- package/dist/base/configs/endpoints.config/insumos/config/vendas.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.navigation.js +6 -4
- package/dist/base/configs/navigation.config/modules.navigation.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.submenu/HubFiscal/hubFiscal.navigation.js +39 -0
- package/dist/base/configs/navigation.config/modules.submenu/HubFiscal/hubFiscal.navigation.js.map +1 -0
- package/dist/base/configs/navigation.config/modules.submenu/ativos/contratos/submenu.contratos.js +17 -0
- package/dist/base/configs/navigation.config/modules.submenu/ativos/contratos/submenu.contratos.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/ativos/ativos.submenu.js +5 -1
- package/dist/base/configs/navigation.config/submenu/ativos/ativos.submenu.js.map +1 -1
- package/dist/base/configs/navigation.config/submenu/ativos/cadastros.submenu.js +2 -0
- package/dist/base/configs/navigation.config/submenu/ativos/cadastros.submenu.js.map +1 -1
- package/dist/base/configs/navigation.config/submenu/ativos/config/ativo.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/ativos/config/ativo.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/ativos/config/documentacao.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/ativos/config/documentacao.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/ativos/config/formularioCampos.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/ativos/config/formularioCampos.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/ativos/contratos.submenu.js +8 -0
- package/dist/base/configs/navigation.config/submenu/ativos/contratos.submenu.js.map +1 -0
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorFornecedorList.js +4 -2
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorFornecedorList.js.map +1 -1
- package/dist/base/index.js +124 -9
- package/dist/base/index.js.map +1 -1
- package/dist/base/locales/lang/ptBR/modules/HubFiscal/hubFiscal.nav.js +11 -0
- package/dist/base/locales/lang/ptBR/modules/HubFiscal/hubFiscal.nav.js.map +1 -0
- package/dist/base/services/http.js +38 -0
- package/dist/base/services/http.js.map +1 -0
- package/dist/base/services/index.js +124 -9
- package/dist/base/services/index.js.map +1 -1
- package/dist/base/services/modules/HubFiscal/NfeService.js +13 -0
- package/dist/base/services/modules/HubFiscal/NfeService.js.map +1 -0
- package/dist/base/services/modules/agendamento/AgendamentoService.js +200 -0
- package/dist/base/services/modules/agendamento/AgendamentoService.js.map +1 -0
- package/dist/base/services/modules/agendamento/ContratoVendaService.js +108 -0
- package/dist/base/services/modules/agendamento/ContratoVendaService.js.map +1 -0
- package/dist/base/services/modules/agendamento/ListaEmbarqueService.js +29 -0
- package/dist/base/services/modules/agendamento/ListaEmbarqueService.js.map +1 -0
- package/dist/base/services/modules/agendamento/LocalService.js +103 -0
- package/dist/base/services/modules/agendamento/LocalService.js.map +1 -0
- package/dist/base/services/modules/agendamento/MotivoCancelamentoService.js +54 -0
- package/dist/base/services/modules/agendamento/MotivoCancelamentoService.js.map +1 -0
- package/dist/base/services/modules/agendamento/RestricaoService.js +115 -0
- package/dist/base/services/modules/agendamento/RestricaoService.js.map +1 -0
- package/dist/base/services/modules/ativos/ativo/AtivoService.js +52 -0
- package/dist/base/services/modules/ativos/ativo/AtivoService.js.map +1 -0
- package/dist/base/services/modules/ativos/documentacao/DocumentacaoService.js +44 -0
- package/dist/base/services/modules/ativos/documentacao/DocumentacaoService.js.map +1 -0
- package/dist/base/services/modules/ativos/formularioCampos/FormularioCamposService.js +44 -0
- package/dist/base/services/modules/ativos/formularioCampos/FormularioCamposService.js.map +1 -0
- package/dist/base/services/modules/ativos/index.js +110 -1
- package/dist/base/services/modules/ativos/index.js.map +1 -1
- package/dist/base/services/modules/flux/FluxService.js +8 -0
- package/dist/base/services/modules/flux/FluxService.js.map +1 -1
- package/dist/base/services/modules/index.js +119 -9
- package/dist/base/services/modules/index.js.map +1 -1
- package/dist/base/services/modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js +8 -0
- package/dist/base/services/modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js.map +1 -1
- package/dist/base/services/modules/insumos/index.js +10 -9
- package/dist/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.js +18 -0
- package/dist/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.js.map +1 -1
- package/dist/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.js +17 -0
- package/dist/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.js.map +1 -1
- package/dist/base/services/modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js +8 -0
- package/dist/base/services/modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js.map +1 -1
- package/dist/base/services/modules/insumos/vendas/VendasService.js +4 -28
- package/dist/base/services/modules/insumos/vendas/VendasService.js.map +1 -1
- package/lib/@ecme/locales/lang/ptBR/nav.ts +2 -0
- package/lib/@ecme/services/axios/AxiosRequestIntrceptorConfigCallback.ts +15 -0
- package/lib/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.ts +1 -0
- package/lib/base/@types/models/agendamento/agendamento.ts +207 -0
- package/lib/base/@types/models/agendamento/contratoVenda.ts +118 -0
- package/lib/base/@types/models/agendamento/janela.ts +39 -0
- package/lib/base/@types/models/agendamento/listaEmbarque.ts +64 -0
- package/lib/base/@types/models/agendamento/local.ts +68 -0
- package/lib/base/@types/models/agendamento/motivoCancelamento.ts +15 -0
- package/lib/base/@types/models/agendamento/restricao.ts +41 -0
- package/lib/base/@types/models/ativos/{AnexoComponente.ts → anexoComponente.ts} +1 -0
- package/lib/base/@types/models/ativos/ativo.ts +36 -0
- package/lib/base/@types/models/ativos/documentacao.ts +63 -0
- package/lib/base/@types/models/ativos/formularioCampos.ts +23 -0
- package/lib/base/@types/models/ativos/index.ts +22 -0
- package/lib/base/@types/models/ativos/sistemaOperacional.ts +1 -1
- package/lib/base/@types/models/ativos/software.ts +1 -1
- package/lib/base/@types/models/ativos/versaoMSOffice.ts +1 -1
- package/lib/base/@types/models/index.ts +1 -0
- package/lib/base/@types/models/transportadora/contratoFrete.ts +1 -0
- package/lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts +7 -0
- package/lib/base/configs/endpoints.config/agendamento/agendamento.ts +12 -0
- package/lib/base/configs/endpoints.config/agendamento/config/agendamentoCrud.ts +22 -0
- package/lib/base/configs/endpoints.config/agendamento/config/contratoVenda.ts +11 -0
- package/lib/base/configs/endpoints.config/agendamento/config/listaEmbarque.ts +6 -0
- package/lib/base/configs/endpoints.config/agendamento/config/local.ts +11 -0
- package/lib/base/configs/endpoints.config/agendamento/config/motivoCancelamento.ts +9 -0
- package/lib/base/configs/endpoints.config/agendamento/config/restricao.ts +10 -0
- package/lib/base/configs/endpoints.config/ativos/ativos.ts +6 -0
- package/lib/base/configs/endpoints.config/ativos/config/ativo.ts +12 -0
- package/lib/base/configs/endpoints.config/ativos/config/documentacao.ts +11 -0
- package/lib/base/configs/endpoints.config/ativos/config/formularioCampos.ts +11 -0
- package/lib/base/configs/endpoints.config/flux/config/grupoAtendimento.ts +1 -0
- package/lib/base/configs/endpoints.config/insumos/config/vendas.ts +3 -6
- package/lib/base/configs/navigation.config/modules.navigation.ts +5 -3
- package/lib/base/configs/navigation.config/modules.submenu/HubFiscal/hubFiscal.navigation.ts +43 -0
- package/lib/base/configs/navigation.config/modules.submenu/ativos/contratos/submenu.contratos.ts +17 -0
- package/lib/base/configs/navigation.config/submenu/ativos/ativos.submenu.ts +4 -0
- package/lib/base/configs/navigation.config/submenu/ativos/cadastros.submenu.ts +2 -0
- package/lib/base/configs/navigation.config/submenu/ativos/config/ativo.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/ativos/config/documentacao.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/ativos/config/formularioCampos.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/ativos/contratos.submenu.ts +8 -0
- package/lib/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorFornecedorList.tsx +11 -3
- package/lib/base/locales/lang/ptBR/modules/HubFiscal/hubFiscal.nav.ts +8 -0
- package/lib/base/services/http.ts +47 -0
- package/lib/base/services/index.ts +3 -0
- package/lib/base/services/modules/HubFiscal/NfeService.ts +10 -0
- package/lib/base/services/modules/agendamento/AgendamentoService.ts +234 -0
- package/lib/base/services/modules/agendamento/ContratoVendaService.ts +112 -0
- package/lib/base/services/modules/agendamento/ListaEmbarqueService.ts +34 -0
- package/lib/base/services/modules/agendamento/LocalService.ts +107 -0
- package/lib/base/services/modules/agendamento/MotivoCancelamentoService.ts +60 -0
- package/lib/base/services/modules/agendamento/RestricaoService.ts +155 -0
- package/lib/base/services/modules/ativos/ativo/AtivoService.ts +52 -0
- package/lib/base/services/modules/ativos/documentacao/DocumentacaoService.ts +44 -0
- package/lib/base/services/modules/ativos/formularioCampos/FormularioCamposService.ts +44 -0
- package/lib/base/services/modules/ativos/index.ts +19 -1
- package/lib/base/services/modules/flux/FluxService.ts +8 -0
- package/lib/base/services/modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.ts +15 -0
- package/lib/base/services/modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.ts +22 -0
- package/lib/base/services/modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.ts +21 -0
- package/lib/base/services/modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.ts +13 -0
- package/lib/base/services/modules/insumos/vendas/VendasService.ts +3 -27
- package/package.json +1 -1
- package/dist/base/@types/models/ativos/AnexoComponente.js +0 -2
- package/dist/base/@types/models/ativos/AnexoComponente.js.map +0 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import "../../../configs/index.js";
|
|
2
|
+
import ApiService from "../../../../@ecme/services/ApiService.js";
|
|
3
|
+
import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
|
|
4
|
+
async function apiFindContratoSaldo(params) {
|
|
5
|
+
const queryParams = new URLSearchParams();
|
|
6
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
7
|
+
if (Array.isArray(value)) {
|
|
8
|
+
value.forEach((item) => queryParams.append(key, String(item)));
|
|
9
|
+
} else if (value !== void 0 && value !== null) {
|
|
10
|
+
queryParams.append(key, String(value));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return ApiService.fetchDataWithAxios({
|
|
14
|
+
url: `${endpointNavigationConfig.agendamento.contratoVenda.findAll}?${queryParams.toString()}`,
|
|
15
|
+
method: "get"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
async function apiGetContratoVendaById(id) {
|
|
19
|
+
return ApiService.fetchDataWithAxios({
|
|
20
|
+
url: `${endpointNavigationConfig.agendamento.contratoVenda.findOne}/${id}`,
|
|
21
|
+
method: "get"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function apiFindContratosComSaldoPorCliente(clienteId) {
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: `${endpointNavigationConfig.agendamento.contratoVenda.comSaldoByCliente}/${clienteId}`,
|
|
27
|
+
method: "get"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function apiFindAllContratos(params) {
|
|
31
|
+
return ApiService.fetchDataWithAxios({
|
|
32
|
+
url: endpointNavigationConfig.agendamento.contratoVenda.findContratos,
|
|
33
|
+
method: "post",
|
|
34
|
+
data: params
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async function apiFindACDVendasContrato(contratoNumero) {
|
|
38
|
+
return ApiService.fetchDataWithAxios({
|
|
39
|
+
url: endpointNavigationConfig.agendamento.contratoVenda.findContratos,
|
|
40
|
+
method: "post",
|
|
41
|
+
data: {
|
|
42
|
+
pageNumber: 1,
|
|
43
|
+
pageSize: 1,
|
|
44
|
+
filter: { contratoNumero }
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
async function apiGetRelatorioCotas(body) {
|
|
49
|
+
return ApiService.fetchDataWithAxios({
|
|
50
|
+
url: endpointNavigationConfig.agendamento.contratoVenda.relatorioCotas,
|
|
51
|
+
method: "post",
|
|
52
|
+
data: body
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async function apiGetContratosPeriodo(filter) {
|
|
56
|
+
return ApiService.fetchDataWithAxios({
|
|
57
|
+
url: endpointNavigationConfig.agendamento.contratoVenda.periodo,
|
|
58
|
+
method: "post",
|
|
59
|
+
data: filter
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async function apiGetContratosPeriodoCapacidade(filter) {
|
|
63
|
+
return ApiService.fetchDataWithAxios({
|
|
64
|
+
url: endpointNavigationConfig.agendamento.contratoVenda.periodoCapacidade,
|
|
65
|
+
method: "post",
|
|
66
|
+
data: filter
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
async function apiGetAgendamentosContrato(params) {
|
|
70
|
+
return ApiService.fetchDataWithAxios({
|
|
71
|
+
url: "/agendamento/api-carga-descarga/agendamentos",
|
|
72
|
+
method: "post",
|
|
73
|
+
data: params
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
async function apiGetCalendarioContrato(localId) {
|
|
77
|
+
const response = await ApiService.fetchDataWithAxios({
|
|
78
|
+
url: "/agendamento/api-carga-descarga/calendarios",
|
|
79
|
+
method: "post",
|
|
80
|
+
data: {
|
|
81
|
+
filter: { "local.id": localId },
|
|
82
|
+
pageNumber: 1,
|
|
83
|
+
pageSize: 1
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
return response.content?.[0] || null;
|
|
87
|
+
}
|
|
88
|
+
async function apiGetLocaisContrato() {
|
|
89
|
+
const response = await ApiService.fetchDataWithAxios({
|
|
90
|
+
url: endpointNavigationConfig.agendamento.local.findAll,
|
|
91
|
+
method: "GET"
|
|
92
|
+
});
|
|
93
|
+
return response.content || [];
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
apiFindACDVendasContrato,
|
|
97
|
+
apiFindAllContratos,
|
|
98
|
+
apiFindContratoSaldo,
|
|
99
|
+
apiFindContratosComSaldoPorCliente,
|
|
100
|
+
apiGetAgendamentosContrato,
|
|
101
|
+
apiGetCalendarioContrato,
|
|
102
|
+
apiGetContratoVendaById,
|
|
103
|
+
apiGetContratosPeriodo,
|
|
104
|
+
apiGetContratosPeriodoCapacidade,
|
|
105
|
+
apiGetLocaisContrato,
|
|
106
|
+
apiGetRelatorioCotas
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=ContratoVendaService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContratoVendaService.js","sources":["../../../../../lib/base/services/modules/agendamento/ContratoVendaService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { TContratoVenda, TRelatorioCota } from '@base/@types/models/agendamento/contratoVenda'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiFindContratoSaldo(params: Record<string, unknown>) {\n const queryParams = new URLSearchParams()\n\n Object.entries(params).forEach(([key, value]) => {\n if (Array.isArray(value)) {\n value.forEach((item) => queryParams.append(key, String(item)))\n } else if (value !== undefined && value !== null) {\n queryParams.append(key, String(value))\n }\n })\n\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoVenda>>({\n url: `${endpointsConfig.agendamento.contratoVenda.findAll}?${queryParams.toString()}`,\n method: 'get',\n })\n}\n\nexport async function apiGetContratoVendaById(id: string | number) {\n return ApiService.fetchDataWithAxios<TContratoVenda>({\n url: `${endpointsConfig.agendamento.contratoVenda.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiFindContratosComSaldoPorCliente(clienteId: string | number) {\n return ApiService.fetchDataWithAxios<TContratoVenda[]>({\n url: `${endpointsConfig.agendamento.contratoVenda.comSaldoByCliente}/${clienteId}`,\n method: 'get',\n })\n}\n\nexport async function apiFindAllContratos(params: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoVenda>>({\n url: endpointsConfig.agendamento.contratoVenda.findContratos,\n method: 'post',\n data: params,\n })\n}\n\nexport async function apiFindACDVendasContrato(contratoNumero: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoVenda>>({\n url: endpointsConfig.agendamento.contratoVenda.findContratos,\n method: 'post',\n data: {\n pageNumber: 1,\n pageSize: 1,\n filter: { contratoNumero },\n },\n })\n}\n\nexport async function apiGetRelatorioCotas(body: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TRelatorioCota>>({\n url: endpointsConfig.agendamento.contratoVenda.relatorioCotas,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetContratosPeriodo(filter: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<Record<string, unknown>[]>({\n url: endpointsConfig.agendamento.contratoVenda.periodo,\n method: 'post',\n data: filter,\n })\n}\n\nexport async function apiGetContratosPeriodoCapacidade(filter: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<Record<string, unknown>[]>({\n url: endpointsConfig.agendamento.contratoVenda.periodoCapacidade,\n method: 'post',\n data: filter,\n })\n}\n\nexport async function apiGetAgendamentosContrato(params: {\n pageNumber: number\n pageSize: number\n filter: Record<string, unknown>\n}) {\n return ApiService.fetchDataWithAxios<TQueryResponse<Record<string, unknown>>>({\n url: '/agendamento/api-carga-descarga/agendamentos',\n method: 'post',\n data: params,\n })\n}\n\nexport async function apiGetCalendarioContrato(localId: number) {\n const response = await ApiService.fetchDataWithAxios<TQueryResponse<Record<string, unknown>>>({\n url: '/agendamento/api-carga-descarga/calendarios',\n method: 'post',\n data: {\n filter: { 'local.id': localId },\n pageNumber: 1,\n pageSize: 1,\n },\n })\n return response.content?.[0] || null\n}\n\nexport async function apiGetLocaisContrato() {\n const response = await ApiService.fetchDataWithAxios<TQueryResponse<Record<string, unknown>>>({\n url: endpointsConfig.agendamento.local.findAll,\n method: 'GET',\n })\n return response.content || []\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAKA,eAAsB,qBAAqB,QAAiC;AAC1E,QAAM,cAAc,IAAI,gBAAA;AAExB,SAAO,QAAQ,MAAM,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAC/C,QAAI,MAAM,QAAQ,KAAK,GAAG;AACxB,YAAM,QAAQ,CAAC,SAAS,YAAY,OAAO,KAAK,OAAO,IAAI,CAAC,CAAC;AAAA,IAC/D,WAAW,UAAU,UAAa,UAAU,MAAM;AAChD,kBAAY,OAAO,KAAK,OAAO,KAAK,CAAC;AAAA,IACvC;AAAA,EACF,CAAC;AAED,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAK,GAAGA,yBAAgB,YAAY,cAAc,OAAO,IAAI,YAAY,SAAA,CAAU;AAAA,IACnF,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,wBAAwB,IAAqB;AACjE,SAAO,WAAW,mBAAmC;AAAA,IACnD,KAAK,GAAGA,yBAAgB,YAAY,cAAc,OAAO,IAAI,EAAE;AAAA,IAC/D,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,mCAAmC,WAA4B;AACnF,SAAO,WAAW,mBAAqC;AAAA,IACrD,KAAK,GAAGA,yBAAgB,YAAY,cAAc,iBAAiB,IAAI,SAAS;AAAA,IAChF,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,oBAAoB,QAAiC;AACzE,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAKA,yBAAgB,YAAY,cAAc;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,yBAAyB,gBAAwB;AACrE,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAKA,yBAAgB,YAAY,cAAc;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,QAAQ,EAAE,eAAA;AAAA,IAAe;AAAA,EAC3B,CACD;AACH;AAEA,eAAsB,qBAAqB,MAAqB;AAC9D,SAAO,WAAW,mBAAmD;AAAA,IACnE,KAAKA,yBAAgB,YAAY,cAAc;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,uBAAuB,QAAiC;AAC5E,SAAO,WAAW,mBAA8C;AAAA,IAC9D,KAAKA,yBAAgB,YAAY,cAAc;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,iCAAiC,QAAiC;AACtF,SAAO,WAAW,mBAA8C;AAAA,IAC9D,KAAKA,yBAAgB,YAAY,cAAc;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,2BAA2B,QAI9C;AACD,SAAO,WAAW,mBAA4D;AAAA,IAC5E,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,yBAAyB,SAAiB;AAC9D,QAAM,WAAW,MAAM,WAAW,mBAA4D;AAAA,IAC5F,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,QAAQ,EAAE,YAAY,QAAA;AAAA,MACtB,YAAY;AAAA,MACZ,UAAU;AAAA,IAAA;AAAA,EACZ,CACD;AACD,SAAO,SAAS,UAAU,CAAC,KAAK;AAClC;AAEA,eAAsB,uBAAuB;AAC3C,QAAM,WAAW,MAAM,WAAW,mBAA4D;AAAA,IAC5F,KAAKA,yBAAgB,YAAY,MAAM;AAAA,IACvC,QAAQ;AAAA,EAAA,CACT;AACD,SAAO,SAAS,WAAW,CAAA;AAC7B;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "../../../configs/index.js";
|
|
2
|
+
import ApiService from "../../../../@ecme/services/ApiService.js";
|
|
3
|
+
import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
|
|
4
|
+
async function apiFindListaEmbarque(filter) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: endpointNavigationConfig.agendamento.listaEmbarque.find,
|
|
7
|
+
method: "post",
|
|
8
|
+
data: filter
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
async function apiBuscarEventosAgendamento(agendamentoId) {
|
|
12
|
+
return ApiService.fetchDataWithAxios({
|
|
13
|
+
url: `${endpointNavigationConfig.agendamento.listaEmbarque.eventos}/${agendamentoId}/eventos`,
|
|
14
|
+
method: "get"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiRegistrarEvento(agendamentoId, evento) {
|
|
18
|
+
return ApiService.fetchDataWithAxios({
|
|
19
|
+
url: `${endpointNavigationConfig.agendamento.listaEmbarque.eventos}/${agendamentoId}/eventos`,
|
|
20
|
+
method: "post",
|
|
21
|
+
data: evento
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
apiBuscarEventosAgendamento,
|
|
26
|
+
apiFindListaEmbarque,
|
|
27
|
+
apiRegistrarEvento
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=ListaEmbarqueService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListaEmbarqueService.js","sources":["../../../../../lib/base/services/modules/agendamento/ListaEmbarqueService.ts"],"sourcesContent":["import {\n TItemListaEmbarque,\n TListaEmbarqueRequest,\n TEventoAgendamento,\n TRegistrarEventoRequest,\n} from '@base/@types/models/agendamento/listaEmbarque'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiFindListaEmbarque(filter: TListaEmbarqueRequest) {\n return ApiService.fetchDataWithAxios<TItemListaEmbarque[]>({\n url: endpointsConfig.agendamento.listaEmbarque.find,\n method: 'post',\n data: filter,\n })\n}\n\nexport async function apiBuscarEventosAgendamento(agendamentoId: number) {\n return ApiService.fetchDataWithAxios<TEventoAgendamento>({\n url: `${endpointsConfig.agendamento.listaEmbarque.eventos}/${agendamentoId}/eventos`,\n method: 'get',\n })\n}\n\nexport async function apiRegistrarEvento(\n agendamentoId: number,\n evento: TRegistrarEventoRequest,\n) {\n return ApiService.fetchDataWithAxios<TEventoAgendamento>({\n url: `${endpointsConfig.agendamento.listaEmbarque.eventos}/${agendamentoId}/eventos`,\n method: 'post',\n data: evento,\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AASA,eAAsB,qBAAqB,QAA+B;AACxE,SAAO,WAAW,mBAAyC;AAAA,IACzD,KAAKA,yBAAgB,YAAY,cAAc;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,4BAA4B,eAAuB;AACvE,SAAO,WAAW,mBAAuC;AAAA,IACvD,KAAK,GAAGA,yBAAgB,YAAY,cAAc,OAAO,IAAI,aAAa;AAAA,IAC1E,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,mBACpB,eACA,QACA;AACA,SAAO,WAAW,mBAAuC;AAAA,IACvD,KAAK,GAAGA,yBAAgB,YAAY,cAAc,OAAO,IAAI,aAAa;AAAA,IAC1E,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import "../../../configs/index.js";
|
|
2
|
+
import ApiService from "../../../../@ecme/services/ApiService.js";
|
|
3
|
+
import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
|
|
4
|
+
async function apiGetLocals(body) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: endpointNavigationConfig.agendamento.local.findAll,
|
|
7
|
+
method: "get",
|
|
8
|
+
params: body
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
async function apiGetLocalById(id) {
|
|
12
|
+
return ApiService.fetchDataWithAxios({
|
|
13
|
+
url: `${endpointNavigationConfig.agendamento.local.findOne}/${id}`,
|
|
14
|
+
method: "get"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiCreateLocal(data) {
|
|
18
|
+
const createLocalRequest = {
|
|
19
|
+
descricao: data.descricao,
|
|
20
|
+
tempoOperacao: data.tempoOperacao,
|
|
21
|
+
cotaOperacao: data.cotaOperacao,
|
|
22
|
+
permitirChamadaUsina: data.permitirChamadaUsina,
|
|
23
|
+
permitirCarregamento: data.permitirCarregamento,
|
|
24
|
+
centroId: data.centroId,
|
|
25
|
+
dataInicial: data.dataInicial,
|
|
26
|
+
dataFinal: data.dataFinal,
|
|
27
|
+
calendarioJanelas: data.calendarioJanelas.map((janela) => ({
|
|
28
|
+
data: janela.data,
|
|
29
|
+
horaInicial: janela.horaInicial,
|
|
30
|
+
horaFinal: janela.horaFinal,
|
|
31
|
+
habilitadoOperacao: janela.habilitadoOperacao
|
|
32
|
+
}))
|
|
33
|
+
};
|
|
34
|
+
if (data.resumoSemanal && data.resumoSemanal.length > 0) {
|
|
35
|
+
createLocalRequest.resumoSemanal = data.resumoSemanal.map((slot) => ({
|
|
36
|
+
diaSemana: slot.diaSemana,
|
|
37
|
+
horaInicial: slot.horaInicial,
|
|
38
|
+
horaFinal: slot.horaFinal,
|
|
39
|
+
habilitado: slot.habilitado
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
return ApiService.fetchDataWithAxios({
|
|
43
|
+
url: endpointNavigationConfig.agendamento.local.add,
|
|
44
|
+
method: "post",
|
|
45
|
+
data: createLocalRequest
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
async function apiUpdateLocal(id, data) {
|
|
49
|
+
const updateLocalRequest = {
|
|
50
|
+
tempoOperacao: data.tempoOperacao,
|
|
51
|
+
cotaOperacao: data.cotaOperacao,
|
|
52
|
+
permitirChamadaUsina: data.permitirChamadaUsina,
|
|
53
|
+
permitirCarregamento: data.permitirCarregamento,
|
|
54
|
+
dataInicial: data.dataInicial,
|
|
55
|
+
dataFinal: data.dataFinal
|
|
56
|
+
};
|
|
57
|
+
if (data.resumoSemanal && data.resumoSemanal.length > 0) {
|
|
58
|
+
updateLocalRequest.resumoSemanal = data.resumoSemanal.map((slot) => ({
|
|
59
|
+
diaSemana: slot.diaSemana,
|
|
60
|
+
horaInicial: slot.horaInicial,
|
|
61
|
+
horaFinal: slot.horaFinal,
|
|
62
|
+
habilitado: slot.habilitado
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
return ApiService.fetchDataWithAxios({
|
|
66
|
+
url: `${endpointNavigationConfig.agendamento.local.update}/${id}`,
|
|
67
|
+
method: "patch",
|
|
68
|
+
data: updateLocalRequest
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
async function apiGetJanelas(body) {
|
|
72
|
+
return ApiService.fetchDataWithAxios({
|
|
73
|
+
url: endpointNavigationConfig.agendamento.local.janelas,
|
|
74
|
+
method: "get",
|
|
75
|
+
params: body
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
async function apiGetJanelaById(id) {
|
|
79
|
+
return ApiService.fetchDataWithAxios({
|
|
80
|
+
url: `${endpointNavigationConfig.agendamento.local.findOneJanela}/${id}`,
|
|
81
|
+
method: "get"
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
async function apiUpdateJanela(id, data) {
|
|
85
|
+
const payload = {
|
|
86
|
+
habilitadoOperacao: data.janela.habilitadoOperacao
|
|
87
|
+
};
|
|
88
|
+
return ApiService.fetchDataWithAxios({
|
|
89
|
+
url: `${endpointNavigationConfig.agendamento.local.updateJanela}/${id}`,
|
|
90
|
+
method: "put",
|
|
91
|
+
data: payload
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
apiCreateLocal,
|
|
96
|
+
apiGetJanelaById,
|
|
97
|
+
apiGetJanelas,
|
|
98
|
+
apiGetLocalById,
|
|
99
|
+
apiGetLocals,
|
|
100
|
+
apiUpdateJanela,
|
|
101
|
+
apiUpdateLocal
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=LocalService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalService.js","sources":["../../../../../lib/base/services/modules/agendamento/LocalService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { TLocal, TLocalFormSchema } from '@base/@types/models/agendamento/local'\nimport { TJanela, TJanelaFormSchema } from '@base/@types/models/agendamento/janela'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetLocals(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TLocal>>({\n url: endpointsConfig.agendamento.local.findAll,\n method: 'get',\n params: body,\n })\n}\n\nexport async function apiGetLocalById(id: string | number) {\n return ApiService.fetchDataWithAxios<TLocal>({\n url: `${endpointsConfig.agendamento.local.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiCreateLocal(data: TLocalFormSchema) {\n const createLocalRequest: Record<string, unknown> = {\n descricao: data.descricao,\n tempoOperacao: data.tempoOperacao,\n cotaOperacao: data.cotaOperacao,\n permitirChamadaUsina: data.permitirChamadaUsina,\n permitirCarregamento: data.permitirCarregamento,\n centroId: data.centroId,\n dataInicial: data.dataInicial,\n dataFinal: data.dataFinal,\n calendarioJanelas: data.calendarioJanelas.map((janela) => ({\n data: janela.data,\n horaInicial: janela.horaInicial,\n horaFinal: janela.horaFinal,\n habilitadoOperacao: janela.habilitadoOperacao,\n })),\n }\n\n if (data.resumoSemanal && data.resumoSemanal.length > 0) {\n createLocalRequest.resumoSemanal = data.resumoSemanal.map((slot) => ({\n diaSemana: slot.diaSemana,\n horaInicial: slot.horaInicial,\n horaFinal: slot.horaFinal,\n habilitado: slot.habilitado,\n }))\n }\n\n return ApiService.fetchDataWithAxios<TLocal>({\n url: endpointsConfig.agendamento.local.add,\n method: 'post',\n data: createLocalRequest,\n })\n}\n\nexport async function apiUpdateLocal(id: string | number, data: TLocalFormSchema) {\n const updateLocalRequest: Record<string, unknown> = {\n tempoOperacao: data.tempoOperacao,\n cotaOperacao: data.cotaOperacao,\n permitirChamadaUsina: data.permitirChamadaUsina,\n permitirCarregamento: data.permitirCarregamento,\n dataInicial: data.dataInicial,\n dataFinal: data.dataFinal,\n }\n\n if (data.resumoSemanal && data.resumoSemanal.length > 0) {\n updateLocalRequest.resumoSemanal = data.resumoSemanal.map((slot) => ({\n diaSemana: slot.diaSemana,\n horaInicial: slot.horaInicial,\n horaFinal: slot.horaFinal,\n habilitado: slot.habilitado,\n }))\n }\n\n return ApiService.fetchDataWithAxios<TLocal>({\n url: `${endpointsConfig.agendamento.local.update}/${id}`,\n method: 'patch',\n data: updateLocalRequest,\n })\n}\n\nexport async function apiGetJanelas(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TJanela>>({\n url: endpointsConfig.agendamento.local.janelas,\n method: 'get',\n params: body,\n })\n}\n\nexport async function apiGetJanelaById(id: string) {\n return ApiService.fetchDataWithAxios<TJanela>({\n url: `${endpointsConfig.agendamento.local.findOneJanela}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiUpdateJanela(id: string, data: TJanelaFormSchema) {\n const payload = {\n habilitadoOperacao: data.janela.habilitadoOperacao,\n }\n\n return ApiService.fetchDataWithAxios<TJanela>({\n url: `${endpointsConfig.agendamento.local.updateJanela}/${id}`,\n method: 'put',\n data: payload,\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAMA,eAAsB,aAAa,MAAsB;AACvD,SAAO,WAAW,mBAA2C;AAAA,IAC3D,KAAKA,yBAAgB,YAAY,MAAM;AAAA,IACvC,QAAQ;AAAA,IACR,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,gBAAgB,IAAqB;AACzD,SAAO,WAAW,mBAA2B;AAAA,IAC3C,KAAK,GAAGA,yBAAgB,YAAY,MAAM,OAAO,IAAI,EAAE;AAAA,IACvD,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,eAAe,MAAwB;AAC3D,QAAM,qBAA8C;AAAA,IAClD,WAAW,KAAK;AAAA,IAChB,eAAe,KAAK;AAAA,IACpB,cAAc,KAAK;AAAA,IACnB,sBAAsB,KAAK;AAAA,IAC3B,sBAAsB,KAAK;AAAA,IAC3B,UAAU,KAAK;AAAA,IACf,aAAa,KAAK;AAAA,IAClB,WAAW,KAAK;AAAA,IAChB,mBAAmB,KAAK,kBAAkB,IAAI,CAAC,YAAY;AAAA,MACzD,MAAM,OAAO;AAAA,MACb,aAAa,OAAO;AAAA,MACpB,WAAW,OAAO;AAAA,MAClB,oBAAoB,OAAO;AAAA,IAAA,EAC3B;AAAA,EAAA;AAGJ,MAAI,KAAK,iBAAiB,KAAK,cAAc,SAAS,GAAG;AACvD,uBAAmB,gBAAgB,KAAK,cAAc,IAAI,CAAC,UAAU;AAAA,MACnE,WAAW,KAAK;AAAA,MAChB,aAAa,KAAK;AAAA,MAClB,WAAW,KAAK;AAAA,MAChB,YAAY,KAAK;AAAA,IAAA,EACjB;AAAA,EACJ;AAEA,SAAO,WAAW,mBAA2B;AAAA,IAC3C,KAAKA,yBAAgB,YAAY,MAAM;AAAA,IACvC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,eAAe,IAAqB,MAAwB;AAChF,QAAM,qBAA8C;AAAA,IAClD,eAAe,KAAK;AAAA,IACpB,cAAc,KAAK;AAAA,IACnB,sBAAsB,KAAK;AAAA,IAC3B,sBAAsB,KAAK;AAAA,IAC3B,aAAa,KAAK;AAAA,IAClB,WAAW,KAAK;AAAA,EAAA;AAGlB,MAAI,KAAK,iBAAiB,KAAK,cAAc,SAAS,GAAG;AACvD,uBAAmB,gBAAgB,KAAK,cAAc,IAAI,CAAC,UAAU;AAAA,MACnE,WAAW,KAAK;AAAA,MAChB,aAAa,KAAK;AAAA,MAClB,WAAW,KAAK;AAAA,MAChB,YAAY,KAAK;AAAA,IAAA,EACjB;AAAA,EACJ;AAEA,SAAO,WAAW,mBAA2B;AAAA,IAC3C,KAAK,GAAGA,yBAAgB,YAAY,MAAM,MAAM,IAAI,EAAE;AAAA,IACtD,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,cAAc,MAAsB;AACxD,SAAO,WAAW,mBAA4C;AAAA,IAC5D,KAAKA,yBAAgB,YAAY,MAAM;AAAA,IACvC,QAAQ;AAAA,IACR,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,iBAAiB,IAAY;AACjD,SAAO,WAAW,mBAA4B;AAAA,IAC5C,KAAK,GAAGA,yBAAgB,YAAY,MAAM,aAAa,IAAI,EAAE;AAAA,IAC7D,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,gBAAgB,IAAY,MAAyB;AACzE,QAAM,UAAU;AAAA,IACd,oBAAoB,KAAK,OAAO;AAAA,EAAA;AAGlC,SAAO,WAAW,mBAA4B;AAAA,IAC5C,KAAK,GAAGA,yBAAgB,YAAY,MAAM,YAAY,IAAI,EAAE;AAAA,IAC5D,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "../../../configs/index.js";
|
|
2
|
+
import ApiService from "../../../../@ecme/services/ApiService.js";
|
|
3
|
+
import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
|
|
4
|
+
async function apiGetMotivosCancelamento(body) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: endpointNavigationConfig.agendamento.motivoCancelamento.findAll,
|
|
7
|
+
method: "get",
|
|
8
|
+
params: body
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
async function apiGetMotivoCancelamentoById(id) {
|
|
12
|
+
return ApiService.fetchDataWithAxios({
|
|
13
|
+
url: `${endpointNavigationConfig.agendamento.motivoCancelamento.findOne}/${id}`,
|
|
14
|
+
method: "get"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiCreateMotivoCancelamento(data) {
|
|
18
|
+
const createRequest = {
|
|
19
|
+
descricao: data.descricao,
|
|
20
|
+
ativo: data.ativo,
|
|
21
|
+
visivel: data.visivel
|
|
22
|
+
};
|
|
23
|
+
return ApiService.fetchDataWithAxios({
|
|
24
|
+
url: endpointNavigationConfig.agendamento.motivoCancelamento.add,
|
|
25
|
+
method: "post",
|
|
26
|
+
data: createRequest
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async function apiUpdateMotivoCancelamento(id, data) {
|
|
30
|
+
const updateRequest = {
|
|
31
|
+
descricao: data.descricao,
|
|
32
|
+
ativo: data.ativo,
|
|
33
|
+
visivel: data.visivel
|
|
34
|
+
};
|
|
35
|
+
return ApiService.fetchDataWithAxios({
|
|
36
|
+
url: `${endpointNavigationConfig.agendamento.motivoCancelamento.update}/${id}`,
|
|
37
|
+
method: "put",
|
|
38
|
+
data: updateRequest
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async function apiDeleteMotivoCancelamento(id) {
|
|
42
|
+
return ApiService.fetchDataWithAxios({
|
|
43
|
+
url: `${endpointNavigationConfig.agendamento.motivoCancelamento.delete}/${id}`,
|
|
44
|
+
method: "delete"
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
apiCreateMotivoCancelamento,
|
|
49
|
+
apiDeleteMotivoCancelamento,
|
|
50
|
+
apiGetMotivoCancelamentoById,
|
|
51
|
+
apiGetMotivosCancelamento,
|
|
52
|
+
apiUpdateMotivoCancelamento
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=MotivoCancelamentoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MotivoCancelamentoService.js","sources":["../../../../../lib/base/services/modules/agendamento/MotivoCancelamentoService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport {\n TMotivoCancelamento,\n TMotivoCancelamentoFormSchema,\n} from '@base/@types/models/agendamento/motivoCancelamento'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetMotivosCancelamento(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<{ data: TQueryResponse<TMotivoCancelamento> }>({\n url: endpointsConfig.agendamento.motivoCancelamento.findAll,\n method: 'get',\n params: body,\n })\n}\n\nexport async function apiGetMotivoCancelamentoById(id: string | number) {\n return ApiService.fetchDataWithAxios<TMotivoCancelamento>({\n url: `${endpointsConfig.agendamento.motivoCancelamento.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiCreateMotivoCancelamento(data: TMotivoCancelamentoFormSchema) {\n const createRequest = {\n descricao: data.descricao,\n ativo: data.ativo,\n visivel: data.visivel,\n }\n\n return ApiService.fetchDataWithAxios({\n url: endpointsConfig.agendamento.motivoCancelamento.add,\n method: 'post',\n data: createRequest,\n })\n}\n\nexport async function apiUpdateMotivoCancelamento(\n id: string | number,\n data: TMotivoCancelamentoFormSchema,\n) {\n const updateRequest = {\n descricao: data.descricao,\n ativo: data.ativo,\n visivel: data.visivel,\n }\n\n return ApiService.fetchDataWithAxios({\n url: `${endpointsConfig.agendamento.motivoCancelamento.update}/${id}`,\n method: 'put',\n data: updateRequest,\n })\n}\n\nexport async function apiDeleteMotivoCancelamento(id: string | number) {\n return ApiService.fetchDataWithAxios({\n url: `${endpointsConfig.agendamento.motivoCancelamento.delete}/${id}`,\n method: 'delete',\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAQA,eAAsB,0BAA0B,MAAsB;AACpE,SAAO,WAAW,mBAAkE;AAAA,IAClF,KAAKA,yBAAgB,YAAY,mBAAmB;AAAA,IACpD,QAAQ;AAAA,IACR,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,6BAA6B,IAAqB;AACtE,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAK,GAAGA,yBAAgB,YAAY,mBAAmB,OAAO,IAAI,EAAE;AAAA,IACpE,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,4BAA4B,MAAqC;AACrF,QAAM,gBAAgB;AAAA,IACpB,WAAW,KAAK;AAAA,IAChB,OAAO,KAAK;AAAA,IACZ,SAAS,KAAK;AAAA,EAAA;AAGhB,SAAO,WAAW,mBAAmB;AAAA,IACnC,KAAKA,yBAAgB,YAAY,mBAAmB;AAAA,IACpD,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,4BACpB,IACA,MACA;AACA,QAAM,gBAAgB;AAAA,IACpB,WAAW,KAAK;AAAA,IAChB,OAAO,KAAK;AAAA,IACZ,SAAS,KAAK;AAAA,EAAA;AAGhB,SAAO,WAAW,mBAAmB;AAAA,IACnC,KAAK,GAAGA,yBAAgB,YAAY,mBAAmB,MAAM,IAAI,EAAE;AAAA,IACnE,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,4BAA4B,IAAqB;AACrE,SAAO,WAAW,mBAAmB;AAAA,IACnC,KAAK,GAAGA,yBAAgB,YAAY,mBAAmB,MAAM,IAAI,EAAE;AAAA,IACnE,QAAQ;AAAA,EAAA,CACT;AACH;"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import "../../../configs/index.js";
|
|
2
|
+
import ApiService from "../../../../@ecme/services/ApiService.js";
|
|
3
|
+
import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
|
|
4
|
+
async function apiGetAgendamentoRestricoes() {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: endpointNavigationConfig.agendamento.restricao.findAll,
|
|
7
|
+
method: "get"
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
async function apiFindAgendamentoRestricoes(params) {
|
|
11
|
+
return ApiService.fetchDataWithAxios({
|
|
12
|
+
url: endpointNavigationConfig.agendamento.restricao.findAll,
|
|
13
|
+
method: "get",
|
|
14
|
+
params
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiGetAgendamentoRestricaoById(id) {
|
|
18
|
+
return ApiService.fetchDataWithAxios({
|
|
19
|
+
url: `${endpointNavigationConfig.agendamento.restricao.findOne}/${id}`,
|
|
20
|
+
method: "get"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
async function apiCreateRestricaoVeiculo(data) {
|
|
24
|
+
const createRequest = {
|
|
25
|
+
tipo: "VEICULO",
|
|
26
|
+
veiculoId: data.veiculoId,
|
|
27
|
+
justificativa: data.justificativa,
|
|
28
|
+
ativo: data.ativo
|
|
29
|
+
};
|
|
30
|
+
return ApiService.fetchDataWithAxios({
|
|
31
|
+
url: endpointNavigationConfig.agendamento.restricao.add,
|
|
32
|
+
method: "post",
|
|
33
|
+
data: createRequest
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async function apiUpdateRestricaoVeiculo(id, data) {
|
|
37
|
+
const updateRequest = {
|
|
38
|
+
tipo: "VEICULO",
|
|
39
|
+
veiculoId: data.veiculoId,
|
|
40
|
+
justificativa: data.justificativa,
|
|
41
|
+
ativo: data.ativo
|
|
42
|
+
};
|
|
43
|
+
return ApiService.fetchDataWithAxios({
|
|
44
|
+
url: `${endpointNavigationConfig.agendamento.restricao.update}/${id}`,
|
|
45
|
+
method: "put",
|
|
46
|
+
data: updateRequest
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async function apiCreateRestricaoMotorista(data) {
|
|
50
|
+
const createRequest = {
|
|
51
|
+
tipo: "MOTORISTA",
|
|
52
|
+
motoristaId: data.motoristaId,
|
|
53
|
+
justificativa: data.justificativa,
|
|
54
|
+
ativo: data.ativo
|
|
55
|
+
};
|
|
56
|
+
return ApiService.fetchDataWithAxios({
|
|
57
|
+
url: endpointNavigationConfig.agendamento.restricao.add,
|
|
58
|
+
method: "post",
|
|
59
|
+
data: createRequest
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async function apiUpdateRestricaoMotorista(id, data) {
|
|
63
|
+
const updateRequest = {
|
|
64
|
+
tipo: "MOTORISTA",
|
|
65
|
+
motoristaId: data.motoristaId,
|
|
66
|
+
justificativa: data.justificativa,
|
|
67
|
+
ativo: data.ativo
|
|
68
|
+
};
|
|
69
|
+
return ApiService.fetchDataWithAxios({
|
|
70
|
+
url: `${endpointNavigationConfig.agendamento.restricao.update}/${id}`,
|
|
71
|
+
method: "put",
|
|
72
|
+
data: updateRequest
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async function apiGetMotoristasSemRestricao(params = {}) {
|
|
76
|
+
const { filter, pageNumber, pageSize, sortField, agendamentoId } = params;
|
|
77
|
+
const filterObj = filter || {};
|
|
78
|
+
const queryParams = new URLSearchParams();
|
|
79
|
+
if (filterObj.nome) queryParams.append("nome", String(filterObj.nome));
|
|
80
|
+
if (filterObj.cpf) queryParams.append("cpf", String(filterObj.cpf));
|
|
81
|
+
if (agendamentoId) queryParams.append("agendamentoId", String(agendamentoId));
|
|
82
|
+
if (pageNumber) queryParams.append("page", String(pageNumber));
|
|
83
|
+
if (pageSize) queryParams.append("size", String(pageSize));
|
|
84
|
+
if (sortField) queryParams.append("sort", JSON.stringify([sortField]));
|
|
85
|
+
return ApiService.fetchDataWithAxios({
|
|
86
|
+
url: `${endpointNavigationConfig.agendamento.restricao.motoristasSemRestricao}?${queryParams.toString()}`,
|
|
87
|
+
method: "get"
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
async function apiGetVeiculosSemRestricao(params = {}) {
|
|
91
|
+
const { filter, pageNumber, pageSize, sortField, agendamentoId } = params;
|
|
92
|
+
const filterObj = filter || {};
|
|
93
|
+
const queryParams = new URLSearchParams();
|
|
94
|
+
if (filterObj.placa) queryParams.append("placa", String(filterObj.placa));
|
|
95
|
+
if (agendamentoId) queryParams.append("agendamentoId", String(agendamentoId));
|
|
96
|
+
if (pageNumber) queryParams.append("page", String(pageNumber));
|
|
97
|
+
if (pageSize) queryParams.append("size", String(pageSize));
|
|
98
|
+
if (sortField) queryParams.append("sort", JSON.stringify([sortField]));
|
|
99
|
+
return ApiService.fetchDataWithAxios({
|
|
100
|
+
url: `${endpointNavigationConfig.agendamento.restricao.veiculosSemRestricao}?${queryParams.toString()}`,
|
|
101
|
+
method: "get"
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
apiCreateRestricaoMotorista,
|
|
106
|
+
apiCreateRestricaoVeiculo,
|
|
107
|
+
apiFindAgendamentoRestricoes,
|
|
108
|
+
apiGetAgendamentoRestricaoById,
|
|
109
|
+
apiGetAgendamentoRestricoes,
|
|
110
|
+
apiGetMotoristasSemRestricao,
|
|
111
|
+
apiGetVeiculosSemRestricao,
|
|
112
|
+
apiUpdateRestricaoMotorista,
|
|
113
|
+
apiUpdateRestricaoVeiculo
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=RestricaoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestricaoService.js","sources":["../../../../../lib/base/services/modules/agendamento/RestricaoService.ts"],"sourcesContent":["import { TQueryResponse } from '@base/@types/api'\nimport {\n TAgendamentoRestricaoResponse,\n TRestricaoVeiculoFormSchema,\n TRestricaoMotoristaFormSchema,\n TRestricaoFindRequest,\n} from '@base/@types/models/agendamento/restricao'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\n\ntype TPagedResponse<T> = {\n content: T[]\n pageable: {\n pageNumber: number\n pageSize: number\n sort: unknown[]\n offset: number\n paged: boolean\n unpaged: boolean\n }\n last: boolean\n totalPages: number\n totalElements: number\n first: boolean\n size: number\n number: number\n sort: unknown[]\n numberOfElements: number\n empty: boolean\n}\n\nexport async function apiGetAgendamentoRestricoes() {\n return ApiService.fetchDataWithAxios<TPagedResponse<TAgendamentoRestricaoResponse>>({\n url: endpointsConfig.agendamento.restricao.findAll,\n method: 'get',\n })\n}\n\nexport async function apiFindAgendamentoRestricoes(params: TRestricaoFindRequest) {\n return ApiService.fetchDataWithAxios<TPagedResponse<TAgendamentoRestricaoResponse>>({\n url: endpointsConfig.agendamento.restricao.findAll,\n method: 'get',\n params,\n })\n}\n\nexport async function apiGetAgendamentoRestricaoById(id: string | number) {\n return ApiService.fetchDataWithAxios<TAgendamentoRestricaoResponse>({\n url: `${endpointsConfig.agendamento.restricao.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiCreateRestricaoVeiculo(data: TRestricaoVeiculoFormSchema) {\n const createRequest = {\n tipo: 'VEICULO',\n veiculoId: data.veiculoId,\n justificativa: data.justificativa,\n ativo: data.ativo,\n }\n\n return ApiService.fetchDataWithAxios({\n url: endpointsConfig.agendamento.restricao.add,\n method: 'post',\n data: createRequest,\n })\n}\n\nexport async function apiUpdateRestricaoVeiculo(\n id: string | number,\n data: TRestricaoVeiculoFormSchema,\n) {\n const updateRequest = {\n tipo: 'VEICULO',\n veiculoId: data.veiculoId,\n justificativa: data.justificativa,\n ativo: data.ativo,\n }\n\n return ApiService.fetchDataWithAxios({\n url: `${endpointsConfig.agendamento.restricao.update}/${id}`,\n method: 'put',\n data: updateRequest,\n })\n}\n\nexport async function apiCreateRestricaoMotorista(data: TRestricaoMotoristaFormSchema) {\n const createRequest = {\n tipo: 'MOTORISTA',\n motoristaId: data.motoristaId,\n justificativa: data.justificativa,\n ativo: data.ativo,\n }\n\n return ApiService.fetchDataWithAxios({\n url: endpointsConfig.agendamento.restricao.add,\n method: 'post',\n data: createRequest,\n })\n}\n\nexport async function apiUpdateRestricaoMotorista(\n id: string | number,\n data: TRestricaoMotoristaFormSchema,\n) {\n const updateRequest = {\n tipo: 'MOTORISTA',\n motoristaId: data.motoristaId,\n justificativa: data.justificativa,\n ativo: data.ativo,\n }\n\n return ApiService.fetchDataWithAxios({\n url: `${endpointsConfig.agendamento.restricao.update}/${id}`,\n method: 'put',\n data: updateRequest,\n })\n}\n\nexport async function apiGetMotoristasSemRestricao(params: Record<string, unknown> = {}) {\n const { filter, pageNumber, pageSize, sortField, agendamentoId } = params\n const filterObj = (filter as Record<string, unknown>) || {}\n\n const queryParams = new URLSearchParams()\n\n if (filterObj.nome) queryParams.append('nome', String(filterObj.nome))\n if (filterObj.cpf) queryParams.append('cpf', String(filterObj.cpf))\n if (agendamentoId) queryParams.append('agendamentoId', String(agendamentoId))\n if (pageNumber) queryParams.append('page', String(pageNumber))\n if (pageSize) queryParams.append('size', String(pageSize))\n if (sortField) queryParams.append('sort', JSON.stringify([sortField]))\n\n return ApiService.fetchDataWithAxios<TQueryResponse<Record<string, unknown>>>({\n url: `${endpointsConfig.agendamento.restricao.motoristasSemRestricao}?${queryParams.toString()}`,\n method: 'get',\n })\n}\n\nexport async function apiGetVeiculosSemRestricao(params: Record<string, unknown> = {}) {\n const { filter, pageNumber, pageSize, sortField, agendamentoId } = params\n const filterObj = (filter as Record<string, unknown>) || {}\n\n const queryParams = new URLSearchParams()\n\n if (filterObj.placa) queryParams.append('placa', String(filterObj.placa))\n if (agendamentoId) queryParams.append('agendamentoId', String(agendamentoId))\n if (pageNumber) queryParams.append('page', String(pageNumber))\n if (pageSize) queryParams.append('size', String(pageSize))\n if (sortField) queryParams.append('sort', JSON.stringify([sortField]))\n\n return ApiService.fetchDataWithAxios<TQueryResponse<Record<string, unknown>>>({\n url: `${endpointsConfig.agendamento.restricao.veiculosSemRestricao}?${queryParams.toString()}`,\n method: 'get',\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AA+BA,eAAsB,8BAA8B;AAClD,SAAO,WAAW,mBAAkE;AAAA,IAClF,KAAKA,yBAAgB,YAAY,UAAU;AAAA,IAC3C,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,6BAA6B,QAA+B;AAChF,SAAO,WAAW,mBAAkE;AAAA,IAClF,KAAKA,yBAAgB,YAAY,UAAU;AAAA,IAC3C,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACH;AAEA,eAAsB,+BAA+B,IAAqB;AACxE,SAAO,WAAW,mBAAkD;AAAA,IAClE,KAAK,GAAGA,yBAAgB,YAAY,UAAU,OAAO,IAAI,EAAE;AAAA,IAC3D,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,0BAA0B,MAAmC;AACjF,QAAM,gBAAgB;AAAA,IACpB,MAAM;AAAA,IACN,WAAW,KAAK;AAAA,IAChB,eAAe,KAAK;AAAA,IACpB,OAAO,KAAK;AAAA,EAAA;AAGd,SAAO,WAAW,mBAAmB;AAAA,IACnC,KAAKA,yBAAgB,YAAY,UAAU;AAAA,IAC3C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,0BACpB,IACA,MACA;AACA,QAAM,gBAAgB;AAAA,IACpB,MAAM;AAAA,IACN,WAAW,KAAK;AAAA,IAChB,eAAe,KAAK;AAAA,IACpB,OAAO,KAAK;AAAA,EAAA;AAGd,SAAO,WAAW,mBAAmB;AAAA,IACnC,KAAK,GAAGA,yBAAgB,YAAY,UAAU,MAAM,IAAI,EAAE;AAAA,IAC1D,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,4BAA4B,MAAqC;AACrF,QAAM,gBAAgB;AAAA,IACpB,MAAM;AAAA,IACN,aAAa,KAAK;AAAA,IAClB,eAAe,KAAK;AAAA,IACpB,OAAO,KAAK;AAAA,EAAA;AAGd,SAAO,WAAW,mBAAmB;AAAA,IACnC,KAAKA,yBAAgB,YAAY,UAAU;AAAA,IAC3C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,4BACpB,IACA,MACA;AACA,QAAM,gBAAgB;AAAA,IACpB,MAAM;AAAA,IACN,aAAa,KAAK;AAAA,IAClB,eAAe,KAAK;AAAA,IACpB,OAAO,KAAK;AAAA,EAAA;AAGd,SAAO,WAAW,mBAAmB;AAAA,IACnC,KAAK,GAAGA,yBAAgB,YAAY,UAAU,MAAM,IAAI,EAAE;AAAA,IAC1D,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,6BAA6B,SAAkC,IAAI;AACvF,QAAM,EAAE,QAAQ,YAAY,UAAU,WAAW,kBAAkB;AACnE,QAAM,YAAa,UAAsC,CAAA;AAEzD,QAAM,cAAc,IAAI,gBAAA;AAExB,MAAI,UAAU,KAAM,aAAY,OAAO,QAAQ,OAAO,UAAU,IAAI,CAAC;AACrE,MAAI,UAAU,IAAK,aAAY,OAAO,OAAO,OAAO,UAAU,GAAG,CAAC;AAClE,MAAI,cAAe,aAAY,OAAO,iBAAiB,OAAO,aAAa,CAAC;AAC5E,MAAI,WAAY,aAAY,OAAO,QAAQ,OAAO,UAAU,CAAC;AAC7D,MAAI,SAAU,aAAY,OAAO,QAAQ,OAAO,QAAQ,CAAC;AACzD,MAAI,uBAAuB,OAAO,QAAQ,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC;AAErE,SAAO,WAAW,mBAA4D;AAAA,IAC5E,KAAK,GAAGA,yBAAgB,YAAY,UAAU,sBAAsB,IAAI,YAAY,SAAA,CAAU;AAAA,IAC9F,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,2BAA2B,SAAkC,IAAI;AACrF,QAAM,EAAE,QAAQ,YAAY,UAAU,WAAW,kBAAkB;AACnE,QAAM,YAAa,UAAsC,CAAA;AAEzD,QAAM,cAAc,IAAI,gBAAA;AAExB,MAAI,UAAU,MAAO,aAAY,OAAO,SAAS,OAAO,UAAU,KAAK,CAAC;AACxE,MAAI,cAAe,aAAY,OAAO,iBAAiB,OAAO,aAAa,CAAC;AAC5E,MAAI,WAAY,aAAY,OAAO,QAAQ,OAAO,UAAU,CAAC;AAC7D,MAAI,SAAU,aAAY,OAAO,QAAQ,OAAO,QAAQ,CAAC;AACzD,MAAI,uBAAuB,OAAO,QAAQ,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC;AAErE,SAAO,WAAW,mBAA4D;AAAA,IAC5E,KAAK,GAAGA,yBAAgB,YAAY,UAAU,oBAAoB,IAAI,YAAY,SAAA,CAAU;AAAA,IAC5F,QAAQ;AAAA,EAAA,CACT;AACH;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import ApiService from "../../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import endpointNavigationConfig from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const ATIVO_ENDPOINT = endpointNavigationConfig.ativos.ativo;
|
|
4
|
+
async function apiGetAtivosAtivo(id) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: ATIVO_ENDPOINT.findOne.endpoint + `${id}`,
|
|
7
|
+
method: ATIVO_ENDPOINT.findOne.method
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
async function apiAddAtivosAtivo(body) {
|
|
11
|
+
return ApiService.fetchDataWithAxios({
|
|
12
|
+
url: ATIVO_ENDPOINT.add.endpoint,
|
|
13
|
+
method: ATIVO_ENDPOINT.add.method,
|
|
14
|
+
data: body
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiUpdateAtivosAtivo(body) {
|
|
18
|
+
return ApiService.fetchDataWithAxios({
|
|
19
|
+
url: ATIVO_ENDPOINT.update.endpoint,
|
|
20
|
+
method: ATIVO_ENDPOINT.update.method,
|
|
21
|
+
data: body
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function apiDeleteAtivosAtivo(id) {
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: ATIVO_ENDPOINT.delete.endpoint + `${id}`,
|
|
27
|
+
method: ATIVO_ENDPOINT.delete.method
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function apiFindMonitorAtivosAtivo(body) {
|
|
31
|
+
return ApiService.fetchDataWithAxios({
|
|
32
|
+
url: ATIVO_ENDPOINT.findMonitor.endpoint,
|
|
33
|
+
method: ATIVO_ENDPOINT.findMonitor.method,
|
|
34
|
+
data: body
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async function apiCountAtivosAtivo(body) {
|
|
38
|
+
return ApiService.fetchDataWithAxios({
|
|
39
|
+
url: ATIVO_ENDPOINT.countByStatus.endpoint,
|
|
40
|
+
method: ATIVO_ENDPOINT.countByStatus.method,
|
|
41
|
+
data: body
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
apiAddAtivosAtivo,
|
|
46
|
+
apiCountAtivosAtivo,
|
|
47
|
+
apiDeleteAtivosAtivo,
|
|
48
|
+
apiFindMonitorAtivosAtivo,
|
|
49
|
+
apiGetAtivosAtivo,
|
|
50
|
+
apiUpdateAtivosAtivo
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=AtivoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtivoService.js","sources":["../../../../../../lib/base/services/modules/ativos/ativo/AtivoService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAtivo } from \"@base/@types/models/ativos/ativo\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst ATIVO_ENDPOINT = endpointConfig.ativos.ativo;\n\nexport async function apiGetAtivosAtivo(id: number) {\n return ApiService.fetchDataWithAxios<TAtivo>({\n url: ATIVO_ENDPOINT.findOne.endpoint + `${id}`,\n method: ATIVO_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddAtivosAtivo(body: TAtivo) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAtivo>>({\n url: ATIVO_ENDPOINT.add.endpoint,\n method: ATIVO_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateAtivosAtivo(body: TAtivo) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAtivo>>({\n url: ATIVO_ENDPOINT.update.endpoint,\n method: ATIVO_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteAtivosAtivo(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAtivo>>({\n url: ATIVO_ENDPOINT.delete.endpoint + `${id}`,\n method: ATIVO_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorAtivosAtivo(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAtivo>>({\n url: ATIVO_ENDPOINT.findMonitor.endpoint,\n method: ATIVO_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n\nexport async function apiCountAtivosAtivo(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAtivo>>({\n url: ATIVO_ENDPOINT.countByStatus.endpoint,\n method: ATIVO_ENDPOINT.countByStatus.method,\n data: body,\n })\n}"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,iBAAiBA,yBAAe,OAAO;AAE7C,eAAsB,kBAAkB,IAAY;AAChD,SAAO,WAAW,mBAA2B;AAAA,IACzC,KAAK,eAAe,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC5C,QAAQ,eAAe,QAAQ;AAAA,EAAA,CAClC;AACL;AAEA,eAAsB,kBAAkB,MAAc;AAClD,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,IAAI;AAAA,IACxB,QAAQ,eAAe,IAAI;AAAA,IAC3B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,qBAAqB,MAAc;AACrD,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,OAAO;AAAA,IAC3B,QAAQ,eAAe,OAAO;AAAA,IAC9B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,qBAAqB,IAAY;AACnD,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,OAAO,WAAW,GAAG,EAAE;AAAA,IAC3C,QAAQ,eAAe,OAAO;AAAA,EAAA,CACjC;AACL;AAEA,eAAsB,0BAA0B,MAAsB;AAClE,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,YAAY;AAAA,IAChC,QAAQ,eAAe,YAAY;AAAA,IACnC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,oBAAoB,MAAsB;AAC5D,SAAO,WAAW,mBAA2C;AAAA,IACzD,KAAK,eAAe,cAAc;AAAA,IAClC,QAAQ,eAAe,cAAc;AAAA,IACrC,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import ApiService from "../../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import endpointNavigationConfig from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const DOCUMENTACAO_ENDPOINT = endpointNavigationConfig.ativos.documentacao;
|
|
4
|
+
async function apiGetAtivosDocumentacao(id) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: DOCUMENTACAO_ENDPOINT.findOne.endpoint + `${id}`,
|
|
7
|
+
method: DOCUMENTACAO_ENDPOINT.findOne.method
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
async function apiAddAtivosDocumentacao(body) {
|
|
11
|
+
return ApiService.fetchDataWithAxios({
|
|
12
|
+
url: DOCUMENTACAO_ENDPOINT.add.endpoint,
|
|
13
|
+
method: DOCUMENTACAO_ENDPOINT.add.method,
|
|
14
|
+
data: body
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiUpdateAtivosDocumentacao(body) {
|
|
18
|
+
return ApiService.fetchDataWithAxios({
|
|
19
|
+
url: DOCUMENTACAO_ENDPOINT.update.endpoint,
|
|
20
|
+
method: DOCUMENTACAO_ENDPOINT.update.method,
|
|
21
|
+
data: body
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function apiDeleteAtivosDocumentacao(id) {
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: DOCUMENTACAO_ENDPOINT.delete.endpoint + `${id}`,
|
|
27
|
+
method: DOCUMENTACAO_ENDPOINT.delete.method
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function apiFindMonitorAtivosDocumentacao(body) {
|
|
31
|
+
return ApiService.fetchDataWithAxios({
|
|
32
|
+
url: DOCUMENTACAO_ENDPOINT.findMonitor.endpoint,
|
|
33
|
+
method: DOCUMENTACAO_ENDPOINT.findMonitor.method,
|
|
34
|
+
data: body
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
apiAddAtivosDocumentacao,
|
|
39
|
+
apiDeleteAtivosDocumentacao,
|
|
40
|
+
apiFindMonitorAtivosDocumentacao,
|
|
41
|
+
apiGetAtivosDocumentacao,
|
|
42
|
+
apiUpdateAtivosDocumentacao
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=DocumentacaoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentacaoService.js","sources":["../../../../../../lib/base/services/modules/ativos/documentacao/DocumentacaoService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TDocumentacao } from \"@base/@types/models/ativos/documentacao\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst DOCUMENTACAO_ENDPOINT = endpointConfig.ativos.documentacao;\n\nexport async function apiGetAtivosDocumentacao(id: number) {\n return ApiService.fetchDataWithAxios<TDocumentacao>({\n url: DOCUMENTACAO_ENDPOINT.findOne.endpoint + `${id}`,\n method: DOCUMENTACAO_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddAtivosDocumentacao(body: TDocumentacao) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TDocumentacao>>({\n url: DOCUMENTACAO_ENDPOINT.add.endpoint,\n method: DOCUMENTACAO_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateAtivosDocumentacao(body: TDocumentacao) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TDocumentacao>>({\n url: DOCUMENTACAO_ENDPOINT.update.endpoint,\n method: DOCUMENTACAO_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteAtivosDocumentacao(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TDocumentacao>>({\n url: DOCUMENTACAO_ENDPOINT.delete.endpoint + `${id}`,\n method: DOCUMENTACAO_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorAtivosDocumentacao(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TDocumentacao>>({\n url: DOCUMENTACAO_ENDPOINT.findMonitor.endpoint,\n method: DOCUMENTACAO_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,wBAAwBA,yBAAe,OAAO;AAEpD,eAAsB,yBAAyB,IAAY;AACvD,SAAO,WAAW,mBAAkC;AAAA,IAChD,KAAK,sBAAsB,QAAQ,WAAW,GAAG,EAAE;AAAA,IACnD,QAAQ,sBAAsB,QAAQ;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,yBAAyB,MAAqB;AAChE,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAK,sBAAsB,IAAI;AAAA,IAC/B,QAAQ,sBAAsB,IAAI;AAAA,IAClC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,4BAA4B,MAAqB;AACnE,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAK,sBAAsB,OAAO;AAAA,IAClC,QAAQ,sBAAsB,OAAO;AAAA,IACrC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,4BAA4B,IAAY;AAC1D,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAK,sBAAsB,OAAO,WAAW,GAAG,EAAE;AAAA,IAClD,QAAQ,sBAAsB,OAAO;AAAA,EAAA,CACxC;AACL;AAEA,eAAsB,iCAAiC,MAAsB;AACzE,SAAO,WAAW,mBAAkD;AAAA,IAChE,KAAK,sBAAsB,YAAY;AAAA,IACvC,QAAQ,sBAAsB,YAAY;AAAA,IAC1C,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import ApiService from "../../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import endpointNavigationConfig from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const FORMULARIO_CAMPOS_ENDPOINT = endpointNavigationConfig.ativos.formularioCampos;
|
|
4
|
+
async function apiGetAtivosFormularioCampos(id) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: FORMULARIO_CAMPOS_ENDPOINT.findOne.endpoint + `${id}`,
|
|
7
|
+
method: FORMULARIO_CAMPOS_ENDPOINT.findOne.method
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
async function apiAddAtivosFormularioCampos(body) {
|
|
11
|
+
return ApiService.fetchDataWithAxios({
|
|
12
|
+
url: FORMULARIO_CAMPOS_ENDPOINT.add.endpoint,
|
|
13
|
+
method: FORMULARIO_CAMPOS_ENDPOINT.add.method,
|
|
14
|
+
data: body
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiUpdateAtivosFormularioCampos(body) {
|
|
18
|
+
return ApiService.fetchDataWithAxios({
|
|
19
|
+
url: FORMULARIO_CAMPOS_ENDPOINT.update.endpoint,
|
|
20
|
+
method: FORMULARIO_CAMPOS_ENDPOINT.update.method,
|
|
21
|
+
data: body
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function apiDeleteAtivosFormularioCampos(id) {
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: FORMULARIO_CAMPOS_ENDPOINT.delete.endpoint + `${id}`,
|
|
27
|
+
method: FORMULARIO_CAMPOS_ENDPOINT.delete.method
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function apiFindMonitorAtivosFormularioCampos(body) {
|
|
31
|
+
return ApiService.fetchDataWithAxios({
|
|
32
|
+
url: FORMULARIO_CAMPOS_ENDPOINT.findMonitor.endpoint,
|
|
33
|
+
method: FORMULARIO_CAMPOS_ENDPOINT.findMonitor.method,
|
|
34
|
+
data: body
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
apiAddAtivosFormularioCampos,
|
|
39
|
+
apiDeleteAtivosFormularioCampos,
|
|
40
|
+
apiFindMonitorAtivosFormularioCampos,
|
|
41
|
+
apiGetAtivosFormularioCampos,
|
|
42
|
+
apiUpdateAtivosFormularioCampos
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=FormularioCamposService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormularioCamposService.js","sources":["../../../../../../lib/base/services/modules/ativos/formularioCampos/FormularioCamposService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TFormularioCampos } from \"@base/@types/models/ativos/formularioCampos\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst FORMULARIO_CAMPOS_ENDPOINT = endpointConfig.ativos.formularioCampos;\n\nexport async function apiGetAtivosFormularioCampos(id: number) {\n return ApiService.fetchDataWithAxios<TFormularioCampos>({\n url: FORMULARIO_CAMPOS_ENDPOINT.findOne.endpoint + `${id}`,\n method: FORMULARIO_CAMPOS_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddAtivosFormularioCampos(body: TFormularioCampos) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioCampos>>({\n url: FORMULARIO_CAMPOS_ENDPOINT.add.endpoint,\n method: FORMULARIO_CAMPOS_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateAtivosFormularioCampos(body: TFormularioCampos) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioCampos>>({\n url: FORMULARIO_CAMPOS_ENDPOINT.update.endpoint,\n method: FORMULARIO_CAMPOS_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiDeleteAtivosFormularioCampos(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioCampos>>({\n url: FORMULARIO_CAMPOS_ENDPOINT.delete.endpoint + `${id}`,\n method: FORMULARIO_CAMPOS_ENDPOINT.delete.method,\n })\n}\n\nexport async function apiFindMonitorAtivosFormularioCampos(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioCampos>>({\n url: FORMULARIO_CAMPOS_ENDPOINT.findMonitor.endpoint,\n method: FORMULARIO_CAMPOS_ENDPOINT.findMonitor.method,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,6BAA6BA,yBAAe,OAAO;AAEzD,eAAsB,6BAA6B,IAAY;AAC3D,SAAO,WAAW,mBAAsC;AAAA,IACpD,KAAK,2BAA2B,QAAQ,WAAW,GAAG,EAAE;AAAA,IACxD,QAAQ,2BAA2B,QAAQ;AAAA,EAAA,CAC9C;AACL;AAEA,eAAsB,6BAA6B,MAAyB;AACxE,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,2BAA2B,IAAI;AAAA,IACpC,QAAQ,2BAA2B,IAAI;AAAA,IACvC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,gCAAgC,MAAyB;AAC3E,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,2BAA2B,OAAO;AAAA,IACvC,QAAQ,2BAA2B,OAAO;AAAA,IAC1C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,gCAAgC,IAAY;AAC9D,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,2BAA2B,OAAO,WAAW,GAAG,EAAE;AAAA,IACvD,QAAQ,2BAA2B,OAAO;AAAA,EAAA,CAC7C;AACL;AAEA,eAAsB,qCAAqC,MAAsB;AAC7E,SAAO,WAAW,mBAAsD;AAAA,IACpE,KAAK,2BAA2B,YAAY;AAAA,IAC5C,QAAQ,2BAA2B,YAAY;AAAA,IAC/C,MAAM;AAAA,EAAA,CACT;AACL;"}
|