n8n-nodes-centum 0.2.16 → 0.2.17
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/README.md +75 -50
- package/dist/nodes/Centum/Centum.node.d.ts +1 -1
- package/dist/nodes/Centum/Centum.node.js +541 -299
- package/dist/nodes/Centum/Centum.node.js.map +1 -1
- package/dist/nodes/Centum/CentumDescription.js +455 -344
- package/dist/nodes/Centum/CentumDescription.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,88 +2,113 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
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,
|
|
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
|
+
|
|
6
19
|
|
|
7
|
-
The node is built to be extensible, allowing for easy addition of new operations to meet specific integration needs with Centum.
|
|
8
20
|
|
|
9
21
|
## Available Operations
|
|
10
22
|
|
|
11
|
-
**
|
|
23
|
+
**42 endpoints organized into 5 categories:**
|
|
12
24
|
|
|
13
25
|
### 📦 Articles
|
|
14
|
-
- `articulo`:
|
|
15
|
-
- `articuloPorId`: Query by
|
|
16
|
-
- `
|
|
17
|
-
- `
|
|
26
|
+
- `articulo`: Search articles with filters (categories, dates, stock)
|
|
27
|
+
- `articuloPorId`: Query by exact ID or code
|
|
28
|
+
- `articulosDatosGenerales`: Retrieve general article data
|
|
29
|
+
- `articulosExistencia`: Stock availability by branch
|
|
30
|
+
- `articulosImagenes`: Download and process article images
|
|
18
31
|
- `articulosPrecioPorLista`: Prices by price list
|
|
19
|
-
- `articulosSucursalesFisicas`: Articles by
|
|
20
|
-
- `articuloSucursalFisica`: Specific article
|
|
32
|
+
- `articulosSucursalesFisicas`: Articles grouped by branch
|
|
33
|
+
- `articuloSucursalFisica`: Specific article in branch
|
|
34
|
+
- `categoriasObtener`: List categories
|
|
35
|
+
- `marcasObtener`: List brands
|
|
36
|
+
- `rubrosObtener`: List product groups
|
|
21
37
|
|
|
22
38
|
### 👤 Customers
|
|
23
|
-
- `clienteNuevo`:
|
|
24
|
-
- `nuevoContribuyente`:
|
|
25
|
-
- `composicionSaldoCliente`: Detailed account statement
|
|
26
|
-
- `obtenerSaldoCliente`: Current balance query
|
|
39
|
+
- `clienteNuevo`: Create a new customer
|
|
40
|
+
- `nuevoContribuyente`: Register a taxpayer with CUIT
|
|
27
41
|
- `clientes`: Paginated customer list
|
|
28
|
-
- `clientesActualizar`:
|
|
29
|
-
- `clientesBusqueda`: Search by email
|
|
42
|
+
- `clientesActualizar`: Update customer data
|
|
43
|
+
- `clientesBusqueda`: Search by email or DNI
|
|
30
44
|
- `clientesBusquedaPorCuit`: Search by CUIT
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- `
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- `
|
|
37
|
-
- `
|
|
45
|
+
- `buscarContribuyente`: Search taxpayer
|
|
46
|
+
- `composicionSaldoCliente`: Detailed account status
|
|
47
|
+
- `obtenerSaldoCliente`: Current account balance
|
|
48
|
+
|
|
49
|
+
### 💳 Orders and Payments
|
|
50
|
+
- `cobros`: Register a payment
|
|
51
|
+
- `obtenerCobros`: Filter payments
|
|
52
|
+
- `obtenerFacturasCobros`: Payment invoice history
|
|
53
|
+
- `crearPedidoVenta`: Create a sales order
|
|
54
|
+
- `obtenerPedidosDeVenta`: List sales orders
|
|
55
|
+
- `obtenerFacturasPedidosVentas`: Sales order invoice history
|
|
56
|
+
- `obtenerEstadosPedidosDeVenta`: Available sales order statuses
|
|
57
|
+
- `pedidoVentaActividad`: Check sales order activity
|
|
58
|
+
- `generarVentas`: Generate a sale
|
|
59
|
+
- `generarCompras`: Generate a purchase
|
|
60
|
+
- `obtenerCompras`: Filter purchases
|
|
38
61
|
|
|
39
62
|
### 🌍 Catalogs
|
|
40
|
-
- `provinciasLista`:
|
|
63
|
+
- `provinciasLista`: List of provinces (Argentina)
|
|
41
64
|
- `departamentosLista`: Departments by province
|
|
42
|
-
- `sucursalesFisicas`:
|
|
43
|
-
- `listaPrecios`:
|
|
44
|
-
- `promocionesCliente`:
|
|
65
|
+
- `sucursalesFisicas`: Physical branches
|
|
66
|
+
- `listaPrecios`: Available price lists
|
|
67
|
+
- `promocionesCliente`: Commercial promotions for customers
|
|
68
|
+
- `regimenesEspecialesLista`: Special tax regimes
|
|
69
|
+
- `regimenesEspecialesPorId`: Special regime by ID
|
|
70
|
+
- `tipoComprobante`: Voucher types
|
|
45
71
|
|
|
46
72
|
### ⚙️ Utilities
|
|
47
|
-
- `generarProductosWoo`: WooCommerce format
|
|
48
|
-
- `procesarImagenes`:
|
|
73
|
+
- `generarProductosWoo`: Transform data to WooCommerce format
|
|
74
|
+
- `procesarImagenes`: Image processing and synchronization
|
|
49
75
|
- `generarToken`: Authentication token generation
|
|
50
|
-
- `
|
|
51
|
-
- `operadoresMoviles`: Returns the data of a mobile operator based on the provided credentials.
|
|
76
|
+
- `operadoresMoviles`: Retrieve mobile operator data based on credentials
|
|
52
77
|
|
|
53
78
|
## Prerequisites
|
|
54
79
|
|
|
55
|
-
To use this node,
|
|
80
|
+
To use this node, make sure you have the following installed in your development environment:
|
|
56
81
|
|
|
57
|
-
- **n8n**: Version 1.75.2 or higher (latest
|
|
82
|
+
- **n8n**: Version 1.75.2 or higher (latest recommended for compatibility).
|
|
58
83
|
- **Node.js**: Version 20.x or higher.
|
|
59
|
-
- **npm**: Required
|
|
60
|
-
- **Git**:
|
|
61
|
-
- **Centum API
|
|
84
|
+
- **npm**: Required to install and build the plugin.
|
|
85
|
+
- **Git**: To clone the repository.
|
|
86
|
+
- **Centum API access**: Valid credentials (`centumUrl`, `consumerApiPublicId`, `publicAccessKey`) provided by your Centum provider.
|
|
62
87
|
|
|
63
|
-
Recommended: Follow n8n
|
|
88
|
+
Recommended: Follow the n8n guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).
|
|
64
89
|
|
|
65
|
-
## Using this
|
|
90
|
+
## Using this Starter
|
|
66
91
|
|
|
67
|
-
|
|
92
|
+
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/).
|
|
68
93
|
|
|
69
|
-
1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template
|
|
70
|
-
2. git clone https://github.com
|
|
71
|
-
3. Run npm i to install dependencies.
|
|
94
|
+
1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template.
|
|
95
|
+
2. `git clone https://github.com/<your-username>/<your-repo>.git`
|
|
96
|
+
3. Run `npm i` to install dependencies.
|
|
72
97
|
4. Open the project in your editor.
|
|
73
|
-
5.
|
|
74
|
-
6. Update
|
|
75
|
-
7. Run npm run lint to check for errors or npm run lintfix to
|
|
76
|
-
8. Test your node locally.
|
|
77
|
-
9. Replace this README with
|
|
78
|
-
10.
|
|
79
|
-
11.
|
|
98
|
+
5. Explore the examples in `/nodes` and `/credentials`. Modify or replace them with your own nodes.
|
|
99
|
+
6. Update `package.json` with your details.
|
|
100
|
+
7. Run `npm run lint` to check for errors or `npm run lintfix` to fix them automatically.
|
|
101
|
+
8. Test your node locally. See [Running your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/).
|
|
102
|
+
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.
|
|
103
|
+
10. Update the LICENSE file with your details.
|
|
104
|
+
11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm.
|
|
80
105
|
|
|
81
106
|
## Support
|
|
82
107
|
|
|
83
108
|
For issues or questions:
|
|
84
|
-
- Open an **issue**
|
|
109
|
+
- Open an **issue** in the [GitHub repository](https://github.com/your-username/n8n-nodes-centum).
|
|
85
110
|
- Contact your Centum provider for API-related support.
|
|
86
|
-
-
|
|
111
|
+
- Check the [n8n documentation](https://docs.n8n.io/) for help with workflow integration.
|
|
87
112
|
|
|
88
113
|
## License
|
|
89
114
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from "n8n-workflow";
|
|
2
2
|
export declare class Centum implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
4
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|