n8n-nodes-centum 0.2.15 → 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 CHANGED
@@ -2,87 +2,113 @@
2
2
 
3
3
  ![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)
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, charges, and other business resources. The `Centum` node simplifies interaction with Centum's API endpoints, enabling operations such as searching for customers, creating charges, and more, directly within your n8n workflows.
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
- **28 endpoints organized in 5 categories:**
23
+ **42 endpoints organized into 5 categories:**
12
24
 
13
25
  ### 📦 Articles
14
- - `articulo`: Filtered search (categories, dates, stock)
15
- - `articuloPorId`: Query by ID/exact code
16
- - `articulosExistencia`: Stock by physical branch
17
- - `articulosImagenes`: Image download and processing
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 physical branch
20
- - `articuloSucursalFisica`: Specific article by branch
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`: Creation from WooCommerce (automatic mapping)
24
- - `nuevoContribuyente`: Taxpayer registration with CUIT
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`: Customer data update
29
- - `clientesBusqueda`: Search by email/DNI
42
+ - `clientesActualizar`: Update customer data
43
+ - `clientesBusqueda`: Search by email or DNI
30
44
  - `clientesBusquedaPorCuit`: Search by CUIT
31
-
32
- ### 📦 Orders and Payments
33
- - `cobros`: Payment registration
34
- - `crearPedidoVenta`: Sales order creation
35
- - `obtenerFacturasCobros`: Payment history
36
- - `obtenerFacturasPedidosVentas`: Sales order history
37
- - `pedidoVentaActividad`: Order activity tracking
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`: Argentine provinces list
63
+ - `provinciasLista`: List of provinces (Argentina)
41
64
  - `departamentosLista`: Departments by province
42
- - `sucursalesFisicas`: Available physical branches
43
- - `listaPrecios`: Price lists
44
- - `promocionesCliente`: Customer promotions
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 transformation
48
- - `procesarImagenes`: Smart image synchronization
73
+ - `generarProductosWoo`: Transform data to WooCommerce format
74
+ - `procesarImagenes`: Image processing and synchronization
49
75
  - `generarToken`: Authentication token generation
50
- - `buscarContribuyente`: Taxpayer search
76
+ - `operadoresMoviles`: Retrieve mobile operator data based on credentials
51
77
 
52
78
  ## Prerequisites
53
79
 
54
- To use this node, ensure you have the following installed on your development machine:
80
+ To use this node, make sure you have the following installed in your development environment:
55
81
 
56
- - **n8n**: Version 1.75.2 or higher (latest version recommended for compatibility).
82
+ - **n8n**: Version 1.75.2 or higher (latest recommended for compatibility).
57
83
  - **Node.js**: Version 20.x or higher.
58
- - **npm**: Required for installing and building the plugin.
59
- - **Git**: For cloning the repository.
60
- - **Centum API Access**: Valid credentials (`centumUrl`, `consumerApiPublicId`, `publicAccessKey`) provided by your Centum provider.
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.
61
87
 
62
- Recommended: Follow n8n's guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).
88
+ Recommended: Follow the n8n guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).
63
89
 
64
- ## Using this starter
90
+ ## Using this Starter
65
91
 
66
- These are the basic steps for working with the starter. For detailed guidance on creating and publishing nodes, refer to the [documentation](https://docs.n8n.io/integrations/creating-nodes/).
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/).
67
93
 
68
- 1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template repository.
69
- 2. git clone https://github.com//.git
70
- 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.
71
97
  4. Open the project in your editor.
72
- 5. Browse the examples in /nodes and /credentials. Modify the examples, or replace them with your own nodes.
73
- 6. Update the package.json to match your details.
74
- 7. Run npm run lint to check for errors or npm run lintfix to automatically fix errors when possible.
75
- 8. Test your node locally. Refer to [Run your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/) for guidance.
76
- 9. Replace this README with documentation for your node. Use the [README\_TEMPLATE](/broobe/n8n/n8n-nodes-blocky-nodes/-/blob/main/README_TEMPLATE.md) to get started.
77
- 10. Update the LICENSE file to use your details.
78
- 11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm.
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.
79
105
 
80
106
  ## Support
81
107
 
82
108
  For issues or questions:
83
- - Open an **issue** on the [GitHub repository](https://github.com/your-username/n8n-nodes-centum).
109
+ - Open an **issue** in the [GitHub repository](https://github.com/your-username/n8n-nodes-centum).
84
110
  - Contact your Centum provider for API-related support.
85
- - Refer to the [n8n documentation](https://docs.n8n.io/) for help with workflow integration.
111
+ - Check the [n8n documentation](https://docs.n8n.io/) for help with workflow integration.
86
112
 
87
113
  ## License
88
114
 
@@ -1,4 +1,4 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
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[][]>;