@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activepieces/pieces-framework",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.34.11",
@@ -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 = PieceAuthProperty, ActionProps extends InputPropertyMap = InputPropertyMap> implements ActionBase {
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 = PieceAuthProperty, ActionProps extends InputPropertyMap = any> = IAction<PieceAuth, ActionProps>;
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 {};
@@ -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[];