@activepieces/pieces-framework 0.7.35 → 0.7.37
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 +10 -5
- package/src/lib/context.js.map +1 -1
- package/src/lib/piece-metadata.d.ts +1234 -160
- package/src/lib/piece-metadata.js +2 -8
- package/src/lib/piece-metadata.js.map +1 -1
- package/src/lib/property/index.d.ts +15 -0
- package/src/lib/property/input/array-property.d.ts +12 -1
- package/src/lib/property/input/array-property.js +3 -1
- package/src/lib/property/input/array-property.js.map +1 -1
- package/src/lib/property/input/index.d.ts +5 -0
- package/src/lib/trigger/trigger.d.ts +5 -2
- package/src/lib/trigger/trigger.js +6 -5
- package/src/lib/trigger/trigger.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.37",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.32.35",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"deepmerge": "4.3.1",
|
|
9
9
|
"nanoid": "3.3.6",
|
|
10
10
|
"semver": "7.6.0",
|
|
11
|
-
"@activepieces/shared": "0.10.
|
|
11
|
+
"@activepieces/shared": "0.10.119",
|
|
12
12
|
"tslib": "2.6.2"
|
|
13
13
|
},
|
|
14
14
|
"main": "./src/index.js"
|
package/src/lib/context.d.ts
CHANGED
|
@@ -71,6 +71,15 @@ export type ServerContext = {
|
|
|
71
71
|
publicUrl: string;
|
|
72
72
|
token: string;
|
|
73
73
|
};
|
|
74
|
+
export type RunContext = {
|
|
75
|
+
id: FlowRunId;
|
|
76
|
+
stop: StopHook;
|
|
77
|
+
pause: PauseHook;
|
|
78
|
+
};
|
|
79
|
+
export type OnStartContext<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap> = Omit<BaseContext<PieceAuth, TriggerProps>, 'flows'> & {
|
|
80
|
+
run: Pick<RunContext, 'id'>;
|
|
81
|
+
payload: unknown;
|
|
82
|
+
};
|
|
74
83
|
export type BaseActionContext<ET extends ExecutionType, PieceAuth extends PieceAuthProperty, ActionProps extends InputPropertyMap> = BaseContext<PieceAuth, ActionProps> & {
|
|
75
84
|
executionType: ET;
|
|
76
85
|
connections: ConnectionsManager;
|
|
@@ -78,11 +87,7 @@ export type BaseActionContext<ET extends ExecutionType, PieceAuth extends PieceA
|
|
|
78
87
|
server: ServerContext;
|
|
79
88
|
files: FilesService;
|
|
80
89
|
serverUrl: string;
|
|
81
|
-
run:
|
|
82
|
-
id: FlowRunId;
|
|
83
|
-
stop: StopHook;
|
|
84
|
-
pause: PauseHook;
|
|
85
|
-
};
|
|
90
|
+
run: RunContext;
|
|
86
91
|
generateResumeUrl: (params: {
|
|
87
92
|
queryParams: Record<string, string>;
|
|
88
93
|
}) => string;
|
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":";;;AA2MA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|