Skip to content

Commit 8a8592a

Browse files
committed
feat(sdk): support query option for the configureComponent method
1 parent d637019 commit 8a8592a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

packages/sdk/CHANGELOG.md

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

33
# Changelog
44

5+
## [1.5.0] - 2025-04-08
6+
7+
### Added
8+
9+
- Added support for the `query` option to the `configureComponent` method,
10+
enabling API-based search using the specified query.
11+
512
## [1.4.0] - 2025-03-12
613

714
### Changed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pipedream/sdk",
33
"type": "module",
4-
"version": "1.4.0",
4+
"version": "1.5.0",
55
"description": "Pipedream SDK",
66
"main": "./dist/server.js",
77
"module": "./dist/server.js",

packages/sdk/src/shared/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ export type ConfigureComponentOpts = ExternalUserId & {
394394
*/
395395
dynamicPropsId?: string;
396396

397+
/**
398+
* A string with the user input if the prop has the useQuery property set to
399+
* true. Use with APIs that return items based on a query or search parameter.
400+
*/
397401
query?: string;
398402

399403
/**
@@ -1228,6 +1232,7 @@ export abstract class BaseClient {
12281232
dynamic_props_id: opts.dynamicPropsId,
12291233
page: opts.page,
12301234
prev_context: opts.prevContext,
1235+
query: opts.query,
12311236
};
12321237
return this.makeConnectRequest<ConfigureComponentResponse>("/components/configure", {
12331238
method: "POST",

0 commit comments

Comments
 (0)