Skip to content

Commit 6a691ef

Browse files
committed
Video WebhookEvent type names updated
1 parent 4cf8a2a commit 6a691ef

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

libs/interfaces/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import { CreateCustomMetadataFieldOptions, CustomMetadataField, UpdateCustomMeta
1919
import { RenameFileOptions, RenameFileResponse } from "./Rename"
2020
import {
2121
WebhookEvent,
22-
WebhookEventVideoAccepted,
23-
WebhookEventVideoReady,
24-
WebhookEventVideoError,
22+
WebhookEventVideoTransformationAccepted,
23+
WebhookEventVideoTransformationReady,
24+
WebhookEventVideoTransformationError,
2525
} from "./webhookEvent";
2626

2727
type FinalUrlOptions = ImageKitOptions & UrlOptions; // actual options used to construct url
@@ -63,8 +63,8 @@ export type {
6363
RenameFileOptions,
6464
RenameFileResponse,
6565
WebhookEvent,
66-
WebhookEventVideoAccepted,
67-
WebhookEventVideoReady,
68-
WebhookEventVideoError,
66+
WebhookEventVideoTransformationAccepted,
67+
WebhookEventVideoTransformationReady,
68+
WebhookEventVideoTransformationError,
6969
};
7070
export type { IKCallback } from "./IKCallback";

libs/interfaces/webhookEvent.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ interface WebhookEventBase {
1717
}
1818

1919
/** WebhookEvent for "video.transformation.*" type */
20-
interface WebhookEventVideoBase extends WebhookEventBase {
20+
interface WebhookEventVideoTransformationBase extends WebhookEventBase {
2121
request: {
2222
x_request_id: string;
2323
url: string;
2424
user_agent: string;
2525
};
2626
}
2727

28-
export interface WebhookEventVideoAccepted extends WebhookEventVideoBase {
28+
export interface WebhookEventVideoTransformationAccepted extends WebhookEventVideoTransformationBase {
2929
type: "video.transformation.accepted";
3030
data: {
3131
asset: Asset;
@@ -36,7 +36,7 @@ export interface WebhookEventVideoAccepted extends WebhookEventVideoBase {
3636
};
3737
}
3838

39-
export interface WebhookEventVideoReady extends WebhookEventVideoBase {
39+
export interface WebhookEventVideoTransformationReady extends WebhookEventVideoTransformationBase {
4040
type: "video.transformation.ready";
4141
timings: {
4242
donwload_duration: number;
@@ -60,7 +60,7 @@ export interface WebhookEventVideoReady extends WebhookEventVideoBase {
6060
};
6161
}
6262

63-
export interface WebhookEventVideoError extends WebhookEventVideoBase {
63+
export interface WebhookEventVideoTransformationError extends WebhookEventVideoTransformationBase {
6464
type: "video.transformation.error";
6565
data: {
6666
asset: Asset;
@@ -75,6 +75,6 @@ export interface WebhookEventVideoError extends WebhookEventVideoBase {
7575
}
7676

7777
export type WebhookEvent =
78-
| WebhookEventVideoAccepted
79-
| WebhookEventVideoReady
80-
| WebhookEventVideoError;
78+
| WebhookEventVideoTransformationAccepted
79+
| WebhookEventVideoTransformationReady
80+
| WebhookEventVideoTransformationError;

0 commit comments

Comments
 (0)