n8n-nodes-centum 0.2.44 → 0.2.47
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.
- package/LICENSE.md +19 -19
- package/README.md +126 -126
- package/dist/nodes/Centum/Centum.node.js +363 -6
- package/dist/nodes/Centum/Centum.node.js.map +1 -1
- package/dist/nodes/Centum/CentumDescription.js +109 -17
- package/dist/nodes/Centum/CentumDescription.js.map +1 -1
- package/dist/nodes/Centum/centum.svg +565 -565
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -56
package/LICENSE.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
Copyright 2022 n8n
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
-
the Software without restriction, including without limitation the rights to
|
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
-
so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
-
SOFTWARE.
|
|
1
|
+
Copyright 2022 n8n
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
# n8n-nodes-centum
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
This is a custom node for [n8n](https://n8n.io/), an open-source workflow automation platform, designed to integrate with the **Centum API**, a system for managing customers, payments, and other business resources.
|
|
6
|
-
The `Centum` node simplifies interaction with the Centum API endpoints, allowing operations such as customer search, payment creation, and more directly inside your n8n workflows.
|
|
7
|
-
|
|
8
|
-
The node is built to be extensible, making it easy to add new operations for specific integration needs with Centum.
|
|
9
|
-
|
|
10
|
-
## Requires 3 parameters in the **Centum API** credential:
|
|
11
|
-
|
|
12
|
-
| Field | Type | Example | Required |
|
|
13
|
-
|-----------------------------------|------------|-------------------------------------------------------------|----------|
|
|
14
|
-
| Public Access Key | Password | a1b2c3d4e5f6g7h8i9j0... | Yes |
|
|
15
|
-
| CentumSuiteConsumidorApiPublicaId | Number | 12345 | Yes |
|
|
16
|
-
| Centum URL | Text (URL) | https://plataformaX.centum.com.ar:23990/BLX | Yes |
|
|
17
|
-
|-----------------------------------|------------|-------------------------------------------------------------|----------|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## Available Operations
|
|
22
|
-
|
|
23
|
-
**55 endpoints organized into 5 categories:**
|
|
24
|
-
|
|
25
|
-
### 📦 Articles
|
|
26
|
-
- `articulo`: Search articles with filters (categories, dates, stock)
|
|
27
|
-
- `articuloPorId`: Query by exact ID or code
|
|
28
|
-
- `articuloPorNombre`: Query by article name
|
|
29
|
-
- `articulosDatosGenerales`: Retrieve general article data
|
|
30
|
-
- `articulosExistencia`: Stock availability by branch
|
|
31
|
-
- `articulosImagenes`: Download and process article images
|
|
32
|
-
- `articulosPrecioPorLista`: Prices by price list
|
|
33
|
-
- `articulosSucursalesFisicas`: Articles grouped by branch
|
|
34
|
-
- `articuloSucursalFisica`: Specific article in branch
|
|
35
|
-
- `buscarArticulo`: Search article by name or code
|
|
36
|
-
- `categoriasObtener`: List categories
|
|
37
|
-
- `marcasObtener`: List brands
|
|
38
|
-
- `rubrosObtener`: List product groups
|
|
39
|
-
|
|
40
|
-
### 👤 Customers
|
|
41
|
-
- `clienteNuevo`: Create a new customer
|
|
42
|
-
- `nuevoContribuyente`: Register a taxpayer with CUIT
|
|
43
|
-
- `clientes`: Paginated customer list
|
|
44
|
-
- `clientesActualizar`: Update customer data
|
|
45
|
-
- `clientesBusqueda`: Search by email or DNI
|
|
46
|
-
- `clientesBusquedaPorCuit`: Search by CUIT
|
|
47
|
-
- `buscarContribuyente`: Search taxpayer
|
|
48
|
-
- `composicionSaldoCliente`: Detailed account status
|
|
49
|
-
- `obtenerSaldoCliente`: Current account balance
|
|
50
|
-
|
|
51
|
-
### 💳 Orders and Payments
|
|
52
|
-
- `cobros`: Register a payment
|
|
53
|
-
- `obtenerCobros`: Filter payments
|
|
54
|
-
- `obtenerFacturasCobros`: Payment invoice history
|
|
55
|
-
- `crearPedidoVenta`: Create a sales order
|
|
56
|
-
- `obtenerPedidosDeVenta`: List sales orders
|
|
57
|
-
- `obtenerFacturasPedidosVentas`: Sales order invoice history
|
|
58
|
-
- `obtenerFacturasPedidosVentasPorID`: Sales order invoice history by ID
|
|
59
|
-
- `obtenerEstadosPedidosDeVenta`: Available sales order statuses
|
|
60
|
-
- `pedidoVentaActividad`: Check sales order activity
|
|
61
|
-
- `generarVentas`: Generate a sale
|
|
62
|
-
- `generarCompras`: Generate a purchase
|
|
63
|
-
- `obtenerCompras`: Filter purchases
|
|
64
|
-
- `generarOrdenCompra`: Generate a purchase order
|
|
65
|
-
- `obtenerOrdenCompra`: Get purchase order by ID
|
|
66
|
-
- `obtenerOrdenesCompras`: Filter purchase orders
|
|
67
|
-
- `obtenerBonificaciones`: Get available discounts
|
|
68
|
-
|
|
69
|
-
### 🌍 Catalogs
|
|
70
|
-
- `provinciasLista`: List of provinces (Argentina)
|
|
71
|
-
- `departamentosLista`: Departments by province
|
|
72
|
-
- `sucursalesFisicas`: Physical branches
|
|
73
|
-
- `listaPrecios`: Available price lists
|
|
74
|
-
- `promocionesCliente`: Commercial promotions for customers
|
|
75
|
-
- `regimenesEspecialesLista`: Special tax regimes
|
|
76
|
-
- `regimenesEspecialesPorId`: Special regime by ID
|
|
77
|
-
- `tipoComprobante`: Voucher types
|
|
78
|
-
- `obtenerTurnoEntrega`: Get delivery time slots
|
|
79
|
-
- `obtenerVendedores`: Get sales representatives
|
|
80
|
-
|
|
81
|
-
### ⚙️ Utilities
|
|
82
|
-
- `generarProductosWoo`: Transform data to WooCommerce format
|
|
83
|
-
- `procesarImagenes`: Image processing and synchronization
|
|
84
|
-
- `generarToken`: Authentication token generation
|
|
85
|
-
- `operadoresMoviles`: Retrieve mobile operator data based on credentials
|
|
86
|
-
- `proveedorBuscar`: Search supplier by ID
|
|
87
|
-
- `proveedorCrear`: Create a new supplier
|
|
88
|
-
|
|
89
|
-
## Prerequisites
|
|
90
|
-
|
|
91
|
-
To use this node, make sure you have the following installed in your development environment:
|
|
92
|
-
|
|
93
|
-
- **n8n**: Version 1.75.2 or higher (latest recommended for compatibility).
|
|
94
|
-
- **Node.js**: Version 20.x or higher.
|
|
95
|
-
- **npm**: Required to install and build the plugin.
|
|
96
|
-
- **Git**: To clone the repository.
|
|
97
|
-
- **Centum API access**: Valid credentials (`centumUrl`, `consumerApiPublicId`, `publicAccessKey`) provided by your Centum provider.
|
|
98
|
-
|
|
99
|
-
Recommended: Follow the n8n guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).
|
|
100
|
-
|
|
101
|
-
## Using this Starter
|
|
102
|
-
|
|
103
|
-
Basic steps to work with this starter. For a detailed guide on creating and publishing nodes, see the [documentation](https://docs.n8n.io/integrations/creating-nodes/).
|
|
104
|
-
|
|
105
|
-
1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template.
|
|
106
|
-
2. `git clone https://github.com/<your-username>/<your-repo>.git`
|
|
107
|
-
3. Run `npm i` to install dependencies.
|
|
108
|
-
4. Open the project in your editor.
|
|
109
|
-
5. Explore the examples in `/nodes` and `/credentials`. Modify or replace them with your own nodes.
|
|
110
|
-
6. Update `package.json` with your details.
|
|
111
|
-
7. Run `npm run lint` to check for errors or `npm run lintfix` to fix them automatically.
|
|
112
|
-
8. Test your node locally. See [Running your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/).
|
|
113
|
-
9. Replace this README with your node documentation. Use the [README TEMPLATE](/broobe/n8n/n8n-nodes-blocky-nodes/-/blob/main/README_TEMPLATE.md) as a base.
|
|
114
|
-
10. Update the LICENSE file with your details.
|
|
115
|
-
11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm.
|
|
116
|
-
|
|
117
|
-
## Support
|
|
118
|
-
|
|
119
|
-
For issues or questions:
|
|
120
|
-
- Open an **issue** in the [GitHub repository](https://github.com/your-username/n8n-nodes-centum).
|
|
121
|
-
- Contact your Centum provider for API-related support.
|
|
122
|
-
- Check the [n8n documentation](https://docs.n8n.io/) for help with workflow integration.
|
|
123
|
-
|
|
124
|
-
## License
|
|
125
|
-
|
|
126
|
-
This project is licensed under the [MIT License](LICENSE). See the `LICENSE` file for details.
|
|
1
|
+
# n8n-nodes-centum
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
This is a custom node for [n8n](https://n8n.io/), an open-source workflow automation platform, designed to integrate with the **Centum API**, a system for managing customers, payments, and other business resources.
|
|
6
|
+
The `Centum` node simplifies interaction with the Centum API endpoints, allowing operations such as customer search, payment creation, and more directly inside your n8n workflows.
|
|
7
|
+
|
|
8
|
+
The node is built to be extensible, making it easy to add new operations for specific integration needs with Centum.
|
|
9
|
+
|
|
10
|
+
## Requires 3 parameters in the **Centum API** credential:
|
|
11
|
+
|
|
12
|
+
| Field | Type | Example | Required |
|
|
13
|
+
|-----------------------------------|------------|-------------------------------------------------------------|----------|
|
|
14
|
+
| Public Access Key | Password | a1b2c3d4e5f6g7h8i9j0... | Yes |
|
|
15
|
+
| CentumSuiteConsumidorApiPublicaId | Number | 12345 | Yes |
|
|
16
|
+
| Centum URL | Text (URL) | https://plataformaX.centum.com.ar:23990/BLX | Yes |
|
|
17
|
+
|-----------------------------------|------------|-------------------------------------------------------------|----------|
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Available Operations
|
|
22
|
+
|
|
23
|
+
**55 endpoints organized into 5 categories:**
|
|
24
|
+
|
|
25
|
+
### 📦 Articles
|
|
26
|
+
- `articulo`: Search articles with filters (categories, dates, stock)
|
|
27
|
+
- `articuloPorId`: Query by exact ID or code
|
|
28
|
+
- `articuloPorNombre`: Query by article name
|
|
29
|
+
- `articulosDatosGenerales`: Retrieve general article data
|
|
30
|
+
- `articulosExistencia`: Stock availability by branch
|
|
31
|
+
- `articulosImagenes`: Download and process article images
|
|
32
|
+
- `articulosPrecioPorLista`: Prices by price list
|
|
33
|
+
- `articulosSucursalesFisicas`: Articles grouped by branch
|
|
34
|
+
- `articuloSucursalFisica`: Specific article in branch
|
|
35
|
+
- `buscarArticulo`: Search article by name or code
|
|
36
|
+
- `categoriasObtener`: List categories
|
|
37
|
+
- `marcasObtener`: List brands
|
|
38
|
+
- `rubrosObtener`: List product groups
|
|
39
|
+
|
|
40
|
+
### 👤 Customers
|
|
41
|
+
- `clienteNuevo`: Create a new customer
|
|
42
|
+
- `nuevoContribuyente`: Register a taxpayer with CUIT
|
|
43
|
+
- `clientes`: Paginated customer list
|
|
44
|
+
- `clientesActualizar`: Update customer data
|
|
45
|
+
- `clientesBusqueda`: Search by email or DNI
|
|
46
|
+
- `clientesBusquedaPorCuit`: Search by CUIT
|
|
47
|
+
- `buscarContribuyente`: Search taxpayer
|
|
48
|
+
- `composicionSaldoCliente`: Detailed account status
|
|
49
|
+
- `obtenerSaldoCliente`: Current account balance
|
|
50
|
+
|
|
51
|
+
### 💳 Orders and Payments
|
|
52
|
+
- `cobros`: Register a payment
|
|
53
|
+
- `obtenerCobros`: Filter payments
|
|
54
|
+
- `obtenerFacturasCobros`: Payment invoice history
|
|
55
|
+
- `crearPedidoVenta`: Create a sales order
|
|
56
|
+
- `obtenerPedidosDeVenta`: List sales orders
|
|
57
|
+
- `obtenerFacturasPedidosVentas`: Sales order invoice history
|
|
58
|
+
- `obtenerFacturasPedidosVentasPorID`: Sales order invoice history by ID
|
|
59
|
+
- `obtenerEstadosPedidosDeVenta`: Available sales order statuses
|
|
60
|
+
- `pedidoVentaActividad`: Check sales order activity
|
|
61
|
+
- `generarVentas`: Generate a sale
|
|
62
|
+
- `generarCompras`: Generate a purchase
|
|
63
|
+
- `obtenerCompras`: Filter purchases
|
|
64
|
+
- `generarOrdenCompra`: Generate a purchase order
|
|
65
|
+
- `obtenerOrdenCompra`: Get purchase order by ID
|
|
66
|
+
- `obtenerOrdenesCompras`: Filter purchase orders
|
|
67
|
+
- `obtenerBonificaciones`: Get available discounts
|
|
68
|
+
|
|
69
|
+
### 🌍 Catalogs
|
|
70
|
+
- `provinciasLista`: List of provinces (Argentina)
|
|
71
|
+
- `departamentosLista`: Departments by province
|
|
72
|
+
- `sucursalesFisicas`: Physical branches
|
|
73
|
+
- `listaPrecios`: Available price lists
|
|
74
|
+
- `promocionesCliente`: Commercial promotions for customers
|
|
75
|
+
- `regimenesEspecialesLista`: Special tax regimes
|
|
76
|
+
- `regimenesEspecialesPorId`: Special regime by ID
|
|
77
|
+
- `tipoComprobante`: Voucher types
|
|
78
|
+
- `obtenerTurnoEntrega`: Get delivery time slots
|
|
79
|
+
- `obtenerVendedores`: Get sales representatives
|
|
80
|
+
|
|
81
|
+
### ⚙️ Utilities
|
|
82
|
+
- `generarProductosWoo`: Transform data to WooCommerce format
|
|
83
|
+
- `procesarImagenes`: Image processing and synchronization
|
|
84
|
+
- `generarToken`: Authentication token generation
|
|
85
|
+
- `operadoresMoviles`: Retrieve mobile operator data based on credentials
|
|
86
|
+
- `proveedorBuscar`: Search supplier by ID
|
|
87
|
+
- `proveedorCrear`: Create a new supplier
|
|
88
|
+
|
|
89
|
+
## Prerequisites
|
|
90
|
+
|
|
91
|
+
To use this node, make sure you have the following installed in your development environment:
|
|
92
|
+
|
|
93
|
+
- **n8n**: Version 1.75.2 or higher (latest recommended for compatibility).
|
|
94
|
+
- **Node.js**: Version 20.x or higher.
|
|
95
|
+
- **npm**: Required to install and build the plugin.
|
|
96
|
+
- **Git**: To clone the repository.
|
|
97
|
+
- **Centum API access**: Valid credentials (`centumUrl`, `consumerApiPublicId`, `publicAccessKey`) provided by your Centum provider.
|
|
98
|
+
|
|
99
|
+
Recommended: Follow the n8n guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).
|
|
100
|
+
|
|
101
|
+
## Using this Starter
|
|
102
|
+
|
|
103
|
+
Basic steps to work with this starter. For a detailed guide on creating and publishing nodes, see the [documentation](https://docs.n8n.io/integrations/creating-nodes/).
|
|
104
|
+
|
|
105
|
+
1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template.
|
|
106
|
+
2. `git clone https://github.com/<your-username>/<your-repo>.git`
|
|
107
|
+
3. Run `npm i` to install dependencies.
|
|
108
|
+
4. Open the project in your editor.
|
|
109
|
+
5. Explore the examples in `/nodes` and `/credentials`. Modify or replace them with your own nodes.
|
|
110
|
+
6. Update `package.json` with your details.
|
|
111
|
+
7. Run `npm run lint` to check for errors or `npm run lintfix` to fix them automatically.
|
|
112
|
+
8. Test your node locally. See [Running your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/).
|
|
113
|
+
9. Replace this README with your node documentation. Use the [README TEMPLATE](/broobe/n8n/n8n-nodes-blocky-nodes/-/blob/main/README_TEMPLATE.md) as a base.
|
|
114
|
+
10. Update the LICENSE file with your details.
|
|
115
|
+
11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm.
|
|
116
|
+
|
|
117
|
+
## Support
|
|
118
|
+
|
|
119
|
+
For issues or questions:
|
|
120
|
+
- Open an **issue** in the [GitHub repository](https://github.com/your-username/n8n-nodes-centum).
|
|
121
|
+
- Contact your Centum provider for API-related support.
|
|
122
|
+
- Check the [n8n documentation](https://docs.n8n.io/) for help with workflow integration.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
This project is licensed under the [MIT License](LICENSE). See the `LICENSE` file for details.
|