scryfall-api 3.2.0 → 3.2.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 (117) hide show
  1. package/dist/scryfall-api.js +1 -0
  2. package/dist/scryfall-api.mjs +307 -0
  3. package/dist/scryfall-api.umd.js +1 -0
  4. package/dist/types/src/api/CardIdentifierBuilder.d.ts +28 -0
  5. package/dist/types/src/api/Cards.d.ts +17 -0
  6. package/dist/types/src/api/Catalog.d.ts +18 -0
  7. package/dist/types/src/api/Rulings.d.ts +10 -0
  8. package/dist/types/src/api/Sets.d.ts +9 -0
  9. package/dist/types/src/api/Symbology.d.ts +7 -0
  10. package/dist/types/src/error/MagicQueryError.d.ts +3 -0
  11. package/dist/types/src/index.d.ts +10 -0
  12. package/dist/types/src/query/MagicPageResult.d.ts +12 -0
  13. package/dist/types/src/query/MagicQuery.d.ts +13 -0
  14. package/dist/types/src/types/Border.d.ts +1 -0
  15. package/dist/types/src/types/BulkDataDefinition.d.ts +0 -0
  16. package/dist/types/src/types/BulkDataType.d.ts +0 -0
  17. package/dist/types/src/types/BulkDataTypes.d.ts +1 -0
  18. package/dist/types/src/types/Card.d.ts +0 -0
  19. package/dist/types/src/types/CardFace.d.ts +0 -0
  20. package/dist/types/src/types/CardIdentifier.d.ts +0 -0
  21. package/dist/types/src/types/CardSymbol.d.ts +0 -0
  22. package/dist/types/src/types/Color.d.ts +1 -0
  23. package/dist/types/src/types/Format.d.ts +1 -0
  24. package/dist/types/src/types/FrameEffect.d.ts +1 -0
  25. package/dist/types/src/types/Game.d.ts +1 -0
  26. package/dist/types/src/types/HomepageLink.d.ts +0 -0
  27. package/dist/types/src/types/ImageUris.d.ts +0 -0
  28. package/dist/types/src/types/Layout.d.ts +1 -0
  29. package/dist/types/src/types/Legalties.d.ts +0 -0
  30. package/dist/types/src/types/Legalty.d.ts +1 -0
  31. package/dist/types/src/types/ManaCost.d.ts +0 -0
  32. package/dist/types/src/types/PageQuery.d.ts +0 -0
  33. package/dist/types/src/types/PageQueryValue.d.ts +0 -0
  34. package/dist/types/src/types/Preview.d.ts +0 -0
  35. package/dist/types/src/types/Prices.d.ts +0 -0
  36. package/dist/types/src/types/PromoType.d.ts +1 -0
  37. package/dist/types/src/types/PurchaseUris.d.ts +0 -0
  38. package/dist/types/src/types/Query.d.ts +0 -0
  39. package/dist/types/src/types/Rarity.d.ts +1 -0
  40. package/dist/types/src/types/RelatedCard.d.ts +0 -0
  41. package/dist/types/src/types/RelatedCardComponent.d.ts +1 -0
  42. package/dist/types/src/types/RelatedUris.d.ts +0 -0
  43. package/dist/types/src/types/ResultCatalog.d.ts +0 -0
  44. package/dist/types/src/types/ResultData.d.ts +0 -0
  45. package/dist/types/src/types/ResultList.d.ts +0 -0
  46. package/dist/types/src/types/RetryStrategy.d.ts +0 -0
  47. package/dist/types/src/types/Ruling.d.ts +0 -0
  48. package/dist/types/src/types/SearchError.d.ts +0 -0
  49. package/dist/types/src/types/SearchOptions.d.ts +0 -0
  50. package/dist/types/src/types/Set.d.ts +0 -0
  51. package/dist/types/src/types/SetType.d.ts +1 -0
  52. package/dist/types/src/types/Sort.d.ts +1 -0
  53. package/dist/types/src/types/SortDirection.d.ts +1 -0
  54. package/dist/types/src/types/TOrArrayOfT.d.ts +0 -0
  55. package/dist/types/src/types/UniqueStrategy.d.ts +1 -0
  56. package/dist/types/src/types/index.d.ts +42 -0
  57. package/package.json +35 -48
  58. package/dist/declarations/dist/src/api/CardIdentifierBuilder.d.ts +0 -10
  59. package/dist/declarations/dist/src/api/Cards.d.ts +0 -19
  60. package/dist/declarations/dist/src/api/Catalog.d.ts +0 -18
  61. package/dist/declarations/dist/src/api/Rulings.d.ts +0 -11
  62. package/dist/declarations/dist/src/api/Sets.d.ts +0 -10
  63. package/dist/declarations/dist/src/api/Symbology.d.ts +0 -8
  64. package/dist/declarations/dist/src/error/MagicQueryError.d.ts +0 -5
  65. package/dist/declarations/dist/src/index.d.ts +0 -10
  66. package/dist/declarations/dist/src/query/MagicPageResult.d.ts +0 -18
  67. package/dist/declarations/dist/src/query/MagicQuery.d.ts +0 -13
  68. package/dist/declarations/dist/src/types/Border.d.ts +0 -7
  69. package/dist/declarations/dist/src/types/BulkDataDefinition.d.ts +0 -14
  70. package/dist/declarations/dist/src/types/BulkDataType.d.ts +0 -2
  71. package/dist/declarations/dist/src/types/BulkDataTypes.d.ts +0 -7
  72. package/dist/declarations/dist/src/types/Card.d.ts +0 -91
  73. package/dist/declarations/dist/src/types/CardFace.d.ts +0 -22
  74. package/dist/declarations/dist/src/types/CardIdentifier.d.ts +0 -10
  75. package/dist/declarations/dist/src/types/CardSymbol.d.ts +0 -13
  76. package/dist/declarations/dist/src/types/Color.d.ts +0 -9
  77. package/dist/declarations/dist/src/types/Format.d.ts +0 -15
  78. package/dist/declarations/dist/src/types/FrameEffect.d.ts +0 -17
  79. package/dist/declarations/dist/src/types/Game.d.ts +0 -5
  80. package/dist/declarations/dist/src/types/HomepageLink.d.ts +0 -9
  81. package/dist/declarations/dist/src/types/ImageUris.d.ts +0 -8
  82. package/dist/declarations/dist/src/types/Layout.d.ts +0 -22
  83. package/dist/declarations/dist/src/types/Legalties.d.ts +0 -5
  84. package/dist/declarations/dist/src/types/Legalty.d.ts +0 -6
  85. package/dist/declarations/dist/src/types/ManaCost.d.ts +0 -9
  86. package/dist/declarations/dist/src/types/PageQuery.d.ts +0 -5
  87. package/dist/declarations/dist/src/types/PageQueryValue.d.ts +0 -1
  88. package/dist/declarations/dist/src/types/Preview.d.ts +0 -5
  89. package/dist/declarations/dist/src/types/Prices.d.ts +0 -6
  90. package/dist/declarations/dist/src/types/PromoType.d.ts +0 -27
  91. package/dist/declarations/dist/src/types/PurchaseUris.d.ts +0 -6
  92. package/dist/declarations/dist/src/types/Query.d.ts +0 -4
  93. package/dist/declarations/dist/src/types/Rarity.d.ts +0 -6
  94. package/dist/declarations/dist/src/types/RelatedCard.d.ts +0 -9
  95. package/dist/declarations/dist/src/types/RelatedCardComponent.d.ts +0 -6
  96. package/dist/declarations/dist/src/types/RelatedUris.d.ts +0 -7
  97. package/dist/declarations/dist/src/types/ResultCatalog.d.ts +0 -2
  98. package/dist/declarations/dist/src/types/ResultData.d.ts +0 -4
  99. package/dist/declarations/dist/src/types/ResultList.d.ts +0 -7
  100. package/dist/declarations/dist/src/types/RetryStrategy.d.ts +0 -11
  101. package/dist/declarations/dist/src/types/Ruling.d.ts +0 -5
  102. package/dist/declarations/dist/src/types/SearchError.d.ts +0 -7
  103. package/dist/declarations/dist/src/types/SearchOptions.d.ts +0 -15
  104. package/dist/declarations/dist/src/types/Set.d.ts +0 -20
  105. package/dist/declarations/dist/src/types/SetType.d.ts +0 -22
  106. package/dist/declarations/dist/src/types/Sort.d.ts +0 -15
  107. package/dist/declarations/dist/src/types/SortDirection.d.ts +0 -5
  108. package/dist/declarations/dist/src/types/TOrArrayOfT.d.ts +0 -1
  109. package/dist/declarations/dist/src/types/UniqueStrategy.d.ts +0 -5
  110. package/dist/declarations/dist/src/types/index.d.ts +0 -42
  111. package/dist/scryfall-api.cjs.d.ts +0 -1
  112. package/dist/scryfall-api.cjs.dev.js +0 -645
  113. package/dist/scryfall-api.cjs.js +0 -7
  114. package/dist/scryfall-api.cjs.prod.js +0 -645
  115. package/dist/scryfall-api.esm.js +0 -631
  116. package/dist/scryfall-api.umd.min.js +0 -2
  117. package/dist/scryfall-api.umd.min.js.map +0 -1
@@ -0,0 +1,42 @@
1
+ export * from "./Border";
2
+ export * from "./BulkDataDefinition";
3
+ export * from "./BulkDataType";
4
+ export * from "./BulkDataTypes";
5
+ export * from "./Card";
6
+ export * from "./CardFace";
7
+ export * from "./CardIdentifier";
8
+ export * from "./CardSymbol";
9
+ export * from "./Color";
10
+ export * from "./Format";
11
+ export * from "./FrameEffect";
12
+ export * from "./Game";
13
+ export * from "./HomepageLink";
14
+ export * from "./ImageUris";
15
+ export * from "./Layout";
16
+ export * from "./Legalties";
17
+ export * from "./Legalty";
18
+ export * from "./ManaCost";
19
+ export * from "./PageQuery";
20
+ export * from "./PageQueryValue";
21
+ export * from "./Preview";
22
+ export * from "./Prices";
23
+ export * from "./PromoType";
24
+ export * from "./PurchaseUris";
25
+ export * from "./Query";
26
+ export * from "./Rarity";
27
+ export * from "./RelatedCard";
28
+ export * from "./RelatedCardComponent";
29
+ export * from "./RelatedUris";
30
+ export * from "./ResultCatalog";
31
+ export * from "./ResultData";
32
+ export * from "./ResultList";
33
+ export * from "./RetryStrategy";
34
+ export * from "./Ruling";
35
+ export * from "./SearchError";
36
+ export * from "./SearchOptions";
37
+ export * from "./Set";
38
+ export * from "./SetType";
39
+ export * from "./Sort";
40
+ export * from "./SortDirection";
41
+ export * from "./TOrArrayOfT";
42
+ export * from "./UniqueStrategy";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scryfall-api",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "A Javascript library for https://scryfall.com/docs/api written in Typescript.",
5
5
  "keywords": [
6
6
  "magic the gathering",
@@ -23,68 +23,55 @@
23
23
  "url": "https://github.com/MarioMH8/scryfall-api"
24
24
  },
25
25
  "license": "MIT",
26
- "main": "dist/scryfall-api.cjs.js",
27
- "umd:main": "dist/scryfall-api.umd.min.js",
28
- "module": "dist/scryfall-api.esm.js",
29
26
  "files": [
30
27
  "dist"
31
28
  ],
29
+ "module": "./dist/scryfall-api.mjs",
30
+ "types": "./dist/types/src/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/types/src/index.d.ts",
34
+ "require": "./dist/scryfall-api.js",
35
+ "import": "./dist/scryfall-api.mjs",
36
+ "default": "./dist/scryfall-api.mjs"
37
+ }
38
+ },
32
39
  "scripts": {
33
- "build": "yarn typecheck && preconstruct build",
34
- "build:watch": "preconstruct watch",
35
- "lint": "eslint --ext .ts,.tsx --ignore-path .gitignore .",
36
- "lint:fix": "eslint --ext .ts,.tsx --ignore-path .gitignore --fix .",
37
- "prepare": "husky install",
38
- "prettier": "prettier --ignore-unknown --check .",
39
- "prettier:fix": "prettier --ignore-unknown --write .",
40
- "publish": "yarn build && yarn changeset publish",
41
- "test": "vitest",
42
- "test:coverage": "vitest run --coverage",
40
+ "build": "vite build",
41
+ "lint": "eslint .",
42
+ "lint:fix": "eslint --fix .",
43
+ "publish": "yarn changeset publish",
44
+ "test": "vitest run --no-isolate",
45
+ "test:coverage": "vitest run --no-isolate --coverage",
43
46
  "typecheck": "tsc --noEmit",
44
- "version": "yarn changeset version && yarn install --mode update-lockfile",
45
- "webstorm-integration": "vitest --watch --reporter=dot --reporter=json --outputFile=.vitest-result.json"
47
+ "version": "yarn changeset version && yarn install --mode update-lockfile"
46
48
  },
47
49
  "engines": {
48
50
  "node": ">=18"
49
51
  },
50
- "resolutions": {
51
- "minimist": "1.2.6",
52
- "terser": "^5.14.2"
53
- },
54
52
  "peerDependencies": {
55
- "axios": "^0"
53
+ "axios": "^0 || ^1"
56
54
  },
57
55
  "devDependencies": {
58
- "@babel/core": "7.18.10",
59
- "@babel/preset-typescript": "7.18.6",
60
- "@changesets/cli": "2.24.2",
61
- "@commitlint/cli": "17.0.3",
62
- "@commitlint/config-conventional": "17.0.3",
63
- "@preconstruct/cli": "2.2.1",
64
- "@types/node": "18.6.4",
65
- "@typescript-eslint/eslint-plugin": "5.32.0",
66
- "@typescript-eslint/parser": "5.32.0",
67
- "axios": "0.27.2",
68
- "c8": "7.12.0",
69
- "eslint": "8.21.0",
70
- "eslint-config-prettier": "8.5.0",
71
- "eslint-plugin-prettier": "4.2.1",
72
- "husky": "8.0.1",
73
- "lint-staged": "13.0.3",
74
- "prettier": "2.7.1",
75
- "typescript": "4.7.4",
76
- "vite": "3.0.4",
77
- "vitest": "0.21.0"
56
+ "@changesets/cli": "2.26.0",
57
+ "@hexatool/eslint-config-typescript": "1.0.1",
58
+ "@hexatool/tsconfig": "18.0.0",
59
+ "@types/node": "18.11.18",
60
+ "@vitest/coverage-c8": "^0.28.0",
61
+ "axios": "1.2.6",
62
+ "eslint": "8.33.0",
63
+ "rollup-plugin-typescript2": "0.34.1",
64
+ "typescript": "4.9.4",
65
+ "vite": "4.0.4",
66
+ "vitest": "0.28.1"
78
67
  },
79
68
  "lint-staged": {
80
69
  "*.{ts,tsx}": "eslint --fix",
81
- "*": "prettier --ignore-unknown --write ."
70
+ "*": "prettier --ignore-unknown --write"
82
71
  },
83
- "preconstruct": {
84
- "umdName": "scryfall",
85
- "globals": {
86
- "axios": "axios"
87
- }
72
+ "volta": {
73
+ "node": "18.13.0",
74
+ "yarn": "3.3.1"
88
75
  },
89
- "packageManager": "yarn@3.2.2"
76
+ "packageManager": "yarn@3.3.1"
90
77
  }
@@ -1,10 +0,0 @@
1
- import { CardIdentifier } from '../types';
2
- export declare class CardIdentifierBuilder {
3
- static byId(id: string): CardIdentifier;
4
- static byIllustrationId(id: string): CardIdentifier;
5
- static byMtgoId(id: number): CardIdentifier;
6
- static byMultiverseId(id: number): CardIdentifier;
7
- static byName(name: string, set?: string): CardIdentifier;
8
- static byOracleId(id: string): CardIdentifier;
9
- static bySet(set: string, collectorNumber: string | number): CardIdentifier;
10
- }
@@ -1,19 +0,0 @@
1
- import MagicPageResult from '../query/MagicPageResult';
2
- import MagicQuery from '../query/MagicQuery';
3
- import { Card, CardIdentifier, SearchOptions } from '../types';
4
- declare class Cards extends MagicQuery {
5
- autoCompleteName(name: string): Promise<string[]>;
6
- byArenaId(id: number): Promise<Card | undefined>;
7
- byId(id: string): Promise<Card | undefined>;
8
- byMtgoId(id: number): Promise<Card | undefined>;
9
- byMultiverseId(id: number): Promise<Card | undefined>;
10
- byName(name: string, fuzzy?: boolean): Promise<Card | undefined>;
11
- byName(name: string, set?: string, fuzzy?: boolean): Promise<Card | undefined>;
12
- bySet(setCode: string, collectorNumber: number, lang?: string): Promise<Card | undefined>;
13
- byTcgPlayerId(id: number): Promise<Card | undefined>;
14
- collection(...identifiers: CardIdentifier[]): Promise<Card[]>;
15
- random(): Promise<Card | undefined>;
16
- search(query: string, options?: SearchOptions | number): MagicPageResult<Card, Cards>;
17
- }
18
- declare const _default: Cards;
19
- export default _default;
@@ -1,18 +0,0 @@
1
- import MagicQuery from '../query/MagicQuery';
2
- declare class Catalog extends MagicQuery {
3
- artifactTypes(): Promise<string[]>;
4
- artistNames(): Promise<string[]>;
5
- cardNames(): Promise<string[]>;
6
- creatureTypes(): Promise<string[]>;
7
- enchantmentTypes(): Promise<string[]>;
8
- landTypes(): Promise<string[]>;
9
- loyalties(): Promise<string[]>;
10
- planeswalkerTypes(): Promise<string[]>;
11
- powers(): Promise<string[]>;
12
- spellTypes(): Promise<string[]>;
13
- toughnesses(): Promise<string[]>;
14
- watermarks(): Promise<string[]>;
15
- wordBank(): Promise<string[]>;
16
- }
17
- declare const _default: Catalog;
18
- export default _default;
@@ -1,11 +0,0 @@
1
- import MagicQuery from '../query/MagicQuery';
2
- import { Ruling } from '../types';
3
- declare class Rulings extends MagicQuery {
4
- byArenaId(id: number): Promise<Ruling[]>;
5
- byId(id: string): Promise<Ruling[]>;
6
- byMtgoId(id: number): Promise<Ruling[]>;
7
- byMultiverseId(id: number): Promise<Ruling[]>;
8
- bySet(setCode: string, collectorNumber: string | number): Promise<Ruling[]>;
9
- }
10
- declare const _default: Rulings;
11
- export default _default;
@@ -1,10 +0,0 @@
1
- import MagicQuery from '../query/MagicQuery';
2
- import { Set } from '../types';
3
- declare class Sets extends MagicQuery {
4
- all(): Promise<Set[]>;
5
- byCode(code: string): Promise<Set | undefined>;
6
- byId(id: string): Promise<Set | undefined>;
7
- byTcgPlayerId(id: number): Promise<Set | undefined>;
8
- }
9
- declare const _default: Sets;
10
- export default _default;
@@ -1,8 +0,0 @@
1
- import MagicQuery from '../query/MagicQuery';
2
- import { CardSymbol, ManaCost } from '../types';
3
- declare class Symbology extends MagicQuery {
4
- all(): Promise<CardSymbol[]>;
5
- parseMana(shorthand: string): Promise<ManaCost | undefined>;
6
- }
7
- declare const _default: Symbology;
8
- export default _default;
@@ -1,5 +0,0 @@
1
- import { SearchError } from '../types';
2
- export declare class MagicQueryError extends Error {
3
- readonly data?: SearchError | undefined;
4
- constructor(data?: SearchError | undefined);
5
- }
@@ -1,10 +0,0 @@
1
- export { default as Cards } from './api/Cards';
2
- export { default as Catalog } from './api/Catalog';
3
- export { default as Rulings } from './api/Rulings';
4
- export { default as Sets } from './api/Sets';
5
- export { default as Symbology } from './api/Symbology';
6
- export * from './api/CardIdentifierBuilder';
7
- export * from './error/MagicQueryError';
8
- export * from './query/MagicQuery';
9
- export * from './query/MagicPageResult';
10
- export * from './types';
@@ -1,18 +0,0 @@
1
- import { PageQuery } from '../types';
2
- import MagicQuery from './MagicQuery';
3
- export default class MagicPageResult<T, Q extends MagicQuery, P = unknown> {
4
- private readonly q;
5
- private readonly apiPath;
6
- private readonly query;
7
- private readonly post?;
8
- private _hasMore;
9
- private _count;
10
- constructor(q: Q, apiPath: string, query: PageQuery, post?: P | undefined);
11
- get count(): number;
12
- get hasMore(): boolean;
13
- all(): Promise<T[]>;
14
- get(limit: number): Promise<T[]>;
15
- next(): Promise<T[]>;
16
- page(page: number): Promise<T[]>;
17
- private setNextPage;
18
- }
@@ -1,13 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- import { Query, RetryStrategy, TOrArrayOfT } from '../types';
3
- export default class MagicQuery {
4
- static retry: RetryStrategy;
5
- private static readonly endpoint;
6
- private static lastQuery;
7
- private static readonly rateLimit;
8
- private static canRetry;
9
- private static debounce;
10
- private static sleep;
11
- private static tryQuery;
12
- query<T = unknown, Y = unknown>(apiPath: TOrArrayOfT<string | number | undefined>, query?: Query, post?: Y, requestOptions?: AxiosRequestConfig): Promise<T | undefined>;
13
- }
@@ -1,7 +0,0 @@
1
- export declare enum Border {
2
- black = 0,
3
- borderless = 1,
4
- gold = 2,
5
- silver = 3,
6
- white = 4
7
- }
@@ -1,14 +0,0 @@
1
- import { BulkDataType } from './BulkDataType';
2
- export interface BulkDataDefinition {
3
- compressed_size: number;
4
- content_encoding: string;
5
- content_type: string;
6
- description: string;
7
- download_uri: string;
8
- id: string;
9
- name: string;
10
- object: 'bulk_data';
11
- type: BulkDataType;
12
- updated_at: string;
13
- uri: string;
14
- }
@@ -1,2 +0,0 @@
1
- import { BulkDataTypes } from './BulkDataTypes';
2
- export declare type BulkDataType = keyof typeof BulkDataTypes;
@@ -1,7 +0,0 @@
1
- export declare enum BulkDataTypes {
2
- oracle_cards = 0,
3
- unique_artwork = 1,
4
- default_cards = 2,
5
- all_cards = 3,
6
- rulings = 4
7
- }
@@ -1,91 +0,0 @@
1
- import { Border } from './Border';
2
- import { CardFace } from './CardFace';
3
- import { Color } from './Color';
4
- import { FrameEffect } from './FrameEffect';
5
- import { Game } from './Game';
6
- import { ImageUris } from './ImageUris';
7
- import { Layout } from './Layout';
8
- import { Legalities } from './Legalties';
9
- import { Preview } from './Preview';
10
- import { Prices } from './Prices';
11
- import { PromoType } from './PromoType';
12
- import { PurchaseUris } from './PurchaseUris';
13
- import { Rarity } from './Rarity';
14
- import { RelatedCard } from './RelatedCard';
15
- import { RelatedUris } from './RelatedUris';
16
- import { Set as ScryfallSet } from './Set';
17
- export interface Card {
18
- object: 'card';
19
- arena_id?: number;
20
- id: string;
21
- lang: string;
22
- mtgo_id?: number;
23
- mtgo_foil_id?: number;
24
- multiverse_ids?: number[];
25
- tcgplayer_id?: number;
26
- oracle_id: string;
27
- prints_search_uri: string;
28
- rulings_uri: string;
29
- scryfall_uri: string;
30
- uri: string;
31
- all_parts?: RelatedCard[];
32
- card_faces?: CardFace[];
33
- cmc: number;
34
- colors?: Color[];
35
- color_identity: Color[];
36
- color_indicator?: Color[];
37
- edhrec_rank?: number;
38
- foil: boolean;
39
- hand_modifier?: string;
40
- layout: keyof typeof Layout;
41
- legalities: Legalities;
42
- life_modifier?: string;
43
- loyalty?: string;
44
- mana_cost?: string;
45
- name: string;
46
- nonfoil: boolean;
47
- oracle_text?: string;
48
- oversized: boolean;
49
- power?: string;
50
- reserved: boolean;
51
- toughness?: string;
52
- type_line: string;
53
- artist?: string;
54
- artist_ids?: string[];
55
- booster: boolean;
56
- border_color: keyof typeof Border;
57
- card_back_id: string;
58
- collector_number: string;
59
- digital: boolean;
60
- flavor_text?: string;
61
- frame_effects?: (keyof typeof FrameEffect)[];
62
- frame: '1993' | '1997' | '2003' | '2015' | 'Future';
63
- full_art: boolean;
64
- games: (keyof typeof Game)[];
65
- highres_image: boolean;
66
- illustration_id?: string;
67
- image_uris?: ImageUris;
68
- prices: Prices;
69
- printed_name?: string;
70
- printed_text?: string;
71
- printed_type_line?: string;
72
- promo: boolean;
73
- promo_types?: (keyof typeof PromoType)[];
74
- purchase_uris: PurchaseUris;
75
- rarity: keyof typeof Rarity;
76
- related_uris: RelatedUris;
77
- released_at: string;
78
- reprint: boolean;
79
- scryfall_set_uri: string;
80
- set_name: string;
81
- set_search_uri: string;
82
- set_type: ScryfallSet['set_type'];
83
- set_uri: string;
84
- set: string;
85
- story_spotlight: boolean;
86
- textless: boolean;
87
- variation: boolean;
88
- variation_of?: string;
89
- watermark?: string;
90
- preview?: Preview;
91
- }
@@ -1,22 +0,0 @@
1
- import { Color } from './Color';
2
- import { ImageUris } from './ImageUris';
3
- export interface CardFace {
4
- object: 'card_face';
5
- artist?: string;
6
- color_indicator?: Color[];
7
- colors: Color[];
8
- flavor_text?: string;
9
- illustration_id?: string;
10
- image_uris?: ImageUris;
11
- loyalty?: string;
12
- mana_cost: string;
13
- name: string;
14
- oracle_text?: string;
15
- power?: string;
16
- printed_name?: string;
17
- printed_text?: string;
18
- printed_type_line?: string;
19
- toughness?: string;
20
- type_line: string;
21
- watermark?: string;
22
- }
@@ -1,10 +0,0 @@
1
- export interface CardIdentifier {
2
- id?: string;
3
- mtgo_id?: number;
4
- multiverse_id?: number;
5
- oracle_id?: string;
6
- illustration_id?: string;
7
- name?: string;
8
- set?: string;
9
- collector_number?: string;
10
- }
@@ -1,13 +0,0 @@
1
- import { Color } from './Color';
2
- export interface CardSymbol {
3
- symbol: string;
4
- loose_variant?: string;
5
- english: string;
6
- transposable: boolean;
7
- represents_mana: boolean;
8
- converted_mana_cost?: number;
9
- colors: Color[];
10
- appears_in_mana_costs: boolean;
11
- funny: boolean;
12
- gatherer_alternates?: string[];
13
- }
@@ -1,9 +0,0 @@
1
- declare enum Colors {
2
- W = 0,
3
- B = 1,
4
- R = 2,
5
- U = 3,
6
- G = 4
7
- }
8
- export declare type Color = keyof typeof Colors;
9
- export {};
@@ -1,15 +0,0 @@
1
- export declare enum Format {
2
- standard = 0,
3
- future = 1,
4
- historic = 2,
5
- pioneer = 3,
6
- modern = 4,
7
- legacy = 5,
8
- pauper = 6,
9
- vintage = 7,
10
- penny = 8,
11
- commander = 9,
12
- brawl = 10,
13
- duel = 11,
14
- oldschool = 12
15
- }
@@ -1,17 +0,0 @@
1
- export declare enum FrameEffect {
2
- legendary = 0,
3
- miracle = 1,
4
- nyxtouched = 2,
5
- draft = 3,
6
- devoid = 4,
7
- tombstone = 5,
8
- colorshifted = 6,
9
- inverted = 7,
10
- sunmoondfc = 8,
11
- compasslanddfc = 9,
12
- originpwdfc = 10,
13
- mooneldrazidfc = 11,
14
- moonreversemoondfc = 12,
15
- showcase = 13,
16
- extendedart = 14
17
- }
@@ -1,5 +0,0 @@
1
- export declare enum Game {
2
- paper = 0,
3
- arena = 1,
4
- mtgo = 2
5
- }
@@ -1,9 +0,0 @@
1
- export interface HomepageLink {
2
- id: number;
3
- created_at: string;
4
- updated_at: string;
5
- priority: number;
6
- text: string;
7
- uri: string;
8
- badge?: string;
9
- }
@@ -1,8 +0,0 @@
1
- export interface ImageUris {
2
- small: string;
3
- normal: string;
4
- large: string;
5
- png: string;
6
- art_crop: string;
7
- border_crop: string;
8
- }
@@ -1,22 +0,0 @@
1
- export declare enum Layout {
2
- normal = 0,
3
- split = 1,
4
- flip = 2,
5
- transform = 3,
6
- modal_dfc = 4,
7
- meld = 5,
8
- leveler = 6,
9
- 'class' = 7,
10
- saga = 8,
11
- adventure = 9,
12
- planar = 10,
13
- scheme = 11,
14
- vanguard = 12,
15
- token = 13,
16
- double_faced_token = 14,
17
- emblem = 15,
18
- augment = 16,
19
- host = 17,
20
- art_series = 18,
21
- reversible_card = 19
22
- }
@@ -1,5 +0,0 @@
1
- import { Format } from './Format';
2
- import { Legality } from './Legalty';
3
- export declare type Legalities = {
4
- [key in keyof typeof Format]: keyof typeof Legality;
5
- };
@@ -1,6 +0,0 @@
1
- export declare enum Legality {
2
- legal = 0,
3
- not_legal = 1,
4
- restricted = 2,
5
- banned = 3
6
- }
@@ -1,9 +0,0 @@
1
- import { Color } from './Color';
2
- export interface ManaCost {
3
- cost: string;
4
- cmc: number;
5
- colors: Color[];
6
- colorless: boolean;
7
- monocolored: boolean;
8
- multicolored: boolean;
9
- }
@@ -1,5 +0,0 @@
1
- import { QueryValue } from './PageQueryValue';
2
- export declare type PageQuery = {
3
- [key: string]: QueryValue;
4
- page: number;
5
- };
@@ -1 +0,0 @@
1
- export declare type QueryValue = string | number | boolean | undefined;
@@ -1,5 +0,0 @@
1
- export interface Preview {
2
- previewed_at?: string;
3
- source_uri?: string;
4
- source?: string;
5
- }
@@ -1,6 +0,0 @@
1
- export interface Prices {
2
- usd?: string;
3
- usd_foil?: string;
4
- eur?: string;
5
- tix?: string;
6
- }
@@ -1,27 +0,0 @@
1
- export declare enum PromoType {
2
- tourney = 0,
3
- prerelease = 1,
4
- datestamped = 2,
5
- planeswalkerdeck = 3,
6
- buyabox = 4,
7
- judgegift = 5,
8
- event = 6,
9
- convention = 7,
10
- starterdeck = 8,
11
- instore = 9,
12
- setpromo = 10,
13
- fnm = 11,
14
- openhouse = 12,
15
- league = 13,
16
- draftweekend = 14,
17
- gameday = 15,
18
- release = 16,
19
- intropack = 17,
20
- giftbox = 18,
21
- duels = 19,
22
- wizardsplaynetwork = 20,
23
- premiereshop = 21,
24
- playerrewards = 22,
25
- gateway = 23,
26
- arenaleague = 24
27
- }
@@ -1,6 +0,0 @@
1
- export interface PurchaseUris {
2
- tcgplayer?: string;
3
- cardmarket?: string;
4
- cardhoarder?: string;
5
- [key: string]: string | undefined;
6
- }