n8n-nodes-base 1.74.0 → 1.74.2
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/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/Postgres.credentials.js +7 -0
- package/dist/credentials/Postgres.credentials.js.map +1 -1
- package/dist/nodes/Postgres/PostgresTrigger.functions.js +1 -1
- package/dist/nodes/Postgres/PostgresTrigger.functions.js.map +1 -1
- package/dist/nodes/Postgres/{v2/transport → transport}/index.d.ts +1 -1
- package/dist/nodes/Postgres/{v2/transport → transport}/index.js +6 -4
- package/dist/nodes/Postgres/transport/index.js.map +1 -0
- package/dist/nodes/Postgres/v1/PostgresV1.node.js +14 -49
- package/dist/nodes/Postgres/v1/PostgresV1.node.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/router.js +1 -1
- package/dist/nodes/Postgres/v2/actions/router.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/interfaces.d.ts +2 -0
- package/dist/nodes/Postgres/v2/methods/credentialTest.js +6 -7
- package/dist/nodes/Postgres/v2/methods/credentialTest.js.map +1 -1
- package/dist/nodes/Postgres/v2/methods/listSearch.js +1 -1
- package/dist/nodes/Postgres/v2/methods/listSearch.js.map +1 -1
- package/dist/nodes/Postgres/v2/methods/loadOptions.js +1 -1
- package/dist/nodes/Postgres/v2/methods/loadOptions.js.map +1 -1
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js +1 -1
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js.map +1 -1
- package/dist/types/credentials.json +1 -1
- package/dist/types/nodes.json +2 -2
- package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +3 -2
- package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
- package/package.json +4 -4
- package/dist/nodes/Postgres/v2/transport/index.js.map +0 -1
|
@@ -35,6 +35,13 @@ class Postgres {
|
|
|
35
35
|
},
|
|
36
36
|
default: '',
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Maximum Number of Connections',
|
|
40
|
+
name: 'maxConnections',
|
|
41
|
+
type: 'number',
|
|
42
|
+
default: 100,
|
|
43
|
+
description: 'Make sure this value times the number of workers you have is lower than the maximum number of connections your postgres instance allows.',
|
|
44
|
+
},
|
|
38
45
|
{
|
|
39
46
|
displayName: 'Ignore SSL Issues (Insecure)',
|
|
40
47
|
name: 'allowUnauthorizedCerts',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Postgres.credentials.js","sourceRoot":"","sources":["../../credentials/Postgres.credentials.ts"],"names":[],"mappings":";;;AAEA,sEAAkE;AAElE,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,UAAU,CAAC;QAEzB,qBAAgB,GAAG,UAAU,CAAC;QAE9B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,WAAW;aACpB;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,UAAU;aACnB;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,UAAU;aACnB;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,8BAA8B;gBAC3C,IAAI,EAAE,wBAAwB;gBAC9B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,uEAAuE;aACpF;YACD;gBACC,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;gBACf,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,sBAAsB,EAAE,CAAC,KAAK,CAAC;qBAC/B;iBACD;gBACD,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACd;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;iBACD;gBACD,OAAO,EAAE,SAAS;aAClB;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,IAAI;aACb;YACD,GAAG,0CAAmB;SACtB,CAAC;IACH,CAAC;CAAA;
|
|
1
|
+
{"version":3,"file":"Postgres.credentials.js","sourceRoot":"","sources":["../../credentials/Postgres.credentials.ts"],"names":[],"mappings":";;;AAEA,sEAAkE;AAElE,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,UAAU,CAAC;QAEzB,qBAAgB,GAAG,UAAU,CAAC;QAE9B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,WAAW;aACpB;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,UAAU;aACnB;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,UAAU;aACnB;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,GAAG;gBACZ,WAAW,EACV,0IAA0I;aAC3I;YACD;gBACC,WAAW,EAAE,8BAA8B;gBAC3C,IAAI,EAAE,wBAAwB;gBAC9B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,uEAAuE;aACpF;YACD;gBACC,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;gBACf,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,sBAAsB,EAAE,CAAC,KAAK,CAAC;qBAC/B;iBACD;gBACD,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACd;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;iBACD;gBACD,OAAO,EAAE,SAAS;aAClB;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,IAAI;aACb;YACD,GAAG,0CAAmB;SACtB,CAAC;IACH,CAAC;CAAA;AAnFD,4BAmFC"}
|
|
@@ -6,7 +6,7 @@ exports.initDB = initDB;
|
|
|
6
6
|
exports.searchSchema = searchSchema;
|
|
7
7
|
exports.searchTables = searchTables;
|
|
8
8
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
9
|
-
const transport_1 = require("./
|
|
9
|
+
const transport_1 = require("./transport");
|
|
10
10
|
function prepareNames(id, mode, additionalFields) {
|
|
11
11
|
let suffix = id.replace(/-/g, '_');
|
|
12
12
|
if (mode === 'manual') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostgresTrigger.functions.js","sourceRoot":"","sources":["../../../nodes/Postgres/PostgresTrigger.functions.ts"],"names":[],"mappings":";;AAYA,oCAsBC;AAED,8CAkDC;AAED,wBAOC;AAED,oCAQC;AAED,oCAiBC;AA5HD,+CAAgD;
|
|
1
|
+
{"version":3,"file":"PostgresTrigger.functions.js","sourceRoot":"","sources":["../../../nodes/Postgres/PostgresTrigger.functions.ts"],"names":[],"mappings":";;AAYA,oCAsBC;AAED,8CAkDC;AAED,wBAOC;AAED,oCAQC;AAED,oCAiBC;AA5HD,+CAAgD;AAShD,2CAAgD;AAGhD,SAAgB,YAAY,CAAC,EAAU,EAAE,IAAY,EAAE,gBAA6B;IACnF,IAAI,MAAM,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAEnC,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QACvB,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC;IAC7B,CAAC;IAED,IAAI,YAAY,GACd,gBAAgB,CAAC,YAAuB,IAAI,wBAAwB,MAAM,IAAI,CAAC;IAEjF,IAAI,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QACjE,YAAY,GAAG,GAAG,YAAY,IAAI,CAAC;IACpC,CAAC;IAED,MAAM,WAAW,GAAI,gBAAgB,CAAC,WAAsB,IAAI,eAAe,MAAM,EAAE,CAAC;IACxF,MAAM,WAAW,GAAI,gBAAgB,CAAC,WAAsB,IAAI,eAAe,MAAM,EAAE,CAAC;IAExF,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,+BAAgB,CAAC,yCAAyC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AACnD,CAAC;AAEM,KAA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CAAC;AACpB,CAAC;AAEM,KAAK,UAAU,YAAY;IACjC,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAgB,CAAC;IACjE,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,IAAI,CAAC;QACJ,SAAS,GAAG,MAAM,EAAE,CAAC,GAAG,CACvB,0EAA0E,EAC1E,CAAC,MAAM,CAAC,KAAK,CAAC,CACd,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,+BAAgB,CAAC,KAAe,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,OAAO,GAA4B,SAA2B,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAChF,IAAI,EAAE,CAAC,CAAC,UAAoB;QAC5B,KAAK,EAAE,CAAC,CAAC,UAAoB;KAC7B,CAAC,CAAC,CAAC;IACJ,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { IExecuteFunctions, ICredentialTestFunctions, ILoadOptionsFunctions, ITriggerFunctions } from 'n8n-workflow';
|
|
2
|
-
import type { ConnectionsData, PostgresNodeCredentials, PostgresNodeOptions } from '../helpers/interfaces';
|
|
2
|
+
import type { ConnectionsData, PostgresNodeCredentials, PostgresNodeOptions } from '../v2/helpers/interfaces';
|
|
3
3
|
export declare function configurePostgres(this: IExecuteFunctions | ICredentialTestFunctions | ILoadOptionsFunctions | ITriggerFunctions, credentials: PostgresNodeCredentials, options?: PostgresNodeOptions): Promise<ConnectionsData>;
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.configurePostgres = configurePostgres;
|
|
7
7
|
const node_net_1 = require("node:net");
|
|
8
8
|
const pg_promise_1 = __importDefault(require("pg-promise"));
|
|
9
|
-
const connection_pool_manager_1 = require("
|
|
10
|
-
const constants_1 = require("
|
|
11
|
-
const utilities_1 = require("
|
|
9
|
+
const connection_pool_manager_1 = require("../../../utils/connection-pool-manager");
|
|
10
|
+
const constants_1 = require("../../../utils/constants");
|
|
11
|
+
const utilities_1 = require("../../../utils/utilities");
|
|
12
12
|
const getPostgresConfig = (credentials, options = {}) => {
|
|
13
13
|
const dbConfig = {
|
|
14
14
|
host: credentials.host,
|
|
@@ -17,6 +17,7 @@ const getPostgresConfig = (credentials, options = {}) => {
|
|
|
17
17
|
user: credentials.user,
|
|
18
18
|
password: credentials.password,
|
|
19
19
|
keepAlive: true,
|
|
20
|
+
max: credentials.maxConnections,
|
|
20
21
|
};
|
|
21
22
|
if (options.connectionTimeout) {
|
|
22
23
|
dbConfig.connectionTimeoutMillis = options.connectionTimeout * 1000;
|
|
@@ -141,7 +142,8 @@ async function configurePostgres(credentials, options = {}) {
|
|
|
141
142
|
nodeVersion: options.nodeVersion,
|
|
142
143
|
fallBackHandler,
|
|
143
144
|
cleanUpHandler: async ({ db }) => {
|
|
144
|
-
|
|
145
|
+
if (!db.$pool.ended)
|
|
146
|
+
await db.$pool.end();
|
|
145
147
|
},
|
|
146
148
|
});
|
|
147
149
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Postgres/transport/index.ts"],"names":[],"mappings":";;;;;AAuDA,8CAwIC;AAzLD,uCAA0D;AAC1D,4DAAmC;AAEnC,4EAAuE;AACvE,gDAA6C;AAC7C,gDAAoD;AASpD,MAAM,iBAAiB,GAAG,CACzB,WAAoC,EACpC,UAA+B,EAAE,EAChC,EAAE;IACH,MAAM,QAAQ,GAA4B;QACzC,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,QAAQ,EAAE,WAAW,CAAC,QAAQ;QAC9B,IAAI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CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;oBACzD,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;gBACf,CAAC;gBAED,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;gBACtB,GAAG,CAAC,WAAW,GAAG,WAAW,CAAC;gBAC9B,MAAM,GAAG,CAAC;YACX,CAAC,CAAC,CAAC;YAEH,MAAM,EAAE,GAAG,GAAG,CAAC;gBACd,GAAG,QAAQ;gBACX,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,qBAAS;aACf,CAAC,CAAC;YACH,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC;QACpB,CAAC;IACF,CAAC,CAAC;IAEF,OAAO,MAAM,WAAW,CAAC,aAAa,CAAC;QACtC,WAAW;QACX,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,OAAO,CAAC,WAAgC;QACrD,eAAe;QACf,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;YAChC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK;gBAAE,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QAC3C,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.PostgresV1 = void 0;
|
|
7
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
-
const pg_promise_1 = __importDefault(require("pg-promise"));
|
|
9
5
|
const descriptions_1 = require("../../../utils/descriptions");
|
|
10
6
|
const genericFunctions_1 = require("./genericFunctions");
|
|
7
|
+
const transport_1 = require("../transport");
|
|
11
8
|
const versionDescription = {
|
|
12
9
|
displayName: 'Postgres',
|
|
13
10
|
name: 'postgres',
|
|
@@ -250,26 +247,10 @@ class PostgresV1 {
|
|
|
250
247
|
credentialTest: {
|
|
251
248
|
async postgresConnectionTest(credential) {
|
|
252
249
|
const credentials = credential.data;
|
|
250
|
+
let connection;
|
|
253
251
|
try {
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
host: credentials.host,
|
|
257
|
-
port: credentials.port,
|
|
258
|
-
database: credentials.database,
|
|
259
|
-
user: credentials.user,
|
|
260
|
-
password: credentials.password,
|
|
261
|
-
};
|
|
262
|
-
if (credentials.allowUnauthorizedCerts === true) {
|
|
263
|
-
config.ssl = {
|
|
264
|
-
rejectUnauthorized: false,
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
config.ssl = !['disable', undefined].includes(credentials.ssl);
|
|
269
|
-
config.sslmode = credentials.ssl || 'disable';
|
|
270
|
-
}
|
|
271
|
-
const db = pgp(config);
|
|
272
|
-
await db.connect();
|
|
252
|
+
const { db } = await transport_1.configurePostgres.call(this, credentials, {});
|
|
253
|
+
connection = await db.connect();
|
|
273
254
|
}
|
|
274
255
|
catch (error) {
|
|
275
256
|
return {
|
|
@@ -277,6 +258,11 @@ class PostgresV1 {
|
|
|
277
258
|
message: error.message,
|
|
278
259
|
};
|
|
279
260
|
}
|
|
261
|
+
finally {
|
|
262
|
+
if (connection) {
|
|
263
|
+
await connection.done();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
280
266
|
return {
|
|
281
267
|
status: 'OK',
|
|
282
268
|
message: 'Connection successful!',
|
|
@@ -292,32 +278,11 @@ class PostgresV1 {
|
|
|
292
278
|
async execute() {
|
|
293
279
|
const credentials = await this.getCredentials('postgres');
|
|
294
280
|
const largeNumbersOutput = this.getNodeParameter('additionalFields.largeNumbersOutput', 0, '');
|
|
295
|
-
const pgp = (
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
pgp.pg.types.setTypeParser(1700, (value) => {
|
|
301
|
-
return parseFloat(value);
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
const config = {
|
|
305
|
-
host: credentials.host,
|
|
306
|
-
port: credentials.port,
|
|
307
|
-
database: credentials.database,
|
|
308
|
-
user: credentials.user,
|
|
309
|
-
password: credentials.password,
|
|
310
|
-
};
|
|
311
|
-
if (credentials.allowUnauthorizedCerts === true) {
|
|
312
|
-
config.ssl = {
|
|
313
|
-
rejectUnauthorized: false,
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
config.ssl = !['disable', undefined].includes(credentials.ssl);
|
|
318
|
-
config.sslmode = credentials.ssl || 'disable';
|
|
319
|
-
}
|
|
320
|
-
const db = pgp(config);
|
|
281
|
+
const { db, pgp } = await transport_1.configurePostgres.call(this, credentials, {
|
|
282
|
+
largeNumbersOutput: largeNumbersOutput === 'numbers' || largeNumbersOutput === 'text'
|
|
283
|
+
? largeNumbersOutput
|
|
284
|
+
: undefined,
|
|
285
|
+
});
|
|
321
286
|
let returnItems = [];
|
|
322
287
|
const items = this.getInputData();
|
|
323
288
|
const operation = this.getNodeParameter('operation', 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostgresV1.node.js","sourceRoot":"","sources":["../../../../nodes/Postgres/v1/PostgresV1.node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PostgresV1.node.js","sourceRoot":"","sources":["../../../../nodes/Postgres/v1/PostgresV1.node.ts"],"names":[],"mappings":";;;AAUA,+CAAsE;AAEtE,sDAAuD;AAEvD,yDAA+E;AAC/E,4CAAiD;AAGjD,MAAM,kBAAkB,GAAyB;IAChD,WAAW,EAAE,UAAU;IACvB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EAAE;QACT,IAAI,EAAE,UAAU;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,MAAM,IAAA,2BAAQ,EACjC,IAAI,CAAC,gBAAgB,EACrB,GAAG,EACH,EAAE,EACF,KAAK,EACL,IAAI,CAAC,cAAc,EAAE,CACrB,CAAC;YAEF,WAAW,GAAG,IAAA,2BAAQ,EAAC,WAAW,CAAC,CAAC;QACrC,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,kBAAkB,SAAS,qBAAqB,CAChD,CAAC;QACH,CAAC;QAED,OAAO,CAAC,WAAW,CAAC,CAAC;IACtB,CAAC;CACD;AAzGD,gCAyGC"}
|
|
@@ -36,8 +36,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.router = router;
|
|
37
37
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
38
38
|
const database = __importStar(require("./database/Database.resource"));
|
|
39
|
+
const transport_1 = require("../../transport");
|
|
39
40
|
const utils_1 = require("../helpers/utils");
|
|
40
|
-
const transport_1 = require("../transport");
|
|
41
41
|
async function router() {
|
|
42
42
|
let returnData = [];
|
|
43
43
|
const items = this.getInputData();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/actions/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBA2DC;AAnED,+CAAuE;AAEvE,uEAAyD;
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/actions/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBA2DC;AAnED,+CAAuE;AAEvE,uEAAyD;AAEzD,+CAAoD;AAEpD,4CAAwD;AAEjD,KAAK,UAAU,MAAM;IAC3B,IAAI,UAAU,GAAyB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAClC,MAAM,QAAQ,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IAAI,CAAC,WAAW,EAAE,CAAC;QACrE,OAAO,IAAI,kCAAmB,CAC7B,CAAC,UAAU,CAAC,EACZ;YACC;gBACC,OAAO,EAAE,iBAAiB,KAAK,CAAC,MAAM,8GAA8G;gBACpJ,QAAQ,EAAE,YAAY;aACtB;SACD,CACD,CAAC;IACH,CAAC;IAED,OAAO,CAAC,UAAU,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -35,6 +35,7 @@ export type EnumInfo = {
|
|
|
35
35
|
export type PgpClient = pgPromise.IMain<{}, pg.IClient>;
|
|
36
36
|
export type PgpDatabase = pgPromise.IDatabase<{}, pg.IClient>;
|
|
37
37
|
export type PgpConnectionParameters = pg.IConnectionParameters<pg.IClient>;
|
|
38
|
+
export type PgpConnection = pgPromise.IConnected<{}, pg.IClient>;
|
|
38
39
|
export type ConnectionsData = {
|
|
39
40
|
db: PgpDatabase;
|
|
40
41
|
pgp: PgpClient;
|
|
@@ -60,6 +61,7 @@ export type PostgresNodeCredentials = {
|
|
|
60
61
|
database: string;
|
|
61
62
|
user: string;
|
|
62
63
|
password: string;
|
|
64
|
+
maxConnections: number;
|
|
63
65
|
allowUnauthorizedCerts?: boolean;
|
|
64
66
|
ssl?: 'disable' | 'allow' | 'require' | 'verify' | 'verify-full';
|
|
65
67
|
} & ({
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.postgresConnectionTest = postgresConnectionTest;
|
|
4
|
-
const transport_1 = require("
|
|
4
|
+
const transport_1 = require("../../transport");
|
|
5
5
|
async function postgresConnectionTest(credential) {
|
|
6
6
|
const credentials = credential.data;
|
|
7
|
-
let
|
|
7
|
+
let connection;
|
|
8
8
|
try {
|
|
9
|
-
const { db
|
|
10
|
-
|
|
11
|
-
await db.connect();
|
|
9
|
+
const { db } = await transport_1.configurePostgres.call(this, credentials, {});
|
|
10
|
+
connection = await db.connect();
|
|
12
11
|
}
|
|
13
12
|
catch (error) {
|
|
14
13
|
let message = error.message;
|
|
@@ -27,8 +26,8 @@ async function postgresConnectionTest(credential) {
|
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
28
|
finally {
|
|
30
|
-
if (
|
|
31
|
-
|
|
29
|
+
if (connection) {
|
|
30
|
+
await connection.done();
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialTest.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/credentialTest.ts"],"names":[],"mappings":";;AASA,
|
|
1
|
+
{"version":3,"file":"credentialTest.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/credentialTest.ts"],"names":[],"mappings":";;AASA,wDAwCC;AA3CD,+CAAoD;AAG7C,KAAK,UAAU,sBAAsB,CAE3C,UAAiC;IAEjC,MAAM,WAAW,GAAG,UAAU,CAAC,IAA+B,CAAC;IAE/D,IAAI,UAAqC,CAAC;IAE1C,IAAI,CAAC;QACJ,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;QAEnE,UAAU,GAAG,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,IAAI,OAAO,GAAG,KAAK,CAAC,OAAiB,CAAC;QAEtC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;YAC5C,OAAO,GAAG,oBAAoB,CAAC;QAChC,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YACzC,OAAO,GAAG,6CAA6C,CAAC;QACzD,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YACzC,OAAO,GAAG,sBAAsB,CAAC;QAClC,CAAC;QAED,OAAO;YACN,MAAM,EAAE,OAAO;YACf,OAAO;SACP,CAAC;IACH,CAAC;YAAS,CAAC;QACV,IAAI,UAAU,EAAE,CAAC;YAChB,MAAM,UAAU,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;IACF,CAAC;IACD,OAAO;QACN,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,wBAAwB;KACjC,CAAC;AACH,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schemaSearch = schemaSearch;
|
|
4
4
|
exports.tableSearch = tableSearch;
|
|
5
|
-
const transport_1 = require("
|
|
5
|
+
const transport_1 = require("../../transport");
|
|
6
6
|
async function schemaSearch() {
|
|
7
7
|
const credentials = await this.getCredentials('postgres');
|
|
8
8
|
const options = { nodeVersion: this.getNode().typeVersion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listSearch.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/listSearch.ts"],"names":[],"mappings":";;AAKA,oCAcC;AACD,kCAqBC;
|
|
1
|
+
{"version":3,"file":"listSearch.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/listSearch.ts"],"names":[],"mappings":";;AAKA,oCAcC;AACD,kCAqBC;AAvCD,+CAAoD;AAG7C,KAAK,UAAU,YAAY;IACjC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAA0B,UAAU,CAAC,CAAC;IACnF,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;IAE5D,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAExE,MAAM,QAAQ,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAC;IAErF,OAAO;QACN,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAClC,IAAI,EAAE,MAAM,CAAC,WAAqB;YAClC,KAAK,EAAE,MAAM,CAAC,WAAqB;SACnC,CAAC,CAAC;KACH,CAAC;AACH,CAAC;AACM,KAAK,UAAU,WAAW;IAChC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAA0B,UAAU,CAAC,CAAC;IACnF,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;IAE5D,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE;QACjD,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,QAAQ,GAAG,MAAM,EAAE,CAAC,GAAG,CAC5B,wEAAwE,EACxE,CAAC,MAAM,CAAC,CACR,CAAC;IAEF,OAAO;QACN,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACjC,IAAI,EAAE,KAAK,CAAC,UAAoB;YAChC,KAAK,EAAE,KAAK,CAAC,UAAoB;SACjC,CAAC,CAAC;KACH,CAAC;AACH,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getColumns = getColumns;
|
|
4
4
|
exports.getColumnsMultiOptions = getColumnsMultiOptions;
|
|
5
5
|
exports.getColumnsWithoutColumnToMatchOn = getColumnsWithoutColumnToMatchOn;
|
|
6
|
+
const transport_1 = require("../../transport");
|
|
6
7
|
const utils_1 = require("../helpers/utils");
|
|
7
|
-
const transport_1 = require("../transport");
|
|
8
8
|
async function getColumns() {
|
|
9
9
|
const credentials = await this.getCredentials('postgres');
|
|
10
10
|
const options = { nodeVersion: this.getNode().typeVersion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadOptions.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/loadOptions.ts"],"names":[],"mappings":";;AAMA,gCAqBC;AAED,wDAMC;AAED,4EAMC;
|
|
1
|
+
{"version":3,"file":"loadOptions.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/loadOptions.ts"],"names":[],"mappings":";;AAMA,gCAqBC;AAED,wDAMC;AAED,4EAMC;AAzCD,+CAAoD;AAEpD,4CAAkD;AAE3C,KAAK,UAAU,UAAU;IAC/B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAA0B,UAAU,CAAC,CAAC;IACnF,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;IAE5D,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,6BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE;QACjD,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE;QAC/C,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,OAAO,GAAG,MAAM,IAAA,sBAAc,EAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAExD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC/B,IAAI,EAAE,MAAM,CAAC,WAAW;QACxB,KAAK,EAAE,MAAM,CAAC,WAAW;QACzB,WAAW,EAAE,SAAS,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,eAAe,MAAM,CAAC,WAAW,EAAE;KACvF,CAAC,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,sBAAsB;IAG3C,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACxE,OAAO,CAAC,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC;AACnC,CAAC;AAEM,KAAK,UAAU,gCAAgC;IAGrD,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAW,CAAC;IAC3E,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,eAAe,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMappingColumns = getMappingColumns;
|
|
4
|
+
const transport_1 = require("../../transport");
|
|
4
5
|
const utils_1 = require("../helpers/utils");
|
|
5
|
-
const transport_1 = require("../transport");
|
|
6
6
|
const fieldTypeMapping = {
|
|
7
7
|
string: ['text', 'varchar', 'character varying', 'character', 'char'],
|
|
8
8
|
number: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceMapping.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/resourceMapping.ts"],"names":[],"mappings":";;AA8CA,8CA6CC;
|
|
1
|
+
{"version":3,"file":"resourceMapping.js","sourceRoot":"","sources":["../../../../../nodes/Postgres/v2/methods/resourceMapping.ts"],"names":[],"mappings":";;AA8CA,8CA6CC;AAzFD,+CAAoD;AAEpD,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WAAW,GAAG,GAAG,CAAC,YAAY,KAAK,QAAQ,IAAI,GAAG,CAAC,mBAAmB,KAAK,QAAQ,CAAC;QAC1F,MAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,KAAK,KAAK,CAAC;QAC3C,OAAO;YACN,EAAE,EAAE,GAAG,CAAC,WAAW;YACnB,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,QAAQ,EAAE,CAAC,QAAQ,IAAI,CAAC,UAAU,IAAI,CAAC,WAAW;YAClD,YAAY,EAAE,CAAC,GAAG,CAAC,WAAW,KAAK,IAAI,IAAI,gBAAgB,CAAC,IAAI,KAAK;YACrE,OAAO,EAAE,IAAI;YACb,IAAI;YACJ,gBAAgB;YAChB,OAAO;SACP,CAAC;IACH,CAAC,CAAC,CACF,CAAC;IACF,OAAO,EAAE,MAAM,EAAE,CAAC;AACnB,CAAC"}
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
{"name":"pipedriveApi","displayName":"Pipedrive API","documentationUrl":"pipedrive","properties":[{"displayName":"API Token","name":"apiToken","type":"string","typeOptions":{"password":true},"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"api_token":"={{$credentials.apiToken}}"}}},"supportedNodes":["pipedrive","pipedriveTrigger"],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Pipedrive/pipedrive.svg"},
|
|
251
251
|
{"name":"pipedriveOAuth2Api","extends":["oAuth2Api"],"displayName":"Pipedrive OAuth2 API","documentationUrl":"pipedrive","properties":[{"displayName":"Grant Type","name":"grantType","type":"hidden","default":"authorizationCode"},{"displayName":"Authorization URL","name":"authUrl","type":"hidden","default":"https://oauth.pipedrive.com/oauth/authorize","required":true},{"displayName":"Access Token URL","name":"accessTokenUrl","type":"hidden","default":"https://oauth.pipedrive.com/oauth/token","required":true},{"displayName":"Scope","name":"scope","type":"hidden","default":""},{"displayName":"Auth URI Query Parameters","name":"authQueryParameters","type":"hidden","default":""},{"displayName":"Authentication","name":"authentication","type":"hidden","default":"header"}],"supportedNodes":["pipedrive","pipedriveTrigger"],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Pipedrive/pipedrive.svg"},
|
|
252
252
|
{"name":"plivoApi","displayName":"Plivo API","documentationUrl":"plivo","properties":[{"displayName":"Auth ID","name":"authId","type":"string","default":""},{"displayName":"Auth Token","name":"authToken","type":"string","typeOptions":{"password":true},"default":""}],"supportedNodes":["plivo"],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Plivo/plivo.svg"},
|
|
253
|
-
{"name":"postgres","displayName":"Postgres","documentationUrl":"postgres","properties":[{"displayName":"Host","name":"host","type":"string","default":"localhost"},{"displayName":"Database","name":"database","type":"string","default":"postgres"},{"displayName":"User","name":"user","type":"string","default":"postgres"},{"displayName":"Password","name":"password","type":"string","typeOptions":{"password":true},"default":""},{"displayName":"Ignore SSL Issues (Insecure)","name":"allowUnauthorizedCerts","type":"boolean","default":false,"description":"Whether to connect even if SSL certificate validation is not possible"},{"displayName":"SSL","name":"ssl","type":"options","displayOptions":{"show":{"allowUnauthorizedCerts":[false]}},"options":[{"name":"Allow","value":"allow"},{"name":"Disable","value":"disable"},{"name":"Require","value":"require"}],"default":"disable"},{"displayName":"Port","name":"port","type":"number","default":5432},{"displayName":"SSH Tunnel","name":"sshTunnel","type":"boolean","default":false},{"displayName":"SSH Authenticate with","name":"sshAuthenticateWith","type":"options","default":"password","options":[{"name":"Password","value":"password"},{"name":"Private Key","value":"privateKey"}],"displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH Host","name":"sshHost","type":"string","default":"localhost","displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH Port","name":"sshPort","type":"number","default":22,"displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH User","name":"sshUser","type":"string","default":"root","displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH Password","name":"sshPassword","type":"string","typeOptions":{"password":true},"default":"","displayOptions":{"show":{"sshTunnel":[true],"sshAuthenticateWith":["password"]}}},{"displayName":"Private Key","name":"privateKey","type":"string","typeOptions":{"rows":4,"password":true},"default":"","displayOptions":{"show":{"sshTunnel":[true],"sshAuthenticateWith":["privateKey"]}}},{"displayName":"Passphrase","name":"passphrase","type":"string","default":"","description":"Passphrase used to create the key, if no passphrase was used leave empty","displayOptions":{"show":{"sshTunnel":[true],"sshAuthenticateWith":["privateKey"]}}}],"supportedNodes":["postgres","postgresTrigger"],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
|
|
253
|
+
{"name":"postgres","displayName":"Postgres","documentationUrl":"postgres","properties":[{"displayName":"Host","name":"host","type":"string","default":"localhost"},{"displayName":"Database","name":"database","type":"string","default":"postgres"},{"displayName":"User","name":"user","type":"string","default":"postgres"},{"displayName":"Password","name":"password","type":"string","typeOptions":{"password":true},"default":""},{"displayName":"Maximum Number of Connections","name":"maxConnections","type":"number","default":100,"description":"Make sure this value times the number of workers you have is lower than the maximum number of connections your postgres instance allows."},{"displayName":"Ignore SSL Issues (Insecure)","name":"allowUnauthorizedCerts","type":"boolean","default":false,"description":"Whether to connect even if SSL certificate validation is not possible"},{"displayName":"SSL","name":"ssl","type":"options","displayOptions":{"show":{"allowUnauthorizedCerts":[false]}},"options":[{"name":"Allow","value":"allow"},{"name":"Disable","value":"disable"},{"name":"Require","value":"require"}],"default":"disable"},{"displayName":"Port","name":"port","type":"number","default":5432},{"displayName":"SSH Tunnel","name":"sshTunnel","type":"boolean","default":false},{"displayName":"SSH Authenticate with","name":"sshAuthenticateWith","type":"options","default":"password","options":[{"name":"Password","value":"password"},{"name":"Private Key","value":"privateKey"}],"displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH Host","name":"sshHost","type":"string","default":"localhost","displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH Port","name":"sshPort","type":"number","default":22,"displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH User","name":"sshUser","type":"string","default":"root","displayOptions":{"show":{"sshTunnel":[true]}}},{"displayName":"SSH Password","name":"sshPassword","type":"string","typeOptions":{"password":true},"default":"","displayOptions":{"show":{"sshTunnel":[true],"sshAuthenticateWith":["password"]}}},{"displayName":"Private Key","name":"privateKey","type":"string","typeOptions":{"rows":4,"password":true},"default":"","displayOptions":{"show":{"sshTunnel":[true],"sshAuthenticateWith":["privateKey"]}}},{"displayName":"Passphrase","name":"passphrase","type":"string","default":"","description":"Passphrase used to create the key, if no passphrase was used leave empty","displayOptions":{"show":{"sshTunnel":[true],"sshAuthenticateWith":["privateKey"]}}}],"supportedNodes":["postgres","postgresTrigger"],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
|
|
254
254
|
{"name":"postHogApi","displayName":"PostHog API","documentationUrl":"postHog","properties":[{"displayName":"URL","name":"url","type":"string","default":"https://app.posthog.com"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"default":""}],"supportedNodes":["postHog"],"iconUrl":"icons/n8n-nodes-base/dist/nodes/PostHog/postHog.svg"},
|
|
255
255
|
{"name":"postmarkApi","displayName":"Postmark API","documentationUrl":"postmark","properties":[{"displayName":"Server API Token","name":"serverToken","type":"string","typeOptions":{"password":true},"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"X-Postmark-Server-Token":"={{$credentials.serverToken}}"}}},"test":{"request":{"baseURL":"https://api.postmarkapp.com","url":"/server","method":"GET"}},"supportedNodes":["postmarkTrigger"],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postmark/postmark.png"},
|
|
256
256
|
{"name":"profitWellApi","displayName":"ProfitWell API","documentationUrl":"profitWell","properties":[{"displayName":"API Token","name":"accessToken","type":"string","typeOptions":{"password":true},"default":"","description":"Your Private Token"}],"supportedNodes":["profitWell"],"iconUrl":{"light":"icons/n8n-nodes-base/dist/nodes/ProfitWell/profitwell.svg","dark":"icons/n8n-nodes-base/dist/nodes/ProfitWell/profitwell.dark.svg"}},
|