worker-automate-hub 0.4.451__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.
- worker_automate_hub/models/dto/rpa_historico_request_dto.py +18 -1
- worker_automate_hub/tasks/task_executor.py +3 -0
- {worker_automate_hub-0.4.451.dist-info → worker_automate_hub-0.4.452.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.4.451.dist-info → worker_automate_hub-0.4.452.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.4.451.dist-info → worker_automate_hub-0.4.452.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.4.451.dist-info → worker_automate_hub-0.4.452.dist-info}/entry_points.txt +0 -0
@@ -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
|
@@ -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)
|
@@ -25,7 +25,7 @@ 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=
|
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
|
@@ -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=
|
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.
|
74
|
-
worker_automate_hub-0.4.
|
75
|
-
worker_automate_hub-0.4.
|
76
|
-
worker_automate_hub-0.4.
|
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,,
|
File without changes
|
{worker_automate_hub-0.4.451.dist-info → worker_automate_hub-0.4.452.dist-info}/entry_points.txt
RENAMED
File without changes
|