Skip to content

Commit 7d69a77

Browse files
committed
SDK regeneration
1 parent 90c41ff commit 7d69a77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+738
-136
lines changed

README.md

Lines changed: 406 additions & 2 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "2.0.10",
3+
"version": "2.0.11",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",
@@ -10,11 +10,6 @@
1010
"exports": {
1111
".": {
1212
"types": "./dist/cjs/index.d.ts",
13-
"browser": {
14-
"types": "./dist/esm/browser/index.d.mts",
15-
"import": "./dist/esm/browser/index.mjs",
16-
"default": "./dist/esm/browser/index.mjs"
17-
},
1813
"import": {
1914
"types": "./dist/esm/index.d.mts",
2015
"default": "./dist/esm/index.mjs"
@@ -25,18 +20,6 @@
2520
},
2621
"default": "./dist/cjs/index.js"
2722
},
28-
"./browser": {
29-
"types": "./dist/esm/browser/index.d.mts",
30-
"import": {
31-
"types": "./dist/esm/browser/index.d.mts",
32-
"default": "./dist/esm/browser/index.mjs"
33-
},
34-
"require": {
35-
"types": "./dist/cjs/browser/index.d.ts",
36-
"default": "./dist/cjs/browser/index.js"
37-
},
38-
"default": "./dist/esm/browser/index.mjs"
39-
},
4023
"./serialization": {
4124
"types": "./dist/cjs/serialization/index.d.ts",
4225
"import": {
@@ -49,18 +32,6 @@
4932
},
5033
"default": "./dist/cjs/serialization/index.js"
5134
},
52-
"./server": {
53-
"types": "./dist/cjs/index.d.ts",
54-
"import": {
55-
"types": "./dist/esm/index.d.mts",
56-
"default": "./dist/esm/index.mjs"
57-
},
58-
"require": {
59-
"types": "./dist/cjs/index.d.ts",
60-
"default": "./dist/cjs/index.js"
61-
},
62-
"default": "./dist/cjs/index.js"
63-
},
6435
"./package.json": "./package.json"
6536
},
6637
"files": [
@@ -80,17 +51,17 @@
8051
"test:wire": "jest --selectProjects wire"
8152
},
8253
"devDependencies": {
54+
"webpack": "^5.97.1",
55+
"ts-loader": "^9.5.1",
56+
"jest": "^29.7.0",
8357
"@jest/globals": "^29.7.0",
8458
"@types/jest": "^29.5.14",
85-
"@types/node": "^18.19.70",
86-
"jest": "^29.7.0",
59+
"ts-jest": "^29.3.4",
8760
"jest-environment-jsdom": "^29.7.0",
8861
"msw": "^2.8.4",
62+
"@types/node": "^18.19.70",
8963
"prettier": "^3.4.2",
90-
"ts-jest": "^29.3.4",
91-
"ts-loader": "^9.5.1",
92-
"typescript": "~5.7.2",
93-
"webpack": "^5.97.1"
64+
"typescript": "~5.7.2"
9465
},
9566
"browser": {
9667
"fs": false,

src/api/resources/accounts/client/Client.ts

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@ export class Accounts {
5454
* @throws {@link Pipedream.TooManyRequestsError}
5555
*
5656
* @example
57-
* await client.accounts.list()
57+
* await client.accounts.list({
58+
* externalUserId: "external_user_id",
59+
* oauthAppId: "oauth_app_id",
60+
* after: "after",
61+
* before: "before",
62+
* limit: 1,
63+
* app: "app",
64+
* includeCredentials: true
65+
* })
5866
*/
5967
public async list(
6068
request: Pipedream.AccountsListRequest = {},
@@ -64,11 +72,8 @@ export class Accounts {
6472
async (
6573
request: Pipedream.AccountsListRequest,
6674
): Promise<core.WithRawResponse<Pipedream.ListAccountsResponse>> => {
67-
const { app, externalUserId, oauthAppId, after, before, limit, includeCredentials } = request;
75+
const { externalUserId, oauthAppId, after, before, limit, app, includeCredentials } = request;
6876
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
69-
if (app != null) {
70-
_queryParams["app"] = app;
71-
}
7277
if (externalUserId != null) {
7378
_queryParams["external_user_id"] = externalUserId;
7479
}
@@ -84,6 +89,9 @@ export class Accounts {
8489
if (limit != null) {
8590
_queryParams["limit"] = limit.toString();
8691
}
92+
if (app != null) {
93+
_queryParams["app"] = app;
94+
}
8795
if (includeCredentials != null) {
8896
_queryParams["include_credentials"] = includeCredentials.toString();
8997
}
@@ -158,11 +166,11 @@ export class Accounts {
158166
response: dataWithRawResponse.data,
159167
rawResponse: dataWithRawResponse.rawResponse,
160168
hasNextPage: (response) =>
161-
response?.pageInfo?.endCursor != null &&
162-
!(typeof response?.pageInfo?.endCursor === "string" && response?.pageInfo?.endCursor === ""),
169+
response?.pageInfo.endCursor != null &&
170+
!(typeof response?.pageInfo.endCursor === "string" && response?.pageInfo.endCursor === ""),
163171
getItems: (response) => response?.data ?? [],
164172
loadPage: (response) => {
165-
return list(core.setObjectProperty(request, "after", response?.pageInfo?.endCursor));
173+
return list(core.setObjectProperty(request, "after", response?.pageInfo.endCursor));
166174
},
167175
});
168176
}
@@ -177,6 +185,8 @@ export class Accounts {
177185
*
178186
* @example
179187
* await client.accounts.create({
188+
* externalUserId: "external_user_id",
189+
* oauthAppId: "oauth_app_id",
180190
* appSlug: "app_slug",
181191
* cfmapJson: "cfmap_json",
182192
* connectToken: "connect_token"
@@ -193,12 +203,8 @@ export class Accounts {
193203
request: Pipedream.CreateAccountOpts,
194204
requestOptions?: Accounts.RequestOptions,
195205
): Promise<core.WithRawResponse<Pipedream.Account>> {
196-
const { appId, externalUserId, oauthAppId, ..._body } = request;
206+
const { externalUserId, oauthAppId, ..._body } = request;
197207
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
198-
if (appId != null) {
199-
_queryParams["app_id"] = appId;
200-
}
201-
202208
if (externalUserId != null) {
203209
_queryParams["external_user_id"] = externalUserId;
204210
}
@@ -290,7 +296,9 @@ export class Accounts {
290296
* @throws {@link Pipedream.TooManyRequestsError}
291297
*
292298
* @example
293-
* await client.accounts.retrieve("account_id")
299+
* await client.accounts.retrieve("account_id", {
300+
* includeCredentials: true
301+
* })
294302
*/
295303
public retrieve(
296304
accountId: string,

src/api/resources/accounts/client/requests/AccountsListRequest.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44

55
/**
66
* @example
7-
* {}
7+
* {
8+
* externalUserId: "external_user_id",
9+
* oauthAppId: "oauth_app_id",
10+
* after: "after",
11+
* before: "before",
12+
* limit: 1,
13+
* app: "app",
14+
* includeCredentials: true
15+
* }
816
*/
917
export interface AccountsListRequest {
10-
/** The app slug or ID to filter accounts by. */
11-
app?: string;
1218
externalUserId?: string;
1319
/** The OAuth app ID to filter by, if applicable */
1420
oauthAppId?: string;
@@ -18,6 +24,8 @@ export interface AccountsListRequest {
1824
before?: string;
1925
/** The maximum number of results to return */
2026
limit?: number;
27+
/** The app slug or ID to filter accounts by. */
28+
app?: string;
2129
/** Whether to retrieve the account's credentials or not */
2230
includeCredentials?: boolean;
2331
}

src/api/resources/accounts/client/requests/AccountsRetrieveRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
/**
66
* @example
7-
* {}
7+
* {
8+
* includeCredentials: true
9+
* }
810
*/
911
export interface AccountsRetrieveRequest {
1012
/** Whether to retrieve the account's credentials or not */

src/api/resources/accounts/client/requests/CreateAccountOpts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
/**
66
* @example
77
* {
8+
* externalUserId: "external_user_id",
9+
* oauthAppId: "oauth_app_id",
810
* appSlug: "app_slug",
911
* cfmapJson: "cfmap_json",
1012
* connectToken: "connect_token"
1113
* }
1214
*/
1315
export interface CreateAccountOpts {
14-
/** The app slug or ID to filter accounts by. */
15-
appId?: string;
1616
externalUserId?: string;
1717
/** The OAuth app ID to filter by, if applicable */
1818
oauthAppId?: string;

src/api/resources/actions/client/Client.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ export class Actions {
5454
* @throws {@link Pipedream.TooManyRequestsError}
5555
*
5656
* @example
57-
* await client.actions.list()
57+
* await client.actions.list({
58+
* after: "after",
59+
* before: "before",
60+
* limit: 1,
61+
* q: "q",
62+
* app: "app"
63+
* })
5864
*/
5965
public async list(
6066
request: Pipedream.ActionsListRequest = {},
@@ -152,11 +158,11 @@ export class Actions {
152158
response: dataWithRawResponse.data,
153159
rawResponse: dataWithRawResponse.rawResponse,
154160
hasNextPage: (response) =>
155-
response?.pageInfo?.endCursor != null &&
156-
!(typeof response?.pageInfo?.endCursor === "string" && response?.pageInfo?.endCursor === ""),
161+
response?.pageInfo.endCursor != null &&
162+
!(typeof response?.pageInfo.endCursor === "string" && response?.pageInfo.endCursor === ""),
157163
getItems: (response) => response?.data ?? [],
158164
loadPage: (response) => {
159-
return list(core.setObjectProperty(request, "after", response?.pageInfo?.endCursor));
165+
return list(core.setObjectProperty(request, "after", response?.pageInfo.endCursor));
160166
},
161167
});
162168
}

src/api/resources/actions/client/requests/ActionsListRequest.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44

55
/**
66
* @example
7-
* {}
7+
* {
8+
* after: "after",
9+
* before: "before",
10+
* limit: 1,
11+
* q: "q",
12+
* app: "app"
13+
* }
814
*/
915
export interface ActionsListRequest {
1016
/** The cursor to start from for pagination */

src/api/resources/apps/client/Client.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ export class Apps {
5252
* @param {Apps.RequestOptions} requestOptions - Request-specific configuration.
5353
*
5454
* @example
55-
* await client.apps.list()
55+
* await client.apps.list({
56+
* after: "after",
57+
* before: "before",
58+
* limit: 1,
59+
* q: "q",
60+
* sortKey: "name",
61+
* sortDirection: "asc"
62+
* })
5663
*/
5764
public async list(
5865
request: Pipedream.AppsListRequest = {},
@@ -157,11 +164,11 @@ export class Apps {
157164
response: dataWithRawResponse.data,
158165
rawResponse: dataWithRawResponse.rawResponse,
159166
hasNextPage: (response) =>
160-
response?.pageInfo?.endCursor != null &&
161-
!(typeof response?.pageInfo?.endCursor === "string" && response?.pageInfo?.endCursor === ""),
167+
response?.pageInfo.endCursor != null &&
168+
!(typeof response?.pageInfo.endCursor === "string" && response?.pageInfo.endCursor === ""),
162169
getItems: (response) => response?.data ?? [],
163170
loadPage: (response) => {
164-
return list(core.setObjectProperty(request, "after", response?.pageInfo?.endCursor));
171+
return list(core.setObjectProperty(request, "after", response?.pageInfo.endCursor));
165172
},
166173
});
167174
}

src/api/resources/apps/client/requests/AppsListRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ import * as Pipedream from "../../../../index.js";
66

77
/**
88
* @example
9-
* {}
9+
* {
10+
* after: "after",
11+
* before: "before",
12+
* limit: 1,
13+
* q: "q",
14+
* sortKey: "name",
15+
* sortDirection: "asc"
16+
* }
1017
*/
1118
export interface AppsListRequest {
1219
/** The cursor to start from for pagination */

0 commit comments

Comments
 (0)