@space-cow-media/spellbook-client 4.4.5 → 4.5.0
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 +5 -3
- package/dist/apis/cardListFromTextApi.js.map +1 -1
- package/dist/apis/cardListFromUrlApi.d.ts +1 -1
- package/dist/apis/cardListFromUrlApi.js +3 -2
- package/dist/apis/cardListFromUrlApi.js.map +1 -1
- package/dist/apis/cardsApi.d.ts +1 -1
- package/dist/apis/cardsApi.js +6 -3
- package/dist/apis/cardsApi.js.map +1 -1
- package/dist/apis/defaultApi.d.ts +1 -1
- package/dist/apis/defaultApi.js +6 -3
- package/dist/apis/defaultApi.js.map +1 -1
- package/dist/apis/estimateBracketApi.d.ts +1 -1
- package/dist/apis/estimateBracketApi.js +5 -3
- package/dist/apis/estimateBracketApi.js.map +1 -1
- package/dist/apis/featuresApi.d.ts +1 -1
- package/dist/apis/featuresApi.js +6 -3
- package/dist/apis/featuresApi.js.map +1 -1
- package/dist/apis/findMyCombosApi.d.ts +1 -1
- package/dist/apis/findMyCombosApi.js +5 -3
- package/dist/apis/findMyCombosApi.js.map +1 -1
- package/dist/apis/propertiesApi.d.ts +1 -1
- package/dist/apis/propertiesApi.js +6 -3
- package/dist/apis/propertiesApi.js.map +1 -1
- package/dist/apis/templatesApi.d.ts +1 -1
- package/dist/apis/templatesApi.js +6 -3
- package/dist/apis/templatesApi.js.map +1 -1
- package/dist/apis/tokenApi.d.ts +1 -1
- package/dist/apis/tokenApi.js +7 -4
- package/dist/apis/tokenApi.js.map +1 -1
- package/dist/apis/usersApi.d.ts +1 -1
- package/dist/apis/usersApi.js +15 -6
- package/dist/apis/usersApi.js.map +1 -1
- package/dist/apis/variantAliasesApi.d.ts +1 -1
- package/dist/apis/variantAliasesApi.js +6 -3
- package/dist/apis/variantAliasesApi.js.map +1 -1
- package/dist/apis/variantSuggestionsApi.d.ts +1 -1
- package/dist/apis/variantSuggestionsApi.js +25 -10
- package/dist/apis/variantSuggestionsApi.js.map +1 -1
- package/dist/apis/variantUpdateSuggestionsApi.d.ts +1 -1
- package/dist/apis/variantUpdateSuggestionsApi.js +25 -10
- package/dist/apis/variantUpdateSuggestionsApi.js.map +1 -1
- package/dist/apis/variantsApi.d.ts +1 -1
- package/dist/apis/variantsApi.js +6 -3
- package/dist/apis/variantsApi.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 +49 -1
- package/dist/models/card.js +33 -1
- package/dist/models/card.js.map +1 -1
- package/dist/models/cardDetail.d.ts +49 -1
- package/dist/models/cardDetail.js +33 -1
- 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 +1 -1
- package/dist/models/cardUsedInVariantSuggestion.js +1 -1
- package/dist/models/cardUsedInVariantSuggestionRequest.d.ts +1 -1
- package/dist/models/cardUsedInVariantSuggestionRequest.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 +1 -1
- package/dist/models/featureOfCard.js +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/identityEnum.d.ts +1 -1
- package/dist/models/identityEnum.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/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/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 +1 -1
- package/dist/models/patchedVariantSuggestionRequest.js +1 -1
- package/dist/models/patchedVariantUpdateSuggestionRequest.d.ts +1 -1
- package/dist/models/patchedVariantUpdateSuggestionRequest.js +1 -1
- 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 +1 -1
- package/dist/models/templateRequiredInVariantSuggestion.js +1 -1
- package/dist/models/templateRequiredInVariantSuggestionRequest.d.ts +1 -1
- package/dist/models/templateRequiredInVariantSuggestionRequest.js +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 +1 -1
- package/dist/models/variant.js +1 -1
- package/dist/models/variantAlias.d.ts +1 -1
- package/dist/models/variantAlias.js +1 -1
- package/dist/models/variantInVariantUpdateSuggestion.d.ts +1 -1
- package/dist/models/variantInVariantUpdateSuggestion.js +1 -1
- package/dist/models/variantInVariantUpdateSuggestionRequest.d.ts +1 -1
- package/dist/models/variantInVariantUpdateSuggestionRequest.js +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 +1 -1
- package/dist/models/variantSuggestion.js +1 -1
- package/dist/models/variantSuggestionRequest.d.ts +1 -1
- package/dist/models/variantSuggestionRequest.js +1 -1
- package/dist/models/variantUpdateSuggestion.d.ts +1 -1
- package/dist/models/variantUpdateSuggestion.js +1 -1
- package/dist/models/variantUpdateSuggestionRequest.d.ts +1 -1
- package/dist/models/variantUpdateSuggestionRequest.js +1 -1
- package/dist/models/variantsQueryValidationError.d.ts +1 -1
- package/dist/models/variantsQueryValidationError.js +1 -1
- package/dist/models/websiteProperty.d.ts +1 -1
- package/dist/models/websiteProperty.js +1 -1
- package/dist/models/zoneLocationsEnum.d.ts +1 -1
- package/dist/models/zoneLocationsEnum.js +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 +9 -3
- package/spellbook-client/apis/cardListFromUrlApi.ts +5 -2
- package/spellbook-client/apis/cardsApi.ts +10 -3
- package/spellbook-client/apis/defaultApi.ts +10 -3
- package/spellbook-client/apis/estimateBracketApi.ts +9 -3
- package/spellbook-client/apis/featuresApi.ts +10 -3
- package/spellbook-client/apis/findMyCombosApi.ts +9 -3
- package/spellbook-client/apis/propertiesApi.ts +10 -3
- package/spellbook-client/apis/templatesApi.ts +10 -3
- package/spellbook-client/apis/tokenApi.ts +13 -4
- package/spellbook-client/apis/usersApi.ts +25 -6
- package/spellbook-client/apis/variantAliasesApi.ts +10 -3
- package/spellbook-client/apis/variantSuggestionsApi.ts +43 -10
- package/spellbook-client/apis/variantUpdateSuggestionsApi.ts +43 -10
- package/spellbook-client/apis/variantsApi.ts +10 -3
- package/spellbook-client/models/bracketTagEnum.ts +1 -1
- package/spellbook-client/models/card.ts +73 -1
- package/spellbook-client/models/cardDetail.ts +73 -1
- 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 +1 -1
- package/spellbook-client/models/cardUsedInVariantSuggestionRequest.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 +1 -1
- 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/identityEnum.ts +1 -1
- package/spellbook-client/models/invalidUrlResponse.ts +1 -1
- package/spellbook-client/models/kindEnum.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/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 +1 -1
- package/spellbook-client/models/patchedVariantUpdateSuggestionRequest.ts +1 -1
- 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 +1 -1
- package/spellbook-client/models/templateRequiredInVariantSuggestionRequest.ts +1 -1
- 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 +1 -1
- package/spellbook-client/models/variantAlias.ts +1 -1
- package/spellbook-client/models/variantInVariantUpdateSuggestion.ts +1 -1
- package/spellbook-client/models/variantInVariantUpdateSuggestionRequest.ts +1 -1
- 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 +1 -1
- package/spellbook-client/models/variantSuggestionRequest.ts +1 -1
- package/spellbook-client/models/variantUpdateSuggestion.ts +1 -1
- package/spellbook-client/models/variantUpdateSuggestionRequest.ts +1 -1
- package/spellbook-client/models/variantsQueryValidationError.ts +1 -1
- package/spellbook-client/models/websiteProperty.ts +1 -1
- package/spellbook-client/models/zoneLocationsEnum.ts +1 -1
- package/spellbook-client/runtime.ts +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -61,8 +61,11 @@ export class TokenApi extends runtime.BaseAPI {
|
|
|
61
61
|
|
|
62
62
|
headerParameters['Content-Type'] = 'application/json';
|
|
63
63
|
|
|
64
|
+
|
|
65
|
+
let urlPath = `/token/`;
|
|
66
|
+
|
|
64
67
|
const response = await this.request({
|
|
65
|
-
path:
|
|
68
|
+
path: urlPath,
|
|
66
69
|
method: 'POST',
|
|
67
70
|
headers: headerParameters,
|
|
68
71
|
query: queryParameters,
|
|
@@ -97,8 +100,11 @@ export class TokenApi extends runtime.BaseAPI {
|
|
|
97
100
|
|
|
98
101
|
headerParameters['Content-Type'] = 'application/json';
|
|
99
102
|
|
|
103
|
+
|
|
104
|
+
let urlPath = `/token/refresh/`;
|
|
105
|
+
|
|
100
106
|
const response = await this.request({
|
|
101
|
-
path:
|
|
107
|
+
path: urlPath,
|
|
102
108
|
method: 'POST',
|
|
103
109
|
headers: headerParameters,
|
|
104
110
|
query: queryParameters,
|
|
@@ -133,8 +139,11 @@ export class TokenApi extends runtime.BaseAPI {
|
|
|
133
139
|
|
|
134
140
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
141
|
|
|
142
|
+
|
|
143
|
+
let urlPath = `/token/verify/`;
|
|
144
|
+
|
|
136
145
|
const response = await this.request({
|
|
137
|
-
path:
|
|
146
|
+
path: urlPath,
|
|
138
147
|
method: 'POST',
|
|
139
148
|
headers: headerParameters,
|
|
140
149
|
query: queryParameters,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -84,8 +84,12 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
84
84
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
+
|
|
88
|
+
let urlPath = `/users/{id}/`;
|
|
89
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
90
|
+
|
|
87
91
|
const response = await this.request({
|
|
88
|
-
path:
|
|
92
|
+
path: urlPath,
|
|
89
93
|
method: 'DELETE',
|
|
90
94
|
headers: headerParameters,
|
|
91
95
|
query: queryParameters,
|
|
@@ -126,8 +130,11 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
126
130
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
127
131
|
}
|
|
128
132
|
}
|
|
133
|
+
|
|
134
|
+
let urlPath = `/users/`;
|
|
135
|
+
|
|
129
136
|
const response = await this.request({
|
|
130
|
-
path:
|
|
137
|
+
path: urlPath,
|
|
131
138
|
method: 'GET',
|
|
132
139
|
headers: headerParameters,
|
|
133
140
|
query: queryParameters,
|
|
@@ -170,8 +177,12 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
170
177
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
171
178
|
}
|
|
172
179
|
}
|
|
180
|
+
|
|
181
|
+
let urlPath = `/users/{id}/`;
|
|
182
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
183
|
+
|
|
173
184
|
const response = await this.request({
|
|
174
|
-
path:
|
|
185
|
+
path: urlPath,
|
|
175
186
|
method: 'PATCH',
|
|
176
187
|
headers: headerParameters,
|
|
177
188
|
query: queryParameters,
|
|
@@ -213,8 +224,12 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
213
224
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
214
225
|
}
|
|
215
226
|
}
|
|
227
|
+
|
|
228
|
+
let urlPath = `/users/{id}/`;
|
|
229
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
230
|
+
|
|
216
231
|
const response = await this.request({
|
|
217
|
-
path:
|
|
232
|
+
path: urlPath,
|
|
218
233
|
method: 'GET',
|
|
219
234
|
headers: headerParameters,
|
|
220
235
|
query: queryParameters,
|
|
@@ -264,8 +279,12 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
264
279
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
265
280
|
}
|
|
266
281
|
}
|
|
282
|
+
|
|
283
|
+
let urlPath = `/users/{id}/`;
|
|
284
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
285
|
+
|
|
267
286
|
const response = await this.request({
|
|
268
|
-
path:
|
|
287
|
+
path: urlPath,
|
|
269
288
|
method: 'PUT',
|
|
270
289
|
headers: headerParameters,
|
|
271
290
|
query: queryParameters,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -65,8 +65,11 @@ export class VariantAliasesApi extends runtime.BaseAPI {
|
|
|
65
65
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
let urlPath = `/variant-aliases/`;
|
|
70
|
+
|
|
68
71
|
const response = await this.request({
|
|
69
|
-
path:
|
|
72
|
+
path: urlPath,
|
|
70
73
|
method: 'GET',
|
|
71
74
|
headers: headerParameters,
|
|
72
75
|
query: queryParameters,
|
|
@@ -107,8 +110,12 @@ export class VariantAliasesApi extends runtime.BaseAPI {
|
|
|
107
110
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
108
111
|
}
|
|
109
112
|
}
|
|
113
|
+
|
|
114
|
+
let urlPath = `/variant-aliases/{id}/`;
|
|
115
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
116
|
+
|
|
110
117
|
const response = await this.request({
|
|
111
|
-
path:
|
|
118
|
+
path: urlPath,
|
|
112
119
|
method: 'GET',
|
|
113
120
|
headers: headerParameters,
|
|
114
121
|
query: queryParameters,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -105,8 +105,11 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
105
105
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
+
|
|
109
|
+
let urlPath = `/variant-suggestions/`;
|
|
110
|
+
|
|
108
111
|
const response = await this.request({
|
|
109
|
-
path:
|
|
112
|
+
path: urlPath,
|
|
110
113
|
method: 'POST',
|
|
111
114
|
headers: headerParameters,
|
|
112
115
|
query: queryParameters,
|
|
@@ -148,8 +151,12 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
148
151
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
149
152
|
}
|
|
150
153
|
}
|
|
154
|
+
|
|
155
|
+
let urlPath = `/variant-suggestions/{id}/`;
|
|
156
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
157
|
+
|
|
151
158
|
const response = await this.request({
|
|
152
|
-
path:
|
|
159
|
+
path: urlPath,
|
|
153
160
|
method: 'DELETE',
|
|
154
161
|
headers: headerParameters,
|
|
155
162
|
query: queryParameters,
|
|
@@ -194,8 +201,11 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
194
201
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
195
202
|
}
|
|
196
203
|
}
|
|
204
|
+
|
|
205
|
+
let urlPath = `/variant-suggestions/`;
|
|
206
|
+
|
|
197
207
|
const response = await this.request({
|
|
198
|
-
path:
|
|
208
|
+
path: urlPath,
|
|
199
209
|
method: 'GET',
|
|
200
210
|
headers: headerParameters,
|
|
201
211
|
query: queryParameters,
|
|
@@ -238,8 +248,12 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
238
248
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
239
249
|
}
|
|
240
250
|
}
|
|
251
|
+
|
|
252
|
+
let urlPath = `/variant-suggestions/{id}/`;
|
|
253
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
254
|
+
|
|
241
255
|
const response = await this.request({
|
|
242
|
-
path:
|
|
256
|
+
path: urlPath,
|
|
243
257
|
method: 'PATCH',
|
|
244
258
|
headers: headerParameters,
|
|
245
259
|
query: queryParameters,
|
|
@@ -281,8 +295,12 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
281
295
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
282
296
|
}
|
|
283
297
|
}
|
|
298
|
+
|
|
299
|
+
let urlPath = `/variant-suggestions/{id}/`;
|
|
300
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
301
|
+
|
|
284
302
|
const response = await this.request({
|
|
285
|
-
path:
|
|
303
|
+
path: urlPath,
|
|
286
304
|
method: 'GET',
|
|
287
305
|
headers: headerParameters,
|
|
288
306
|
query: queryParameters,
|
|
@@ -332,8 +350,12 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
332
350
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
333
351
|
}
|
|
334
352
|
}
|
|
353
|
+
|
|
354
|
+
let urlPath = `/variant-suggestions/{id}/`;
|
|
355
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
356
|
+
|
|
335
357
|
const response = await this.request({
|
|
336
|
-
path:
|
|
358
|
+
path: urlPath,
|
|
337
359
|
method: 'PUT',
|
|
338
360
|
headers: headerParameters,
|
|
339
361
|
query: queryParameters,
|
|
@@ -378,8 +400,11 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
378
400
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
379
401
|
}
|
|
380
402
|
}
|
|
403
|
+
|
|
404
|
+
let urlPath = `/variant-suggestions/validate/`;
|
|
405
|
+
|
|
381
406
|
const response = await this.request({
|
|
382
|
-
path:
|
|
407
|
+
path: urlPath,
|
|
383
408
|
method: 'POST',
|
|
384
409
|
headers: headerParameters,
|
|
385
410
|
query: queryParameters,
|
|
@@ -425,8 +450,12 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
425
450
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
426
451
|
}
|
|
427
452
|
}
|
|
453
|
+
|
|
454
|
+
let urlPath = `/variant-suggestions/{id}/validate/`;
|
|
455
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
456
|
+
|
|
428
457
|
const response = await this.request({
|
|
429
|
-
path:
|
|
458
|
+
path: urlPath,
|
|
430
459
|
method: 'PATCH',
|
|
431
460
|
headers: headerParameters,
|
|
432
461
|
query: queryParameters,
|
|
@@ -479,8 +508,12 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
479
508
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
480
509
|
}
|
|
481
510
|
}
|
|
511
|
+
|
|
512
|
+
let urlPath = `/variant-suggestions/{id}/validate/`;
|
|
513
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
514
|
+
|
|
482
515
|
const response = await this.request({
|
|
483
|
-
path:
|
|
516
|
+
path: urlPath,
|
|
484
517
|
method: 'PUT',
|
|
485
518
|
headers: headerParameters,
|
|
486
519
|
query: queryParameters,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -105,8 +105,11 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
105
105
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
+
|
|
109
|
+
let urlPath = `/variant-update-suggestions/`;
|
|
110
|
+
|
|
108
111
|
const response = await this.request({
|
|
109
|
-
path:
|
|
112
|
+
path: urlPath,
|
|
110
113
|
method: 'POST',
|
|
111
114
|
headers: headerParameters,
|
|
112
115
|
query: queryParameters,
|
|
@@ -148,8 +151,12 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
148
151
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
149
152
|
}
|
|
150
153
|
}
|
|
154
|
+
|
|
155
|
+
let urlPath = `/variant-update-suggestions/{id}/`;
|
|
156
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
157
|
+
|
|
151
158
|
const response = await this.request({
|
|
152
|
-
path:
|
|
159
|
+
path: urlPath,
|
|
153
160
|
method: 'DELETE',
|
|
154
161
|
headers: headerParameters,
|
|
155
162
|
query: queryParameters,
|
|
@@ -194,8 +201,11 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
194
201
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
195
202
|
}
|
|
196
203
|
}
|
|
204
|
+
|
|
205
|
+
let urlPath = `/variant-update-suggestions/`;
|
|
206
|
+
|
|
197
207
|
const response = await this.request({
|
|
198
|
-
path:
|
|
208
|
+
path: urlPath,
|
|
199
209
|
method: 'GET',
|
|
200
210
|
headers: headerParameters,
|
|
201
211
|
query: queryParameters,
|
|
@@ -238,8 +248,12 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
238
248
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
239
249
|
}
|
|
240
250
|
}
|
|
251
|
+
|
|
252
|
+
let urlPath = `/variant-update-suggestions/{id}/`;
|
|
253
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
254
|
+
|
|
241
255
|
const response = await this.request({
|
|
242
|
-
path:
|
|
256
|
+
path: urlPath,
|
|
243
257
|
method: 'PATCH',
|
|
244
258
|
headers: headerParameters,
|
|
245
259
|
query: queryParameters,
|
|
@@ -281,8 +295,12 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
281
295
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
282
296
|
}
|
|
283
297
|
}
|
|
298
|
+
|
|
299
|
+
let urlPath = `/variant-update-suggestions/{id}/`;
|
|
300
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
301
|
+
|
|
284
302
|
const response = await this.request({
|
|
285
|
-
path:
|
|
303
|
+
path: urlPath,
|
|
286
304
|
method: 'GET',
|
|
287
305
|
headers: headerParameters,
|
|
288
306
|
query: queryParameters,
|
|
@@ -332,8 +350,12 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
332
350
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
333
351
|
}
|
|
334
352
|
}
|
|
353
|
+
|
|
354
|
+
let urlPath = `/variant-update-suggestions/{id}/`;
|
|
355
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
356
|
+
|
|
335
357
|
const response = await this.request({
|
|
336
|
-
path:
|
|
358
|
+
path: urlPath,
|
|
337
359
|
method: 'PUT',
|
|
338
360
|
headers: headerParameters,
|
|
339
361
|
query: queryParameters,
|
|
@@ -378,8 +400,11 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
378
400
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
379
401
|
}
|
|
380
402
|
}
|
|
403
|
+
|
|
404
|
+
let urlPath = `/variant-update-suggestions/validate/`;
|
|
405
|
+
|
|
381
406
|
const response = await this.request({
|
|
382
|
-
path:
|
|
407
|
+
path: urlPath,
|
|
383
408
|
method: 'POST',
|
|
384
409
|
headers: headerParameters,
|
|
385
410
|
query: queryParameters,
|
|
@@ -425,8 +450,12 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
425
450
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
426
451
|
}
|
|
427
452
|
}
|
|
453
|
+
|
|
454
|
+
let urlPath = `/variant-update-suggestions/{id}/validate/`;
|
|
455
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
456
|
+
|
|
428
457
|
const response = await this.request({
|
|
429
|
-
path:
|
|
458
|
+
path: urlPath,
|
|
430
459
|
method: 'PATCH',
|
|
431
460
|
headers: headerParameters,
|
|
432
461
|
query: queryParameters,
|
|
@@ -479,8 +508,12 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
479
508
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
480
509
|
}
|
|
481
510
|
}
|
|
511
|
+
|
|
512
|
+
let urlPath = `/variant-update-suggestions/{id}/validate/`;
|
|
513
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
514
|
+
|
|
482
515
|
const response = await this.request({
|
|
483
|
-
path:
|
|
516
|
+
path: urlPath,
|
|
484
517
|
method: 'PUT',
|
|
485
518
|
headers: headerParameters,
|
|
486
519
|
query: queryParameters,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -88,8 +88,11 @@ export class VariantsApi extends runtime.BaseAPI {
|
|
|
88
88
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
let urlPath = `/variants/`;
|
|
93
|
+
|
|
91
94
|
const response = await this.request({
|
|
92
|
-
path:
|
|
95
|
+
path: urlPath,
|
|
93
96
|
method: 'GET',
|
|
94
97
|
headers: headerParameters,
|
|
95
98
|
query: queryParameters,
|
|
@@ -130,8 +133,12 @@ export class VariantsApi extends runtime.BaseAPI {
|
|
|
130
133
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
131
134
|
}
|
|
132
135
|
}
|
|
136
|
+
|
|
137
|
+
let urlPath = `/variants/{id}/`;
|
|
138
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
139
|
+
|
|
133
140
|
const response = await this.request({
|
|
134
|
-
path:
|
|
141
|
+
path: urlPath,
|
|
135
142
|
method: 'GET',
|
|
136
143
|
headers: headerParameters,
|
|
137
144
|
query: queryParameters,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* 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
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.5.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,6 +49,54 @@ export interface Card {
|
|
|
49
49
|
* @memberof Card
|
|
50
50
|
*/
|
|
51
51
|
typeLine: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Card
|
|
56
|
+
*/
|
|
57
|
+
imageUriFrontPng: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Card
|
|
62
|
+
*/
|
|
63
|
+
imageUriFrontLarge: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Card
|
|
68
|
+
*/
|
|
69
|
+
imageUriFrontNormal: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Card
|
|
74
|
+
*/
|
|
75
|
+
imageUriFrontSmall: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Card
|
|
80
|
+
*/
|
|
81
|
+
imageUriBackPng: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Card
|
|
86
|
+
*/
|
|
87
|
+
imageUriBackLarge: string | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Card
|
|
92
|
+
*/
|
|
93
|
+
imageUriBackNormal: string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof Card
|
|
98
|
+
*/
|
|
99
|
+
imageUriBackSmall: string | null;
|
|
52
100
|
}
|
|
53
101
|
|
|
54
102
|
/**
|
|
@@ -60,6 +108,14 @@ export function instanceOfCard(value: object): value is Card {
|
|
|
60
108
|
if (!('oracleId' in value) || value['oracleId'] === undefined) return false;
|
|
61
109
|
if (!('spoiler' in value) || value['spoiler'] === undefined) return false;
|
|
62
110
|
if (!('typeLine' in value) || value['typeLine'] === undefined) return false;
|
|
111
|
+
if (!('imageUriFrontPng' in value) || value['imageUriFrontPng'] === undefined) return false;
|
|
112
|
+
if (!('imageUriFrontLarge' in value) || value['imageUriFrontLarge'] === undefined) return false;
|
|
113
|
+
if (!('imageUriFrontNormal' in value) || value['imageUriFrontNormal'] === undefined) return false;
|
|
114
|
+
if (!('imageUriFrontSmall' in value) || value['imageUriFrontSmall'] === undefined) return false;
|
|
115
|
+
if (!('imageUriBackPng' in value) || value['imageUriBackPng'] === undefined) return false;
|
|
116
|
+
if (!('imageUriBackLarge' in value) || value['imageUriBackLarge'] === undefined) return false;
|
|
117
|
+
if (!('imageUriBackNormal' in value) || value['imageUriBackNormal'] === undefined) return false;
|
|
118
|
+
if (!('imageUriBackSmall' in value) || value['imageUriBackSmall'] === undefined) return false;
|
|
63
119
|
return true;
|
|
64
120
|
}
|
|
65
121
|
|
|
@@ -78,6 +134,14 @@ export function CardFromJSONTyped(json: any, ignoreDiscriminator: boolean): Card
|
|
|
78
134
|
'oracleId': json['oracleId'],
|
|
79
135
|
'spoiler': json['spoiler'],
|
|
80
136
|
'typeLine': json['typeLine'],
|
|
137
|
+
'imageUriFrontPng': json['imageUriFrontPng'],
|
|
138
|
+
'imageUriFrontLarge': json['imageUriFrontLarge'],
|
|
139
|
+
'imageUriFrontNormal': json['imageUriFrontNormal'],
|
|
140
|
+
'imageUriFrontSmall': json['imageUriFrontSmall'],
|
|
141
|
+
'imageUriBackPng': json['imageUriBackPng'],
|
|
142
|
+
'imageUriBackLarge': json['imageUriBackLarge'],
|
|
143
|
+
'imageUriBackNormal': json['imageUriBackNormal'],
|
|
144
|
+
'imageUriBackSmall': json['imageUriBackSmall'],
|
|
81
145
|
};
|
|
82
146
|
}
|
|
83
147
|
|
|
@@ -96,6 +160,14 @@ export function CardToJSONTyped(value?: Omit<Card, 'id'> | null, ignoreDiscrimin
|
|
|
96
160
|
'oracleId': value['oracleId'],
|
|
97
161
|
'spoiler': value['spoiler'],
|
|
98
162
|
'typeLine': value['typeLine'],
|
|
163
|
+
'imageUriFrontPng': value['imageUriFrontPng'],
|
|
164
|
+
'imageUriFrontLarge': value['imageUriFrontLarge'],
|
|
165
|
+
'imageUriFrontNormal': value['imageUriFrontNormal'],
|
|
166
|
+
'imageUriFrontSmall': value['imageUriFrontSmall'],
|
|
167
|
+
'imageUriBackPng': value['imageUriBackPng'],
|
|
168
|
+
'imageUriBackLarge': value['imageUriBackLarge'],
|
|
169
|
+
'imageUriBackNormal': value['imageUriBackNormal'],
|
|
170
|
+
'imageUriBackSmall': value['imageUriBackSmall'],
|
|
99
171
|
};
|
|
100
172
|
}
|
|
101
173
|
|