btch-downloader-fana
Version:
Social Media Downloader.
116 lines (115 loc) • 2.8 kB
TypeScript
export interface BaseResponse {
developer: string;
status?: boolean;
message?: string;
note?: string;
}
export interface InstagramItem {
thumbnail: string;
url: string;
}
export interface InstagramResponse extends BaseResponse {
result?: InstagramItem[] | {
thumbnail: string;
url: string;
}[];
}
export interface TikTokResponse extends BaseResponse {
title?: string;
title_audio?: string;
thumbnail?: string;
video?: string[];
audio?: string[];
}
export interface TwitterResponse extends BaseResponse {
title?: string;
url?: string;
}
export interface YouTubeResponse extends BaseResponse {
title?: string;
thumbnail?: string;
author?: string;
mp3?: string;
mp4?: string;
}
export interface FacebookResponse extends BaseResponse {
Normal_video?: string;
HD?: string;
}
export interface MediaFireResponse extends BaseResponse {
result?: {
filename: string;
filesize: string;
filesizeH?: string;
type?: string;
upload_date?: string;
owner?: string;
ext?: string;
mimetype?: string;
url?: string;
};
}
export interface CapCutResponse extends BaseResponse {
url?: string;
data?: {
"@context"?: string;
"@type"?: string;
name?: string;
description?: string;
thumbnailUrl?: string[];
uploadDate?: string;
contentUrl?: string;
meta?: {
title?: string;
desc?: string;
like?: number;
play?: number;
duration?: number;
usage?: number;
createTime?: number;
coverUrl?: string;
videoRatio?: string;
author?: {
name?: string;
avatarUrl?: string;
description?: string;
profileUrl?: string;
secUid?: string;
uid?: number;
};
};
};
}
export interface GoogleDriveResponse extends BaseResponse {
result?: {
filename: string;
filesize: string;
downloadUrl: string;
};
}
export interface PinterestImageSizes {
[key: string]: {
width: number;
height: number;
url: string;
};
}
export interface PinterestResponse extends BaseResponse {
result?: {
id?: string;
title?: string;
description?: string;
link?: string | null;
image?: string;
images?: PinterestImageSizes;
is_video?: boolean;
video_url?: string | null;
videos?: any;
user?: {
username: string;
full_name: string;
profile_url: string;
avatar_url: string;
};
};
}