@activepieces/pieces-framework
Advanced tools
Comparing version 0.6.15 to 0.6.16
{ | ||
"name": "@activepieces/pieces-framework", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"type": "commonjs", | ||
@@ -12,3 +12,3 @@ "dependencies": { | ||
"semver": "7.5.4", | ||
"@activepieces/shared": "0.7.4", | ||
"@activepieces/shared": "0.8.1", | ||
"tslib": "2.6.1" | ||
@@ -15,0 +15,0 @@ }, |
@@ -15,2 +15,3 @@ import { ActionContext } from '../context'; | ||
run: ActionRunner<PieceAuth, ActionProps>; | ||
test?: ActionRunner<PieceAuth, ActionProps>; | ||
requireAuth?: boolean; | ||
@@ -24,4 +25,5 @@ }; | ||
readonly run: ActionRunner<PieceAuth, ActionProps>; | ||
readonly test: ActionRunner<PieceAuth, ActionProps>; | ||
readonly requireAuth: boolean; | ||
constructor(name: string, displayName: string, description: string, props: ActionProps, run: ActionRunner<PieceAuth, ActionProps>, requireAuth: boolean); | ||
constructor(name: string, displayName: string, description: string, props: ActionProps, run: ActionRunner<PieceAuth, ActionProps>, test: ActionRunner<PieceAuth, ActionProps>, requireAuth: boolean); | ||
} | ||
@@ -28,0 +30,0 @@ export type Action<PieceAuth extends PieceAuthProperty = any, ActionProps extends NonAuthPiecePropertyMap = any> = IAction<PieceAuth, ActionProps>; |
@@ -5,3 +5,3 @@ "use strict"; | ||
class IAction { | ||
constructor(name, displayName, description, props, run, requireAuth) { | ||
constructor(name, displayName, description, props, run, test, requireAuth) { | ||
this.name = name; | ||
@@ -12,2 +12,3 @@ this.displayName = displayName; | ||
this.run = run; | ||
this.test = test; | ||
this.requireAuth = requireAuth; | ||
@@ -18,6 +19,6 @@ } | ||
const createAction = (params) => { | ||
var _a; | ||
return new IAction(params.name, params.displayName, params.description, params.props, params.run, (_a = params.requireAuth) !== null && _a !== void 0 ? _a : true); | ||
var _a, _b; | ||
return new IAction(params.name, params.displayName, params.description, params.props, params.run, (_a = params.test) !== null && _a !== void 0 ? _a : params.run, (_b = params.requireAuth) !== null && _b !== void 0 ? _b : true); | ||
}; | ||
exports.createAction = createAction; | ||
//# sourceMappingURL=action.js.map |
Sorry, the diff of this file is not supported yet
78065
1142
+ Added@activepieces/shared@0.8.1(transitive)
- Removed@activepieces/shared@0.7.4(transitive)
Updated@activepieces/shared@0.8.1