@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,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Commander Spellbook API
|
|
6
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCombo = instanceOfCombo;
|
|
17
|
+
exports.ComboFromJSON = ComboFromJSON;
|
|
18
|
+
exports.ComboFromJSONTyped = ComboFromJSONTyped;
|
|
19
|
+
exports.ComboToJSON = ComboToJSON;
|
|
20
|
+
exports.ComboToJSONTyped = ComboToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Combo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCombo(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ComboFromJSON(json) {
|
|
30
|
+
return ComboFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ComboFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ComboToJSON(json) {
|
|
41
|
+
return ComboToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ComboToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=combo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combo.js","sourceRoot":"","sources":["../../spellbook-client/models/combo.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0CAGC;AAED,sCAEC;AAED,gDAQC;AAED,kCAEC;AAED,4CAQC;AAlCD;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS,EAAE,mBAA4B;IACtE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACnB,CAAC;AACN,CAAC;AAED,SAAgB,WAAW,CAAC,IAAS;IACjC,OAAO,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,gBAAgB,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,EAEN,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Spellbook API
|
|
3
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CardInDeck } from './cardInDeck';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Deck
|
|
17
|
+
*/
|
|
18
|
+
export interface Deck {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CardInDeck>}
|
|
22
|
+
* @memberof Deck
|
|
23
|
+
*/
|
|
24
|
+
main: Array<CardInDeck>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<CardInDeck>}
|
|
28
|
+
* @memberof Deck
|
|
29
|
+
*/
|
|
30
|
+
commanders: Array<CardInDeck>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the Deck interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDeck(value: object): value is Deck;
|
|
36
|
+
export declare function DeckFromJSON(json: any): Deck;
|
|
37
|
+
export declare function DeckFromJSONTyped(json: any, ignoreDiscriminator: boolean): Deck;
|
|
38
|
+
export declare function DeckToJSON(json: any): Deck;
|
|
39
|
+
export declare function DeckToJSONTyped(value?: Deck | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Commander Spellbook API
|
|
6
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeck = instanceOfDeck;
|
|
17
|
+
exports.DeckFromJSON = DeckFromJSON;
|
|
18
|
+
exports.DeckFromJSONTyped = DeckFromJSONTyped;
|
|
19
|
+
exports.DeckToJSON = DeckToJSON;
|
|
20
|
+
exports.DeckToJSONTyped = DeckToJSONTyped;
|
|
21
|
+
const cardInDeck_1 = require("./cardInDeck");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the Deck interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDeck(value) {
|
|
26
|
+
if (!('main' in value) || value['main'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('commanders' in value) || value['commanders'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function DeckFromJSON(json) {
|
|
33
|
+
return DeckFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function DeckFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'main': (json['main'].map(cardInDeck_1.CardInDeckFromJSON)),
|
|
41
|
+
'commanders': (json['commanders'].map(cardInDeck_1.CardInDeckFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function DeckToJSON(json) {
|
|
45
|
+
return DeckToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function DeckToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'main': (value['main'].map(cardInDeck_1.CardInDeckToJSON)),
|
|
53
|
+
'commanders': (value['commanders'].map(cardInDeck_1.CardInDeckToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=deck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck.js","sourceRoot":"","sources":["../../spellbook-client/models/deck.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,wCAIC;AAED,oCAEC;AAED,8CASC;AAED,gCAEC;AAED,0CAUC;AAjED,6CAKsB;AAsBtB;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IACxC,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,+BAAkB,CAAC,CAAC;QAC9D,YAAY,EAAE,CAAE,IAAI,CAAC,YAAY,CAAgB,CAAC,GAAG,CAAC,+BAAkB,CAAC,CAAC;KAC7E,CAAC;AACN,CAAC;AAED,SAAgB,UAAU,CAAC,IAAS;IAChC,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAmB,EAAE,sBAA+B,KAAK;IACrF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6BAAgB,CAAC,CAAC;QAC7D,YAAY,EAAE,CAAE,KAAK,CAAC,YAAY,CAAgB,CAAC,GAAG,CAAC,6BAAgB,CAAC,CAAC;KAC5E,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Spellbook API
|
|
3
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CardInDeckRequest } from './cardInDeckRequest';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DeckRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface DeckRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CardInDeckRequest>}
|
|
22
|
+
* @memberof DeckRequest
|
|
23
|
+
*/
|
|
24
|
+
main?: Array<CardInDeckRequest>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<CardInDeckRequest>}
|
|
28
|
+
* @memberof DeckRequest
|
|
29
|
+
*/
|
|
30
|
+
commanders?: Array<CardInDeckRequest>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DeckRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDeckRequest(value: object): value is DeckRequest;
|
|
36
|
+
export declare function DeckRequestFromJSON(json: any): DeckRequest;
|
|
37
|
+
export declare function DeckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeckRequest;
|
|
38
|
+
export declare function DeckRequestToJSON(json: any): DeckRequest;
|
|
39
|
+
export declare function DeckRequestToJSONTyped(value?: DeckRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Commander Spellbook API
|
|
6
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeckRequest = instanceOfDeckRequest;
|
|
17
|
+
exports.DeckRequestFromJSON = DeckRequestFromJSON;
|
|
18
|
+
exports.DeckRequestFromJSONTyped = DeckRequestFromJSONTyped;
|
|
19
|
+
exports.DeckRequestToJSON = DeckRequestToJSON;
|
|
20
|
+
exports.DeckRequestToJSONTyped = DeckRequestToJSONTyped;
|
|
21
|
+
const cardInDeckRequest_1 = require("./cardInDeckRequest");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DeckRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDeckRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function DeckRequestFromJSON(json) {
|
|
29
|
+
return DeckRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function DeckRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'main': json['main'] == null ? undefined : (json['main'].map(cardInDeckRequest_1.CardInDeckRequestFromJSON)),
|
|
37
|
+
'commanders': json['commanders'] == null ? undefined : (json['commanders'].map(cardInDeckRequest_1.CardInDeckRequestFromJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DeckRequestToJSON(json) {
|
|
41
|
+
return DeckRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DeckRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'main': value['main'] == null ? undefined : (value['main'].map(cardInDeckRequest_1.CardInDeckRequestToJSON)),
|
|
49
|
+
'commanders': value['commanders'] == null ? undefined : (value['commanders'].map(cardInDeckRequest_1.CardInDeckRequestToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=deckRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deckRequest.js","sourceRoot":"","sources":["../../spellbook-client/models/deckRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,sDAEC;AAED,kDAEC;AAED,4DASC;AAED,8CAEC;AAED,wDAUC;AA/DD,2DAK6B;AAsB7B;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6CAAyB,CAAC,CAAC;QACxG,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,YAAY,CAAgB,CAAC,GAAG,CAAC,6CAAyB,CAAC,CAAC;KAC7H,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2CAAuB,CAAC,CAAC;QACxG,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,YAAY,CAAgB,CAAC,GAAG,CAAC,2CAAuB,CAAC,CAAC;KAC7H,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Spellbook API
|
|
3
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Feature
|
|
16
|
+
*/
|
|
17
|
+
export interface Feature {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Feature
|
|
22
|
+
*/
|
|
23
|
+
readonly id: number;
|
|
24
|
+
/**
|
|
25
|
+
* Short name for a produced effect
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Feature
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Is this an uncountable feature? Uncountable features can only appear in one copy and speed up variant generation.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof Feature
|
|
34
|
+
*/
|
|
35
|
+
uncountable: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Feature interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfFeature(value: object): value is Feature;
|
|
41
|
+
export declare function FeatureFromJSON(json: any): Feature;
|
|
42
|
+
export declare function FeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): Feature;
|
|
43
|
+
export declare function FeatureToJSON(json: any): Feature;
|
|
44
|
+
export declare function FeatureToJSONTyped(value?: Omit<Feature, 'id'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Commander Spellbook API
|
|
6
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfFeature = instanceOfFeature;
|
|
17
|
+
exports.FeatureFromJSON = FeatureFromJSON;
|
|
18
|
+
exports.FeatureFromJSONTyped = FeatureFromJSONTyped;
|
|
19
|
+
exports.FeatureToJSON = FeatureToJSON;
|
|
20
|
+
exports.FeatureToJSONTyped = FeatureToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Feature interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFeature(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('uncountable' in value) || value['uncountable'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function FeatureFromJSON(json) {
|
|
34
|
+
return FeatureFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function FeatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'uncountable': json['uncountable'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function FeatureToJSON(json) {
|
|
47
|
+
return FeatureToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function FeatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'uncountable': value['uncountable'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../spellbook-client/models/feature.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,8CAKC;AAED,0CAEC;AAED,oDAUC;AAED,sCAEC;AAED,gDAUC;AAxCD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;KACrC,CAAC;AACN,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Spellbook API
|
|
3
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Feature } from './feature';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FeatureOfCard
|
|
17
|
+
*/
|
|
18
|
+
export interface FeatureOfCard {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof FeatureOfCard
|
|
23
|
+
*/
|
|
24
|
+
readonly id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Feature}
|
|
28
|
+
* @memberof FeatureOfCard
|
|
29
|
+
*/
|
|
30
|
+
readonly feature: Feature;
|
|
31
|
+
/**
|
|
32
|
+
* Quantity of the card in the combo.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof FeatureOfCard
|
|
35
|
+
*/
|
|
36
|
+
quantity: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof FeatureOfCard
|
|
41
|
+
*/
|
|
42
|
+
readonly zoneLocations: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* State of the card on the battlefield, if present.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof FeatureOfCard
|
|
47
|
+
*/
|
|
48
|
+
battlefieldCardState: string;
|
|
49
|
+
/**
|
|
50
|
+
* State of the card in exile, if present.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof FeatureOfCard
|
|
53
|
+
*/
|
|
54
|
+
exileCardState: string;
|
|
55
|
+
/**
|
|
56
|
+
* State of the card in the library, if present.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof FeatureOfCard
|
|
59
|
+
*/
|
|
60
|
+
libraryCardState: string;
|
|
61
|
+
/**
|
|
62
|
+
* State of the card in the graveyard, if present.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof FeatureOfCard
|
|
65
|
+
*/
|
|
66
|
+
graveyardCardState: string;
|
|
67
|
+
/**
|
|
68
|
+
* Does the card have to be a commander?
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof FeatureOfCard
|
|
71
|
+
*/
|
|
72
|
+
mustBeCommander: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the FeatureOfCard interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfFeatureOfCard(value: object): value is FeatureOfCard;
|
|
78
|
+
export declare function FeatureOfCardFromJSON(json: any): FeatureOfCard;
|
|
79
|
+
export declare function FeatureOfCardFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureOfCard;
|
|
80
|
+
export declare function FeatureOfCardToJSON(json: any): FeatureOfCard;
|
|
81
|
+
export declare function FeatureOfCardToJSONTyped(value?: Omit<FeatureOfCard, 'id' | 'feature' | 'zoneLocations'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Commander Spellbook API
|
|
6
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfFeatureOfCard = instanceOfFeatureOfCard;
|
|
17
|
+
exports.FeatureOfCardFromJSON = FeatureOfCardFromJSON;
|
|
18
|
+
exports.FeatureOfCardFromJSONTyped = FeatureOfCardFromJSONTyped;
|
|
19
|
+
exports.FeatureOfCardToJSON = FeatureOfCardToJSON;
|
|
20
|
+
exports.FeatureOfCardToJSONTyped = FeatureOfCardToJSONTyped;
|
|
21
|
+
const feature_1 = require("./feature");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FeatureOfCard interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFeatureOfCard(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('feature' in value) || value['feature'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('zoneLocations' in value) || value['zoneLocations'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('battlefieldCardState' in value) || value['battlefieldCardState'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('exileCardState' in value) || value['exileCardState'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('libraryCardState' in value) || value['libraryCardState'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('graveyardCardState' in value) || value['graveyardCardState'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('mustBeCommander' in value) || value['mustBeCommander'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function FeatureOfCardFromJSON(json) {
|
|
47
|
+
return FeatureOfCardFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function FeatureOfCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'feature': (0, feature_1.FeatureFromJSON)(json['feature']),
|
|
56
|
+
'quantity': json['quantity'],
|
|
57
|
+
'zoneLocations': json['zoneLocations'],
|
|
58
|
+
'battlefieldCardState': json['battlefieldCardState'],
|
|
59
|
+
'exileCardState': json['exileCardState'],
|
|
60
|
+
'libraryCardState': json['libraryCardState'],
|
|
61
|
+
'graveyardCardState': json['graveyardCardState'],
|
|
62
|
+
'mustBeCommander': json['mustBeCommander'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function FeatureOfCardToJSON(json) {
|
|
66
|
+
return FeatureOfCardToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function FeatureOfCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'quantity': value['quantity'],
|
|
74
|
+
'battlefieldCardState': value['battlefieldCardState'],
|
|
75
|
+
'exileCardState': value['exileCardState'],
|
|
76
|
+
'libraryCardState': value['libraryCardState'],
|
|
77
|
+
'graveyardCardState': value['graveyardCardState'],
|
|
78
|
+
'mustBeCommander': value['mustBeCommander'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=featureOfCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureOfCard.js","sourceRoot":"","sources":["../../spellbook-client/models/featureOfCard.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Spellbook API
|
|
3
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Feature } from './feature';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FeatureProducedByVariant
|
|
17
|
+
*/
|
|
18
|
+
export interface FeatureProducedByVariant {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Feature}
|
|
22
|
+
* @memberof FeatureProducedByVariant
|
|
23
|
+
*/
|
|
24
|
+
readonly feature: Feature;
|
|
25
|
+
/**
|
|
26
|
+
* Quantity of the feature produced by the variant.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof FeatureProducedByVariant
|
|
29
|
+
*/
|
|
30
|
+
quantity: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the FeatureProducedByVariant interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfFeatureProducedByVariant(value: object): value is FeatureProducedByVariant;
|
|
36
|
+
export declare function FeatureProducedByVariantFromJSON(json: any): FeatureProducedByVariant;
|
|
37
|
+
export declare function FeatureProducedByVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureProducedByVariant;
|
|
38
|
+
export declare function FeatureProducedByVariantToJSON(json: any): FeatureProducedByVariant;
|
|
39
|
+
export declare function FeatureProducedByVariantToJSONTyped(value?: Omit<FeatureProducedByVariant, 'feature'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Commander Spellbook API
|
|
6
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfFeatureProducedByVariant = instanceOfFeatureProducedByVariant;
|
|
17
|
+
exports.FeatureProducedByVariantFromJSON = FeatureProducedByVariantFromJSON;
|
|
18
|
+
exports.FeatureProducedByVariantFromJSONTyped = FeatureProducedByVariantFromJSONTyped;
|
|
19
|
+
exports.FeatureProducedByVariantToJSON = FeatureProducedByVariantToJSON;
|
|
20
|
+
exports.FeatureProducedByVariantToJSONTyped = FeatureProducedByVariantToJSONTyped;
|
|
21
|
+
const feature_1 = require("./feature");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FeatureProducedByVariant interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFeatureProducedByVariant(value) {
|
|
26
|
+
if (!('feature' in value) || value['feature'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function FeatureProducedByVariantFromJSON(json) {
|
|
33
|
+
return FeatureProducedByVariantFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function FeatureProducedByVariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'feature': (0, feature_1.FeatureFromJSON)(json['feature']),
|
|
41
|
+
'quantity': json['quantity'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function FeatureProducedByVariantToJSON(json) {
|
|
45
|
+
return FeatureProducedByVariantToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FeatureProducedByVariantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'quantity': value['quantity'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=featureProducedByVariant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureProducedByVariant.js","sourceRoot":"","sources":["../../spellbook-client/models/featureProducedByVariant.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,gFAIC;AAED,4EAEC;AAED,sFASC;AAED,wEAEC;AAED,kFASC;AAhED,uCAKmB;AAsBnB;;GAEG;AACH,SAAgB,kCAAkC,CAAC,KAAa;IAC5D,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAA,yBAAe,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3C,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,KAAwD,EAAE,sBAA+B,KAAK;IAC9I,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Spellbook API
|
|
3
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FeatureProducedInVariantSuggestion
|
|
16
|
+
*/
|
|
17
|
+
export interface FeatureProducedInVariantSuggestion {
|
|
18
|
+
/**
|
|
19
|
+
* Feature name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FeatureProducedInVariantSuggestion
|
|
22
|
+
*/
|
|
23
|
+
feature: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the FeatureProducedInVariantSuggestion interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfFeatureProducedInVariantSuggestion(value: object): value is FeatureProducedInVariantSuggestion;
|
|
29
|
+
export declare function FeatureProducedInVariantSuggestionFromJSON(json: any): FeatureProducedInVariantSuggestion;
|
|
30
|
+
export declare function FeatureProducedInVariantSuggestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureProducedInVariantSuggestion;
|
|
31
|
+
export declare function FeatureProducedInVariantSuggestionToJSON(json: any): FeatureProducedInVariantSuggestion;
|
|
32
|
+
export declare function FeatureProducedInVariantSuggestionToJSONTyped(value?: FeatureProducedInVariantSuggestion | null, ignoreDiscriminator?: boolean): any;
|