Skip to content

Commit 7d0a6ca

Browse files
committed
Fix DeployTriggerResponse (union of dc/ti/hi)
1 parent 48f0f6d commit 7d0a6ca

12 files changed

+136
-6
lines changed

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

src/api/types/DeployTriggerResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import * as Pipedream from "../index.js";
88
* Response received after deploying a trigger
99
*/
1010
export interface DeployTriggerResponse {
11-
data: Pipedream.DeployedComponent;
11+
data: Pipedream.DeployTriggerResponseData;
1212
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Pipedream from "../index.js";
6+
7+
export type DeployTriggerResponseData =
8+
| Pipedream.DeployedComponent
9+
| Pipedream.HttpInterface
10+
| Pipedream.TimerInterface;

src/api/types/HttpInterface.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* An HTTP interface instance
7+
*/
8+
export interface HttpInterface {
9+
/** The unique ID of the HTTP interface */
10+
id: string;
11+
key: string;
12+
endpointUrl: string;
13+
customResponse: boolean;
14+
/** The timestamp when the HTTP interface was created (epoch milliseconds) */
15+
createdAt: number;
16+
/** The timestamp when the HTTP interface was last updated (epoch milliseconds) */
17+
updatedAt?: number;
18+
}

src/api/types/TimerInterface.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* A timer interface instance
7+
*/
8+
export interface TimerInterface {
9+
/** The unique ID of the timer interface */
10+
id: string;
11+
intervalSeconds?: number;
12+
cron?: string;
13+
timezone: string;
14+
scheduleChangedAt: number;
15+
/** The timestamp when the timer interface was created (epoch milliseconds) */
16+
createdAt: number;
17+
/** The timestamp when the timer interface was last updated (epoch milliseconds) */
18+
updatedAt?: number;
19+
}

src/api/types/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export * from "./CreateTokenResponse.js";
5656
export * from "./DeleteTriggerOpts.js";
5757
export * from "./DeployedComponent.js";
5858
export * from "./DeployTriggerResponse.js";
59+
export * from "./DeployTriggerResponseData.js";
5960
export * from "./DynamicProps.js";
6061
export * from "./EmittedEvent.js";
6162
export * from "./ErrorResponse.js";
@@ -71,6 +72,7 @@ export * from "./GetTriggersResponse.js";
7172
export * from "./GetTriggerWebhooksResponse.js";
7273
export * from "./GetTriggerWorkflowsResponse.js";
7374
export * from "./HTTPAuthType.js";
75+
export * from "./HttpInterface.js";
7476
export * from "./ListAccountsResponse.js";
7577
export * from "./ListAppCategoriesResponse.js";
7678
export * from "./ListAppsResponse.js";
@@ -91,6 +93,7 @@ export * from "./RunActionResponse.js";
9193
export * from "./StartConnectOpts.js";
9294
export * from "./StashId.js";
9395
export * from "./TimerCron.js";
96+
export * from "./TimerInterface.js";
9497
export * from "./TimerInterval.js";
9598
export * from "./TooManyRequestsErrorBody.js";
9699
export * from "./ValidateTokenResponse.js";

src/serialization/types/DeployTriggerResponse.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
import * as serializers from "../index.js";
66
import * as Pipedream from "../../api/index.js";
77
import * as core from "../../core/index.js";
8-
import { DeployedComponent } from "./DeployedComponent.js";
8+
import { DeployTriggerResponseData } from "./DeployTriggerResponseData.js";
99

1010
export const DeployTriggerResponse: core.serialization.ObjectSchema<
1111
serializers.DeployTriggerResponse.Raw,
1212
Pipedream.DeployTriggerResponse
1313
> = core.serialization.object({
14-
data: DeployedComponent,
14+
data: DeployTriggerResponseData,
1515
});
1616

1717
export declare namespace DeployTriggerResponse {
1818
export interface Raw {
19-
data: DeployedComponent.Raw;
19+
data: DeployTriggerResponseData.Raw;
2020
}
2121
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index.js";
6+
import * as Pipedream from "../../api/index.js";
7+
import * as core from "../../core/index.js";
8+
import { DeployedComponent } from "./DeployedComponent.js";
9+
import { HttpInterface } from "./HttpInterface.js";
10+
import { TimerInterface } from "./TimerInterface.js";
11+
12+
export const DeployTriggerResponseData: core.serialization.Schema<
13+
serializers.DeployTriggerResponseData.Raw,
14+
Pipedream.DeployTriggerResponseData
15+
> = core.serialization.undiscriminatedUnion([DeployedComponent, HttpInterface, TimerInterface]);
16+
17+
export declare namespace DeployTriggerResponseData {
18+
export type Raw = DeployedComponent.Raw | HttpInterface.Raw | TimerInterface.Raw;
19+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index.js";
6+
import * as Pipedream from "../../api/index.js";
7+
import * as core from "../../core/index.js";
8+
9+
export const HttpInterface: core.serialization.ObjectSchema<serializers.HttpInterface.Raw, Pipedream.HttpInterface> =
10+
core.serialization.object({
11+
id: core.serialization.string(),
12+
key: core.serialization.string(),
13+
endpointUrl: core.serialization.property("endpoint_url", core.serialization.string()),
14+
customResponse: core.serialization.property("custom_response", core.serialization.boolean()),
15+
createdAt: core.serialization.property("created_at", core.serialization.number()),
16+
updatedAt: core.serialization.property("updated_at", core.serialization.number().optional()),
17+
});
18+
19+
export declare namespace HttpInterface {
20+
export interface Raw {
21+
id: string;
22+
key: string;
23+
endpoint_url: string;
24+
custom_response: boolean;
25+
created_at: number;
26+
updated_at?: number | null;
27+
}
28+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index.js";
6+
import * as Pipedream from "../../api/index.js";
7+
import * as core from "../../core/index.js";
8+
9+
export const TimerInterface: core.serialization.ObjectSchema<serializers.TimerInterface.Raw, Pipedream.TimerInterface> =
10+
core.serialization.object({
11+
id: core.serialization.string(),
12+
intervalSeconds: core.serialization.property("interval_seconds", core.serialization.number().optional()),
13+
cron: core.serialization.string().optional(),
14+
timezone: core.serialization.string(),
15+
scheduleChangedAt: core.serialization.property("schedule_changed_at", core.serialization.number()),
16+
createdAt: core.serialization.property("created_at", core.serialization.number()),
17+
updatedAt: core.serialization.property("updated_at", core.serialization.number().optional()),
18+
});
19+
20+
export declare namespace TimerInterface {
21+
export interface Raw {
22+
id: string;
23+
interval_seconds?: number | null;
24+
cron?: string | null;
25+
timezone: string;
26+
schedule_changed_at: number;
27+
created_at: number;
28+
updated_at?: number | null;
29+
}
30+
}

0 commit comments

Comments
 (0)