@firestone-hs/reference-data 2.0.47 → 2.0.49

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.
@@ -1,3 +1,4 @@
1
+ import { GameFormat } from '../../public-api';
1
2
  export declare type SetId = 'perils_in_paradise' | 'boom_inventions' | 'whizbangs_workshop' | 'gift' | 'deepholm' | 'wild_west' | 'ulduar' | 'caverns_of_time' | 'titans' | 'audiopocalypse' | 'battle_of_the_bands' | 'return_to_naxxramas' | 'path_of_arthas' | 'return_of_the_lich_king' | 'maw_and_disorder' | 'revendreth' | 'throne_of_tides' | 'the_sunken_city' | 'onyxias_lair' | 'alterac_valley' | 'deadmines' | 'stormwind' | 'wailing_caverns' | 'the_barrens' | 'darkmoon_races' | 'darkmoon_faire' | 'scholomance' | 'black_temple' | 'demon_hunter_initiate' | 'yod' | 'dragons' | 'uldum' | 'dalaran' | 'troll' | 'boomsday' | 'gilneas' | 'lootapalooza' | 'icecrown' | 'ungoro' | 'gangs' | 'kara' | 'og' | 'loe' | 'tgt' | 'brm' | 'gvg' | 'naxx' | 'core' | 'legacy' | 'vanilla';
2
3
  export interface ReferenceSet {
3
4
  readonly id: SetId;
@@ -12,3 +13,4 @@ export declare const twistSets: readonly SetId[];
12
13
  export declare const arenaSets: readonly SetId[];
13
14
  export declare const duelsSets: readonly SetId[];
14
15
  export declare const vanillaSets: readonly SetId[];
16
+ export declare const isValidSet: (set: SetId, format: GameFormat) => boolean;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.vanillaSets = exports.duelsSets = exports.arenaSets = exports.twistSets = exports.standardSets = exports.wildSets = exports.sets = void 0;
3
+ exports.isValidSet = exports.vanillaSets = exports.duelsSets = exports.arenaSets = exports.twistSets = exports.standardSets = exports.wildSets = exports.sets = void 0;
4
+ const public_api_1 = require("../../public-api");
4
5
  exports.sets = [
5
6
  {
6
7
  id: 'perils_in_paradise',
@@ -341,4 +342,17 @@ exports.duelsSets = [
341
342
  'deepholm',
342
343
  ];
343
344
  exports.vanillaSets = ['vanilla'];
345
+ const isValidSet = (set, format) => {
346
+ switch (format) {
347
+ case public_api_1.GameFormat.FT_STANDARD:
348
+ return exports.standardSets.includes(set);
349
+ case public_api_1.GameFormat.FT_TWIST:
350
+ return exports.twistSets.includes(set);
351
+ case public_api_1.GameFormat.FT_WILD:
352
+ default:
353
+ return exports.wildSets.includes(set);
354
+ }
355
+ return false;
356
+ };
357
+ exports.isValidSet = isValidSet;
344
358
  //# sourceMappingURL=reference-sets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reference-sets.js","sourceRoot":"","sources":["../../../src/models/reference-cards/reference-sets.ts"],"names":[],"mappings":";;;AA2Da,QAAA,IAAI,GAA4B;IAC5C;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,OAAO,EAAE,IAAI;KACb;IACD;QACC,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,gBAAgB;QACtB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AAA,SAAS,GAAqB,gBAAQ,CAAC;AAwBvC,QAAA,SAAS,GAAqB;IAC1C,oBAAoB;IACpB,iBAAiB;IACjB,oBAAoB;IACpB,MAAM;IACN,UAAU;IACV,WAAW;IACX,QAAQ;IACR,iBAAiB;IACjB,QAAQ;IACR,gBAAgB;IAChB,qBAAqB;IACrB,qBAAqB;IACrB,gBAAgB;IAChB,yBAAyB;IACzB,kBAAkB;IAClB,YAAY;IACZ,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,cAAc;CACd,CAAC;AACW,QAAA,SAAS,GAAqB;IAC1C,MAAM;IACN,QAAQ;IACR,MAAM;IACN,KAAK;IACL,KAAK;IACL,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,UAAU;IACV,cAAc;IACd,SAAS;IACT,OAAO;IACP,aAAa;IACb,uBAAuB;IACvB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,YAAY;IACZ,kBAAkB;IAClB,yBAAyB;IACzB,qBAAqB;IACrB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,OAAO;IACP,QAAQ;IACR,iBAAiB;IACjB,QAAQ;IACR,SAAS;IACT,OAAO;IACP,KAAK;IACL,KAAK;IACL,SAAS;IACT,KAAK;IACL,WAAW;IACX,UAAU;CAEV,CAAC;AAEW,QAAA,WAAW,GAAqB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["export type SetId =\r\n\t| 'perils_in_paradise'\r\n\t| 'boom_inventions'\r\n\t| 'whizbangs_workshop'\r\n\t| 'gift'\r\n\t| 'deepholm'\r\n\t| 'wild_west'\r\n\t| 'ulduar'\r\n\t| 'caverns_of_time'\r\n\t| 'titans'\r\n\t| 'audiopocalypse'\r\n\t| 'battle_of_the_bands'\r\n\t| 'return_to_naxxramas'\r\n\t| 'path_of_arthas'\r\n\t| 'return_of_the_lich_king'\r\n\t| 'maw_and_disorder'\r\n\t| 'revendreth'\r\n\t| 'throne_of_tides'\r\n\t| 'the_sunken_city'\r\n\t| 'onyxias_lair'\r\n\t| 'alterac_valley'\r\n\t| 'deadmines'\r\n\t| 'stormwind'\r\n\t| 'wailing_caverns'\r\n\t| 'the_barrens'\r\n\t| 'darkmoon_races'\r\n\t| 'darkmoon_faire'\r\n\t| 'scholomance'\r\n\t| 'black_temple'\r\n\t| 'demon_hunter_initiate'\r\n\t| 'yod'\r\n\t| 'dragons'\r\n\t| 'uldum'\r\n\t| 'dalaran'\r\n\t| 'troll'\r\n\t| 'boomsday'\r\n\t| 'gilneas'\r\n\t| 'lootapalooza'\r\n\t| 'icecrown'\r\n\t| 'ungoro'\r\n\t| 'gangs'\r\n\t| 'kara'\r\n\t| 'og'\r\n\t| 'loe'\r\n\t| 'tgt'\r\n\t| 'brm'\r\n\t| 'gvg'\r\n\t| 'naxx'\r\n\t| 'core'\r\n\t| 'legacy'\r\n\t| 'vanilla';\r\n\r\nexport interface ReferenceSet {\r\n\treadonly id: SetId;\r\n\treadonly name: string;\r\n\treadonly launchDate: Date;\r\n\treadonly techSet?: boolean;\r\n}\r\n\r\nexport const sets: readonly ReferenceSet[] = [\r\n\t{\r\n\t\tid: 'perils_in_paradise',\r\n\t\tname: `Perils in Paradise`,\r\n\t\tlaunchDate: new Date('2024-06-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'boom_inventions',\r\n\t\tname: `Dr. Boom’s Incredible Inventions`,\r\n\t\tlaunchDate: new Date('2024-05-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'whizbangs_workshop',\r\n\t\tname: `Whizbang's Workshop`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t},\r\n\t{\r\n\t\tid: 'gift',\r\n\t\tname: `Gifts`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t\ttechSet: true,\r\n\t},\r\n\t{\r\n\t\tid: 'deepholm',\r\n\t\tname: `Delve into Deepholm`,\r\n\t\tlaunchDate: new Date('2024-01-18'),\r\n\t},\r\n\t{\r\n\t\tid: 'wild_west',\r\n\t\tname: `Showdown in the Badlands`,\r\n\t\tlaunchDate: new Date('2023-11-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'ulduar',\r\n\t\tname: `Fall of Ulduar`,\r\n\t\tlaunchDate: new Date('2023-09-19'),\r\n\t},\r\n\t{\r\n\t\tid: 'caverns_of_time',\r\n\t\tname: `Caverns of Time`,\r\n\t\tlaunchDate: new Date('2023-08-31'),\r\n\t},\r\n\t{\r\n\t\tid: 'titans',\r\n\t\tname: `TITANS`,\r\n\t\tlaunchDate: new Date('2023-06-27'),\r\n\t},\r\n\t{\r\n\t\tid: 'audiopocalypse',\r\n\t\tname: `Audiopocalypse`,\r\n\t\tlaunchDate: new Date('2023-05-31'),\r\n\t},\r\n\t{\r\n\t\tid: 'battle_of_the_bands',\r\n\t\tname: `Battle of the Bands`,\r\n\t\tlaunchDate: new Date('2023-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_to_naxxramas',\r\n\t\tname: `Return to Naxxramas`,\r\n\t\tlaunchDate: new Date('2023-02-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'path_of_arthas',\r\n\t\tname: `Path of Arthas`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_of_the_lich_king',\r\n\t\tname: `March of the Lich King`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'maw_and_disorder',\r\n\t\tname: `Maw and Disorder`,\r\n\t\tlaunchDate: new Date('2022-09-27'),\r\n\t},\r\n\t{\r\n\t\tid: 'revendreth',\r\n\t\tname: `Murder at Castle Nathria`,\r\n\t\tlaunchDate: new Date('2022-08-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'throne_of_tides',\r\n\t\tname: `Throne of the Tides`,\r\n\t\tlaunchDate: new Date('2022-06-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'the_sunken_city',\r\n\t\tname: `The Sunken City`,\r\n\t\tlaunchDate: new Date('2022-03-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'onyxias_lair',\r\n\t\tname: `Onyxia's Lair`,\r\n\t\tlaunchDate: new Date('2022-02-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'alterac_valley',\r\n\t\tname: 'Fractured in Alterac Valley',\r\n\t\tlaunchDate: new Date('2021-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'deadmines',\r\n\t\tname: 'Deadmines',\r\n\t\tlaunchDate: new Date('2021-11-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'stormwind',\r\n\t\tname: 'United in Stormwind',\r\n\t\tlaunchDate: new Date('2021-07-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'wailing_caverns',\r\n\t\tname: 'Wailing Caverns',\r\n\t\tlaunchDate: new Date('2021-06-03'),\r\n\t},\r\n\t{\r\n\t\tid: 'the_barrens',\r\n\t\tname: 'Forged in the Barrens',\r\n\t\tlaunchDate: new Date('2021-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_races',\r\n\t\tname: 'Darkmoon Races',\r\n\t\tlaunchDate: new Date('2021-01-21'),\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_faire',\r\n\t\tname: 'Darkmoon Faire',\r\n\t\tlaunchDate: new Date('2020-11-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'scholomance',\r\n\t\tname: 'Scholomance Academy',\r\n\t\tlaunchDate: new Date('2020-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'black_temple',\r\n\t\tname: 'Ashes of Outland',\r\n\t\tlaunchDate: new Date('2020-04-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'demon_hunter_initiate',\r\n\t\tname: 'Demon Hunter Initiate',\r\n\t\tlaunchDate: new Date('2020-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'yod',\r\n\t\tname: \"Galakrond's Awakening\",\r\n\t\tlaunchDate: new Date('2020-01-21'),\r\n\t},\r\n\t{\r\n\t\tid: 'dragons',\r\n\t\tname: 'Descent of Dragons',\r\n\t\tlaunchDate: new Date('2019-12-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'uldum',\r\n\t\tname: 'Saviors of Uldum',\r\n\t\tlaunchDate: new Date('2019-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'dalaran',\r\n\t\tname: 'Rise of Shadows',\r\n\t\tlaunchDate: new Date('2019-04-09'),\r\n\t},\r\n\t{\r\n\t\tid: 'troll',\r\n\t\tname: \"Rastakhan's Rumble\",\r\n\t\tlaunchDate: new Date('2018-12-04'),\r\n\t},\r\n\t{\r\n\t\tid: 'boomsday',\r\n\t\tname: 'The Boomsday Project',\r\n\t\tlaunchDate: new Date('2018-08-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'gilneas',\r\n\t\tname: 'The Witchwood',\r\n\t\tlaunchDate: new Date('2018-04-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'lootapalooza',\r\n\t\tname: 'Kobolds and Catacombs',\r\n\t\tlaunchDate: new Date('2017-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'icecrown',\r\n\t\tname: 'Knights of the Frozen Throne',\r\n\t\tlaunchDate: new Date('2017-08-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'ungoro',\r\n\t\tname: \"Journey to Un'Goro\",\r\n\t\tlaunchDate: new Date('2017-04-06'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'hof',\r\n\t// \tname: 'Hall of Fame',\r\n\t// \tlaunchDate: new Date('2017-04-04'),\r\n\t// },\r\n\t{\r\n\t\tid: 'gangs',\r\n\t\tname: 'Mean Streets of Gadgetzan',\r\n\t\tlaunchDate: new Date('2016-12-1'),\r\n\t},\r\n\t{\r\n\t\tid: 'kara',\r\n\t\tname: 'One Night in Karazhan',\r\n\t\tlaunchDate: new Date('2016-08-11'),\r\n\t},\r\n\t{\r\n\t\tid: 'og',\r\n\t\tname: 'Whispers of the Old Gods',\r\n\t\tlaunchDate: new Date('2016-04-26'),\r\n\t},\r\n\t{\r\n\t\tid: 'loe',\r\n\t\tname: 'League of Explorers',\r\n\t\tlaunchDate: new Date('2015-11-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'tgt',\r\n\t\tname: 'The Grand Tournament',\r\n\t\tlaunchDate: new Date('2015-08-24'),\r\n\t},\r\n\t{\r\n\t\tid: 'brm',\r\n\t\tname: 'Blackrock Mountain',\r\n\t\tlaunchDate: new Date('2015-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'gvg',\r\n\t\tname: 'Goblins vs Gnomes',\r\n\t\tlaunchDate: new Date('2014-12-08'),\r\n\t},\r\n\t{\r\n\t\tid: 'naxx',\r\n\t\tname: 'Naxxramas',\r\n\t\tlaunchDate: new Date('2014-07-22'),\r\n\t},\r\n\t{\r\n\t\tid: 'core',\r\n\t\tname: 'Core',\r\n\t\tlaunchDate: new Date('2021-03-25'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'expert1',\r\n\t// \tname: 'Expert',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t// {\r\n\t// \tid: 'basic',\r\n\t// \tname: 'Basic',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t{\r\n\t\tid: 'legacy',\r\n\t\tname: 'Legacy',\r\n\t\tlaunchDate: new Date('2021-03-30'),\r\n\t},\r\n] as const;\r\n\r\nexport const wildSets: readonly SetId[] = sets.map((s) => s.id);\r\nexport const standardSets: readonly SetId[] = [\r\n\t'core',\r\n\t'battle_of_the_bands',\r\n\t'audiopocalypse',\r\n\t'titans',\r\n\t'ulduar',\r\n\t'wild_west',\r\n\t'deepholm',\r\n\t'gift',\r\n\t'whizbangs_workshop',\r\n\t'boom_inventions',\r\n\t'perils_in_paradise',\r\n];\r\nexport const twistSets: readonly SetId[] = wildSets;\r\n// [\r\n// \t'core',\r\n// \t'naxx',\r\n// \t'gvg',\r\n// \t'brm',\r\n// \t'tgt',\r\n// \t'loe',\r\n// \t'og',\r\n// \t'kara',\r\n// \t'gangs',\r\n// \t'ungoro',\r\n// \t'icecrown',\r\n// \t'lootapalooza',\r\n// \t'gilneas',\r\n// \t'boomsday',\r\n// \t'troll',\r\n// \t'dalaran',\r\n// \t'uldum',\r\n// \t'dragons',\r\n// \t'yod',\r\n// \t'caverns_of_time',\r\n// ];\r\n// https://hearthstone.fandom.com/wiki/Arena#Arena_Rotation\r\nexport const arenaSets: readonly SetId[] = [\r\n\t'perils_in_paradise',\r\n\t'boom_inventions',\r\n\t'whizbangs_workshop',\r\n\t'gift',\r\n\t'deepholm',\r\n\t'wild_west',\r\n\t'ulduar',\r\n\t'caverns_of_time',\r\n\t'titans',\r\n\t'audiopocalypse',\r\n\t'battle_of_the_bands',\r\n\t'return_to_naxxramas',\r\n\t'path_of_arthas',\r\n\t'return_of_the_lich_king',\r\n\t'maw_and_disorder',\r\n\t'revendreth',\r\n\t'throne_of_tides',\r\n\t'the_sunken_city',\r\n\t'onyxias_lair',\r\n\t'alterac_valley',\r\n\t'deadmines',\r\n\t'stormwind',\r\n\t'wailing_caverns',\r\n\t'the_barrens',\r\n\t'darkmoon_races',\r\n\t'darkmoon_faire',\r\n\t'scholomance',\r\n\t'black_temple',\r\n];\r\nexport const duelsSets: readonly SetId[] = [\r\n\t'core',\r\n\t'legacy',\r\n\t'naxx',\r\n\t'gvg',\r\n\t'loe',\r\n\t'og',\r\n\t'kara',\r\n\t'ungoro',\r\n\t'icecrown',\r\n\t'lootapalooza',\r\n\t'gilneas',\r\n\t'uldum',\r\n\t'scholomance',\r\n\t'demon_hunter_initiate',\r\n\t'darkmoon_faire',\r\n\t'darkmoon_races',\r\n\t'the_barrens',\r\n\t'wailing_caverns',\r\n\t'stormwind',\r\n\t'black_temple',\r\n\t'deadmines',\r\n\t'alterac_valley',\r\n\t'onyxias_lair',\r\n\t'the_sunken_city',\r\n\t'throne_of_tides',\r\n\t'revendreth',\r\n\t'maw_and_disorder',\r\n\t'return_of_the_lich_king',\r\n\t'return_to_naxxramas',\r\n\t'path_of_arthas',\r\n\t'battle_of_the_bands',\r\n\t'audiopocalypse',\r\n\t'troll',\r\n\t'titans',\r\n\t'caverns_of_time',\r\n\t'ulduar',\r\n\t'dalaran',\r\n\t'gangs',\r\n\t'tgt',\r\n\t'brm',\r\n\t'dragons',\r\n\t'yod',\r\n\t'wild_west',\r\n\t'deepholm',\r\n\t// 'whizbangs_workshop',\r\n];\r\n\r\nexport const vanillaSets: readonly SetId[] = ['vanilla'];\r\n"]}
1
+ {"version":3,"file":"reference-sets.js","sourceRoot":"","sources":["../../../src/models/reference-cards/reference-sets.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AA6DjC,QAAA,IAAI,GAA4B;IAC5C;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QAClC,OAAO,EAAE,IAAI;KACb;IACD;QACC,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KAClC;IACD;QACC,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAA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,MAAM,EAAE;QACf,KAAK,uBAAU,CAAC,WAAW;YAC1B,OAAO,oBAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnC,KAAK,uBAAU,CAAC,QAAQ;YACvB,OAAO,iBAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChC,KAAK,uBAAU,CAAC,OAAO,CAAC;QACxB;YACC,OAAO,gBAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;KAC/B;IACD,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAXW,QAAA,UAAU,cAWrB","sourcesContent":["import { GameFormat } from '../../public-api';\r\n\r\nexport type SetId =\r\n\t| 'perils_in_paradise'\r\n\t| 'boom_inventions'\r\n\t| 'whizbangs_workshop'\r\n\t| 'gift'\r\n\t| 'deepholm'\r\n\t| 'wild_west'\r\n\t| 'ulduar'\r\n\t| 'caverns_of_time'\r\n\t| 'titans'\r\n\t| 'audiopocalypse'\r\n\t| 'battle_of_the_bands'\r\n\t| 'return_to_naxxramas'\r\n\t| 'path_of_arthas'\r\n\t| 'return_of_the_lich_king'\r\n\t| 'maw_and_disorder'\r\n\t| 'revendreth'\r\n\t| 'throne_of_tides'\r\n\t| 'the_sunken_city'\r\n\t| 'onyxias_lair'\r\n\t| 'alterac_valley'\r\n\t| 'deadmines'\r\n\t| 'stormwind'\r\n\t| 'wailing_caverns'\r\n\t| 'the_barrens'\r\n\t| 'darkmoon_races'\r\n\t| 'darkmoon_faire'\r\n\t| 'scholomance'\r\n\t| 'black_temple'\r\n\t| 'demon_hunter_initiate'\r\n\t| 'yod'\r\n\t| 'dragons'\r\n\t| 'uldum'\r\n\t| 'dalaran'\r\n\t| 'troll'\r\n\t| 'boomsday'\r\n\t| 'gilneas'\r\n\t| 'lootapalooza'\r\n\t| 'icecrown'\r\n\t| 'ungoro'\r\n\t| 'gangs'\r\n\t| 'kara'\r\n\t| 'og'\r\n\t| 'loe'\r\n\t| 'tgt'\r\n\t| 'brm'\r\n\t| 'gvg'\r\n\t| 'naxx'\r\n\t| 'core'\r\n\t| 'legacy'\r\n\t| 'vanilla';\r\n\r\nexport interface ReferenceSet {\r\n\treadonly id: SetId;\r\n\treadonly name: string;\r\n\treadonly launchDate: Date;\r\n\treadonly techSet?: boolean;\r\n}\r\n\r\nexport const sets: readonly ReferenceSet[] = [\r\n\t{\r\n\t\tid: 'perils_in_paradise',\r\n\t\tname: `Perils in Paradise`,\r\n\t\tlaunchDate: new Date('2024-06-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'boom_inventions',\r\n\t\tname: `Dr. Boom’s Incredible Inventions`,\r\n\t\tlaunchDate: new Date('2024-05-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'whizbangs_workshop',\r\n\t\tname: `Whizbang's Workshop`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t},\r\n\t{\r\n\t\tid: 'gift',\r\n\t\tname: `Gifts`,\r\n\t\tlaunchDate: new Date('2024-02-13'),\r\n\t\ttechSet: true,\r\n\t},\r\n\t{\r\n\t\tid: 'deepholm',\r\n\t\tname: `Delve into Deepholm`,\r\n\t\tlaunchDate: new Date('2024-01-18'),\r\n\t},\r\n\t{\r\n\t\tid: 'wild_west',\r\n\t\tname: `Showdown in the Badlands`,\r\n\t\tlaunchDate: new Date('2023-11-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'ulduar',\r\n\t\tname: `Fall of Ulduar`,\r\n\t\tlaunchDate: new Date('2023-09-19'),\r\n\t},\r\n\t{\r\n\t\tid: 'caverns_of_time',\r\n\t\tname: `Caverns of Time`,\r\n\t\tlaunchDate: new Date('2023-08-31'),\r\n\t},\r\n\t{\r\n\t\tid: 'titans',\r\n\t\tname: `TITANS`,\r\n\t\tlaunchDate: new Date('2023-06-27'),\r\n\t},\r\n\t{\r\n\t\tid: 'audiopocalypse',\r\n\t\tname: `Audiopocalypse`,\r\n\t\tlaunchDate: new Date('2023-05-31'),\r\n\t},\r\n\t{\r\n\t\tid: 'battle_of_the_bands',\r\n\t\tname: `Battle of the Bands`,\r\n\t\tlaunchDate: new Date('2023-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_to_naxxramas',\r\n\t\tname: `Return to Naxxramas`,\r\n\t\tlaunchDate: new Date('2023-02-14'),\r\n\t},\r\n\t{\r\n\t\tid: 'path_of_arthas',\r\n\t\tname: `Path of Arthas`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'return_of_the_lich_king',\r\n\t\tname: `March of the Lich King`,\r\n\t\tlaunchDate: new Date('2022-11-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'maw_and_disorder',\r\n\t\tname: `Maw and Disorder`,\r\n\t\tlaunchDate: new Date('2022-09-27'),\r\n\t},\r\n\t{\r\n\t\tid: 'revendreth',\r\n\t\tname: `Murder at Castle Nathria`,\r\n\t\tlaunchDate: new Date('2022-08-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'throne_of_tides',\r\n\t\tname: `Throne of the Tides`,\r\n\t\tlaunchDate: new Date('2022-06-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'the_sunken_city',\r\n\t\tname: `The Sunken City`,\r\n\t\tlaunchDate: new Date('2022-03-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'onyxias_lair',\r\n\t\tname: `Onyxia's Lair`,\r\n\t\tlaunchDate: new Date('2022-02-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'alterac_valley',\r\n\t\tname: 'Fractured in Alterac Valley',\r\n\t\tlaunchDate: new Date('2021-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'deadmines',\r\n\t\tname: 'Deadmines',\r\n\t\tlaunchDate: new Date('2021-11-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'stormwind',\r\n\t\tname: 'United in Stormwind',\r\n\t\tlaunchDate: new Date('2021-07-01'),\r\n\t},\r\n\t{\r\n\t\tid: 'wailing_caverns',\r\n\t\tname: 'Wailing Caverns',\r\n\t\tlaunchDate: new Date('2021-06-03'),\r\n\t},\r\n\t{\r\n\t\tid: 'the_barrens',\r\n\t\tname: 'Forged in the Barrens',\r\n\t\tlaunchDate: new Date('2021-03-15'),\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_races',\r\n\t\tname: 'Darkmoon Races',\r\n\t\tlaunchDate: new Date('2021-01-21'),\r\n\t},\r\n\t{\r\n\t\tid: 'darkmoon_faire',\r\n\t\tname: 'Darkmoon Faire',\r\n\t\tlaunchDate: new Date('2020-11-17'),\r\n\t},\r\n\t{\r\n\t\tid: 'scholomance',\r\n\t\tname: 'Scholomance Academy',\r\n\t\tlaunchDate: new Date('2020-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'black_temple',\r\n\t\tname: 'Ashes of Outland',\r\n\t\tlaunchDate: new Date('2020-04-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'demon_hunter_initiate',\r\n\t\tname: 'Demon Hunter Initiate',\r\n\t\tlaunchDate: new Date('2020-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'yod',\r\n\t\tname: \"Galakrond's Awakening\",\r\n\t\tlaunchDate: new Date('2020-01-21'),\r\n\t},\r\n\t{\r\n\t\tid: 'dragons',\r\n\t\tname: 'Descent of Dragons',\r\n\t\tlaunchDate: new Date('2019-12-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'uldum',\r\n\t\tname: 'Saviors of Uldum',\r\n\t\tlaunchDate: new Date('2019-08-06'),\r\n\t},\r\n\t{\r\n\t\tid: 'dalaran',\r\n\t\tname: 'Rise of Shadows',\r\n\t\tlaunchDate: new Date('2019-04-09'),\r\n\t},\r\n\t{\r\n\t\tid: 'troll',\r\n\t\tname: \"Rastakhan's Rumble\",\r\n\t\tlaunchDate: new Date('2018-12-04'),\r\n\t},\r\n\t{\r\n\t\tid: 'boomsday',\r\n\t\tname: 'The Boomsday Project',\r\n\t\tlaunchDate: new Date('2018-08-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'gilneas',\r\n\t\tname: 'The Witchwood',\r\n\t\tlaunchDate: new Date('2018-04-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'lootapalooza',\r\n\t\tname: 'Kobolds and Catacombs',\r\n\t\tlaunchDate: new Date('2017-12-07'),\r\n\t},\r\n\t{\r\n\t\tid: 'icecrown',\r\n\t\tname: 'Knights of the Frozen Throne',\r\n\t\tlaunchDate: new Date('2017-08-10'),\r\n\t},\r\n\t{\r\n\t\tid: 'ungoro',\r\n\t\tname: \"Journey to Un'Goro\",\r\n\t\tlaunchDate: new Date('2017-04-06'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'hof',\r\n\t// \tname: 'Hall of Fame',\r\n\t// \tlaunchDate: new Date('2017-04-04'),\r\n\t// },\r\n\t{\r\n\t\tid: 'gangs',\r\n\t\tname: 'Mean Streets of Gadgetzan',\r\n\t\tlaunchDate: new Date('2016-12-1'),\r\n\t},\r\n\t{\r\n\t\tid: 'kara',\r\n\t\tname: 'One Night in Karazhan',\r\n\t\tlaunchDate: new Date('2016-08-11'),\r\n\t},\r\n\t{\r\n\t\tid: 'og',\r\n\t\tname: 'Whispers of the Old Gods',\r\n\t\tlaunchDate: new Date('2016-04-26'),\r\n\t},\r\n\t{\r\n\t\tid: 'loe',\r\n\t\tname: 'League of Explorers',\r\n\t\tlaunchDate: new Date('2015-11-12'),\r\n\t},\r\n\t{\r\n\t\tid: 'tgt',\r\n\t\tname: 'The Grand Tournament',\r\n\t\tlaunchDate: new Date('2015-08-24'),\r\n\t},\r\n\t{\r\n\t\tid: 'brm',\r\n\t\tname: 'Blackrock Mountain',\r\n\t\tlaunchDate: new Date('2015-04-02'),\r\n\t},\r\n\t{\r\n\t\tid: 'gvg',\r\n\t\tname: 'Goblins vs Gnomes',\r\n\t\tlaunchDate: new Date('2014-12-08'),\r\n\t},\r\n\t{\r\n\t\tid: 'naxx',\r\n\t\tname: 'Naxxramas',\r\n\t\tlaunchDate: new Date('2014-07-22'),\r\n\t},\r\n\t{\r\n\t\tid: 'core',\r\n\t\tname: 'Core',\r\n\t\tlaunchDate: new Date('2021-03-25'),\r\n\t},\r\n\t// {\r\n\t// \tid: 'expert1',\r\n\t// \tname: 'Expert',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t// {\r\n\t// \tid: 'basic',\r\n\t// \tname: 'Basic',\r\n\t// \tlaunchDate: new Date('2014-03-11'),\r\n\t// },\r\n\t{\r\n\t\tid: 'legacy',\r\n\t\tname: 'Legacy',\r\n\t\tlaunchDate: new Date('2021-03-30'),\r\n\t},\r\n] as const;\r\n\r\nexport const wildSets: readonly SetId[] = sets.map((s) => s.id);\r\nexport const standardSets: readonly SetId[] = [\r\n\t'core',\r\n\t'battle_of_the_bands',\r\n\t'audiopocalypse',\r\n\t'titans',\r\n\t'ulduar',\r\n\t'wild_west',\r\n\t'deepholm',\r\n\t'gift',\r\n\t'whizbangs_workshop',\r\n\t'boom_inventions',\r\n\t'perils_in_paradise',\r\n];\r\nexport const twistSets: readonly SetId[] = wildSets;\r\n// [\r\n// \t'core',\r\n// \t'naxx',\r\n// \t'gvg',\r\n// \t'brm',\r\n// \t'tgt',\r\n// \t'loe',\r\n// \t'og',\r\n// \t'kara',\r\n// \t'gangs',\r\n// \t'ungoro',\r\n// \t'icecrown',\r\n// \t'lootapalooza',\r\n// \t'gilneas',\r\n// \t'boomsday',\r\n// \t'troll',\r\n// \t'dalaran',\r\n// \t'uldum',\r\n// \t'dragons',\r\n// \t'yod',\r\n// \t'caverns_of_time',\r\n// ];\r\n// https://hearthstone.fandom.com/wiki/Arena#Arena_Rotation\r\nexport const arenaSets: readonly SetId[] = [\r\n\t'perils_in_paradise',\r\n\t'boom_inventions',\r\n\t'whizbangs_workshop',\r\n\t'gift',\r\n\t'deepholm',\r\n\t'wild_west',\r\n\t'ulduar',\r\n\t'caverns_of_time',\r\n\t'titans',\r\n\t'audiopocalypse',\r\n\t'battle_of_the_bands',\r\n\t'return_to_naxxramas',\r\n\t'path_of_arthas',\r\n\t'return_of_the_lich_king',\r\n\t'maw_and_disorder',\r\n\t'revendreth',\r\n\t'throne_of_tides',\r\n\t'the_sunken_city',\r\n\t'onyxias_lair',\r\n\t'alterac_valley',\r\n\t'deadmines',\r\n\t'stormwind',\r\n\t'wailing_caverns',\r\n\t'the_barrens',\r\n\t'darkmoon_races',\r\n\t'darkmoon_faire',\r\n\t'scholomance',\r\n\t'black_temple',\r\n];\r\nexport const duelsSets: readonly SetId[] = [\r\n\t'core',\r\n\t'legacy',\r\n\t'naxx',\r\n\t'gvg',\r\n\t'loe',\r\n\t'og',\r\n\t'kara',\r\n\t'ungoro',\r\n\t'icecrown',\r\n\t'lootapalooza',\r\n\t'gilneas',\r\n\t'uldum',\r\n\t'scholomance',\r\n\t'demon_hunter_initiate',\r\n\t'darkmoon_faire',\r\n\t'darkmoon_races',\r\n\t'the_barrens',\r\n\t'wailing_caverns',\r\n\t'stormwind',\r\n\t'black_temple',\r\n\t'deadmines',\r\n\t'alterac_valley',\r\n\t'onyxias_lair',\r\n\t'the_sunken_city',\r\n\t'throne_of_tides',\r\n\t'revendreth',\r\n\t'maw_and_disorder',\r\n\t'return_of_the_lich_king',\r\n\t'return_to_naxxramas',\r\n\t'path_of_arthas',\r\n\t'battle_of_the_bands',\r\n\t'audiopocalypse',\r\n\t'troll',\r\n\t'titans',\r\n\t'caverns_of_time',\r\n\t'ulduar',\r\n\t'dalaran',\r\n\t'gangs',\r\n\t'tgt',\r\n\t'brm',\r\n\t'dragons',\r\n\t'yod',\r\n\t'wild_west',\r\n\t'deepholm',\r\n\t// 'whizbangs_workshop',\r\n];\r\n\r\nexport const vanillaSets: readonly SetId[] = ['vanilla'];\r\n\r\nexport const isValidSet = (set: SetId, format: GameFormat): boolean => {\r\n\tswitch (format) {\r\n\t\tcase GameFormat.FT_STANDARD:\r\n\t\t\treturn standardSets.includes(set);\r\n\t\tcase GameFormat.FT_TWIST:\r\n\t\t\treturn twistSets.includes(set);\r\n\t\tcase GameFormat.FT_WILD:\r\n\t\tdefault:\r\n\t\t\treturn wildSets.includes(set);\r\n\t}\r\n\treturn false;\r\n};\r\n"]}
@@ -1,5 +1,7 @@
1
+ import { AllCardsService, GameFormat } from '../../public-api';
1
2
  import { ReferenceCard } from './reference-card';
2
3
  export declare type RelatedCardExtractor = (cards: readonly ReferenceCard[]) => readonly string[];
3
4
  export declare const RELATED_CARDS_DATA: {
4
5
  [cardId: string]: readonly (string | RelatedCardExtractor)[];
5
6
  };
7
+ export declare const getDynamicRelatedCardIds: (cardId: string, allCards: AllCardsService, format: GameFormat) => readonly string[];
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RELATED_CARDS_DATA = void 0;
3
+ exports.getDynamicRelatedCardIds = exports.RELATED_CARDS_DATA = void 0;
4
+ const public_api_1 = require("../../public-api");
4
5
  const reference_data_1 = require("./reference-data");
5
6
  const ADVENTURER_TOKENS = [
6
7
  "WC_034t2",
@@ -3092,10 +3093,10 @@ exports.RELATED_CARDS_DATA = {
3092
3093
  ["RLK_226"]: ["RLK_226t"],
3093
3094
  ["LEG_RLK_226"]: ["RLK_226t"],
3094
3095
  ["THD_026p"]: [
3095
- "UNG_211d",
3096
- "UNG_211a",
3097
- "UNG_211c",
3098
- "UNG_211b",
3096
+ "AV_258t",
3097
+ "AV_258t2",
3098
+ "AV_258t3",
3099
+ "AV_258t4",
3099
3100
  ],
3100
3101
  ["VAC_702"]: [
3101
3102
  "VAC_702t",
@@ -3104,4 +3105,16 @@ exports.RELATED_CARDS_DATA = {
3104
3105
  "VAC_702t4",
3105
3106
  ],
3106
3107
  };
3108
+ const getDynamicRelatedCardIds = (cardId, allCards, format) => {
3109
+ switch (cardId) {
3110
+ case "WW_379":
3111
+ return allCards
3112
+ .getCards()
3113
+ .filter((c) => { var _a; return (_a = c === null || c === void 0 ? void 0 : c.mechanics) === null || _a === void 0 ? void 0 : _a.includes(public_api_1.GameTag[public_api_1.GameTag.QUICKDRAW]); })
3114
+ .filter((c) => c.collectible)
3115
+ .filter((c) => public_api_1.isValidSet(c.set, format))
3116
+ .map((c) => c.id);
3117
+ }
3118
+ };
3119
+ exports.getDynamicRelatedCardIds = getDynamicRelatedCardIds;
3107
3120
  //# sourceMappingURL=related-cards-data.js.map