@flesh-and-blood/cards 0.0.3
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/README.md +184 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3772 -0
- package/dist/interfaces.d.ts +312 -0
- package/dist/sets.d.ts +22 -0
- package/package.json +59 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
export interface Card {
|
|
2
|
+
artists: string[];
|
|
3
|
+
cardIdentifier: string;
|
|
4
|
+
classes: Class[];
|
|
5
|
+
defaultImage: string;
|
|
6
|
+
name: string;
|
|
7
|
+
printings: Printing[];
|
|
8
|
+
rarities: Rarity[];
|
|
9
|
+
rarity: Rarity;
|
|
10
|
+
setIdentifiers: string[];
|
|
11
|
+
sets: Release[];
|
|
12
|
+
specialImage: string;
|
|
13
|
+
subtypes: Subtype[];
|
|
14
|
+
types: Type[];
|
|
15
|
+
typeText: string;
|
|
16
|
+
cost?: number;
|
|
17
|
+
defense?: number;
|
|
18
|
+
functionalText?: string;
|
|
19
|
+
fusions?: Fusion[];
|
|
20
|
+
life?: number;
|
|
21
|
+
hero?: Hero;
|
|
22
|
+
intellect?: number;
|
|
23
|
+
isCardBack?: boolean;
|
|
24
|
+
keywords?: Keyword[];
|
|
25
|
+
oppositeSideCardIdentifier?: string;
|
|
26
|
+
pitch?: number;
|
|
27
|
+
power?: number;
|
|
28
|
+
restrictedFormats?: Format[];
|
|
29
|
+
specialCost?: string;
|
|
30
|
+
specialDefense?: string;
|
|
31
|
+
specialPower?: string;
|
|
32
|
+
specializations?: Hero[];
|
|
33
|
+
talents?: Talent[];
|
|
34
|
+
young?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface Printing {
|
|
37
|
+
edition?: ReleaseEdition;
|
|
38
|
+
foiling?: Foiling;
|
|
39
|
+
identifier: string;
|
|
40
|
+
image: string;
|
|
41
|
+
set: Release;
|
|
42
|
+
treatment?: Treatment;
|
|
43
|
+
}
|
|
44
|
+
export declare enum Foiling {
|
|
45
|
+
C = "Cold",
|
|
46
|
+
G = "Gold",
|
|
47
|
+
R = "Rainbow"
|
|
48
|
+
}
|
|
49
|
+
export declare enum Treatment {
|
|
50
|
+
AB = "Alternate Border",
|
|
51
|
+
AA = "Alternate Art",
|
|
52
|
+
AT = "Alternate Text",
|
|
53
|
+
DS = "Double Sided",
|
|
54
|
+
EA = "Extended Art",
|
|
55
|
+
FA = "Full Art"
|
|
56
|
+
}
|
|
57
|
+
export declare enum Class {
|
|
58
|
+
NotClassed = "NotClassed",
|
|
59
|
+
Generic = "Generic",
|
|
60
|
+
Adjudicator = "Adjudicator",
|
|
61
|
+
Assassin = "Assassin",
|
|
62
|
+
Bard = "Bard",
|
|
63
|
+
Brute = "Brute",
|
|
64
|
+
Guardian = "Guardian",
|
|
65
|
+
Illusionist = "Illusionist",
|
|
66
|
+
Mechanologist = "Mechanologist",
|
|
67
|
+
Merchant = "Merchant",
|
|
68
|
+
Ninja = "Ninja",
|
|
69
|
+
Ranger = "Ranger",
|
|
70
|
+
Runeblade = "Runeblade",
|
|
71
|
+
Shapeshifter = "Shapeshifter",
|
|
72
|
+
Warrior = "Warrior",
|
|
73
|
+
Wizard = "Wizard"
|
|
74
|
+
}
|
|
75
|
+
export declare enum Format {
|
|
76
|
+
Blitz = "Blitz",
|
|
77
|
+
BlitzLivingLegend = "Blitz (Living Legend)",
|
|
78
|
+
Clash = "Clash",
|
|
79
|
+
ClassicConstructed = "Classic Constructed",
|
|
80
|
+
ClassicConstructedLivingLegend = "Classic Constructed (Living Legend)",
|
|
81
|
+
Commoner = "Commoner",
|
|
82
|
+
Draft = "Draft",
|
|
83
|
+
Open = "Open",
|
|
84
|
+
Sealed = "Sealed",
|
|
85
|
+
UltimatePitFight = "Ultimate Pit Fight"
|
|
86
|
+
}
|
|
87
|
+
export declare enum Fusion {
|
|
88
|
+
Earth = "Earth",
|
|
89
|
+
Ice = "Ice",
|
|
90
|
+
Lightning = "Lightning"
|
|
91
|
+
}
|
|
92
|
+
export declare enum Rarity {
|
|
93
|
+
Token = "Token",
|
|
94
|
+
Common = "Common",
|
|
95
|
+
Rare = "Rare",
|
|
96
|
+
SuperRare = "Super Rare",
|
|
97
|
+
Majestic = "Majestic",
|
|
98
|
+
Marvel = "Marvel",
|
|
99
|
+
Legendary = "Legendary",
|
|
100
|
+
Fabled = "Fabled",
|
|
101
|
+
Promo = "Promo"
|
|
102
|
+
}
|
|
103
|
+
export declare enum Release {
|
|
104
|
+
ArcaneRising = "Arcane Rising",
|
|
105
|
+
BrightLights = "Bright Lights",
|
|
106
|
+
CrucibleOfWar = "Crucible of War",
|
|
107
|
+
DuskTillDawn = "Dusk till Dawn",
|
|
108
|
+
Dynasty = "Dynasty",
|
|
109
|
+
Everfest = "Everfest",
|
|
110
|
+
HistoryPack1 = "History Pack 1",
|
|
111
|
+
Monarch = "Monarch",
|
|
112
|
+
Outsiders = "Outsiders",
|
|
113
|
+
TalesOfAria = "Tales of Aria",
|
|
114
|
+
Uprising = "Uprising",
|
|
115
|
+
WelcomeToRathe = "Welcome to Rathe",
|
|
116
|
+
ArakniBlitzDeck = "Arakni Blitz Deck",
|
|
117
|
+
AzaleaBlitzDeck = "Azalea Blitz Deck",
|
|
118
|
+
BenjiBlitzDeck = "Benji Blitz Deck",
|
|
119
|
+
BoltynBlitzDeck = "Boltyn Blitz Deck",
|
|
120
|
+
BriarBlitzDeck = "Briar Blitz Deck",
|
|
121
|
+
BravoBlitzDeck = "Bravo Blitz Deck",
|
|
122
|
+
ChaneBlitzDeck = "Chane Blitz Deck",
|
|
123
|
+
ClassicBattlesRhinarDorinthea = "Classic Battles: Rhinar vs Dorinthea",
|
|
124
|
+
DromaiBlitzDeck = "Dromai Blitz Deck",
|
|
125
|
+
DorintheaHeroDeck = "Dorinthea Hero Deck",
|
|
126
|
+
FaiBlitzDeck = "Fai Blitz Deck",
|
|
127
|
+
IraWelcomeDeck = "Ira Welcome Deck",
|
|
128
|
+
KatsuBlitzDeck = "Katsu Blitz Deck",
|
|
129
|
+
KatsuHeroDeck = "Katsu Hero Deck",
|
|
130
|
+
LeviaBlitzDeck = "Levia Blitz Deck",
|
|
131
|
+
LexiBlitzDeck = "Lexi Blitz Deck",
|
|
132
|
+
OldhimBlitzDeck = "Oldhim Blitz Deck",
|
|
133
|
+
PrismBlitzDeck = "Prism Blitz Deck",
|
|
134
|
+
RhinarHeroDeck = "Rhinar Hero Deck",
|
|
135
|
+
RiptideBlitzDeck = "Riptide Blitz Deck",
|
|
136
|
+
RoundTheTable = "Round the Table",
|
|
137
|
+
UzuriBlitzDeck = "Uzuri Blitz Deck",
|
|
138
|
+
Promos = "Promos"
|
|
139
|
+
}
|
|
140
|
+
export declare enum ReleaseEdition {
|
|
141
|
+
Alpha = "Alpha",
|
|
142
|
+
First = "First",
|
|
143
|
+
Unlimited = "Unlimited",
|
|
144
|
+
Promo = "Promo"
|
|
145
|
+
}
|
|
146
|
+
export declare enum Talent {
|
|
147
|
+
Royal = "Royal",
|
|
148
|
+
Draconic = "Draconic",
|
|
149
|
+
Earth = "Earth",
|
|
150
|
+
Elemental = "Elemental",
|
|
151
|
+
Ice = "Ice",
|
|
152
|
+
Light = "Light",
|
|
153
|
+
Lightning = "Lightning",
|
|
154
|
+
Shadow = "Shadow"
|
|
155
|
+
}
|
|
156
|
+
export declare enum Type {
|
|
157
|
+
Action = "Action",
|
|
158
|
+
AttackReaction = "Attack Reaction",
|
|
159
|
+
Block = "Block",
|
|
160
|
+
DefenseReaction = "Defense Reaction",
|
|
161
|
+
DemiHero = "Demi-Hero",
|
|
162
|
+
Equipment = "Equipment",
|
|
163
|
+
Hero = "Hero",
|
|
164
|
+
Instant = "Instant",
|
|
165
|
+
Mentor = "Mentor",
|
|
166
|
+
Resource = "Resource",
|
|
167
|
+
Token = "Token",
|
|
168
|
+
Weapon = "Weapon"
|
|
169
|
+
}
|
|
170
|
+
export declare enum Subtype {
|
|
171
|
+
OneHanded = "1H",
|
|
172
|
+
TwoHanded = "2H",
|
|
173
|
+
Affliction = "Affliction",
|
|
174
|
+
Ally = "Ally",
|
|
175
|
+
Angel = "Angel",
|
|
176
|
+
Arms = "Arms",
|
|
177
|
+
Arrow = "Arrow",
|
|
178
|
+
Ash = "Ash",
|
|
179
|
+
Attack = "Attack",
|
|
180
|
+
Aura = "Aura",
|
|
181
|
+
Axe = "Axe",
|
|
182
|
+
Base = "Base",
|
|
183
|
+
Book = "Book",
|
|
184
|
+
Bow = "Bow",
|
|
185
|
+
Chest = "Chest",
|
|
186
|
+
Claw = "Claw",
|
|
187
|
+
Club = "Club",
|
|
188
|
+
Construct = "Construct",
|
|
189
|
+
Dagger = "Dagger",
|
|
190
|
+
Demon = "Demon",
|
|
191
|
+
Dragon = "Dragon",
|
|
192
|
+
Evo = "Evo",
|
|
193
|
+
Fiddle = "Fiddle",
|
|
194
|
+
Figment = "Figment",
|
|
195
|
+
Flail = "Flail",
|
|
196
|
+
Gem = "Gem",
|
|
197
|
+
Gun = "Gun",
|
|
198
|
+
Hammer = "Hammer",
|
|
199
|
+
Head = "Head",
|
|
200
|
+
Invocation = "Invocation",
|
|
201
|
+
Item = "Item",
|
|
202
|
+
Landmark = "Landmark",
|
|
203
|
+
Lute = "Lute",
|
|
204
|
+
Legs = "Legs",
|
|
205
|
+
NonAttack = "Non-Attack",
|
|
206
|
+
OffHand = "Off-Hand",
|
|
207
|
+
Orb = "Orb",
|
|
208
|
+
Pistol = "Pistol",
|
|
209
|
+
Quiver = "Quiver",
|
|
210
|
+
Rock = "Rock",
|
|
211
|
+
Shuriken = "Shuriken",
|
|
212
|
+
Scepter = "Scepter",
|
|
213
|
+
Scythe = "Scythe",
|
|
214
|
+
Song = "Song",
|
|
215
|
+
Staff = "Staff",
|
|
216
|
+
Sword = "Sword",
|
|
217
|
+
Trap = "Trap",
|
|
218
|
+
Young = "Young"
|
|
219
|
+
}
|
|
220
|
+
export declare enum Hero {
|
|
221
|
+
Arakni = "Arakni",
|
|
222
|
+
Azalea = "Azalea",
|
|
223
|
+
Benji = "Benji",
|
|
224
|
+
Boltyn = "Boltyn",
|
|
225
|
+
Bravo = "Bravo",
|
|
226
|
+
Brevant = "Brevant",
|
|
227
|
+
Briar = "Briar",
|
|
228
|
+
Chane = "Chane",
|
|
229
|
+
Dash = "Dash",
|
|
230
|
+
DataDoll = "Data Doll",
|
|
231
|
+
Dorinthea = "Dorinthea",
|
|
232
|
+
Dromai = "Dromai",
|
|
233
|
+
Emperor = "Emperor",
|
|
234
|
+
Fai = "Fai",
|
|
235
|
+
GenisWotchuneed = "Genis Wotchuneed",
|
|
236
|
+
Ira = "Ira",
|
|
237
|
+
Iyslander = "Iyslander",
|
|
238
|
+
Kano = "Kano",
|
|
239
|
+
Kassai = "Kassai",
|
|
240
|
+
Katsu = "Katsu",
|
|
241
|
+
Kavdaen = "Kavdaen",
|
|
242
|
+
Kayo = "Kayo",
|
|
243
|
+
Levia = "Levia",
|
|
244
|
+
Lexi = "Lexi",
|
|
245
|
+
Melody = "Melody",
|
|
246
|
+
Oldhim = "Oldhim",
|
|
247
|
+
ProfessorTeklovossen = "Professor Teklovossen",
|
|
248
|
+
Prism = "Prism",
|
|
249
|
+
Rhinar = "Rhinar",
|
|
250
|
+
Riptide = "Riptide",
|
|
251
|
+
Ruudi = "Ruu\u2019di",
|
|
252
|
+
Shiyana = "Shiyana",
|
|
253
|
+
Taipanis = "Taipanis",
|
|
254
|
+
Taylor = "Taylor",
|
|
255
|
+
Teklovossen = "Teklovossen",
|
|
256
|
+
Theryon = "Theryon",
|
|
257
|
+
Uzuri = "Uzuri",
|
|
258
|
+
Valda = "Valda",
|
|
259
|
+
Vynnset = "Vynnset",
|
|
260
|
+
Viserai = "Viserai",
|
|
261
|
+
Yorick = "Yorick",
|
|
262
|
+
Yoji = "Yoji"
|
|
263
|
+
}
|
|
264
|
+
export declare enum Keyword {
|
|
265
|
+
ArcaneBarrier = "Arcane Barrier",
|
|
266
|
+
Awaken = "Awaken",
|
|
267
|
+
Battleworn = "Battleworn",
|
|
268
|
+
BladeBreak = "Blade Break",
|
|
269
|
+
BloodDebt = "Blood Debt",
|
|
270
|
+
Boost = "Boost",
|
|
271
|
+
Channel = "Channel",
|
|
272
|
+
Charge = "Charge",
|
|
273
|
+
Combo = "Combo",
|
|
274
|
+
Contract = "Contract",
|
|
275
|
+
Crush = "Crush",
|
|
276
|
+
Dominate = "Dominate",
|
|
277
|
+
Ephemeral = "Ephemeral",
|
|
278
|
+
Essence = "Essence",
|
|
279
|
+
EvoUpgrade = "Evo Upgrade",
|
|
280
|
+
Freeze = "Freeze",
|
|
281
|
+
Fusion = "Fusion",
|
|
282
|
+
GoAgain = "Go again",
|
|
283
|
+
Heave = "Heave",
|
|
284
|
+
Intimidate = "Intimidate",
|
|
285
|
+
Legendary = "Legendary",
|
|
286
|
+
Material = "Material",
|
|
287
|
+
Mirage = "Mirage",
|
|
288
|
+
Negate = "Negate",
|
|
289
|
+
Opt = "Opt",
|
|
290
|
+
Overpower = "Overpower",
|
|
291
|
+
Pairs = "Pairs",
|
|
292
|
+
Piercing = "Piercing",
|
|
293
|
+
Phantasm = "Phantasm",
|
|
294
|
+
Protect = "Protect",
|
|
295
|
+
Quell = "Quell",
|
|
296
|
+
Reload = "Reload",
|
|
297
|
+
Reprise = "Reprise",
|
|
298
|
+
RuneGate = "Rune Gate",
|
|
299
|
+
Rupture = "Rupture",
|
|
300
|
+
Solflare = "Solflare",
|
|
301
|
+
Specialization = "Specialization",
|
|
302
|
+
Spectra = "Spectra",
|
|
303
|
+
Spellvoid = "Spellvoid",
|
|
304
|
+
Stealth = "Stealth",
|
|
305
|
+
Surge = "Surge",
|
|
306
|
+
Temper = "Temper",
|
|
307
|
+
Tower = "Tower",
|
|
308
|
+
Transform = "Transform",
|
|
309
|
+
Unfreeze = "Unfreeze",
|
|
310
|
+
Unity = "Unity",
|
|
311
|
+
Ward = "Ward"
|
|
312
|
+
}
|
package/dist/sets.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Release } from "./interfaces";
|
|
2
|
+
export declare const fullSetIdentifiers: {
|
|
3
|
+
wtr: Release;
|
|
4
|
+
arc: Release;
|
|
5
|
+
cru: Release;
|
|
6
|
+
mon: Release;
|
|
7
|
+
ele: Release;
|
|
8
|
+
evr: Release;
|
|
9
|
+
"1hp": Release;
|
|
10
|
+
hp1: Release;
|
|
11
|
+
upr: Release;
|
|
12
|
+
dyn: Release;
|
|
13
|
+
out: Release;
|
|
14
|
+
dtd: Release;
|
|
15
|
+
evo: Release;
|
|
16
|
+
};
|
|
17
|
+
export declare const setIdentifierToSetMappings: {
|
|
18
|
+
[key: string]: Release;
|
|
19
|
+
};
|
|
20
|
+
export declare const setToSetIdentifierMappings: {
|
|
21
|
+
[key: string]: string[];
|
|
22
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flesh-and-blood/cards",
|
|
3
|
+
"description": "TypeScript representations of Flesh and Blood cards",
|
|
4
|
+
"version": "0.0.3",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"scripts": {
|
|
9
|
+
"transform": "ts-node src/index.ts",
|
|
10
|
+
"prebuild": "rm -rf dist",
|
|
11
|
+
"build": "esbuild ./data/index.ts --outdir=dist --bundle --minify --platform=node --target=es6",
|
|
12
|
+
"postbuild": "tsc --declaration",
|
|
13
|
+
"test": "jest",
|
|
14
|
+
"new": "ts-node tests/new-cards.ts",
|
|
15
|
+
"tts": "ts-node tts/index.ts",
|
|
16
|
+
"sitemap": "ts-node sitemap/index.ts",
|
|
17
|
+
"full": "npm run transform && npm run build && npm test && npm run new && npm run tts && npm run sitemap",
|
|
18
|
+
"prepublish": "npm run full"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@flesh-and-blood/types": "^0.0.3"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/jest": "^29.5.4",
|
|
25
|
+
"@types/node": "^20.6.0",
|
|
26
|
+
"@types/papaparse": "5.3.8",
|
|
27
|
+
"chalk": "^4.1.2",
|
|
28
|
+
"esbuild": "^0.19.2",
|
|
29
|
+
"esbuild-jest": "^0.5.0",
|
|
30
|
+
"fab-cards": "^8.0.142",
|
|
31
|
+
"fast-xml-parser": "^4.2.7",
|
|
32
|
+
"jest": "^29.7.0",
|
|
33
|
+
"papaparse": "5.3.2",
|
|
34
|
+
"ts-node": "^10.9.1",
|
|
35
|
+
"typescript": "^5.2.2"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"/dist"
|
|
39
|
+
],
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/fabrary/fab-cards.git"
|
|
46
|
+
},
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/fabrary/fab-cards/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/fabrary/fab-cards#readme",
|
|
51
|
+
"author": "Phillip Manwaring",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"keywords": [
|
|
54
|
+
"Flesh and Blood",
|
|
55
|
+
"FAB",
|
|
56
|
+
"FABTCG"
|
|
57
|
+
],
|
|
58
|
+
"gitHead": "2f444ec7d273fc6fc5b0d2e4280638193bf4ff01"
|
|
59
|
+
}
|