@activepieces/pieces-framework 0.3.15 → 0.3.17

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,11 +1,11 @@
1
1
  {
2
2
  "name": "@activepieces/pieces-framework",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.26.8",
7
7
  "nanoid": "3.3.4",
8
- "@activepieces/shared": "0.3.16",
8
+ "@activepieces/shared": "0.3.19",
9
9
  "tslib": "2.4.1"
10
10
  },
11
11
  "main": "./src/index.js",
@@ -1,4 +1,4 @@
1
- import { AppConnectionValue, ScheduleOptions } from "@activepieces/shared";
1
+ import { AppConnectionValue, ScheduleOptions, TriggerPayload } from "@activepieces/shared";
2
2
  import { TriggerStrategy } from "./trigger/trigger";
3
3
  export declare type TriggerHookContext<T, S extends TriggerStrategy> = S extends TriggerStrategy.APP_WEBHOOK ? {
4
4
  webhookUrl: string;
@@ -20,11 +20,7 @@ export declare type TriggerHookContext<T, S extends TriggerStrategy> = S extends
20
20
  store: Store;
21
21
  };
22
22
  export interface TriggerContext<T> {
23
- payload: Record<string, never> | {
24
- body: any;
25
- headers: Record<string, string>;
26
- queryParams: Record<string, string>;
27
- };
23
+ payload: TriggerPayload;
28
24
  propsValue: T;
29
25
  store: Store;
30
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../packages/pieces/framework/src/lib/context.ts"],"names":[],"mappings":";;;AAgDA,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,uCAAyB,CAAA;IACzB,2BAAa,CAAA;AACjB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../packages/pieces/framework/src/lib/context.ts"],"names":[],"mappings":";;;AA4CA,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,uCAAyB,CAAA;IACzB,2BAAa,CAAA;AACjB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
@@ -1,9 +1,9 @@
1
1
  import { PropertyType } from "./property";
2
- import { BasePropertySchema, CheckboxProperty, NumberProperty, SecretTextProperty, ShortTextProperty, TPropertyValue } from "./base-prop";
2
+ import { BasePropertySchema, CheckboxProperty, LongTextProperty, NumberProperty, SecretTextProperty, ShortTextProperty, TPropertyValue } from "./base-prop";
3
3
  import { StaticDropdownProperty } from "./dropdown-prop";
4
4
  import { StaticPropsValue } from "./property";
5
5
  export interface CustomAuthProps {
6
- [name: string]: ShortTextProperty<boolean> | SecretTextProperty<boolean> | NumberProperty<boolean> | StaticDropdownProperty<unknown, boolean> | CheckboxProperty<boolean>;
6
+ [name: string]: ShortTextProperty<boolean> | LongTextProperty<boolean> | SecretTextProperty<boolean> | NumberProperty<boolean> | StaticDropdownProperty<unknown, boolean> | CheckboxProperty<boolean>;
7
7
  }
8
8
  export declare type CustomAuthPropertyValue<T extends CustomAuthProps> = StaticPropsValue<T>;
9
9
  export declare type CustomAuthPropertySchema<T> = BasePropertySchema & {