@space-cow-media/spellbook-client 4.2.6 → 4.3.2

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 (270) 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 +1 -1
  10. package/dist/apis/estimateBracketApi.js +1 -1
  11. package/dist/apis/featuresApi.d.ts +1 -1
  12. package/dist/apis/featuresApi.js +1 -1
  13. package/dist/apis/findMyCombosApi.d.ts +1 -1
  14. package/dist/apis/findMyCombosApi.js +1 -1
  15. package/dist/apis/index.d.ts +1 -0
  16. package/dist/apis/index.js +1 -0
  17. package/dist/apis/index.js.map +1 -1
  18. package/dist/apis/propertiesApi.d.ts +1 -1
  19. package/dist/apis/propertiesApi.js +1 -1
  20. package/dist/apis/templatesApi.d.ts +1 -1
  21. package/dist/apis/templatesApi.js +1 -1
  22. package/dist/apis/tokenApi.d.ts +1 -1
  23. package/dist/apis/tokenApi.js +1 -1
  24. package/dist/apis/usersApi.d.ts +1 -1
  25. package/dist/apis/usersApi.js +1 -1
  26. package/dist/apis/variantAliasesApi.d.ts +1 -1
  27. package/dist/apis/variantAliasesApi.js +1 -1
  28. package/dist/apis/variantSuggestionsApi.d.ts +36 -1
  29. package/dist/apis/variantSuggestionsApi.js +124 -1
  30. package/dist/apis/variantSuggestionsApi.js.map +1 -1
  31. package/dist/apis/variantUpdateSuggestionsApi.d.ts +111 -0
  32. package/dist/apis/variantUpdateSuggestionsApi.js +420 -0
  33. package/dist/apis/variantUpdateSuggestionsApi.js.map +1 -0
  34. package/dist/apis/variantsApi.d.ts +1 -1
  35. package/dist/apis/variantsApi.js +1 -1
  36. package/dist/models/bracketTagEnum.d.ts +1 -1
  37. package/dist/models/bracketTagEnum.js +1 -1
  38. package/dist/models/card.d.ts +1 -1
  39. package/dist/models/card.js +1 -1
  40. package/dist/models/cardDetail.d.ts +1 -1
  41. package/dist/models/cardDetail.js +1 -1
  42. package/dist/models/cardInDeck.d.ts +1 -1
  43. package/dist/models/cardInDeck.js +1 -1
  44. package/dist/models/cardInDeckRequest.d.ts +1 -1
  45. package/dist/models/cardInDeckRequest.js +1 -1
  46. package/dist/models/cardInVariant.d.ts +1 -1
  47. package/dist/models/cardInVariant.js +1 -1
  48. package/dist/models/cardLegalities.d.ts +1 -1
  49. package/dist/models/cardLegalities.js +1 -1
  50. package/dist/models/cardPrices.d.ts +1 -1
  51. package/dist/models/cardPrices.js +1 -1
  52. package/dist/models/cardUsedInVariantSuggestion.d.ts +1 -1
  53. package/dist/models/cardUsedInVariantSuggestion.js +1 -1
  54. package/dist/models/cardUsedInVariantSuggestionRequest.d.ts +1 -1
  55. package/dist/models/cardUsedInVariantSuggestionRequest.js +1 -1
  56. package/dist/models/combo.d.ts +1 -1
  57. package/dist/models/combo.js +1 -1
  58. package/dist/models/deck.d.ts +1 -1
  59. package/dist/models/deck.js +1 -1
  60. package/dist/models/deckRequest.d.ts +1 -1
  61. package/dist/models/deckRequest.js +1 -1
  62. package/dist/models/estimateBracketResult.d.ts +1 -1
  63. package/dist/models/estimateBracketResult.js +1 -1
  64. package/dist/models/feature.d.ts +1 -1
  65. package/dist/models/feature.js +1 -1
  66. package/dist/models/featureOfCard.d.ts +1 -1
  67. package/dist/models/featureOfCard.js +1 -1
  68. package/dist/models/featureProducedByVariant.d.ts +1 -1
  69. package/dist/models/featureProducedByVariant.js +1 -1
  70. package/dist/models/featureProducedInVariantSuggestion.d.ts +1 -1
  71. package/dist/models/featureProducedInVariantSuggestion.js +1 -1
  72. package/dist/models/featureProducedInVariantSuggestionRequest.d.ts +1 -1
  73. package/dist/models/featureProducedInVariantSuggestionRequest.js +1 -1
  74. package/dist/models/featureStatusEnum.d.ts +1 -1
  75. package/dist/models/featureStatusEnum.js +1 -1
  76. package/dist/models/findMyCombosResponse.d.ts +1 -1
  77. package/dist/models/findMyCombosResponse.js +1 -1
  78. package/dist/models/identityEnum.d.ts +1 -1
  79. package/dist/models/identityEnum.js +1 -1
  80. package/dist/models/index.d.ts +8 -1
  81. package/dist/models/index.js +8 -1
  82. package/dist/models/index.js.map +1 -1
  83. package/dist/models/invalidUrlResponse.d.ts +1 -1
  84. package/dist/models/invalidUrlResponse.js +1 -1
  85. package/dist/models/kindEnum.d.ts +32 -0
  86. package/dist/models/kindEnum.js +61 -0
  87. package/dist/models/kindEnum.js.map +1 -0
  88. package/dist/models/paginatedCardDetailList.d.ts +1 -1
  89. package/dist/models/paginatedCardDetailList.js +1 -1
  90. package/dist/models/paginatedFeatureList.d.ts +1 -1
  91. package/dist/models/paginatedFeatureList.js +1 -1
  92. package/dist/models/paginatedFindMyCombosResponseList.d.ts +1 -1
  93. package/dist/models/paginatedFindMyCombosResponseList.js +1 -1
  94. package/dist/models/paginatedFindMyCombosResponseListResults.d.ts +1 -1
  95. package/dist/models/paginatedFindMyCombosResponseListResults.js +1 -1
  96. package/dist/models/paginatedTemplateList.d.ts +1 -1
  97. package/dist/models/paginatedTemplateList.js +1 -1
  98. package/dist/models/paginatedUserDetailList.d.ts +1 -1
  99. package/dist/models/paginatedUserDetailList.js +1 -1
  100. package/dist/models/paginatedVariantAliasList.d.ts +1 -1
  101. package/dist/models/paginatedVariantAliasList.js +1 -1
  102. package/dist/models/paginatedVariantList.d.ts +1 -1
  103. package/dist/models/paginatedVariantList.js +1 -1
  104. package/dist/models/paginatedVariantSuggestionList.d.ts +1 -1
  105. package/dist/models/paginatedVariantSuggestionList.js +1 -1
  106. package/dist/models/paginatedVariantUpdateSuggestionList.d.ts +51 -0
  107. package/dist/models/paginatedVariantUpdateSuggestionList.js +64 -0
  108. package/dist/models/paginatedVariantUpdateSuggestionList.js.map +1 -0
  109. package/dist/models/paginatedWebsitePropertyList.d.ts +1 -1
  110. package/dist/models/paginatedWebsitePropertyList.js +1 -1
  111. package/dist/models/patchedUserDetailRequest.d.ts +1 -1
  112. package/dist/models/patchedUserDetailRequest.js +1 -1
  113. package/dist/models/patchedVariantSuggestionRequest.d.ts +2 -2
  114. package/dist/models/patchedVariantSuggestionRequest.js +1 -1
  115. package/dist/models/patchedVariantUpdateSuggestionRequest.d.ts +64 -0
  116. package/dist/models/patchedVariantUpdateSuggestionRequest.js +59 -0
  117. package/dist/models/patchedVariantUpdateSuggestionRequest.js.map +1 -0
  118. package/dist/models/suggestionStatusEnum.d.ts +32 -0
  119. package/dist/models/suggestionStatusEnum.js +61 -0
  120. package/dist/models/suggestionStatusEnum.js.map +1 -0
  121. package/dist/models/template.d.ts +1 -1
  122. package/dist/models/template.js +1 -1
  123. package/dist/models/templateInVariant.d.ts +1 -1
  124. package/dist/models/templateInVariant.js +1 -1
  125. package/dist/models/templateRequiredInVariantSuggestion.d.ts +1 -1
  126. package/dist/models/templateRequiredInVariantSuggestion.js +1 -1
  127. package/dist/models/templateRequiredInVariantSuggestionRequest.d.ts +1 -1
  128. package/dist/models/templateRequiredInVariantSuggestionRequest.js +1 -1
  129. package/dist/models/tokenObtainPair.d.ts +1 -1
  130. package/dist/models/tokenObtainPair.js +1 -1
  131. package/dist/models/tokenObtainPairRequest.d.ts +1 -1
  132. package/dist/models/tokenObtainPairRequest.js +1 -1
  133. package/dist/models/tokenRefresh.d.ts +1 -1
  134. package/dist/models/tokenRefresh.js +1 -1
  135. package/dist/models/tokenRefreshRequest.d.ts +1 -1
  136. package/dist/models/tokenRefreshRequest.js +1 -1
  137. package/dist/models/tokenVerifyRequest.d.ts +1 -1
  138. package/dist/models/tokenVerifyRequest.js +1 -1
  139. package/dist/models/user.d.ts +1 -1
  140. package/dist/models/user.js +1 -1
  141. package/dist/models/userDetail.d.ts +1 -1
  142. package/dist/models/userDetail.js +1 -1
  143. package/dist/models/userDetailRequest.d.ts +1 -1
  144. package/dist/models/userDetailRequest.js +1 -1
  145. package/dist/models/userRequest.d.ts +1 -1
  146. package/dist/models/userRequest.js +1 -1
  147. package/dist/models/variant.d.ts +1 -1
  148. package/dist/models/variant.js +1 -1
  149. package/dist/models/variantAlias.d.ts +1 -1
  150. package/dist/models/variantAlias.js +1 -1
  151. package/dist/models/variantInVariantUpdateSuggestion.d.ts +38 -0
  152. package/dist/models/variantInVariantUpdateSuggestion.js +55 -0
  153. package/dist/models/variantInVariantUpdateSuggestion.js.map +1 -0
  154. package/dist/models/variantInVariantUpdateSuggestionRequest.d.ts +38 -0
  155. package/dist/models/variantInVariantUpdateSuggestionRequest.js +53 -0
  156. package/dist/models/variantInVariantUpdateSuggestionRequest.js.map +1 -0
  157. package/dist/models/variantLegalities.d.ts +1 -1
  158. package/dist/models/variantLegalities.js +1 -1
  159. package/dist/models/variantPrices.d.ts +1 -1
  160. package/dist/models/variantPrices.js +1 -1
  161. package/dist/models/variantStatusEnum.d.ts +1 -1
  162. package/dist/models/variantStatusEnum.js +1 -1
  163. package/dist/models/variantSuggestion.d.ts +5 -5
  164. package/dist/models/variantSuggestion.js +3 -3
  165. package/dist/models/variantSuggestion.js.map +1 -1
  166. package/dist/models/variantSuggestionRequest.d.ts +2 -2
  167. package/dist/models/variantSuggestionRequest.js +1 -1
  168. package/dist/models/variantUpdateSuggestion.d.ts +96 -0
  169. package/dist/models/variantUpdateSuggestion.js +83 -0
  170. package/dist/models/variantUpdateSuggestion.js.map +1 -0
  171. package/dist/models/variantUpdateSuggestionRequest.d.ts +64 -0
  172. package/dist/models/variantUpdateSuggestionRequest.js +63 -0
  173. package/dist/models/variantUpdateSuggestionRequest.js.map +1 -0
  174. package/dist/models/variantsQueryValidationError.d.ts +1 -1
  175. package/dist/models/variantsQueryValidationError.js +1 -1
  176. package/dist/models/websiteProperty.d.ts +1 -1
  177. package/dist/models/websiteProperty.js +1 -1
  178. package/dist/models/zoneLocationsEnum.d.ts +1 -1
  179. package/dist/models/zoneLocationsEnum.js +1 -1
  180. package/dist/runtime.d.ts +1 -1
  181. package/dist/runtime.js +1 -1
  182. package/package.json +1 -1
  183. package/spellbook-client/apis/cardListFromTextApi.ts +1 -1
  184. package/spellbook-client/apis/cardListFromUrlApi.ts +1 -1
  185. package/spellbook-client/apis/cardsApi.ts +1 -1
  186. package/spellbook-client/apis/defaultApi.ts +1 -1
  187. package/spellbook-client/apis/estimateBracketApi.ts +1 -1
  188. package/spellbook-client/apis/featuresApi.ts +1 -1
  189. package/spellbook-client/apis/findMyCombosApi.ts +1 -1
  190. package/spellbook-client/apis/index.ts +1 -0
  191. package/spellbook-client/apis/propertiesApi.ts +1 -1
  192. package/spellbook-client/apis/templatesApi.ts +1 -1
  193. package/spellbook-client/apis/tokenApi.ts +1 -1
  194. package/spellbook-client/apis/usersApi.ts +1 -1
  195. package/spellbook-client/apis/variantAliasesApi.ts +1 -1
  196. package/spellbook-client/apis/variantSuggestionsApi.ts +163 -1
  197. package/spellbook-client/apis/variantUpdateSuggestionsApi.ts +501 -0
  198. package/spellbook-client/apis/variantsApi.ts +1 -1
  199. package/spellbook-client/models/bracketTagEnum.ts +1 -1
  200. package/spellbook-client/models/card.ts +1 -1
  201. package/spellbook-client/models/cardDetail.ts +1 -1
  202. package/spellbook-client/models/cardInDeck.ts +1 -1
  203. package/spellbook-client/models/cardInDeckRequest.ts +1 -1
  204. package/spellbook-client/models/cardInVariant.ts +1 -1
  205. package/spellbook-client/models/cardLegalities.ts +1 -1
  206. package/spellbook-client/models/cardPrices.ts +1 -1
  207. package/spellbook-client/models/cardUsedInVariantSuggestion.ts +1 -1
  208. package/spellbook-client/models/cardUsedInVariantSuggestionRequest.ts +1 -1
  209. package/spellbook-client/models/combo.ts +1 -1
  210. package/spellbook-client/models/deck.ts +1 -1
  211. package/spellbook-client/models/deckRequest.ts +1 -1
  212. package/spellbook-client/models/estimateBracketResult.ts +1 -1
  213. package/spellbook-client/models/feature.ts +1 -1
  214. package/spellbook-client/models/featureOfCard.ts +1 -1
  215. package/spellbook-client/models/featureProducedByVariant.ts +1 -1
  216. package/spellbook-client/models/featureProducedInVariantSuggestion.ts +1 -1
  217. package/spellbook-client/models/featureProducedInVariantSuggestionRequest.ts +1 -1
  218. package/spellbook-client/models/featureStatusEnum.ts +1 -1
  219. package/spellbook-client/models/findMyCombosResponse.ts +1 -1
  220. package/spellbook-client/models/identityEnum.ts +1 -1
  221. package/spellbook-client/models/index.ts +8 -1
  222. package/spellbook-client/models/invalidUrlResponse.ts +1 -1
  223. package/spellbook-client/models/kindEnum.ts +59 -0
  224. package/spellbook-client/models/paginatedCardDetailList.ts +1 -1
  225. package/spellbook-client/models/paginatedFeatureList.ts +1 -1
  226. package/spellbook-client/models/paginatedFindMyCombosResponseList.ts +1 -1
  227. package/spellbook-client/models/paginatedFindMyCombosResponseListResults.ts +1 -1
  228. package/spellbook-client/models/paginatedTemplateList.ts +1 -1
  229. package/spellbook-client/models/paginatedUserDetailList.ts +1 -1
  230. package/spellbook-client/models/paginatedVariantAliasList.ts +1 -1
  231. package/spellbook-client/models/paginatedVariantList.ts +1 -1
  232. package/spellbook-client/models/paginatedVariantSuggestionList.ts +1 -1
  233. package/spellbook-client/models/paginatedVariantUpdateSuggestionList.ts +101 -0
  234. package/spellbook-client/models/paginatedWebsitePropertyList.ts +1 -1
  235. package/spellbook-client/models/patchedUserDetailRequest.ts +1 -1
  236. package/spellbook-client/models/patchedVariantSuggestionRequest.ts +2 -2
  237. package/spellbook-client/models/patchedVariantUpdateSuggestionRequest.ts +120 -0
  238. package/spellbook-client/models/suggestionStatusEnum.ts +59 -0
  239. package/spellbook-client/models/template.ts +1 -1
  240. package/spellbook-client/models/templateInVariant.ts +1 -1
  241. package/spellbook-client/models/templateRequiredInVariantSuggestion.ts +1 -1
  242. package/spellbook-client/models/templateRequiredInVariantSuggestionRequest.ts +1 -1
  243. package/spellbook-client/models/tokenObtainPair.ts +1 -1
  244. package/spellbook-client/models/tokenObtainPairRequest.ts +1 -1
  245. package/spellbook-client/models/tokenRefresh.ts +1 -1
  246. package/spellbook-client/models/tokenRefreshRequest.ts +1 -1
  247. package/spellbook-client/models/tokenVerifyRequest.ts +1 -1
  248. package/spellbook-client/models/user.ts +1 -1
  249. package/spellbook-client/models/userDetail.ts +1 -1
  250. package/spellbook-client/models/userDetailRequest.ts +1 -1
  251. package/spellbook-client/models/userRequest.ts +1 -1
  252. package/spellbook-client/models/variant.ts +1 -1
  253. package/spellbook-client/models/variantAlias.ts +1 -1
  254. package/spellbook-client/models/variantInVariantUpdateSuggestion.ts +75 -0
  255. package/spellbook-client/models/variantInVariantUpdateSuggestionRequest.ts +74 -0
  256. package/spellbook-client/models/variantLegalities.ts +1 -1
  257. package/spellbook-client/models/variantPrices.ts +1 -1
  258. package/spellbook-client/models/variantStatusEnum.ts +1 -1
  259. package/spellbook-client/models/variantSuggestion.ts +12 -12
  260. package/spellbook-client/models/variantSuggestionRequest.ts +2 -2
  261. package/spellbook-client/models/variantUpdateSuggestion.ts +177 -0
  262. package/spellbook-client/models/variantUpdateSuggestionRequest.ts +122 -0
  263. package/spellbook-client/models/variantsQueryValidationError.ts +1 -1
  264. package/spellbook-client/models/websiteProperty.ts +1 -1
  265. package/spellbook-client/models/zoneLocationsEnum.ts +1 -1
  266. package/spellbook-client/runtime.ts +1 -1
  267. package/dist/models/variantSuggestionStatusEnum.d.ts +0 -32
  268. package/dist/models/variantSuggestionStatusEnum.js +0 -61
  269. package/dist/models/variantSuggestionStatusEnum.js.map +0 -1
  270. package/spellbook-client/models/variantSuggestionStatusEnum.ts +0 -59
@@ -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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,75 @@
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: 4.3.2
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 VariantInVariantUpdateSuggestion
20
+ */
21
+ export interface VariantInVariantUpdateSuggestion {
22
+ /**
23
+ * Unique ID for this variant
24
+ * @type {string}
25
+ * @memberof VariantInVariantUpdateSuggestion
26
+ */
27
+ variant: string;
28
+ /**
29
+ * Description of the issue specific for this variant
30
+ * @type {string}
31
+ * @memberof VariantInVariantUpdateSuggestion
32
+ */
33
+ issue: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VariantInVariantUpdateSuggestion interface.
38
+ */
39
+ export function instanceOfVariantInVariantUpdateSuggestion(value: object): value is VariantInVariantUpdateSuggestion {
40
+ if (!('variant' in value) || value['variant'] === undefined) return false;
41
+ if (!('issue' in value) || value['issue'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function VariantInVariantUpdateSuggestionFromJSON(json: any): VariantInVariantUpdateSuggestion {
46
+ return VariantInVariantUpdateSuggestionFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VariantInVariantUpdateSuggestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantInVariantUpdateSuggestion {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'variant': json['variant'],
56
+ 'issue': json['issue'],
57
+ };
58
+ }
59
+
60
+ export function VariantInVariantUpdateSuggestionToJSON(json: any): VariantInVariantUpdateSuggestion {
61
+ return VariantInVariantUpdateSuggestionToJSONTyped(json, false);
62
+ }
63
+
64
+ export function VariantInVariantUpdateSuggestionToJSONTyped(value?: VariantInVariantUpdateSuggestion | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'variant': value['variant'],
72
+ 'issue': value['issue'],
73
+ };
74
+ }
75
+
@@ -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: 4.3.2
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 VariantInVariantUpdateSuggestionRequest
20
+ */
21
+ export interface VariantInVariantUpdateSuggestionRequest {
22
+ /**
23
+ * Unique ID for this variant
24
+ * @type {string}
25
+ * @memberof VariantInVariantUpdateSuggestionRequest
26
+ */
27
+ variant: string;
28
+ /**
29
+ * Description of the issue specific for this variant
30
+ * @type {string}
31
+ * @memberof VariantInVariantUpdateSuggestionRequest
32
+ */
33
+ issue?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VariantInVariantUpdateSuggestionRequest interface.
38
+ */
39
+ export function instanceOfVariantInVariantUpdateSuggestionRequest(value: object): value is VariantInVariantUpdateSuggestionRequest {
40
+ if (!('variant' in value) || value['variant'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function VariantInVariantUpdateSuggestionRequestFromJSON(json: any): VariantInVariantUpdateSuggestionRequest {
45
+ return VariantInVariantUpdateSuggestionRequestFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function VariantInVariantUpdateSuggestionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantInVariantUpdateSuggestionRequest {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'variant': json['variant'],
55
+ 'issue': json['issue'] == null ? undefined : json['issue'],
56
+ };
57
+ }
58
+
59
+ export function VariantInVariantUpdateSuggestionRequestToJSON(json: any): VariantInVariantUpdateSuggestionRequest {
60
+ return VariantInVariantUpdateSuggestionRequestToJSONTyped(json, false);
61
+ }
62
+
63
+ export function VariantInVariantUpdateSuggestionRequestToJSONTyped(value?: VariantInVariantUpdateSuggestionRequest | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'variant': value['variant'],
71
+ 'issue': value['issue'],
72
+ };
73
+ }
74
+
@@ -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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,13 +34,6 @@ import {
34
34
  CardUsedInVariantSuggestionToJSON,
35
35
  CardUsedInVariantSuggestionToJSONTyped,
36
36
  } from './cardUsedInVariantSuggestion';
37
- import type { VariantSuggestionStatusEnum } from './variantSuggestionStatusEnum';
38
- import {
39
- VariantSuggestionStatusEnumFromJSON,
40
- VariantSuggestionStatusEnumFromJSONTyped,
41
- VariantSuggestionStatusEnumToJSON,
42
- VariantSuggestionStatusEnumToJSONTyped,
43
- } from './variantSuggestionStatusEnum';
44
37
  import type { TemplateRequiredInVariantSuggestion } from './templateRequiredInVariantSuggestion';
45
38
  import {
46
39
  TemplateRequiredInVariantSuggestionFromJSON,
@@ -48,6 +41,13 @@ import {
48
41
  TemplateRequiredInVariantSuggestionToJSON,
49
42
  TemplateRequiredInVariantSuggestionToJSONTyped,
50
43
  } from './templateRequiredInVariantSuggestion';
44
+ import type { SuggestionStatusEnum } from './suggestionStatusEnum';
45
+ import {
46
+ SuggestionStatusEnumFromJSON,
47
+ SuggestionStatusEnumFromJSONTyped,
48
+ SuggestionStatusEnumToJSON,
49
+ SuggestionStatusEnumToJSONTyped,
50
+ } from './suggestionStatusEnum';
51
51
 
52
52
  /**
53
53
  *
@@ -69,10 +69,10 @@ export interface VariantSuggestion {
69
69
  * * `PA` - Pending Approval
70
70
  * * `A` - Accepted
71
71
  * * `R` - Rejected
72
- * @type {VariantSuggestionStatusEnum}
72
+ * @type {SuggestionStatusEnum}
73
73
  * @memberof VariantSuggestion
74
74
  */
75
- readonly status: VariantSuggestionStatusEnum;
75
+ readonly status: SuggestionStatusEnum;
76
76
  /**
77
77
  * Notes written by editors
78
78
  * @type {string}
@@ -128,7 +128,7 @@ export interface VariantSuggestion {
128
128
  */
129
129
  spoiler: boolean;
130
130
  /**
131
- * Comment written by the user that suggested this combo
131
+ * Comment written by the user that suggested this
132
132
  * @type {string}
133
133
  * @memberof VariantSuggestion
134
134
  */
@@ -181,7 +181,7 @@ export function VariantSuggestionFromJSONTyped(json: any, ignoreDiscriminator: b
181
181
  return {
182
182
 
183
183
  'id': json['id'],
184
- 'status': VariantSuggestionStatusEnumFromJSON(json['status']),
184
+ 'status': SuggestionStatusEnumFromJSON(json['status']),
185
185
  'notes': json['notes'],
186
186
  'uses': ((json['uses'] as Array<any>).map(CardUsedInVariantSuggestionFromJSON)),
187
187
  'requires': ((json['requires'] as Array<any>).map(TemplateRequiredInVariantSuggestionFromJSON)),
@@ -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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -96,7 +96,7 @@ export interface VariantSuggestionRequest {
96
96
  */
97
97
  spoiler?: boolean;
98
98
  /**
99
- * Comment written by the user that suggested this combo
99
+ * Comment written by the user that suggested this
100
100
  * @type {string}
101
101
  * @memberof VariantSuggestionRequest
102
102
  */
@@ -0,0 +1,177 @@
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: 4.3.2
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 { User } from './user';
17
+ import {
18
+ UserFromJSON,
19
+ UserFromJSONTyped,
20
+ UserToJSON,
21
+ UserToJSONTyped,
22
+ } from './user';
23
+ import type { KindEnum } from './kindEnum';
24
+ import {
25
+ KindEnumFromJSON,
26
+ KindEnumFromJSONTyped,
27
+ KindEnumToJSON,
28
+ KindEnumToJSONTyped,
29
+ } from './kindEnum';
30
+ import type { SuggestionStatusEnum } from './suggestionStatusEnum';
31
+ import {
32
+ SuggestionStatusEnumFromJSON,
33
+ SuggestionStatusEnumFromJSONTyped,
34
+ SuggestionStatusEnumToJSON,
35
+ SuggestionStatusEnumToJSONTyped,
36
+ } from './suggestionStatusEnum';
37
+ import type { VariantInVariantUpdateSuggestion } from './variantInVariantUpdateSuggestion';
38
+ import {
39
+ VariantInVariantUpdateSuggestionFromJSON,
40
+ VariantInVariantUpdateSuggestionFromJSONTyped,
41
+ VariantInVariantUpdateSuggestionToJSON,
42
+ VariantInVariantUpdateSuggestionToJSONTyped,
43
+ } from './variantInVariantUpdateSuggestion';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface VariantUpdateSuggestion
49
+ */
50
+ export interface VariantUpdateSuggestion {
51
+ /**
52
+ *
53
+ * @type {number}
54
+ * @memberof VariantUpdateSuggestion
55
+ */
56
+ readonly id: number;
57
+ /**
58
+ * Suggestion status for editors
59
+ *
60
+ * * `N` - New
61
+ * * `AD` - Awaiting Discussion
62
+ * * `PA` - Pending Approval
63
+ * * `A` - Accepted
64
+ * * `R` - Rejected
65
+ * @type {SuggestionStatusEnum}
66
+ * @memberof VariantUpdateSuggestion
67
+ */
68
+ readonly status: SuggestionStatusEnum;
69
+ /**
70
+ * Type of suggestion
71
+ *
72
+ * * `NW` - Not Working
73
+ * * `SE` - Spelling Error
74
+ * * `II` - Incorrect Info
75
+ * * `WC` - Wrong Card
76
+ * * `O` - Other
77
+ * @type {KindEnum}
78
+ * @memberof VariantUpdateSuggestion
79
+ */
80
+ kind: KindEnum;
81
+ /**
82
+ *
83
+ * @type {Array<VariantInVariantUpdateSuggestion>}
84
+ * @memberof VariantUpdateSuggestion
85
+ */
86
+ variants: Array<VariantInVariantUpdateSuggestion>;
87
+ /**
88
+ * Description of the problem
89
+ * @type {string}
90
+ * @memberof VariantUpdateSuggestion
91
+ */
92
+ issue: string;
93
+ /**
94
+ * Description of the solution
95
+ * @type {string}
96
+ * @memberof VariantUpdateSuggestion
97
+ */
98
+ solution: string;
99
+ /**
100
+ * Comment written by the user that suggested this
101
+ * @type {string}
102
+ * @memberof VariantUpdateSuggestion
103
+ */
104
+ comment: string;
105
+ /**
106
+ *
107
+ * @type {User}
108
+ * @memberof VariantUpdateSuggestion
109
+ */
110
+ readonly suggestedBy: User;
111
+ /**
112
+ *
113
+ * @type {Date}
114
+ * @memberof VariantUpdateSuggestion
115
+ */
116
+ readonly created: Date;
117
+ }
118
+
119
+
120
+
121
+ /**
122
+ * Check if a given object implements the VariantUpdateSuggestion interface.
123
+ */
124
+ export function instanceOfVariantUpdateSuggestion(value: object): value is VariantUpdateSuggestion {
125
+ if (!('id' in value) || value['id'] === undefined) return false;
126
+ if (!('status' in value) || value['status'] === undefined) return false;
127
+ if (!('kind' in value) || value['kind'] === undefined) return false;
128
+ if (!('variants' in value) || value['variants'] === undefined) return false;
129
+ if (!('issue' in value) || value['issue'] === undefined) return false;
130
+ if (!('solution' in value) || value['solution'] === undefined) return false;
131
+ if (!('comment' in value) || value['comment'] === undefined) return false;
132
+ if (!('suggestedBy' in value) || value['suggestedBy'] === undefined) return false;
133
+ if (!('created' in value) || value['created'] === undefined) return false;
134
+ return true;
135
+ }
136
+
137
+ export function VariantUpdateSuggestionFromJSON(json: any): VariantUpdateSuggestion {
138
+ return VariantUpdateSuggestionFromJSONTyped(json, false);
139
+ }
140
+
141
+ export function VariantUpdateSuggestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantUpdateSuggestion {
142
+ if (json == null) {
143
+ return json;
144
+ }
145
+ return {
146
+
147
+ 'id': json['id'],
148
+ 'status': SuggestionStatusEnumFromJSON(json['status']),
149
+ 'kind': KindEnumFromJSON(json['kind']),
150
+ 'variants': ((json['variants'] as Array<any>).map(VariantInVariantUpdateSuggestionFromJSON)),
151
+ 'issue': json['issue'],
152
+ 'solution': json['solution'],
153
+ 'comment': json['comment'],
154
+ 'suggestedBy': UserFromJSON(json['suggestedBy']),
155
+ 'created': (new Date(json['created'])),
156
+ };
157
+ }
158
+
159
+ export function VariantUpdateSuggestionToJSON(json: any): VariantUpdateSuggestion {
160
+ return VariantUpdateSuggestionToJSONTyped(json, false);
161
+ }
162
+
163
+ export function VariantUpdateSuggestionToJSONTyped(value?: Omit<VariantUpdateSuggestion, 'id'|'status'|'suggestedBy'|'created'> | null, ignoreDiscriminator: boolean = false): any {
164
+ if (value == null) {
165
+ return value;
166
+ }
167
+
168
+ return {
169
+
170
+ 'kind': KindEnumToJSON(value['kind']),
171
+ 'variants': ((value['variants'] as Array<any>).map(VariantInVariantUpdateSuggestionToJSON)),
172
+ 'issue': value['issue'],
173
+ 'solution': value['solution'],
174
+ 'comment': value['comment'],
175
+ };
176
+ }
177
+
@@ -0,0 +1,122 @@
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: 4.3.2
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 { KindEnum } from './kindEnum';
17
+ import {
18
+ KindEnumFromJSON,
19
+ KindEnumFromJSONTyped,
20
+ KindEnumToJSON,
21
+ KindEnumToJSONTyped,
22
+ } from './kindEnum';
23
+ import type { VariantInVariantUpdateSuggestionRequest } from './variantInVariantUpdateSuggestionRequest';
24
+ import {
25
+ VariantInVariantUpdateSuggestionRequestFromJSON,
26
+ VariantInVariantUpdateSuggestionRequestFromJSONTyped,
27
+ VariantInVariantUpdateSuggestionRequestToJSON,
28
+ VariantInVariantUpdateSuggestionRequestToJSONTyped,
29
+ } from './variantInVariantUpdateSuggestionRequest';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface VariantUpdateSuggestionRequest
35
+ */
36
+ export interface VariantUpdateSuggestionRequest {
37
+ /**
38
+ * Type of suggestion
39
+ *
40
+ * * `NW` - Not Working
41
+ * * `SE` - Spelling Error
42
+ * * `II` - Incorrect Info
43
+ * * `WC` - Wrong Card
44
+ * * `O` - Other
45
+ * @type {KindEnum}
46
+ * @memberof VariantUpdateSuggestionRequest
47
+ */
48
+ kind: KindEnum;
49
+ /**
50
+ *
51
+ * @type {Array<VariantInVariantUpdateSuggestionRequest>}
52
+ * @memberof VariantUpdateSuggestionRequest
53
+ */
54
+ variants?: Array<VariantInVariantUpdateSuggestionRequest>;
55
+ /**
56
+ * Description of the problem
57
+ * @type {string}
58
+ * @memberof VariantUpdateSuggestionRequest
59
+ */
60
+ issue: string;
61
+ /**
62
+ * Description of the solution
63
+ * @type {string}
64
+ * @memberof VariantUpdateSuggestionRequest
65
+ */
66
+ solution?: string;
67
+ /**
68
+ * Comment written by the user that suggested this
69
+ * @type {string}
70
+ * @memberof VariantUpdateSuggestionRequest
71
+ */
72
+ comment?: string;
73
+ }
74
+
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the VariantUpdateSuggestionRequest interface.
79
+ */
80
+ export function instanceOfVariantUpdateSuggestionRequest(value: object): value is VariantUpdateSuggestionRequest {
81
+ if (!('kind' in value) || value['kind'] === undefined) return false;
82
+ if (!('issue' in value) || value['issue'] === undefined) return false;
83
+ return true;
84
+ }
85
+
86
+ export function VariantUpdateSuggestionRequestFromJSON(json: any): VariantUpdateSuggestionRequest {
87
+ return VariantUpdateSuggestionRequestFromJSONTyped(json, false);
88
+ }
89
+
90
+ export function VariantUpdateSuggestionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantUpdateSuggestionRequest {
91
+ if (json == null) {
92
+ return json;
93
+ }
94
+ return {
95
+
96
+ 'kind': KindEnumFromJSON(json['kind']),
97
+ 'variants': json['variants'] == null ? undefined : ((json['variants'] as Array<any>).map(VariantInVariantUpdateSuggestionRequestFromJSON)),
98
+ 'issue': json['issue'],
99
+ 'solution': json['solution'] == null ? undefined : json['solution'],
100
+ 'comment': json['comment'] == null ? undefined : json['comment'],
101
+ };
102
+ }
103
+
104
+ export function VariantUpdateSuggestionRequestToJSON(json: any): VariantUpdateSuggestionRequest {
105
+ return VariantUpdateSuggestionRequestToJSONTyped(json, false);
106
+ }
107
+
108
+ export function VariantUpdateSuggestionRequestToJSONTyped(value?: VariantUpdateSuggestionRequest | null, ignoreDiscriminator: boolean = false): any {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+
113
+ return {
114
+
115
+ 'kind': KindEnumToJSON(value['kind']),
116
+ 'variants': value['variants'] == null ? undefined : ((value['variants'] as Array<any>).map(VariantInVariantUpdateSuggestionRequestToJSON)),
117
+ 'issue': value['issue'],
118
+ 'solution': value['solution'],
119
+ 'comment': value['comment'],
120
+ };
121
+ }
122
+
@@ -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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
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.2.6
7
+ * The version of the OpenAPI document: 4.3.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).