@activepieces/pieces-framework 0.3.16 → 0.3.18
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 +3 -2
- package/src/lib/context.d.ts +3 -7
- package/src/lib/context.js +1 -1
- package/src/lib/context.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
7
|
+
"lodash": "4.17.21",
|
|
7
8
|
"nanoid": "3.3.4",
|
|
8
|
-
"@activepieces/shared": "0.3.
|
|
9
|
+
"@activepieces/shared": "0.3.25",
|
|
9
10
|
"tslib": "2.4.1"
|
|
10
11
|
},
|
|
11
12
|
"main": "./src/index.js",
|
package/src/lib/context.d.ts
CHANGED
|
@@ -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:
|
|
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
|
}
|
|
@@ -42,6 +38,6 @@ export interface Store {
|
|
|
42
38
|
delete(key: string, scope?: StoreScope): Promise<void>;
|
|
43
39
|
}
|
|
44
40
|
export declare enum StoreScope {
|
|
45
|
-
|
|
41
|
+
PROJECT = "PROJECT",
|
|
46
42
|
FLOW = "FLOW"
|
|
47
43
|
}
|
package/src/lib/context.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StoreScope = void 0;
|
|
4
4
|
var StoreScope;
|
|
5
5
|
(function (StoreScope) {
|
|
6
|
-
StoreScope["
|
|
6
|
+
StoreScope["PROJECT"] = "PROJECT";
|
|
7
7
|
StoreScope["FLOW"] = "FLOW";
|
|
8
8
|
})(StoreScope = exports.StoreScope || (exports.StoreScope = {}));
|
|
9
9
|
//# sourceMappingURL=context.js.map
|
package/src/lib/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../packages/pieces/framework/src/lib/context.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../packages/pieces/framework/src/lib/context.ts"],"names":[],"mappings":";;;AA4CA,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,2BAAa,CAAA;AACjB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
|