@activepieces/pieces-framework 0.22.0 → 0.22.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/package.json +1 -1
- package/src/lib/action/action.d.ts +2 -2
- package/src/lib/piece.d.ts +1 -1
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ type CreateActionParams<PieceAuth extends PieceAuthProperty | PieceAuthProperty[
|
|
|
32
32
|
requireAuth?: boolean;
|
|
33
33
|
errorHandlingOptions?: ErrorHandlingOptionsParam;
|
|
34
34
|
};
|
|
35
|
-
export declare class IAction<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =
|
|
35
|
+
export declare class IAction<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = any, ActionProps extends InputPropertyMap = InputPropertyMap> implements ActionBase {
|
|
36
36
|
readonly name: string;
|
|
37
37
|
readonly displayName: string;
|
|
38
38
|
readonly description: string;
|
|
@@ -43,6 +43,6 @@ export declare class IAction<PieceAuth extends PieceAuthProperty | PieceAuthProp
|
|
|
43
43
|
readonly errorHandlingOptions: ErrorHandlingOptionsParam;
|
|
44
44
|
constructor(name: string, displayName: string, description: string, props: ActionProps, run: ActionRunner<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, ActionProps>, test: ActionRunner<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, ActionProps>, requireAuth: boolean, errorHandlingOptions: ErrorHandlingOptionsParam);
|
|
45
45
|
}
|
|
46
|
-
export type Action<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =
|
|
46
|
+
export type Action<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = any, ActionProps extends InputPropertyMap = any> = IAction<PieceAuth, ActionProps>;
|
|
47
47
|
export declare const createAction: <PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = PieceAuthProperty, ActionProps extends InputPropertyMap = any>(params: CreateActionParams<PieceAuth, ActionProps>) => IAction<PieceAuth, ActionProps>;
|
|
48
48
|
export {};
|
package/src/lib/piece.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare class Piece<PieceAuth extends PieceAuthProperty | PieceAuthProper
|
|
|
28
28
|
triggers(): Record<string, Trigger>;
|
|
29
29
|
}
|
|
30
30
|
export declare const createPiece: <PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined>(params: CreatePieceParams<PieceAuth>) => Piece<PieceAuth>;
|
|
31
|
-
type CreatePieceParams<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined> = {
|
|
31
|
+
type CreatePieceParams<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = {
|
|
32
32
|
displayName: string;
|
|
33
33
|
logoUrl: string;
|
|
34
34
|
authors: string[];
|