worker-automate-hub 0.4.403__tar.gz → 0.4.404__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/PKG-INFO +1 -1
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/pyproject.toml +1 -1
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/transferencias.py +60 -18
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/README.md +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/util.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/worker.py +0 -0
@@ -613,10 +613,10 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
613
613
|
app = Application().connect(title="Informação")
|
614
614
|
dialog = app.window(title="Informação")
|
615
615
|
|
616
|
-
|
617
|
-
if
|
616
|
+
btn_yes = dialog.child_window(title="OK", class_name="Button")
|
617
|
+
if btn_yes.exists():
|
618
618
|
try:
|
619
|
-
|
619
|
+
btn_yes.click()
|
620
620
|
await worker_sleep(3)
|
621
621
|
console.print(
|
622
622
|
"O botão OK de pré-venda incluída foi clicado com sucesso.",
|
@@ -632,7 +632,6 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
632
632
|
retorno=f"Falha ao clicar no botão OK de pré-venda incluída: {e}",
|
633
633
|
status=RpaHistoricoStatusEnum.Falha,
|
634
634
|
)
|
635
|
-
|
636
635
|
else:
|
637
636
|
|
638
637
|
console.print(
|
@@ -656,22 +655,66 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
656
655
|
|
657
656
|
await worker_sleep(3)
|
658
657
|
|
659
|
-
screenshot_path = take_screenshot()
|
658
|
+
# screenshot_path = take_screenshot()
|
660
659
|
# Message 'Deseja pesquisar pré-venda?'
|
661
660
|
console.print(
|
662
661
|
"Verificando a existencia da mensagem: 'Deseja pesquisar pré-venda?'...\n"
|
663
662
|
)
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
663
|
+
try:
|
664
|
+
app = Application().connect(title="Confirm")
|
665
|
+
dialog_prevenda = app.window(title="Confirm")
|
666
|
+
|
667
|
+
btn_yes = dialog_prevenda.child_window(title="&Yes", class_name="TButton")
|
668
|
+
if btn_yes.exists():
|
669
|
+
try:
|
670
|
+
btn_yes.click()
|
671
|
+
await worker_sleep(3)
|
672
|
+
console.print(
|
673
|
+
"O botão YES de pesquisa pré-venda incluída foi clicado com sucesso.",
|
674
|
+
style="green",
|
675
|
+
)
|
676
|
+
except Exception as e:
|
677
|
+
console.print(
|
678
|
+
f"Falha ao clicar no botão YES de pesquisa pré-venda incluída: {e}",
|
679
|
+
style="red",
|
680
|
+
)
|
681
|
+
return RpaRetornoProcessoDTO(
|
682
|
+
sucesso=False,
|
683
|
+
retorno=f"Falha ao clicar no botão YES de pesquisa pré-venda incluída: {e}",
|
684
|
+
status=RpaHistoricoStatusEnum.Falha,
|
685
|
+
)
|
669
686
|
else:
|
670
|
-
|
671
|
-
console.
|
672
|
-
|
673
|
-
|
674
|
-
|
687
|
+
|
688
|
+
console.print(
|
689
|
+
"O Botão OK de pré-venda incluída não foi encontrado.", style="red"
|
690
|
+
)
|
691
|
+
return RpaRetornoProcessoDTO(
|
692
|
+
sucesso=False,
|
693
|
+
retorno="O Botão YES de pesquisa pré-venda incluída não foi encontrado.",
|
694
|
+
status=RpaHistoricoStatusEnum.Falha,
|
695
|
+
)
|
696
|
+
|
697
|
+
except Exception as e:
|
698
|
+
console.print(
|
699
|
+
f"O Botão YES de pesquisa pré-venda incluída não foi encontrado: {e}", style="red"
|
700
|
+
)
|
701
|
+
return RpaRetornoProcessoDTO(
|
702
|
+
sucesso=False,
|
703
|
+
retorno=f"O Botão YES de pesquisa pré-venda incluída não foi encontrado: {e}",
|
704
|
+
status=RpaHistoricoStatusEnum.Falha,
|
705
|
+
)
|
706
|
+
|
707
|
+
# message_prevenda = take_target_position(screenshot_path, "Deseja")
|
708
|
+
# if message_prevenda is not None:
|
709
|
+
# button_yes = find_target_position(screenshot_path, "Yes", attempts=5)
|
710
|
+
# if button_yes is not None:
|
711
|
+
# pyautogui.click(button_yes)
|
712
|
+
# else:
|
713
|
+
# pyautogui.click(914,560)
|
714
|
+
# console.log('Clicou em "Yes" para confirmar pré-venda', style="bold green")
|
715
|
+
# else:
|
716
|
+
# log_msg = f"Mensagem 'Deseja pesquisar pré-venda?' não encontrada."
|
717
|
+
# console.print(log_msg, style="bold yellow")
|
675
718
|
await worker_sleep(5)
|
676
719
|
|
677
720
|
# screenshot_path = take_screenshot()
|
@@ -767,7 +810,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
767
810
|
pyautogui.click(pre_venda_sucesso)
|
768
811
|
console.log('Clicou em "OK" na mensagem de sucesso', style="bold green")
|
769
812
|
|
770
|
-
await worker_sleep(
|
813
|
+
await worker_sleep(10)
|
771
814
|
|
772
815
|
# Faturando Pre-venda
|
773
816
|
retorno = await faturar_pre_venda(task)
|
@@ -856,5 +899,4 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
856
899
|
sucesso=False,
|
857
900
|
retorno=log_msg,
|
858
901
|
status=RpaHistoricoStatusEnum.Falha,
|
859
|
-
)
|
860
|
-
|
902
|
+
)
|
File without changes
|
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/api/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/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.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/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
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/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
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/env.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.403 → worker_automate_hub-0.4.404}/worker_automate_hub/utils/util.py
RENAMED
File without changes
|
File without changes
|
File without changes
|