@activepieces/pieces-framework 0.7.43 → 0.7.44
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 +2 -2
- package/src/lib/context.d.ts +6 -1
- package/src/lib/context.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.44",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.34.11",
|
|
7
7
|
"deepmerge-ts": "7.1.0",
|
|
8
8
|
"nanoid": "3.3.8",
|
|
9
9
|
"semver": "7.6.0",
|
|
10
|
-
"@activepieces/shared": "0.10.
|
|
10
|
+
"@activepieces/shared": "0.10.151",
|
|
11
11
|
"tslib": "1.14.1"
|
|
12
12
|
},
|
|
13
13
|
"overrides": {
|
package/src/lib/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppConnectionValue, ExecutionType, FlowRunId, PopulatedFlow, ProjectId, ResumePayload, SeekPage, TriggerPayload } from '@activepieces/shared';
|
|
1
|
+
import { AppConnectionValue, ExecutionType, FlowRunId, PopulatedFlow, ProjectId, RespondResponse, ResumePayload, SeekPage, TriggerPayload } from '@activepieces/shared';
|
|
2
2
|
import { TriggerStrategy } from './trigger/trigger';
|
|
3
3
|
import { InputPropertyMap, PiecePropValueSchema, StaticPropsValue } from './property';
|
|
4
4
|
import { PieceAuthProperty } from './property/authentication';
|
|
@@ -40,7 +40,11 @@ export type TestOrRunHookContext<PieceAuth extends PieceAuthProperty, TriggerPro
|
|
|
40
40
|
export type StopHookParams = {
|
|
41
41
|
response: StopResponse;
|
|
42
42
|
};
|
|
43
|
+
export type RespondHookParams = {
|
|
44
|
+
response: RespondResponse;
|
|
45
|
+
};
|
|
43
46
|
export type StopHook = (params?: StopHookParams) => void;
|
|
47
|
+
export type RespondHook = (params?: RespondHookParams) => void;
|
|
44
48
|
export type PauseHookParams = {
|
|
45
49
|
pauseMetadata: PauseMetadata;
|
|
46
50
|
};
|
|
@@ -74,6 +78,7 @@ export type RunContext = {
|
|
|
74
78
|
id: FlowRunId;
|
|
75
79
|
stop: StopHook;
|
|
76
80
|
pause: PauseHook;
|
|
81
|
+
respond: RespondHook;
|
|
77
82
|
};
|
|
78
83
|
export type OnStartContext<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap> = Omit<BaseContext<PieceAuth, TriggerProps>, 'flows'> & {
|
|
79
84
|
run: Pick<RunContext, 'id'>;
|
package/src/lib/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/context.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/context.ts"],"names":[],"mappings":";;;AAmNA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|