mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
2.1 KiB
122 lines
2.1 KiB
export interface IPlexAuthentication {
|
|
user: IPlexUser;
|
|
}
|
|
|
|
export interface IPlexPin {
|
|
id: number;
|
|
code: string;
|
|
}
|
|
|
|
export interface IPlexOAuthViewModel {
|
|
wizard: boolean;
|
|
pin: IPlexPin;
|
|
}
|
|
|
|
export interface IPlexOAuthAccessToken {
|
|
accessToken: string;
|
|
success: boolean;
|
|
error: string;
|
|
}
|
|
|
|
export interface IPlexUser {
|
|
email: string;
|
|
uuid: string;
|
|
username: string;
|
|
title: string;
|
|
authentication_token: string;
|
|
}
|
|
|
|
export interface IPlexLibraries {
|
|
mediaContainer: IMediaContainer;
|
|
}
|
|
|
|
export interface IPlexLibResponse {
|
|
successful: boolean;
|
|
message: string;
|
|
data: IPlexLibraries;
|
|
}
|
|
|
|
export interface IPlexLibSimpleResponse {
|
|
successful: boolean;
|
|
message: string;
|
|
data: IPlexSection[];
|
|
}
|
|
|
|
export interface IPlexSection {
|
|
id: string;
|
|
key: string;
|
|
type: string;
|
|
title: string;
|
|
}
|
|
|
|
export interface IMediaContainer {
|
|
directory: IDirectory[];
|
|
}
|
|
|
|
export interface IDirectory {
|
|
key: string;
|
|
title: string;
|
|
}
|
|
|
|
export interface IPlexServerViewModel {
|
|
success: boolean;
|
|
message: string;
|
|
servers: IPlexServerResult;
|
|
}
|
|
|
|
export interface IPlexServerAddViewModel {
|
|
success: boolean;
|
|
servers: IPlexServersAdd[];
|
|
}
|
|
|
|
export interface IPlexServersAdd {
|
|
serverId: number;
|
|
machineId: string;
|
|
serverName: string;
|
|
}
|
|
|
|
export interface IPlexUserViewModel {
|
|
username: string;
|
|
machineIdentifier: string;
|
|
libsSelected: number[];
|
|
}
|
|
|
|
export interface IPlexUserAddResponse {
|
|
success: boolean;
|
|
error: string;
|
|
}
|
|
|
|
export interface IPlexServerResult {
|
|
friendlyName: string;
|
|
machineIdentifier: string;
|
|
identifier: string;
|
|
server: IPlexServerResponse[];
|
|
}
|
|
|
|
export interface IPlexServerResponse {
|
|
accessToken: string;
|
|
address: string;
|
|
createdAt: string;
|
|
home: string;
|
|
host: string;
|
|
localAddresses: string;
|
|
machineIdentifier: string;
|
|
name: string;
|
|
owned: string;
|
|
ownerId: string;
|
|
port: string;
|
|
scheme: string;
|
|
}
|
|
|
|
export interface IPlexWatchlistUsers {
|
|
userId: string;
|
|
syncStatus: WatchlistSyncStatus;
|
|
userName: string;
|
|
}
|
|
|
|
export enum WatchlistSyncStatus
|
|
{
|
|
Successful,
|
|
Failed,
|
|
NotEnabled
|
|
} |