From a24cfc6dbb760e7bb9a0e8db81fa3b1d5bf0c6f4 Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Wed, 30 Apr 2025 12:37:59 -0400 Subject: [PATCH 1/7] Fix return type of updateTrigger --- packages/sdk/src/shared/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/shared/index.ts b/packages/sdk/src/shared/index.ts index 590fb4fc44e1b..44526a36304dc 100644 --- a/packages/sdk/src/shared/index.ts +++ b/packages/sdk/src/shared/index.ts @@ -1562,7 +1562,7 @@ export abstract class BaseClient { name = null, } = opts; - return this.makeConnectRequest(`/deployed-triggers/${id}`, { + return this.makeConnectRequest(`/deployed-triggers/${id}`, { method: "PUT", params: { external_user_id: externalUserId, From 473aacce0ba6b3616a7a66feb295c884e9d545ed Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Wed, 30 Apr 2025 12:39:34 -0400 Subject: [PATCH 2/7] Update SDK to support updating a trigger's configured props --- packages/sdk/src/shared/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/sdk/src/shared/index.ts b/packages/sdk/src/shared/index.ts index 44526a36304dc..58592e0f5defd 100644 --- a/packages/sdk/src/shared/index.ts +++ b/packages/sdk/src/shared/index.ts @@ -800,6 +800,13 @@ export type UpdateTriggerOpts = { */ active?: boolean; + /** + * The props that have already been configured for the trigger. This is a + * JSON-serializable object with the prop names as keys and the configured + * values as values. + */ + configuredProps?: ConfiguredProps; + /** * The new name of the trigger. */ @@ -1559,6 +1566,7 @@ export abstract class BaseClient { id, externalUserId, active = null, + configuredProps = null, name = null, } = opts; @@ -1569,6 +1577,7 @@ export abstract class BaseClient { }, body: { active, + configured_props: configuredProps, name, }, }); From 4d990f225ad2f3930d48e3b14ec8927e5ddd4b9d Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Wed, 30 Apr 2025 12:50:14 -0400 Subject: [PATCH 3/7] Update changelog and minor version --- packages/sdk/CHANGELOG.md | 10 ++++++++++ packages/sdk/package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 8307271b1381c..25c25bbfaa203 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -2,6 +2,16 @@ # Changelog +## [1.6.0] - 2025-04-30 + +### Added + +- Added `configuredProps` argument to the `updateTrigger` method. + +### Changed + +- Corrected the return type of `updateTrigger`. + ## [1.5.5] - 2025-04-28 ### Changed diff --git a/packages/sdk/package.json b/packages/sdk/package.json index dba63903d5570..db5dacd41cc4c 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,7 +1,7 @@ { "name": "@pipedream/sdk", "type": "module", - "version": "1.5.5", + "version": "1.6.0", "description": "Pipedream SDK", "main": "./dist/server.js", "module": "./dist/server.js", From 2513ced4c50ead1b4314b90b958e1bf8a1d2a59a Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Wed, 30 Apr 2025 12:50:24 -0400 Subject: [PATCH 4/7] Update pnpm-lock.yaml --- pnpm-lock.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3062621def853..ea7746d2f0dab 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28090,22 +28090,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . superagent@7.1.6: resolution: {integrity: sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731) supports-color@2.0.0: resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==} From 42a32147cc965202aabcb734dc3d2d27da1ca428 Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:21:44 -0400 Subject: [PATCH 5/7] update pnpm-lock.yaml --- pnpm-lock.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7d194fc6b8140..6ed21aac3e571 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34735,6 +34735,8 @@ snapshots: '@putout/operator-filesystem': 5.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3)) '@putout/operator-json': 2.2.0 putout: 36.13.1(eslint@8.57.1)(typescript@5.6.3) + transitivePeerDependencies: + - supports-color '@putout/operator-regexp@1.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3))': dependencies: From d3d352e36bff1fd455be236f08ca6b67eeb165c5 Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Wed, 30 Apr 2025 14:36:39 -0400 Subject: [PATCH 6/7] fix eslint unexpected any --- packages/sdk/src/shared/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/shared/index.ts b/packages/sdk/src/shared/index.ts index 58592e0f5defd..ae2a25d0bdee9 100644 --- a/packages/sdk/src/shared/index.ts +++ b/packages/sdk/src/shared/index.ts @@ -129,7 +129,7 @@ export type PropOption = { value: string; }; -type ConfigureComponentContext = Record +type ConfigureComponentContext = Record /** * The response received after configuring a component's prop. From 48354cf2b21e579b4651085609730295be86cb88 Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Wed, 30 Apr 2025 14:56:15 -0400 Subject: [PATCH 7/7] update changelog --- packages/sdk/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 25c25bbfaa203..fe7d7d4f1efa9 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -11,6 +11,8 @@ ### Changed - Corrected the return type of `updateTrigger`. +- Changed the type of property values of `ConfigureComponentContext` from + explicit `any` to `unknown`. ## [1.5.5] - 2025-04-28