Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Changelog

## [1.6.6] - 2025-06-05

### Added

- Added support for `sql` prop type for `connect-react` package

## [1.6.5] - 2025-06-02

### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pipedream/sdk",
"type": "module",
"version": "1.6.5",
"version": "1.6.6",
"description": "Pipedream SDK",
"main": "./dist/server.js",
"module": "./dist/server.js",
Expand Down
10 changes: 9 additions & 1 deletion packages/sdk/src/shared/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,17 @@ export type ConfigurablePropStringArray = BaseConfigurableProp & {
type: "string[]";
secret?: boolean; // TODO is this supported
} & Defaultable<string[]>; // TODO
export type ConfigurablePropSql = BaseConfigurableProp & {
type: "sql";
auth: {
app: string;
};
} & Defaultable<string>;
// | { type: "$.interface.http" } // source only
// | { type: "$.interface.timer" } // source only
// | { type: "$.service.db" }
// | { type: "data_store" }
// | { type: "http_request" }
// | { type: "sql" } -- not in component api docs!
export type ConfigurableProp =
| ConfigurablePropAlert
| ConfigurablePropAny
Expand All @@ -101,6 +106,7 @@ export type ConfigurableProp =
| ConfigurablePropObject
| ConfigurablePropString
| ConfigurablePropStringArray
| ConfigurablePropSql
| (BaseConfigurableProp & { type: "$.discord.channel"; });

export type ConfigurableProps = Readonly<ConfigurableProp[]>;
Expand All @@ -121,6 +127,8 @@ export type PropValue<T extends ConfigurableProp["type"]> = T extends "alert"
? string
: T extends "string[]"
? string[] // XXX support arrays differently?
: T extends "sql"
? { app: string; query: string; params: unknown[]; }
: never;

export type ConfiguredProps<T extends ConfigurableProps> = {
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading