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

130 lines
3.9 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 { VersionInfo } from './VersionInfo';
import {
VersionInfoFromJSON,
VersionInfoFromJSONTyped,
VersionInfoToJSON,
} from './VersionInfo';
/**
* Gets or sets package information for the installation.
* @export
* @interface InstallationInfoPackageInfo
*/
export interface InstallationInfoPackageInfo {
/**
* Gets or sets the name.
* @type {string}
* @memberof InstallationInfoPackageInfo
*/
name?: string;
/**
* Gets or sets a long description of the plugin containing features or helpful explanations.
* @type {string}
* @memberof InstallationInfoPackageInfo
*/
description?: string;
/**
* Gets or sets a short overview of what the plugin does.
* @type {string}
* @memberof InstallationInfoPackageInfo
*/
overview?: string;
/**
* Gets or sets the owner.
* @type {string}
* @memberof InstallationInfoPackageInfo
*/
owner?: string;
/**
* Gets or sets the category.
* @type {string}
* @memberof InstallationInfoPackageInfo
*/
category?: string;
/**
* Gets or sets the guid of the assembly associated with this plugin.
* This is used to identify the proper item for automatic updates.
* @type {string}
* @memberof InstallationInfoPackageInfo
*/
guid?: string;
/**
* Gets or sets the versions.
* @type {Array<VersionInfo>}
* @memberof InstallationInfoPackageInfo
*/
versions?: Array<VersionInfo>;
/**
* Gets or sets the image url for the package.
* @type {string}
* @memberof InstallationInfoPackageInfo
*/
imageUrl?: string | null;
}
/**
* Check if a given object implements the InstallationInfoPackageInfo interface.
*/
export function instanceOfInstallationInfoPackageInfo(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function InstallationInfoPackageInfoFromJSON(json: any): InstallationInfoPackageInfo {
return InstallationInfoPackageInfoFromJSONTyped(json, false);
}
export function InstallationInfoPackageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallationInfoPackageInfo {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'name') ? undefined : json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'overview': !exists(json, 'overview') ? undefined : json['overview'],
'owner': !exists(json, 'owner') ? undefined : json['owner'],
'category': !exists(json, 'category') ? undefined : json['category'],
'guid': !exists(json, 'guid') ? undefined : json['guid'],
'versions': !exists(json, 'versions') ? undefined : ((json['versions'] as Array<any>).map(VersionInfoFromJSON)),
'imageUrl': !exists(json, 'imageUrl') ? undefined : json['imageUrl'],
};
}
export function InstallationInfoPackageInfoToJSON(value?: InstallationInfoPackageInfo | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'description': value.description,
'overview': value.overview,
'owner': value.owner,
'category': value.category,
'guid': value.guid,
'versions': value.versions === undefined ? undefined : ((value.versions as Array<any>).map(VersionInfoToJSON)),
'imageUrl': value.imageUrl,
};
}