@flesh-and-blood/types 2.0.145 → 2.1.0
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/dist/index.js +1 -1
- package/dist/interfaces.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty,V=Object.defineProperties,$=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertyNames,z=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var d=(a,n,c)=>n in a?m(a,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[n]=c,f=(a,n)=>{for(var c in n||(n={}))u.call(n,c)&&d(a,c,n[c]);if(z)for(var c of z(n))Z.call(n,c)&&d(a,c,n[c]);return a},A=(a,n)=>V(a,Y(n));var q=(a,n)=>{for(var c in n)m(a,c,{get:n[c],enumerable:!0})},Q=(a,n,c,
|
|
1
|
+
var m=Object.defineProperty,V=Object.defineProperties,$=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertyNames,z=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var d=(a,n,c)=>n in a?m(a,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[n]=c,f=(a,n)=>{for(var c in n||(n={}))u.call(n,c)&&d(a,c,n[c]);if(z)for(var c of z(n))Z.call(n,c)&&d(a,c,n[c]);return a},A=(a,n)=>V(a,Y(n));var q=(a,n)=>{for(var c in n)m(a,c,{get:n[c],enumerable:!0})},Q=(a,n,c,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of R(n))!u.call(a,l)&&l!==c&&m(a,l,{get:()=>n[l],enumerable:!(s=$(n,l))||s.enumerable});return a};var _=a=>Q(m({},"__esModule",{value:!0}),a);var b={};q(b,{Class:()=>p,Foiling:()=>v,Format:()=>x,Fusion:()=>P,Hero:()=>T,Keyword:()=>G,Rarity:()=>L,Release:()=>I,ReleaseEdition:()=>M,Subtype:()=>W,Talent:()=>O,Treatment:()=>C,Type:()=>E,fullSetIdentifiers:()=>U,getPrint:()=>X,setIdentifierToSetMappings:()=>j,setToSetIdentifierMappings:()=>S});module.exports=_(b);var v=(s=>(s.C="Cold",s.G="Gold",s.R="Rainbow",s))(v||{}),C=(D=>(D.AB="Alternate Border",D.AA="Alternate Art",D.AT="Alternate Text",D.EA="Extended Art",D.FA="Full Art",D))(C||{}),p=(o=>(o.NotClassed="NotClassed",o.Generic="Generic",o.Adjudicator="Adjudicator",o.Assassin="Assassin",o.Bard="Bard",o.Brute="Brute",o.Guardian="Guardian",o.Illusionist="Illusionist",o.Mechanologist="Mechanologist",o.Merchant="Merchant",o.Ninja="Ninja",o.Ranger="Ranger",o.Runeblade="Runeblade",o.Shapeshifter="Shapeshifter",o.Warrior="Warrior",o.Wizard="Wizard",o))(p||{}),x=(B=>(B.Blitz="Blitz",B.BlitzLivingLegend="Blitz (Living Legend)",B.Clash="Clash",B.ClassicConstructed="Classic Constructed",B.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",B.Commoner="Commoner",B.Draft="Draft",B.Open="Open",B.Sealed="Sealed",B.UltimatePitFight="Ultimate Pit Fight",B))(x||{}),P=(s=>(s.Earth="Earth",s.Ice="Ice",s.Lightning="Lightning",s))(P||{}),L=(r=>(r.Token="Token",r.Common="Common",r.Rare="Rare",r.SuperRare="Super Rare",r.Majestic="Majestic",r.Marvel="Marvel",r.Legendary="Legendary",r.Fabled="Fabled",r.Promo="Promo",r))(L||{}),I=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.PartTheMistveil="Part the Mistveil",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArmoryDeckKayo="Armory Deck: Kayo",e.ArmoryDeckBoltyn="Armory Deck: Boltyn",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.DromaiBlitzDeck="Dromai Blitz Deck",e.EnigmaBlitzDeck="Enigma Blitz Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.NuuBlitzDeck="Nuu Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.ZenBlitzDeck="Zen Blitz Deck",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.IraWelcomeDeck="Ira Welcome Deck",e.RoundTheTable="Round the Table",e.Promos="Promos",e))(I||{}),M=(l=>(l.Alpha="Alpha",l.First="First",l.Unlimited="Unlimited",l.Promo="Promo",l))(M||{}),O=(r=>(r.Draconic="Draconic",r.Earth="Earth",r.Elemental="Elemental",r.Ice="Ice",r.Light="Light",r.Lightning="Lightning",r.Mystic="Mystic",r.Royal="Royal",r.Shadow="Shadow",r))(O||{}),E=(k=>(k.Action="Action",k.AttackReaction="Attack Reaction",k.Block="Block",k.DefenseReaction="Defense Reaction",k.DemiHero="Demi-Hero",k.Equipment="Equipment",k.Hero="Hero",k.Instant="Instant",k.Mentor="Mentor",k.Resource="Resource",k.Token="Token",k.Weapon="Weapon",k))(E||{}),W=(i=>(i.OneHanded="1H",i.TwoHanded="2H",i.Affliction="Affliction",i.Ally="Ally",i.Angel="Angel",i.Arms="Arms",i.Arrow="Arrow",i.Ash="Ash",i.Attack="Attack",i.Aura="Aura",i.Axe="Axe",i.Base="Base",i.Book="Book",i.Bow="Bow",i.Chest="Chest",i.Chi="Chi",i.Claw="Claw",i.Club="Club",i.Construct="Construct",i.Dagger="Dagger",i.Demon="Demon",i.Dragon="Dragon",i.Evo="Evo",i.Fiddle="Fiddle",i.Figment="Figment",i.Flail="Flail",i.Gem="Gem",i.Gun="Gun",i.Hammer="Hammer",i.Head="Head",i.Invocation="Invocation",i.Item="Item",i.Landmark="Landmark",i.Lute="Lute",i.Legs="Legs",i.NonAttack="Non-Attack",i.OffHand="Off-Hand",i.Orb="Orb",i.Pistol="Pistol",i.Quiver="Quiver",i.Rock="Rock",i.Shuriken="Shuriken",i.Scepter="Scepter",i.Scroll="Scroll",i.Scythe="Scythe",i.Song="Song",i.Staff="Staff",i.Sword="Sword",i.Trap="Trap",i.Wrench="Wrench",i.Young="Young",i))(W||{}),T=(i=>(i.Arakni="Arakni",i.Azalea="Azalea",i.Benji="Benji",i.Betsy="Betsy",i.Blaze="Blaze",i.Boltyn="Boltyn",i.Bravo="Bravo",i.Brevant="Brevant",i.Briar="Briar",i.Brutus="Brutus",i.Chane="Chane",i.Dash="Dash",i.DataDoll="Data Doll",i.Dorinthea="Dorinthea",i.Dromai="Dromai",i.Emperor="Emperor",i.Enigma="Enigma",i.Fai="Fai",i.GenisWotchuneed="Genis Wotchuneed",i.Ira="Ira",i.Iyslander="Iyslander",i.Kano="Kano",i.Kassai="Kassai",i.Katsu="Katsu",i.Kavdaen="Kavdaen",i.Kayo="Kayo",i.Levia="Levia",i.Lexi="Lexi",i.Maxx="Maxx",i.Melody="Melody",i.Nuu="Nuu",i.Oldhim="Oldhim",i.Olympia="Olympia",i.Prism="Prism",i.Rhinar="Rhinar",i.Riptide="Riptide",i.Ruudi="Ruu'di",i.Shiyana="Shiyana",i.Squizzy="Squizzy",i.Taipanis="Taipanis",i.Taylor="Taylor",i.Teklovossen="Teklovossen",i.Theryon="Theryon",i.Uzuri="Uzuri",i.Valda="Valda",i.Victor="Victor",i.Vynnset="Vynnset",i.Viserai="Viserai",i.Yorick="Yorick",i.Yoji="Yoji",i.Zen="Zen",i))(T||{}),G=(t=>(t.Ambush="Ambush",t.Amp="Amp",t.ArcaneBarrier="Arcane Barrier",t.Awaken="Awaken",t.Battleworn="Battleworn",t.BeatChest="Beat Chest",t.BladeBreak="Blade Break",t.BloodDebt="Blood Debt",t.Boost="Boost",t.Channel="Channel",t.Charge="Charge",t.Clash="Clash",t.Cloaked="Cloaked",t.Combo="Combo",t.Contract="Contract",t.Crank="Crank",t.Crush="Crush",t.Dominate="Dominate",t.Ephemeral="Ephemeral",t.Essence="Essence",t.EvoUpgrade="Evo Upgrade",t.Freeze="Freeze",t.Fusion="Fusion",t.Galvanize="Galvanize",t.GoAgain="Go again",t.Guardwell="Guardwell",t.Heave="Heave",t.Intimidate="Intimidate",t.Legendary="Legendary",t.Material="Material",t.Modular="Modular",t.Mirage="Mirage",t.Negate="Negate",t.Opt="Opt",t.Overpower="Overpower",t.Pairs="Pairs",t.Piercing="Piercing",t.Phantasm="Phantasm",t.Protect="Protect",t.Quell="Quell",t.Reload="Reload",t.Reprise="Reprise",t.RuneGate="Rune Gate",t.Rupture="Rupture",t.Scrap="Scrap",t.Solflare="Solflare",t.Specialization="Specialization",t.Spectra="Spectra",t.Spellvoid="Spellvoid",t.Stealth="Stealth",t.Surge="Surge",t.Temper="Temper",t.Tower="Tower",t.Transform="Transform",t.Transcend="Transcend",t.Universal="Universal",t.Unfreeze="Unfreeze",t.Unity="Unity",t.Wager="Wager",t.Ward="Ward",t))(G||{});var J={"Rhinar Blitz Deck":"-Blitz"},X=a=>{var h,r;let n=J[a.set]||"",c=`${a.identifier}${n}`,s=a.edition?`-${a.edition}`:"",l=a.foiling?`-${a.foiling}`:"",D=a.treatment?`-${a.treatment}`:"",F=(h=a.image)!=null&&h.toLowerCase().includes("back")?"-Back":"",N=(r=a.image)!=null&&r.toLowerCase().includes("_v3")?"-V3":"";return`${c}${s}${l}${D}${F}${N}`};var U={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters",mst:"Part the Mistveil"},j=A(f({},U),{ako:"Armory Deck: Kayo",asb:"Armory Deck: Boltyn",ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",eng:"Enigma Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",nuu:"Nuu Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",zen:"Zen Blitz Deck",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),g={};for(let[a,n]of Object.entries(j)){let c=g[n];c?c.push(a):g[n]=[a]}var S=g;0&&(module.exports={Class,Foiling,Format,Fusion,Hero,Keyword,Rarity,Release,ReleaseEdition,Subtype,Talent,Treatment,Type,fullSetIdentifiers,getPrint,setIdentifierToSetMappings,setToSetIdentifierMappings});
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface Card {
|
|
|
24
24
|
isCardBack?: boolean;
|
|
25
25
|
keywords?: Keyword[];
|
|
26
26
|
oppositeSideCardIdentifier?: string;
|
|
27
|
+
oppositeSideCardIdentifiers?: string[];
|
|
27
28
|
pitch?: number;
|
|
28
29
|
power?: number;
|
|
29
30
|
restrictedFormats?: Format[];
|
|
@@ -44,6 +45,7 @@ export interface Printing {
|
|
|
44
45
|
foiling?: Foiling;
|
|
45
46
|
identifier: string;
|
|
46
47
|
image: string;
|
|
48
|
+
oppositeImage?: string;
|
|
47
49
|
print: string;
|
|
48
50
|
set: Release;
|
|
49
51
|
tcgplayer?: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flesh-and-blood/types",
|
|
3
3
|
"description": "TypeScript representations of Flesh and Blood card types",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"FAB",
|
|
48
48
|
"FABTCG"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "db0c4be303b17c5f8f57263ad3fc01aa1361e093"
|
|
51
51
|
}
|