@orbe-agro/client-core 5.6.70 → 5.6.82
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/services/axios/AxiosRequestIntrceptorConfigCallback.js +12 -0
- package/dist/@ecme/services/axios/AxiosRequestIntrceptorConfigCallback.js.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/performance/avaliacao.d.ts +4 -1
- package/dist/@types/base/@types/models/performance/avaliacao.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/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.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/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/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/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 +4 -4
- package/dist/base/configs/navigation.config/modules.navigation.js.map +1 -1
- 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/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/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/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/performance/avaliacao.ts +4 -1
- package/lib/base/@types/models/transportadora/contratoFrete.ts +1 -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 +3 -3
- 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/services/http.ts +47 -0
- package/lib/base/services/index.ts +3 -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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { apiDelete, apiGet, apiPost, apiPut } from "./http.js";
|
|
1
2
|
import { buildQueryString, generateQueryParams, getBaseTableParams, getDefaultQueryParams } from "./query.js";
|
|
2
3
|
import { generateQueryParams as generateQueryParams2, getBaseTableParams as getBaseTableParams2 } from "./modules/modules.query.js";
|
|
3
4
|
import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserFuncionalidadesDetail, apiFetchUserVinculosUsuario, apiGetExecuteTarefasAgendadas, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetRolesByUserId, apiGetTarefasAgendadas, apiGetUsers } from "./modules/AdmService.js";
|
|
@@ -15,8 +16,26 @@ import "./modules/bayer/index.js";
|
|
|
15
16
|
import "./modules/performance/index.js";
|
|
16
17
|
import "./modules/ativos/index.js";
|
|
17
18
|
import { apiAddAssistenciaTecnicaSeloSocial, apiChangeToAssinaturaServicoAssistenciaFisica, apiFindAllAssistenciaTecnicaSeloSocial, apiFindCounterDigitalServicoAssistencia, apiFindCounterFisicoServicoAssistencia, apiGetAssistenciaTecnicaSeloSocial, apiGetAssistenciaTecnicaSeloSocialHistoricos, apiUpdateAssistenciaTecnicaSeloSocial, apiUploadAssinaturaServicoAssistenciaFisica } from "./modules/originacao/assistenciaTecnicaSeloSocial/AssistenciaTecnicaSeloSocialService.js";
|
|
19
|
+
import { apiAddAtivosAplicacao, apiDeleteAtivosAplicacao, apiFindMonitorAtivosAplicacao, apiGetAtivosAplicacao, apiUpdateAtivosAplicacao } from "./modules/ativos/aplicacao/AplicacaoService.js";
|
|
20
|
+
import { apiAddAtivosAtivo, apiCountAtivosAtivo, apiDeleteAtivosAtivo, apiFindMonitorAtivosAtivo, apiGetAtivosAtivo, apiUpdateAtivosAtivo } from "./modules/ativos/ativo/AtivoService.js";
|
|
21
|
+
import { apiAddAtivosBancoDados, apiDeleteAtivosBancoDados, apiFindMonitorAtivosBancoDados, apiGetAtivosBancoDados, apiUpdateAtivosBancoDados } from "./modules/ativos/bancoDados/BancoDadosService.js";
|
|
18
22
|
import { apiAddAtivosCategoria, apiDeleteAtivosCategoria, apiFindMonitorAtivosCategoria, apiGetAtivosCategoria, apiUpdateAtivosCategoria } from "./modules/ativos/categoria/CategoriaService.js";
|
|
23
|
+
import { apiAddAtivosDocumentacao, apiDeleteAtivosDocumentacao, apiFindMonitorAtivosDocumentacao, apiGetAtivosDocumentacao, apiUpdateAtivosDocumentacao } from "./modules/ativos/documentacao/DocumentacaoService.js";
|
|
24
|
+
import { apiAddAtivosFormularioCampos, apiDeleteAtivosFormularioCampos, apiFindMonitorAtivosFormularioCampos, apiGetAtivosFormularioCampos, apiUpdateAtivosFormularioCampos } from "./modules/ativos/formularioCampos/FormularioCamposService.js";
|
|
25
|
+
import { apiAddAtivosHardDisk, apiDeleteAtivosHardDisk, apiFindMonitorAtivosHardDisk, apiGetAtivosHardDisk, apiUpdateAtivosHardDisk } from "./modules/ativos/hardDisk/HardDiskService.js";
|
|
26
|
+
import { apiAddAtivosInternetProtocol, apiDeleteAtivosInternetProtocol, apiFindMonitorAtivosInternetProtocol, apiGetAtivosInternetProtocol, apiUpdateAtivosInternetProtocol } from "./modules/ativos/internetProtocol/InternetProtocolService.js";
|
|
27
|
+
import { apiAddAtivosMarca, apiDeleteAtivosMarca, apiFindMonitorAtivosMarca, apiGetAtivosMarca, apiUpdateAtivosMarca } from "./modules/ativos/marca/MarcaService.js";
|
|
28
|
+
import { apiAddAtivosMemoriaRam, apiDeleteAtivosMemoriaRam, apiFindMonitorAtivosMemoriaRam, apiGetAtivosMemoriaRam, apiUpdateAtivosMemoriaRam } from "./modules/ativos/memoriaRam/MemoriaRamService.js";
|
|
29
|
+
import { apiAddAtivosModelo, apiDeleteAtivosModelo, apiFindMonitorAtivosModelo, apiGetAtivosModelo, apiUpdateAtivosModelo } from "./modules/ativos/modelo/ModeloService.js";
|
|
30
|
+
import { apiAddAtivosMonitorTela, apiDeleteAtivosMonitorTela, apiFindMonitorAtivosMonitorTela, apiGetAtivosMonitorTela, apiUpdateAtivosMonitorTela } from "./modules/ativos/monitorTela/MonitorTelaService.js";
|
|
31
|
+
import { apiAddAtivosProcessador, apiDeleteAtivosProcessador, apiFindMonitorAtivosProcessador, apiGetAtivosProcessador, apiUpdateAtivosProcessador } from "./modules/ativos/processador/ProcessadorService.js";
|
|
32
|
+
import { apiAddAtivosSistemaOperacional, apiDeleteAtivosSistemaOperacional, apiFindMonitorAtivosSistemaOperacional, apiGetAtivosSistemaOperacional, apiUpdateAtivosSistemaOperacional } from "./modules/ativos/sistemaOperacional/SistemaOperacionalService.js";
|
|
33
|
+
import { apiAddAtivosSoftware, apiDeleteAtivosSoftware, apiFindMonitorAtivosSoftware, apiGetAtivosSoftware, apiUpdateAtivosSoftware } from "./modules/ativos/software/SoftwareService.js";
|
|
19
34
|
import { apiAddAtivosSubcategoria, apiDeleteAtivosSubcategoria, apiFindMonitorAtivosSubcategoria, apiGetAtivosSubcategoria, apiUpdateAtivosSubcategoria } from "./modules/ativos/subcategoria/SubcategoriaService.js";
|
|
35
|
+
import { apiAddAtivosTipo, apiDeleteAtivosTipo, apiFindMonitorAtivosTipo, apiGetAtivosTipo, apiUpdateAtivosTipo } from "./modules/ativos/tipo/TipoService.js";
|
|
36
|
+
import { apiAddAtivosVersaoAndroid, apiDeleteAtivosVersaoAndroid, apiFindMonitorAtivosVersaoAndroid, apiGetAtivosVersaoAndroid, apiUpdateAtivosVersaoAndroid } from "./modules/ativos/versaoAndroid/VersaoAndroidService.js";
|
|
37
|
+
import { apiAddAtivosVersaoMSOffice, apiDeleteAtivosVersaoMSOffice, apiFindMonitorAtivosVersaoMSOffice, apiGetAtivosVersaoMSOffice, apiUpdateAtivosVersaoMSOffice } from "./modules/ativos/versaoMSOffice/VersaoMSOfficeService.js";
|
|
38
|
+
import { apiAddAtivosVlan, apiDeleteAtivosVlan, apiFindMonitorAtivosVlan, apiGetAtivosVlan, apiUpdateAtivosVlan } from "./modules/ativos/vlan/VlanService.js";
|
|
20
39
|
import { apiAddCartaoPortadorFrete, apiFindAllCartaoPortadorFrete, apiFindCartaoPortadorFreteByTipoBusca } from "./modules/transportadora/CartaoPortadorFrete/CartaoPortadorFreteService.js";
|
|
21
40
|
import { apiAddCertificadoTransportadora, apiDownloadCertificadoTransportadora, apiFindAllMonitorCertificadoTransportadora, apiGetCertificadoTransportadora, apiUpdateCertificadoTransportadora } from "./modules/transportadora/CertificadoTransportadora/CertificadoTransportadoraService.js";
|
|
22
41
|
import { apiAddCessaoDireitoCredito, apiFindAllCessaoDireitoCredito, apiGetCessaoDireitoCredito, apiGetCessaoDireitoCreditoHistoricos, apiUpdateCessaoDireitoCredito } from "./modules/originacao/cessaoDireitoCredito/CessaoDireitoCreditoService.js";
|
|
@@ -29,20 +48,20 @@ import { apiAddControleDescarga, apiFindAllControleDescarga, apiGetCodigoControl
|
|
|
29
48
|
import { apiAddFavorecido, apiFindAllFavorecido, apiFindFavorecidoByTipoBusca } from "./modules/transportadora/Favorecido/FavorecidoService.js";
|
|
30
49
|
import { apiAddHorarioAprovacao, apiFindMonitorHorarioAprovacaot, apiGetHorarioAprovacao, apiUpdateHorarioAprovacao } from "./modules/originacao/adm/horarioAprovacao/HorarioAprovacaoService.js";
|
|
31
50
|
import { apiAddInss, apiFindAllInss, apiGetInss, apiUpdateInss } from "./modules/transportadora/Inss/InssService.js";
|
|
32
|
-
import { apiAddInsumosCoberturaSeguroAgricola, apiDeleteInsumosCoberturaSeguroAgricola, apiFindMonitorInsumosCoberturaSeguroAgricola, apiGetAllInsumosCoberturaSeguroAgricola, apiGetInsumosCoberturaSeguroAgricola, apiUpdateInsumosCoberturaSeguroAgricola } from "./modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js";
|
|
51
|
+
import { apiAddInsumosCoberturaSeguroAgricola, apiDeleteInsumosCoberturaSeguroAgricola, apiFindMonitorInsumosCoberturaSeguroAgricola, apiGetAllInsumosCoberturaSeguroAgricola, apiGetInsumosCoberturaSeguroAgricola, apiSearchCoberturaSeguro, apiUpdateInsumosCoberturaSeguroAgricola } from "./modules/insumos/coberturaSeguroAgricola/CoberturaSeguroAgricolaService.js";
|
|
33
52
|
import { apiAddInsumosComissaoVenda, apiDeleteInsumosComissaoVenda, apiFindMonitorInsumosComissaoVenda, apiGetAllInsumosComissaoVenda, apiGetInsumosComissaoVenda, apiUpdateInsumosComissaoVenda } from "./modules/insumos/comissaoVenda/ComissaoVendaService.js";
|
|
34
53
|
import { apiAddInsumosCompra, apiExecuteAcaoInsumosCompra, apiFindMonitorInsumosCompra, apiGetInsumosCompra, apiUpdateInsumosCompra } from "./modules/insumos/compra/CompraService.js";
|
|
35
54
|
import { apiAddInsumosFaturamentoVsDespesa, apiDeleteInsumosFaturamentoVsDespesa, apiFindMonitorInsumosFaturamentoVsDespesa, apiGetAllInsumosFaturamentoVsDespesa, apiGetInsumosFaturamentoVsDespesa, apiUpdateInsumosFaturamentoVsDespesa } from "./modules/insumos/faturamentoVsDespesa/FaturamentoVsDespesaService.js";
|
|
36
55
|
import { apiAddInsumosFreteMaterial, apiDeleteInsumosFreteMaterial, apiFindMonitorInsumosFreteMaterial, apiGetAllInsumosFreteMaterial, apiGetInsumosFreteMaterial, apiUpdateInsumosFreteMaterial } from "./modules/insumos/freteMaterial/FreteMaterialService.js";
|
|
37
56
|
import { apiAddInsumosLiberacaoCompra, apiDeleteInsumosLiberacaoCompra, apiFindMonitorInsumosLiberacaoCompra, apiGetInsumosLiberacaoCompra, apiUpdateInsumosLiberacaoCompra } from "./modules/insumos/liberacaoCompra/LiberacaoCompraService.js";
|
|
38
|
-
import { apiAddInsumosLimiteAdiantamentoCliente, apiDeleteInsumosLimiteAdiantamentoCliente, apiFindMonitorInsumosLimiteAdiantamentoCliente, apiGetInsumosLimiteAdiantamentoCliente, apiUpdateInsumosLimiteAdiantamentoCliente } from "./modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.js";
|
|
39
|
-
import { apiAddInsumosLimiteAdiantamentoGeral, apiDeleteInsumosLimiteAdiantamentoGeral, apiFindMonitorInsumosLimiteAdiantamentoGeral, apiGetInsumosLimiteAdiantamentoGeral, apiUpdateInsumosLimiteAdiantamentoGeral } from "./modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.js";
|
|
57
|
+
import { apiAddInsumosLimiteAdiantamentoCliente, apiDeleteInsumosLimiteAdiantamentoCliente, apiFindMonitorInsumosLimiteAdiantamentoCliente, apiGetInsumosLimiteAdiantamentoCliente, apiSearchLimiteAdiantamentoCliente, apiUpdateInsumosLimiteAdiantamentoCliente } from "./modules/insumos/limiteAdiantamentoCliente/LimiteAdiantamentoClienteService.js";
|
|
58
|
+
import { apiAddInsumosLimiteAdiantamentoGeral, apiDeleteInsumosLimiteAdiantamentoGeral, apiFindMonitorInsumosLimiteAdiantamentoGeral, apiGetInsumosLimiteAdiantamentoGeral, apiSearchLimiteAdiantamentoGeral, apiUpdateInsumosLimiteAdiantamentoGeral } from "./modules/insumos/limiteAdiantamentoGeral/LimiteAdiantamentoGeralService.js";
|
|
40
59
|
import { apiAddInsumosMargemVenda, apiDeleteInsumosMargemVenda, apiFindMonitorInsumosMargemVenda, apiGetInsumosMargemVenda, apiUpdateInsumosMargemVenda } from "./modules/insumos/margemVenda/MargemVendaService.js";
|
|
41
60
|
import { apiAddInsumosParametrosJuros, apiDeleteInsumosParametrosJuros, apiFindMonitorInsumosParametrosJuros, apiGetInsumosParametrosJuros, apiUpdateInsumosParametrosJuros } from "./modules/insumos/parametrosJuros/ParametrosJurosService.js";
|
|
42
61
|
import { apiAddInsumosPercentualPagamento, apiDeleteInsumosPercentualPagamento, apiFindMonitorInsumosPercentualPagamento, apiGetInsumosPercentualPagamento, apiUpdateInsumosPercentualPagamento } from "./modules/insumos/percentualPagamento/PercentualPagamentoService.js";
|
|
43
62
|
import { apiAddInsumosPrincipioAtivo, apiDeleteInsumosPrincipioAtivo, apiFindMonitorInsumosPrincipioAtivo, apiGetAllInsumosPrincipioAtivo, apiGetInsumosPrincipioAtivo, apiUpdateInsumosPrincipioAtivo } from "./modules/insumos/principioAtivo/PrincipioAtivoService.js";
|
|
44
|
-
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiUpdateInsumosSeguradoraAgricola } from "./modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
45
|
-
import { apiAddInsumosVendas,
|
|
63
|
+
import { apiAddInsumosSeguradoraAgricola, apiDeleteInsumosSeguradoraAgricola, apiFindMonitorInsumosSeguradoraAgricola, apiFindSeguradorasComCobertura, apiGetInsumosSeguradoraAgricola, apiSearchSeguradorasAgricolas, apiUpdateInsumosSeguradoraAgricola } from "./modules/insumos/seguradoraAgricola/SeguradoraAgricolaService.js";
|
|
64
|
+
import { apiAddInsumosVendas, apiCalculoVendaInsumosVendas, apiDeleteInsumosVendas, apiExecuteAcaoVendas, apiFindMonitorInsumosVendas, apiGetAllInsumosVendas, apiGetInsumosVendas, apiUpdateInsumosVendas } from "./modules/insumos/vendas/VendasService.js";
|
|
46
65
|
import { apiAddIrpf, apiFindAllIrpf, apiGetIrpf, apiUpdateIrpf } from "./modules/transportadora/Irpf/IrpfService.js";
|
|
47
66
|
import { apiAddIrpfFaixaDesconto, apiFindAllIrpfFaixaDesconto, apiGetIrpfFaixaDesconto, apiUpdateIrpfFaixaDesconto } from "./modules/transportadora/IrpfFaixaDesconto/IrpfFaixaDescontoService.js";
|
|
48
67
|
import { apiAddIss, apiFindAllIss, apiGeTIss, apiUpdateIss } from "./modules/transportadora/Iss/IssService.js";
|
|
@@ -134,8 +153,26 @@ import { apiFindMonitorIva } from "./modules/dm/iva/IvaService.js";
|
|
|
134
153
|
import { apiGetFornecedor } from "./modules/transportadora/Motorista/MotoristaService.js";
|
|
135
154
|
export {
|
|
136
155
|
apiAddAssistenciaTecnicaSeloSocial,
|
|
156
|
+
apiAddAtivosAplicacao,
|
|
157
|
+
apiAddAtivosAtivo,
|
|
158
|
+
apiAddAtivosBancoDados,
|
|
137
159
|
apiAddAtivosCategoria,
|
|
160
|
+
apiAddAtivosDocumentacao,
|
|
161
|
+
apiAddAtivosFormularioCampos,
|
|
162
|
+
apiAddAtivosHardDisk,
|
|
163
|
+
apiAddAtivosInternetProtocol,
|
|
164
|
+
apiAddAtivosMarca,
|
|
165
|
+
apiAddAtivosMemoriaRam,
|
|
166
|
+
apiAddAtivosModelo,
|
|
167
|
+
apiAddAtivosMonitorTela,
|
|
168
|
+
apiAddAtivosProcessador,
|
|
169
|
+
apiAddAtivosSistemaOperacional,
|
|
170
|
+
apiAddAtivosSoftware,
|
|
138
171
|
apiAddAtivosSubcategoria,
|
|
172
|
+
apiAddAtivosTipo,
|
|
173
|
+
apiAddAtivosVersaoAndroid,
|
|
174
|
+
apiAddAtivosVersaoMSOffice,
|
|
175
|
+
apiAddAtivosVlan,
|
|
139
176
|
apiAddCartaoPortadorFrete,
|
|
140
177
|
apiAddCertificadoTransportadora,
|
|
141
178
|
apiAddCessaoDireitoCredito,
|
|
@@ -194,7 +231,6 @@ export {
|
|
|
194
231
|
apiAddVolumeProducaoSeloSocial,
|
|
195
232
|
apiAdicionarItensCotacaoEmProcessamento,
|
|
196
233
|
apiAplicarRetencao,
|
|
197
|
-
apiAprovarInsumosVendas,
|
|
198
234
|
apiAprovarRacaoPedidoVenda,
|
|
199
235
|
apiAprovarTermoFundeinfra,
|
|
200
236
|
apiAprovarTermoFunrural,
|
|
@@ -211,7 +247,6 @@ export {
|
|
|
211
247
|
apiCancelPreContrato,
|
|
212
248
|
apiCancelarEntregaBayer,
|
|
213
249
|
apiCancelarInsumosItemCompra,
|
|
214
|
-
apiCancelarInsumosVendas,
|
|
215
250
|
apiCancelarRacaoItemCompra,
|
|
216
251
|
apiCancelarRacaoPedidoVenda,
|
|
217
252
|
apiCancelarTermoFundeinfra,
|
|
@@ -220,6 +255,7 @@ export {
|
|
|
220
255
|
apiChangeToAssinaturaFisica,
|
|
221
256
|
apiChangeToAssinaturaServicoAssistenciaFisica,
|
|
222
257
|
apiConvertAssinaturaRacaoContratoCredito,
|
|
258
|
+
apiCountAtivosAtivo,
|
|
223
259
|
apiCountPartidasVencidas,
|
|
224
260
|
apiCountRacaoPedidoVenda,
|
|
225
261
|
apiCreateAcessoPatio,
|
|
@@ -241,10 +277,29 @@ export {
|
|
|
241
277
|
apiCreateProdutoCommodity,
|
|
242
278
|
apiCreateRequisicaoCompra,
|
|
243
279
|
apiCreateRoyaltiesBusinessPartner,
|
|
280
|
+
apiDelete,
|
|
244
281
|
apiDeleteAcessoPatio,
|
|
245
282
|
apiDeleteAreaAtuacao,
|
|
283
|
+
apiDeleteAtivosAplicacao,
|
|
284
|
+
apiDeleteAtivosAtivo,
|
|
285
|
+
apiDeleteAtivosBancoDados,
|
|
246
286
|
apiDeleteAtivosCategoria,
|
|
287
|
+
apiDeleteAtivosDocumentacao,
|
|
288
|
+
apiDeleteAtivosFormularioCampos,
|
|
289
|
+
apiDeleteAtivosHardDisk,
|
|
290
|
+
apiDeleteAtivosInternetProtocol,
|
|
291
|
+
apiDeleteAtivosMarca,
|
|
292
|
+
apiDeleteAtivosMemoriaRam,
|
|
293
|
+
apiDeleteAtivosModelo,
|
|
294
|
+
apiDeleteAtivosMonitorTela,
|
|
295
|
+
apiDeleteAtivosProcessador,
|
|
296
|
+
apiDeleteAtivosSistemaOperacional,
|
|
297
|
+
apiDeleteAtivosSoftware,
|
|
247
298
|
apiDeleteAtivosSubcategoria,
|
|
299
|
+
apiDeleteAtivosTipo,
|
|
300
|
+
apiDeleteAtivosVersaoAndroid,
|
|
301
|
+
apiDeleteAtivosVersaoMSOffice,
|
|
302
|
+
apiDeleteAtivosVlan,
|
|
248
303
|
apiDeleteCategoria,
|
|
249
304
|
apiDeleteCommoditiesContratoBiodiesel,
|
|
250
305
|
apiDeleteCommoditiesPedidoVenda,
|
|
@@ -295,11 +350,11 @@ export {
|
|
|
295
350
|
apiExecuteAcaoInsumosCompra,
|
|
296
351
|
apiExecuteAcaoItemRequisicaoCompra,
|
|
297
352
|
apiExecuteAcaoOrdemCompra,
|
|
353
|
+
apiExecuteAcaoVendas,
|
|
298
354
|
apiFetchUserFuncionalidades,
|
|
299
355
|
apiFetchUserFuncionalidadesDetail,
|
|
300
356
|
apiFetchUserVinculosUsuario,
|
|
301
357
|
apiFinalizaRequisicaoAgrupada,
|
|
302
|
-
apiFinalizarInsumosVendas,
|
|
303
358
|
apiFindAcessoPatio,
|
|
304
359
|
apiFindAllAnalisePenhorAlienacao,
|
|
305
360
|
apiFindAllAssistenciaTecnicaSeloSocial,
|
|
@@ -423,8 +478,26 @@ export {
|
|
|
423
478
|
apiFindLimiteCredito,
|
|
424
479
|
apiFindListaTecnica,
|
|
425
480
|
apiFindMonitorAcessoPatio,
|
|
481
|
+
apiFindMonitorAtivosAplicacao,
|
|
482
|
+
apiFindMonitorAtivosAtivo,
|
|
483
|
+
apiFindMonitorAtivosBancoDados,
|
|
426
484
|
apiFindMonitorAtivosCategoria,
|
|
485
|
+
apiFindMonitorAtivosDocumentacao,
|
|
486
|
+
apiFindMonitorAtivosFormularioCampos,
|
|
487
|
+
apiFindMonitorAtivosHardDisk,
|
|
488
|
+
apiFindMonitorAtivosInternetProtocol,
|
|
489
|
+
apiFindMonitorAtivosMarca,
|
|
490
|
+
apiFindMonitorAtivosMemoriaRam,
|
|
491
|
+
apiFindMonitorAtivosModelo,
|
|
492
|
+
apiFindMonitorAtivosMonitorTela,
|
|
493
|
+
apiFindMonitorAtivosProcessador,
|
|
494
|
+
apiFindMonitorAtivosSistemaOperacional,
|
|
495
|
+
apiFindMonitorAtivosSoftware,
|
|
427
496
|
apiFindMonitorAtivosSubcategoria,
|
|
497
|
+
apiFindMonitorAtivosTipo,
|
|
498
|
+
apiFindMonitorAtivosVersaoAndroid,
|
|
499
|
+
apiFindMonitorAtivosVersaoMSOffice,
|
|
500
|
+
apiFindMonitorAtivosVlan,
|
|
428
501
|
apiFindMonitorCadastroEstrategiaLiberacaoValor,
|
|
429
502
|
apiFindMonitorCentro,
|
|
430
503
|
apiFindMonitorCentroCusto,
|
|
@@ -524,6 +597,7 @@ export {
|
|
|
524
597
|
apiGeneratePdfContratoCompraGraos,
|
|
525
598
|
apiGenerateTemplatePrecoDia,
|
|
526
599
|
apiGerarArquivoContratoFrete,
|
|
600
|
+
apiGet,
|
|
527
601
|
apiGetAllInsumosCoberturaSeguroAgricola,
|
|
528
602
|
apiGetAllInsumosComissaoVenda,
|
|
529
603
|
apiGetAllInsumosFaturamentoVsDespesa,
|
|
@@ -533,8 +607,26 @@ export {
|
|
|
533
607
|
apiGetAreaAtuacao,
|
|
534
608
|
apiGetAssistenciaTecnicaSeloSocial,
|
|
535
609
|
apiGetAssistenciaTecnicaSeloSocialHistoricos,
|
|
610
|
+
apiGetAtivosAplicacao,
|
|
611
|
+
apiGetAtivosAtivo,
|
|
612
|
+
apiGetAtivosBancoDados,
|
|
536
613
|
apiGetAtivosCategoria,
|
|
614
|
+
apiGetAtivosDocumentacao,
|
|
615
|
+
apiGetAtivosFormularioCampos,
|
|
616
|
+
apiGetAtivosHardDisk,
|
|
617
|
+
apiGetAtivosInternetProtocol,
|
|
618
|
+
apiGetAtivosMarca,
|
|
619
|
+
apiGetAtivosMemoriaRam,
|
|
620
|
+
apiGetAtivosModelo,
|
|
621
|
+
apiGetAtivosMonitorTela,
|
|
622
|
+
apiGetAtivosProcessador,
|
|
623
|
+
apiGetAtivosSistemaOperacional,
|
|
624
|
+
apiGetAtivosSoftware,
|
|
537
625
|
apiGetAtivosSubcategoria,
|
|
626
|
+
apiGetAtivosTipo,
|
|
627
|
+
apiGetAtivosVersaoAndroid,
|
|
628
|
+
apiGetAtivosVersaoMSOffice,
|
|
629
|
+
apiGetAtivosVlan,
|
|
538
630
|
apiGetAvaliacao,
|
|
539
631
|
apiGetCalulatePriceRacaoPedidoVenda,
|
|
540
632
|
apiGetCategoria,
|
|
@@ -615,20 +707,43 @@ export {
|
|
|
615
707
|
apiItinerarioFindRotaAndProduto,
|
|
616
708
|
apiItinerarioFindValorLiquidoFrete,
|
|
617
709
|
apiLancarPenhores,
|
|
710
|
+
apiPost,
|
|
711
|
+
apiPut,
|
|
618
712
|
apiReabrirTermoFundeinfra,
|
|
619
713
|
apiReabrirTermoFunrural,
|
|
620
|
-
apiReprovarInsumosVendas,
|
|
621
714
|
apiReprovarRacaoPedidoVenda,
|
|
622
715
|
apiReprovarTermoFundeinfra,
|
|
623
716
|
apiReprovarTermoFunrural,
|
|
624
717
|
apiRoteirizar,
|
|
718
|
+
apiSearchCoberturaSeguro,
|
|
719
|
+
apiSearchLimiteAdiantamentoCliente,
|
|
720
|
+
apiSearchLimiteAdiantamentoGeral,
|
|
721
|
+
apiSearchSeguradorasAgricolas,
|
|
625
722
|
apiSendMail,
|
|
626
723
|
apiSomatorioEntrega,
|
|
627
724
|
apiUpdateAcessoPatio,
|
|
628
725
|
apiUpdateAreaAtuacao,
|
|
629
726
|
apiUpdateAssistenciaTecnicaSeloSocial,
|
|
727
|
+
apiUpdateAtivosAplicacao,
|
|
728
|
+
apiUpdateAtivosAtivo,
|
|
729
|
+
apiUpdateAtivosBancoDados,
|
|
630
730
|
apiUpdateAtivosCategoria,
|
|
731
|
+
apiUpdateAtivosDocumentacao,
|
|
732
|
+
apiUpdateAtivosFormularioCampos,
|
|
733
|
+
apiUpdateAtivosHardDisk,
|
|
734
|
+
apiUpdateAtivosInternetProtocol,
|
|
735
|
+
apiUpdateAtivosMarca,
|
|
736
|
+
apiUpdateAtivosMemoriaRam,
|
|
737
|
+
apiUpdateAtivosModelo,
|
|
738
|
+
apiUpdateAtivosMonitorTela,
|
|
739
|
+
apiUpdateAtivosProcessador,
|
|
740
|
+
apiUpdateAtivosSistemaOperacional,
|
|
741
|
+
apiUpdateAtivosSoftware,
|
|
631
742
|
apiUpdateAtivosSubcategoria,
|
|
743
|
+
apiUpdateAtivosTipo,
|
|
744
|
+
apiUpdateAtivosVersaoAndroid,
|
|
745
|
+
apiUpdateAtivosVersaoMSOffice,
|
|
746
|
+
apiUpdateAtivosVlan,
|
|
632
747
|
apiUpdateCadastroEstrategiaLiberacaoValor,
|
|
633
748
|
apiUpdateCategoria,
|
|
634
749
|
apiUpdateCertificadoTransportadora,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,200 @@
|
|
|
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 apiGetAgendamentos(body) {
|
|
5
|
+
const queryParams = new URLSearchParams();
|
|
6
|
+
Object.entries(body || {}).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.agendamentoCrud.findAll}?${queryParams.toString()}`,
|
|
15
|
+
method: "get"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
async function apiGetAgendamentoById(id) {
|
|
19
|
+
return ApiService.fetchDataWithAxios({
|
|
20
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.findOne}/${id}`,
|
|
21
|
+
method: "get"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function apiCreateAgendamento(data) {
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.add,
|
|
27
|
+
method: "post",
|
|
28
|
+
data
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async function apiUpdateAgendamento(id, data) {
|
|
32
|
+
return ApiService.fetchDataWithAxios({
|
|
33
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.update}/${id}`,
|
|
34
|
+
method: "patch",
|
|
35
|
+
data
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async function apiDeleteAgendamento(id) {
|
|
39
|
+
return ApiService.fetchDataWithAxios({
|
|
40
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.delete}/${id}`,
|
|
41
|
+
method: "delete"
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async function apiCancelarAgendamento(body) {
|
|
45
|
+
return ApiService.fetchDataWithAxios({
|
|
46
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.cancel,
|
|
47
|
+
method: "put",
|
|
48
|
+
data: body
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async function apiCancelarAgendamentoById(id) {
|
|
52
|
+
return ApiService.fetchDataWithAxios({
|
|
53
|
+
url: `/agendamento/api/${id}/cancel`,
|
|
54
|
+
method: "delete"
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
async function apiGetBIAgendamento(params) {
|
|
58
|
+
const queryParams = new URLSearchParams();
|
|
59
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
60
|
+
if (Array.isArray(value)) {
|
|
61
|
+
value.forEach((item) => queryParams.append(key, String(item)));
|
|
62
|
+
} else if (value !== void 0 && value !== null) {
|
|
63
|
+
queryParams.append(key, String(value));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
const queryString = queryParams.toString();
|
|
67
|
+
return ApiService.fetchDataWithAxios({
|
|
68
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.bi}${queryString ? `?${queryString}` : ""}`,
|
|
69
|
+
method: "get"
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
async function apiGetBIPainelOrdemConsumo() {
|
|
73
|
+
return ApiService.fetchDataWithAxios({
|
|
74
|
+
url: "/agendamento/api/ordem-consumo/painel/bi",
|
|
75
|
+
method: "get"
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
async function apiListAgendamentos(params = {}) {
|
|
79
|
+
const queryParams = new URLSearchParams();
|
|
80
|
+
if (params.status) queryParams.append("status", params.status);
|
|
81
|
+
if (params.localId) queryParams.append("localId", params.localId.toString());
|
|
82
|
+
if (params.page !== void 0) queryParams.append("page", params.page.toString());
|
|
83
|
+
if (params.size !== void 0) queryParams.append("size", params.size.toString());
|
|
84
|
+
return ApiService.fetchDataWithAxios({
|
|
85
|
+
url: `/agendamento/apis?${queryParams.toString()}`,
|
|
86
|
+
method: "get"
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
async function apiGetJanelasDisponiveis(params) {
|
|
90
|
+
const queryParams = new URLSearchParams();
|
|
91
|
+
queryParams.append("localId", params.localId.toString());
|
|
92
|
+
queryParams.append("dataInicio", params.dataInicio);
|
|
93
|
+
queryParams.append("dataFim", params.dataFim);
|
|
94
|
+
return ApiService.fetchDataWithAxios({
|
|
95
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.janelasDisponiveis}?${queryParams.toString()}`,
|
|
96
|
+
method: "get"
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
async function apiGetJanelasOcupadas(localId) {
|
|
100
|
+
return ApiService.fetchDataWithAxios({
|
|
101
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.janelasOcupadas}?localId=${localId}`,
|
|
102
|
+
method: "get"
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
async function apiGetPainelJanelas(data) {
|
|
106
|
+
return ApiService.fetchDataWithAxios({
|
|
107
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.painelJanelas,
|
|
108
|
+
method: "post",
|
|
109
|
+
data
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
async function apiGetPainelBi(params) {
|
|
113
|
+
return ApiService.fetchDataWithAxios({
|
|
114
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.painelBi}?data=${params.data}&localId=${params.localId}`,
|
|
115
|
+
method: "get"
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
async function apiGetPainelCalendario(data) {
|
|
119
|
+
return ApiService.fetchDataWithAxios({
|
|
120
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.painelCalendario,
|
|
121
|
+
method: "post",
|
|
122
|
+
data
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
async function apiFindJanelasDisponiveis(localId, dataInicio, dataFim) {
|
|
126
|
+
return ApiService.fetchDataWithAxios({
|
|
127
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.janelasDisponiveis,
|
|
128
|
+
method: "get",
|
|
129
|
+
params: {
|
|
130
|
+
localId,
|
|
131
|
+
dataInicio: dataInicio || (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
132
|
+
dataFim: dataFim || (/* @__PURE__ */ new Date()).toISOString().split("T")[0]
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async function apiGerarRomaneios(data) {
|
|
137
|
+
return ApiService.fetchDataWithAxios({
|
|
138
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.gerarRomaneios,
|
|
139
|
+
method: "post",
|
|
140
|
+
data
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
async function apiFetchSafrasVinculadas(centroIdSAP) {
|
|
144
|
+
return ApiService.fetchDataWithAxios({
|
|
145
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.safrasVinculadas,
|
|
146
|
+
method: "get",
|
|
147
|
+
params: { centroIdSAP }
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
async function apiFetchDepositos(centroIdSAP, tipoDeposito) {
|
|
151
|
+
return ApiService.fetchDataWithAxios({
|
|
152
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.depositos,
|
|
153
|
+
method: "get",
|
|
154
|
+
params: { centroIdSAP, tipoDeposito }
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
async function apiBuscaOrdemCarregamento(documentoVenda) {
|
|
158
|
+
return ApiService.fetchDataWithAxios({
|
|
159
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.ordemCarregamento}/${documentoVenda}`,
|
|
160
|
+
method: "get"
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
async function apiFindAllAgendamentos(params = {}) {
|
|
164
|
+
return ApiService.fetchDataWithAxios({
|
|
165
|
+
url: endpointNavigationConfig.agendamento.agendamentoCrud.findAll,
|
|
166
|
+
method: "get",
|
|
167
|
+
params
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
async function apiDownloadPdf(id) {
|
|
171
|
+
return ApiService.fetchDataWithAxios({
|
|
172
|
+
url: `${endpointNavigationConfig.agendamento.agendamentoCrud.pdf}/${id}/pdf`,
|
|
173
|
+
method: "get"
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export {
|
|
177
|
+
apiBuscaOrdemCarregamento,
|
|
178
|
+
apiCancelarAgendamento,
|
|
179
|
+
apiCancelarAgendamentoById,
|
|
180
|
+
apiCreateAgendamento,
|
|
181
|
+
apiDeleteAgendamento,
|
|
182
|
+
apiDownloadPdf,
|
|
183
|
+
apiFetchDepositos,
|
|
184
|
+
apiFetchSafrasVinculadas,
|
|
185
|
+
apiFindAllAgendamentos,
|
|
186
|
+
apiFindJanelasDisponiveis,
|
|
187
|
+
apiGerarRomaneios,
|
|
188
|
+
apiGetAgendamentoById,
|
|
189
|
+
apiGetAgendamentos,
|
|
190
|
+
apiGetBIAgendamento,
|
|
191
|
+
apiGetBIPainelOrdemConsumo,
|
|
192
|
+
apiGetJanelasDisponiveis,
|
|
193
|
+
apiGetJanelasOcupadas,
|
|
194
|
+
apiGetPainelBi,
|
|
195
|
+
apiGetPainelCalendario,
|
|
196
|
+
apiGetPainelJanelas,
|
|
197
|
+
apiListAgendamentos,
|
|
198
|
+
apiUpdateAgendamento
|
|
199
|
+
};
|
|
200
|
+
//# sourceMappingURL=AgendamentoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgendamentoService.js","sources":["../../../../../lib/base/services/modules/agendamento/AgendamentoService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport {\n TAgendamento,\n TAgendamentoFormSchema,\n TAgendamentoRequest,\n TAgendamentoListParams,\n TJanelaDisponivel,\n TPainelJanelasRequest,\n TPainelCalendarioRequest,\n TPainelBiRequest,\n TPainelBiData,\n TBIAgendamento,\n TBIPainelOrdemConsumo,\n TCancelamentoRequest,\n} from '@base/@types/models/agendamento/agendamento'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetAgendamentos(body?: IFilterParams) {\n const queryParams = new URLSearchParams()\n\n Object.entries(body || {}).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<TAgendamento>>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.findAll}?${queryParams.toString()}`,\n method: 'get',\n })\n}\n\nexport async function apiGetAgendamentoById(id: string | number) {\n return ApiService.fetchDataWithAxios<TAgendamento>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiCreateAgendamento(data: TAgendamentoRequest | TAgendamentoFormSchema) {\n return ApiService.fetchDataWithAxios<TAgendamento>({\n url: endpointsConfig.agendamento.agendamentoCrud.add,\n method: 'post',\n data,\n })\n}\n\nexport async function apiUpdateAgendamento(\n id: string | number,\n data: TAgendamentoRequest | TAgendamentoFormSchema,\n) {\n return ApiService.fetchDataWithAxios<TAgendamento>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.update}/${id}`,\n method: 'patch',\n data,\n })\n}\n\nexport async function apiDeleteAgendamento(id: string | number) {\n return ApiService.fetchDataWithAxios({\n url: `${endpointsConfig.agendamento.agendamentoCrud.delete}/${id}`,\n method: 'delete',\n })\n}\n\nexport async function apiCancelarAgendamento(body?: TCancelamentoRequest) {\n return ApiService.fetchDataWithAxios<any>({\n url: endpointsConfig.agendamento.agendamentoCrud.cancel,\n method: 'put',\n data: body,\n })\n}\n\nexport async function apiCancelarAgendamentoById(id: number) {\n return ApiService.fetchDataWithAxios<TAgendamento>({\n url: `/agendamento/api/${id}/cancel`,\n method: 'delete',\n })\n}\n\nexport async function apiGetBIAgendamento(\n params?: Record<string, string | number | string[] | number[]>,\n) {\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 const queryString = queryParams.toString()\n\n return ApiService.fetchDataWithAxios<TBIAgendamento>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.bi}${queryString ? `?${queryString}` : ''}`,\n method: 'get',\n })\n}\n\nexport async function apiGetBIPainelOrdemConsumo() {\n return ApiService.fetchDataWithAxios<TBIPainelOrdemConsumo>({\n url: '/agendamento/api/ordem-consumo/painel/bi',\n method: 'get',\n })\n}\n\nexport async function apiListAgendamentos(params: TAgendamentoListParams = {}) {\n const queryParams = new URLSearchParams()\n if (params.status) queryParams.append('status', params.status)\n if (params.localId) queryParams.append('localId', params.localId.toString())\n if (params.page !== undefined) queryParams.append('page', params.page.toString())\n if (params.size !== undefined) queryParams.append('size', params.size.toString())\n\n return ApiService.fetchDataWithAxios<TQueryResponse<TAgendamento>>({\n url: `/agendamento/apis?${queryParams.toString()}`,\n method: 'get',\n })\n}\n\nexport async function apiGetJanelasDisponiveis(params: {\n localId: number\n dataInicio: string\n dataFim: string\n}) {\n const queryParams = new URLSearchParams()\n queryParams.append('localId', params.localId.toString())\n queryParams.append('dataInicio', params.dataInicio)\n queryParams.append('dataFim', params.dataFim)\n\n return ApiService.fetchDataWithAxios<TJanelaDisponivel[]>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.janelasDisponiveis}?${queryParams.toString()}`,\n method: 'get',\n })\n}\n\nexport async function apiGetJanelasOcupadas(localId: number) {\n return ApiService.fetchDataWithAxios<TJanelaDisponivel[]>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.janelasOcupadas}?localId=${localId}`,\n method: 'get',\n })\n}\n\nexport async function apiGetPainelJanelas(data: TPainelJanelasRequest) {\n return ApiService.fetchDataWithAxios<TJanelaDisponivel[]>({\n url: endpointsConfig.agendamento.agendamentoCrud.painelJanelas,\n method: 'post',\n data,\n })\n}\n\nexport async function apiGetPainelBi(params: TPainelBiRequest) {\n return ApiService.fetchDataWithAxios<TPainelBiData>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.painelBi}?data=${params.data}&localId=${params.localId}`,\n method: 'get',\n })\n}\n\nexport async function apiGetPainelCalendario(data: TPainelCalendarioRequest) {\n return ApiService.fetchDataWithAxios<TJanelaDisponivel[]>({\n url: endpointsConfig.agendamento.agendamentoCrud.painelCalendario,\n method: 'post',\n data,\n })\n}\n\nexport async function apiFindJanelasDisponiveis(\n localId: number,\n dataInicio?: string,\n dataFim?: string,\n) {\n return ApiService.fetchDataWithAxios<TJanelaDisponivel[]>({\n url: endpointsConfig.agendamento.agendamentoCrud.janelasDisponiveis,\n method: 'get',\n params: {\n localId,\n dataInicio: dataInicio || new Date().toISOString().split('T')[0],\n dataFim: dataFim || new Date().toISOString().split('T')[0],\n },\n })\n}\n\nexport async function apiGerarRomaneios(data: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<{\n pesoTotal?: number\n ordensAgendamento?: Record<string, unknown>[]\n }>({\n url: endpointsConfig.agendamento.agendamentoCrud.gerarRomaneios,\n method: 'post',\n data,\n })\n}\n\nexport async function apiFetchSafrasVinculadas(centroIdSAP: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<Record<string, unknown>>>({\n url: endpointsConfig.agendamento.agendamentoCrud.safrasVinculadas,\n method: 'get',\n params: { centroIdSAP },\n })\n}\n\nexport async function apiFetchDepositos(centroIdSAP: string, tipoDeposito?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<Record<string, unknown>>>({\n url: endpointsConfig.agendamento.agendamentoCrud.depositos,\n method: 'get',\n params: { centroIdSAP, tipoDeposito },\n })\n}\n\nexport async function apiBuscaOrdemCarregamento(documentoVenda: string) {\n return ApiService.fetchDataWithAxios<Record<string, unknown>>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.ordemCarregamento}/${documentoVenda}`,\n method: 'get',\n })\n}\n\nexport async function apiFindAllAgendamentos(params: Record<string, unknown> = {}) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAgendamento>>({\n url: endpointsConfig.agendamento.agendamentoCrud.findAll,\n method: 'get',\n params,\n })\n}\n\nexport async function apiDownloadPdf(id: number) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TAgendamento>>({\n url: `${endpointsConfig.agendamento.agendamentoCrud.pdf}/${id}/pdf`,\n method: 'get',\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AA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Service.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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
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;"}
|