@activepieces/pieces-framework 0.7.17 → 0.7.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 -3
- package/src/lib/context.d.ts +9 -6
- package/src/lib/context.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.18",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"lodash": "4.17.21",
|
|
11
11
|
"nanoid": "3.3.6",
|
|
12
12
|
"semver": "7.6.0",
|
|
13
|
-
"@activepieces/shared": "0.10.
|
|
14
|
-
"tslib": "
|
|
13
|
+
"@activepieces/shared": "0.10.76",
|
|
14
|
+
"tslib": "1.14.1"
|
|
15
15
|
},
|
|
16
16
|
"main": "./src/index.js"
|
|
17
17
|
}
|
package/src/lib/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { AppConnectionValue, ExecutionType, FlowRunId, PauseMetadata, ProjectId, StopResponse, TriggerPayload } from '@activepieces/shared';
|
|
2
|
+
import { AppConnectionValue, DelayPauseMetadata, ExecutionType, FlowRunId, PauseMetadata, ProjectId, ResumePayload, StopResponse, TriggerPayload, WebhookPauseMetadata } from '@activepieces/shared';
|
|
3
3
|
import { TriggerStrategy } from './trigger/trigger';
|
|
4
4
|
import { InputPropertyMap, PiecePropValueSchema, StaticPropsValue } from './property';
|
|
5
5
|
import { PieceAuthProperty } from './property/authentication';
|
|
@@ -40,12 +40,12 @@ export type StopHookParams = {
|
|
|
40
40
|
response: StopResponse;
|
|
41
41
|
};
|
|
42
42
|
export type StopHook = (params: StopHookParams) => void;
|
|
43
|
-
type PauseMetadataWithoutResumeStepMetadata<T extends PauseMetadata> = T extends PauseMetadata ? Omit<T, 'resumeStepMetadata'> : never;
|
|
44
|
-
export type PauseHookPauseMetadata = PauseMetadataWithoutResumeStepMetadata<PauseMetadata>;
|
|
45
43
|
export type PauseHookParams = {
|
|
46
|
-
pauseMetadata:
|
|
44
|
+
pauseMetadata: PauseMetadata;
|
|
47
45
|
};
|
|
48
|
-
export type PauseHook = (params:
|
|
46
|
+
export type PauseHook = (params: {
|
|
47
|
+
pauseMetadata: DelayPauseMetadata | Omit<WebhookPauseMetadata, 'requestId'>;
|
|
48
|
+
}) => void;
|
|
49
49
|
export type PropertyContext = {
|
|
50
50
|
server: ServerContext;
|
|
51
51
|
project: {
|
|
@@ -70,10 +70,13 @@ export type BaseActionContext<ET extends ExecutionType, PieceAuth extends PieceA
|
|
|
70
70
|
stop: StopHook;
|
|
71
71
|
pause: PauseHook;
|
|
72
72
|
};
|
|
73
|
+
generateResumeUrl: (params: {
|
|
74
|
+
queryParams: Record<string, string>;
|
|
75
|
+
}) => string;
|
|
73
76
|
};
|
|
74
77
|
type BeginExecutionActionContext<PieceAuth extends PieceAuthProperty = PieceAuthProperty, ActionProps extends InputPropertyMap = InputPropertyMap> = BaseActionContext<ExecutionType.BEGIN, PieceAuth, ActionProps>;
|
|
75
78
|
type ResumeExecutionActionContext<PieceAuth extends PieceAuthProperty = PieceAuthProperty, ActionProps extends InputPropertyMap = InputPropertyMap> = BaseActionContext<ExecutionType.RESUME, PieceAuth, ActionProps> & {
|
|
76
|
-
resumePayload:
|
|
79
|
+
resumePayload: ResumePayload;
|
|
77
80
|
};
|
|
78
81
|
export type ActionContext<PieceAuth extends PieceAuthProperty = PieceAuthProperty, ActionProps extends InputPropertyMap = InputPropertyMap> = BeginExecutionActionContext<PieceAuth, ActionProps> | ResumeExecutionActionContext<PieceAuth, ActionProps>;
|
|
79
82
|
export interface FilesService {
|
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":";;;AAkLA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|