@space-cow-media/spellbook-client 3.14.21 → 3.15.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.
Files changed (229) hide show
  1. package/dist/apis/cardListFromTextApi.d.ts +1 -1
  2. package/dist/apis/cardListFromTextApi.js +1 -1
  3. package/dist/apis/cardListFromUrlApi.d.ts +1 -1
  4. package/dist/apis/cardListFromUrlApi.js +1 -1
  5. package/dist/apis/cardsApi.d.ts +1 -1
  6. package/dist/apis/cardsApi.js +1 -1
  7. package/dist/apis/defaultApi.d.ts +1 -1
  8. package/dist/apis/defaultApi.js +1 -1
  9. package/dist/apis/estimateBracketApi.d.ts +33 -0
  10. package/dist/apis/estimateBracketApi.js +135 -0
  11. package/dist/apis/estimateBracketApi.js.map +1 -0
  12. package/dist/apis/featuresApi.d.ts +1 -1
  13. package/dist/apis/featuresApi.js +1 -1
  14. package/dist/apis/findMyCombosApi.d.ts +1 -1
  15. package/dist/apis/findMyCombosApi.js +1 -1
  16. package/dist/apis/index.d.ts +1 -0
  17. package/dist/apis/index.js +1 -0
  18. package/dist/apis/index.js.map +1 -1
  19. package/dist/apis/propertiesApi.d.ts +1 -1
  20. package/dist/apis/propertiesApi.js +1 -1
  21. package/dist/apis/templatesApi.d.ts +1 -1
  22. package/dist/apis/templatesApi.js +1 -1
  23. package/dist/apis/tokenApi.d.ts +1 -1
  24. package/dist/apis/tokenApi.js +1 -1
  25. package/dist/apis/usersApi.d.ts +1 -1
  26. package/dist/apis/usersApi.js +1 -1
  27. package/dist/apis/variantAliasesApi.d.ts +1 -1
  28. package/dist/apis/variantAliasesApi.js +1 -1
  29. package/dist/apis/variantSuggestionsApi.d.ts +1 -1
  30. package/dist/apis/variantSuggestionsApi.js +1 -1
  31. package/dist/apis/variantsApi.d.ts +1 -1
  32. package/dist/apis/variantsApi.js +1 -1
  33. package/dist/models/card.d.ts +1 -1
  34. package/dist/models/card.js +1 -1
  35. package/dist/models/cardDetail.d.ts +25 -1
  36. package/dist/models/cardDetail.js +17 -1
  37. package/dist/models/cardDetail.js.map +1 -1
  38. package/dist/models/cardInDeck.d.ts +1 -1
  39. package/dist/models/cardInDeck.js +1 -1
  40. package/dist/models/cardInDeckRequest.d.ts +1 -1
  41. package/dist/models/cardInDeckRequest.js +1 -1
  42. package/dist/models/cardInVariant.d.ts +1 -1
  43. package/dist/models/cardInVariant.js +1 -1
  44. package/dist/models/cardLegalities.d.ts +1 -1
  45. package/dist/models/cardLegalities.js +1 -1
  46. package/dist/models/cardPrices.d.ts +1 -1
  47. package/dist/models/cardPrices.js +1 -1
  48. package/dist/models/cardUsedInVariantSuggestion.d.ts +1 -1
  49. package/dist/models/cardUsedInVariantSuggestion.js +1 -1
  50. package/dist/models/cardUsedInVariantSuggestionRequest.d.ts +1 -1
  51. package/dist/models/cardUsedInVariantSuggestionRequest.js +1 -1
  52. package/dist/models/combo.d.ts +1 -1
  53. package/dist/models/combo.js +1 -1
  54. package/dist/models/deck.d.ts +1 -1
  55. package/dist/models/deck.js +1 -1
  56. package/dist/models/deckRequest.d.ts +1 -1
  57. package/dist/models/deckRequest.js +1 -1
  58. package/dist/models/estimateBracketResult.d.ts +76 -0
  59. package/dist/models/estimateBracketResult.js +81 -0
  60. package/dist/models/estimateBracketResult.js.map +1 -0
  61. package/dist/models/feature.d.ts +1 -1
  62. package/dist/models/feature.js +1 -1
  63. package/dist/models/featureOfCard.d.ts +1 -1
  64. package/dist/models/featureOfCard.js +1 -1
  65. package/dist/models/featureProducedByVariant.d.ts +1 -1
  66. package/dist/models/featureProducedByVariant.js +1 -1
  67. package/dist/models/featureProducedInVariantSuggestion.d.ts +1 -1
  68. package/dist/models/featureProducedInVariantSuggestion.js +1 -1
  69. package/dist/models/featureProducedInVariantSuggestionRequest.d.ts +1 -1
  70. package/dist/models/featureProducedInVariantSuggestionRequest.js +1 -1
  71. package/dist/models/findMyCombosResponse.d.ts +1 -1
  72. package/dist/models/findMyCombosResponse.js +1 -1
  73. package/dist/models/identityEnum.d.ts +1 -1
  74. package/dist/models/identityEnum.js +1 -1
  75. package/dist/models/index.d.ts +1 -0
  76. package/dist/models/index.js +1 -0
  77. package/dist/models/index.js.map +1 -1
  78. package/dist/models/invalidUrlResponse.d.ts +1 -1
  79. package/dist/models/invalidUrlResponse.js +1 -1
  80. package/dist/models/paginatedCardDetailList.d.ts +1 -1
  81. package/dist/models/paginatedCardDetailList.js +1 -1
  82. package/dist/models/paginatedFeatureList.d.ts +1 -1
  83. package/dist/models/paginatedFeatureList.js +1 -1
  84. package/dist/models/paginatedFindMyCombosResponseList.d.ts +1 -1
  85. package/dist/models/paginatedFindMyCombosResponseList.js +1 -1
  86. package/dist/models/paginatedFindMyCombosResponseListResults.d.ts +1 -1
  87. package/dist/models/paginatedFindMyCombosResponseListResults.js +1 -1
  88. package/dist/models/paginatedTemplateList.d.ts +1 -1
  89. package/dist/models/paginatedTemplateList.js +1 -1
  90. package/dist/models/paginatedUserDetailList.d.ts +1 -1
  91. package/dist/models/paginatedUserDetailList.js +1 -1
  92. package/dist/models/paginatedVariantAliasList.d.ts +1 -1
  93. package/dist/models/paginatedVariantAliasList.js +1 -1
  94. package/dist/models/paginatedVariantList.d.ts +1 -1
  95. package/dist/models/paginatedVariantList.js +1 -1
  96. package/dist/models/paginatedVariantSuggestionList.d.ts +1 -1
  97. package/dist/models/paginatedVariantSuggestionList.js +1 -1
  98. package/dist/models/paginatedWebsitePropertyList.d.ts +1 -1
  99. package/dist/models/paginatedWebsitePropertyList.js +1 -1
  100. package/dist/models/patchedUserDetailRequest.d.ts +1 -1
  101. package/dist/models/patchedUserDetailRequest.js +1 -1
  102. package/dist/models/patchedVariantSuggestionRequest.d.ts +1 -1
  103. package/dist/models/patchedVariantSuggestionRequest.js +1 -1
  104. package/dist/models/template.d.ts +1 -1
  105. package/dist/models/template.js +1 -1
  106. package/dist/models/templateInVariant.d.ts +1 -1
  107. package/dist/models/templateInVariant.js +1 -1
  108. package/dist/models/templateRequiredInVariantSuggestion.d.ts +1 -1
  109. package/dist/models/templateRequiredInVariantSuggestion.js +1 -1
  110. package/dist/models/templateRequiredInVariantSuggestionRequest.d.ts +1 -1
  111. package/dist/models/templateRequiredInVariantSuggestionRequest.js +1 -1
  112. package/dist/models/tokenObtainPair.d.ts +1 -1
  113. package/dist/models/tokenObtainPair.js +1 -1
  114. package/dist/models/tokenObtainPairRequest.d.ts +1 -1
  115. package/dist/models/tokenObtainPairRequest.js +1 -1
  116. package/dist/models/tokenRefresh.d.ts +1 -1
  117. package/dist/models/tokenRefresh.js +1 -1
  118. package/dist/models/tokenRefreshRequest.d.ts +1 -1
  119. package/dist/models/tokenRefreshRequest.js +1 -1
  120. package/dist/models/tokenVerifyRequest.d.ts +1 -1
  121. package/dist/models/tokenVerifyRequest.js +1 -1
  122. package/dist/models/user.d.ts +1 -1
  123. package/dist/models/user.js +1 -1
  124. package/dist/models/userDetail.d.ts +1 -1
  125. package/dist/models/userDetail.js +1 -1
  126. package/dist/models/userDetailRequest.d.ts +1 -1
  127. package/dist/models/userDetailRequest.js +1 -1
  128. package/dist/models/userRequest.d.ts +1 -1
  129. package/dist/models/userRequest.js +1 -1
  130. package/dist/models/variant.d.ts +8 -2
  131. package/dist/models/variant.js +4 -1
  132. package/dist/models/variant.js.map +1 -1
  133. package/dist/models/variantAlias.d.ts +1 -1
  134. package/dist/models/variantAlias.js +1 -1
  135. package/dist/models/variantLegalities.d.ts +1 -1
  136. package/dist/models/variantLegalities.js +1 -1
  137. package/dist/models/variantPrices.d.ts +1 -1
  138. package/dist/models/variantPrices.js +1 -1
  139. package/dist/models/variantStatusEnum.d.ts +1 -1
  140. package/dist/models/variantStatusEnum.js +1 -1
  141. package/dist/models/variantSuggestion.d.ts +1 -1
  142. package/dist/models/variantSuggestion.js +1 -1
  143. package/dist/models/variantSuggestionRequest.d.ts +1 -1
  144. package/dist/models/variantSuggestionRequest.js +1 -1
  145. package/dist/models/variantSuggestionStatusEnum.d.ts +1 -1
  146. package/dist/models/variantSuggestionStatusEnum.js +1 -1
  147. package/dist/models/variantsQueryValidationError.d.ts +1 -1
  148. package/dist/models/variantsQueryValidationError.js +1 -1
  149. package/dist/models/websiteProperty.d.ts +1 -1
  150. package/dist/models/websiteProperty.js +1 -1
  151. package/dist/models/zoneLocationsEnum.d.ts +1 -1
  152. package/dist/models/zoneLocationsEnum.js +1 -1
  153. package/dist/runtime.d.ts +1 -1
  154. package/dist/runtime.js +1 -1
  155. package/package.json +1 -1
  156. package/spellbook-client/apis/cardListFromTextApi.ts +1 -1
  157. package/spellbook-client/apis/cardListFromUrlApi.ts +1 -1
  158. package/spellbook-client/apis/cardsApi.ts +1 -1
  159. package/spellbook-client/apis/defaultApi.ts +1 -1
  160. package/spellbook-client/apis/estimateBracketApi.ts +110 -0
  161. package/spellbook-client/apis/featuresApi.ts +1 -1
  162. package/spellbook-client/apis/findMyCombosApi.ts +1 -1
  163. package/spellbook-client/apis/index.ts +1 -0
  164. package/spellbook-client/apis/propertiesApi.ts +1 -1
  165. package/spellbook-client/apis/templatesApi.ts +1 -1
  166. package/spellbook-client/apis/tokenApi.ts +1 -1
  167. package/spellbook-client/apis/usersApi.ts +1 -1
  168. package/spellbook-client/apis/variantAliasesApi.ts +1 -1
  169. package/spellbook-client/apis/variantSuggestionsApi.ts +1 -1
  170. package/spellbook-client/apis/variantsApi.ts +1 -1
  171. package/spellbook-client/models/card.ts +1 -1
  172. package/spellbook-client/models/cardDetail.ts +37 -1
  173. package/spellbook-client/models/cardInDeck.ts +1 -1
  174. package/spellbook-client/models/cardInDeckRequest.ts +1 -1
  175. package/spellbook-client/models/cardInVariant.ts +1 -1
  176. package/spellbook-client/models/cardLegalities.ts +1 -1
  177. package/spellbook-client/models/cardPrices.ts +1 -1
  178. package/spellbook-client/models/cardUsedInVariantSuggestion.ts +1 -1
  179. package/spellbook-client/models/cardUsedInVariantSuggestionRequest.ts +1 -1
  180. package/spellbook-client/models/combo.ts +1 -1
  181. package/spellbook-client/models/deck.ts +1 -1
  182. package/spellbook-client/models/deckRequest.ts +1 -1
  183. package/spellbook-client/models/estimateBracketResult.ts +144 -0
  184. package/spellbook-client/models/feature.ts +1 -1
  185. package/spellbook-client/models/featureOfCard.ts +1 -1
  186. package/spellbook-client/models/featureProducedByVariant.ts +1 -1
  187. package/spellbook-client/models/featureProducedInVariantSuggestion.ts +1 -1
  188. package/spellbook-client/models/featureProducedInVariantSuggestionRequest.ts +1 -1
  189. package/spellbook-client/models/findMyCombosResponse.ts +1 -1
  190. package/spellbook-client/models/identityEnum.ts +1 -1
  191. package/spellbook-client/models/index.ts +1 -0
  192. package/spellbook-client/models/invalidUrlResponse.ts +1 -1
  193. package/spellbook-client/models/paginatedCardDetailList.ts +1 -1
  194. package/spellbook-client/models/paginatedFeatureList.ts +1 -1
  195. package/spellbook-client/models/paginatedFindMyCombosResponseList.ts +1 -1
  196. package/spellbook-client/models/paginatedFindMyCombosResponseListResults.ts +1 -1
  197. package/spellbook-client/models/paginatedTemplateList.ts +1 -1
  198. package/spellbook-client/models/paginatedUserDetailList.ts +1 -1
  199. package/spellbook-client/models/paginatedVariantAliasList.ts +1 -1
  200. package/spellbook-client/models/paginatedVariantList.ts +1 -1
  201. package/spellbook-client/models/paginatedVariantSuggestionList.ts +1 -1
  202. package/spellbook-client/models/paginatedWebsitePropertyList.ts +1 -1
  203. package/spellbook-client/models/patchedUserDetailRequest.ts +1 -1
  204. package/spellbook-client/models/patchedVariantSuggestionRequest.ts +1 -1
  205. package/spellbook-client/models/template.ts +1 -1
  206. package/spellbook-client/models/templateInVariant.ts +1 -1
  207. package/spellbook-client/models/templateRequiredInVariantSuggestion.ts +1 -1
  208. package/spellbook-client/models/templateRequiredInVariantSuggestionRequest.ts +1 -1
  209. package/spellbook-client/models/tokenObtainPair.ts +1 -1
  210. package/spellbook-client/models/tokenObtainPairRequest.ts +1 -1
  211. package/spellbook-client/models/tokenRefresh.ts +1 -1
  212. package/spellbook-client/models/tokenRefreshRequest.ts +1 -1
  213. package/spellbook-client/models/tokenVerifyRequest.ts +1 -1
  214. package/spellbook-client/models/user.ts +1 -1
  215. package/spellbook-client/models/userDetail.ts +1 -1
  216. package/spellbook-client/models/userDetailRequest.ts +1 -1
  217. package/spellbook-client/models/userRequest.ts +1 -1
  218. package/spellbook-client/models/variant.ts +10 -2
  219. package/spellbook-client/models/variantAlias.ts +1 -1
  220. package/spellbook-client/models/variantLegalities.ts +1 -1
  221. package/spellbook-client/models/variantPrices.ts +1 -1
  222. package/spellbook-client/models/variantStatusEnum.ts +1 -1
  223. package/spellbook-client/models/variantSuggestion.ts +1 -1
  224. package/spellbook-client/models/variantSuggestionRequest.ts +1 -1
  225. package/spellbook-client/models/variantSuggestionStatusEnum.ts +1 -1
  226. package/spellbook-client/models/variantsQueryValidationError.ts +1 -1
  227. package/spellbook-client/models/websiteProperty.ts +1 -1
  228. package/spellbook-client/models/zoneLocationsEnum.ts +1 -1
  229. package/spellbook-client/runtime.ts +1 -1
@@ -5,7 +5,7 @@
5
5
  * Commander Spellbook API
6
6
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering
7
7
  *
8
- * The version of the OpenAPI document: 3.14.21
8
+ * The version of the OpenAPI document: 3.15.0
9
9
  *
10
10
  *
11
11
  * 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
4
4
  *
5
- * The version of the OpenAPI document: 3.14.21
5
+ * The version of the OpenAPI document: 3.15.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Commander Spellbook API
6
6
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering
7
7
  *
8
- * The version of the OpenAPI document: 3.14.21
8
+ * The version of the OpenAPI document: 3.15.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.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
4
4
  *
5
- * The version of the OpenAPI document: 3.14.21
5
+ * The version of the OpenAPI document: 3.15.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Commander Spellbook API
6
6
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering
7
7
  *
8
- * The version of the OpenAPI document: 3.14.21
8
+ * The version of the OpenAPI document: 3.15.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  "build": "tsc",
33
33
  "watch": "tsc -w"
34
34
  },
35
- "version": "3.14.21"
35
+ "version": "3.15.0"
36
36
  }
@@ -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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,110 @@
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: 3.15.0
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ DeckRequest,
19
+ EstimateBracketResult,
20
+ } from '../models/index';
21
+ import {
22
+ DeckRequestFromJSON,
23
+ DeckRequestToJSON,
24
+ EstimateBracketResultFromJSON,
25
+ EstimateBracketResultToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface EstimateBracketCreateRequest {
29
+ deckRequest?: DeckRequest;
30
+ }
31
+
32
+ /**
33
+ *
34
+ */
35
+ export class EstimateBracketApi extends runtime.BaseAPI {
36
+
37
+ /**
38
+ */
39
+ async estimateBracketCreateRaw(requestParameters: EstimateBracketCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EstimateBracketResult>> {
40
+ const queryParameters: any = {};
41
+
42
+ const headerParameters: runtime.HTTPHeaders = {};
43
+
44
+ headerParameters['Content-Type'] = 'application/json';
45
+
46
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
47
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
48
+ }
49
+ if (this.configuration && this.configuration.accessToken) {
50
+ const token = this.configuration.accessToken;
51
+ const tokenString = await token("jwtAuth", []);
52
+
53
+ if (tokenString) {
54
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
55
+ }
56
+ }
57
+ const response = await this.request({
58
+ path: `/estimate-bracket`,
59
+ method: 'POST',
60
+ headers: headerParameters,
61
+ query: queryParameters,
62
+ body: DeckRequestToJSON(requestParameters['deckRequest']),
63
+ }, initOverrides);
64
+
65
+ return new runtime.JSONApiResponse(response, (jsonValue) => EstimateBracketResultFromJSON(jsonValue));
66
+ }
67
+
68
+ /**
69
+ */
70
+ async estimateBracketCreate(requestParameters: EstimateBracketCreateRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EstimateBracketResult> {
71
+ const response = await this.estimateBracketCreateRaw(requestParameters, initOverrides);
72
+ return await response.value();
73
+ }
74
+
75
+ /**
76
+ */
77
+ async estimateBracketRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EstimateBracketResult>> {
78
+ const queryParameters: any = {};
79
+
80
+ const headerParameters: runtime.HTTPHeaders = {};
81
+
82
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
83
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
84
+ }
85
+ if (this.configuration && this.configuration.accessToken) {
86
+ const token = this.configuration.accessToken;
87
+ const tokenString = await token("jwtAuth", []);
88
+
89
+ if (tokenString) {
90
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
91
+ }
92
+ }
93
+ const response = await this.request({
94
+ path: `/estimate-bracket`,
95
+ method: 'GET',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ }, initOverrides);
99
+
100
+ return new runtime.JSONApiResponse(response, (jsonValue) => EstimateBracketResultFromJSON(jsonValue));
101
+ }
102
+
103
+ /**
104
+ */
105
+ async estimateBracketRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EstimateBracketResult> {
106
+ const response = await this.estimateBracketRetrieveRaw(initOverrides);
107
+ return await response.value();
108
+ }
109
+
110
+ }
@@ -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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,6 +4,7 @@ export * from './cardListFromTextApi';
4
4
  export * from './cardListFromUrlApi';
5
5
  export * from './cardsApi';
6
6
  export * from './defaultApi';
7
+ export * from './estimateBracketApi';
7
8
  export * from './featuresApi';
8
9
  export * from './findMyCombosApi';
9
10
  export * from './propertiesApi';
@@ -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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -126,6 +126,30 @@ export interface CardDetail {
126
126
  * @memberof CardDetail
127
127
  */
128
128
  reprinted: boolean;
129
+ /**
130
+ * Whether this card can tutor for other cards
131
+ * @type {boolean}
132
+ * @memberof CardDetail
133
+ */
134
+ tutor: boolean;
135
+ /**
136
+ * Whether this card can destroy multiple lands
137
+ * @type {boolean}
138
+ * @memberof CardDetail
139
+ */
140
+ massLandDestruction: boolean;
141
+ /**
142
+ * Whether this card grants an extra turn
143
+ * @type {boolean}
144
+ * @memberof CardDetail
145
+ */
146
+ extraTurn: boolean;
147
+ /**
148
+ * Whether this card is in the official Game Changer card list
149
+ * @type {boolean}
150
+ * @memberof CardDetail
151
+ */
152
+ gameChanger: boolean;
129
153
  /**
130
154
  *
131
155
  * @type {Array<FeatureOfCard>}
@@ -165,6 +189,10 @@ export function instanceOfCardDetail(value: object): value is CardDetail {
165
189
  if (!('reserved' in value) || value['reserved'] === undefined) return false;
166
190
  if (!('latestPrintingSet' in value) || value['latestPrintingSet'] === undefined) return false;
167
191
  if (!('reprinted' in value) || value['reprinted'] === undefined) return false;
192
+ if (!('tutor' in value) || value['tutor'] === undefined) return false;
193
+ if (!('massLandDestruction' in value) || value['massLandDestruction'] === undefined) return false;
194
+ if (!('extraTurn' in value) || value['extraTurn'] === undefined) return false;
195
+ if (!('gameChanger' in value) || value['gameChanger'] === undefined) return false;
168
196
  if (!('features' in value) || value['features'] === undefined) return false;
169
197
  if (!('legalities' in value) || value['legalities'] === undefined) return false;
170
198
  if (!('prices' in value) || value['prices'] === undefined) return false;
@@ -194,6 +222,10 @@ export function CardDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean)
194
222
  'reserved': json['reserved'],
195
223
  'latestPrintingSet': json['latestPrintingSet'],
196
224
  'reprinted': json['reprinted'],
225
+ 'tutor': json['tutor'],
226
+ 'massLandDestruction': json['massLandDestruction'],
227
+ 'extraTurn': json['extraTurn'],
228
+ 'gameChanger': json['gameChanger'],
197
229
  'features': ((json['features'] as Array<any>).map(FeatureOfCardFromJSON)),
198
230
  'legalities': CardLegalitiesFromJSON(json['legalities']),
199
231
  'prices': CardPricesFromJSON(json['prices']),
@@ -222,6 +254,10 @@ export function CardDetailToJSONTyped(value?: Omit<CardDetail, 'id'|'variantCoun
222
254
  'reserved': value['reserved'],
223
255
  'latestPrintingSet': value['latestPrintingSet'],
224
256
  'reprinted': value['reprinted'],
257
+ 'tutor': value['tutor'],
258
+ 'massLandDestruction': value['massLandDestruction'],
259
+ 'extraTurn': value['extraTurn'],
260
+ 'gameChanger': value['gameChanger'],
225
261
  };
226
262
  }
227
263
 
@@ -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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,144 @@
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: 3.15.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Variant } from './variant';
17
+ import {
18
+ VariantFromJSON,
19
+ VariantFromJSONTyped,
20
+ VariantToJSON,
21
+ VariantToJSONTyped,
22
+ } from './variant';
23
+ import type { Card } from './card';
24
+ import {
25
+ CardFromJSON,
26
+ CardFromJSONTyped,
27
+ CardToJSON,
28
+ CardToJSONTyped,
29
+ } from './card';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface EstimateBracketResult
35
+ */
36
+ export interface EstimateBracketResult {
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof EstimateBracketResult
41
+ */
42
+ bracket: number | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof EstimateBracketResult
47
+ */
48
+ explanation: string | null;
49
+ /**
50
+ *
51
+ * @type {Array<Card>}
52
+ * @memberof EstimateBracketResult
53
+ */
54
+ gameChangers: Array<Card>;
55
+ /**
56
+ *
57
+ * @type {Array<Card>}
58
+ * @memberof EstimateBracketResult
59
+ */
60
+ massLandDenial: Array<Card>;
61
+ /**
62
+ *
63
+ * @type {Array<Card>}
64
+ * @memberof EstimateBracketResult
65
+ */
66
+ extraTurn: Array<Card>;
67
+ /**
68
+ *
69
+ * @type {Array<Card>}
70
+ * @memberof EstimateBracketResult
71
+ */
72
+ tutor: Array<Card>;
73
+ /**
74
+ *
75
+ * @type {Array<Variant>}
76
+ * @memberof EstimateBracketResult
77
+ */
78
+ twoCardCombos: Array<Variant>;
79
+ /**
80
+ *
81
+ * @type {Array<Variant>}
82
+ * @memberof EstimateBracketResult
83
+ */
84
+ earlyGameTwoCardCombos: Array<Variant>;
85
+ }
86
+
87
+ /**
88
+ * Check if a given object implements the EstimateBracketResult interface.
89
+ */
90
+ export function instanceOfEstimateBracketResult(value: object): value is EstimateBracketResult {
91
+ if (!('bracket' in value) || value['bracket'] === undefined) return false;
92
+ if (!('explanation' in value) || value['explanation'] === undefined) return false;
93
+ if (!('gameChangers' in value) || value['gameChangers'] === undefined) return false;
94
+ if (!('massLandDenial' in value) || value['massLandDenial'] === undefined) return false;
95
+ if (!('extraTurn' in value) || value['extraTurn'] === undefined) return false;
96
+ if (!('tutor' in value) || value['tutor'] === undefined) return false;
97
+ if (!('twoCardCombos' in value) || value['twoCardCombos'] === undefined) return false;
98
+ if (!('earlyGameTwoCardCombos' in value) || value['earlyGameTwoCardCombos'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function EstimateBracketResultFromJSON(json: any): EstimateBracketResult {
103
+ return EstimateBracketResultFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function EstimateBracketResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): EstimateBracketResult {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'bracket': json['bracket'],
113
+ 'explanation': json['explanation'],
114
+ 'gameChangers': ((json['gameChangers'] as Array<any>).map(CardFromJSON)),
115
+ 'massLandDenial': ((json['massLandDenial'] as Array<any>).map(CardFromJSON)),
116
+ 'extraTurn': ((json['extraTurn'] as Array<any>).map(CardFromJSON)),
117
+ 'tutor': ((json['tutor'] as Array<any>).map(CardFromJSON)),
118
+ 'twoCardCombos': ((json['twoCardCombos'] as Array<any>).map(VariantFromJSON)),
119
+ 'earlyGameTwoCardCombos': ((json['earlyGameTwoCardCombos'] as Array<any>).map(VariantFromJSON)),
120
+ };
121
+ }
122
+
123
+ export function EstimateBracketResultToJSON(json: any): EstimateBracketResult {
124
+ return EstimateBracketResultToJSONTyped(json, false);
125
+ }
126
+
127
+ export function EstimateBracketResultToJSONTyped(value?: EstimateBracketResult | null, ignoreDiscriminator: boolean = false): any {
128
+ if (value == null) {
129
+ return value;
130
+ }
131
+
132
+ return {
133
+
134
+ 'bracket': value['bracket'],
135
+ 'explanation': value['explanation'],
136
+ 'gameChangers': ((value['gameChangers'] as Array<any>).map(CardToJSON)),
137
+ 'massLandDenial': ((value['massLandDenial'] as Array<any>).map(CardToJSON)),
138
+ 'extraTurn': ((value['extraTurn'] as Array<any>).map(CardToJSON)),
139
+ 'tutor': ((value['tutor'] as Array<any>).map(CardToJSON)),
140
+ 'twoCardCombos': ((value['twoCardCombos'] as Array<any>).map(VariantToJSON)),
141
+ 'earlyGameTwoCardCombos': ((value['earlyGameTwoCardCombos'] as Array<any>).map(VariantToJSON)),
142
+ };
143
+ }
144
+
@@ -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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.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: 3.14.21
7
+ * The version of the OpenAPI document: 3.15.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).