scryfall-api 2.2.0 → 3.0.1

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 (81) hide show
  1. package/CHANGELOG.md +7 -34
  2. package/DOCUMENTATION.md +505 -0
  3. package/LICENSE +18 -4
  4. package/README.md +8 -14
  5. package/SUPPORT.md +38 -0
  6. package/dist/scryfall-api.cjs.d.ts +1 -0
  7. package/dist/scryfall-api.cjs.dev.js +712 -0
  8. package/dist/scryfall-api.cjs.js +7 -0
  9. package/dist/scryfall-api.cjs.prod.js +712 -0
  10. package/dist/scryfall-api.esm.js +697 -0
  11. package/dist/scryfall-api.umd.min.js +2 -0
  12. package/dist/scryfall-api.umd.min.js.map +1 -0
  13. package/package.json +36 -91
  14. package/lib/api/CardIdentifierBuilder.d.ts +0 -10
  15. package/lib/api/Cards.d.ts +0 -19
  16. package/lib/api/Cards.spec.d.ts +0 -1
  17. package/lib/api/Catalog.d.ts +0 -18
  18. package/lib/api/Catalog.spec.d.ts +0 -1
  19. package/lib/api/Misc.d.ts +0 -7
  20. package/lib/api/Misc.spec.d.ts +0 -1
  21. package/lib/api/Rulings.d.ts +0 -11
  22. package/lib/api/Rulings.spec.d.ts +0 -1
  23. package/lib/api/Sets.d.ts +0 -10
  24. package/lib/api/Sets.spec.d.ts +0 -1
  25. package/lib/api/Symbology.d.ts +0 -8
  26. package/lib/api/Symbology.spec.d.ts +0 -1
  27. package/lib/error/MagicQueryError.d.ts +0 -5
  28. package/lib/index.d.ts +0 -11
  29. package/lib/query/MagicPageResult.d.ts +0 -18
  30. package/lib/query/MagicQuery.d.ts +0 -13
  31. package/lib/skryfall.es5.js +0 -660
  32. package/lib/skryfall.es5.js.map +0 -1
  33. package/lib/skryfall.es5.min.js +0 -16
  34. package/lib/skryfall.es5.min.js.map +0 -1
  35. package/lib/skryfall.umd.js +0 -679
  36. package/lib/skryfall.umd.js.map +0 -1
  37. package/lib/skryfall.umd.min.js +0 -16
  38. package/lib/skryfall.umd.min.js.map +0 -1
  39. package/lib/types/Border.d.ts +0 -7
  40. package/lib/types/BulkDataDefinition.d.ts +0 -14
  41. package/lib/types/BulkDataType.d.ts +0 -2
  42. package/lib/types/BulkDataTypes.d.ts +0 -7
  43. package/lib/types/Card.d.ts +0 -91
  44. package/lib/types/CardFace.d.ts +0 -22
  45. package/lib/types/CardIdentifier.d.ts +0 -10
  46. package/lib/types/CardSymbol.d.ts +0 -13
  47. package/lib/types/Color.d.ts +0 -9
  48. package/lib/types/Format.d.ts +0 -15
  49. package/lib/types/FrameEffect.d.ts +0 -17
  50. package/lib/types/Game.d.ts +0 -5
  51. package/lib/types/HomepageLink.d.ts +0 -9
  52. package/lib/types/ImageUris.d.ts +0 -8
  53. package/lib/types/Layout.d.ts +0 -20
  54. package/lib/types/Legalties.d.ts +0 -5
  55. package/lib/types/Legalty.d.ts +0 -6
  56. package/lib/types/ManaCost.d.ts +0 -9
  57. package/lib/types/PageQuery.d.ts +0 -5
  58. package/lib/types/PageQueryValue.d.ts +0 -1
  59. package/lib/types/Preview.d.ts +0 -5
  60. package/lib/types/Prices.d.ts +0 -6
  61. package/lib/types/PromoType.d.ts +0 -27
  62. package/lib/types/PurchaseUris.d.ts +0 -6
  63. package/lib/types/Query.d.ts +0 -4
  64. package/lib/types/Rarity.d.ts +0 -6
  65. package/lib/types/RelatedCard.d.ts +0 -9
  66. package/lib/types/RelatedCardComponent.d.ts +0 -6
  67. package/lib/types/RelatedUris.d.ts +0 -7
  68. package/lib/types/ResultCatalog.d.ts +0 -2
  69. package/lib/types/ResultData.d.ts +0 -4
  70. package/lib/types/ResultList.d.ts +0 -7
  71. package/lib/types/RetryStrategy.d.ts +0 -11
  72. package/lib/types/Ruling.d.ts +0 -5
  73. package/lib/types/SearchError.d.ts +0 -7
  74. package/lib/types/SearchOptions.d.ts +0 -15
  75. package/lib/types/Set.d.ts +0 -20
  76. package/lib/types/SetType.d.ts +0 -22
  77. package/lib/types/Sort.d.ts +0 -15
  78. package/lib/types/SortDirection.d.ts +0 -5
  79. package/lib/types/TOrArrayOfT.d.ts +0 -1
  80. package/lib/types/UniqueStrategy.d.ts +0 -5
  81. package/lib/types/index.d.ts +0 -42
@@ -1,7 +0,0 @@
1
- export interface SearchError {
2
- object: 'error';
3
- code: string;
4
- status: number;
5
- details: string;
6
- warnings?: string[];
7
- }
@@ -1,15 +0,0 @@
1
- import { Sort } from './Sort';
2
- import { SortDirection } from './SortDirection';
3
- import { UniqueStrategy } from './UniqueStrategy';
4
- export interface SearchOptions {
5
- unique?: keyof typeof UniqueStrategy;
6
- order?: keyof typeof Sort;
7
- dir?: keyof typeof SortDirection;
8
- include_extras?: boolean;
9
- include_multilingual?: boolean;
10
- include_variations?: boolean;
11
- /**
12
- * The page to start on. Defaults to `1`, for first page. A page is 175 cards.
13
- */
14
- page?: number;
15
- }
@@ -1,20 +0,0 @@
1
- import { SetType } from './SetType';
2
- export interface Set {
3
- id: string;
4
- code: string;
5
- mtgo_code?: string;
6
- tcgplayer_id?: number;
7
- name: string;
8
- set_type: keyof typeof SetType;
9
- released_at?: string;
10
- block_code?: string;
11
- block?: string;
12
- parent_set_code?: string;
13
- card_count: number;
14
- digital: boolean;
15
- foil_only: boolean;
16
- scryfall_uri: string;
17
- uri: string;
18
- icon_svg_uri: string;
19
- search_uri: string;
20
- }
@@ -1,22 +0,0 @@
1
- export declare enum SetType {
2
- core = 0,
3
- expansion = 1,
4
- masters = 2,
5
- masterpiece = 3,
6
- from_the_vault = 4,
7
- spellbook = 5,
8
- premium_deck = 6,
9
- duel_deck = 7,
10
- draft_innovation = 8,
11
- treasure_chest = 9,
12
- commander = 10,
13
- planechase = 11,
14
- archenemy = 12,
15
- vanguard = 13,
16
- funny = 14,
17
- starter = 15,
18
- box = 16,
19
- promo = 17,
20
- token = 18,
21
- memorabilia = 19
22
- }
@@ -1,15 +0,0 @@
1
- export declare enum Sort {
2
- name = 0,
3
- set = 1,
4
- released = 2,
5
- rarity = 3,
6
- color = 4,
7
- usd = 5,
8
- tix = 6,
9
- eur = 7,
10
- cmc = 8,
11
- power = 9,
12
- toughness = 10,
13
- edhrec = 11,
14
- artist = 12
15
- }
@@ -1,5 +0,0 @@
1
- export declare enum SortDirection {
2
- auto = 0,
3
- asc = 1,
4
- desc = 2
5
- }
@@ -1 +0,0 @@
1
- export declare type TOrArrayOfT<T> = T | T[];
@@ -1,5 +0,0 @@
1
- export declare enum UniqueStrategy {
2
- cards = 0,
3
- art = 1,
4
- prints = 2
5
- }
@@ -1,42 +0,0 @@
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';