mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 18:45:53 -07:00
Init flow plugins
This commit is contained in:
parent
92f97a8c81
commit
7521d7eef0
67 changed files with 4765 additions and 0 deletions
96
FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts
Normal file
96
FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
import { IFileObject, Istreams } from './synced/IFileObject';
|
||||
import Ijob from './synced/jobInterface';
|
||||
|
||||
export interface IpluginInputUi {
|
||||
type: 'dropdown' | 'text',
|
||||
options: string[],
|
||||
}
|
||||
|
||||
export interface IpluginInputs {
|
||||
name: string,
|
||||
type: 'string' | 'boolean' | 'number',
|
||||
defaultValue: string,
|
||||
inputUI: IpluginInputUi,
|
||||
tooltip: string,
|
||||
}
|
||||
|
||||
export interface IpluginDetails {
|
||||
name: string,
|
||||
description: string,
|
||||
style: {
|
||||
borderColor: string,
|
||||
opacity?: number,
|
||||
},
|
||||
tags: string,
|
||||
isStartPlugin: boolean,
|
||||
sidebarPosition: number,
|
||||
icon: string,
|
||||
inputs: IpluginInputs[],
|
||||
|
||||
outputs: {
|
||||
number: number,
|
||||
tooltip: string,
|
||||
}[],
|
||||
}
|
||||
|
||||
export interface Ilog {
|
||||
(text: string): void
|
||||
}
|
||||
|
||||
export interface IupdateWorker {
|
||||
(obj: Record<string, unknown>): void,
|
||||
}
|
||||
|
||||
export interface IffmpegCommandStream extends Istreams {
|
||||
removed: boolean,
|
||||
targetCodec: string,
|
||||
args: string[],
|
||||
}
|
||||
|
||||
export interface IffmpegCommand {
|
||||
inputFiles: string[],
|
||||
streams: IffmpegCommandStream[]
|
||||
container: string,
|
||||
}
|
||||
|
||||
export interface Ivariables {
|
||||
ffmpegCommand?: IffmpegCommand
|
||||
}
|
||||
|
||||
export interface IpluginOutputArgs {
|
||||
outputNumber: number,
|
||||
outputFileObj: {
|
||||
_id: string,
|
||||
},
|
||||
variables: Ivariables
|
||||
|
||||
}
|
||||
|
||||
export interface IpluginInputArgs {
|
||||
inputFileObj: IFileObject,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
librarySettings: any,
|
||||
inputs: Record<string, unknown>,
|
||||
jobLog: Ilog,
|
||||
workDir: string,
|
||||
platform: string,
|
||||
arch: string,
|
||||
handbrakePath: string,
|
||||
ffmpegPath: string,
|
||||
mkvpropeditPath: string,
|
||||
originalLibraryFile: IFileObject,
|
||||
nodeHardwareType: string,
|
||||
workerType: string,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
config: any,
|
||||
job: Ijob,
|
||||
platform_arch_isdocker: string,
|
||||
variables: Ivariables,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
lastSuccesfulPlugin: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
lastSuccessfulRun: any,
|
||||
updateWorker: IupdateWorker,
|
||||
logFullCliOutput: boolean,
|
||||
logOutcome:(outcome:string) => void,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue