scryfall-api 2.2.1 → 3.0.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.
- package/LICENSE +18 -4
- package/README.md +8 -14
- package/{lib → dist/declarations/src}/api/CardIdentifierBuilder.d.ts +10 -10
- package/{lib → dist/declarations/src}/api/Cards.d.ts +19 -19
- package/{lib → dist/declarations/src}/api/Catalog.d.ts +18 -18
- package/{lib → dist/declarations/src}/api/Misc.d.ts +7 -7
- package/{lib → dist/declarations/src}/api/Rulings.d.ts +11 -11
- package/{lib → dist/declarations/src}/api/Sets.d.ts +10 -10
- package/{lib → dist/declarations/src}/api/Symbology.d.ts +8 -8
- package/{lib → dist/declarations/src}/error/MagicQueryError.d.ts +5 -5
- package/{lib → dist/declarations/src}/index.d.ts +11 -11
- package/{lib → dist/declarations/src}/query/MagicPageResult.d.ts +18 -18
- package/{lib → dist/declarations/src}/query/MagicQuery.d.ts +13 -13
- package/{lib → dist/declarations/src}/types/Border.d.ts +7 -7
- package/{lib → dist/declarations/src}/types/BulkDataDefinition.d.ts +14 -14
- package/{lib → dist/declarations/src}/types/BulkDataType.d.ts +2 -2
- package/{lib → dist/declarations/src}/types/BulkDataTypes.d.ts +7 -7
- package/{lib → dist/declarations/src}/types/Card.d.ts +91 -91
- package/{lib → dist/declarations/src}/types/CardFace.d.ts +22 -22
- package/{lib → dist/declarations/src}/types/CardIdentifier.d.ts +10 -10
- package/{lib → dist/declarations/src}/types/CardSymbol.d.ts +13 -13
- package/{lib → dist/declarations/src}/types/Color.d.ts +9 -9
- package/{lib → dist/declarations/src}/types/Format.d.ts +15 -15
- package/{lib → dist/declarations/src}/types/FrameEffect.d.ts +17 -17
- package/{lib → dist/declarations/src}/types/Game.d.ts +5 -5
- package/{lib → dist/declarations/src}/types/HomepageLink.d.ts +9 -9
- package/{lib → dist/declarations/src}/types/ImageUris.d.ts +8 -8
- package/{lib → dist/declarations/src}/types/Layout.d.ts +20 -20
- package/{lib → dist/declarations/src}/types/Legalties.d.ts +5 -5
- package/{lib → dist/declarations/src}/types/Legalty.d.ts +6 -6
- package/{lib → dist/declarations/src}/types/ManaCost.d.ts +9 -9
- package/{lib → dist/declarations/src}/types/PageQuery.d.ts +5 -5
- package/{lib → dist/declarations/src}/types/PageQueryValue.d.ts +1 -1
- package/{lib → dist/declarations/src}/types/Preview.d.ts +5 -5
- package/{lib → dist/declarations/src}/types/Prices.d.ts +6 -6
- package/{lib → dist/declarations/src}/types/PromoType.d.ts +27 -27
- package/{lib → dist/declarations/src}/types/PurchaseUris.d.ts +6 -6
- package/{lib → dist/declarations/src}/types/Query.d.ts +4 -4
- package/{lib → dist/declarations/src}/types/Rarity.d.ts +6 -6
- package/{lib → dist/declarations/src}/types/RelatedCard.d.ts +9 -9
- package/{lib → dist/declarations/src}/types/RelatedCardComponent.d.ts +6 -6
- package/{lib → dist/declarations/src}/types/RelatedUris.d.ts +7 -7
- package/{lib → dist/declarations/src}/types/ResultCatalog.d.ts +2 -2
- package/{lib → dist/declarations/src}/types/ResultData.d.ts +4 -4
- package/{lib → dist/declarations/src}/types/ResultList.d.ts +7 -7
- package/{lib → dist/declarations/src}/types/RetryStrategy.d.ts +11 -11
- package/{lib → dist/declarations/src}/types/Ruling.d.ts +5 -5
- package/{lib → dist/declarations/src}/types/SearchError.d.ts +7 -7
- package/{lib → dist/declarations/src}/types/SearchOptions.d.ts +15 -15
- package/{lib → dist/declarations/src}/types/Set.d.ts +20 -20
- package/{lib → dist/declarations/src}/types/SetType.d.ts +22 -22
- package/{lib → dist/declarations/src}/types/Sort.d.ts +15 -15
- package/{lib → dist/declarations/src}/types/SortDirection.d.ts +5 -5
- package/{lib → dist/declarations/src}/types/TOrArrayOfT.d.ts +1 -1
- package/{lib → dist/declarations/src}/types/UniqueStrategy.d.ts +5 -5
- package/{lib → dist/declarations/src}/types/index.d.ts +42 -42
- package/dist/scryfall-api.cjs.d.ts +1 -0
- package/dist/scryfall-api.cjs.dev.js +653 -0
- package/dist/scryfall-api.cjs.js +7 -0
- package/dist/scryfall-api.cjs.prod.js +653 -0
- package/dist/scryfall-api.esm.js +638 -0
- package/dist/scryfall-api.umd.min.js +2 -0
- package/dist/scryfall-api.umd.min.js.map +1 -0
- package/package.json +39 -91
- package/CHANGELOG.md +0 -47
- package/lib/api/Cards.spec.d.ts +0 -1
- package/lib/api/Catalog.spec.d.ts +0 -1
- package/lib/api/Misc.spec.d.ts +0 -1
- package/lib/api/Rulings.spec.d.ts +0 -1
- package/lib/api/Sets.spec.d.ts +0 -1
- package/lib/api/Symbology.spec.d.ts +0 -1
- 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
|
@@ -1,10 +1,10 @@
|
|
|
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
|
+
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 +1,13 @@
|
|
|
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
|
+
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 +1,9 @@
|
|
|
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
|
+
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 +1,15 @@
|
|
|
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
|
+
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 +1,17 @@
|
|
|
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
|
+
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 +1,5 @@
|
|
|
1
|
-
export declare enum Game {
|
|
2
|
-
paper = 0,
|
|
3
|
-
arena = 1,
|
|
4
|
-
mtgo = 2
|
|
5
|
-
}
|
|
1
|
+
export declare enum Game {
|
|
2
|
+
paper = 0,
|
|
3
|
+
arena = 1,
|
|
4
|
+
mtgo = 2
|
|
5
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
+
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 +1,8 @@
|
|
|
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
|
+
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,20 +1,20 @@
|
|
|
1
|
-
export declare enum Layout {
|
|
2
|
-
normal = 0,
|
|
3
|
-
split = 1,
|
|
4
|
-
flip = 2,
|
|
5
|
-
transform = 3,
|
|
6
|
-
meld = 4,
|
|
7
|
-
leveler = 5,
|
|
8
|
-
saga = 6,
|
|
9
|
-
adventure = 7,
|
|
10
|
-
planar = 8,
|
|
11
|
-
scheme = 9,
|
|
12
|
-
vanguard = 10,
|
|
13
|
-
token = 11,
|
|
14
|
-
double_faced_token = 12,
|
|
15
|
-
emblem = 13,
|
|
16
|
-
augment = 14,
|
|
17
|
-
host = 15,
|
|
18
|
-
art_series = 16,
|
|
19
|
-
double_sided = 17
|
|
20
|
-
}
|
|
1
|
+
export declare enum Layout {
|
|
2
|
+
normal = 0,
|
|
3
|
+
split = 1,
|
|
4
|
+
flip = 2,
|
|
5
|
+
transform = 3,
|
|
6
|
+
meld = 4,
|
|
7
|
+
leveler = 5,
|
|
8
|
+
saga = 6,
|
|
9
|
+
adventure = 7,
|
|
10
|
+
planar = 8,
|
|
11
|
+
scheme = 9,
|
|
12
|
+
vanguard = 10,
|
|
13
|
+
token = 11,
|
|
14
|
+
double_faced_token = 12,
|
|
15
|
+
emblem = 13,
|
|
16
|
+
augment = 14,
|
|
17
|
+
host = 15,
|
|
18
|
+
art_series = 16,
|
|
19
|
+
double_sided = 17
|
|
20
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
+
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 +1,6 @@
|
|
|
1
|
-
export declare enum Legality {
|
|
2
|
-
legal = 0,
|
|
3
|
-
not_legal = 1,
|
|
4
|
-
restricted = 2,
|
|
5
|
-
banned = 3
|
|
6
|
-
}
|
|
1
|
+
export declare enum Legality {
|
|
2
|
+
legal = 0,
|
|
3
|
+
not_legal = 1,
|
|
4
|
+
restricted = 2,
|
|
5
|
+
banned = 3
|
|
6
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
+
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 +1,5 @@
|
|
|
1
|
-
import { QueryValue } from './PageQueryValue';
|
|
2
|
-
export declare type PageQuery = {
|
|
3
|
-
[key: string]: QueryValue;
|
|
4
|
-
page: number;
|
|
5
|
-
};
|
|
1
|
+
import { QueryValue } from './PageQueryValue';
|
|
2
|
+
export declare type PageQuery = {
|
|
3
|
+
[key: string]: QueryValue;
|
|
4
|
+
page: number;
|
|
5
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type QueryValue = string | number | boolean | undefined;
|
|
1
|
+
export declare type QueryValue = string | number | boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface Preview {
|
|
2
|
-
previewed_at?: string;
|
|
3
|
-
source_uri?: string;
|
|
4
|
-
source?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface Preview {
|
|
2
|
+
previewed_at?: string;
|
|
3
|
+
source_uri?: string;
|
|
4
|
+
source?: string;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface Prices {
|
|
2
|
-
usd?: string;
|
|
3
|
-
usd_foil?: string;
|
|
4
|
-
eur?: string;
|
|
5
|
-
tix?: string;
|
|
6
|
-
}
|
|
1
|
+
export interface Prices {
|
|
2
|
+
usd?: string;
|
|
3
|
+
usd_foil?: string;
|
|
4
|
+
eur?: string;
|
|
5
|
+
tix?: string;
|
|
6
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
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
|
+
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 +1,6 @@
|
|
|
1
|
-
export interface PurchaseUris {
|
|
2
|
-
tcgplayer?: string;
|
|
3
|
-
cardmarket?: string;
|
|
4
|
-
cardhoarder?: string;
|
|
5
|
-
[key: string]: string | undefined;
|
|
6
|
-
}
|
|
1
|
+
export interface PurchaseUris {
|
|
2
|
+
tcgplayer?: string;
|
|
3
|
+
cardmarket?: string;
|
|
4
|
+
cardhoarder?: string;
|
|
5
|
+
[key: string]: string | undefined;
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryValue } from './PageQueryValue';
|
|
2
|
-
export declare type Query = {
|
|
3
|
-
[key: string]: QueryValue;
|
|
4
|
-
};
|
|
1
|
+
import { QueryValue } from './PageQueryValue';
|
|
2
|
+
export declare type Query = {
|
|
3
|
+
[key: string]: QueryValue;
|
|
4
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum Rarity {
|
|
2
|
-
common = 0,
|
|
3
|
-
uncommon = 1,
|
|
4
|
-
rare = 2,
|
|
5
|
-
mythic = 3
|
|
6
|
-
}
|
|
1
|
+
export declare enum Rarity {
|
|
2
|
+
common = 0,
|
|
3
|
+
uncommon = 1,
|
|
4
|
+
rare = 2,
|
|
5
|
+
mythic = 3
|
|
6
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RelatedCardComponent } from './RelatedCardComponent';
|
|
2
|
-
export interface RelatedCard {
|
|
3
|
-
component: keyof typeof RelatedCardComponent;
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
object: 'related_card';
|
|
7
|
-
type_line: string;
|
|
8
|
-
uri: string;
|
|
9
|
-
}
|
|
1
|
+
import { RelatedCardComponent } from './RelatedCardComponent';
|
|
2
|
+
export interface RelatedCard {
|
|
3
|
+
component: keyof typeof RelatedCardComponent;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
object: 'related_card';
|
|
7
|
+
type_line: string;
|
|
8
|
+
uri: string;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum RelatedCardComponent {
|
|
2
|
-
token = 0,
|
|
3
|
-
meld_part = 1,
|
|
4
|
-
meld_result = 2,
|
|
5
|
-
combo_piece = 3
|
|
6
|
-
}
|
|
1
|
+
export declare enum RelatedCardComponent {
|
|
2
|
+
token = 0,
|
|
3
|
+
meld_part = 1,
|
|
4
|
+
meld_result = 2,
|
|
5
|
+
combo_piece = 3
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface RelatedUris {
|
|
2
|
-
gatherer?: string;
|
|
3
|
-
tcgplayer_decks?: string;
|
|
4
|
-
edhrec?: string;
|
|
5
|
-
mtgtop8?: string;
|
|
6
|
-
[key: string]: string | undefined;
|
|
7
|
-
}
|
|
1
|
+
export interface RelatedUris {
|
|
2
|
+
gatherer?: string;
|
|
3
|
+
tcgplayer_decks?: string;
|
|
4
|
+
edhrec?: string;
|
|
5
|
+
mtgtop8?: string;
|
|
6
|
+
[key: string]: string | undefined;
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResultData } from './ResultData';
|
|
2
|
-
export declare type ResultCatalog = ResultData<string>;
|
|
1
|
+
import { ResultData } from './ResultData';
|
|
2
|
+
export declare type ResultCatalog = ResultData<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface ResultData<T, NOT_FOUND = never> {
|
|
2
|
-
data: T[];
|
|
3
|
-
not_found?: NOT_FOUND[];
|
|
4
|
-
}
|
|
1
|
+
export interface ResultData<T, NOT_FOUND = never> {
|
|
2
|
+
data: T[];
|
|
3
|
+
not_found?: NOT_FOUND[];
|
|
4
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ResultData } from './ResultData';
|
|
2
|
-
export interface ResultList<T, NOT_FOUND = never> extends ResultData<T, NOT_FOUND> {
|
|
3
|
-
has_more: boolean;
|
|
4
|
-
next_page: string;
|
|
5
|
-
total_cards: string;
|
|
6
|
-
warnings: string[];
|
|
7
|
-
}
|
|
1
|
+
import { ResultData } from './ResultData';
|
|
2
|
+
export interface ResultList<T, NOT_FOUND = never> extends ResultData<T, NOT_FOUND> {
|
|
3
|
+
has_more: boolean;
|
|
4
|
+
next_page: string;
|
|
5
|
+
total_cards: string;
|
|
6
|
+
warnings: string[];
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { SearchError } from './SearchError';
|
|
2
|
-
export interface RetryStrategy {
|
|
3
|
-
attempts: number;
|
|
4
|
-
timeout?: number;
|
|
5
|
-
/**
|
|
6
|
-
* Whether even `not_found` and `bad_request` errors should be retried.
|
|
7
|
-
* @deprecated Don't use this, this is for unit tests
|
|
8
|
-
*/
|
|
9
|
-
forced?: boolean;
|
|
10
|
-
canRetry?(error?: SearchError): boolean;
|
|
11
|
-
}
|
|
1
|
+
import { SearchError } from './SearchError';
|
|
2
|
+
export interface RetryStrategy {
|
|
3
|
+
attempts: number;
|
|
4
|
+
timeout?: number;
|
|
5
|
+
/**
|
|
6
|
+
* Whether even `not_found` and `bad_request` errors should be retried.
|
|
7
|
+
* @deprecated Don't use this, this is for unit tests
|
|
8
|
+
*/
|
|
9
|
+
forced?: boolean;
|
|
10
|
+
canRetry?(error?: SearchError): boolean;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface Ruling {
|
|
2
|
-
source: string;
|
|
3
|
-
published_at: string;
|
|
4
|
-
comment: string;
|
|
5
|
-
}
|
|
1
|
+
export interface Ruling {
|
|
2
|
+
source: string;
|
|
3
|
+
published_at: string;
|
|
4
|
+
comment: string;
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface SearchError {
|
|
2
|
-
object: 'error';
|
|
3
|
-
code: string;
|
|
4
|
-
status: number;
|
|
5
|
-
details: string;
|
|
6
|
-
warnings?: string[];
|
|
7
|
-
}
|
|
1
|
+
export interface SearchError {
|
|
2
|
+
object: 'error';
|
|
3
|
+
code: string;
|
|
4
|
+
status: number;
|
|
5
|
+
details: string;
|
|
6
|
+
warnings?: string[];
|
|
7
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
+
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 +1,20 @@
|
|
|
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
|
+
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 +1,22 @@
|
|
|
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
|
+
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
|
+
}
|