worker-automate-hub 0.4.421__py3-none-any.whl → 0.4.423__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -236,7 +236,7 @@ async def get_config_by_name(name: str) -> RpaConfiguracao:
236
236
 
237
237
  async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(verify_ssl=False)) as session:
238
238
  async with session.get(
239
- f"{env_config["API_BASE_URL"]}/configuracao/{name}",
239
+ f"{env_config["API_BASE_URL"]}/configuracao/api/{name}",
240
240
  headers=headers_basic,
241
241
  ) as response:
242
242
  if response.status != 200:
@@ -281,7 +281,7 @@ def sync_get_config_by_name(name: str) -> RpaConfiguracao:
281
281
  headers_basic = {"Authorization": f"Basic {env_config['API_AUTHORIZATION']}"}
282
282
 
283
283
  response = requests.get(
284
- f"{env_config['API_BASE_URL']}/configuracao/{name}",
284
+ f"{env_config['API_BASE_URL']}/configuracao/api/{name}",
285
285
  headers=headers_basic,
286
286
  verify=False # Desativa a verificação SSL
287
287
  )
@@ -345,7 +345,6 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
345
345
 
346
346
  await worker_sleep(10)
347
347
  await emsys.percorrer_grid()
348
- pyautogui.click(585, 328)
349
348
  await emsys.select_tipo_cobranca()
350
349
  await emsys.inserir_vencimento_e_valor(
351
350
  nota.get("nomeFornecedor"),
@@ -2858,11 +2858,20 @@ async def rateio_despesa(unidade_code: str) -> RpaRetornoProcessoDTO:
2858
2858
  except:
2859
2859
  pyautogui.click(aplicar_rateio)
2860
2860
  except:
2861
- return RpaRetornoProcessoDTO(
2862
- sucesso=False,
2863
- retorno=f"Campo aplicar rateio - Não foi encontrado",
2864
- status=RpaHistoricoStatusEnum.Falha,
2865
- )
2861
+ try:
2862
+ app = Application().connect(title="Busca Centro de Custo")
2863
+ main_window = app["Busca Centro de Custo"]
2864
+ return RpaRetornoProcessoDTO(
2865
+ sucesso=False,
2866
+ retorno=f"Nota não encontrada no Emsys durante a pesquisa de rateio, por favor, verificar",
2867
+ status=RpaHistoricoStatusEnum.Falha,
2868
+ )
2869
+ except Exception as e:
2870
+ return RpaRetornoProcessoDTO(
2871
+ sucesso=False,
2872
+ retorno=f"Campo aplicar rateio - Não foi encontrado, erro: {e}",
2873
+ status=RpaHistoricoStatusEnum.Falha,
2874
+ )
2866
2875
 
2867
2876
  console.print(f"Tentando clicar em Incluir Registro...\n")
2868
2877
  await worker_sleep(2)
@@ -213,7 +213,7 @@ class EMSys:
213
213
  pyautogui.click(1083, 682)
214
214
 
215
215
 
216
- pyautogui.click(619, 377)
216
+ # pyautogui.click(619, 377)
217
217
 
218
218
  except Exception as e:
219
219
  return {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.421
3
+ Version: 0.4.423
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -1,7 +1,7 @@
1
1
  worker_automate_hub/__init__.py,sha256=LV28uQvBfpPIqudGIMJmVB8E941MjXHcu8DMoX5n8AM,25
2
2
  worker_automate_hub/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  worker_automate_hub/api/ahead_service.py,sha256=0tX-i1ACRg3_yOI-_AfFEZ6FNU3L8Zb316n3QUkSwL0,2027
4
- worker_automate_hub/api/client.py,sha256=NeL7ayYaH5OU0g6FKw94hFd53LrUatlQz9vicjg10Dw,20687
4
+ worker_automate_hub/api/client.py,sha256=B75_ekkSDY0H72xGP14DRUMMWL6XtwVEeBmo8RxvnIU,20695
5
5
  worker_automate_hub/api/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  worker_automate_hub/api/helpers/api_helpers.py,sha256=SkheO2fXexeh-a4shr8Qzsz_kZhuSG0DJ7kbODctRbM,3696
7
7
  worker_automate_hub/api/rpa_historico_service.py,sha256=WhTMVW-uNlJO3YZakhx63xlsw3_XDeWnSD-3MVEzzdk,4763
@@ -38,7 +38,7 @@ worker_automate_hub/tasks/jobs/ecac_estadual_sc.py,sha256=ZTjc4rS8J7VfWHPFLkJBcS
38
38
  worker_automate_hub/tasks/jobs/ecac_estadual_sp.py,sha256=iS6za_nGCzBRVCXYYuUTIyMWJznHp8l6BPahqwzc_5c,29102
39
39
  worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=ORQbA4DCfyHJqjfvOCenc97QHvBCBlA3oMSzl59K6vg,55316
40
40
  worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=5Rqz_kf-399nEA3s1_69MGOAn6Mk0GbdAP_0EFzAcYw,16570
41
- worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=qt844lVCy4ljxGbnG3fTP5fbIY7g1qC57jwhQqdlFUM,20499
41
+ worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=CQUAngN4PmqtVz6fh9udgeaKwojDE6TL2rpg5FAqa4k,20464
42
42
  worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=TfvGmH1__OGRx5oYordEJt-gpcETKA9OFhwHQD3yqs4,24928
43
43
  worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=0cneKY6bQU5neo3TKlGynney_CoOB_J_dctFMYf26WM,32388
44
44
  worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=ktXc_kdMhlz9cbb7XjfMJhME29mgMFd_FnatxSZZU_s,31457
@@ -64,10 +64,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
64
64
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
65
65
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
66
66
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
67
- worker_automate_hub/utils/util.py,sha256=YQkdPMCgrwuCJG_069p1cIG7xTg8VgvSHlGnIQrlyHo,119625
68
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=yQFyDzvXPSO-UYV1m38WLJ3AWQgZYcyUkHZdCKE1jG4,28360
67
+ worker_automate_hub/utils/util.py,sha256=JpRM3ltfGNkzui0RAjUK1FhWT3aWUjt3ljEyQez3Sbw,120156
68
+ worker_automate_hub/utils/utils_nfe_entrada.py,sha256=CYS9oNX6FpekAMg8SnDhxqepqqH4JoHwBxYR420YnVE,28362
69
69
  worker_automate_hub/worker.py,sha256=KDBU3L2kVobndrnN5coRZFTwVmBLKmPJjRv20sCo5Hc,4697
70
- worker_automate_hub-0.4.421.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
- worker_automate_hub-0.4.421.dist-info/METADATA,sha256=vYVkWWAgYdUayOOozM7d4QxT1zyrCYiXsj_hYLqAnIk,2895
72
- worker_automate_hub-0.4.421.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
- worker_automate_hub-0.4.421.dist-info/RECORD,,
70
+ worker_automate_hub-0.4.423.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
+ worker_automate_hub-0.4.423.dist-info/METADATA,sha256=g1YEgM7tN4zZ8FDxgRmXee8R-xuu5Sb44uE_pyLZkdg,2895
72
+ worker_automate_hub-0.4.423.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
+ worker_automate_hub-0.4.423.dist-info/RECORD,,