@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,227 @@
|
|
|
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 { FeatureOfCard } from './featureOfCard';
|
|
17
|
+
import {
|
|
18
|
+
FeatureOfCardFromJSON,
|
|
19
|
+
FeatureOfCardFromJSONTyped,
|
|
20
|
+
FeatureOfCardToJSON,
|
|
21
|
+
FeatureOfCardToJSONTyped,
|
|
22
|
+
} from './featureOfCard';
|
|
23
|
+
import type { CardLegalities } from './cardLegalities';
|
|
24
|
+
import {
|
|
25
|
+
CardLegalitiesFromJSON,
|
|
26
|
+
CardLegalitiesFromJSONTyped,
|
|
27
|
+
CardLegalitiesToJSON,
|
|
28
|
+
CardLegalitiesToJSONTyped,
|
|
29
|
+
} from './cardLegalities';
|
|
30
|
+
import type { CardPrices } from './cardPrices';
|
|
31
|
+
import {
|
|
32
|
+
CardPricesFromJSON,
|
|
33
|
+
CardPricesFromJSONTyped,
|
|
34
|
+
CardPricesToJSON,
|
|
35
|
+
CardPricesToJSONTyped,
|
|
36
|
+
} from './cardPrices';
|
|
37
|
+
import type { IdentityEnum } from './identityEnum';
|
|
38
|
+
import {
|
|
39
|
+
IdentityEnumFromJSON,
|
|
40
|
+
IdentityEnumFromJSONTyped,
|
|
41
|
+
IdentityEnumToJSON,
|
|
42
|
+
IdentityEnumToJSONTyped,
|
|
43
|
+
} from './identityEnum';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface CardDetail
|
|
49
|
+
*/
|
|
50
|
+
export interface CardDetail {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof CardDetail
|
|
55
|
+
*/
|
|
56
|
+
readonly id: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof CardDetail
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CardDetail
|
|
67
|
+
*/
|
|
68
|
+
oracleId: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {IdentityEnum}
|
|
72
|
+
* @memberof CardDetail
|
|
73
|
+
*/
|
|
74
|
+
identity: IdentityEnum;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof CardDetail
|
|
79
|
+
*/
|
|
80
|
+
readonly variantCount: number;
|
|
81
|
+
/**
|
|
82
|
+
* Is this from an upcoming set?
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof CardDetail
|
|
85
|
+
*/
|
|
86
|
+
spoiler: boolean;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CardDetail
|
|
91
|
+
*/
|
|
92
|
+
typeLine: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CardDetail
|
|
97
|
+
*/
|
|
98
|
+
oracleText: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {any}
|
|
102
|
+
* @memberof CardDetail
|
|
103
|
+
*/
|
|
104
|
+
keywords: any | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof CardDetail
|
|
109
|
+
*/
|
|
110
|
+
manaValue: number;
|
|
111
|
+
/**
|
|
112
|
+
* Whether this card is part of the Reserved List
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof CardDetail
|
|
115
|
+
*/
|
|
116
|
+
reserved: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Set code of latest printing of card
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof CardDetail
|
|
121
|
+
*/
|
|
122
|
+
latestPrintingSet: string;
|
|
123
|
+
/**
|
|
124
|
+
* Whether this card has been reprinted
|
|
125
|
+
* @type {boolean}
|
|
126
|
+
* @memberof CardDetail
|
|
127
|
+
*/
|
|
128
|
+
reprinted: boolean;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {Array<FeatureOfCard>}
|
|
132
|
+
* @memberof CardDetail
|
|
133
|
+
*/
|
|
134
|
+
readonly features: Array<FeatureOfCard>;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {CardLegalities}
|
|
138
|
+
* @memberof CardDetail
|
|
139
|
+
*/
|
|
140
|
+
readonly legalities: CardLegalities;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {CardPrices}
|
|
144
|
+
* @memberof CardDetail
|
|
145
|
+
*/
|
|
146
|
+
readonly prices: CardPrices;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Check if a given object implements the CardDetail interface.
|
|
153
|
+
*/
|
|
154
|
+
export function instanceOfCardDetail(value: object): value is CardDetail {
|
|
155
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
156
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
157
|
+
if (!('oracleId' in value) || value['oracleId'] === undefined) return false;
|
|
158
|
+
if (!('identity' in value) || value['identity'] === undefined) return false;
|
|
159
|
+
if (!('variantCount' in value) || value['variantCount'] === undefined) return false;
|
|
160
|
+
if (!('spoiler' in value) || value['spoiler'] === undefined) return false;
|
|
161
|
+
if (!('typeLine' in value) || value['typeLine'] === undefined) return false;
|
|
162
|
+
if (!('oracleText' in value) || value['oracleText'] === undefined) return false;
|
|
163
|
+
if (!('keywords' in value) || value['keywords'] === undefined) return false;
|
|
164
|
+
if (!('manaValue' in value) || value['manaValue'] === undefined) return false;
|
|
165
|
+
if (!('reserved' in value) || value['reserved'] === undefined) return false;
|
|
166
|
+
if (!('latestPrintingSet' in value) || value['latestPrintingSet'] === undefined) return false;
|
|
167
|
+
if (!('reprinted' in value) || value['reprinted'] === undefined) return false;
|
|
168
|
+
if (!('features' in value) || value['features'] === undefined) return false;
|
|
169
|
+
if (!('legalities' in value) || value['legalities'] === undefined) return false;
|
|
170
|
+
if (!('prices' in value) || value['prices'] === undefined) return false;
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function CardDetailFromJSON(json: any): CardDetail {
|
|
175
|
+
return CardDetailFromJSONTyped(json, false);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export function CardDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardDetail {
|
|
179
|
+
if (json == null) {
|
|
180
|
+
return json;
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
|
|
184
|
+
'id': json['id'],
|
|
185
|
+
'name': json['name'],
|
|
186
|
+
'oracleId': json['oracleId'],
|
|
187
|
+
'identity': IdentityEnumFromJSON(json['identity']),
|
|
188
|
+
'variantCount': json['variantCount'],
|
|
189
|
+
'spoiler': json['spoiler'],
|
|
190
|
+
'typeLine': json['typeLine'],
|
|
191
|
+
'oracleText': json['oracleText'],
|
|
192
|
+
'keywords': json['keywords'],
|
|
193
|
+
'manaValue': json['manaValue'],
|
|
194
|
+
'reserved': json['reserved'],
|
|
195
|
+
'latestPrintingSet': json['latestPrintingSet'],
|
|
196
|
+
'reprinted': json['reprinted'],
|
|
197
|
+
'features': ((json['features'] as Array<any>).map(FeatureOfCardFromJSON)),
|
|
198
|
+
'legalities': CardLegalitiesFromJSON(json['legalities']),
|
|
199
|
+
'prices': CardPricesFromJSON(json['prices']),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function CardDetailToJSON(json: any): CardDetail {
|
|
204
|
+
return CardDetailToJSONTyped(json, false);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function CardDetailToJSONTyped(value?: Omit<CardDetail, 'id'|'variantCount'|'features'|'legalities'|'prices'> | null, ignoreDiscriminator: boolean = false): any {
|
|
208
|
+
if (value == null) {
|
|
209
|
+
return value;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return {
|
|
213
|
+
|
|
214
|
+
'name': value['name'],
|
|
215
|
+
'oracleId': value['oracleId'],
|
|
216
|
+
'identity': IdentityEnumToJSON(value['identity']),
|
|
217
|
+
'spoiler': value['spoiler'],
|
|
218
|
+
'typeLine': value['typeLine'],
|
|
219
|
+
'oracleText': value['oracleText'],
|
|
220
|
+
'keywords': value['keywords'],
|
|
221
|
+
'manaValue': value['manaValue'],
|
|
222
|
+
'reserved': value['reserved'],
|
|
223
|
+
'latestPrintingSet': value['latestPrintingSet'],
|
|
224
|
+
'reprinted': value['reprinted'],
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
@@ -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 CardInDeck
|
|
20
|
+
*/
|
|
21
|
+
export interface CardInDeck {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CardInDeck
|
|
26
|
+
*/
|
|
27
|
+
card: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CardInDeck
|
|
32
|
+
*/
|
|
33
|
+
quantity: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CardInDeck interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCardInDeck(value: object): value is CardInDeck {
|
|
40
|
+
if (!('card' in value) || value['card'] === undefined) return false;
|
|
41
|
+
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CardInDeckFromJSON(json: any): CardInDeck {
|
|
46
|
+
return CardInDeckFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CardInDeckFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardInDeck {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'card': json['card'],
|
|
56
|
+
'quantity': json['quantity'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CardInDeckToJSON(json: any): CardInDeck {
|
|
61
|
+
return CardInDeckToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CardInDeckToJSONTyped(value?: CardInDeck | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'card': value['card'],
|
|
72
|
+
'quantity': value['quantity'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 CardInDeckRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CardInDeckRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CardInDeckRequest
|
|
26
|
+
*/
|
|
27
|
+
card: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CardInDeckRequest
|
|
32
|
+
*/
|
|
33
|
+
quantity?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CardInDeckRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCardInDeckRequest(value: object): value is CardInDeckRequest {
|
|
40
|
+
if (!('card' in value) || value['card'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CardInDeckRequestFromJSON(json: any): CardInDeckRequest {
|
|
45
|
+
return CardInDeckRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function CardInDeckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardInDeckRequest {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'card': json['card'],
|
|
55
|
+
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CardInDeckRequestToJSON(json: any): CardInDeckRequest {
|
|
60
|
+
return CardInDeckRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CardInDeckRequestToJSONTyped(value?: CardInDeckRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'card': value['card'],
|
|
71
|
+
'quantity': value['quantity'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { Card } from './card';
|
|
17
|
+
import {
|
|
18
|
+
CardFromJSON,
|
|
19
|
+
CardFromJSONTyped,
|
|
20
|
+
CardToJSON,
|
|
21
|
+
CardToJSONTyped,
|
|
22
|
+
} from './card';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CardInVariant
|
|
28
|
+
*/
|
|
29
|
+
export interface CardInVariant {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Card}
|
|
33
|
+
* @memberof CardInVariant
|
|
34
|
+
*/
|
|
35
|
+
readonly card: Card;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof CardInVariant
|
|
40
|
+
*/
|
|
41
|
+
readonly zoneLocations: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CardInVariant
|
|
46
|
+
*/
|
|
47
|
+
readonly battlefieldCardState: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CardInVariant
|
|
52
|
+
*/
|
|
53
|
+
readonly exileCardState: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CardInVariant
|
|
58
|
+
*/
|
|
59
|
+
readonly libraryCardState: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CardInVariant
|
|
64
|
+
*/
|
|
65
|
+
readonly graveyardCardState: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof CardInVariant
|
|
70
|
+
*/
|
|
71
|
+
readonly mustBeCommander: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Quantity of the card in the combo.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof CardInVariant
|
|
76
|
+
*/
|
|
77
|
+
quantity: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the CardInVariant interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfCardInVariant(value: object): value is CardInVariant {
|
|
84
|
+
if (!('card' in value) || value['card'] === undefined) return false;
|
|
85
|
+
if (!('zoneLocations' in value) || value['zoneLocations'] === undefined) return false;
|
|
86
|
+
if (!('battlefieldCardState' in value) || value['battlefieldCardState'] === undefined) return false;
|
|
87
|
+
if (!('exileCardState' in value) || value['exileCardState'] === undefined) return false;
|
|
88
|
+
if (!('libraryCardState' in value) || value['libraryCardState'] === undefined) return false;
|
|
89
|
+
if (!('graveyardCardState' in value) || value['graveyardCardState'] === undefined) return false;
|
|
90
|
+
if (!('mustBeCommander' in value) || value['mustBeCommander'] === undefined) return false;
|
|
91
|
+
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function CardInVariantFromJSON(json: any): CardInVariant {
|
|
96
|
+
return CardInVariantFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function CardInVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardInVariant {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'card': CardFromJSON(json['card']),
|
|
106
|
+
'zoneLocations': json['zoneLocations'],
|
|
107
|
+
'battlefieldCardState': json['battlefieldCardState'],
|
|
108
|
+
'exileCardState': json['exileCardState'],
|
|
109
|
+
'libraryCardState': json['libraryCardState'],
|
|
110
|
+
'graveyardCardState': json['graveyardCardState'],
|
|
111
|
+
'mustBeCommander': json['mustBeCommander'],
|
|
112
|
+
'quantity': json['quantity'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function CardInVariantToJSON(json: any): CardInVariant {
|
|
117
|
+
return CardInVariantToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function CardInVariantToJSONTyped(value?: Omit<CardInVariant, 'card'|'zoneLocations'|'battlefieldCardState'|'exileCardState'|'libraryCardState'|'graveyardCardState'|'mustBeCommander'> | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'quantity': value['quantity'],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -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 CardLegalities
|
|
20
|
+
*/
|
|
21
|
+
export interface CardLegalities {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof CardLegalities
|
|
26
|
+
*/
|
|
27
|
+
commander: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof CardLegalities
|
|
32
|
+
*/
|
|
33
|
+
pauperCommanderMain: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof CardLegalities
|
|
38
|
+
*/
|
|
39
|
+
pauperCommander: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof CardLegalities
|
|
44
|
+
*/
|
|
45
|
+
oathbreaker: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof CardLegalities
|
|
50
|
+
*/
|
|
51
|
+
predh: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof CardLegalities
|
|
56
|
+
*/
|
|
57
|
+
brawl: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof CardLegalities
|
|
62
|
+
*/
|
|
63
|
+
vintage: boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof CardLegalities
|
|
68
|
+
*/
|
|
69
|
+
legacy: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof CardLegalities
|
|
74
|
+
*/
|
|
75
|
+
premodern: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof CardLegalities
|
|
80
|
+
*/
|
|
81
|
+
modern: boolean;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof CardLegalities
|
|
86
|
+
*/
|
|
87
|
+
pioneer: boolean;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof CardLegalities
|
|
92
|
+
*/
|
|
93
|
+
standard: boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof CardLegalities
|
|
98
|
+
*/
|
|
99
|
+
pauper: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the CardLegalities interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfCardLegalities(value: object): value is CardLegalities {
|
|
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 CardLegalitiesFromJSON(json: any): CardLegalities {
|
|
123
|
+
return CardLegalitiesFromJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function CardLegalitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardLegalities {
|
|
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 CardLegalitiesToJSON(json: any): CardLegalities {
|
|
149
|
+
return CardLegalitiesToJSONTyped(json, false);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function CardLegalitiesToJSONTyped(value?: CardLegalities | 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
|
+
|