@activepieces/framework
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "@activepieces/framework", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"type": "commonjs", | ||
@@ -10,3 +10,3 @@ "dependencies": { | ||
"nanoid": "3.3.4", | ||
"@activepieces/shared": "0.2.0", | ||
"@activepieces/shared": "0.3.0", | ||
"tslib": "2.4.1" | ||
@@ -13,0 +13,0 @@ }, |
@@ -20,2 +20,4 @@ import type { Trigger } from './trigger/trigger'; | ||
} | undefined; | ||
readonly minimumSupportedRelease?: string | undefined; | ||
readonly maximumSupportedRelease?: string | undefined; | ||
readonly description: string; | ||
@@ -33,3 +35,3 @@ private readonly _actions; | ||
}) => boolean; | ||
} | undefined, actions: Action[], triggers: Trigger[], description?: string); | ||
} | undefined, actions: Action[], triggers: Trigger[], minimumSupportedRelease?: string | undefined, maximumSupportedRelease?: string | undefined, description?: string); | ||
getAction(actionName: string): Action | undefined; | ||
@@ -58,2 +60,4 @@ getTrigger(triggerName: string): Trigger | undefined; | ||
version: string; | ||
minimumSupportedRelease?: string | undefined; | ||
maximumSupportedRelease?: string | undefined; | ||
}) => Piece; |
@@ -5,3 +5,3 @@ "use strict"; | ||
class Piece { | ||
constructor(name, displayName, logoUrl, authors, version, events, actions, triggers, description = '') { | ||
constructor(name, displayName, logoUrl, authors, version, events, actions, triggers, minimumSupportedRelease, maximumSupportedRelease, description = '') { | ||
this.name = name; | ||
@@ -13,2 +13,4 @@ this.displayName = displayName; | ||
this.events = events; | ||
this.minimumSupportedRelease = minimumSupportedRelease; | ||
this.maximumSupportedRelease = maximumSupportedRelease; | ||
this.description = description; | ||
@@ -39,2 +41,4 @@ this._actions = Object.fromEntries(actions.map((action) => [action.name, action])); | ||
version: this.version, | ||
minimumSupportedRelease: this.minimumSupportedRelease, | ||
maximumSupportedRelease: this.maximumSupportedRelease, | ||
}; | ||
@@ -46,5 +50,5 @@ } | ||
var _a; | ||
return new Piece(request.name, request.displayName, request.logoUrl, (_a = request.authors) !== null && _a !== void 0 ? _a : [], request.version, request.events, request.actions, request.triggers, request.description); | ||
return new Piece(request.name, request.displayName, request.logoUrl, (_a = request.authors) !== null && _a !== void 0 ? _a : [], request.version, request.events, request.actions, request.triggers, request.minimumSupportedRelease, request.maximumSupportedRelease, request.description); | ||
}; | ||
exports.createPiece = createPiece; | ||
//# sourceMappingURL=piece.js.map |
Sorry, the diff of this file is not supported yet
59910
869
+ Added@activepieces/shared@0.3.0(transitive)
- Removed@activepieces/shared@0.2.0(transitive)
Updated@activepieces/shared@0.3.0