worker-automate-hub 0.4.450__py3-none-any.whl → 0.4.452__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of worker-automate-hub might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  from datetime import datetime
2
2
  from enum import Enum
3
- from typing import Optional
3
+ from typing import Optional, List
4
4
 
5
5
  from pydantic import BaseModel, Field
6
6
 
@@ -11,15 +11,31 @@ class RpaHistoricoStatusEnum(str, Enum):
11
11
  Reservado = "R"
12
12
  Sucesso = "S"
13
13
 
14
+ class RpaTagEnum(str, Enum):
15
+ Negocio = "NEGÓCIO"
16
+ Tecnico = "TÉCNICO"
17
+
18
+ class RpaTagDTO(BaseModel):
19
+ uuidTagRpa: Optional[str] = Field(None, alias="uuidTagRpa")
20
+ descricao: RpaTagEnum = Field(..., alias="descricao")
21
+
22
+
23
+ class Config:
24
+ populate_by_name = True
25
+
26
+
14
27
  class RpaRetornoProcessoDTO(BaseModel):
15
28
  sucesso: bool = Field(..., alias="sucesso")
16
29
  retorno: str = Field(..., alias="retorno")
17
30
  status: RpaHistoricoStatusEnum = Field(..., alias="status")
31
+ tags: Optional[List[RpaTagDTO]] = Field(None, alias="tags")
32
+
18
33
 
19
34
  class Config:
20
35
  populate_by_name = True
21
36
 
22
37
 
38
+
23
39
  class RpaHistoricoRequestDTO(BaseModel):
24
40
  uuidHistorico: Optional[str] = Field(None, alias="uuidHistorico")
25
41
  uuidProcesso: str = Field(..., alias="uuidProcesso")
@@ -32,6 +48,7 @@ class RpaHistoricoRequestDTO(BaseModel):
32
48
  datInicioExecucao: Optional[datetime] = Field(None, alias="datInicioExecucao")
33
49
  datFimExecucao: Optional[datetime] = Field(None, alias="datFimExecucao")
34
50
  identificador: Optional[str] = Field(None, alias="identificador")
51
+ tags: Optional[List[RpaTagDTO]] = Field(None, alias="tags")
35
52
 
36
53
  class Config:
37
54
  populate_by_name = True
@@ -161,6 +161,7 @@ class RDPConnection:
161
161
  except Exception as e:
162
162
  console.print(f"Erro ao ativar a janela RDP: {e}", style="bold red")
163
163
 
164
+ await worker_sleep(5)
164
165
 
165
166
  console.print("Inserindo senha.")
166
167
  pyautogui.write(self.password, interval=0.1)
@@ -217,6 +217,8 @@ async def _update_historico(
217
217
  task.configEntrada.get("empresa") or
218
218
  ""
219
219
  )
220
+ if not retorno_processo.tags:
221
+ retorno_processo.tags = []
220
222
 
221
223
  # Armazenar fim da operação no histórico
222
224
  end_data = RpaHistoricoRequestDTO(
@@ -229,6 +231,7 @@ async def _update_historico(
229
231
  retorno=retorno_processo,
230
232
  datFimExecucao=end_time,
231
233
  identificador=identificador_processo,
234
+ tags=retorno_processo.tags,
232
235
  )
233
236
 
234
237
  update_response: RpaHistorico = await update(end_data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.450
3
+ Version: 0.4.452
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
@@ -25,14 +25,14 @@ worker_automate_hub/models/dao/rpa_configuracao.py,sha256=pftPsgbqsDjN8pRrzcjBKK
25
25
  worker_automate_hub/models/dao/rpa_historico.py,sha256=zKo_Wz_qMdB-cmFkJY1ckFx63wBPUumir37OxFijhes,1071
26
26
  worker_automate_hub/models/dao/rpa_processo.py,sha256=AfOUhJKL-AAOyjON4g7f6B7Bxa174FNC1Eh7oItK2kA,1233
27
27
  worker_automate_hub/models/dto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- worker_automate_hub/models/dto/rpa_historico_request_dto.py,sha256=tFTAfNUwHp9fuZQq4JTpyrOHFhm0PfVz3BrSyFxKwXQ,1371
28
+ worker_automate_hub/models/dto/rpa_historico_request_dto.py,sha256=QcbyI7Nl9c1Q_l8ew10fNZ4_rY-cYIBV5TWSr0zbXeU,1808
29
29
  worker_automate_hub/models/dto/rpa_processo_entrada_dto.py,sha256=NP2SNJ4Eq4xPQgwdw1CSwErB_g1RmBQR7pdQnOZipAE,678
30
30
  worker_automate_hub/models/dto/rpa_processo_rdp_dto.py,sha256=2TKA9CzFGj_9tWXfN84gVzHWZtAMN22QrNMcmNGHZD8,356
31
31
  worker_automate_hub/models/dto/rpa_sistema_dto.py,sha256=sLkmJei8x6sl-1-IXUKDmYQuKx0sotYQREPyhQqPmRg,161
32
32
  worker_automate_hub/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  worker_automate_hub/tasks/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=rf4fW-FaHUl1MS7b03z4cwI3zHfNw8FWxvjvNY3Xn20,28773
35
- worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=vbbEsGdpgISBBVnJo8FI81zqzponqEPIAT1kNLsxizQ,9183
35
+ worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=zoaOzb9obmw5bSgAqkl99oUh-eYsG3CDN77x36yK1fc,9218
36
36
  worker_automate_hub/tasks/jobs/descartes.py,sha256=RIjrZIzkW77NiKeXbxFN9k872cz3fl9cG1m5TJpjmmY,40134
37
37
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=aPckQRlRozFS_OK3C9wNdMCmqO6AM4djwqY2uSSaPmo,20687
38
38
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=FFpAdtZLO4uelWZooCVpm4JePv_iDt5nwVKrk1ipZJQ,1599
@@ -60,7 +60,7 @@ worker_automate_hub/tasks/jobs/playground.py,sha256=bdnXv3C7WLQUxt4edGZDfAbRJJ2-
60
60
  worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=_byvD7i_N3pgPjQd1lc0XNKCFONIPbmvX3_jq5AnbKY,26707
61
61
  worker_automate_hub/tasks/jobs/transferencias.py,sha256=zwCbVTwX15SCeLtvYgAyENeUSIuETx4Z9Cysr1Es8Jo,38013
62
62
  worker_automate_hub/tasks/task_definitions.py,sha256=2Jp1H4_qJZqqGyaP6MA87KLt4QNrtWBYWbXu-2gymFo,4459
63
- worker_automate_hub/tasks/task_executor.py,sha256=B5tHhktA0eWYbx5bFWIrIBKU2iWsHGzaYS8QZ4KjSHo,9462
63
+ worker_automate_hub/tasks/task_executor.py,sha256=3haqLIb5ZPOpr1g20SED0b6sm_pGFinmZMpE4AJRrlo,9582
64
64
  worker_automate_hub/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
65
  worker_automate_hub/utils/env.py,sha256=TacQjGRO7PUNpttrhTAc5Gnegaiysl2Knsv1P8qfkfs,57
66
66
  worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1wiaMoJAGZeSy0D37sYdU,2212
@@ -70,7 +70,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
70
70
  worker_automate_hub/utils/util.py,sha256=JkSKFgnI6geDEIlpaJJ5Btd7XdPllfUSFcjvPAaG-bo,125954
71
71
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=p5r_L5k7gqCBvV8v6dbLFM6INKiSpGc4Gegid0_YAh4,29017
72
72
  worker_automate_hub/worker.py,sha256=tftQpX8liC-_0_bOUf1YYzXSCvloMQBvjmQ6lzfEE-c,4816
73
- worker_automate_hub-0.4.450.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
74
- worker_automate_hub-0.4.450.dist-info/METADATA,sha256=xwGG6St35fxXYxUgkB9Ef_wmto-rdBlrsgh5HcKtuBY,2895
75
- worker_automate_hub-0.4.450.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
76
- worker_automate_hub-0.4.450.dist-info/RECORD,,
73
+ worker_automate_hub-0.4.452.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
74
+ worker_automate_hub-0.4.452.dist-info/METADATA,sha256=oeotvnViitb5bobxlb5GT2eFBeq5fFqt-fQTayvUE8I,2895
75
+ worker_automate_hub-0.4.452.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
76
+ worker_automate_hub-0.4.452.dist-info/RECORD,,