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.
- package/CHANGELOG.md +7 -34
- package/DOCUMENTATION.md +505 -0
- package/LICENSE +18 -4
- package/README.md +8 -14
- package/SUPPORT.md +38 -0
- package/dist/scryfall-api.cjs.d.ts +1 -0
- package/dist/scryfall-api.cjs.dev.js +712 -0
- package/dist/scryfall-api.cjs.js +7 -0
- package/dist/scryfall-api.cjs.prod.js +712 -0
- package/dist/scryfall-api.esm.js +697 -0
- package/dist/scryfall-api.umd.min.js +2 -0
- package/dist/scryfall-api.umd.min.js.map +1 -0
- package/package.json +36 -91
- package/lib/api/CardIdentifierBuilder.d.ts +0 -10
- package/lib/api/Cards.d.ts +0 -19
- package/lib/api/Cards.spec.d.ts +0 -1
- package/lib/api/Catalog.d.ts +0 -18
- package/lib/api/Catalog.spec.d.ts +0 -1
- package/lib/api/Misc.d.ts +0 -7
- package/lib/api/Misc.spec.d.ts +0 -1
- package/lib/api/Rulings.d.ts +0 -11
- package/lib/api/Rulings.spec.d.ts +0 -1
- package/lib/api/Sets.d.ts +0 -10
- package/lib/api/Sets.spec.d.ts +0 -1
- package/lib/api/Symbology.d.ts +0 -8
- package/lib/api/Symbology.spec.d.ts +0 -1
- package/lib/error/MagicQueryError.d.ts +0 -5
- package/lib/index.d.ts +0 -11
- package/lib/query/MagicPageResult.d.ts +0 -18
- package/lib/query/MagicQuery.d.ts +0 -13
- package/lib/skryfall.es5.js +0 -660
- package/lib/skryfall.es5.js.map +0 -1
- package/lib/skryfall.es5.min.js +0 -16
- package/lib/skryfall.es5.min.js.map +0 -1
- package/lib/skryfall.umd.js +0 -679
- package/lib/skryfall.umd.js.map +0 -1
- package/lib/skryfall.umd.min.js +0 -16
- package/lib/skryfall.umd.min.js.map +0 -1
- package/lib/types/Border.d.ts +0 -7
- package/lib/types/BulkDataDefinition.d.ts +0 -14
- package/lib/types/BulkDataType.d.ts +0 -2
- package/lib/types/BulkDataTypes.d.ts +0 -7
- package/lib/types/Card.d.ts +0 -91
- package/lib/types/CardFace.d.ts +0 -22
- package/lib/types/CardIdentifier.d.ts +0 -10
- package/lib/types/CardSymbol.d.ts +0 -13
- package/lib/types/Color.d.ts +0 -9
- package/lib/types/Format.d.ts +0 -15
- package/lib/types/FrameEffect.d.ts +0 -17
- package/lib/types/Game.d.ts +0 -5
- package/lib/types/HomepageLink.d.ts +0 -9
- package/lib/types/ImageUris.d.ts +0 -8
- package/lib/types/Layout.d.ts +0 -20
- package/lib/types/Legalties.d.ts +0 -5
- package/lib/types/Legalty.d.ts +0 -6
- package/lib/types/ManaCost.d.ts +0 -9
- package/lib/types/PageQuery.d.ts +0 -5
- package/lib/types/PageQueryValue.d.ts +0 -1
- package/lib/types/Preview.d.ts +0 -5
- package/lib/types/Prices.d.ts +0 -6
- package/lib/types/PromoType.d.ts +0 -27
- package/lib/types/PurchaseUris.d.ts +0 -6
- package/lib/types/Query.d.ts +0 -4
- package/lib/types/Rarity.d.ts +0 -6
- package/lib/types/RelatedCard.d.ts +0 -9
- package/lib/types/RelatedCardComponent.d.ts +0 -6
- package/lib/types/RelatedUris.d.ts +0 -7
- package/lib/types/ResultCatalog.d.ts +0 -2
- package/lib/types/ResultData.d.ts +0 -4
- package/lib/types/ResultList.d.ts +0 -7
- package/lib/types/RetryStrategy.d.ts +0 -11
- package/lib/types/Ruling.d.ts +0 -5
- package/lib/types/SearchError.d.ts +0 -7
- package/lib/types/SearchOptions.d.ts +0 -15
- package/lib/types/Set.d.ts +0 -20
- package/lib/types/SetType.d.ts +0 -22
- package/lib/types/Sort.d.ts +0 -15
- package/lib/types/SortDirection.d.ts +0 -5
- package/lib/types/TOrArrayOfT.d.ts +0 -1
- package/lib/types/UniqueStrategy.d.ts +0 -5
- package/lib/types/index.d.ts +0 -42
|
@@ -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
|
-
}
|
package/lib/types/Set.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib/types/SetType.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib/types/Sort.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type TOrArrayOfT<T> = T | T[];
|
package/lib/types/index.d.ts
DELETED
|
@@ -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';
|