n8n-nodes-test-node 1.0.5 → 1.0.6

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
@@ -1,6 +1,6 @@
1
1
  # n8n-nodes-test-node
2
2
 
3
- Auto-generated n8n community node for the **HarToOpenApi** API (spec version 1.0.0), built from its OpenAPI document.
3
+ Auto-generated n8n community node for the **IPstack API** API (spec version 1.0.0), built from its OpenAPI document.
4
4
 
5
5
  ## Install
6
6
 
@@ -14,9 +14,9 @@ npm install n8n-nodes-test-node
14
14
 
15
15
  ## What was generated
16
16
 
17
- - 3 resource(s), 3 operation(s).
18
- - Credential type **harToOpenApiApi**, with an editable **Base URL** field (the spec declared no security requirements, so this credential only holds the Base URL).
19
- - Default Base URL: `https://app-analytics-services.com` (override it in the credential's "Base URL" field to point at a different environment)
17
+ - 2 resource(s), 2 operation(s).
18
+ - Credential type **iPstackAPIApi**, with an editable **Base URL** field (the spec declared no security requirements, so this credential only holds the Base URL).
19
+ - Default Base URL: `https://api.ipstack.com` (override it in the credential's "Base URL" field to point at a different environment)
20
20
 
21
21
  ## Limitations
22
22
 
@@ -0,0 +1,7 @@
1
+ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class IPstackAPIApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPstackAPIApi = void 0;
4
+ class IPstackAPIApi {
5
+ constructor() {
6
+ this.name = 'iPstackAPIApi';
7
+ this.displayName = 'IPstack API';
8
+ this.documentationUrl = '';
9
+ this.properties = [
10
+ {
11
+ displayName: 'Base URL',
12
+ name: 'baseUrl',
13
+ type: 'string',
14
+ default: 'https://api.ipstack.com',
15
+ required: true,
16
+ description: 'Base URL every request is sent to. Change this to point the node at a different environment (staging, self-hosted, etc.).',
17
+ },
18
+ ];
19
+ /* No safe zero-parameter GET endpoint (e.g. a health/status/version route)
20
+ was found in the spec to test against, so no "test" block is defined here --
21
+ the credential still works for real requests, it just won't show a "Test"
22
+ button in n8n's credential UI. */
23
+ }
24
+ }
25
+ exports.IPstackAPIApi = IPstackAPIApi;
@@ -0,0 +1,4 @@
1
+ import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class IPstackAPINode implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,339 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPstackAPINode = void 0;
4
+ class IPstackAPINode {
5
+ constructor() {
6
+ this.description = {
7
+ displayName: 'IPstack API',
8
+ name: 'iPstackAPI',
9
+ icon: 'file:icon.png',
10
+ group: ['transform'],
11
+ version: 1,
12
+ subtitle: '={{$parameter["operation"] + ($parameter["resource"] ? " " + $parameter["resource"] : "")}}',
13
+ description: 'IPstack offers a powerful, real-time IP to geolocation API capable of looking up accurate location data and assessing security threats originating from risky IP addresses. Results are delivered within milliseconds in JSON or XML format.',
14
+ defaults: {
15
+ name: 'IPstack API',
16
+ },
17
+ inputs: ['main'],
18
+ outputs: ['main'],
19
+ credentials: [
20
+ {
21
+ name: 'iPstackAPIApi',
22
+ required: true,
23
+ },
24
+ ],
25
+ requestDefaults: {
26
+ baseURL: '={{$credentials.baseUrl}}',
27
+ headers: {
28
+ Accept: 'application/json',
29
+ },
30
+ },
31
+ properties: [
32
+ {
33
+ displayName: 'Resource',
34
+ name: 'resource',
35
+ type: 'options',
36
+ noDataExpression: true,
37
+ options: [
38
+ { name: 'Check', value: 'check' },
39
+ { name: 'Ip Addresses', value: 'ipAddresses' },
40
+ ],
41
+ default: 'check',
42
+ },
43
+ {
44
+ displayName: 'Operation',
45
+ name: 'operation',
46
+ type: 'options',
47
+ noDataExpression: true,
48
+ options: [
49
+ {
50
+ name: 'Requester IP Lookup',
51
+ value: 'lookupRequesterIp',
52
+ action: 'Requester IP Lookup',
53
+ description: "The IPstack API also offers a separate API endpoint capable of detecting the IP address which the current API request is coming from. In order to use this endpoint, simply append `check` to the API's base URL and specify your preferred optional parameters.",
54
+ routing: {
55
+ request: {
56
+ method: 'GET',
57
+ url: '=/check',
58
+ },
59
+ },
60
+ },
61
+ ],
62
+ displayOptions: {
63
+ show: {
64
+ resource: ['check'],
65
+ },
66
+ },
67
+ default: 'lookupRequesterIp',
68
+ },
69
+ {
70
+ displayName: 'Operation',
71
+ name: 'operation',
72
+ type: 'options',
73
+ noDataExpression: true,
74
+ options: [
75
+ {
76
+ name: 'Standard Bulk Lookup',
77
+ value: 'bulkLookup',
78
+ action: 'Standard / Bulk Lookup',
79
+ description: "Look up a single IPv4/IPv6 address, or several at once by appending a comma-separated list (up to 50) of IP addresses to the API's base URL. A single address returns one result object; multiple addresses return an array of result objects.",
80
+ routing: {
81
+ request: {
82
+ method: 'GET',
83
+ url: '=/{{$parameter["ipAddresses"]}}',
84
+ },
85
+ },
86
+ },
87
+ ],
88
+ displayOptions: {
89
+ show: {
90
+ resource: ['ipAddresses'],
91
+ },
92
+ },
93
+ default: 'bulkLookup',
94
+ },
95
+ {
96
+ displayName: 'Access Key',
97
+ name: 'accessKey',
98
+ type: 'string',
99
+ default: '',
100
+ required: true,
101
+ description: 'Your unique API access key used to authenticate requests.',
102
+ displayOptions: {
103
+ show: {
104
+ resource: ['check'],
105
+ operation: ['lookupRequesterIp'],
106
+ },
107
+ },
108
+ routing: {
109
+ send: {
110
+ type: 'query',
111
+ property: 'access_key',
112
+ },
113
+ },
114
+ },
115
+ {
116
+ displayName: 'Additional Fields',
117
+ name: 'additionalFields',
118
+ type: 'collection',
119
+ placeholder: 'Add Field',
120
+ default: {},
121
+ displayOptions: {
122
+ show: {
123
+ resource: ['check'],
124
+ operation: ['lookupRequesterIp'],
125
+ },
126
+ },
127
+ options: [
128
+ {
129
+ displayName: 'Fields',
130
+ name: 'fields',
131
+ type: 'string',
132
+ default: '',
133
+ description: 'Specify which response fields to return (e.g. `country_code`, `main`) to reduce bandwidth and speed up responses.',
134
+ routing: {
135
+ send: {
136
+ type: 'query',
137
+ property: 'fields',
138
+ },
139
+ },
140
+ },
141
+ {
142
+ displayName: 'Hostname',
143
+ name: 'hostname',
144
+ type: 'number',
145
+ default: 0,
146
+ description: 'Set to `1` to enable Hostname Lookup.',
147
+ routing: {
148
+ send: {
149
+ type: 'query',
150
+ property: 'hostname',
151
+ },
152
+ },
153
+ },
154
+ {
155
+ displayName: 'Security',
156
+ name: 'security',
157
+ type: 'number',
158
+ default: 0,
159
+ description: 'Enable advanced security insights like proxy, crawler, Tor detection, threat levels, and anonymizer status.',
160
+ routing: {
161
+ send: {
162
+ type: 'query',
163
+ property: 'security',
164
+ },
165
+ },
166
+ },
167
+ {
168
+ displayName: 'Language',
169
+ name: 'language',
170
+ type: 'string',
171
+ default: '',
172
+ description: 'Return response data in a specific language using a 2-letter language code.',
173
+ routing: {
174
+ send: {
175
+ type: 'query',
176
+ property: 'language',
177
+ },
178
+ },
179
+ },
180
+ {
181
+ displayName: 'Callback',
182
+ name: 'callback',
183
+ type: 'string',
184
+ default: '',
185
+ description: 'Wrap the JSON response inside a JavaScript function for JSONP support.',
186
+ routing: {
187
+ send: {
188
+ type: 'query',
189
+ property: 'callback',
190
+ },
191
+ },
192
+ },
193
+ {
194
+ displayName: 'Output',
195
+ name: 'output',
196
+ type: 'string',
197
+ default: '',
198
+ description: 'Set to `json` or `xml` to choose between output formats.',
199
+ routing: {
200
+ send: {
201
+ type: 'query',
202
+ property: 'output',
203
+ },
204
+ },
205
+ },
206
+ ],
207
+ },
208
+ {
209
+ displayName: 'Ip Addresses',
210
+ name: 'ipAddresses',
211
+ type: 'string',
212
+ default: '',
213
+ required: true,
214
+ description: '',
215
+ displayOptions: {
216
+ show: {
217
+ resource: ['ipAddresses'],
218
+ operation: ['bulkLookup'],
219
+ },
220
+ },
221
+ },
222
+ {
223
+ displayName: 'Access Key',
224
+ name: 'accessKey',
225
+ type: 'string',
226
+ default: '',
227
+ required: true,
228
+ description: 'Your unique API access key used to authenticate requests.',
229
+ displayOptions: {
230
+ show: {
231
+ resource: ['ipAddresses'],
232
+ operation: ['bulkLookup'],
233
+ },
234
+ },
235
+ routing: {
236
+ send: {
237
+ type: 'query',
238
+ property: 'access_key',
239
+ },
240
+ },
241
+ },
242
+ {
243
+ displayName: 'Additional Fields',
244
+ name: 'additionalFields',
245
+ type: 'collection',
246
+ placeholder: 'Add Field',
247
+ default: {},
248
+ displayOptions: {
249
+ show: {
250
+ resource: ['ipAddresses'],
251
+ operation: ['bulkLookup'],
252
+ },
253
+ },
254
+ options: [
255
+ {
256
+ displayName: 'Fields',
257
+ name: 'fields',
258
+ type: 'string',
259
+ default: '',
260
+ description: 'Specify which response fields to return (e.g. `country_code`, `main`) to reduce bandwidth and speed up responses.',
261
+ routing: {
262
+ send: {
263
+ type: 'query',
264
+ property: 'fields',
265
+ },
266
+ },
267
+ },
268
+ {
269
+ displayName: 'Hostname',
270
+ name: 'hostname',
271
+ type: 'number',
272
+ default: 0,
273
+ description: 'Set to `1` to enable Hostname Lookup.',
274
+ routing: {
275
+ send: {
276
+ type: 'query',
277
+ property: 'hostname',
278
+ },
279
+ },
280
+ },
281
+ {
282
+ displayName: 'Security',
283
+ name: 'security',
284
+ type: 'number',
285
+ default: 0,
286
+ description: 'Enable advanced security insights like proxy, crawler, Tor detection, threat levels, and anonymizer status.',
287
+ routing: {
288
+ send: {
289
+ type: 'query',
290
+ property: 'security',
291
+ },
292
+ },
293
+ },
294
+ {
295
+ displayName: 'Language',
296
+ name: 'language',
297
+ type: 'string',
298
+ default: '',
299
+ description: 'Return response data in a specific language using a 2-letter language code.',
300
+ routing: {
301
+ send: {
302
+ type: 'query',
303
+ property: 'language',
304
+ },
305
+ },
306
+ },
307
+ {
308
+ displayName: 'Callback',
309
+ name: 'callback',
310
+ type: 'string',
311
+ default: '',
312
+ description: 'Wrap the JSON response inside a JavaScript function for JSONP support.',
313
+ routing: {
314
+ send: {
315
+ type: 'query',
316
+ property: 'callback',
317
+ },
318
+ },
319
+ },
320
+ {
321
+ displayName: 'Output',
322
+ name: 'output',
323
+ type: 'string',
324
+ default: '',
325
+ description: 'Set to `json` or `xml` to choose between output formats.',
326
+ routing: {
327
+ send: {
328
+ type: 'query',
329
+ property: 'output',
330
+ },
331
+ },
332
+ },
333
+ ],
334
+ },
335
+ ],
336
+ };
337
+ }
338
+ }
339
+ exports.IPstackAPINode = IPstackAPINode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "n8n-nodes-test-node",
3
- "version": "1.0.5",
4
- "description": "OpenAPI spec generated from HAR data for app-analytics-services.com on 2026-09-22T00:41:19.746Z",
3
+ "version": "1.0.6",
4
+ "description": "IPstack offers a powerful, real-time IP to geolocation API capable of looking up accurate location data and assessing security threats originating from risky IP addresses. Results are delivered within milliseconds in JSON or XML format.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"
7
7
  ],
@@ -16,10 +16,10 @@
16
16
  "n8n": {
17
17
  "n8nNodesApiVersion": 1,
18
18
  "credentials": [
19
- "dist/HarToOpenApiApi.credentials.js"
19
+ "dist/IPstackAPIApi.credentials.js"
20
20
  ],
21
21
  "nodes": [
22
- "dist/HarToOpenApiNode.node.js"
22
+ "dist/IPstackAPINode.node.js"
23
23
  ]
24
24
  },
25
25
  "devDependencies": {