n8n-nodes-kipflow 0.1.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kipflow
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,203 @@
1
+ # Kipflow for n8n
2
+
3
+ n8n community node for enriching Brazilian company data using CNPJ with Kipflow.
4
+
5
+ ## Features
6
+
7
+ - 🇧🇷 **Brazilian Company Enrichment**: Get complete company information using CNPJ or domain
8
+ - 💰 **Flexible Pricing**: Select only the datasets you need (Basic, Complete, Address, Online Presence, Partners)
9
+ - 🔄 **Automatic Formatting**: Accepts CNPJ with or without formatting (dots, slashes, hyphens)
10
+ - 🔐 **Secure Authentication**: Uses API key-based authentication
11
+ - 📊 **Rich Data**: Returns comprehensive company information including financial and location data
12
+ - 💵 **Cost Transparency**: Shows cost per execution based on selected datasets
13
+
14
+ ## Installation
15
+
16
+ ### Community Installation (Recommended)
17
+
18
+ Install directly in n8n:
19
+
20
+ ```bash
21
+ npm install n8n-nodes-kipflow
22
+ ```
23
+
24
+ Then restart your n8n instance.
25
+
26
+ ### Manual Installation
27
+
28
+ 1. Navigate to your n8n custom nodes directory (usually `~/.n8n/custom`)
29
+ 2. Install the package:
30
+
31
+ ```bash
32
+ cd ~/.n8n/custom
33
+ npm install n8n-nodes-kipflow
34
+ ```
35
+
36
+ 3. Restart n8n
37
+
38
+ ## Configuration
39
+
40
+ ### Prerequisites
41
+
42
+ - n8n instance (local or cloud)
43
+ - Kipflow API Key (obtain from [Driva](https://driva.io))
44
+
45
+ ### Setting up Credentials
46
+
47
+ 1. In n8n, go to **Credentials** > **New**
48
+ 2. Search for "Kipflow API"
49
+ 3. Enter your API Key
50
+ 4. Click **Save**
51
+
52
+ ## Usage
53
+
54
+ ### Basic Example
55
+
56
+ 1. Add the "Kipflow CNPJ Enrichment" node to your workflow
57
+ 2. Select your Kipflow API credentials
58
+ 3. Enter a CNPJ (with or without formatting):
59
+ - Formatted: `12.345.678/0001-90`
60
+ - Unformatted: `12345678000190`
61
+ 4. Execute the node
62
+
63
+ ### Output Data Structure
64
+
65
+ The node returns a `DrivaCompany` object with the following fields:
66
+
67
+ ```typescript
68
+ interface DrivaCompany {
69
+ razao_social?: string; // Legal company name
70
+ nome_fantasia?: string; // Trade name
71
+ cnpj?: string; // Company CNPJ
72
+ uf?: string; // State (UF)
73
+ municipio?: string; // City
74
+ endereco?: string; // Address
75
+ cep?: string; // Postal code
76
+ faturamento?: number; // Revenue
77
+ faixa_faturamento_grupo?: string; // Revenue range group
78
+ qtde_funcionarios?: number; // Number of employees
79
+ faixa_funcionarios_grupo?: string; // Employees range group
80
+ sites?: string[]; // Company websites
81
+ linkedin_url?: string; // LinkedIn profile URL
82
+ facebook?: string[]; // Facebook pages
83
+ telefones?: string[]; // Phone numbers
84
+ }
85
+ ```
86
+
87
+ ### Example Workflow
88
+
89
+ ```json
90
+ {
91
+ "nodes": [
92
+ {
93
+ "name": "Manual Trigger",
94
+ "type": "n8n-nodes-base.manualTrigger"
95
+ },
96
+ {
97
+ "name": "Kipflow CNPJ Enrichment",
98
+ "type": "n8n-nodes-base.kipflowCnpjEnrichment",
99
+ "parameters": {
100
+ "cnpj": "00.000.000/0001-91"
101
+ },
102
+ "credentials": {
103
+ "drivaSearchApi": "Kipflow API"
104
+ }
105
+ }
106
+ ]
107
+ }
108
+ ```
109
+
110
+ ## Development
111
+
112
+ ### Building
113
+
114
+ ```bash
115
+ npm run build
116
+ ```
117
+
118
+ ### Development Mode (watch)
119
+
120
+ ```bash
121
+ npm run dev
122
+ ```
123
+
124
+ ### Linting
125
+
126
+ ```bash
127
+ npm run lint
128
+ npm run lintfix # Auto-fix issues
129
+ ```
130
+
131
+ ### Testing
132
+
133
+ After linking the node to your n8n instance:
134
+
135
+ 1. Start n8n: `n8n start`
136
+ 2. Create a test workflow with the node
137
+ 3. Use a known valid CNPJ (e.g., `00.000.000/0001-91` - Banco do Brasil)
138
+ 4. Verify the output matches expected company data
139
+
140
+ ## Data Source
141
+
142
+ This node uses the same enrichment API as the backend HubSpot integration, ensuring consistency across the platform. The API endpoint and data structure are defined in:
143
+
144
+ - Backend: `src/hubspot/services/company-enrichment.service.ts`
145
+ - Types: `src/hubspot/types/driva.types.ts`
146
+
147
+ ## Troubleshooting
148
+
149
+ ### Node not appearing in n8n
150
+
151
+ - Ensure you ran `npm link` in the n8n-node directory
152
+ - Verify the link in `~/.n8n/custom/node_modules/nodes-kipflow-n8n`
153
+ - Restart n8n after linking
154
+
155
+ ### API Key errors
156
+
157
+ - Verify your API key is correct in the credentials
158
+ - Check that the key has access to the Search-Go API
159
+ - Test the credentials using the built-in test feature
160
+
161
+ ### CNPJ not found
162
+
163
+ - Verify the CNPJ is valid (14 digits)
164
+ - Check if the company exists in the Driva database
165
+ - Try with a known valid CNPJ like Banco do Brasil: `00000000000191`
166
+
167
+ ### Build errors
168
+
169
+ ```bash
170
+ # Clean and rebuild
171
+ rm -rf dist node_modules
172
+ npm install
173
+ npm run build
174
+ ```
175
+
176
+ ## Contributing
177
+
178
+ This node is part of the Kipflow backend repository. For contributions:
179
+
180
+ 1. Create a feature branch
181
+ 2. Make your changes in the `n8n-node/` directory
182
+ 3. Run tests and linting
183
+ 4. Submit a pull request
184
+
185
+ ## License
186
+
187
+ MIT
188
+
189
+ ## Support
190
+
191
+ For issues and questions:
192
+
193
+ - GitHub Issues: [kipflow-backend/issues](https://github.com/kipflow/kipflow-backend/issues)
194
+ - Email: contato@kipflow.com
195
+
196
+ ## Version History
197
+
198
+ ### 0.1.0 (Initial Release)
199
+
200
+ - ✅ CNPJ-based enrichment
201
+ - ✅ Automatic CNPJ formatting cleanup
202
+ - ✅ Complete company data retrieval
203
+ - ✅ Credential management
@@ -0,0 +1,10 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class DrivaSearchApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
10
+ //# sourceMappingURL=DrivaSearchApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrivaSearchApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/DrivaSearchApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,qBAAa,cAAe,YAAW,eAAe;IACpD,IAAI,SAAoB;IACxB,WAAW,SAAiB;IAC5B,gBAAgB,SAA6B;IAC7C,UAAU,EAAE,eAAe,EAAE,CAY3B;IACF,YAAY,EAAE,oBAAoB,CAOhC;IACF,IAAI,EAAE,sBAAsB,CAM1B;CACH"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DrivaSearchApi = void 0;
4
+ class DrivaSearchApi {
5
+ constructor() {
6
+ this.name = 'drivaSearchApi';
7
+ this.displayName = 'Kipflow API';
8
+ this.documentationUrl = 'https://docs.kipflow.io';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: {
15
+ password: true,
16
+ },
17
+ default: '',
18
+ required: true,
19
+ description: 'API Key for Kipflow enrichment service',
20
+ },
21
+ ];
22
+ this.authenticate = {
23
+ type: 'generic',
24
+ properties: {
25
+ headers: {
26
+ 'X-API-Key': '={{$credentials.apiKey}}',
27
+ },
28
+ },
29
+ };
30
+ this.test = {
31
+ request: {
32
+ baseURL: 'https://api.kipflow.io',
33
+ url: '/health/authenticated',
34
+ method: 'GET',
35
+ },
36
+ };
37
+ }
38
+ }
39
+ exports.DrivaSearchApi = DrivaSearchApi;
40
+ //# sourceMappingURL=DrivaSearchApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrivaSearchApi.credentials.js","sourceRoot":"","sources":["../../credentials/DrivaSearchApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAA3B;QACE,SAAI,GAAG,gBAAgB,CAAC;QACxB,gBAAW,GAAG,aAAa,CAAC;QAC5B,qBAAgB,GAAG,yBAAyB,CAAC;QAC7C,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,wCAAwC;aACtD;SACF,CAAC;QACF,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,WAAW,EAAE,0BAA0B;iBACxC;aACF;SACF,CAAC;QACF,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,wBAAwB;gBACjC,GAAG,EAAE,uBAAuB;gBAC5B,MAAM,EAAE,KAAK;aACd;SACF,CAAC;IACJ,CAAC;CAAA;AAhCD,wCAgCC"}
@@ -0,0 +1,6 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class KipflowCnpjEnrichment implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
6
+ //# sourceMappingURL=KipflowCnpjEnrichment.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KipflowCnpjEnrichment.node.d.ts","sourceRoot":"","sources":["../../../nodes/KipflowCnpjEnrichment/KipflowCnpjEnrichment.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAErB,MAAM,cAAc,CAAC;AActB,qBAAa,qBAAsB,YAAW,SAAS;IACrD,WAAW,EAAE,oBAAoB,CAsD/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAgDxE"}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KipflowCnpjEnrichment = void 0;
4
+ const DATASET_PRICES = {
5
+ basic: 0.02,
6
+ complete: 0.24,
7
+ address: 0.07,
8
+ online_presence: 0.12,
9
+ partners: 0.08,
10
+ };
11
+ function formatBRL(value) {
12
+ return new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(value);
13
+ }
14
+ class KipflowCnpjEnrichment {
15
+ constructor() {
16
+ this.description = {
17
+ displayName: 'Kipflow',
18
+ name: 'kipflowCnpjEnrichment',
19
+ icon: 'file:kipflow-logo.svg',
20
+ group: ['transform'],
21
+ version: 1,
22
+ subtitle: '={{$parameter["cnpj"]}}',
23
+ description: 'Enrich Brazilian company data using CNPJ with Kipflow',
24
+ defaults: {
25
+ name: 'Kipflow',
26
+ },
27
+ inputs: ['main'],
28
+ outputs: ['main'],
29
+ credentials: [
30
+ {
31
+ name: 'drivaSearchApi',
32
+ required: true,
33
+ },
34
+ ],
35
+ properties: [
36
+ {
37
+ displayName: 'CNPJ',
38
+ name: 'cnpj',
39
+ type: 'string',
40
+ default: '',
41
+ required: true,
42
+ placeholder: '12.345.678/0001-90 or 12345678000190',
43
+ description: 'Brazilian company CNPJ (with or without formatting)',
44
+ },
45
+ {
46
+ displayName: 'Selecione os datasets',
47
+ name: 'datasetsNotice',
48
+ type: 'notice',
49
+ default: '',
50
+ },
51
+ {
52
+ displayName: 'Datasets',
53
+ name: 'datasets',
54
+ type: 'multiOptions',
55
+ default: ['basic'],
56
+ options: [
57
+ { name: `Básico — ${formatBRL(DATASET_PRICES.basic)}`, value: 'basic' },
58
+ { name: `Completo — ${formatBRL(DATASET_PRICES.complete)}`, value: 'complete' },
59
+ { name: `Endereço — ${formatBRL(DATASET_PRICES.address)}`, value: 'address' },
60
+ {
61
+ name: `Presença Online — ${formatBRL(DATASET_PRICES.online_presence)}`,
62
+ value: 'online_presence',
63
+ },
64
+ { name: `Sócios — ${formatBRL(DATASET_PRICES.partners)}`, value: 'partners' },
65
+ ],
66
+ description: 'Marque apenas o que precisa. O custo final é a soma dos datasets selecionados por execução.',
67
+ },
68
+ ],
69
+ };
70
+ }
71
+ async execute() {
72
+ var _a;
73
+ const items = this.getInputData();
74
+ const returnData = [];
75
+ for (let i = 0; i < items.length; i++) {
76
+ try {
77
+ const cnpj = this.getNodeParameter('cnpj', i);
78
+ const cleanCnpj = cnpj.replace(/\D/g, '');
79
+ const datasets = this.getNodeParameter('datasets', i, ['basic']);
80
+ const credentials = await this.getCredentials('drivaSearchApi');
81
+ const response = await this.helpers.httpRequest({
82
+ method: 'GET',
83
+ url: 'https://api.kipflow.io/companies/v1/search',
84
+ qs: {
85
+ cnpj: cleanCnpj,
86
+ datasets: datasets.join(','),
87
+ },
88
+ headers: {
89
+ 'X-API-Key': credentials.apiKey,
90
+ },
91
+ json: true,
92
+ });
93
+ if (!response.success) {
94
+ throw new Error(((_a = response.error) === null || _a === void 0 ? void 0 : _a.message) || 'API returned success: false');
95
+ }
96
+ returnData.push({
97
+ json: response,
98
+ pairedItem: { item: i },
99
+ });
100
+ }
101
+ catch (error) {
102
+ if (this.continueOnFail()) {
103
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
104
+ returnData.push({
105
+ json: { error: errorMessage },
106
+ pairedItem: { item: i },
107
+ });
108
+ continue;
109
+ }
110
+ throw error;
111
+ }
112
+ }
113
+ return [returnData];
114
+ }
115
+ }
116
+ exports.KipflowCnpjEnrichment = KipflowCnpjEnrichment;
117
+ //# sourceMappingURL=KipflowCnpjEnrichment.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KipflowCnpjEnrichment.node.js","sourceRoot":"","sources":["../../../nodes/KipflowCnpjEnrichment/KipflowCnpjEnrichment.node.ts"],"names":[],"mappings":";;;AAQA,MAAM,cAAc,GAA2B;IAC7C,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,IAAI;IACrB,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9F,CAAC;AAED,MAAa,qBAAqB;IAAlC;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,uBAAuB;YAC7B,IAAI,EAAE,uBAAuB;YAC7B,KAAK,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,UAAU,CAAC,IAAI,CAAC;oBACd,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;iBACxB,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC1B,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;oBAC9E,UAAU,CAAC,IAAI,CAAC;wBACd,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE;wBAC7B,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACxB,CAAC,CAAC;oBACH,SAAS;gBACX,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;CACF;AAzGD,sDAyGC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-base.kipflowCnpjEnrichment",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Data Transformation"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://docs.driva.io/search-api"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/kipflow/kipflow-backend/tree/main/n8n-node"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="utf-8" ?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="495" height="504" viewBox="0 0 495 504"><path fill="#FA710B" d="M360.241 63.767C360.797 62.3185 362.039 60.8566 362.905 59.3057C368.253 49.7248 374.947 39.7801 385.233 35.1156C395.872 30.2909 408.526 29.6509 419.497 33.7048C432.807 38.6229 442.799 47.0216 448.596 60.1913C452.751 69.6319 452.829 81.7976 449.133 91.4727C448.024 94.3761 446.55 96.7121 445.041 99.519C442.865 103.568 435.189 113.424 434.183 116.998C433.884 118.062 439.519 130.486 440.178 132.754C441.568 137.54 443.106 143.228 444.316 148.066C446.044 154.972 447.132 162.486 447.756 169.554C448.157 174.088 448.951 180.594 448.877 184.933C448.613 200.283 445.272 217.516 438.484 231.345C433.912 240.66 424.393 252.387 416.292 258.773C411.644 262.436 405.248 267.342 399.782 269.625C389.182 274.054 379.128 277.697 367.778 279.728C364.703 280.278 356.291 280.814 353.933 281.608C350.876 286.693 349.518 292.667 346.215 297.798C344.756 297.462 340.165 297.376 338.502 297.316C333.595 297.127 328.687 296.974 323.778 296.857C321.96 296.814 318.41 296.863 316.822 296.44C319.252 291.775 321.99 286.116 323.607 281.142C320.169 280.232 311.331 279.907 307.248 279.308C300.479 278.316 293.454 277.198 286.675 276.523C285.071 279.1 279.93 290.253 278.642 291.775C271.487 306.851 257.919 325.138 245.71 335.995C230.096 349.88 208.811 354.609 188.845 348.572C178.51 345.447 169.62 337.501 162.361 329.717C159.491 326.64 157.114 322.485 154.986 318.853C146.299 304.028 143.746 286.433 149.709 270.131C153.263 260.416 157.61 254.854 165.326 248.196C167.243 246.542 170.985 244.372 171.917 242.144C176.094 232.157 178.348 221.327 180.339 210.721C180.886 207.858 181.226 204.217 181.987 201.522C182.116 199.289 183.116 195.71 183.565 193.394C184.936 186.312 187.126 179.454 188.908 172.572C190.592 167.989 191.89 163.251 193.645 158.594C203.468 132.536 219.631 107.683 241.135 89.7644C271.268 64.6559 305.679 55.8322 344.333 60.4337C351.262 61.5124 353.672 62.173 360.241 63.767ZM345.442 87.8011C343.336 86.5445 333.944 86.2241 330.987 85.7971C325.323 85.3856 318.424 86.1643 312.752 86.8365C268.246 92.1113 234.87 126.866 219.773 167.134C215.415 178.535 211.937 190.254 209.369 202.186C207.656 210.15 206.772 218.153 205.16 226.02C201.16 245.542 193.36 263.822 184.66 281.652C182.139 286.818 177.659 292.634 176.161 298.305C176.447 303.42 181.29 310.448 184.547 313.955C188.36 318.026 194.897 322.396 200.281 323.758C203.257 323.933 205.722 316.57 206.958 314.482C218.262 295.392 228.552 275.165 234.935 253.826C248.111 209.776 248.066 152.504 295.825 129.467C303.537 125.746 313.133 122.608 321.738 122.27C323.409 122.214 325.08 122.173 326.751 122.146C328.291 120.878 332.985 110.492 334.428 108.028C337.341 103.053 339.986 97.5749 342.989 92.5986C343.908 91.0757 344.142 89.1522 345.442 87.8011ZM311.764 151.552C310.673 152.128 305.112 154.749 304.512 155.186C297.568 160.235 290.036 167.882 285.667 175.334C283.804 178.512 283.207 180.632 281.839 183.201C282.121 183.694 282.536 183.847 283.114 183.913C287.711 184.444 291.795 185.242 296.254 186.538C298.201 182.546 301.682 173.744 303.53 170.703C304.409 167.434 312.348 153.624 311.764 151.552ZM417.027 146.128C412.336 154.205 407.953 163.22 403.535 171.54C396.995 183.86 393.202 195.461 381.65 204.502C354.532 225.727 318.995 217.329 287.933 212.216C283.277 211.414 277.208 209.894 272.681 209.981C271.368 219.683 269.084 230.969 266.52 240.373C266.042 242.126 266.238 243.858 265.683 245.345C269.367 245.66 277.826 247.312 281.743 248.071C287.875 249.293 295.162 250.36 301.369 251.306C327.286 255.253 354.222 258.403 379.165 248.269C396.129 241.567 409.96 227.445 417.193 210.79C425.615 191.396 424.856 165.677 417.027 146.128ZM330.17 178.164C328.22 182.143 326.056 186.582 324.654 190.772C329.03 191.888 343.573 191.234 348.293 190.015C354.505 188.41 363.151 184.943 367.737 180.171C369.299 178.545 371.791 173.093 372.936 170.872L383.956 149.196C395.405 127.129 408.512 105.387 421.968 84.4898C430.954 70.5353 413.506 55.0804 399.594 58.9397C391.918 61.0692 389.939 68.8545 385.844 74.7183C381.05 81.619 377.159 88.8934 372.932 96.0753C362.226 114.068 352.263 132.492 343.067 151.301C340.307 156.9 337.597 162.523 334.937 168.17C333.501 171.246 331.799 175.306 330.17 178.164Z"/><path fill="#FA710B" d="M188.908 172.572C190.592 167.989 191.89 163.251 193.645 158.594C203.468 132.536 219.631 107.683 241.135 89.7644C271.268 64.6559 305.679 55.8322 344.333 60.4337C351.262 61.5124 353.672 62.173 360.241 63.767C356.595 69.3342 353.552 75.7132 349.771 81.2695C348.816 82.6719 346.772 87.5026 345.442 87.8011C343.336 86.5445 333.944 86.2241 330.987 85.7971C325.323 85.3856 318.424 86.1643 312.752 86.8365C268.246 92.1113 234.87 126.866 219.773 167.134C215.415 178.535 211.937 190.254 209.369 202.186C207.656 210.15 206.772 218.153 205.16 226.02C201.16 245.542 193.36 263.822 184.66 281.652C182.139 286.818 177.659 292.634 176.161 298.305C176.447 303.42 181.29 310.448 184.547 313.955C188.36 318.026 194.897 322.396 200.281 323.758C203.257 323.933 205.722 316.57 206.958 314.482C218.262 295.392 228.552 275.165 234.935 253.826C248.111 209.776 248.066 152.504 295.825 129.467C303.537 125.746 313.133 122.608 321.738 122.27C323.409 122.214 325.08 122.173 326.751 122.146C324.234 125.912 313.836 150.394 311.764 151.552C310.673 152.128 305.112 154.749 304.512 155.186C297.568 160.235 290.036 167.882 285.667 175.334C283.804 178.512 283.207 180.632 281.839 183.201C280.569 184.587 276.483 197.015 275.512 199.737C274.497 202.583 273.869 207.019 272.681 209.981C271.368 219.683 269.084 230.969 266.52 240.373C266.042 242.126 266.238 243.858 265.683 245.345C269.367 245.66 277.826 247.312 281.743 248.071C281.18 248.502 281.045 248.436 280.866 249.149C279.409 254.931 278.093 260.737 276.156 266.389C275.328 268.805 274.544 271.499 273.495 273.829C275.959 274.432 285.299 275.822 286.675 276.523C285.071 279.1 279.93 290.253 278.642 291.775C271.487 306.851 257.919 325.138 245.71 335.995C230.096 349.88 208.811 354.609 188.845 348.572C178.51 345.447 169.62 337.501 162.361 329.717C159.491 326.64 157.114 322.485 154.986 318.853C146.299 304.028 143.746 286.433 149.709 270.131C153.263 260.416 157.61 254.854 165.326 248.196C167.243 246.542 170.985 244.372 171.917 242.144C176.094 232.157 178.348 221.327 180.339 210.721C180.886 207.858 181.226 204.217 181.987 201.522C182.116 199.289 183.116 195.71 183.565 193.394C184.936 186.312 187.126 179.454 188.908 172.572Z"/><path fill="#DE4C01" d="M265.683 245.345C269.367 245.66 277.826 247.312 281.743 248.071C281.18 248.502 281.045 248.436 280.866 249.149C279.409 254.931 278.093 260.737 276.156 266.389C275.328 268.805 274.544 271.499 273.495 273.829C275.959 274.432 285.299 275.822 286.675 276.523C285.071 279.1 279.93 290.253 278.642 291.775C277.207 290.159 255.707 286.261 252.216 285.654C257.463 273.616 262.507 258.115 265.683 245.345Z"/><path fill="#DE4C01" d="M344.333 60.4337C351.262 61.5124 353.672 62.173 360.241 63.767C356.595 69.3342 353.552 75.7132 349.771 81.2695C348.816 82.6719 346.772 87.5026 345.442 87.8011C343.336 86.5445 333.944 86.2241 330.987 85.7971C331.976 80.8784 338.376 71.3714 341.003 66.6701C342.065 64.7687 343.655 62.5226 344.333 60.4337Z"/><path fill="#DE4C01" d="M323.607 281.142C325.481 281.601 328.093 281.523 330.055 281.648C337.008 282.092 343.936 282.049 350.893 281.749C351.8 281.71 353.065 281.58 353.933 281.608C350.876 286.693 349.518 292.667 346.215 297.798C344.756 297.462 340.165 297.376 338.502 297.316C333.595 297.127 328.687 296.974 323.778 296.857C321.96 296.814 318.41 296.863 316.822 296.44C319.252 291.775 321.99 286.116 323.607 281.142Z"/><path fill="#DE4C01" d="M296.254 186.538C298.201 182.546 301.682 173.744 303.53 170.703C303.695 174.903 297.587 183.051 297.321 186.431C298.736 186.517 299.004 186.96 300.351 187.034C301.912 187.121 303.587 187.627 305.148 187.809C308.985 188.331 320.889 190.626 324.056 190.014C325.744 188.052 327.595 180.136 330.17 178.164C328.22 182.143 326.056 186.582 324.654 190.772C322.578 190.271 318.443 190.099 316.11 189.814C310.391 189.077 304.695 188.175 299.028 187.111C298.683 187.043 297.521 186.88 297.306 187.153C295.236 189.775 287.522 210.156 287.933 212.216C283.277 211.414 277.208 209.894 272.681 209.981C273.869 207.019 274.497 202.583 275.512 199.737C276.483 197.015 280.569 184.587 281.839 183.201C282.121 183.694 282.536 183.847 283.114 183.913C287.711 184.444 291.795 185.242 296.254 186.538Z"/><path fill="#FA710B" d="M188.908 172.572C187.126 179.454 184.936 186.312 183.565 193.394C183.116 195.71 182.116 199.289 181.987 201.522C176.496 202.712 170.982 204.686 165.682 206.518C130.264 221.364 111.782 253.082 110.921 290.931C111.246 302.519 113.688 317.078 118.19 327.659C136.672 370.911 189.737 398.899 235.324 382.795C248.746 378.053 259.89 371.27 270.649 361.991C277.727 355.886 281.151 352.86 287.009 345.397C298.933 330.208 308.087 313.593 316.822 296.44C318.41 296.863 321.96 296.814 323.778 296.857C328.687 296.974 333.595 297.127 338.502 297.316C340.165 297.376 344.756 297.462 346.215 297.798C343.895 303.174 341.617 308.173 338.706 313.257C337.649 315.258 336.916 317.637 335.814 319.594C327.315 334.694 318.726 350.883 307.39 364.168C295.962 377.56 280.608 390.735 264.904 398.661C261.384 400.437 258.157 402.404 254.472 403.816C231.232 414.062 205.013 416.774 180.218 411.159C178.637 410.801 176.883 410.543 175.328 409.882C172.001 414.283 168.44 420.339 165.198 424.266C155.823 436.653 150.705 448.209 133.211 451.622C121.943 453.82 108.702 452.077 99.2008 445.5C88.8594 438.341 79.8578 428.023 77.6595 415.358C75.6653 403.87 76.8624 392.222 83.4158 382.376C86.0877 378.361 89.0767 374.703 91.7837 370.681C93.1573 368.769 94.5289 366.713 95.9209 364.79C97.5548 362.532 101.109 358.358 102.24 356.026C101.319 354.55 100.553 352.555 99.582 350.995C93.5654 341.331 90.0114 331.074 87.1457 320.097C85.9109 315.367 85.2471 310.977 84.5706 306.074C80.7921 278.689 87.4909 249.892 101.441 226.172C104.307 221.321 107.699 217.59 111.369 213.257C116.874 206.758 123.319 200.718 129.848 195.239C131.674 193.708 135.849 191.393 137.991 190.072C148.44 183.625 159.643 179.447 171.502 176.314C175.888 174.656 184.161 173.582 188.908 172.572ZM110.147 391.534C106.651 397.04 102.149 402.007 104.003 409.252C106.935 420.711 125.014 434.525 134 420.652C136.139 417.349 138.851 414.198 141.039 410.857C143.552 407.06 146.656 403.069 149.313 399.113C143.148 395.512 136.653 391.652 131.059 387.202C127.574 384.429 123.421 380.561 120.094 377.497C117.14 381.859 113.785 387.945 110.147 391.534Z"/><path fill="#FA710B" d="M102.24 356.026C103.341 356.745 106.197 361.282 107.228 362.668C109.314 365.472 117.707 375.855 120.094 377.497C117.14 381.859 113.785 387.945 110.147 391.534C106.651 397.04 102.149 402.007 104.003 409.252C106.935 420.711 125.014 434.525 134 420.652C136.139 417.349 138.851 414.198 141.039 410.857C143.654 415.741 163.371 422.128 165.198 424.266C155.823 436.653 150.705 448.209 133.211 451.622C121.943 453.82 108.702 452.077 99.2008 445.5C88.8594 438.341 79.8578 428.023 77.6595 415.358C75.6653 403.87 76.8624 392.222 83.4158 382.376C86.0877 378.361 89.0767 374.703 91.7837 370.681C93.1573 368.769 94.5289 366.713 95.9209 364.79C97.5548 362.532 101.109 358.358 102.24 356.026Z"/><path fill="#DE4C01" d="M102.24 356.026C103.341 356.745 106.197 361.282 107.228 362.668C109.314 365.472 117.707 375.855 120.094 377.497C117.14 381.859 113.785 387.945 110.147 391.534C109.831 391.056 109.989 390.184 109.464 389.662C103.573 383.796 98.6329 377.491 93.5157 370.972C93.0653 370.398 92.4761 370.63 91.7837 370.681C93.1573 368.769 94.5289 366.713 95.9209 364.79C97.5548 362.532 101.109 358.358 102.24 356.026Z"/><path fill="#DE4C01" d="M188.908 172.572C187.126 179.454 184.936 186.312 183.565 193.394C183.116 195.71 182.116 199.289 181.987 201.522C176.496 202.712 170.982 204.686 165.682 206.518C165.719 204.968 166.47 201.339 166.773 199.715C167.736 194.405 168.841 189.122 170.087 183.872C170.444 182.388 171.916 177.548 171.502 176.314C175.888 174.656 184.161 173.582 188.908 172.572Z"/><path fill="#DE4C01" d="M149.313 399.113C154.806 402.239 168.925 408.324 175.328 409.882C172.001 414.283 168.44 420.339 165.198 424.266C163.371 422.128 143.654 415.741 141.039 410.857C143.552 407.06 146.656 403.069 149.313 399.113Z"/></svg>
@@ -0,0 +1,7 @@
1
+ <svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="60" height="60" rx="8" fill="#4F46E5"/>
3
+ <path d="M15 22C15 19.2386 17.2386 17 20 17H27C29.7614 17 32 19.2386 32 22V38C32 40.7614 29.7614 43 27 43H20C17.2386 43 15 40.7614 15 38V22Z" fill="white"/>
4
+ <path d="M28 22C28 19.2386 30.2386 17 33 17H40C42.7614 17 45 19.2386 45 22V38C45 40.7614 42.7614 43 40 43H33C30.2386 43 28 40.7614 28 38V22Z" fill="#A5B4FC"/>
5
+ <path d="M20 24H27M20 28H27M20 32H27" stroke="#4F46E5" stroke-width="2" stroke-linecap="round"/>
6
+ <path d="M33 24H40M33 28H40M33 32H40" stroke="#4F46E5" stroke-width="2" stroke-linecap="round"/>
7
+ </svg>
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "n8n-nodes-kipflow",
3
+ "version": "0.1.0",
4
+ "description": "n8n node for Brazilian company enrichment via CNPJ with Kipflow",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "n8n",
8
+ "cnpj",
9
+ "brazil",
10
+ "company-data",
11
+ "enrichment",
12
+ "kipflow",
13
+ "driva"
14
+ ],
15
+ "license": "MIT",
16
+ "homepage": "https://github.com/kipflow/n8n-nodes-kipflow",
17
+ "author": {
18
+ "name": "Kipflow",
19
+ "email": "contato@kipflow.com"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/kipflow/kipflow-backend.git"
24
+ },
25
+ "main": "index.js",
26
+ "scripts": {
27
+ "build": "tsc && npm run copy-files",
28
+ "copy-files": "copyfiles -u 0 nodes/**/*.{json,svg,png} dist/",
29
+ "dev": "tsc --watch",
30
+ "lint": "eslint nodes credentials --ext .ts",
31
+ "lintfix": "eslint nodes credentials --ext .ts --fix",
32
+ "format": "prettier nodes credentials --write"
33
+ },
34
+ "files": [
35
+ "dist"
36
+ ],
37
+ "n8n": {
38
+ "n8nNodesApiVersion": 1,
39
+ "credentials": [
40
+ "dist/credentials/DrivaSearchApi.credentials.js"
41
+ ],
42
+ "nodes": [
43
+ "dist/nodes/KipflowCnpjEnrichment/KipflowCnpjEnrichment.node.js"
44
+ ]
45
+ },
46
+ "devDependencies": {
47
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
48
+ "@typescript-eslint/parser": "^6.0.0",
49
+ "copyfiles": "^2.4.1",
50
+ "eslint": "^8.42.0",
51
+ "eslint-plugin-n8n-nodes-base": "^1.11.0",
52
+ "prettier": "^3.0.0",
53
+ "typescript": "^5.1.6"
54
+ },
55
+ "peerDependencies": {
56
+ "n8n-workflow": "*"
57
+ },
58
+ "dependencies": {
59
+ "n8n-workflow": "^1.0.0"
60
+ }
61
+ }