Skip to content

Commit 29d795a

Browse files
Update SDK with new endpoints for triggers (#15385)
* Add new methods to manipulate deployed Connect triggers * Document the new methods (JSDoc only) * Bump minor version and update the changelog --------- Co-authored-by: Danny Roosevelt <[email protected]>
1 parent d6b117b commit 29d795a

File tree

5 files changed

+404
-6
lines changed

5 files changed

+404
-6
lines changed

packages/sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# Changelog
44

5+
## [1.2.0] - 2025-01-23
6+
7+
### Added
8+
9+
- New methods and types to interact with the deployed triggers API
10+
511
## [1.1.6] - 2025-01-21
612

713
### 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)