UNPKG

@space-cow-media/spellbook-client

Version:

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

58 lines (57 loc) 2.17 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. */ /** * * @export * @interface Template */ export interface Template { /** * * @type {number} * @memberof Template */ readonly id: number; /** * short description of the template in natural language * @type {string} * @memberof Template */ name: string; /** * 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 Template */ scryfallQuery: string | null; /** * * @type {string} * @memberof Template */ readonly scryfallApi: string | null; } /** * Check if a given object implements the Template interface. */ export declare function instanceOfTemplate(value: object): value is Template; export declare function TemplateFromJSON(json: any): Template; export declare function TemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): Template; export declare function TemplateToJSON(json: any): Template; export declare function TemplateToJSONTyped(value?: Omit<Template, 'id' | 'scryfallApi'> | null, ignoreDiscriminator?: boolean): any;