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
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/sdk",
"version": "1.1.3",
"version": "1.1.4",
"description": "Pipedream SDK",
"main": "dist/server/server/index.js",
"module": "dist/server/server/index.js",
Expand Down
28 changes: 25 additions & 3 deletions packages/sdk/src/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,19 @@ export type ConfigureComponentOpts = ExternalUserId & {
dynamicPropsId?: string;

query?: string;

/**
* A 0 indexed page number. Use with APIs that accept a
* numeric page number for pagination.
*/
page?: number;

/**
* A string representing the context for the previous options
* execution. Use with APIs that accept a token representing the last
* record for pagination.
*/
prevContext?: never;
};

/**
Expand Down Expand Up @@ -787,14 +800,21 @@ export abstract class BaseClient {
params.q = opts.q;
}
if (opts?.hasActions != null) {
params.has_actions = opts.hasActions ? "1" : "0";
params.has_actions = opts.hasActions
? "1"
: "0";
}
if (opts?.hasComponents != null) {
params.has_components = opts.hasComponents ? "1" : "0";
params.has_components = opts.hasComponents
? "1"
: "0";
}
if (opts?.hasTriggers != null) {
params.has_triggers = opts.hasTriggers ? "1" : "0";
params.has_triggers = opts.hasTriggers
? "1"
: "0";
}

this.addRelationOpts(params, opts);
return this.makeAuthorizedRequest<GetAppsResponse>(
"/apps",
Expand Down Expand Up @@ -949,6 +969,8 @@ export abstract class BaseClient {
prop_name: opts.propName,
configured_props: opts.configuredProps,
dynamic_props_id: opts.dynamicPropsId,
page: opts.page,
prev_context: opts.prevContext,
};
return this.makeConnectRequest<ConfigureComponentResponse>("/components/configure", {
method: "POST",
Expand Down
Loading