Skip to content
Open
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
43 changes: 7 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/sdk",
"version": "2.0.7",
"version": "2.0.8",
"private": false,
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
"type": "commonjs",
Expand All @@ -10,11 +10,6 @@
"exports": {
".": {
"types": "./dist/cjs/index.d.ts",
"browser": {
"types": "./dist/esm/browser/index.d.mts",
"import": "./dist/esm/browser/index.mjs",
"default": "./dist/esm/browser/index.mjs"
},
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
Expand All @@ -25,18 +20,6 @@
},
"default": "./dist/cjs/index.js"
},
"./browser": {
"types": "./dist/esm/browser/index.d.mts",
"import": {
"types": "./dist/esm/browser/index.d.mts",
"default": "./dist/esm/browser/index.mjs"
},
"require": {
"types": "./dist/cjs/browser/index.d.ts",
"default": "./dist/cjs/browser/index.js"
},
"default": "./dist/esm/browser/index.mjs"
},
"./serialization": {
"types": "./dist/cjs/serialization/index.d.ts",
"import": {
Expand All @@ -49,18 +32,6 @@
},
"default": "./dist/cjs/serialization/index.js"
},
"./server": {
"types": "./dist/cjs/index.d.ts",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"default": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"files": [
Expand All @@ -80,17 +51,17 @@
"test:wire": "jest --selectProjects wire"
},
"devDependencies": {
"webpack": "^5.97.1",
"ts-loader": "^9.5.1",
"jest": "^29.7.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"@types/node": "^18.19.70",
"jest": "^29.7.0",
"ts-jest": "^29.3.4",
"jest-environment-jsdom": "^29.7.0",
"msw": "^2.8.4",
"@types/node": "^18.19.70",
"prettier": "^3.4.2",
"ts-jest": "^29.3.4",
"ts-loader": "^9.5.1",
"typescript": "~5.7.2",
"webpack": "^5.97.1"
"typescript": "~5.7.2"
},
"browser": {
"fs": false,
Expand Down
3 changes: 2 additions & 1 deletion src/api/resources/actions/client/requests/RunActionOpts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export interface RunActionOpts {
id: string;
/** The external user ID */
externalUserId: string;
configuredProps?: Pipedream.ConfiguredProps;
/** The configured properties for the action */
configuredProps?: Record<string, unknown>;
/** The ID for dynamic props */
dynamicPropsId?: string;
stashId?: Pipedream.RunActionOptsStashId;
Expand Down
10 changes: 2 additions & 8 deletions src/api/resources/components/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import * as environments from "../../../../environments.js";
import * as core from "../../../../core/index.js";
import * as Pipedream from "../../../index.js";
import * as serializers from "../../../../serialization/index.js";
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
import * as serializers from "../../../../serialization/index.js";
import * as errors from "../../../../errors/index.js";

export declare namespace Components {
Expand Down Expand Up @@ -64,7 +64,7 @@ export class Components {
async (
request: Pipedream.ComponentsListRequest,
): Promise<core.WithRawResponse<Pipedream.GetComponentsResponse>> => {
const { after, before, limit, q, app, componentType } = request;
const { after, before, limit, q, app } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (after != null) {
_queryParams["after"] = after;
Expand All @@ -81,12 +81,6 @@ export class Components {
if (app != null) {
_queryParams["app"] = app;
}
if (componentType != null) {
_queryParams["component_type"] = serializers.ComponentType.jsonOrThrow(componentType, {
unrecognizedObjectKeys: "strip",
omitUndefined: true,
});
}
let _headers: core.Fetcher.Args["headers"] = mergeHeaders(
this._options?.headers,
mergeOnlyDefinedHeaders({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Pipedream from "../../../../index.js";

/**
* @example
* {}
Expand All @@ -19,6 +17,4 @@ export interface ComponentsListRequest {
q?: string;
/** The ID or name slug of the app to filter the components */
app?: string;
/** The type of the component to filter the components */
componentType?: Pipedream.ComponentType;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Pipedream from "../../../../index.js";

/**
* @example
* {
Expand All @@ -15,7 +13,8 @@ export interface UpdateTriggerOpts {
externalUserId: string;
/** Whether the trigger should be active */
active?: boolean;
configuredProps?: Pipedream.ConfiguredProps;
/** The configured properties for the trigger */
configuredProps?: Record<string, unknown>;
/** The name of the trigger */
name?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Pipedream from "../../../../index.js";

/**
* @example
* {
Expand All @@ -16,7 +14,8 @@ export interface DeployTriggerOpts {
id: string;
/** The external user ID */
externalUserId: string;
configuredProps?: Pipedream.ConfiguredProps;
/** The configured properties for the trigger */
configuredProps?: Record<string, unknown>;
/** The ID for dynamic props */
dynamicPropsId?: string;
/** Optional webhook URL to receive trigger events */
Expand Down
3 changes: 2 additions & 1 deletion src/api/types/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import * as Pipedream from "../index.js";
* End user account data, returned from the API.
*/
export interface Account {
id: Pipedream.AccountId;
/** The unique ID of the account. */
id: string;
/** The custom name of the account if set. */
name?: string;
/** The external ID associated with the account. */
Expand Down
8 changes: 0 additions & 8 deletions src/api/types/AccountId.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/api/types/ComponentType.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/api/types/ConfigurableProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Pipedream from "../index.js";

/**
* A configuration or input field for a component.
*/
export interface ConfigurableProp {
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
type: Pipedream.ConfigurablePropType;
type?: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
label?: string;
/** A description of the prop, shown to the user when configuring the component. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableBaseId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableBaseId {
type: "$.airtable.baseId";
type?: "$.airtable.baseId";
/** The name of the app prop that provides Airtable authentication */
appProp: string;
appProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableFieldId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableFieldId {
type: "$.airtable.fieldId";
type?: "$.airtable.fieldId";
/** The name of the prop that provides the Airtable table ID */
tableIdProp: string;
tableIdProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableTableId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableTableId {
type: "$.airtable.tableId";
type?: "$.airtable.tableId";
/** The name of the prop that provides the Airtable base ID */
baseIdProp: string;
baseIdProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableViewId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableViewId {
type: "$.airtable.viewId";
type?: "$.airtable.viewId";
/** The name of the prop that provides the Airtable table ID */
tableIdProp: string;
tableIdProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAlert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import * as Pipedream from "../index.js";

export interface ConfigurablePropAlert {
type: "alert";
type?: "alert";
alertType?: Pipedream.ConfigurablePropAlertType;
/** The content of the alert, which can include HTML or plain text. */
content: string;
content?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropAny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropAny {
type: "any";
type?: "any";
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropApp {
type: "app";
type?: "app";
/** The name slug of the app, e.g. 'github', 'slack', etc. This is used to identify the app for which the account is being configured. */
app: string;
app?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropApphook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropApphook {
type: "$.interface.apphook";
type?: "$.interface.apphook";
/** The name of the app prop that this apphook depends on */
appProp: string;
appProp?: string;
/** List of event names to listen for */
eventNames?: string[];
/** Whether this apphook is remote */
Expand Down
4 changes: 1 addition & 3 deletions src/api/types/ConfigurablePropBoolean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
*/

export interface ConfigurablePropBoolean {
type: "boolean";
/** The default value for this prop */
default?: boolean;
type?: "boolean";
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropDb {
type: "$.service.db";
type?: "$.service.db";
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropDiscord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropDiscord {
type: "$.discord.channel";
type?: "$.discord.channel";
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropDiscordChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropDiscordChannel {
type: "$.discord.channel";
type?: "$.discord.channel";
/** The name of the app prop that provides Discord authentication */
appProp: string;
appProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropDiscordChannelArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropDiscordChannelArray {
type: "$.discord.channel[]";
type?: "$.discord.channel[]";
/** The name of the app prop that provides Discord authentication */
appProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropHttp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropHttp {
type: "$.interface.http";
type?: "$.interface.http";
/** Whether this HTTP interface allows custom responses */
customResponse?: boolean;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropInteger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropInteger {
type: "integer";
type?: "integer";
/** The minimum value for this integer prop. */
min?: number;
/** The maximum value for this integer prop. */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropIntegerArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropIntegerArray {
type: "integer[]";
type?: "integer[]";
/** The minimum value for integers in this array */
min?: number;
/** The maximum value for integers in this array */
Expand Down
Loading
Loading