@space-cow-media/spellbook-client 7.0.6 → 7.1.1
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 +1 -1
- package/dist/apis/CardListFromTextApi.js +1 -1
- package/dist/apis/CardListFromUrlApi.d.ts +1 -1
- package/dist/apis/CardListFromUrlApi.js +1 -1
- package/dist/apis/CardsApi.d.ts +1 -1
- package/dist/apis/CardsApi.js +1 -1
- package/dist/apis/DefaultApi.d.ts +1 -1
- package/dist/apis/DefaultApi.js +1 -1
- package/dist/apis/EstimateBracketApi.d.ts +1 -1
- package/dist/apis/EstimateBracketApi.js +1 -1
- package/dist/apis/ExplainQueryApi.d.ts +1 -1
- package/dist/apis/ExplainQueryApi.js +1 -1
- package/dist/apis/FeaturesApi.d.ts +1 -1
- package/dist/apis/FeaturesApi.js +1 -1
- package/dist/apis/FindMyCombosApi.d.ts +1 -1
- package/dist/apis/FindMyCombosApi.js +1 -1
- package/dist/apis/PropertiesApi.d.ts +1 -1
- package/dist/apis/PropertiesApi.js +1 -1
- package/dist/apis/SaltVotesApi.d.ts +127 -0
- package/dist/apis/SaltVotesApi.js +289 -0
- package/dist/apis/SaltVotesApi.js.map +1 -0
- package/dist/apis/TemplatesApi.d.ts +1 -1
- package/dist/apis/TemplatesApi.js +1 -1
- package/dist/apis/TokenApi.d.ts +1 -1
- package/dist/apis/TokenApi.js +1 -1
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.js +1 -1
- package/dist/apis/VariantAliasesApi.d.ts +1 -1
- package/dist/apis/VariantAliasesApi.js +1 -1
- package/dist/apis/VariantSuggestionsApi.d.ts +1 -1
- package/dist/apis/VariantSuggestionsApi.js +1 -1
- package/dist/apis/VariantUpdateSuggestionsApi.d.ts +1 -1
- package/dist/apis/VariantUpdateSuggestionsApi.js +1 -1
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/models/BracketTagEnum.d.ts +1 -1
- package/dist/models/BracketTagEnum.js +1 -1
- package/dist/models/Card.d.ts +11 -21
- package/dist/models/Card.js +21 -31
- package/dist/models/Card.js.map +1 -1
- package/dist/models/CardDetail.d.ts +13 -23
- package/dist/models/CardDetail.js +23 -33
- package/dist/models/CardDetail.js.map +1 -1
- package/dist/models/CardInDeck.d.ts +1 -1
- package/dist/models/CardInDeck.js +1 -1
- package/dist/models/CardInDeckRequest.d.ts +1 -1
- package/dist/models/CardInDeckRequest.js +1 -1
- package/dist/models/CardInVariant.d.ts +1 -1
- package/dist/models/CardInVariant.js +1 -1
- package/dist/models/CardLegalities.d.ts +1 -1
- package/dist/models/CardLegalities.js +1 -1
- package/dist/models/CardPrices.d.ts +1 -1
- package/dist/models/CardPrices.js +1 -1
- package/dist/models/CardUsedInVariantSuggestion.d.ts +9 -13
- package/dist/models/CardUsedInVariantSuggestion.js +9 -13
- package/dist/models/CardUsedInVariantSuggestion.js.map +1 -1
- package/dist/models/CardUsedInVariantSuggestionRequest.d.ts +9 -13
- package/dist/models/CardUsedInVariantSuggestionRequest.js +9 -13
- package/dist/models/CardUsedInVariantSuggestionRequest.js.map +1 -1
- package/dist/models/ClassifiedCard.d.ts +1 -1
- package/dist/models/ClassifiedCard.js +1 -1
- package/dist/models/ClassifiedVariant.d.ts +1 -1
- package/dist/models/ClassifiedVariant.js +1 -1
- package/dist/models/ColorEnum.d.ts +1 -1
- package/dist/models/ColorEnum.js +1 -1
- package/dist/models/Combo.d.ts +1 -1
- package/dist/models/Combo.js +1 -1
- package/dist/models/Deck.d.ts +1 -1
- package/dist/models/Deck.js +1 -1
- package/dist/models/DeckRequest.d.ts +1 -1
- package/dist/models/DeckRequest.js +1 -1
- package/dist/models/EstimateBracketResult.d.ts +1 -1
- package/dist/models/EstimateBracketResult.js +1 -1
- package/dist/models/Feature.d.ts +1 -1
- package/dist/models/Feature.js +1 -1
- package/dist/models/FeatureOfCard.d.ts +9 -13
- package/dist/models/FeatureOfCard.js +9 -13
- package/dist/models/FeatureOfCard.js.map +1 -1
- package/dist/models/FeatureProducedByVariant.d.ts +1 -1
- package/dist/models/FeatureProducedByVariant.js +1 -1
- package/dist/models/FeatureProducedInVariantSuggestion.d.ts +1 -1
- package/dist/models/FeatureProducedInVariantSuggestion.js +1 -1
- package/dist/models/FeatureProducedInVariantSuggestionRequest.d.ts +1 -1
- package/dist/models/FeatureProducedInVariantSuggestionRequest.js +1 -1
- package/dist/models/FeatureStatusEnum.d.ts +1 -1
- package/dist/models/FeatureStatusEnum.js +1 -1
- package/dist/models/FindMyCombosResponse.d.ts +1 -1
- package/dist/models/FindMyCombosResponse.js +1 -1
- package/dist/models/InvalidUrlResponse.d.ts +1 -1
- package/dist/models/InvalidUrlResponse.js +1 -1
- package/dist/models/KindEnum.d.ts +1 -1
- package/dist/models/KindEnum.js +1 -1
- package/dist/models/LayoutRotationEnum.d.ts +1 -1
- package/dist/models/LayoutRotationEnum.js +1 -1
- package/dist/models/PaginatedCardDetailList.d.ts +1 -1
- package/dist/models/PaginatedCardDetailList.js +1 -1
- package/dist/models/PaginatedFeatureList.d.ts +1 -1
- package/dist/models/PaginatedFeatureList.js +1 -1
- package/dist/models/PaginatedFindMyCombosResponseList.d.ts +1 -1
- package/dist/models/PaginatedFindMyCombosResponseList.js +1 -1
- package/dist/models/PaginatedFindMyCombosResponseListResults.d.ts +1 -1
- package/dist/models/PaginatedFindMyCombosResponseListResults.js +1 -1
- package/dist/models/{WebsitePropertyValue.d.ts → PaginatedSaltVoteList.d.ts} +30 -8
- package/{spellbook-client/models/GraveyardStartingCardState.ts → dist/models/PaginatedSaltVoteList.js} +34 -33
- package/dist/models/PaginatedSaltVoteList.js.map +1 -0
- package/dist/models/PaginatedTemplateList.d.ts +1 -1
- package/dist/models/PaginatedTemplateList.js +1 -1
- package/dist/models/PaginatedUserDetailList.d.ts +1 -1
- package/dist/models/PaginatedUserDetailList.js +1 -1
- package/dist/models/PaginatedVariantAliasList.d.ts +1 -1
- package/dist/models/PaginatedVariantAliasList.js +1 -1
- package/dist/models/PaginatedVariantList.d.ts +1 -1
- package/dist/models/PaginatedVariantList.js +1 -1
- package/dist/models/PaginatedVariantSuggestionList.d.ts +1 -1
- package/dist/models/PaginatedVariantSuggestionList.js +1 -1
- package/dist/models/PaginatedVariantUpdateSuggestionList.d.ts +1 -1
- package/dist/models/PaginatedVariantUpdateSuggestionList.js +1 -1
- package/dist/models/PaginatedWebsitePropertyList.d.ts +1 -1
- package/dist/models/PaginatedWebsitePropertyList.js +1 -1
- package/dist/models/PatchedUserDetailRequest.d.ts +1 -1
- package/dist/models/PatchedUserDetailRequest.js +1 -1
- package/dist/models/PatchedVariantSuggestionRequest.d.ts +9 -13
- package/dist/models/PatchedVariantSuggestionRequest.js +9 -13
- package/dist/models/PatchedVariantSuggestionRequest.js.map +1 -1
- package/dist/models/PatchedVariantUpdateSuggestionRequest.d.ts +5 -7
- package/dist/models/PatchedVariantUpdateSuggestionRequest.js +5 -7
- package/dist/models/PatchedVariantUpdateSuggestionRequest.js.map +1 -1
- package/dist/models/ProducedManaEnum.d.ts +1 -1
- package/dist/models/ProducedManaEnum.js +1 -1
- package/dist/models/QueryExplanation.d.ts +1 -1
- package/dist/models/QueryExplanation.js +1 -1
- package/dist/models/QueryExplanationValidationError.d.ts +1 -1
- package/dist/models/QueryExplanationValidationError.js +1 -1
- package/dist/models/{ImageURIOfTheBackOfTheCardInNormalFormat.d.ts → SaltVote.d.ts} +36 -7
- package/{spellbook-client/models/PatchedVariantSuggestionRequestComment.ts → dist/models/SaltVote.js} +37 -33
- package/dist/models/SaltVote.js.map +1 -0
- package/dist/models/{ImageURIOfTheBackOfTheCardInLargeFormat.d.ts → SaltVoteRequest.d.ts} +16 -7
- package/dist/models/{WebsitePropertyValue.js → SaltVoteRequest.js} +22 -22
- package/dist/models/SaltVoteRequest.js.map +1 -0
- package/dist/models/SuggestionStatusEnum.d.ts +1 -1
- package/dist/models/SuggestionStatusEnum.js +1 -1
- package/dist/models/Template.d.ts +1 -1
- package/dist/models/Template.js +1 -1
- package/dist/models/TemplateInVariant.d.ts +1 -1
- package/dist/models/TemplateInVariant.js +1 -1
- package/dist/models/TemplateRequiredInVariantSuggestion.d.ts +9 -13
- package/dist/models/TemplateRequiredInVariantSuggestion.js +9 -13
- package/dist/models/TemplateRequiredInVariantSuggestion.js.map +1 -1
- package/dist/models/TemplateRequiredInVariantSuggestionRequest.d.ts +9 -13
- package/dist/models/TemplateRequiredInVariantSuggestionRequest.js +9 -13
- package/dist/models/TemplateRequiredInVariantSuggestionRequest.js.map +1 -1
- package/dist/models/TokenObtainPair.d.ts +1 -1
- package/dist/models/TokenObtainPair.js +1 -1
- package/dist/models/TokenObtainPairRequest.d.ts +1 -1
- package/dist/models/TokenObtainPairRequest.js +1 -1
- package/dist/models/TokenRefresh.d.ts +1 -1
- package/dist/models/TokenRefresh.js +1 -1
- package/dist/models/TokenRefreshRequest.d.ts +1 -1
- package/dist/models/TokenRefreshRequest.js +1 -1
- package/dist/models/TokenVerifyRequest.d.ts +1 -1
- package/dist/models/TokenVerifyRequest.js +1 -1
- package/dist/models/User.d.ts +1 -1
- package/dist/models/User.js +1 -1
- package/dist/models/UserDetail.d.ts +1 -1
- package/dist/models/UserDetail.js +1 -1
- package/dist/models/UserDetailRequest.d.ts +1 -1
- package/dist/models/UserDetailRequest.js +1 -1
- package/dist/models/UserRequest.d.ts +1 -1
- package/dist/models/UserRequest.js +1 -1
- package/dist/models/Variant.d.ts +10 -2
- package/dist/models/Variant.js +7 -1
- package/dist/models/Variant.js.map +1 -1
- package/dist/models/VariantAlias.d.ts +1 -1
- package/dist/models/VariantAlias.js +1 -1
- package/dist/models/VariantInVariantUpdateSuggestion.d.ts +3 -4
- package/dist/models/VariantInVariantUpdateSuggestion.js +3 -4
- package/dist/models/VariantInVariantUpdateSuggestion.js.map +1 -1
- package/dist/models/VariantInVariantUpdateSuggestionRequest.d.ts +3 -4
- package/dist/models/VariantInVariantUpdateSuggestionRequest.js +3 -4
- package/dist/models/VariantInVariantUpdateSuggestionRequest.js.map +1 -1
- package/dist/models/VariantLegalities.d.ts +1 -1
- package/dist/models/VariantLegalities.js +1 -1
- package/dist/models/VariantPrices.d.ts +1 -1
- package/dist/models/VariantPrices.js +1 -1
- package/dist/models/VariantStatusEnum.d.ts +1 -1
- package/dist/models/VariantStatusEnum.js +1 -1
- package/dist/models/VariantSuggestion.d.ts +9 -13
- package/dist/models/VariantSuggestion.js +9 -13
- package/dist/models/VariantSuggestion.js.map +1 -1
- package/dist/models/VariantSuggestionRequest.d.ts +9 -13
- package/dist/models/VariantSuggestionRequest.js +9 -13
- package/dist/models/VariantSuggestionRequest.js.map +1 -1
- package/dist/models/VariantUpdateSuggestion.d.ts +5 -7
- package/dist/models/VariantUpdateSuggestion.js +5 -7
- package/dist/models/VariantUpdateSuggestion.js.map +1 -1
- package/dist/models/VariantUpdateSuggestionRequest.d.ts +5 -7
- package/dist/models/VariantUpdateSuggestionRequest.js +5 -7
- package/dist/models/VariantUpdateSuggestionRequest.js.map +1 -1
- package/dist/models/VariantsQueryValidationError.d.ts +1 -1
- package/dist/models/VariantsQueryValidationError.js +1 -1
- package/dist/models/WebsiteProperty.d.ts +3 -4
- package/dist/models/WebsiteProperty.js +3 -4
- package/dist/models/WebsiteProperty.js.map +1 -1
- package/dist/models/ZoneLocationsEnum.d.ts +1 -1
- package/dist/models/ZoneLocationsEnum.js +1 -1
- package/dist/models/index.d.ts +3 -21
- package/dist/models/index.js +3 -21
- package/dist/models/index.js.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/spellbook-client/apis/CardListFromTextApi.ts +1 -1
- package/spellbook-client/apis/CardListFromUrlApi.ts +1 -1
- package/spellbook-client/apis/CardsApi.ts +1 -1
- package/spellbook-client/apis/DefaultApi.ts +1 -1
- package/spellbook-client/apis/EstimateBracketApi.ts +1 -1
- package/spellbook-client/apis/ExplainQueryApi.ts +1 -1
- package/spellbook-client/apis/FeaturesApi.ts +1 -1
- package/spellbook-client/apis/FindMyCombosApi.ts +1 -1
- package/spellbook-client/apis/PropertiesApi.ts +1 -1
- package/spellbook-client/apis/SaltVotesApi.ts +386 -0
- package/spellbook-client/apis/TemplatesApi.ts +1 -1
- package/spellbook-client/apis/TokenApi.ts +1 -1
- package/spellbook-client/apis/UsersApi.ts +1 -1
- package/spellbook-client/apis/VariantAliasesApi.ts +1 -1
- package/spellbook-client/apis/VariantSuggestionsApi.ts +1 -1
- package/spellbook-client/apis/VariantUpdateSuggestionsApi.ts +1 -1
- package/spellbook-client/apis/VariantsApi.ts +1 -1
- package/spellbook-client/apis/index.ts +1 -0
- package/spellbook-client/docs/Card.md +10 -10
- package/spellbook-client/docs/CardDetail.md +10 -10
- package/spellbook-client/docs/CardUsedInVariantSuggestion.md +4 -4
- package/spellbook-client/docs/CardUsedInVariantSuggestionRequest.md +4 -4
- package/spellbook-client/docs/FeatureOfCard.md +4 -4
- package/spellbook-client/docs/{ImageURIOfTheBackOfTheCardInNormalFormat.md → PaginatedSaltVoteList.md} +12 -4
- package/spellbook-client/docs/PatchedVariantSuggestionRequest.md +4 -4
- package/spellbook-client/docs/PatchedVariantUpdateSuggestionRequest.md +2 -2
- package/spellbook-client/docs/{BattlefieldStartingCardState.md → SaltVote.md} +16 -5
- package/spellbook-client/docs/{ImageURIOfTheCardArtCrop.md → SaltVoteRequest.md} +6 -4
- package/spellbook-client/docs/SaltVotesApi.md +406 -0
- package/spellbook-client/docs/TemplateRequiredInVariantSuggestion.md +4 -4
- package/spellbook-client/docs/TemplateRequiredInVariantSuggestionRequest.md +4 -4
- package/spellbook-client/docs/Variant.md +4 -0
- package/spellbook-client/docs/VariantInVariantUpdateSuggestion.md +1 -1
- package/spellbook-client/docs/VariantInVariantUpdateSuggestionRequest.md +1 -1
- package/spellbook-client/docs/VariantSuggestion.md +4 -4
- package/spellbook-client/docs/VariantSuggestionRequest.md +4 -4
- package/spellbook-client/docs/VariantUpdateSuggestion.md +2 -2
- package/spellbook-client/docs/VariantUpdateSuggestionRequest.md +2 -2
- package/spellbook-client/docs/WebsiteProperty.md +1 -1
- package/spellbook-client/models/BracketTagEnum.ts +1 -1
- package/spellbook-client/models/Card.ts +31 -101
- package/spellbook-client/models/CardDetail.ts +45 -115
- package/spellbook-client/models/CardInDeck.ts +1 -1
- package/spellbook-client/models/CardInDeckRequest.ts +1 -1
- package/spellbook-client/models/CardInVariant.ts +1 -1
- package/spellbook-client/models/CardLegalities.ts +1 -1
- package/spellbook-client/models/CardPrices.ts +1 -1
- package/spellbook-client/models/CardUsedInVariantSuggestion.ts +17 -45
- package/spellbook-client/models/CardUsedInVariantSuggestionRequest.ts +17 -45
- package/spellbook-client/models/ClassifiedCard.ts +1 -1
- package/spellbook-client/models/ClassifiedVariant.ts +1 -1
- package/spellbook-client/models/ColorEnum.ts +1 -1
- package/spellbook-client/models/Combo.ts +1 -1
- package/spellbook-client/models/Deck.ts +1 -1
- package/spellbook-client/models/DeckRequest.ts +1 -1
- package/spellbook-client/models/EstimateBracketResult.ts +1 -1
- package/spellbook-client/models/Feature.ts +1 -1
- package/spellbook-client/models/FeatureOfCard.ts +17 -45
- package/spellbook-client/models/FeatureProducedByVariant.ts +1 -1
- package/spellbook-client/models/FeatureProducedInVariantSuggestion.ts +1 -1
- package/spellbook-client/models/FeatureProducedInVariantSuggestionRequest.ts +1 -1
- package/spellbook-client/models/FeatureStatusEnum.ts +1 -1
- package/spellbook-client/models/FindMyCombosResponse.ts +1 -1
- package/spellbook-client/models/InvalidUrlResponse.ts +1 -1
- package/spellbook-client/models/KindEnum.ts +1 -1
- package/spellbook-client/models/LayoutRotationEnum.ts +1 -1
- package/spellbook-client/models/PaginatedCardDetailList.ts +1 -1
- package/spellbook-client/models/PaginatedFeatureList.ts +1 -1
- package/spellbook-client/models/PaginatedFindMyCombosResponseList.ts +1 -1
- package/spellbook-client/models/PaginatedFindMyCombosResponseListResults.ts +1 -1
- package/spellbook-client/models/PaginatedSaltVoteList.ts +93 -0
- package/spellbook-client/models/PaginatedTemplateList.ts +1 -1
- package/spellbook-client/models/PaginatedUserDetailList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantAliasList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantSuggestionList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantUpdateSuggestionList.ts +1 -1
- package/spellbook-client/models/PaginatedWebsitePropertyList.ts +1 -1
- package/spellbook-client/models/PatchedUserDetailRequest.ts +1 -1
- package/spellbook-client/models/PatchedVariantSuggestionRequest.ts +17 -45
- package/spellbook-client/models/PatchedVariantUpdateSuggestionRequest.ts +9 -23
- package/spellbook-client/models/ProducedManaEnum.ts +1 -1
- package/spellbook-client/models/QueryExplanation.ts +1 -1
- package/spellbook-client/models/QueryExplanationValidationError.ts +1 -1
- package/spellbook-client/models/SaltVote.ts +94 -0
- package/spellbook-client/models/{ImageURIOfTheCardArtCrop.ts → SaltVoteRequest.ts} +32 -24
- package/spellbook-client/models/SuggestionStatusEnum.ts +1 -1
- package/spellbook-client/models/Template.ts +1 -1
- package/spellbook-client/models/TemplateInVariant.ts +1 -1
- package/spellbook-client/models/TemplateRequiredInVariantSuggestion.ts +17 -45
- package/spellbook-client/models/TemplateRequiredInVariantSuggestionRequest.ts +17 -45
- package/spellbook-client/models/TokenObtainPair.ts +1 -1
- package/spellbook-client/models/TokenObtainPairRequest.ts +1 -1
- package/spellbook-client/models/TokenRefresh.ts +1 -1
- package/spellbook-client/models/TokenRefreshRequest.ts +1 -1
- package/spellbook-client/models/TokenVerifyRequest.ts +1 -1
- package/spellbook-client/models/User.ts +1 -1
- package/spellbook-client/models/UserDetail.ts +1 -1
- package/spellbook-client/models/UserDetailRequest.ts +1 -1
- package/spellbook-client/models/UserRequest.ts +1 -1
- package/spellbook-client/models/Variant.ts +14 -2
- package/spellbook-client/models/VariantAlias.ts +1 -1
- package/spellbook-client/models/VariantInVariantUpdateSuggestion.ts +5 -13
- package/spellbook-client/models/VariantInVariantUpdateSuggestionRequest.ts +5 -13
- package/spellbook-client/models/VariantLegalities.ts +1 -1
- package/spellbook-client/models/VariantPrices.ts +1 -1
- package/spellbook-client/models/VariantStatusEnum.ts +1 -1
- package/spellbook-client/models/VariantSuggestion.ts +17 -45
- package/spellbook-client/models/VariantSuggestionRequest.ts +17 -45
- package/spellbook-client/models/VariantUpdateSuggestion.ts +9 -23
- package/spellbook-client/models/VariantUpdateSuggestionRequest.ts +9 -23
- package/spellbook-client/models/VariantsQueryValidationError.ts +1 -1
- package/spellbook-client/models/WebsiteProperty.ts +5 -13
- package/spellbook-client/models/ZoneLocationsEnum.ts +1 -1
- package/spellbook-client/models/index.ts +3 -21
- package/spellbook-client/runtime.ts +1 -1
- package/dist/models/BattlefieldStartingCardState.d.ts +0 -21
- package/dist/models/BattlefieldStartingCardState.js +0 -44
- package/dist/models/BattlefieldStartingCardState.js.map +0 -1
- package/dist/models/ExileStartingCardState.d.ts +0 -21
- package/dist/models/ExileStartingCardState.js +0 -44
- package/dist/models/ExileStartingCardState.js.map +0 -1
- package/dist/models/GraveyardStartingCardState.d.ts +0 -21
- package/dist/models/GraveyardStartingCardState.js +0 -44
- package/dist/models/GraveyardStartingCardState.js.map +0 -1
- package/dist/models/ImageURIOfTheBackOfTheCardArtCrop.d.ts +0 -21
- package/dist/models/ImageURIOfTheBackOfTheCardArtCrop.js +0 -44
- package/dist/models/ImageURIOfTheBackOfTheCardArtCrop.js.map +0 -1
- package/dist/models/ImageURIOfTheBackOfTheCardInLargeFormat.js +0 -44
- package/dist/models/ImageURIOfTheBackOfTheCardInLargeFormat.js.map +0 -1
- package/dist/models/ImageURIOfTheBackOfTheCardInNormalFormat.js +0 -44
- package/dist/models/ImageURIOfTheBackOfTheCardInNormalFormat.js.map +0 -1
- package/dist/models/ImageURIOfTheBackOfTheCardInPNGFormat.d.ts +0 -21
- package/dist/models/ImageURIOfTheBackOfTheCardInPNGFormat.js +0 -44
- package/dist/models/ImageURIOfTheBackOfTheCardInPNGFormat.js.map +0 -1
- package/dist/models/ImageURIOfTheBackOfTheCardInSmallFormat.d.ts +0 -21
- package/dist/models/ImageURIOfTheBackOfTheCardInSmallFormat.js +0 -44
- package/dist/models/ImageURIOfTheBackOfTheCardInSmallFormat.js.map +0 -1
- package/dist/models/ImageURIOfTheCardArtCrop.d.ts +0 -21
- package/dist/models/ImageURIOfTheCardArtCrop.js +0 -44
- package/dist/models/ImageURIOfTheCardArtCrop.js.map +0 -1
- package/dist/models/ImageURIOfTheFrontOfTheCardInLargeFormat.d.ts +0 -21
- package/dist/models/ImageURIOfTheFrontOfTheCardInLargeFormat.js +0 -44
- package/dist/models/ImageURIOfTheFrontOfTheCardInLargeFormat.js.map +0 -1
- package/dist/models/ImageURIOfTheFrontOfTheCardInNormalFormat.d.ts +0 -21
- package/dist/models/ImageURIOfTheFrontOfTheCardInNormalFormat.js +0 -44
- package/dist/models/ImageURIOfTheFrontOfTheCardInNormalFormat.js.map +0 -1
- package/dist/models/ImageURIOfTheFrontOfTheCardInPNGFormat.d.ts +0 -21
- package/dist/models/ImageURIOfTheFrontOfTheCardInPNGFormat.js +0 -44
- package/dist/models/ImageURIOfTheFrontOfTheCardInPNGFormat.js.map +0 -1
- package/dist/models/ImageURIOfTheFrontOfTheCardInSmallFormat.d.ts +0 -21
- package/dist/models/ImageURIOfTheFrontOfTheCardInSmallFormat.js +0 -44
- package/dist/models/ImageURIOfTheFrontOfTheCardInSmallFormat.js.map +0 -1
- package/dist/models/LibraryStartingCardState.d.ts +0 -21
- package/dist/models/LibraryStartingCardState.js +0 -44
- package/dist/models/LibraryStartingCardState.js.map +0 -1
- package/dist/models/PatchedVariantSuggestionRequestComment.d.ts +0 -21
- package/dist/models/PatchedVariantSuggestionRequestComment.js +0 -44
- package/dist/models/PatchedVariantSuggestionRequestComment.js.map +0 -1
- package/dist/models/PatchedVariantSuggestionRequestEasyPrerequisites.d.ts +0 -21
- package/dist/models/PatchedVariantSuggestionRequestEasyPrerequisites.js +0 -44
- package/dist/models/PatchedVariantSuggestionRequestEasyPrerequisites.js.map +0 -1
- package/dist/models/PatchedVariantSuggestionRequestManaNeeded.d.ts +0 -21
- package/dist/models/PatchedVariantSuggestionRequestManaNeeded.js +0 -44
- package/dist/models/PatchedVariantSuggestionRequestManaNeeded.js.map +0 -1
- package/dist/models/PatchedVariantSuggestionRequestNotablePrerequisites.d.ts +0 -21
- package/dist/models/PatchedVariantSuggestionRequestNotablePrerequisites.js +0 -44
- package/dist/models/PatchedVariantSuggestionRequestNotablePrerequisites.js.map +0 -1
- package/dist/models/PatchedVariantUpdateSuggestionRequestSolution.d.ts +0 -21
- package/dist/models/PatchedVariantUpdateSuggestionRequestSolution.js +0 -44
- package/dist/models/PatchedVariantUpdateSuggestionRequestSolution.js.map +0 -1
- package/dist/models/VariantInVariantUpdateSuggestionIssue.d.ts +0 -21
- package/dist/models/VariantInVariantUpdateSuggestionIssue.js +0 -44
- package/dist/models/VariantInVariantUpdateSuggestionIssue.js.map +0 -1
- package/dist/models/WebsitePropertyValue.js.map +0 -1
- package/spellbook-client/docs/ExileStartingCardState.md +0 -33
- package/spellbook-client/docs/GraveyardStartingCardState.md +0 -33
- package/spellbook-client/docs/ImageURIOfTheBackOfTheCardArtCrop.md +0 -32
- package/spellbook-client/docs/ImageURIOfTheBackOfTheCardInLargeFormat.md +0 -32
- package/spellbook-client/docs/ImageURIOfTheBackOfTheCardInPNGFormat.md +0 -32
- package/spellbook-client/docs/ImageURIOfTheBackOfTheCardInSmallFormat.md +0 -32
- package/spellbook-client/docs/ImageURIOfTheFrontOfTheCardInLargeFormat.md +0 -32
- package/spellbook-client/docs/ImageURIOfTheFrontOfTheCardInNormalFormat.md +0 -32
- package/spellbook-client/docs/ImageURIOfTheFrontOfTheCardInPNGFormat.md +0 -32
- package/spellbook-client/docs/ImageURIOfTheFrontOfTheCardInSmallFormat.md +0 -32
- package/spellbook-client/docs/LibraryStartingCardState.md +0 -33
- package/spellbook-client/docs/PatchedVariantSuggestionRequestComment.md +0 -33
- package/spellbook-client/docs/PatchedVariantSuggestionRequestEasyPrerequisites.md +0 -33
- package/spellbook-client/docs/PatchedVariantSuggestionRequestManaNeeded.md +0 -33
- package/spellbook-client/docs/PatchedVariantSuggestionRequestNotablePrerequisites.md +0 -33
- package/spellbook-client/docs/PatchedVariantUpdateSuggestionRequestSolution.md +0 -33
- package/spellbook-client/docs/VariantInVariantUpdateSuggestionIssue.md +0 -33
- package/spellbook-client/docs/WebsitePropertyValue.md +0 -33
- package/spellbook-client/models/BattlefieldStartingCardState.ts +0 -56
- package/spellbook-client/models/ExileStartingCardState.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheBackOfTheCardArtCrop.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheBackOfTheCardInLargeFormat.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheBackOfTheCardInNormalFormat.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheBackOfTheCardInPNGFormat.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheBackOfTheCardInSmallFormat.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInLargeFormat.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInNormalFormat.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInPNGFormat.ts +0 -56
- package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInSmallFormat.ts +0 -56
- package/spellbook-client/models/LibraryStartingCardState.ts +0 -56
- package/spellbook-client/models/PatchedVariantSuggestionRequestEasyPrerequisites.ts +0 -56
- package/spellbook-client/models/PatchedVariantSuggestionRequestManaNeeded.ts +0 -56
- package/spellbook-client/models/PatchedVariantSuggestionRequestNotablePrerequisites.ts +0 -56
- package/spellbook-client/models/PatchedVariantUpdateSuggestionRequestSolution.ts +0 -56
- package/spellbook-client/models/VariantInVariantUpdateSuggestionIssue.ts +0 -56
- package/spellbook-client/models/WebsitePropertyValue.ts +0 -56
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { PaginatedSaltVoteListFromJSON, } from '../models/PaginatedSaltVoteList.js';
|
|
25
|
+
import { SaltVoteFromJSON, } from '../models/SaltVote.js';
|
|
26
|
+
import { SaltVoteRequestToJSON, } from '../models/SaltVoteRequest.js';
|
|
27
|
+
import { VariantFromJSON, } from '../models/Variant.js';
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export class SaltVotesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for saltVotesDestroy without sending the request
|
|
34
|
+
*/
|
|
35
|
+
saltVotesDestroyRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['variant'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('variant', 'Required parameter "variant" was null or undefined when calling saltVotesDestroy().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
43
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
44
|
+
}
|
|
45
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46
|
+
const token = this.configuration.accessToken;
|
|
47
|
+
const tokenString = yield token("jwtAuth", []);
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
let urlPath = `/salt-votes/{variant}/`;
|
|
53
|
+
urlPath = urlPath.replace('{variant}', encodeURIComponent(String(requestParameters['variant'])));
|
|
54
|
+
return {
|
|
55
|
+
path: urlPath,
|
|
56
|
+
method: 'DELETE',
|
|
57
|
+
headers: headerParameters,
|
|
58
|
+
query: queryParameters,
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
64
|
+
*/
|
|
65
|
+
saltVotesDestroyRaw(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const requestOptions = yield this.saltVotesDestroyRequestOpts(requestParameters);
|
|
68
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
69
|
+
return new runtime.VoidApiResponse(response);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
74
|
+
*/
|
|
75
|
+
saltVotesDestroy(requestParameters, initOverrides) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
yield this.saltVotesDestroyRaw(requestParameters, initOverrides);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Creates request options for saltVotesList without sending the request
|
|
82
|
+
*/
|
|
83
|
+
saltVotesListRequestOpts(requestParameters) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const queryParameters = {};
|
|
86
|
+
if (requestParameters['count'] != null) {
|
|
87
|
+
queryParameters['count'] = requestParameters['count'];
|
|
88
|
+
}
|
|
89
|
+
if (requestParameters['limit'] != null) {
|
|
90
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
91
|
+
}
|
|
92
|
+
if (requestParameters['offset'] != null) {
|
|
93
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
94
|
+
}
|
|
95
|
+
if (requestParameters['variant'] != null) {
|
|
96
|
+
queryParameters['variant'] = requestParameters['variant'];
|
|
97
|
+
}
|
|
98
|
+
const headerParameters = {};
|
|
99
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
100
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
101
|
+
}
|
|
102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
+
const token = this.configuration.accessToken;
|
|
104
|
+
const tokenString = yield token("jwtAuth", []);
|
|
105
|
+
if (tokenString) {
|
|
106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
let urlPath = `/salt-votes/`;
|
|
110
|
+
return {
|
|
111
|
+
path: urlPath,
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
120
|
+
*/
|
|
121
|
+
saltVotesListRaw(requestParameters, initOverrides) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const requestOptions = yield this.saltVotesListRequestOpts(requestParameters);
|
|
124
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
125
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSaltVoteListFromJSON(jsonValue));
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
130
|
+
*/
|
|
131
|
+
saltVotesList() {
|
|
132
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
133
|
+
const response = yield this.saltVotesListRaw(requestParameters, initOverrides);
|
|
134
|
+
return yield response.value();
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for saltVotesQueueList without sending the request
|
|
139
|
+
*/
|
|
140
|
+
saltVotesQueueListRequestOpts(requestParameters) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const queryParameters = {};
|
|
143
|
+
if (requestParameters['limit'] != null) {
|
|
144
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
145
|
+
}
|
|
146
|
+
const headerParameters = {};
|
|
147
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
148
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
149
|
+
}
|
|
150
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
151
|
+
const token = this.configuration.accessToken;
|
|
152
|
+
const tokenString = yield token("jwtAuth", []);
|
|
153
|
+
if (tokenString) {
|
|
154
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
let urlPath = `/salt-votes/queue/`;
|
|
158
|
+
return {
|
|
159
|
+
path: urlPath,
|
|
160
|
+
method: 'GET',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
168
|
+
*/
|
|
169
|
+
saltVotesQueueListRaw(requestParameters, initOverrides) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const requestOptions = yield this.saltVotesQueueListRequestOpts(requestParameters);
|
|
172
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(VariantFromJSON));
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
178
|
+
*/
|
|
179
|
+
saltVotesQueueList() {
|
|
180
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
181
|
+
const response = yield this.saltVotesQueueListRaw(requestParameters, initOverrides);
|
|
182
|
+
return yield response.value();
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Creates request options for saltVotesRetrieve without sending the request
|
|
187
|
+
*/
|
|
188
|
+
saltVotesRetrieveRequestOpts(requestParameters) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
if (requestParameters['variant'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('variant', 'Required parameter "variant" was null or undefined when calling saltVotesRetrieve().');
|
|
192
|
+
}
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
const headerParameters = {};
|
|
195
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
196
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
197
|
+
}
|
|
198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
199
|
+
const token = this.configuration.accessToken;
|
|
200
|
+
const tokenString = yield token("jwtAuth", []);
|
|
201
|
+
if (tokenString) {
|
|
202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
let urlPath = `/salt-votes/{variant}/`;
|
|
206
|
+
urlPath = urlPath.replace('{variant}', encodeURIComponent(String(requestParameters['variant'])));
|
|
207
|
+
return {
|
|
208
|
+
path: urlPath,
|
|
209
|
+
method: 'GET',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
};
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
217
|
+
*/
|
|
218
|
+
saltVotesRetrieveRaw(requestParameters, initOverrides) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
const requestOptions = yield this.saltVotesRetrieveRequestOpts(requestParameters);
|
|
221
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
222
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SaltVoteFromJSON(jsonValue));
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
227
|
+
*/
|
|
228
|
+
saltVotesRetrieve(requestParameters, initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
const response = yield this.saltVotesRetrieveRaw(requestParameters, initOverrides);
|
|
231
|
+
return yield response.value();
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Creates request options for saltVotesUpdate without sending the request
|
|
236
|
+
*/
|
|
237
|
+
saltVotesUpdateRequestOpts(requestParameters) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
if (requestParameters['variant'] == null) {
|
|
240
|
+
throw new runtime.RequiredError('variant', 'Required parameter "variant" was null or undefined when calling saltVotesUpdate().');
|
|
241
|
+
}
|
|
242
|
+
if (requestParameters['saltVoteRequest'] == null) {
|
|
243
|
+
throw new runtime.RequiredError('saltVoteRequest', 'Required parameter "saltVoteRequest" was null or undefined when calling saltVotesUpdate().');
|
|
244
|
+
}
|
|
245
|
+
const queryParameters = {};
|
|
246
|
+
const headerParameters = {};
|
|
247
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
248
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
249
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
250
|
+
}
|
|
251
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
252
|
+
const token = this.configuration.accessToken;
|
|
253
|
+
const tokenString = yield token("jwtAuth", []);
|
|
254
|
+
if (tokenString) {
|
|
255
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
let urlPath = `/salt-votes/{variant}/`;
|
|
259
|
+
urlPath = urlPath.replace('{variant}', encodeURIComponent(String(requestParameters['variant'])));
|
|
260
|
+
return {
|
|
261
|
+
path: urlPath,
|
|
262
|
+
method: 'PUT',
|
|
263
|
+
headers: headerParameters,
|
|
264
|
+
query: queryParameters,
|
|
265
|
+
body: SaltVoteRequestToJSON(requestParameters['saltVoteRequest']),
|
|
266
|
+
};
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
271
|
+
*/
|
|
272
|
+
saltVotesUpdateRaw(requestParameters, initOverrides) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
const requestOptions = yield this.saltVotesUpdateRequestOpts(requestParameters);
|
|
275
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
276
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SaltVoteFromJSON(jsonValue));
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
|
|
281
|
+
*/
|
|
282
|
+
saltVotesUpdate(requestParameters, initOverrides) {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
const response = yield this.saltVotesUpdateRaw(requestParameters, initOverrides);
|
|
285
|
+
return yield response.value();
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
//# sourceMappingURL=SaltVotesApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaltVotesApi.js","sourceRoot":"","sources":["../../spellbook-client/apis/SaltVotesApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;AAEH,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EAEH,6BAA6B,GAEhC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEH,gBAAgB,GAEnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGH,qBAAqB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEH,eAAe,GAElB,MAAM,sBAAsB,CAAC;AAqD9B;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;OAEG;IACG,2BAA2B,CAAC,iBAA0C;;YACxE,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;gBACvC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,SAAS,EACT,qFAAqF,CACxF,CAAC;YACN,CAAC;YAED,MAAM,eAAe,GAAQ,EAAE,CAAC;YAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;YAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,CAAC,I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C,CAAC;YAChF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;YAEnE,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7F,CAAC;KAAA;IAED;;OAEG;IACG,eAAe,CAAC,iBAAyC,EAAE,aAA0D;;YACvH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;YACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;QAClC,CAAC;KAAA;CAEJ"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/TokenApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/TokenApi.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/VariantsApi.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './ExplainQueryApi.js';
|
|
|
7
7
|
export * from './FeaturesApi.js';
|
|
8
8
|
export * from './FindMyCombosApi.js';
|
|
9
9
|
export * from './PropertiesApi.js';
|
|
10
|
+
export * from './SaltVotesApi.js';
|
|
10
11
|
export * from './TemplatesApi.js';
|
|
11
12
|
export * from './TokenApi.js';
|
|
12
13
|
export * from './UsersApi.js';
|
package/dist/apis/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from './ExplainQueryApi.js';
|
|
|
9
9
|
export * from './FeaturesApi.js';
|
|
10
10
|
export * from './FindMyCombosApi.js';
|
|
11
11
|
export * from './PropertiesApi.js';
|
|
12
|
+
export * from './SaltVotesApi.js';
|
|
12
13
|
export * from './TemplatesApi.js';
|
|
13
14
|
export * from './TokenApi.js';
|
|
14
15
|
export * from './UsersApi.js';
|
package/dist/apis/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../spellbook-client/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../spellbook-client/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Commander Spellbook API
|
|
3
3
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.
|
|
5
|
+
* The version of the OpenAPI document: 7.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.
|
|
7
|
+
* The version of the OpenAPI document: 7.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|