@pokepc/dataset 6.6.0 → 6.7.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/build/{box-preset-sanitizer-GjGde3eW.mjs → box-preset-sanitizer-DHGv5TJj.mjs} +2 -2
- package/build/{box-preset-sanitizer-GjGde3eW.mjs.map → box-preset-sanitizer-DHGv5TJj.mjs.map} +1 -1
- package/build/box-preset-sanitizer-kg68JZPB.d.mts.map +1 -1
- package/build/{build-DeFbpXmN.mjs → build-DvGzwIK8.mjs} +74 -17
- package/build/build-DvGzwIK8.mjs.map +1 -0
- package/build/{build-GIV09lTc.mjs → build-bE_0_-0H.mjs} +4 -10
- package/build/{build-GIV09lTc.mjs.map → build-bE_0_-0H.mjs.map} +1 -1
- package/build/enums-CCbmORM6.d.mts.map +1 -1
- package/build/lib/box-preset-sanitizer.mjs +1 -1
- package/build/lib/box-preset-transform.d.mts +4 -6
- package/build/lib/box-preset-transform.d.mts.map +1 -1
- package/build/lib/box-preset-transform.mjs +2 -2
- package/build/lib/constants.d.mts +3 -4
- package/build/lib/constants.d.mts.map +1 -1
- package/build/lib/fs.d.mts +48 -49
- package/build/lib/fs.d.mts.map +1 -1
- package/build/lib/fs.mjs +3 -3
- package/build/lib/fs.mjs.map +1 -1
- package/build/lib/languages.d.mts +11 -12
- package/build/lib/languages.d.mts.map +1 -1
- package/build/lib/schemas.d.mts +1 -1
- package/build/lib/schemas.mjs +1 -1
- package/build/lib/search.d.mts +2 -3
- package/build/lib/search.d.mts.map +1 -1
- package/build/lib/search.mjs.map +1 -1
- package/build/lib/types.d.mts +34 -34
- package/build/lib/types.d.mts.map +1 -1
- package/build/lib/utils.d.mts +16 -17
- package/build/lib/utils.d.mts.map +1 -1
- package/build/lib/validators.d.mts +1 -1
- package/build/lib-next/_build.d.mts +1 -1
- package/build/lib-next/_build.mjs +2 -2
- package/build/lib-next/enums.d.mts +41 -42
- package/build/lib-next/enums.d.mts.map +1 -1
- package/build/lib-next/fs.d.mts +3 -4
- package/build/lib-next/fs.d.mts.map +1 -1
- package/build/lib-next/languages.d.mts +17 -18
- package/build/lib-next/languages.d.mts.map +1 -1
- package/build/lib-next/schemas.d.mts +222 -224
- package/build/lib-next/schemas.d.mts.map +1 -1
- package/build/lib-next/schemas.mjs +1 -1
- package/build/schemas-Bj1AIX0P.mjs +93 -0
- package/build/schemas-Bj1AIX0P.mjs.map +1 -0
- package/build/schemas-CDSWgtoj.d.mts +804 -0
- package/build/schemas-CDSWgtoj.d.mts.map +1 -0
- package/build/schemas-CcUqoHNr.mjs +349 -0
- package/build/schemas-CcUqoHNr.mjs.map +1 -0
- package/build/utils-BwovRocd.mjs.map +1 -1
- package/data/abilities.json +9 -0
- package/data/games/champions.json +5 -1
- package/data/indices/pokedexes.json +2 -1
- package/data/pokedexes/champions-regular-roster-m-b.json +3 -0
- package/data/pokedexes/champions-regular-roster-m-c.json +490 -0
- package/data/pokemon/absol-mega-z.json +1 -3
- package/data/pokemon/arboliva.json +1 -1
- package/data/pokemon/baxcalibur-mega.json +0 -1
- package/data/pokemon/baxcalibur.json +1 -1
- package/data/pokemon/cinderace.json +1 -1
- package/data/pokemon/farfetchd.json +2 -1
- package/data/pokemon/garchomp-mega-z.json +2 -2
- package/data/pokemon/gogoat.json +2 -1
- package/data/pokemon/golisopod-mega.json +1 -1
- package/data/pokemon/golisopod.json +12 -1
- package/data/pokemon/grapploct.json +1 -1
- package/data/pokemon/indeedee-f.json +1 -1
- package/data/pokemon/indeedee.json +1 -1
- package/data/pokemon/inteleon.json +1 -1
- package/data/pokemon/lucario-mega-z.json +1 -3
- package/data/pokemon/mabosstiff.json +1 -1
- package/data/pokemon/mrmime.json +2 -1
- package/data/pokemon/pawmot.json +1 -1
- package/data/pokemon/perrserker.json +1 -1
- package/data/pokemon/persian-alola.json +2 -1
- package/data/pokemon/persian.json +2 -1
- package/data/pokemon/pincurchin.json +1 -1
- package/data/pokemon/pyroar-f.json +7 -2
- package/data/pokemon/pyroar.json +2 -1
- package/data/pokemon/rillaboom.json +1 -1
- package/data/pokemon/salamence.json +2 -1
- package/data/pokemon/sirfetchd.json +1 -1
- package/data/pokemon/squawkabilly-blue.json +1 -1
- package/data/pokemon/squawkabilly-white.json +1 -1
- package/data/pokemon/squawkabilly-yellow.json +1 -1
- package/data/pokemon/squawkabilly.json +6 -2
- package/data/pokemon/swalot-f.json +7 -2
- package/data/pokemon/swalot.json +2 -1
- package/data/pokemon/thievul.json +1 -1
- package/data/pokemon/toxtricity-low-key.json +1 -1
- package/data/pokemon/toxtricity.json +1 -1
- package/data/pokemon/wigglytuff.json +2 -1
- package/data-next/champions/abilities.json +8 -0
- package/data-next/champions/i18n/chs/abilities.json +7 -0
- package/data-next/champions/i18n/cht/abilities.json +7 -0
- package/data-next/champions/i18n/deu/abilities.json +7 -0
- package/data-next/champions/i18n/eng/abilities.json +7 -0
- package/data-next/champions/i18n/es-es/abilities.json +7 -0
- package/data-next/champions/i18n/es-la/abilities.json +7 -0
- package/data-next/champions/i18n/fra/abilities.json +7 -0
- package/data-next/champions/i18n/ita/abilities.json +7 -0
- package/data-next/champions/i18n/jpn/abilities.json +7 -0
- package/data-next/champions/i18n/kor/abilities.json +7 -0
- package/data-next/champions/i18n/pt-br/abilities.json +7 -0
- package/data-next/champions/moves.json +1 -0
- package/package.json +10 -10
- package/build/build-DeFbpXmN.mjs.map +0 -1
- package/build/schemas-B4fI9u0f.mjs +0 -93
- package/build/schemas-B4fI9u0f.mjs.map +0 -1
- package/build/schemas-CiojUbKN.d.mts +0 -805
- package/build/schemas-CiojUbKN.d.mts.map +0 -1
- package/build/schemas-Dt7FbAMy.mjs +0 -349
- package/build/schemas-Dt7FbAMy.mjs.map +0 -1
package/build/lib/schemas.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as pokemonSchema, C as onlineFeaturesSchema, D as pokedexEntrySchema, E as pokeballSchema, M as regionSchema, N as ribbonSchema, O as pokedexSchema, P as typeSchema, S as natureSchema, T as personalitySchema, _ as modernBoxPresetIndexSchema, a as boxPresetMapSchema, b as modernBoxPresetTags, c as colorSchema, d as generationSchema, f as i18nTextSchema, g as modernBoxPresetBoxSchema, h as markSchema, i as boxPresetIndexItemSchema, j as pokemonSearchFilterSchema, k as pokemonRefsSchema, l as gameFeaturesSchema, m as languageSchema, n as boxPresetBoxPokemonSchema, o as boxPresetSchema, p as itemSchema, r as boxPresetBoxSchema, s as characterSchema, t as abilitySchema, u as gameSchema, v as modernBoxPresetSchema, w as originMarkSchema, x as moveSchema, y as modernBoxPresetSlotSchema } from "../schemas-
|
|
1
|
+
import { A as pokemonSchema, C as onlineFeaturesSchema, D as pokedexEntrySchema, E as pokeballSchema, M as regionSchema, N as ribbonSchema, O as pokedexSchema, P as typeSchema, S as natureSchema, T as personalitySchema, _ as modernBoxPresetIndexSchema, a as boxPresetMapSchema, b as modernBoxPresetTags, c as colorSchema, d as generationSchema, f as i18nTextSchema, g as modernBoxPresetBoxSchema, h as markSchema, i as boxPresetIndexItemSchema, j as pokemonSearchFilterSchema, k as pokemonRefsSchema, l as gameFeaturesSchema, m as languageSchema, n as boxPresetBoxPokemonSchema, o as boxPresetSchema, p as itemSchema, r as boxPresetBoxSchema, s as characterSchema, t as abilitySchema, u as gameSchema, v as modernBoxPresetSchema, w as originMarkSchema, x as moveSchema, y as modernBoxPresetSlotSchema } from "../schemas-CDSWgtoj.mjs";
|
|
2
2
|
export { abilitySchema, boxPresetBoxPokemonSchema, boxPresetBoxSchema, boxPresetIndexItemSchema, boxPresetMapSchema, boxPresetSchema, characterSchema, colorSchema, gameFeaturesSchema, gameSchema, generationSchema, i18nTextSchema, itemSchema, languageSchema, markSchema, modernBoxPresetBoxSchema, modernBoxPresetIndexSchema, modernBoxPresetSchema, modernBoxPresetSlotSchema, modernBoxPresetTags, moveSchema, natureSchema, onlineFeaturesSchema, originMarkSchema, personalitySchema, pokeballSchema, pokedexEntrySchema, pokedexSchema, pokemonRefsSchema, pokemonSchema, pokemonSearchFilterSchema, regionSchema, ribbonSchema, typeSchema };
|
package/build/lib/schemas.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as pokemonSchema, C as onlineFeaturesSchema, D as pokedexEntrySchema, E as pokeballSchema, M as regionSchema, N as ribbonSchema, O as pokedexSchema, P as typeSchema, S as natureSchema, T as personalitySchema, _ as modernBoxPresetIndexSchema, a as boxPresetMapSchema, b as modernBoxPresetTags, c as colorSchema, d as generationSchema, f as i18nTextSchema, g as modernBoxPresetBoxSchema, h as markSchema, i as boxPresetIndexItemSchema, j as pokemonSearchFilterSchema, k as pokemonRefsSchema, l as gameFeaturesSchema, m as languageSchema, n as boxPresetBoxPokemonSchema, o as boxPresetSchema, p as itemSchema, r as boxPresetBoxSchema, s as characterSchema, t as abilitySchema, u as gameSchema, v as modernBoxPresetSchema, w as originMarkSchema, x as moveSchema, y as modernBoxPresetSlotSchema } from "../schemas-
|
|
1
|
+
import { A as pokemonSchema, C as onlineFeaturesSchema, D as pokedexEntrySchema, E as pokeballSchema, M as regionSchema, N as ribbonSchema, O as pokedexSchema, P as typeSchema, S as natureSchema, T as personalitySchema, _ as modernBoxPresetIndexSchema, a as boxPresetMapSchema, b as modernBoxPresetTags, c as colorSchema, d as generationSchema, f as i18nTextSchema, g as modernBoxPresetBoxSchema, h as markSchema, i as boxPresetIndexItemSchema, j as pokemonSearchFilterSchema, k as pokemonRefsSchema, l as gameFeaturesSchema, m as languageSchema, n as boxPresetBoxPokemonSchema, o as boxPresetSchema, p as itemSchema, r as boxPresetBoxSchema, s as characterSchema, t as abilitySchema, u as gameSchema, v as modernBoxPresetSchema, w as originMarkSchema, x as moveSchema, y as modernBoxPresetSlotSchema } from "../schemas-CcUqoHNr.mjs";
|
|
2
2
|
export { abilitySchema, boxPresetBoxPokemonSchema, boxPresetBoxSchema, boxPresetIndexItemSchema, boxPresetMapSchema, boxPresetSchema, characterSchema, colorSchema, gameFeaturesSchema, gameSchema, generationSchema, i18nTextSchema, itemSchema, languageSchema, markSchema, modernBoxPresetBoxSchema, modernBoxPresetIndexSchema, modernBoxPresetSchema, modernBoxPresetSlotSchema, modernBoxPresetTags, moveSchema, natureSchema, onlineFeaturesSchema, originMarkSchema, personalitySchema, pokeballSchema, pokedexEntrySchema, pokedexSchema, pokemonRefsSchema, pokemonSchema, pokemonSearchFilterSchema, regionSchema, ribbonSchema, typeSchema };
|
package/build/lib/search.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region src/lib/search.d.ts
|
|
2
|
-
declare function searchPokemon(pokemon: Array<Pkds.TranslatedPokemon>, filters: Partial<Pkds.PokemonSearchFilter>, requiresSearchString?: boolean): Pkds.PokemonSearchResults;
|
|
3
|
-
declare function createSearchablePokemonList(pokemon: Array<Pkds.Pokemon>): Array<Pkds.TranslatedPokemon>;
|
|
2
|
+
export declare function searchPokemon(pokemon: Array<Pkds.TranslatedPokemon>, filters: Partial<Pkds.PokemonSearchFilter>, requiresSearchString?: boolean): Pkds.PokemonSearchResults;
|
|
3
|
+
export declare function createSearchablePokemonList(pokemon: Array<Pkds.Pokemon>): Array<Pkds.TranslatedPokemon>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { createSearchablePokemonList, searchPokemon };
|
|
6
5
|
//# sourceMappingURL=search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/lib/search.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/lib/search.ts"],"mappings":";wBAKgB,cACd,SAAS,MAAM,KAAK,oBACpB,SAAS,QAAQ,KAAK,sBACtB,iCACC,KAAK;wBA8BQ,4BACd,SAAS,MAAM,KAAK,WACnB,MAAM,KAAK"}
|
package/build/lib/search.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/lib/search.ts"],"sourcesContent":["import { dexNumToGen, formatDexNum, generatePokemonSearchableText } from './utils'\nimport { matchesSearchQuery, sanitizeSearchQuery } from '../utils/utils-internal'\n\nconst MIN_SEARCH_LENGTH = 2\n\nexport function searchPokemon(\n pokemon: Array<Pkds.TranslatedPokemon>,\n filters: Partial<Pkds.PokemonSearchFilter>,\n requiresSearchString: boolean = true,\n): Pkds.PokemonSearchResults {\n const searchQuery = sanitizeSearchQuery(filters.q ?? '')\n\n if (requiresSearchString && searchQuery.length < MIN_SEARCH_LENGTH) {\n return {\n pokemon: pokemon,\n meta: { total: pokemon.length, skipped: true },\n }\n }\n\n const filteredPokes = pokemon.filter((p) => {\n // const filterGen = filter.q ? 0 : (filter.gen ?? 0)\n const filterGen = filters.gen ?? 0\n\n if (!filters.forms && p.isForm) return false\n if (filters.color && p.color.toLowerCase() !== filters.color.toLowerCase()) return false\n if (filters.type && ![p.type1, p.type2].filter(Boolean).includes(filters.type)) return false\n if (filterGen > 0 && p.speciesGen !== filters.gen) return false\n\n if (filters.q && !matchesSearchQuery(p.searchableText, filters.q)) return false\n\n return true\n })\n\n return {\n pokemon: filteredPokes,\n meta: { total: pokemon.length, skipped: false },\n }\n}\n\nexport function createSearchablePokemonList(\n pokemon: Array<Pkds.Pokemon>,\n): Array<Pkds.TranslatedPokemon> {\n return pokemon.map(
|
|
1
|
+
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/lib/search.ts"],"sourcesContent":["import { dexNumToGen, formatDexNum, generatePokemonSearchableText } from './utils'\nimport { matchesSearchQuery, sanitizeSearchQuery } from '../utils/utils-internal'\n\nconst MIN_SEARCH_LENGTH = 2\n\nexport function searchPokemon(\n pokemon: Array<Pkds.TranslatedPokemon>,\n filters: Partial<Pkds.PokemonSearchFilter>,\n requiresSearchString: boolean = true,\n): Pkds.PokemonSearchResults {\n const searchQuery = sanitizeSearchQuery(filters.q ?? '')\n\n if (requiresSearchString && searchQuery.length < MIN_SEARCH_LENGTH) {\n return {\n pokemon: pokemon,\n meta: { total: pokemon.length, skipped: true },\n }\n }\n\n const filteredPokes = pokemon.filter((p) => {\n // const filterGen = filter.q ? 0 : (filter.gen ?? 0)\n const filterGen = filters.gen ?? 0\n\n if (!filters.forms && p.isForm) return false\n if (filters.color && p.color.toLowerCase() !== filters.color.toLowerCase()) return false\n if (filters.type && ![p.type1, p.type2].filter(Boolean).includes(filters.type)) return false\n if (filterGen > 0 && p.speciesGen !== filters.gen) return false\n\n if (filters.q && !matchesSearchQuery(p.searchableText, filters.q)) return false\n\n return true\n })\n\n return {\n pokemon: filteredPokes,\n meta: { total: pokemon.length, skipped: false },\n }\n}\n\nexport function createSearchablePokemonList(\n pokemon: Array<Pkds.Pokemon>,\n): Array<Pkds.TranslatedPokemon> {\n return pokemon.map((pokemon: Pkds.Pokemon): Pkds.TranslatedPokemon => ({\n ...pokemon,\n speciesGen: dexNumToGen(pokemon.dexNum),\n dexNum: formatDexNum(pokemon.dexNum),\n name: pokemon.names['eng'] ?? '',\n speciesName: pokemon.speciesNames?.['eng'],\n formName: pokemon.formNames?.['eng'],\n lang: 'eng',\n searchableText: generatePokemonSearchableText(pokemon),\n }))\n}\n"],"mappings":";;;AAGA,MAAM,oBAAoB;AAE1B,SAAgB,cACd,SACA,SACA,uBAAgC,MACL;CAC3B,MAAM,cAAc,oBAAoB,QAAQ,KAAK,EAAE;CAEvD,IAAI,wBAAwB,YAAY,SAAS,mBAC/C,OAAO;EACI;EACT,MAAM;GAAE,OAAO,QAAQ;GAAQ,SAAS;EAAK;CAC/C;CAiBF,OAAO;EACL,SAfoB,QAAQ,QAAQ,MAAM;GAE1C,MAAM,YAAY,QAAQ,OAAO;GAEjC,IAAI,CAAC,QAAQ,SAAS,EAAE,QAAQ,OAAO;GACvC,IAAI,QAAQ,SAAS,EAAE,MAAM,YAAY,MAAM,QAAQ,MAAM,YAAY,GAAG,OAAO;GACnF,IAAI,QAAQ,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,SAAS,QAAQ,IAAI,GAAG,OAAO;GACvF,IAAI,YAAY,KAAK,EAAE,eAAe,QAAQ,KAAK,OAAO;GAE1D,IAAI,QAAQ,KAAK,CAAC,mBAAmB,EAAE,gBAAgB,QAAQ,CAAC,GAAG,OAAO;GAE1E,OAAO;EACT,CAGuB;EACrB,MAAM;GAAE,OAAO,QAAQ;GAAQ,SAAS;EAAM;CAChD;AACF;AAEA,SAAgB,4BACd,SAC+B;CAC/B,OAAO,QAAQ,KAAK,aAAmD;EACrE,GAAG;EACH,YAAY,YAAY,QAAQ,MAAM;EACtC,QAAQ,aAAa,QAAQ,MAAM;EACnC,MAAM,QAAQ,MAAM,UAAU;EAC9B,aAAa,QAAQ,eAAe;EACpC,UAAU,QAAQ,YAAY;EAC9B,MAAM;EACN,gBAAgB,8BAA8B,OAAO;CACvD,EAAE;AACJ"}
|
package/build/lib/types.d.mts
CHANGED
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
import { _ as statIds, a as gameType, c as ivJudgeValues, d as languageInGameCodes, f as moveCategory, g as ribbonCategory, h as raidStyles, i as gameSeries, l as languageAlpha3Codes, m as pokemonSizes, n as battleStyles, o as genders, p as pokeballCategory, r as gamePlatforms, s as itemCategory, t as abilityTagIds, u as languageIds, v as titleTypes, y as typeIds } from "../enums-CCbmORM6.mjs";
|
|
2
|
-
import { A as pokemonSchema, C as onlineFeaturesSchema, D as pokedexEntrySchema, E as pokeballSchema, M as regionSchema, N as ribbonSchema, O as pokedexSchema, P as typeSchema, S as natureSchema, T as personalitySchema, _ as modernBoxPresetIndexSchema, b as modernBoxPresetTags, c as colorSchema, d as generationSchema, f as i18nTextSchema, g as modernBoxPresetBoxSchema, h as markSchema, j as pokemonSearchFilterSchema, k as pokemonRefsSchema, l as gameFeaturesSchema, m as languageSchema, n as boxPresetBoxPokemonSchema, o as boxPresetSchema, p as itemSchema, r as boxPresetBoxSchema, s as characterSchema, t as abilitySchema, u as gameSchema, v as modernBoxPresetSchema, w as originMarkSchema, x as moveSchema, y as modernBoxPresetSlotSchema } from "../schemas-
|
|
3
|
-
import z
|
|
4
|
-
|
|
2
|
+
import { A as pokemonSchema, C as onlineFeaturesSchema, D as pokedexEntrySchema, E as pokeballSchema, M as regionSchema, N as ribbonSchema, O as pokedexSchema, P as typeSchema, S as natureSchema, T as personalitySchema, _ as modernBoxPresetIndexSchema, b as modernBoxPresetTags, c as colorSchema, d as generationSchema, f as i18nTextSchema, g as modernBoxPresetBoxSchema, h as markSchema, j as pokemonSearchFilterSchema, k as pokemonRefsSchema, l as gameFeaturesSchema, m as languageSchema, n as boxPresetBoxPokemonSchema, o as boxPresetSchema, p as itemSchema, r as boxPresetBoxSchema, s as characterSchema, t as abilitySchema, u as gameSchema, v as modernBoxPresetSchema, w as originMarkSchema, x as moveSchema, y as modernBoxPresetSlotSchema } from "../schemas-CDSWgtoj.mjs";
|
|
3
|
+
import z from "zod";
|
|
5
4
|
//#region src/lib/types.d.ts
|
|
6
5
|
declare global {
|
|
7
6
|
namespace Pkds {
|
|
8
|
-
type LegacyBoxPreset = z
|
|
7
|
+
type LegacyBoxPreset = z.infer<typeof boxPresetSchema>;
|
|
9
8
|
type LegacyBoxPresetByGameset = {
|
|
10
9
|
gameset: string;
|
|
11
10
|
presets: LegacyBoxPreset[];
|
|
12
11
|
};
|
|
13
|
-
type LegacyBoxPresetBox = z
|
|
14
|
-
type LegacyBoxPresetBoxPokemon = z
|
|
12
|
+
type LegacyBoxPresetBox = z.infer<typeof boxPresetBoxSchema>;
|
|
13
|
+
type LegacyBoxPresetBoxPokemon = z.infer<typeof boxPresetBoxPokemonSchema>;
|
|
15
14
|
type ModernBoxPresetTag = (typeof modernBoxPresetTags)[number];
|
|
16
|
-
type ModernBoxPresetIndex = z
|
|
17
|
-
type ModernBoxPreset = z
|
|
18
|
-
type ModernBoxPresetBox = z
|
|
19
|
-
type ModernBoxPresetSlot = z
|
|
20
|
-
type Ability = z
|
|
15
|
+
type ModernBoxPresetIndex = z.infer<typeof modernBoxPresetIndexSchema>;
|
|
16
|
+
type ModernBoxPreset = z.infer<typeof modernBoxPresetSchema>;
|
|
17
|
+
type ModernBoxPresetBox = z.infer<typeof modernBoxPresetBoxSchema>;
|
|
18
|
+
type ModernBoxPresetSlot = z.infer<typeof modernBoxPresetSlotSchema>;
|
|
19
|
+
type Ability = z.infer<typeof abilitySchema>;
|
|
21
20
|
type AbilityTagId = (typeof abilityTagIds)[number];
|
|
22
|
-
type Personality = z
|
|
23
|
-
type Character = z
|
|
24
|
-
type Color = z
|
|
25
|
-
type Game = z
|
|
26
|
-
type GameFeatures = z
|
|
27
|
-
type GameOnlineFeatures = z
|
|
21
|
+
type Personality = z.infer<typeof personalitySchema>;
|
|
22
|
+
type Character = z.infer<typeof characterSchema>;
|
|
23
|
+
type Color = z.infer<typeof colorSchema>;
|
|
24
|
+
type Game = z.infer<typeof gameSchema>;
|
|
25
|
+
type GameFeatures = z.infer<typeof gameFeaturesSchema>;
|
|
26
|
+
type GameOnlineFeatures = z.infer<typeof onlineFeaturesSchema>;
|
|
28
27
|
type GameType = (typeof gameType)[number];
|
|
29
28
|
type GamePlatform = (typeof gamePlatforms)[number];
|
|
30
29
|
type GameSeries = (typeof gameSeries)[number];
|
|
31
|
-
type Generation = z
|
|
32
|
-
type Item = z
|
|
30
|
+
type Generation = z.infer<typeof generationSchema>;
|
|
31
|
+
type Item = z.infer<typeof itemSchema>;
|
|
33
32
|
type ItemCategory = (typeof itemCategory)[number];
|
|
34
|
-
type Pokeball = z
|
|
33
|
+
type Pokeball = z.infer<typeof pokeballSchema>;
|
|
35
34
|
type PokeballCategory = (typeof pokeballCategory)[number];
|
|
36
|
-
type Language = z
|
|
35
|
+
type Language = z.infer<typeof languageSchema>;
|
|
37
36
|
/**
|
|
38
37
|
* Used as language IDs
|
|
39
38
|
*/
|
|
@@ -46,22 +45,22 @@ declare global {
|
|
|
46
45
|
* Used as language codes in-game
|
|
47
46
|
*/
|
|
48
47
|
type LanguageInGameCode = (typeof languageInGameCodes)[number];
|
|
49
|
-
type Mark = z
|
|
50
|
-
type Ribbon = z
|
|
48
|
+
type Mark = z.infer<typeof markSchema>;
|
|
49
|
+
type Ribbon = z.infer<typeof ribbonSchema>;
|
|
51
50
|
type RibbonCategory = (typeof ribbonCategory)[number];
|
|
52
|
-
type OriginMark = z
|
|
53
|
-
type Region = z
|
|
54
|
-
type Type = z
|
|
51
|
+
type OriginMark = z.infer<typeof originMarkSchema>;
|
|
52
|
+
type Region = z.infer<typeof regionSchema>;
|
|
53
|
+
type Type = z.infer<typeof typeSchema>;
|
|
55
54
|
type TypeId = (typeof typeIds)[number];
|
|
56
|
-
type Nature = z
|
|
55
|
+
type Nature = z.infer<typeof natureSchema>;
|
|
57
56
|
type StatId = (typeof statIds)[number];
|
|
58
|
-
type Move = z
|
|
57
|
+
type Move = z.infer<typeof moveSchema>;
|
|
59
58
|
type MoveCategory = (typeof moveCategory)[number];
|
|
60
|
-
type Pokedex = z
|
|
61
|
-
type PokedexEntry = z
|
|
62
|
-
type I18nText = z
|
|
63
|
-
type PokemonRefs = z
|
|
64
|
-
type Pokemon = z
|
|
59
|
+
type Pokedex = z.infer<typeof pokedexSchema>;
|
|
60
|
+
type PokedexEntry = z.infer<typeof pokedexEntrySchema>;
|
|
61
|
+
type I18nText = z.infer<typeof i18nTextSchema>;
|
|
62
|
+
type PokemonRefs = z.infer<typeof pokemonRefsSchema>;
|
|
63
|
+
type Pokemon = z.infer<typeof pokemonSchema>;
|
|
65
64
|
type Gender = (typeof genders)[number] | null;
|
|
66
65
|
type TitleType = (typeof titleTypes)[number];
|
|
67
66
|
type PokemonSize = (typeof pokemonSizes)[number];
|
|
@@ -106,7 +105,7 @@ declare global {
|
|
|
106
105
|
isNicknamed: boolean;
|
|
107
106
|
lang: Pkds.LanguageAlpha3;
|
|
108
107
|
};
|
|
109
|
-
type PokemonSearchFilter = Partial<z
|
|
108
|
+
type PokemonSearchFilter = Partial<z.infer<typeof pokemonSearchFilterSchema>>;
|
|
110
109
|
type PokemonSearchResults = {
|
|
111
110
|
pokemon: Array<Pkds.TranslatedPokemon>;
|
|
112
111
|
meta: {
|
|
@@ -194,4 +193,5 @@ declare global {
|
|
|
194
193
|
[key: string]: unknown;
|
|
195
194
|
};
|
|
196
195
|
}
|
|
196
|
+
//#endregion
|
|
197
197
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/lib/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/lib/types.ts"],"mappings":"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"}
|
package/build/lib/utils.d.mts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
//#region src/lib/utils.d.ts
|
|
2
|
-
declare function formatDexNum(num: number | string, positions?: number): string;
|
|
3
|
-
declare function dexNumToInt(num: number | string): number;
|
|
4
|
-
declare function dexNumToGen(nationalDexNum: number | string): number;
|
|
5
|
-
declare function randomPokemonList<T extends Pkds.PokemonBase>(pokemonList: Array<T>, quantity?: number, withForms?: boolean): Array<T>;
|
|
6
|
-
declare function getPossiblePokemonGenders(meta: Pkds.Pokemon): Pkds.Gender[];
|
|
7
|
-
declare function getPokemonGender(inputGender: string | null | undefined, meta: Pkds.Pokemon, options?: {
|
|
2
|
+
export declare function formatDexNum(num: number | string, positions?: number): string;
|
|
3
|
+
export declare function dexNumToInt(num: number | string): number;
|
|
4
|
+
export declare function dexNumToGen(nationalDexNum: number | string): number;
|
|
5
|
+
export declare function randomPokemonList<T extends Pkds.PokemonBase>(pokemonList: Array<T>, quantity?: number, withForms?: boolean): Array<T>;
|
|
6
|
+
export declare function getPossiblePokemonGenders(meta: Pkds.Pokemon): Pkds.Gender[];
|
|
7
|
+
export declare function getPokemonGender(inputGender: string | null | undefined, meta: Pkds.Pokemon, options?: {
|
|
8
8
|
allowEmpty?: boolean;
|
|
9
9
|
}): Pkds.Gender;
|
|
10
|
-
declare function translatePokemonText(pkm: Pkds.Pokemon, lang3Char: Pkds.LanguageAlpha3): Pkds.PokemonText;
|
|
11
|
-
declare function translatePokemon(pokemon: Pkds.Pokemon | Pkds.TranslatedPokemon, lang: Pkds.LanguageAlpha3, dexNumPositions?: number): Pkds.TranslatedPokemon;
|
|
12
|
-
declare function translatePokemonList(pokemonList: Array<Pkds.Pokemon | Pkds.TranslatedPokemon>, lang: Pkds.LanguageAlpha3): Array<Pkds.TranslatedPokemon>;
|
|
13
|
-
declare function translatePokemonById(pokemonList: Array<Pkds.Pokemon | Pkds.TranslatedPokemon>, lang: Pkds.LanguageAlpha3): Record<string, Pkds.TranslatedPokemon>;
|
|
14
|
-
declare function translatePokemonByNid(pokemonList: Array<Pkds.Pokemon | Pkds.TranslatedPokemon>, lang: Pkds.LanguageAlpha3): Record<string, Pkds.TranslatedPokemon>;
|
|
15
|
-
declare function generatePokemonDescription(pokemon: Pkds.TranslatedPokemon, lang3Char: Pkds.LanguageAlpha3): string;
|
|
16
|
-
declare function generatePokemonSearchableText(poke: Pkds.Pokemon): string;
|
|
17
|
-
declare function getGameCategoryLabel(game: Pkds.Game): string;
|
|
18
|
-
declare function generateGameDescription(game: Pkds.Game, gameCatText: string): string;
|
|
19
|
-
declare function resolvePokemonName(meta: Pkds.TranslatedPokemon, nickname?: string, lang3Char?: Pkds.LanguageAlpha3): Pkds.PokemonNameInfo;
|
|
10
|
+
export declare function translatePokemonText(pkm: Pkds.Pokemon, lang3Char: Pkds.LanguageAlpha3): Pkds.PokemonText;
|
|
11
|
+
export declare function translatePokemon(pokemon: Pkds.Pokemon | Pkds.TranslatedPokemon, lang: Pkds.LanguageAlpha3, dexNumPositions?: number): Pkds.TranslatedPokemon;
|
|
12
|
+
export declare function translatePokemonList(pokemonList: Array<Pkds.Pokemon | Pkds.TranslatedPokemon>, lang: Pkds.LanguageAlpha3): Array<Pkds.TranslatedPokemon>;
|
|
13
|
+
export declare function translatePokemonById(pokemonList: Array<Pkds.Pokemon | Pkds.TranslatedPokemon>, lang: Pkds.LanguageAlpha3): Record<string, Pkds.TranslatedPokemon>;
|
|
14
|
+
export declare function translatePokemonByNid(pokemonList: Array<Pkds.Pokemon | Pkds.TranslatedPokemon>, lang: Pkds.LanguageAlpha3): Record<string, Pkds.TranslatedPokemon>;
|
|
15
|
+
export declare function generatePokemonDescription(pokemon: Pkds.TranslatedPokemon, lang3Char: Pkds.LanguageAlpha3): string;
|
|
16
|
+
export declare function generatePokemonSearchableText(poke: Pkds.Pokemon): string;
|
|
17
|
+
export declare function getGameCategoryLabel(game: Pkds.Game): string;
|
|
18
|
+
export declare function generateGameDescription(game: Pkds.Game, gameCatText: string): string;
|
|
19
|
+
export declare function resolvePokemonName(meta: Pkds.TranslatedPokemon, nickname?: string, lang3Char?: Pkds.LanguageAlpha3): Pkds.PokemonNameInfo;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { dexNumToGen, dexNumToInt, formatDexNum, generateGameDescription, generatePokemonDescription, generatePokemonSearchableText, getGameCategoryLabel, getPokemonGender, getPossiblePokemonGenders, randomPokemonList, resolvePokemonName, translatePokemon, translatePokemonById, translatePokemonByNid, translatePokemonList, translatePokemonText };
|
|
22
21
|
//# sourceMappingURL=utils.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.mts","names":[],"sources":["../../src/lib/utils.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"utils.d.mts","names":[],"sources":["../../src/lib/utils.ts"],"mappings":";wBAIgB,aAAa,sBAAsB;wBAInC,YAAY;wBAIZ,YAAY;wBAcZ,kBAAkB,UAAU,KAAK,aAC/C,aAAa,MAAM,IACnB,mBACA,sBACC,MAAM;wBAgBO,0BAA0B,MAAM,KAAK,UAAU,KAAK;wBAmBpD,iBACd,wCACA,MAAM,KAAK,SACX;EAAY;IACX,KAAK;wBA8BQ,qBACd,KAAK,KAAK,SACV,WAAW,KAAK,iBACf,KAAK;wBAeQ,iBACd,SAAS,KAAK,UAAU,KAAK,mBAC7B,MAAM,KAAK,gBACX,2BACC,KAAK;wBAoBQ,qBACd,aAAa,MAAM,KAAK,UAAU,KAAK,oBACvC,MAAM,KAAK,iBACV,MAAM,KAAK;wBAIE,qBACd,aAAa,MAAM,KAAK,UAAU,KAAK,oBACvC,MAAM,KAAK,iBACV,eAAe,KAAK;wBAMP,sBACd,aAAa,MAAM,KAAK,UAAU,KAAK,oBACvC,MAAM,KAAK,iBACV,eAAe,KAAK;wBAMP,2BACd,SAAS,KAAK,mBACd,WAAW,KAAK;wBAmCF,8BAA8B,MAAM,KAAK;wBAsCzC,qBAAqB,MAAM,KAAK;wBAahC,wBAAwB,MAAM,KAAK,MAAM;wBA+BzC,mBACd,MAAM,KAAK,mBACX,mBACA,YAAY,KAAK,iBAChB,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as writeJsonDataFile } from "../fs-B5MIz_Bs.mjs";
|
|
2
2
|
import { i as appLangs } from "../languages-CY-Q1SED.mjs";
|
|
3
3
|
//#region src/lib-next/_build.ts
|
|
4
|
-
await import("../build-
|
|
5
|
-
await import("../build-
|
|
4
|
+
await import("../build-DvGzwIK8.mjs");
|
|
5
|
+
await import("../build-bE_0_-0H.mjs");
|
|
6
6
|
writeJsonDataFile("languages.json", appLangs);
|
|
7
7
|
console.log(`Exported ${appLangs.length} app languages`);
|
|
8
8
|
//#endregion
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
//#region src/lib-next/enums.d.ts
|
|
2
|
-
declare const gameTypes: readonly ["superset", "set", "game", "dlc"];
|
|
3
|
-
type GameType = (typeof gameTypes)[number];
|
|
4
|
-
declare const gameSeries: readonly ["main", "spinoff", "storage", "legends"];
|
|
5
|
-
type GameSeries = (typeof gameSeries)[number];
|
|
6
|
-
declare const gamePlatforms: readonly ["gb", "gbc", "gba", "nds", "3ds", "mobile", "ngc", "wii", "wiiu", "switch", "switch2"];
|
|
7
|
-
type GamePlatform = (typeof gamePlatforms)[number];
|
|
8
|
-
declare const pokemonTypes: readonly ["normal", "fire", "water", "electric", "grass", "ice", "fighting", "poison", "ground", "flying", "psychic", "bug", "rock", "ghost", "dragon", "dark", "steel", "fairy"];
|
|
9
|
-
declare const pokemonTypesInternalOrder: PokemonType[];
|
|
10
|
-
type PokemonType = (typeof pokemonTypes)[number];
|
|
11
|
-
declare const moveCategories: readonly ["physical", "special", "status"];
|
|
12
|
-
type MoveCategory = (typeof moveCategories)[number];
|
|
13
|
-
declare const moveClasses: readonly ["punching", "sound_based", "dance", "slicing", "wind", "powder", "ball_bomb", "pulse", "biting", "explosive", "mental", "healing"];
|
|
14
|
-
type MoveClass = (typeof moveClasses)[number];
|
|
15
|
-
declare const moveTargets: readonly ["single_target", "self", "single_ally", "all_allies", "random_opponent", "all_opponents", "entire_field", "opponents_side", "users_side", "all_pokemon", "varies"];
|
|
16
|
-
type MoveTarget = (typeof moveTargets)[number];
|
|
17
|
-
declare const statusConditions: readonly ["paralyzed", "frozen", "poisoned", "badly_poisoned", "burned", "asleep"];
|
|
18
|
-
type StatusCondition = (typeof statusConditions)[number];
|
|
19
|
-
declare const battleStates: string[];
|
|
20
|
-
type BattleState = (typeof battleStates)[number];
|
|
21
|
-
declare const itemCategories: readonly ["power_boost", "recovery", "defense", "stat_boost", "effect_extend", "berry", "other", "mega_stone"];
|
|
22
|
-
type ItemCategory = (typeof itemCategories)[number];
|
|
23
|
-
declare const bagCategories: readonly ["ball", "medicine", "battle", "berry", "machine", "mega_stone", "z_crystal", "treasure", "ingredient", "material", "key", "other"];
|
|
24
|
-
type BagCategory = (typeof bagCategories)[number];
|
|
25
|
-
declare const pokeballCategories: readonly ["regular", "special", "hisuian", "other"];
|
|
26
|
-
type PokeballCategory = (typeof pokeballCategories)[number];
|
|
27
|
-
declare const ribbonCategories: readonly ["league", "contest", "tower", "memory", "gift"];
|
|
28
|
-
type RibbonCategory = (typeof ribbonCategories)[number];
|
|
29
|
-
declare const statIds: readonly ["hp", "atk", "def", "spa", "spd", "spe", "acc", "eva"];
|
|
30
|
-
type StatId = (typeof statIds)[number];
|
|
31
|
-
declare const titleTypes: readonly ["ribbon", "mark", "custom"];
|
|
32
|
-
type TitleType = (typeof titleTypes)[number];
|
|
33
|
-
declare const pokemonSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
34
|
-
type PokemonSize = (typeof pokemonSizes)[number];
|
|
35
|
-
declare const genders: readonly ["m", "f"];
|
|
36
|
-
type Gender = (typeof genders)[number];
|
|
2
|
+
export declare const gameTypes: readonly ["superset", "set", "game", "dlc"];
|
|
3
|
+
export type GameType = (typeof gameTypes)[number];
|
|
4
|
+
export declare const gameSeries: readonly ["main", "spinoff", "storage", "legends"];
|
|
5
|
+
export type GameSeries = (typeof gameSeries)[number];
|
|
6
|
+
export declare const gamePlatforms: readonly ["gb", "gbc", "gba", "nds", "3ds", "mobile", "ngc", "wii", "wiiu", "switch", "switch2"];
|
|
7
|
+
export type GamePlatform = (typeof gamePlatforms)[number];
|
|
8
|
+
export declare const pokemonTypes: readonly ["normal", "fire", "water", "electric", "grass", "ice", "fighting", "poison", "ground", "flying", "psychic", "bug", "rock", "ghost", "dragon", "dark", "steel", "fairy"];
|
|
9
|
+
export declare const pokemonTypesInternalOrder: PokemonType[];
|
|
10
|
+
export type PokemonType = (typeof pokemonTypes)[number];
|
|
11
|
+
export declare const moveCategories: readonly ["physical", "special", "status"];
|
|
12
|
+
export type MoveCategory = (typeof moveCategories)[number];
|
|
13
|
+
export declare const moveClasses: readonly ["punching", "sound_based", "dance", "slicing", "wind", "powder", "ball_bomb", "pulse", "biting", "explosive", "mental", "healing"];
|
|
14
|
+
export type MoveClass = (typeof moveClasses)[number];
|
|
15
|
+
export declare const moveTargets: readonly ["single_target", "self", "single_ally", "all_allies", "random_opponent", "all_opponents", "entire_field", "opponents_side", "users_side", "all_pokemon", "varies"];
|
|
16
|
+
export type MoveTarget = (typeof moveTargets)[number];
|
|
17
|
+
export declare const statusConditions: readonly ["paralyzed", "frozen", "poisoned", "badly_poisoned", "burned", "asleep"];
|
|
18
|
+
export type StatusCondition = (typeof statusConditions)[number];
|
|
19
|
+
export declare const battleStates: string[];
|
|
20
|
+
export type BattleState = (typeof battleStates)[number];
|
|
21
|
+
export declare const itemCategories: readonly ["power_boost", "recovery", "defense", "stat_boost", "effect_extend", "berry", "other", "mega_stone"];
|
|
22
|
+
export type ItemCategory = (typeof itemCategories)[number];
|
|
23
|
+
export declare const bagCategories: readonly ["ball", "medicine", "battle", "berry", "machine", "mega_stone", "z_crystal", "treasure", "ingredient", "material", "key", "other"];
|
|
24
|
+
export type BagCategory = (typeof bagCategories)[number];
|
|
25
|
+
export declare const pokeballCategories: readonly ["regular", "special", "hisuian", "other"];
|
|
26
|
+
export type PokeballCategory = (typeof pokeballCategories)[number];
|
|
27
|
+
export declare const ribbonCategories: readonly ["league", "contest", "tower", "memory", "gift"];
|
|
28
|
+
export type RibbonCategory = (typeof ribbonCategories)[number];
|
|
29
|
+
export declare const statIds: readonly ["hp", "atk", "def", "spa", "spd", "spe", "acc", "eva"];
|
|
30
|
+
export type StatId = (typeof statIds)[number];
|
|
31
|
+
export declare const titleTypes: readonly ["ribbon", "mark", "custom"];
|
|
32
|
+
export type TitleType = (typeof titleTypes)[number];
|
|
33
|
+
export declare const pokemonSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
34
|
+
export type PokemonSize = (typeof pokemonSizes)[number];
|
|
35
|
+
export declare const genders: readonly ["m", "f"];
|
|
36
|
+
export type Gender = (typeof genders)[number];
|
|
37
37
|
/**
|
|
38
38
|
* In most core series games:
|
|
39
39
|
* - IV of 0: "No good" (or "Not So Good" in Let's GO)
|
|
@@ -43,12 +43,11 @@ type Gender = (typeof genders)[number];
|
|
|
43
43
|
* - IV of 30: "Fantastic"
|
|
44
44
|
* - IV of 31: "Best"
|
|
45
45
|
* */
|
|
46
|
-
declare const ivJudgeValues: readonly ["nogood", "decent", "good", "verygood", "fantastic", "best"];
|
|
47
|
-
type IvJudgeValue = (typeof ivJudgeValues)[number];
|
|
48
|
-
declare const battleStyles: readonly ["singles", "doubles", "triples", "rotation", "royale"];
|
|
49
|
-
type BattleStyle = (typeof battleStyles)[number];
|
|
50
|
-
declare const raidStyles: readonly ["dynamax", "tera"];
|
|
51
|
-
type RaidStyle = (typeof raidStyles)[number];
|
|
46
|
+
export declare const ivJudgeValues: readonly ["nogood", "decent", "good", "verygood", "fantastic", "best"];
|
|
47
|
+
export type IvJudgeValue = (typeof ivJudgeValues)[number];
|
|
48
|
+
export declare const battleStyles: readonly ["singles", "doubles", "triples", "rotation", "royale"];
|
|
49
|
+
export type BattleStyle = (typeof battleStyles)[number];
|
|
50
|
+
export declare const raidStyles: readonly ["dynamax", "tera"];
|
|
51
|
+
export type RaidStyle = (typeof raidStyles)[number];
|
|
52
52
|
//#endregion
|
|
53
|
-
export { BagCategory, BattleState, BattleStyle, GamePlatform, GameSeries, GameType, Gender, ItemCategory, IvJudgeValue, MoveCategory, MoveClass, MoveTarget, PokeballCategory, PokemonSize, PokemonType, RaidStyle, RibbonCategory, StatId, StatusCondition, TitleType, bagCategories, battleStates, battleStyles, gamePlatforms, gameSeries, gameTypes, genders, itemCategories, ivJudgeValues, moveCategories, moveClasses, moveTargets, pokeballCategories, pokemonSizes, pokemonTypes, pokemonTypesInternalOrder, raidStyles, ribbonCategories, statIds, statusConditions, titleTypes };
|
|
54
53
|
//# sourceMappingURL=enums.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.mts","names":[],"sources":["../../src/lib-next/enums.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"enums.d.mts","names":[],"sources":["../../src/lib-next/enums.ts"],"mappings":";qBAAa;YACD,mBAAmB;qBAElB;YACD,qBAAqB;qBAEpB;YAaD,uBAAuB;qBAEtB;qBAqBA,2BAA2B;YAoB5B,sBAAsB;qBAErB;YACD,uBAAuB;qBAEtB;YAcD,oBAAoB;qBAEnB;YAaD,qBAAqB;qBAEpB;YAQD,0BAA0B;qBAEzB;YAoED,sBAAsB;qBAErB;YAUD,uBAAuB;qBAEtB;YAcD,sBAAsB;qBAErB;YACD,2BAA2B;qBAE1B;YACD,yBAAyB;qBAExB;YACD,iBAAiB;qBAEhB;YACD,oBAAoB;qBAEnB;YACD,sBAAsB;qBAErB;YACD,iBAAiB;;;;;;;;;;qBAWhB;YACD,uBAAuB;qBAEtB;YACD,sBAAsB;qBAErB;YACD,oBAAoB"}
|
package/build/lib-next/fs.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//#region src/lib-next/fs.d.ts
|
|
2
|
-
declare const DATA_NEXT_ROOT: string;
|
|
3
|
-
declare function writeJsonFile(fullPath: string, data: unknown): void;
|
|
4
|
-
declare function writeJsonDataFile(relativePath: string, data: unknown): void;
|
|
2
|
+
export declare const DATA_NEXT_ROOT: string;
|
|
3
|
+
export declare function writeJsonFile(fullPath: string, data: unknown): void;
|
|
4
|
+
export declare function writeJsonDataFile(relativePath: string, data: unknown): void;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { DATA_NEXT_ROOT, writeJsonDataFile, writeJsonFile };
|
|
7
6
|
//# sourceMappingURL=fs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.mts","names":[],"sources":["../../src/lib-next/fs.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"fs.d.mts","names":[],"sources":["../../src/lib-next/fs.ts"],"mappings":";qBAGa;wBAEG,cAAc,kBAAkB;wBAKhC,kBAAkB,sBAAsB"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
//#region src/lib-next/languages.d.ts
|
|
2
|
-
declare const browserLocales: readonly ["en", "es", "es-419", "de", "it", "fr", "ko", "ja", "zh-tw", "zh-cn", "pt-br"];
|
|
3
|
-
type BrowserLocale = (typeof browserLocales)[number];
|
|
4
|
-
declare const DEFAULT_LOCALE: BrowserLocale;
|
|
5
|
-
declare const gameLocales: readonly ["ENG", "ES-ES", "ES-LA", "FRA", "DEU", "ITA", "JPN", "KOR", "CHT", "CHS", "PT-BR"];
|
|
6
|
-
type GameLocale = (typeof gameLocales)[number];
|
|
7
|
-
declare const DEFAULT_GAME_LOCALE: GameLocale;
|
|
8
|
-
declare const langSlugs: readonly ["en", "es", "mx", "de", "it", "fr", "kr", "jp", "tw", "cn", "br"];
|
|
9
|
-
type LangSlug = (typeof langSlugs)[number];
|
|
10
|
-
declare const DEFAULT_LANG_SLUG: LangSlug;
|
|
11
|
-
declare const browserLocaleMap: Record<BrowserLocale, {
|
|
2
|
+
export declare const browserLocales: readonly ["en", "es", "es-419", "de", "it", "fr", "ko", "ja", "zh-tw", "zh-cn", "pt-br"];
|
|
3
|
+
export type BrowserLocale = (typeof browserLocales)[number];
|
|
4
|
+
export declare const DEFAULT_LOCALE: BrowserLocale;
|
|
5
|
+
export declare const gameLocales: readonly ["ENG", "ES-ES", "ES-LA", "FRA", "DEU", "ITA", "JPN", "KOR", "CHT", "CHS", "PT-BR"];
|
|
6
|
+
export type GameLocale = (typeof gameLocales)[number];
|
|
7
|
+
export declare const DEFAULT_GAME_LOCALE: GameLocale;
|
|
8
|
+
export declare const langSlugs: readonly ["en", "es", "mx", "de", "it", "fr", "kr", "jp", "tw", "cn", "br"];
|
|
9
|
+
export type LangSlug = (typeof langSlugs)[number];
|
|
10
|
+
export declare const DEFAULT_LANG_SLUG: LangSlug;
|
|
11
|
+
export declare const browserLocaleMap: Record<BrowserLocale, {
|
|
12
12
|
slug: LangSlug;
|
|
13
13
|
gameLocale: GameLocale;
|
|
14
14
|
}>;
|
|
15
|
-
declare const gameLocaleMap: Record<GameLocale, {
|
|
15
|
+
export declare const gameLocaleMap: Record<GameLocale, {
|
|
16
16
|
slug: LangSlug;
|
|
17
17
|
browserLocale: BrowserLocale;
|
|
18
18
|
}>;
|
|
19
|
-
declare const langSlugMap: Record<LangSlug, {
|
|
19
|
+
export declare const langSlugMap: Record<LangSlug, {
|
|
20
20
|
gameLocale: GameLocale;
|
|
21
21
|
browserLocale: BrowserLocale;
|
|
22
22
|
}>;
|
|
23
|
-
type LangMeta = {
|
|
23
|
+
export type LangMeta = {
|
|
24
24
|
name: string;
|
|
25
25
|
engName: string;
|
|
26
26
|
flag: string;
|
|
27
27
|
pokeApiId: number;
|
|
28
28
|
oldCode: string;
|
|
29
29
|
};
|
|
30
|
-
declare const langMeta: Record<LangSlug, LangMeta>;
|
|
31
|
-
type LangInfo = LangMeta & {
|
|
30
|
+
export declare const langMeta: Record<LangSlug, LangMeta>;
|
|
31
|
+
export type LangInfo = LangMeta & {
|
|
32
32
|
slug: LangSlug;
|
|
33
33
|
locale: BrowserLocale;
|
|
34
34
|
gameLocale: GameLocale;
|
|
35
35
|
};
|
|
36
|
-
declare const appLangs: LangInfo[];
|
|
37
|
-
declare const appLangsBySlug: Record<LangSlug, LangInfo>;
|
|
36
|
+
export declare const appLangs: LangInfo[];
|
|
37
|
+
export declare const appLangsBySlug: Record<LangSlug, LangInfo>;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { BrowserLocale, DEFAULT_GAME_LOCALE, DEFAULT_LANG_SLUG, DEFAULT_LOCALE, GameLocale, LangInfo, LangMeta, LangSlug, appLangs, appLangsBySlug, browserLocaleMap, browserLocales, gameLocaleMap, gameLocales, langMeta, langSlugMap, langSlugs };
|
|
40
39
|
//# sourceMappingURL=languages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languages.d.mts","names":[],"sources":["../../src/lib-next/languages.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"languages.d.mts","names":[],"sources":["../../src/lib-next/languages.ts"],"mappings":";qBACa;YAaD,wBAAwB;qBACvB,gBAAgB;qBAGhB;YAaD,qBAAqB;qBACpB,qBAAqB;qBAMrB;YAaD,mBAAmB;qBAClB,mBAAmB;qBAEnB,kBAAkB,OAAO;EAAiB,MAAM;EAAU,YAAY;;qBAatE,eAAe,OAAO;EAAc,MAAM;EAAU,eAAe;;qBAcnE,aAAa,OACxB;EACE,YAAY;EAAY,eAAe;;YAe/B;EACV;EACA;EACA;EACA;EACA;;qBAGW,UAAU,OAAO,UAAU;YAsC5B,WAAW;EACrB,MAAM;EACN,QAAQ;EACR,YAAY;;qBAGD,UAAU;qBAOV,gBAER,OAAO,UAAU"}
|