Skip to content

Commit

Permalink
v5.0.3, Add all missing PromoTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Jan 11, 2025
1 parent 62a1449 commit 3c0f57f
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v5.0.3 (January 11th, 2025)
- Updated `PromoType` to reflect the current Scryfall dataset. (Thanks [mcgrue](https://github.com/mcgrue)!)

# v5.0.2 (August 18th, 2024)
- Fixed missing `hybrid` field in card symbols.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scryfall-sdk",
"version": "5.0.2",
"version": "5.0.3",
"main": "./out/Scry.js",
"types": "./out/Scry.d.ts",
"description": "A Node.js SDK for https://scryfall.com/docs/api written in Typescript.",
Expand Down
95 changes: 76 additions & 19 deletions src/api/Cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,32 +256,89 @@ export interface Preview {
}

export enum PromoType {
tourney,
prerelease,
datestamped,
planeswalkerdeck,
alchemy,
arenaleague,
beginnerbox,
boosterfun,
boxtopper,
brawldeck,
bringafriend,
bundle,
buyabox,
judgegift,
event,
commanderparty,
concept,
confettifoil,
convention,
starterdeck,
instore,
setpromo,
fnm,
openhouse,
league,
datestamped,
dossier,
doubleexposure,
doublerainbow,
draculaseries,
draftweekend,
duels,
embossed,
event,
fnm,
fracturefoil,
galaxyfoil,
gameday,
release,
intropack,
giftbox,
duels,
wizardsplaynetwork,
premiereshop,
gilded,
glossy,
godzillaseries,
halofoil,
imagine,
instore,
intropack,
invisibleink,
jpwalker,
judgegift,
league,
magnified,
manafoil,
mediainsert,
moonlitland,
neonink,
oilslick,
openhouse,
planeswalkerdeck,
plastic,
playerrewards,
playpromo,
playtest,
gateway,
arenaleague
portrait,
poster,
premiereshop,
prerelease,
promopack,
rainbowfoil,
raisedfoil,
ravnicacity,
rebalanced,
release,
resale,
ripplefoil,
schinesealtart,
scroll,
serialized,
setextension,
setpromo,
silverfoil,
sldbonus,
stamped,
startercollection,
starterdeck,
stepandcompleat,
storechampionship,
surgefoil,
textured,
themepack,
thick,
tourney,
upsidedown,
upsidedownback,
vault,
wizardsplaynetwork,
}

export enum CardFinish {
Expand Down

0 comments on commit 3c0f57f

Please sign in to comment.