Skip to content

Commit 20cffe7

Browse files
committed
Refactor the Proxy interfaces to use camelCase
* Update `Proxy*` types to use camelCase * Bump version
1 parent 16f9d36 commit 20cffe7

File tree

9 files changed

+39
-39
lines changed

9 files changed

+39
-39
lines changed

MIGRATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ incrementally without breaking your existing codebase. To do this, you can
849849
install the new SDK with an alias:
850850

851851
```bash
852-
npm install @pipedream/sdk-v2@npm:@pipedream/sdk@^2.0.0-rc.8 --save
852+
npm install @pipedream/sdk-v2@npm:@pipedream/sdk@^2.0.0-rc.9 --save
853853
```
854854

855855
Then, in your code, you can import the new SDK with the alias:

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": "2.0.0-rc.8",
3+
"version": "2.0.0-rc.9",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export class PipedreamClient {
7474
"x-pd-environment": _options?.projectEnvironment,
7575
"X-Fern-Language": "JavaScript",
7676
"X-Fern-SDK-Name": "@pipedream/sdk",
77-
"X-Fern-SDK-Version": "2.0.0-rc.8",
78-
"User-Agent": "@pipedream/sdk/2.0.0-rc.8",
77+
"X-Fern-SDK-Version": "2.0.0-rc.9",
78+
"User-Agent": "@pipedream/sdk/2.0.0-rc.9",
7979
"X-Fern-Runtime": core.RUNTIME.type,
8080
"X-Fern-Runtime-Version": core.RUNTIME.version,
8181
},

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export class Proxy {
6565
* @example
6666
* await client.proxy.get({
6767
* url: "https://api.example.com/endpoint",
68-
* external_user_id: "external_user_id",
69-
* account_id: "account_id",
68+
* externalUserId: "external_user_id",
69+
* accountId: "account_id",
7070
* params: { key: "value" },
7171
* headers: { "X-Custom-Header": "value" }
7272
* })
@@ -82,7 +82,7 @@ export class Proxy {
8282
request: Pipedream.ProxyGetRequest,
8383
requestOptions?: Proxy.RequestOptions,
8484
): Promise<core.WithRawResponse<Pipedream.ProxyResponse | undefined>> {
85-
const { url, external_user_id: externalUserId, account_id: accountId, params, headers } = request;
85+
const { url, externalUserId, accountId, params, headers } = request;
8686
const url64 = base64Encode(url);
8787
const transformedHeaders = this.transformProxyHeaders(headers);
8888
const _queryParams: Record<string, string | string[] | object | object[] | null> = {
@@ -150,8 +150,8 @@ export class Proxy {
150150
* @example
151151
* await client.proxy.post({
152152
* url: "https://api.example.com/endpoint",
153-
* external_user_id: "external_user_id",
154-
* account_id: "account_id",
153+
* externalUserId: "external_user_id",
154+
* accountId: "account_id",
155155
* body: { "key": "value" },
156156
* params: { key: "value" },
157157
* headers: { "X-Custom-Header": "value" }
@@ -168,7 +168,7 @@ export class Proxy {
168168
request: Pipedream.ProxyPostRequest,
169169
requestOptions?: Proxy.RequestOptions,
170170
): Promise<core.WithRawResponse<Pipedream.ProxyResponse | undefined>> {
171-
const { url, external_user_id: externalUserId, account_id: accountId, body, params, headers } = request;
171+
const { url, externalUserId, accountId, body, params, headers } = request;
172172
const url64 = base64Encode(url);
173173
const transformedHeaders = this.transformProxyHeaders(headers);
174174
const _queryParams: Record<string, string | string[] | object | object[] | null> = {
@@ -239,8 +239,8 @@ export class Proxy {
239239
* @example
240240
* await client.proxy.put({
241241
* url: "https://api.example.com/endpoint",
242-
* external_user_id: "external_user_id",
243-
* account_id: "account_id",
242+
* externalUserId: "external_user_id",
243+
* accountId: "account_id",
244244
* body: { "key": "value" },
245245
* params: { key: "value" },
246246
* headers: { "X-Custom-Header": "value" }
@@ -257,7 +257,7 @@ export class Proxy {
257257
request: Pipedream.ProxyPutRequest,
258258
requestOptions?: Proxy.RequestOptions,
259259
): Promise<core.WithRawResponse<Pipedream.ProxyResponse | undefined>> {
260-
const { url, external_user_id: externalUserId, account_id: accountId, body, params, headers } = request;
260+
const { url, externalUserId, accountId, body, params, headers } = request;
261261
const url64 = base64Encode(url);
262262
const transformedHeaders = this.transformProxyHeaders(headers);
263263
const _queryParams: Record<string, string | string[] | object | object[] | null> = {
@@ -328,8 +328,8 @@ export class Proxy {
328328
* @example
329329
* await client.proxy.delete({
330330
* url: "https://api.example.com/endpoint",
331-
* external_user_id: "external_user_id",
332-
* account_id: "account_id",
331+
* externalUserId: "external_user_id",
332+
* accountId: "account_id",
333333
* params: { key: "value" },
334334
* headers: { "X-Custom-Header": "value" }
335335
* })
@@ -345,7 +345,7 @@ export class Proxy {
345345
request: Pipedream.ProxyDeleteRequest,
346346
requestOptions?: Proxy.RequestOptions,
347347
): Promise<core.WithRawResponse<Pipedream.ProxyResponse | undefined>> {
348-
const { url, external_user_id: externalUserId, account_id: accountId, params, headers } = request;
348+
const { url, externalUserId, accountId, params, headers } = request;
349349
const url64 = base64Encode(url);
350350
const transformedHeaders = this.transformProxyHeaders(headers);
351351
const _queryParams: Record<string, string | string[] | object | object[] | null> = {
@@ -413,8 +413,8 @@ export class Proxy {
413413
* @example
414414
* await client.proxy.patch({
415415
* url: "https://api.example.com/endpoint",
416-
* external_user_id: "external_user_id",
417-
* account_id: "account_id",
416+
* externalUserId: "external_user_id",
417+
* accountId: "account_id",
418418
* body: { "key": "value" },
419419
* params: { key: "value" },
420420
* headers: { "X-Custom-Header": "value" }
@@ -431,7 +431,7 @@ export class Proxy {
431431
request: Pipedream.ProxyPatchRequest,
432432
requestOptions?: Proxy.RequestOptions,
433433
): Promise<core.WithRawResponse<Pipedream.ProxyResponse | undefined>> {
434-
const { url, external_user_id: externalUserId, account_id: accountId, body, params, headers } = request;
434+
const { url, externalUserId, accountId, body, params, headers } = request;
435435
const url64 = base64Encode(url);
436436
const transformedHeaders = this.transformProxyHeaders(headers);
437437
const _queryParams: Record<string, string | string[] | object | object[] | null> = {

src/api/resources/proxy/client/requests/ProxyDeleteRequest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import * as core from "../../../../../core/index.js";
88
* @example
99
* {
1010
* url: "https://api.example.com/endpoint",
11-
* external_user_id: "external_user_id",
12-
* account_id: "account_id",
11+
* externalUserId: "external_user_id",
12+
* accountId: "account_id",
1313
* params: { page: "1", limit: "10" },
1414
* headers: { "X-Custom-Header": "value" }
1515
* }
@@ -22,11 +22,11 @@ export interface ProxyDeleteRequest {
2222
/**
2323
* The external user ID for the proxy request
2424
*/
25-
external_user_id: string;
25+
externalUserId: string;
2626
/**
2727
* The account ID to use for authentication
2828
*/
29-
account_id: string;
29+
accountId: string;
3030
/**
3131
* Query parameters to forward
3232
*/

src/api/resources/proxy/client/requests/ProxyGetRequest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import * as core from "../../../../../core/index.js";
88
* @example
99
* {
1010
* url: "https://api.example.com/endpoint",
11-
* external_user_id: "external_user_id",
12-
* account_id: "account_id",
11+
* externalUserId: "external_user_id",
12+
* accountId: "account_id",
1313
* params: { page: "1", limit: "10" },
1414
* headers: { "X-Custom-Header": "value" }
1515
* }
@@ -22,11 +22,11 @@ export interface ProxyGetRequest {
2222
/**
2323
* The external user ID for the proxy request
2424
*/
25-
external_user_id: string;
25+
externalUserId: string;
2626
/**
2727
* The account ID to use for authentication
2828
*/
29-
account_id: string;
29+
accountId: string;
3030
/**
3131
* Query parameters to forward
3232
*/

src/api/resources/proxy/client/requests/ProxyPatchRequest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import * as core from "../../../../../core/index.js";
88
* @example
99
* {
1010
* url: "https://api.example.com/endpoint",
11-
* external_user_id: "external_user_id",
12-
* account_id: "account_id",
11+
* externalUserId: "external_user_id",
12+
* accountId: "account_id",
1313
* body: {
1414
* "key": "value"
1515
* },
@@ -25,11 +25,11 @@ export interface ProxyPatchRequest {
2525
/**
2626
* The external user ID for the proxy request
2727
*/
28-
external_user_id: string;
28+
externalUserId: string;
2929
/**
3030
* The account ID to use for authentication
3131
*/
32-
account_id: string;
32+
accountId: string;
3333
/**
3434
* Request body to forward to the target API
3535
*/

src/api/resources/proxy/client/requests/ProxyPostRequest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import * as core from "../../../../../core/index.js";
88
* @example
99
* {
1010
* url: "https://api.example.com/endpoint",
11-
* external_user_id: "external_user_id",
12-
* account_id: "account_id",
11+
* externalUserId: "external_user_id",
12+
* accountId: "account_id",
1313
* body: {
1414
* "key": "value"
1515
* },
@@ -25,11 +25,11 @@ export interface ProxyPostRequest {
2525
/**
2626
* The external user ID for the proxy request
2727
*/
28-
external_user_id: string;
28+
externalUserId: string;
2929
/**
3030
* The account ID to use for authentication
3131
*/
32-
account_id: string;
32+
accountId: string;
3333
/**
3434
* Request body to forward to the target API
3535
*/

src/api/resources/proxy/client/requests/ProxyPutRequest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import * as core from "../../../../../core/index.js";
88
* @example
99
* {
1010
* url: "https://api.example.com/endpoint",
11-
* external_user_id: "external_user_id",
12-
* account_id: "account_id",
11+
* externalUserId: "external_user_id",
12+
* accountId: "account_id",
1313
* body: {
1414
* "key": "value"
1515
* },
@@ -25,11 +25,11 @@ export interface ProxyPutRequest {
2525
/**
2626
* The external user ID for the proxy request
2727
*/
28-
external_user_id: string;
28+
externalUserId: string;
2929
/**
3030
* The account ID to use for authentication
3131
*/
32-
account_id: string;
32+
accountId: string;
3333
/**
3434
* Request body to forward to the target API
3535
*/

0 commit comments

Comments
 (0)