@activepieces/piece-connections 0.0.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/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@activepieces/piece-connections",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@sinclair/typebox": "0.24.51",
|
|
6
|
+
"axios": "1.2.4",
|
|
7
|
+
"cron-validator": "1.3.1",
|
|
8
|
+
"nanoid": "3.3.4"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"@activepieces/framework": "0.0.1",
|
|
12
|
+
"@activepieces/shared": "0.0.1",
|
|
13
|
+
"tslib": "2.4.1"
|
|
14
|
+
},
|
|
15
|
+
"main": "./src/index.js",
|
|
16
|
+
"types": "./src/index.d.ts"
|
|
17
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const connections: import("@activepieces/framework").Piece;
|
package/src/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.connections = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const framework_1 = require("@activepieces/framework");
|
|
6
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
|
+
const read_connection_1 = require("./lib/actions/read-connection");
|
|
8
|
+
exports.connections = (0, framework_1.createPiece)({
|
|
9
|
+
name: 'connections',
|
|
10
|
+
displayName: 'Connections',
|
|
11
|
+
logoUrl: 'https://cdn.activepieces.com/pieces/connections.png',
|
|
12
|
+
version: package_json_1.default.version,
|
|
13
|
+
authors: [
|
|
14
|
+
"abuaboud"
|
|
15
|
+
],
|
|
16
|
+
actions: [
|
|
17
|
+
read_connection_1.readConnection
|
|
18
|
+
],
|
|
19
|
+
triggers: [],
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/pieces/connections/src/index.ts"],"names":[],"mappings":";;;;AACA,uDAAsD;AACtD,2EAA0C;AAC1C,mEAA+D;AAElD,QAAA,WAAW,GAAG,IAAA,uBAAW,EAAC;IACrC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,qDAAqD;IAC9D,OAAO,EAAE,sBAAW,CAAC,OAAO;IAC5B,OAAO,EAAE;QACP,UAAU;KACX;IACD,OAAO,EAAE;QACP,gCAAc;KACf;IACD,QAAQ,EAAE,EACT;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const readConnection: import("@activepieces/framework").Action;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readConnection = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const framework_1 = require("@activepieces/framework");
|
|
6
|
+
exports.readConnection = (0, framework_1.createAction)({
|
|
7
|
+
name: 'read_connection',
|
|
8
|
+
displayName: 'Read Connection',
|
|
9
|
+
description: 'Fetch connection by name',
|
|
10
|
+
props: {
|
|
11
|
+
connection_name: framework_1.Property.ShortText({
|
|
12
|
+
displayName: 'Connection Name',
|
|
13
|
+
description: undefined,
|
|
14
|
+
required: true,
|
|
15
|
+
})
|
|
16
|
+
},
|
|
17
|
+
run(ctx) {
|
|
18
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
return yield ctx.connections.get(ctx.propsValue.connection_name);
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=read-connection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-connection.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/connections/src/lib/actions/read-connection.ts"],"names":[],"mappings":";;;;AAAA,uDAAiE;AAEpD,QAAA,cAAc,GAAG,IAAA,wBAAY,EAAC;IACzC,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACL,eAAe,EAAE,oBAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,GAAG;;YACX,OAAO,MAAM,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QACnE,CAAC;KAAA;CACF,CAAC,CAAC"}
|