n8n-nodes-internamaro-data 0.0.0-stage → 0.1.1

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 ucchiii
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 CHANGED
@@ -1,3 +1,71 @@
1
- # Temporary Holding Version
1
+ # n8n-nodes-internamaro-data
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An [n8n](https://n8n.io/) community node for data post-processing with Apify Actors published
4
+ by [ucchiii](https://apify.com/ucchiii). One node, nine operations:
5
+
6
+ | Operation | Returns | Apify Actor |
7
+ | --- | --- | --- |
8
+ | Convert HTML to markdown text | One item per page or HTML string: url, title, markdown, counts, status | [ucchiii/html-to-markdown](https://apify.com/ucchiii/html-to-markdown) |
9
+ | Send bulk HTTP requests | One item per request: status, headers, JSON or text body, timing, error | [ucchiii/bulk-http-request](https://apify.com/ucchiii/bulk-http-request) |
10
+ | Flatten JSON items | One flat item per input item (`address.city` style keys) | [ucchiii/flatten-json](https://apify.com/ucchiii/flatten-json) |
11
+ | Filter rows by conditions | Matching rows of a CSV/TSV/JSON/NDJSON file or an Apify dataset | [ucchiii/filter-rows](https://apify.com/ucchiii/filter-rows) |
12
+ | Remove duplicate rows | Merged Apify datasets without duplicates | [ucchiii/dataset-dedup-merge](https://apify.com/ucchiii/dataset-dedup-merge) |
13
+ | Convert a spreadsheet to JSON | One item per Excel row (or a link to an .xlsx made from JSON) | [ucchiii/excel-to-json](https://apify.com/ucchiii/excel-to-json) |
14
+ | Clean scraped map leads | One item per kept lead from a Google Maps scraper dataset: name, E.164 phone, website, domain, rating | [ucchiii/maps-leads-cleaner](https://apify.com/ucchiii/maps-leads-cleaner) |
15
+ | Summarize place reviews | One item per place: review count, average stars, trend, owner response rate, top terms | [ucchiii/reviews-insights](https://apify.com/ucchiii/reviews-insights) |
16
+ | Check domain availability | One item per domain: available true/false/null, status, TLD | [ucchiii/domain-availability-api](https://apify.com/ucchiii/domain-availability-api) |
17
+
18
+ Every dataset item of the Actor run becomes one n8n output item.
19
+
20
+ ## Installation
21
+
22
+ Follow the [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/)
23
+ and install `n8n-nodes-internamaro-data`.
24
+
25
+ ## Credentials
26
+
27
+ Create an **Internamaro Data (Apify Token) API** credential and paste your own Apify API token
28
+ (Apify Console > Settings > API & Integrations). The credential test calls
29
+ `GET https://api.apify.com/v2/users/me`.
30
+
31
+ ## Pricing
32
+
33
+ - The node is free and open source (MIT).
34
+ - Each execution starts one Actor run on the Apify account of the token. That account pays the
35
+ Actor's **pay-per-event** price shown on its Apify Store page.
36
+ - **Max Total Charge (USD)** (default 1) caps what one run may charge (Apify `maxTotalChargeUsd`).
37
+ - An operation with no data (for example no URLs) fails before any run is started.
38
+
39
+ ## Usage
40
+
41
+ 1. Add the **Internamaro Data** node and pick an operation.
42
+ 2. Fill in the main field (list fields take values separated by commas or new lines; JSON
43
+ fields take a JSON array or object). More settings are under **Options**.
44
+ 3. Run. The node calls `POST /v2/acts/ucchiii~<actor>/run-sync-get-dataset-items` and waits up to
45
+ 300 seconds; for bigger jobs split the input.
46
+
47
+ Example: *Check domain availability* with `example.com, my-new-shop-name.dev` returns two items
48
+ with `available: false` and `available: true`.
49
+
50
+ The node can also be used as a tool by n8n AI agents (`usableAsTool`).
51
+
52
+ ## Compatibility
53
+
54
+ Built with `@n8n/node-cli` 0.56 and tested against `n8n-workflow` 2.x.
55
+
56
+ ## Development
57
+
58
+ ```bash
59
+ npm ci
60
+ npm run lint
61
+ npm test # builds, then runs tests with a mocked HTTP helper
62
+ npm run dev # local n8n with the node loaded
63
+ ```
64
+
65
+ ## Support
66
+
67
+ Open a GitHub issue or write to support@internamaro.com.
68
+
69
+ ## License
70
+
71
+ MIT
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class InternamaroApifyApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternamaroApifyApi = void 0;
4
+ class InternamaroApifyApi {
5
+ constructor() {
6
+ this.name = 'internamaroApifyApi';
7
+ this.displayName = 'Internamaro Data (Apify Token) API';
8
+ this.icon = { light: 'file:../icons/internamaro.svg', dark: 'file:../icons/internamaro.dark.svg' };
9
+ this.documentationUrl = 'https://docs.apify.com/platform/integrations/api#api-token';
10
+ this.properties = [
11
+ {
12
+ displayName: 'API Token',
13
+ name: 'apiToken',
14
+ type: 'string',
15
+ typeOptions: { password: true },
16
+ default: '',
17
+ description: 'Your own Apify API token from Apify Console > Settings > API & Integrations. Actor runs are billed to this Apify account.',
18
+ },
19
+ ];
20
+ this.authenticate = {
21
+ type: 'generic',
22
+ properties: {
23
+ headers: {
24
+ Authorization: '=Bearer {{$credentials.apiToken}}',
25
+ },
26
+ },
27
+ };
28
+ this.test = {
29
+ request: {
30
+ baseURL: 'https://api.apify.com',
31
+ url: '/v2/users/me',
32
+ method: 'GET',
33
+ },
34
+ };
35
+ }
36
+ }
37
+ exports.InternamaroApifyApi = InternamaroApifyApi;
38
+ //# sourceMappingURL=InternamaroApifyApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InternamaroApifyApi.credentials.js","sourceRoot":"","sources":["../../credentials/InternamaroApifyApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,mBAAmB;IAAhC;QACC,SAAI,GAAG,qBAAqB,CAAC;QAE7B,gBAAW,GAAG,oCAAoC,CAAC;QAEnD,SAAI,GAAS,EAAE,KAAK,EAAE,+BAA+B,EAAE,IAAI,EAAE,oCAAoC,EAAE,CAAC;QAEpG,qBAAgB,GAAG,4DAA4D,CAAC;QAEhF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,2HAA2H;aAC5H;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,mCAAmC;iBAClD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,cAAc;gBACnB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AArCD,kDAqCC"}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64"><rect x="4" y="4" width="56" height="56" rx="12" fill="#58a6ff"/><path d="M16 20h32M16 32h22M16 44h12" stroke="#0d1117" stroke-width="5" stroke-linecap="round"/><circle cx="46" cy="44" r="6" fill="#0d1117"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64"><rect x="4" y="4" width="56" height="56" rx="12" fill="#1f6feb"/><path d="M16 20h32M16 32h22M16 44h12" stroke="#ffffff" stroke-width="5" stroke-linecap="round"/><circle cx="46" cy="44" r="6" fill="#ffffff"/></svg>
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class InternamaroData implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternamaroData = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const actors_1 = require("./actors");
6
+ const input_1 = require("./input");
7
+ class InternamaroData {
8
+ constructor() {
9
+ this.description = {
10
+ displayName: 'Internamaro Data',
11
+ name: 'internamaroData',
12
+ icon: { light: 'file:../../icons/internamaro.svg', dark: 'file:../../icons/internamaro.dark.svg' },
13
+ group: ['transform'],
14
+ version: 1,
15
+ subtitle: '={{$parameter["operation"]}}',
16
+ description: 'Convert, clean and check data with Apify Actors by ucchiii, billed to your own Apify account',
17
+ defaults: {
18
+ name: 'Internamaro Data',
19
+ },
20
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
21
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
22
+ usableAsTool: true,
23
+ credentials: [
24
+ {
25
+ name: 'internamaroApifyApi',
26
+ required: true,
27
+ },
28
+ ],
29
+ properties: [
30
+ ...actors_1.actorProperties,
31
+ {
32
+ displayName: 'Max Total Charge (USD)',
33
+ name: 'maxTotalChargeUsd',
34
+ type: 'number',
35
+ default: 1,
36
+ typeOptions: { minValue: 0.01, numberPrecision: 2 },
37
+ description: 'Upper limit for what one Actor run may charge your Apify account. The run stops when it is reached.',
38
+ },
39
+ ],
40
+ };
41
+ }
42
+ async execute() {
43
+ const items = this.getInputData();
44
+ const out = [];
45
+ for (let i = 0; i < items.length; i++) {
46
+ const operation = this.getNodeParameter('operation', i);
47
+ const meta = actors_1.operationMeta[operation];
48
+ let problem;
49
+ let input = {};
50
+ if (!meta) {
51
+ problem = `Unknown operation: ${operation}`;
52
+ }
53
+ else {
54
+ const params = {};
55
+ for (const name of meta.main)
56
+ params[name] = this.getNodeParameter(name, i, '');
57
+ Object.assign(params, this.getNodeParameter(meta.optionsName, i, {}));
58
+ const built = (0, input_1.buildActorInput)(meta, params);
59
+ if (built.error !== undefined)
60
+ problem = built.error;
61
+ else
62
+ input = built.input;
63
+ }
64
+ if (problem !== undefined || !meta) {
65
+ const message = problem !== null && problem !== void 0 ? problem : 'Unknown operation';
66
+ if (this.continueOnFail()) {
67
+ out.push({ json: { error: message }, pairedItem: { item: i } });
68
+ continue;
69
+ }
70
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), message, { itemIndex: i });
71
+ }
72
+ const maxTotalChargeUsd = this.getNodeParameter('maxTotalChargeUsd', i, 1);
73
+ let response;
74
+ try {
75
+ response = await this.helpers.httpRequestWithAuthentication.call(this, 'internamaroApifyApi', {
76
+ method: 'POST',
77
+ url: (0, input_1.runUrl)(meta.actorId),
78
+ qs: { format: 'json', clean: true, maxTotalChargeUsd },
79
+ body: input,
80
+ json: true,
81
+ timeout: 310000,
82
+ });
83
+ }
84
+ catch (error) {
85
+ if (this.continueOnFail()) {
86
+ out.push({ json: { error: error.message }, pairedItem: { item: i } });
87
+ continue;
88
+ }
89
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i });
90
+ }
91
+ const rows = Array.isArray(response) ? response : [response];
92
+ for (const row of rows) {
93
+ out.push({ json: (row !== null && row !== void 0 ? row : {}), pairedItem: { item: i } });
94
+ }
95
+ }
96
+ return [out];
97
+ }
98
+ }
99
+ exports.InternamaroData = InternamaroData;
100
+ //# sourceMappingURL=InternamaroData.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InternamaroData.node.js","sourceRoot":"","sources":["../../../nodes/InternamaroData/InternamaroData.node.ts"],"names":[],"mappings":";;;AAQA,+CAAqF;AACrF,qCAA0D;AAC1D,mCAAkD;AAElD,MAAa,eAAe;IAA5B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,EAAE,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,uCAAuC,EAAE;YAClG,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EACV,8FAA8F;YAC/F,QAAQ,EAAE;gBACT,IAAI,EAAE,kBAAkB;aACxB;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX,GAAG,wBAAe;gBAClB;oBACC,WAAW,EAAE,wBAAwB;oBACrC,IAAI,EAAE,mBAAmB;oBACzB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,CAAC;oBACV,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,EAAE;oBACnD,WAAW,EACV,qGAAqG;iBACtG;aACD;SACD,CAAC;IAuDH,CAAC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,CAAC;YACD,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;YAC7D,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACxB,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,EAAE,CAAgB,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACzE,CAAC;QACF,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,CAAC;IACd,CAAC;CACD;AAzFD,0CAyFC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-internamaro-data.internamaroData",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Data & Storage", "Development"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/internamaro/n8n-nodes-internamaro-data?tab=readme-ov-file#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/internamaro/n8n-nodes-internamaro-data?tab=readme-ov-file"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,14 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export type FieldKind = 'string' | 'integer' | 'number' | 'boolean' | 'list' | 'json';
3
+ export interface OperationMeta {
4
+ actorId: string;
5
+ main: string[];
6
+ sources: string[];
7
+ optionsName: string;
8
+ fields: Record<string, {
9
+ key: string;
10
+ kind: FieldKind;
11
+ }>;
12
+ }
13
+ export declare const actorProperties: INodeProperties[];
14
+ export declare const operationMeta: Record<string, OperationMeta>;