@space-cow-media/spellbook-client 3.14.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/cardListFromTextApi.d.ts +33 -0
- package/dist/apis/cardListFromTextApi.js +135 -0
- package/dist/apis/cardListFromTextApi.js.map +1 -0
- package/dist/apis/cardListFromUrlApi.d.ts +27 -0
- package/dist/apis/cardListFromUrlApi.js +103 -0
- package/dist/apis/cardListFromUrlApi.js.map +1 -0
- package/dist/apis/cardsApi.d.ts +40 -0
- package/dist/apis/cardsApi.js +151 -0
- package/dist/apis/cardsApi.js.map +1 -0
- package/dist/apis/defaultApi.d.ts +47 -0
- package/dist/apis/defaultApi.js +143 -0
- package/dist/apis/defaultApi.js.map +1 -0
- package/dist/apis/featuresApi.d.ts +38 -0
- package/dist/apis/featuresApi.js +145 -0
- package/dist/apis/featuresApi.js.map +1 -0
- package/dist/apis/findMyCombosApi.d.ts +47 -0
- package/dist/apis/findMyCombosApi.js +171 -0
- package/dist/apis/findMyCombosApi.js.map +1 -0
- package/dist/apis/index.d.ts +13 -0
- package/dist/apis/index.js +32 -0
- package/dist/apis/index.js.map +1 -0
- package/dist/apis/propertiesApi.d.ts +37 -0
- package/dist/apis/propertiesApi.js +142 -0
- package/dist/apis/propertiesApi.js.map +1 -0
- package/dist/apis/templatesApi.d.ts +38 -0
- package/dist/apis/templatesApi.js +145 -0
- package/dist/apis/templatesApi.js.map +1 -0
- package/dist/apis/tokenApi.d.ts +51 -0
- package/dist/apis/tokenApi.js +153 -0
- package/dist/apis/tokenApi.js.map +1 -0
- package/dist/apis/usersApi.d.ts +66 -0
- package/dist/apis/usersApi.js +256 -0
- package/dist/apis/usersApi.js.map +1 -0
- package/dist/apis/variantAliasesApi.d.ts +37 -0
- package/dist/apis/variantAliasesApi.js +142 -0
- package/dist/apis/variantAliasesApi.js.map +1 -0
- package/dist/apis/variantSuggestionsApi.d.ts +76 -0
- package/dist/apis/variantSuggestionsApi.js +297 -0
- package/dist/apis/variantSuggestionsApi.js.map +1 -0
- package/dist/apis/variantsApi.d.ts +41 -0
- package/dist/apis/variantsApi.js +154 -0
- package/dist/apis/variantsApi.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/models/card.d.ts +56 -0
- package/dist/models/card.js +66 -0
- package/dist/models/card.js.map +1 -0
- package/dist/models/cardDetail.d.ts +126 -0
- package/dist/models/cardDetail.js +110 -0
- package/dist/models/cardDetail.js.map +1 -0
- package/dist/models/cardInDeck.d.ts +38 -0
- package/dist/models/cardInDeck.js +55 -0
- package/dist/models/cardInDeck.js.map +1 -0
- package/dist/models/cardInDeckRequest.d.ts +38 -0
- package/dist/models/cardInDeckRequest.js +53 -0
- package/dist/models/cardInDeckRequest.js.map +1 -0
- package/dist/models/cardInVariant.d.ts +75 -0
- package/dist/models/cardInVariant.js +73 -0
- package/dist/models/cardInVariant.js.map +1 -0
- package/dist/models/cardLegalities.d.ts +104 -0
- package/dist/models/cardLegalities.js +99 -0
- package/dist/models/cardLegalities.js.map +1 -0
- package/dist/models/cardPrices.d.ts +44 -0
- package/dist/models/cardPrices.js +59 -0
- package/dist/models/cardPrices.js.map +1 -0
- package/dist/models/cardUsedInVariantSuggestion.d.ts +75 -0
- package/dist/models/cardUsedInVariantSuggestion.js +80 -0
- package/dist/models/cardUsedInVariantSuggestion.js.map +1 -0
- package/dist/models/cardUsedInVariantSuggestionRequest.d.ts +75 -0
- package/dist/models/cardUsedInVariantSuggestionRequest.js +68 -0
- package/dist/models/cardUsedInVariantSuggestionRequest.js.map +1 -0
- package/dist/models/combo.d.ts +32 -0
- package/dist/models/combo.js +49 -0
- package/dist/models/combo.js.map +1 -0
- package/dist/models/deck.d.ts +39 -0
- package/dist/models/deck.js +56 -0
- package/dist/models/deck.js.map +1 -0
- package/dist/models/deckRequest.d.ts +39 -0
- package/dist/models/deckRequest.js +52 -0
- package/dist/models/deckRequest.js.map +1 -0
- package/dist/models/feature.d.ts +44 -0
- package/dist/models/feature.js +58 -0
- package/dist/models/feature.js.map +1 -0
- package/dist/models/featureOfCard.d.ts +81 -0
- package/dist/models/featureOfCard.js +81 -0
- package/dist/models/featureOfCard.js.map +1 -0
- package/dist/models/featureProducedByVariant.d.ts +39 -0
- package/dist/models/featureProducedByVariant.js +55 -0
- package/dist/models/featureProducedByVariant.js.map +1 -0
- package/dist/models/featureProducedInVariantSuggestion.d.ts +32 -0
- package/dist/models/featureProducedInVariantSuggestion.js +51 -0
- package/dist/models/featureProducedInVariantSuggestion.js.map +1 -0
- package/dist/models/featureProducedInVariantSuggestionRequest.d.ts +32 -0
- package/dist/models/featureProducedInVariantSuggestionRequest.js +51 -0
- package/dist/models/featureProducedInVariantSuggestionRequest.js.map +1 -0
- package/dist/models/findMyCombosResponse.d.ts +69 -0
- package/dist/models/findMyCombosResponse.js +76 -0
- package/dist/models/findMyCombosResponse.js.map +1 -0
- package/dist/models/identityEnum.d.ts +86 -0
- package/dist/models/identityEnum.js +115 -0
- package/dist/models/identityEnum.js.map +1 -0
- package/dist/models/index.d.ts +56 -0
- package/dist/models/index.js +75 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/invalidUrlResponse.d.ts +32 -0
- package/dist/models/invalidUrlResponse.js +51 -0
- package/dist/models/invalidUrlResponse.js.map +1 -0
- package/dist/models/paginatedCardDetailList.d.ts +51 -0
- package/dist/models/paginatedCardDetailList.js +64 -0
- package/dist/models/paginatedCardDetailList.js.map +1 -0
- package/dist/models/paginatedFeatureList.d.ts +51 -0
- package/dist/models/paginatedFeatureList.js +64 -0
- package/dist/models/paginatedFeatureList.js.map +1 -0
- package/dist/models/paginatedFindMyCombosResponseList.d.ts +51 -0
- package/dist/models/paginatedFindMyCombosResponseList.js +64 -0
- package/dist/models/paginatedFindMyCombosResponseList.js.map +1 -0
- package/dist/models/paginatedFindMyCombosResponseListResults.d.ts +69 -0
- package/dist/models/paginatedFindMyCombosResponseListResults.js +76 -0
- package/dist/models/paginatedFindMyCombosResponseListResults.js.map +1 -0
- package/dist/models/paginatedTemplateList.d.ts +51 -0
- package/dist/models/paginatedTemplateList.js +64 -0
- package/dist/models/paginatedTemplateList.js.map +1 -0
- package/dist/models/paginatedUserDetailList.d.ts +51 -0
- package/dist/models/paginatedUserDetailList.js +64 -0
- package/dist/models/paginatedUserDetailList.js.map +1 -0
- package/dist/models/paginatedVariantAliasList.d.ts +51 -0
- package/dist/models/paginatedVariantAliasList.js +64 -0
- package/dist/models/paginatedVariantAliasList.js.map +1 -0
- package/dist/models/paginatedVariantList.d.ts +51 -0
- package/dist/models/paginatedVariantList.js +64 -0
- package/dist/models/paginatedVariantList.js.map +1 -0
- package/dist/models/paginatedVariantSuggestionList.d.ts +51 -0
- package/dist/models/paginatedVariantSuggestionList.js +64 -0
- package/dist/models/paginatedVariantSuggestionList.js.map +1 -0
- package/dist/models/paginatedWebsitePropertyList.d.ts +51 -0
- package/dist/models/paginatedWebsitePropertyList.js +64 -0
- package/dist/models/paginatedWebsitePropertyList.js.map +1 -0
- package/dist/models/patchedUserDetailRequest.d.ts +44 -0
- package/dist/models/patchedUserDetailRequest.js +53 -0
- package/dist/models/patchedUserDetailRequest.js.map +1 -0
- package/dist/models/patchedVariantSuggestionRequest.d.ts +83 -0
- package/dist/models/patchedVariantSuggestionRequest.js +68 -0
- package/dist/models/patchedVariantSuggestionRequest.js.map +1 -0
- package/dist/models/template.d.ts +57 -0
- package/dist/models/template.js +61 -0
- package/dist/models/template.js.map +1 -0
- package/dist/models/templateInVariant.d.ts +75 -0
- package/dist/models/templateInVariant.js +73 -0
- package/dist/models/templateInVariant.js.map +1 -0
- package/dist/models/templateRequiredInVariantSuggestion.d.ts +88 -0
- package/dist/models/templateRequiredInVariantSuggestion.js +84 -0
- package/dist/models/templateRequiredInVariantSuggestion.js.map +1 -0
- package/dist/models/templateRequiredInVariantSuggestionRequest.d.ts +88 -0
- package/dist/models/templateRequiredInVariantSuggestionRequest.js +70 -0
- package/dist/models/templateRequiredInVariantSuggestionRequest.js.map +1 -0
- package/dist/models/tokenObtainPair.d.ts +38 -0
- package/dist/models/tokenObtainPair.js +52 -0
- package/dist/models/tokenObtainPair.js.map +1 -0
- package/dist/models/tokenObtainPairRequest.d.ts +44 -0
- package/dist/models/tokenObtainPairRequest.js +53 -0
- package/dist/models/tokenObtainPairRequest.js.map +1 -0
- package/dist/models/tokenRefresh.d.ts +32 -0
- package/dist/models/tokenRefresh.js +49 -0
- package/dist/models/tokenRefresh.js.map +1 -0
- package/dist/models/tokenRefreshRequest.d.ts +32 -0
- package/dist/models/tokenRefreshRequest.js +51 -0
- package/dist/models/tokenRefreshRequest.js.map +1 -0
- package/dist/models/tokenVerifyRequest.d.ts +32 -0
- package/dist/models/tokenVerifyRequest.js +51 -0
- package/dist/models/tokenVerifyRequest.js.map +1 -0
- package/dist/models/user.d.ts +38 -0
- package/dist/models/user.js +54 -0
- package/dist/models/user.js.map +1 -0
- package/dist/models/userDetail.d.ts +68 -0
- package/dist/models/userDetail.js +70 -0
- package/dist/models/userDetail.js.map +1 -0
- package/dist/models/userDetailRequest.d.ts +44 -0
- package/dist/models/userDetailRequest.js +55 -0
- package/dist/models/userDetailRequest.js.map +1 -0
- package/dist/models/userRequest.d.ts +32 -0
- package/dist/models/userRequest.js +51 -0
- package/dist/models/userRequest.js.map +1 -0
- package/dist/models/variant.d.ts +150 -0
- package/dist/models/variant.js +113 -0
- package/dist/models/variant.js.map +1 -0
- package/dist/models/variantAlias.d.ts +38 -0
- package/dist/models/variantAlias.js +55 -0
- package/dist/models/variantAlias.js.map +1 -0
- package/dist/models/variantLegalities.d.ts +104 -0
- package/dist/models/variantLegalities.js +99 -0
- package/dist/models/variantLegalities.js.map +1 -0
- package/dist/models/variantPrices.d.ts +44 -0
- package/dist/models/variantPrices.js +59 -0
- package/dist/models/variantPrices.js.map +1 -0
- package/dist/models/variantStatusEnum.d.ts +36 -0
- package/dist/models/variantStatusEnum.js +65 -0
- package/dist/models/variantStatusEnum.js.map +1 -0
- package/dist/models/variantSuggestion.d.ts +115 -0
- package/dist/models/variantSuggestion.js +100 -0
- package/dist/models/variantSuggestion.js.map +1 -0
- package/dist/models/variantSuggestionRequest.d.ts +83 -0
- package/dist/models/variantSuggestionRequest.js +76 -0
- package/dist/models/variantSuggestionRequest.js.map +1 -0
- package/dist/models/variantSuggestionStatusEnum.d.ts +32 -0
- package/dist/models/variantSuggestionStatusEnum.js +61 -0
- package/dist/models/variantSuggestionStatusEnum.js.map +1 -0
- package/dist/models/variantsQueryValidationError.d.ts +32 -0
- package/dist/models/variantsQueryValidationError.js +51 -0
- package/dist/models/variantsQueryValidationError.js.map +1 -0
- package/dist/models/websiteProperty.d.ts +38 -0
- package/dist/models/websiteProperty.js +54 -0
- package/dist/models/websiteProperty.js.map +1 -0
- package/dist/models/zoneLocationsEnum.d.ts +34 -0
- package/dist/models/zoneLocationsEnum.js +63 -0
- package/dist/models/zoneLocationsEnum.js.map +1 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +347 -0
- package/dist/runtime.js.map +1 -0
- package/package.json +36 -0
- package/spellbook-client/.openapi-generator/FILES +74 -0
- package/spellbook-client/.openapi-generator/VERSION +1 -0
- package/spellbook-client/.openapi-generator-ignore +23 -0
- package/spellbook-client/apis/cardListFromTextApi.ts +107 -0
- package/spellbook-client/apis/cardListFromUrlApi.ts +76 -0
- package/spellbook-client/apis/cardsApi.ts +142 -0
- package/spellbook-client/apis/defaultApi.ts +112 -0
- package/spellbook-client/apis/featuresApi.ts +132 -0
- package/spellbook-client/apis/findMyCombosApi.ts +173 -0
- package/spellbook-client/apis/index.ts +15 -0
- package/spellbook-client/apis/propertiesApi.ts +127 -0
- package/spellbook-client/apis/templatesApi.ts +132 -0
- package/spellbook-client/apis/tokenApi.ts +154 -0
- package/spellbook-client/apis/usersApi.ts +285 -0
- package/spellbook-client/apis/variantAliasesApi.ts +127 -0
- package/spellbook-client/apis/variantSuggestionsApi.ts +339 -0
- package/spellbook-client/apis/variantsApi.ts +150 -0
- package/spellbook-client/index.ts +5 -0
- package/spellbook-client/models/card.ts +101 -0
- package/spellbook-client/models/cardDetail.ts +227 -0
- package/spellbook-client/models/cardInDeck.ts +75 -0
- package/spellbook-client/models/cardInDeckRequest.ts +74 -0
- package/spellbook-client/models/cardInVariant.ts +130 -0
- package/spellbook-client/models/cardLegalities.ts +174 -0
- package/spellbook-client/models/cardPrices.ts +84 -0
- package/spellbook-client/models/cardUsedInVariantSuggestion.ts +137 -0
- package/spellbook-client/models/cardUsedInVariantSuggestionRequest.ts +131 -0
- package/spellbook-client/models/combo.ts +65 -0
- package/spellbook-client/models/deck.ts +83 -0
- package/spellbook-client/models/deckRequest.ts +81 -0
- package/spellbook-client/models/feature.ts +83 -0
- package/spellbook-client/models/featureOfCard.ts +143 -0
- package/spellbook-client/models/featureProducedByVariant.ts +82 -0
- package/spellbook-client/models/featureProducedInVariantSuggestion.ts +66 -0
- package/spellbook-client/models/featureProducedInVariantSuggestionRequest.ts +66 -0
- package/spellbook-client/models/findMyCombosResponse.ts +128 -0
- package/spellbook-client/models/identityEnum.ts +113 -0
- package/spellbook-client/models/index.ts +58 -0
- package/spellbook-client/models/invalidUrlResponse.ts +66 -0
- package/spellbook-client/models/paginatedCardDetailList.ts +101 -0
- package/spellbook-client/models/paginatedFeatureList.ts +101 -0
- package/spellbook-client/models/paginatedFindMyCombosResponseList.ts +101 -0
- package/spellbook-client/models/paginatedFindMyCombosResponseListResults.ts +128 -0
- package/spellbook-client/models/paginatedTemplateList.ts +101 -0
- package/spellbook-client/models/paginatedUserDetailList.ts +101 -0
- package/spellbook-client/models/paginatedVariantAliasList.ts +101 -0
- package/spellbook-client/models/paginatedVariantList.ts +101 -0
- package/spellbook-client/models/paginatedVariantSuggestionList.ts +101 -0
- package/spellbook-client/models/paginatedWebsitePropertyList.ts +101 -0
- package/spellbook-client/models/patchedUserDetailRequest.ts +81 -0
- package/spellbook-client/models/patchedVariantSuggestionRequest.ts +151 -0
- package/spellbook-client/models/template.ts +98 -0
- package/spellbook-client/models/templateInVariant.ts +130 -0
- package/spellbook-client/models/templateRequiredInVariantSuggestion.ts +153 -0
- package/spellbook-client/models/templateRequiredInVariantSuggestionRequest.ts +146 -0
- package/spellbook-client/models/tokenObtainPair.ts +73 -0
- package/spellbook-client/models/tokenObtainPairRequest.ts +81 -0
- package/spellbook-client/models/tokenRefresh.ts +65 -0
- package/spellbook-client/models/tokenRefreshRequest.ts +66 -0
- package/spellbook-client/models/tokenVerifyRequest.ts +66 -0
- package/spellbook-client/models/user.ts +74 -0
- package/spellbook-client/models/userDetail.ts +115 -0
- package/spellbook-client/models/userDetailRequest.ts +82 -0
- package/spellbook-client/models/userRequest.ts +66 -0
- package/spellbook-client/models/variant.ts +272 -0
- package/spellbook-client/models/variantAlias.ts +75 -0
- package/spellbook-client/models/variantLegalities.ts +174 -0
- package/spellbook-client/models/variantPrices.ts +84 -0
- package/spellbook-client/models/variantStatusEnum.ts +63 -0
- package/spellbook-client/models/variantSuggestion.ts +214 -0
- package/spellbook-client/models/variantSuggestionRequest.ts +155 -0
- package/spellbook-client/models/variantSuggestionStatusEnum.ts +59 -0
- package/spellbook-client/models/variantsQueryValidationError.ts +66 -0
- package/spellbook-client/models/websiteProperty.ts +74 -0
- package/spellbook-client/models/zoneLocationsEnum.ts +61 -0
- package/spellbook-client/runtime.ts +431 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FeatureProducedByVariant } from './featureProducedByVariant';
|
|
17
|
+
import {
|
|
18
|
+
FeatureProducedByVariantFromJSON,
|
|
19
|
+
FeatureProducedByVariantFromJSONTyped,
|
|
20
|
+
FeatureProducedByVariantToJSON,
|
|
21
|
+
FeatureProducedByVariantToJSONTyped,
|
|
22
|
+
} from './featureProducedByVariant';
|
|
23
|
+
import type { VariantLegalities } from './variantLegalities';
|
|
24
|
+
import {
|
|
25
|
+
VariantLegalitiesFromJSON,
|
|
26
|
+
VariantLegalitiesFromJSONTyped,
|
|
27
|
+
VariantLegalitiesToJSON,
|
|
28
|
+
VariantLegalitiesToJSONTyped,
|
|
29
|
+
} from './variantLegalities';
|
|
30
|
+
import type { VariantPrices } from './variantPrices';
|
|
31
|
+
import {
|
|
32
|
+
VariantPricesFromJSON,
|
|
33
|
+
VariantPricesFromJSONTyped,
|
|
34
|
+
VariantPricesToJSON,
|
|
35
|
+
VariantPricesToJSONTyped,
|
|
36
|
+
} from './variantPrices';
|
|
37
|
+
import type { VariantStatusEnum } from './variantStatusEnum';
|
|
38
|
+
import {
|
|
39
|
+
VariantStatusEnumFromJSON,
|
|
40
|
+
VariantStatusEnumFromJSONTyped,
|
|
41
|
+
VariantStatusEnumToJSON,
|
|
42
|
+
VariantStatusEnumToJSONTyped,
|
|
43
|
+
} from './variantStatusEnum';
|
|
44
|
+
import type { Combo } from './combo';
|
|
45
|
+
import {
|
|
46
|
+
ComboFromJSON,
|
|
47
|
+
ComboFromJSONTyped,
|
|
48
|
+
ComboToJSON,
|
|
49
|
+
ComboToJSONTyped,
|
|
50
|
+
} from './combo';
|
|
51
|
+
import type { CardInVariant } from './cardInVariant';
|
|
52
|
+
import {
|
|
53
|
+
CardInVariantFromJSON,
|
|
54
|
+
CardInVariantFromJSONTyped,
|
|
55
|
+
CardInVariantToJSON,
|
|
56
|
+
CardInVariantToJSONTyped,
|
|
57
|
+
} from './cardInVariant';
|
|
58
|
+
import type { IdentityEnum } from './identityEnum';
|
|
59
|
+
import {
|
|
60
|
+
IdentityEnumFromJSON,
|
|
61
|
+
IdentityEnumFromJSONTyped,
|
|
62
|
+
IdentityEnumToJSON,
|
|
63
|
+
IdentityEnumToJSONTyped,
|
|
64
|
+
} from './identityEnum';
|
|
65
|
+
import type { TemplateInVariant } from './templateInVariant';
|
|
66
|
+
import {
|
|
67
|
+
TemplateInVariantFromJSON,
|
|
68
|
+
TemplateInVariantFromJSONTyped,
|
|
69
|
+
TemplateInVariantToJSON,
|
|
70
|
+
TemplateInVariantToJSONTyped,
|
|
71
|
+
} from './templateInVariant';
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @export
|
|
76
|
+
* @interface Variant
|
|
77
|
+
*/
|
|
78
|
+
export interface Variant {
|
|
79
|
+
/**
|
|
80
|
+
* Unique ID for this variant
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof Variant
|
|
83
|
+
*/
|
|
84
|
+
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* Variant status for editors
|
|
87
|
+
*
|
|
88
|
+
* * `N` - New
|
|
89
|
+
* * `D` - Draft
|
|
90
|
+
* * `NR` - Needs Review
|
|
91
|
+
* * `OK` - Ok
|
|
92
|
+
* * `E` - Example
|
|
93
|
+
* * `R` - Restore
|
|
94
|
+
* * `NW` - Not Working
|
|
95
|
+
* @type {VariantStatusEnum}
|
|
96
|
+
* @memberof Variant
|
|
97
|
+
*/
|
|
98
|
+
status: VariantStatusEnum;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Array<CardInVariant>}
|
|
102
|
+
* @memberof Variant
|
|
103
|
+
*/
|
|
104
|
+
readonly uses: Array<CardInVariant>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<TemplateInVariant>}
|
|
108
|
+
* @memberof Variant
|
|
109
|
+
*/
|
|
110
|
+
readonly requires: Array<TemplateInVariant>;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Array<FeatureProducedByVariant>}
|
|
114
|
+
* @memberof Variant
|
|
115
|
+
*/
|
|
116
|
+
readonly produces: Array<FeatureProducedByVariant>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {Array<Combo>}
|
|
120
|
+
* @memberof Variant
|
|
121
|
+
*/
|
|
122
|
+
readonly of: Array<Combo>;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {Array<Combo>}
|
|
126
|
+
* @memberof Variant
|
|
127
|
+
*/
|
|
128
|
+
readonly includes: Array<Combo>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {IdentityEnum}
|
|
132
|
+
* @memberof Variant
|
|
133
|
+
*/
|
|
134
|
+
identity: IdentityEnum;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof Variant
|
|
139
|
+
*/
|
|
140
|
+
readonly manaNeeded: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @memberof Variant
|
|
145
|
+
*/
|
|
146
|
+
readonly manaValueNeeded: number;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof Variant
|
|
151
|
+
*/
|
|
152
|
+
readonly otherPrerequisites: string;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof Variant
|
|
157
|
+
*/
|
|
158
|
+
readonly description: string;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof Variant
|
|
163
|
+
*/
|
|
164
|
+
readonly notes: string;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @memberof Variant
|
|
169
|
+
*/
|
|
170
|
+
readonly popularity: number | null;
|
|
171
|
+
/**
|
|
172
|
+
* Is this from an upcoming set?
|
|
173
|
+
* @type {boolean}
|
|
174
|
+
* @memberof Variant
|
|
175
|
+
*/
|
|
176
|
+
spoiler: boolean;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {VariantLegalities}
|
|
180
|
+
* @memberof Variant
|
|
181
|
+
*/
|
|
182
|
+
readonly legalities: VariantLegalities;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {VariantPrices}
|
|
186
|
+
* @memberof Variant
|
|
187
|
+
*/
|
|
188
|
+
readonly prices: VariantPrices;
|
|
189
|
+
/**
|
|
190
|
+
* Number of variants generated by the same generator combos
|
|
191
|
+
* @type {number}
|
|
192
|
+
* @memberof Variant
|
|
193
|
+
*/
|
|
194
|
+
readonly variantCount: number;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Check if a given object implements the Variant interface.
|
|
201
|
+
*/
|
|
202
|
+
export function instanceOfVariant(value: object): value is Variant {
|
|
203
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
204
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
205
|
+
if (!('uses' in value) || value['uses'] === undefined) return false;
|
|
206
|
+
if (!('requires' in value) || value['requires'] === undefined) return false;
|
|
207
|
+
if (!('produces' in value) || value['produces'] === undefined) return false;
|
|
208
|
+
if (!('of' in value) || value['of'] === undefined) return false;
|
|
209
|
+
if (!('includes' in value) || value['includes'] === undefined) return false;
|
|
210
|
+
if (!('identity' in value) || value['identity'] === undefined) return false;
|
|
211
|
+
if (!('manaNeeded' in value) || value['manaNeeded'] === undefined) return false;
|
|
212
|
+
if (!('manaValueNeeded' in value) || value['manaValueNeeded'] === undefined) return false;
|
|
213
|
+
if (!('otherPrerequisites' in value) || value['otherPrerequisites'] === undefined) return false;
|
|
214
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
215
|
+
if (!('notes' in value) || value['notes'] === undefined) return false;
|
|
216
|
+
if (!('popularity' in value) || value['popularity'] === undefined) return false;
|
|
217
|
+
if (!('spoiler' in value) || value['spoiler'] === undefined) return false;
|
|
218
|
+
if (!('legalities' in value) || value['legalities'] === undefined) return false;
|
|
219
|
+
if (!('prices' in value) || value['prices'] === undefined) return false;
|
|
220
|
+
if (!('variantCount' in value) || value['variantCount'] === undefined) return false;
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function VariantFromJSON(json: any): Variant {
|
|
225
|
+
return VariantFromJSONTyped(json, false);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant {
|
|
229
|
+
if (json == null) {
|
|
230
|
+
return json;
|
|
231
|
+
}
|
|
232
|
+
return {
|
|
233
|
+
|
|
234
|
+
'id': json['id'],
|
|
235
|
+
'status': VariantStatusEnumFromJSON(json['status']),
|
|
236
|
+
'uses': ((json['uses'] as Array<any>).map(CardInVariantFromJSON)),
|
|
237
|
+
'requires': ((json['requires'] as Array<any>).map(TemplateInVariantFromJSON)),
|
|
238
|
+
'produces': ((json['produces'] as Array<any>).map(FeatureProducedByVariantFromJSON)),
|
|
239
|
+
'of': ((json['of'] as Array<any>).map(ComboFromJSON)),
|
|
240
|
+
'includes': ((json['includes'] as Array<any>).map(ComboFromJSON)),
|
|
241
|
+
'identity': IdentityEnumFromJSON(json['identity']),
|
|
242
|
+
'manaNeeded': json['manaNeeded'],
|
|
243
|
+
'manaValueNeeded': json['manaValueNeeded'],
|
|
244
|
+
'otherPrerequisites': json['otherPrerequisites'],
|
|
245
|
+
'description': json['description'],
|
|
246
|
+
'notes': json['notes'],
|
|
247
|
+
'popularity': json['popularity'],
|
|
248
|
+
'spoiler': json['spoiler'],
|
|
249
|
+
'legalities': VariantLegalitiesFromJSON(json['legalities']),
|
|
250
|
+
'prices': VariantPricesFromJSON(json['prices']),
|
|
251
|
+
'variantCount': json['variantCount'],
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function VariantToJSON(json: any): Variant {
|
|
256
|
+
return VariantToJSONTyped(json, false);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export function VariantToJSONTyped(value?: Omit<Variant, 'uses'|'requires'|'produces'|'of'|'includes'|'manaNeeded'|'manaValueNeeded'|'otherPrerequisites'|'description'|'notes'|'popularity'|'legalities'|'prices'|'variantCount'> | null, ignoreDiscriminator: boolean = false): any {
|
|
260
|
+
if (value == null) {
|
|
261
|
+
return value;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
return {
|
|
265
|
+
|
|
266
|
+
'id': value['id'],
|
|
267
|
+
'status': VariantStatusEnumToJSON(value['status']),
|
|
268
|
+
'identity': IdentityEnumToJSON(value['identity']),
|
|
269
|
+
'spoiler': value['spoiler'],
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VariantAlias
|
|
20
|
+
*/
|
|
21
|
+
export interface VariantAlias {
|
|
22
|
+
/**
|
|
23
|
+
* Unique id of this variant alias
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VariantAlias
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Variant this alias redirects to
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VariantAlias
|
|
32
|
+
*/
|
|
33
|
+
variant: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VariantAlias interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVariantAlias(value: object): value is VariantAlias {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('variant' in value) || value['variant'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VariantAliasFromJSON(json: any): VariantAlias {
|
|
46
|
+
return VariantAliasFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VariantAliasFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantAlias {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'variant': json['variant'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VariantAliasToJSON(json: any): VariantAlias {
|
|
61
|
+
return VariantAliasToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function VariantAliasToJSONTyped(value?: VariantAlias | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'variant': value['variant'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VariantLegalities
|
|
20
|
+
*/
|
|
21
|
+
export interface VariantLegalities {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof VariantLegalities
|
|
26
|
+
*/
|
|
27
|
+
commander: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof VariantLegalities
|
|
32
|
+
*/
|
|
33
|
+
pauperCommanderMain: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof VariantLegalities
|
|
38
|
+
*/
|
|
39
|
+
pauperCommander: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof VariantLegalities
|
|
44
|
+
*/
|
|
45
|
+
oathbreaker: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof VariantLegalities
|
|
50
|
+
*/
|
|
51
|
+
predh: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof VariantLegalities
|
|
56
|
+
*/
|
|
57
|
+
brawl: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof VariantLegalities
|
|
62
|
+
*/
|
|
63
|
+
vintage: boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof VariantLegalities
|
|
68
|
+
*/
|
|
69
|
+
legacy: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof VariantLegalities
|
|
74
|
+
*/
|
|
75
|
+
premodern: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof VariantLegalities
|
|
80
|
+
*/
|
|
81
|
+
modern: boolean;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof VariantLegalities
|
|
86
|
+
*/
|
|
87
|
+
pioneer: boolean;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof VariantLegalities
|
|
92
|
+
*/
|
|
93
|
+
standard: boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof VariantLegalities
|
|
98
|
+
*/
|
|
99
|
+
pauper: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the VariantLegalities interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfVariantLegalities(value: object): value is VariantLegalities {
|
|
106
|
+
if (!('commander' in value) || value['commander'] === undefined) return false;
|
|
107
|
+
if (!('pauperCommanderMain' in value) || value['pauperCommanderMain'] === undefined) return false;
|
|
108
|
+
if (!('pauperCommander' in value) || value['pauperCommander'] === undefined) return false;
|
|
109
|
+
if (!('oathbreaker' in value) || value['oathbreaker'] === undefined) return false;
|
|
110
|
+
if (!('predh' in value) || value['predh'] === undefined) return false;
|
|
111
|
+
if (!('brawl' in value) || value['brawl'] === undefined) return false;
|
|
112
|
+
if (!('vintage' in value) || value['vintage'] === undefined) return false;
|
|
113
|
+
if (!('legacy' in value) || value['legacy'] === undefined) return false;
|
|
114
|
+
if (!('premodern' in value) || value['premodern'] === undefined) return false;
|
|
115
|
+
if (!('modern' in value) || value['modern'] === undefined) return false;
|
|
116
|
+
if (!('pioneer' in value) || value['pioneer'] === undefined) return false;
|
|
117
|
+
if (!('standard' in value) || value['standard'] === undefined) return false;
|
|
118
|
+
if (!('pauper' in value) || value['pauper'] === undefined) return false;
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function VariantLegalitiesFromJSON(json: any): VariantLegalities {
|
|
123
|
+
return VariantLegalitiesFromJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function VariantLegalitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantLegalities {
|
|
127
|
+
if (json == null) {
|
|
128
|
+
return json;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'commander': json['commander'],
|
|
133
|
+
'pauperCommanderMain': json['pauperCommanderMain'],
|
|
134
|
+
'pauperCommander': json['pauperCommander'],
|
|
135
|
+
'oathbreaker': json['oathbreaker'],
|
|
136
|
+
'predh': json['predh'],
|
|
137
|
+
'brawl': json['brawl'],
|
|
138
|
+
'vintage': json['vintage'],
|
|
139
|
+
'legacy': json['legacy'],
|
|
140
|
+
'premodern': json['premodern'],
|
|
141
|
+
'modern': json['modern'],
|
|
142
|
+
'pioneer': json['pioneer'],
|
|
143
|
+
'standard': json['standard'],
|
|
144
|
+
'pauper': json['pauper'],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function VariantLegalitiesToJSON(json: any): VariantLegalities {
|
|
149
|
+
return VariantLegalitiesToJSONTyped(json, false);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function VariantLegalitiesToJSONTyped(value?: VariantLegalities | null, ignoreDiscriminator: boolean = false): any {
|
|
153
|
+
if (value == null) {
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return {
|
|
158
|
+
|
|
159
|
+
'commander': value['commander'],
|
|
160
|
+
'pauperCommanderMain': value['pauperCommanderMain'],
|
|
161
|
+
'pauperCommander': value['pauperCommander'],
|
|
162
|
+
'oathbreaker': value['oathbreaker'],
|
|
163
|
+
'predh': value['predh'],
|
|
164
|
+
'brawl': value['brawl'],
|
|
165
|
+
'vintage': value['vintage'],
|
|
166
|
+
'legacy': value['legacy'],
|
|
167
|
+
'premodern': value['premodern'],
|
|
168
|
+
'modern': value['modern'],
|
|
169
|
+
'pioneer': value['pioneer'],
|
|
170
|
+
'standard': value['standard'],
|
|
171
|
+
'pauper': value['pauper'],
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VariantPrices
|
|
20
|
+
*/
|
|
21
|
+
export interface VariantPrices {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VariantPrices
|
|
26
|
+
*/
|
|
27
|
+
tcgplayer: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VariantPrices
|
|
32
|
+
*/
|
|
33
|
+
cardkingdom: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VariantPrices
|
|
38
|
+
*/
|
|
39
|
+
cardmarket: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the VariantPrices interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfVariantPrices(value: object): value is VariantPrices {
|
|
46
|
+
if (!('tcgplayer' in value) || value['tcgplayer'] === undefined) return false;
|
|
47
|
+
if (!('cardkingdom' in value) || value['cardkingdom'] === undefined) return false;
|
|
48
|
+
if (!('cardmarket' in value) || value['cardmarket'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VariantPricesFromJSON(json: any): VariantPrices {
|
|
53
|
+
return VariantPricesFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VariantPricesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantPrices {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'tcgplayer': json['tcgplayer'],
|
|
63
|
+
'cardkingdom': json['cardkingdom'],
|
|
64
|
+
'cardmarket': json['cardmarket'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function VariantPricesToJSON(json: any): VariantPrices {
|
|
69
|
+
return VariantPricesToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function VariantPricesToJSONTyped(value?: VariantPrices | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'tcgplayer': value['tcgplayer'],
|
|
80
|
+
'cardkingdom': value['cardkingdom'],
|
|
81
|
+
'cardmarket': value['cardmarket'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* * `N` - New
|
|
17
|
+
* * `D` - Draft
|
|
18
|
+
* * `NR` - Needs Review
|
|
19
|
+
* * `OK` - Ok
|
|
20
|
+
* * `E` - Example
|
|
21
|
+
* * `R` - Restore
|
|
22
|
+
* * `NW` - Not Working
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
export enum VariantStatusEnum {
|
|
27
|
+
N = 'N',
|
|
28
|
+
D = 'D',
|
|
29
|
+
Nr = 'NR',
|
|
30
|
+
Ok = 'OK',
|
|
31
|
+
E = 'E',
|
|
32
|
+
R = 'R',
|
|
33
|
+
Nw = 'NW'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
export function instanceOfVariantStatusEnum(value: any): boolean {
|
|
38
|
+
for (const key in VariantStatusEnum) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(VariantStatusEnum, key)) {
|
|
40
|
+
if (VariantStatusEnum[key as keyof typeof VariantStatusEnum] === value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function VariantStatusEnumFromJSON(json: any): VariantStatusEnum {
|
|
49
|
+
return VariantStatusEnumFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VariantStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantStatusEnum {
|
|
53
|
+
return json as VariantStatusEnum;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VariantStatusEnumToJSON(value?: VariantStatusEnum | null): any {
|
|
57
|
+
return value as any;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VariantStatusEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): VariantStatusEnum {
|
|
61
|
+
return value as VariantStatusEnum;
|
|
62
|
+
}
|
|
63
|
+
|