Skip to content

Commit 208a3fe

Browse files
committed
Add pagination parameters to component configuration
1 parent 7246f75 commit 208a3fe

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Pipedream SDK",
55
"main": "dist/server/server/index.js",
66
"module": "dist/server/server/index.js",

packages/sdk/src/shared/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,19 @@ export type ConfigureComponentOpts = ExternalUserId & {
333333
dynamicPropsId?: string;
334334

335335
query?: string;
336+
337+
/**
338+
* A 0 indexed page number. Use with APIs that accept a
339+
* numeric page number for pagination.
340+
*/
341+
page?: number;
342+
343+
/**
344+
* A string representing the context for the previous options
345+
* execution. Use with APIs that accept a token representing the last
346+
* record for pagination.
347+
*/
348+
prevContext?: never;
336349
};
337350

338351
/**
@@ -949,6 +962,8 @@ export abstract class BaseClient {
949962
prop_name: opts.propName,
950963
configured_props: opts.configuredProps,
951964
dynamic_props_id: opts.dynamicPropsId,
965+
page: opts.page,
966+
prev_context: opts.prevContext,
952967
};
953968
return this.makeConnectRequest<ConfigureComponentResponse>("/components/configure", {
954969
method: "POST",

0 commit comments

Comments
 (0)