operx-cli 0.7.0__tar.gz → 0.7.1__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.
- {operx_cli-0.7.0 → operx_cli-0.7.1}/PKG-INFO +1 -1
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/AGENTES.md +20 -18
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/__init__.py +1 -1
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli.egg-info/PKG-INFO +1 -1
- {operx_cli-0.7.0 → operx_cli-0.7.1}/pyproject.toml +1 -1
- {operx_cli-0.7.0 → operx_cli-0.7.1}/README.md +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/agent_guide.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/api_fields.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/app.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/browser_login.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/client.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/__init__.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/account.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/ambiental.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/articulos.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/avisos.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/common.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/completar.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/empresas.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/inventario.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/lecturas.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/ordenes.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/personas.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/planta.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/preventivos.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/raw.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/registros.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/reportes.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/search.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/sst.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/commands/update.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/lookup.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/output.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/record_completion.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/self_update.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/settings.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/shell.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/spreadsheet.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/updates.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/values.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli/welcome.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli.egg-info/SOURCES.txt +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli.egg-info/dependency_links.txt +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli.egg-info/entry_points.txt +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli.egg-info/requires.txt +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/operx_cli.egg-info/top_level.txt +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/setup.cfg +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_agentes.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_api_campos.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_app.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_articulos.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_cards.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_client.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_completar.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_daily_flows.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_inventario_lecturas.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_json_writes.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_login.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_logout_and_routes.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_lookup.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_more_of_the_api.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_ordenes.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_output.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_personas.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_preventivos.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_record_completion.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_registros.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_self_update.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_settings.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_shell.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_spreadsheet.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_sst_ambiental.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_updates.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_values.py +0 -0
- {operx_cli-0.7.0 → operx_cli-0.7.1}/tests/test_welcome.py +0 -0
|
@@ -59,17 +59,19 @@ llamada queda en el historial del token, marcada como hecha desde la CLI.
|
|
|
59
59
|
|
|
60
60
|
- Todos los comandos que escriben aceptan `--json`: la salida es solo la
|
|
61
61
|
respuesta de la API (el registro, con su `id`). Úsalo para encadenar pasos.
|
|
62
|
-
- Escriben
|
|
63
|
-
`ordenes
|
|
64
|
-
|
|
65
|
-
`equipos
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
`
|
|
70
|
-
|
|
71
|
-
`
|
|
72
|
-
|
|
62
|
+
- Escriben, y todos llevan `--si`:
|
|
63
|
+
- Trabajos: `ordenes crear`, `editar`, `estado`, `asignar`, `comentar`,
|
|
64
|
+
`adjuntar` y `repuesto`; `preventivos crear` y `nota`.
|
|
65
|
+
- Registros: `equipos crear` y `editar`, `clientes crear` y `editar`,
|
|
66
|
+
`lugares crear`.
|
|
67
|
+
- Inventario: `articulos crear`; `inventario entrada`, `salida`, `ajuste`,
|
|
68
|
+
`traslado` y `revertir`.
|
|
69
|
+
- Equipos: `equipos parar`, `reanudar`, `hallazgo` y `hallazgo-a-orden`;
|
|
70
|
+
`lecturas registrar` y `anular`.
|
|
71
|
+
- Personas: `personas importar --confirmar` y `personas ausencia`.
|
|
72
|
+
- SG-SST y Ambiental: `sst nueva-accion` y `accion-hecha`;
|
|
73
|
+
`ambiental nueva-accion`, `accion-hecha`, `residuo` y `lectura`.
|
|
74
|
+
- `avisos --marcar-leidos`, y `operx api` con POST, PUT, PATCH o DELETE.
|
|
73
75
|
- Un error se corrige con su contrario, nunca borrando: `inventario revertir`
|
|
74
76
|
deshace un movimiento, `lecturas anular` una lectura.
|
|
75
77
|
- SG-SST y Ambiental van por empresa: sin `--empresa`, la de la cuenta. Una
|
|
@@ -177,22 +179,22 @@ operx api GET work-orders/export/ -o ordenes.csv
|
|
|
177
179
|
operx ordenes listar --vencidas --asignada-a yo --todas --json
|
|
178
180
|
|
|
179
181
|
# Pasar una orden a completada, después de su sí
|
|
180
|
-
operx ordenes estado 1234 completada --si
|
|
182
|
+
operx ordenes estado 1234 completada --si --json
|
|
181
183
|
|
|
182
184
|
# Registrar una lectura: primero el número del punto
|
|
183
185
|
operx lecturas puntos BOM-04 --json
|
|
184
|
-
operx lecturas registrar --punto 12 --valor 73,4 --si
|
|
186
|
+
operx lecturas registrar --punto 12 --valor 73,4 --si --json
|
|
185
187
|
|
|
186
188
|
# Sacar stock: primero el código y el lugar exactos
|
|
187
189
|
operx inventario existencias --buscar filtro --json
|
|
188
|
-
operx inventario salida --articulo FIL-010 --lugar "Bodega central" --cantidad 2 --motivo Consumo --si
|
|
190
|
+
operx inventario salida --articulo FIL-010 --lugar "Bodega central" --cantidad 2 --motivo Consumo --si --json
|
|
189
191
|
|
|
190
192
|
# Un artículo nuevo y lo que llegó de él (crear da el código)
|
|
191
|
-
operx articulos crear --nombre "Filtro de aceite" --unidad und --tipo consumible --si
|
|
192
|
-
operx inventario entrada --articulo CON-0001 --lugar "Bodega central" --cantidad 10 --costo-unitario 25.000 --si
|
|
193
|
+
operx articulos crear --nombre "Filtro de aceite" --unidad und --tipo consumible --si --json
|
|
194
|
+
operx inventario entrada --articulo CON-0001 --lugar "Bodega central" --cantidad 10 --costo-unitario 25.000 --si --json
|
|
193
195
|
|
|
194
196
|
# Un equipo que entró a mantenimiento
|
|
195
|
-
operx equipos editar BOM-04 --estado en-mantenimiento --si
|
|
197
|
+
operx equipos editar BOM-04 --estado en-mantenimiento --si --json
|
|
196
198
|
|
|
197
199
|
# Un repuesto usado en una orden, y lo que ya lleva
|
|
198
200
|
operx ordenes repuesto 1234 --articulo FIL-010 --lugar "Bodega central" --cantidad 2 --si --json
|
|
@@ -229,5 +231,5 @@ operx sst acciones --estado abiertas --json
|
|
|
229
231
|
|
|
230
232
|
# Lo que vence este mes en lo ambiental, y registrar residuos
|
|
231
233
|
operx ambiental obligaciones --json
|
|
232
|
-
operx ambiental residuo --corriente "Aceite usado" --kg 12,5 --si
|
|
234
|
+
operx ambiental residuo --corriente "Aceite usado" --kg 12,5 --si --json
|
|
233
235
|
```
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "operx-cli"
|
|
7
|
-
version = "0.7.
|
|
7
|
+
version = "0.7.1"
|
|
8
8
|
description = "La línea de comandos de OperX: tu empresa desde la terminal, con tu token de API."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|