@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
164 lines (163 loc) • 4.17 kB
TypeScript
/**
* Commander Spellbook API
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
*
* The version of the OpenAPI document: 5.4.10
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { FeatureProducedByVariant } from './FeatureProducedByVariant.js';
import type { VariantLegalities } from './VariantLegalities.js';
import type { BracketTagEnum } from './BracketTagEnum.js';
import type { VariantPrices } from './VariantPrices.js';
import type { ColorEnum } from './ColorEnum.js';
import type { VariantStatusEnum } from './VariantStatusEnum.js';
import type { Combo } from './Combo.js';
import type { CardInVariant } from './CardInVariant.js';
import type { TemplateInVariant } from './TemplateInVariant.js';
/**
*
* @export
* @interface Variant
*/
export interface Variant {
/**
* Unique ID for this variant
* @type {string}
* @memberof Variant
*/
id: string;
/**
* Variant status for editors
*
* * `N` - New
* * `D` - Draft
* * `NR` - Needs Review
* * `OK` - Ok
* * `E` - Example
* * `R` - Restore
* * `NW` - Not Working
* @type {VariantStatusEnum}
* @memberof Variant
*/
status: VariantStatusEnum;
/**
*
* @type {Array<CardInVariant>}
* @memberof Variant
*/
readonly uses: Array<CardInVariant>;
/**
*
* @type {Array<TemplateInVariant>}
* @memberof Variant
*/
readonly requires: Array<TemplateInVariant>;
/**
*
* @type {Array<FeatureProducedByVariant>}
* @memberof Variant
*/
readonly produces: Array<FeatureProducedByVariant>;
/**
*
* @type {Array<Combo>}
* @memberof Variant
*/
readonly of: Array<Combo>;
/**
*
* @type {Array<Combo>}
* @memberof Variant
*/
readonly includes: Array<Combo>;
/**
*
* @type {ColorEnum}
* @memberof Variant
*/
identity: ColorEnum;
/**
*
* @type {string}
* @memberof Variant
*/
readonly manaNeeded: string;
/**
*
* @type {number}
* @memberof Variant
*/
readonly manaValueNeeded: number;
/**
*
* @type {string}
* @memberof Variant
*/
readonly easyPrerequisites: string;
/**
*
* @type {string}
* @memberof Variant
*/
readonly notablePrerequisites: string;
/**
*
* @type {string}
* @memberof Variant
*/
readonly description: string;
/**
*
* @type {string}
* @memberof Variant
*/
readonly notes: string;
/**
*
* @type {number}
* @memberof Variant
*/
readonly popularity: number | null;
/**
* Is this from an upcoming set?
* @type {boolean}
* @memberof Variant
*/
spoiler: boolean;
/**
*
* @type {BracketTagEnum}
* @memberof Variant
*/
bracketTag: BracketTagEnum;
/**
*
* @type {VariantLegalities}
* @memberof Variant
*/
readonly legalities: VariantLegalities;
/**
*
* @type {VariantPrices}
* @memberof Variant
*/
readonly prices: VariantPrices;
/**
* Number of variants generated by the same generator combos
* @type {number}
* @memberof Variant
*/
readonly variantCount: number;
}
/**
* Check if a given object implements the Variant interface.
*/
export declare function instanceOfVariant(value: object): value is Variant;
export declare function VariantFromJSON(json: any): Variant;
export declare function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant;
export declare function VariantToJSON(json: any): Variant;
export declare function VariantToJSONTyped(value?: Omit<Variant, 'uses' | 'requires' | 'produces' | 'of' | 'includes' | 'manaNeeded' | 'manaValueNeeded' | 'easyPrerequisites' | 'notablePrerequisites' | 'description' | 'notes' | 'popularity' | 'legalities' | 'prices' | 'variantCount'> | null, ignoreDiscriminator?: boolean): any;