@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
114 lines (105 loc) • 2.29 kB
text/typescript
/* 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.
*/
/**
* * `C` - C
* * `W` - W
* * `U` - U
* * `B` - B
* * `R` - R
* * `G` - G
* * `WU` - WU
* * `WB` - WB
* * `RW` - RW
* * `GW` - GW
* * `UB` - UB
* * `UR` - UR
* * `GU` - GU
* * `BR` - BR
* * `BG` - BG
* * `RG` - RG
* * `WUB` - WUB
* * `URW` - URW
* * `GWU` - GWU
* * `RWB` - RWB
* * `WBG` - WBG
* * `RGW` - RGW
* * `UBR` - UBR
* * `BGU` - BGU
* * `GUR` - GUR
* * `BRG` - BRG
* * `WUBR` - WUBR
* * `UBRG` - UBRG
* * `BRGW` - BRGW
* * `RGWU` - RGWU
* * `GWUB` - GWUB
* * `WUBRG` - WUBRG
* @export
* @enum {string}
*/
export enum IdentityEnum {
C = 'C',
W = 'W',
U = 'U',
B = 'B',
R = 'R',
G = 'G',
Wu = 'WU',
Wb = 'WB',
Rw = 'RW',
Gw = 'GW',
Ub = 'UB',
Ur = 'UR',
Gu = 'GU',
Br = 'BR',
Bg = 'BG',
Rg = 'RG',
Wub = 'WUB',
Urw = 'URW',
Gwu = 'GWU',
Rwb = 'RWB',
Wbg = 'WBG',
Rgw = 'RGW',
Ubr = 'UBR',
Bgu = 'BGU',
Gur = 'GUR',
Brg = 'BRG',
Wubr = 'WUBR',
Ubrg = 'UBRG',
Brgw = 'BRGW',
Rgwu = 'RGWU',
Gwub = 'GWUB',
Wubrg = 'WUBRG'
}
export function instanceOfIdentityEnum(value: any): boolean {
for (const key in IdentityEnum) {
if (Object.prototype.hasOwnProperty.call(IdentityEnum, key)) {
if (IdentityEnum[key as keyof typeof IdentityEnum] === value) {
return true;
}
}
}
return false;
}
export function IdentityEnumFromJSON(json: any): IdentityEnum {
return IdentityEnumFromJSONTyped(json, false);
}
export function IdentityEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentityEnum {
return json as IdentityEnum;
}
export function IdentityEnumToJSON(value?: IdentityEnum | null): any {
return value as any;
}
export function IdentityEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): IdentityEnum {
return value as IdentityEnum;
}