mirror of
https://github.com/artegoser/piped-api.git
synced 2024-11-27 13:26:21 +03:00
Compare commits
No commits in common. "641632262866909f79072be90f8677e0972978db" and "5465963650063ae11fe1826a781172e53dcd2439" have entirely different histories.
6416322628
...
5465963650
3 changed files with 7 additions and 17 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "piped-api",
|
"name": "piped-api",
|
||||||
"version": "1.2.3",
|
"version": "1.2.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "piped-api",
|
"name": "piped-api",
|
||||||
"version": "1.2.3",
|
"version": "1.2.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.4.0"
|
"axios": "^1.4.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "piped-api",
|
"name": "piped-api",
|
||||||
"version": "1.2.3",
|
"version": "1.2.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"docs": "typedoc src/index.ts src/types.ts",
|
"docs": "typedoc src/index.ts src/types.ts",
|
||||||
"prepublishOnly": "npm i && npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"api",
|
"api",
|
||||||
|
|
16
src/types.ts
16
src/types.ts
|
@ -107,11 +107,7 @@ export interface Channel {
|
||||||
relatedStreams: Video[];
|
relatedStreams: Video[];
|
||||||
subscriberCount: number;
|
subscriberCount: number;
|
||||||
verified: boolean;
|
verified: boolean;
|
||||||
|
|
||||||
type?: string;
|
type?: string;
|
||||||
url?: string;
|
|
||||||
thumbnail?: string;
|
|
||||||
videos?: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TabInfo {
|
export interface TabInfo {
|
||||||
|
@ -132,22 +128,16 @@ export interface NextPageChannel {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Playlist {
|
export interface Playlist {
|
||||||
url: string;
|
|
||||||
bannerUrl: string;
|
bannerUrl: string;
|
||||||
name: string;
|
name: string;
|
||||||
nextpage: string;
|
nextpage: string;
|
||||||
relatedStreams: Video[];
|
relatedStreams: Video[];
|
||||||
thumbnailUrl?: string;
|
thumbnailUrl: string;
|
||||||
uploader?: string;
|
uploader: string;
|
||||||
uploaderAvatar: string;
|
uploaderAvatar: string;
|
||||||
uploaderUrl: string;
|
uploaderUrl: string;
|
||||||
videos: number;
|
videos: number;
|
||||||
|
|
||||||
type?: string;
|
type?: string;
|
||||||
thumbnail?: string;
|
|
||||||
uploaderName?: string;
|
|
||||||
uploaderVerified?: boolean;
|
|
||||||
playlistType?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NextPagePlaylist {
|
export interface NextPagePlaylist {
|
||||||
|
@ -176,4 +166,4 @@ export interface Search {
|
||||||
suggestion: string | null;
|
suggestion: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Item = Video | Channel | Playlist;
|
export type Item = Video | Channel;
|
||||||
|
|
Loading…
Add table
Reference in a new issue