Skip to content

Commit e7cc242

Browse files
authored
Merge branch 'master' into fix/optional-prop-toggle
2 parents d1003d4 + 17e2fbe commit e7cc242

File tree

7 files changed

+84
-4
lines changed

7 files changed

+84
-4
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "charthop",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/charthop/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/charthop",
3+
"version": "0.0.1",
4+
"description": "Pipedream ChartHop Components",
5+
"main": "charthop.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"charthop"
9+
],
10+
"homepage": "https://pipedream.com/apps/charthop",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/opensrs/opensrs.app.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "opensrs",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/opensrs/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/opensrs",
3+
"version": "0.0.1",
4+
"description": "Pipedream OpenSRS Components",
5+
"main": "opensrs.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"opensrs"
9+
],
10+
"homepage": "https://pipedream.com/apps/opensrs",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

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: 25 additions & 3 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
/**
@@ -787,14 +800,21 @@ export abstract class BaseClient {
787800
params.q = opts.q;
788801
}
789802
if (opts?.hasActions != null) {
790-
params.has_actions = opts.hasActions ? "1" : "0";
803+
params.has_actions = opts.hasActions
804+
? "1"
805+
: "0";
791806
}
792807
if (opts?.hasComponents != null) {
793-
params.has_components = opts.hasComponents ? "1" : "0";
808+
params.has_components = opts.hasComponents
809+
? "1"
810+
: "0";
794811
}
795812
if (opts?.hasTriggers != null) {
796-
params.has_triggers = opts.hasTriggers ? "1" : "0";
813+
params.has_triggers = opts.hasTriggers
814+
? "1"
815+
: "0";
797816
}
817+
798818
this.addRelationOpts(params, opts);
799819
return this.makeAuthorizedRequest<GetAppsResponse>(
800820
"/apps",
@@ -949,6 +969,8 @@ export abstract class BaseClient {
949969
prop_name: opts.propName,
950970
configured_props: opts.configuredProps,
951971
dynamic_props_id: opts.dynamicPropsId,
972+
page: opts.page,
973+
prev_context: opts.prevContext,
952974
};
953975
return this.makeConnectRequest<ConfigureComponentResponse>("/components/configure", {
954976
method: "POST",

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)