@episodehunter/types
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -0,10 +1,13 @@ | ||
import { ShowId } from '../types'; | ||
export interface Episode { | ||
ids: { | ||
showId: ShowId; | ||
tvdb: number; | ||
}; | ||
aired: string; | ||
episode: number; | ||
episodeNumber: number; | ||
episodenumber: number; | ||
lastupdated: number; | ||
name: string; | ||
overview?: string; | ||
season: number; | ||
tvdbId: number; | ||
} |
@@ -5,7 +5,5 @@ import { Episode } from './episode'; | ||
import { Title } from './title'; | ||
import { UpcomingEpisode } from './upcoming-episode'; | ||
import { User } from './user'; | ||
import { User, UserInput } from './user'; | ||
import * as WatchedEpisode from './watched-episode'; | ||
import { WhatToWatch } from './what-to-watch'; | ||
export { Episode, History, Show, Title, UpcomingEpisode, WatchedEpisode, WhatToWatch, User }; | ||
export { Episode, History, Show, Title, WatchedEpisode, User, UserInput }; |
@@ -0,6 +1,8 @@ | ||
import { ShowId } from '../types'; | ||
export interface Show { | ||
airs: { | ||
first?: string; | ||
time?: string; | ||
day?: number; | ||
first: string | null; | ||
time: string | null; | ||
day: number | null; | ||
}; | ||
@@ -10,13 +12,12 @@ ended: boolean; | ||
ids: { | ||
id: string; | ||
imdb?: string; | ||
id: ShowId; | ||
imdb: string | null; | ||
tvdb: number; | ||
}; | ||
language?: string; | ||
language: string | null; | ||
lastupdated: number; | ||
name: string; | ||
network?: string; | ||
numberOfFollowers: number; | ||
overview?: string; | ||
network: string | null; | ||
overview: string | null; | ||
runtime: number; | ||
} |
@@ -0,3 +1,5 @@ | ||
import { ShowId } from '../types'; | ||
export interface Title { | ||
id: string; | ||
id: ShowId; | ||
name: string; | ||
@@ -4,0 +6,0 @@ followers: number; |
export interface User { | ||
apikey: string; | ||
username: string; | ||
following: string[]; | ||
} | ||
export interface UserInput { | ||
username: string; | ||
} |
@@ -0,1 +1,3 @@ | ||
import { ShowId } from '../types'; | ||
export const enum WatchedEnum { | ||
@@ -10,19 +12,23 @@ kodiScrobble = 0, | ||
export interface WatchedEpisode { | ||
episode: number; | ||
episodeNumber: number; | ||
season: number; | ||
showId: string; | ||
time: Date; | ||
episodenumber: number; | ||
showId: ShowId; | ||
time: number; | ||
type: WatchedEnum; | ||
} | ||
export interface InternalWatchedEpisodeInput { | ||
showId: ShowId; | ||
episodenumber: number; | ||
type?: WatchedEnum; | ||
time: number; | ||
} | ||
export interface WatchedEpisodeInput extends UnwatchedEpisodeInput { | ||
time: Date; | ||
time: number; | ||
} | ||
export interface UnwatchedEpisodeInput { | ||
showId: string; | ||
season: number; | ||
episode: number; | ||
type?: WatchedEnum; | ||
showId: ShowId; | ||
episodenumber: number; | ||
type?: 'checkIn' | 'kodiScrobble' | 'kodiSync' | 'checkInSeason' | 'plexScrobble'; | ||
} |
import * as Message from './message'; | ||
import * as Dragonstone from './dragonstone'; | ||
import { ShowId } from './types'; | ||
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
export { Message, Dragonstone }; | ||
export { Message, Dragonstone, ShowId }; |
@@ -0,3 +1,5 @@ | ||
import { ShowId } from '../../types'; | ||
export interface Event { | ||
showId: string; | ||
showId: ShowId; | ||
firstEpisode: number; // episodenumber | ||
@@ -12,6 +14,5 @@ lastEpisode: number; // episodenumber | ||
export interface EpisodeInput { | ||
name: string; | ||
tvdbId: number; | ||
name: string; | ||
season: number; | ||
episode: number; | ||
episodenumber: number; | ||
firstAired: string; | ||
@@ -18,0 +19,0 @@ overview?: string; |
import { Show } from '../../dragonstone/show'; | ||
import { ShowInput } from './show-input'; | ||
import { ShowId } from '../../types'; | ||
export interface Event { | ||
showId: string; | ||
showId: ShowId; | ||
showInput: ShowInput; | ||
@@ -7,0 +8,0 @@ requestStack: string[]; |
@@ -0,1 +1,3 @@ | ||
import { ShowId } from '../../types'; | ||
export interface Event { | ||
@@ -7,3 +9,3 @@ theTvDbId: number; | ||
export interface Response { | ||
id: string; | ||
id: ShowId; | ||
} |
@@ -0,5 +1,7 @@ | ||
import { ShowId } from '../../types'; | ||
export interface Event { | ||
id: string; | ||
id: ShowId; | ||
tvdbId: number; | ||
lastupdated: number; | ||
} |
{ | ||
"name": "@episodehunter/types", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Types for episodehunter", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "tsc", | ||
"prepare": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/episodehunter/types.git" | ||
"url": "git+https://github.com/episodehunter/episodehunter.git" | ||
}, | ||
@@ -15,13 +19,15 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/episodehunter/types/issues" | ||
"url": "https://github.com/episodehunter/episodehunter/issues" | ||
}, | ||
"homepage": "https://github.com/episodehunter/types#readme", | ||
"homepage": "https://github.com/episodehunter/episodehunter/packages/types#readme", | ||
"author": "Oskar Karlsson <kontakta@oskarkarlsson.nu>", | ||
"license": "MIT", | ||
"devDependencies": {}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"typescript": "^3.5.3" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"printWidth": 130 | ||
} | ||
}, | ||
"gitHead": "bb6c459cb823c856d674ae25c036647d07f2252c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7758
41
253
0
1
1