-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSet.ts
108 lines (107 loc) · 2.63 KB
/
Set.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import { ScryfallObject } from "../Object";
import { SetType } from "./values";
/**
* Description of a Magic card set.
*
* @see {@link https://scryfall.com/docs/api/sets}
*/
export type ScryfallSet = ScryfallObject.Object<ScryfallObject.ObjectType.Set> & {
/**
* A unique ID for this set on Scryfall that will not change.
*
* @type UUID
*/
id: string;
/**
* The unique three to five-letter code for this set.
*/
code: string;
/**
* The unique code for this set on MTGO, which may differ from the regular code.
*/
mtgo_code?: string;
/**
* The unique code for this set on Arena, which may differ from the regular code.
*/
arena_code?: string;
/**
* This set’s ID on TCGplayer’s API, also known as the groupId.
*
* @type Integer
*/
tcgplayer_id?: number;
/**
* The English name of the set.
*/
name: string;
/**
* A computer-readable classification for this set. See below.
*/
set_type: `${SetType}`;
/**
* The date the set was released or the first card was printed in the set (in GMT-8 Pacific time).
*
* @type IsoDate
*/
released_at?: string;
/**
* The block code for this set, if any.
*/
block_code?: string;
/**
* The block or group name code for this set, if any.
*/
block?: string;
/**
* The set code for the parent set, if any. promo and token sets often have a parent set.
*/
parent_set_code?: string;
/**
* The number of cards in this set.
*
* @type Integer
*/
card_count: number;
/**
* The denominator for the set’s printed collector numbers.
*
* @type Integer
*/
printed_size?: number;
/**
* True if this set was only released in a video game.
*/
digital: boolean;
/**
* True if this set contains only foil cards.
*/
foil_only: boolean;
/**
* True if this set contains only nonfoil cards.
*/
nonfoil_only: boolean;
/**
* A link to this set’s permapage on Scryfall’s website.
*
* @type URI
*/
scryfall_uri: string;
/**
* A link to this set object on Scryfall’s API.
*
* @type URI
*/
uri: string;
/**
* A URI to an SVG file for this set’s icon on Scryfall’s CDN. Hotlinking this image isn’t recommended, because it may change slightly over time. You should download it and use it locally for your particular user interface needs.
*
* @type URI
*/
icon_svg_uri: string;
/**
* A Scryfall API URI that you can request to begin paginating over the cards in this set.
*
* @type URI
*/
search_uri: string;
};