cybertron-spark 0.1.3__tar.gz → 0.1.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cybertron-spark
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Automação do Zendesk com Selenium, Zenpy e integração Cybertron
5
5
  Author: Gustavo Sartorio
6
6
  Author-email: strov3rl@gmail.com
@@ -111,7 +111,7 @@ class Heartbeat():
111
111
  'output_data': output_data
112
112
  }
113
113
 
114
- self._post(endpoint, payload)
114
+ return self._post(endpoint, payload)
115
115
 
116
116
  def atualizar_fila(self, quantidade):
117
117
  endpoint = '/transformers/bots-queue/'
@@ -121,7 +121,7 @@ class Heartbeat():
121
121
  'quantidade': quantidade,
122
122
  }
123
123
 
124
- self._post(endpoint, payload)
124
+ return self._post(endpoint, payload)
125
125
 
126
126
  def atualizar_computador(self, computador, cpu, memory, disk):
127
127
  endpoint = f'/transformers/bots-computer/{computador}/'
@@ -133,7 +133,7 @@ class Heartbeat():
133
133
  'disk': disk,
134
134
  }
135
135
 
136
- self._put(endpoint, payload)
136
+ return self._put(endpoint, payload)
137
137
 
138
138
  def atualizar_status(self, status):
139
139
  endpoint = '/transformers/bots-status/'
@@ -143,7 +143,7 @@ class Heartbeat():
143
143
  'current_status': status
144
144
  }
145
145
 
146
- self._post(endpoint, payload)
146
+ return self._post(endpoint, payload)
147
147
 
148
148
  def registrar_erro(self, exception, ticket_id=None, tipo_alerta='WARNING'):
149
149
  endpoint = '/transformers/bots-logs/'
@@ -166,13 +166,13 @@ class Heartbeat():
166
166
  'ticket_id': ticket_id
167
167
  }
168
168
 
169
- self._post(endpoint, payload)
169
+ return self._post(endpoint, payload)
170
170
 
171
- def atualizar_liberarfrete(self, pedido):
172
- endpoint = f'/transformers/bots-liberarfrete/{pedido}/'
171
+ def atualizar_liberarfrete(self, id_banco):
172
+ endpoint = f'/transformers/bots-liberarfrete/{id_banco}/'
173
173
 
174
174
  payload = {
175
175
  'bot_realizado': True,
176
176
  }
177
177
 
178
- self._patch(endpoint, payload)
178
+ return self._patch(endpoint, payload)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cybertron-spark
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Automação do Zendesk com Selenium, Zenpy e integração Cybertron
5
5
  Author: Gustavo Sartorio
6
6
  Author-email: strov3rl@gmail.com
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as arq:
5
5
 
6
6
  setup(
7
7
  name='cybertron-spark',
8
- version='0.1.3',
8
+ version='0.1.5',
9
9
  license='MIT',
10
10
  author='Gustavo Sartorio',
11
11
  author_email='strov3rl@gmail.com',
File without changes