diff --git a/package.json b/package.json index 583b2c3..6dd3673 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/sdk", - "version": "2.0.11", + "version": "2.0.12", "private": false, "repository": "github:PipedreamHQ/pipedream-sdk-typescript", "type": "commonjs", diff --git a/src/api/types/GetTriggerResponse.ts b/src/api/types/GetTriggerResponse.ts index 18ae164..f4752e7 100644 --- a/src/api/types/GetTriggerResponse.ts +++ b/src/api/types/GetTriggerResponse.ts @@ -8,5 +8,5 @@ import * as Pipedream from "../index.js"; * Response received when retrieving a deployed trigger */ export interface GetTriggerResponse { - data: Pipedream.DeployedComponent; + data: Pipedream.GetTriggerResponseData; } diff --git a/src/api/types/GetTriggerResponseData.ts b/src/api/types/GetTriggerResponseData.ts new file mode 100644 index 0000000..f5e7415 --- /dev/null +++ b/src/api/types/GetTriggerResponseData.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Pipedream from "../index.js"; + +export type GetTriggerResponseData = Pipedream.DeployedComponent | Pipedream.HttpInterface | Pipedream.TimerInterface; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 5bd33b5..586b98b 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -76,6 +76,7 @@ export * from "./GetComponentResponse.js"; export * from "./GetComponentsResponse.js"; export * from "./GetTriggerEventsResponse.js"; export * from "./GetTriggerResponse.js"; +export * from "./GetTriggerResponseData.js"; export * from "./GetTriggersResponse.js"; export * from "./GetTriggerWebhooksResponse.js"; export * from "./GetTriggerWorkflowsResponse.js"; diff --git a/src/serialization/types/GetTriggerResponse.ts b/src/serialization/types/GetTriggerResponse.ts index 22d173a..4804b7e 100644 --- a/src/serialization/types/GetTriggerResponse.ts +++ b/src/serialization/types/GetTriggerResponse.ts @@ -5,17 +5,17 @@ import * as serializers from "../index.js"; import * as Pipedream from "../../api/index.js"; import * as core from "../../core/index.js"; -import { DeployedComponent } from "./DeployedComponent.js"; +import { GetTriggerResponseData } from "./GetTriggerResponseData.js"; export const GetTriggerResponse: core.serialization.ObjectSchema< serializers.GetTriggerResponse.Raw, Pipedream.GetTriggerResponse > = core.serialization.object({ - data: DeployedComponent, + data: GetTriggerResponseData, }); export declare namespace GetTriggerResponse { export interface Raw { - data: DeployedComponent.Raw; + data: GetTriggerResponseData.Raw; } } diff --git a/src/serialization/types/GetTriggerResponseData.ts b/src/serialization/types/GetTriggerResponseData.ts new file mode 100644 index 0000000..0151002 --- /dev/null +++ b/src/serialization/types/GetTriggerResponseData.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; +import { DeployedComponent } from "./DeployedComponent.js"; +import { HttpInterface } from "./HttpInterface.js"; +import { TimerInterface } from "./TimerInterface.js"; + +export const GetTriggerResponseData: core.serialization.Schema< + serializers.GetTriggerResponseData.Raw, + Pipedream.GetTriggerResponseData +> = core.serialization.undiscriminatedUnion([DeployedComponent, HttpInterface, TimerInterface]); + +export declare namespace GetTriggerResponseData { + export type Raw = DeployedComponent.Raw | HttpInterface.Raw | TimerInterface.Raw; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 3483f3c..34f8dda 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -79,6 +79,7 @@ export * from "./GetAppsResponse.js"; export * from "./GetComponentResponse.js"; export * from "./GetComponentsResponse.js"; export * from "./GetTriggerEventsResponse.js"; +export * from "./GetTriggerResponseData.js"; export * from "./GetTriggerResponse.js"; export * from "./GetTriggerWebhooksResponse.js"; export * from "./GetTriggerWorkflowsResponse.js"; diff --git a/src/version.ts b/src/version.ts index 97a5322..7cb97ec 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.0.11"; +export const SDK_VERSION = "2.0.12";