csc-cia-stne 0.0.92__tar.gz → 0.0.94__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.
Files changed (44) hide show
  1. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/PKG-INFO +1 -1
  2. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/pyproject.toml +1 -1
  3. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/stne_admin.py +9 -3
  4. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne.egg-info/PKG-INFO +1 -1
  5. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/LICENCE +0 -0
  6. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/README.md +0 -0
  7. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/README_PYPI.md +0 -0
  8. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/setup.cfg +0 -0
  9. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/__init__.py +0 -0
  10. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/bc_correios.py +0 -0
  11. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/bc_sta.py +0 -0
  12. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/email.py +0 -0
  13. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/gcp_bigquery.py +0 -0
  14. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/gcp_bucket.py +0 -0
  15. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/google_drive.py +0 -0
  16. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/karavela.py +0 -0
  17. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/logger_json.py +0 -0
  18. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/logger_rich.py +0 -0
  19. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/provio.py +0 -0
  20. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/servicenow.py +0 -0
  21. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/slack.py +0 -0
  22. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/__init__.py +0 -0
  23. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/__init__.py +0 -0
  24. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_b64.py +0 -0
  25. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_converters.py +0 -0
  26. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_datetime.py +0 -0
  27. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_get_secret.py +0 -0
  28. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_rdp.py +0 -0
  29. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_recriar_pastas.py +0 -0
  30. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_settings.py +0 -0
  31. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/functions/func_titulo.py +0 -0
  32. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/validations/GcpBigQueryValidator.py +0 -0
  33. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py +0 -0
  34. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/validations/ServiceNowValidator.py +0 -0
  35. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/validations/__init__.py +0 -0
  36. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/validations/gcp_bucket.py +0 -0
  37. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/validations/waccess.py +0 -0
  38. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/utilitarios/validations/web_validator.py +0 -0
  39. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/wacess.py +0 -0
  40. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne/web.py +0 -0
  41. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne.egg-info/SOURCES.txt +0 -0
  42. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne.egg-info/dependency_links.txt +0 -0
  43. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne.egg-info/requires.txt +0 -0
  44. {csc_cia_stne-0.0.92 → csc_cia_stne-0.0.94}/src/csc_cia_stne.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csc_cia_stne
3
- Version: 0.0.92
3
+ Version: 0.0.94
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
6
  Keywords: karavela,csc,cia,stone,rpa,botcity,stne
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "csc_cia_stne"
7
- version = "0.0.92"
7
+ version = "0.0.94"
8
8
  license = { text = "MIT" }
9
9
  description = "Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs"
10
10
  keywords = ["karavela", "csc", "cia", "stone", "rpa", "botcity", "stne"]
@@ -297,7 +297,7 @@ class StoneAdmin:
297
297
  try:
298
298
 
299
299
  # Verificando se existe cliente com esse documento, com a conta ativa
300
- response = requests.get(f"{self.base_url}/accounts", params=params_conta_ativa, headers=self.authenticated_header, timeout=60)
300
+ response = requests.get(f"{self.base_url}/accounts", params=params_conta_ativa, headers=self.authenticated_header, timeout=120)
301
301
 
302
302
  # Retorno esperado pela API Stone Admin - consulta cliente ativo
303
303
  if response.status_code == 200:
@@ -307,7 +307,7 @@ class StoneAdmin:
307
307
 
308
308
  # Verificando se existe cliente com esse documento, com a conta inativa
309
309
  encontrado = False
310
- response = requests.get(f"{self.base_url}/accounts", params=params_conta_inativa, headers=self.authenticated_header, timeout=60)
310
+ response = requests.get(f"{self.base_url}/accounts", params=params_conta_inativa, headers=self.authenticated_header, timeout=120)
311
311
 
312
312
  # Retorno esperado pela API Stone Admin - consulta cliente inativo
313
313
  if response.status_code == 200:
@@ -320,7 +320,7 @@ class StoneAdmin:
320
320
  encontrado = True
321
321
 
322
322
  # Algum erro na API Stone Admin - retorna erro
323
- elif 'unauthenticated' in str(response.json()):
323
+ elif response.status_code == 401 and 'unauthenticated' in str(response.json()):
324
324
 
325
325
  self.renew_authorization()
326
326
  return self.verificar_cliente(documento=documento)
@@ -367,6 +367,12 @@ class StoneAdmin:
367
367
  }
368
368
  return retorno_json
369
369
 
370
+ # Algum erro na API Stone Admin - retorna erro
371
+ elif response.status_code == 401 and 'unauthenticated' in str(response.json()):
372
+
373
+ self.renew_authorization()
374
+ return self.verificar_cliente(documento=documento)
375
+
370
376
  # Retorno inesperado pela API Stone Admin - consulta cliente ativo, retorna erro
371
377
  else:
372
378
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csc_cia_stne
3
- Version: 0.0.92
3
+ Version: 0.0.94
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
6
  Keywords: karavela,csc,cia,stone,rpa,botcity,stne
File without changes
File without changes
File without changes