@pokepc/dataset 7.0.0 → 7.1.1
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 +57 -1
- package/build/{box-preset-sanitizer-BE4i0vEj.mjs → box-preset-sanitizer-DRi4Ayrn.mjs} +2 -2
- package/build/{box-preset-sanitizer-BE4i0vEj.mjs.map → box-preset-sanitizer-DRi4Ayrn.mjs.map} +1 -1
- package/build/enums-Ajt5avHN.mjs +488 -0
- package/build/enums-Ajt5avHN.mjs.map +1 -0
- package/build/enums-DCL82p1t.d.mts +66 -0
- package/build/enums-DCL82p1t.d.mts.map +1 -0
- package/build/{evolution-schemas-BZQILLSQ.mjs → evolution-schemas-Db7-jivr.mjs} +2 -2
- package/build/{evolution-schemas-BZQILLSQ.mjs.map → evolution-schemas-Db7-jivr.mjs.map} +1 -1
- package/build/form-schemas-BjyAMPZU.mjs +166 -0
- package/build/form-schemas-BjyAMPZU.mjs.map +1 -0
- package/build/form-schemas-Bq10Ac7d.d.mts +1407 -0
- package/build/form-schemas-Bq10Ac7d.d.mts.map +1 -0
- package/build/lib/availability-sources.mjs +1 -1
- package/build/lib/availability-sources.mjs.map +1 -1
- package/build/lib/box-preset-sanitizer.mjs +1 -1
- package/build/lib/box-preset-transform.mjs +2 -2
- package/build/lib/enums.d.mts +2 -2
- package/build/lib/enums.mjs +2 -2
- package/build/lib/evolution-schemas.mjs +1 -1
- package/build/lib/form-methods.d.mts +11 -0
- package/build/lib/form-methods.d.mts.map +1 -0
- package/build/lib/form-methods.mjs +56 -0
- package/build/lib/form-methods.mjs.map +1 -0
- package/build/lib/form-schemas.d.mts +2 -0
- package/build/lib/form-schemas.mjs +2 -0
- package/build/lib/fs.d.mts +6 -6
- package/build/lib/schemas.d.mts +3 -2
- package/build/lib/schemas.mjs +4 -3
- package/build/lib/types.d.mts +7 -2
- package/build/lib/types.d.mts.map +1 -1
- package/build/lib-next/schemas.d.mts +8 -8
- package/build/{schemas-30DCmCcg.mjs → schemas-Bl5_UJHu.mjs} +6 -4
- package/build/schemas-Bl5_UJHu.mjs.map +1 -0
- package/build/{schemas-D2xLu3LV.d.mts → schemas-Cw4Mrff5.d.mts} +589 -11
- package/build/schemas-Cw4Mrff5.d.mts.map +1 -0
- package/data/items.json +140 -0
- package/data/pokedexes/xd.json +16 -1
- package/data/pokemon/abomasnow-mega.json +26 -1
- package/data/pokemon/absol-mega-z.json +18 -1
- package/data/pokemon/absol-mega.json +26 -1
- package/data/pokemon/aegislash-blade.json +66 -0
- package/data/pokemon/aerodactyl-mega.json +34 -1
- package/data/pokemon/aggron-mega.json +26 -1
- package/data/pokemon/alakazam-mega.json +34 -1
- package/data/pokemon/alcremie-gmax.json +76 -0
- package/data/pokemon/altaria-mega.json +26 -1
- package/data/pokemon/ampharos-mega.json +26 -1
- package/data/pokemon/appletun-gmax.json +12 -0
- package/data/pokemon/arceus-bug.json +145 -1
- package/data/pokemon/arceus-dark.json +145 -1
- package/data/pokemon/arceus-dragon.json +145 -1
- package/data/pokemon/arceus-electric.json +145 -1
- package/data/pokemon/arceus-fairy.json +121 -1
- package/data/pokemon/arceus-fighting.json +145 -1
- package/data/pokemon/arceus-fire.json +145 -1
- package/data/pokemon/arceus-flying.json +145 -1
- package/data/pokemon/arceus-ghost.json +145 -1
- package/data/pokemon/arceus-grass.json +145 -1
- package/data/pokemon/arceus-ground.json +145 -1
- package/data/pokemon/arceus-ice.json +145 -1
- package/data/pokemon/arceus-legendary.json +55 -1
- package/data/pokemon/arceus-poison.json +145 -1
- package/data/pokemon/arceus-psychic.json +145 -1
- package/data/pokemon/arceus-rock.json +145 -1
- package/data/pokemon/arceus-steel.json +145 -1
- package/data/pokemon/arceus-water.json +145 -1
- package/data/pokemon/arceus.json +263 -0
- package/data/pokemon/audino-mega.json +26 -1
- package/data/pokemon/banette-mega.json +26 -1
- package/data/pokemon/barbaracle-mega.json +18 -1
- package/data/pokemon/basculin-blue-striped.json +1 -0
- package/data/pokemon/baxcalibur-mega.json +18 -1
- package/data/pokemon/beedrill-mega.json +34 -1
- package/data/pokemon/blastoise-gmax.json +12 -0
- package/data/pokemon/blastoise-mega.json +34 -1
- package/data/pokemon/blaziken-mega.json +26 -1
- package/data/pokemon/burmy-sandy.json +95 -0
- package/data/pokemon/burmy-trash.json +52 -0
- package/data/pokemon/burmy.json +52 -0
- package/data/pokemon/butterfree-gmax.json +12 -0
- package/data/pokemon/calyrex-ice.json +18 -0
- package/data/pokemon/calyrex-shadow.json +18 -0
- package/data/pokemon/camerupt-mega.json +26 -1
- package/data/pokemon/castform-rainy.json +64 -0
- package/data/pokemon/castform-snowy.json +64 -0
- package/data/pokemon/castform-sunny.json +64 -0
- package/data/pokemon/centiskorch-gmax.json +12 -0
- package/data/pokemon/chandelure-mega.json +18 -1
- package/data/pokemon/charizard-gmax.json +12 -0
- package/data/pokemon/charizard-mega-x.json +34 -1
- package/data/pokemon/charizard-mega-y.json +34 -1
- package/data/pokemon/cherrim-sunshine.json +219 -0
- package/data/pokemon/chesnaught-mega.json +18 -1
- package/data/pokemon/chimecho-mega.json +18 -1
- package/data/pokemon/cinderace-gmax.json +12 -0
- package/data/pokemon/clefable-mega.json +18 -1
- package/data/pokemon/coalossal-gmax.json +12 -0
- package/data/pokemon/copperajah-gmax.json +12 -0
- package/data/pokemon/corviknight-gmax.json +12 -0
- package/data/pokemon/crabominable-mega.json +18 -1
- package/data/pokemon/cramorant-gorging.json +67 -0
- package/data/pokemon/cramorant-gulping.json +67 -0
- package/data/pokemon/darkrai-mega.json +18 -0
- package/data/pokemon/darmanitan-galar-zen.json +24 -0
- package/data/pokemon/darmanitan-zen.json +31 -0
- package/data/pokemon/deerling-autumn.json +47 -0
- package/data/pokemon/deerling-summer.json +36 -0
- package/data/pokemon/deerling-winter.json +47 -0
- package/data/pokemon/deerling.json +47 -0
- package/data/pokemon/delphox-mega.json +18 -1
- package/data/pokemon/deoxys-attack.json +90 -0
- package/data/pokemon/deoxys-defense.json +90 -0
- package/data/pokemon/deoxys-speed.json +90 -0
- package/data/pokemon/deoxys.json +117 -0
- package/data/pokemon/dialga-origin.json +40 -1
- package/data/pokemon/diancie-mega.json +26 -1
- package/data/pokemon/dragalge-mega.json +18 -1
- package/data/pokemon/dragonite-mega.json +18 -1
- package/data/pokemon/drampa-mega.json +18 -1
- package/data/pokemon/drednaw-gmax.json +12 -0
- package/data/pokemon/duraludon-gmax.json +12 -0
- package/data/pokemon/eelektross-mega.json +18 -1
- package/data/pokemon/eevee-gmax.json +12 -0
- package/data/pokemon/eiscue-noice.json +32 -0
- package/data/pokemon/emboar-mega.json +18 -1
- package/data/pokemon/empoleon.json +1 -0
- package/data/pokemon/enamorus-therian.json +16 -0
- package/data/pokemon/excadrill-mega.json +18 -1
- package/data/pokemon/falinks-mega.json +18 -1
- package/data/pokemon/feraligatr-mega.json +18 -1
- package/data/pokemon/flapple-gmax.json +12 -0
- package/data/pokemon/floette-eternal-mega.json +18 -1
- package/data/pokemon/froslass-mega.json +18 -1
- package/data/pokemon/furfrou-dandy.json +191 -0
- package/data/pokemon/furfrou-debutante.json +191 -0
- package/data/pokemon/furfrou-diamond.json +191 -0
- package/data/pokemon/furfrou-heart.json +191 -0
- package/data/pokemon/furfrou-kabuki.json +191 -0
- package/data/pokemon/furfrou-la-reine.json +191 -0
- package/data/pokemon/furfrou-matron.json +191 -0
- package/data/pokemon/furfrou-pharaoh.json +191 -0
- package/data/pokemon/furfrou-star.json +191 -0
- package/data/pokemon/furfrou.json +99 -0
- package/data/pokemon/gallade-mega.json +26 -1
- package/data/pokemon/garbodor-gmax.json +12 -0
- package/data/pokemon/garchomp-mega-z.json +18 -1
- package/data/pokemon/garchomp-mega.json +26 -1
- package/data/pokemon/gardevoir-mega.json +26 -1
- package/data/pokemon/genesect-burn.json +25 -1
- package/data/pokemon/genesect-chill.json +25 -1
- package/data/pokemon/genesect-douse.json +25 -1
- package/data/pokemon/genesect-shock.json +25 -1
- package/data/pokemon/genesect.json +29 -0
- package/data/pokemon/gengar-gmax.json +12 -0
- package/data/pokemon/gengar-mega.json +34 -1
- package/data/pokemon/gengar.json +1 -0
- package/data/pokemon/giratina-origin.json +118 -1
- package/data/pokemon/glalie-mega.json +26 -1
- package/data/pokemon/glimmora-mega.json +18 -1
- package/data/pokemon/golisopod-mega.json +18 -1
- package/data/pokemon/golurk-mega.json +18 -1
- package/data/pokemon/greninja-ash.json +25 -0
- package/data/pokemon/greninja-mega.json +18 -1
- package/data/pokemon/grimmsnarl-gmax.json +12 -0
- package/data/pokemon/groudon-primal.json +40 -0
- package/data/pokemon/gyarados-mega.json +34 -1
- package/data/pokemon/hatterene-gmax.json +12 -0
- package/data/pokemon/hawlucha-mega.json +18 -1
- package/data/pokemon/heatran-mega.json +18 -0
- package/data/pokemon/heracross-mega.json +26 -1
- package/data/pokemon/hoopa-unbound.json +60 -0
- package/data/pokemon/houndoom-mega.json +26 -1
- package/data/pokemon/inteleon-gmax.json +12 -0
- package/data/pokemon/kangaskhan-mega.json +34 -1
- package/data/pokemon/keldeo-resolute.json +92 -0
- package/data/pokemon/kingler-gmax.json +12 -0
- package/data/pokemon/kyogre-primal.json +40 -0
- package/data/pokemon/kyurem-black.json +33 -0
- package/data/pokemon/kyurem-white.json +33 -0
- package/data/pokemon/landorus-therian.json +32 -0
- package/data/pokemon/lapras-gmax.json +12 -0
- package/data/pokemon/latias-mega.json +26 -1
- package/data/pokemon/latios-mega.json +26 -1
- package/data/pokemon/lopunny-mega.json +26 -1
- package/data/pokemon/lucario-mega-z.json +18 -1
- package/data/pokemon/lucario-mega.json +26 -1
- package/data/pokemon/machamp-gmax.json +12 -0
- package/data/pokemon/magearna-mega.json +18 -1
- package/data/pokemon/magearna-original-mega.json +18 -1
- package/data/pokemon/malamar-mega.json +18 -1
- package/data/pokemon/manectric-mega.json +26 -1
- package/data/pokemon/mawile-mega.json +26 -1
- package/data/pokemon/mawile.json +0 -1
- package/data/pokemon/medicham-mega.json +26 -1
- package/data/pokemon/meganium-mega.json +18 -1
- package/data/pokemon/melmetal-gmax.json +12 -0
- package/data/pokemon/meloetta-pirouette.json +29 -0
- package/data/pokemon/meowstic-mega.json +18 -1
- package/data/pokemon/meowth-alola.json +2 -0
- package/data/pokemon/meowth-gmax.json +12 -0
- package/data/pokemon/metagross-mega.json +26 -1
- package/data/pokemon/mewtwo-mega-x.json +34 -1
- package/data/pokemon/mewtwo-mega-y.json +34 -1
- package/data/pokemon/mimikyu-busted.json +53 -0
- package/data/pokemon/minior-blue.json +53 -0
- package/data/pokemon/minior-green.json +53 -0
- package/data/pokemon/minior-indigo.json +53 -0
- package/data/pokemon/minior-orange.json +53 -0
- package/data/pokemon/minior-red.json +53 -0
- package/data/pokemon/minior-violet.json +53 -0
- package/data/pokemon/minior-yellow.json +53 -0
- package/data/pokemon/morpeko-hangry.json +57 -0
- package/data/pokemon/necrozma-dawn-wings.json +18 -0
- package/data/pokemon/necrozma-dusk-mane.json +18 -0
- package/data/pokemon/necrozma-ultra.json +21 -0
- package/data/pokemon/ogerpon-cornerstone.json +9 -1
- package/data/pokemon/ogerpon-hearthflame.json +9 -1
- package/data/pokemon/ogerpon-wellspring.json +9 -1
- package/data/pokemon/ogerpon.json +13 -0
- package/data/pokemon/orbeetle-gmax.json +12 -0
- package/data/pokemon/oricorio-pau.json +9 -0
- package/data/pokemon/oricorio-pom-pom.json +9 -0
- package/data/pokemon/oricorio-sensu.json +9 -0
- package/data/pokemon/oricorio.json +9 -0
- package/data/pokemon/palafin-hero.json +16 -0
- package/data/pokemon/palkia-origin.json +40 -1
- package/data/pokemon/persian-alola.json +2 -0
- package/data/pokemon/pidgeot-mega.json +34 -1
- package/data/pokemon/pikachu-gmax.json +12 -0
- package/data/pokemon/pinsir-mega.json +34 -1
- package/data/pokemon/piplup.json +1 -0
- package/data/pokemon/prinplup.json +1 -0
- package/data/pokemon/pyroar-mega.json +18 -1
- package/data/pokemon/raichu-mega-x.json +18 -1
- package/data/pokemon/raichu-mega-y.json +18 -1
- package/data/pokemon/rayquaza-mega.json +29 -0
- package/data/pokemon/rillaboom-gmax.json +12 -0
- package/data/pokemon/rotom-fan.json +94 -0
- package/data/pokemon/rotom-frost.json +94 -0
- package/data/pokemon/rotom-heat.json +94 -0
- package/data/pokemon/rotom-mow.json +94 -0
- package/data/pokemon/rotom-wash.json +94 -0
- package/data/pokemon/rotom.json +112 -0
- package/data/pokemon/sableye-mega.json +26 -1
- package/data/pokemon/salamence-mega.json +26 -1
- package/data/pokemon/sandaconda-gmax.json +12 -0
- package/data/pokemon/sawsbuck-autumn.json +47 -0
- package/data/pokemon/sawsbuck-summer.json +36 -0
- package/data/pokemon/sawsbuck-winter.json +47 -0
- package/data/pokemon/sawsbuck.json +47 -0
- package/data/pokemon/sceptile-mega.json +26 -1
- package/data/pokemon/scizor-mega.json +26 -1
- package/data/pokemon/scolipede-mega.json +18 -1
- package/data/pokemon/scolipede.json +1 -0
- package/data/pokemon/scovillain-mega.json +18 -1
- package/data/pokemon/scrafty-mega.json +18 -1
- package/data/pokemon/sharpedo-mega.json +26 -1
- package/data/pokemon/shaymin-sky.json +151 -0
- package/data/pokemon/shiftry-f.json +1 -0
- package/data/pokemon/shiftry.json +1 -0
- package/data/pokemon/silvally-bug.json +27 -1
- package/data/pokemon/silvally-dark.json +27 -1
- package/data/pokemon/silvally-dragon.json +27 -1
- package/data/pokemon/silvally-electric.json +27 -1
- package/data/pokemon/silvally-fairy.json +27 -1
- package/data/pokemon/silvally-fighting.json +27 -1
- package/data/pokemon/silvally-fire.json +27 -1
- package/data/pokemon/silvally-flying.json +27 -1
- package/data/pokemon/silvally-ghost.json +27 -1
- package/data/pokemon/silvally-grass.json +27 -1
- package/data/pokemon/silvally-ground.json +27 -1
- package/data/pokemon/silvally-ice.json +27 -1
- package/data/pokemon/silvally-poison.json +27 -1
- package/data/pokemon/silvally-psychic.json +27 -1
- package/data/pokemon/silvally-rock.json +27 -1
- package/data/pokemon/silvally-steel.json +27 -1
- package/data/pokemon/silvally-water.json +27 -1
- package/data/pokemon/silvally.json +50 -0
- package/data/pokemon/skarmory-mega.json +18 -1
- package/data/pokemon/slowbro-mega.json +34 -1
- package/data/pokemon/snorlax-gmax.json +12 -0
- package/data/pokemon/staraptor-mega.json +18 -0
- package/data/pokemon/starmie-mega.json +18 -1
- package/data/pokemon/steelix-mega.json +26 -1
- package/data/pokemon/swampert-mega.json +26 -1
- package/data/pokemon/tatsugiri-droopy-mega.json +18 -1
- package/data/pokemon/tatsugiri-mega.json +18 -1
- package/data/pokemon/tatsugiri-stretchy-mega.json +18 -1
- package/data/pokemon/terapagos-stellar.json +15 -0
- package/data/pokemon/terapagos-terastal.json +15 -0
- package/data/pokemon/thundurus-therian.json +32 -0
- package/data/pokemon/tornadus-therian.json +32 -0
- package/data/pokemon/toxtricity-gmax.json +12 -0
- package/data/pokemon/toxtricity-low-key-gmax.json +12 -0
- package/data/pokemon/tyranitar-mega.json +26 -1
- package/data/pokemon/urshifu-gmax.json +12 -0
- package/data/pokemon/urshifu-rapid-strike-gmax.json +12 -0
- package/data/pokemon/venipede.json +1 -0
- package/data/pokemon/venusaur-gmax.json +12 -0
- package/data/pokemon/venusaur-mega.json +34 -1
- package/data/pokemon/victreebel-mega.json +18 -1
- package/data/pokemon/whirlipede.json +1 -0
- package/data/pokemon/wishiwashi-school.json +24 -0
- package/data/pokemon/xerneas-active.json +11 -0
- package/data/pokemon/zacian-crowned.json +19 -1
- package/data/pokemon/zamazenta-crowned.json +19 -1
- package/data/pokemon/zeraora-mega.json +18 -1
- package/data/pokemon/zygarde-10.json +19 -0
- package/data/pokemon/zygarde-complete-mega.json +18 -1
- package/data/pokemon/zygarde-complete.json +36 -0
- package/data/pokemon/zygarde.json +33 -0
- package/package.json +4 -1
- package/build/enums-CXl-yCW7.mjs +0 -274
- package/build/enums-CXl-yCW7.mjs.map +0 -1
- package/build/enums-DNGH357y.d.mts +0 -43
- package/build/enums-DNGH357y.d.mts.map +0 -1
- package/build/schemas-30DCmCcg.mjs.map +0 -1
- package/build/schemas-D2xLu3LV.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -30,6 +30,30 @@ The OpenAPI docs and static JSON API are hosted on GitHub Pages:
|
|
|
30
30
|
- API client (Swagger UI) https://pokepc.github.io/dataset/
|
|
31
31
|
- OpenAPI spec: https://pokepc.github.io/dataset/openapi.json
|
|
32
32
|
|
|
33
|
+
| URL path | Dataset source |
|
|
34
|
+
| ------------------ | ----------------------------------------- |
|
|
35
|
+
| `/dataset/` | Latest default-branch build (development) |
|
|
36
|
+
| `/dataset/latest/` | Latest stable SemVer tag |
|
|
37
|
+
| `/dataset/v6/` | Latest stable v6 tag |
|
|
38
|
+
| `/dataset/v7/` | Latest stable v7 tag |
|
|
39
|
+
|
|
40
|
+
Each path serves its own `openapi.json`, `data/`, and `data-next/`. Every spec lists all deployed
|
|
41
|
+
servers, with its own server selected first in Swagger UI. The documentation links open each
|
|
42
|
+
version's matching schema; changing the server dropdown only changes the request destination.
|
|
43
|
+
[`versions.json`](https://pokepc.github.io/dataset/versions.json) records the deployed refs and
|
|
44
|
+
commits.
|
|
45
|
+
|
|
46
|
+
Retained major paths are configured in [`pages-versions.json`](pages-versions.json). Add a major
|
|
47
|
+
after its first stable tag exists to expose `/vN/`; removing one removes that path on the next
|
|
48
|
+
deployment. Root and `/latest/` are always included. Tags may use `6.9.1` or `v6.9.1` spelling;
|
|
49
|
+
prereleases are excluded and versions are compared numerically. Conflicting equal-precedence tags,
|
|
50
|
+
missing configured releases, or tag/package version mismatches fail the build.
|
|
51
|
+
|
|
52
|
+
Pages rebuilds for default-branch source/configuration changes and after a successful **Publish npm
|
|
53
|
+
Packages** workflow. To refresh independently of npm, run **Deploy to GitHub Pages** manually from
|
|
54
|
+
Actions. Every deployment replaces the site with one complete artifact, preserving all configured
|
|
55
|
+
major paths. Historical builds use their own code and frozen dependency lockfiles.
|
|
56
|
+
|
|
33
57
|
### Use Cases of the `openapi.json` spec
|
|
34
58
|
|
|
35
59
|
Apart from being able to use it in your code with validators or generators, when combined with AI
|
|
@@ -66,7 +90,12 @@ Root JSON files are collection files. `games/`, `pokedexes/`, and `pokemon/` con
|
|
|
66
90
|
per entity. `indices/` controls the order of those per-entity files.
|
|
67
91
|
|
|
68
92
|
The [Pokémon availability field reference](docs/pokemon-availability.md) defines acquisition,
|
|
69
|
-
storage, shiny availability, and related form fields for both maintainers and agents.
|
|
93
|
+
storage, shiny availability, and related form fields for both maintainers and agents. The
|
|
94
|
+
[evolution reference](docs/pokemon-evolutions.md) and
|
|
95
|
+
[form-transition reference](docs/pokemon-forms.md) explain the method arrays, typed conditions, and
|
|
96
|
+
translation-ready enum exports. The [ability-history audit](docs/audits/pokemon-ability-changes.md)
|
|
97
|
+
defines `legacyAbilities` and lists released historical ability changes, with unreleased/unused
|
|
98
|
+
assignments documented as exclusions.
|
|
70
99
|
|
|
71
100
|
## Contributing
|
|
72
101
|
|
|
@@ -99,8 +128,35 @@ dist-pages/
|
|
|
99
128
|
index.html
|
|
100
129
|
openapi.json
|
|
101
130
|
data/
|
|
131
|
+
data-next/
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Build all published versions from the remote default branch and tags (requires Git, Node.js 24+,
|
|
135
|
+
Bun, pnpm, and network access). This uses the current checkout's deployment configuration and
|
|
136
|
+
Swagger shell while leaving its source files and index unchanged:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
pnpm build:pages:versions
|
|
102
140
|
```
|
|
103
141
|
|
|
142
|
+
The aggregate output adds `latest/`, configured `vN/` directories, and `versions.json` to
|
|
143
|
+
`dist-pages/`. Sources pointing to the same commit are built once. All sources must build
|
|
144
|
+
successfully before the output is replaced. CI pins the root source to its tested checkout with
|
|
145
|
+
`--root-sha=<full-commit-sha>` so a concurrent push cannot mix the checked configuration with a
|
|
146
|
+
newer default-branch build.
|
|
147
|
+
|
|
148
|
+
To build and preview the aggregate site locally under the same project prefix:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
pnpm build:pages:versions --base-url=http://localhost:4173/dataset/
|
|
152
|
+
pnpm dev:pages:versions
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Open `http://localhost:4173/dataset/`. This preview serves the assembled files without rebuilding
|
|
156
|
+
them; every server option targets the local preview. Keep the build URL's port aligned with the
|
|
157
|
+
preview's `PORT` or `--port` setting. A deployment build uses the public `package.json` homepage as
|
|
158
|
+
its base URL by default.
|
|
159
|
+
|
|
104
160
|
Preview the Swagger UI locally:
|
|
105
161
|
|
|
106
162
|
```bash
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as modernBoxPresetSlotSchema } from "./schemas-
|
|
1
|
+
import { b as modernBoxPresetSlotSchema } from "./schemas-Bl5_UJHu.mjs";
|
|
2
2
|
//#region src/lib/box-preset-sanitizer.ts
|
|
3
3
|
const incompatibleClassicPokemonIds = [
|
|
4
4
|
"greninja--battle-bond",
|
|
@@ -51,4 +51,4 @@ function collectModernBoxPresetSanitizerDiagnostics(originalSlots, sanitizedSlot
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { sanitizeModernBoxPresetSlots as a, sanitizeModernBoxPresetSlot as i, incompatibleClassicPokemonIds as n, modernBoxPresetSlotFilters as r, collectModernBoxPresetSanitizerDiagnostics as t };
|
|
53
53
|
|
|
54
|
-
//# sourceMappingURL=box-preset-sanitizer-
|
|
54
|
+
//# sourceMappingURL=box-preset-sanitizer-DRi4Ayrn.mjs.map
|
package/build/{box-preset-sanitizer-BE4i0vEj.mjs.map → box-preset-sanitizer-DRi4Ayrn.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box-preset-sanitizer-
|
|
1
|
+
{"version":3,"file":"box-preset-sanitizer-DRi4Ayrn.mjs","names":[],"sources":["../src/lib/box-preset-sanitizer.ts"],"sourcesContent":["import { modernBoxPresetSlotSchema } from './schemas'\n\nexport type ModernBoxPresetSlotInput =\n | null\n | string\n | {\n pid: string\n shiny?: boolean\n gmax?: boolean\n shinyLocked?: boolean\n }\n\nexport type ModernBoxPresetSlotSanitizerContext = {\n gameSet: string\n presetId: string\n boxIndex: number\n slotIndex: number\n validPokemonIds: ReadonlySet<string>\n}\n\nexport type ModernBoxPresetSlotFilter = (\n slot: ModernBoxPresetSlotInput,\n context: ModernBoxPresetSlotSanitizerContext,\n) => ModernBoxPresetSlotInput\n\nexport type ModernBoxPresetSanitizerDiagnostic = {\n reason: 'incompatible-classic-pokemon-id'\n pokemon: string\n gameSet: string\n presetId: string\n boxIndex: number\n slotIndex: number\n}\n\nexport const incompatibleClassicPokemonIds = [\n 'greninja--battle-bond',\n 'rockruff--own-tempo',\n 'zygarde--power-construct',\n 'zygarde-10--power-construct',\n] as const\nconst incompatibleClassicPokemonIdSet = new Set<string>(incompatibleClassicPokemonIds)\n\nfunction getSlotPokemonId(slot: ModernBoxPresetSlotInput): string | null {\n if (slot === null) return null\n if (typeof slot === 'string') return slot\n return slot.pid\n}\n\nfunction isIncompatibleClassicPokemonId(slot: ModernBoxPresetSlotInput): boolean {\n const pokemonId = getSlotPokemonId(slot)\n return pokemonId !== null && incompatibleClassicPokemonIdSet.has(pokemonId)\n}\n\nexport const modernBoxPresetSlotFilters: ModernBoxPresetSlotFilter[] = [\n (slot) => (isIncompatibleClassicPokemonId(slot) ? null : slot),\n]\n\nexport function sanitizeModernBoxPresetSlot(\n slot: ModernBoxPresetSlotInput,\n context: ModernBoxPresetSlotSanitizerContext,\n): Pkds.ModernBoxPresetSlot {\n const sanitized = modernBoxPresetSlotFilters.reduce(\n (currentSlot, filter) => filter(currentSlot, context),\n slot,\n )\n if (sanitized === null || typeof sanitized === 'string') {\n return sanitized\n }\n return modernBoxPresetSlotSchema.parse({\n pokemon: sanitized.pid,\n shiny: sanitized.shiny,\n gmax: sanitized.gmax,\n shinyLocked: sanitized.shinyLocked,\n })\n}\n\nexport function sanitizeModernBoxPresetSlots(\n slots: ModernBoxPresetSlotInput[],\n context: Omit<ModernBoxPresetSlotSanitizerContext, 'slotIndex'>,\n): Pkds.ModernBoxPresetSlot[] {\n return slots.map((slot, slotIndex) =>\n sanitizeModernBoxPresetSlot(slot, {\n ...context,\n slotIndex,\n }),\n )\n}\n\nexport function collectModernBoxPresetSanitizerDiagnostics(\n originalSlots: ModernBoxPresetSlotInput[],\n sanitizedSlots: Pkds.ModernBoxPresetSlot[],\n context: Omit<ModernBoxPresetSlotSanitizerContext, 'slotIndex'>,\n): ModernBoxPresetSanitizerDiagnostic[] {\n return originalSlots.flatMap((slot, slotIndex) => {\n const pokemon = getSlotPokemonId(slot)\n if (pokemon === null || sanitizedSlots[slotIndex] !== null) return []\n if (!incompatibleClassicPokemonIdSet.has(pokemon)) return []\n return [\n {\n reason: 'incompatible-classic-pokemon-id' as const,\n pokemon,\n gameSet: context.gameSet,\n presetId: context.presetId,\n boxIndex: context.boxIndex,\n slotIndex,\n },\n ]\n })\n}\n"],"mappings":";;AAkCA,MAAa,gCAAgC;CAC3C;CACA;CACA;CACA;AACF;AACA,MAAM,kCAAkC,IAAI,IAAY,6BAA6B;AAErF,SAAS,iBAAiB,MAA+C;CACvE,IAAI,SAAS,MAAM,OAAO;CAC1B,IAAI,OAAO,SAAS,UAAU,OAAO;CACrC,OAAO,KAAK;AACd;AAEA,SAAS,+BAA+B,MAAyC;CAC/E,MAAM,YAAY,iBAAiB,IAAI;CACvC,OAAO,cAAc,QAAQ,gCAAgC,IAAI,SAAS;AAC5E;AAEA,MAAa,6BAA0D,EACpE,SAAU,+BAA+B,IAAI,IAAI,OAAO,IAC3D;AAEA,SAAgB,4BACd,MACA,SAC0B;CAC1B,MAAM,YAAY,2BAA2B,QAC1C,aAAa,WAAW,OAAO,aAAa,OAAO,GACpD,IACF;CACA,IAAI,cAAc,QAAQ,OAAO,cAAc,UAC7C,OAAO;CAET,OAAO,0BAA0B,MAAM;EACrC,SAAS,UAAU;EACnB,OAAO,UAAU;EACjB,MAAM,UAAU;EAChB,aAAa,UAAU;CACzB,CAAC;AACH;AAEA,SAAgB,6BACd,OACA,SAC4B;CAC5B,OAAO,MAAM,KAAK,MAAM,cACtB,4BAA4B,MAAM;EAChC,GAAG;EACH;CACF,CAAC,CACH;AACF;AAEA,SAAgB,2CACd,eACA,gBACA,SACsC;CACtC,OAAO,cAAc,SAAS,MAAM,cAAc;EAChD,MAAM,UAAU,iBAAiB,IAAI;EACrC,IAAI,YAAY,QAAQ,eAAe,eAAe,MAAM,OAAO,CAAC;EACpE,IAAI,CAAC,gCAAgC,IAAI,OAAO,GAAG,OAAO,CAAC;EAC3D,OAAO,CACL;GACE,QAAQ;GACR;GACA,SAAS,QAAQ;GACjB,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB;EACF,CACF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
//#region src/lib/enums.ts
|
|
2
|
+
const gameType = [
|
|
3
|
+
"superset",
|
|
4
|
+
"set",
|
|
5
|
+
"game",
|
|
6
|
+
"dlc"
|
|
7
|
+
];
|
|
8
|
+
const gamePlatforms = [
|
|
9
|
+
"gb",
|
|
10
|
+
"gbc",
|
|
11
|
+
"gba",
|
|
12
|
+
"nds",
|
|
13
|
+
"3ds",
|
|
14
|
+
"mobile",
|
|
15
|
+
"ngc",
|
|
16
|
+
"wii",
|
|
17
|
+
"wiiu",
|
|
18
|
+
"switch",
|
|
19
|
+
"switch2"
|
|
20
|
+
];
|
|
21
|
+
const gameSeries = [
|
|
22
|
+
"main",
|
|
23
|
+
"spinoff",
|
|
24
|
+
"storage",
|
|
25
|
+
"legends"
|
|
26
|
+
];
|
|
27
|
+
const itemCategory = [
|
|
28
|
+
"ball",
|
|
29
|
+
"medicine",
|
|
30
|
+
"battle",
|
|
31
|
+
"berry",
|
|
32
|
+
"machine",
|
|
33
|
+
"megastone",
|
|
34
|
+
"zcrystal",
|
|
35
|
+
"treasure",
|
|
36
|
+
"ingredient",
|
|
37
|
+
"material",
|
|
38
|
+
"key",
|
|
39
|
+
"other"
|
|
40
|
+
];
|
|
41
|
+
const pokeballCategory = [
|
|
42
|
+
"regular",
|
|
43
|
+
"special",
|
|
44
|
+
"hisuian",
|
|
45
|
+
"other"
|
|
46
|
+
];
|
|
47
|
+
const languageIds = [
|
|
48
|
+
"en",
|
|
49
|
+
"es",
|
|
50
|
+
"esla",
|
|
51
|
+
"fr",
|
|
52
|
+
"de",
|
|
53
|
+
"it",
|
|
54
|
+
"ja",
|
|
55
|
+
"ko",
|
|
56
|
+
"chs",
|
|
57
|
+
"cht",
|
|
58
|
+
"pt"
|
|
59
|
+
];
|
|
60
|
+
const languageAlpha3Codes = [
|
|
61
|
+
"eng",
|
|
62
|
+
"esp",
|
|
63
|
+
"esla",
|
|
64
|
+
"fra",
|
|
65
|
+
"deu",
|
|
66
|
+
"ita",
|
|
67
|
+
"jap",
|
|
68
|
+
"kor",
|
|
69
|
+
"chs",
|
|
70
|
+
"cht",
|
|
71
|
+
"por"
|
|
72
|
+
];
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated use gameLocales from lib-next/languages
|
|
75
|
+
*/
|
|
76
|
+
const languageInGameCodes = [
|
|
77
|
+
"ENG",
|
|
78
|
+
"ES-ES",
|
|
79
|
+
"ES-LA",
|
|
80
|
+
"FRA",
|
|
81
|
+
"DEU",
|
|
82
|
+
"ITA",
|
|
83
|
+
"JPN",
|
|
84
|
+
"KOR",
|
|
85
|
+
"CHT",
|
|
86
|
+
"CHS",
|
|
87
|
+
"PT-BR"
|
|
88
|
+
];
|
|
89
|
+
const ribbonCategory = [
|
|
90
|
+
"league",
|
|
91
|
+
"contest",
|
|
92
|
+
"tower",
|
|
93
|
+
"memory",
|
|
94
|
+
"gift"
|
|
95
|
+
];
|
|
96
|
+
const typeIds = [
|
|
97
|
+
"normal",
|
|
98
|
+
"fire",
|
|
99
|
+
"water",
|
|
100
|
+
"electric",
|
|
101
|
+
"grass",
|
|
102
|
+
"ice",
|
|
103
|
+
"fighting",
|
|
104
|
+
"poison",
|
|
105
|
+
"ground",
|
|
106
|
+
"flying",
|
|
107
|
+
"psychic",
|
|
108
|
+
"bug",
|
|
109
|
+
"rock",
|
|
110
|
+
"ghost",
|
|
111
|
+
"dragon",
|
|
112
|
+
"dark",
|
|
113
|
+
"steel",
|
|
114
|
+
"fairy",
|
|
115
|
+
"stellar"
|
|
116
|
+
];
|
|
117
|
+
/** Category tags on abilities (data/abilities.json `tags`). */
|
|
118
|
+
const abilityTagIds = [
|
|
119
|
+
"alert",
|
|
120
|
+
"ally-helper",
|
|
121
|
+
"stat-boost",
|
|
122
|
+
"move-boost",
|
|
123
|
+
"bypass",
|
|
124
|
+
"defense",
|
|
125
|
+
"handicap",
|
|
126
|
+
"heal",
|
|
127
|
+
"items",
|
|
128
|
+
"priority-control",
|
|
129
|
+
"damage",
|
|
130
|
+
"target-weaken",
|
|
131
|
+
"status-trigger",
|
|
132
|
+
"status-immunity",
|
|
133
|
+
"steal",
|
|
134
|
+
"weather",
|
|
135
|
+
"terrain",
|
|
136
|
+
"trap",
|
|
137
|
+
"ability-change",
|
|
138
|
+
"type-change",
|
|
139
|
+
"species-specific",
|
|
140
|
+
"other"
|
|
141
|
+
];
|
|
142
|
+
const statIds = [
|
|
143
|
+
"hp",
|
|
144
|
+
"atk",
|
|
145
|
+
"def",
|
|
146
|
+
"spa",
|
|
147
|
+
"spd",
|
|
148
|
+
"spe",
|
|
149
|
+
"acc",
|
|
150
|
+
"eva"
|
|
151
|
+
];
|
|
152
|
+
const moveCategory = [
|
|
153
|
+
"physical",
|
|
154
|
+
"special",
|
|
155
|
+
"status"
|
|
156
|
+
];
|
|
157
|
+
const genders = ["m", "f"];
|
|
158
|
+
const titleTypes = [
|
|
159
|
+
"ribbon",
|
|
160
|
+
"mark",
|
|
161
|
+
"custom"
|
|
162
|
+
];
|
|
163
|
+
const pokemonSizes = [
|
|
164
|
+
"xs",
|
|
165
|
+
"s",
|
|
166
|
+
"m",
|
|
167
|
+
"l",
|
|
168
|
+
"xl"
|
|
169
|
+
];
|
|
170
|
+
const ivJudgeValues = [
|
|
171
|
+
"nogood",
|
|
172
|
+
"decent",
|
|
173
|
+
"good",
|
|
174
|
+
"verygood",
|
|
175
|
+
"fantastic",
|
|
176
|
+
"best"
|
|
177
|
+
];
|
|
178
|
+
const battleStyles = [
|
|
179
|
+
"singles",
|
|
180
|
+
"doubles",
|
|
181
|
+
"triples",
|
|
182
|
+
"rotation",
|
|
183
|
+
"royale"
|
|
184
|
+
];
|
|
185
|
+
const raidStyles = ["dynamax", "tera"];
|
|
186
|
+
/** Evolution vocabulary, also used by the evolution schemas. */
|
|
187
|
+
const evoTriggers = [
|
|
188
|
+
"level_up",
|
|
189
|
+
"trade",
|
|
190
|
+
"use_item",
|
|
191
|
+
"special"
|
|
192
|
+
];
|
|
193
|
+
const evoItemRoles = [
|
|
194
|
+
"held",
|
|
195
|
+
"used",
|
|
196
|
+
"bag"
|
|
197
|
+
];
|
|
198
|
+
const evoActivations = ["automatic", "manual"];
|
|
199
|
+
const evoConditionKeys = [
|
|
200
|
+
"friendship",
|
|
201
|
+
"affection",
|
|
202
|
+
"beauty",
|
|
203
|
+
"gender",
|
|
204
|
+
"time_of_day",
|
|
205
|
+
"known_move",
|
|
206
|
+
"known_move_type",
|
|
207
|
+
"ability",
|
|
208
|
+
"party_pokemon",
|
|
209
|
+
"party_type",
|
|
210
|
+
"trade_partner",
|
|
211
|
+
"attack_defense_comparison",
|
|
212
|
+
"overworld_weather",
|
|
213
|
+
"location",
|
|
214
|
+
"region",
|
|
215
|
+
"device_upside_down",
|
|
216
|
+
"union_circle",
|
|
217
|
+
"walk_steps",
|
|
218
|
+
"outside_poke_ball",
|
|
219
|
+
"battle_experience",
|
|
220
|
+
"use_move",
|
|
221
|
+
"hit_with_move",
|
|
222
|
+
"recoil_damage_without_fainting",
|
|
223
|
+
"damage_without_fainting",
|
|
224
|
+
"critical_hits_in_one_battle",
|
|
225
|
+
"defeat_pokemon_holding_item",
|
|
226
|
+
"spin",
|
|
227
|
+
"hidden_value_branch",
|
|
228
|
+
"nature",
|
|
229
|
+
"spare_party_slot",
|
|
230
|
+
"spare_poke_ball",
|
|
231
|
+
"evolve_other",
|
|
232
|
+
"full_moon",
|
|
233
|
+
"interact_with_scroll",
|
|
234
|
+
"vivillon_pattern",
|
|
235
|
+
"candy"
|
|
236
|
+
];
|
|
237
|
+
const evoGenders = [
|
|
238
|
+
"male",
|
|
239
|
+
"female",
|
|
240
|
+
"genderless"
|
|
241
|
+
];
|
|
242
|
+
const evoTimesOfDay = [
|
|
243
|
+
"day",
|
|
244
|
+
"night",
|
|
245
|
+
"dusk"
|
|
246
|
+
];
|
|
247
|
+
const evoStatComparisons = [
|
|
248
|
+
"lt",
|
|
249
|
+
"eq",
|
|
250
|
+
"gt"
|
|
251
|
+
];
|
|
252
|
+
const evoWeather = ["rain", "fog"];
|
|
253
|
+
const evoLocations = [
|
|
254
|
+
"magnetic_field",
|
|
255
|
+
"moss_rock",
|
|
256
|
+
"ice_rock",
|
|
257
|
+
"mount_lanakila",
|
|
258
|
+
"dusty_bowl_arch",
|
|
259
|
+
"coulant_waterway_bridge"
|
|
260
|
+
];
|
|
261
|
+
const evoRegionRelations = ["in", "outside"];
|
|
262
|
+
const evoWalkModes = ["lets_go"];
|
|
263
|
+
const evoMoveStyles = ["agile", "strong"];
|
|
264
|
+
const evoSpinDirections = [
|
|
265
|
+
"clockwise",
|
|
266
|
+
"counterclockwise",
|
|
267
|
+
"either"
|
|
268
|
+
];
|
|
269
|
+
const evoSpinComparisons = ["lt", "gt"];
|
|
270
|
+
const evoScrolls = ["darkness", "waters"];
|
|
271
|
+
/** Form transition vocabulary, also used by the form schemas. */
|
|
272
|
+
const formTriggers = [
|
|
273
|
+
"use_item",
|
|
274
|
+
"equip_item",
|
|
275
|
+
"remove_item",
|
|
276
|
+
"learn_move",
|
|
277
|
+
"forget_move",
|
|
278
|
+
"use_move",
|
|
279
|
+
"interact",
|
|
280
|
+
"fuse",
|
|
281
|
+
"separate",
|
|
282
|
+
"automatic",
|
|
283
|
+
"special"
|
|
284
|
+
];
|
|
285
|
+
const formItemRoles = [
|
|
286
|
+
"held",
|
|
287
|
+
"used",
|
|
288
|
+
"bag"
|
|
289
|
+
];
|
|
290
|
+
const formConditionKeys = [
|
|
291
|
+
"ability",
|
|
292
|
+
"known_move",
|
|
293
|
+
"move_used",
|
|
294
|
+
"move_category",
|
|
295
|
+
"time_of_day",
|
|
296
|
+
"status",
|
|
297
|
+
"fusion_partner",
|
|
298
|
+
"interaction",
|
|
299
|
+
"location",
|
|
300
|
+
"environment",
|
|
301
|
+
"season",
|
|
302
|
+
"elapsed_time",
|
|
303
|
+
"storage_event",
|
|
304
|
+
"transfer",
|
|
305
|
+
"battle_event",
|
|
306
|
+
"original_form",
|
|
307
|
+
"intrinsic_form",
|
|
308
|
+
"spare_party_slot",
|
|
309
|
+
"mechanic",
|
|
310
|
+
"hp",
|
|
311
|
+
"weather",
|
|
312
|
+
"held_item_absent",
|
|
313
|
+
"battle_condition"
|
|
314
|
+
];
|
|
315
|
+
const formMoveRelations = ["knows", "does_not_know"];
|
|
316
|
+
const formTimesOfDay = [
|
|
317
|
+
"morning",
|
|
318
|
+
"day",
|
|
319
|
+
"dusk",
|
|
320
|
+
"evening",
|
|
321
|
+
"night"
|
|
322
|
+
];
|
|
323
|
+
const formStatuses = [
|
|
324
|
+
"frozen",
|
|
325
|
+
"frostbite",
|
|
326
|
+
"fainted"
|
|
327
|
+
];
|
|
328
|
+
const formStatusRelations = ["is", "not"];
|
|
329
|
+
const formInteractions = [
|
|
330
|
+
"contest_spectacular_ends",
|
|
331
|
+
"deoxys_meteorite",
|
|
332
|
+
"electric_fan",
|
|
333
|
+
"enter_contest_spectacular",
|
|
334
|
+
"enter_union_room",
|
|
335
|
+
"enter_wifi_club",
|
|
336
|
+
"furfrou_groom",
|
|
337
|
+
"furfrou_restore_natural",
|
|
338
|
+
"lawn_mower",
|
|
339
|
+
"leave_distortion_world",
|
|
340
|
+
"light_bulb",
|
|
341
|
+
"load_game",
|
|
342
|
+
"microwave_oven",
|
|
343
|
+
"reassembly_unit",
|
|
344
|
+
"recall_outside_battle",
|
|
345
|
+
"refrigerator",
|
|
346
|
+
"return_appliance",
|
|
347
|
+
"washing_machine"
|
|
348
|
+
];
|
|
349
|
+
const formLocations = [
|
|
350
|
+
"alabaster_icelands",
|
|
351
|
+
"ambrette_fossil_lab_meteorites",
|
|
352
|
+
"bell_tower",
|
|
353
|
+
"burned_tower",
|
|
354
|
+
"cobalt_coastlands",
|
|
355
|
+
"coronet_highlands",
|
|
356
|
+
"crimson_mirelands",
|
|
357
|
+
"dalizapa_passage",
|
|
358
|
+
"distortion_world",
|
|
359
|
+
"east_province_area_one",
|
|
360
|
+
"east_province_area_two",
|
|
361
|
+
"friseur_furfrou",
|
|
362
|
+
"glaseado_mountain",
|
|
363
|
+
"hauoli_city_salon",
|
|
364
|
+
"hokulani_observatory_meteorite",
|
|
365
|
+
"jaune_sector_6",
|
|
366
|
+
"jubilife_village",
|
|
367
|
+
"jubilife_village_player_quarters",
|
|
368
|
+
"kanto_route_3_meteorites",
|
|
369
|
+
"malie_city_salon",
|
|
370
|
+
"nacrene_museum_meteorite",
|
|
371
|
+
"north_province_area_one",
|
|
372
|
+
"obsidian_fieldlands",
|
|
373
|
+
"professor_birchs_lab",
|
|
374
|
+
"professor_cozmos_house_meteorite",
|
|
375
|
+
"professor_kukuis_lab",
|
|
376
|
+
"shopping_mall_nine_basement",
|
|
377
|
+
"silph_co_rotom_room",
|
|
378
|
+
"slateport_pokemon_fan_club",
|
|
379
|
+
"socarrat_trail",
|
|
380
|
+
"south_province_area_five",
|
|
381
|
+
"south_province_area_four",
|
|
382
|
+
"south_province_area_one",
|
|
383
|
+
"sprout_tower",
|
|
384
|
+
"sycamore_pokemon_lab",
|
|
385
|
+
"team_galactic_eterna_building_rotom_room",
|
|
386
|
+
"veilstone_city_meteorites",
|
|
387
|
+
"west_province_area_three",
|
|
388
|
+
"west_province_area_two"
|
|
389
|
+
];
|
|
390
|
+
const formEnvironments = [
|
|
391
|
+
"building",
|
|
392
|
+
"cave_or_beach",
|
|
393
|
+
"outdoors_or_tall_grass",
|
|
394
|
+
"outside_distortion_world",
|
|
395
|
+
"snowstorm"
|
|
396
|
+
];
|
|
397
|
+
const formSeasons = [
|
|
398
|
+
"spring",
|
|
399
|
+
"summer",
|
|
400
|
+
"autumn",
|
|
401
|
+
"winter"
|
|
402
|
+
];
|
|
403
|
+
const formTimeUnits = [
|
|
404
|
+
"turns",
|
|
405
|
+
"days",
|
|
406
|
+
"seconds"
|
|
407
|
+
];
|
|
408
|
+
const formStorageEvents = ["deposit", "withdrawal"];
|
|
409
|
+
const formStorageServices = [
|
|
410
|
+
"bank",
|
|
411
|
+
"day_care",
|
|
412
|
+
"home",
|
|
413
|
+
"nursery",
|
|
414
|
+
"pc"
|
|
415
|
+
];
|
|
416
|
+
const formBattleEvents = [
|
|
417
|
+
"battle_start",
|
|
418
|
+
"battle_end",
|
|
419
|
+
"switch_in",
|
|
420
|
+
"switch_out",
|
|
421
|
+
"end_of_turn",
|
|
422
|
+
"before_move",
|
|
423
|
+
"after_move",
|
|
424
|
+
"damaging_hit",
|
|
425
|
+
"physical_hit",
|
|
426
|
+
"faint"
|
|
427
|
+
];
|
|
428
|
+
/** Event shorthand accepted by formMethods[].revert. */
|
|
429
|
+
const formRevertEvents = formBattleEvents;
|
|
430
|
+
const formMechanics = [
|
|
431
|
+
"change_a_move_other_than_secret_sword",
|
|
432
|
+
"dynamax",
|
|
433
|
+
"gigantamax",
|
|
434
|
+
"in_party",
|
|
435
|
+
"legend_plate",
|
|
436
|
+
"mega_evolution",
|
|
437
|
+
"not_holding_griseous_orb",
|
|
438
|
+
"participated_in_battle",
|
|
439
|
+
"terastallization",
|
|
440
|
+
"ultra_burst"
|
|
441
|
+
];
|
|
442
|
+
const formComparisons = [
|
|
443
|
+
"lt",
|
|
444
|
+
"lte",
|
|
445
|
+
"eq",
|
|
446
|
+
"gte",
|
|
447
|
+
"gt"
|
|
448
|
+
];
|
|
449
|
+
const formWeather = [
|
|
450
|
+
"sun",
|
|
451
|
+
"rain",
|
|
452
|
+
"hail",
|
|
453
|
+
"snow",
|
|
454
|
+
"none"
|
|
455
|
+
];
|
|
456
|
+
const formWeatherRelations = ["in", "outside"];
|
|
457
|
+
const formBattleConditions = [
|
|
458
|
+
"ability_is_not_sheer_force",
|
|
459
|
+
"at_least_40_additional_zygarde_cells",
|
|
460
|
+
"battle_bond_not_previously_used",
|
|
461
|
+
"battle_continues",
|
|
462
|
+
"confusion_self_hit",
|
|
463
|
+
"directly_knock_out_opponent",
|
|
464
|
+
"disguise_not_bypassed",
|
|
465
|
+
"forecast_suppressed_or_replaced",
|
|
466
|
+
"gigantamax_factor",
|
|
467
|
+
"hail_or_snow_begins",
|
|
468
|
+
"ice_face_not_bypassed",
|
|
469
|
+
"in_battle",
|
|
470
|
+
"judgment_type_match",
|
|
471
|
+
"legends_arceus_sunshine_conditions_ended",
|
|
472
|
+
"mega_gauge_full",
|
|
473
|
+
"mega_power_depleted",
|
|
474
|
+
"move_affects_at_least_one_target",
|
|
475
|
+
"move_deals_damage",
|
|
476
|
+
"not_dynamaxed",
|
|
477
|
+
"not_terastallized",
|
|
478
|
+
"rayquaza_mega_eligible",
|
|
479
|
+
"sunlight_effect_or_flower_gift_inactive",
|
|
480
|
+
"ultra_burst_unused_by_trainer",
|
|
481
|
+
"weather_effects_active",
|
|
482
|
+
"weather_effects_negated",
|
|
483
|
+
"zen_mode_suppressed_or_replaced"
|
|
484
|
+
];
|
|
485
|
+
//#endregion
|
|
486
|
+
export { statIds as $, formStatusRelations as A, gameSeries as B, formInteractions as C, formMoveRelations as D, formMechanics as E, formTimesOfDay as F, languageAlpha3Codes as G, genders as H, formTriggers as I, moveCategory as J, languageIds as K, formWeather as L, formStorageEvents as M, formStorageServices as N, formRevertEvents as O, formTimeUnits as P, ribbonCategory as Q, formWeatherRelations as R, formEnvironments as S, formLocations as T, itemCategory as U, gameType as V, ivJudgeValues as W, pokemonSizes as X, pokeballCategory as Y, raidStyles as Z, evoWeather as _, evoGenders as a, formComparisons as b, evoMoveStyles as c, evoSpinComparisons as d, titleTypes as et, evoSpinDirections as f, evoWalkModes as g, evoTriggers as h, evoConditionKeys as i, formStatuses as j, formSeasons as k, evoRegionRelations as l, evoTimesOfDay as m, battleStyles as n, evoItemRoles as o, evoStatComparisons as p, languageInGameCodes as q, evoActivations as r, evoLocations as s, abilityTagIds as t, typeIds as tt, evoScrolls as u, formBattleConditions as v, formItemRoles as w, formConditionKeys as x, formBattleEvents as y, gamePlatforms as z };
|
|
487
|
+
|
|
488
|
+
//# sourceMappingURL=enums-Ajt5avHN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums-Ajt5avHN.mjs","names":[],"sources":["../src/lib/enums.ts"],"sourcesContent":["export const gameType = ['superset', 'set', 'game', 'dlc'] as const\nexport const gamePlatforms = [\n 'gb',\n 'gbc',\n 'gba',\n 'nds',\n '3ds',\n 'mobile',\n 'ngc',\n 'wii',\n 'wiiu',\n 'switch',\n 'switch2',\n] as const\nexport const gameSeries = ['main', 'spinoff', 'storage', 'legends'] as const\nexport const itemCategory = [\n 'ball',\n 'medicine',\n 'battle',\n 'berry',\n 'machine',\n 'megastone',\n 'zcrystal',\n 'treasure',\n 'ingredient',\n 'material',\n 'key',\n 'other',\n] as const\nexport const pokeballCategory = ['regular', 'special', 'hisuian', 'other'] as const\nexport const languageIds = [\n 'en',\n 'es',\n 'esla',\n 'fr',\n 'de',\n 'it',\n 'ja',\n 'ko',\n 'chs',\n 'cht',\n 'pt',\n] as const\nexport const languageAlpha3Codes = [\n 'eng',\n 'esp',\n 'esla',\n 'fra',\n 'deu',\n 'ita',\n 'jap',\n 'kor',\n 'chs',\n 'cht',\n 'por',\n] as const\n\n/**\n * @deprecated use gameLocales from lib-next/languages\n */\nexport const languageInGameCodes = [\n 'ENG',\n 'ES-ES',\n 'ES-LA',\n 'FRA',\n 'DEU',\n 'ITA',\n 'JPN',\n 'KOR',\n 'CHT',\n 'CHS',\n 'PT-BR',\n] as const\n\nexport const ribbonCategory = ['league', 'contest', 'tower', 'memory', 'gift'] as const\nexport const typeIds = [\n 'normal',\n 'fire',\n 'water',\n 'electric',\n 'grass',\n 'ice',\n 'fighting',\n 'poison',\n 'ground',\n 'flying',\n 'psychic',\n 'bug',\n 'rock',\n 'ghost',\n 'dragon',\n 'dark',\n 'steel',\n 'fairy',\n // Special types:\n // 'shadow', // Shadow pokemon in Colosseum and XD\n 'stellar', // keep. it can be used as Tera type and move damage in Scarlet and Violet\n] as const\n\n/** Category tags on abilities (data/abilities.json `tags`). */\nexport const abilityTagIds = [\n 'alert',\n 'ally-helper',\n 'stat-boost',\n 'move-boost',\n 'bypass',\n 'defense',\n 'handicap',\n 'heal',\n 'items',\n 'priority-control',\n 'damage',\n 'target-weaken',\n 'status-trigger',\n 'status-immunity',\n 'steal',\n 'weather',\n 'terrain',\n 'trap',\n 'ability-change',\n 'type-change',\n 'species-specific',\n 'other',\n] as const\n\nexport const statIds = ['hp', 'atk', 'def', 'spa', 'spd', 'spe', 'acc', 'eva'] as const\nexport const moveCategory = ['physical', 'special', 'status'] as const\nexport const genders = ['m', 'f'] as const // m: male, f: female, null/undefined: genderless\nexport const titleTypes = ['ribbon', 'mark', 'custom'] as const\nexport const pokemonSizes = ['xs', 's', 'm', 'l', 'xl'] as const\n\n/*\nIn most core series games:\nIV of 0: \"No good\" (or \"Not So Good\" in Let's GO)\nIV range of 1-15: \"Decent\" (or \"OK\" in Let's GO)\nIV range of 16-25: \"Pretty good\" (or \"Good\" in Let's GO)\nIV range 26-29: \"Very good\"\nIV of 30: \"Fantastic\"\nIV of 31: \"Best\"\n */\nexport const ivJudgeValues = ['nogood', 'decent', 'good', 'verygood', 'fantastic', 'best'] as const\n\nexport const battleStyles = ['singles', 'doubles', 'triples', 'rotation', 'royale'] as const\nexport const raidStyles = ['dynamax', 'tera'] as const\n\n/** Evolution vocabulary, also used by the evolution schemas. */\nexport const evoTriggers = ['level_up', 'trade', 'use_item', 'special'] as const\nexport const evoItemRoles = ['held', 'used', 'bag'] as const\nexport const evoActivations = ['automatic', 'manual'] as const\nexport const evoConditionKeys = [\n 'friendship',\n 'affection',\n 'beauty',\n 'gender',\n 'time_of_day',\n 'known_move',\n 'known_move_type',\n 'ability',\n 'party_pokemon',\n 'party_type',\n 'trade_partner',\n 'attack_defense_comparison',\n 'overworld_weather',\n 'location',\n 'region',\n 'device_upside_down',\n 'union_circle',\n 'walk_steps',\n 'outside_poke_ball',\n 'battle_experience',\n 'use_move',\n 'hit_with_move',\n 'recoil_damage_without_fainting',\n 'damage_without_fainting',\n 'critical_hits_in_one_battle',\n 'defeat_pokemon_holding_item',\n 'spin',\n 'hidden_value_branch',\n 'nature',\n 'spare_party_slot',\n 'spare_poke_ball',\n 'evolve_other',\n 'full_moon',\n 'interact_with_scroll',\n 'vivillon_pattern',\n 'candy',\n] as const\nexport const evoGenders = ['male', 'female', 'genderless'] as const\nexport const evoTimesOfDay = ['day', 'night', 'dusk'] as const\nexport const evoStatComparisons = ['lt', 'eq', 'gt'] as const\nexport const evoWeather = ['rain', 'fog'] as const\nexport const evoLocations = [\n 'magnetic_field',\n 'moss_rock',\n 'ice_rock',\n 'mount_lanakila',\n 'dusty_bowl_arch',\n 'coulant_waterway_bridge',\n] as const\nexport const evoRegionRelations = ['in', 'outside'] as const\nexport const evoWalkModes = ['lets_go'] as const\nexport const evoMoveStyles = ['agile', 'strong'] as const\nexport const evoSpinDirections = ['clockwise', 'counterclockwise', 'either'] as const\nexport const evoSpinComparisons = ['lt', 'gt'] as const\nexport const evoScrolls = ['darkness', 'waters'] as const\n\n/** Form transition vocabulary, also used by the form schemas. */\nexport const formTriggers = [\n 'use_item',\n 'equip_item',\n 'remove_item',\n 'learn_move',\n 'forget_move',\n 'use_move',\n 'interact',\n 'fuse',\n 'separate',\n 'automatic',\n 'special',\n] as const\nexport const formItemRoles = ['held', 'used', 'bag'] as const\nexport const formConditionKeys = [\n 'ability',\n 'known_move',\n 'move_used',\n 'move_category',\n 'time_of_day',\n 'status',\n 'fusion_partner',\n 'interaction',\n 'location',\n 'environment',\n 'season',\n 'elapsed_time',\n 'storage_event',\n 'transfer',\n 'battle_event',\n 'original_form',\n 'intrinsic_form',\n 'spare_party_slot',\n 'mechanic',\n 'hp',\n 'weather',\n 'held_item_absent',\n 'battle_condition',\n] as const\nexport const formMoveRelations = ['knows', 'does_not_know'] as const\nexport const formTimesOfDay = ['morning', 'day', 'dusk', 'evening', 'night'] as const\nexport const formStatuses = ['frozen', 'frostbite', 'fainted'] as const\nexport const formStatusRelations = ['is', 'not'] as const\nexport const formInteractions = [\n 'contest_spectacular_ends',\n 'deoxys_meteorite',\n 'electric_fan',\n 'enter_contest_spectacular',\n 'enter_union_room',\n 'enter_wifi_club',\n 'furfrou_groom',\n 'furfrou_restore_natural',\n 'lawn_mower',\n 'leave_distortion_world',\n 'light_bulb',\n 'load_game',\n 'microwave_oven',\n 'reassembly_unit',\n 'recall_outside_battle',\n 'refrigerator',\n 'return_appliance',\n 'washing_machine',\n] as const\nexport const formLocations = [\n 'alabaster_icelands',\n 'ambrette_fossil_lab_meteorites',\n 'bell_tower',\n 'burned_tower',\n 'cobalt_coastlands',\n 'coronet_highlands',\n 'crimson_mirelands',\n 'dalizapa_passage',\n 'distortion_world',\n 'east_province_area_one',\n 'east_province_area_two',\n 'friseur_furfrou',\n 'glaseado_mountain',\n 'hauoli_city_salon',\n 'hokulani_observatory_meteorite',\n 'jaune_sector_6',\n 'jubilife_village',\n 'jubilife_village_player_quarters',\n 'kanto_route_3_meteorites',\n 'malie_city_salon',\n 'nacrene_museum_meteorite',\n 'north_province_area_one',\n 'obsidian_fieldlands',\n 'professor_birchs_lab',\n 'professor_cozmos_house_meteorite',\n 'professor_kukuis_lab',\n 'shopping_mall_nine_basement',\n 'silph_co_rotom_room',\n 'slateport_pokemon_fan_club',\n 'socarrat_trail',\n 'south_province_area_five',\n 'south_province_area_four',\n 'south_province_area_one',\n 'sprout_tower',\n 'sycamore_pokemon_lab',\n 'team_galactic_eterna_building_rotom_room',\n 'veilstone_city_meteorites',\n 'west_province_area_three',\n 'west_province_area_two',\n] as const\nexport const formEnvironments = [\n 'building',\n 'cave_or_beach',\n 'outdoors_or_tall_grass',\n 'outside_distortion_world',\n 'snowstorm',\n] as const\nexport const formSeasons = ['spring', 'summer', 'autumn', 'winter'] as const\nexport const formTimeUnits = ['turns', 'days', 'seconds'] as const\nexport const formStorageEvents = ['deposit', 'withdrawal'] as const\nexport const formStorageServices = ['bank', 'day_care', 'home', 'nursery', 'pc'] as const\nexport const formBattleEvents = [\n 'battle_start',\n 'battle_end',\n 'switch_in',\n 'switch_out',\n 'end_of_turn',\n 'before_move',\n 'after_move',\n 'damaging_hit',\n 'physical_hit',\n 'faint',\n] as const\n/** Event shorthand accepted by formMethods[].revert. */\nexport const formRevertEvents = formBattleEvents\nexport const formMechanics = [\n 'change_a_move_other_than_secret_sword',\n 'dynamax',\n 'gigantamax',\n 'in_party',\n 'legend_plate',\n 'mega_evolution',\n 'not_holding_griseous_orb',\n 'participated_in_battle',\n 'terastallization',\n 'ultra_burst',\n] as const\nexport const formComparisons = ['lt', 'lte', 'eq', 'gte', 'gt'] as const\nexport const formWeather = ['sun', 'rain', 'hail', 'snow', 'none'] as const\nexport const formWeatherRelations = ['in', 'outside'] as const\nexport const formBattleConditions = [\n 'ability_is_not_sheer_force',\n 'at_least_40_additional_zygarde_cells',\n 'battle_bond_not_previously_used',\n 'battle_continues',\n 'confusion_self_hit',\n 'directly_knock_out_opponent',\n 'disguise_not_bypassed',\n 'forecast_suppressed_or_replaced',\n 'gigantamax_factor',\n 'hail_or_snow_begins',\n 'ice_face_not_bypassed',\n 'in_battle',\n 'judgment_type_match',\n 'legends_arceus_sunshine_conditions_ended',\n 'mega_gauge_full',\n 'mega_power_depleted',\n 'move_affects_at_least_one_target',\n 'move_deals_damage',\n 'not_dynamaxed',\n 'not_terastallized',\n 'rayquaza_mega_eligible',\n 'sunlight_effect_or_flower_gift_inactive',\n 'ultra_burst_unused_by_trainer',\n 'weather_effects_active',\n 'weather_effects_negated',\n 'zen_mode_suppressed_or_replaced',\n] as const\n"],"mappings":"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CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;AACF;AACA,MAAa,cAAc;CAAC;CAAU;CAAU;CAAU;AAAQ;AAClE,MAAa,gBAAgB;CAAC;CAAS;CAAQ;AAAS;AACxD,MAAa,oBAAoB,CAAC,WAAW,YAAY;AACzD,MAAa,sBAAsB;CAAC;CAAQ;CAAY;CAAQ;CAAW;AAAI;AAC/E,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAEA,MAAa,mBAAmB;AAChC,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,MAAa,kBAAkB;CAAC;CAAM;CAAO;CAAM;CAAO;AAAI;AAC9D,MAAa,cAAc;CAAC;CAAO;CAAQ;CAAQ;CAAQ;AAAM;AACjE,MAAa,uBAAuB,CAAC,MAAM,SAAS;AACpD,MAAa,uBAAuB;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|