jellyfin-discord-bot/server/jellyfin/models/AddVirtualFolderDtoLibraryOptions.ts

294 lines
11 KiB
TypeScript
Raw Permalink Normal View History

2023-05-04 23:34:53 +02:00
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.8.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
import type { EmbeddedSubtitleOptions } from './EmbeddedSubtitleOptions';
import {
EmbeddedSubtitleOptionsFromJSON,
EmbeddedSubtitleOptionsFromJSONTyped,
EmbeddedSubtitleOptionsToJSON,
} from './EmbeddedSubtitleOptions';
import type { MediaPathInfo } from './MediaPathInfo';
import {
MediaPathInfoFromJSON,
MediaPathInfoFromJSONTyped,
MediaPathInfoToJSON,
} from './MediaPathInfo';
import type { TypeOptions } from './TypeOptions';
import {
TypeOptionsFromJSON,
TypeOptionsFromJSONTyped,
TypeOptionsToJSON,
} from './TypeOptions';
/**
* Gets or sets library options.
* @export
* @interface AddVirtualFolderDtoLibraryOptions
*/
export interface AddVirtualFolderDtoLibraryOptions {
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
enablePhotos?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
enableRealtimeMonitor?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
enableChapterImageExtraction?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
extractChapterImagesDuringLibraryScan?: boolean;
/**
*
* @type {Array<MediaPathInfo>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
pathInfos?: Array<MediaPathInfo>;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
saveLocalMetadata?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
* @deprecated
*/
enableInternetProviders?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
enableAutomaticSeriesGrouping?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
enableEmbeddedTitles?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
enableEmbeddedEpisodeInfos?: boolean;
/**
*
* @type {number}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
automaticRefreshIntervalDays?: number;
/**
* Gets or sets the preferred metadata language.
* @type {string}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
preferredMetadataLanguage?: string | null;
/**
* Gets or sets the metadata country code.
* @type {string}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
metadataCountryCode?: string | null;
/**
*
* @type {string}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
seasonZeroDisplayName?: string;
/**
*
* @type {Array<string>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
metadataSavers?: Array<string> | null;
/**
*
* @type {Array<string>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
disabledLocalMetadataReaders?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
localMetadataReaderOrder?: Array<string> | null;
/**
*
* @type {Array<string>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
disabledSubtitleFetchers?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
subtitleFetcherOrder?: Array<string>;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
skipSubtitlesIfEmbeddedSubtitlesPresent?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
skipSubtitlesIfAudioTrackMatches?: boolean;
/**
*
* @type {Array<string>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
subtitleDownloadLanguages?: Array<string> | null;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
requirePerfectSubtitleMatch?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
saveSubtitlesWithMedia?: boolean;
/**
*
* @type {boolean}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
automaticallyAddToCollection?: boolean;
/**
*
* @type {EmbeddedSubtitleOptions}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
allowEmbeddedSubtitles?: EmbeddedSubtitleOptions;
/**
*
* @type {Array<TypeOptions>}
* @memberof AddVirtualFolderDtoLibraryOptions
*/
typeOptions?: Array<TypeOptions>;
}
/**
* Check if a given object implements the AddVirtualFolderDtoLibraryOptions interface.
*/
export function instanceOfAddVirtualFolderDtoLibraryOptions(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function AddVirtualFolderDtoLibraryOptionsFromJSON(json: any): AddVirtualFolderDtoLibraryOptions {
return AddVirtualFolderDtoLibraryOptionsFromJSONTyped(json, false);
}
export function AddVirtualFolderDtoLibraryOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddVirtualFolderDtoLibraryOptions {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'enablePhotos': !exists(json, 'EnablePhotos') ? undefined : json['EnablePhotos'],
'enableRealtimeMonitor': !exists(json, 'EnableRealtimeMonitor') ? undefined : json['EnableRealtimeMonitor'],
'enableChapterImageExtraction': !exists(json, 'EnableChapterImageExtraction') ? undefined : json['EnableChapterImageExtraction'],
'extractChapterImagesDuringLibraryScan': !exists(json, 'ExtractChapterImagesDuringLibraryScan') ? undefined : json['ExtractChapterImagesDuringLibraryScan'],
'pathInfos': !exists(json, 'PathInfos') ? undefined : ((json['PathInfos'] as Array<any>).map(MediaPathInfoFromJSON)),
'saveLocalMetadata': !exists(json, 'SaveLocalMetadata') ? undefined : json['SaveLocalMetadata'],
'enableInternetProviders': !exists(json, 'EnableInternetProviders') ? undefined : json['EnableInternetProviders'],
'enableAutomaticSeriesGrouping': !exists(json, 'EnableAutomaticSeriesGrouping') ? undefined : json['EnableAutomaticSeriesGrouping'],
'enableEmbeddedTitles': !exists(json, 'EnableEmbeddedTitles') ? undefined : json['EnableEmbeddedTitles'],
'enableEmbeddedEpisodeInfos': !exists(json, 'EnableEmbeddedEpisodeInfos') ? undefined : json['EnableEmbeddedEpisodeInfos'],
'automaticRefreshIntervalDays': !exists(json, 'AutomaticRefreshIntervalDays') ? undefined : json['AutomaticRefreshIntervalDays'],
'preferredMetadataLanguage': !exists(json, 'PreferredMetadataLanguage') ? undefined : json['PreferredMetadataLanguage'],
'metadataCountryCode': !exists(json, 'MetadataCountryCode') ? undefined : json['MetadataCountryCode'],
'seasonZeroDisplayName': !exists(json, 'SeasonZeroDisplayName') ? undefined : json['SeasonZeroDisplayName'],
'metadataSavers': !exists(json, 'MetadataSavers') ? undefined : json['MetadataSavers'],
'disabledLocalMetadataReaders': !exists(json, 'DisabledLocalMetadataReaders') ? undefined : json['DisabledLocalMetadataReaders'],
'localMetadataReaderOrder': !exists(json, 'LocalMetadataReaderOrder') ? undefined : json['LocalMetadataReaderOrder'],
'disabledSubtitleFetchers': !exists(json, 'DisabledSubtitleFetchers') ? undefined : json['DisabledSubtitleFetchers'],
'subtitleFetcherOrder': !exists(json, 'SubtitleFetcherOrder') ? undefined : json['SubtitleFetcherOrder'],
'skipSubtitlesIfEmbeddedSubtitlesPresent': !exists(json, 'SkipSubtitlesIfEmbeddedSubtitlesPresent') ? undefined : json['SkipSubtitlesIfEmbeddedSubtitlesPresent'],
'skipSubtitlesIfAudioTrackMatches': !exists(json, 'SkipSubtitlesIfAudioTrackMatches') ? undefined : json['SkipSubtitlesIfAudioTrackMatches'],
'subtitleDownloadLanguages': !exists(json, 'SubtitleDownloadLanguages') ? undefined : json['SubtitleDownloadLanguages'],
'requirePerfectSubtitleMatch': !exists(json, 'RequirePerfectSubtitleMatch') ? undefined : json['RequirePerfectSubtitleMatch'],
'saveSubtitlesWithMedia': !exists(json, 'SaveSubtitlesWithMedia') ? undefined : json['SaveSubtitlesWithMedia'],
'automaticallyAddToCollection': !exists(json, 'AutomaticallyAddToCollection') ? undefined : json['AutomaticallyAddToCollection'],
'allowEmbeddedSubtitles': !exists(json, 'AllowEmbeddedSubtitles') ? undefined : EmbeddedSubtitleOptionsFromJSON(json['AllowEmbeddedSubtitles']),
'typeOptions': !exists(json, 'TypeOptions') ? undefined : ((json['TypeOptions'] as Array<any>).map(TypeOptionsFromJSON)),
};
}
export function AddVirtualFolderDtoLibraryOptionsToJSON(value?: AddVirtualFolderDtoLibraryOptions | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'EnablePhotos': value.enablePhotos,
'EnableRealtimeMonitor': value.enableRealtimeMonitor,
'EnableChapterImageExtraction': value.enableChapterImageExtraction,
'ExtractChapterImagesDuringLibraryScan': value.extractChapterImagesDuringLibraryScan,
'PathInfos': value.pathInfos === undefined ? undefined : ((value.pathInfos as Array<any>).map(MediaPathInfoToJSON)),
'SaveLocalMetadata': value.saveLocalMetadata,
'EnableInternetProviders': value.enableInternetProviders,
'EnableAutomaticSeriesGrouping': value.enableAutomaticSeriesGrouping,
'EnableEmbeddedTitles': value.enableEmbeddedTitles,
'EnableEmbeddedEpisodeInfos': value.enableEmbeddedEpisodeInfos,
'AutomaticRefreshIntervalDays': value.automaticRefreshIntervalDays,
'PreferredMetadataLanguage': value.preferredMetadataLanguage,
'MetadataCountryCode': value.metadataCountryCode,
'SeasonZeroDisplayName': value.seasonZeroDisplayName,
'MetadataSavers': value.metadataSavers,
'DisabledLocalMetadataReaders': value.disabledLocalMetadataReaders,
'LocalMetadataReaderOrder': value.localMetadataReaderOrder,
'DisabledSubtitleFetchers': value.disabledSubtitleFetchers,
'SubtitleFetcherOrder': value.subtitleFetcherOrder,
'SkipSubtitlesIfEmbeddedSubtitlesPresent': value.skipSubtitlesIfEmbeddedSubtitlesPresent,
'SkipSubtitlesIfAudioTrackMatches': value.skipSubtitlesIfAudioTrackMatches,
'SubtitleDownloadLanguages': value.subtitleDownloadLanguages,
'RequirePerfectSubtitleMatch': value.requirePerfectSubtitleMatch,
'SaveSubtitlesWithMedia': value.saveSubtitlesWithMedia,
'AutomaticallyAddToCollection': value.automaticallyAddToCollection,
'AllowEmbeddedSubtitles': EmbeddedSubtitleOptionsToJSON(value.allowEmbeddedSubtitles),
'TypeOptions': value.typeOptions === undefined ? undefined : ((value.typeOptions as Array<any>).map(TypeOptionsToJSON)),
};
}