@space-cow-media/spellbook-client 3.14.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/dist/apis/cardListFromTextApi.d.ts +33 -0
  2. package/dist/apis/cardListFromTextApi.js +135 -0
  3. package/dist/apis/cardListFromTextApi.js.map +1 -0
  4. package/dist/apis/cardListFromUrlApi.d.ts +27 -0
  5. package/dist/apis/cardListFromUrlApi.js +103 -0
  6. package/dist/apis/cardListFromUrlApi.js.map +1 -0
  7. package/dist/apis/cardsApi.d.ts +40 -0
  8. package/dist/apis/cardsApi.js +151 -0
  9. package/dist/apis/cardsApi.js.map +1 -0
  10. package/dist/apis/defaultApi.d.ts +47 -0
  11. package/dist/apis/defaultApi.js +143 -0
  12. package/dist/apis/defaultApi.js.map +1 -0
  13. package/dist/apis/featuresApi.d.ts +38 -0
  14. package/dist/apis/featuresApi.js +145 -0
  15. package/dist/apis/featuresApi.js.map +1 -0
  16. package/dist/apis/findMyCombosApi.d.ts +47 -0
  17. package/dist/apis/findMyCombosApi.js +171 -0
  18. package/dist/apis/findMyCombosApi.js.map +1 -0
  19. package/dist/apis/index.d.ts +13 -0
  20. package/dist/apis/index.js +32 -0
  21. package/dist/apis/index.js.map +1 -0
  22. package/dist/apis/propertiesApi.d.ts +37 -0
  23. package/dist/apis/propertiesApi.js +142 -0
  24. package/dist/apis/propertiesApi.js.map +1 -0
  25. package/dist/apis/templatesApi.d.ts +38 -0
  26. package/dist/apis/templatesApi.js +145 -0
  27. package/dist/apis/templatesApi.js.map +1 -0
  28. package/dist/apis/tokenApi.d.ts +51 -0
  29. package/dist/apis/tokenApi.js +153 -0
  30. package/dist/apis/tokenApi.js.map +1 -0
  31. package/dist/apis/usersApi.d.ts +66 -0
  32. package/dist/apis/usersApi.js +256 -0
  33. package/dist/apis/usersApi.js.map +1 -0
  34. package/dist/apis/variantAliasesApi.d.ts +37 -0
  35. package/dist/apis/variantAliasesApi.js +142 -0
  36. package/dist/apis/variantAliasesApi.js.map +1 -0
  37. package/dist/apis/variantSuggestionsApi.d.ts +76 -0
  38. package/dist/apis/variantSuggestionsApi.js +297 -0
  39. package/dist/apis/variantSuggestionsApi.js.map +1 -0
  40. package/dist/apis/variantsApi.d.ts +41 -0
  41. package/dist/apis/variantsApi.js +154 -0
  42. package/dist/apis/variantsApi.js.map +1 -0
  43. package/dist/index.d.ts +3 -0
  44. package/dist/index.js +22 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/models/card.d.ts +56 -0
  47. package/dist/models/card.js +66 -0
  48. package/dist/models/card.js.map +1 -0
  49. package/dist/models/cardDetail.d.ts +126 -0
  50. package/dist/models/cardDetail.js +110 -0
  51. package/dist/models/cardDetail.js.map +1 -0
  52. package/dist/models/cardInDeck.d.ts +38 -0
  53. package/dist/models/cardInDeck.js +55 -0
  54. package/dist/models/cardInDeck.js.map +1 -0
  55. package/dist/models/cardInDeckRequest.d.ts +38 -0
  56. package/dist/models/cardInDeckRequest.js +53 -0
  57. package/dist/models/cardInDeckRequest.js.map +1 -0
  58. package/dist/models/cardInVariant.d.ts +75 -0
  59. package/dist/models/cardInVariant.js +73 -0
  60. package/dist/models/cardInVariant.js.map +1 -0
  61. package/dist/models/cardLegalities.d.ts +104 -0
  62. package/dist/models/cardLegalities.js +99 -0
  63. package/dist/models/cardLegalities.js.map +1 -0
  64. package/dist/models/cardPrices.d.ts +44 -0
  65. package/dist/models/cardPrices.js +59 -0
  66. package/dist/models/cardPrices.js.map +1 -0
  67. package/dist/models/cardUsedInVariantSuggestion.d.ts +75 -0
  68. package/dist/models/cardUsedInVariantSuggestion.js +80 -0
  69. package/dist/models/cardUsedInVariantSuggestion.js.map +1 -0
  70. package/dist/models/cardUsedInVariantSuggestionRequest.d.ts +75 -0
  71. package/dist/models/cardUsedInVariantSuggestionRequest.js +68 -0
  72. package/dist/models/cardUsedInVariantSuggestionRequest.js.map +1 -0
  73. package/dist/models/combo.d.ts +32 -0
  74. package/dist/models/combo.js +49 -0
  75. package/dist/models/combo.js.map +1 -0
  76. package/dist/models/deck.d.ts +39 -0
  77. package/dist/models/deck.js +56 -0
  78. package/dist/models/deck.js.map +1 -0
  79. package/dist/models/deckRequest.d.ts +39 -0
  80. package/dist/models/deckRequest.js +52 -0
  81. package/dist/models/deckRequest.js.map +1 -0
  82. package/dist/models/feature.d.ts +44 -0
  83. package/dist/models/feature.js +58 -0
  84. package/dist/models/feature.js.map +1 -0
  85. package/dist/models/featureOfCard.d.ts +81 -0
  86. package/dist/models/featureOfCard.js +81 -0
  87. package/dist/models/featureOfCard.js.map +1 -0
  88. package/dist/models/featureProducedByVariant.d.ts +39 -0
  89. package/dist/models/featureProducedByVariant.js +55 -0
  90. package/dist/models/featureProducedByVariant.js.map +1 -0
  91. package/dist/models/featureProducedInVariantSuggestion.d.ts +32 -0
  92. package/dist/models/featureProducedInVariantSuggestion.js +51 -0
  93. package/dist/models/featureProducedInVariantSuggestion.js.map +1 -0
  94. package/dist/models/featureProducedInVariantSuggestionRequest.d.ts +32 -0
  95. package/dist/models/featureProducedInVariantSuggestionRequest.js +51 -0
  96. package/dist/models/featureProducedInVariantSuggestionRequest.js.map +1 -0
  97. package/dist/models/findMyCombosResponse.d.ts +69 -0
  98. package/dist/models/findMyCombosResponse.js +76 -0
  99. package/dist/models/findMyCombosResponse.js.map +1 -0
  100. package/dist/models/identityEnum.d.ts +86 -0
  101. package/dist/models/identityEnum.js +115 -0
  102. package/dist/models/identityEnum.js.map +1 -0
  103. package/dist/models/index.d.ts +56 -0
  104. package/dist/models/index.js +75 -0
  105. package/dist/models/index.js.map +1 -0
  106. package/dist/models/invalidUrlResponse.d.ts +32 -0
  107. package/dist/models/invalidUrlResponse.js +51 -0
  108. package/dist/models/invalidUrlResponse.js.map +1 -0
  109. package/dist/models/paginatedCardDetailList.d.ts +51 -0
  110. package/dist/models/paginatedCardDetailList.js +64 -0
  111. package/dist/models/paginatedCardDetailList.js.map +1 -0
  112. package/dist/models/paginatedFeatureList.d.ts +51 -0
  113. package/dist/models/paginatedFeatureList.js +64 -0
  114. package/dist/models/paginatedFeatureList.js.map +1 -0
  115. package/dist/models/paginatedFindMyCombosResponseList.d.ts +51 -0
  116. package/dist/models/paginatedFindMyCombosResponseList.js +64 -0
  117. package/dist/models/paginatedFindMyCombosResponseList.js.map +1 -0
  118. package/dist/models/paginatedFindMyCombosResponseListResults.d.ts +69 -0
  119. package/dist/models/paginatedFindMyCombosResponseListResults.js +76 -0
  120. package/dist/models/paginatedFindMyCombosResponseListResults.js.map +1 -0
  121. package/dist/models/paginatedTemplateList.d.ts +51 -0
  122. package/dist/models/paginatedTemplateList.js +64 -0
  123. package/dist/models/paginatedTemplateList.js.map +1 -0
  124. package/dist/models/paginatedUserDetailList.d.ts +51 -0
  125. package/dist/models/paginatedUserDetailList.js +64 -0
  126. package/dist/models/paginatedUserDetailList.js.map +1 -0
  127. package/dist/models/paginatedVariantAliasList.d.ts +51 -0
  128. package/dist/models/paginatedVariantAliasList.js +64 -0
  129. package/dist/models/paginatedVariantAliasList.js.map +1 -0
  130. package/dist/models/paginatedVariantList.d.ts +51 -0
  131. package/dist/models/paginatedVariantList.js +64 -0
  132. package/dist/models/paginatedVariantList.js.map +1 -0
  133. package/dist/models/paginatedVariantSuggestionList.d.ts +51 -0
  134. package/dist/models/paginatedVariantSuggestionList.js +64 -0
  135. package/dist/models/paginatedVariantSuggestionList.js.map +1 -0
  136. package/dist/models/paginatedWebsitePropertyList.d.ts +51 -0
  137. package/dist/models/paginatedWebsitePropertyList.js +64 -0
  138. package/dist/models/paginatedWebsitePropertyList.js.map +1 -0
  139. package/dist/models/patchedUserDetailRequest.d.ts +44 -0
  140. package/dist/models/patchedUserDetailRequest.js +53 -0
  141. package/dist/models/patchedUserDetailRequest.js.map +1 -0
  142. package/dist/models/patchedVariantSuggestionRequest.d.ts +83 -0
  143. package/dist/models/patchedVariantSuggestionRequest.js +68 -0
  144. package/dist/models/patchedVariantSuggestionRequest.js.map +1 -0
  145. package/dist/models/template.d.ts +57 -0
  146. package/dist/models/template.js +61 -0
  147. package/dist/models/template.js.map +1 -0
  148. package/dist/models/templateInVariant.d.ts +75 -0
  149. package/dist/models/templateInVariant.js +73 -0
  150. package/dist/models/templateInVariant.js.map +1 -0
  151. package/dist/models/templateRequiredInVariantSuggestion.d.ts +88 -0
  152. package/dist/models/templateRequiredInVariantSuggestion.js +84 -0
  153. package/dist/models/templateRequiredInVariantSuggestion.js.map +1 -0
  154. package/dist/models/templateRequiredInVariantSuggestionRequest.d.ts +88 -0
  155. package/dist/models/templateRequiredInVariantSuggestionRequest.js +70 -0
  156. package/dist/models/templateRequiredInVariantSuggestionRequest.js.map +1 -0
  157. package/dist/models/tokenObtainPair.d.ts +38 -0
  158. package/dist/models/tokenObtainPair.js +52 -0
  159. package/dist/models/tokenObtainPair.js.map +1 -0
  160. package/dist/models/tokenObtainPairRequest.d.ts +44 -0
  161. package/dist/models/tokenObtainPairRequest.js +53 -0
  162. package/dist/models/tokenObtainPairRequest.js.map +1 -0
  163. package/dist/models/tokenRefresh.d.ts +32 -0
  164. package/dist/models/tokenRefresh.js +49 -0
  165. package/dist/models/tokenRefresh.js.map +1 -0
  166. package/dist/models/tokenRefreshRequest.d.ts +32 -0
  167. package/dist/models/tokenRefreshRequest.js +51 -0
  168. package/dist/models/tokenRefreshRequest.js.map +1 -0
  169. package/dist/models/tokenVerifyRequest.d.ts +32 -0
  170. package/dist/models/tokenVerifyRequest.js +51 -0
  171. package/dist/models/tokenVerifyRequest.js.map +1 -0
  172. package/dist/models/user.d.ts +38 -0
  173. package/dist/models/user.js +54 -0
  174. package/dist/models/user.js.map +1 -0
  175. package/dist/models/userDetail.d.ts +68 -0
  176. package/dist/models/userDetail.js +70 -0
  177. package/dist/models/userDetail.js.map +1 -0
  178. package/dist/models/userDetailRequest.d.ts +44 -0
  179. package/dist/models/userDetailRequest.js +55 -0
  180. package/dist/models/userDetailRequest.js.map +1 -0
  181. package/dist/models/userRequest.d.ts +32 -0
  182. package/dist/models/userRequest.js +51 -0
  183. package/dist/models/userRequest.js.map +1 -0
  184. package/dist/models/variant.d.ts +150 -0
  185. package/dist/models/variant.js +113 -0
  186. package/dist/models/variant.js.map +1 -0
  187. package/dist/models/variantAlias.d.ts +38 -0
  188. package/dist/models/variantAlias.js +55 -0
  189. package/dist/models/variantAlias.js.map +1 -0
  190. package/dist/models/variantLegalities.d.ts +104 -0
  191. package/dist/models/variantLegalities.js +99 -0
  192. package/dist/models/variantLegalities.js.map +1 -0
  193. package/dist/models/variantPrices.d.ts +44 -0
  194. package/dist/models/variantPrices.js +59 -0
  195. package/dist/models/variantPrices.js.map +1 -0
  196. package/dist/models/variantStatusEnum.d.ts +36 -0
  197. package/dist/models/variantStatusEnum.js +65 -0
  198. package/dist/models/variantStatusEnum.js.map +1 -0
  199. package/dist/models/variantSuggestion.d.ts +115 -0
  200. package/dist/models/variantSuggestion.js +100 -0
  201. package/dist/models/variantSuggestion.js.map +1 -0
  202. package/dist/models/variantSuggestionRequest.d.ts +83 -0
  203. package/dist/models/variantSuggestionRequest.js +76 -0
  204. package/dist/models/variantSuggestionRequest.js.map +1 -0
  205. package/dist/models/variantSuggestionStatusEnum.d.ts +32 -0
  206. package/dist/models/variantSuggestionStatusEnum.js +61 -0
  207. package/dist/models/variantSuggestionStatusEnum.js.map +1 -0
  208. package/dist/models/variantsQueryValidationError.d.ts +32 -0
  209. package/dist/models/variantsQueryValidationError.js +51 -0
  210. package/dist/models/variantsQueryValidationError.js.map +1 -0
  211. package/dist/models/websiteProperty.d.ts +38 -0
  212. package/dist/models/websiteProperty.js +54 -0
  213. package/dist/models/websiteProperty.js.map +1 -0
  214. package/dist/models/zoneLocationsEnum.d.ts +34 -0
  215. package/dist/models/zoneLocationsEnum.js +63 -0
  216. package/dist/models/zoneLocationsEnum.js.map +1 -0
  217. package/dist/runtime.d.ts +182 -0
  218. package/dist/runtime.js +347 -0
  219. package/dist/runtime.js.map +1 -0
  220. package/package.json +36 -0
  221. package/spellbook-client/.openapi-generator/FILES +74 -0
  222. package/spellbook-client/.openapi-generator/VERSION +1 -0
  223. package/spellbook-client/.openapi-generator-ignore +23 -0
  224. package/spellbook-client/apis/cardListFromTextApi.ts +107 -0
  225. package/spellbook-client/apis/cardListFromUrlApi.ts +76 -0
  226. package/spellbook-client/apis/cardsApi.ts +142 -0
  227. package/spellbook-client/apis/defaultApi.ts +112 -0
  228. package/spellbook-client/apis/featuresApi.ts +132 -0
  229. package/spellbook-client/apis/findMyCombosApi.ts +173 -0
  230. package/spellbook-client/apis/index.ts +15 -0
  231. package/spellbook-client/apis/propertiesApi.ts +127 -0
  232. package/spellbook-client/apis/templatesApi.ts +132 -0
  233. package/spellbook-client/apis/tokenApi.ts +154 -0
  234. package/spellbook-client/apis/usersApi.ts +285 -0
  235. package/spellbook-client/apis/variantAliasesApi.ts +127 -0
  236. package/spellbook-client/apis/variantSuggestionsApi.ts +339 -0
  237. package/spellbook-client/apis/variantsApi.ts +150 -0
  238. package/spellbook-client/index.ts +5 -0
  239. package/spellbook-client/models/card.ts +101 -0
  240. package/spellbook-client/models/cardDetail.ts +227 -0
  241. package/spellbook-client/models/cardInDeck.ts +75 -0
  242. package/spellbook-client/models/cardInDeckRequest.ts +74 -0
  243. package/spellbook-client/models/cardInVariant.ts +130 -0
  244. package/spellbook-client/models/cardLegalities.ts +174 -0
  245. package/spellbook-client/models/cardPrices.ts +84 -0
  246. package/spellbook-client/models/cardUsedInVariantSuggestion.ts +137 -0
  247. package/spellbook-client/models/cardUsedInVariantSuggestionRequest.ts +131 -0
  248. package/spellbook-client/models/combo.ts +65 -0
  249. package/spellbook-client/models/deck.ts +83 -0
  250. package/spellbook-client/models/deckRequest.ts +81 -0
  251. package/spellbook-client/models/feature.ts +83 -0
  252. package/spellbook-client/models/featureOfCard.ts +143 -0
  253. package/spellbook-client/models/featureProducedByVariant.ts +82 -0
  254. package/spellbook-client/models/featureProducedInVariantSuggestion.ts +66 -0
  255. package/spellbook-client/models/featureProducedInVariantSuggestionRequest.ts +66 -0
  256. package/spellbook-client/models/findMyCombosResponse.ts +128 -0
  257. package/spellbook-client/models/identityEnum.ts +113 -0
  258. package/spellbook-client/models/index.ts +58 -0
  259. package/spellbook-client/models/invalidUrlResponse.ts +66 -0
  260. package/spellbook-client/models/paginatedCardDetailList.ts +101 -0
  261. package/spellbook-client/models/paginatedFeatureList.ts +101 -0
  262. package/spellbook-client/models/paginatedFindMyCombosResponseList.ts +101 -0
  263. package/spellbook-client/models/paginatedFindMyCombosResponseListResults.ts +128 -0
  264. package/spellbook-client/models/paginatedTemplateList.ts +101 -0
  265. package/spellbook-client/models/paginatedUserDetailList.ts +101 -0
  266. package/spellbook-client/models/paginatedVariantAliasList.ts +101 -0
  267. package/spellbook-client/models/paginatedVariantList.ts +101 -0
  268. package/spellbook-client/models/paginatedVariantSuggestionList.ts +101 -0
  269. package/spellbook-client/models/paginatedWebsitePropertyList.ts +101 -0
  270. package/spellbook-client/models/patchedUserDetailRequest.ts +81 -0
  271. package/spellbook-client/models/patchedVariantSuggestionRequest.ts +151 -0
  272. package/spellbook-client/models/template.ts +98 -0
  273. package/spellbook-client/models/templateInVariant.ts +130 -0
  274. package/spellbook-client/models/templateRequiredInVariantSuggestion.ts +153 -0
  275. package/spellbook-client/models/templateRequiredInVariantSuggestionRequest.ts +146 -0
  276. package/spellbook-client/models/tokenObtainPair.ts +73 -0
  277. package/spellbook-client/models/tokenObtainPairRequest.ts +81 -0
  278. package/spellbook-client/models/tokenRefresh.ts +65 -0
  279. package/spellbook-client/models/tokenRefreshRequest.ts +66 -0
  280. package/spellbook-client/models/tokenVerifyRequest.ts +66 -0
  281. package/spellbook-client/models/user.ts +74 -0
  282. package/spellbook-client/models/userDetail.ts +115 -0
  283. package/spellbook-client/models/userDetailRequest.ts +82 -0
  284. package/spellbook-client/models/userRequest.ts +66 -0
  285. package/spellbook-client/models/variant.ts +272 -0
  286. package/spellbook-client/models/variantAlias.ts +75 -0
  287. package/spellbook-client/models/variantLegalities.ts +174 -0
  288. package/spellbook-client/models/variantPrices.ts +84 -0
  289. package/spellbook-client/models/variantStatusEnum.ts +63 -0
  290. package/spellbook-client/models/variantSuggestion.ts +214 -0
  291. package/spellbook-client/models/variantSuggestionRequest.ts +155 -0
  292. package/spellbook-client/models/variantSuggestionStatusEnum.ts +59 -0
  293. package/spellbook-client/models/variantsQueryValidationError.ts +66 -0
  294. package/spellbook-client/models/websiteProperty.ts +74 -0
  295. package/spellbook-client/models/zoneLocationsEnum.ts +61 -0
  296. package/spellbook-client/runtime.ts +431 -0
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering
6
+ *
7
+ * The version of the OpenAPI document: dev
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface InvalidUrlResponse
20
+ */
21
+ export interface InvalidUrlResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InvalidUrlResponse
26
+ */
27
+ detail: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the InvalidUrlResponse interface.
32
+ */
33
+ export function instanceOfInvalidUrlResponse(value: object): value is InvalidUrlResponse {
34
+ if (!('detail' in value) || value['detail'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function InvalidUrlResponseFromJSON(json: any): InvalidUrlResponse {
39
+ return InvalidUrlResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function InvalidUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvalidUrlResponse {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'detail': json['detail'],
49
+ };
50
+ }
51
+
52
+ export function InvalidUrlResponseToJSON(json: any): InvalidUrlResponse {
53
+ return InvalidUrlResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function InvalidUrlResponseToJSONTyped(value?: InvalidUrlResponse | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'detail': value['detail'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering
6
+ *
7
+ * The version of the OpenAPI document: dev
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { CardDetail } from './cardDetail';
17
+ import {
18
+ CardDetailFromJSON,
19
+ CardDetailFromJSONTyped,
20
+ CardDetailToJSON,
21
+ CardDetailToJSONTyped,
22
+ } from './cardDetail';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedCardDetailList
28
+ */
29
+ export interface PaginatedCardDetailList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedCardDetailList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedCardDetailList
40
+ */
41
+ next: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedCardDetailList
46
+ */
47
+ previous: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<CardDetail>}
51
+ * @memberof PaginatedCardDetailList
52
+ */
53
+ results: Array<CardDetail>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedCardDetailList interface.
58
+ */
59
+ export function instanceOfPaginatedCardDetailList(value: object): value is PaginatedCardDetailList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('next' in value) || value['next'] === undefined) return false;
62
+ if (!('previous' in value) || value['previous'] === undefined) return false;
63
+ if (!('results' in value) || value['results'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function PaginatedCardDetailListFromJSON(json: any): PaginatedCardDetailList {
68
+ return PaginatedCardDetailListFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function PaginatedCardDetailListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCardDetailList {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'count': json['count'],
78
+ 'next': json['next'],
79
+ 'previous': json['previous'],
80
+ 'results': ((json['results'] as Array<any>).map(CardDetailFromJSON)),
81
+ };
82
+ }
83
+
84
+ export function PaginatedCardDetailListToJSON(json: any): PaginatedCardDetailList {
85
+ return PaginatedCardDetailListToJSONTyped(json, false);
86
+ }
87
+
88
+ export function PaginatedCardDetailListToJSONTyped(value?: PaginatedCardDetailList | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'count': value['count'],
96
+ 'next': value['next'],
97
+ 'previous': value['previous'],
98
+ 'results': ((value['results'] as Array<any>).map(CardDetailToJSON)),
99
+ };
100
+ }
101
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering
6
+ *
7
+ * The version of the OpenAPI document: dev
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Feature } from './feature';
17
+ import {
18
+ FeatureFromJSON,
19
+ FeatureFromJSONTyped,
20
+ FeatureToJSON,
21
+ FeatureToJSONTyped,
22
+ } from './feature';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedFeatureList
28
+ */
29
+ export interface PaginatedFeatureList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedFeatureList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedFeatureList
40
+ */
41
+ next: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedFeatureList
46
+ */
47
+ previous: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Feature>}
51
+ * @memberof PaginatedFeatureList
52
+ */
53
+ results: Array<Feature>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedFeatureList interface.
58
+ */
59
+ export function instanceOfPaginatedFeatureList(value: object): value is PaginatedFeatureList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('next' in value) || value['next'] === undefined) return false;
62
+ if (!('previous' in value) || value['previous'] === undefined) return false;
63
+ if (!('results' in value) || value['results'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function PaginatedFeatureListFromJSON(json: any): PaginatedFeatureList {
68
+ return PaginatedFeatureListFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function PaginatedFeatureListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFeatureList {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'count': json['count'],
78
+ 'next': json['next'],
79
+ 'previous': json['previous'],
80
+ 'results': ((json['results'] as Array<any>).map(FeatureFromJSON)),
81
+ };
82
+ }
83
+
84
+ export function PaginatedFeatureListToJSON(json: any): PaginatedFeatureList {
85
+ return PaginatedFeatureListToJSONTyped(json, false);
86
+ }
87
+
88
+ export function PaginatedFeatureListToJSONTyped(value?: PaginatedFeatureList | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'count': value['count'],
96
+ 'next': value['next'],
97
+ 'previous': value['previous'],
98
+ 'results': ((value['results'] as Array<any>).map(FeatureToJSON)),
99
+ };
100
+ }
101
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering
6
+ *
7
+ * The version of the OpenAPI document: dev
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PaginatedFindMyCombosResponseListResults } from './paginatedFindMyCombosResponseListResults';
17
+ import {
18
+ PaginatedFindMyCombosResponseListResultsFromJSON,
19
+ PaginatedFindMyCombosResponseListResultsFromJSONTyped,
20
+ PaginatedFindMyCombosResponseListResultsToJSON,
21
+ PaginatedFindMyCombosResponseListResultsToJSONTyped,
22
+ } from './paginatedFindMyCombosResponseListResults';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedFindMyCombosResponseList
28
+ */
29
+ export interface PaginatedFindMyCombosResponseList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedFindMyCombosResponseList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedFindMyCombosResponseList
40
+ */
41
+ next: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedFindMyCombosResponseList
46
+ */
47
+ previous: string | null;
48
+ /**
49
+ *
50
+ * @type {PaginatedFindMyCombosResponseListResults}
51
+ * @memberof PaginatedFindMyCombosResponseList
52
+ */
53
+ results: PaginatedFindMyCombosResponseListResults;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedFindMyCombosResponseList interface.
58
+ */
59
+ export function instanceOfPaginatedFindMyCombosResponseList(value: object): value is PaginatedFindMyCombosResponseList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('next' in value) || value['next'] === undefined) return false;
62
+ if (!('previous' in value) || value['previous'] === undefined) return false;
63
+ if (!('results' in value) || value['results'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function PaginatedFindMyCombosResponseListFromJSON(json: any): PaginatedFindMyCombosResponseList {
68
+ return PaginatedFindMyCombosResponseListFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function PaginatedFindMyCombosResponseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFindMyCombosResponseList {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'count': json['count'],
78
+ 'next': json['next'],
79
+ 'previous': json['previous'],
80
+ 'results': PaginatedFindMyCombosResponseListResultsFromJSON(json['results']),
81
+ };
82
+ }
83
+
84
+ export function PaginatedFindMyCombosResponseListToJSON(json: any): PaginatedFindMyCombosResponseList {
85
+ return PaginatedFindMyCombosResponseListToJSONTyped(json, false);
86
+ }
87
+
88
+ export function PaginatedFindMyCombosResponseListToJSONTyped(value?: PaginatedFindMyCombosResponseList | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'count': value['count'],
96
+ 'next': value['next'],
97
+ 'previous': value['previous'],
98
+ 'results': PaginatedFindMyCombosResponseListResultsToJSON(value['results']),
99
+ };
100
+ }
101
+
@@ -0,0 +1,128 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering
6
+ *
7
+ * The version of the OpenAPI document: dev
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Variant } from './variant';
17
+ import {
18
+ VariantFromJSON,
19
+ VariantFromJSONTyped,
20
+ VariantToJSON,
21
+ VariantToJSONTyped,
22
+ } from './variant';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedFindMyCombosResponseListResults
28
+ */
29
+ export interface PaginatedFindMyCombosResponseListResults {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PaginatedFindMyCombosResponseListResults
34
+ */
35
+ identity: string;
36
+ /**
37
+ *
38
+ * @type {Array<Variant>}
39
+ * @memberof PaginatedFindMyCombosResponseListResults
40
+ */
41
+ included: Array<Variant>;
42
+ /**
43
+ *
44
+ * @type {Array<Variant>}
45
+ * @memberof PaginatedFindMyCombosResponseListResults
46
+ */
47
+ includedByChangingCommanders: Array<Variant>;
48
+ /**
49
+ *
50
+ * @type {Array<Variant>}
51
+ * @memberof PaginatedFindMyCombosResponseListResults
52
+ */
53
+ almostIncluded: Array<Variant>;
54
+ /**
55
+ *
56
+ * @type {Array<Variant>}
57
+ * @memberof PaginatedFindMyCombosResponseListResults
58
+ */
59
+ almostIncludedByAddingColors: Array<Variant>;
60
+ /**
61
+ *
62
+ * @type {Array<Variant>}
63
+ * @memberof PaginatedFindMyCombosResponseListResults
64
+ */
65
+ almostIncludedByChangingCommanders: Array<Variant>;
66
+ /**
67
+ *
68
+ * @type {Array<Variant>}
69
+ * @memberof PaginatedFindMyCombosResponseListResults
70
+ */
71
+ almostIncludedByAddingColorsAndChangingCommanders: Array<Variant>;
72
+ }
73
+
74
+ /**
75
+ * Check if a given object implements the PaginatedFindMyCombosResponseListResults interface.
76
+ */
77
+ export function instanceOfPaginatedFindMyCombosResponseListResults(value: object): value is PaginatedFindMyCombosResponseListResults {
78
+ if (!('identity' in value) || value['identity'] === undefined) return false;
79
+ if (!('included' in value) || value['included'] === undefined) return false;
80
+ if (!('includedByChangingCommanders' in value) || value['includedByChangingCommanders'] === undefined) return false;
81
+ if (!('almostIncluded' in value) || value['almostIncluded'] === undefined) return false;
82
+ if (!('almostIncludedByAddingColors' in value) || value['almostIncludedByAddingColors'] === undefined) return false;
83
+ if (!('almostIncludedByChangingCommanders' in value) || value['almostIncludedByChangingCommanders'] === undefined) return false;
84
+ if (!('almostIncludedByAddingColorsAndChangingCommanders' in value) || value['almostIncludedByAddingColorsAndChangingCommanders'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function PaginatedFindMyCombosResponseListResultsFromJSON(json: any): PaginatedFindMyCombosResponseListResults {
89
+ return PaginatedFindMyCombosResponseListResultsFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function PaginatedFindMyCombosResponseListResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFindMyCombosResponseListResults {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'identity': json['identity'],
99
+ 'included': ((json['included'] as Array<any>).map(VariantFromJSON)),
100
+ 'includedByChangingCommanders': ((json['includedByChangingCommanders'] as Array<any>).map(VariantFromJSON)),
101
+ 'almostIncluded': ((json['almostIncluded'] as Array<any>).map(VariantFromJSON)),
102
+ 'almostIncludedByAddingColors': ((json['almostIncludedByAddingColors'] as Array<any>).map(VariantFromJSON)),
103
+ 'almostIncludedByChangingCommanders': ((json['almostIncludedByChangingCommanders'] as Array<any>).map(VariantFromJSON)),
104
+ 'almostIncludedByAddingColorsAndChangingCommanders': ((json['almostIncludedByAddingColorsAndChangingCommanders'] as Array<any>).map(VariantFromJSON)),
105
+ };
106
+ }
107
+
108
+ export function PaginatedFindMyCombosResponseListResultsToJSON(json: any): PaginatedFindMyCombosResponseListResults {
109
+ return PaginatedFindMyCombosResponseListResultsToJSONTyped(json, false);
110
+ }
111
+
112
+ export function PaginatedFindMyCombosResponseListResultsToJSONTyped(value?: PaginatedFindMyCombosResponseListResults | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'identity': value['identity'],
120
+ 'included': ((value['included'] as Array<any>).map(VariantToJSON)),
121
+ 'includedByChangingCommanders': ((value['includedByChangingCommanders'] as Array<any>).map(VariantToJSON)),
122
+ 'almostIncluded': ((value['almostIncluded'] as Array<any>).map(VariantToJSON)),
123
+ 'almostIncludedByAddingColors': ((value['almostIncludedByAddingColors'] as Array<any>).map(VariantToJSON)),
124
+ 'almostIncludedByChangingCommanders': ((value['almostIncludedByChangingCommanders'] as Array<any>).map(VariantToJSON)),
125
+ 'almostIncludedByAddingColorsAndChangingCommanders': ((value['almostIncludedByAddingColorsAndChangingCommanders'] as Array<any>).map(VariantToJSON)),
126
+ };
127
+ }
128
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering
6
+ *
7
+ * The version of the OpenAPI document: dev
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Template } from './template';
17
+ import {
18
+ TemplateFromJSON,
19
+ TemplateFromJSONTyped,
20
+ TemplateToJSON,
21
+ TemplateToJSONTyped,
22
+ } from './template';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedTemplateList
28
+ */
29
+ export interface PaginatedTemplateList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedTemplateList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedTemplateList
40
+ */
41
+ next: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedTemplateList
46
+ */
47
+ previous: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Template>}
51
+ * @memberof PaginatedTemplateList
52
+ */
53
+ results: Array<Template>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedTemplateList interface.
58
+ */
59
+ export function instanceOfPaginatedTemplateList(value: object): value is PaginatedTemplateList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('next' in value) || value['next'] === undefined) return false;
62
+ if (!('previous' in value) || value['previous'] === undefined) return false;
63
+ if (!('results' in value) || value['results'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function PaginatedTemplateListFromJSON(json: any): PaginatedTemplateList {
68
+ return PaginatedTemplateListFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function PaginatedTemplateListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTemplateList {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'count': json['count'],
78
+ 'next': json['next'],
79
+ 'previous': json['previous'],
80
+ 'results': ((json['results'] as Array<any>).map(TemplateFromJSON)),
81
+ };
82
+ }
83
+
84
+ export function PaginatedTemplateListToJSON(json: any): PaginatedTemplateList {
85
+ return PaginatedTemplateListToJSONTyped(json, false);
86
+ }
87
+
88
+ export function PaginatedTemplateListToJSONTyped(value?: PaginatedTemplateList | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'count': value['count'],
96
+ 'next': value['next'],
97
+ 'previous': value['previous'],
98
+ 'results': ((value['results'] as Array<any>).map(TemplateToJSON)),
99
+ };
100
+ }
101
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering
6
+ *
7
+ * The version of the OpenAPI document: dev
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { UserDetail } from './userDetail';
17
+ import {
18
+ UserDetailFromJSON,
19
+ UserDetailFromJSONTyped,
20
+ UserDetailToJSON,
21
+ UserDetailToJSONTyped,
22
+ } from './userDetail';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedUserDetailList
28
+ */
29
+ export interface PaginatedUserDetailList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedUserDetailList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedUserDetailList
40
+ */
41
+ next: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedUserDetailList
46
+ */
47
+ previous: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<UserDetail>}
51
+ * @memberof PaginatedUserDetailList
52
+ */
53
+ results: Array<UserDetail>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedUserDetailList interface.
58
+ */
59
+ export function instanceOfPaginatedUserDetailList(value: object): value is PaginatedUserDetailList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('next' in value) || value['next'] === undefined) return false;
62
+ if (!('previous' in value) || value['previous'] === undefined) return false;
63
+ if (!('results' in value) || value['results'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function PaginatedUserDetailListFromJSON(json: any): PaginatedUserDetailList {
68
+ return PaginatedUserDetailListFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function PaginatedUserDetailListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserDetailList {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'count': json['count'],
78
+ 'next': json['next'],
79
+ 'previous': json['previous'],
80
+ 'results': ((json['results'] as Array<any>).map(UserDetailFromJSON)),
81
+ };
82
+ }
83
+
84
+ export function PaginatedUserDetailListToJSON(json: any): PaginatedUserDetailList {
85
+ return PaginatedUserDetailListToJSONTyped(json, false);
86
+ }
87
+
88
+ export function PaginatedUserDetailListToJSONTyped(value?: PaginatedUserDetailList | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'count': value['count'],
96
+ 'next': value['next'],
97
+ 'previous': value['previous'],
98
+ 'results': ((value['results'] as Array<any>).map(UserDetailToJSON)),
99
+ };
100
+ }
101
+