pokenode-ts 2.3.0 → 3.0.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/LICENSE +1 -1
- package/README.md +35 -36
- package/lib/index.cjs +4187 -11
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +721 -425
- package/lib/index.d.ts +721 -425
- package/lib/index.js +4095 -11
- package/lib/index.js.map +1 -1
- package/lib/rolldown-runtime-BOlb2svz.js +19 -0
- package/package.json +13 -13
- package/lib/rolldown-runtime-mLzODkzB.js +0 -16
package/lib/index.d.cts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* _
|
|
3
|
+
* |_) _ | _ _ _ _| _ __ _|_ _
|
|
4
|
+
* | (_) |< (/_ | | (_) (_| (/_ |_ _>
|
|
5
|
+
*
|
|
6
|
+
* pokenode-ts v3.0.0 — A typed PokéAPI client with zero runtime dependencies.
|
|
7
|
+
*
|
|
8
|
+
* Docs: https://pokenode-ts.vercel.app/
|
|
9
|
+
* Author: Gabb-c <https://github.com/Gabb-c>
|
|
10
|
+
* License: MIT
|
|
11
|
+
*
|
|
12
|
+
* @license MIT
|
|
13
|
+
* @preserve
|
|
14
|
+
*/
|
|
1
15
|
//#endregion
|
|
2
16
|
//#region src/models/common/resource.d.ts
|
|
3
17
|
/**
|
|
@@ -22,7 +36,7 @@ declare const RESOURCE_TYPE: unique symbol;
|
|
|
22
36
|
* target has not been declared still type-checks; pass it to
|
|
23
37
|
* {@link UtilityClient.getResourceByUrl} and the resource comes back typed.
|
|
24
38
|
*/
|
|
25
|
-
interface NamedAPIResource<T = unknown> {
|
|
39
|
+
export interface NamedAPIResource<T = unknown> {
|
|
26
40
|
/** The name of the referenced resource. */
|
|
27
41
|
name: string;
|
|
28
42
|
/** The URL of the referenced resource. */
|
|
@@ -37,7 +51,7 @@ interface NamedAPIResource<T = unknown> {
|
|
|
37
51
|
*
|
|
38
52
|
* @template T - What the listed links resolve to.
|
|
39
53
|
*/
|
|
40
|
-
interface NamedAPIResourceList<T = unknown> {
|
|
54
|
+
export interface NamedAPIResourceList<T = unknown> {
|
|
41
55
|
/** The total number of resources available from this API. */
|
|
42
56
|
count: number;
|
|
43
57
|
/** The URL for the next page in the list. */
|
|
@@ -52,7 +66,7 @@ interface NamedAPIResourceList<T = unknown> {
|
|
|
52
66
|
*
|
|
53
67
|
* @template T - What the URL resolves to.
|
|
54
68
|
*/
|
|
55
|
-
interface APIResource<T = unknown> {
|
|
69
|
+
export interface APIResource<T = unknown> {
|
|
56
70
|
/** The URL of the referenced resource. */
|
|
57
71
|
url: string;
|
|
58
72
|
/** Phantom. Never present at runtime. */
|
|
@@ -67,7 +81,7 @@ interface APIResource<T = unknown> {
|
|
|
67
81
|
*
|
|
68
82
|
* @template T - What the listed links resolve to.
|
|
69
83
|
*/
|
|
70
|
-
interface APIResourceList<T = unknown> {
|
|
84
|
+
export interface APIResourceList<T = unknown> {
|
|
71
85
|
/** The total number of resources available from this API. */
|
|
72
86
|
count: number;
|
|
73
87
|
/** The URL for the next page in the list. */
|
|
@@ -82,7 +96,7 @@ interface APIResourceList<T = unknown> {
|
|
|
82
96
|
/**
|
|
83
97
|
* The localized name for an API resource in a specific language.
|
|
84
98
|
*/
|
|
85
|
-
interface Name {
|
|
99
|
+
export interface Name {
|
|
86
100
|
/** The localized name for an API resource in a specific language. */
|
|
87
101
|
name: string;
|
|
88
102
|
/** The language this name is in. */
|
|
@@ -93,7 +107,7 @@ interface Name {
|
|
|
93
107
|
/**
|
|
94
108
|
* Languages for translations of API resource information.
|
|
95
109
|
*/
|
|
96
|
-
interface Language {
|
|
110
|
+
export interface Language {
|
|
97
111
|
/** The identifier for this resource. */
|
|
98
112
|
id: number;
|
|
99
113
|
/** The name for this resource. */
|
|
@@ -112,7 +126,7 @@ interface Language {
|
|
|
112
126
|
/**
|
|
113
127
|
* The localized description for an API resource in a specific language.
|
|
114
128
|
*/
|
|
115
|
-
interface Description {
|
|
129
|
+
export interface Description {
|
|
116
130
|
/** The localized description for an API resource in a specific language. */
|
|
117
131
|
description: string;
|
|
118
132
|
/** The language this name is in. */
|
|
@@ -123,7 +137,7 @@ interface Description {
|
|
|
123
137
|
/**
|
|
124
138
|
* The localized effect text for an API resource in a specific language.
|
|
125
139
|
*/
|
|
126
|
-
interface Effect {
|
|
140
|
+
export interface Effect {
|
|
127
141
|
/** The localized effect text for an API resource in a specific language. */
|
|
128
142
|
effect: string;
|
|
129
143
|
/** The language this effect is in. */
|
|
@@ -137,7 +151,7 @@ interface Effect {
|
|
|
137
151
|
*
|
|
138
152
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Wild_Pok%C3%A9mon) for greater detail.
|
|
139
153
|
*/
|
|
140
|
-
interface EncounterMethod {
|
|
154
|
+
export interface EncounterMethod {
|
|
141
155
|
/** The identifier for this resource. */
|
|
142
156
|
id: number;
|
|
143
157
|
/** The name for this resource. */
|
|
@@ -153,7 +167,7 @@ interface EncounterMethod {
|
|
|
153
167
|
*
|
|
154
168
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Time).
|
|
155
169
|
*/
|
|
156
|
-
interface EncounterCondition {
|
|
170
|
+
export interface EncounterCondition {
|
|
157
171
|
/** The identifier for this resource. */
|
|
158
172
|
id: number;
|
|
159
173
|
/** The name for this resource. */
|
|
@@ -170,7 +184,7 @@ interface EncounterCondition {
|
|
|
170
184
|
*
|
|
171
185
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Time).
|
|
172
186
|
*/
|
|
173
|
-
interface EncounterConditionValue {
|
|
187
|
+
export interface EncounterConditionValue {
|
|
174
188
|
/** The identifier for this resource. */
|
|
175
189
|
id: number;
|
|
176
190
|
/** The name for this resource. */
|
|
@@ -188,7 +202,7 @@ interface EncounterConditionValue {
|
|
|
188
202
|
* Only the games that impose such constraints populate this — guaranteed
|
|
189
203
|
* perfect IVs, forced or forbidden shininess, and Legends: Arceus alphas.
|
|
190
204
|
*/
|
|
191
|
-
interface EncounterPokemonDetail {
|
|
205
|
+
export interface EncounterPokemonDetail {
|
|
192
206
|
/** How many IVs are guaranteed to be perfect, if the game guarantees any. */
|
|
193
207
|
min_perfect_ivs: number | null;
|
|
194
208
|
/** Whether the encountered Pokémon is always shiny. */
|
|
@@ -199,7 +213,7 @@ interface EncounterPokemonDetail {
|
|
|
199
213
|
is_alpha: boolean;
|
|
200
214
|
}
|
|
201
215
|
/** Information about a Pokémon encounter. */
|
|
202
|
-
interface Encounter {
|
|
216
|
+
export interface Encounter {
|
|
203
217
|
/** The lowest level the Pokémon could be encountered at. */
|
|
204
218
|
min_level: number;
|
|
205
219
|
/** The highest level the Pokémon could be encountered at. */
|
|
@@ -221,7 +235,7 @@ interface Encounter {
|
|
|
221
235
|
*
|
|
222
236
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Contest_condition) for greater detail.
|
|
223
237
|
*/
|
|
224
|
-
interface ContestType {
|
|
238
|
+
export interface ContestType {
|
|
225
239
|
/** The identifier for this resource. */
|
|
226
240
|
id: number;
|
|
227
241
|
/** The name for this resource. */
|
|
@@ -234,7 +248,7 @@ interface ContestType {
|
|
|
234
248
|
/**
|
|
235
249
|
* The name of the given contest type.
|
|
236
250
|
*/
|
|
237
|
-
interface ContestName {
|
|
251
|
+
export interface ContestName {
|
|
238
252
|
/** The name for this contest. */
|
|
239
253
|
name: string;
|
|
240
254
|
/** The color associated with this contest's name. */
|
|
@@ -248,7 +262,7 @@ interface ContestName {
|
|
|
248
262
|
* Deliberately not the shared `FlavorText`: contest effects are not tied to a
|
|
249
263
|
* game, so the API omits the `version` that type carries.
|
|
250
264
|
*/
|
|
251
|
-
interface ContestFlavorText {
|
|
265
|
+
export interface ContestFlavorText {
|
|
252
266
|
/** The localized flavor text. */
|
|
253
267
|
flavor_text: string;
|
|
254
268
|
/** The language this flavor text is in. */
|
|
@@ -258,7 +272,7 @@ interface ContestFlavorText {
|
|
|
258
272
|
* ## Contest Effect
|
|
259
273
|
* Contest effects refer to the effects of moves when used in contests.
|
|
260
274
|
*/
|
|
261
|
-
interface ContestEffect {
|
|
275
|
+
export interface ContestEffect {
|
|
262
276
|
/** The identifier for this resource. */
|
|
263
277
|
id: number;
|
|
264
278
|
/** The base number of hearts the user of this move gets. */
|
|
@@ -281,7 +295,7 @@ interface ContestEffect {
|
|
|
281
295
|
*
|
|
282
296
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_Super_Contest).
|
|
283
297
|
*/
|
|
284
|
-
interface SuperContestEffect {
|
|
298
|
+
export interface SuperContestEffect {
|
|
285
299
|
/** The identifier for this resource. */
|
|
286
300
|
id: number;
|
|
287
301
|
/** The level of appeal this super contest effect has. */
|
|
@@ -301,7 +315,7 @@ interface SuperContestEffect {
|
|
|
301
315
|
*
|
|
302
316
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Currency) for greater detail.
|
|
303
317
|
*/
|
|
304
|
-
interface Currency {
|
|
318
|
+
export interface Currency {
|
|
305
319
|
/** The identifier for this resource. */
|
|
306
320
|
id: number;
|
|
307
321
|
/** The name for this resource. */
|
|
@@ -314,14 +328,14 @@ interface Currency {
|
|
|
314
328
|
/**
|
|
315
329
|
* Sprites used to depict the given item in the game.
|
|
316
330
|
*/
|
|
317
|
-
interface ItemSprites {
|
|
331
|
+
export interface ItemSprites {
|
|
318
332
|
/** The default depiction of this item. */
|
|
319
333
|
default: string;
|
|
320
334
|
}
|
|
321
335
|
/**
|
|
322
336
|
* Pokémon that might be found in the wild holding the given item.
|
|
323
337
|
*/
|
|
324
|
-
interface ItemHolderPokemon {
|
|
338
|
+
export interface ItemHolderPokemon {
|
|
325
339
|
/** The Pokémon that holds this item. */
|
|
326
340
|
pokemon: NamedAPIResource<Pokemon>;
|
|
327
341
|
/** The details for the version that this item is held in by the Pokémon. */
|
|
@@ -330,7 +344,7 @@ interface ItemHolderPokemon {
|
|
|
330
344
|
/**
|
|
331
345
|
* The details for the version that the given item is held in by the Pokémon.
|
|
332
346
|
*/
|
|
333
|
-
interface ItemHolderPokemonVersionDetail {
|
|
347
|
+
export interface ItemHolderPokemonVersionDetail {
|
|
334
348
|
/** How often this Pokémon holds this item in this version. */
|
|
335
349
|
rarity: number;
|
|
336
350
|
/** The version that this item is held in by the Pokémon. */
|
|
@@ -340,7 +354,7 @@ interface ItemHolderPokemonVersionDetail {
|
|
|
340
354
|
* ## Item Attribute
|
|
341
355
|
* Item attributes define particular aspects of items, e.g. "usable in battle" or "consumable".
|
|
342
356
|
*/
|
|
343
|
-
interface ItemAttribute {
|
|
357
|
+
export interface ItemAttribute {
|
|
344
358
|
/** The identifier for this resource. */
|
|
345
359
|
id: number;
|
|
346
360
|
/** The name for this resource. */
|
|
@@ -356,7 +370,7 @@ interface ItemAttribute {
|
|
|
356
370
|
* ## Item Category
|
|
357
371
|
* Item categories determine where items will be placed in the player's bag.
|
|
358
372
|
*/
|
|
359
|
-
interface ItemCategory {
|
|
373
|
+
export interface ItemCategory {
|
|
360
374
|
/** The identifier for this resource. */
|
|
361
375
|
id: number;
|
|
362
376
|
/** The name for this resource. */
|
|
@@ -372,7 +386,7 @@ interface ItemCategory {
|
|
|
372
386
|
* ## Item Fling Effect
|
|
373
387
|
* The various effects of the move "Fling" when used with different items.
|
|
374
388
|
*/
|
|
375
|
-
interface ItemFlingEffect {
|
|
389
|
+
export interface ItemFlingEffect {
|
|
376
390
|
/** The identifier for this resource. */
|
|
377
391
|
id: number;
|
|
378
392
|
/** The name for this resource. */
|
|
@@ -386,7 +400,7 @@ interface ItemFlingEffect {
|
|
|
386
400
|
* ## Item Pocket
|
|
387
401
|
* Pockets within the player's bag used for storing items by category.
|
|
388
402
|
*/
|
|
389
|
-
interface ItemPocket {
|
|
403
|
+
export interface ItemPocket {
|
|
390
404
|
/** The identifier for this resource. */
|
|
391
405
|
id: number;
|
|
392
406
|
/** The name for this resource. */
|
|
@@ -397,7 +411,7 @@ interface ItemPocket {
|
|
|
397
411
|
names: Name[];
|
|
398
412
|
}
|
|
399
413
|
/** The price of an item in a single version group. */
|
|
400
|
-
interface ItemPrice {
|
|
414
|
+
export interface ItemPrice {
|
|
401
415
|
/** The currency used for this price. */
|
|
402
416
|
currency: NamedAPIResource<Currency>;
|
|
403
417
|
/** The purchase price of this item in this version group. Null if the item cannot be purchased. */
|
|
@@ -414,7 +428,7 @@ interface ItemPrice {
|
|
|
414
428
|
*
|
|
415
429
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Item).
|
|
416
430
|
*/
|
|
417
|
-
interface Item {
|
|
431
|
+
export interface Item {
|
|
418
432
|
/** The identifier for this resource. */
|
|
419
433
|
id: number;
|
|
420
434
|
/** The name for this resource. */
|
|
@@ -452,7 +466,7 @@ interface Item {
|
|
|
452
466
|
* Method in which Pokémon may be encountered in the given area
|
|
453
467
|
* and how likely the method will occur depending on the version of the game.
|
|
454
468
|
*/
|
|
455
|
-
interface EncounterMethodRate {
|
|
469
|
+
export interface EncounterMethodRate {
|
|
456
470
|
/** The method in which Pokémon may be encountered in an area. */
|
|
457
471
|
encounter_method: NamedAPIResource<EncounterMethod>;
|
|
458
472
|
/** The chance of the encounter to occur on a version of the game. */
|
|
@@ -461,7 +475,7 @@ interface EncounterMethodRate {
|
|
|
461
475
|
/**
|
|
462
476
|
* The chance of the encounter to occur on a version of the game.
|
|
463
477
|
*/
|
|
464
|
-
interface EncounterVersionDetails {
|
|
478
|
+
export interface EncounterVersionDetails {
|
|
465
479
|
/** The chance of an encounter to occur. */
|
|
466
480
|
rate: number;
|
|
467
481
|
/** The version of the game in which the encounter can occur with the given chance. */
|
|
@@ -470,7 +484,7 @@ interface EncounterVersionDetails {
|
|
|
470
484
|
/**
|
|
471
485
|
* Describes a pokémon encounter in a given area.
|
|
472
486
|
*/
|
|
473
|
-
interface PokemonEncounter {
|
|
487
|
+
export interface PokemonEncounter {
|
|
474
488
|
/** The Pokémon being encountered. */
|
|
475
489
|
pokemon: NamedAPIResource<Pokemon>;
|
|
476
490
|
/** A list of versions and encounters with Pokémon that might happen in the referenced location area. */
|
|
@@ -485,7 +499,7 @@ interface PokemonEncounter {
|
|
|
485
499
|
*
|
|
486
500
|
* - See the [List of Locations](https://bulbapedia.bulbagarden.net/wiki/List_of_locations_by_name).
|
|
487
501
|
*/
|
|
488
|
-
interface Location {
|
|
502
|
+
export interface Location {
|
|
489
503
|
/** The identifier for this resource. */
|
|
490
504
|
id: number;
|
|
491
505
|
/** The name for this resource. */
|
|
@@ -506,7 +520,7 @@ interface Location {
|
|
|
506
520
|
*
|
|
507
521
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Area) for greater detail.
|
|
508
522
|
*/
|
|
509
|
-
interface LocationArea {
|
|
523
|
+
export interface LocationArea {
|
|
510
524
|
/** The identifier for this resource. */
|
|
511
525
|
id: number;
|
|
512
526
|
/** The name for this resource. */
|
|
@@ -523,11 +537,174 @@ interface LocationArea {
|
|
|
523
537
|
pokemon_encounters: PokemonEncounter[];
|
|
524
538
|
}
|
|
525
539
|
//#endregion
|
|
540
|
+
//#region src/models/pokemon/pokeathlon-stat.d.ts
|
|
541
|
+
/**
|
|
542
|
+
* ## Pokéathlon Stat
|
|
543
|
+
* Pokéathlon Stats are different attributes of a Pokémon's performance in Pokéathlons.
|
|
544
|
+
* In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats.
|
|
545
|
+
*
|
|
546
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail.
|
|
547
|
+
*/
|
|
548
|
+
export interface PokeathlonStat {
|
|
549
|
+
/** The identifier for this resource. */
|
|
550
|
+
id: number;
|
|
551
|
+
/** The name for this resource. */
|
|
552
|
+
name: "speed" | "power" | "skill" | "stamina" | "jump";
|
|
553
|
+
/** The name of this resource listed in different languages. */
|
|
554
|
+
names: Name[];
|
|
555
|
+
/** A detail of natures which affect this Pokéathlon stat positively or negatively. */
|
|
556
|
+
affecting_natures: NaturePokeathlonStatAffectSets;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* A nature and how it changes the referenced Pokéathlon stat.
|
|
560
|
+
*/
|
|
561
|
+
export interface NaturePokeathlonStatAffect {
|
|
562
|
+
/** The maximum amount of change to the referenced Pokéathlon stat. */
|
|
563
|
+
max_change: -1 | -2 | 1 | 2;
|
|
564
|
+
/** The nature causing the change. */
|
|
565
|
+
nature: NamedAPIResource<Nature>;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* A detail of natures which affect this Pokéathlon stat positively or negatively.
|
|
569
|
+
*/
|
|
570
|
+
export interface NaturePokeathlonStatAffectSets {
|
|
571
|
+
/** A list of natures and how they change the referenced Pokéathlon stat. */
|
|
572
|
+
increase: NaturePokeathlonStatAffect[];
|
|
573
|
+
/** A list of natures and how they change the referenced Pokéathlon stat. */
|
|
574
|
+
decrease: NaturePokeathlonStatAffect[];
|
|
575
|
+
}
|
|
576
|
+
//#endregion
|
|
577
|
+
//#region src/models/pokemon/characteristic.d.ts
|
|
578
|
+
/**
|
|
579
|
+
* ## Characteristic
|
|
580
|
+
* Characteristics indicate which stat contains a Pokémon's highest IV.
|
|
581
|
+
* A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo).
|
|
582
|
+
*
|
|
583
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail.
|
|
584
|
+
*/
|
|
585
|
+
export interface Characteristic {
|
|
586
|
+
/** The identifier for this resource. */
|
|
587
|
+
id: number;
|
|
588
|
+
/** The remainder of the highest stat/IV divided by 5. */
|
|
589
|
+
gene_modulo: number;
|
|
590
|
+
/** The possible values of the highest stat that would result in a Pokémon receiving this characteristic when divided by 5. */
|
|
591
|
+
possible_values: number[];
|
|
592
|
+
/** The highest stat for the referenced characteristic. */
|
|
593
|
+
highest_stat: NamedAPIResource<Stat>;
|
|
594
|
+
/** Descriptions for the referenced characteristic. */
|
|
595
|
+
descriptions: Description[];
|
|
596
|
+
}
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region src/models/pokemon/stat.d.ts
|
|
599
|
+
/**
|
|
600
|
+
* ## Stat
|
|
601
|
+
* Stats determine certain aspects of battles. Each Pokémon has a value for each stat
|
|
602
|
+
* which grows as they gain levels and can be altered momentarily by effects in battles.
|
|
603
|
+
*/
|
|
604
|
+
export interface Stat {
|
|
605
|
+
/** The identifier for this resource. */
|
|
606
|
+
id: number;
|
|
607
|
+
/** The name for this resource. */
|
|
608
|
+
name: "hp" | "attack" | "defense" | "special-attack" | "special-defense" | "speed" | "accuracy" | "evasion";
|
|
609
|
+
/** ID the games use for this stat. */
|
|
610
|
+
game_index: number;
|
|
611
|
+
/** Whether this stat only exists within a battle. */
|
|
612
|
+
is_battle_only: boolean;
|
|
613
|
+
/** A detail of moves which affect this stat positively or negatively. */
|
|
614
|
+
affecting_moves: MoveStatAffectSets;
|
|
615
|
+
/** A detail of natures which affect this stat positively or negatively. */
|
|
616
|
+
affecting_natures: NatureStatAffectSets;
|
|
617
|
+
/** A list of items which affect this stat. */
|
|
618
|
+
affecting_items: NamedAPIResource<Item>[];
|
|
619
|
+
/** A list of characteristics that are set on a Pokémon when its highest base stat is this stat. */
|
|
620
|
+
characteristics: APIResource<Characteristic>[];
|
|
621
|
+
/** The class of damage this stat is directly related to. */
|
|
622
|
+
move_damage_class: NamedAPIResource<MoveDamageClass> | null;
|
|
623
|
+
/** The name of this resource listed in different languages. */
|
|
624
|
+
names: Name[];
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* A detail of natures which affect the given stat positively or negatively.
|
|
628
|
+
*/
|
|
629
|
+
export interface NatureStatAffectSets {
|
|
630
|
+
/** A list of natures and how they change the referenced stat. */
|
|
631
|
+
increase: NamedAPIResource<Nature>[];
|
|
632
|
+
/** A list of natures and how they change the referenced stat. */
|
|
633
|
+
decrease: NamedAPIResource<Nature>[];
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* A move and how it changes the referenced stat.
|
|
637
|
+
*/
|
|
638
|
+
export interface MoveStatAffect {
|
|
639
|
+
/** The maximum amount of change to the referenced stat. */
|
|
640
|
+
change: -1 | -2 | 1 | 2;
|
|
641
|
+
/** The move causing the change. */
|
|
642
|
+
move: NamedAPIResource<Move>;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* A detail of moves which affect a stat positively or negatively.
|
|
646
|
+
*/
|
|
647
|
+
export interface MoveStatAffectSets {
|
|
648
|
+
/** A list of moves and how they change the referenced stat. */
|
|
649
|
+
increase: MoveStatAffect[];
|
|
650
|
+
/** A list of moves and how they change the referenced stat. */
|
|
651
|
+
decrease: MoveStatAffect[];
|
|
652
|
+
}
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region src/models/pokemon/nature.d.ts
|
|
655
|
+
/**
|
|
656
|
+
* ## Nature
|
|
657
|
+
* Natures influence how a Pokémon's stats grow.
|
|
658
|
+
*
|
|
659
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
660
|
+
*/
|
|
661
|
+
export interface Nature {
|
|
662
|
+
/** The identifier for this resource. */
|
|
663
|
+
id: number;
|
|
664
|
+
/** The name for this resource. */
|
|
665
|
+
name: string;
|
|
666
|
+
/** The stat decreased by 10% in Pokémon with this nature. */
|
|
667
|
+
decreased_stat: NamedAPIResource<Stat> | null;
|
|
668
|
+
/** The stat increased by 10% in Pokémon with this nature. */
|
|
669
|
+
increased_stat: NamedAPIResource<Stat> | null;
|
|
670
|
+
/** The flavor hated by Pokémon with this nature. */
|
|
671
|
+
hates_flavor: NamedAPIResource<BerryFlavor> | null;
|
|
672
|
+
/** The flavor liked by Pokémon with this nature. */
|
|
673
|
+
likes_flavor: NamedAPIResource<BerryFlavor> | null;
|
|
674
|
+
/** A list of Pokéathlon stats this nature affects and by how much. */
|
|
675
|
+
pokeathlon_stat_changes: NatureStatChange[];
|
|
676
|
+
/** A list of battle styles and how likely a Pokémon with this nature is to use them in the Battle Palace or Battle Tent. */
|
|
677
|
+
move_battle_style_preferences: MoveBattleStylePreference[];
|
|
678
|
+
/** The name of this resource listed in different languages. */
|
|
679
|
+
names: Name[];
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* A Pokéathlon stat a nature affects, and by how much.
|
|
683
|
+
*/
|
|
684
|
+
export interface NatureStatChange {
|
|
685
|
+
/** The amount of change. */
|
|
686
|
+
max_change: -1 | 1 | -2 | 2;
|
|
687
|
+
/** The stat being affected. */
|
|
688
|
+
pokeathlon_stat: NamedAPIResource<PokeathlonStat>;
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Battle Style and how likely a Pokémon with the given nature is to use them
|
|
692
|
+
* in the Battle Palace or Battle Tent.
|
|
693
|
+
*/
|
|
694
|
+
export interface MoveBattleStylePreference {
|
|
695
|
+
/** Chance of using the move, in percent, if HP is under one half. */
|
|
696
|
+
low_hp_preference: number;
|
|
697
|
+
/** Chance of using the move, in percent, if HP is over one half. */
|
|
698
|
+
high_hp_preference: number;
|
|
699
|
+
/** The move battle style. */
|
|
700
|
+
move_battle_style: NamedAPIResource<MoveBattleStyle>;
|
|
701
|
+
}
|
|
702
|
+
//#endregion
|
|
526
703
|
//#region src/models/pokemon/type.d.ts
|
|
527
704
|
/**
|
|
528
705
|
* Details of Pokémon for a specific type.
|
|
529
706
|
*/
|
|
530
|
-
interface TypePokemon {
|
|
707
|
+
export interface TypePokemon {
|
|
531
708
|
/** The order the Pokémon's types are listed in. */
|
|
532
709
|
slot: number;
|
|
533
710
|
/** The Pokémon that has the referenced type. */
|
|
@@ -536,7 +713,7 @@ interface TypePokemon {
|
|
|
536
713
|
/**
|
|
537
714
|
* Detail of how effective a type is toward others and vice versa.
|
|
538
715
|
*/
|
|
539
|
-
interface TypeRelations {
|
|
716
|
+
export interface TypeRelations {
|
|
540
717
|
/** A list of types this type has no effect on. */
|
|
541
718
|
no_damage_to: NamedAPIResource<Type>[];
|
|
542
719
|
/** A list of types this type is not very effective against. */
|
|
@@ -553,7 +730,7 @@ interface TypeRelations {
|
|
|
553
730
|
/**
|
|
554
731
|
* Details of how effective this type was toward others and vice versa in a previous generation.
|
|
555
732
|
*/
|
|
556
|
-
interface TypeRelationsPast {
|
|
733
|
+
export interface TypeRelationsPast {
|
|
557
734
|
/** The last generation in which the referenced type had the listed damage relations. */
|
|
558
735
|
generation: NamedAPIResource<Generation>;
|
|
559
736
|
/** The damage relations the referenced type had up to and including the listed generation. */
|
|
@@ -565,14 +742,14 @@ interface TypeRelationsPast {
|
|
|
565
742
|
* `symbol_icon` is the type's bare glyph and `name_icon` spells the name out;
|
|
566
743
|
* games that only ever shipped one of the two leave the other `null`.
|
|
567
744
|
*/
|
|
568
|
-
interface TypeGameSprites {
|
|
745
|
+
export interface TypeGameSprites {
|
|
569
746
|
/** The icon spelling out the type's name. */
|
|
570
747
|
name_icon: string | null;
|
|
571
748
|
/** The icon showing the type's symbol alone. */
|
|
572
749
|
symbol_icon: string | null;
|
|
573
750
|
}
|
|
574
751
|
/** Generation-III type icons, by game. */
|
|
575
|
-
interface GenerationIIITypeSprites {
|
|
752
|
+
export interface GenerationIIITypeSprites {
|
|
576
753
|
colosseum: TypeGameSprites;
|
|
577
754
|
emerald: TypeGameSprites;
|
|
578
755
|
"firered-leafgreen": TypeGameSprites;
|
|
@@ -580,35 +757,35 @@ interface GenerationIIITypeSprites {
|
|
|
580
757
|
xd: TypeGameSprites;
|
|
581
758
|
}
|
|
582
759
|
/** Generation-IV type icons, by game. */
|
|
583
|
-
interface GenerationIVTypeSprites {
|
|
760
|
+
export interface GenerationIVTypeSprites {
|
|
584
761
|
"diamond-pearl": TypeGameSprites;
|
|
585
762
|
"heartgold-soulsilver": TypeGameSprites;
|
|
586
763
|
platinum: TypeGameSprites;
|
|
587
764
|
}
|
|
588
765
|
/** Generation-V type icons, by game. */
|
|
589
|
-
interface GenerationVTypeSprites {
|
|
766
|
+
export interface GenerationVTypeSprites {
|
|
590
767
|
"black-2-white-2": TypeGameSprites;
|
|
591
768
|
"black-white": TypeGameSprites;
|
|
592
769
|
}
|
|
593
770
|
/** Generation-VI type icons, by game. */
|
|
594
|
-
interface GenerationVITypeSprites {
|
|
771
|
+
export interface GenerationVITypeSprites {
|
|
595
772
|
"omega-ruby-alpha-sapphire": TypeGameSprites;
|
|
596
773
|
"x-y": TypeGameSprites;
|
|
597
774
|
}
|
|
598
775
|
/** Generation-VII type icons, by game. */
|
|
599
|
-
interface GenerationVIITypeSprites {
|
|
776
|
+
export interface GenerationVIITypeSprites {
|
|
600
777
|
"lets-go-pikachu-lets-go-eevee": TypeGameSprites;
|
|
601
778
|
"sun-moon": TypeGameSprites;
|
|
602
779
|
"ultra-sun-ultra-moon": TypeGameSprites;
|
|
603
780
|
}
|
|
604
781
|
/** Generation-VIII type icons, by game. */
|
|
605
|
-
interface GenerationVIIITypeSprites {
|
|
782
|
+
export interface GenerationVIIITypeSprites {
|
|
606
783
|
"brilliant-diamond-shining-pearl": TypeGameSprites;
|
|
607
784
|
"legends-arceus": TypeGameSprites;
|
|
608
785
|
"sword-shield": TypeGameSprites;
|
|
609
786
|
}
|
|
610
787
|
/** Generation-IX type icons, by game. */
|
|
611
|
-
interface GenerationIXTypeSprites {
|
|
788
|
+
export interface GenerationIXTypeSprites {
|
|
612
789
|
"scarlet-violet": TypeGameSprites;
|
|
613
790
|
}
|
|
614
791
|
/**
|
|
@@ -616,7 +793,7 @@ interface GenerationIXTypeSprites {
|
|
|
616
793
|
*
|
|
617
794
|
* Generations I and II are absent: neither displayed type icons in-game.
|
|
618
795
|
*/
|
|
619
|
-
interface TypeSprites {
|
|
796
|
+
export interface TypeSprites {
|
|
620
797
|
/** Generation-III type icons. */
|
|
621
798
|
"generation-iii": GenerationIIITypeSprites;
|
|
622
799
|
/** Generation-IV type icons. */
|
|
@@ -638,7 +815,7 @@ interface TypeSprites {
|
|
|
638
815
|
* Each type has three properties: which types of Pokémon it is super effective against,
|
|
639
816
|
* which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against.
|
|
640
817
|
*/
|
|
641
|
-
interface Type {
|
|
818
|
+
export interface Type {
|
|
642
819
|
/** The identifier for this resource. */
|
|
643
820
|
id: number;
|
|
644
821
|
/** The name for this resource. */
|
|
@@ -670,12 +847,12 @@ interface Type {
|
|
|
670
847
|
* them. `dusk` is Lycanroc's Dusk Form and `full-moon` is Ursaluna, so this is
|
|
671
848
|
* wider than the day/night pair the endpoint documentation describes.
|
|
672
849
|
*/
|
|
673
|
-
type EvolutionTimeOfDay = "day" | "night" | "dusk" | "full-moon";
|
|
850
|
+
export type EvolutionTimeOfDay = "day" | "night" | "dusk" | "full-moon";
|
|
674
851
|
/**
|
|
675
852
|
* ## Evolution Detail
|
|
676
853
|
* All details regarding the specific details of the referenced Pokémon species evolution.
|
|
677
854
|
*/
|
|
678
|
-
interface EvolutionDetail {
|
|
855
|
+
export interface EvolutionDetail {
|
|
679
856
|
/** The item required to cause evolution into this Pokémon species. */
|
|
680
857
|
item: NamedAPIResource<Item> | null;
|
|
681
858
|
/** The type of event that triggers evolution into this Pokémon species. */
|
|
@@ -729,9 +906,9 @@ interface EvolutionDetail {
|
|
|
729
906
|
/** The region this evolution must occur in. */
|
|
730
907
|
region: NamedAPIResource<Region> | null;
|
|
731
908
|
/** The form the evolving Pokémon must be in for this evolution to occur. */
|
|
732
|
-
|
|
909
|
+
required_pokemon_form: NamedAPIResource<PokemonForm> | null;
|
|
733
910
|
/** The form this evolution produces. */
|
|
734
|
-
|
|
911
|
+
evolved_pokemon_form: NamedAPIResource<PokemonForm> | null;
|
|
735
912
|
/**
|
|
736
913
|
* The move that must be used by the evolving Pokémon species during the evolution trigger event
|
|
737
914
|
* in order to evolve into this Pokémon species.
|
|
@@ -746,13 +923,40 @@ interface EvolutionDetail {
|
|
|
746
923
|
* species.
|
|
747
924
|
*/
|
|
748
925
|
min_damage_taken: number | null;
|
|
926
|
+
/** The natures the evolving Pokémon must have one of, e.g. Toxtricity's Amped and Low Key forms. */
|
|
927
|
+
allowed_natures: NamedAPIResource<Nature>[] | null;
|
|
928
|
+
/**
|
|
929
|
+
* A check over hidden values or the player's input the evolution must pass, e.g. Wurmple into
|
|
930
|
+
* Silcoon or Cascoon, or how Milcery is spun.
|
|
931
|
+
*/
|
|
932
|
+
condition_expression: EvolutionConditionExpression | null;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* ## Evolution Condition Expression
|
|
936
|
+
* A check against values the games hide from the player, or against how the
|
|
937
|
+
* player performed the evolution, which decides between evolutions that
|
|
938
|
+
* otherwise share every requirement.
|
|
939
|
+
*/
|
|
940
|
+
export interface EvolutionConditionExpression {
|
|
941
|
+
/**
|
|
942
|
+
* The check in postfix notation over the variables' symbols, e.g.
|
|
943
|
+
* `"EC 100 % 0 !="` — the encryption constant is not a multiple of 100.
|
|
944
|
+
*/
|
|
945
|
+
expression: string;
|
|
946
|
+
/**
|
|
947
|
+
* The share of Pokémon, in percent, that pass the check. `null` when the check
|
|
948
|
+
* reads the player's input, which the player chooses rather than rolls.
|
|
949
|
+
*/
|
|
950
|
+
percentage_chance: number | null;
|
|
951
|
+
/** The values the expression reads. */
|
|
952
|
+
variables: NamedAPIResource<EvolutionVariable>[];
|
|
749
953
|
}
|
|
750
954
|
/**
|
|
751
955
|
* ## Chain Link
|
|
752
956
|
* Contains evolution details for a Pokémon in the chain.
|
|
753
957
|
* Each link references the next Pokémon in the natural evolution order.
|
|
754
958
|
*/
|
|
755
|
-
interface ChainLink {
|
|
959
|
+
export interface ChainLink {
|
|
756
960
|
/** Whether or not this link is for a baby Pokémon. This would only ever be true on the base link. */
|
|
757
961
|
is_baby: boolean;
|
|
758
962
|
/** The Pokémon species at this point in the evolution chain. */
|
|
@@ -769,7 +973,7 @@ interface ChainLink {
|
|
|
769
973
|
* evolution conditions for each as well as Pokémon they can evolve
|
|
770
974
|
* into up through the hierarchy.
|
|
771
975
|
*/
|
|
772
|
-
interface EvolutionChain {
|
|
976
|
+
export interface EvolutionChain {
|
|
773
977
|
/** The identifier for this resource. */
|
|
774
978
|
id: number;
|
|
775
979
|
/**
|
|
@@ -789,7 +993,7 @@ interface EvolutionChain {
|
|
|
789
993
|
* them — which is the order their ids run in, and the order
|
|
790
994
|
* {@link EVOLUTION_TRIGGERS} mirrors.
|
|
791
995
|
*/
|
|
792
|
-
type EvolutionTriggerName = "level-up" | "trade" | "use-item" | "shed" | "spin" | "tower-of-darkness" | "tower-of-waters" | "three-critical-hits" | "take-damage" | "
|
|
996
|
+
export type EvolutionTriggerName = "level-up" | "trade" | "use-item" | "shed" | "spin" | "tower-of-darkness" | "tower-of-waters" | "three-critical-hits" | "take-damage" | "in-battle-level-up" | "agile-style-move" | "strong-style-move" | "recoil-damage" | "use-move" | "three-defeated-bisharp" | "gimmighoul-coins" | "meltan-candies" | "unclassified";
|
|
793
997
|
/**
|
|
794
998
|
* ## Evolution Trigger
|
|
795
999
|
* Evolution triggers are the events and conditions that cause a Pokémon to evolve.
|
|
@@ -799,7 +1003,7 @@ type EvolutionTriggerName = "level-up" | "trade" | "use-item" | "shed" | "spin"
|
|
|
799
1003
|
*
|
|
800
1004
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Methods_of_evolution) for greater detail.
|
|
801
1005
|
*/
|
|
802
|
-
interface EvolutionTrigger {
|
|
1006
|
+
export interface EvolutionTrigger {
|
|
803
1007
|
/** The identifier for this resource. */
|
|
804
1008
|
id: number;
|
|
805
1009
|
/** The name for this resource. */
|
|
@@ -809,12 +1013,51 @@ interface EvolutionTrigger {
|
|
|
809
1013
|
/** A list of Pokémon species that result from this evolution trigger. */
|
|
810
1014
|
pokemon_species: NamedAPIResource<PokemonSpecies>[];
|
|
811
1015
|
}
|
|
1016
|
+
/**
|
|
1017
|
+
* ## Evolution Variable Name
|
|
1018
|
+
* Every variable the PokéAPI publishes, in id order, the order
|
|
1019
|
+
* {@link EVOLUTION_VARIABLES} mirrors.
|
|
1020
|
+
*/
|
|
1021
|
+
export type EvolutionVariableName = "encryption-constant" | "personality-value" | "spin-direction" | "spin-duration";
|
|
1022
|
+
/**
|
|
1023
|
+
* ## Evolution Variable Source
|
|
1024
|
+
* Where a variable's value comes from: `pokemon` for data stored on the Pokémon,
|
|
1025
|
+
* such as its encryption constant, `player-input` for something the player does
|
|
1026
|
+
* while evolving it, such as spinning Milcery.
|
|
1027
|
+
*/
|
|
1028
|
+
export type EvolutionVariableSource = "pokemon" | "player-input";
|
|
1029
|
+
/**
|
|
1030
|
+
* ## Evolution Variable
|
|
1031
|
+
* A value an {@link EvolutionConditionExpression} reads: either one the games
|
|
1032
|
+
* generate for each Pokémon and hide from the player, or one the player supplies
|
|
1033
|
+
* while evolving it.
|
|
1034
|
+
*
|
|
1035
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Personality_value) for greater detail.
|
|
1036
|
+
*/
|
|
1037
|
+
export interface EvolutionVariable {
|
|
1038
|
+
/** The identifier for this resource. */
|
|
1039
|
+
id: number;
|
|
1040
|
+
/** The name for this resource. */
|
|
1041
|
+
name: EvolutionVariableName;
|
|
1042
|
+
/** The symbol an expression refers to this variable by, e.g. `EC`. */
|
|
1043
|
+
symbol: string;
|
|
1044
|
+
/** The type the games store this value as, e.g. `uint32`. */
|
|
1045
|
+
data_type: string;
|
|
1046
|
+
/** Whether the value is stored on the Pokémon or supplied by the player. */
|
|
1047
|
+
source: EvolutionVariableSource;
|
|
1048
|
+
/** The version group this variable was introduced in. */
|
|
1049
|
+
version_group: NamedAPIResource<VersionGroup>;
|
|
1050
|
+
/** The name of this resource listed in different languages. */
|
|
1051
|
+
names: Name[];
|
|
1052
|
+
/** The description of this resource listed in different languages. */
|
|
1053
|
+
descriptions: Description[];
|
|
1054
|
+
}
|
|
812
1055
|
//#endregion
|
|
813
1056
|
//#region src/models/game/pokemon-entry.d.ts
|
|
814
1057
|
/**
|
|
815
1058
|
* A Pokémon catalogued in a Pokédex.
|
|
816
1059
|
*/
|
|
817
|
-
interface PokemonEntry {
|
|
1060
|
+
export interface PokemonEntry {
|
|
818
1061
|
/** The index of this Pokémon species entry within the Pokédex. */
|
|
819
1062
|
entry_number: number;
|
|
820
1063
|
/** The Pokémon species being encountered. */
|
|
@@ -830,7 +1073,7 @@ interface PokemonEntry {
|
|
|
830
1073
|
*
|
|
831
1074
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9dex) for greater detail.
|
|
832
1075
|
*/
|
|
833
|
-
interface Pokedex {
|
|
1076
|
+
export interface Pokedex {
|
|
834
1077
|
/** The identifier for this resource. */
|
|
835
1078
|
id: number;
|
|
836
1079
|
/** The name for this resource. */
|
|
@@ -865,7 +1108,7 @@ interface Pokedex {
|
|
|
865
1108
|
*
|
|
866
1109
|
* See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pal_Park) for greater detail.
|
|
867
1110
|
*/
|
|
868
|
-
interface PalParkArea {
|
|
1111
|
+
export interface PalParkArea {
|
|
869
1112
|
/** The identifier for this resource. */
|
|
870
1113
|
id: number;
|
|
871
1114
|
/** The name for this resource. */
|
|
@@ -878,7 +1121,7 @@ interface PalParkArea {
|
|
|
878
1121
|
/**
|
|
879
1122
|
* Details of a Pokémon encountered in this Pal Park area.
|
|
880
1123
|
*/
|
|
881
|
-
interface PalParkEncounterSpecies {
|
|
1124
|
+
export interface PalParkEncounterSpecies {
|
|
882
1125
|
/** The base score given to the player when this Pokémon is caught during a pal park run. */
|
|
883
1126
|
base_score: number;
|
|
884
1127
|
/** The base rate for encountering this Pokémon in this pal park area. */
|
|
@@ -895,7 +1138,7 @@ interface PalParkEncounterSpecies {
|
|
|
895
1138
|
*
|
|
896
1139
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail.
|
|
897
1140
|
*/
|
|
898
|
-
interface EggGroup {
|
|
1141
|
+
export interface EggGroup {
|
|
899
1142
|
/** The identifier for this resource. */
|
|
900
1143
|
id: number;
|
|
901
1144
|
/** The name for this resource. */
|
|
@@ -910,7 +1153,7 @@ interface EggGroup {
|
|
|
910
1153
|
/**
|
|
911
1154
|
* Levels and the amount of experience needed to attain them based on the given growth rate.
|
|
912
1155
|
*/
|
|
913
|
-
interface GrowthRateExperienceLevel {
|
|
1156
|
+
export interface GrowthRateExperienceLevel {
|
|
914
1157
|
/** The level gained. */
|
|
915
1158
|
level: number;
|
|
916
1159
|
/** The amount of experience required to reach the referenced level. */
|
|
@@ -922,7 +1165,7 @@ interface GrowthRateExperienceLevel {
|
|
|
922
1165
|
*
|
|
923
1166
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail.
|
|
924
1167
|
*/
|
|
925
|
-
interface GrowthRate {
|
|
1168
|
+
export interface GrowthRate {
|
|
926
1169
|
/** The identifier for this resource. */
|
|
927
1170
|
id: number;
|
|
928
1171
|
/** The name for this resource. */
|
|
@@ -937,169 +1180,6 @@ interface GrowthRate {
|
|
|
937
1180
|
pokemon_species: NamedAPIResource<PokemonSpecies>[];
|
|
938
1181
|
}
|
|
939
1182
|
//#endregion
|
|
940
|
-
//#region src/models/pokemon/characteristic.d.ts
|
|
941
|
-
/**
|
|
942
|
-
* ## Characteristic
|
|
943
|
-
* Characteristics indicate which stat contains a Pokémon's highest IV.
|
|
944
|
-
* A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo).
|
|
945
|
-
*
|
|
946
|
-
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail.
|
|
947
|
-
*/
|
|
948
|
-
interface Characteristic {
|
|
949
|
-
/** The identifier for this resource. */
|
|
950
|
-
id: number;
|
|
951
|
-
/** The remainder of the highest stat/IV divided by 5. */
|
|
952
|
-
gene_modulo: number;
|
|
953
|
-
/** The possible values of the highest stat that would result in a Pokémon receiving this characteristic when divided by 5. */
|
|
954
|
-
possible_values: number[];
|
|
955
|
-
/** The highest stat for the referenced characteristic. */
|
|
956
|
-
highest_stat: NamedAPIResource<Stat>;
|
|
957
|
-
/** Descriptions for the referenced characteristic. */
|
|
958
|
-
descriptions: Description[];
|
|
959
|
-
}
|
|
960
|
-
//#endregion
|
|
961
|
-
//#region src/models/pokemon/pokeathlon-stat.d.ts
|
|
962
|
-
/**
|
|
963
|
-
* ## Pokéathlon Stat
|
|
964
|
-
* Pokéathlon Stats are different attributes of a Pokémon's performance in Pokéathlons.
|
|
965
|
-
* In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats.
|
|
966
|
-
*
|
|
967
|
-
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail.
|
|
968
|
-
*/
|
|
969
|
-
interface PokeathlonStat {
|
|
970
|
-
/** The identifier for this resource. */
|
|
971
|
-
id: number;
|
|
972
|
-
/** The name for this resource. */
|
|
973
|
-
name: "speed" | "power" | "skill" | "stamina" | "jump";
|
|
974
|
-
/** The name of this resource listed in different languages. */
|
|
975
|
-
names: Name[];
|
|
976
|
-
/** A detail of natures which affect this Pokéathlon stat positively or negatively. */
|
|
977
|
-
affecting_natures: NaturePokeathlonStatAffectSets;
|
|
978
|
-
}
|
|
979
|
-
/**
|
|
980
|
-
* A nature and how it changes the referenced Pokéathlon stat.
|
|
981
|
-
*/
|
|
982
|
-
interface NaturePokeathlonStatAffect {
|
|
983
|
-
/** The maximum amount of change to the referenced Pokéathlon stat. */
|
|
984
|
-
max_change: -1 | -2 | 1 | 2;
|
|
985
|
-
/** The nature causing the change. */
|
|
986
|
-
nature: NamedAPIResource<Nature>;
|
|
987
|
-
}
|
|
988
|
-
/**
|
|
989
|
-
* A detail of natures which affect this Pokéathlon stat positively or negatively.
|
|
990
|
-
*/
|
|
991
|
-
interface NaturePokeathlonStatAffectSets {
|
|
992
|
-
/** A list of natures and how they change the referenced Pokéathlon stat. */
|
|
993
|
-
increase: NaturePokeathlonStatAffect[];
|
|
994
|
-
/** A list of natures and how they change the referenced Pokéathlon stat. */
|
|
995
|
-
decrease: NaturePokeathlonStatAffect[];
|
|
996
|
-
}
|
|
997
|
-
//#endregion
|
|
998
|
-
//#region src/models/pokemon/nature.d.ts
|
|
999
|
-
/**
|
|
1000
|
-
* ## Nature
|
|
1001
|
-
* Natures influence how a Pokémon's stats grow.
|
|
1002
|
-
*
|
|
1003
|
-
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
1004
|
-
*/
|
|
1005
|
-
interface Nature {
|
|
1006
|
-
/** The identifier for this resource. */
|
|
1007
|
-
id: number;
|
|
1008
|
-
/** The name for this resource. */
|
|
1009
|
-
name: string;
|
|
1010
|
-
/** The stat decreased by 10% in Pokémon with this nature. */
|
|
1011
|
-
decreased_stat: NamedAPIResource<Stat> | null;
|
|
1012
|
-
/** The stat increased by 10% in Pokémon with this nature. */
|
|
1013
|
-
increased_stat: NamedAPIResource<Stat> | null;
|
|
1014
|
-
/** The flavor hated by Pokémon with this nature. */
|
|
1015
|
-
hates_flavor: NamedAPIResource<BerryFlavor> | null;
|
|
1016
|
-
/** The flavor liked by Pokémon with this nature. */
|
|
1017
|
-
likes_flavor: NamedAPIResource<BerryFlavor> | null;
|
|
1018
|
-
/** A list of Pokéathlon stats this nature affects and by how much. */
|
|
1019
|
-
pokeathlon_stat_changes: NatureStatChange[];
|
|
1020
|
-
/** A list of battle styles and how likely a Pokémon with this nature is to use them in the Battle Palace or Battle Tent. */
|
|
1021
|
-
move_battle_style_preferences: MoveBattleStylePreference[];
|
|
1022
|
-
/** The name of this resource listed in different languages. */
|
|
1023
|
-
names: Name[];
|
|
1024
|
-
}
|
|
1025
|
-
/**
|
|
1026
|
-
* A Pokéathlon stat a nature affects, and by how much.
|
|
1027
|
-
*/
|
|
1028
|
-
interface NatureStatChange {
|
|
1029
|
-
/** The amount of change. */
|
|
1030
|
-
max_change: -1 | 1 | -2 | 2;
|
|
1031
|
-
/** The stat being affected. */
|
|
1032
|
-
pokeathlon_stat: NamedAPIResource<PokeathlonStat>;
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* Battle Style and how likely a Pokémon with the given nature is to use them
|
|
1036
|
-
* in the Battle Palace or Battle Tent.
|
|
1037
|
-
*/
|
|
1038
|
-
interface MoveBattleStylePreference {
|
|
1039
|
-
/** Chance of using the move, in percent, if HP is under one half. */
|
|
1040
|
-
low_hp_preference: number;
|
|
1041
|
-
/** Chance of using the move, in percent, if HP is over one half. */
|
|
1042
|
-
high_hp_preference: number;
|
|
1043
|
-
/** The move battle style. */
|
|
1044
|
-
move_battle_style: NamedAPIResource<MoveBattleStyle>;
|
|
1045
|
-
}
|
|
1046
|
-
//#endregion
|
|
1047
|
-
//#region src/models/pokemon/stat.d.ts
|
|
1048
|
-
/**
|
|
1049
|
-
* ## Stat
|
|
1050
|
-
* Stats determine certain aspects of battles. Each Pokémon has a value for each stat
|
|
1051
|
-
* which grows as they gain levels and can be altered momentarily by effects in battles.
|
|
1052
|
-
*/
|
|
1053
|
-
interface Stat {
|
|
1054
|
-
/** The identifier for this resource. */
|
|
1055
|
-
id: number;
|
|
1056
|
-
/** The name for this resource. */
|
|
1057
|
-
name: "hp" | "attack" | "defense" | "special-attack" | "special-defense" | "speed" | "accuracy" | "evasion";
|
|
1058
|
-
/** ID the games use for this stat. */
|
|
1059
|
-
game_index: number;
|
|
1060
|
-
/** Whether this stat only exists within a battle. */
|
|
1061
|
-
is_battle_only: boolean;
|
|
1062
|
-
/** A detail of moves which affect this stat positively or negatively. */
|
|
1063
|
-
affecting_moves: MoveStatAffectSets;
|
|
1064
|
-
/** A detail of natures which affect this stat positively or negatively. */
|
|
1065
|
-
affecting_natures: NatureStatAffectSets;
|
|
1066
|
-
/** A list of items which affect this stat. */
|
|
1067
|
-
affecting_items: NamedAPIResource<Item>[];
|
|
1068
|
-
/** A list of characteristics that are set on a Pokémon when its highest base stat is this stat. */
|
|
1069
|
-
characteristics: APIResource<Characteristic>[];
|
|
1070
|
-
/** The class of damage this stat is directly related to. */
|
|
1071
|
-
move_damage_class: NamedAPIResource<MoveDamageClass> | null;
|
|
1072
|
-
/** The name of this resource listed in different languages. */
|
|
1073
|
-
names: Name[];
|
|
1074
|
-
}
|
|
1075
|
-
/**
|
|
1076
|
-
* A detail of natures which affect the given stat positively or negatively.
|
|
1077
|
-
*/
|
|
1078
|
-
interface NatureStatAffectSets {
|
|
1079
|
-
/** A list of natures and how they change the referenced stat. */
|
|
1080
|
-
increase: NamedAPIResource<Nature>[];
|
|
1081
|
-
/** A list of natures and how they change the referenced stat. */
|
|
1082
|
-
decrease: NamedAPIResource<Nature>[];
|
|
1083
|
-
}
|
|
1084
|
-
/**
|
|
1085
|
-
* A move and how it changes the referenced stat.
|
|
1086
|
-
*/
|
|
1087
|
-
interface MoveStatAffect {
|
|
1088
|
-
/** The maximum amount of change to the referenced stat. */
|
|
1089
|
-
change: -1 | -2 | 1 | 2;
|
|
1090
|
-
/** The move causing the change. */
|
|
1091
|
-
move: NamedAPIResource<Move>;
|
|
1092
|
-
}
|
|
1093
|
-
/**
|
|
1094
|
-
* A detail of moves which affect a stat positively or negatively.
|
|
1095
|
-
*/
|
|
1096
|
-
interface MoveStatAffectSets {
|
|
1097
|
-
/** A list of moves and how they change the referenced stat. */
|
|
1098
|
-
increase: MoveStatAffect[];
|
|
1099
|
-
/** A list of moves and how they change the referenced stat. */
|
|
1100
|
-
decrease: MoveStatAffect[];
|
|
1101
|
-
}
|
|
1102
|
-
//#endregion
|
|
1103
1183
|
//#region src/models/pokemon/pokemon.d.ts
|
|
1104
1184
|
/**
|
|
1105
1185
|
* ## Pokémon
|
|
@@ -1110,7 +1190,7 @@ interface MoveStatAffectSets {
|
|
|
1110
1190
|
*
|
|
1111
1191
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail.
|
|
1112
1192
|
*/
|
|
1113
|
-
interface Pokemon {
|
|
1193
|
+
export interface Pokemon {
|
|
1114
1194
|
/** The identifier for this resource. */
|
|
1115
1195
|
id: number;
|
|
1116
1196
|
/** The name for this resource. */
|
|
@@ -1155,7 +1235,7 @@ interface Pokemon {
|
|
|
1155
1235
|
past_stats: PokemonPastStat[];
|
|
1156
1236
|
}
|
|
1157
1237
|
/** The cries used to depict a Pokémon in the games. */
|
|
1158
|
-
type PokemonCries = {
|
|
1238
|
+
export type PokemonCries = {
|
|
1159
1239
|
/** The legacy depiction of this Pokémon's cry. */
|
|
1160
1240
|
legacy: string;
|
|
1161
1241
|
/** The latest depiction of this Pokémon's cry. */
|
|
@@ -1164,7 +1244,7 @@ type PokemonCries = {
|
|
|
1164
1244
|
/**
|
|
1165
1245
|
* Abilities the given Pokémon could potentially have.
|
|
1166
1246
|
*/
|
|
1167
|
-
interface PokemonAbility {
|
|
1247
|
+
export interface PokemonAbility {
|
|
1168
1248
|
/** Whether or not this is a hidden ability. */
|
|
1169
1249
|
is_hidden: boolean;
|
|
1170
1250
|
/** The slot this ability occupies in this Pokémon species. */
|
|
@@ -1175,7 +1255,7 @@ interface PokemonAbility {
|
|
|
1175
1255
|
/**
|
|
1176
1256
|
* Details showing types the given Pokémon has.
|
|
1177
1257
|
*/
|
|
1178
|
-
interface PokemonType {
|
|
1258
|
+
export interface PokemonType {
|
|
1179
1259
|
/** The order the Pokémon's types are listed in. */
|
|
1180
1260
|
slot: number;
|
|
1181
1261
|
/** The type the referenced Pokémon has. */
|
|
@@ -1184,14 +1264,14 @@ interface PokemonType {
|
|
|
1184
1264
|
/**
|
|
1185
1265
|
* Data describing a Pokémon's types in a previous generation.
|
|
1186
1266
|
*/
|
|
1187
|
-
interface PokemonPastType {
|
|
1267
|
+
export interface PokemonPastType {
|
|
1188
1268
|
/** The generation of this Pokémon Type. */
|
|
1189
1269
|
generation: NamedAPIResource<Generation>;
|
|
1190
1270
|
/** The types this Pokémon had in a previous generation. */
|
|
1191
1271
|
types: PokemonType[];
|
|
1192
1272
|
}
|
|
1193
1273
|
/** An ability slot as it stood in a previous generation. */
|
|
1194
|
-
interface PokemonPastAbilitySlot {
|
|
1274
|
+
export interface PokemonPastAbilitySlot {
|
|
1195
1275
|
/** Whether or not this was a hidden ability. */
|
|
1196
1276
|
is_hidden: boolean;
|
|
1197
1277
|
/** The slot this ability occupied in this Pokémon species. */
|
|
@@ -1200,14 +1280,14 @@ interface PokemonPastAbilitySlot {
|
|
|
1200
1280
|
ability: NamedAPIResource<Ability> | null;
|
|
1201
1281
|
}
|
|
1202
1282
|
/** Data describing a Pokémon's abilities in a previous generation. */
|
|
1203
|
-
interface PokemonPastAbility {
|
|
1283
|
+
export interface PokemonPastAbility {
|
|
1204
1284
|
/** The last generation in which the referenced Pokémon had the listed abilities. */
|
|
1205
1285
|
generation: NamedAPIResource<Generation>;
|
|
1206
1286
|
/** The abilities the referenced Pokémon had up to and including the listed generation. */
|
|
1207
1287
|
abilities: PokemonPastAbilitySlot[];
|
|
1208
1288
|
}
|
|
1209
1289
|
/** Data describing a Pokémon's stats in a previous generation. */
|
|
1210
|
-
interface PokemonPastStat {
|
|
1290
|
+
export interface PokemonPastStat {
|
|
1211
1291
|
/** The last generation in which the referenced Pokémon had the listed stats. */
|
|
1212
1292
|
generation: NamedAPIResource<Generation>;
|
|
1213
1293
|
/** The stats the Pokémon had up to and including the listed generation. */
|
|
@@ -1216,7 +1296,7 @@ interface PokemonPastStat {
|
|
|
1216
1296
|
/**
|
|
1217
1297
|
* Items the given Pokémon may be holding when encountered.
|
|
1218
1298
|
*/
|
|
1219
|
-
interface PokemonHeldItem {
|
|
1299
|
+
export interface PokemonHeldItem {
|
|
1220
1300
|
/** The item the referenced Pokémon holds. */
|
|
1221
1301
|
item: NamedAPIResource<Item>;
|
|
1222
1302
|
/** The details of the different versions in which the item is held. */
|
|
@@ -1225,7 +1305,7 @@ interface PokemonHeldItem {
|
|
|
1225
1305
|
/**
|
|
1226
1306
|
* The details of the different versions in which the item is held.
|
|
1227
1307
|
*/
|
|
1228
|
-
interface PokemonHeldItemVersion {
|
|
1308
|
+
export interface PokemonHeldItemVersion {
|
|
1229
1309
|
/** The version in which the item is held. */
|
|
1230
1310
|
version: NamedAPIResource<Version>;
|
|
1231
1311
|
/** How often the item is held. */
|
|
@@ -1234,7 +1314,7 @@ interface PokemonHeldItemVersion {
|
|
|
1234
1314
|
/**
|
|
1235
1315
|
* A Move along with learn methods and level details pertaining to specific version groups.
|
|
1236
1316
|
*/
|
|
1237
|
-
interface PokemonMove {
|
|
1317
|
+
export interface PokemonMove {
|
|
1238
1318
|
/** The move the Pokémon can learn. */
|
|
1239
1319
|
move: NamedAPIResource<Move>;
|
|
1240
1320
|
/** The details of the version in which the Pokémon can learn the move. */
|
|
@@ -1243,7 +1323,7 @@ interface PokemonMove {
|
|
|
1243
1323
|
/**
|
|
1244
1324
|
* The details of the version in which the Pokémon can learn the move.
|
|
1245
1325
|
*/
|
|
1246
|
-
interface PokemonMoveVersion {
|
|
1326
|
+
export interface PokemonMoveVersion {
|
|
1247
1327
|
/** The method by which the move is learned. */
|
|
1248
1328
|
move_learn_method: NamedAPIResource<MoveLearnMethod>;
|
|
1249
1329
|
/** The version group in which the move is learned. */
|
|
@@ -1259,7 +1339,7 @@ interface PokemonMoveVersion {
|
|
|
1259
1339
|
/**
|
|
1260
1340
|
* Base stat values for the given Pokémon.
|
|
1261
1341
|
*/
|
|
1262
|
-
interface PokemonStat {
|
|
1342
|
+
export interface PokemonStat {
|
|
1263
1343
|
/** The stat the Pokémon has. */
|
|
1264
1344
|
stat: NamedAPIResource<Stat>;
|
|
1265
1345
|
/** The effort points (EV) the Pokémon has in the stat. */
|
|
@@ -1268,7 +1348,7 @@ interface PokemonStat {
|
|
|
1268
1348
|
base_stat: number;
|
|
1269
1349
|
}
|
|
1270
1350
|
/** Version Sprites. */
|
|
1271
|
-
interface VersionSprites {
|
|
1351
|
+
export interface VersionSprites {
|
|
1272
1352
|
/** Generation-I Sprites of this Pokémon. */
|
|
1273
1353
|
"generation-i": GenerationISprites;
|
|
1274
1354
|
/** Generation-II Sprites of this Pokémon. */
|
|
@@ -1292,7 +1372,7 @@ interface VersionSprites {
|
|
|
1292
1372
|
* A set of sprites used to depict this Pokémon in the game.
|
|
1293
1373
|
* A visual representation of the various sprites can be found at [PokeAPI/sprites](https://github.com/PokeAPI/sprites#sprites).
|
|
1294
1374
|
*/
|
|
1295
|
-
interface PokemonSprites {
|
|
1375
|
+
export interface PokemonSprites {
|
|
1296
1376
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1297
1377
|
front_default: string | null;
|
|
1298
1378
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
@@ -1315,7 +1395,7 @@ interface PokemonSprites {
|
|
|
1315
1395
|
versions: VersionSprites;
|
|
1316
1396
|
}
|
|
1317
1397
|
/** Other Pokémon Sprites (Dream World and Official Artwork sprites). */
|
|
1318
|
-
interface OtherPokemonSprites {
|
|
1398
|
+
export interface OtherPokemonSprites {
|
|
1319
1399
|
/** Dream World Sprites of this Pokémon. */
|
|
1320
1400
|
dream_world: DreamWorld;
|
|
1321
1401
|
/** Official Artwork Sprites of this Pokémon. */
|
|
@@ -1326,21 +1406,47 @@ interface OtherPokemonSprites {
|
|
|
1326
1406
|
showdown: Showdown;
|
|
1327
1407
|
}
|
|
1328
1408
|
/** Dream World sprites. */
|
|
1329
|
-
interface DreamWorld {
|
|
1409
|
+
export interface DreamWorld {
|
|
1330
1410
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1331
1411
|
front_default: string | null;
|
|
1332
1412
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
1333
1413
|
front_female: string | null;
|
|
1334
1414
|
}
|
|
1335
1415
|
/** Official Artwork sprites. */
|
|
1336
|
-
interface OfficialArtwork {
|
|
1416
|
+
export interface OfficialArtwork {
|
|
1337
1417
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1338
1418
|
front_default: string | null;
|
|
1339
1419
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1340
1420
|
front_shiny: string | null;
|
|
1421
|
+
/** The artwork published for earlier games. */
|
|
1422
|
+
versions: OfficialArtworkVersions;
|
|
1423
|
+
}
|
|
1424
|
+
/** Official Artwork of earlier games. */
|
|
1425
|
+
export interface OfficialArtworkVersions {
|
|
1426
|
+
/** Generation-I artwork of this Pokémon. */
|
|
1427
|
+
"generation-i": OfficialArtworkGenerationI;
|
|
1428
|
+
/** Generation-II artwork of this Pokémon. */
|
|
1429
|
+
"generation-ii": OfficialArtworkGenerationII;
|
|
1430
|
+
}
|
|
1431
|
+
/** Generation-I Official Artwork. */
|
|
1432
|
+
export interface OfficialArtworkGenerationI {
|
|
1433
|
+
/** Red and Blue artwork of this Pokémon. */
|
|
1434
|
+
"red-and-blue": OfficialArtworkVersion;
|
|
1435
|
+
/** Red and Green artwork of this Pokémon. */
|
|
1436
|
+
"red-and-green": OfficialArtworkVersion;
|
|
1437
|
+
}
|
|
1438
|
+
/** Generation-II Official Artwork. */
|
|
1439
|
+
export interface OfficialArtworkGenerationII {
|
|
1440
|
+
/** Gold and Silver artwork of this Pokémon. */
|
|
1441
|
+
"gold-and-silver": OfficialArtworkVersion;
|
|
1442
|
+
}
|
|
1443
|
+
/** The Official Artwork of one game. */
|
|
1444
|
+
export interface OfficialArtworkVersion {
|
|
1445
|
+
/** The default depiction of this Pokémon. */
|
|
1446
|
+
front_default: string | null;
|
|
1341
1447
|
}
|
|
1342
1448
|
/** Home sprites. */
|
|
1343
|
-
interface Home {
|
|
1449
|
+
export interface Home {
|
|
1344
1450
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1345
1451
|
front_default: string | null;
|
|
1346
1452
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
@@ -1351,7 +1457,7 @@ interface Home {
|
|
|
1351
1457
|
front_shiny_female: string | null;
|
|
1352
1458
|
}
|
|
1353
1459
|
/** Showdown Sprites. */
|
|
1354
|
-
interface Showdown {
|
|
1460
|
+
export interface Showdown {
|
|
1355
1461
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1356
1462
|
front_default: string | null;
|
|
1357
1463
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
@@ -1370,44 +1476,69 @@ interface Showdown {
|
|
|
1370
1476
|
back_shiny_female: string | null;
|
|
1371
1477
|
}
|
|
1372
1478
|
/** Generation-I Sprites. */
|
|
1373
|
-
interface GenerationISprites {
|
|
1479
|
+
export interface GenerationISprites {
|
|
1374
1480
|
/** Red-blue sprites of this Pokémon. */
|
|
1375
1481
|
"red-blue": RedBlue;
|
|
1482
|
+
/** Red-Green sprites of this Pokémon, from the Japanese release. */
|
|
1483
|
+
"red-green-japan": RedGreenJapan;
|
|
1376
1484
|
/** Yellow sprites of this Pokémon. */
|
|
1377
1485
|
yellow: Yellow;
|
|
1378
1486
|
}
|
|
1379
1487
|
/** Red/Blue Sprites. */
|
|
1380
|
-
interface RedBlue {
|
|
1488
|
+
export interface RedBlue {
|
|
1381
1489
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1382
1490
|
back_default: string | null;
|
|
1383
1491
|
/** The gray depiction of this Pokémon from the back in battle. */
|
|
1384
1492
|
back_gray: string | null;
|
|
1385
1493
|
/** The transparent depiction of this Pokémon from the back in battle. */
|
|
1386
1494
|
back_transparent: string | null;
|
|
1495
|
+
/** The transparent gray depiction of this Pokémon from the back in battle. */
|
|
1496
|
+
back_transparent_gray: string | null;
|
|
1387
1497
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1388
1498
|
front_default: string | null;
|
|
1389
1499
|
/** The gray depiction of this Pokémon from the front in battle. */
|
|
1390
1500
|
front_gray: string | null;
|
|
1391
1501
|
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1392
1502
|
front_transparent: string | null;
|
|
1503
|
+
/** The transparent gray depiction of this Pokémon from the front in battle. */
|
|
1504
|
+
front_transparent_gray: string | null;
|
|
1505
|
+
}
|
|
1506
|
+
/** Red/Green sprites, from the Japanese release. */
|
|
1507
|
+
export interface RedGreenJapan {
|
|
1508
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1509
|
+
back_default: string | null;
|
|
1510
|
+
/** The gray depiction of this Pokémon from the back in battle. */
|
|
1511
|
+
back_gray: string | null;
|
|
1512
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1513
|
+
front_default: string | null;
|
|
1514
|
+
/** The gray depiction of this Pokémon from the front in battle. */
|
|
1515
|
+
front_gray: string | null;
|
|
1393
1516
|
}
|
|
1394
1517
|
/** Yellow sprites. */
|
|
1395
|
-
interface Yellow {
|
|
1518
|
+
export interface Yellow {
|
|
1396
1519
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1397
1520
|
back_default: string | null;
|
|
1521
|
+
/** The Game Boy Color depiction of this Pokémon from the back in battle. */
|
|
1522
|
+
back_gbc: string | null;
|
|
1398
1523
|
/** The gray depiction of this Pokémon from the back in battle. */
|
|
1399
1524
|
back_gray: string | null;
|
|
1400
1525
|
/** The transparent depiction of this Pokémon from the back in battle. */
|
|
1401
1526
|
back_transparent: string | null;
|
|
1527
|
+
/** The transparent gray depiction of this Pokémon from the back in battle. */
|
|
1528
|
+
back_transparent_gray: string | null;
|
|
1402
1529
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1403
1530
|
front_default: string | null;
|
|
1531
|
+
/** The Game Boy Color depiction of this Pokémon from the front in battle. */
|
|
1532
|
+
front_gbc: string | null;
|
|
1404
1533
|
/** The gray depiction of this Pokémon from the front in battle. */
|
|
1405
1534
|
front_gray: string | null;
|
|
1406
1535
|
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1407
1536
|
front_transparent: string | null;
|
|
1537
|
+
/** The transparent gray depiction of this Pokémon from the front in battle. */
|
|
1538
|
+
front_transparent_gray: string | null;
|
|
1408
1539
|
}
|
|
1409
1540
|
/** Generation-II Sprites. */
|
|
1410
|
-
interface GenerationIISprites {
|
|
1541
|
+
export interface GenerationIISprites {
|
|
1411
1542
|
/** Crystal sprites of this Pokémon. */
|
|
1412
1543
|
crystal: Crystal;
|
|
1413
1544
|
/** Gold sprites of this Pokémon. */
|
|
@@ -1416,7 +1547,9 @@ interface GenerationIISprites {
|
|
|
1416
1547
|
silver: Silver;
|
|
1417
1548
|
}
|
|
1418
1549
|
/** Crystal sprites. */
|
|
1419
|
-
interface Crystal {
|
|
1550
|
+
export interface Crystal {
|
|
1551
|
+
/** The animated sprites of this Pokémon. */
|
|
1552
|
+
animated: CrystalAnimated;
|
|
1420
1553
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1421
1554
|
back_default: string | null;
|
|
1422
1555
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
@@ -1434,50 +1567,93 @@ interface Crystal {
|
|
|
1434
1567
|
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1435
1568
|
front_transparent: string | null;
|
|
1436
1569
|
}
|
|
1570
|
+
/** Animated Crystal sprites. */
|
|
1571
|
+
export interface CrystalAnimated {
|
|
1572
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1573
|
+
front_default: string | null;
|
|
1574
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1575
|
+
front_shiny: string | null;
|
|
1576
|
+
}
|
|
1437
1577
|
/** Gold sprites of this Pokémon. */
|
|
1438
|
-
interface Gold {
|
|
1578
|
+
export interface Gold {
|
|
1439
1579
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1440
1580
|
back_default: string | null;
|
|
1441
1581
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1442
1582
|
back_shiny: string | null;
|
|
1583
|
+
/** The transparent shiny depiction of this Pokémon from the back in battle. */
|
|
1584
|
+
back_shiny_transparent: string | null;
|
|
1585
|
+
/** The transparent depiction of this Pokémon from the back in battle. */
|
|
1586
|
+
back_transparent: string | null;
|
|
1443
1587
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1444
1588
|
front_default: string | null;
|
|
1445
1589
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1446
1590
|
front_shiny: string | null;
|
|
1591
|
+
/** The transparent shiny depiction of this Pokémon from the front in battle. */
|
|
1592
|
+
front_shiny_transparent: string | null;
|
|
1447
1593
|
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1448
1594
|
front_transparent: string | null;
|
|
1449
1595
|
}
|
|
1450
1596
|
/** Silver sprites. */
|
|
1451
|
-
interface Silver {
|
|
1597
|
+
export interface Silver {
|
|
1452
1598
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1453
1599
|
back_default: string | null;
|
|
1454
1600
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1455
1601
|
back_shiny: string | null;
|
|
1602
|
+
/** The transparent shiny depiction of this Pokémon from the back in battle. */
|
|
1603
|
+
back_shiny_transparent: string | null;
|
|
1604
|
+
/** The transparent depiction of this Pokémon from the back in battle. */
|
|
1605
|
+
back_transparent: string | null;
|
|
1456
1606
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1457
1607
|
front_default: string | null;
|
|
1458
1608
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1459
1609
|
front_shiny: string | null;
|
|
1610
|
+
/** The transparent shiny depiction of this Pokémon from the front in battle. */
|
|
1611
|
+
front_shiny_transparent: string | null;
|
|
1460
1612
|
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1461
1613
|
front_transparent: string | null;
|
|
1462
1614
|
}
|
|
1463
1615
|
/** Generation-III Sprites. */
|
|
1464
|
-
interface GenerationIIISprites {
|
|
1616
|
+
export interface GenerationIIISprites {
|
|
1465
1617
|
/** Emerald sprites of this Pokémon. */
|
|
1466
1618
|
emerald: Emerald;
|
|
1467
1619
|
/** Firered-Leafgreen sprites of this Pokémon. */
|
|
1468
1620
|
"firered-leafgreen": FireredLeafgreen;
|
|
1621
|
+
/** Menu icons of this Pokémon. */
|
|
1622
|
+
icons: GenerationIIIIcons;
|
|
1469
1623
|
/** Ruby-Sapphire sprites of this Pokémon. */
|
|
1470
1624
|
"ruby-sapphire": RubySapphire;
|
|
1471
1625
|
}
|
|
1472
1626
|
/** Emerald sprites. */
|
|
1473
|
-
interface Emerald {
|
|
1627
|
+
export interface Emerald {
|
|
1628
|
+
/** The animated sprites of this Pokémon. */
|
|
1629
|
+
animated: EmeraldAnimated;
|
|
1630
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1631
|
+
back_default: string | null;
|
|
1632
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1633
|
+
back_shiny: string | null;
|
|
1474
1634
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1475
1635
|
front_default: string | null;
|
|
1476
1636
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1477
1637
|
front_shiny: string | null;
|
|
1478
1638
|
}
|
|
1639
|
+
/** Animated Emerald sprites. */
|
|
1640
|
+
export interface EmeraldAnimated {
|
|
1641
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1642
|
+
back_default: string | null;
|
|
1643
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1644
|
+
back_shiny: string | null;
|
|
1645
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1646
|
+
front_default: string | null;
|
|
1647
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1648
|
+
front_shiny: string | null;
|
|
1649
|
+
}
|
|
1650
|
+
/** Generation-III menu icons. */
|
|
1651
|
+
export interface GenerationIIIIcons {
|
|
1652
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1653
|
+
front_default: string | null;
|
|
1654
|
+
}
|
|
1479
1655
|
/** FireRed LeafGreen sprites. */
|
|
1480
|
-
interface FireredLeafgreen {
|
|
1656
|
+
export interface FireredLeafgreen {
|
|
1481
1657
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1482
1658
|
back_default: string | null;
|
|
1483
1659
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
@@ -1488,7 +1664,7 @@ interface FireredLeafgreen {
|
|
|
1488
1664
|
front_shiny: string | null;
|
|
1489
1665
|
}
|
|
1490
1666
|
/** Ruby/Sapphire sprites. */
|
|
1491
|
-
interface RubySapphire {
|
|
1667
|
+
export interface RubySapphire {
|
|
1492
1668
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1493
1669
|
back_default: string | null;
|
|
1494
1670
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
@@ -1499,16 +1675,20 @@ interface RubySapphire {
|
|
|
1499
1675
|
front_shiny: string | null;
|
|
1500
1676
|
}
|
|
1501
1677
|
/** Generation-IV Sprites. */
|
|
1502
|
-
interface GenerationIVSprites {
|
|
1678
|
+
export interface GenerationIVSprites {
|
|
1503
1679
|
/** Diamond-pearl Generation sprites of this Pokémon. */
|
|
1504
1680
|
"diamond-pearl": DiamondPearl;
|
|
1505
1681
|
/** Heartgold-Soulsilver sprites of this Pokémon. */
|
|
1506
1682
|
"heartgold-soulsilver": HeartgoldSoulsilver;
|
|
1683
|
+
/** Menu icons of this Pokémon. */
|
|
1684
|
+
icons: GenerationIVIcons;
|
|
1507
1685
|
/** Platinum sprites of this Pokémon. */
|
|
1508
1686
|
platinum: Platinum;
|
|
1509
1687
|
}
|
|
1510
1688
|
/** Diamond-Pearl sprites of this Pokémon. */
|
|
1511
|
-
interface DiamondPearl {
|
|
1689
|
+
export interface DiamondPearl {
|
|
1690
|
+
/** The animated sprites of this Pokémon. */
|
|
1691
|
+
animated: GenerationIVAnimated;
|
|
1512
1692
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1513
1693
|
back_default: string | null;
|
|
1514
1694
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
@@ -1527,7 +1707,9 @@ interface DiamondPearl {
|
|
|
1527
1707
|
front_shiny_female: string | null;
|
|
1528
1708
|
}
|
|
1529
1709
|
/** HeartGold-SoulSilver sprites of this Pokémon. */
|
|
1530
|
-
interface HeartgoldSoulsilver {
|
|
1710
|
+
export interface HeartgoldSoulsilver {
|
|
1711
|
+
/** The animated sprites of this Pokémon. */
|
|
1712
|
+
animated: GenerationIVAnimated;
|
|
1531
1713
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1532
1714
|
back_default: string | null;
|
|
1533
1715
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
@@ -1546,7 +1728,9 @@ interface HeartgoldSoulsilver {
|
|
|
1546
1728
|
front_shiny_female: string | null;
|
|
1547
1729
|
}
|
|
1548
1730
|
/** Platinum sprites of this Pokémon. */
|
|
1549
|
-
interface Platinum {
|
|
1731
|
+
export interface Platinum {
|
|
1732
|
+
/** The animated sprites of this Pokémon. */
|
|
1733
|
+
animated: GenerationIVAnimated;
|
|
1550
1734
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1551
1735
|
back_default: string | null;
|
|
1552
1736
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
@@ -1564,13 +1748,31 @@ interface Platinum {
|
|
|
1564
1748
|
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1565
1749
|
front_shiny_female: string | null;
|
|
1566
1750
|
}
|
|
1751
|
+
/** Animated Generation-IV sprites. */
|
|
1752
|
+
export interface GenerationIVAnimated {
|
|
1753
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1754
|
+
front_default: string | null;
|
|
1755
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1756
|
+
front_female: string | null;
|
|
1757
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1758
|
+
front_shiny: string | null;
|
|
1759
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1760
|
+
front_shiny_female: string | null;
|
|
1761
|
+
}
|
|
1762
|
+
/** Generation-IV menu icons. */
|
|
1763
|
+
export interface GenerationIVIcons {
|
|
1764
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1765
|
+
front_default: string | null;
|
|
1766
|
+
}
|
|
1567
1767
|
/** Generation-V Sprites. */
|
|
1568
|
-
interface GenerationVSprites {
|
|
1768
|
+
export interface GenerationVSprites {
|
|
1569
1769
|
/** Black-white sprites of this Pokémon. */
|
|
1570
1770
|
"black-white": BlackWhite;
|
|
1771
|
+
/** Menu icons of this Pokémon. */
|
|
1772
|
+
icons: GenerationVIcons;
|
|
1571
1773
|
}
|
|
1572
1774
|
/** Black/White sprites. */
|
|
1573
|
-
interface BlackWhite {
|
|
1775
|
+
export interface BlackWhite {
|
|
1574
1776
|
/** The animated sprite of this Pokémon. */
|
|
1575
1777
|
animated: Animated;
|
|
1576
1778
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
@@ -1591,7 +1793,7 @@ interface BlackWhite {
|
|
|
1591
1793
|
front_shiny_female: string | null;
|
|
1592
1794
|
}
|
|
1593
1795
|
/** Animated sprites of this Pokémon. */
|
|
1594
|
-
interface Animated {
|
|
1796
|
+
export interface Animated {
|
|
1595
1797
|
/** The default depiction of this Pokémon from the back in battle. */
|
|
1596
1798
|
back_default: string | null;
|
|
1597
1799
|
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
@@ -1609,88 +1811,168 @@ interface Animated {
|
|
|
1609
1811
|
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1610
1812
|
front_shiny_female: string | null;
|
|
1611
1813
|
}
|
|
1814
|
+
/** Generation-V menu icons. */
|
|
1815
|
+
export interface GenerationVIcons {
|
|
1816
|
+
/** The animated menu icon of this Pokémon. */
|
|
1817
|
+
animated: GenerationVAnimatedIcons;
|
|
1818
|
+
/** The menu icon of this Pokémon. */
|
|
1819
|
+
front_default: string | null;
|
|
1820
|
+
}
|
|
1821
|
+
/** Animated Generation-V menu icons. */
|
|
1822
|
+
export interface GenerationVAnimatedIcons {
|
|
1823
|
+
/** The animated menu icon of this Pokémon. */
|
|
1824
|
+
front_default: string | null;
|
|
1825
|
+
}
|
|
1612
1826
|
/** Generation-VI Sprites. */
|
|
1613
|
-
interface GenerationVISprites {
|
|
1827
|
+
export interface GenerationVISprites {
|
|
1828
|
+
/** Menu icons of this Pokémon. */
|
|
1829
|
+
icons: GenerationVIIcons;
|
|
1614
1830
|
/** Omegaruby-Alphasapphire sprites of this Pokémon. */
|
|
1615
1831
|
"omegaruby-alphasapphire": OmegarubyAlphasapphire;
|
|
1616
1832
|
/** X-Y sprites of this Pokémon. */
|
|
1617
1833
|
"x-y": XY;
|
|
1618
1834
|
}
|
|
1835
|
+
/** Generation-VI menu icons. */
|
|
1836
|
+
export interface GenerationVIIcons {
|
|
1837
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1838
|
+
front_default: string | null;
|
|
1839
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1840
|
+
front_female: string | null;
|
|
1841
|
+
}
|
|
1619
1842
|
/** Omega/Ruby Alpha/Sapphire sprites. */
|
|
1620
|
-
interface OmegarubyAlphasapphire {
|
|
1843
|
+
export interface OmegarubyAlphasapphire {
|
|
1844
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1845
|
+
back_default: string | null;
|
|
1846
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1847
|
+
back_female: string | null;
|
|
1848
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1849
|
+
back_shiny: string | null;
|
|
1850
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1851
|
+
back_shiny_female: string | null;
|
|
1621
1852
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1622
1853
|
front_default: string | null;
|
|
1623
1854
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
1624
1855
|
front_female: string | null;
|
|
1625
1856
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1626
1857
|
front_shiny: string | null;
|
|
1627
|
-
/** The shiny female depiction of this Pokémon from the
|
|
1858
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1628
1859
|
front_shiny_female: string | null;
|
|
1629
1860
|
}
|
|
1630
1861
|
/** XY sprites. */
|
|
1631
|
-
interface XY {
|
|
1862
|
+
export interface XY {
|
|
1863
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1864
|
+
back_default: string | null;
|
|
1865
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1866
|
+
back_female: string | null;
|
|
1867
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1868
|
+
back_shiny: string | null;
|
|
1869
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1870
|
+
back_shiny_female: string | null;
|
|
1632
1871
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1633
1872
|
front_default: string | null;
|
|
1634
1873
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
1635
1874
|
front_female: string | null;
|
|
1636
1875
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1637
1876
|
front_shiny: string | null;
|
|
1638
|
-
/** The shiny female depiction of this Pokémon from the
|
|
1877
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1639
1878
|
front_shiny_female: string | null;
|
|
1640
1879
|
}
|
|
1641
1880
|
/** Generation-VII Sprites. */
|
|
1642
|
-
interface GenerationVIISprites {
|
|
1881
|
+
export interface GenerationVIISprites {
|
|
1643
1882
|
/** Icon sprites of this Pokémon. */
|
|
1644
1883
|
icons: GenerationViiIcons;
|
|
1884
|
+
/** Let's Go Pikachu and Let's Go Eevee sprites of this Pokémon. */
|
|
1885
|
+
"lets-go-pikachu-lets-go-eevee": LetsGoPikachuLetsGoEevee;
|
|
1645
1886
|
/** Ultra-sun-ultra-moon sprites of this Pokémon. */
|
|
1646
1887
|
"ultra-sun-ultra-moon": UltraSunUltraMoon;
|
|
1647
1888
|
}
|
|
1648
1889
|
/** Generation VII icons. */
|
|
1649
|
-
interface GenerationViiIcons {
|
|
1890
|
+
export interface GenerationViiIcons {
|
|
1650
1891
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1651
1892
|
front_default: string | null;
|
|
1652
1893
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
1653
1894
|
front_female: string | null;
|
|
1654
1895
|
}
|
|
1655
|
-
/**
|
|
1656
|
-
interface
|
|
1896
|
+
/** Let's Go Pikachu and Let's Go Eevee sprites. */
|
|
1897
|
+
export interface LetsGoPikachuLetsGoEevee {
|
|
1898
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1899
|
+
back_default: string | null;
|
|
1900
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1901
|
+
back_female: string | null;
|
|
1902
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1903
|
+
back_shiny: string | null;
|
|
1904
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1905
|
+
back_shiny_female: string | null;
|
|
1657
1906
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1658
1907
|
front_default: string | null;
|
|
1659
1908
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
1660
1909
|
front_female: string | null;
|
|
1661
1910
|
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1662
1911
|
front_shiny: string | null;
|
|
1912
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1913
|
+
front_shiny_female: string | null;
|
|
1914
|
+
/** Menu icons of this Pokémon. */
|
|
1915
|
+
icons: LetsGoPikachuLetsGoEeveeIcons;
|
|
1916
|
+
}
|
|
1917
|
+
/** Let's Go Pikachu and Let's Go Eevee menu icons. */
|
|
1918
|
+
export interface LetsGoPikachuLetsGoEeveeIcons {
|
|
1919
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1920
|
+
front_default: string | null;
|
|
1921
|
+
}
|
|
1922
|
+
/** Ultra Sun Ultra Moon sprites. */
|
|
1923
|
+
export interface UltraSunUltraMoon {
|
|
1924
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1925
|
+
back_default: string | null;
|
|
1926
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1927
|
+
back_female: string | null;
|
|
1928
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1929
|
+
back_shiny: string | null;
|
|
1663
1930
|
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1931
|
+
back_shiny_female: string | null;
|
|
1932
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1933
|
+
front_default: string | null;
|
|
1934
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1935
|
+
front_female: string | null;
|
|
1936
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1937
|
+
front_shiny: string | null;
|
|
1938
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1664
1939
|
front_shiny_female: string | null;
|
|
1665
1940
|
}
|
|
1666
1941
|
/** Generation-VIII Sprites. */
|
|
1667
|
-
interface GenerationVIIISprites {
|
|
1942
|
+
export interface GenerationVIIISprites {
|
|
1668
1943
|
/** Icon sprites of this Pokémon. */
|
|
1669
1944
|
icons: GenerationViiiIcons;
|
|
1670
1945
|
/** Brilliant Diamond and Shining Pearl sprites of this Pokémon. */
|
|
1671
1946
|
"brilliant-diamond-shining-pearl": BrilliantDiamondShiningPearl;
|
|
1672
1947
|
}
|
|
1673
1948
|
/** Generation VIII icons. */
|
|
1674
|
-
interface GenerationViiiIcons {
|
|
1949
|
+
export interface GenerationViiiIcons {
|
|
1675
1950
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1676
1951
|
front_default: string | null;
|
|
1677
1952
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
1678
1953
|
front_female: string | null;
|
|
1679
1954
|
}
|
|
1680
1955
|
/** Brilliant Diamond and Shining Pearl sprites. */
|
|
1681
|
-
interface BrilliantDiamondShiningPearl {
|
|
1956
|
+
export interface BrilliantDiamondShiningPearl {
|
|
1682
1957
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1683
1958
|
front_default: string | null;
|
|
1684
|
-
/** The female depiction of this Pokémon from the front in battle. */
|
|
1685
|
-
front_female: string | null;
|
|
1686
1959
|
}
|
|
1687
1960
|
/** Generation-IX Sprites */
|
|
1688
|
-
interface GenerationIXSprites {
|
|
1961
|
+
export interface GenerationIXSprites {
|
|
1962
|
+
/** Pokémon Champions sprites of this Pokémon. */
|
|
1963
|
+
champions: Champions;
|
|
1689
1964
|
/** Scarlet and Violet sprites of this Pokémon. */
|
|
1690
1965
|
"scarlet-violet": ScarletViolet;
|
|
1691
1966
|
}
|
|
1967
|
+
/** Pokémon Champions sprites. */
|
|
1968
|
+
export interface Champions {
|
|
1969
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1970
|
+
front_default: string | null;
|
|
1971
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1972
|
+
front_shiny: string | null;
|
|
1973
|
+
}
|
|
1692
1974
|
/** Scarlet and Violet sprites. */
|
|
1693
|
-
interface ScarletViolet {
|
|
1975
|
+
export interface ScarletViolet {
|
|
1694
1976
|
/** The default depiction of this Pokémon from the front in battle. */
|
|
1695
1977
|
front_default: string | null;
|
|
1696
1978
|
/** The female depiction of this Pokémon from the front in battle. */
|
|
@@ -1700,7 +1982,7 @@ interface ScarletViolet {
|
|
|
1700
1982
|
* ## Location Area Encounter
|
|
1701
1983
|
* Pokémon location areas where Pokémon can be found.
|
|
1702
1984
|
*/
|
|
1703
|
-
interface LocationAreaEncounter {
|
|
1985
|
+
export interface LocationAreaEncounter {
|
|
1704
1986
|
/** The location area the referenced Pokémon can be encountered in. */
|
|
1705
1987
|
location_area: NamedAPIResource<LocationArea>;
|
|
1706
1988
|
/** A list of versions and encounters with the referenced Pokémon that might happen. */
|
|
@@ -1712,7 +1994,7 @@ interface LocationAreaEncounter {
|
|
|
1712
1994
|
* The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body.
|
|
1713
1995
|
* No orange category exists; Pokémon that are primarily orange are listed as red or brown.
|
|
1714
1996
|
*/
|
|
1715
|
-
interface PokemonColor {
|
|
1997
|
+
export interface PokemonColor {
|
|
1716
1998
|
/** The identifier for this resource. */
|
|
1717
1999
|
id: number;
|
|
1718
2000
|
/** The name for this resource. */
|
|
@@ -1728,7 +2010,7 @@ interface PokemonColor {
|
|
|
1728
2010
|
* These differences are purely cosmetic. For variations within a Pokémon species,
|
|
1729
2011
|
* which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety.
|
|
1730
2012
|
*/
|
|
1731
|
-
interface PokemonForm {
|
|
2013
|
+
export interface PokemonForm {
|
|
1732
2014
|
/** The identifier for this resource. */
|
|
1733
2015
|
id: number;
|
|
1734
2016
|
/** The name for this resource. */
|
|
@@ -1764,9 +2046,11 @@ interface PokemonForm {
|
|
|
1764
2046
|
* having a specific ability. Empty for forms that are not triggered.
|
|
1765
2047
|
*/
|
|
1766
2048
|
trigger_conditions: PokemonFormCondition[];
|
|
2049
|
+
/** The flavor text of this Pokémon form, in every language it is published in. */
|
|
2050
|
+
flavor_text_entries: FlavorText[];
|
|
1767
2051
|
}
|
|
1768
2052
|
/** A condition that causes a Pokémon to take on a particular form. */
|
|
1769
|
-
interface PokemonFormCondition {
|
|
2053
|
+
export interface PokemonFormCondition {
|
|
1770
2054
|
/** The name of the resource that triggers the form. */
|
|
1771
2055
|
name: string;
|
|
1772
2056
|
/** The URL of the resource that triggers the form. */
|
|
@@ -1779,7 +2063,7 @@ interface PokemonFormCondition {
|
|
|
1779
2063
|
/**
|
|
1780
2064
|
* Sprites used to depict this Pokémon form in the game.
|
|
1781
2065
|
*/
|
|
1782
|
-
interface PokemonFormSprites {
|
|
2066
|
+
export interface PokemonFormSprites {
|
|
1783
2067
|
/** The default depiction of this Pokémon form from the front in battle. */
|
|
1784
2068
|
front_default: string | null;
|
|
1785
2069
|
/** The female depiction of this Pokémon form from the front in battle. */
|
|
@@ -1796,32 +2080,17 @@ interface PokemonFormSprites {
|
|
|
1796
2080
|
back_shiny: string | null;
|
|
1797
2081
|
/** The shiny female depiction of this Pokémon form from the back in battle. */
|
|
1798
2082
|
back_shiny_female: string | null;
|
|
2083
|
+
/** Dream World, Official Artwork, Home and Showdown sprites of this Pokémon form. */
|
|
2084
|
+
other: OtherPokemonSprites;
|
|
1799
2085
|
/** Version Sprites of this Pokémon form. */
|
|
1800
|
-
versions:
|
|
1801
|
-
}
|
|
1802
|
-
/**
|
|
1803
|
-
* Version sprites of a Pokémon form.
|
|
1804
|
-
*
|
|
1805
|
-
* Only the two generations that ship form-specific sprites appear, which is why
|
|
1806
|
-
* this is not the Pokémon-level {@link VersionSprites}.
|
|
1807
|
-
*/
|
|
1808
|
-
interface PokemonFormVersionSprites {
|
|
1809
|
-
/** Generation-VIII Sprites of this Pokémon form. */
|
|
1810
|
-
"generation-viii": PokemonFormGenerationVIIISprites;
|
|
1811
|
-
/** Generation-IX Sprites of this Pokémon form. */
|
|
1812
|
-
"generation-ix": GenerationIXSprites;
|
|
1813
|
-
}
|
|
1814
|
-
/** Generation-VIII sprites of a Pokémon form. */
|
|
1815
|
-
interface PokemonFormGenerationVIIISprites {
|
|
1816
|
-
/** Brilliant Diamond and Shining Pearl sprites of this Pokémon form. */
|
|
1817
|
-
"brilliant-diamond-shining-pearl": BrilliantDiamondShiningPearl;
|
|
2086
|
+
versions: VersionSprites;
|
|
1818
2087
|
}
|
|
1819
2088
|
/**
|
|
1820
2089
|
* ## Pokémon Habitat
|
|
1821
2090
|
* Habitats are generally different terrain Pokémon can be found in
|
|
1822
2091
|
* but can also be areas designated for rare or legendary Pokémon.
|
|
1823
2092
|
*/
|
|
1824
|
-
interface PokemonHabitat {
|
|
2093
|
+
export interface PokemonHabitat {
|
|
1825
2094
|
/** The identifier for this resource. */
|
|
1826
2095
|
id: number;
|
|
1827
2096
|
/** The name for this resource. */
|
|
@@ -1835,7 +2104,7 @@ interface PokemonHabitat {
|
|
|
1835
2104
|
* ## Pokémon Shape
|
|
1836
2105
|
* Shapes used for sorting Pokémon in a Pokédex.
|
|
1837
2106
|
*/
|
|
1838
|
-
interface PokemonShape {
|
|
2107
|
+
export interface PokemonShape {
|
|
1839
2108
|
/** The identifier for this resource. */
|
|
1840
2109
|
id: number;
|
|
1841
2110
|
/** The name for this resource. */
|
|
@@ -1850,7 +2119,7 @@ interface PokemonShape {
|
|
|
1850
2119
|
/**
|
|
1851
2120
|
* The "scientific" name of the Pokémon shape listed in different languages.
|
|
1852
2121
|
*/
|
|
1853
|
-
interface AwesomeName {
|
|
2122
|
+
export interface AwesomeName {
|
|
1854
2123
|
/** The localized "scientific" name for an API resource in a specific language. */
|
|
1855
2124
|
awesome_name: string;
|
|
1856
2125
|
/** The language this "scientific" name is in. */
|
|
@@ -1862,7 +2131,7 @@ interface AwesomeName {
|
|
|
1862
2131
|
* Attributes of a Pokémon species are shared across all varieties of Pokémon within the species.
|
|
1863
2132
|
* A good example is Wormadam; Wormadam is the species which can be found in three different varieties,
|
|
1864
2133
|
* Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant */
|
|
1865
|
-
interface PokemonSpecies {
|
|
2134
|
+
export interface PokemonSpecies {
|
|
1866
2135
|
/** The identifier for this resource. */
|
|
1867
2136
|
id: number;
|
|
1868
2137
|
/** The name for this resource. */
|
|
@@ -1921,14 +2190,14 @@ interface PokemonSpecies {
|
|
|
1921
2190
|
/**
|
|
1922
2191
|
* The genus of the given Pokémon species listed in multiple languages.
|
|
1923
2192
|
*/
|
|
1924
|
-
interface Genus {
|
|
2193
|
+
export interface Genus {
|
|
1925
2194
|
/** The localized genus for the referenced Pokémon species. */
|
|
1926
2195
|
genus: string;
|
|
1927
2196
|
/** The language this genus is in. */
|
|
1928
2197
|
language: NamedAPIResource<Language>;
|
|
1929
2198
|
}
|
|
1930
2199
|
/** Pokédexes and the indexes reserved within them for the given Pokémon species. */
|
|
1931
|
-
interface PokemonSpeciesDexEntry {
|
|
2200
|
+
export interface PokemonSpeciesDexEntry {
|
|
1932
2201
|
/** The index number within the Pokédex. */
|
|
1933
2202
|
entry_number: number;
|
|
1934
2203
|
/** The Pokédex the referenced Pokémon species can be found in. */
|
|
@@ -1937,7 +2206,7 @@ interface PokemonSpeciesDexEntry {
|
|
|
1937
2206
|
/**
|
|
1938
2207
|
* Encounter that can be had with the given Pokémon species in pal park.
|
|
1939
2208
|
*/
|
|
1940
|
-
interface PalParkEncounterArea {
|
|
2209
|
+
export interface PalParkEncounterArea {
|
|
1941
2210
|
/** The base score given to the player when the referenced Pokémon is caught during a pal park run. */
|
|
1942
2211
|
base_score: number;
|
|
1943
2212
|
/** The base rate for encountering the referenced Pokémon in this pal park area. */
|
|
@@ -1948,7 +2217,7 @@ interface PalParkEncounterArea {
|
|
|
1948
2217
|
/**
|
|
1949
2218
|
* Pokémon that exist within this Pokémon species.
|
|
1950
2219
|
*/
|
|
1951
|
-
interface PokemonSpeciesVariety {
|
|
2220
|
+
export interface PokemonSpeciesVariety {
|
|
1952
2221
|
/** Whether this variety is the default variety. */
|
|
1953
2222
|
is_default: boolean;
|
|
1954
2223
|
/** The Pokémon variety. */
|
|
@@ -1963,7 +2232,7 @@ interface PokemonSpeciesVariety {
|
|
|
1963
2232
|
*
|
|
1964
2233
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail.
|
|
1965
2234
|
*/
|
|
1966
|
-
interface Ability {
|
|
2235
|
+
export interface Ability {
|
|
1967
2236
|
/** The identifier for this resource. */
|
|
1968
2237
|
id: number;
|
|
1969
2238
|
/** The name for this resource. */
|
|
@@ -1986,7 +2255,7 @@ interface Ability {
|
|
|
1986
2255
|
/**
|
|
1987
2256
|
* Previous effects an ability has had across version groups.
|
|
1988
2257
|
*/
|
|
1989
|
-
interface AbilityEffectChange {
|
|
2258
|
+
export interface AbilityEffectChange {
|
|
1990
2259
|
/** The previous effect of this ability listed in different languages. */
|
|
1991
2260
|
effect_entries: Effect[];
|
|
1992
2261
|
/** The version group in which the previous effect of this ability originated. */
|
|
@@ -1995,7 +2264,7 @@ interface AbilityEffectChange {
|
|
|
1995
2264
|
/**
|
|
1996
2265
|
* The flavor text of an ability.
|
|
1997
2266
|
*/
|
|
1998
|
-
interface AbilityFlavorText {
|
|
2267
|
+
export interface AbilityFlavorText {
|
|
1999
2268
|
/** The localized name for an API resource in a specific language. */
|
|
2000
2269
|
flavor_text: string;
|
|
2001
2270
|
/** The language this text resource is in. */
|
|
@@ -2006,7 +2275,7 @@ interface AbilityFlavorText {
|
|
|
2006
2275
|
/**
|
|
2007
2276
|
* Pokémon that could potentially have the given ability.
|
|
2008
2277
|
*/
|
|
2009
|
-
interface AbilityPokemon {
|
|
2278
|
+
export interface AbilityPokemon {
|
|
2010
2279
|
/** Whether or not this is a hidden ability for the referenced Pokémon. */
|
|
2011
2280
|
is_hidden: boolean;
|
|
2012
2281
|
/**
|
|
@@ -2026,7 +2295,7 @@ interface AbilityPokemon {
|
|
|
2026
2295
|
*
|
|
2027
2296
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail.
|
|
2028
2297
|
*/
|
|
2029
|
-
interface Gender {
|
|
2298
|
+
export interface Gender {
|
|
2030
2299
|
/** The identifier for this resource. */
|
|
2031
2300
|
id: number;
|
|
2032
2301
|
/** The name for this resource. */
|
|
@@ -2039,7 +2308,7 @@ interface Gender {
|
|
|
2039
2308
|
/**
|
|
2040
2309
|
* Pokémon species that can be this gender and how likely it is that they will be.
|
|
2041
2310
|
*/
|
|
2042
|
-
interface PokemonSpeciesGender {
|
|
2311
|
+
export interface PokemonSpeciesGender {
|
|
2043
2312
|
/** The chance of this Pokémon being female, in eighths; or -1 for genderless. */
|
|
2044
2313
|
rate: number;
|
|
2045
2314
|
/** A Pokémon species that can be the referenced gender. */
|
|
@@ -2051,7 +2320,7 @@ interface PokemonSpeciesGender {
|
|
|
2051
2320
|
* ## Move Target
|
|
2052
2321
|
* Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
|
|
2053
2322
|
*/
|
|
2054
|
-
interface MoveTarget {
|
|
2323
|
+
export interface MoveTarget {
|
|
2055
2324
|
/** The identifier for this resource. */
|
|
2056
2325
|
id: number;
|
|
2057
2326
|
/** The name for this resource. */
|
|
@@ -2067,7 +2336,7 @@ interface MoveTarget {
|
|
|
2067
2336
|
* ## Move Learn Method
|
|
2068
2337
|
* Methods by which Pokémon can learn moves.
|
|
2069
2338
|
*/
|
|
2070
|
-
interface MoveLearnMethod {
|
|
2339
|
+
export interface MoveLearnMethod {
|
|
2071
2340
|
/** The identifier for this resource. */
|
|
2072
2341
|
id: number;
|
|
2073
2342
|
/** The name for this resource. */
|
|
@@ -2083,7 +2352,7 @@ interface MoveLearnMethod {
|
|
|
2083
2352
|
* ## Move Damage Class
|
|
2084
2353
|
* Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
2085
2354
|
*/
|
|
2086
|
-
interface MoveDamageClass {
|
|
2355
|
+
export interface MoveDamageClass {
|
|
2087
2356
|
/** The identifier for this resource. */
|
|
2088
2357
|
id: number;
|
|
2089
2358
|
/** The name for this resource. */
|
|
@@ -2099,7 +2368,7 @@ interface MoveDamageClass {
|
|
|
2099
2368
|
* ## Move Category
|
|
2100
2369
|
* Very general categories that loosely group move effects.
|
|
2101
2370
|
*/
|
|
2102
|
-
interface MoveCategory {
|
|
2371
|
+
export interface MoveCategory {
|
|
2103
2372
|
/** The identifier for this resource. */
|
|
2104
2373
|
id: number;
|
|
2105
2374
|
/** The name for this resource. */
|
|
@@ -2115,7 +2384,7 @@ interface MoveCategory {
|
|
|
2115
2384
|
*
|
|
2116
2385
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail.
|
|
2117
2386
|
*/
|
|
2118
|
-
interface MoveBattleStyle {
|
|
2387
|
+
export interface MoveBattleStyle {
|
|
2119
2388
|
/** The identifier for this resource. */
|
|
2120
2389
|
id: number;
|
|
2121
2390
|
/** The name for this resource. */
|
|
@@ -2129,7 +2398,7 @@ interface MoveBattleStyle {
|
|
|
2129
2398
|
*
|
|
2130
2399
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail.
|
|
2131
2400
|
*/
|
|
2132
|
-
interface MoveAilment {
|
|
2401
|
+
export interface MoveAilment {
|
|
2133
2402
|
/** The identifier for this resource. */
|
|
2134
2403
|
id: number;
|
|
2135
2404
|
/** The name for this resource. */
|
|
@@ -2140,7 +2409,7 @@ interface MoveAilment {
|
|
|
2140
2409
|
names: Name[];
|
|
2141
2410
|
}
|
|
2142
2411
|
/** The values a move had in a previous version group. */
|
|
2143
|
-
interface PastMoveStatValues {
|
|
2412
|
+
export interface PastMoveStatValues {
|
|
2144
2413
|
/** The percent value of how likely this move is to be successful. */
|
|
2145
2414
|
accuracy: number | null;
|
|
2146
2415
|
/** The percent value of how likely it is this move's effect will take effect. */
|
|
@@ -2157,14 +2426,14 @@ interface PastMoveStatValues {
|
|
|
2157
2426
|
version_group: NamedAPIResource<VersionGroup>;
|
|
2158
2427
|
}
|
|
2159
2428
|
/** A stat this move changes, and by how much. */
|
|
2160
|
-
interface MoveStatChange {
|
|
2429
|
+
export interface MoveStatChange {
|
|
2161
2430
|
/** The amount of change. */
|
|
2162
2431
|
change: number;
|
|
2163
2432
|
/** The stat being affected. */
|
|
2164
2433
|
stat: NamedAPIResource<Stat>;
|
|
2165
2434
|
}
|
|
2166
2435
|
/** Metadata about a move. */
|
|
2167
|
-
interface MoveMetaData {
|
|
2436
|
+
export interface MoveMetaData {
|
|
2168
2437
|
/** The status ailment this move inflicts on its target. */
|
|
2169
2438
|
ailment: NamedAPIResource<MoveAilment>;
|
|
2170
2439
|
/** The category of move this move falls under, e.g. damage or ailment. */
|
|
@@ -2193,7 +2462,7 @@ interface MoveMetaData {
|
|
|
2193
2462
|
/**
|
|
2194
2463
|
* The flavor text of this move.
|
|
2195
2464
|
*/
|
|
2196
|
-
interface MoveFlavorText {
|
|
2465
|
+
export interface MoveFlavorText {
|
|
2197
2466
|
/** The localized flavor text for an API resource in a specific language. */
|
|
2198
2467
|
flavor_text: string;
|
|
2199
2468
|
/** The language this name is in. */
|
|
@@ -2204,7 +2473,7 @@ interface MoveFlavorText {
|
|
|
2204
2473
|
/**
|
|
2205
2474
|
* A detail of moves this move can be used before or after, granting additional appeal points in super contests.
|
|
2206
2475
|
*/
|
|
2207
|
-
interface ContestComboDetail {
|
|
2476
|
+
export interface ContestComboDetail {
|
|
2208
2477
|
/** A list of moves to use before this move. */
|
|
2209
2478
|
use_before: NamedAPIResource<Move>[] | null;
|
|
2210
2479
|
/** A list of moves to use after this move. */
|
|
@@ -2213,7 +2482,7 @@ interface ContestComboDetail {
|
|
|
2213
2482
|
/**
|
|
2214
2483
|
* A detail of normal and super contest combos that require this move.
|
|
2215
2484
|
*/
|
|
2216
|
-
interface ContestComboSets {
|
|
2485
|
+
export interface ContestComboSets {
|
|
2217
2486
|
/** A detail of moves this move can be used before or after, granting additional appeal points in contests. */
|
|
2218
2487
|
normal: ContestComboDetail;
|
|
2219
2488
|
/** A detail of moves this move can be used before or after, granting additional appeal points in super contests. */
|
|
@@ -2227,7 +2496,7 @@ interface ContestComboSets {
|
|
|
2227
2496
|
*
|
|
2228
2497
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Move) for greater detail.
|
|
2229
2498
|
*/
|
|
2230
|
-
interface Move {
|
|
2499
|
+
export interface Move {
|
|
2231
2500
|
/** The identifier for this resource. */
|
|
2232
2501
|
id: number;
|
|
2233
2502
|
/** The name for this resource. */
|
|
@@ -2289,7 +2558,7 @@ interface Move {
|
|
|
2289
2558
|
*
|
|
2290
2559
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Generation) for greater detail.
|
|
2291
2560
|
*/
|
|
2292
|
-
interface Generation {
|
|
2561
|
+
export interface Generation {
|
|
2293
2562
|
/** The identifier for this resource. */
|
|
2294
2563
|
id: number;
|
|
2295
2564
|
/** The name for this resource. */
|
|
@@ -2319,7 +2588,7 @@ interface Generation {
|
|
|
2319
2588
|
*
|
|
2320
2589
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Region) for greater detail.
|
|
2321
2590
|
*/
|
|
2322
|
-
type Region = {
|
|
2591
|
+
export type Region = {
|
|
2323
2592
|
/** The identifier for this resource. */
|
|
2324
2593
|
id: number;
|
|
2325
2594
|
/** A list of locations that can be found in this region. */
|
|
@@ -2343,7 +2612,7 @@ type Region = {
|
|
|
2343
2612
|
*
|
|
2344
2613
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Core_series) for greater detail.
|
|
2345
2614
|
*/
|
|
2346
|
-
interface Version {
|
|
2615
|
+
export interface Version {
|
|
2347
2616
|
/** The identifier for this resource. */
|
|
2348
2617
|
id: number;
|
|
2349
2618
|
/** The name for this resource. */
|
|
@@ -2357,7 +2626,7 @@ interface Version {
|
|
|
2357
2626
|
* ## Version Group
|
|
2358
2627
|
* Version groups categorize highly similar versions of the games.
|
|
2359
2628
|
*/
|
|
2360
|
-
interface VersionGroup {
|
|
2629
|
+
export interface VersionGroup {
|
|
2361
2630
|
/** The identifier for this resource. */
|
|
2362
2631
|
id: number;
|
|
2363
2632
|
/** The name for this resource. */
|
|
@@ -2380,7 +2649,7 @@ interface VersionGroup {
|
|
|
2380
2649
|
/**
|
|
2381
2650
|
* The localized flavor text for an API resource in a specific language.
|
|
2382
2651
|
*/
|
|
2383
|
-
interface FlavorText {
|
|
2652
|
+
export interface FlavorText {
|
|
2384
2653
|
/** The localized flavor text for an API resource in a specific language. */
|
|
2385
2654
|
flavor_text: string;
|
|
2386
2655
|
/** The language this name is in. */
|
|
@@ -2393,7 +2662,7 @@ interface FlavorText {
|
|
|
2393
2662
|
/**
|
|
2394
2663
|
* The generation relevant to this game index.
|
|
2395
2664
|
*/
|
|
2396
|
-
interface GenerationGameIndex {
|
|
2665
|
+
export interface GenerationGameIndex {
|
|
2397
2666
|
/** The internal id of an API resource within game data. */
|
|
2398
2667
|
game_index: number;
|
|
2399
2668
|
/** The generation relevant to this game index. */
|
|
@@ -2408,7 +2677,7 @@ interface GenerationGameIndex {
|
|
|
2408
2677
|
* [TM (Technical Machine)](https://bulbapedia.bulbagarden.net/wiki/TM) or
|
|
2409
2678
|
* [HM (Hidden Machine)](https://bulbapedia.bulbagarden.net/wiki/HM) corresponds to a single Machine.
|
|
2410
2679
|
*/
|
|
2411
|
-
type Machine = {
|
|
2680
|
+
export type Machine = {
|
|
2412
2681
|
/** The identifier for this resource. */
|
|
2413
2682
|
id: number;
|
|
2414
2683
|
/** The TM or HM item that corresponds to this machine. */
|
|
@@ -2423,7 +2692,7 @@ type Machine = {
|
|
|
2423
2692
|
/**
|
|
2424
2693
|
* The machine that teaches a move from an item.
|
|
2425
2694
|
*/
|
|
2426
|
-
interface MachineVersionDetail {
|
|
2695
|
+
export interface MachineVersionDetail {
|
|
2427
2696
|
/** The machine that teaches a move from an item. */
|
|
2428
2697
|
machine: APIResource<Machine>;
|
|
2429
2698
|
/** The version group of this specific machine. */
|
|
@@ -2434,7 +2703,7 @@ interface MachineVersionDetail {
|
|
|
2434
2703
|
/**
|
|
2435
2704
|
* The localized effect for an API resource.
|
|
2436
2705
|
*/
|
|
2437
|
-
interface VerboseEffect {
|
|
2706
|
+
export interface VerboseEffect {
|
|
2438
2707
|
/** The localized effect text for an API resource in a specific language. */
|
|
2439
2708
|
effect: string;
|
|
2440
2709
|
/** The localized effect text in brief. */
|
|
@@ -2447,7 +2716,7 @@ interface VerboseEffect {
|
|
|
2447
2716
|
/**
|
|
2448
2717
|
* Encounters and their specific details.
|
|
2449
2718
|
*/
|
|
2450
|
-
interface VersionEncounterDetail {
|
|
2719
|
+
export interface VersionEncounterDetail {
|
|
2451
2720
|
/** The game version this encounter happens in. */
|
|
2452
2721
|
version: NamedAPIResource<Version>;
|
|
2453
2722
|
/** The total percentage of all encounter potential. */
|
|
@@ -2458,7 +2727,7 @@ interface VersionEncounterDetail {
|
|
|
2458
2727
|
/**
|
|
2459
2728
|
* The internal id and version of an API resource.
|
|
2460
2729
|
*/
|
|
2461
|
-
interface VersionGameIndex {
|
|
2730
|
+
export interface VersionGameIndex {
|
|
2462
2731
|
/** The internal id of an API resource within game data. */
|
|
2463
2732
|
game_index: number;
|
|
2464
2733
|
/** The version relevant to this game index. */
|
|
@@ -2467,7 +2736,7 @@ interface VersionGameIndex {
|
|
|
2467
2736
|
/**
|
|
2468
2737
|
* The flavor text of an API resource.
|
|
2469
2738
|
*/
|
|
2470
|
-
interface VersionGroupFlavorText {
|
|
2739
|
+
export interface VersionGroupFlavorText {
|
|
2471
2740
|
/** The localized name for an API resource in a specific language. */
|
|
2472
2741
|
text: string;
|
|
2473
2742
|
/** The language this name is in. */
|
|
@@ -2484,7 +2753,7 @@ interface VersionGroupFlavorText {
|
|
|
2484
2753
|
*
|
|
2485
2754
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Berry) for greater detail.
|
|
2486
2755
|
*/
|
|
2487
|
-
type Berry = {
|
|
2756
|
+
export type Berry = {
|
|
2488
2757
|
/** The identifier for this resource. */
|
|
2489
2758
|
id: number;
|
|
2490
2759
|
/** The name for this resource. */
|
|
@@ -2513,7 +2782,7 @@ type Berry = {
|
|
|
2513
2782
|
/**
|
|
2514
2783
|
* Reference to the flavor a berry can have and the potency of each of those flavors in regard to this berry.
|
|
2515
2784
|
*/
|
|
2516
|
-
type BerryFlavorMap = {
|
|
2785
|
+
export type BerryFlavorMap = {
|
|
2517
2786
|
/** How powerful the referenced flavor is for this berry. */
|
|
2518
2787
|
potency: number;
|
|
2519
2788
|
/** The referenced berry flavor. */
|
|
@@ -2525,7 +2794,7 @@ type BerryFlavorMap = {
|
|
|
2525
2794
|
*
|
|
2526
2795
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Flavor) for greater detail.
|
|
2527
2796
|
*/
|
|
2528
|
-
type BerryFlavor = {
|
|
2797
|
+
export type BerryFlavor = {
|
|
2529
2798
|
/** The identifier for this resource. */
|
|
2530
2799
|
id: number;
|
|
2531
2800
|
/** The name for this resource. */
|
|
@@ -2540,7 +2809,7 @@ type BerryFlavor = {
|
|
|
2540
2809
|
/**
|
|
2541
2810
|
* Berry with the given flavor.
|
|
2542
2811
|
*/
|
|
2543
|
-
type FlavorBerryMap = {
|
|
2812
|
+
export type FlavorBerryMap = {
|
|
2544
2813
|
/** How powerful the referenced flavor is for this berry. */
|
|
2545
2814
|
potency: number;
|
|
2546
2815
|
/** The berry with the referenced flavor. */
|
|
@@ -2552,7 +2821,7 @@ type FlavorBerryMap = {
|
|
|
2552
2821
|
*
|
|
2553
2822
|
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmness) for greater detail.
|
|
2554
2823
|
*/
|
|
2555
|
-
type BerryFirmness = {
|
|
2824
|
+
export type BerryFirmness = {
|
|
2556
2825
|
/** The identifier for this resource. */
|
|
2557
2826
|
id: number;
|
|
2558
2827
|
/** The name for this resource. */
|
|
@@ -2598,7 +2867,7 @@ interface MemoryCacheOptions {
|
|
|
2598
2867
|
* Values are stored and returned by reference — mutating a response also mutates
|
|
2599
2868
|
* what later cache hits return, so treat responses as read-only.
|
|
2600
2869
|
*/
|
|
2601
|
-
declare class MemoryCache implements CacheStore {
|
|
2870
|
+
export declare class MemoryCache implements CacheStore {
|
|
2602
2871
|
private readonly entries;
|
|
2603
2872
|
private readonly ttl;
|
|
2604
2873
|
private readonly maxEntries;
|
|
@@ -2644,7 +2913,7 @@ interface EtagStoreOptions {
|
|
|
2644
2913
|
* Entries live in memory and are never persisted: an `ETag` is only worth what
|
|
2645
2914
|
* the body beside it is, and the body is what would cost memory to keep.
|
|
2646
2915
|
*/
|
|
2647
|
-
declare class EtagStore {
|
|
2916
|
+
export declare class EtagStore {
|
|
2648
2917
|
private readonly entries;
|
|
2649
2918
|
private readonly maxEntries;
|
|
2650
2919
|
constructor(options?: EtagStoreOptions);
|
|
@@ -2709,7 +2978,7 @@ interface WebStorageCacheOptions {
|
|
|
2709
2978
|
* and a write is dropped, because neither is worth failing the request that
|
|
2710
2979
|
* triggered it over.
|
|
2711
2980
|
*/
|
|
2712
|
-
declare class WebStorageCache implements CacheStore {
|
|
2981
|
+
export declare class WebStorageCache implements CacheStore {
|
|
2713
2982
|
private readonly storage;
|
|
2714
2983
|
private readonly ttl;
|
|
2715
2984
|
private readonly prefix;
|
|
@@ -2866,11 +3135,11 @@ interface Logger {
|
|
|
2866
3135
|
* `console` itself is a valid {@link Logger} and logs the payload as an object;
|
|
2867
3136
|
* this is for when the terminal should stay readable.
|
|
2868
3137
|
*/
|
|
2869
|
-
declare const consoleLogger: Logger;
|
|
3138
|
+
export declare const consoleLogger: Logger;
|
|
2870
3139
|
//#endregion
|
|
2871
3140
|
//#region src/constants/berries.d.ts
|
|
2872
3141
|
/** Enum of Berries (NAME - ID) */
|
|
2873
|
-
declare const BERRIES: {
|
|
3142
|
+
export declare const BERRIES: {
|
|
2874
3143
|
readonly CHERI: 1;
|
|
2875
3144
|
readonly CHESTO: 2;
|
|
2876
3145
|
readonly PECHA: 3;
|
|
@@ -2941,14 +3210,14 @@ declare const BERRIES: {
|
|
|
2941
3210
|
readonly ROSELI: 68;
|
|
2942
3211
|
};
|
|
2943
3212
|
/** Enum of Berry Firmnesses (NAME - ID) */
|
|
2944
|
-
declare const BERRY_FIRMNESSES: {
|
|
3213
|
+
export declare const BERRY_FIRMNESSES: {
|
|
2945
3214
|
readonly VERY_SOFT: 1;
|
|
2946
3215
|
readonly SOFT: 2;
|
|
2947
3216
|
readonly HARD: 3;
|
|
2948
3217
|
readonly VERY_HARD: 4;
|
|
2949
3218
|
readonly SUPER_HARD: 5;
|
|
2950
3219
|
};
|
|
2951
|
-
declare const BERRY_FLAVORS: {
|
|
3220
|
+
export declare const BERRY_FLAVORS: {
|
|
2952
3221
|
readonly SPICY: 1;
|
|
2953
3222
|
readonly DRY: 2;
|
|
2954
3223
|
readonly SWEET: 3;
|
|
@@ -2957,7 +3226,7 @@ declare const BERRY_FLAVORS: {
|
|
|
2957
3226
|
};
|
|
2958
3227
|
//#endregion
|
|
2959
3228
|
//#region src/constants/contests.d.ts
|
|
2960
|
-
declare const CONTEST_TYPES: {
|
|
3229
|
+
export declare const CONTEST_TYPES: {
|
|
2961
3230
|
readonly COOL: 1;
|
|
2962
3231
|
readonly BEAUTY: 2;
|
|
2963
3232
|
readonly CUTE: 3;
|
|
@@ -2966,7 +3235,7 @@ declare const CONTEST_TYPES: {
|
|
|
2966
3235
|
};
|
|
2967
3236
|
//#endregion
|
|
2968
3237
|
//#region src/constants/currencies.d.ts
|
|
2969
|
-
declare const CURRENCIES: {
|
|
3238
|
+
export declare const CURRENCIES: {
|
|
2970
3239
|
readonly POKE_DOLLAR: 1;
|
|
2971
3240
|
readonly COIN: 2;
|
|
2972
3241
|
readonly VOLCANIC_ASH: 3;
|
|
@@ -2989,7 +3258,7 @@ declare const CURRENCIES: {
|
|
|
2989
3258
|
};
|
|
2990
3259
|
//#endregion
|
|
2991
3260
|
//#region src/constants/encounters.d.ts
|
|
2992
|
-
declare const ENCOUNTER_METHODS: {
|
|
3261
|
+
export declare const ENCOUNTER_METHODS: {
|
|
2993
3262
|
readonly WALK: 1;
|
|
2994
3263
|
readonly OLD_ROD: 2;
|
|
2995
3264
|
readonly GOOD_ROD: 3;
|
|
@@ -3067,7 +3336,7 @@ declare const ENCOUNTER_METHODS: {
|
|
|
3067
3336
|
*/
|
|
3068
3337
|
readonly ONLY_ONE: 20;
|
|
3069
3338
|
};
|
|
3070
|
-
declare const ENCOUNTER_CONDITIONS: {
|
|
3339
|
+
export declare const ENCOUNTER_CONDITIONS: {
|
|
3071
3340
|
readonly SWARM: 1;
|
|
3072
3341
|
readonly TIME: 2;
|
|
3073
3342
|
readonly RADAR: 3;
|
|
@@ -3099,7 +3368,7 @@ declare const ENCOUNTER_CONDITIONS: {
|
|
|
3099
3368
|
readonly BERRY_TREE_TYPE: 29;
|
|
3100
3369
|
readonly TRASH_CAN_TYPE: 30;
|
|
3101
3370
|
};
|
|
3102
|
-
declare const ENCOUNTER_CONDITION_VALUES: {
|
|
3371
|
+
export declare const ENCOUNTER_CONDITION_VALUES: {
|
|
3103
3372
|
readonly SWARM_YES: 1;
|
|
3104
3373
|
readonly SWARM_NO: 2;
|
|
3105
3374
|
readonly TIME_MORNING: 3;
|
|
@@ -3492,7 +3761,7 @@ declare const ENCOUNTER_CONDITION_VALUES: {
|
|
|
3492
3761
|
/**
|
|
3493
3762
|
* Endpoints of the PokéAPI
|
|
3494
3763
|
*/
|
|
3495
|
-
declare const ENDPOINTS: {
|
|
3764
|
+
export declare const ENDPOINTS: {
|
|
3496
3765
|
readonly BERRY: "/berry";
|
|
3497
3766
|
readonly BERRY_FIRMNESS: "/berry-firmness";
|
|
3498
3767
|
readonly BERRY_FLAVOR: "/berry-flavor";
|
|
@@ -3505,6 +3774,7 @@ declare const ENDPOINTS: {
|
|
|
3505
3774
|
readonly ENCOUNTER_CONDITION_VALUE: "/encounter-condition-value";
|
|
3506
3775
|
readonly EVOLUTION_CHAIN: "/evolution-chain";
|
|
3507
3776
|
readonly EVOLUTION_TRIGGER: "/evolution-trigger";
|
|
3777
|
+
readonly EVOLUTION_VARIABLE: "/evolution-variable";
|
|
3508
3778
|
readonly GENERATION: "/generation";
|
|
3509
3779
|
readonly POKEDEX: "/pokedex";
|
|
3510
3780
|
readonly VERSION: "/version";
|
|
@@ -3544,10 +3814,10 @@ declare const ENDPOINTS: {
|
|
|
3544
3814
|
readonly LANGUAGE: "/language";
|
|
3545
3815
|
};
|
|
3546
3816
|
type ObjectValue<T> = T[keyof T];
|
|
3547
|
-
type Endpoint = ObjectValue<typeof ENDPOINTS>;
|
|
3817
|
+
export type Endpoint = ObjectValue<typeof ENDPOINTS>;
|
|
3548
3818
|
//#endregion
|
|
3549
3819
|
//#region src/constants/evolutions.d.ts
|
|
3550
|
-
declare const EVOLUTION_TRIGGERS: {
|
|
3820
|
+
export declare const EVOLUTION_TRIGGERS: {
|
|
3551
3821
|
readonly LEVEL_UP: 1;
|
|
3552
3822
|
readonly TRADE: 2;
|
|
3553
3823
|
readonly USE_ITEM: 3;
|
|
@@ -3557,22 +3827,30 @@ declare const EVOLUTION_TRIGGERS: {
|
|
|
3557
3827
|
readonly TOWER_OF_WATERS: 7;
|
|
3558
3828
|
readonly THREE_CRITICAL_HITS: 8;
|
|
3559
3829
|
readonly TAKE_DAMAGE: 9;
|
|
3560
|
-
readonly
|
|
3830
|
+
readonly IN_BATTLE_LEVEL_UP: 10;
|
|
3561
3831
|
readonly AGILE_STYLE_MOVE: 11;
|
|
3562
3832
|
readonly STRONG_STYLE_MOVE: 12;
|
|
3563
3833
|
readonly RECOIL_DAMAGE: 13;
|
|
3564
3834
|
readonly USE_MOVE: 14;
|
|
3565
3835
|
readonly THREE_DEFEATED_BISHARP: 15;
|
|
3566
3836
|
readonly GIMMIGHOUL_COINS: 16;
|
|
3837
|
+
readonly MELTAN_CANDIES: 17;
|
|
3838
|
+
readonly UNCLASSIFIED: 18;
|
|
3567
3839
|
/**
|
|
3568
3840
|
* @deprecated Misspelled: the endpoint names this trigger `tower-of-waters`.
|
|
3569
3841
|
* Use {@link EVOLUTION_TRIGGERS.TOWER_OF_WATERS}. Removed in 3.0.
|
|
3570
3842
|
*/
|
|
3571
3843
|
readonly TOWER_OF_WATER: 7;
|
|
3572
3844
|
};
|
|
3845
|
+
export declare const EVOLUTION_VARIABLES: {
|
|
3846
|
+
readonly ENCRYPTION_CONSTANT: 1;
|
|
3847
|
+
readonly PERSONALITY_VALUE: 2;
|
|
3848
|
+
readonly SPIN_DIRECTION: 3;
|
|
3849
|
+
readonly SPIN_DURATION: 4;
|
|
3850
|
+
};
|
|
3573
3851
|
//#endregion
|
|
3574
3852
|
//#region src/constants/games.d.ts
|
|
3575
|
-
declare const GENERATIONS: {
|
|
3853
|
+
export declare const GENERATIONS: {
|
|
3576
3854
|
readonly GENERATION_I: 1;
|
|
3577
3855
|
readonly GENERATION_II: 2;
|
|
3578
3856
|
readonly GENERATION_III: 3;
|
|
@@ -3593,8 +3871,8 @@ declare const GENERATIONS: {
|
|
|
3593
3871
|
* `GENERATION_VIII` into `generation-viii` in the type system takes a recursive
|
|
3594
3872
|
* template literal, and the set is closed and nine long.
|
|
3595
3873
|
*/
|
|
3596
|
-
type GenerationName = "generation-i" | "generation-ii" | "generation-iii" | "generation-iv" | "generation-v" | "generation-vi" | "generation-vii" | "generation-viii" | "generation-ix";
|
|
3597
|
-
declare const POKEDEXES: {
|
|
3874
|
+
export type GenerationName = "generation-i" | "generation-ii" | "generation-iii" | "generation-iv" | "generation-v" | "generation-vi" | "generation-vii" | "generation-viii" | "generation-ix";
|
|
3875
|
+
export declare const POKEDEXES: {
|
|
3598
3876
|
readonly NATIONAL: 1;
|
|
3599
3877
|
readonly KANTO: 2;
|
|
3600
3878
|
readonly ORIGINAL_JOHTO: 3;
|
|
@@ -3641,7 +3919,7 @@ declare const POKEDEXES: {
|
|
|
3641
3919
|
*/
|
|
3642
3920
|
readonly UPDATED_KANTO: 26;
|
|
3643
3921
|
};
|
|
3644
|
-
declare const VERSIONS: {
|
|
3922
|
+
export declare const VERSIONS: {
|
|
3645
3923
|
readonly RED: 1;
|
|
3646
3924
|
readonly BLUE: 2;
|
|
3647
3925
|
readonly YELLOW: 3;
|
|
@@ -3706,7 +3984,7 @@ declare const VERSIONS: {
|
|
|
3706
3984
|
*/
|
|
3707
3985
|
readonly THE_ISLE_OF_ARMOR: 35;
|
|
3708
3986
|
};
|
|
3709
|
-
declare const VERSION_GROUPS: {
|
|
3987
|
+
export declare const VERSION_GROUPS: {
|
|
3710
3988
|
readonly RED_BLUE: 1;
|
|
3711
3989
|
readonly YELLOW: 2;
|
|
3712
3990
|
readonly GOLD_SILVER: 3;
|
|
@@ -3752,7 +4030,7 @@ declare const VERSION_GROUPS: {
|
|
|
3752
4030
|
};
|
|
3753
4031
|
//#endregion
|
|
3754
4032
|
//#region src/constants/items.d.ts
|
|
3755
|
-
declare const ITEM_ATTRIBUTES: {
|
|
4033
|
+
export declare const ITEM_ATTRIBUTES: {
|
|
3756
4034
|
readonly COUNTABLE: 1;
|
|
3757
4035
|
readonly CONSUMABLE: 2;
|
|
3758
4036
|
readonly USABLE_OVERWORLD: 3;
|
|
@@ -3762,7 +4040,7 @@ declare const ITEM_ATTRIBUTES: {
|
|
|
3762
4040
|
readonly HOLDABLE_ACTIVE: 7;
|
|
3763
4041
|
readonly UNDERGROUND: 8;
|
|
3764
4042
|
};
|
|
3765
|
-
declare const ITEM_CATEGORIES: {
|
|
4043
|
+
export declare const ITEM_CATEGORIES: {
|
|
3766
4044
|
readonly STAT_BOOSTS: 1;
|
|
3767
4045
|
readonly EFFORT_DROP: 2;
|
|
3768
4046
|
readonly MEDICINE: 3;
|
|
@@ -3823,7 +4101,7 @@ declare const ITEM_CATEGORIES: {
|
|
|
3823
4101
|
*/
|
|
3824
4102
|
readonly DYNAMAX_CRISTALS: 49;
|
|
3825
4103
|
};
|
|
3826
|
-
declare const ITEM_FLING_EFFECTS: {
|
|
4104
|
+
export declare const ITEM_FLING_EFFECTS: {
|
|
3827
4105
|
readonly BADLY_POISON: 1;
|
|
3828
4106
|
readonly BURN: 2;
|
|
3829
4107
|
readonly BERRY_EFFECT: 3;
|
|
@@ -3832,7 +4110,7 @@ declare const ITEM_FLING_EFFECTS: {
|
|
|
3832
4110
|
readonly POISON: 6;
|
|
3833
4111
|
readonly FLINCH: 7;
|
|
3834
4112
|
};
|
|
3835
|
-
declare const ITEM_POCKETS: {
|
|
4113
|
+
export declare const ITEM_POCKETS: {
|
|
3836
4114
|
readonly MISC: 1;
|
|
3837
4115
|
readonly MEDICINE: 2;
|
|
3838
4116
|
readonly POKEBALLS: 3;
|
|
@@ -3844,7 +4122,7 @@ declare const ITEM_POCKETS: {
|
|
|
3844
4122
|
};
|
|
3845
4123
|
//#endregion
|
|
3846
4124
|
//#region src/constants/locations.d.ts
|
|
3847
|
-
declare const REGIONS: {
|
|
4125
|
+
export declare const REGIONS: {
|
|
3848
4126
|
readonly KANTO: 1;
|
|
3849
4127
|
readonly JOHTO: 2;
|
|
3850
4128
|
readonly HOENN: 3;
|
|
@@ -3857,7 +4135,7 @@ declare const REGIONS: {
|
|
|
3857
4135
|
readonly PALDEA: 10;
|
|
3858
4136
|
readonly ORRE: 11;
|
|
3859
4137
|
};
|
|
3860
|
-
declare const PAL_PARK_AREAS: {
|
|
4138
|
+
export declare const PAL_PARK_AREAS: {
|
|
3861
4139
|
readonly FOREST: 1;
|
|
3862
4140
|
readonly FIELD: 2;
|
|
3863
4141
|
readonly MOUNTAIN: 3;
|
|
@@ -3866,7 +4144,7 @@ declare const PAL_PARK_AREAS: {
|
|
|
3866
4144
|
};
|
|
3867
4145
|
//#endregion
|
|
3868
4146
|
//#region src/constants/moves.d.ts
|
|
3869
|
-
declare const MOVE_AILMENTS: {
|
|
4147
|
+
export declare const MOVE_AILMENTS: {
|
|
3870
4148
|
readonly UNKNOWN: -1;
|
|
3871
4149
|
readonly NONE: 0;
|
|
3872
4150
|
readonly PARALYSIS: 1;
|
|
@@ -3889,13 +4167,14 @@ declare const MOVE_AILMENTS: {
|
|
|
3889
4167
|
readonly INGRAIN: 21;
|
|
3890
4168
|
readonly SILENCE: 24;
|
|
3891
4169
|
readonly TAR_SHOT: 42;
|
|
4170
|
+
readonly PROTECT: 43;
|
|
3892
4171
|
};
|
|
3893
|
-
declare const MOVE_BATTLE_STYLES: {
|
|
4172
|
+
export declare const MOVE_BATTLE_STYLES: {
|
|
3894
4173
|
readonly ATTACK: 1;
|
|
3895
4174
|
readonly DEFENSE: 2;
|
|
3896
4175
|
readonly SUPPORT: 3;
|
|
3897
4176
|
};
|
|
3898
|
-
declare const MOVE_CATEGORIES: {
|
|
4177
|
+
export declare const MOVE_CATEGORIES: {
|
|
3899
4178
|
readonly DAMAGE: 0;
|
|
3900
4179
|
readonly AILMENT: 1;
|
|
3901
4180
|
readonly NET_GOOD_STATS: 2;
|
|
@@ -3911,12 +4190,12 @@ declare const MOVE_CATEGORIES: {
|
|
|
3911
4190
|
readonly FORCE_SWITCH: 12;
|
|
3912
4191
|
readonly UNIQUE: 13;
|
|
3913
4192
|
};
|
|
3914
|
-
declare const MOVE_DAMAGE_CLASSES: {
|
|
4193
|
+
export declare const MOVE_DAMAGE_CLASSES: {
|
|
3915
4194
|
readonly STATUS: 1;
|
|
3916
4195
|
readonly PHYSICAL: 2;
|
|
3917
4196
|
readonly SPECIAL: 3;
|
|
3918
4197
|
};
|
|
3919
|
-
declare const MOVE_LEARN_METHODS: {
|
|
4198
|
+
export declare const MOVE_LEARN_METHODS: {
|
|
3920
4199
|
readonly LEVEL_UP: 1;
|
|
3921
4200
|
readonly EGG: 2;
|
|
3922
4201
|
readonly TUTOR: 3;
|
|
@@ -3930,7 +4209,7 @@ declare const MOVE_LEARN_METHODS: {
|
|
|
3930
4209
|
readonly ZYGARDE_CUBE: 11;
|
|
3931
4210
|
readonly TRAIN: 12;
|
|
3932
4211
|
};
|
|
3933
|
-
declare const MOVE_TARGETS: {
|
|
4212
|
+
export declare const MOVE_TARGETS: {
|
|
3934
4213
|
readonly SPECIFIC_MOVE: 1;
|
|
3935
4214
|
readonly SELECTED_POKEMON_ME_FIRST: 2;
|
|
3936
4215
|
readonly ALLY: 3;
|
|
@@ -3955,7 +4234,7 @@ declare const MOVE_TARGETS: {
|
|
|
3955
4234
|
};
|
|
3956
4235
|
//#endregion
|
|
3957
4236
|
//#region src/constants/pokemon.d.ts
|
|
3958
|
-
declare const EGG_GROUPS: {
|
|
4237
|
+
export declare const EGG_GROUPS: {
|
|
3959
4238
|
readonly MONSTER: 1;
|
|
3960
4239
|
readonly WATER1: 2;
|
|
3961
4240
|
readonly BUG: 3;
|
|
@@ -3972,12 +4251,12 @@ declare const EGG_GROUPS: {
|
|
|
3972
4251
|
readonly DRAGON: 14;
|
|
3973
4252
|
readonly NO_EGGS: 15;
|
|
3974
4253
|
};
|
|
3975
|
-
declare const GENDERS: {
|
|
4254
|
+
export declare const GENDERS: {
|
|
3976
4255
|
readonly FEMALE: 1;
|
|
3977
4256
|
readonly MALE: 2;
|
|
3978
4257
|
readonly GENDERLESS: 3;
|
|
3979
4258
|
};
|
|
3980
|
-
declare const GROWTH_RATES: {
|
|
4259
|
+
export declare const GROWTH_RATES: {
|
|
3981
4260
|
readonly SLOW: 1;
|
|
3982
4261
|
readonly MEDIUM: 2;
|
|
3983
4262
|
readonly FAST: 3;
|
|
@@ -3985,7 +4264,7 @@ declare const GROWTH_RATES: {
|
|
|
3985
4264
|
readonly SLOW_THEN_VERY_FAST: 5;
|
|
3986
4265
|
readonly FAST_THEN_VERY_SLOW: 6;
|
|
3987
4266
|
};
|
|
3988
|
-
declare const NATURES: {
|
|
4267
|
+
export declare const NATURES: {
|
|
3989
4268
|
readonly HARDY: 1;
|
|
3990
4269
|
readonly BOLD: 2;
|
|
3991
4270
|
readonly MODEST: 3;
|
|
@@ -4012,14 +4291,14 @@ declare const NATURES: {
|
|
|
4012
4291
|
readonly SASSY: 24;
|
|
4013
4292
|
readonly SERIOUS: 25;
|
|
4014
4293
|
};
|
|
4015
|
-
declare const POKEATHLON_STATS: {
|
|
4294
|
+
export declare const POKEATHLON_STATS: {
|
|
4016
4295
|
readonly SPEED: 1;
|
|
4017
4296
|
readonly POWER: 2;
|
|
4018
4297
|
readonly SKILL: 3;
|
|
4019
4298
|
readonly STAMINA: 4;
|
|
4020
4299
|
readonly JUMP: 5;
|
|
4021
4300
|
};
|
|
4022
|
-
declare const POKEMON_COLORS: {
|
|
4301
|
+
export declare const POKEMON_COLORS: {
|
|
4023
4302
|
readonly BLACK: 1;
|
|
4024
4303
|
readonly BLUE: 2;
|
|
4025
4304
|
readonly BROWN: 3;
|
|
@@ -4031,7 +4310,7 @@ declare const POKEMON_COLORS: {
|
|
|
4031
4310
|
readonly WHITE: 9;
|
|
4032
4311
|
readonly YELLOW: 10;
|
|
4033
4312
|
};
|
|
4034
|
-
declare const POKEMON_HABITATS: {
|
|
4313
|
+
export declare const POKEMON_HABITATS: {
|
|
4035
4314
|
readonly CAVE: 1;
|
|
4036
4315
|
readonly FOREST: 2;
|
|
4037
4316
|
readonly GRASSLAND: 3;
|
|
@@ -4047,7 +4326,7 @@ declare const POKEMON_HABITATS: {
|
|
|
4047
4326
|
*/
|
|
4048
4327
|
readonly MONTAIN: 4;
|
|
4049
4328
|
};
|
|
4050
|
-
declare const POKEMON_SHAPES: {
|
|
4329
|
+
export declare const POKEMON_SHAPES: {
|
|
4051
4330
|
readonly BALL: 1;
|
|
4052
4331
|
readonly SQUIGGLE: 2;
|
|
4053
4332
|
readonly FISH: 3;
|
|
@@ -4063,7 +4342,7 @@ declare const POKEMON_SHAPES: {
|
|
|
4063
4342
|
readonly BUG_WINGS: 13;
|
|
4064
4343
|
readonly ARMOR: 14;
|
|
4065
4344
|
};
|
|
4066
|
-
declare const STATS: {
|
|
4345
|
+
export declare const STATS: {
|
|
4067
4346
|
readonly HP: 1;
|
|
4068
4347
|
readonly ATTACK: 2;
|
|
4069
4348
|
readonly DEFENSE: 3;
|
|
@@ -4074,7 +4353,7 @@ declare const STATS: {
|
|
|
4074
4353
|
readonly EVASION: 8;
|
|
4075
4354
|
readonly SPECIAL: 9;
|
|
4076
4355
|
};
|
|
4077
|
-
declare const TYPES: {
|
|
4356
|
+
export declare const TYPES: {
|
|
4078
4357
|
readonly NORMAL: 1;
|
|
4079
4358
|
readonly FIGHTING: 2;
|
|
4080
4359
|
readonly FLYING: 3;
|
|
@@ -4112,17 +4391,17 @@ declare const TYPES: {
|
|
|
4112
4391
|
* `GenerationName` is: the set is closed, and the two exclusions are a decision
|
|
4113
4392
|
* rather than a transformation.
|
|
4114
4393
|
*/
|
|
4115
|
-
type TypeName = "normal" | "fighting" | "flying" | "poison" | "ground" | "rock" | "bug" | "ghost" | "steel" | "fire" | "water" | "grass" | "electric" | "psychic" | "ice" | "dragon" | "dark" | "fairy" | "stellar";
|
|
4394
|
+
export type TypeName = "normal" | "fighting" | "flying" | "poison" | "ground" | "rock" | "bug" | "ghost" | "steel" | "fire" | "water" | "grass" | "electric" | "psychic" | "ice" | "dragon" | "dark" | "fairy" | "stellar";
|
|
4116
4395
|
//#endregion
|
|
4117
4396
|
//#region src/constants/urls.d.ts
|
|
4118
|
-
declare const BASE_URL: {
|
|
4397
|
+
export declare const BASE_URL: {
|
|
4119
4398
|
readonly REST: "https://pokeapi.co/api/v2";
|
|
4120
4399
|
/** Root of the sprite repository the API's own sprite URLs point at. */
|
|
4121
4400
|
readonly SPRITES: "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites";
|
|
4122
4401
|
};
|
|
4123
4402
|
//#endregion
|
|
4124
4403
|
//#region src/constants/utilities.d.ts
|
|
4125
|
-
declare const LANGUAGES: {
|
|
4404
|
+
export declare const LANGUAGES: {
|
|
4126
4405
|
readonly JA_HRKT: 1;
|
|
4127
4406
|
readonly JA_ROMA: 2;
|
|
4128
4407
|
readonly KO: 3;
|
|
@@ -4139,7 +4418,7 @@ declare const LANGUAGES: {
|
|
|
4139
4418
|
readonly ES_419: 14;
|
|
4140
4419
|
};
|
|
4141
4420
|
declare namespace index_d_exports {
|
|
4142
|
-
export { BASE_URL, BERRIES, BERRY_FIRMNESSES, BERRY_FLAVORS, CONTEST_TYPES, CURRENCIES, EGG_GROUPS, ENCOUNTER_CONDITIONS, ENCOUNTER_CONDITION_VALUES, ENCOUNTER_METHODS, ENDPOINTS, EVOLUTION_TRIGGERS, Endpoint, GENDERS, GENERATIONS, GROWTH_RATES, GenerationName, ITEM_ATTRIBUTES, ITEM_CATEGORIES, ITEM_FLING_EFFECTS, ITEM_POCKETS, LANGUAGES, MOVE_AILMENTS, MOVE_BATTLE_STYLES, MOVE_CATEGORIES, MOVE_DAMAGE_CLASSES, MOVE_LEARN_METHODS, MOVE_TARGETS, NATURES, PAL_PARK_AREAS, POKEATHLON_STATS, POKEDEXES, POKEMON_COLORS, POKEMON_HABITATS, POKEMON_SHAPES, REGIONS, STATS, TYPES, TypeName, VERSIONS, VERSION_GROUPS };
|
|
4421
|
+
export { BASE_URL, BERRIES, BERRY_FIRMNESSES, BERRY_FLAVORS, CONTEST_TYPES, CURRENCIES, EGG_GROUPS, ENCOUNTER_CONDITIONS, ENCOUNTER_CONDITION_VALUES, ENCOUNTER_METHODS, ENDPOINTS, EVOLUTION_TRIGGERS, EVOLUTION_VARIABLES, Endpoint, GENDERS, GENERATIONS, GROWTH_RATES, GenerationName, ITEM_ATTRIBUTES, ITEM_CATEGORIES, ITEM_FLING_EFFECTS, ITEM_POCKETS, LANGUAGES, MOVE_AILMENTS, MOVE_BATTLE_STYLES, MOVE_CATEGORIES, MOVE_DAMAGE_CLASSES, MOVE_LEARN_METHODS, MOVE_TARGETS, NATURES, PAL_PARK_AREAS, POKEATHLON_STATS, POKEDEXES, POKEMON_COLORS, POKEMON_HABITATS, POKEMON_SHAPES, REGIONS, STATS, TYPES, TypeName, VERSIONS, VERSION_GROUPS };
|
|
4143
4422
|
}
|
|
4144
4423
|
//#endregion
|
|
4145
4424
|
//#region src/clients/base.d.ts
|
|
@@ -4510,7 +4789,7 @@ declare class BaseClient extends ClientFacade {
|
|
|
4510
4789
|
*
|
|
4511
4790
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#berries-section)
|
|
4512
4791
|
*/
|
|
4513
|
-
declare class BerryClient extends BaseClient {
|
|
4792
|
+
export declare class BerryClient extends BaseClient {
|
|
4514
4793
|
/** Get a Berry by its name. */
|
|
4515
4794
|
getBerryByName(name: string): Promise<Berry>;
|
|
4516
4795
|
/** Get a Berry by its ID. */
|
|
@@ -4543,7 +4822,7 @@ declare class BerryClient extends BaseClient {
|
|
|
4543
4822
|
*
|
|
4544
4823
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#contests-section)
|
|
4545
4824
|
*/
|
|
4546
|
-
declare class ContestClient extends BaseClient {
|
|
4825
|
+
export declare class ContestClient extends BaseClient {
|
|
4547
4826
|
/** Get a Contest Type by its name. */
|
|
4548
4827
|
getContestTypeByName(name: string): Promise<ContestType>;
|
|
4549
4828
|
/** Get a Contest Type by its ID. */
|
|
@@ -4570,7 +4849,7 @@ declare class ContestClient extends BaseClient {
|
|
|
4570
4849
|
*
|
|
4571
4850
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#currencies-section)
|
|
4572
4851
|
*/
|
|
4573
|
-
declare class CurrencyClient extends BaseClient {
|
|
4852
|
+
export declare class CurrencyClient extends BaseClient {
|
|
4574
4853
|
/** Get a Currency by its name. */
|
|
4575
4854
|
getCurrencyByName(name: string): Promise<Currency>;
|
|
4576
4855
|
/** Get a Currency by its ID. */
|
|
@@ -4591,7 +4870,7 @@ declare class CurrencyClient extends BaseClient {
|
|
|
4591
4870
|
*
|
|
4592
4871
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#encounters-section)
|
|
4593
4872
|
*/
|
|
4594
|
-
declare class EncounterClient extends BaseClient {
|
|
4873
|
+
export declare class EncounterClient extends BaseClient {
|
|
4595
4874
|
/** Get an Encounter Method by its name. */
|
|
4596
4875
|
getEncounterMethodByName(name: string): Promise<EncounterMethod>;
|
|
4597
4876
|
/** Get an Encounter Method by its ID. */
|
|
@@ -4620,20 +4899,27 @@ declare class EncounterClient extends BaseClient {
|
|
|
4620
4899
|
*
|
|
4621
4900
|
* - [Evolution Chains](https://pokeapi.co/docs/v2#evolution-chains)
|
|
4622
4901
|
* - [Evolution Triggers](https://pokeapi.co/docs/v2#evolution-triggers)
|
|
4902
|
+
* - [Evolution Variables](https://pokeapi.co/docs/v2#evolution-variables)
|
|
4623
4903
|
*
|
|
4624
4904
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#evolution-section)
|
|
4625
4905
|
*/
|
|
4626
|
-
declare class EvolutionClient extends BaseClient {
|
|
4906
|
+
export declare class EvolutionClient extends BaseClient {
|
|
4627
4907
|
/** Get an Evolution Chain by its ID. */
|
|
4628
4908
|
getEvolutionChainById(id: number): Promise<EvolutionChain>;
|
|
4629
4909
|
/** Get an Evolution Trigger by its ID. */
|
|
4630
4910
|
getEvolutionTriggerById(id: number): Promise<EvolutionTrigger>;
|
|
4631
4911
|
/** Get an Evolution Trigger by its name. */
|
|
4632
4912
|
getEvolutionTriggerByName(name: string): Promise<EvolutionTrigger>;
|
|
4913
|
+
/** Get an Evolution Variable by its ID. */
|
|
4914
|
+
getEvolutionVariableById(id: number): Promise<EvolutionVariable>;
|
|
4915
|
+
/** Get an Evolution Variable by its name. */
|
|
4916
|
+
getEvolutionVariableByName(name: string): Promise<EvolutionVariable>;
|
|
4633
4917
|
/** List Evolution Chains. Page defaults to 20 entries from offset 0. */
|
|
4634
4918
|
listEvolutionChains(offset?: number, limit?: number): Promise<APIResourceList<EvolutionChain>>;
|
|
4635
4919
|
/** List Evolution Triggers. Page defaults to 20 entries from offset 0. */
|
|
4636
4920
|
listEvolutionTriggers(offset?: number, limit?: number): Promise<NamedAPIResourceList<EvolutionTrigger>>;
|
|
4921
|
+
/** List Evolution Variables. Page defaults to 20 entries from offset 0. */
|
|
4922
|
+
listEvolutionVariables(offset?: number, limit?: number): Promise<NamedAPIResourceList<EvolutionVariable>>;
|
|
4637
4923
|
}
|
|
4638
4924
|
//#endregion
|
|
4639
4925
|
//#region src/clients/game.client.d.ts
|
|
@@ -4649,7 +4935,7 @@ declare class EvolutionClient extends BaseClient {
|
|
|
4649
4935
|
*
|
|
4650
4936
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#games-section)
|
|
4651
4937
|
*/
|
|
4652
|
-
declare class GameClient extends BaseClient {
|
|
4938
|
+
export declare class GameClient extends BaseClient {
|
|
4653
4939
|
/** Get a Generation by its name. */
|
|
4654
4940
|
getGenerationByName(name: string): Promise<Generation>;
|
|
4655
4941
|
/** Get a Generation by its ID. */
|
|
@@ -4690,7 +4976,7 @@ declare class GameClient extends BaseClient {
|
|
|
4690
4976
|
*
|
|
4691
4977
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#items-section)
|
|
4692
4978
|
*/
|
|
4693
|
-
declare class ItemClient extends BaseClient {
|
|
4979
|
+
export declare class ItemClient extends BaseClient {
|
|
4694
4980
|
/** Get an Item by its name. */
|
|
4695
4981
|
getItemByName(name: string): Promise<Item>;
|
|
4696
4982
|
/** Get an Item by its ID. */
|
|
@@ -4736,7 +5022,7 @@ declare class ItemClient extends BaseClient {
|
|
|
4736
5022
|
*
|
|
4737
5023
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#locations-section)
|
|
4738
5024
|
*/
|
|
4739
|
-
declare class LocationClient extends BaseClient {
|
|
5025
|
+
export declare class LocationClient extends BaseClient {
|
|
4740
5026
|
/** Get a Location by its name. */
|
|
4741
5027
|
getLocationByName(name: string): Promise<Location>;
|
|
4742
5028
|
/** Get a Location by its ID. */
|
|
@@ -4773,7 +5059,7 @@ declare class LocationClient extends BaseClient {
|
|
|
4773
5059
|
*
|
|
4774
5060
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#machines-section)
|
|
4775
5061
|
*/
|
|
4776
|
-
declare class MachineClient extends BaseClient {
|
|
5062
|
+
export declare class MachineClient extends BaseClient {
|
|
4777
5063
|
/** Get a Machine by its ID. */
|
|
4778
5064
|
getMachineById(id: number): Promise<Machine>;
|
|
4779
5065
|
/** List Machines. Page defaults to 20 entries from offset 0. */
|
|
@@ -4796,7 +5082,7 @@ declare class MachineClient extends BaseClient {
|
|
|
4796
5082
|
*
|
|
4797
5083
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#moves-section)
|
|
4798
5084
|
*/
|
|
4799
|
-
declare class MoveClient extends BaseClient {
|
|
5085
|
+
export declare class MoveClient extends BaseClient {
|
|
4800
5086
|
/** Get a Move by its name. */
|
|
4801
5087
|
getMoveByName(name: string): Promise<Move>;
|
|
4802
5088
|
/** Get a Move by its ID. */
|
|
@@ -4866,7 +5152,7 @@ declare class MoveClient extends BaseClient {
|
|
|
4866
5152
|
*
|
|
4867
5153
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#pokemon-section)
|
|
4868
5154
|
*/
|
|
4869
|
-
declare class PokemonClient extends BaseClient {
|
|
5155
|
+
export declare class PokemonClient extends BaseClient {
|
|
4870
5156
|
/** Get an Ability by its name. */
|
|
4871
5157
|
getAbilityByName(name: string): Promise<Ability>;
|
|
4872
5158
|
/** Get an Ability by its ID. */
|
|
@@ -4973,7 +5259,7 @@ declare class PokemonClient extends BaseClient {
|
|
|
4973
5259
|
*
|
|
4974
5260
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#utility-section)
|
|
4975
5261
|
*/
|
|
4976
|
-
declare class UtilityClient extends BaseClient {
|
|
5262
|
+
export declare class UtilityClient extends BaseClient {
|
|
4977
5263
|
/** Get a Language by its ID. */
|
|
4978
5264
|
getLanguageById(id: number): Promise<Language>;
|
|
4979
5265
|
/** Get a Language by its name. */
|
|
@@ -5028,7 +5314,7 @@ declare class UtilityClient extends BaseClient {
|
|
|
5028
5314
|
*
|
|
5029
5315
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2)
|
|
5030
5316
|
*/
|
|
5031
|
-
declare class MainClient extends ClientFacade {
|
|
5317
|
+
export declare class MainClient extends ClientFacade {
|
|
5032
5318
|
readonly berry: BerryClient;
|
|
5033
5319
|
readonly contest: ContestClient;
|
|
5034
5320
|
readonly currency: CurrencyClient;
|
|
@@ -5050,7 +5336,7 @@ declare class MainClient extends ClientFacade {
|
|
|
5050
5336
|
* Thrown when the PokéAPI answers with a non-2xx status. Transport failures are
|
|
5051
5337
|
* not wrapped — the native error propagates untouched.
|
|
5052
5338
|
*/
|
|
5053
|
-
declare class PokenodeError extends Error {
|
|
5339
|
+
export declare class PokenodeError extends Error {
|
|
5054
5340
|
readonly name = "PokenodeError";
|
|
5055
5341
|
readonly kind = "pokenode:http";
|
|
5056
5342
|
/** HTTP status code of the response. */
|
|
@@ -5137,7 +5423,7 @@ interface FlattenOptions {
|
|
|
5137
5423
|
* still walked — every edge is filtered on its own terms, and `depth` stays the
|
|
5138
5424
|
* position in the chain rather than in the result.
|
|
5139
5425
|
*/
|
|
5140
|
-
declare const flattenChain: (chain: EvolutionChain, options?: FlattenOptions) => EvolutionStep[];
|
|
5426
|
+
export declare const flattenChain: (chain: EvolutionChain, options?: FlattenOptions) => EvolutionStep[];
|
|
5141
5427
|
/**
|
|
5142
5428
|
* The steps leading from the root of a chain to `species`.
|
|
5143
5429
|
*
|
|
@@ -5153,7 +5439,7 @@ declare const flattenChain: (chain: EvolutionChain, options?: FlattenOptions) =>
|
|
|
5153
5439
|
* `undefined` when the chain does not contain it. The two empty answers are
|
|
5154
5440
|
* different questions, so they are different values.
|
|
5155
5441
|
*/
|
|
5156
|
-
declare const pathTo: (chain: EvolutionChain, species: string | NamedAPIResource<PokemonSpecies>) => EvolutionStep[] | undefined;
|
|
5442
|
+
export declare const pathTo: (chain: EvolutionChain, species: string | NamedAPIResource<PokemonSpecies>) => EvolutionStep[] | undefined;
|
|
5157
5443
|
/**
|
|
5158
5444
|
* ## Evolution Requirement
|
|
5159
5445
|
* One condition an evolution is subject to, as a discriminated union — what an
|
|
@@ -5226,11 +5512,17 @@ type EvolutionRequirement = {
|
|
|
5226
5512
|
kind: "trade-species";
|
|
5227
5513
|
species: NamedAPIResource<PokemonSpecies>;
|
|
5228
5514
|
} | {
|
|
5229
|
-
kind: "
|
|
5515
|
+
kind: "required-form";
|
|
5230
5516
|
form: NamedAPIResource<PokemonForm>;
|
|
5231
5517
|
} | {
|
|
5232
5518
|
kind: "evolved-form";
|
|
5233
5519
|
form: NamedAPIResource<PokemonForm>;
|
|
5520
|
+
} | {
|
|
5521
|
+
kind: "allowed-natures";
|
|
5522
|
+
natures: NamedAPIResource<Nature>[];
|
|
5523
|
+
} | {
|
|
5524
|
+
kind: "condition";
|
|
5525
|
+
condition: EvolutionConditionExpression;
|
|
5234
5526
|
} | {
|
|
5235
5527
|
kind: "needs-overworld-rain";
|
|
5236
5528
|
} | {
|
|
@@ -5250,7 +5542,7 @@ type EvolutionRequirement = {
|
|
|
5250
5542
|
* // { kind: 'trigger', trigger: { name: 'level-up', … } },
|
|
5251
5543
|
* // { kind: 'min-happiness', happiness: 160 },
|
|
5252
5544
|
* // { kind: 'time-of-day', time: 'night' },
|
|
5253
|
-
* // { kind: '
|
|
5545
|
+
* // { kind: 'required-form', form: { name: 'eevee', … } },
|
|
5254
5546
|
* // ]
|
|
5255
5547
|
* ```
|
|
5256
5548
|
*
|
|
@@ -5260,7 +5552,7 @@ type EvolutionRequirement = {
|
|
|
5260
5552
|
* for truthiness: `relative_physical_stats` is `0` when Attack has to equal
|
|
5261
5553
|
* Defense, and `time_of_day` is `''`.
|
|
5262
5554
|
*/
|
|
5263
|
-
declare const requirementsOf: (detail: EvolutionDetail) => EvolutionRequirement[];
|
|
5555
|
+
export declare const requirementsOf: (detail: EvolutionDetail) => EvolutionRequirement[];
|
|
5264
5556
|
/**
|
|
5265
5557
|
* ## Requirement Phrases
|
|
5266
5558
|
* One renderer per {@link EvolutionRequirement} kind. Exhaustive, so a kind added
|
|
@@ -5273,7 +5565,7 @@ type RequirementPhrases = { [K in EvolutionRequirement["kind"]]: (requirement: E
|
|
|
5273
5565
|
* ## Resource Namer
|
|
5274
5566
|
* How a resource a requirement names is written out.
|
|
5275
5567
|
*
|
|
5276
|
-
* @param resource The item, move, species, location, region, form or type the
|
|
5568
|
+
* @param resource The item, move, species, location, region, form, nature or type the
|
|
5277
5569
|
* requirement carries.
|
|
5278
5570
|
* @returns What to print for it.
|
|
5279
5571
|
*/
|
|
@@ -5294,7 +5586,7 @@ type ResourceNamer = (resource: NamedAPIResource<unknown>) => string;
|
|
|
5294
5586
|
* @param namer How to write a resource out. Defaults to the API's own name, with
|
|
5295
5587
|
* the hyphens turned to spaces.
|
|
5296
5588
|
*/
|
|
5297
|
-
declare const requirementPhrases: (namer?: ResourceNamer) => RequirementPhrases;
|
|
5589
|
+
export declare const requirementPhrases: (namer?: ResourceNamer) => RequirementPhrases;
|
|
5298
5590
|
/**
|
|
5299
5591
|
* ## Requirement Phrases
|
|
5300
5592
|
* The English {@link formatRequirements} renders with, naming resources the way
|
|
@@ -5315,7 +5607,7 @@ declare const requirementPhrases: (namer?: ResourceNamer) => RequirementPhrases;
|
|
|
5315
5607
|
* });
|
|
5316
5608
|
* ```
|
|
5317
5609
|
*/
|
|
5318
|
-
declare const REQUIREMENT_PHRASES: RequirementPhrases;
|
|
5610
|
+
export declare const REQUIREMENT_PHRASES: RequirementPhrases;
|
|
5319
5611
|
/**
|
|
5320
5612
|
* ## Format Options
|
|
5321
5613
|
* How {@link formatRequirements} words what it renders.
|
|
@@ -5377,8 +5669,12 @@ interface FormatOptions {
|
|
|
5377
5669
|
* use water stone" says it twice. That holds under `phrases` too: the trigger is
|
|
5378
5670
|
* dropped before anything is rendered, so an overridden `item` is still what says
|
|
5379
5671
|
* the item is used.
|
|
5672
|
+
*
|
|
5673
|
+
* A phrase that renders as `""` is left out of the sentence. The default table
|
|
5674
|
+
* does this for a `condition` with no `percentage_chance` — Milcery's spin, which
|
|
5675
|
+
* the trigger already names — and an override can do it to hide any kind.
|
|
5380
5676
|
*/
|
|
5381
|
-
declare const formatRequirements: (requirements: readonly EvolutionRequirement[], options?: FormatOptions) => string;
|
|
5677
|
+
export declare const formatRequirements: (requirements: readonly EvolutionRequirement[], options?: FormatOptions) => string;
|
|
5382
5678
|
//#endregion
|
|
5383
5679
|
//#region src/utils/localize.d.ts
|
|
5384
5680
|
/**
|
|
@@ -5426,7 +5722,7 @@ interface LocalizeOptions {
|
|
|
5426
5722
|
* @returns The entry, the one in `fallback` when that language is absent, or
|
|
5427
5723
|
* `undefined` when neither is there.
|
|
5428
5724
|
*/
|
|
5429
|
-
declare const localize: <T extends Localized>(entries: readonly T[], language?: string | LocalizeOptions) => T | undefined;
|
|
5725
|
+
export declare const localize: <T extends Localized>(entries: readonly T[], language?: string | LocalizeOptions) => T | undefined;
|
|
5430
5726
|
/**
|
|
5431
5727
|
* Every entry written in `language`, in the order the API lists them.
|
|
5432
5728
|
*
|
|
@@ -5446,7 +5742,7 @@ declare const localize: <T extends Localized>(entries: readonly T[], language?:
|
|
|
5446
5742
|
* @returns The entries, those in `fallback` when the language is absent, or `[]`
|
|
5447
5743
|
* when neither is there.
|
|
5448
5744
|
*/
|
|
5449
|
-
declare const localizeAll: <T extends Localized>(entries: readonly T[], language?: string | LocalizeOptions) => T[];
|
|
5745
|
+
export declare const localizeAll: <T extends Localized>(entries: readonly T[], language?: string | LocalizeOptions) => T[];
|
|
5450
5746
|
//#endregion
|
|
5451
5747
|
//#region src/utils/resource-id.d.ts
|
|
5452
5748
|
/**
|
|
@@ -5469,7 +5765,7 @@ declare const localizeAll: <T extends Localized>(entries: readonly T[], language
|
|
|
5469
5765
|
* @returns The id.
|
|
5470
5766
|
* @throws {TypeError} If the URL does not end in an id.
|
|
5471
5767
|
*/
|
|
5472
|
-
declare const resourceId: (resource: ResourceLink<unknown>) => number;
|
|
5768
|
+
export declare const resourceId: (resource: ResourceLink<unknown>) => number;
|
|
5473
5769
|
//#endregion
|
|
5474
5770
|
//#region src/utils/sprites.d.ts
|
|
5475
5771
|
/**
|
|
@@ -5529,7 +5825,7 @@ type PokemonSpriteOptions = {
|
|
|
5529
5825
|
* @param options Which sprite set and which facing to build for.
|
|
5530
5826
|
* @returns The URL of the sprite.
|
|
5531
5827
|
*/
|
|
5532
|
-
declare const getPokemonSpriteUrl: (id: number, options?: PokemonSpriteOptions) => string;
|
|
5828
|
+
export declare const getPokemonSpriteUrl: (id: number, options?: PokemonSpriteOptions) => string;
|
|
5533
5829
|
//#endregion
|
|
5534
5830
|
//#region src/utils/type-chart.d.ts
|
|
5535
5831
|
/**
|
|
@@ -5559,7 +5855,7 @@ interface GenerationScope {
|
|
|
5559
5855
|
* `generation`. Nothing is guessed: Steel in generation I has no chart, and a
|
|
5560
5856
|
* neutral one would be a confidently wrong answer rather than a missing one.
|
|
5561
5857
|
*/
|
|
5562
|
-
declare const relationsFor: (type: Type, generation?: GenerationName) => TypeRelations | undefined;
|
|
5858
|
+
export declare const relationsFor: (type: Type, generation?: GenerationName) => TypeRelations | undefined;
|
|
5563
5859
|
/**
|
|
5564
5860
|
* The damage multiplier `attacking` deals to a defender that has `defending`
|
|
5565
5861
|
* types — `0`, `0.25`, `0.5`, `1`, `2` or `4`.
|
|
@@ -5580,8 +5876,8 @@ declare const relationsFor: (type: Type, generation?: GenerationName) => TypeRel
|
|
|
5580
5876
|
* against. `Pokemon.past_types` is where a historically correct defender comes
|
|
5581
5877
|
* from.
|
|
5582
5878
|
*/
|
|
5583
|
-
declare function effectiveness(attacking: Type, defending: readonly NamedAPIResource<Type>[]): number;
|
|
5584
|
-
declare function effectiveness(attacking: Type, defending: readonly NamedAPIResource<Type>[], options: {
|
|
5879
|
+
export declare function effectiveness(attacking: Type, defending: readonly NamedAPIResource<Type>[]): number;
|
|
5880
|
+
export declare function effectiveness(attacking: Type, defending: readonly NamedAPIResource<Type>[], options: {
|
|
5585
5881
|
generation: GenerationName;
|
|
5586
5882
|
}): number | undefined;
|
|
5587
5883
|
/**
|
|
@@ -5617,7 +5913,7 @@ declare function effectiveness(attacking: Type, defending: readonly NamedAPIReso
|
|
|
5617
5913
|
* `localize(type.names)` is what a table headed in French needs, and it is a
|
|
5618
5914
|
* property of the resource rather than of this table.
|
|
5619
5915
|
*/
|
|
5620
|
-
declare const defensiveProfile: (types: readonly Type[], defending: readonly NamedAPIResource<Type>[], options?: GenerationScope) => Partial<Record<TypeName, number>>;
|
|
5916
|
+
export declare const defensiveProfile: (types: readonly Type[], defending: readonly NamedAPIResource<Type>[], options?: GenerationScope) => Partial<Record<TypeName, number>>;
|
|
5621
5917
|
/**
|
|
5622
5918
|
* The same table, read off the defending types themselves — what every type does
|
|
5623
5919
|
* to a Pokémon that has `defending` types.
|
|
@@ -5644,7 +5940,7 @@ declare const defensiveProfile: (types: readonly Type[], defending: readonly Nam
|
|
|
5644
5940
|
* Keyed by the API's name for a type, as {@link defensiveProfile} is;
|
|
5645
5941
|
* `localize(type.names)` is the displayed one.
|
|
5646
5942
|
*/
|
|
5647
|
-
declare const defensiveProfileFrom: (defending: readonly Type[]) => Record<TypeName, number>;
|
|
5943
|
+
export declare const defensiveProfileFrom: (defending: readonly Type[]) => Record<TypeName, number>;
|
|
5648
5944
|
//#endregion
|
|
5649
|
-
export {
|
|
5945
|
+
export { index_d_exports as CONSTANTS, type CacheStore, type ClientOptions, type ClientStats, type EtagEntry, type EtagStoreOptions, type EvolutionRequirement, type EvolutionStep, type FetchLike, type FlattenOptions, type FormatOptions, type GenerationScope, type ListFn, type ListMethodName, type ListPage, type LocalizeOptions, type Localized, type LogCancelledPayload, type LogErrorPayload, type LogRequestPayload, type LogResponsePayload, type LogRetryPayload, type Logger, type MemoryCacheOptions, type PaginateOptions, type PokemonSpriteOptions, type RequestScope, type RequirementPhrases, type ResolveOptions, type ResourceLink, type ResourceNamer, type RetryOptions, type SpriteVariant, type WebStorageCacheOptions, type WebStorageLike };
|
|
5650
5946
|
//# sourceMappingURL=index.d.cts.map
|