@taskmagic/pieces-framework
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@taskmagic/pieces-framework", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"type": "commonjs", | ||
@@ -14,5 +14,5 @@ "dependencies": { | ||
"@taskmagic/shared": "0.10.30", | ||
"tslib": "2.6.1" | ||
"tslib": "2.6.2" | ||
}, | ||
"main": "./src/index.js" | ||
} |
@@ -0,1 +1,2 @@ | ||
import { Static } from '@sinclair/typebox'; | ||
import { ActionContext } from '../context'; | ||
@@ -5,2 +6,13 @@ import { ActionBase } from '../piece-metadata'; | ||
export type ActionRunner<PieceAuth extends PieceAuthProperty, ActionProps extends NonAuthPiecePropertyMap> = (ctx: ActionContext<PieceAuth, ActionProps>) => Promise<unknown | void>; | ||
export declare const ErrorHandlingOptionsParam: import("@sinclair/typebox").TObject<{ | ||
retryOnFailure: import("@sinclair/typebox").TObject<{ | ||
defaultValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>; | ||
hide: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>; | ||
}>; | ||
continueOnFailure: import("@sinclair/typebox").TObject<{ | ||
defaultValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>; | ||
hide: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>; | ||
}>; | ||
}>; | ||
export type ErrorHandlingOptionsParam = Static<typeof ErrorHandlingOptionsParam>; | ||
type CreateActionParams<PieceAuth extends PieceAuthProperty, ActionProps extends NonAuthPiecePropertyMap> = { | ||
@@ -18,2 +30,3 @@ /** | ||
requireAuth?: boolean; | ||
errorHandlingOptions?: ErrorHandlingOptionsParam; | ||
}; | ||
@@ -20,0 +33,0 @@ export declare class IAction<PieceAuth extends PieceAuthProperty, ActionProps extends NonAuthPiecePropertyMap> implements ActionBase { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createAction = exports.IAction = void 0; | ||
exports.createAction = exports.IAction = exports.ErrorHandlingOptionsParam = void 0; | ||
const typebox_1 = require("@sinclair/typebox"); | ||
exports.ErrorHandlingOptionsParam = typebox_1.Type.Object({ | ||
retryOnFailure: typebox_1.Type.Object({ | ||
defaultValue: typebox_1.Type.Optional(typebox_1.Type.Boolean()), | ||
hide: typebox_1.Type.Optional(typebox_1.Type.Boolean()), | ||
}), | ||
continueOnFailure: typebox_1.Type.Object({ | ||
defaultValue: typebox_1.Type.Optional(typebox_1.Type.Boolean()), | ||
hide: typebox_1.Type.Optional(typebox_1.Type.Boolean()), | ||
}), | ||
}); | ||
class IAction { | ||
@@ -5,0 +16,0 @@ constructor(name, displayName, description, props, run, test, requireAuth) { |
@@ -41,3 +41,3 @@ import { TestOrRunHookContext, TriggerHookContext } from '../context'; | ||
requireAuth?: boolean; | ||
sampleData: unknown; | ||
sampleData?: any; | ||
}; | ||
@@ -44,0 +44,0 @@ export declare class ITrigger<TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty, TriggerProps extends NonAuthPiecePropertyMap> implements TriggerBase { |
Sorry, the diff of this file is not supported yet
105886
83
1529
+ Addedtslib@2.6.2(transitive)
Updatedtslib@2.6.2