Skip to content

Commit 7195ac5

Browse files
Merge branch 'master' into danny/connect-react/sql
2 parents b102eb5 + 300ff0a commit 7195ac5

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
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.6.6] - 2025-06-05
6+
7+
### Added
8+
9+
- Added support for `sql` prop type for `connect-react` package
10+
511
## [1.6.5] - 2025-06-02
612

713
### 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.6.5",
4+
"version": "1.6.6",
55
"description": "Pipedream SDK",
66
"main": "./dist/server.js",
77
"module": "./dist/server.js",

packages/sdk/src/shared/component.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ export type ConfigurablePropStringArray = BaseConfigurableProp & {
8686
type: "string[]";
8787
secret?: boolean; // TODO is this supported
8888
} & Defaultable<string[]>; // TODO
89+
export type ConfigurablePropSql = BaseConfigurableProp & {
90+
type: "sql";
91+
auth: {
92+
app: string;
93+
};
94+
} & Defaultable<string>;
8995
// | { type: "$.interface.http" } // source only
9096
// | { type: "$.interface.timer" } // source only
9197
// | { type: "$.service.db" }
@@ -100,6 +106,7 @@ export type ConfigurableProp =
100106
| ConfigurablePropObject
101107
| ConfigurablePropString
102108
| ConfigurablePropStringArray
109+
| ConfigurablePropSql
103110
| (BaseConfigurableProp & { type: "$.discord.channel"; });
104111

105112
export type ConfigurableProps = Readonly<ConfigurableProp[]>;
@@ -120,6 +127,8 @@ export type PropValue<T extends ConfigurableProp["type"]> = T extends "alert"
120127
? string
121128
: T extends "string[]"
122129
? string[] // XXX support arrays differently?
130+
: T extends "sql"
131+
? { app: string; query: string; params: unknown[]; }
123132
: never;
124133

125134
export type ConfiguredProps<T extends ConfigurableProps> = {

0 commit comments

Comments
 (0)