@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
82 lines (81 loc) • 2.26 kB
TypeScript
/**
* Commander Spellbook API
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
*
* The version of the OpenAPI document: 4.8.19
*
*
* 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 { Feature } from './feature';
/**
*
* @export
* @interface FeatureOfCard
*/
export interface FeatureOfCard {
/**
*
* @type {number}
* @memberof FeatureOfCard
*/
readonly id: number;
/**
*
* @type {Feature}
* @memberof FeatureOfCard
*/
readonly feature: Feature;
/**
* Quantity of the card in the combo.
* @type {number}
* @memberof FeatureOfCard
*/
quantity: number;
/**
*
* @type {Array<string>}
* @memberof FeatureOfCard
*/
readonly zoneLocations: Array<string>;
/**
* State of the card on the battlefield, if present.
* @type {string}
* @memberof FeatureOfCard
*/
battlefieldCardState: string;
/**
* State of the card in exile, if present.
* @type {string}
* @memberof FeatureOfCard
*/
exileCardState: string;
/**
* State of the card in the library, if present.
* @type {string}
* @memberof FeatureOfCard
*/
libraryCardState: string;
/**
* State of the card in the graveyard, if present.
* @type {string}
* @memberof FeatureOfCard
*/
graveyardCardState: string;
/**
* Does the card have to be a commander?
* @type {boolean}
* @memberof FeatureOfCard
*/
mustBeCommander: boolean;
}
/**
* Check if a given object implements the FeatureOfCard interface.
*/
export declare function instanceOfFeatureOfCard(value: object): value is FeatureOfCard;
export declare function FeatureOfCardFromJSON(json: any): FeatureOfCard;
export declare function FeatureOfCardFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureOfCard;
export declare function FeatureOfCardToJSON(json: any): FeatureOfCard;
export declare function FeatureOfCardToJSONTyped(value?: Omit<FeatureOfCard, 'id' | 'feature' | 'zoneLocations'> | null, ignoreDiscriminator?: boolean): any;