@orbe-agro/client-core-prod 5.6.136 → 5.6.155
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/assets/styles/app.css +81 -16
- package/dist/@ecme/assets/styles/components/_orbe-loader.css +85 -0
- package/dist/@ecme/assets/styles/components/index.css +77 -0
- package/dist/@ecme/assets/styles/tailwind/index.css +3 -15
- package/dist/@ecme/components/index.js +58 -54
- package/dist/@ecme/components/index.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.stories.js +25 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.stories.js.map +1 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.stories.js +22 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.stories.js.map +1 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.stories.js +22 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.stories.js.map +1 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.stories.js +25 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.stories.js.map +1 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.stories.js +25 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.stories.js.map +1 -0
- package/dist/@ecme/components/shared/Loading.js +3 -4
- package/dist/@ecme/components/shared/Loading.js.map +1 -1
- package/dist/@ecme/components/shared/index.js +6 -4
- package/dist/@ecme/components/shared/index.js.map +1 -1
- package/dist/@ecme/components/shared/loaders/GlobalLoading.js +2 -5
- package/dist/@ecme/components/shared/loaders/GlobalLoading.js.map +1 -1
- package/dist/@ecme/components/shared/loaders/OrbeLoader.js +28 -0
- package/dist/@ecme/components/shared/loaders/OrbeLoader.js.map +1 -0
- package/dist/@ecme/components/template/Footer.js +1 -1
- package/dist/@ecme/components/template/Header.stories.js +42 -0
- package/dist/@ecme/components/template/Header.stories.js.map +1 -0
- package/dist/@ecme/components/template/Search.js +32 -2
- package/dist/@ecme/components/template/Search.js.map +1 -1
- package/dist/@ecme/components/template/Search.stories.js +61 -0
- package/dist/@ecme/components/template/Search.stories.js.map +1 -0
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.js +10 -241
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +3 -17
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
- package/dist/@ecme/components/ui/UploadCustom/UploadCustom.js +134 -0
- package/dist/@ecme/components/ui/UploadCustom/UploadCustom.js.map +1 -0
- package/dist/@ecme/components/ui/UploadCustom/index.js +6 -0
- package/dist/@ecme/components/ui/UploadCustom/index.js.map +1 -0
- package/dist/@ecme/components/ui/index.js +5 -2
- package/dist/@ecme/components/ui/index.js.map +1 -1
- package/dist/@ecme/index.js +139 -132
- package/dist/@ecme/index.js.map +1 -1
- package/dist/@ecme/locales/index.js +4 -1
- package/dist/@ecme/locales/index.js.map +1 -1
- package/dist/@ecme/locales/initAll.js +26 -0
- package/dist/@ecme/locales/initAll.js.map +1 -0
- package/dist/@ecme/locales/lang/en/common.js +43 -0
- package/dist/@ecme/locales/lang/en/common.js.map +1 -1
- package/dist/@ecme/locales/lang/en/index.js +3 -1
- package/dist/@ecme/locales/lang/en/index.js.map +1 -1
- package/dist/@ecme/locales/lang/ptBR/common.js +43 -0
- package/dist/@ecme/locales/lang/ptBR/common.js.map +1 -1
- package/dist/@ecme/locales/lang/ptBR/index.js +3 -1
- package/dist/@ecme/locales/lang/ptBR/index.js.map +1 -1
- package/dist/@ecme/locales/lang/ptBR/nav.js +307 -4
- package/dist/@ecme/locales/lang/ptBR/nav.js.map +1 -1
- package/dist/@ecme/services/ApiServiceJ.js +26 -0
- package/dist/@ecme/services/ApiServiceJ.js.map +1 -0
- package/dist/@ecme/views/auth/lang/index.js +2 -2
- package/dist/@ecme/views/auth/lang/index.js.map +1 -1
- package/dist/@types/@ecme/components/shared/index.d.ts +1 -0
- package/dist/@types/@ecme/components/shared/index.d.ts.map +1 -1
- package/dist/@types/@ecme/components/shared/loaders/GlobalLoading.d.ts.map +1 -1
- package/dist/@types/@ecme/components/shared/loaders/OrbeLoader.d.ts +8 -0
- package/dist/@types/@ecme/components/shared/loaders/OrbeLoader.d.ts.map +1 -0
- package/dist/@types/@ecme/components/template/Search.d.ts.map +1 -1
- package/dist/@types/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.d.ts +0 -8
- package/dist/@types/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.d.ts.map +1 -1
- package/dist/@types/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.d.ts.map +1 -1
- package/dist/@types/@ecme/components/ui/UploadCustom/UploadCustom.d.ts +15 -0
- package/dist/@types/@ecme/components/ui/UploadCustom/UploadCustom.d.ts.map +1 -0
- package/dist/@types/@ecme/components/ui/UploadCustom/index.d.ts +5 -0
- package/dist/@types/@ecme/components/ui/UploadCustom/index.d.ts.map +1 -0
- package/dist/@types/@ecme/components/ui/index.d.ts +2 -0
- package/dist/@types/@ecme/components/ui/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/index.d.ts +1 -0
- package/dist/@types/@ecme/locales/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/initAll.d.ts +3 -0
- package/dist/@types/@ecme/locales/initAll.d.ts.map +1 -0
- package/dist/@types/@ecme/locales/lang/en/common.d.ts +43 -0
- package/dist/@types/@ecme/locales/lang/en/common.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/en/index.d.ts +98 -0
- package/dist/@types/@ecme/locales/lang/en/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/common.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts +98 -0
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/nav.d.ts.map +1 -1
- package/dist/@types/@ecme/services/ApiServiceJ.d.ts +8 -0
- package/dist/@types/@ecme/services/ApiServiceJ.d.ts.map +1 -0
- package/dist/@types/base/@types/api/request/juridico/termos/termo.d.ts +54 -0
- package/dist/@types/base/@types/api/request/juridico/termos/termo.d.ts.map +1 -0
- package/dist/@types/base/@types/api/request/juridico/termos/types.d.ts +102 -0
- package/dist/@types/base/@types/api/request/juridico/termos/types.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/bayer/TFindAllRetencaoResponse.d.ts +2 -2
- package/dist/@types/base/@types/api/response/bayer/TFindAllRetencaoResponse.d.ts.map +1 -1
- package/dist/@types/base/@types/models/ativos/anexoComponente.d.ts +1 -0
- package/dist/@types/base/@types/models/ativos/anexoComponente.d.ts.map +1 -1
- package/dist/@types/base/@types/models/ativos/documentacao.d.ts +4 -3
- package/dist/@types/base/@types/models/ativos/documentacao.d.ts.map +1 -1
- package/dist/@types/base/@types/models/ativos/sistemaOperacional.d.ts +3 -3
- package/dist/@types/base/@types/models/ativos/sistemaOperacional.d.ts.map +1 -1
- package/dist/@types/base/@types/models/ativos/software.d.ts +7 -7
- package/dist/@types/base/@types/models/ativos/software.d.ts.map +1 -1
- package/dist/@types/base/@types/models/ativos/versaoMSOffice.d.ts +4 -4
- package/dist/@types/base/@types/models/ativos/versaoMSOffice.d.ts.map +1 -1
- package/dist/@types/base/@types/models/performance/index.d.ts +1 -0
- package/dist/@types/base/@types/models/performance/index.d.ts.map +1 -1
- package/dist/@types/base/@types/models/performance/ppr.d.ts +22 -0
- package/dist/@types/base/@types/models/performance/ppr.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.d.ts +2 -0
- package/dist/@types/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/ativos/ativos.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/ativos/ativos.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/ativos/config/modelo.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/ativos/config/modelo.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/bayer/config/retencaoBayer.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/bayer/config/retencaoBayer.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts +14 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/recepcaoFisica.d.ts +16 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/recepcaoFisica.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/compras/compras.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/compras/compras.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/compras/config/requisicaoCompra.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/compras/config/requisicaoCompra.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/config/businessPartner.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/businessPartner.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +33 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/performance/config/ppr.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/performance/config/ppr.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/performance/performance.d.ts +6 -0
- package/dist/@types/base/configs/endpoints.config/performance/performance.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/submenu/centralNfe/config/recepcaoFisica.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/centralNfe/config/recepcaoFisica.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/performance/config/aberturaAnoPpr.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/performance/config/aberturaAnoPpr.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/performance/config/avaliacoes.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/performance/config/avaliacoes.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/performance/config/ppr.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/performance/config/ppr.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/performance/performance.submenu.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 -1
- package/dist/@types/base/services/modules/ativos/modelo/ModeloService.d.ts +4 -0
- package/dist/@types/base/services/modules/ativos/modelo/ModeloService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/bayer/retencaoBayerService.d.ts +1 -0
- package/dist/@types/base/services/modules/bayer/retencaoBayerService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/centralNfe/index.d.ts +1 -0
- package/dist/@types/base/services/modules/centralNfe/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/centralNfe/recepcaoFisica/RecepcaoFisicaService.d.ts +7 -0
- package/dist/@types/base/services/modules/centralNfe/recepcaoFisica/RecepcaoFisicaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.d.ts +1 -0
- package/dist/@types/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/juridico/JuridicoService.d.ts +4 -0
- package/dist/@types/base/services/modules/juridico/JuridicoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/juridico/docusignService.d.ts +32 -0
- package/dist/@types/base/services/modules/juridico/docusignService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/juridico/municipiosService.d.ts +4 -0
- package/dist/@types/base/services/modules/juridico/municipiosService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/juridico/termosService.d.ts +28 -0
- package/dist/@types/base/services/modules/juridico/termosService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/performance/PerformanceService.d.ts +5 -0
- package/dist/@types/base/services/modules/performance/PerformanceService.d.ts.map +1 -1
- package/dist/base/@types/api/request/juridico/termos/termo.js +2 -0
- package/dist/base/@types/api/request/juridico/termos/termo.js.map +1 -0
- package/dist/base/@types/api/request/juridico/termos/types.js +48 -0
- package/dist/base/@types/api/request/juridico/termos/types.js.map +1 -0
- package/dist/base/@types/models/performance/index.js +1 -0
- package/dist/base/@types/models/performance/index.js.map +1 -1
- package/dist/base/@types/models/performance/ppr.js +2 -0
- package/dist/base/@types/models/performance/ppr.js.map +1 -0
- package/dist/base/assets/logo/orbe-agro/orbe-agro-logo-min.svg.js +5 -0
- package/dist/base/assets/logo/orbe-agro/orbe-agro-logo-min.svg.js.map +1 -0
- package/dist/base/assets/styles/init.css +81 -16
- package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js +3 -1
- package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js.map +1 -1
- package/dist/base/configs/endpoints.config/ativos/config/modelo.js +2 -1
- package/dist/base/configs/endpoints.config/ativos/config/modelo.js.map +1 -1
- package/dist/base/configs/endpoints.config/bayer/config/retencaoBayer.js +2 -1
- package/dist/base/configs/endpoints.config/bayer/config/retencaoBayer.js.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/centralNfe.js +3 -1
- package/dist/base/configs/endpoints.config/centralNfe/centralNfe.js.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/recepcaoFisica.js +10 -0
- package/dist/base/configs/endpoints.config/centralNfe/config/recepcaoFisica.js.map +1 -0
- package/dist/base/configs/endpoints.config/compras/config/requisicaoCompra.js +2 -1
- package/dist/base/configs/endpoints.config/compras/config/requisicaoCompra.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/businessPartner.js +2 -1
- package/dist/base/configs/endpoints.config/dm/config/businessPartner.js.map +1 -1
- package/dist/base/configs/endpoints.config/performance/config/ppr.js +10 -0
- package/dist/base/configs/endpoints.config/performance/config/ppr.js.map +1 -0
- package/dist/base/configs/endpoints.config/performance/performance.js +3 -1
- package/dist/base/configs/endpoints.config/performance/performance.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.js +2 -0
- package/dist/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.js.map +1 -1
- package/dist/base/configs/navigation.config/submenu/centralNfe/config/recepcaoFisica.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/centralNfe/config/recepcaoFisica.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/performance/config/aberturaAnoPpr.submenu.js +17 -0
- package/dist/base/configs/navigation.config/submenu/performance/config/aberturaAnoPpr.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/performance/config/avaliacoes.submenu.js +25 -0
- package/dist/base/configs/navigation.config/submenu/performance/config/avaliacoes.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/performance/config/ppr.submenu.js +19 -0
- package/dist/base/configs/navigation.config/submenu/performance/config/ppr.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/performance/performance.submenu.js +4 -8
- package/dist/base/configs/navigation.config/submenu/performance/performance.submenu.js.map +1 -1
- package/dist/base/index.js +13 -5
- package/dist/base/locales/index.js +2 -2
- package/dist/base/locales/index.js.map +1 -1
- package/dist/base/services/index.js +13 -5
- package/dist/base/services/modules/HubFiscal/NfeService.js +15 -0
- package/dist/base/services/modules/HubFiscal/NfeService.js.map +1 -1
- package/dist/base/services/modules/ativos/index.js +2 -1
- package/dist/base/services/modules/ativos/modelo/ModeloService.js +8 -0
- package/dist/base/services/modules/ativos/modelo/ModeloService.js.map +1 -1
- package/dist/base/services/modules/bayer/index.js +2 -1
- package/dist/base/services/modules/bayer/retencaoBayerService.js +7 -0
- package/dist/base/services/modules/bayer/retencaoBayerService.js.map +1 -1
- package/dist/base/services/modules/centralNfe/index.js +4 -0
- package/dist/base/services/modules/centralNfe/index.js.map +1 -1
- package/dist/base/services/modules/centralNfe/recepcaoFisica/RecepcaoFisicaService.js +31 -0
- package/dist/base/services/modules/centralNfe/recepcaoFisica/RecepcaoFisicaService.js.map +1 -0
- package/dist/base/services/modules/compras/index.js +2 -1
- package/dist/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.js +8 -0
- package/dist/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.js.map +1 -1
- package/dist/base/services/modules/dm/businessPartner/BusinessPartnerService.js +9 -0
- package/dist/base/services/modules/dm/businessPartner/BusinessPartnerService.js.map +1 -1
- package/dist/base/services/modules/dm/index.js +2 -1
- package/dist/base/services/modules/index.js +11 -4
- package/dist/base/services/modules/juridico/JuridicoService.js +48 -0
- package/dist/base/services/modules/juridico/JuridicoService.js.map +1 -0
- package/dist/base/services/modules/juridico/docusignService.js +112 -0
- package/dist/base/services/modules/juridico/docusignService.js.map +1 -0
- package/dist/base/services/modules/juridico/municipiosService.js +42 -0
- package/dist/base/services/modules/juridico/municipiosService.js.map +1 -0
- package/dist/base/services/modules/juridico/termosService.js +108 -0
- package/dist/base/services/modules/juridico/termosService.js.map +1 -0
- package/dist/base/services/modules/performance/PerformanceService.js +31 -0
- package/dist/base/services/modules/performance/PerformanceService.js.map +1 -1
- package/dist/base/services/modules/performance/index.js +5 -1
- package/lib/@ecme/assets/styles/components/_orbe-loader.css +84 -0
- package/lib/@ecme/assets/styles/components/index.css +1 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.stories.tsx +38 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.stories.tsx +35 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.stories.tsx +35 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/StackedSide.stories.tsx +38 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.stories.tsx +38 -0
- package/lib/@ecme/components/shared/Loading.tsx +3 -3
- package/lib/@ecme/components/shared/index.tsx +1 -0
- package/lib/@ecme/components/shared/loaders/GlobalLoading.tsx +2 -4
- package/lib/@ecme/components/shared/loaders/OrbeLoader.tsx +37 -0
- package/lib/@ecme/components/template/Header.stories.tsx +46 -0
- package/lib/@ecme/components/template/Search.stories.tsx +79 -0
- package/lib/@ecme/components/template/Search.tsx +41 -14
- package/lib/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.tsx +13 -252
- package/lib/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.tsx +3 -25
- package/lib/@ecme/components/ui/UploadCustom/UploadCustom.tsx +169 -0
- package/lib/@ecme/components/ui/UploadCustom/index.tsx +6 -0
- package/lib/@ecme/components/ui/index.ts +2 -0
- package/lib/@ecme/locales/index.ts +4 -0
- package/lib/@ecme/locales/initAll.ts +25 -0
- package/lib/@ecme/locales/lang/en/common.ts +43 -0
- package/lib/@ecme/locales/lang/en/index.ts +2 -0
- package/lib/@ecme/locales/lang/ptBR/common.ts +44 -1
- package/lib/@ecme/locales/lang/ptBR/index.ts +2 -0
- package/lib/@ecme/locales/lang/ptBR/nav.ts +308 -5
- package/lib/@ecme/services/ApiServiceJ.ts +30 -0
- package/lib/@ecme/views/auth/lang/index.ts +2 -2
- package/lib/base/@types/api/request/juridico/termos/termo.ts +53 -0
- package/lib/base/@types/api/request/juridico/termos/types.ts +112 -0
- package/lib/base/@types/api/response/bayer/TFindAllRetencaoResponse.ts +2 -2
- package/lib/base/@types/models/ativos/anexoComponente.ts +1 -0
- package/lib/base/@types/models/ativos/documentacao.ts +4 -3
- package/lib/base/@types/models/ativos/sistemaOperacional.ts +3 -3
- package/lib/base/@types/models/ativos/software.ts +7 -7
- package/lib/base/@types/models/ativos/versaoMSOffice.ts +4 -4
- package/lib/base/@types/models/performance/index.ts +6 -5
- package/lib/base/@types/models/performance/ppr.ts +24 -0
- package/lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts +3 -1
- package/lib/base/configs/endpoints.config/ativos/config/modelo.ts +1 -0
- package/lib/base/configs/endpoints.config/bayer/config/retencaoBayer.ts +1 -0
- package/lib/base/configs/endpoints.config/centralNfe/centralNfe.ts +3 -1
- package/lib/base/configs/endpoints.config/centralNfe/config/recepcaoFisica.ts +9 -0
- package/lib/base/configs/endpoints.config/compras/config/requisicaoCompra.ts +2 -1
- package/lib/base/configs/endpoints.config/dm/config/businessPartner.ts +2 -1
- package/lib/base/configs/endpoints.config/performance/config/ppr.ts +8 -0
- package/lib/base/configs/endpoints.config/performance/performance.ts +3 -1
- package/lib/base/configs/navigation.config/modules.submenu/centralNfe/submenu.centralNfe.ts +2 -0
- package/lib/base/configs/navigation.config/submenu/centralNfe/config/recepcaoFisica.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/performance/config/aberturaAnoPpr.submenu.ts +17 -0
- package/lib/base/configs/navigation.config/submenu/performance/config/avaliacoes.submenu.ts +25 -0
- package/lib/base/configs/navigation.config/submenu/performance/config/ppr.submenu.ts +19 -0
- package/lib/base/configs/navigation.config/submenu/performance/performance.submenu.ts +4 -8
- package/lib/base/locales/index.ts +2 -2
- package/lib/base/services/modules/HubFiscal/NfeService.ts +15 -0
- package/lib/base/services/modules/ativos/modelo/ModeloService.ts +8 -0
- package/lib/base/services/modules/bayer/retencaoBayerService.ts +7 -0
- package/lib/base/services/modules/centralNfe/index.ts +2 -1
- package/lib/base/services/modules/centralNfe/recepcaoFisica/RecepcaoFisicaService.ts +32 -0
- package/lib/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.ts +8 -0
- package/lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts +9 -1
- package/lib/base/services/modules/juridico/JuridicoService.ts +52 -0
- package/lib/base/services/modules/juridico/docusignService.ts +154 -0
- package/lib/base/services/modules/juridico/municipiosService.ts +46 -0
- package/lib/base/services/modules/juridico/termosService.ts +118 -0
- package/lib/base/services/modules/performance/PerformanceService.ts +32 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessPartnerService.js","sources":["../../../../../../lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAreaVendaCliente, TBusinessPartner } from \"@base/@types/models/dm/businessPartner\";\nimport { endpointsConfig } from \"@base/configs\";\nimport { ex } from \"node_modules/@fullcalendar/core/internal-common\";\n\nconst BUSINESS_PARTNER_ENDPOINT = endpointsConfig.dm.businessPartner;\n\nexport async function apiGetDmBusinessPartner(id: number) {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: BUSINESS_PARTNER_ENDPOINT.findOne.endpoint + `${id}`,\n method: BUSINESS_PARTNER_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiFindDmBusinessPartner(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.find.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.find.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerCliente(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFornecedor(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.method,\n data: body,\n })\n}\n\nexport async function apiFindMonitorFornecedor(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindEmpresasIdsByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindMonitorTransportadora(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFiliais(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerMatrizes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.method,\n data: body,\n })\n}\n\nexport async function apiFindFornecedorNfeByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientesPartidas(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPartidas.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPartidas.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosFornecedores(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.method,\n data: body,\n })\n}\n\nexport async function apiFindDmVendedoresAKARepresentantesVendas(data = {}) {\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.method,\n data,\n });\n}\n\nexport async function apiFindDmFindSalesAreasByBusinessPartnerAndModulo(businessPartner: string, modulo: string) {\n return ApiService.fetchDataWithAxios<TAreaVendaCliente[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.endpoint + `${businessPartner}/` + `${modulo}`,\n method: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.method,\n })\n}\n\nexport async function apiFindDmBusinessPartnerByIds(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findByIds.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findByIds.method,\n data: body,\n })\n}\n\nexport async function apiGetBusinessPartnerByCnpjWithOptionalIe(cnpj: string, ie?: string) {\n const params: any = { cnpj };\n if (ie) {\n params.ie = ie;\n }\n\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.getBusinessPartnerByCnpjWithOpt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;AAAA,IACzC,QAAQ,0BAA0B,UAAU;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0CAA0C,MAAc,IAAa;AACvF,QAAM,SAAc,EAAE,KAAA;AACtB,MAAI,IAAI;AACJ,WAAO,KAAK;AAAA,EAChB;AAEA,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,0BAA0B,uCAAuC;AAAA,IACtE,QAAQ,0BAA0B,uCAAuC;AAAA,IACzE;AAAA,EAAA,CACH;AACL;"}
|
|
1
|
+
{"version":3,"file":"BusinessPartnerService.js","sources":["../../../../../../lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAreaVendaCliente, TBusinessPartner } from \"@base/@types/models/dm/businessPartner\";\nimport { endpointsConfig } from \"@base/configs\";\n\nconst BUSINESS_PARTNER_ENDPOINT = endpointsConfig.dm.businessPartner;\n\nexport async function apiGetDmBusinessPartner(id: number) {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: BUSINESS_PARTNER_ENDPOINT.findOne.endpoint + `${id}`,\n method: BUSINESS_PARTNER_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiFindDmBusinessPartner(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.find.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.find.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerCliente(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFornecedor(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.method,\n data: body,\n })\n}\n\nexport async function apiFindMonitorFornecedor(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindEmpresasIdsByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindMonitorTransportadora(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFiliais(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerMatrizes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.method,\n data: body,\n })\n}\n\nexport async function apiFindFornecedorNfeByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientesPartidas(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPartidas.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPartidas.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosFornecedores(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.method,\n data: body,\n })\n}\n\nexport async function apiFindDmVendedoresAKARepresentantesVendas(data = {}) {\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.method,\n data,\n });\n}\n\nexport async function apiFindDmFindSalesAreasByBusinessPartnerAndModulo(businessPartner: string, modulo: string) {\n return ApiService.fetchDataWithAxios<TAreaVendaCliente[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.endpoint + `${businessPartner}/` + `${modulo}`,\n method: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.method,\n })\n}\n\nexport async function apiFindDmBusinessPartnerByIds(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findByIds.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findByIds.method,\n data: body,\n })\n}\n\nexport async function apiGetBusinessPartnerByCnpjWithOptionalIe(cnpj: string, ie?: string) {\n const params: any = { cnpj };\n if (ie) {\n params.ie = ie;\n }\n\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.getBusinessPartnerByCnpjWithOptionalIe.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.getBusinessPartnerByCnpjWithOptionalIe.httpMethod,\n params: params\n })\n}\n\nexport async function apiGetBusinessPartnersCodeByCpf(cpf: string) {\n const params: any = { cpf };\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.getBusinessPartnersCodeByCpf.endpo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Q,0BAA0B,UAAU;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0CAA0C,MAAc,IAAa;AACvF,QAAM,SAAc,EAAE,KAAA;AACtB,MAAI,IAAI;AACJ,WAAO,KAAK;AAAA,EAChB;AAEA,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,0BAA0B,uCAAuC;AAAA,IACtE,QAAQ,0BAA0B,uCAAuC;AAAA,IACzE;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,gCAAgC,KAAa;AAC/D,QAAM,SAAc,EAAE,IAAA;AACtB,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,0BAA0B,6BAA6B;AAAA,IAC5D,QAAQ,0BAA0B,6BAA6B;AAAA,IAC/D;AAAA,EAAA,CACH;AACL;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPartidas, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetBusinessPartnerByCnpjWithOptionalIe, apiGetDmBusinessPartner } from "./businessPartner/BusinessPartnerService.js";
|
|
1
|
+
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPartidas, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetBusinessPartnerByCnpjWithOptionalIe, apiGetBusinessPartnersCodeByCpf, apiGetDmBusinessPartner } from "./businessPartner/BusinessPartnerService.js";
|
|
2
2
|
import { apiFindDmCanalDistribuicao, apiFindDmCanalDistribuicaoByCodigo } from "./canalDistribuicao/CanalDistribuicaoService.js";
|
|
3
3
|
import { apiFindDmCentro, apiFindDmCentroByCodigo, apiFindDmCentroByCodigos, apiFindMonitorCentro } from "./centro/CentroService.js";
|
|
4
4
|
import { apiFindMonitorCentroCusto } from "./centroCusto/CentroCustoService.js";
|
|
@@ -103,6 +103,7 @@ export {
|
|
|
103
103
|
apiFindVendedorIdByUserId,
|
|
104
104
|
apiFindVerificaCadastroCompletoByCondicaoPagamento,
|
|
105
105
|
apiGetBusinessPartnerByCnpjWithOptionalIe,
|
|
106
|
+
apiGetBusinessPartnersCodeByCpf,
|
|
106
107
|
apiGetDmBusinessPartner,
|
|
107
108
|
apiGetIdsCentrosCustoByIdsUsuarios,
|
|
108
109
|
apiGetMultiplicadorUnidadeMedida,
|
|
@@ -12,6 +12,7 @@ import "./insumos/index.js";
|
|
|
12
12
|
import { generateQueryParams, getBaseTableParams } from "./modules.query.js";
|
|
13
13
|
import "./performance/index.js";
|
|
14
14
|
import "./ativos/index.js";
|
|
15
|
+
import { apiAbrirAnoPpr, apiCreateAreaAtuacao, apiCreateAvaliacao, apiCreateCategoria, apiCreateModeloAvaliacao, apiCreateModeloNota, apiDeleteAreaAtuacao, apiDeleteCategoria, apiDeleteModeloAvaliacao, apiDeleteModeloNota, apiFindAvaliacaoColaborador, apiFindOneAreaAtuacao, apiFindOneAvaliacao, apiFindOneCategoria, apiFindOneModeloAvaliacao, apiFindOneModeloNota, apiGetAnosPpr, apiGetAreaAtuacao, apiGetAvaliacao, apiGetCategoria, apiGetCentrosCustosPprByAno, apiGetComparativo, apiGetModeloAvaliacao, apiGetModeloNota, apiUpdateAreaAtuacao, apiUpdateCategoria, apiUpdateCentroCustoPprStatus, apiUpdateModeloAvaliacao, apiUpdateModeloNota } from "./performance/PerformanceService.js";
|
|
15
16
|
import { apiAddAssistenciaTecnicaSeloSocial, apiChangeToAssinaturaServicoAssistenciaFisica, apiFindAllAssistenciaTecnicaSeloSocial, apiFindCounterDigitalServicoAssistencia, apiFindCounterFisicoServicoAssistencia, apiGetAssistenciaTecnicaSeloSocial, apiGetAssistenciaTecnicaSeloSocialHistoricos, apiUpdateAssistenciaTecnicaSeloSocial, apiUploadAssinaturaServicoAssistenciaFisica } from "./originacao/assistenciaTecnicaSeloSocial/AssistenciaTecnicaSeloSocialService.js";
|
|
16
17
|
import { apiAddAtivosAplicacao, apiDeleteAtivosAplicacao, apiFindMonitorAtivosAplicacao, apiGetAtivosAplicacao, apiUpdateAtivosAplicacao } from "./ativos/aplicacao/AplicacaoService.js";
|
|
17
18
|
import { apiAddAtivosAtivo, apiCountAtivosAtivo, apiDeleteAtivosAtivo, apiDevolverAtivosAtivo, apiDevolverLocadoraAtivosAtivo, apiDisponibilizarAtivosAtivo, apiFindHistoricoByTipoAcao, apiFindMonitorAtivosAtivo, apiFindSubstituicaoByAtivos, apiGetAtivosAtivo, apiRepararAtivosAtivo, apiTransferirAtivosAtivo, apiUpdateAtivosAtivo } from "./ativos/ativo/AtivoService.js";
|
|
@@ -23,7 +24,7 @@ import { apiAddAtivosHardDisk, apiDeleteAtivosHardDisk, apiFindMonitorAtivosHard
|
|
|
23
24
|
import { apiAddAtivosInternetProtocol, apiDeleteAtivosInternetProtocol, apiFindMonitorAtivosInternetProtocol, apiGetAtivosInternetProtocol, apiGetAtivosInternetProtocolDisponiveis, apiUpdateAtivosInternetProtocol } from "./ativos/internetProtocol/InternetProtocolService.js";
|
|
24
25
|
import { apiAddAtivosMarca, apiDeleteAtivosMarca, apiFindMonitorAtivosMarca, apiGetAtivosMarca, apiUpdateAtivosMarca } from "./ativos/marca/MarcaService.js";
|
|
25
26
|
import { apiAddAtivosMemoriaRam, apiDeleteAtivosMemoriaRam, apiFindMonitorAtivosMemoriaRam, apiGetAtivosMemoriaRam, apiUpdateAtivosMemoriaRam } from "./ativos/memoriaRam/MemoriaRamService.js";
|
|
26
|
-
import { apiAddAtivosModelo, apiDeleteAtivosModelo, apiFindMonitorAtivosModelo, apiGetAtivosModelo, apiUpdateAtivosModelo } from "./ativos/modelo/ModeloService.js";
|
|
27
|
+
import { apiAddAtivosModelo, apiDeleteAtivosModelo, apiFindByModeloAndTipo, apiFindMonitorAtivosModelo, apiGetAtivosModelo, apiUpdateAtivosModelo } from "./ativos/modelo/ModeloService.js";
|
|
27
28
|
import { apiAddAtivosMonitorTela, apiDeleteAtivosMonitorTela, apiFindMonitorAtivosMonitorTela, apiGetAtivosMonitorTela, apiUpdateAtivosMonitorTela } from "./ativos/monitorTela/MonitorTelaService.js";
|
|
28
29
|
import { apiAddAtivosNotificacaoDocumentacao, apiDeleteAtivosNotificacaoDocumentacao, apiFindMonitorAtivosNotificacaoDocumentacao, apiGetAtivosNotificacaoDocumentacao, apiUpdateAtivosNotificacaoDocumentacao } from "./ativos/notificacaoDocumentacao/NotificacaoDocumentacaoService.js";
|
|
29
30
|
import { apiAddAtivosProcessador, apiDeleteAtivosProcessador, apiFindMonitorAtivosProcessador, apiGetAtivosProcessador, apiUpdateAtivosProcessador } from "./ativos/processador/ProcessadorService.js";
|
|
@@ -91,14 +92,13 @@ import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural,
|
|
|
91
92
|
import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./transportadora/TiposCarga/TipoCargaService.js";
|
|
92
93
|
import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
|
|
93
94
|
import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
|
|
94
|
-
import { apiAdicionarObservacaoRequisicaoCompra, apiCreateRequisicaoCompra, apiExecuteAcao, apiFindDetalheItemRequisicaoCompraMonitor, apiFindHistoricosMovimentacao, apiFindMonitorRequisicaoCompra, apiFindOneRequisicaoCompra, apiUpdateRequisicaoCompra } from "./compras/requisicaoCompra/RequisicaoCompraService.js";
|
|
95
|
+
import { apiAdicionarObservacaoRequisicaoCompra, apiCreateRequisicaoCompra, apiExecuteAcao, apiFindDetalheItemRequisicaoCompraMonitor, apiFindHistoricosMovimentacao, apiFindMonitorRequisicaoCompra, apiFindOneRequisicaoCompra, apiSetRequisicaoCompraLock, apiUpdateRequisicaoCompra } from "./compras/requisicaoCompra/RequisicaoCompraService.js";
|
|
95
96
|
import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./originacao/contratoCompraGraos/contratoCompraGraosService.js";
|
|
96
97
|
import { apiCancelPreContrato, apiCreatePreContrato, apiEditPreContrato, apiFindAllPreContrato, apiFindByIdPreContrato, apiFindHistoricoByIdPreContrato, apiUpdateStatusPreContrato } from "./originacao/preContrato/preContratoService.js";
|
|
97
98
|
import { apiCancelarInsumosItemCompra, apiFindMonitorInsumosItemCompra } from "./insumos/itemCompra/ItemCompraService.js";
|
|
98
99
|
import { apiCountPartidasVencidas, apiFindPartidasAbertas, apiFindPartidasCreditos, apiFindPartidasPagas, apiFindPartidasVencidas } from "./sap/partidas/PartidasService.js";
|
|
99
100
|
import { apiCreateAcessoPatio, apiDeleteAcessoPatio, apiFindAcessoPatio, apiFindMonitorAcessoPatio, apiUpdateAcessoPatio } from "./controle-acesso/acessoPatio/AcessoPatioService.js";
|
|
100
101
|
import { apiCreateAnalisePenhorAlienacao, apiFindAllAnalisePenhorAlienacao, apiGetFileDadosPenhores, apiLancarPenhores, apiSendMail, apiUploadFileDadosPenhores } from "./originacao/analisePenhorAlienacao/analisePenhorAlienacaoService.js";
|
|
101
|
-
import { apiCreateAreaAtuacao, apiCreateAvaliacao, apiCreateCategoria, apiCreateModeloAvaliacao, apiCreateModeloNota, apiDeleteAreaAtuacao, apiDeleteCategoria, apiDeleteModeloAvaliacao, apiDeleteModeloNota, apiFindAvaliacaoColaborador, apiFindOneAreaAtuacao, apiFindOneAvaliacao, apiFindOneCategoria, apiFindOneModeloAvaliacao, apiFindOneModeloNota, apiGetAreaAtuacao, apiGetAvaliacao, apiGetCategoria, apiGetComparativo, apiGetModeloAvaliacao, apiGetModeloNota, apiUpdateAreaAtuacao, apiUpdateCategoria, apiUpdateModeloAvaliacao, apiUpdateModeloNota } from "./performance/PerformanceService.js";
|
|
102
102
|
import { apiCreateCadastroEstrategiaLiberacaoValor, apiDeleteOneCadastroEstrategiaLiberacaoValor, apiFindMonitorCadastroEstrategiaLiberacaoValor, apiFindOneCadastroEstrategiaLiberacaoValor, apiFindRolesByValorCadastroEstrategiaLiberacaoValor, apiUpdateCadastroEstrategiaLiberacaoValor } from "./compras/cadastroEstrategiaLiberacaoValor/CadastroEstrategiaLiberacaoValorService.js";
|
|
103
103
|
import { apiCreateCorretora, apiFindAllCorretora } from "./originacao/corretora/corretoraService.js";
|
|
104
104
|
import { apiCreateEmpresa, apiFindAllEmpresa, apiFindByIdEmpresa } from "./originacao/empresa/empresaService.js";
|
|
@@ -118,7 +118,7 @@ import { apiFindByCodigosProduto, apiFindByIdsProduto, apiFindDescricaoById, api
|
|
|
118
118
|
import { apiFindByIds, apiFindCentrosByUserId, apiFindUser, apiFindUserById, apiFindVendedorIdByUserId, apiGetIdsCentrosCustoByIdsUsuarios, apiVerificaUserPossuiFuncionalidade } from "./dm/user/UserService.js";
|
|
119
119
|
import { apiFindByNomeOrCodigo } from "./transportadora/NaturezaCarga/NaturezaCargaService.js";
|
|
120
120
|
import { apiFindByNotaFiscal } from "./transportadora/NotaFiscal/NotaFiscalService.js";
|
|
121
|
-
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPartidas, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetBusinessPartnerByCnpjWithOptionalIe, apiGetDmBusinessPartner } from "./dm/businessPartner/BusinessPartnerService.js";
|
|
121
|
+
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPartidas, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetBusinessPartnerByCnpjWithOptionalIe, apiGetBusinessPartnersCodeByCpf, apiGetDmBusinessPartner } from "./dm/businessPartner/BusinessPartnerService.js";
|
|
122
122
|
import { apiFindDmCanalDistribuicao, apiFindDmCanalDistribuicaoByCodigo } from "./dm/canalDistribuicao/CanalDistribuicaoService.js";
|
|
123
123
|
import { apiFindDmCentro, apiFindDmCentroByCodigo, apiFindDmCentroByCodigos, apiFindMonitorCentro } from "./dm/centro/CentroService.js";
|
|
124
124
|
import { apiFindDmCondicaoPagamento, apiFindMonitorCondicaoPagamento, apiFindVerificaCadastroCompletoByCondicaoPagamento } from "./dm/condicaoPagamento/CondicaoPagamentoService.js";
|
|
@@ -144,6 +144,7 @@ import { apiFindMonitorInsumosEstoque } from "./insumos/estoque/EstoqueService.j
|
|
|
144
144
|
import { apiFindMonitorIva } from "./dm/iva/IvaService.js";
|
|
145
145
|
import { apiGetFornecedor } from "./transportadora/Motorista/MotoristaService.js";
|
|
146
146
|
export {
|
|
147
|
+
apiAbrirAnoPpr,
|
|
147
148
|
apiAddAssistenciaTecnicaSeloSocial,
|
|
148
149
|
apiAddAtivosAplicacao,
|
|
149
150
|
apiAddAtivosAtivo,
|
|
@@ -382,6 +383,7 @@ export {
|
|
|
382
383
|
apiFindByIdPrecoDiaHistoricos,
|
|
383
384
|
apiFindByIds,
|
|
384
385
|
apiFindByIdsProduto,
|
|
386
|
+
apiFindByModeloAndTipo,
|
|
385
387
|
apiFindByNomeOrCodigo,
|
|
386
388
|
apiFindByNotaFiscal,
|
|
387
389
|
apiFindByTipoAndFormulario,
|
|
@@ -587,6 +589,7 @@ export {
|
|
|
587
589
|
apiGetAllInsumosFaturamentoVsDespesa,
|
|
588
590
|
apiGetAllInsumosFreteMaterial,
|
|
589
591
|
apiGetAllInsumosPrincipioAtivo,
|
|
592
|
+
apiGetAnosPpr,
|
|
590
593
|
apiGetAreaAtuacao,
|
|
591
594
|
apiGetAssistenciaTecnicaSeloSocial,
|
|
592
595
|
apiGetAssistenciaTecnicaSeloSocialHistoricos,
|
|
@@ -615,8 +618,10 @@ export {
|
|
|
615
618
|
apiGetAtivosVlan,
|
|
616
619
|
apiGetAvaliacao,
|
|
617
620
|
apiGetBusinessPartnerByCnpjWithOptionalIe,
|
|
621
|
+
apiGetBusinessPartnersCodeByCpf,
|
|
618
622
|
apiGetCalulatePriceRacaoPedidoVenda,
|
|
619
623
|
apiGetCategoria,
|
|
624
|
+
apiGetCentrosCustosPprByAno,
|
|
620
625
|
apiGetCertificadoTransportadora,
|
|
621
626
|
apiGetCessaoDireitoCredito,
|
|
622
627
|
apiGetCessaoDireitoCreditoHistoricos,
|
|
@@ -707,6 +712,7 @@ export {
|
|
|
707
712
|
apiSearchLimiteAdiantamentoGeral,
|
|
708
713
|
apiSearchSeguradorasAgricolas,
|
|
709
714
|
apiSendMail,
|
|
715
|
+
apiSetRequisicaoCompraLock,
|
|
710
716
|
apiTransferirAtivosAtivo,
|
|
711
717
|
apiUpdateAcessoPatio,
|
|
712
718
|
apiUpdateAreaAtuacao,
|
|
@@ -734,6 +740,7 @@ export {
|
|
|
734
740
|
apiUpdateAtivosVlan,
|
|
735
741
|
apiUpdateCadastroEstrategiaLiberacaoValor,
|
|
736
742
|
apiUpdateCategoria,
|
|
743
|
+
apiUpdateCentroCustoPprStatus,
|
|
737
744
|
apiUpdateCertificadoTransportadora,
|
|
738
745
|
apiUpdateCessaoDireitoCredito,
|
|
739
746
|
apiUpdateCest,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import ApiServiceJ from "../../../../@ecme/services/ApiServiceJ.js";
|
|
2
|
+
async function apiGetTermos(body) {
|
|
3
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
4
|
+
url: "/juridico/api/juridico/termos/listar",
|
|
5
|
+
method: "get",
|
|
6
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
7
|
+
});
|
|
8
|
+
let filteredResponse = response || [];
|
|
9
|
+
if (body) {
|
|
10
|
+
if (body.id) {
|
|
11
|
+
filteredResponse = filteredResponse.filter(
|
|
12
|
+
(termo) => termo.id?.toString().includes(body.id)
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
if (body.fornecedor) {
|
|
16
|
+
const searchTerm = body.fornecedor.toLowerCase();
|
|
17
|
+
filteredResponse = filteredResponse.filter(
|
|
18
|
+
(termo) => termo.fornecedor?.nome?.toLowerCase().includes(searchTerm)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
if (body.usuarioCadastro) {
|
|
22
|
+
const searchTerm = body.usuarioCadastro.toLowerCase();
|
|
23
|
+
filteredResponse = filteredResponse.filter(
|
|
24
|
+
(termo) => termo.usuarioCadastro?.toLowerCase().includes(searchTerm)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
if (body.dataCadastro) {
|
|
28
|
+
const searchDate = body.dataCadastro;
|
|
29
|
+
filteredResponse = filteredResponse.filter((termo) => {
|
|
30
|
+
if (!termo.dataCadastro) return false;
|
|
31
|
+
const termoDate = new Date(termo.dataCadastro).toISOString().split("T")[0];
|
|
32
|
+
return termoDate === searchDate;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const paginatedResponse = {
|
|
37
|
+
content: filteredResponse,
|
|
38
|
+
size: filteredResponse.length,
|
|
39
|
+
totalElements: filteredResponse.length,
|
|
40
|
+
totalPages: 1,
|
|
41
|
+
number: 0
|
|
42
|
+
};
|
|
43
|
+
return paginatedResponse;
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
apiGetTermos
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=JuridicoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JuridicoService.js","sources":["../../../../../lib/base/services/modules/juridico/JuridicoService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport ApiServiceJ from '@/services/ApiServiceJ'\nimport { TTermo } from '@base/@types/api/request/juridico/termos/termo'\n\nexport async function apiGetTermos(body?: IFilterParams) {\n const response = await ApiServiceJ.fetchDataWithAxios<TTermo[]>({\n url: '/juridico/api/juridico/termos/listar',\n method: 'get',\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n \n // Aplicar filtros no frontend (já que o backend não suporta filtros)\n let filteredResponse = response || []\n \n if (body) {\n if (body.id) {\n filteredResponse = filteredResponse.filter((termo: TTermo) =>\n termo.id?.toString().includes(body.id as string)\n )\n }\n if (body.fornecedor) {\n const searchTerm = (body.fornecedor as string).toLowerCase()\n filteredResponse = filteredResponse.filter((termo: TTermo) =>\n termo.fornecedor?.nome?.toLowerCase().includes(searchTerm)\n )\n }\n if (body.usuarioCadastro) {\n const searchTerm = (body.usuarioCadastro as string).toLowerCase()\n filteredResponse = filteredResponse.filter((termo: TTermo) =>\n termo.usuarioCadastro?.toLowerCase().includes(searchTerm)\n )\n }\n if (body.dataCadastro) {\n const searchDate = body.dataCadastro as string\n filteredResponse = filteredResponse.filter((termo: TTermo) => {\n if (!termo.dataCadastro) return false\n const termoDate = new Date(termo.dataCadastro).toISOString().split('T')[0]\n return termoDate === searchDate\n })\n }\n }\n \n const paginatedResponse = {\n content: filteredResponse,\n size: filteredResponse.length,\n totalElements: filteredResponse.length,\n totalPages: 1,\n number: 0\n }\n \n return paginatedResponse as TQueryResponse<TTermo>\n}"],"names":[],"mappings":";AAIA,eAAsB,aAAa,MAAsB;AACrD,QAAM,WAAW,MAAM,YAAY,mBAA6B;AAAA,IAC5D,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,mBAAmB;AAAA,EAAA,CACtB;AAGD,MAAI,mBAAmB,YAAY,CAAA;AAEnC,MAAI,MAAM;AACN,QAAI,KAAK,IAAI;AACT,yBAAmB,iBAAiB;AAAA,QAAO,CAAC,UACxC,MAAM,IAAI,WAAW,SAAS,KAAK,EAAY;AAAA,MAAA;AAAA,IAEvD;AACA,QAAI,KAAK,YAAY;AACjB,YAAM,aAAc,KAAK,WAAsB,YAAA;AAC/C,yBAAmB,iBAAiB;AAAA,QAAO,CAAC,UACxC,MAAM,YAAY,MAAM,YAAA,EAAc,SAAS,UAAU;AAAA,MAAA;AAAA,IAEjE;AACA,QAAI,KAAK,iBAAiB;AACtB,YAAM,aAAc,KAAK,gBAA2B,YAAA;AACpD,yBAAmB,iBAAiB;AAAA,QAAO,CAAC,UACxC,MAAM,iBAAiB,YAAA,EAAc,SAAS,UAAU;AAAA,MAAA;AAAA,IAEhE;AACA,QAAI,KAAK,cAAc;AACnB,YAAM,aAAa,KAAK;AACxB,yBAAmB,iBAAiB,OAAO,CAAC,UAAkB;AAC1D,YAAI,CAAC,MAAM,aAAc,QAAO;AAChC,cAAM,YAAY,IAAI,KAAK,MAAM,YAAY,EAAE,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC;AACzE,eAAO,cAAc;AAAA,MACzB,CAAC;AAAA,IACL;AAAA,EACJ;AAEA,QAAM,oBAAoB;AAAA,IACtB,SAAS;AAAA,IACT,MAAM,iBAAiB;AAAA,IACvB,eAAe,iBAAiB;AAAA,IAChC,YAAY;AAAA,IACZ,QAAQ;AAAA,EAAA;AAGZ,SAAO;AACX;"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import ApiServiceJ from "../../../../@ecme/services/ApiServiceJ.js";
|
|
2
|
+
const docusignService = {
|
|
3
|
+
sendEnvelope: async (payload) => {
|
|
4
|
+
const request = {
|
|
5
|
+
brandId: "",
|
|
6
|
+
emailSubject: payload.subject,
|
|
7
|
+
status: "sent",
|
|
8
|
+
createdDateTime: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9
|
+
completedDateTime: null,
|
|
10
|
+
deletedDateTime: null,
|
|
11
|
+
deliveredDateTime: null,
|
|
12
|
+
sentDateTime: null,
|
|
13
|
+
documents: [
|
|
14
|
+
{
|
|
15
|
+
documentId: payload.documentId,
|
|
16
|
+
name: "Termo",
|
|
17
|
+
fileExtension: "pdf",
|
|
18
|
+
documentBase64: payload.documentBase64
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
recipients: {
|
|
22
|
+
signers: payload.signers.map((s, idx) => ({
|
|
23
|
+
emailBody: "",
|
|
24
|
+
emailSubject: payload.subject,
|
|
25
|
+
email: s.email,
|
|
26
|
+
name: s.name,
|
|
27
|
+
recipientId: String(idx + 1),
|
|
28
|
+
routingOrder: String(idx + 1),
|
|
29
|
+
signHereTabs: []
|
|
30
|
+
}))
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
console.log("[DocuSign] POST /send-envelopeId — request:", request);
|
|
34
|
+
try {
|
|
35
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
36
|
+
url: "/docusign/api/docusign/send-envelopeId",
|
|
37
|
+
method: "POST",
|
|
38
|
+
data: request,
|
|
39
|
+
headers: { "Content-Type": "application/json" },
|
|
40
|
+
serviceKeyEnvName: "DOCUSIGN_API_KEY"
|
|
41
|
+
});
|
|
42
|
+
console.log("[DocuSign] POST /send-envelopeId — response:", response);
|
|
43
|
+
return {
|
|
44
|
+
envelopeId: response.envelopeId,
|
|
45
|
+
status: response.status
|
|
46
|
+
};
|
|
47
|
+
} catch (err) {
|
|
48
|
+
console.error("[DocuSign] POST /send-envelopeId — error:", err);
|
|
49
|
+
throw err;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
listEnvelopes: async (date, status) => {
|
|
53
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
54
|
+
url: `/docusign/api/docusign/list-status-envelopeId/${date}`,
|
|
55
|
+
method: "GET",
|
|
56
|
+
params: { status },
|
|
57
|
+
serviceKeyEnvName: "DOCUSIGN_API_KEY"
|
|
58
|
+
});
|
|
59
|
+
return (response.envelopes || []).map((e) => ({
|
|
60
|
+
envelopeId: e.envelopeId,
|
|
61
|
+
status: e.status,
|
|
62
|
+
updatedDateTime: e.statusChangedDateTime ?? e.createdDateTime
|
|
63
|
+
}));
|
|
64
|
+
},
|
|
65
|
+
listRecipients: async (envelopeId) => {
|
|
66
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
67
|
+
url: `/docusign/api/docusign/list-status-recipients/${envelopeId}`,
|
|
68
|
+
method: "GET",
|
|
69
|
+
serviceKeyEnvName: "DOCUSIGN_API_KEY"
|
|
70
|
+
});
|
|
71
|
+
return response.signers || [];
|
|
72
|
+
},
|
|
73
|
+
voidEnvelope: async (envelopeId, reason) => {
|
|
74
|
+
await ApiServiceJ.fetchDataWithAxios({
|
|
75
|
+
url: `/docusign/api/docusign/voided-envelope/${envelopeId}`,
|
|
76
|
+
method: "PUT",
|
|
77
|
+
params: { voidedReason: reason },
|
|
78
|
+
serviceKeyEnvName: "DOCUSIGN_API_KEY"
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
updateRecipients: async (envelopeId, signers) => {
|
|
82
|
+
const request = {
|
|
83
|
+
signers: signers.map((s) => ({
|
|
84
|
+
email: s.email,
|
|
85
|
+
recipientId: s.recipientId
|
|
86
|
+
}))
|
|
87
|
+
};
|
|
88
|
+
await ApiServiceJ.fetchDataWithAxios({
|
|
89
|
+
url: `/docusign/api/docusign/update-email/${envelopeId}`,
|
|
90
|
+
method: "PUT",
|
|
91
|
+
data: request,
|
|
92
|
+
serviceKeyEnvName: "DOCUSIGN_API_KEY"
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
downloadSignedPdf: async (envelopeId, documentId) => {
|
|
96
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
97
|
+
url: `/docusign/api/docusign/download-pdf/${envelopeId}/${documentId}`,
|
|
98
|
+
method: "GET",
|
|
99
|
+
serviceKeyEnvName: "DOCUSIGN_API_KEY"
|
|
100
|
+
});
|
|
101
|
+
const b64 = response?.pdfBase64 || "";
|
|
102
|
+
const binary = atob(b64);
|
|
103
|
+
const len = binary.length;
|
|
104
|
+
const bytes = new Uint8Array(len);
|
|
105
|
+
for (let i = 0; i < len; i++) bytes[i] = binary.charCodeAt(i);
|
|
106
|
+
return bytes.buffer;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
export {
|
|
110
|
+
docusignService
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=docusignService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docusignService.js","sources":["../../../../../lib/base/services/modules/juridico/docusignService.ts"],"sourcesContent":["import ApiServiceJ from '@/services/ApiServiceJ'\n\nexport type TSignerUpdate = {\n email: string\n recipientId: string\n name?: string\n}\n\nexport type TSendEnvelopeRequest = {\n subject: string\n signers: { email: string; name: string }[]\n documentBase64: string\n documentId?: string\n}\n\nexport type TEnvelopeOutput = {\n envelopeId: string\n status?: string\n updatedDateTime?: string\n}\n\nexport const docusignService = {\n sendEnvelope: async (payload: TSendEnvelopeRequest): Promise<TEnvelopeOutput> => {\n const request = {\n brandId: '',\n emailSubject: payload.subject,\n status: 'sent',\n createdDateTime: new Date().toISOString(),\n completedDateTime: null,\n deletedDateTime: null,\n deliveredDateTime: null,\n sentDateTime: null,\n documents: [\n {\n documentId: payload.documentId,\n name: 'Termo',\n fileExtension: 'pdf',\n documentBase64: payload.documentBase64,\n },\n ],\n recipients: {\n signers: payload.signers.map((s, idx) => ({\n emailBody: '',\n emailSubject: payload.subject,\n email: s.email,\n name: s.name,\n recipientId: String(idx + 1),\n routingOrder: String(idx + 1),\n signHereTabs: [],\n })),\n },\n }\n\n console.log('[DocuSign] POST /send-envelopeId — request:', request)\n\n try {\n const response = await ApiServiceJ.fetchDataWithAxios<{\n status?: string\n envelopeId: string\n }, typeof request>({\n url: '/docusign/api/docusign/send-envelopeId',\n method: 'POST',\n data: request,\n headers: { 'Content-Type': 'application/json' },\n serviceKeyEnvName: 'DOCUSIGN_API_KEY',\n })\n\n console.log('[DocuSign] POST /send-envelopeId — response:', response)\n\n return {\n envelopeId: response.envelopeId,\n status: response.status,\n }\n } catch (err) {\n console.error('[DocuSign] POST /send-envelopeId — error:', err)\n throw err\n }\n },\n\n listEnvelopes: async (date: string, status: string): Promise<TEnvelopeOutput[]> => {\n const response = await ApiServiceJ.fetchDataWithAxios<{\n resultSetSize: string\n totalSetSize: string\n envelopes: Array<{\n createdDateTime: string\n statusChangedDateTime?: string\n envelopeId: string\n status: string\n }>\n }, Record<string, unknown>>({\n url: `/docusign/api/docusign/list-status-envelopeId/${date}`,\n method: 'GET',\n params: { status },\n serviceKeyEnvName: 'DOCUSIGN_API_KEY',\n })\n\n return (response.envelopes || []).map((e) => ({\n envelopeId: e.envelopeId,\n status: e.status,\n updatedDateTime: e.statusChangedDateTime ?? e.createdDateTime,\n }))\n },\n\n listRecipients: async (envelopeId: string) => {\n const response = await ApiServiceJ.fetchDataWithAxios<{\n signers: Array<{ name: string; email: string; status?: string }>\n }, Record<string, unknown>>({\n url: `/docusign/api/docusign/list-status-recipients/${envelopeId}`,\n method: 'GET',\n serviceKeyEnvName: 'DOCUSIGN_API_KEY',\n })\n\n return response.signers || []\n },\n\n voidEnvelope: async (envelopeId: string, reason: string) => {\n await ApiServiceJ.fetchDataWithAxios<void, Record<string, unknown>>({\n url: `/docusign/api/docusign/voided-envelope/${envelopeId}`,\n method: 'PUT',\n params: { voidedReason: reason },\n serviceKeyEnvName: 'DOCUSIGN_API_KEY',\n })\n },\n\n updateRecipients: async (envelopeId: string, signers: TSignerUpdate[]) => {\n const request = {\n signers: signers.map((s) => ({\n email: s.email,\n recipientId: s.recipientId,\n })),\n }\n\n await ApiServiceJ.fetchDataWithAxios<void, typeof request>({\n url: `/docusign/api/docusign/update-email/${envelopeId}`,\n method: 'PUT',\n data: request,\n serviceKeyEnvName: 'DOCUSIGN_API_KEY',\n })\n },\n\n downloadSignedPdf: async (envelopeId: string, documentId: string): Promise<ArrayBuffer> => {\n const response = await ApiServiceJ.fetchDataWithAxios<{ pdfBase64: string }>({\n url: `/docusign/api/docusign/download-pdf/${envelopeId}/${documentId}`,\n method: 'GET',\n serviceKeyEnvName: 'DOCUSIGN_API_KEY',\n })\n const b64 = response?.pdfBase64 || ''\n const binary = atob(b64)\n const len = binary.length\n const bytes = new Uint8Array(len)\n for (let i = 0; i < len; i++) bytes[i] = binary.charCodeAt(i)\n return bytes.buffer\n },\n}\n"],"names":[],"mappings":";AAqBO,MAAM,kBAAkB;AAAA,EAC3B,cAAc,OAAO,YAA4D;AAC7E,UAAM,UAAU;AAAA,MACZ,SAAS;AAAA,MACT,cAAc,QAAQ;AAAA,MACtB,QAAQ;AAAA,MACR,kBAAiB,oBAAI,KAAA,GAAO,YAAA;AAAA,MAC5B,mBAAmB;AAAA,MACnB,iBAAiB;AAAA,MACjB,mBAAmB;AAAA,MACnB,cAAc;AAAA,MACd,WAAW;AAAA,QACP;AAAA,UACI,YAAY,QAAQ;AAAA,UACpB,MAAM;AAAA,UACN,eAAe;AAAA,UACf,gBAAgB,QAAQ;AAAA,QAAA;AAAA,MAC5B;AAAA,MAEJ,YAAY;AAAA,QACR,SAAS,QAAQ,QAAQ,IAAI,CAAC,GAAG,SAAS;AAAA,UACtC,WAAW;AAAA,UACX,cAAc,QAAQ;AAAA,UACtB,OAAO,EAAE;AAAA,UACT,MAAM,EAAE;AAAA,UACR,aAAa,OAAO,MAAM,CAAC;AAAA,UAC3B,cAAc,OAAO,MAAM,CAAC;AAAA,UAC5B,cAAc,CAAA;AAAA,QAAC,EACjB;AAAA,MAAA;AAAA,IACN;AAGJ,YAAQ,IAAI,+CAA+C,OAAO;AAElE,QAAI;AACA,YAAM,WAAW,MAAM,YAAY,mBAGhB;AAAA,QACf,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,SAAS,EAAE,gBAAgB,mBAAA;AAAA,QAC3B,mBAAmB;AAAA,MAAA,CACtB;AAED,cAAQ,IAAI,gDAAgD,QAAQ;AAEpE,aAAO;AAAA,QACH,YAAY,SAAS;AAAA,QACrB,Q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,OAAO,YAAoB,eAA6C;AACvF,UAAM,WAAW,MAAM,YAAY,mBAA0C;AAAA,MACzE,KAAK,uCAAuC,UAAU,IAAI,UAAU;AAAA,MACpE,QAAQ;AAAA,MACR,mBAAmB;AAAA,IAAA,CACtB;AACD,UAAM,MAAM,UAAU,aAAa;AACnC,UAAM,SAAS,KAAK,GAAG;AACvB,UAAM,MAAM,OAAO;AACnB,UAAM,QAAQ,IAAI,WAAW,GAAG;AAChC,aAAS,IAAI,GAAG,IAAI,KAAK,WAAW,CAAC,IAAI,OAAO,WAAW,CAAC;AAC5D,WAAO,MAAM;AAAA,EACjB;AACJ;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import ApiService from "../../../../@ecme/services/ApiService.js";
|
|
2
|
+
const municipiosService = {
|
|
3
|
+
getAll: async () => {
|
|
4
|
+
try {
|
|
5
|
+
console.log("Fazendo requisição para /dados-mestres/api/municipio/find");
|
|
6
|
+
const response = await ApiService.fetchDataWithAxios({
|
|
7
|
+
url: "/dados-mestres/api/municipio/find",
|
|
8
|
+
method: "POST",
|
|
9
|
+
data: {
|
|
10
|
+
id: null,
|
|
11
|
+
municipio: null,
|
|
12
|
+
codigo: null,
|
|
13
|
+
pageable: {
|
|
14
|
+
pageNumber: 1,
|
|
15
|
+
pageSize: 1e4,
|
|
16
|
+
sort: [{
|
|
17
|
+
sortField: "municipio",
|
|
18
|
+
sortOrder: "asc"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
console.log("Resposta da API:", response);
|
|
24
|
+
const municipios = response.content || [];
|
|
25
|
+
return municipios.map((municipio) => ({
|
|
26
|
+
id: municipio.id,
|
|
27
|
+
nome: municipio.municipio,
|
|
28
|
+
uf: municipio.uf,
|
|
29
|
+
codigo: municipio.codigo,
|
|
30
|
+
ativo: true
|
|
31
|
+
// Assumindo que todos os retornados estão ativos
|
|
32
|
+
}));
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error("Error fetching municipalities:", error);
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
municipiosService
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=municipiosService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"municipiosService.js","sources":["../../../../../lib/base/services/modules/juridico/municipiosService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport { TQueryResponse } from '@base/@types/api'\n\nexport const municipiosService = {\n getAll: async (): Promise<any[]> => {\n try {\n console.log('Fazendo requisição para /dados-mestres/api/municipio/find')\n \n // Usando o ApiService padrão do projeto que já inclui o X-Service-Token\n const response = await ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: '/dados-mestres/api/municipio/find',\n method: 'POST',\n data: {\n id: null,\n municipio: null,\n codigo: null,\n pageable: {\n pageNumber: 1,\n pageSize: 10000,\n sort: [{\n sortField: 'municipio',\n sortOrder: 'asc'\n }]\n }\n }\n })\n \n console.log('Resposta da API:', response)\n \n // A resposta é paginada, então pegamos o conteúdo\n const municipios = response.content || []\n \n // Mapear para o formato esperado pelo frontend\n return municipios.map((municipio: any) => ({\n id: municipio.id,\n nome: municipio.municipio,\n uf: municipio.uf,\n codigo: municipio.codigo,\n ativo: true // Assumindo que todos os retornados estão ativos\n }))\n } catch (error) {\n console.error('Error fetching municipalities:', error)\n return []\n }\n }\n}"],"names":[],"mappings":";AAGO,MAAM,oBAAoB;AAAA,EAC7B,QAAQ,YAA4B;AAChC,QAAI;AACA,cAAQ,IAAI,2DAA2D;AAGvE,YAAM,WAAW,MAAM,WAAW,mBAAwC;AAAA,QACtE,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM;AAAA,UACF,IAAI;AAAA,UACJ,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,UAAU;AAAA,YACN,YAAY;AAAA,YACZ,UAAU;AAAA,YACV,MAAM,CAAC;AAAA,cACH,WAAW;AAAA,cACX,WAAW;AAAA,YAAA,CACd;AAAA,UAAA;AAAA,QACL;AAAA,MACJ,CACH;AAED,cAAQ,IAAI,oBAAoB,QAAQ;AAGxC,YAAM,aAAa,SAAS,WAAW,CAAA;AAGvC,aAAO,WAAW,IAAI,CAAC,eAAoB;AAAA,QACvC,IAAI,UAAU;AAAA,QACd,MAAM,UAAU;AAAA,QAChB,IAAI,UAAU;AAAA,QACd,QAAQ,UAAU;AAAA,QAClB,OAAO;AAAA;AAAA,MAAA,EACT;AAAA,IACN,SAAS,OAAO;AACZ,cAAQ,MAAM,kCAAkC,KAAK;AACrD,aAAO,CAAA;AAAA,IACX;AAAA,EACJ;AACJ;"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import ApiServiceJ from "../../../../@ecme/services/ApiServiceJ.js";
|
|
2
|
+
const BASE_URL = "/juridico/api/juridico/termos";
|
|
3
|
+
const termosService = {
|
|
4
|
+
create: async (termo) => {
|
|
5
|
+
try {
|
|
6
|
+
console.log("Payload being sent:", termo);
|
|
7
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
8
|
+
url: BASE_URL,
|
|
9
|
+
method: "POST",
|
|
10
|
+
data: termo,
|
|
11
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
12
|
+
});
|
|
13
|
+
return response;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
console.error("Detailed error:", error.response?.data);
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
downloadPdf: async (id) => {
|
|
20
|
+
console.log("Chamando download com ID:", id);
|
|
21
|
+
try {
|
|
22
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
23
|
+
url: `${BASE_URL}/download/${id}`,
|
|
24
|
+
method: "GET",
|
|
25
|
+
responseType: "arraybuffer",
|
|
26
|
+
headers: {
|
|
27
|
+
"Accept": "application/pdf, application/json;q=0.9, */*;q=0.8"
|
|
28
|
+
},
|
|
29
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
30
|
+
});
|
|
31
|
+
console.log("Resposta recebida:", response);
|
|
32
|
+
return response;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error("Erro completo:", error);
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
downloadPdfDocuSign: async (id) => {
|
|
39
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
40
|
+
url: `${BASE_URL}/${id}/docusign/download`,
|
|
41
|
+
method: "GET",
|
|
42
|
+
responseType: "arraybuffer",
|
|
43
|
+
headers: {
|
|
44
|
+
"Accept": "application/pdf, application/json;q=0.9, */*;q=0.8"
|
|
45
|
+
},
|
|
46
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
47
|
+
});
|
|
48
|
+
return response;
|
|
49
|
+
},
|
|
50
|
+
aprovarRejeitar: async (data) => {
|
|
51
|
+
return ApiServiceJ.fetchDataWithAxios({
|
|
52
|
+
url: `${BASE_URL}/aprovar-rejeitar`,
|
|
53
|
+
method: "PUT",
|
|
54
|
+
data,
|
|
55
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
getById: async (id) => {
|
|
59
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
60
|
+
url: `${BASE_URL}/${id}`,
|
|
61
|
+
method: "GET",
|
|
62
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
63
|
+
});
|
|
64
|
+
return response;
|
|
65
|
+
},
|
|
66
|
+
getContratoDocusign: async (id) => {
|
|
67
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
68
|
+
url: `${BASE_URL}/${id}/contrato-docusign`,
|
|
69
|
+
method: "GET",
|
|
70
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
71
|
+
});
|
|
72
|
+
return response;
|
|
73
|
+
},
|
|
74
|
+
attachEnvelope: async (id, envelopeId) => {
|
|
75
|
+
await ApiServiceJ.fetchDataWithAxios({
|
|
76
|
+
url: `${BASE_URL}/${id}/docusign/envelope`,
|
|
77
|
+
method: "PUT",
|
|
78
|
+
data: { envelopeId },
|
|
79
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
enviarEnvelope: async (id) => {
|
|
83
|
+
await ApiServiceJ.fetchDataWithAxios({
|
|
84
|
+
url: `${BASE_URL}/${id}/docusign/enviar`,
|
|
85
|
+
method: "POST",
|
|
86
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
syncStatusDocuSign: async () => {
|
|
90
|
+
await ApiServiceJ.fetchDataWithAxios({
|
|
91
|
+
url: `${BASE_URL}/docusign/sync-status`,
|
|
92
|
+
method: "PUT",
|
|
93
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
getRecipientsStatus: async (id) => {
|
|
97
|
+
const response = await ApiServiceJ.fetchDataWithAxios({
|
|
98
|
+
url: `${BASE_URL}/${id}/docusign/recipients`,
|
|
99
|
+
method: "GET",
|
|
100
|
+
serviceKeyEnvName: "JURIDICO_API_KEY"
|
|
101
|
+
});
|
|
102
|
+
return response || [];
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
termosService
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=termosService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"termosService.js","sources":["../../../../../lib/base/services/modules/juridico/termosService.ts"],"sourcesContent":["import ApiServiceJ from '@/services/ApiServiceJ'\nimport { TTermo } from '@base/@types/api/request/juridico/termos/termo'\nimport { TTermoFormSchema } from '@base/@types/api/request/juridico/termos/types'\n\n\nconst BASE_URL = '/juridico/api/juridico/termos'\n\nexport const termosService = {\n create: async (termo: TTermoFormSchema): Promise<{ id: number }> => {\n try {\n console.log('Payload being sent:', termo)\n \n const response = await ApiServiceJ.fetchDataWithAxios<{ id: number }, TTermoFormSchema>({\n url: BASE_URL,\n method: 'POST',\n data: termo,\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n return response\n } catch (error: any) {\n console.error('Detailed error:', error.response?.data)\n throw error\n }\n },\n \n downloadPdf: async (id: number): Promise<ArrayBuffer> => {\n console.log('Chamando download com ID:', id)\n try {\n const response = await ApiServiceJ.fetchDataWithAxios<ArrayBuffer>({\n url: `${BASE_URL}/download/${id}`,\n method: 'GET',\n responseType: 'arraybuffer',\n headers: {\n 'Accept': 'application/pdf, application/json;q=0.9, */*;q=0.8'\n },\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n console.log('Resposta recebida:', response)\n return response\n } catch (error: any) {\n console.error('Erro completo:', error)\n throw error\n }\n },\n downloadPdfDocuSign: async (id: number): Promise<ArrayBuffer> => {\n const response = await ApiServiceJ.fetchDataWithAxios<ArrayBuffer>({\n url: `${BASE_URL}/${id}/docusign/download`,\n method: 'GET',\n responseType: 'arraybuffer',\n headers: {\n 'Accept': 'application/pdf, application/json;q=0.9, */*;q=0.8'\n },\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n return response\n },\n aprovarRejeitar: async (data: {\n termoId: number;\n status: 'APROVADO' | 'REJEITADO';\n justificativaRejeicao?: string;\n }) => {\n return ApiServiceJ.fetchDataWithAxios({\n url: `${BASE_URL}/aprovar-rejeitar`,\n method: 'PUT',\n data,\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n },\n\n getById: async (id: number): Promise<TTermo> => {\n const response = await ApiServiceJ.fetchDataWithAxios<TTermo>({\n url: `${BASE_URL}/${id}`,\n method: 'GET',\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n return response\n },\n\n getContratoDocusign: async (id: number): Promise<{ envelopeId: string; contratoId: number }> => {\n const response = await ApiServiceJ.fetchDataWithAxios<{ envelopeId: string; contratoId: number }>({\n url: `${BASE_URL}/${id}/contrato-docusign`,\n method: 'GET',\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n return response\n },\n\n attachEnvelope: async (id: number, envelopeId: string): Promise<void> => {\n await ApiServiceJ.fetchDataWithAxios<void, { envelopeId: string }>({\n url: `${BASE_URL}/${id}/docusign/envelope`,\n method: 'PUT',\n data: { envelopeId },\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n },\n enviarEnvelope: async (id: number): Promise<void> => {\n await ApiServiceJ.fetchDataWithAxios<void>({\n url: `${BASE_URL}/${id}/docusign/enviar`,\n method: 'POST',\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n },\n syncStatusDocuSign: async (): Promise<void> => {\n await ApiServiceJ.fetchDataWithAxios<void>({\n url: `${BASE_URL}/docusign/sync-status`,\n method: 'PUT',\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n },\n getRecipientsStatus: async (id: number): Promise<Array<{ name: string; email: string; status?: string }>> => {\n const response = await ApiServiceJ.fetchDataWithAxios<Array<{ name: string; email: string; status?: string }>>({\n url: `${BASE_URL}/${id}/docusign/recipients`,\n method: 'GET',\n serviceKeyEnvName: 'JURIDICO_API_KEY',\n })\n return response || []\n },\n}"],"names":[],"mappings":";AAKA,MAAM,WAAW;AAEV,MAAM,gBAAgB;AAAA,EACzB,QAAQ,OAAO,UAAqD;AAChE,QAAI;AACA,cAAQ,IAAI,uBAAuB,KAAK;AAExC,YAAM,WAAW,MAAM,YAAY,mBAAqD;AAAA,QACpF,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,mBAAmB;AAAA,MAAA,CACtB;AACD,aAAO;AAAA,IACX,SAAS,OAAY;AACjB,cAAQ,MAAM,mBAAmB,MAAM,UAAU,IAAI;AACrD,YAAM;AAAA,IACV;AAAA,EACJ;AAAA,EAEA,aAAa,OAAO,OAAqC;AACrD,YAAQ,IAAI,6BAA6B,EAAE;AAC3C,QAAI;AACA,YAAM,WAAW,MAAM,YAAY,m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EAAE;AAAA,MACtB,QAAQ;AAAA,MACR,MAAM,EAAE,WAAA;AAAA,MACR,mBAAmB;AAAA,IAAA,CACtB;AAAA,EACL;AAAA,EACA,gBAAgB,OAAO,OAA8B;AACjD,UAAM,YAAY,mBAAyB;AAAA,MACvC,KAAK,GAAG,QAAQ,IAAI,EAAE;AAAA,MACtB,QAAQ;AAAA,MACR,mBAAmB;AAAA,IAAA,CACtB;AAAA,EACL;AAAA,EACA,oBAAoB,YAA2B;AAC3C,UAAM,YAAY,mBAAyB;AAAA,MACvC,KAAK,GAAG,QAAQ;AAAA,MAChB,QAAQ;AAAA,MACR,mBAAmB;AAAA,IAAA,CACtB;AAAA,EACL;AAAA,EACA,qBAAqB,OAAO,OAAiF;AACzG,UAAM,WAAW,MAAM,YAAY,mBAA4E;AAAA,MAC3G,KAAK,GAAG,QAAQ,IAAI,EAAE;AAAA,MACtB,QAAQ;AAAA,MACR,mBAAmB;AAAA,IAAA,CACtB;AACD,WAAO,YAAY,CAAA;AAAA,EACvB;AACJ;"}
|
|
@@ -166,7 +166,35 @@ async function apiFindAvaliacaoColaborador(body) {
|
|
|
166
166
|
data: body
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
+
async function apiAbrirAnoPpr(data) {
|
|
170
|
+
return ApiService.fetchDataWithAxios({
|
|
171
|
+
url: endpointNavigationConfig.performance.ppr.aberturaAno,
|
|
172
|
+
method: "post",
|
|
173
|
+
data
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
async function apiGetAnosPpr() {
|
|
177
|
+
return ApiService.fetchDataWithAxios({
|
|
178
|
+
url: endpointNavigationConfig.performance.ppr.anos,
|
|
179
|
+
method: "get"
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
async function apiGetCentrosCustosPprByAno(ano) {
|
|
183
|
+
return ApiService.fetchDataWithAxios({
|
|
184
|
+
url: endpointNavigationConfig.performance.ppr.centrosCustos,
|
|
185
|
+
method: "get",
|
|
186
|
+
params: { ano }
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
async function apiUpdateCentroCustoPprStatus(id, data) {
|
|
190
|
+
return ApiService.fetchDataWithAxios({
|
|
191
|
+
url: `${endpointNavigationConfig.performance.ppr.updateStatus}/${id}/status`,
|
|
192
|
+
method: "put",
|
|
193
|
+
data
|
|
194
|
+
});
|
|
195
|
+
}
|
|
169
196
|
export {
|
|
197
|
+
apiAbrirAnoPpr,
|
|
170
198
|
apiCreateAreaAtuacao,
|
|
171
199
|
apiCreateAvaliacao,
|
|
172
200
|
apiCreateCategoria,
|
|
@@ -182,14 +210,17 @@ export {
|
|
|
182
210
|
apiFindOneCategoria,
|
|
183
211
|
apiFindOneModeloAvaliacao,
|
|
184
212
|
apiFindOneModeloNota,
|
|
213
|
+
apiGetAnosPpr,
|
|
185
214
|
apiGetAreaAtuacao,
|
|
186
215
|
apiGetAvaliacao,
|
|
187
216
|
apiGetCategoria,
|
|
217
|
+
apiGetCentrosCustosPprByAno,
|
|
188
218
|
apiGetComparativo,
|
|
189
219
|
apiGetModeloAvaliacao,
|
|
190
220
|
apiGetModeloNota,
|
|
191
221
|
apiUpdateAreaAtuacao,
|
|
192
222
|
apiUpdateCategoria,
|
|
223
|
+
apiUpdateCentroCustoPprStatus,
|
|
193
224
|
apiUpdateModeloAvaliacao,
|
|
194
225
|
apiUpdateModeloNota
|
|
195
226
|
};
|