worker-automate-hub 0.5.333__tar.gz → 0.5.334__tar.gz
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.
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/PKG-INFO +1 -1
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/pyproject.toml +1 -1
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/transferencias.py +5 -47
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/README.md +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/datalake_service.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/rdp_service.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/rpa_fila_service.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/webhook_service.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dao/rpa_fila.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dao/rpa_robo.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dto/rpa_processo_rdp_dto.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dto/rpa_sap_dto.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/cte_manual.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/despesas_cte.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/devolucao_ctf.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/integracao_contabil.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/notas_faturamento_sap.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/util.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/worker.py +0 -0
@@ -46,7 +46,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
46
46
|
try:
|
47
47
|
# Inicializa variaveis
|
48
48
|
# pre_venda_message = None
|
49
|
-
itens_zero_qtd = [
|
49
|
+
itens_zero_qtd = []
|
50
50
|
nota_fiscal = [None]
|
51
51
|
log_msg = None
|
52
52
|
valor_nota = None
|
@@ -777,49 +777,6 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
777
777
|
retorno=log_msg,
|
778
778
|
status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
779
779
|
)
|
780
|
-
# screenshot_path = take_screenshot()
|
781
|
-
# message_confirma_transferencia = take_target_position(
|
782
|
-
# screenshot_path, "confirmar"
|
783
|
-
# )
|
784
|
-
# if message_confirma_transferencia is not None:
|
785
|
-
# # clica em sim na mensagem
|
786
|
-
# button_yes = find_target_position(screenshot_path, "Yes", attempts=8)
|
787
|
-
# pyautogui.click(button_yes)
|
788
|
-
# console.log(
|
789
|
-
# "Cliclou em 'Sim' para cofirmar a pré-venda", style="bold green"
|
790
|
-
# )
|
791
|
-
# pyautogui.moveTo(1200, 300)
|
792
|
-
# await worker_sleep(5)
|
793
|
-
# screenshot_path = take_screenshot()
|
794
|
-
# vencimento_message_primeira_parcela = take_target_position(
|
795
|
-
# screenshot_path, "vencimento"
|
796
|
-
# )
|
797
|
-
# # Pode nao aparecer na prod
|
798
|
-
# if vencimento_message_primeira_parcela is not None:
|
799
|
-
# button_yes = find_target_position(screenshot_path, "Yes", attempts=15)
|
800
|
-
# pyautogui.click(button_yes)
|
801
|
-
# await worker_sleep(5)
|
802
|
-
# screenshot_path = take_screenshot()
|
803
|
-
# # Clica no OK 'Pre-Venda incluida com sucesso'
|
804
|
-
# button_ok = find_target_position(screenshot_path, "Ok", attempts=15)
|
805
|
-
# pyautogui.click(button_ok)
|
806
|
-
# console.log(
|
807
|
-
# "Cliclou em 'OK' para pré-venda confirmada com sucesso",
|
808
|
-
# style="bold green",
|
809
|
-
# )
|
810
|
-
# else:
|
811
|
-
# log_msg = (
|
812
|
-
# f"Mensagem 'Deseja realmente confirmar esta pré-venda?' não encontrada."
|
813
|
-
# )
|
814
|
-
# console.print(log_msg, style="bold yellow")
|
815
|
-
# await worker_sleep(2)
|
816
|
-
|
817
|
-
# # Clica em OK na mensagem de sucesso de confirmação da pré-venda
|
818
|
-
# pre_venda_sucesso = (961, 550)
|
819
|
-
# # pyautogui.confirm("click ok")
|
820
|
-
# pyautogui.click(pre_venda_sucesso)
|
821
|
-
# console.log('Clicou em "OK" na mensagem de sucesso', style="bold green")
|
822
|
-
|
823
780
|
await worker_sleep(10)
|
824
781
|
|
825
782
|
# Faturando Pre-venda
|
@@ -867,7 +824,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
867
824
|
# Clica em fechar
|
868
825
|
await worker_sleep(3)
|
869
826
|
pyautogui.click(1200, 667)
|
870
|
-
log_msg = f"Nota lançada com sucesso! Número da nota: {nota_fiscal} | Valor: {valor_nota} | Itens com quantidade zerada: {itens_zero_qtd}"
|
827
|
+
log_msg = f"Nota lançada com sucesso! Número da nota: {nota_fiscal} | Valor: {valor_nota}" + (f" | Itens com quantidade zerada: {itens_zero_qtd}" if itens_zero_qtd else "")
|
871
828
|
await api_simplifica(
|
872
829
|
task.configEntrada.get("urlRetorno"),
|
873
830
|
"SUCESSO",
|
@@ -883,7 +840,8 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
883
840
|
)
|
884
841
|
|
885
842
|
else:
|
886
|
-
log_msg = f"{
|
843
|
+
log_msg = f"Erro Processo Transferências: {ex} | Número da nota: {nota_fiscal} | Valor: {valor_nota}" + (f" | Itens com quantidade zerada: {itens_zero_qtd}" if itens_zero_qtd else "")
|
844
|
+
|
887
845
|
console.print(log_msg)
|
888
846
|
logger.error(log_msg)
|
889
847
|
await api_simplifica(
|
@@ -900,7 +858,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
900
858
|
)
|
901
859
|
|
902
860
|
except Exception as ex:
|
903
|
-
log_msg = f"Erro Processo Transferências: {ex} | Número da nota: {nota_fiscal} | Valor: {valor_nota} | Itens com quantidade zerada: {itens_zero_qtd}"
|
861
|
+
log_msg = f"Erro Processo Transferências: {ex} | Número da nota: {nota_fiscal} | Valor: {valor_nota}" + (f" | Itens com quantidade zerada: {itens_zero_qtd}" if itens_zero_qtd else "")
|
904
862
|
logger.error(log_msg)
|
905
863
|
console.print(log_msg, style="bold red")
|
906
864
|
await api_simplifica(
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/api/rdp_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/config/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/models/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/tasks/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/env.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.333 → worker_automate_hub-0.5.334}/worker_automate_hub/utils/util.py
RENAMED
File without changes
|
File without changes
|
File without changes
|