n8n-nodes-test-node 1.0.4 → 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 +4 -4
- package/dist/HarToOpenApiApi.credentials.d.ts +8 -0
- package/dist/HarToOpenApiApi.credentials.js +28 -0
- package/dist/{RemoteChromiumCDPAutomationAPINode.node.d.ts → HarToOpenApiNode.node.d.ts} +1 -1
- package/dist/HarToOpenApiNode.node.js +266 -0
- package/dist/IPstackAPIApi.credentials.d.ts +7 -0
- package/dist/IPstackAPIApi.credentials.js +25 -0
- package/dist/IPstackAPINode.node.d.ts +4 -0
- package/dist/IPstackAPINode.node.js +339 -0
- package/package.json +4 -4
- package/dist/RemoteChromiumCDPAutomationAPIApi.credentials.d.ts +0 -9
- package/dist/RemoteChromiumCDPAutomationAPIApi.credentials.js +0 -45
- package/dist/RemoteChromiumCDPAutomationAPINode.node.js +0 -3718
|
@@ -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.
|
|
4
|
-
"description": "
|
|
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/
|
|
19
|
+
"dist/IPstackAPIApi.credentials.js"
|
|
20
20
|
],
|
|
21
21
|
"nodes": [
|
|
22
|
-
"dist/
|
|
22
|
+
"dist/IPstackAPINode.node.js"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare class RemoteChromiumCDPAutomationAPIApi implements ICredentialType {
|
|
3
|
-
name: string;
|
|
4
|
-
displayName: string;
|
|
5
|
-
documentationUrl: string;
|
|
6
|
-
properties: INodeProperties[];
|
|
7
|
-
authenticate: IAuthenticateGeneric;
|
|
8
|
-
test: ICredentialTestRequest;
|
|
9
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RemoteChromiumCDPAutomationAPIApi = void 0;
|
|
4
|
-
class RemoteChromiumCDPAutomationAPIApi {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.name = 'remoteChromiumCDPAutomationAPIApi';
|
|
7
|
-
this.displayName = 'Remote Chromium CDP Automation API';
|
|
8
|
-
this.documentationUrl = '';
|
|
9
|
-
this.properties = [
|
|
10
|
-
{
|
|
11
|
-
displayName: 'Base URL',
|
|
12
|
-
name: 'baseUrl',
|
|
13
|
-
type: 'string',
|
|
14
|
-
default: 'https://api.example.com/v1',
|
|
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
|
-
displayName: 'X-API-Key (API Key)',
|
|
20
|
-
name: 'xAPIKey',
|
|
21
|
-
type: 'string',
|
|
22
|
-
typeOptions: { password: true },
|
|
23
|
-
default: '',
|
|
24
|
-
required: true,
|
|
25
|
-
description: 'Sent as the "X-API-Key" header on every request.',
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
this.authenticate = {
|
|
29
|
-
type: 'generic',
|
|
30
|
-
properties: {
|
|
31
|
-
headers: {
|
|
32
|
-
'X-API-Key': '={{$credentials.xAPIKey}}',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
this.test = {
|
|
37
|
-
request: {
|
|
38
|
-
baseURL: '={{$credentials.baseUrl}}',
|
|
39
|
-
url: '/health',
|
|
40
|
-
method: 'GET',
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.RemoteChromiumCDPAutomationAPIApi = RemoteChromiumCDPAutomationAPIApi;
|