UNPKG

@space-cow-media/spellbook-client

Version:

An Open Api generated client for the Commander Spellbook backend REST API.

89 lines (88 loc) 3.55 kB
/** * 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 { ZoneLocationsEnum } from './zoneLocationsEnum'; /** * * @export * @interface TemplateRequiredInVariantSuggestion */ export interface TemplateRequiredInVariantSuggestion { /** * Template name * @type {string} * @memberof TemplateRequiredInVariantSuggestion */ template: string; /** * Quantity of the card in the combo. * @type {number} * @memberof TemplateRequiredInVariantSuggestion */ quantity: number; /** * Variables supported: mv, manavalue, power, pow, toughness, tou, pt, powtou, loyalty, loy, c, color, id, identity, produces, has, t, type, keyword, kw, is, o, oracle, function, otag, oracletag, oracleid, m, mana, devotion. * Operators supported: =, !=, <, >, <=, >=, :. * You can compose a "and"/"or" expression made of "and"/"or" expressions, like "(c:W or c:U) and (t:creature or t:artifact)". * You can also omit parentheses when not necessary, like "(c:W or c:U) t:creature". * Card names are only supported if wrapped in double quotes and preceded by an exclamation mark (!) in order to match the exact name, like !"Lightning Bolt". * You can negate any expression by prepending a dash (-), like "-t:creature". * More info at: https://scryfall.com/docs/syntax. * * @type {string} * @memberof TemplateRequiredInVariantSuggestion */ scryfallQuery: string | null; /** * * @type {Array<ZoneLocationsEnum>} * @memberof TemplateRequiredInVariantSuggestion */ zoneLocations: Array<ZoneLocationsEnum>; /** * State of the card on the battlefield, if present. * @type {string} * @memberof TemplateRequiredInVariantSuggestion */ battlefieldCardState: string; /** * State of the card in exile, if present. * @type {string} * @memberof TemplateRequiredInVariantSuggestion */ exileCardState: string; /** * State of the card in the library, if present. * @type {string} * @memberof TemplateRequiredInVariantSuggestion */ libraryCardState: string; /** * State of the card in the graveyard, if present. * @type {string} * @memberof TemplateRequiredInVariantSuggestion */ graveyardCardState: string; /** * Does the card have to be a commander? * @type {boolean} * @memberof TemplateRequiredInVariantSuggestion */ mustBeCommander: boolean; } /** * Check if a given object implements the TemplateRequiredInVariantSuggestion interface. */ export declare function instanceOfTemplateRequiredInVariantSuggestion(value: object): value is TemplateRequiredInVariantSuggestion; export declare function TemplateRequiredInVariantSuggestionFromJSON(json: any): TemplateRequiredInVariantSuggestion; export declare function TemplateRequiredInVariantSuggestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplateRequiredInVariantSuggestion; export declare function TemplateRequiredInVariantSuggestionToJSON(json: any): TemplateRequiredInVariantSuggestion; export declare function TemplateRequiredInVariantSuggestionToJSONTyped(value?: TemplateRequiredInVariantSuggestion | null, ignoreDiscriminator?: boolean): any;