UNPKG

@space-cow-media/spellbook-client

Version:

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

60 lines (51 loc) 1.53 kB
/* tslint:disable */ /* eslint-disable */ /** * 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. */ /** * * `HU` - Hidden Utility * * `PU` - Public Utility * * `H` - Helper * * `C` - Contextual * * `S` - Standalone * @export * @enum {string} */ export enum FeatureStatusEnum { Hu = 'HU', Pu = 'PU', H = 'H', C = 'C', S = 'S' } export function instanceOfFeatureStatusEnum(value: any): boolean { for (const key in FeatureStatusEnum) { if (Object.prototype.hasOwnProperty.call(FeatureStatusEnum, key)) { if (FeatureStatusEnum[key as keyof typeof FeatureStatusEnum] === value) { return true; } } } return false; } export function FeatureStatusEnumFromJSON(json: any): FeatureStatusEnum { return FeatureStatusEnumFromJSONTyped(json, false); } export function FeatureStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureStatusEnum { return json as FeatureStatusEnum; } export function FeatureStatusEnumToJSON(value?: FeatureStatusEnum | null): any { return value as any; } export function FeatureStatusEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): FeatureStatusEnum { return value as FeatureStatusEnum; }