@activepieces/piece-connections 0.3.0 → 0.3.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/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@activepieces/piece-connections",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "dependencies": {
5
- "@sinclair/typebox": "^0.26.3",
6
- "nanoid": "^3.3.4",
7
- "@activepieces/pieces-framework": "0.4.0",
8
- "@activepieces/shared": "0.4.0",
9
- "tslib": "1.14.1"
5
+ "@sinclair/typebox": "0.26.8",
6
+ "axios": "^1.6.3",
7
+ "dayjs": "1.11.9",
8
+ "is-base64": "1.1.0",
9
+ "lodash": "4.17.21",
10
+ "nanoid": "3.3.6",
11
+ "semver": "7.5.4",
12
+ "@activepieces/pieces-framework": "0.7.15",
13
+ "@activepieces/shared": "0.10.68",
14
+ "tslib": "2.6.2"
10
15
  },
11
16
  "main": "./src/index.js",
12
- "types": "./src/index.d.ts"
17
+ "type": "commonjs"
13
18
  }
package/src/index.js CHANGED
@@ -2,18 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.connections = void 0;
4
4
  const pieces_framework_1 = require("@activepieces/pieces-framework");
5
+ const shared_1 = require("@activepieces/shared");
5
6
  const read_connection_1 = require("./lib/actions/read-connection");
6
7
  exports.connections = (0, pieces_framework_1.createPiece)({
7
8
  displayName: 'Connections',
8
9
  minimumSupportedRelease: '0.5.0',
9
10
  logoUrl: 'https://cdn.activepieces.com/pieces/connections.png',
11
+ categories: [shared_1.PieceCategory.CORE],
10
12
  auth: pieces_framework_1.PieceAuth.None(),
11
- authors: [
12
- "abuaboud"
13
- ],
14
- actions: [
15
- read_connection_1.readConnection
16
- ],
13
+ authors: ['abuaboud'],
14
+ actions: [read_connection_1.readConnection],
17
15
  triggers: [],
18
16
  });
19
17
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/pieces/connections/src/index.ts"],"names":[],"mappings":";;;AACA,qEAAwE;AACxE,mEAA+D;AAElD,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC;IACrC,WAAW,EAAE,aAAa;IACtB,uBAAuB,EAAE,OAAO;IAClC,OAAO,EAAE,qDAAqD;IAChE,IAAI,EAAE,4BAAS,CAAC,IAAI,EAAE;IACtB,OAAO,EAAE;QACP,UAAU;KACX;IACD,OAAO,EAAE;QACP,gCAAc;KACf;IACD,QAAQ,EAAE,EACT;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/connections/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,iDAAqD;AACrD,mEAA+D;AAElD,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC;IACrC,WAAW,EAAE,aAAa;IAC1B,uBAAuB,EAAE,OAAO;IAChC,OAAO,EAAE,qDAAqD;IAC9D,UAAU,EAAE,CAAC,sBAAa,CAAC,IAAI,CAAC;IAChC,IAAI,EAAE,4BAAS,CAAC,IAAI,EAAE;IACtB,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,OAAO,EAAE,CAAC,gCAAc,CAAC;IACzB,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export declare const readConnection: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").PieceAuthProperty, {
2
+ info: import("../../../../../../../dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
2
3
  connection_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
4
  }>;
@@ -3,16 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.readConnection = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const markdown = `
7
+ **Advanced Piece**
8
+ <br>
9
+ Use this action to get connections dynamically by their names from this project.
10
+ <br>
11
+ Only use this piece if you're unsure which connection to use beforehand, like when the link name is sent through a webhook message.
12
+ `;
6
13
  exports.readConnection = (0, pieces_framework_1.createAction)({
7
14
  name: 'read_connection',
8
15
  displayName: 'Read Connection',
9
16
  description: 'Fetch connection by name',
10
17
  props: {
18
+ info: pieces_framework_1.Property.MarkDown({
19
+ value: markdown,
20
+ }),
11
21
  connection_name: pieces_framework_1.Property.ShortText({
12
22
  displayName: 'Connection Name',
13
23
  description: undefined,
14
24
  required: true,
15
- })
25
+ }),
16
26
  },
17
27
  run(ctx) {
18
28
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"read-connection.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/connections/src/lib/actions/read-connection.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAE3D,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACL,eAAe,EAAE,2BAAQ,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;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"read-connection.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/connections/src/lib/actions/read-connection.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,MAAM,QAAQ,GAAG;;;;;;CAMhB,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,KAAK,EAAE,QAAQ;SAChB,CAAC;QACF,eAAe,EAAE,2BAAQ,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"}