mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-05-31 01:19:36 +00:00
Added missing routes to API
Changed getDBInfo from post to get request
This commit is contained in:
9
src/api-types/models/AddFileToPlaylistRequest.ts
Normal file
9
src/api-types/models/AddFileToPlaylistRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface AddFileToPlaylistRequest {
|
||||
file_uid: string;
|
||||
playlist_id: string;
|
||||
}
|
||||
15
src/api-types/models/Category.ts
Normal file
15
src/api-types/models/Category.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { CategoryRule } from './CategoryRule';
|
||||
|
||||
export interface Category {
|
||||
name?: string;
|
||||
uid?: string;
|
||||
rules?: Array<CategoryRule>;
|
||||
/**
|
||||
* Overrides file output for downloaded files in category
|
||||
*/
|
||||
custom_output?: string;
|
||||
}
|
||||
26
src/api-types/models/CategoryRule.ts
Normal file
26
src/api-types/models/CategoryRule.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface CategoryRule {
|
||||
preceding_operator?: CategoryRule.preceding_operator;
|
||||
comparator?: CategoryRule.comparator;
|
||||
}
|
||||
|
||||
export namespace CategoryRule {
|
||||
|
||||
export enum preceding_operator {
|
||||
OR = 'or',
|
||||
AND = 'and',
|
||||
}
|
||||
|
||||
export enum comparator {
|
||||
INCLUDES = 'includes',
|
||||
NOT_INCLUDES = 'not_includes',
|
||||
EQUALS = 'equals',
|
||||
NOT_EQUALS = 'not_equals',
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
11
src/api-types/models/CheckConcurrentStreamRequest.ts
Normal file
11
src/api-types/models/CheckConcurrentStreamRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface CheckConcurrentStreamRequest {
|
||||
/**
|
||||
* UID of the concurrent stream
|
||||
*/
|
||||
uid: string;
|
||||
}
|
||||
9
src/api-types/models/CheckConcurrentStreamResponse.ts
Normal file
9
src/api-types/models/CheckConcurrentStreamResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { ConcurrentStream } from './ConcurrentStream';
|
||||
|
||||
export interface CheckConcurrentStreamResponse {
|
||||
stream: ConcurrentStream;
|
||||
}
|
||||
10
src/api-types/models/ConcurrentStream.ts
Normal file
10
src/api-types/models/ConcurrentStream.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface ConcurrentStream {
|
||||
playback_timestamp?: number;
|
||||
unix_timestamp?: number;
|
||||
playing?: boolean;
|
||||
}
|
||||
8
src/api-types/models/CreateCategoryRequest.ts
Normal file
8
src/api-types/models/CreateCategoryRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface CreateCategoryRequest {
|
||||
name: string;
|
||||
}
|
||||
10
src/api-types/models/CreateCategoryResponse.ts
Normal file
10
src/api-types/models/CreateCategoryResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface CreateCategoryResponse {
|
||||
new_category?: Category;
|
||||
success?: boolean;
|
||||
}
|
||||
18
src/api-types/models/DBInfoResponse.ts
Normal file
18
src/api-types/models/DBInfoResponse.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { TableInfo } from './TableInfo';
|
||||
|
||||
export interface DBInfoResponse {
|
||||
using_local_db?: boolean;
|
||||
stats_by_table?: {
|
||||
files?: TableInfo,
|
||||
playlists?: TableInfo,
|
||||
categories?: TableInfo,
|
||||
subscriptions?: TableInfo,
|
||||
users?: TableInfo,
|
||||
roles?: TableInfo,
|
||||
download_queue?: TableInfo,
|
||||
};
|
||||
}
|
||||
8
src/api-types/models/DeleteCategoryRequest.ts
Normal file
8
src/api-types/models/DeleteCategoryRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DeleteCategoryRequest {
|
||||
category_uid: string;
|
||||
}
|
||||
@@ -4,11 +4,8 @@
|
||||
|
||||
|
||||
export interface DownloadFileRequest {
|
||||
uid: string;
|
||||
uid?: string;
|
||||
uuid?: string;
|
||||
sub_id?: string;
|
||||
/**
|
||||
* Only used for subscriptions
|
||||
*/
|
||||
is_playlist?: boolean;
|
||||
playlist_id?: string;
|
||||
}
|
||||
26
src/api-types/models/DownloadTwitchChatByVODIDRequest.ts
Normal file
26
src/api-types/models/DownloadTwitchChatByVODIDRequest.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
import { Subscription } from './Subscription';
|
||||
|
||||
export interface DownloadTwitchChatByVODIDRequest {
|
||||
/**
|
||||
* File ID
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* ID of the VOD
|
||||
*/
|
||||
vodId: string;
|
||||
type: FileType;
|
||||
/**
|
||||
* User UID
|
||||
*/
|
||||
uuid?: string;
|
||||
/**
|
||||
* Subscription
|
||||
*/
|
||||
sub?: Subscription;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { TwitchChatMessage } from './TwitchChatMessage';
|
||||
|
||||
export interface DownloadTwitchChatByVODIDResponse {
|
||||
chat: Array<TwitchChatMessage>;
|
||||
}
|
||||
8
src/api-types/models/GenerateArgsResponse.ts
Normal file
8
src/api-types/models/GenerateArgsResponse.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GenerateArgsResponse {
|
||||
args?: Array<string>;
|
||||
}
|
||||
9
src/api-types/models/GetAllCategoriesResponse.ts
Normal file
9
src/api-types/models/GetAllCategoriesResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface GetAllCategoriesResponse {
|
||||
categories: Array<Category>;
|
||||
}
|
||||
11
src/api-types/models/GetAllDownloadsRequest.ts
Normal file
11
src/api-types/models/GetAllDownloadsRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetAllDownloadsRequest {
|
||||
/**
|
||||
* Filters downloads with the array
|
||||
*/
|
||||
uids?: Array<string> | null;
|
||||
}
|
||||
8
src/api-types/models/GetFileFormatsRequest.ts
Normal file
8
src/api-types/models/GetFileFormatsRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetFileFormatsRequest {
|
||||
url?: string;
|
||||
}
|
||||
12
src/api-types/models/GetFileFormatsResponse.ts
Normal file
12
src/api-types/models/GetFileFormatsResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { File } from './File';
|
||||
|
||||
export interface GetFileFormatsResponse {
|
||||
success: boolean;
|
||||
result: {
|
||||
formats?: Array<any>,
|
||||
};
|
||||
}
|
||||
22
src/api-types/models/GetFullTwitchChatRequest.ts
Normal file
22
src/api-types/models/GetFullTwitchChatRequest.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
import { Subscription } from './Subscription';
|
||||
|
||||
export interface GetFullTwitchChatRequest {
|
||||
/**
|
||||
* File ID
|
||||
*/
|
||||
id: string;
|
||||
type: FileType;
|
||||
/**
|
||||
* User UID
|
||||
*/
|
||||
uuid?: string;
|
||||
/**
|
||||
* Subscription
|
||||
*/
|
||||
sub?: Subscription;
|
||||
}
|
||||
9
src/api-types/models/GetFullTwitchChatResponse.ts
Normal file
9
src/api-types/models/GetFullTwitchChatResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetFullTwitchChatResponse {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
8
src/api-types/models/GetLogsRequest.ts
Normal file
8
src/api-types/models/GetLogsRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetLogsRequest {
|
||||
lines?: number;
|
||||
}
|
||||
12
src/api-types/models/GetLogsResponse.ts
Normal file
12
src/api-types/models/GetLogsResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetLogsResponse {
|
||||
/**
|
||||
* Number of lines to retrieve from the bottom
|
||||
*/
|
||||
logs?: string;
|
||||
success?: boolean;
|
||||
}
|
||||
13
src/api-types/models/IncrementViewCountRequest.ts
Normal file
13
src/api-types/models/IncrementViewCountRequest.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface IncrementViewCountRequest {
|
||||
file_uid: string;
|
||||
sub_id?: string;
|
||||
/**
|
||||
* User UID
|
||||
*/
|
||||
uuid?: string;
|
||||
}
|
||||
8
src/api-types/models/TableInfo.ts
Normal file
8
src/api-types/models/TableInfo.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TableInfo {
|
||||
records_count?: number;
|
||||
}
|
||||
11
src/api-types/models/TestConnectionStringRequest.ts
Normal file
11
src/api-types/models/TestConnectionStringRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TestConnectionStringRequest {
|
||||
/**
|
||||
* MongoDB connection string
|
||||
*/
|
||||
connection_string: string;
|
||||
}
|
||||
9
src/api-types/models/TestConnectionStringResponse.ts
Normal file
9
src/api-types/models/TestConnectionStringResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TestConnectionStringResponse {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
11
src/api-types/models/TransferDBRequest.ts
Normal file
11
src/api-types/models/TransferDBRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TransferDBRequest {
|
||||
/**
|
||||
* True if transfering DB from Local to MongoDB, false if transferring DB from MongoDB to Local
|
||||
*/
|
||||
local_to_remote: boolean;
|
||||
}
|
||||
9
src/api-types/models/TransferDBResponse.ts
Normal file
9
src/api-types/models/TransferDBResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TransferDBResponse {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
18
src/api-types/models/TwitchChatMessage.ts
Normal file
18
src/api-types/models/TwitchChatMessage.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TwitchChatMessage {
|
||||
created_at?: string;
|
||||
content_offset_seconds?: number;
|
||||
commenter?: {
|
||||
name?: string,
|
||||
_id?: string,
|
||||
created_at?: string,
|
||||
};
|
||||
message?: {
|
||||
body?: string,
|
||||
user_color?: string,
|
||||
};
|
||||
}
|
||||
9
src/api-types/models/UpdateCategoriesRequest.ts
Normal file
9
src/api-types/models/UpdateCategoriesRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface UpdateCategoriesRequest {
|
||||
categories: Array<Category>;
|
||||
}
|
||||
9
src/api-types/models/UpdateCategoryRequest.ts
Normal file
9
src/api-types/models/UpdateCategoryRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface UpdateCategoryRequest {
|
||||
category: Category;
|
||||
}
|
||||
12
src/api-types/models/UpdateConcurrentStreamRequest.ts
Normal file
12
src/api-types/models/UpdateConcurrentStreamRequest.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { ConcurrentStream } from './ConcurrentStream';
|
||||
|
||||
export interface UpdateConcurrentStreamRequest extends ConcurrentStream {
|
||||
/**
|
||||
* Concurrent stream UID
|
||||
*/
|
||||
uid: string;
|
||||
}
|
||||
9
src/api-types/models/UpdateConcurrentStreamResponse.ts
Normal file
9
src/api-types/models/UpdateConcurrentStreamResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { ConcurrentStream } from './ConcurrentStream';
|
||||
|
||||
export interface UpdateConcurrentStreamResponse {
|
||||
stream: ConcurrentStream;
|
||||
}
|
||||
11
src/api-types/models/Version.ts
Normal file
11
src/api-types/models/Version.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface Version {
|
||||
type?: string;
|
||||
tag?: string;
|
||||
commit?: string;
|
||||
date?: string;
|
||||
}
|
||||
9
src/api-types/models/VersionInfoResponse.ts
Normal file
9
src/api-types/models/VersionInfoResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Version } from './Version';
|
||||
|
||||
export interface VersionInfoResponse {
|
||||
version_info: Version;
|
||||
}
|
||||
Reference in New Issue
Block a user