pokenode-ts 1.8.2 → 1.10.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/CHANGELOG.md +13 -2
- package/README.md +7 -3
- package/dist/index.d.ts +314 -76
- package/package.json +38 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
# [1.10.0](https://github.com/Gabb-c/pokenode-ts/compare/v1.9.2...v1.10.0) (2021-12-03)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* **models:** berry growth_time to number ([c5e9759](https://github.com/Gabb-c/pokenode-ts/commit/c5e975965683abc47452ef418fb0f531c22ee818))
|
|
7
|
+
* **models:** evolution and gender ([32417bb](https://github.com/Gabb-c/pokenode-ts/commit/32417bb56be255c02306d42e52f415ad8af2131f))
|
|
8
|
+
* **models:** flavor text remove version ([1e43981](https://github.com/Gabb-c/pokenode-ts/commit/1e4398115ea8027c77408c71f4f66e521494dd68))
|
|
9
|
+
* **models:** location and machine types ([eecd050](https://github.com/Gabb-c/pokenode-ts/commit/eecd050b58bce8198df5dce23cc58dc8e8609eb6))
|
|
10
|
+
* **models:** location area types ([9bd621f](https://github.com/Gabb-c/pokenode-ts/commit/9bd621f28e17308926b78c248b031d04fe0c1684))
|
|
11
|
+
* **models:** move types ([4e68cfb](https://github.com/Gabb-c/pokenode-ts/commit/4e68cfbb5dbb89c6ea9f561e698c1156bd46d03a))
|
|
12
|
+
* **models:** pokemo form sprites types ([d8d4cd4](https://github.com/Gabb-c/pokenode-ts/commit/d8d4cd45b44e23935bc83048290cb402b85c8e0b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **models:** better sprite interfaces for pokemon ([51b1b88](https://github.com/Gabb-c/pokenode-ts/commit/51b1b8852c858ef892eb1de977d4f0ff1c04f065))
|
package/README.md
CHANGED
|
@@ -84,9 +84,9 @@ Open Pokenode-ts in your Code, either using the [Remote Repositories extension](
|
|
|
84
84
|
|
|
85
85
|
## Leave your feedback
|
|
86
86
|
|
|
87
|
-
- Did you like pokenode-ts? Give us a star ⭐
|
|
88
|
-
- Found a problem? Let us know by [creating an issue
|
|
89
|
-
- Want to contribute? [Submit a PR](https://github.com/Gabb-c/pokenode-ts/pulls)
|
|
87
|
+
- Did you like pokenode-ts? [Give us a star ⭐](https://github.com/Gabb-c/pokenode-ts)
|
|
88
|
+
- Found a problem? Let us know by [creating an issue 🔎](https://github.com/Gabb-c/pokenode-ts/issues)
|
|
89
|
+
- Want to contribute? [Submit a PR 📑](https://github.com/Gabb-c/pokenode-ts/pulls)
|
|
90
90
|
|
|
91
91
|
## Donate
|
|
92
92
|
|
|
@@ -101,3 +101,7 @@ Please consider donating if you think pokenode-ts is helpful to you or that my w
|
|
|
101
101
|
<a href="https://www.paypal.com/donate?business=8TYDGB7874HT2&no_recurring=0&item_name=development¤cy_code=USD">
|
|
102
102
|
<img alt="paypal-button" src="https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white">
|
|
103
103
|
</a>
|
|
104
|
+
|
|
105
|
+
## Repository Analytics
|
|
106
|
+
|
|
107
|
+

|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator
|
|
1
|
+
// Generated by dts-bundle-generator v6.1.0
|
|
2
2
|
|
|
3
3
|
import { AxiosInstance } from 'axios';
|
|
4
4
|
import { IAxiosCacheAdapterOptions } from 'axios-cache-adapter';
|
|
@@ -98,8 +98,6 @@ export interface FlavorText {
|
|
|
98
98
|
flavor_text: string;
|
|
99
99
|
/** The language this name is in */
|
|
100
100
|
language: NamedAPIResource;
|
|
101
|
-
/** The game version this flavor text is extracted from */
|
|
102
|
-
version: NamedAPIResource;
|
|
103
101
|
}
|
|
104
102
|
/**
|
|
105
103
|
* The generation relevent to this game index
|
|
@@ -115,7 +113,7 @@ export interface GenerationGameIndex {
|
|
|
115
113
|
*/
|
|
116
114
|
export interface MachineVersionDetail {
|
|
117
115
|
/** The machine that teaches a move from an item */
|
|
118
|
-
machine:
|
|
116
|
+
machine: APIResource;
|
|
119
117
|
/** The version group of this specific machine */
|
|
120
118
|
version_group: NamedAPIResource;
|
|
121
119
|
}
|
|
@@ -174,7 +172,7 @@ export interface Berry {
|
|
|
174
172
|
/** The name for this resource */
|
|
175
173
|
name: string;
|
|
176
174
|
/** Time it takes the tree to grow one stage, in hours. Berry trees go through four of these growth stages before they can be picked */
|
|
177
|
-
growth_time:
|
|
175
|
+
growth_time: number;
|
|
178
176
|
/** The maximum number of these berries that can grow on one tree in Generation IV */
|
|
179
177
|
max_harvest: number;
|
|
180
178
|
/** The power of the move "Natural Gift" when used with this Berry */
|
|
@@ -374,7 +372,7 @@ export interface EvolutionDetail {
|
|
|
374
372
|
/** The location the evolution must be triggered at. */
|
|
375
373
|
location: NamedAPIResource | null;
|
|
376
374
|
/** The minimum required level of the evolving Pokémon species to evolve into this Pokémon species. */
|
|
377
|
-
min_level: number;
|
|
375
|
+
min_level: number | null;
|
|
378
376
|
/** The minimum required level of happiness the evolving Pokémon species to evolve into this Pokémon species. */
|
|
379
377
|
min_happiness: number | null;
|
|
380
378
|
/** The minimum required level of beauty the evolving Pokémon species to evolve into this Pokémon species. */
|
|
@@ -389,7 +387,7 @@ export interface EvolutionDetail {
|
|
|
389
387
|
* The player must have a Pokémon of this type in their party during the evolution trigger event
|
|
390
388
|
* in order for the evolving Pokémon species to evolve into this Pokémon species.
|
|
391
389
|
*/
|
|
392
|
-
party_type: NamedAPIResource;
|
|
390
|
+
party_type: NamedAPIResource | null;
|
|
393
391
|
/** The required relation between the Pokémon's Attack and Defense stats. 1 means Attack > Defense. 0 means Attack = Defense. -1 means Attack < Defense. */
|
|
394
392
|
relative_physical_stats: 1 | 0 | -1 | null;
|
|
395
393
|
/** The required time of day. Day or night. */
|
|
@@ -412,7 +410,7 @@ export interface ChainLink {
|
|
|
412
410
|
/** All details regarding the specific details of the referenced Pokémon species evolution */
|
|
413
411
|
evolution_detail: EvolutionDetail[];
|
|
414
412
|
/** A List of chain objects */
|
|
415
|
-
|
|
413
|
+
evolves_to: ChainLink[];
|
|
416
414
|
}
|
|
417
415
|
/**
|
|
418
416
|
* ## Evolution Chain
|
|
@@ -713,7 +711,7 @@ export interface Location {
|
|
|
713
711
|
/** The name for this resource */
|
|
714
712
|
name: string;
|
|
715
713
|
/** The region this location can be found in */
|
|
716
|
-
region: NamedAPIResource;
|
|
714
|
+
region: NamedAPIResource | null;
|
|
717
715
|
/** The name of this resource listed in different languages */
|
|
718
716
|
names: Name[];
|
|
719
717
|
/** A list of game indices relevent to this location by generation */
|
|
@@ -735,7 +733,7 @@ export interface LocationArea {
|
|
|
735
733
|
/** The internal id of an API resource within game data */
|
|
736
734
|
game_index: number;
|
|
737
735
|
/** A list of methods in which Pokémon may be encountered in this area and how likely the method will occur depending on the version of the game */
|
|
738
|
-
encounter_method_rates: EncounterMethodRate;
|
|
736
|
+
encounter_method_rates: EncounterMethodRate[];
|
|
739
737
|
/** The region this location area can be found in */
|
|
740
738
|
location: NamedAPIResource;
|
|
741
739
|
/** The name of this resource listed in different languages */
|
|
@@ -936,7 +934,7 @@ export interface PokemonSpeciesGender {
|
|
|
936
934
|
/** The chance of this Pokémon being female, in eighths; or -1 for genderless */
|
|
937
935
|
rate: number;
|
|
938
936
|
/** A Pokémon species that can be the referenced gender */
|
|
939
|
-
pokemon_species: NamedAPIResource
|
|
937
|
+
pokemon_species: NamedAPIResource;
|
|
940
938
|
}
|
|
941
939
|
/**
|
|
942
940
|
* Levels and the amount of experienced needed to atain them based on the given growth rate.
|
|
@@ -1301,116 +1299,356 @@ export interface VersionSprites {
|
|
|
1301
1299
|
*/
|
|
1302
1300
|
export interface PokemonSprites {
|
|
1303
1301
|
/** The default depiction of this Pokémon from the front in battle */
|
|
1304
|
-
front_default: string;
|
|
1302
|
+
front_default: string | null;
|
|
1305
1303
|
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1306
|
-
front_shiny: string;
|
|
1304
|
+
front_shiny: string | null;
|
|
1307
1305
|
/** The female depiction of this Pokémon from the front in battle */
|
|
1308
1306
|
front_female: string | null;
|
|
1309
1307
|
/** The shiny female depiction of this Pokémon from the front in battle */
|
|
1310
1308
|
front_shiny_female: string | null;
|
|
1311
1309
|
/** The default depiction of this Pokémon from the back in battle */
|
|
1312
|
-
back_default: string;
|
|
1310
|
+
back_default: string | null;
|
|
1313
1311
|
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1314
|
-
back_shiny: string;
|
|
1312
|
+
back_shiny: string | null;
|
|
1315
1313
|
/** The female depiction of this Pokémon from the back in battle */
|
|
1316
1314
|
back_female: string | null;
|
|
1317
1315
|
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1318
1316
|
back_shiny_female: string | null;
|
|
1319
|
-
/** Dream World
|
|
1317
|
+
/** Dream World, Official Artwork and Home sprites */
|
|
1320
1318
|
other: OtherPokemonSprites;
|
|
1321
1319
|
/** Version Sprites of this Pokémon */
|
|
1322
1320
|
versions: VersionSprites;
|
|
1323
1321
|
}
|
|
1324
|
-
/**
|
|
1325
|
-
* A set of sprites used to depict this Pokémon in the game versions.
|
|
1326
|
-
* A visual representation of the various sprites can be found at [PokeAPI/sprites](https://github.com/PokeAPI/sprites#sprites)
|
|
1327
|
-
*/
|
|
1328
|
-
export interface PokemonVersionSprites {
|
|
1329
|
-
/** The default depiction of this Pokémon from the front in battle */
|
|
1330
|
-
front_default: string;
|
|
1331
|
-
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1332
|
-
front_shiny: string;
|
|
1333
|
-
/** The female depiction of this Pokémon from the front in battle */
|
|
1334
|
-
front_female: string | null;
|
|
1335
|
-
/** The shiny female depiction of this Pokémon from the front in battle */
|
|
1336
|
-
front_shiny_female: string | null;
|
|
1337
|
-
/** The default depiction of this Pokémon from the back in battle */
|
|
1338
|
-
back_default: string;
|
|
1339
|
-
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1340
|
-
back_shiny: string;
|
|
1341
|
-
/** The female depiction of this Pokémon from the back in battle */
|
|
1342
|
-
back_female: string | null;
|
|
1343
|
-
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1344
|
-
back_shiny_female: string | null;
|
|
1345
|
-
/** Dream World and Official Artwork */
|
|
1346
|
-
other: OtherPokemonSprites;
|
|
1347
|
-
/** Animated sprites of this pokemon ([GIF's](https://i.imgur.com/CzTcMbo.gif)) */
|
|
1348
|
-
animated?: PokemonSprites;
|
|
1349
|
-
}
|
|
1350
1322
|
/** Other Pokemon Sprites (Dream World and Official Artwork sprites) */
|
|
1351
1323
|
export interface OtherPokemonSprites {
|
|
1352
1324
|
/** Dream World Sprites of this Pokémon */
|
|
1353
|
-
dream_world:
|
|
1325
|
+
dream_world: DreamWorld;
|
|
1354
1326
|
/** Official Artwork Sprites of this Pokémon */
|
|
1355
|
-
|
|
1327
|
+
"official-artwork": OfficialArtwork;
|
|
1328
|
+
/** Home Artwork Sprites of this Pokémon */
|
|
1329
|
+
home: Home;
|
|
1330
|
+
}
|
|
1331
|
+
/** Dream World sprites */
|
|
1332
|
+
export interface DreamWorld {
|
|
1333
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1334
|
+
front_default: string | null;
|
|
1335
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1336
|
+
front_female: string | null;
|
|
1337
|
+
}
|
|
1338
|
+
/** Official Artwork sprites */
|
|
1339
|
+
export interface OfficialArtwork {
|
|
1340
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1341
|
+
front_default: string | null;
|
|
1342
|
+
}
|
|
1343
|
+
/** Home sprites */
|
|
1344
|
+
export interface Home {
|
|
1345
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1346
|
+
front_default: string | null;
|
|
1347
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1348
|
+
front_female: string | null;
|
|
1349
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1350
|
+
front_shiny: string | null;
|
|
1351
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1352
|
+
front_shiny_female: string | null;
|
|
1356
1353
|
}
|
|
1357
1354
|
/** Generation-I Srites */
|
|
1358
1355
|
export interface GenerationISprites {
|
|
1359
1356
|
/** Red-blue sprites of this Pokémon */
|
|
1360
|
-
"red-blue":
|
|
1357
|
+
"red-blue": RedBlue;
|
|
1361
1358
|
/** Yellow sprites of this Pokémon */
|
|
1362
|
-
yellow:
|
|
1359
|
+
yellow: Yellow;
|
|
1360
|
+
}
|
|
1361
|
+
/** Red/Blue Sprites */
|
|
1362
|
+
export interface RedBlue {
|
|
1363
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1364
|
+
back_default: string | null;
|
|
1365
|
+
/** The gray depiction of this Pokémon from the back in battle */
|
|
1366
|
+
back_gray: string | null;
|
|
1367
|
+
/** The transparent depiction of this Pokémon from the back in battle */
|
|
1368
|
+
back_transparent: string | null;
|
|
1369
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1370
|
+
front_default: string | null;
|
|
1371
|
+
/** The gray depiction of this Pokémon from the front in battle */
|
|
1372
|
+
front_gray: string | null;
|
|
1373
|
+
/** The transparent depiction of this Pokémon from the front in battle */
|
|
1374
|
+
front_transparent: string | null;
|
|
1375
|
+
}
|
|
1376
|
+
/** Yellow sprites */
|
|
1377
|
+
export interface Yellow {
|
|
1378
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1379
|
+
back_default: string | null;
|
|
1380
|
+
/** The gray depiction of this Pokémon from the back in battle */
|
|
1381
|
+
back_gray: string | null;
|
|
1382
|
+
/** The transparent depiction of this Pokémon from the back in battle */
|
|
1383
|
+
back_transparent: string | null;
|
|
1384
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1385
|
+
front_default: string | null;
|
|
1386
|
+
/** The gray depiction of this Pokémon from the front in battle */
|
|
1387
|
+
front_gray: string | null;
|
|
1388
|
+
/** The transparent depiction of this Pokémon from the front in battle */
|
|
1389
|
+
front_transparent: string | null;
|
|
1363
1390
|
}
|
|
1364
1391
|
/** Generation-II Sprites */
|
|
1365
1392
|
export interface GenerationIISprites {
|
|
1366
1393
|
/** Crystal sprites of this Pokémon */
|
|
1367
|
-
crystal:
|
|
1394
|
+
crystal: Crystal;
|
|
1368
1395
|
/** Gold sprites of this Pokémon */
|
|
1369
|
-
gold:
|
|
1396
|
+
gold: Gold;
|
|
1370
1397
|
/** Silver sprites of this Pokémon */
|
|
1371
|
-
silver:
|
|
1398
|
+
silver: Silver;
|
|
1399
|
+
}
|
|
1400
|
+
/** Crystal sprites */
|
|
1401
|
+
export interface Crystal {
|
|
1402
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1403
|
+
back_default: string | null;
|
|
1404
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1405
|
+
back_shiny: string | null;
|
|
1406
|
+
/** The back shiny transparent depiction of this Pokémon from the back in battle */
|
|
1407
|
+
back_shiny_transparent: string | null;
|
|
1408
|
+
/** The transparent depiction of this Pokémon from the back in battle */
|
|
1409
|
+
back_transparent: string | null;
|
|
1410
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1411
|
+
front_default: string | null;
|
|
1412
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1413
|
+
front_shiny: string | null;
|
|
1414
|
+
/** The front shiny transparent depiction of this Pokémon from the front in battle */
|
|
1415
|
+
front_shiny_transparent: string | null;
|
|
1416
|
+
/** The transparent depiction of this Pokémon from the front in battle */
|
|
1417
|
+
front_transparent: string | null;
|
|
1418
|
+
}
|
|
1419
|
+
export interface Gold {
|
|
1420
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1421
|
+
back_default: string | null;
|
|
1422
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1423
|
+
back_shiny: string | null;
|
|
1424
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1425
|
+
front_default: string | null;
|
|
1426
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1427
|
+
front_shiny: string | null;
|
|
1428
|
+
/** The transparent depiction of this Pokémon from the front in battle */
|
|
1429
|
+
front_transparent: string | null;
|
|
1430
|
+
}
|
|
1431
|
+
/** Silver sprites */
|
|
1432
|
+
export interface Silver {
|
|
1433
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1434
|
+
back_default: string | null;
|
|
1435
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1436
|
+
back_shiny: string | null;
|
|
1437
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1438
|
+
front_default: string | null;
|
|
1439
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1440
|
+
front_shiny: string | null;
|
|
1441
|
+
/** The transparent depiction of this Pokémon from the front in battle */
|
|
1442
|
+
front_transparent: string | null;
|
|
1372
1443
|
}
|
|
1373
1444
|
/** Generation-III Sprites */
|
|
1374
1445
|
export interface GenerationIIISprites {
|
|
1375
1446
|
/** Emerald sprites of this Pokémon */
|
|
1376
|
-
emerald:
|
|
1447
|
+
emerald: Emerald;
|
|
1377
1448
|
/** Firered-Leafgreen sprites of this Pokémon */
|
|
1378
|
-
"firered-leafgreen":
|
|
1449
|
+
"firered-leafgreen": FireredLeafgreen;
|
|
1379
1450
|
/** Ruby-Sapphire sprites of this Pokémon */
|
|
1380
|
-
"ruby-sapphire":
|
|
1451
|
+
"ruby-sapphire": RubySapphire;
|
|
1452
|
+
}
|
|
1453
|
+
/** Emerald sprites */
|
|
1454
|
+
export interface Emerald {
|
|
1455
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1456
|
+
front_default: string | null;
|
|
1457
|
+
}
|
|
1458
|
+
/** FireRead LeafGreen sprites */
|
|
1459
|
+
export interface FireredLeafgreen {
|
|
1460
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1461
|
+
back_default: string | null;
|
|
1462
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1463
|
+
back_shiny: string | null;
|
|
1464
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1465
|
+
front_default: string | null;
|
|
1466
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1467
|
+
front_shiny: string | null;
|
|
1468
|
+
}
|
|
1469
|
+
/** Ruby/Sapphire sprites */
|
|
1470
|
+
export interface RubySapphire {
|
|
1471
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1472
|
+
back_default: string | null;
|
|
1473
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1474
|
+
back_shiny: string | null;
|
|
1475
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1476
|
+
front_default: string | null;
|
|
1477
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1478
|
+
front_shiny: string | null;
|
|
1381
1479
|
}
|
|
1382
1480
|
/** Generation-IV Sprites */
|
|
1383
1481
|
export interface GenerationIVSprites {
|
|
1384
1482
|
/** Diamond-pearl Generation sprites of this Pokémon */
|
|
1385
|
-
"diamond-perl":
|
|
1483
|
+
"diamond-perl": DiamondPearl;
|
|
1386
1484
|
/** Heartgold-Soulsilver sprites of this Pokémon */
|
|
1387
|
-
"heartgold-soulsilver":
|
|
1485
|
+
"heartgold-soulsilver": HeartgoldSoulsilver;
|
|
1388
1486
|
/** Platinum sprites of this Pokémon */
|
|
1389
|
-
platinum:
|
|
1487
|
+
platinum: Platinum;
|
|
1488
|
+
}
|
|
1489
|
+
export interface DiamondPearl {
|
|
1490
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1491
|
+
back_default: string | null;
|
|
1492
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1493
|
+
back_shiny: string | null;
|
|
1494
|
+
/** The female depiction of this Pokémon from the back in battle */
|
|
1495
|
+
back_female: string | null;
|
|
1496
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1497
|
+
front_default: string | null;
|
|
1498
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1499
|
+
front_shiny: string | null;
|
|
1500
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1501
|
+
back_shiny_female: string | null;
|
|
1502
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1503
|
+
front_female: string | null;
|
|
1504
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1505
|
+
front_shiny_female: string | null;
|
|
1506
|
+
}
|
|
1507
|
+
export interface HeartgoldSoulsilver {
|
|
1508
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1509
|
+
back_default: string | null;
|
|
1510
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1511
|
+
back_shiny: string | null;
|
|
1512
|
+
/** The female depiction of this Pokémon from the back in battle */
|
|
1513
|
+
back_female: string | null;
|
|
1514
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1515
|
+
front_default: string | null;
|
|
1516
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1517
|
+
front_shiny: string | null;
|
|
1518
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1519
|
+
back_shiny_female: string | null;
|
|
1520
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1521
|
+
front_female: string | null;
|
|
1522
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1523
|
+
front_shiny_female: string | null;
|
|
1524
|
+
}
|
|
1525
|
+
export interface Platinum {
|
|
1526
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1527
|
+
back_default: string | null;
|
|
1528
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1529
|
+
back_shiny: string | null;
|
|
1530
|
+
/** The female depiction of this Pokémon from the back in battle */
|
|
1531
|
+
back_female: string | null;
|
|
1532
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1533
|
+
front_default: string | null;
|
|
1534
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1535
|
+
front_shiny: string | null;
|
|
1536
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1537
|
+
back_shiny_female: string | null;
|
|
1538
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1539
|
+
front_female: string | null;
|
|
1540
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1541
|
+
front_shiny_female: string | null;
|
|
1390
1542
|
}
|
|
1391
1543
|
/** Generation-V Sprites */
|
|
1392
1544
|
export interface GenerationVSprites {
|
|
1393
1545
|
/** Black-white sprites of this Pokémon */
|
|
1394
|
-
"black-white":
|
|
1546
|
+
"black-white": BlackWhite;
|
|
1547
|
+
}
|
|
1548
|
+
/** Black/White sprites */
|
|
1549
|
+
export interface BlackWhite {
|
|
1550
|
+
/** The animated sprite of this pokémon */
|
|
1551
|
+
animated: Animated;
|
|
1552
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1553
|
+
back_default: string | null;
|
|
1554
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1555
|
+
back_shiny: string | null;
|
|
1556
|
+
/** The female depiction of this Pokémon from the back in battle */
|
|
1557
|
+
back_female: string | null;
|
|
1558
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1559
|
+
front_default: string | null;
|
|
1560
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1561
|
+
front_shiny: string | null;
|
|
1562
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1563
|
+
back_shiny_female: string | null;
|
|
1564
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1565
|
+
front_female: string | null;
|
|
1566
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1567
|
+
front_shiny_female: string | null;
|
|
1568
|
+
}
|
|
1569
|
+
export interface Animated {
|
|
1570
|
+
/** The default depiction of this Pokémon from the back in battle */
|
|
1571
|
+
back_default: string | null;
|
|
1572
|
+
/** The shiny depiction of this Pokémon from the back in battle */
|
|
1573
|
+
back_shiny: string | null;
|
|
1574
|
+
/** The female depiction of this Pokémon from the back in battle */
|
|
1575
|
+
back_female: string | null;
|
|
1576
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1577
|
+
front_default: string | null;
|
|
1578
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1579
|
+
front_shiny: string | null;
|
|
1580
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1581
|
+
back_shiny_female: string | null;
|
|
1582
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1583
|
+
front_female: string | null;
|
|
1584
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1585
|
+
front_shiny_female: string | null;
|
|
1395
1586
|
}
|
|
1396
1587
|
/** Generation-VI Sprites */
|
|
1397
1588
|
export interface GenerationVISprites {
|
|
1398
1589
|
/** Omegaruby-Alphasapphire sprites of this Pokémon */
|
|
1399
|
-
"omegaruby-alphasapphire":
|
|
1590
|
+
"omegaruby-alphasapphire": OmegarubyAlphasapphire;
|
|
1400
1591
|
/** X-Y sprites of this Pokémon */
|
|
1401
|
-
"x-y":
|
|
1592
|
+
"x-y": XY;
|
|
1593
|
+
}
|
|
1594
|
+
/** Omega/Ruby Alpha/Sapphire sprites */
|
|
1595
|
+
export interface OmegarubyAlphasapphire {
|
|
1596
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1597
|
+
front_default: string | null;
|
|
1598
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1599
|
+
front_female: string | null;
|
|
1600
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1601
|
+
front_shiny: string | null;
|
|
1602
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1603
|
+
front_shiny_female: string | null;
|
|
1604
|
+
}
|
|
1605
|
+
/** XY sprites */
|
|
1606
|
+
export interface XY {
|
|
1607
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1608
|
+
front_default: string | null;
|
|
1609
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1610
|
+
front_female: string | null;
|
|
1611
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1612
|
+
front_shiny: string | null;
|
|
1613
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1614
|
+
front_shiny_female: string | null;
|
|
1402
1615
|
}
|
|
1403
1616
|
/** Generation-VII Sprites */
|
|
1404
1617
|
export interface GenerationVIISprites {
|
|
1405
1618
|
/** Icon sprites of this Pokémon */
|
|
1406
|
-
icons:
|
|
1619
|
+
icons: GenerationViiIcons;
|
|
1407
1620
|
/** Ultra-sun-ultra-moon sprites of this Pokémon */
|
|
1408
|
-
"ultra-sun-ultra-moon":
|
|
1621
|
+
"ultra-sun-ultra-moon": UltraSunUltraMoon;
|
|
1622
|
+
}
|
|
1623
|
+
/** Generation VII icons */
|
|
1624
|
+
export interface GenerationViiIcons {
|
|
1625
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1626
|
+
front_default: string | null;
|
|
1627
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1628
|
+
front_female: string | null;
|
|
1629
|
+
}
|
|
1630
|
+
/** Ultra Sun Ultra Moon sprites */
|
|
1631
|
+
export interface UltraSunUltraMoon {
|
|
1632
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1633
|
+
front_default: string | null;
|
|
1634
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1635
|
+
front_female: string | null;
|
|
1636
|
+
/** The shiny depiction of this Pokémon from the front in battle */
|
|
1637
|
+
front_shiny: string | null;
|
|
1638
|
+
/** The shiny female depiction of this Pokémon from the back in battle */
|
|
1639
|
+
front_shiny_female: string | null;
|
|
1409
1640
|
}
|
|
1410
1641
|
/** Generation-VIII Sprites */
|
|
1411
1642
|
export interface GenerationVIIISprites {
|
|
1412
1643
|
/** Icon sprites of this Pokémon */
|
|
1413
|
-
icons:
|
|
1644
|
+
icons: GenerationViiiIcons;
|
|
1645
|
+
}
|
|
1646
|
+
/** Generation VIII icons */
|
|
1647
|
+
export interface GenerationViiiIcons {
|
|
1648
|
+
/** The default depiction of this Pokémon from the front in battle */
|
|
1649
|
+
front_default: string | null;
|
|
1650
|
+
/** The female depiction of this Pokémon from the front in battle */
|
|
1651
|
+
front_female: string | null;
|
|
1414
1652
|
}
|
|
1415
1653
|
/**
|
|
1416
1654
|
* ## Location Area Encounter
|
|
@@ -1481,19 +1719,19 @@ export interface PokemonForm {
|
|
|
1481
1719
|
*/
|
|
1482
1720
|
export interface PokemonFormSprites {
|
|
1483
1721
|
/** The default depiction of this Pokémon form from the front in battle */
|
|
1484
|
-
front_default: string;
|
|
1722
|
+
front_default: string | null;
|
|
1485
1723
|
/** The female depiction of this Pokémon form from the front in battle */
|
|
1486
1724
|
front_female: string | null;
|
|
1487
1725
|
/** The shiny depiction of this Pokémon form from the front in battle */
|
|
1488
|
-
front_shiny: string;
|
|
1726
|
+
front_shiny: string | null;
|
|
1489
1727
|
/** The shiny female depiction of this Pokémon form from the front in battle */
|
|
1490
1728
|
front_shiny_female: string | null;
|
|
1491
1729
|
/** The default depiction of this Pokémon form from the back in battle */
|
|
1492
|
-
back_default: string;
|
|
1730
|
+
back_default: string | null;
|
|
1493
1731
|
/** The female depiction of this Pokémon form from the back in battle */
|
|
1494
1732
|
back_female: string | null;
|
|
1495
1733
|
/** The shiny depiction of this Pokémon form from the back in battle */
|
|
1496
|
-
back_shiny: string;
|
|
1734
|
+
back_shiny: string | null;
|
|
1497
1735
|
/** The shiny female depiction of this Pokémon form from the back in battle */
|
|
1498
1736
|
back_shiny_female: string | null;
|
|
1499
1737
|
}
|
|
@@ -1579,7 +1817,7 @@ export interface PokemonSpecies {
|
|
|
1579
1817
|
/** The shape of this Pokémon for Pokédex search */
|
|
1580
1818
|
shape: NamedAPIResource;
|
|
1581
1819
|
/** The Pokémon species that evolves into this Pokemon_species */
|
|
1582
|
-
|
|
1820
|
+
evolves_from_species: NamedAPIResource;
|
|
1583
1821
|
/** The evolution chain this Pokémon species is a member of */
|
|
1584
1822
|
evolution_chain: APIResource;
|
|
1585
1823
|
/** The habitat this Pokémon species can be encountered in */
|
|
@@ -1727,7 +1965,7 @@ export interface MoveAilment {
|
|
|
1727
1965
|
}
|
|
1728
1966
|
export interface PastMoveStatValues {
|
|
1729
1967
|
/** The percent value of how likely this move is to be successful. */
|
|
1730
|
-
accuracy: number;
|
|
1968
|
+
accuracy: number | null;
|
|
1731
1969
|
/** The percent value of how likely it is this moves effect will take effect. */
|
|
1732
1970
|
effect_chance: number | number;
|
|
1733
1971
|
/** The base power of this move with a value of 0 if it does not have a base power. */
|
|
@@ -1737,9 +1975,9 @@ export interface PastMoveStatValues {
|
|
|
1737
1975
|
/** The effect of this move listed in different languages. */
|
|
1738
1976
|
effect_entries: VerboseEffect[];
|
|
1739
1977
|
/** The elemental type of this move. */
|
|
1740
|
-
type: NamedAPIResource
|
|
1978
|
+
type: NamedAPIResource | null;
|
|
1741
1979
|
/** The version group in which these move stat values were in effect. */
|
|
1742
|
-
version_group: NamedAPIResource
|
|
1980
|
+
version_group: NamedAPIResource;
|
|
1743
1981
|
}
|
|
1744
1982
|
/** */
|
|
1745
1983
|
export interface MoveStatChange {
|
|
@@ -1819,11 +2057,11 @@ export interface Move {
|
|
|
1819
2057
|
/** The name for this resource */
|
|
1820
2058
|
name: string;
|
|
1821
2059
|
/** The percent value of how likely this move is to be successful */
|
|
1822
|
-
accuracy: number;
|
|
2060
|
+
accuracy: number | null;
|
|
1823
2061
|
/** The percent value of how likely it is this moves effect will happen */
|
|
1824
2062
|
effect_chance: number | null;
|
|
1825
2063
|
/** Power points. The number of times this move can be used */
|
|
1826
|
-
pp: number;
|
|
2064
|
+
pp: number | null;
|
|
1827
2065
|
/**
|
|
1828
2066
|
* A value between -8 and 8. Sets the order in which moves are executed during battle.
|
|
1829
2067
|
* See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Priority) for greater detail
|
|
@@ -1834,11 +2072,11 @@ export interface Move {
|
|
|
1834
2072
|
/** A detail of normal and super contest combos that require this move */
|
|
1835
2073
|
contest_combos: ContestComboSets | null;
|
|
1836
2074
|
/** The type of appeal this move gives a Pokémon when used in a contest */
|
|
1837
|
-
contest_types: NamedAPIResource;
|
|
2075
|
+
contest_types: NamedAPIResource | null;
|
|
1838
2076
|
/** The effect the move has when used in a contest */
|
|
1839
|
-
contest_effect: APIResource;
|
|
2077
|
+
contest_effect: APIResource | null;
|
|
1840
2078
|
/** The type of damage the move inflicts on the target, e.g. physical */
|
|
1841
|
-
damage_class: NamedAPIResource;
|
|
2079
|
+
damage_class: NamedAPIResource | null;
|
|
1842
2080
|
/** The effect of this move listed in different languages */
|
|
1843
2081
|
effect_entries: VerboseEffect[];
|
|
1844
2082
|
/** The list of previous effects this move has had across version groups of the games */
|
|
@@ -1850,7 +2088,7 @@ export interface Move {
|
|
|
1850
2088
|
/** A list of the machines that teach this move */
|
|
1851
2089
|
machines: MachineVersionDetail[];
|
|
1852
2090
|
/** Metadata about this move */
|
|
1853
|
-
meta: MoveMetaData;
|
|
2091
|
+
meta: MoveMetaData | null;
|
|
1854
2092
|
/** The name of this resource listed in different languages */
|
|
1855
2093
|
names: Name[];
|
|
1856
2094
|
/** A list of move resource value changes across version groups of the game */
|
|
@@ -1858,7 +2096,7 @@ export interface Move {
|
|
|
1858
2096
|
/** A list of stats this moves effects and how much it effects them */
|
|
1859
2097
|
stat_changes: MoveStatChange[];
|
|
1860
2098
|
/** The effect the move has when used in a super contest */
|
|
1861
|
-
super_contest_effect: APIResource;
|
|
2099
|
+
super_contest_effect: APIResource | null;
|
|
1862
2100
|
/** The type of target that will receive the effects of the attack */
|
|
1863
2101
|
target: NamedAPIResource;
|
|
1864
2102
|
/** The elemental type of this move */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pokenode-ts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A lightweight Node.js wrapper for the PokéAPI with built-in types.",
|
|
6
6
|
"keywords": [
|
|
@@ -51,59 +51,60 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"axios": "^0.
|
|
54
|
+
"axios": "^0.24.0",
|
|
55
55
|
"axios-cache-adapter": "^2.7.3",
|
|
56
|
-
"pino": "^7.
|
|
57
|
-
"pino-pretty": "^7.
|
|
56
|
+
"pino": "^7.5.1",
|
|
57
|
+
"pino-pretty": "^7.2.0",
|
|
58
58
|
"tslib": "^2.3.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/cli": "^7.
|
|
62
|
-
"@babel/core": "^7.
|
|
63
|
-
"@babel/node": "^7.
|
|
64
|
-
"@babel/preset-env": "^7.
|
|
65
|
-
"@babel/preset-typescript": "^7.
|
|
66
|
-
"@commitlint/cli": "^
|
|
67
|
-
"@commitlint/config-conventional": "^
|
|
68
|
-
"@commitlint/cz-commitlint": "^
|
|
69
|
-
"@semantic-release/changelog": "^6.0.
|
|
70
|
-
"@semantic-release/commit-analyzer": "^9.0.
|
|
71
|
-
"@semantic-release/git": "^10.0.
|
|
72
|
-
"@semantic-release/github": "^8.0.
|
|
73
|
-
"@semantic-release/npm": "^8.0.
|
|
74
|
-
"@semantic-release/release-notes-generator": "^10.0.
|
|
75
|
-
"@types/jest": "^27.0.
|
|
76
|
-
"@types/node": "^16.11.
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
78
|
-
"@typescript-eslint/parser": "^5.
|
|
61
|
+
"@babel/cli": "^7.16.0",
|
|
62
|
+
"@babel/core": "^7.16.0",
|
|
63
|
+
"@babel/node": "^7.16.0",
|
|
64
|
+
"@babel/preset-env": "^7.16.4",
|
|
65
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
66
|
+
"@commitlint/cli": "^15.0.0",
|
|
67
|
+
"@commitlint/config-conventional": "^15.0.0",
|
|
68
|
+
"@commitlint/cz-commitlint": "^15.0.0",
|
|
69
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
70
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
71
|
+
"@semantic-release/git": "^10.0.1",
|
|
72
|
+
"@semantic-release/github": "^8.0.2",
|
|
73
|
+
"@semantic-release/npm": "^8.0.3",
|
|
74
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
75
|
+
"@types/jest": "^27.0.3",
|
|
76
|
+
"@types/node": "^16.11.11",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
78
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
79
79
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
80
80
|
"commitizen": "^4.2.4",
|
|
81
81
|
"conventional-changelog-conventionalcommits": "^4.6.1",
|
|
82
82
|
"cz-conventional-changelog": "3.3.0",
|
|
83
|
-
"dts-bundle-generator": "^
|
|
84
|
-
"eslint": "^8.0
|
|
85
|
-
"eslint-config-airbnb-base": "^
|
|
86
|
-
"eslint-config-airbnb-typescript": "^
|
|
83
|
+
"dts-bundle-generator": "^6.1.0",
|
|
84
|
+
"eslint": "^8.3.0",
|
|
85
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
86
|
+
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
87
87
|
"eslint-config-node": "^4.1.0",
|
|
88
88
|
"eslint-config-prettier": "^8.3.0",
|
|
89
89
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
90
|
-
"eslint-plugin-import": "^2.25.
|
|
91
|
-
"eslint-plugin-jest": "^25.
|
|
90
|
+
"eslint-plugin-import": "^2.25.3",
|
|
91
|
+
"eslint-plugin-jest": "^25.3.0",
|
|
92
92
|
"eslint-plugin-node": "^11.1.0",
|
|
93
93
|
"eslint-plugin-prettier": "^4.0.0",
|
|
94
|
-
"eslint-plugin-promise": "^5.
|
|
95
|
-
"eslint-plugin-unicorn": "^
|
|
94
|
+
"eslint-plugin-promise": "^5.2.0",
|
|
95
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
96
96
|
"http-status-codes": "^2.1.4",
|
|
97
|
-
"husky": "^7.0.
|
|
98
|
-
"
|
|
99
|
-
"
|
|
97
|
+
"husky": "^7.0.4",
|
|
98
|
+
"is-ci": "^3.0.1",
|
|
99
|
+
"jest": "^27.4.3",
|
|
100
|
+
"lint-staged": "^12.1.2",
|
|
100
101
|
"lockfile-lint": "^4.6.2",
|
|
101
|
-
"prettier": "^2.
|
|
102
|
-
"semantic-release": "^18.0.
|
|
103
|
-
"sort-package-json": "^1.
|
|
102
|
+
"prettier": "^2.5.0",
|
|
103
|
+
"semantic-release": "^18.0.1",
|
|
104
|
+
"sort-package-json": "^1.53.1",
|
|
104
105
|
"ts-jest": "^27.0.7",
|
|
105
106
|
"ts-node-dev": "^1.1.8",
|
|
106
|
-
"typescript": "^4.
|
|
107
|
+
"typescript": "^4.5.2"
|
|
107
108
|
},
|
|
108
109
|
"engines": {
|
|
109
110
|
"node": ">=14"
|