mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-18 21:55:12 -04:00
* New: Allow major version updates to be installed (cherry picked from commit 0e95ba2021b23cc65bce0a0620dd48e355250dab) * fixup! New: Allow major version updates to be installed --------- Co-authored-by: Mark McDowall <mark@mcdowall.ca>
58 lines
1.6 KiB
TypeScript
58 lines
1.6 KiB
TypeScript
import AppSectionState, {
|
|
AppSectionDeleteState,
|
|
AppSectionItemState,
|
|
AppSectionSaveState,
|
|
} from 'App/State/AppSectionState';
|
|
import { IndexerCategory } from 'Indexer/Indexer';
|
|
import Application from 'typings/Application';
|
|
import DownloadClient from 'typings/DownloadClient';
|
|
import Notification from 'typings/Notification';
|
|
import General from 'typings/Settings/General';
|
|
import UiSettings from 'typings/Settings/UiSettings';
|
|
|
|
export interface AppProfileAppState
|
|
extends AppSectionState<Application>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {}
|
|
|
|
export interface ApplicationAppState
|
|
extends AppSectionState<Application>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {
|
|
isTestingAll: boolean;
|
|
}
|
|
|
|
export interface DownloadClientAppState
|
|
extends AppSectionState<DownloadClient>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {
|
|
isTestingAll: boolean;
|
|
}
|
|
|
|
export interface GeneralAppState
|
|
extends AppSectionItemState<General>,
|
|
AppSectionSaveState {}
|
|
|
|
export interface IndexerCategoryAppState
|
|
extends AppSectionState<IndexerCategory>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {}
|
|
|
|
export interface NotificationAppState
|
|
extends AppSectionState<Notification>,
|
|
AppSectionDeleteState {}
|
|
|
|
export type UiSettingsAppState = AppSectionItemState<UiSettings>;
|
|
|
|
interface SettingsAppState {
|
|
appProfiles: AppProfileAppState;
|
|
applications: ApplicationAppState;
|
|
downloadClients: DownloadClientAppState;
|
|
general: GeneralAppState;
|
|
indexerCategories: IndexerCategoryAppState;
|
|
notifications: NotificationAppState;
|
|
ui: UiSettingsAppState;
|
|
}
|
|
|
|
export default SettingsAppState;
|