@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,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TokenRefresh
|
|
20
|
+
*/
|
|
21
|
+
export interface TokenRefresh {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TokenRefresh
|
|
26
|
+
*/
|
|
27
|
+
readonly access: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TokenRefresh interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTokenRefresh(value: object): value is TokenRefresh {
|
|
34
|
+
if (!('access' in value) || value['access'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TokenRefreshFromJSON(json: any): TokenRefresh {
|
|
39
|
+
return TokenRefreshFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TokenRefreshFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenRefresh {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'access': json['access'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TokenRefreshToJSON(json: any): TokenRefresh {
|
|
53
|
+
return TokenRefreshToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TokenRefreshToJSONTyped(value?: Omit<TokenRefresh, 'access'> | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TokenRefreshRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface TokenRefreshRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TokenRefreshRequest
|
|
26
|
+
*/
|
|
27
|
+
refresh: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TokenRefreshRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTokenRefreshRequest(value: object): value is TokenRefreshRequest {
|
|
34
|
+
if (!('refresh' in value) || value['refresh'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TokenRefreshRequestFromJSON(json: any): TokenRefreshRequest {
|
|
39
|
+
return TokenRefreshRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TokenRefreshRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenRefreshRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'refresh': json['refresh'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TokenRefreshRequestToJSON(json: any): TokenRefreshRequest {
|
|
53
|
+
return TokenRefreshRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TokenRefreshRequestToJSONTyped(value?: TokenRefreshRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'refresh': value['refresh'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TokenVerifyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface TokenVerifyRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TokenVerifyRequest
|
|
26
|
+
*/
|
|
27
|
+
token: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TokenVerifyRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTokenVerifyRequest(value: object): value is TokenVerifyRequest {
|
|
34
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TokenVerifyRequestFromJSON(json: any): TokenVerifyRequest {
|
|
39
|
+
return TokenVerifyRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TokenVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenVerifyRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'token': json['token'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TokenVerifyRequestToJSON(json: any): TokenVerifyRequest {
|
|
53
|
+
return TokenVerifyRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TokenVerifyRequestToJSONTyped(value?: TokenVerifyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'token': value['token'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface User
|
|
20
|
+
*/
|
|
21
|
+
export interface User {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof User
|
|
26
|
+
*/
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/**
|
|
29
|
+
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof User
|
|
32
|
+
*/
|
|
33
|
+
username: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the User interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUser(value: object): value is User {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserFromJSON(json: any): User {
|
|
46
|
+
return UserFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'username': json['username'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UserToJSON(json: any): User {
|
|
61
|
+
return UserToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UserToJSONTyped(value?: Omit<User, 'id'> | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'username': value['username'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserDetail
|
|
20
|
+
*/
|
|
21
|
+
export interface UserDetail {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserDetail
|
|
26
|
+
*/
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/**
|
|
29
|
+
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserDetail
|
|
32
|
+
*/
|
|
33
|
+
readonly username: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserDetail
|
|
38
|
+
*/
|
|
39
|
+
readonly email: string;
|
|
40
|
+
/**
|
|
41
|
+
* Designates whether the user can log into this admin site.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof UserDetail
|
|
44
|
+
*/
|
|
45
|
+
readonly isStaff: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof UserDetail
|
|
50
|
+
*/
|
|
51
|
+
readonly isActive: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UserDetail
|
|
56
|
+
*/
|
|
57
|
+
firstName: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof UserDetail
|
|
62
|
+
*/
|
|
63
|
+
lastName: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the UserDetail interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfUserDetail(value: object): value is UserDetail {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
72
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
73
|
+
if (!('isStaff' in value) || value['isStaff'] === undefined) return false;
|
|
74
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
75
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
76
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function UserDetailFromJSON(json: any): UserDetail {
|
|
81
|
+
return UserDetailFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function UserDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDetail {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'username': json['username'],
|
|
92
|
+
'email': json['email'],
|
|
93
|
+
'isStaff': json['isStaff'],
|
|
94
|
+
'isActive': json['isActive'],
|
|
95
|
+
'firstName': json['firstName'],
|
|
96
|
+
'lastName': json['lastName'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function UserDetailToJSON(json: any): UserDetail {
|
|
101
|
+
return UserDetailToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function UserDetailToJSONTyped(value?: Omit<UserDetail, 'id'|'username'|'email'|'isStaff'|'isActive'> | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'firstName': value['firstName'],
|
|
112
|
+
'lastName': value['lastName'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserDetailRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UserDetailRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UserDetailRequest
|
|
26
|
+
*/
|
|
27
|
+
password: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserDetailRequest
|
|
32
|
+
*/
|
|
33
|
+
firstName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserDetailRequest
|
|
38
|
+
*/
|
|
39
|
+
lastName?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UserDetailRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUserDetailRequest(value: object): value is UserDetailRequest {
|
|
46
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function UserDetailRequestFromJSON(json: any): UserDetailRequest {
|
|
51
|
+
return UserDetailRequestFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UserDetailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDetailRequest {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'password': json['password'],
|
|
61
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
62
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function UserDetailRequestToJSON(json: any): UserDetailRequest {
|
|
67
|
+
return UserDetailRequestToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function UserDetailRequestToJSONTyped(value?: UserDetailRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'password': value['password'],
|
|
78
|
+
'firstName': value['firstName'],
|
|
79
|
+
'lastName': value['lastName'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Commander Spellbook API
|
|
5
|
+
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: dev
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UserRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UserRequest
|
|
26
|
+
*/
|
|
27
|
+
username: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UserRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUserRequest(value: object): value is UserRequest {
|
|
34
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UserRequestFromJSON(json: any): UserRequest {
|
|
39
|
+
return UserRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'username': json['username'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UserRequestToJSON(json: any): UserRequest {
|
|
53
|
+
return UserRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UserRequestToJSONTyped(value?: UserRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'username': value['username'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|