Skip to content

Commit d9eb9e1

Browse files
committed
Update SDK with new endpoints for triggers
* Add new methods to manipulate deployed Connect triggers * Document the new methods (JSDoc only) * Bump minor version
1 parent 73fdd00 commit d9eb9e1

File tree

4 files changed

+397
-8
lines changed

4 files changed

+397
-8
lines changed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "1.1.6",
3+
"version": "1.2.0",
44
"description": "Pipedream SDK",
55
"main": "dist/server/server/index.js",
66
"module": "dist/server/server/index.js",

packages/sdk/src/shared/component.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,25 @@ export type V1DeployedComponent<T extends ConfigurableProps = any> = { // eslint
108108
name_slug: string;
109109
callback_observations?: unknown;
110110
};
111+
112+
export type V1EmittedEvent = {
113+
/**
114+
* The event's payload.
115+
*/
116+
e: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
117+
118+
/**
119+
* The event's type (set to "emit" currently).
120+
*/
121+
k: string;
122+
123+
/**
124+
* The event's timestamp in epoch milliseconds.
125+
*/
126+
ts: number;
127+
128+
/**
129+
* The event's unique ID.
130+
*/
131+
id: string;
132+
}

0 commit comments

Comments
 (0)