pokenode-ts 1.20.0 → 2.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/README.md +61 -49
- package/lib/index.cjs +2 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +4378 -0
- package/lib/index.d.ts +3655 -3318
- package/lib/index.js +2 -14
- package/lib/index.js.map +1 -0
- package/lib/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/package.json +45 -72
- package/lib/index.mjs +0 -14
package/lib/index.d.cts
ADDED
|
@@ -0,0 +1,4378 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/models/Common/resource.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The name and the URL of the referenced resource.
|
|
5
|
+
*/
|
|
6
|
+
interface NamedAPIResource {
|
|
7
|
+
/** The name of the referenced resource. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** The URL of the referenced resource. */
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Calling any API endpoint without a resource ID or name will return a paginated list of available resources for that API.
|
|
14
|
+
* By default, a list "page" will contain up to 20 resources. If you would like to change this just add a 'limit' query parameter
|
|
15
|
+
* to the GET request, e.g. ?=60. You can use 'offset' to move to the next page, e.g. ?limit=60&offset=60.
|
|
16
|
+
*/
|
|
17
|
+
interface NamedAPIResourceList {
|
|
18
|
+
/** The total number of resources available from this API. */
|
|
19
|
+
count: number;
|
|
20
|
+
/** The URL for the next page in the list. */
|
|
21
|
+
next: string | null;
|
|
22
|
+
/** The URL for the previous page in the list. */
|
|
23
|
+
previous: string | null;
|
|
24
|
+
/** A list of named API resources. */
|
|
25
|
+
results: NamedAPIResource[];
|
|
26
|
+
}
|
|
27
|
+
/** A URL for another resource in the API. */
|
|
28
|
+
interface APIResource {
|
|
29
|
+
/** The URL of the referenced resource. */
|
|
30
|
+
url: string;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/models/Common/description.d.ts
|
|
34
|
+
/**
|
|
35
|
+
* The localized description for an API resource in a specific language.
|
|
36
|
+
*/
|
|
37
|
+
interface Description {
|
|
38
|
+
/** The localized description for an API resource in a specific language. */
|
|
39
|
+
description: string;
|
|
40
|
+
/** The language this name is in. */
|
|
41
|
+
language: NamedAPIResource;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/models/Common/effect.d.ts
|
|
45
|
+
/**
|
|
46
|
+
* The localized effect text for an API resource in a specific language.
|
|
47
|
+
*/
|
|
48
|
+
interface Effect {
|
|
49
|
+
/** The localized effect text for an API resource in a specific language. */
|
|
50
|
+
effect: string;
|
|
51
|
+
/** The language this effect is in. */
|
|
52
|
+
language: NamedAPIResource;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/models/Common/encounter.d.ts
|
|
56
|
+
/** Information about a Pokémon encounter. */
|
|
57
|
+
interface Encounter {
|
|
58
|
+
/** The lowest level the Pokémon could be encountered at. */
|
|
59
|
+
min_level: number;
|
|
60
|
+
/** The highest level the Pokémon could be encountered at. */
|
|
61
|
+
max_level: number;
|
|
62
|
+
/** A list of condition values that must be in effect for this encounter to occur. */
|
|
63
|
+
condition_values: NamedAPIResource[];
|
|
64
|
+
/** Percent chance that this encounter will occur. */
|
|
65
|
+
chance: number;
|
|
66
|
+
/** The method by which this encounter happens. */
|
|
67
|
+
method: NamedAPIResource;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/models/Common/flavor-text.d.ts
|
|
71
|
+
/**
|
|
72
|
+
* The localized flavor text for an API resource in a specific language.
|
|
73
|
+
*/
|
|
74
|
+
interface FlavorText {
|
|
75
|
+
/** The localized flavor text for an API resource in a specific language. */
|
|
76
|
+
flavor_text: string;
|
|
77
|
+
/** The language this name is in. */
|
|
78
|
+
language: NamedAPIResource;
|
|
79
|
+
/** The game version this flavor text appears in. */
|
|
80
|
+
version: NamedAPIResource;
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/models/Common/generation.d.ts
|
|
84
|
+
/**
|
|
85
|
+
* The generation relevant to this game index.
|
|
86
|
+
*/
|
|
87
|
+
interface GenerationGameIndex {
|
|
88
|
+
/** The internal id of an API resource within game data. */
|
|
89
|
+
game_index: number;
|
|
90
|
+
/** The generation relevant to this game index. */
|
|
91
|
+
generation: NamedAPIResource;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/models/Common/name.d.ts
|
|
95
|
+
/**
|
|
96
|
+
* The localized name for an API resource in a specific language.
|
|
97
|
+
*/
|
|
98
|
+
interface Name {
|
|
99
|
+
/** The localized name for an API resource in a specific language. */
|
|
100
|
+
name: string;
|
|
101
|
+
/** The language this name is in. */
|
|
102
|
+
language: NamedAPIResource;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/models/Common/language.d.ts
|
|
106
|
+
/**
|
|
107
|
+
* Languages for translations of API resource information.
|
|
108
|
+
*/
|
|
109
|
+
interface Language {
|
|
110
|
+
/** The identifier for this resource. */
|
|
111
|
+
id: number;
|
|
112
|
+
/** The name for this resource. */
|
|
113
|
+
name: string;
|
|
114
|
+
/** Whether or not the games are published in this language. */
|
|
115
|
+
official: boolean;
|
|
116
|
+
/** The two-letter code of the country where this language is spoken. Note that it is not unique. */
|
|
117
|
+
iso639: string;
|
|
118
|
+
/** The two-letter code of the language. Note that it is not unique. */
|
|
119
|
+
iso3166: string;
|
|
120
|
+
/** The name of this resource listed in different languages. */
|
|
121
|
+
names: Name[];
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/models/Common/machine.d.ts
|
|
125
|
+
/**
|
|
126
|
+
* The machine that teaches a move from an item.
|
|
127
|
+
*/
|
|
128
|
+
interface MachineVersionDetail {
|
|
129
|
+
/** The machine that teaches a move from an item. */
|
|
130
|
+
machine: APIResource;
|
|
131
|
+
/** The version group of this specific machine. */
|
|
132
|
+
version_group: NamedAPIResource;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/models/Common/verbose.d.ts
|
|
136
|
+
/**
|
|
137
|
+
* The localized effect for an API resource.
|
|
138
|
+
*/
|
|
139
|
+
interface VerboseEffect {
|
|
140
|
+
/** The localized effect text for an API resource in a specific language. */
|
|
141
|
+
effect: string;
|
|
142
|
+
/** The localized effect text in brief. */
|
|
143
|
+
short_effect: string;
|
|
144
|
+
/** The language this effect is in. */
|
|
145
|
+
language: NamedAPIResource;
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/models/Common/version.d.ts
|
|
149
|
+
/**
|
|
150
|
+
* Encounters and their specific details.
|
|
151
|
+
*/
|
|
152
|
+
interface VersionEncounterDetail {
|
|
153
|
+
/** The game version this encounter happens in. */
|
|
154
|
+
version: NamedAPIResource;
|
|
155
|
+
/** The total percentage of all encounter potential. */
|
|
156
|
+
max_chance: number;
|
|
157
|
+
/** A list of encounters and their specifics. */
|
|
158
|
+
encounter_details: Encounter[];
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* The internal id and version of an API resource.
|
|
162
|
+
*/
|
|
163
|
+
interface VersionGameIndex {
|
|
164
|
+
/** The internal id of an API resource within game data. */
|
|
165
|
+
game_index: number;
|
|
166
|
+
/** The version relevant to this game index. */
|
|
167
|
+
version: NamedAPIResource;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* The flavor text of an API resource.
|
|
171
|
+
*/
|
|
172
|
+
interface VersionGroupFlavorText {
|
|
173
|
+
/** The localized name for an API resource in a specific language. */
|
|
174
|
+
text: string;
|
|
175
|
+
/** The language this name is in. */
|
|
176
|
+
language: NamedAPIResource;
|
|
177
|
+
/** The version group which uses this flavor text. */
|
|
178
|
+
version_group: NamedAPIResource;
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/models/Berry/berry.d.ts
|
|
182
|
+
/**
|
|
183
|
+
* ## Berry
|
|
184
|
+
* Berries are small fruits that can provide HP and status condition restoration,
|
|
185
|
+
* stat enhancement, and even damage negation when eaten by Pokémon.
|
|
186
|
+
*
|
|
187
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Berry) for greater detail.
|
|
188
|
+
*/
|
|
189
|
+
type Berry = {
|
|
190
|
+
/** The identifier for this resource. */
|
|
191
|
+
id: number;
|
|
192
|
+
/** The name for this resource. */
|
|
193
|
+
name: string;
|
|
194
|
+
/** Time it takes the tree to grow one stage, in hours. Berry trees go through four of these growth stages before they can be picked. */
|
|
195
|
+
growth_time: number;
|
|
196
|
+
/** The maximum number of these berries that can grow on one tree in Generation IV. */
|
|
197
|
+
max_harvest: number;
|
|
198
|
+
/** The power of the move "Natural Gift" when used with this Berry. */
|
|
199
|
+
natural_gift_power: number;
|
|
200
|
+
/** The size of this Berry, in millimeters. */
|
|
201
|
+
size: number;
|
|
202
|
+
/** The smoothness of this Berry, used in making Pokéblocks or Poffins. */
|
|
203
|
+
smoothness: number;
|
|
204
|
+
/** The speed at which this Berry dries out the soil as it grows. A higher rate means the soil dries more quickly. */
|
|
205
|
+
soil_dryness: number;
|
|
206
|
+
/** The firmness of this berry, used in making Pokéblocks or Poffins. */
|
|
207
|
+
firmness: NamedAPIResource;
|
|
208
|
+
/** A list of references to each flavor a berry can have and the potency of each of those flavors in regard to this berry. */
|
|
209
|
+
flavors: BerryFlavorMap[];
|
|
210
|
+
/** Berries are actually items. This is a reference to the item specific data for this berry. */
|
|
211
|
+
item: NamedAPIResource;
|
|
212
|
+
/** The type inherited by "Natural Gift" when used with this Berry. */
|
|
213
|
+
natural_gift_type: NamedAPIResource;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Reference to the flavor a berry can have and the potency of each of those flavors in regard to this berry.
|
|
217
|
+
*/
|
|
218
|
+
type BerryFlavorMap = {
|
|
219
|
+
/** How powerful the referenced flavor is for this berry. */
|
|
220
|
+
potency: number;
|
|
221
|
+
/** The referenced berry flavor. */
|
|
222
|
+
flavor: NamedAPIResource;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* ## Berry Flavor
|
|
226
|
+
* Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on its nature.
|
|
227
|
+
*
|
|
228
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Flavor) for greater detail.
|
|
229
|
+
*/
|
|
230
|
+
type BerryFlavor = {
|
|
231
|
+
/** The identifier for this resource. */
|
|
232
|
+
id: number;
|
|
233
|
+
/** The name for this resource. */
|
|
234
|
+
name: "spicy" | "dry" | "sweet" | "bitter" | "sour";
|
|
235
|
+
/** A list of the berries with this flavor. */
|
|
236
|
+
berries: FlavorBerryMap[];
|
|
237
|
+
/** The contest type that correlates with this berry flavor. */
|
|
238
|
+
contest_type: NamedAPIResource;
|
|
239
|
+
/** The name of this resource listed in different languages. */
|
|
240
|
+
names: Name[];
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Berry with the given flavor.
|
|
244
|
+
*/
|
|
245
|
+
type FlavorBerryMap = {
|
|
246
|
+
/** How powerful the referenced flavor is for this berry. */
|
|
247
|
+
potency: number;
|
|
248
|
+
/** The berry with the referenced flavor. */
|
|
249
|
+
berry: NamedAPIResource;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* ## Berry Firmness
|
|
253
|
+
* Berries can be soft, very soft, hard, super hard or very hard.
|
|
254
|
+
*
|
|
255
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmness) for greater detail.
|
|
256
|
+
*/
|
|
257
|
+
type BerryFirmness = {
|
|
258
|
+
/** The identifier for this resource. */
|
|
259
|
+
id: number;
|
|
260
|
+
/** The name for this resource. */
|
|
261
|
+
name: "very-soft" | "soft" | "hard" | "very-hard" | "super-hard";
|
|
262
|
+
/** A list of the berries with this firmness. */
|
|
263
|
+
berries: NamedAPIResource[];
|
|
264
|
+
/** The name of this resource listed in different languages. */
|
|
265
|
+
names: Name[];
|
|
266
|
+
};
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/models/Contest/contest.d.ts
|
|
269
|
+
/**
|
|
270
|
+
* ## Contest Type
|
|
271
|
+
* Contest types are categories judges used to weigh a Pokémon's condition in Pokémon contests.
|
|
272
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Contest_condition) for greater detail.
|
|
273
|
+
*/
|
|
274
|
+
interface ContestType {
|
|
275
|
+
/** The identifier for this resource. */
|
|
276
|
+
id: number;
|
|
277
|
+
/** The name for this resource. */
|
|
278
|
+
name: "cool" | "beauty" | "cute" | "smart" | "tough";
|
|
279
|
+
/** The berry flavor that correlates with this contest type. */
|
|
280
|
+
berry_flavor: NamedAPIResource;
|
|
281
|
+
/** The name of this contest type listed in different languages. */
|
|
282
|
+
names: ContestName[];
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* The name of the given contest type.
|
|
286
|
+
*/
|
|
287
|
+
interface ContestName {
|
|
288
|
+
/** The name for this contest. */
|
|
289
|
+
name: string;
|
|
290
|
+
/** The color associated with this contest's name. */
|
|
291
|
+
color: string;
|
|
292
|
+
/** The language that this name is in. */
|
|
293
|
+
language: NamedAPIResource;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* ## Contest Effect
|
|
297
|
+
* Contest effects refer to the effects of moves when used in contests.
|
|
298
|
+
*/
|
|
299
|
+
interface ContestEffect {
|
|
300
|
+
/** The identifier for this resource. */
|
|
301
|
+
id: number;
|
|
302
|
+
/** The base number of hearts the user of this move gets. */
|
|
303
|
+
appeal: number;
|
|
304
|
+
/** The base number of hearts the user's opponent loses. */
|
|
305
|
+
jam: number;
|
|
306
|
+
/** The result of this contest effect listed in different languages. */
|
|
307
|
+
effect_entries: Effect[];
|
|
308
|
+
/** The flavor text of this contest effect listed in different languages. */
|
|
309
|
+
flavor_text_entries: FlavorText[];
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* ## Super Contest Effect
|
|
313
|
+
* Super contest effects refer to the effects of moves when used in super contests.
|
|
314
|
+
* A Pokémon Super Contest is an expanded format of the [Pokémon Contests](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_Contest)
|
|
315
|
+
* for the Generation IV games,
|
|
316
|
+
* specifically in [Diamond, Pearl](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_Diamond_and_Pearl_Versions),
|
|
317
|
+
* and [Platinum](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_Platinum_Version).
|
|
318
|
+
* In it, Pokémon are rated on their appearance and performance, rather than strength.
|
|
319
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_Super_Contest).
|
|
320
|
+
*/
|
|
321
|
+
interface SuperContestEffect {
|
|
322
|
+
/** The identifier for this resource. */
|
|
323
|
+
id: number;
|
|
324
|
+
/** The level of appeal this super contest effect has. */
|
|
325
|
+
appeal: number;
|
|
326
|
+
/** The flavor text of this super contest effect listed in different languages. */
|
|
327
|
+
flavor_text_entries: FlavorText[];
|
|
328
|
+
/** A list of moves that have the effect when used in super contests. */
|
|
329
|
+
moves: NamedAPIResource[];
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/models/Currency/currency.d.ts
|
|
333
|
+
/**
|
|
334
|
+
* ## Currency
|
|
335
|
+
* Currencies are what items are bought and sold with. Most items are priced in
|
|
336
|
+
* Pokémon Dollars, but a shop can trade in anything from Battle Points to
|
|
337
|
+
* Volcanic Ash.
|
|
338
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Currency) for greater detail.
|
|
339
|
+
*/
|
|
340
|
+
interface Currency {
|
|
341
|
+
/** The identifier for this resource. */
|
|
342
|
+
id: number;
|
|
343
|
+
/** The name for this resource. */
|
|
344
|
+
name: string;
|
|
345
|
+
/** The name of this currency listed in different languages. */
|
|
346
|
+
names: Name[];
|
|
347
|
+
}
|
|
348
|
+
//#endregion
|
|
349
|
+
//#region src/models/Encounter/encounter.d.ts
|
|
350
|
+
/**
|
|
351
|
+
* ## Encounter Method
|
|
352
|
+
* Methods by which the player can encounter Pokémon in the wild, e.g., walking in tall grass.
|
|
353
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Wild_Pok%C3%A9mon) for greater detail.
|
|
354
|
+
*/
|
|
355
|
+
interface EncounterMethod {
|
|
356
|
+
/** The identifier for this resource. */
|
|
357
|
+
id: number;
|
|
358
|
+
/** The name for this resource. */
|
|
359
|
+
name: string;
|
|
360
|
+
/** A good value for sorting. */
|
|
361
|
+
order: number;
|
|
362
|
+
/** The name of this resource listed in different languages. */
|
|
363
|
+
names: Name[];
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* ## Encounter Condition
|
|
367
|
+
* Conditions which affect what Pokémon might appear in the wild, e.g., day or night.
|
|
368
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Time).
|
|
369
|
+
*/
|
|
370
|
+
interface EncounterCondition {
|
|
371
|
+
/** The identifier for this resource. */
|
|
372
|
+
id: number;
|
|
373
|
+
/** The name for this resource. */
|
|
374
|
+
name: string;
|
|
375
|
+
/** The name of this resource listed in different languages. */
|
|
376
|
+
names: Name[];
|
|
377
|
+
/** A list of possible values for this encounter condition. */
|
|
378
|
+
values: NamedAPIResource[];
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* ## Encounter Condition Value
|
|
382
|
+
* Encounter condition values are the various states that an encounter
|
|
383
|
+
* condition can have, i.e., time of day can be either **day** or **night**
|
|
384
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Time).
|
|
385
|
+
*/
|
|
386
|
+
interface EncounterConditionValue {
|
|
387
|
+
/** The identifier for this resource. */
|
|
388
|
+
id: number;
|
|
389
|
+
/** The name for this resource. */
|
|
390
|
+
name: string;
|
|
391
|
+
/** The condition this encounter condition value pertains to. */
|
|
392
|
+
condition: NamedAPIResource;
|
|
393
|
+
/** The name of this resource listed in different languages. */
|
|
394
|
+
names: Name[];
|
|
395
|
+
}
|
|
396
|
+
//#endregion
|
|
397
|
+
//#region src/models/Evolution/evolution.d.ts
|
|
398
|
+
/**
|
|
399
|
+
* ## Evolution Detail
|
|
400
|
+
* All details regarding the specific details of the referenced Pokémon species evolution.
|
|
401
|
+
*/
|
|
402
|
+
interface EvolutionDetail {
|
|
403
|
+
/** The item required to cause evolution into this Pokémon species. */
|
|
404
|
+
item: NamedAPIResource | null;
|
|
405
|
+
/** The type of event that triggers evolution into this Pokémon species. */
|
|
406
|
+
trigger: NamedAPIResource;
|
|
407
|
+
/** The gender the evolving Pokémon species must be in order to evolve into this Pokémon species. */
|
|
408
|
+
gender: number | null;
|
|
409
|
+
/** The item the evolving Pokémon species must be holding during the evolution trigger event to evolve into this Pokémon species. */
|
|
410
|
+
held_item: NamedAPIResource | null;
|
|
411
|
+
/** The move that must be known by the evolving Pokémon species during the evolution trigger event in order to evolve into this Pokémon species. */
|
|
412
|
+
known_move: NamedAPIResource | null;
|
|
413
|
+
/** The evolving Pokémon species must know a move with this type during the evolution trigger event in order to evolve into this Pokémon species. */
|
|
414
|
+
known_move_type: NamedAPIResource | null;
|
|
415
|
+
/** The location the evolution must be triggered at. */
|
|
416
|
+
location: NamedAPIResource | null;
|
|
417
|
+
/** The minimum required level the evolving Pokémon species must reach to evolve into this Pokémon species. */
|
|
418
|
+
min_level: number | null;
|
|
419
|
+
/** The minimum required level of happiness the evolving Pokémon species must have to evolve into this Pokémon species. */
|
|
420
|
+
min_happiness: number | null;
|
|
421
|
+
/** The minimum required level of beauty the evolving Pokémon species must have to evolve into this Pokémon species. */
|
|
422
|
+
min_beauty: number | null;
|
|
423
|
+
/** The minimum required level of affection the evolving Pokémon species must have to evolve into this Pokémon species. */
|
|
424
|
+
min_affection: number | null;
|
|
425
|
+
/** Whether or not it must be raining in the overworld to cause evolution into this Pokémon species. */
|
|
426
|
+
needs_overworld_rain: boolean;
|
|
427
|
+
/** The Pokémon species that must be in the player's party in order for the evolving Pokémon species to evolve into this Pokémon species. */
|
|
428
|
+
party_species: NamedAPIResource | null;
|
|
429
|
+
/**
|
|
430
|
+
* The player must have a Pokémon of this type in their party during the evolution trigger event
|
|
431
|
+
* in order for the evolving Pokémon species to evolve into this Pokémon species.
|
|
432
|
+
*/
|
|
433
|
+
party_type: NamedAPIResource | null;
|
|
434
|
+
/** The required relation between the Pokémon's Attack and Defense stats. 1 means Attack > Defense. 0 means Attack = Defense. -1 means Attack < Defense. */
|
|
435
|
+
relative_physical_stats: 1 | 0 | -1 | null;
|
|
436
|
+
/** The required time of day. Day or night. */
|
|
437
|
+
time_of_day: "Day" | "Night" | "";
|
|
438
|
+
/** Pokémon species for which this one must be traded. */
|
|
439
|
+
trade_species: NamedAPIResource | null;
|
|
440
|
+
/** Whether or not the 3DS needs to be turned upside-down as this Pokémon levels up. */
|
|
441
|
+
turn_upside_down: boolean;
|
|
442
|
+
/** The version group in which the evolution was introduced. */
|
|
443
|
+
version_group: NamedAPIResource;
|
|
444
|
+
/**
|
|
445
|
+
* Whether the evolution is the expected one in a main series game. Each Pokémon variety of a line
|
|
446
|
+
* capable of evolution has exactly one default evolution per distinct variety it evolves into.
|
|
447
|
+
*/
|
|
448
|
+
is_default: boolean;
|
|
449
|
+
/** Whether or not the Pokémon must be near a Moss Rock or Icy Rock to evolve into this species. */
|
|
450
|
+
near_special_rock: boolean;
|
|
451
|
+
/** Whether or not multiplayer link play is needed to evolve into this species, e.g. Union Circle. */
|
|
452
|
+
needs_multiplayer: boolean;
|
|
453
|
+
/** The region this evolution must occur in. */
|
|
454
|
+
region: NamedAPIResource | null;
|
|
455
|
+
/** The form the evolving Pokémon must be in for this evolution to occur. */
|
|
456
|
+
base_form: NamedAPIResource | null;
|
|
457
|
+
/** The form this evolution produces. */
|
|
458
|
+
evolved_form: NamedAPIResource | null;
|
|
459
|
+
/**
|
|
460
|
+
* The move that must be used by the evolving Pokémon species during the evolution trigger event
|
|
461
|
+
* in order to evolve into this Pokémon species.
|
|
462
|
+
*/
|
|
463
|
+
used_move: NamedAPIResource | null;
|
|
464
|
+
/** The minimum number of times `used_move` must be used to evolve into this species. */
|
|
465
|
+
min_move_count: number | null;
|
|
466
|
+
/** The minimum number of steps that must be taken to evolve into this species. */
|
|
467
|
+
min_steps: number | null;
|
|
468
|
+
/**
|
|
469
|
+
* The minimum amount of damage taken during the evolution trigger event to evolve into this
|
|
470
|
+
* species.
|
|
471
|
+
*/
|
|
472
|
+
min_damage_taken: number | null;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* ## Chain Link
|
|
476
|
+
* Contains evolution details for a Pokémon in the chain.
|
|
477
|
+
* Each link references the next Pokémon in the natural evolution order.
|
|
478
|
+
*/
|
|
479
|
+
interface ChainLink {
|
|
480
|
+
/** Whether or not this link is for a baby Pokémon. This would only ever be true on the base link. */
|
|
481
|
+
is_baby: boolean;
|
|
482
|
+
/** The Pokémon species at this point in the evolution chain. */
|
|
483
|
+
species: NamedAPIResource;
|
|
484
|
+
/** All details regarding the specific details of the referenced Pokémon species evolution. */
|
|
485
|
+
evolution_details: EvolutionDetail[];
|
|
486
|
+
/** A list of chain objects. */
|
|
487
|
+
evolves_to: ChainLink[];
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* ## Evolution Chain
|
|
491
|
+
* Evolution chains are essentially family trees.
|
|
492
|
+
* They start with the lowest stage within a family and detail
|
|
493
|
+
* evolution conditions for each as well as Pokémon they can evolve
|
|
494
|
+
* into up through the hierarchy.
|
|
495
|
+
*/
|
|
496
|
+
interface EvolutionChain {
|
|
497
|
+
/** The identifier for this resource. */
|
|
498
|
+
id: number;
|
|
499
|
+
/**
|
|
500
|
+
* The item that a Pokémon would be holding when mating that would trigger
|
|
501
|
+
* the egg hatching a baby Pokémon rather than a basic Pokémon.
|
|
502
|
+
*/
|
|
503
|
+
baby_trigger_item: NamedAPIResource | null;
|
|
504
|
+
/**
|
|
505
|
+
* The base chain link object. Each link contains evolution details for a Pokémon in the chain.
|
|
506
|
+
* Each link references the next Pokémon in the natural evolution order.
|
|
507
|
+
*/
|
|
508
|
+
chain: ChainLink;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* ## Evolution Trigger
|
|
512
|
+
* Evolution triggers are the events and conditions that cause a Pokémon to evolve.
|
|
513
|
+
* There are numerous methods of evolution which define how and when Pokémon evolve.
|
|
514
|
+
* Most Pokémon will evolve by leveling up while others evolve through specific means,
|
|
515
|
+
* such as being traded, achieving a certain amount of friendship or leveling at certain times, among others.
|
|
516
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Methods_of_evolution) for greater detail.
|
|
517
|
+
*/
|
|
518
|
+
interface EvolutionTrigger {
|
|
519
|
+
/** The identifier for this resource. */
|
|
520
|
+
id: number;
|
|
521
|
+
/** The name for this resource. */
|
|
522
|
+
name: "level-up" | "trade" | "use-item" | "shed" | "other";
|
|
523
|
+
/** The name of this resource listed in different languages. */
|
|
524
|
+
names: Name[];
|
|
525
|
+
/** A list of Pokémon species that result from this evolution trigger. */
|
|
526
|
+
pokemon_species: NamedAPIResource[];
|
|
527
|
+
}
|
|
528
|
+
//#endregion
|
|
529
|
+
//#region src/models/Game/generation.d.ts
|
|
530
|
+
/**
|
|
531
|
+
* ## Generation
|
|
532
|
+
* A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include.
|
|
533
|
+
* In each generation, a new set of Pokémon, Moves, Abilities and Types that did not exist in the previous generation are released.
|
|
534
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Generation) for greater detail.
|
|
535
|
+
*/
|
|
536
|
+
interface Generation {
|
|
537
|
+
/** The identifier for this resource. */
|
|
538
|
+
id: number;
|
|
539
|
+
/** The name for this resource. */
|
|
540
|
+
name: string;
|
|
541
|
+
/** A list of abilities that were introduced in this generation. */
|
|
542
|
+
abilities: NamedAPIResource[];
|
|
543
|
+
/** The name of this resource listed in different languages. */
|
|
544
|
+
names: Name[];
|
|
545
|
+
/** The main region travelled in this generation. */
|
|
546
|
+
main_region: NamedAPIResource;
|
|
547
|
+
/** A list of moves that were introduced in this generation. */
|
|
548
|
+
moves: NamedAPIResource[];
|
|
549
|
+
/** A list of Pokémon species that were introduced in this generation. */
|
|
550
|
+
pokemon_species: NamedAPIResource[];
|
|
551
|
+
/** A list of types that were introduced in this generation. */
|
|
552
|
+
types: NamedAPIResource[];
|
|
553
|
+
/** A list of version groups that were introduced in this generation. */
|
|
554
|
+
version_groups: NamedAPIResource[];
|
|
555
|
+
}
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/models/Game/pokemon-entry.d.ts
|
|
558
|
+
/**
|
|
559
|
+
* A Pokémon catalogued in a Pokédex.
|
|
560
|
+
*/
|
|
561
|
+
interface PokemonEntry {
|
|
562
|
+
/** The index of this Pokémon species entry within the Pokédex. */
|
|
563
|
+
entry_number: number;
|
|
564
|
+
/** The Pokémon species being encountered. */
|
|
565
|
+
pokemon_species: NamedAPIResource;
|
|
566
|
+
}
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region src/models/Game/pokedex.d.ts
|
|
569
|
+
/**
|
|
570
|
+
* ## Pokédex
|
|
571
|
+
* A Pokédex is a handheld electronic encyclopedia device;
|
|
572
|
+
* one which is capable of recording and retaining information of the various Pokémon in a given region
|
|
573
|
+
* with the exception of the national dex and some smaller dexes related to portions of a region.
|
|
574
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9dex) for greater detail.
|
|
575
|
+
*/
|
|
576
|
+
interface Pokedex {
|
|
577
|
+
/** The identifier for this resource. */
|
|
578
|
+
id: number;
|
|
579
|
+
/** The name for this resource. */
|
|
580
|
+
name: string;
|
|
581
|
+
/** Whether or not this Pokédex originated in the main series of the video games. */
|
|
582
|
+
is_main_series: boolean;
|
|
583
|
+
/** The description of this resource listed in different languages. */
|
|
584
|
+
descriptions: Description[];
|
|
585
|
+
/** The name of this resource listed in different languages. */
|
|
586
|
+
names: Name[];
|
|
587
|
+
/** A list of Pokémon catalogued in this Pokédex and their indexes. */
|
|
588
|
+
pokemon_entries: PokemonEntry[];
|
|
589
|
+
/** The region this Pokédex catalogues Pokémon for. */
|
|
590
|
+
region: NamedAPIResource | null;
|
|
591
|
+
/** A list of version groups this Pokédex is relevant to. */
|
|
592
|
+
version_groups: NamedAPIResource[];
|
|
593
|
+
}
|
|
594
|
+
//#endregion
|
|
595
|
+
//#region src/models/Game/version.d.ts
|
|
596
|
+
/**
|
|
597
|
+
* ## Version
|
|
598
|
+
* Versions of the games, e.g. Red, Blue or Yellow.
|
|
599
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Core_series) for greater detail.
|
|
600
|
+
*/
|
|
601
|
+
interface Version {
|
|
602
|
+
/** The identifier for this resource. */
|
|
603
|
+
id: number;
|
|
604
|
+
/** The name for this resource. */
|
|
605
|
+
name: string;
|
|
606
|
+
/** The name of this resource listed in different languages. */
|
|
607
|
+
names: Name[];
|
|
608
|
+
/** The version group this version belongs to. */
|
|
609
|
+
version_group: NamedAPIResource;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* ## Version Group
|
|
613
|
+
* Version groups categorize highly similar versions of the games.
|
|
614
|
+
*/
|
|
615
|
+
interface VersionGroup {
|
|
616
|
+
/** The identifier for this resource. */
|
|
617
|
+
id: number;
|
|
618
|
+
/** The name for this resource. */
|
|
619
|
+
name: string;
|
|
620
|
+
/** Order for sorting. Almost by date of release, except similar versions are grouped together. */
|
|
621
|
+
order: number;
|
|
622
|
+
/** The generation this version was introduced in. */
|
|
623
|
+
generation: NamedAPIResource;
|
|
624
|
+
/** A list of methods in which Pokémon can learn moves in this version group. */
|
|
625
|
+
move_learn_methods: NamedAPIResource[];
|
|
626
|
+
/** A list of Pokédexes introduced in this version group. */
|
|
627
|
+
pokedexes: NamedAPIResource[];
|
|
628
|
+
/** A list of regions that can be visited in this version group. */
|
|
629
|
+
regions: NamedAPIResource[];
|
|
630
|
+
/** The versions this version group owns. */
|
|
631
|
+
versions: NamedAPIResource[];
|
|
632
|
+
}
|
|
633
|
+
//#endregion
|
|
634
|
+
//#region src/models/Item/item.d.ts
|
|
635
|
+
/**
|
|
636
|
+
* Sprites used to depict the given item in the game.
|
|
637
|
+
*/
|
|
638
|
+
interface ItemSprites {
|
|
639
|
+
/** The default depiction of this item. */
|
|
640
|
+
default: string;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Pokémon that might be found in the wild holding the given item.
|
|
644
|
+
*/
|
|
645
|
+
interface ItemHolderPokemon {
|
|
646
|
+
/** The Pokémon that holds this item. */
|
|
647
|
+
pokemon: NamedAPIResource;
|
|
648
|
+
/** The details for the version that this item is held in by the Pokémon. */
|
|
649
|
+
version_details: ItemHolderPokemonVersionDetail[];
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* The details for the version that the given item is held in by the Pokémon.
|
|
653
|
+
*/
|
|
654
|
+
interface ItemHolderPokemonVersionDetail {
|
|
655
|
+
/** How often this Pokémon holds this item in this version. */
|
|
656
|
+
rarity: number;
|
|
657
|
+
/** The version that this item is held in by the Pokémon. */
|
|
658
|
+
version: NamedAPIResource;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* ## Item Attribute
|
|
662
|
+
* Item attributes define particular aspects of items, e.g. "usable in battle" or "consumable".
|
|
663
|
+
*/
|
|
664
|
+
interface ItemAttribute {
|
|
665
|
+
/** The identifier for this resource. */
|
|
666
|
+
id: number;
|
|
667
|
+
/** The name for this resource. */
|
|
668
|
+
name: string;
|
|
669
|
+
/** A list of items that have this attribute. */
|
|
670
|
+
items: NamedAPIResource[];
|
|
671
|
+
/** The name of this item attribute listed in different languages. */
|
|
672
|
+
names: Name[];
|
|
673
|
+
/** The description of this item attribute listed in different languages. */
|
|
674
|
+
descriptions: Description[];
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* ## Item Category
|
|
678
|
+
* Item categories determine where items will be placed in the player's bag.
|
|
679
|
+
*/
|
|
680
|
+
interface ItemCategory {
|
|
681
|
+
/** The identifier for this resource. */
|
|
682
|
+
id: number;
|
|
683
|
+
/** The name for this resource. */
|
|
684
|
+
name: string;
|
|
685
|
+
/** A list of items that are a part of this category. */
|
|
686
|
+
items: NamedAPIResource[];
|
|
687
|
+
/** The name of this item category listed in different languages. */
|
|
688
|
+
names: Name[];
|
|
689
|
+
/** The pocket items in this category would be put in. */
|
|
690
|
+
pocket: NamedAPIResource;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* ## Item Fling Effect
|
|
694
|
+
* The various effects of the move "Fling" when used with different items.
|
|
695
|
+
*/
|
|
696
|
+
interface ItemFlingEffect {
|
|
697
|
+
/** The identifier for this resource. */
|
|
698
|
+
id: number;
|
|
699
|
+
/** The name for this resource. */
|
|
700
|
+
name: string;
|
|
701
|
+
/** The result of this fling effect listed in different languages. */
|
|
702
|
+
effect_entries: Effect[];
|
|
703
|
+
/** A list of items that have this fling effect. */
|
|
704
|
+
items: NamedAPIResource[];
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* ## Item Pocket
|
|
708
|
+
* Pockets within the player's bag used for storing items by category.
|
|
709
|
+
*/
|
|
710
|
+
interface ItemPocket {
|
|
711
|
+
/** The identifier for this resource. */
|
|
712
|
+
id: number;
|
|
713
|
+
/** The name for this resource. */
|
|
714
|
+
name: string;
|
|
715
|
+
/** A list of item categories that are relevant to this item pocket. */
|
|
716
|
+
categories: NamedAPIResource[];
|
|
717
|
+
/** The name of this resource listed in different languages. */
|
|
718
|
+
names: Name[];
|
|
719
|
+
}
|
|
720
|
+
/** The price of an item in a single version group. */
|
|
721
|
+
interface ItemPrice {
|
|
722
|
+
/** The currency used for this price. */
|
|
723
|
+
currency: NamedAPIResource;
|
|
724
|
+
/** The purchase price of this item in this version group. Null if the item cannot be purchased. */
|
|
725
|
+
purchase_price: number | null;
|
|
726
|
+
/** The sell price of this item in this version group. Null if the item cannot be sold. */
|
|
727
|
+
sell_price: number | null;
|
|
728
|
+
/** The version group these prices apply to. */
|
|
729
|
+
version_group: NamedAPIResource;
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* ## Item
|
|
733
|
+
* An item is an object in the games which the player can pick up, keep in their bag, and use in some manner.
|
|
734
|
+
* They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area.
|
|
735
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Item).
|
|
736
|
+
*/
|
|
737
|
+
interface Item {
|
|
738
|
+
/** The identifier for this resource. */
|
|
739
|
+
id: number;
|
|
740
|
+
/** The name for this resource. */
|
|
741
|
+
name: string;
|
|
742
|
+
/** The purchase and sell prices of this item for each version group. */
|
|
743
|
+
prices: ItemPrice[];
|
|
744
|
+
/** The power of the move Fling when used with this item. */
|
|
745
|
+
fling_power: number | null;
|
|
746
|
+
/** The effect of the move Fling when used with this item. */
|
|
747
|
+
fling_effect: NamedAPIResource | null;
|
|
748
|
+
/** A list of attributes this item has. */
|
|
749
|
+
attributes: NamedAPIResource[];
|
|
750
|
+
/** The category of items this item falls into. */
|
|
751
|
+
category: NamedAPIResource;
|
|
752
|
+
/** The effect of this ability listed in different languages. */
|
|
753
|
+
effect_entries: VerboseEffect[];
|
|
754
|
+
/** The flavor text of this ability listed in different languages. */
|
|
755
|
+
flavor_text_entries: VersionGroupFlavorText[];
|
|
756
|
+
/** A list of game indices relevant to this item by generation. */
|
|
757
|
+
game_indices: GenerationGameIndex[];
|
|
758
|
+
/** The name of this item listed in different languages. */
|
|
759
|
+
names: Name[];
|
|
760
|
+
/** A set of sprites used to depict this item in the game. */
|
|
761
|
+
sprites: ItemSprites;
|
|
762
|
+
/** A list of Pokémon that might be found in the wild holding this item. */
|
|
763
|
+
held_by_pokemon: ItemHolderPokemon[];
|
|
764
|
+
/** An evolution chain this item requires to produce a baby during mating. */
|
|
765
|
+
baby_trigger_for: APIResource | null;
|
|
766
|
+
/** A list of the machines related to this item. */
|
|
767
|
+
machines: MachineVersionDetail[];
|
|
768
|
+
}
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region src/models/Location/encounter.d.ts
|
|
771
|
+
/**
|
|
772
|
+
* Method in which Pokémon may be encountered in the given area
|
|
773
|
+
* and how likely the method will occur depending on the version of the game.
|
|
774
|
+
*/
|
|
775
|
+
interface EncounterMethodRate {
|
|
776
|
+
/** The method in which Pokémon may be encountered in an area. */
|
|
777
|
+
encounter_method: NamedAPIResource;
|
|
778
|
+
/** The chance of the encounter to occur on a version of the game. */
|
|
779
|
+
version_details: EncounterVersionDetails[];
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* The chance of the encounter to occur on a version of the game.
|
|
783
|
+
*/
|
|
784
|
+
interface EncounterVersionDetails {
|
|
785
|
+
/** The chance of an encounter to occur. */
|
|
786
|
+
rate: number;
|
|
787
|
+
/** The version of the game in which the encounter can occur with the given chance. */
|
|
788
|
+
version: NamedAPIResource;
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Describes a pokémon encounter in a given area.
|
|
792
|
+
*/
|
|
793
|
+
interface PokemonEncounter {
|
|
794
|
+
/** The Pokémon being encountered. */
|
|
795
|
+
pokemon: NamedAPIResource;
|
|
796
|
+
/** A list of versions and encounters with Pokémon that might happen in the referenced location area. */
|
|
797
|
+
version_details: VersionEncounterDetail[];
|
|
798
|
+
}
|
|
799
|
+
//#endregion
|
|
800
|
+
//#region src/models/Location/location.d.ts
|
|
801
|
+
/**
|
|
802
|
+
* ## Location
|
|
803
|
+
* Locations that can be visited within the games.
|
|
804
|
+
* Locations make up sizable portions of regions, like cities or routes.
|
|
805
|
+
* - See the [List of Locations](https://bulbapedia.bulbagarden.net/wiki/List_of_locations_by_name).
|
|
806
|
+
*/
|
|
807
|
+
interface Location {
|
|
808
|
+
/** The identifier for this resource. */
|
|
809
|
+
id: number;
|
|
810
|
+
/** The name for this resource. */
|
|
811
|
+
name: string;
|
|
812
|
+
/** The region this location can be found in. */
|
|
813
|
+
region: NamedAPIResource | null;
|
|
814
|
+
/** The name of this resource listed in different languages. */
|
|
815
|
+
names: Name[];
|
|
816
|
+
/** A list of game indices relevant to this location by generation. */
|
|
817
|
+
game_indices: GenerationGameIndex[];
|
|
818
|
+
/** Areas that can be found within this location. */
|
|
819
|
+
areas: NamedAPIResource[];
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* ## Location Area
|
|
823
|
+
* Location areas are sections of areas, such as floors in a building or cave.
|
|
824
|
+
* Each area has its own set of possible Pokémon encounters.
|
|
825
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Area) for greater detail.
|
|
826
|
+
*/
|
|
827
|
+
interface LocationArea {
|
|
828
|
+
/** The identifier for this resource. */
|
|
829
|
+
id: number;
|
|
830
|
+
/** The name for this resource. */
|
|
831
|
+
name: string;
|
|
832
|
+
/** The internal id of an API resource within game data. */
|
|
833
|
+
game_index: number;
|
|
834
|
+
/** A list of methods in which Pokémon may be encountered in this area and how likely the method will occur depending on the version of the game. */
|
|
835
|
+
encounter_method_rates: EncounterMethodRate[];
|
|
836
|
+
/** The region this location area can be found in. */
|
|
837
|
+
location: NamedAPIResource;
|
|
838
|
+
/** The name of this resource listed in different languages. */
|
|
839
|
+
names: Name[];
|
|
840
|
+
/** A list of Pokémon that can be encountered in this area along with version specific details about the encounter. */
|
|
841
|
+
pokemon_encounters: PokemonEncounter[];
|
|
842
|
+
}
|
|
843
|
+
//#endregion
|
|
844
|
+
//#region src/models/Location/palpark.d.ts
|
|
845
|
+
/**
|
|
846
|
+
* ## Pal Park Area
|
|
847
|
+
* Areas used for grouping Pokémon encounters in Pal Park.
|
|
848
|
+
* They're like habitats that are specific to Pal Park.
|
|
849
|
+
* Pal Park is divided into five separate areas:
|
|
850
|
+
* ---
|
|
851
|
+
* - [Field](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_Pal_Park_location#Field)
|
|
852
|
+
* - [Forest](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_Pal_Park_location#Forest)
|
|
853
|
+
* - [Mountain](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_Pal_Park_location#Mountain)
|
|
854
|
+
* - [Pond](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_Pal_Park_location#Pound)
|
|
855
|
+
* - [Sea](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_Pal_Park_location#Sea)
|
|
856
|
+
* - [Trivia](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_Pal_Park_location#Trivia)
|
|
857
|
+
* ---
|
|
858
|
+
* See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pal_Park) for greater detail.
|
|
859
|
+
*/
|
|
860
|
+
interface PalParkArea {
|
|
861
|
+
/** The identifier for this resource. */
|
|
862
|
+
id: number;
|
|
863
|
+
/** The name for this resource. */
|
|
864
|
+
name: string;
|
|
865
|
+
/** The name of this resource listed in different languages. */
|
|
866
|
+
names: Name[];
|
|
867
|
+
/** A list of Pokémon encountered in this pal park area along with details. */
|
|
868
|
+
pokemon_encounters: PalParkEncounterSpecies[];
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Details of a Pokémon encountered in this Pal Park area.
|
|
872
|
+
*/
|
|
873
|
+
interface PalParkEncounterSpecies {
|
|
874
|
+
/** The base score given to the player when this Pokémon is caught during a pal park run. */
|
|
875
|
+
base_score: number;
|
|
876
|
+
/** The base rate for encountering this Pokémon in this pal park area. */
|
|
877
|
+
rate: number;
|
|
878
|
+
/** The Pokémon species being encountered. */
|
|
879
|
+
pokemon_species: NamedAPIResource;
|
|
880
|
+
}
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region src/models/Location/region.d.ts
|
|
883
|
+
/**
|
|
884
|
+
* ## Region
|
|
885
|
+
* A region is an organized area of the Pokémon world.
|
|
886
|
+
* Most often, the main difference between regions is
|
|
887
|
+
* the species of Pokémon that can be encountered within them.
|
|
888
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Region) for greater detail.
|
|
889
|
+
*/
|
|
890
|
+
type Region = {
|
|
891
|
+
/** The identifier for this resource. */
|
|
892
|
+
id: number;
|
|
893
|
+
/** A list of locations that can be found in this region. */
|
|
894
|
+
locations: NamedAPIResource[];
|
|
895
|
+
/** The name for this resource. */
|
|
896
|
+
name: string;
|
|
897
|
+
/** The name of this resource listed in different languages. */
|
|
898
|
+
names: Name[];
|
|
899
|
+
/** The generation this region was introduced in. */
|
|
900
|
+
main_generation: NamedAPIResource;
|
|
901
|
+
/** A list of Pokédexes that catalogue Pokémon in this region. */
|
|
902
|
+
pokedexes: NamedAPIResource[];
|
|
903
|
+
/** A list of version groups where this region can be visited. */
|
|
904
|
+
version_groups: NamedAPIResource[];
|
|
905
|
+
};
|
|
906
|
+
//#endregion
|
|
907
|
+
//#region src/models/Machine/machine.d.ts
|
|
908
|
+
/**
|
|
909
|
+
* ## Machine
|
|
910
|
+
* Machines are the representation of items that teach moves to Pokémon.
|
|
911
|
+
* They vary from version to version, so it is not certain that one specific
|
|
912
|
+
* [TM (Technical Machine)](https://bulbapedia.bulbagarden.net/wiki/TM) or
|
|
913
|
+
* [HM (Hidden Machine)](https://bulbapedia.bulbagarden.net/wiki/HM) corresponds to a single Machine.
|
|
914
|
+
*/
|
|
915
|
+
type Machine = {
|
|
916
|
+
/** The identifier for this resource. */
|
|
917
|
+
id: number;
|
|
918
|
+
/** The TM or HM item that corresponds to this machine. */
|
|
919
|
+
item: NamedAPIResource;
|
|
920
|
+
/** The move that is taught by this machine. */
|
|
921
|
+
move: NamedAPIResource;
|
|
922
|
+
/** The version group that this machine applies to. */
|
|
923
|
+
version_group: NamedAPIResource;
|
|
924
|
+
};
|
|
925
|
+
//#endregion
|
|
926
|
+
//#region src/models/Pokemon/ability.d.ts
|
|
927
|
+
/**
|
|
928
|
+
* ## Ability
|
|
929
|
+
* Abilities provide passive effects for Pokémon in battle or in the overworld.
|
|
930
|
+
* Pokémon have multiple possible abilities but can have only one ability at a time.
|
|
931
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail.
|
|
932
|
+
*/
|
|
933
|
+
interface Ability {
|
|
934
|
+
/** The identifier for this resource. */
|
|
935
|
+
id: number;
|
|
936
|
+
/** The name for this resource. */
|
|
937
|
+
name: string;
|
|
938
|
+
/** Whether or not this ability originated in the main series of the video games. */
|
|
939
|
+
is_main_series: boolean;
|
|
940
|
+
/** The generation this ability originated in. */
|
|
941
|
+
generation: NamedAPIResource;
|
|
942
|
+
/** The name of this resource listed in different languages. */
|
|
943
|
+
names: Name[];
|
|
944
|
+
/** The effect of this ability listed in different languages. */
|
|
945
|
+
effect_entries: VerboseEffect[];
|
|
946
|
+
/** The list of previous effects this ability has had across version groups. */
|
|
947
|
+
effect_changes: AbilityEffectChange[];
|
|
948
|
+
/** The flavor text of this ability listed in different languages. */
|
|
949
|
+
flavor_text_entries: AbilityFlavorText[];
|
|
950
|
+
/** A list of Pokémon that could potentially have this ability. */
|
|
951
|
+
pokemon: AbilityPokemon[];
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Previous effects an ability has had across version groups.
|
|
955
|
+
*/
|
|
956
|
+
interface AbilityEffectChange {
|
|
957
|
+
/** The previous effect of this ability listed in different languages. */
|
|
958
|
+
effect_entries: Effect[];
|
|
959
|
+
/** The version group in which the previous effect of this ability originated. */
|
|
960
|
+
version_group: NamedAPIResource;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* The flavor text of an ability.
|
|
964
|
+
*/
|
|
965
|
+
interface AbilityFlavorText {
|
|
966
|
+
/** The localized name for an API resource in a specific language. */
|
|
967
|
+
flavor_text: string;
|
|
968
|
+
/** The language this text resource is in. */
|
|
969
|
+
language: NamedAPIResource;
|
|
970
|
+
/** The version group that uses this flavor text. */
|
|
971
|
+
version_group: NamedAPIResource;
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* Pokémon that could potentially have the given ability.
|
|
975
|
+
*/
|
|
976
|
+
interface AbilityPokemon {
|
|
977
|
+
/** Whether or not this is a hidden ability for the referenced Pokémon. */
|
|
978
|
+
is_hidden: boolean;
|
|
979
|
+
/**
|
|
980
|
+
* Pokémon have 3 ability 'slots' which hold references to possible abilities they could have.
|
|
981
|
+
* This is the slot of this ability for the referenced pokemon.
|
|
982
|
+
*/
|
|
983
|
+
slot: number;
|
|
984
|
+
/** The Pokémon this ability could belong to. */
|
|
985
|
+
pokemon: NamedAPIResource;
|
|
986
|
+
}
|
|
987
|
+
//#endregion
|
|
988
|
+
//#region src/models/Pokemon/characteristics.d.ts
|
|
989
|
+
/**
|
|
990
|
+
* ## Characteristic
|
|
991
|
+
* Characteristics indicate which stat contains a Pokémon's highest IV.
|
|
992
|
+
* A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo).
|
|
993
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail.
|
|
994
|
+
*/
|
|
995
|
+
interface Characteristic {
|
|
996
|
+
/** The identifier for this resource. */
|
|
997
|
+
id: number;
|
|
998
|
+
/** The remainder of the highest stat/IV divided by 5. */
|
|
999
|
+
gene_modulo: number;
|
|
1000
|
+
/** The possible values of the highest stat that would result in a Pokémon receiving this characteristic when divided by 5. */
|
|
1001
|
+
possible_values: number[];
|
|
1002
|
+
/** The highest stat for the referenced characteristic. */
|
|
1003
|
+
highest_stat: NamedAPIResource;
|
|
1004
|
+
/** Descriptions for the referenced characteristic. */
|
|
1005
|
+
descriptions: Description[];
|
|
1006
|
+
}
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region src/models/Pokemon/egg-group.d.ts
|
|
1009
|
+
/**
|
|
1010
|
+
* ## Egg Group
|
|
1011
|
+
* Egg Groups are categories which determine which Pokémon are able to interbreed.
|
|
1012
|
+
* Pokémon may belong to either one or two Egg Groups.
|
|
1013
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail.
|
|
1014
|
+
*/
|
|
1015
|
+
interface EggGroup {
|
|
1016
|
+
/** The identifier for this resource. */
|
|
1017
|
+
id: number;
|
|
1018
|
+
/** The name for this resource. */
|
|
1019
|
+
name: "monster" | "water1" | "water2" | "water3" | "bug" | "flying" | "ground" | "fairy" | "plant" | "humanshape" | "mineral" | "indeterminate" | "ditto" | "dragon" | "no-eggs";
|
|
1020
|
+
/** The name of this resource listed in different languages. */
|
|
1021
|
+
names: Name[];
|
|
1022
|
+
/** A list of all Pokémon species that are members of this egg group. */
|
|
1023
|
+
pokemon_species: NamedAPIResource[];
|
|
1024
|
+
}
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region src/models/Pokemon/gender.d.ts
|
|
1027
|
+
/**
|
|
1028
|
+
* ## Gender
|
|
1029
|
+
* Genders were introduced in Generation II for the purposes of breeding Pokémon
|
|
1030
|
+
* but can also result in visual differences or even different evolutionary lines.
|
|
1031
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail.
|
|
1032
|
+
*/
|
|
1033
|
+
interface Gender {
|
|
1034
|
+
/** The identifier for this resource. */
|
|
1035
|
+
id: number;
|
|
1036
|
+
/** The name for this resource. */
|
|
1037
|
+
name: "male" | "female" | "genderless";
|
|
1038
|
+
/** A list of Pokémon species that can be this gender and how likely it is that they will be. */
|
|
1039
|
+
pokemon_species_details: PokemonSpeciesGender[];
|
|
1040
|
+
/** A list of Pokémon species that required this gender in order for a Pokémon to evolve into them. */
|
|
1041
|
+
required_for_evolution: NamedAPIResource[];
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Pokémon species that can be this gender and how likely it is that they will be.
|
|
1045
|
+
*/
|
|
1046
|
+
interface PokemonSpeciesGender {
|
|
1047
|
+
/** The chance of this Pokémon being female, in eighths; or -1 for genderless. */
|
|
1048
|
+
rate: number;
|
|
1049
|
+
/** A Pokémon species that can be the referenced gender. */
|
|
1050
|
+
pokemon_species: NamedAPIResource;
|
|
1051
|
+
}
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region src/models/Pokemon/growth-rates.d.ts
|
|
1054
|
+
/**
|
|
1055
|
+
* Levels and the amount of experience needed to attain them based on the given growth rate.
|
|
1056
|
+
*/
|
|
1057
|
+
interface GrowthRateExperienceLevel {
|
|
1058
|
+
/** The level gained. */
|
|
1059
|
+
level: number;
|
|
1060
|
+
/** The amount of experience required to reach the referenced level. */
|
|
1061
|
+
experience: number;
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* ## Growth Rate
|
|
1065
|
+
* Growth rates are the speed with which Pokémon gain levels through experience.
|
|
1066
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail.
|
|
1067
|
+
*/
|
|
1068
|
+
interface GrowthRate {
|
|
1069
|
+
/** The identifier for this resource. */
|
|
1070
|
+
id: number;
|
|
1071
|
+
/** The name for this resource. */
|
|
1072
|
+
name: "slow" | "medium" | "fast" | "medium-slow" | "slow-then-very-fast" | "fast-then-very-slow";
|
|
1073
|
+
/** The formula used to calculate the rate at which the Pokémon species gains levels. */
|
|
1074
|
+
formula: string;
|
|
1075
|
+
/** The descriptions of this characteristic listed in different languages. */
|
|
1076
|
+
descriptions: Description[];
|
|
1077
|
+
/** A list of levels and the amount of experience needed to attain them based on this growth rate. */
|
|
1078
|
+
levels: GrowthRateExperienceLevel[];
|
|
1079
|
+
/** A list of Pokémon species that gain levels at this growth rate. */
|
|
1080
|
+
pokemon_species: NamedAPIResource[];
|
|
1081
|
+
}
|
|
1082
|
+
//#endregion
|
|
1083
|
+
//#region src/models/Pokemon/nature.d.ts
|
|
1084
|
+
/**
|
|
1085
|
+
* ## Nature
|
|
1086
|
+
* Natures influence how a Pokémon's stats grow.
|
|
1087
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
1088
|
+
*/
|
|
1089
|
+
interface Nature {
|
|
1090
|
+
/** The identifier for this resource. */
|
|
1091
|
+
id: number;
|
|
1092
|
+
/** The name for this resource. */
|
|
1093
|
+
name: string;
|
|
1094
|
+
/** The stat decreased by 10% in Pokémon with this nature. */
|
|
1095
|
+
decreased_stat: NamedAPIResource | null;
|
|
1096
|
+
/** The stat increased by 10% in Pokémon with this nature. */
|
|
1097
|
+
increased_stat: NamedAPIResource | null;
|
|
1098
|
+
/** The flavor hated by Pokémon with this nature. */
|
|
1099
|
+
hates_flavor: NamedAPIResource | null;
|
|
1100
|
+
/** The flavor liked by Pokémon with this nature. */
|
|
1101
|
+
likes_flavor: NamedAPIResource | null;
|
|
1102
|
+
/** A list of Pokéathlon stats this nature affects and by how much. */
|
|
1103
|
+
pokeathlon_stat_changes: NatureStatChange[];
|
|
1104
|
+
/** 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. */
|
|
1105
|
+
move_battle_style_preferences: MoveBattleStylePreference[];
|
|
1106
|
+
/** The name of this resource listed in different languages. */
|
|
1107
|
+
names: Name[];
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* A Pokéathlon stat a nature affects, and by how much.
|
|
1111
|
+
*/
|
|
1112
|
+
interface NatureStatChange {
|
|
1113
|
+
/** The amount of change. */
|
|
1114
|
+
max_change: -1 | 1 | -2 | 2;
|
|
1115
|
+
/** The stat being affected. */
|
|
1116
|
+
pokeathlon_stat: NamedAPIResource;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Battle Style and how likely a Pokémon with the given nature is to use them
|
|
1120
|
+
* in the Battle Palace or Battle Tent.
|
|
1121
|
+
*/
|
|
1122
|
+
interface MoveBattleStylePreference {
|
|
1123
|
+
/** Chance of using the move, in percent, if HP is under one half. */
|
|
1124
|
+
low_hp_preference: number;
|
|
1125
|
+
/** Chance of using the move, in percent, if HP is over one half. */
|
|
1126
|
+
high_hp_preference: number;
|
|
1127
|
+
/** The move battle style. */
|
|
1128
|
+
move_battle_style: NamedAPIResource;
|
|
1129
|
+
}
|
|
1130
|
+
//#endregion
|
|
1131
|
+
//#region src/models/Pokemon/pokeathlon-stat.d.ts
|
|
1132
|
+
/**
|
|
1133
|
+
* ## Pokéathlon Stat
|
|
1134
|
+
* Pokéathlon Stats are different attributes of a Pokémon's performance in Pokéathlons.
|
|
1135
|
+
* In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats.
|
|
1136
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail.
|
|
1137
|
+
*/
|
|
1138
|
+
interface PokeathlonStat {
|
|
1139
|
+
/** The identifier for this resource. */
|
|
1140
|
+
id: number;
|
|
1141
|
+
/** The name for this resource. */
|
|
1142
|
+
name: "speed" | "power" | "skill" | "stamina" | "jump";
|
|
1143
|
+
/** The name of this resource listed in different languages. */
|
|
1144
|
+
names: Name[];
|
|
1145
|
+
/** A detail of natures which affect this Pokéathlon stat positively or negatively. */
|
|
1146
|
+
affecting_natures: NaturePokeathlonStatAffectSets;
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* A nature and how it changes the referenced Pokéathlon stat.
|
|
1150
|
+
*/
|
|
1151
|
+
interface NaturePokeathlonStatAffect {
|
|
1152
|
+
/** The maximum amount of change to the referenced Pokéathlon stat. */
|
|
1153
|
+
max_change: -1 | -2 | 1 | 2;
|
|
1154
|
+
/** The nature causing the change. */
|
|
1155
|
+
nature: NamedAPIResource;
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* A detail of natures which affect this Pokéathlon stat positively or negatively.
|
|
1159
|
+
*/
|
|
1160
|
+
interface NaturePokeathlonStatAffectSets {
|
|
1161
|
+
/** A list of natures and how they change the referenced Pokéathlon stat. */
|
|
1162
|
+
increase: NaturePokeathlonStatAffect[];
|
|
1163
|
+
/** A list of natures and how they change the referenced Pokéathlon stat. */
|
|
1164
|
+
decrease: NaturePokeathlonStatAffect[];
|
|
1165
|
+
}
|
|
1166
|
+
//#endregion
|
|
1167
|
+
//#region src/models/Pokemon/pokemon.d.ts
|
|
1168
|
+
/**
|
|
1169
|
+
* ## Pokémon
|
|
1170
|
+
* Pokémon are the creatures that inhabit the world of the Pokémon games.
|
|
1171
|
+
* They can be caught using Pokéballs and trained by battling with other Pokémon.
|
|
1172
|
+
* Each Pokémon belongs to a specific species but may take on a variant
|
|
1173
|
+
* which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings.
|
|
1174
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail.
|
|
1175
|
+
*/
|
|
1176
|
+
interface Pokemon {
|
|
1177
|
+
/** The identifier for this resource. */
|
|
1178
|
+
id: number;
|
|
1179
|
+
/** The name for this resource. */
|
|
1180
|
+
name: string;
|
|
1181
|
+
/** The base experience gained for defeating this Pokémon. */
|
|
1182
|
+
base_experience: number;
|
|
1183
|
+
/** The height of this Pokémon in decimetres. */
|
|
1184
|
+
height: number;
|
|
1185
|
+
/** Set for exactly one Pokémon used as the default for each species. */
|
|
1186
|
+
is_default: boolean;
|
|
1187
|
+
/** Order for sorting. Almost national order, except families are grouped together. */
|
|
1188
|
+
order: number;
|
|
1189
|
+
/** The weight of this Pokémon in hectograms. */
|
|
1190
|
+
weight: number;
|
|
1191
|
+
/** A list of abilities this Pokémon could potentially have. */
|
|
1192
|
+
abilities: PokemonAbility[];
|
|
1193
|
+
/** A list of forms this Pokémon can take on. */
|
|
1194
|
+
forms: NamedAPIResource[];
|
|
1195
|
+
/** A list of game indices relevant to this Pokémon by generation. */
|
|
1196
|
+
game_indices: VersionGameIndex[];
|
|
1197
|
+
/** A list of items this Pokémon may be holding when encountered. */
|
|
1198
|
+
held_items: PokemonHeldItem[];
|
|
1199
|
+
/** A link to a list of location areas, as well as encounter details pertaining to specific versions. */
|
|
1200
|
+
location_area_encounters: string;
|
|
1201
|
+
/** A list of moves along with learn methods and level details pertaining to specific version groups. */
|
|
1202
|
+
moves: PokemonMove[];
|
|
1203
|
+
/** A set of sprites used to depict this Pokémon in the game. */
|
|
1204
|
+
sprites: PokemonSprites;
|
|
1205
|
+
/** A set of cries used to depict this Pokémon in the game. */
|
|
1206
|
+
cries: PokemonCries;
|
|
1207
|
+
/** The species this Pokémon belongs to. */
|
|
1208
|
+
species: NamedAPIResource;
|
|
1209
|
+
/** A list of base stat values for this Pokémon. */
|
|
1210
|
+
stats: PokemonStat[];
|
|
1211
|
+
/** A list of details showing types this Pokémon has. */
|
|
1212
|
+
types: PokemonType[];
|
|
1213
|
+
/** Data describing a Pokémon's types in a previous generation. */
|
|
1214
|
+
past_types: PokemonPastType[];
|
|
1215
|
+
/** Data describing a Pokémon's abilities in a previous generation. */
|
|
1216
|
+
past_abilities: PokemonPastAbility[];
|
|
1217
|
+
/** Data describing a Pokémon's stats in a previous generation. */
|
|
1218
|
+
past_stats: PokemonPastStat[];
|
|
1219
|
+
}
|
|
1220
|
+
/** The cries used to depict a Pokémon in the games. */
|
|
1221
|
+
type PokemonCries = {
|
|
1222
|
+
/** The legacy depiction of this Pokémon's cry. */
|
|
1223
|
+
legacy: string;
|
|
1224
|
+
/** The latest depiction of this Pokémon's cry. */
|
|
1225
|
+
latest: string;
|
|
1226
|
+
};
|
|
1227
|
+
/**
|
|
1228
|
+
* Abilities the given Pokémon could potentially have.
|
|
1229
|
+
*/
|
|
1230
|
+
interface PokemonAbility {
|
|
1231
|
+
/** Whether or not this is a hidden ability. */
|
|
1232
|
+
is_hidden: boolean;
|
|
1233
|
+
/** The slot this ability occupies in this Pokémon species. */
|
|
1234
|
+
slot: number;
|
|
1235
|
+
/** The ability the Pokémon may have. */
|
|
1236
|
+
ability: NamedAPIResource;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Details showing types the given Pokémon has.
|
|
1240
|
+
*/
|
|
1241
|
+
interface PokemonType {
|
|
1242
|
+
/** The order the Pokémon's types are listed in. */
|
|
1243
|
+
slot: number;
|
|
1244
|
+
/** The type the referenced Pokémon has. */
|
|
1245
|
+
type: NamedAPIResource;
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Data describing a Pokémon's types in a previous generation.
|
|
1249
|
+
*/
|
|
1250
|
+
interface PokemonPastType {
|
|
1251
|
+
/** The generation of this Pokémon Type. */
|
|
1252
|
+
generation: NamedAPIResource;
|
|
1253
|
+
/** The types this Pokémon had in a previous generation. */
|
|
1254
|
+
types: PokemonType[];
|
|
1255
|
+
}
|
|
1256
|
+
/** An ability slot as it stood in a previous generation. */
|
|
1257
|
+
interface PokemonPastAbilitySlot {
|
|
1258
|
+
/** Whether or not this was a hidden ability. */
|
|
1259
|
+
is_hidden: boolean;
|
|
1260
|
+
/** The slot this ability occupied in this Pokémon species. */
|
|
1261
|
+
slot: number;
|
|
1262
|
+
/** The ability that occupied the slot, or `null` when the slot was empty. */
|
|
1263
|
+
ability: NamedAPIResource | null;
|
|
1264
|
+
}
|
|
1265
|
+
/** Data describing a Pokémon's abilities in a previous generation. */
|
|
1266
|
+
interface PokemonPastAbility {
|
|
1267
|
+
/** The last generation in which the referenced Pokémon had the listed abilities. */
|
|
1268
|
+
generation: NamedAPIResource;
|
|
1269
|
+
/** The abilities the referenced Pokémon had up to and including the listed generation. */
|
|
1270
|
+
abilities: PokemonPastAbilitySlot[];
|
|
1271
|
+
}
|
|
1272
|
+
/** Data describing a Pokémon's stats in a previous generation. */
|
|
1273
|
+
interface PokemonPastStat {
|
|
1274
|
+
/** The last generation in which the referenced Pokémon had the listed stats. */
|
|
1275
|
+
generation: NamedAPIResource;
|
|
1276
|
+
/** The stats the Pokémon had up to and including the listed generation. */
|
|
1277
|
+
stats: PokemonStat[];
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Items the given Pokémon may be holding when encountered.
|
|
1281
|
+
*/
|
|
1282
|
+
interface PokemonHeldItem {
|
|
1283
|
+
/** The item the referenced Pokémon holds. */
|
|
1284
|
+
item: NamedAPIResource;
|
|
1285
|
+
/** The details of the different versions in which the item is held. */
|
|
1286
|
+
version_details: PokemonHeldItemVersion[];
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* The details of the different versions in which the item is held.
|
|
1290
|
+
*/
|
|
1291
|
+
interface PokemonHeldItemVersion {
|
|
1292
|
+
/** The version in which the item is held. */
|
|
1293
|
+
version: NamedAPIResource;
|
|
1294
|
+
/** How often the item is held. */
|
|
1295
|
+
rarity: number;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* A Move along with learn methods and level details pertaining to specific version groups.
|
|
1299
|
+
*/
|
|
1300
|
+
interface PokemonMove {
|
|
1301
|
+
/** The move the Pokémon can learn. */
|
|
1302
|
+
move: NamedAPIResource;
|
|
1303
|
+
/** The details of the version in which the Pokémon can learn the move. */
|
|
1304
|
+
version_group_details: PokemonMoveVersion[];
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* The details of the version in which the Pokémon can learn the move.
|
|
1308
|
+
*/
|
|
1309
|
+
interface PokemonMoveVersion {
|
|
1310
|
+
/** The method by which the move is learned. */
|
|
1311
|
+
move_learn_method: NamedAPIResource;
|
|
1312
|
+
/** The version group in which the move is learned. */
|
|
1313
|
+
version_group: NamedAPIResource;
|
|
1314
|
+
/** The minimum level to learn the move. */
|
|
1315
|
+
level_learned_at: number;
|
|
1316
|
+
/**
|
|
1317
|
+
* Order by which the Pokémon will learn the move. A newly learnt move replaces the move with
|
|
1318
|
+
* the lowest order.
|
|
1319
|
+
*/
|
|
1320
|
+
order: number | null;
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Base stat values for the given Pokémon.
|
|
1324
|
+
*/
|
|
1325
|
+
interface PokemonStat {
|
|
1326
|
+
/** The stat the Pokémon has. */
|
|
1327
|
+
stat: NamedAPIResource;
|
|
1328
|
+
/** The effort points (EV) the Pokémon has in the stat. */
|
|
1329
|
+
effort: number;
|
|
1330
|
+
/** The base value of the stat. */
|
|
1331
|
+
base_stat: number;
|
|
1332
|
+
}
|
|
1333
|
+
/** Version Sprites. */
|
|
1334
|
+
interface VersionSprites {
|
|
1335
|
+
/** Generation-I Sprites of this Pokémon. */
|
|
1336
|
+
"generation-i": GenerationISprites;
|
|
1337
|
+
/** Generation-II Sprites of this Pokémon. */
|
|
1338
|
+
"generation-ii": GenerationIISprites;
|
|
1339
|
+
/** Generation-III Sprites of this Pokémon. */
|
|
1340
|
+
"generation-iii": GenerationIIISprites;
|
|
1341
|
+
/** Generation-IV Sprites of this Pokémon. */
|
|
1342
|
+
"generation-iv": GenerationIVSprites;
|
|
1343
|
+
/** Generation-V Sprites of this Pokémon. */
|
|
1344
|
+
"generation-v": GenerationVSprites;
|
|
1345
|
+
/** Generation-VI Sprites of this Pokémon. */
|
|
1346
|
+
"generation-vi": GenerationVISprites;
|
|
1347
|
+
/** Generation-VII Sprites of this Pokémon. */
|
|
1348
|
+
"generation-vii": GenerationVIISprites;
|
|
1349
|
+
/** Generation-VIII Sprites of this Pokémon. */
|
|
1350
|
+
"generation-viii": GenerationVIIISprites;
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* A set of sprites used to depict this Pokémon in the game.
|
|
1354
|
+
* A visual representation of the various sprites can be found at [PokeAPI/sprites](https://github.com/PokeAPI/sprites#sprites).
|
|
1355
|
+
*/
|
|
1356
|
+
interface PokemonSprites {
|
|
1357
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1358
|
+
front_default: string | null;
|
|
1359
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1360
|
+
front_shiny: string | null;
|
|
1361
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1362
|
+
front_female: string | null;
|
|
1363
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1364
|
+
front_shiny_female: string | null;
|
|
1365
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1366
|
+
back_default: string | null;
|
|
1367
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1368
|
+
back_shiny: string | null;
|
|
1369
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1370
|
+
back_female: string | null;
|
|
1371
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1372
|
+
back_shiny_female: string | null;
|
|
1373
|
+
/** Dream World, Official Artwork and Home sprites. */
|
|
1374
|
+
other?: OtherPokemonSprites;
|
|
1375
|
+
/** Version Sprites of this Pokémon. */
|
|
1376
|
+
versions: VersionSprites;
|
|
1377
|
+
}
|
|
1378
|
+
/** Other Pokémon Sprites (Dream World and Official Artwork sprites). */
|
|
1379
|
+
interface OtherPokemonSprites {
|
|
1380
|
+
/** Dream World Sprites of this Pokémon. */
|
|
1381
|
+
dream_world: DreamWorld;
|
|
1382
|
+
/** Official Artwork Sprites of this Pokémon. */
|
|
1383
|
+
"official-artwork": OfficialArtwork;
|
|
1384
|
+
/** Home Artwork Sprites of this Pokémon. */
|
|
1385
|
+
home: Home;
|
|
1386
|
+
/** Pokémon Showdown animated sprites of this Pokémon. */
|
|
1387
|
+
showdown: Showdown;
|
|
1388
|
+
}
|
|
1389
|
+
/** Dream World sprites. */
|
|
1390
|
+
interface DreamWorld {
|
|
1391
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1392
|
+
front_default: string | null;
|
|
1393
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1394
|
+
front_female: string | null;
|
|
1395
|
+
}
|
|
1396
|
+
/** Official Artwork sprites. */
|
|
1397
|
+
interface OfficialArtwork {
|
|
1398
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1399
|
+
front_default: string | null;
|
|
1400
|
+
}
|
|
1401
|
+
/** Home sprites. */
|
|
1402
|
+
interface Home {
|
|
1403
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1404
|
+
front_default: string | null;
|
|
1405
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1406
|
+
front_female: string | null;
|
|
1407
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1408
|
+
front_shiny: string | null;
|
|
1409
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1410
|
+
front_shiny_female: string | null;
|
|
1411
|
+
}
|
|
1412
|
+
/** Showdown Sprites. */
|
|
1413
|
+
interface Showdown {
|
|
1414
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1415
|
+
front_default: string | null;
|
|
1416
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1417
|
+
front_female: string | null;
|
|
1418
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1419
|
+
front_shiny: string | null;
|
|
1420
|
+
/** The shiny female depiction of this Pokémon from the front in battle. */
|
|
1421
|
+
front_shiny_female: string | null;
|
|
1422
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1423
|
+
back_default: string | null;
|
|
1424
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1425
|
+
back_female: string | null;
|
|
1426
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1427
|
+
back_shiny: string | null;
|
|
1428
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1429
|
+
back_shiny_female: string | null;
|
|
1430
|
+
}
|
|
1431
|
+
/** Generation-I Sprites. */
|
|
1432
|
+
interface GenerationISprites {
|
|
1433
|
+
/** Red-blue sprites of this Pokémon. */
|
|
1434
|
+
"red-blue": RedBlue;
|
|
1435
|
+
/** Yellow sprites of this Pokémon. */
|
|
1436
|
+
yellow: Yellow;
|
|
1437
|
+
}
|
|
1438
|
+
/** Red/Blue Sprites. */
|
|
1439
|
+
interface RedBlue {
|
|
1440
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1441
|
+
back_default: string | null;
|
|
1442
|
+
/** The gray depiction of this Pokémon from the back in battle. */
|
|
1443
|
+
back_gray: string | null;
|
|
1444
|
+
/** The transparent depiction of this Pokémon from the back in battle. */
|
|
1445
|
+
back_transparent: string | null;
|
|
1446
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1447
|
+
front_default: string | null;
|
|
1448
|
+
/** The gray depiction of this Pokémon from the front in battle. */
|
|
1449
|
+
front_gray: string | null;
|
|
1450
|
+
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1451
|
+
front_transparent: string | null;
|
|
1452
|
+
}
|
|
1453
|
+
/** Yellow sprites. */
|
|
1454
|
+
interface Yellow {
|
|
1455
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1456
|
+
back_default: string | null;
|
|
1457
|
+
/** The gray depiction of this Pokémon from the back in battle. */
|
|
1458
|
+
back_gray: string | null;
|
|
1459
|
+
/** The transparent depiction of this Pokémon from the back in battle. */
|
|
1460
|
+
back_transparent: string | null;
|
|
1461
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1462
|
+
front_default: string | null;
|
|
1463
|
+
/** The gray depiction of this Pokémon from the front in battle. */
|
|
1464
|
+
front_gray: string | null;
|
|
1465
|
+
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1466
|
+
front_transparent: string | null;
|
|
1467
|
+
}
|
|
1468
|
+
/** Generation-II Sprites. */
|
|
1469
|
+
interface GenerationIISprites {
|
|
1470
|
+
/** Crystal sprites of this Pokémon. */
|
|
1471
|
+
crystal: Crystal;
|
|
1472
|
+
/** Gold sprites of this Pokémon. */
|
|
1473
|
+
gold: Gold;
|
|
1474
|
+
/** Silver sprites of this Pokémon. */
|
|
1475
|
+
silver: Silver;
|
|
1476
|
+
}
|
|
1477
|
+
/** Crystal sprites. */
|
|
1478
|
+
interface Crystal {
|
|
1479
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1480
|
+
back_default: string | null;
|
|
1481
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1482
|
+
back_shiny: string | null;
|
|
1483
|
+
/** The back shiny transparent depiction of this Pokémon from the back in battle. */
|
|
1484
|
+
back_shiny_transparent: string | null;
|
|
1485
|
+
/** The transparent depiction of this Pokémon from the back in battle. */
|
|
1486
|
+
back_transparent: string | null;
|
|
1487
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1488
|
+
front_default: string | null;
|
|
1489
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1490
|
+
front_shiny: string | null;
|
|
1491
|
+
/** The front shiny transparent depiction of this Pokémon from the front in battle. */
|
|
1492
|
+
front_shiny_transparent: string | null;
|
|
1493
|
+
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1494
|
+
front_transparent: string | null;
|
|
1495
|
+
}
|
|
1496
|
+
/** Gold sprites of this Pokémon. */
|
|
1497
|
+
interface Gold {
|
|
1498
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1499
|
+
back_default: string | null;
|
|
1500
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1501
|
+
back_shiny: string | null;
|
|
1502
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1503
|
+
front_default: string | null;
|
|
1504
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1505
|
+
front_shiny: string | null;
|
|
1506
|
+
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1507
|
+
front_transparent: string | null;
|
|
1508
|
+
}
|
|
1509
|
+
/** Silver sprites. */
|
|
1510
|
+
interface Silver {
|
|
1511
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1512
|
+
back_default: string | null;
|
|
1513
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1514
|
+
back_shiny: string | null;
|
|
1515
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1516
|
+
front_default: string | null;
|
|
1517
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1518
|
+
front_shiny: string | null;
|
|
1519
|
+
/** The transparent depiction of this Pokémon from the front in battle. */
|
|
1520
|
+
front_transparent: string | null;
|
|
1521
|
+
}
|
|
1522
|
+
/** Generation-III Sprites. */
|
|
1523
|
+
interface GenerationIIISprites {
|
|
1524
|
+
/** Emerald sprites of this Pokémon. */
|
|
1525
|
+
emerald: Emerald;
|
|
1526
|
+
/** Firered-Leafgreen sprites of this Pokémon. */
|
|
1527
|
+
"firered-leafgreen": FireredLeafgreen;
|
|
1528
|
+
/** Ruby-Sapphire sprites of this Pokémon. */
|
|
1529
|
+
"ruby-sapphire": RubySapphire;
|
|
1530
|
+
}
|
|
1531
|
+
/** Emerald sprites. */
|
|
1532
|
+
interface Emerald {
|
|
1533
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1534
|
+
front_default: string | null;
|
|
1535
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1536
|
+
front_shiny: string | null;
|
|
1537
|
+
}
|
|
1538
|
+
/** FireRed LeafGreen sprites. */
|
|
1539
|
+
interface FireredLeafgreen {
|
|
1540
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1541
|
+
back_default: string | null;
|
|
1542
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1543
|
+
back_shiny: string | null;
|
|
1544
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1545
|
+
front_default: string | null;
|
|
1546
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1547
|
+
front_shiny: string | null;
|
|
1548
|
+
}
|
|
1549
|
+
/** Ruby/Sapphire sprites. */
|
|
1550
|
+
interface RubySapphire {
|
|
1551
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1552
|
+
back_default: string | null;
|
|
1553
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1554
|
+
back_shiny: string | null;
|
|
1555
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1556
|
+
front_default: string | null;
|
|
1557
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1558
|
+
front_shiny: string | null;
|
|
1559
|
+
}
|
|
1560
|
+
/** Generation-IV Sprites. */
|
|
1561
|
+
interface GenerationIVSprites {
|
|
1562
|
+
/** Diamond-pearl Generation sprites of this Pokémon. */
|
|
1563
|
+
"diamond-pearl": DiamondPearl;
|
|
1564
|
+
/** Heartgold-Soulsilver sprites of this Pokémon. */
|
|
1565
|
+
"heartgold-soulsilver": HeartgoldSoulsilver;
|
|
1566
|
+
/** Platinum sprites of this Pokémon. */
|
|
1567
|
+
platinum: Platinum;
|
|
1568
|
+
}
|
|
1569
|
+
/** Diamond-Pearl sprites of this Pokémon. */
|
|
1570
|
+
interface DiamondPearl {
|
|
1571
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1572
|
+
back_default: string | null;
|
|
1573
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1574
|
+
back_shiny: string | null;
|
|
1575
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1576
|
+
back_female: string | null;
|
|
1577
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1578
|
+
front_default: string | null;
|
|
1579
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1580
|
+
front_shiny: string | null;
|
|
1581
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1582
|
+
back_shiny_female: string | null;
|
|
1583
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1584
|
+
front_female: string | null;
|
|
1585
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1586
|
+
front_shiny_female: string | null;
|
|
1587
|
+
}
|
|
1588
|
+
/** HeartGold-SoulSilver sprites of this Pokémon. */
|
|
1589
|
+
interface HeartgoldSoulsilver {
|
|
1590
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1591
|
+
back_default: string | null;
|
|
1592
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1593
|
+
back_shiny: string | null;
|
|
1594
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1595
|
+
back_female: string | null;
|
|
1596
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1597
|
+
front_default: string | null;
|
|
1598
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1599
|
+
front_shiny: string | null;
|
|
1600
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1601
|
+
back_shiny_female: string | null;
|
|
1602
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1603
|
+
front_female: string | null;
|
|
1604
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1605
|
+
front_shiny_female: string | null;
|
|
1606
|
+
}
|
|
1607
|
+
/** Platinum sprites of this Pokémon. */
|
|
1608
|
+
interface Platinum {
|
|
1609
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1610
|
+
back_default: string | null;
|
|
1611
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1612
|
+
back_shiny: string | null;
|
|
1613
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1614
|
+
back_female: string | null;
|
|
1615
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1616
|
+
front_default: string | null;
|
|
1617
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1618
|
+
front_shiny: string | null;
|
|
1619
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1620
|
+
back_shiny_female: string | null;
|
|
1621
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1622
|
+
front_female: string | null;
|
|
1623
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1624
|
+
front_shiny_female: string | null;
|
|
1625
|
+
}
|
|
1626
|
+
/** Generation-V Sprites. */
|
|
1627
|
+
interface GenerationVSprites {
|
|
1628
|
+
/** Black-white sprites of this Pokémon. */
|
|
1629
|
+
"black-white": BlackWhite;
|
|
1630
|
+
}
|
|
1631
|
+
/** Black/White sprites. */
|
|
1632
|
+
interface BlackWhite {
|
|
1633
|
+
/** The animated sprite of this Pokémon. */
|
|
1634
|
+
animated: Animated;
|
|
1635
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1636
|
+
back_default: string | null;
|
|
1637
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1638
|
+
back_shiny: string | null;
|
|
1639
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1640
|
+
back_female: string | null;
|
|
1641
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1642
|
+
front_default: string | null;
|
|
1643
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1644
|
+
front_shiny: string | null;
|
|
1645
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1646
|
+
back_shiny_female: string | null;
|
|
1647
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1648
|
+
front_female: string | null;
|
|
1649
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1650
|
+
front_shiny_female: string | null;
|
|
1651
|
+
}
|
|
1652
|
+
/** Animated sprites of this Pokémon. */
|
|
1653
|
+
interface Animated {
|
|
1654
|
+
/** The default depiction of this Pokémon from the back in battle. */
|
|
1655
|
+
back_default: string | null;
|
|
1656
|
+
/** The shiny depiction of this Pokémon from the back in battle. */
|
|
1657
|
+
back_shiny: string | null;
|
|
1658
|
+
/** The female depiction of this Pokémon from the back in battle. */
|
|
1659
|
+
back_female: string | null;
|
|
1660
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1661
|
+
front_default: string | null;
|
|
1662
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1663
|
+
front_shiny: string | null;
|
|
1664
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1665
|
+
back_shiny_female: string | null;
|
|
1666
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1667
|
+
front_female: string | null;
|
|
1668
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1669
|
+
front_shiny_female: string | null;
|
|
1670
|
+
}
|
|
1671
|
+
/** Generation-VI Sprites. */
|
|
1672
|
+
interface GenerationVISprites {
|
|
1673
|
+
/** Omegaruby-Alphasapphire sprites of this Pokémon. */
|
|
1674
|
+
"omegaruby-alphasapphire": OmegarubyAlphasapphire;
|
|
1675
|
+
/** X-Y sprites of this Pokémon. */
|
|
1676
|
+
"x-y": XY;
|
|
1677
|
+
}
|
|
1678
|
+
/** Omega/Ruby Alpha/Sapphire sprites. */
|
|
1679
|
+
interface OmegarubyAlphasapphire {
|
|
1680
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1681
|
+
front_default: string | null;
|
|
1682
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1683
|
+
front_female: string | null;
|
|
1684
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1685
|
+
front_shiny: string | null;
|
|
1686
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1687
|
+
front_shiny_female: string | null;
|
|
1688
|
+
}
|
|
1689
|
+
/** XY sprites. */
|
|
1690
|
+
interface XY {
|
|
1691
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1692
|
+
front_default: string | null;
|
|
1693
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1694
|
+
front_female: string | null;
|
|
1695
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1696
|
+
front_shiny: string | null;
|
|
1697
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1698
|
+
front_shiny_female: string | null;
|
|
1699
|
+
}
|
|
1700
|
+
/** Generation-VII Sprites. */
|
|
1701
|
+
interface GenerationVIISprites {
|
|
1702
|
+
/** Icon sprites of this Pokémon. */
|
|
1703
|
+
icons: GenerationViiIcons;
|
|
1704
|
+
/** Ultra-sun-ultra-moon sprites of this Pokémon. */
|
|
1705
|
+
"ultra-sun-ultra-moon": UltraSunUltraMoon;
|
|
1706
|
+
}
|
|
1707
|
+
/** Generation VII icons. */
|
|
1708
|
+
interface GenerationViiIcons {
|
|
1709
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1710
|
+
front_default: string | null;
|
|
1711
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1712
|
+
front_female: string | null;
|
|
1713
|
+
}
|
|
1714
|
+
/** Ultra Sun Ultra Moon sprites. */
|
|
1715
|
+
interface UltraSunUltraMoon {
|
|
1716
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1717
|
+
front_default: string | null;
|
|
1718
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1719
|
+
front_female: string | null;
|
|
1720
|
+
/** The shiny depiction of this Pokémon from the front in battle. */
|
|
1721
|
+
front_shiny: string | null;
|
|
1722
|
+
/** The shiny female depiction of this Pokémon from the back in battle. */
|
|
1723
|
+
front_shiny_female: string | null;
|
|
1724
|
+
}
|
|
1725
|
+
/** Generation-VIII Sprites. */
|
|
1726
|
+
interface GenerationVIIISprites {
|
|
1727
|
+
/** Icon sprites of this Pokémon. */
|
|
1728
|
+
icons: GenerationViiiIcons;
|
|
1729
|
+
}
|
|
1730
|
+
/** Generation VIII icons. */
|
|
1731
|
+
interface GenerationViiiIcons {
|
|
1732
|
+
/** The default depiction of this Pokémon from the front in battle. */
|
|
1733
|
+
front_default: string | null;
|
|
1734
|
+
/** The female depiction of this Pokémon from the front in battle. */
|
|
1735
|
+
front_female: string | null;
|
|
1736
|
+
}
|
|
1737
|
+
/**
|
|
1738
|
+
* ## Location Area Encounter
|
|
1739
|
+
* Pokémon location areas where Pokémon can be found.
|
|
1740
|
+
*/
|
|
1741
|
+
interface LocationAreaEncounter {
|
|
1742
|
+
/** The location area the referenced Pokémon can be encountered in. */
|
|
1743
|
+
location_area: NamedAPIResource;
|
|
1744
|
+
/** A list of versions and encounters with the referenced Pokémon that might happen. */
|
|
1745
|
+
version_details: VersionEncounterDetail[];
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* ## Pokémon Colors
|
|
1749
|
+
* Colors used for sorting Pokémon in a Pokédex.
|
|
1750
|
+
* The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body.
|
|
1751
|
+
* No orange category exists; Pokémon that are primarily orange are listed as red or brown.
|
|
1752
|
+
*/
|
|
1753
|
+
interface PokemonColor {
|
|
1754
|
+
/** The identifier for this resource. */
|
|
1755
|
+
id: number;
|
|
1756
|
+
/** The name for this resource. */
|
|
1757
|
+
name: "black" | "blue" | "brown" | "gray" | "green" | "pink" | "purple" | "red" | "white" | "yellow";
|
|
1758
|
+
/** The name of this resource listed in different languages. */
|
|
1759
|
+
names: Name[];
|
|
1760
|
+
/** A list of the Pokémon species that have this color. */
|
|
1761
|
+
pokemon_species: NamedAPIResource[];
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
* ## Pokémon Form
|
|
1765
|
+
* Some Pokémon may appear in one of multiple, visually different forms.
|
|
1766
|
+
* These differences are purely cosmetic. For variations within a Pokémon species,
|
|
1767
|
+
* which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety.
|
|
1768
|
+
*/
|
|
1769
|
+
interface PokemonForm {
|
|
1770
|
+
/** The identifier for this resource. */
|
|
1771
|
+
id: number;
|
|
1772
|
+
/** The name for this resource. */
|
|
1773
|
+
name: string;
|
|
1774
|
+
/** The order in which forms should be sorted within all forms.
|
|
1775
|
+
* Multiple forms may have equal order, in which case they should fall back on sorting by name.
|
|
1776
|
+
*/
|
|
1777
|
+
order: number;
|
|
1778
|
+
/** The order in which forms should be sorted within a species' forms. */
|
|
1779
|
+
form_order: number;
|
|
1780
|
+
/** True for exactly one form used as the default for each Pokémon. */
|
|
1781
|
+
is_default: boolean;
|
|
1782
|
+
/** Whether or not this form can only happen during battle. */
|
|
1783
|
+
is_battle_only: boolean;
|
|
1784
|
+
/** Whether or not this form requires mega evolution. */
|
|
1785
|
+
is_mega: boolean;
|
|
1786
|
+
/** The name of this form. */
|
|
1787
|
+
form_name: string;
|
|
1788
|
+
/** The Pokémon that can take on this form. */
|
|
1789
|
+
pokemon: NamedAPIResource;
|
|
1790
|
+
/** A set of sprites used to depict this Pokémon form in the game. */
|
|
1791
|
+
sprites: PokemonFormSprites;
|
|
1792
|
+
/** The version group this Pokémon form was introduced in. */
|
|
1793
|
+
version_group: NamedAPIResource;
|
|
1794
|
+
/** The form specific full name of this Pokémon form, or empty if the form does not have a specific name. */
|
|
1795
|
+
names: Name[];
|
|
1796
|
+
/** The form specific form name of this Pokémon form, or empty if the form does not have a specific name. */
|
|
1797
|
+
form_names: Name[];
|
|
1798
|
+
/** A list of details showing types this Pokémon has. */
|
|
1799
|
+
types: PokemonType[];
|
|
1800
|
+
/**
|
|
1801
|
+
* The conditions that trigger this (usually battle-only) form, such as holding a Mega Stone or
|
|
1802
|
+
* having a specific ability. Empty for forms that are not triggered.
|
|
1803
|
+
*/
|
|
1804
|
+
trigger_conditions: PokemonFormCondition[];
|
|
1805
|
+
}
|
|
1806
|
+
/** A condition that causes a Pokémon to take on a particular form. */
|
|
1807
|
+
interface PokemonFormCondition {
|
|
1808
|
+
/** The name of the resource that triggers the form. */
|
|
1809
|
+
name: string;
|
|
1810
|
+
/** The URL of the resource that triggers the form. */
|
|
1811
|
+
url: string;
|
|
1812
|
+
/** What kind of resource triggers the form, e.g. `held-item` or `ability`. */
|
|
1813
|
+
trigger: string;
|
|
1814
|
+
/** The form the Pokémon changes from, when the condition switches between two forms. */
|
|
1815
|
+
base_form?: NamedAPIResource;
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* Sprites used to depict this Pokémon form in the game.
|
|
1819
|
+
*/
|
|
1820
|
+
interface PokemonFormSprites {
|
|
1821
|
+
/** The default depiction of this Pokémon form from the front in battle. */
|
|
1822
|
+
front_default: string | null;
|
|
1823
|
+
/** The female depiction of this Pokémon form from the front in battle. */
|
|
1824
|
+
front_female: string | null;
|
|
1825
|
+
/** The shiny depiction of this Pokémon form from the front in battle. */
|
|
1826
|
+
front_shiny: string | null;
|
|
1827
|
+
/** The shiny female depiction of this Pokémon form from the front in battle. */
|
|
1828
|
+
front_shiny_female: string | null;
|
|
1829
|
+
/** The default depiction of this Pokémon form from the back in battle. */
|
|
1830
|
+
back_default: string | null;
|
|
1831
|
+
/** The female depiction of this Pokémon form from the back in battle. */
|
|
1832
|
+
back_female: string | null;
|
|
1833
|
+
/** The shiny depiction of this Pokémon form from the back in battle. */
|
|
1834
|
+
back_shiny: string | null;
|
|
1835
|
+
/** The shiny female depiction of this Pokémon form from the back in battle. */
|
|
1836
|
+
back_shiny_female: string | null;
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* ## Pokémon Habitat
|
|
1840
|
+
* Habitats are generally different terrain Pokémon can be found in
|
|
1841
|
+
* but can also be areas designated for rare or legendary Pokémon.
|
|
1842
|
+
*/
|
|
1843
|
+
interface PokemonHabitat {
|
|
1844
|
+
/** The identifier for this resource. */
|
|
1845
|
+
id: number;
|
|
1846
|
+
/** The name for this resource. */
|
|
1847
|
+
name: "cave" | "forest" | "grassland" | "mountain" | "rare" | "rough-terrain" | "sea" | "urban" | "waters-edge";
|
|
1848
|
+
/** The name of this resource listed in different languages. */
|
|
1849
|
+
names: Name[];
|
|
1850
|
+
/** A list of the Pokémon species that can be found in this habitat. */
|
|
1851
|
+
pokemon_species: NamedAPIResource[];
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* ## Pokémon Shape
|
|
1855
|
+
* Shapes used for sorting Pokémon in a Pokédex.
|
|
1856
|
+
*/
|
|
1857
|
+
interface PokemonShape {
|
|
1858
|
+
/** The identifier for this resource. */
|
|
1859
|
+
id: number;
|
|
1860
|
+
/** The name for this resource. */
|
|
1861
|
+
name: string;
|
|
1862
|
+
/** The "scientific" name of this Pokémon shape listed in different languages. */
|
|
1863
|
+
awesome_names: AwesomeName[];
|
|
1864
|
+
/** The name of this resource listed in different languages. */
|
|
1865
|
+
names: Name[];
|
|
1866
|
+
/** A list of the Pokémon species that have this shape. */
|
|
1867
|
+
pokemon_species: NamedAPIResource[];
|
|
1868
|
+
}
|
|
1869
|
+
/**
|
|
1870
|
+
* The "scientific" name of the Pokémon shape listed in different languages.
|
|
1871
|
+
*/
|
|
1872
|
+
interface AwesomeName {
|
|
1873
|
+
/** The localized "scientific" name for an API resource in a specific language. */
|
|
1874
|
+
awesome_name: string;
|
|
1875
|
+
/** The language this "scientific" name is in. */
|
|
1876
|
+
language: NamedAPIResource;
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* ## Pokémon Species
|
|
1880
|
+
* A Pokémon Species forms the basis for at least one Pokémon.
|
|
1881
|
+
* Attributes of a Pokémon species are shared across all varieties of Pokémon within the species.
|
|
1882
|
+
* A good example is Wormadam; Wormadam is the species which can be found in three different varieties,
|
|
1883
|
+
* Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant */
|
|
1884
|
+
interface PokemonSpecies {
|
|
1885
|
+
/** The identifier for this resource. */
|
|
1886
|
+
id: number;
|
|
1887
|
+
/** The name for this resource. */
|
|
1888
|
+
name: string;
|
|
1889
|
+
/** The order in which species should be sorted. Based on National Dex order, except families are grouped together and sorted by stage. */
|
|
1890
|
+
order: number;
|
|
1891
|
+
/** The chance of this Pokémon being female, in eighths; or -1 for genderless. */
|
|
1892
|
+
gender_rate: number;
|
|
1893
|
+
/** The base capture rate; up to 255. The higher the number, the easier the catch. */
|
|
1894
|
+
capture_rate: number;
|
|
1895
|
+
/** The happiness when caught by a normal Pokéball; up to 255. The higher the number, the happier the Pokémon. */
|
|
1896
|
+
base_happiness: number;
|
|
1897
|
+
/** Whether or not this is a baby Pokémon. */
|
|
1898
|
+
is_baby: boolean;
|
|
1899
|
+
/** Whether or not this is a legendary Pokémon. */
|
|
1900
|
+
is_legendary: boolean;
|
|
1901
|
+
/** Whether or not this is a mythical Pokémon. */
|
|
1902
|
+
is_mythical: boolean;
|
|
1903
|
+
/** Initial hatch counter: one must walk 255 × (hatch_counter + 1) steps before this Pokémon's egg hatches, unless utilizing bonuses like Flame Body's. */
|
|
1904
|
+
hatch_counter: number;
|
|
1905
|
+
/** Whether or not this Pokémon has visual gender differences. */
|
|
1906
|
+
has_gender_differences: boolean;
|
|
1907
|
+
/** Whether or not this Pokémon has multiple forms and can switch between them. */
|
|
1908
|
+
forms_switchable: boolean;
|
|
1909
|
+
/** The rate at which this Pokémon species gains levels. */
|
|
1910
|
+
growth_rate: NamedAPIResource;
|
|
1911
|
+
/** A list of Pokédexes and the indexes reserved within them for this Pokémon species. */
|
|
1912
|
+
pokedex_numbers: PokemonSpeciesDexEntry[];
|
|
1913
|
+
/** A list of egg groups this Pokémon species is a member of. */
|
|
1914
|
+
egg_groups: NamedAPIResource[];
|
|
1915
|
+
/** The color of this Pokémon for Pokédex search. */
|
|
1916
|
+
color: NamedAPIResource;
|
|
1917
|
+
/** The shape of this Pokémon for Pokédex search. */
|
|
1918
|
+
shape: NamedAPIResource;
|
|
1919
|
+
/** The Pokémon species that evolves into this Pokémon species. */
|
|
1920
|
+
evolves_from_species: NamedAPIResource;
|
|
1921
|
+
/** The evolution chain this Pokémon species is a member of. */
|
|
1922
|
+
evolution_chain: APIResource;
|
|
1923
|
+
/** The habitat this Pokémon species can be encountered in. */
|
|
1924
|
+
habitat: NamedAPIResource;
|
|
1925
|
+
/** The generation this Pokémon species was introduced in. */
|
|
1926
|
+
generation: NamedAPIResource;
|
|
1927
|
+
/** The name of this resource listed in different languages. */
|
|
1928
|
+
names: Name[];
|
|
1929
|
+
/** A list of encounters that can be had with this Pokémon species in pal park. */
|
|
1930
|
+
pal_park_encounters: PalParkEncounterArea[];
|
|
1931
|
+
/** A list of flavor text entries for this Pokémon species. */
|
|
1932
|
+
flavor_text_entries: FlavorText[];
|
|
1933
|
+
/** Descriptions of different forms Pokémon take on within the Pokémon species. */
|
|
1934
|
+
form_descriptions: Description[];
|
|
1935
|
+
/** The genus of this Pokémon species listed in multiple languages. */
|
|
1936
|
+
genera: Genus[];
|
|
1937
|
+
/** A list of the Pokémon that exist within this Pokémon species. */
|
|
1938
|
+
varieties: PokemonSpeciesVariety[];
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* The genus of the given Pokémon species listed in multiple languages.
|
|
1942
|
+
*/
|
|
1943
|
+
interface Genus {
|
|
1944
|
+
/** The localized genus for the referenced Pokémon species. */
|
|
1945
|
+
genus: string;
|
|
1946
|
+
/** The language this genus is in. */
|
|
1947
|
+
language: NamedAPIResource;
|
|
1948
|
+
}
|
|
1949
|
+
/** Pokédexes and the indexes reserved within them for the given Pokémon species. */
|
|
1950
|
+
interface PokemonSpeciesDexEntry {
|
|
1951
|
+
/** The index number within the Pokédex. */
|
|
1952
|
+
entry_number: number;
|
|
1953
|
+
/** The Pokédex the referenced Pokémon species can be found in. */
|
|
1954
|
+
pokedex: NamedAPIResource;
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Encounter that can be had with the given Pokémon species in pal park.
|
|
1958
|
+
*/
|
|
1959
|
+
interface PalParkEncounterArea {
|
|
1960
|
+
/** The base score given to the player when the referenced Pokémon is caught during a pal park run. */
|
|
1961
|
+
base_score: number;
|
|
1962
|
+
/** The base rate for encountering the referenced Pokémon in this pal park area. */
|
|
1963
|
+
rate: number;
|
|
1964
|
+
/** The pal park area where this encounter happens. */
|
|
1965
|
+
area: NamedAPIResource;
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* Pokémon that exist within this Pokémon species.
|
|
1969
|
+
*/
|
|
1970
|
+
interface PokemonSpeciesVariety {
|
|
1971
|
+
/** Whether this variety is the default variety. */
|
|
1972
|
+
is_default: boolean;
|
|
1973
|
+
/** The Pokémon variety. */
|
|
1974
|
+
pokemon: NamedAPIResource;
|
|
1975
|
+
}
|
|
1976
|
+
//#endregion
|
|
1977
|
+
//#region src/models/Pokemon/stats.d.ts
|
|
1978
|
+
/**
|
|
1979
|
+
* ## Stat
|
|
1980
|
+
* Stats determine certain aspects of battles. Each Pokémon has a value for each stat
|
|
1981
|
+
* which grows as they gain levels and can be altered momentarily by effects in battles.
|
|
1982
|
+
*/
|
|
1983
|
+
interface Stat {
|
|
1984
|
+
/** The identifier for this resource. */
|
|
1985
|
+
id: number;
|
|
1986
|
+
/** The name for this resource. */
|
|
1987
|
+
name: "hp" | "attack" | "defense" | "special-attack" | "special-defense" | "speed" | "accuracy" | "evasion";
|
|
1988
|
+
/** ID the games use for this stat. */
|
|
1989
|
+
game_index: number;
|
|
1990
|
+
/** Whether this stat only exists within a battle. */
|
|
1991
|
+
is_battle_only: boolean;
|
|
1992
|
+
/** A detail of moves which affect this stat positively or negatively. */
|
|
1993
|
+
affecting_moves: MoveStatAffectSets;
|
|
1994
|
+
/** A detail of natures which affect this stat positively or negatively. */
|
|
1995
|
+
affecting_natures: NatureStatAffectSets;
|
|
1996
|
+
/** A list of characteristics that are set on a Pokémon when its highest base stat is this stat. */
|
|
1997
|
+
characteristics: APIResource[];
|
|
1998
|
+
/** The class of damage this stat is directly related to. */
|
|
1999
|
+
move_damage_class: NamedAPIResource | null;
|
|
2000
|
+
/** The name of this resource listed in different languages. */
|
|
2001
|
+
names: Name[];
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* A detail of natures which affect the given stat positively or negatively.
|
|
2005
|
+
*/
|
|
2006
|
+
interface NatureStatAffectSets {
|
|
2007
|
+
/** A list of natures and how they change the referenced stat. */
|
|
2008
|
+
increase: NamedAPIResource[];
|
|
2009
|
+
/** A list of natures and how they change the referenced stat. */
|
|
2010
|
+
decrease: NamedAPIResource[];
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* A move and how it changes the referenced stat.
|
|
2014
|
+
*/
|
|
2015
|
+
interface MoveStatAffect {
|
|
2016
|
+
/** The maximum amount of change to the referenced stat. */
|
|
2017
|
+
change: -1 | -2 | 1 | 2;
|
|
2018
|
+
/** The move causing the change. */
|
|
2019
|
+
move: NamedAPIResource;
|
|
2020
|
+
}
|
|
2021
|
+
/**
|
|
2022
|
+
* A detail of moves which affect a stat positively or negatively.
|
|
2023
|
+
*/
|
|
2024
|
+
interface MoveStatAffectSets {
|
|
2025
|
+
/** A list of moves and how they change the referenced stat. */
|
|
2026
|
+
increase: MoveStatAffect[];
|
|
2027
|
+
/** A list of moves and how they change the referenced stat. */
|
|
2028
|
+
decrease: MoveStatAffect[];
|
|
2029
|
+
}
|
|
2030
|
+
//#endregion
|
|
2031
|
+
//#region src/models/Pokemon/type.d.ts
|
|
2032
|
+
/**
|
|
2033
|
+
* Details of Pokémon for a specific type.
|
|
2034
|
+
*/
|
|
2035
|
+
interface TypePokemon {
|
|
2036
|
+
/** The order the Pokémon's types are listed in. */
|
|
2037
|
+
slot: number;
|
|
2038
|
+
/** The Pokémon that has the referenced type. */
|
|
2039
|
+
pokemon: NamedAPIResource;
|
|
2040
|
+
}
|
|
2041
|
+
/**
|
|
2042
|
+
* Detail of how effective a type is toward others and vice versa.
|
|
2043
|
+
*/
|
|
2044
|
+
interface TypeRelations {
|
|
2045
|
+
/** A list of types this type has no effect on. */
|
|
2046
|
+
no_damage_to: NamedAPIResource[];
|
|
2047
|
+
/** A list of types this type is not very effective against. */
|
|
2048
|
+
half_damage_to: NamedAPIResource[];
|
|
2049
|
+
/** A list of types this type is very effective against. */
|
|
2050
|
+
double_damage_to: NamedAPIResource[];
|
|
2051
|
+
/** A list of types that have no effect on this type. */
|
|
2052
|
+
no_damage_from: NamedAPIResource[];
|
|
2053
|
+
/** A list of types that are not very effective against this type. */
|
|
2054
|
+
half_damage_from: NamedAPIResource[];
|
|
2055
|
+
/** A list of types that are very effective against this type. */
|
|
2056
|
+
double_damage_from: NamedAPIResource[];
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* Details of how effective this type was toward others and vice versa in a previous generation.
|
|
2060
|
+
*/
|
|
2061
|
+
interface TypeRelationsPast {
|
|
2062
|
+
/** The last generation in which the referenced type had the listed damage relations. */
|
|
2063
|
+
generation: NamedAPIResource;
|
|
2064
|
+
/** The damage relations the referenced type had up to and including the listed generation. */
|
|
2065
|
+
damage_relations: TypeRelations;
|
|
2066
|
+
}
|
|
2067
|
+
/**
|
|
2068
|
+
* ## Type
|
|
2069
|
+
* Types are properties for Pokémon and their moves.
|
|
2070
|
+
* Each type has three properties: which types of Pokémon it is super effective against,
|
|
2071
|
+
* which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against.
|
|
2072
|
+
*/
|
|
2073
|
+
interface Type {
|
|
2074
|
+
/** The identifier for this resource. */
|
|
2075
|
+
id: number;
|
|
2076
|
+
/** The name for this resource. */
|
|
2077
|
+
name: string;
|
|
2078
|
+
/** A detail of how effective this type is toward others and vice versa. */
|
|
2079
|
+
damage_relations: TypeRelations;
|
|
2080
|
+
/** A list of details of how effective this type was toward others and vice versa in previous generations. */
|
|
2081
|
+
past_damage_relations: TypeRelationsPast[];
|
|
2082
|
+
/** A list of game indices relevant to this item by generation. */
|
|
2083
|
+
game_indices: GenerationGameIndex[];
|
|
2084
|
+
/** The generation this type was introduced in. */
|
|
2085
|
+
generation: NamedAPIResource;
|
|
2086
|
+
/** The class of damage inflicted by this type. */
|
|
2087
|
+
move_damage_class: NamedAPIResource;
|
|
2088
|
+
/** The name of this resource listed in different languages. */
|
|
2089
|
+
names: Name[];
|
|
2090
|
+
/** A list of details of Pokémon that have this type. */
|
|
2091
|
+
pokemon: TypePokemon[];
|
|
2092
|
+
/** A list of moves that have this type. */
|
|
2093
|
+
moves: NamedAPIResource[];
|
|
2094
|
+
}
|
|
2095
|
+
//#endregion
|
|
2096
|
+
//#region src/models/Moves/moves.d.ts
|
|
2097
|
+
/**
|
|
2098
|
+
* ## Move Target
|
|
2099
|
+
* Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
|
|
2100
|
+
*/
|
|
2101
|
+
interface MoveTarget {
|
|
2102
|
+
/** The identifier for this resource. */
|
|
2103
|
+
id: number;
|
|
2104
|
+
/** The name for this resource. */
|
|
2105
|
+
name: string;
|
|
2106
|
+
/** The description of this resource listed in different languages. */
|
|
2107
|
+
descriptions: Description[];
|
|
2108
|
+
/** A list of moves that are directed at this target. */
|
|
2109
|
+
moves: NamedAPIResource[];
|
|
2110
|
+
/** The name of this resource listed in different languages. */
|
|
2111
|
+
names: Name[];
|
|
2112
|
+
}
|
|
2113
|
+
/**
|
|
2114
|
+
* ## Move Learn Method
|
|
2115
|
+
* Methods by which Pokémon can learn moves.
|
|
2116
|
+
*/
|
|
2117
|
+
interface MoveLearnMethod {
|
|
2118
|
+
/** The identifier for this resource. */
|
|
2119
|
+
id: number;
|
|
2120
|
+
/** The name for this resource. */
|
|
2121
|
+
name: string;
|
|
2122
|
+
/** The description of this resource listed in different languages. */
|
|
2123
|
+
descriptions: Description[];
|
|
2124
|
+
/** The name of this resource listed in different languages. */
|
|
2125
|
+
names: Name[];
|
|
2126
|
+
/** A list of version groups where moves can be learned through this method. */
|
|
2127
|
+
version_groups: NamedAPIResource[];
|
|
2128
|
+
}
|
|
2129
|
+
/**
|
|
2130
|
+
* ## Move Damage Class
|
|
2131
|
+
* Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
2132
|
+
*/
|
|
2133
|
+
interface MoveDamageClass {
|
|
2134
|
+
/** The identifier for this resource. */
|
|
2135
|
+
id: number;
|
|
2136
|
+
/** The name for this resource. */
|
|
2137
|
+
name: string;
|
|
2138
|
+
/** The description of this resource listed in different languages. */
|
|
2139
|
+
descriptions: Description[];
|
|
2140
|
+
/** A list of moves that fall into this damage class. */
|
|
2141
|
+
moves: NamedAPIResource[];
|
|
2142
|
+
/** The name of this resource listed in different languages. */
|
|
2143
|
+
names: Name[];
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* ## Move Category
|
|
2147
|
+
* Very general categories that loosely group move effects.
|
|
2148
|
+
*/
|
|
2149
|
+
interface MoveCategory {
|
|
2150
|
+
/** The identifier for this resource. */
|
|
2151
|
+
id: number;
|
|
2152
|
+
/** The name for this resource. */
|
|
2153
|
+
name: string;
|
|
2154
|
+
/** A list of moves that fall into this category. */
|
|
2155
|
+
moves: NamedAPIResource[];
|
|
2156
|
+
/** The description of this resource listed in different languages. */
|
|
2157
|
+
descriptions: Description[];
|
|
2158
|
+
}
|
|
2159
|
+
/**
|
|
2160
|
+
* ## Move Battle Style
|
|
2161
|
+
* Styles of moves when used in the Battle Palace.
|
|
2162
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail.
|
|
2163
|
+
*/
|
|
2164
|
+
interface MoveBattleStyle {
|
|
2165
|
+
/** The identifier for this resource. */
|
|
2166
|
+
id: number;
|
|
2167
|
+
/** The name for this resource. */
|
|
2168
|
+
name: "attack" | "defense" | "support";
|
|
2169
|
+
/** The name of this resource listed in different languages. */
|
|
2170
|
+
names: Name[];
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* ## Move Ailment
|
|
2174
|
+
* Move Ailments are status conditions caused by moves used during battle.
|
|
2175
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail.
|
|
2176
|
+
*/
|
|
2177
|
+
interface MoveAilment {
|
|
2178
|
+
/** The identifier for this resource. */
|
|
2179
|
+
id: number;
|
|
2180
|
+
/** The name for this resource. */
|
|
2181
|
+
name: string;
|
|
2182
|
+
/** A list of moves that cause this ailment. */
|
|
2183
|
+
moves: NamedAPIResource[];
|
|
2184
|
+
/** The name of this resource listed in different languages. */
|
|
2185
|
+
names: Name[];
|
|
2186
|
+
}
|
|
2187
|
+
/** The values a move had in a previous version group. */
|
|
2188
|
+
interface PastMoveStatValues {
|
|
2189
|
+
/** The percent value of how likely this move is to be successful. */
|
|
2190
|
+
accuracy: number | null;
|
|
2191
|
+
/** The percent value of how likely it is this move's effect will take effect. */
|
|
2192
|
+
effect_chance: number | null;
|
|
2193
|
+
/** The base power of this move with a value of 0 if it does not have a base power. */
|
|
2194
|
+
power: number | null;
|
|
2195
|
+
/** Power points. The number of times this move can be used. */
|
|
2196
|
+
pp: number | null;
|
|
2197
|
+
/** The effect of this move listed in different languages. */
|
|
2198
|
+
effect_entries: VerboseEffect[];
|
|
2199
|
+
/** The elemental type of this move. */
|
|
2200
|
+
type: NamedAPIResource | null;
|
|
2201
|
+
/** The version group in which these move stat values were in effect. */
|
|
2202
|
+
version_group: NamedAPIResource;
|
|
2203
|
+
}
|
|
2204
|
+
/** A stat this move changes, and by how much. */
|
|
2205
|
+
interface MoveStatChange {
|
|
2206
|
+
/** The amount of change. */
|
|
2207
|
+
change: number;
|
|
2208
|
+
/** The stat being affected. */
|
|
2209
|
+
stat: NamedAPIResource;
|
|
2210
|
+
}
|
|
2211
|
+
/** Metadata about a move. */
|
|
2212
|
+
interface MoveMetaData {
|
|
2213
|
+
/** The status ailment this move inflicts on its target. */
|
|
2214
|
+
ailment: NamedAPIResource;
|
|
2215
|
+
/** The category of move this move falls under, e.g. damage or ailment. */
|
|
2216
|
+
category: NamedAPIResource;
|
|
2217
|
+
/** The minimum number of times this move hits. Null if it always only hits once. */
|
|
2218
|
+
min_hits: number | null;
|
|
2219
|
+
/** The maximum number of times this move hits. Null if it always only hits once. */
|
|
2220
|
+
max_hits: number | null;
|
|
2221
|
+
/** The minimum number of turns this move continues to take effect. Null if it always only lasts one turn. */
|
|
2222
|
+
min_turns: number | null;
|
|
2223
|
+
/** The maximum number of turns this move continues to take effect. Null if it always only lasts one turn. */
|
|
2224
|
+
max_turns: number | null;
|
|
2225
|
+
/** HP drain (if positive) or Recoil damage (if negative), in percent of damage done. */
|
|
2226
|
+
drain: number;
|
|
2227
|
+
/** The amount of hp gained by the attacking Pokémon, in percent of its maximum HP. */
|
|
2228
|
+
healing: number;
|
|
2229
|
+
/** Critical hit rate bonus. */
|
|
2230
|
+
crit_rate: number;
|
|
2231
|
+
/** The likelihood this attack will cause an ailment. */
|
|
2232
|
+
ailment_chance: number;
|
|
2233
|
+
/** The likelihood this attack will cause the target Pokémon to flinch. */
|
|
2234
|
+
flinch_chance: number;
|
|
2235
|
+
/** The likelihood this attack will cause a stat change in the target Pokémon. */
|
|
2236
|
+
stat_chance: number;
|
|
2237
|
+
}
|
|
2238
|
+
/**
|
|
2239
|
+
* The flavor text of this move.
|
|
2240
|
+
*/
|
|
2241
|
+
interface MoveFlavorText {
|
|
2242
|
+
/** The localized flavor text for an API resource in a specific language. */
|
|
2243
|
+
flavor_text: string;
|
|
2244
|
+
/** The language this name is in. */
|
|
2245
|
+
language: NamedAPIResource;
|
|
2246
|
+
/** The version group that uses this flavor text. */
|
|
2247
|
+
version_group: NamedAPIResource;
|
|
2248
|
+
}
|
|
2249
|
+
/**
|
|
2250
|
+
* A detail of moves this move can be used before or after, granting additional appeal points in super contests.
|
|
2251
|
+
*/
|
|
2252
|
+
interface ContestComboDetail {
|
|
2253
|
+
/** A list of moves to use before this move. */
|
|
2254
|
+
use_before: NamedAPIResource[] | null;
|
|
2255
|
+
/** A list of moves to use after this move. */
|
|
2256
|
+
use_after: NamedAPIResource[] | null;
|
|
2257
|
+
}
|
|
2258
|
+
/**
|
|
2259
|
+
* A detail of normal and super contest combos that require this move.
|
|
2260
|
+
*/
|
|
2261
|
+
interface ContestComboSets {
|
|
2262
|
+
/** A detail of moves this move can be used before or after, granting additional appeal points in contests. */
|
|
2263
|
+
normal: ContestComboDetail;
|
|
2264
|
+
/** A detail of moves this move can be used before or after, granting additional appeal points in super contests. */
|
|
2265
|
+
super: ContestComboDetail;
|
|
2266
|
+
}
|
|
2267
|
+
/**
|
|
2268
|
+
* ## Move
|
|
2269
|
+
* Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn.
|
|
2270
|
+
* Some moves (including those learned by Hidden Machine) can be used outside of battle as well,
|
|
2271
|
+
* usually for the purpose of removing obstacles or exploring new areas.
|
|
2272
|
+
* - See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Move) for greater detail.
|
|
2273
|
+
*/
|
|
2274
|
+
interface Move {
|
|
2275
|
+
/** The identifier for this resource. */
|
|
2276
|
+
id: number;
|
|
2277
|
+
/** The name for this resource. */
|
|
2278
|
+
name: string;
|
|
2279
|
+
/** The percent value of how likely this move is to be successful. */
|
|
2280
|
+
accuracy: number | null;
|
|
2281
|
+
/** The percent value of how likely it is this move's effect will happen. */
|
|
2282
|
+
effect_chance: number | null;
|
|
2283
|
+
/** Power points. The number of times this move can be used. */
|
|
2284
|
+
pp: number | null;
|
|
2285
|
+
/**
|
|
2286
|
+
* A value between -8 and 8. Sets the order in which moves are executed during battle.
|
|
2287
|
+
* See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Priority) for greater detail.
|
|
2288
|
+
*/
|
|
2289
|
+
priority: -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
2290
|
+
/** The base power of this move with a value of 0 if it does not have a base power. */
|
|
2291
|
+
power: number | null;
|
|
2292
|
+
/** A detail of normal and super contest combos that require this move. */
|
|
2293
|
+
contest_combos: ContestComboSets | null;
|
|
2294
|
+
/** The type of appeal this move gives a Pokémon when used in a contest. */
|
|
2295
|
+
contest_type: NamedAPIResource | null;
|
|
2296
|
+
/** The effect the move has when used in a contest. */
|
|
2297
|
+
contest_effect: APIResource | null;
|
|
2298
|
+
/** The type of damage the move inflicts on the target, e.g. physical. */
|
|
2299
|
+
damage_class: NamedAPIResource | null;
|
|
2300
|
+
/** The effect of this move listed in different languages. */
|
|
2301
|
+
effect_entries: VerboseEffect[];
|
|
2302
|
+
/** The list of previous effects this move has had across version groups of the games. */
|
|
2303
|
+
effect_changes: AbilityEffectChange[];
|
|
2304
|
+
/** The flavor text of this move listed in different languages. */
|
|
2305
|
+
flavor_text_entries: MoveFlavorText[];
|
|
2306
|
+
/** The generation in which this move was introduced. */
|
|
2307
|
+
generation: NamedAPIResource;
|
|
2308
|
+
/** A list of the machines that teach this move. */
|
|
2309
|
+
machines: MachineVersionDetail[];
|
|
2310
|
+
/** Metadata about this move. */
|
|
2311
|
+
meta: MoveMetaData | null;
|
|
2312
|
+
/** The name of this resource listed in different languages. */
|
|
2313
|
+
names: Name[];
|
|
2314
|
+
/** A list of move resource value changes across version groups of the game. */
|
|
2315
|
+
past_values: PastMoveStatValues[];
|
|
2316
|
+
/** A list of stats this move affects and by how much. */
|
|
2317
|
+
stat_changes: MoveStatChange[];
|
|
2318
|
+
/** The effect the move has when used in a super contest. */
|
|
2319
|
+
super_contest_effect: APIResource | null;
|
|
2320
|
+
/** The type of target that will receive the effects of the attack. */
|
|
2321
|
+
target: NamedAPIResource;
|
|
2322
|
+
/** The elemental type of this move. */
|
|
2323
|
+
type: NamedAPIResource;
|
|
2324
|
+
/** A list of Pokémon that learned this move. */
|
|
2325
|
+
learned_by_pokemon: NamedAPIResource[];
|
|
2326
|
+
}
|
|
2327
|
+
//#endregion
|
|
2328
|
+
//#region src/config/cache.d.ts
|
|
2329
|
+
/**
|
|
2330
|
+
* ## Cache Store
|
|
2331
|
+
* The contract a client uses to cache responses, keyed by request URL.
|
|
2332
|
+
*
|
|
2333
|
+
* Every method may return a promise, so remote backends (Redis, KV stores) work
|
|
2334
|
+
* as-is. Values cross this boundary as parsed objects; expiry is the store's own
|
|
2335
|
+
* business.
|
|
2336
|
+
*/
|
|
2337
|
+
interface CacheStore {
|
|
2338
|
+
get(key: string): unknown | Promise<unknown>;
|
|
2339
|
+
set(key: string, value: unknown): void | Promise<void>;
|
|
2340
|
+
delete?(key: string): void | Promise<void>;
|
|
2341
|
+
clear?(): void | Promise<void>;
|
|
2342
|
+
}
|
|
2343
|
+
/**
|
|
2344
|
+
* ## Memory Cache Options
|
|
2345
|
+
* Used to configure the default in-memory store.
|
|
2346
|
+
*/
|
|
2347
|
+
interface MemoryCacheOptions {
|
|
2348
|
+
/** How long a cached response stays fresh, in milliseconds. Defaults to 5 minutes. */
|
|
2349
|
+
ttl?: number;
|
|
2350
|
+
/** Maximum number of responses kept. The least recently used entry is evicted. Defaults to 500. */
|
|
2351
|
+
maxEntries?: number;
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* ## Memory Cache
|
|
2355
|
+
* The default {@link CacheStore}: a bounded, time-to-live cache held in memory.
|
|
2356
|
+
*
|
|
2357
|
+
* Values are stored and returned by reference — mutating a response also mutates
|
|
2358
|
+
* what later cache hits return, so treat responses as read-only.
|
|
2359
|
+
*/
|
|
2360
|
+
declare class MemoryCache implements CacheStore {
|
|
2361
|
+
private readonly entries;
|
|
2362
|
+
private readonly ttl;
|
|
2363
|
+
private readonly maxEntries;
|
|
2364
|
+
constructor(options?: MemoryCacheOptions);
|
|
2365
|
+
get(key: string): unknown;
|
|
2366
|
+
set(key: string, value: unknown): void;
|
|
2367
|
+
delete(key: string): void;
|
|
2368
|
+
clear(): void;
|
|
2369
|
+
}
|
|
2370
|
+
//#endregion
|
|
2371
|
+
//#region src/config/logger.d.ts
|
|
2372
|
+
/**
|
|
2373
|
+
* ## Logger
|
|
2374
|
+
* Receives one call per request lifecycle event.
|
|
2375
|
+
*
|
|
2376
|
+
* Pass one as `ClientOptions.logger`; leave it unset and a client logs nothing.
|
|
2377
|
+
* Use {@link consoleLogger}, or forward to pino, winston, or a metrics collector.
|
|
2378
|
+
*/
|
|
2379
|
+
interface Logger {
|
|
2380
|
+
/** A request is about to be resolved, from cache or over the network. */
|
|
2381
|
+
request(method: string, url: string): void;
|
|
2382
|
+
/** A response was produced. `cached` distinguishes a cache hit from a round trip. */
|
|
2383
|
+
response(status: number, cached: boolean): void;
|
|
2384
|
+
/** A request failed. The error is whatever `fetch` or the API produced. */
|
|
2385
|
+
error(error: unknown): void;
|
|
2386
|
+
}
|
|
2387
|
+
/** A {@link Logger} that writes the request lifecycle to the console. */
|
|
2388
|
+
declare const consoleLogger: Logger;
|
|
2389
|
+
//#endregion
|
|
2390
|
+
//#region src/constants/base.d.ts
|
|
2391
|
+
declare const BASE_URL: {
|
|
2392
|
+
readonly REST: "https://pokeapi.co/api/v2";
|
|
2393
|
+
};
|
|
2394
|
+
//#endregion
|
|
2395
|
+
//#region src/constants/berries.d.ts
|
|
2396
|
+
/** Enum of Berries (NAME - ID) */
|
|
2397
|
+
declare const BERRIES: {
|
|
2398
|
+
readonly CHERI: 1;
|
|
2399
|
+
readonly CHESTO: 2;
|
|
2400
|
+
readonly PECHA: 3;
|
|
2401
|
+
readonly RAWST: 4;
|
|
2402
|
+
readonly ASPEAR: 5;
|
|
2403
|
+
readonly LEPPA: 6;
|
|
2404
|
+
readonly ORAN: 7;
|
|
2405
|
+
readonly PERSIM: 8;
|
|
2406
|
+
readonly LUM: 9;
|
|
2407
|
+
readonly SITRUS: 10;
|
|
2408
|
+
readonly FIGY: 11;
|
|
2409
|
+
readonly WIKI: 12;
|
|
2410
|
+
readonly MAGO: 13;
|
|
2411
|
+
readonly AGUAV: 14;
|
|
2412
|
+
readonly IAPAPA: 15;
|
|
2413
|
+
readonly RAZZ: 16;
|
|
2414
|
+
readonly BLUK: 17;
|
|
2415
|
+
readonly NANAB: 18;
|
|
2416
|
+
readonly WEPEAR: 19;
|
|
2417
|
+
readonly PINAP: 20;
|
|
2418
|
+
readonly POMEG: 21;
|
|
2419
|
+
readonly KELPSY: 22;
|
|
2420
|
+
readonly QUALOT: 23;
|
|
2421
|
+
readonly HONDEW: 24;
|
|
2422
|
+
readonly GREPA: 25;
|
|
2423
|
+
readonly TAMATO: 26;
|
|
2424
|
+
readonly CORNN: 27;
|
|
2425
|
+
readonly MAGOST: 28;
|
|
2426
|
+
readonly RABUTA: 29;
|
|
2427
|
+
readonly NOMEL: 30;
|
|
2428
|
+
readonly SPELON: 31;
|
|
2429
|
+
readonly PAMTRE: 32;
|
|
2430
|
+
readonly WATMEL: 33;
|
|
2431
|
+
readonly DURIN: 34;
|
|
2432
|
+
readonly BELUE: 35;
|
|
2433
|
+
readonly OCCA: 36;
|
|
2434
|
+
readonly PASSHO: 37;
|
|
2435
|
+
readonly WACAN: 38;
|
|
2436
|
+
readonly RINDO: 39;
|
|
2437
|
+
readonly YACHE: 40;
|
|
2438
|
+
readonly CHOPLE: 41;
|
|
2439
|
+
readonly KEBIA: 42;
|
|
2440
|
+
readonly SHUCA: 43;
|
|
2441
|
+
readonly COBA: 44;
|
|
2442
|
+
readonly PAYAPA: 45;
|
|
2443
|
+
readonly TANGA: 46;
|
|
2444
|
+
readonly CHARTI: 47;
|
|
2445
|
+
readonly KASIB: 48;
|
|
2446
|
+
readonly HABAN: 49;
|
|
2447
|
+
readonly COLBUR: 50;
|
|
2448
|
+
readonly BABIRI: 51;
|
|
2449
|
+
readonly CHILAN: 52;
|
|
2450
|
+
readonly LIECHI: 53;
|
|
2451
|
+
readonly GANLON: 54;
|
|
2452
|
+
readonly SALAC: 55;
|
|
2453
|
+
readonly PETAYA: 56;
|
|
2454
|
+
readonly APICOT: 57;
|
|
2455
|
+
readonly LANSAT: 58;
|
|
2456
|
+
readonly STARF: 59;
|
|
2457
|
+
readonly ENIGMA: 60;
|
|
2458
|
+
readonly MICLE: 61;
|
|
2459
|
+
readonly CUSTAP: 62;
|
|
2460
|
+
readonly JABOCA: 63;
|
|
2461
|
+
readonly ROWAP: 64;
|
|
2462
|
+
};
|
|
2463
|
+
/** Enum of Berry Firmnesses (NAME - ID) */
|
|
2464
|
+
declare const BERRY_FIRMNESSES: {
|
|
2465
|
+
readonly VERY_SOFT: 1;
|
|
2466
|
+
readonly SOFT: 2;
|
|
2467
|
+
readonly HARD: 3;
|
|
2468
|
+
readonly VERY_HARD: 4;
|
|
2469
|
+
readonly SUPER_HARD: 5;
|
|
2470
|
+
};
|
|
2471
|
+
declare const BERRY_FLAVORS: {
|
|
2472
|
+
readonly SPICY: 1;
|
|
2473
|
+
readonly DRY: 2;
|
|
2474
|
+
readonly SWEET: 3;
|
|
2475
|
+
readonly BITTER: 4;
|
|
2476
|
+
readonly SOUR: 5;
|
|
2477
|
+
};
|
|
2478
|
+
//#endregion
|
|
2479
|
+
//#region src/constants/contests.d.ts
|
|
2480
|
+
declare const CONTEST_TYPES: {
|
|
2481
|
+
readonly COOL: 1;
|
|
2482
|
+
readonly BEAUTY: 2;
|
|
2483
|
+
readonly CUTE: 3;
|
|
2484
|
+
readonly SMART: 4;
|
|
2485
|
+
readonly TOUGH: 5;
|
|
2486
|
+
};
|
|
2487
|
+
//#endregion
|
|
2488
|
+
//#region src/constants/currencies.d.ts
|
|
2489
|
+
declare const CURRENCIES: {
|
|
2490
|
+
readonly POKE_DOLLAR: 1;
|
|
2491
|
+
readonly COIN: 2;
|
|
2492
|
+
readonly VOLCANIC_ASH: 3;
|
|
2493
|
+
readonly POKE_COUPON: 4;
|
|
2494
|
+
readonly BERRY_POWDER: 5;
|
|
2495
|
+
readonly BATTLE_POINT: 6;
|
|
2496
|
+
readonly SPHERE: 7;
|
|
2497
|
+
readonly CASTLE_POINT: 8;
|
|
2498
|
+
readonly WATT: 9;
|
|
2499
|
+
readonly ATHLETE_POINT: 10;
|
|
2500
|
+
readonly DREAM_POINT: 11;
|
|
2501
|
+
readonly DREAM_WORLD_BERRY: 12;
|
|
2502
|
+
readonly POKE_MILE: 13;
|
|
2503
|
+
readonly FESTIVAL_COIN: 14;
|
|
2504
|
+
readonly POKE_BEAN: 15;
|
|
2505
|
+
readonly HOME_POINT: 16;
|
|
2506
|
+
readonly MERIT_POINT: 17;
|
|
2507
|
+
readonly LEAGUE_POINT: 18;
|
|
2508
|
+
readonly BLUEBERRY_POINT: 19;
|
|
2509
|
+
};
|
|
2510
|
+
//#endregion
|
|
2511
|
+
//#region src/constants/encounters.d.ts
|
|
2512
|
+
declare const ENCOUNTER_METHODS: {
|
|
2513
|
+
readonly WALK: 1;
|
|
2514
|
+
readonly OLD_ROD: 2;
|
|
2515
|
+
readonly GOOD_ROD: 3;
|
|
2516
|
+
readonly SUPER_ROD: 4;
|
|
2517
|
+
readonly SURF: 5;
|
|
2518
|
+
readonly ROCK_SMASH: 6;
|
|
2519
|
+
readonly HEADBUTT: 7;
|
|
2520
|
+
readonly DARK_GRASS: 8;
|
|
2521
|
+
readonly GRASS_SPOTS: 9;
|
|
2522
|
+
readonly CAVE_SPOTS: 10;
|
|
2523
|
+
readonly BRIDGE_SPOTS: 11;
|
|
2524
|
+
readonly SUPER_ROD_SPOTS: 12;
|
|
2525
|
+
readonly SURF_SPOTS: 13;
|
|
2526
|
+
readonly YELLOW_FLOWERS: 14;
|
|
2527
|
+
readonly PURPLE_FLOWERS: 15;
|
|
2528
|
+
readonly RED_FLOWERS: 16;
|
|
2529
|
+
readonly ROUGH_TERRAIN: 17;
|
|
2530
|
+
readonly GIFT: 18;
|
|
2531
|
+
readonly GIFT_EGG: 19;
|
|
2532
|
+
readonly ONLY_ONE: 20;
|
|
2533
|
+
readonly POKEFLUTE: 21;
|
|
2534
|
+
readonly HEADBUTT_LOW: 22;
|
|
2535
|
+
readonly HEADBUTT_NORMAL: 23;
|
|
2536
|
+
readonly HEADBUT_HIGH: 24;
|
|
2537
|
+
readonly SQUIRT_BOTTLE: 25;
|
|
2538
|
+
readonly WAILMER_PAIL: 26;
|
|
2539
|
+
readonly SEAWEED: 27;
|
|
2540
|
+
};
|
|
2541
|
+
declare const ENCOUNTER_CONDITIONS: {
|
|
2542
|
+
readonly SWARM: 1;
|
|
2543
|
+
readonly TIME: 2;
|
|
2544
|
+
readonly RADAR: 3;
|
|
2545
|
+
readonly SLOT2: 4;
|
|
2546
|
+
readonly RADIO: 5;
|
|
2547
|
+
readonly SEASON: 6;
|
|
2548
|
+
readonly STARTER: 7;
|
|
2549
|
+
readonly TV_OPTION: 8;
|
|
2550
|
+
readonly STORY_PROGRESS: 9;
|
|
2551
|
+
readonly OTHER: 10;
|
|
2552
|
+
};
|
|
2553
|
+
declare const ENCOUNTER_CONDITION_VALUES: {
|
|
2554
|
+
readonly SWARM_YES: 1;
|
|
2555
|
+
readonly SWARM_NO: 2;
|
|
2556
|
+
readonly TIME_MORNING: 3;
|
|
2557
|
+
readonly TIME_DAY: 4;
|
|
2558
|
+
readonly TIME_NIGHT: 5;
|
|
2559
|
+
readonly RADAR_ON: 6;
|
|
2560
|
+
readonly RADAR_OFF: 7;
|
|
2561
|
+
readonly SLOT2_NONE: 8;
|
|
2562
|
+
readonly SLOT2_RUBY: 9;
|
|
2563
|
+
readonly SLOT2_SAPHIRE: 10;
|
|
2564
|
+
readonly SLOT2_EMERALD: 11;
|
|
2565
|
+
readonly SLOT2_FIRERED: 12;
|
|
2566
|
+
readonly SLOT2_LEAFGREEN: 13;
|
|
2567
|
+
readonly RADIO_OFF: 14;
|
|
2568
|
+
readonly RADIO_HOEN: 15;
|
|
2569
|
+
readonly RADIO_SINNOH: 16;
|
|
2570
|
+
readonly SEASON_SPRING: 17;
|
|
2571
|
+
readonly SEASON_SUMMER: 18;
|
|
2572
|
+
readonly SWASON_AUTUMN: 19;
|
|
2573
|
+
readonly SEASON_WINTER: 20;
|
|
2574
|
+
readonly STARTER_BULBASAUR: 21;
|
|
2575
|
+
readonly STARTER_SQUIRTLE: 22;
|
|
2576
|
+
readonly STARTER_CHARMANDER: 23;
|
|
2577
|
+
readonly STARTER_CHESPIN: 24;
|
|
2578
|
+
readonly STARTER_FENNEKIN: 25;
|
|
2579
|
+
readonly STARTER_FROAKIE: 26;
|
|
2580
|
+
readonly TV_OPTION_BLUE: 27;
|
|
2581
|
+
readonly TV_OPTION_RED: 28;
|
|
2582
|
+
readonly STORY_PROGRESS_AWAKENED_BEASTS: 29;
|
|
2583
|
+
readonly STORY_PROGRESS_BEAT_GALACTIC_CORONET: 30;
|
|
2584
|
+
readonly STORY_PROGRESS_OAK_ETERNA_CITY: 31;
|
|
2585
|
+
readonly STORY_PROGRESS_OAK_VERMILION_COPYCAT: 32;
|
|
2586
|
+
readonly STORY_PROGRESS_MET_TORNADUS_THUNDURUS: 33;
|
|
2587
|
+
readonly STORY_PROGRESS_BEAT_ELITE_FOUR_ROUND_TWO: 34;
|
|
2588
|
+
readonly STORY_PROGRESS_HALL_OF_FAME: 35;
|
|
2589
|
+
readonly STORY_PROGRESS_NONE: 36;
|
|
2590
|
+
readonly STORY_PROGRESS_NATIONAL_DEX: 37;
|
|
2591
|
+
readonly OTHER_NONE: 38;
|
|
2592
|
+
readonly OTHER_SNORLAX_LL_BEAT_LEAGUE: 39;
|
|
2593
|
+
};
|
|
2594
|
+
//#endregion
|
|
2595
|
+
//#region src/constants/endpoints.d.ts
|
|
2596
|
+
/**
|
|
2597
|
+
* Endpoints of the PokéAPI
|
|
2598
|
+
*/
|
|
2599
|
+
declare const ENDPOINTS: {
|
|
2600
|
+
readonly BERRY: "/berry";
|
|
2601
|
+
readonly BERRY_FIRMNESS: "/berry-firmness";
|
|
2602
|
+
readonly BERRY_FLAVOR: "/berry-flavor";
|
|
2603
|
+
readonly CONTEST_TYPE: "/contest-type";
|
|
2604
|
+
readonly CONTEST_EFFECT: "/contest-effect";
|
|
2605
|
+
readonly SUPER_CONTEST_EFFECT: "/super-contest-effect";
|
|
2606
|
+
readonly CURRENCY: "/currency";
|
|
2607
|
+
readonly ENCOUNTER_METHOD: "/encounter-method";
|
|
2608
|
+
readonly ENCOUNTER_CONDITION: "/encounter-condition";
|
|
2609
|
+
readonly ENCOUNTER_CONDITION_VALUE: "/encounter-condition-value";
|
|
2610
|
+
readonly EVOLUTION_CHAIN: "/evolution-chain";
|
|
2611
|
+
readonly EVOLUTION_TRIGGER: "/evolution-trigger";
|
|
2612
|
+
readonly GENERATION: "/generation";
|
|
2613
|
+
readonly POKEDEX: "/pokedex";
|
|
2614
|
+
readonly VERSION: "/version";
|
|
2615
|
+
readonly VERSION_GROUP: "/version-group";
|
|
2616
|
+
readonly ITEM: "/item";
|
|
2617
|
+
readonly ITEM_ATTRIBUTE: "/item-attribute";
|
|
2618
|
+
readonly ITEM_CATEGORY: "/item-category";
|
|
2619
|
+
readonly ITEM_FLING_EFFECT: "/item-fling-effect";
|
|
2620
|
+
readonly ITEM_POCKET: "/item-pocket";
|
|
2621
|
+
readonly LOCATION: "/location";
|
|
2622
|
+
readonly LOCATION_AREA: "/location-area";
|
|
2623
|
+
readonly PALPARK_AREA: "/pal-park-area";
|
|
2624
|
+
readonly REGION: "/region";
|
|
2625
|
+
readonly MACHINE: "/machine";
|
|
2626
|
+
readonly MOVE: "/move";
|
|
2627
|
+
readonly MOVE_AILMENT: "/move-ailment";
|
|
2628
|
+
readonly MOVE_BATTLE_STYLE: "/move-battle-style";
|
|
2629
|
+
readonly MOVE_CATEGORY: "/move-category";
|
|
2630
|
+
readonly MOVE_DAMAGE_CLASS: "/move-damage-class";
|
|
2631
|
+
readonly MOVE_LEARN_METHOD: "/move-learn-method";
|
|
2632
|
+
readonly MOVE_TARGET: "/move-target";
|
|
2633
|
+
readonly ABILITY: "/ability";
|
|
2634
|
+
readonly CHARACTERISTIC: "/characteristic";
|
|
2635
|
+
readonly EGG_GROUP: "/egg-group";
|
|
2636
|
+
readonly GENDER: "/gender";
|
|
2637
|
+
readonly GROWTH_RATE: "/growth-rate";
|
|
2638
|
+
readonly NATURE: "/nature";
|
|
2639
|
+
readonly POKEATHLON_STAT: "/pokeathlon-stat";
|
|
2640
|
+
readonly POKEMON: "/pokemon";
|
|
2641
|
+
readonly POKEMON_COLOR: "/pokemon-color";
|
|
2642
|
+
readonly POKEMON_FORM: "/pokemon-form";
|
|
2643
|
+
readonly POKEMON_HABITAT: "/pokemon-habitat";
|
|
2644
|
+
readonly POKEMON_SHAPE: "/pokemon-shape";
|
|
2645
|
+
readonly POKEMON_SPECIES: "/pokemon-species";
|
|
2646
|
+
readonly STAT: "/stat";
|
|
2647
|
+
readonly TYPE: "/type";
|
|
2648
|
+
readonly LANGUAGE: "/language";
|
|
2649
|
+
};
|
|
2650
|
+
type ObjectValue<T> = T[keyof T];
|
|
2651
|
+
type Endpoint = ObjectValue<typeof ENDPOINTS>;
|
|
2652
|
+
//#endregion
|
|
2653
|
+
//#region src/constants/evolutions.d.ts
|
|
2654
|
+
declare const EVOLUTION_TRIGGERS: {
|
|
2655
|
+
readonly LEVEL_UP: 1;
|
|
2656
|
+
readonly TRADE: 2;
|
|
2657
|
+
readonly USE_ITEM: 3;
|
|
2658
|
+
readonly SHED: 4;
|
|
2659
|
+
readonly SPIN: 5;
|
|
2660
|
+
readonly TOWER_OF_DARKNESS: 6;
|
|
2661
|
+
readonly TOWER_OF_WATER: 7;
|
|
2662
|
+
readonly THREE_CRITICAL_HITS: 8;
|
|
2663
|
+
readonly TAKE_DAMAGE: 9;
|
|
2664
|
+
readonly OTHER: 10;
|
|
2665
|
+
};
|
|
2666
|
+
//#endregion
|
|
2667
|
+
//#region src/constants/games.d.ts
|
|
2668
|
+
declare const GENERATIONS: {
|
|
2669
|
+
readonly GENERATION_I: 1;
|
|
2670
|
+
readonly GENERATION_II: 2;
|
|
2671
|
+
readonly GENERATION_III: 3;
|
|
2672
|
+
readonly GENERATION_IV: 4;
|
|
2673
|
+
readonly GENERATION_V: 5;
|
|
2674
|
+
readonly GENERATION_VI: 6;
|
|
2675
|
+
readonly GENERATION_VII: 7;
|
|
2676
|
+
readonly GENERATION_VIII: 8;
|
|
2677
|
+
};
|
|
2678
|
+
declare const POKEDEXES: {
|
|
2679
|
+
readonly NATIONAL: 1;
|
|
2680
|
+
readonly KANTO: 2;
|
|
2681
|
+
readonly ORIGINAL_JOHTO: 3;
|
|
2682
|
+
readonly HOENN: 4;
|
|
2683
|
+
readonly ORIGINAL_SINNOH: 5;
|
|
2684
|
+
readonly EXTENDED_SINNOH: 6;
|
|
2685
|
+
readonly UPDATED_JOHTO: 7;
|
|
2686
|
+
readonly ORIGINAL_UNOVA: 8;
|
|
2687
|
+
readonly UPDATED_UNOVA: 9;
|
|
2688
|
+
readonly CONQUEST_GALLERY: 11;
|
|
2689
|
+
readonly KALOS_CENTRAL: 12;
|
|
2690
|
+
readonly KALOS_COASTAL: 13;
|
|
2691
|
+
readonly KALOS_MONTAIN: 14;
|
|
2692
|
+
readonly UPDATED_HOENN: 15;
|
|
2693
|
+
readonly ORIGINAL_ALOLA: 16;
|
|
2694
|
+
readonly ORIGINAL_MELEMELE: 17;
|
|
2695
|
+
readonly ORIGINAL_AKALA: 18;
|
|
2696
|
+
readonly ORIGINAL_ULAULA: 19;
|
|
2697
|
+
readonly ORIGINAL_PONI: 20;
|
|
2698
|
+
readonly UPDATED_ALOLA: 21;
|
|
2699
|
+
readonly UPDATED_MELEMELE: 22;
|
|
2700
|
+
readonly UPDATED_AKALA: 23;
|
|
2701
|
+
readonly UPDATED_ULAULA: 24;
|
|
2702
|
+
readonly UPDATED_PONI: 25;
|
|
2703
|
+
readonly UPDATED_KANTO: 26;
|
|
2704
|
+
readonly GALAR: 27;
|
|
2705
|
+
readonly ISLE_OF_ARMOR: 28;
|
|
2706
|
+
readonly CROWN_TUNDRA: 29;
|
|
2707
|
+
};
|
|
2708
|
+
declare const VERSIONS: {
|
|
2709
|
+
readonly RED: 1;
|
|
2710
|
+
readonly BLUE: 2;
|
|
2711
|
+
readonly YELLOW: 3;
|
|
2712
|
+
readonly GOLD: 4;
|
|
2713
|
+
readonly SILVER: 5;
|
|
2714
|
+
readonly CRYSTAL: 6;
|
|
2715
|
+
readonly RUBY: 7;
|
|
2716
|
+
readonly SAPPHIRE: 8;
|
|
2717
|
+
readonly EMERALD: 9;
|
|
2718
|
+
readonly FIRERED: 10;
|
|
2719
|
+
readonly LEAFGREEN: 11;
|
|
2720
|
+
readonly DIAMOND: 12;
|
|
2721
|
+
readonly PEARL: 13;
|
|
2722
|
+
readonly PLATINUM: 14;
|
|
2723
|
+
readonly HEARTGOLD: 15;
|
|
2724
|
+
readonly SOULSILVER: 16;
|
|
2725
|
+
readonly BLACK: 17;
|
|
2726
|
+
readonly WHITE: 18;
|
|
2727
|
+
readonly COLOSSEUM: 19;
|
|
2728
|
+
readonly XD: 20;
|
|
2729
|
+
readonly BLACK_2: 21;
|
|
2730
|
+
readonly WHITE_2: 22;
|
|
2731
|
+
readonly X: 23;
|
|
2732
|
+
readonly Y: 24;
|
|
2733
|
+
readonly OMEGA_RUBY: 25;
|
|
2734
|
+
readonly ALPHA_SAPPHIRE: 26;
|
|
2735
|
+
readonly SUN: 27;
|
|
2736
|
+
readonly MOON: 28;
|
|
2737
|
+
readonly ULTRA_SUN: 29;
|
|
2738
|
+
readonly ULTRA_MOON: 30;
|
|
2739
|
+
readonly LETS_GO_PIKACHU: 31;
|
|
2740
|
+
readonly LETS_GO_EEVEE: 32;
|
|
2741
|
+
readonly SWORD: 33;
|
|
2742
|
+
readonly SHIELD: 34;
|
|
2743
|
+
readonly THE_ISLE_OF_ARMOR: 35;
|
|
2744
|
+
readonly THE_CROWN_TUNDRA: 36;
|
|
2745
|
+
readonly BRILLIANT_DIAMOND: 37;
|
|
2746
|
+
readonly SHINING_PEARL: 38;
|
|
2747
|
+
readonly LEGENDS_ARCEUS: 39;
|
|
2748
|
+
};
|
|
2749
|
+
declare const VERSION_GROUPS: {
|
|
2750
|
+
readonly RED_BLUE: 1;
|
|
2751
|
+
readonly YELLOW: 2;
|
|
2752
|
+
readonly GOLD_SILVER: 3;
|
|
2753
|
+
readonly CRYSTAL: 4;
|
|
2754
|
+
readonly RUBY_SAPPHIRE: 5;
|
|
2755
|
+
readonly EMERALD: 6;
|
|
2756
|
+
readonly FIRERED_LEAFGREEN: 7;
|
|
2757
|
+
readonly DIAMOND_PEARL: 8;
|
|
2758
|
+
readonly PLATINUM: 9;
|
|
2759
|
+
readonly HEARTGOLD_SOULSILVER: 10;
|
|
2760
|
+
readonly BLACK_WHITE: 11;
|
|
2761
|
+
readonly COLOSSEUM: 12;
|
|
2762
|
+
readonly XD: 13;
|
|
2763
|
+
readonly BLACK_2_WHITE_2: 14;
|
|
2764
|
+
readonly X_Y: 15;
|
|
2765
|
+
readonly OMEGA_RUBY_ALPHA_SAPPHIRE: 16;
|
|
2766
|
+
readonly SUN_MOON: 17;
|
|
2767
|
+
readonly ULTRA_SUN_ULTRA_MOON: 18;
|
|
2768
|
+
readonly LETS_GO: 19;
|
|
2769
|
+
readonly SWORD_SHIELD: 20;
|
|
2770
|
+
readonly THE_ISLE_OF_ARMOR: 21;
|
|
2771
|
+
readonly THE_CROWN_TUNDRA: 22;
|
|
2772
|
+
readonly BRILLIANT_DIAMOND_AND_SHINING_PEARL: 23;
|
|
2773
|
+
readonly LEGENDS_ARCEUS: 24;
|
|
2774
|
+
};
|
|
2775
|
+
//#endregion
|
|
2776
|
+
//#region src/constants/items.d.ts
|
|
2777
|
+
declare const ITEM_ATTRIBUTES: {
|
|
2778
|
+
readonly COUNTABLE: 1;
|
|
2779
|
+
readonly CONSUMABLE: 2;
|
|
2780
|
+
readonly USABLE_OVERWORLD: 3;
|
|
2781
|
+
readonly USABLE_IN_BATTLE: 4;
|
|
2782
|
+
readonly HOLDABLE: 5;
|
|
2783
|
+
readonly HOLDABLE_PASSIVE: 6;
|
|
2784
|
+
readonly HOLDABLE_ACTIVE: 7;
|
|
2785
|
+
readonly UNDERGROUND: 8;
|
|
2786
|
+
};
|
|
2787
|
+
declare const ITEM_CATEGORIES: {
|
|
2788
|
+
readonly STAT_BOOSTS: 1;
|
|
2789
|
+
readonly EFFORT_DROP: 2;
|
|
2790
|
+
readonly MEDICINE: 3;
|
|
2791
|
+
readonly OTHER: 4;
|
|
2792
|
+
readonly IN_A_PINCH: 5;
|
|
2793
|
+
readonly PICKY_HEALING: 6;
|
|
2794
|
+
readonly TYPE_PROTECTION: 7;
|
|
2795
|
+
readonly BAKING_ONLY: 8;
|
|
2796
|
+
readonly COLLECTIBLES: 9;
|
|
2797
|
+
readonly EVOLUTION: 10;
|
|
2798
|
+
readonly SPELUNKING: 11;
|
|
2799
|
+
readonly HELD_ITEMS: 12;
|
|
2800
|
+
readonly CHOICE: 13;
|
|
2801
|
+
readonly EFFORT_TRAINING: 14;
|
|
2802
|
+
readonly BAD_HELD_ITEMS: 15;
|
|
2803
|
+
readonly TRAINING: 16;
|
|
2804
|
+
readonly PLATES: 17;
|
|
2805
|
+
readonly SPECIES_SPECIFIC: 18;
|
|
2806
|
+
readonly TYPE_ENHANCEMENT: 19;
|
|
2807
|
+
readonly EVENT_ITEMS: 20;
|
|
2808
|
+
readonly GAMEPLAY: 21;
|
|
2809
|
+
readonly PLOT_ADVANCEMENT: 22;
|
|
2810
|
+
readonly UNUSED: 23;
|
|
2811
|
+
readonly LOOT: 24;
|
|
2812
|
+
readonly ALL_MAIL: 25;
|
|
2813
|
+
readonly VITAMINS: 26;
|
|
2814
|
+
readonly HEALING: 27;
|
|
2815
|
+
readonly PP_RECOVERY: 28;
|
|
2816
|
+
readonly REVIVAL: 29;
|
|
2817
|
+
readonly STATUS_CURES: 30;
|
|
2818
|
+
readonly MULCH: 32;
|
|
2819
|
+
readonly SPECIAL_BALLS: 33;
|
|
2820
|
+
readonly STANDARD_BALLS: 34;
|
|
2821
|
+
readonly DEX_COMPLETION: 35;
|
|
2822
|
+
readonly SCARVES: 36;
|
|
2823
|
+
readonly ALL_MACHINES: 37;
|
|
2824
|
+
readonly FLUTES: 38;
|
|
2825
|
+
readonly APRICORN_BALLS: 39;
|
|
2826
|
+
readonly APRICORN_BOX: 40;
|
|
2827
|
+
readonly DATA_CARDS: 41;
|
|
2828
|
+
readonly JEWELS: 42;
|
|
2829
|
+
readonly MIRACLE_SHOOTER: 43;
|
|
2830
|
+
readonly MEGA_STONES: 44;
|
|
2831
|
+
readonly MEMORIES: 45;
|
|
2832
|
+
readonly Z_CRYSTALS: 46;
|
|
2833
|
+
readonly SPECIES_CANDIES: 47;
|
|
2834
|
+
readonly CATCHING_BONUS: 48;
|
|
2835
|
+
readonly DYNAMAX_CRISTALS: 49;
|
|
2836
|
+
readonly NATURE_MINTS: 50;
|
|
2837
|
+
readonly CURRY_INGREDIENTS: 51;
|
|
2838
|
+
};
|
|
2839
|
+
declare const ITEM_FLING_EFFECTS: {
|
|
2840
|
+
readonly BADLY_POISON: 1;
|
|
2841
|
+
readonly BURN: 2;
|
|
2842
|
+
readonly BERRY_EFFECT: 3;
|
|
2843
|
+
readonly HERB_EFFECT: 4;
|
|
2844
|
+
readonly PARALYZE: 5;
|
|
2845
|
+
readonly POISON: 6;
|
|
2846
|
+
readonly FLINCH: 7;
|
|
2847
|
+
};
|
|
2848
|
+
declare const ITEM_POCKETS: {
|
|
2849
|
+
readonly MISC: 1;
|
|
2850
|
+
readonly MEDICINE: 2;
|
|
2851
|
+
readonly POKEBALLS: 3;
|
|
2852
|
+
readonly MACHINES: 4;
|
|
2853
|
+
readonly BERRIES: 5;
|
|
2854
|
+
readonly MAIL: 6;
|
|
2855
|
+
readonly BATTLE: 7;
|
|
2856
|
+
readonly KEY: 8;
|
|
2857
|
+
};
|
|
2858
|
+
//#endregion
|
|
2859
|
+
//#region src/constants/locations.d.ts
|
|
2860
|
+
declare const REGIONS: {
|
|
2861
|
+
readonly KANTO: 1;
|
|
2862
|
+
readonly JOHTO: 2;
|
|
2863
|
+
readonly HOENN: 3;
|
|
2864
|
+
readonly SINNOH: 4;
|
|
2865
|
+
readonly UNOVA: 5;
|
|
2866
|
+
readonly KALOS: 6;
|
|
2867
|
+
readonly ALOLA: 7;
|
|
2868
|
+
readonly GALAR: 8;
|
|
2869
|
+
readonly HISUI: 9;
|
|
2870
|
+
};
|
|
2871
|
+
declare const PAL_PARK_AREAS: {
|
|
2872
|
+
readonly FOREST: 1;
|
|
2873
|
+
readonly FIELD: 2;
|
|
2874
|
+
readonly MOUNTAIN: 3;
|
|
2875
|
+
readonly POND: 4;
|
|
2876
|
+
readonly SEA: 5;
|
|
2877
|
+
};
|
|
2878
|
+
//#endregion
|
|
2879
|
+
//#region src/constants/moves.d.ts
|
|
2880
|
+
declare const MOVE_AILMENTS: {
|
|
2881
|
+
readonly UNKNOWN: -1;
|
|
2882
|
+
readonly NONE: 0;
|
|
2883
|
+
readonly PARALYSIS: 1;
|
|
2884
|
+
readonly SLEEP: 2;
|
|
2885
|
+
readonly FREEZE: 3;
|
|
2886
|
+
readonly BURN: 4;
|
|
2887
|
+
readonly POISON: 5;
|
|
2888
|
+
readonly CONFUSION: 6;
|
|
2889
|
+
readonly INFATUATION: 7;
|
|
2890
|
+
readonly TRAP: 8;
|
|
2891
|
+
readonly NIGHTMARE: 9;
|
|
2892
|
+
readonly TORMENT: 12;
|
|
2893
|
+
readonly DISABLE: 13;
|
|
2894
|
+
readonly YAWN: 14;
|
|
2895
|
+
readonly HEAL_BLOCK: 15;
|
|
2896
|
+
readonly NO_TYPE_IMMUNITY: 17;
|
|
2897
|
+
readonly LEECH_SEED: 18;
|
|
2898
|
+
readonly EMBARGO: 19;
|
|
2899
|
+
readonly PERISH_SONG: 20;
|
|
2900
|
+
readonly INGRAIN: 21;
|
|
2901
|
+
readonly SILENCE: 24;
|
|
2902
|
+
readonly TAR_SHOT: 42;
|
|
2903
|
+
};
|
|
2904
|
+
declare const MOVE_BATTLE_STYLES: {
|
|
2905
|
+
readonly ATTACK: 1;
|
|
2906
|
+
readonly DEFENSE: 2;
|
|
2907
|
+
readonly SUPPORT: 3;
|
|
2908
|
+
};
|
|
2909
|
+
declare const MOVE_CATEGORIES: {
|
|
2910
|
+
readonly DAMAGE: 0;
|
|
2911
|
+
readonly AILMENT: 1;
|
|
2912
|
+
readonly NET_GOOD_STATS: 2;
|
|
2913
|
+
readonly HEAL: 3;
|
|
2914
|
+
readonly DAMAGE_AILMENT: 4;
|
|
2915
|
+
readonly SWAGGER: 5;
|
|
2916
|
+
readonly DAMAGE_LOWER: 6;
|
|
2917
|
+
readonly DAMAGE_RAISE: 7;
|
|
2918
|
+
readonly DAMAGE_HEAL: 8;
|
|
2919
|
+
readonly OHKO: 9;
|
|
2920
|
+
readonly WHOLE_FIELD_EFFECT: 10;
|
|
2921
|
+
readonly FIELD_EFFECT: 11;
|
|
2922
|
+
readonly FORCE_SWITCH: 12;
|
|
2923
|
+
readonly UNIQUE: 13;
|
|
2924
|
+
};
|
|
2925
|
+
declare const MOVE_DAMAGE_CLASSES: {
|
|
2926
|
+
readonly STATUS: 1;
|
|
2927
|
+
readonly PHYSICAL: 2;
|
|
2928
|
+
readonly SPECIAL: 3;
|
|
2929
|
+
};
|
|
2930
|
+
declare const MOVE_LEARN_METHODS: {
|
|
2931
|
+
readonly LEVEL_UP: 1;
|
|
2932
|
+
readonly EGG: 2;
|
|
2933
|
+
readonly TUTOR: 3;
|
|
2934
|
+
readonly MACHINE: 4;
|
|
2935
|
+
readonly STADIUM_SURFING_PIKACHU: 5;
|
|
2936
|
+
readonly LIGHT_BALL_EGG: 6;
|
|
2937
|
+
readonly COLOSSEUM_PURIFICATION: 7;
|
|
2938
|
+
readonly XD_SHADOW: 8;
|
|
2939
|
+
readonly XD_PURIFICATION: 9;
|
|
2940
|
+
readonly FORM_CHANGE: 10;
|
|
2941
|
+
};
|
|
2942
|
+
declare const MOVE_TARGETS: {
|
|
2943
|
+
readonly SPECIFIC_MOVE: 1;
|
|
2944
|
+
readonly SELECTED_POKEMON_ME_FIRST: 2;
|
|
2945
|
+
readonly ALLY: 3;
|
|
2946
|
+
readonly USERS_FIELD: 4;
|
|
2947
|
+
readonly USER_OR_ALLY: 5;
|
|
2948
|
+
readonly OPPONENTS_FIELD: 6;
|
|
2949
|
+
readonly USER: 7;
|
|
2950
|
+
readonly RANDOM_OPPONENT: 8;
|
|
2951
|
+
readonly ALL_OTHER_POKEMON: 9;
|
|
2952
|
+
readonly SELECTED_POKEMON: 10;
|
|
2953
|
+
readonly ALL_OPPONENTS: 11;
|
|
2954
|
+
readonly ENTIRE_FIELD: 12;
|
|
2955
|
+
readonly USER_AND_ALIES: 13;
|
|
2956
|
+
readonly ALL_POKEMON: 14;
|
|
2957
|
+
readonly ALL_ALLIES: 15;
|
|
2958
|
+
};
|
|
2959
|
+
//#endregion
|
|
2960
|
+
//#region src/constants/pokemons.d.ts
|
|
2961
|
+
declare const EGG_GROUPS: {
|
|
2962
|
+
readonly MONSTER: 1;
|
|
2963
|
+
readonly WATER1: 2;
|
|
2964
|
+
readonly BUG: 3;
|
|
2965
|
+
readonly FLYING: 4;
|
|
2966
|
+
readonly GROUND: 5;
|
|
2967
|
+
readonly FAIRY: 6;
|
|
2968
|
+
readonly PLANT: 7;
|
|
2969
|
+
readonly HUMANSHAPE: 8;
|
|
2970
|
+
readonly WATER3: 9;
|
|
2971
|
+
readonly MINERAL: 10;
|
|
2972
|
+
readonly INDETERMINATE: 11;
|
|
2973
|
+
readonly WATER2: 12;
|
|
2974
|
+
readonly DITTO: 13;
|
|
2975
|
+
readonly DRAGON: 14;
|
|
2976
|
+
readonly NO_EGGS: 15;
|
|
2977
|
+
};
|
|
2978
|
+
declare const GENDERS: {
|
|
2979
|
+
readonly FEMALE: 1;
|
|
2980
|
+
readonly MALE: 2;
|
|
2981
|
+
readonly GENDERLESS: 3;
|
|
2982
|
+
};
|
|
2983
|
+
declare const GROWTH_RATES: {
|
|
2984
|
+
readonly SLOW: 1;
|
|
2985
|
+
readonly MEDIUM: 2;
|
|
2986
|
+
readonly FAST: 3;
|
|
2987
|
+
readonly MEDIUM_SLOW: 4;
|
|
2988
|
+
readonly SLOW_THEN_VERY_FAST: 5;
|
|
2989
|
+
readonly FAST_THEN_VERY_SLOW: 6;
|
|
2990
|
+
};
|
|
2991
|
+
declare const NATURES: {
|
|
2992
|
+
readonly HARDY: 1;
|
|
2993
|
+
readonly BOLD: 2;
|
|
2994
|
+
readonly MODEST: 3;
|
|
2995
|
+
readonly CALM: 4;
|
|
2996
|
+
readonly TIMID: 5;
|
|
2997
|
+
readonly LONELY: 6;
|
|
2998
|
+
readonly DOCILE: 7;
|
|
2999
|
+
readonly MILD: 8;
|
|
3000
|
+
readonly GENTLE: 9;
|
|
3001
|
+
readonly HASTY: 10;
|
|
3002
|
+
readonly ADAMANT: 11;
|
|
3003
|
+
readonly IMPISH: 12;
|
|
3004
|
+
readonly BASHFUL: 13;
|
|
3005
|
+
readonly CAREFUL: 14;
|
|
3006
|
+
readonly RASH: 15;
|
|
3007
|
+
readonly JOLLY: 16;
|
|
3008
|
+
readonly NAUGHTY: 17;
|
|
3009
|
+
readonly LAX: 18;
|
|
3010
|
+
readonly QUIRKY: 19;
|
|
3011
|
+
readonly NAIVE: 20;
|
|
3012
|
+
readonly BRAVE: 21;
|
|
3013
|
+
readonly RELAXED: 22;
|
|
3014
|
+
readonly QUIET: 23;
|
|
3015
|
+
readonly SASSY: 24;
|
|
3016
|
+
readonly SERIOUS: 25;
|
|
3017
|
+
};
|
|
3018
|
+
declare const POKEATHLON_STATS: {
|
|
3019
|
+
readonly SPEED: 1;
|
|
3020
|
+
readonly POWER: 2;
|
|
3021
|
+
readonly SKILL: 3;
|
|
3022
|
+
readonly STAMINA: 4;
|
|
3023
|
+
readonly JUMP: 5;
|
|
3024
|
+
};
|
|
3025
|
+
declare const POKEMON_COLORS: {
|
|
3026
|
+
readonly BLACK: 1;
|
|
3027
|
+
readonly BLUE: 2;
|
|
3028
|
+
readonly BROWN: 3;
|
|
3029
|
+
readonly GRAY: 4;
|
|
3030
|
+
readonly GREEN: 5;
|
|
3031
|
+
readonly PINK: 6;
|
|
3032
|
+
readonly PURPLE: 7;
|
|
3033
|
+
readonly RED: 8;
|
|
3034
|
+
readonly WHITE: 9;
|
|
3035
|
+
readonly YELLOW: 10;
|
|
3036
|
+
};
|
|
3037
|
+
declare const POKEMON_HABITATS: {
|
|
3038
|
+
readonly CAVE: 1;
|
|
3039
|
+
readonly FOREST: 2;
|
|
3040
|
+
readonly GRASSLAND: 3;
|
|
3041
|
+
readonly MONTAIN: 4;
|
|
3042
|
+
readonly RARE: 5;
|
|
3043
|
+
readonly ROUGH_TERRAIN: 6;
|
|
3044
|
+
readonly SEA: 7;
|
|
3045
|
+
readonly URBAN: 8;
|
|
3046
|
+
readonly WATERS_EDGE: 9;
|
|
3047
|
+
};
|
|
3048
|
+
declare const POKEMON_SHAPES: {
|
|
3049
|
+
readonly BALL: 1;
|
|
3050
|
+
readonly SQUIGGLE: 2;
|
|
3051
|
+
readonly FISH: 3;
|
|
3052
|
+
readonly ARMS: 4;
|
|
3053
|
+
readonly BLOB: 5;
|
|
3054
|
+
readonly UPRIGHT: 6;
|
|
3055
|
+
readonly LEGS: 7;
|
|
3056
|
+
readonly QUADRUPED: 8;
|
|
3057
|
+
readonly WINGS: 9;
|
|
3058
|
+
readonly TENTACLES: 10;
|
|
3059
|
+
readonly HEADS: 11;
|
|
3060
|
+
readonly HUMANOID: 12;
|
|
3061
|
+
readonly BUG_WINGS: 13;
|
|
3062
|
+
readonly ARMOR: 14;
|
|
3063
|
+
};
|
|
3064
|
+
declare const STATS: {
|
|
3065
|
+
readonly HP: 1;
|
|
3066
|
+
readonly ATTACK: 2;
|
|
3067
|
+
readonly DEFENSE: 3;
|
|
3068
|
+
readonly SPECIAL_ATTACK: 4;
|
|
3069
|
+
readonly SPECIAL_DEFENSE: 5;
|
|
3070
|
+
readonly SPEED: 6;
|
|
3071
|
+
readonly ACCURACY: 7;
|
|
3072
|
+
readonly EVASION: 8;
|
|
3073
|
+
};
|
|
3074
|
+
declare const TYPES: {
|
|
3075
|
+
readonly NORMAL: 1;
|
|
3076
|
+
readonly FIGHTING: 2;
|
|
3077
|
+
readonly FLYING: 3;
|
|
3078
|
+
readonly POISON: 4;
|
|
3079
|
+
readonly GROUND: 5;
|
|
3080
|
+
readonly ROCK: 6;
|
|
3081
|
+
readonly BUG: 7;
|
|
3082
|
+
readonly GHOST: 8;
|
|
3083
|
+
readonly STEEL: 9;
|
|
3084
|
+
readonly FIRE: 10;
|
|
3085
|
+
readonly WATER: 11;
|
|
3086
|
+
readonly GRASS: 12;
|
|
3087
|
+
readonly ELECTRIC: 13;
|
|
3088
|
+
readonly PSYCHIC: 14;
|
|
3089
|
+
readonly ICE: 15;
|
|
3090
|
+
readonly DRAGON: 16;
|
|
3091
|
+
readonly DARK: 17;
|
|
3092
|
+
readonly FAIRY: 18;
|
|
3093
|
+
readonly UNKNOWN: 10001;
|
|
3094
|
+
readonly SHADOW: 10002;
|
|
3095
|
+
};
|
|
3096
|
+
//#endregion
|
|
3097
|
+
//#region src/constants/utilities.d.ts
|
|
3098
|
+
declare const LANGUAGES: {
|
|
3099
|
+
readonly JA_HRKT: 1;
|
|
3100
|
+
readonly JA_ROMA: 2;
|
|
3101
|
+
readonly KO: 3;
|
|
3102
|
+
readonly ZH_HANT: 4;
|
|
3103
|
+
readonly FR: 5;
|
|
3104
|
+
readonly DE: 6;
|
|
3105
|
+
readonly ES: 7;
|
|
3106
|
+
readonly IT: 8;
|
|
3107
|
+
readonly EN: 9;
|
|
3108
|
+
readonly CS: 10;
|
|
3109
|
+
readonly JA: 11;
|
|
3110
|
+
readonly ZH_HANS: 12;
|
|
3111
|
+
readonly PT_BR: 13;
|
|
3112
|
+
};
|
|
3113
|
+
declare namespace index_d_exports {
|
|
3114
|
+
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, 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, VERSIONS, VERSION_GROUPS };
|
|
3115
|
+
}
|
|
3116
|
+
//#endregion
|
|
3117
|
+
//#region src/clients/base.d.ts
|
|
3118
|
+
/**
|
|
3119
|
+
* ## Fetch Like
|
|
3120
|
+
* A `fetch` implementation taking a string URL, as every client call does.
|
|
3121
|
+
*/
|
|
3122
|
+
type FetchLike = (input: string, init?: RequestInit) => Promise<Response>;
|
|
3123
|
+
/**
|
|
3124
|
+
* ## Client Options
|
|
3125
|
+
* Optional configuration accepted by every client.
|
|
3126
|
+
*/
|
|
3127
|
+
interface ClientOptions {
|
|
3128
|
+
/**
|
|
3129
|
+
* Where the request lifecycle is reported. Leave empty to log nothing, or pass
|
|
3130
|
+
* {@link consoleLogger} to write it to the console.
|
|
3131
|
+
*/
|
|
3132
|
+
logger?: Logger;
|
|
3133
|
+
/**
|
|
3134
|
+
* Response cache. Leave empty for an in-memory {@link MemoryCache}, pass `false`
|
|
3135
|
+
* to disable caching, or supply your own {@link CacheStore}.
|
|
3136
|
+
*/
|
|
3137
|
+
cache?: CacheStore | false;
|
|
3138
|
+
/** Location of the PokéAPI. Leave empty to use the official PokéAPI instance. */
|
|
3139
|
+
baseURL?: string;
|
|
3140
|
+
/**
|
|
3141
|
+
* Custom `fetch` implementation, for proxies, retries, cancellation or
|
|
3142
|
+
* instrumentation. Defaults to the global `fetch`.
|
|
3143
|
+
*
|
|
3144
|
+
* Requests carry no timeout of their own: supply an `AbortSignal` here if you
|
|
3145
|
+
* want one.
|
|
3146
|
+
*/
|
|
3147
|
+
fetch?: FetchLike;
|
|
3148
|
+
}
|
|
3149
|
+
/**
|
|
3150
|
+
* ## Base Client
|
|
3151
|
+
* Base class for every section client. Handles requests to the PokéAPI, along
|
|
3152
|
+
* with caching and logging.
|
|
3153
|
+
*/
|
|
3154
|
+
declare class BaseClient {
|
|
3155
|
+
/** The store backing this client, or `undefined` when caching is disabled. */
|
|
3156
|
+
readonly cache: CacheStore | undefined;
|
|
3157
|
+
private readonly baseURL;
|
|
3158
|
+
private readonly logger;
|
|
3159
|
+
private readonly fetch;
|
|
3160
|
+
/** Requests already on the wire, so concurrent callers share one round trip. */
|
|
3161
|
+
private readonly inFlight;
|
|
3162
|
+
constructor(clientOptions?: ClientOptions);
|
|
3163
|
+
/**
|
|
3164
|
+
* Drops every cached response. A {@link CacheStore} that does not implement
|
|
3165
|
+
* `clear` is left alone.
|
|
3166
|
+
*/
|
|
3167
|
+
clearCache(): Promise<void>;
|
|
3168
|
+
/**
|
|
3169
|
+
* Resolves a resource through the cache, then through any identical request
|
|
3170
|
+
* already in flight, and only then over the network.
|
|
3171
|
+
*
|
|
3172
|
+
* The URL is joined by concatenation: `new URL(path, base)` would discard the
|
|
3173
|
+
* base's own `/api/v2` path.
|
|
3174
|
+
*/
|
|
3175
|
+
private request;
|
|
3176
|
+
private fetchResource;
|
|
3177
|
+
/**
|
|
3178
|
+
* Retrieves a single resource from the PokéAPI by its endpoint and identifier.
|
|
3179
|
+
*
|
|
3180
|
+
* @template T - The type of the resource to be returned.
|
|
3181
|
+
* @param endpoint - The endpoint of the resource.
|
|
3182
|
+
* @param identifier - The identifier of the resource, or a path below the endpoint.
|
|
3183
|
+
* Omit it to address the endpoint itself.
|
|
3184
|
+
* @returns A promise that resolves to the requested resource.
|
|
3185
|
+
*/
|
|
3186
|
+
protected getResource<T>(endpoint: Endpoint, identifier?: string | number): Promise<T>;
|
|
3187
|
+
/**
|
|
3188
|
+
* Retrieves a resource by its URL.
|
|
3189
|
+
*
|
|
3190
|
+
* @template T - The type of the resource to be returned.
|
|
3191
|
+
* @param url - The URL of the resource.
|
|
3192
|
+
* @param baseURL - The base URL to use. Defaults to the one the client was built with.
|
|
3193
|
+
* @returns A promise that resolves to the requested resource.
|
|
3194
|
+
* @throws {TypeError} If `url` is not a valid URL, or names no endpoint under `baseURL`.
|
|
3195
|
+
*/
|
|
3196
|
+
protected getResourceByURL<T>(url: string, baseURL?: string): Promise<T>;
|
|
3197
|
+
/**
|
|
3198
|
+
* Retrieves a list of resources from the PokéAPI with pagination support.
|
|
3199
|
+
*
|
|
3200
|
+
* @param endpoint - The endpoint of the resource.
|
|
3201
|
+
* @param offset - The offset for pagination. Defaults to 0.
|
|
3202
|
+
* @param limit - The limit for pagination. Defaults to 20.
|
|
3203
|
+
* @returns A promise that resolves to a list of named API resources.
|
|
3204
|
+
*/
|
|
3205
|
+
protected getListResource(endpoint: Endpoint, offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3206
|
+
}
|
|
3207
|
+
//#endregion
|
|
3208
|
+
//#region src/clients/berry.client.d.ts
|
|
3209
|
+
/**
|
|
3210
|
+
* ### Berry Client
|
|
3211
|
+
*
|
|
3212
|
+
* Client used to access the Berry Endpoints:
|
|
3213
|
+
* - [Berries](https://pokeapi.co/docs/v2#berries)
|
|
3214
|
+
* - [Berry Firmnesses](https://pokeapi.co/docs/v2#berry-firmnesses)
|
|
3215
|
+
* - [Berry Flavors](https://pokeapi.co/docs/v2#berry-flavors)
|
|
3216
|
+
* ---
|
|
3217
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#berries-section)
|
|
3218
|
+
*/
|
|
3219
|
+
declare class BerryClient extends BaseClient {
|
|
3220
|
+
/**
|
|
3221
|
+
* Get a Berry by its name.
|
|
3222
|
+
* @param name The Berry name.
|
|
3223
|
+
* @returns The matching Berry.
|
|
3224
|
+
*/
|
|
3225
|
+
getBerryByName(name: string): Promise<Berry>;
|
|
3226
|
+
/**
|
|
3227
|
+
* Get a Berry by its ID.
|
|
3228
|
+
* @param id The Berry ID.
|
|
3229
|
+
* @returns The matching Berry.
|
|
3230
|
+
*/
|
|
3231
|
+
getBerryById(id: number): Promise<Berry>;
|
|
3232
|
+
/**
|
|
3233
|
+
* Get a Berry Firmness by its ID.
|
|
3234
|
+
* @param id The Berry Firmness ID.
|
|
3235
|
+
* @returns The matching Berry Firmness.
|
|
3236
|
+
*/
|
|
3237
|
+
getBerryFirmnessById(id: number): Promise<BerryFirmness>;
|
|
3238
|
+
/**
|
|
3239
|
+
* Get a Berry Firmness by its name.
|
|
3240
|
+
* @param name The Berry Firmness name.
|
|
3241
|
+
* @returns The matching Berry Firmness.
|
|
3242
|
+
*/
|
|
3243
|
+
getBerryFirmnessByName(name: string): Promise<BerryFirmness>;
|
|
3244
|
+
/**
|
|
3245
|
+
* Get a Berry Flavor by its ID.
|
|
3246
|
+
*
|
|
3247
|
+
* Flavors determine whether a Pokémon benefits or suffers from eating a berry,
|
|
3248
|
+
* based on its nature. See
|
|
3249
|
+
* [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Flavor) for greater detail.
|
|
3250
|
+
* @param id The Berry Flavor ID.
|
|
3251
|
+
* @returns The matching Berry Flavor.
|
|
3252
|
+
*/
|
|
3253
|
+
getBerryFlavorById(id: number): Promise<BerryFlavor>;
|
|
3254
|
+
/**
|
|
3255
|
+
* Get a Berry Flavor by its name.
|
|
3256
|
+
*
|
|
3257
|
+
* Flavors determine whether a Pokémon benefits or suffers from eating a berry,
|
|
3258
|
+
* based on its nature. See
|
|
3259
|
+
* [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Flavor) for greater detail.
|
|
3260
|
+
* @param name The Berry Flavor name.
|
|
3261
|
+
* @returns The matching Berry Flavor.
|
|
3262
|
+
*/
|
|
3263
|
+
getBerryFlavorByName(name: string): Promise<BerryFlavor>;
|
|
3264
|
+
/**
|
|
3265
|
+
* List Berries.
|
|
3266
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3267
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3268
|
+
* @returns A paginated list of Berries.
|
|
3269
|
+
*/
|
|
3270
|
+
listBerries(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3271
|
+
/**
|
|
3272
|
+
* List Berry Firmnesses.
|
|
3273
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3274
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3275
|
+
* @returns A paginated list of Berry Firmnesses.
|
|
3276
|
+
*/
|
|
3277
|
+
listBerryFirmnesses(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3278
|
+
/**
|
|
3279
|
+
* List Berry Flavors.
|
|
3280
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3281
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3282
|
+
* @returns A paginated list of Berry Flavors.
|
|
3283
|
+
*/
|
|
3284
|
+
listBerryFlavors(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3285
|
+
}
|
|
3286
|
+
//#endregion
|
|
3287
|
+
//#region src/clients/contest.client.d.ts
|
|
3288
|
+
/**
|
|
3289
|
+
* ### Contest Client
|
|
3290
|
+
*
|
|
3291
|
+
* Client used to access the Contest Endpoints:
|
|
3292
|
+
* - [Contest Types](https://pokeapi.co/docs/v2#contest-types)
|
|
3293
|
+
* - [Contest Effects](https://pokeapi.co/docs/v2#contest-effects)
|
|
3294
|
+
* - [Super Contest Effects](https://pokeapi.co/docs/v2#super-contest-effects)
|
|
3295
|
+
* ---
|
|
3296
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#contests-section)
|
|
3297
|
+
*/
|
|
3298
|
+
declare class ContestClient extends BaseClient {
|
|
3299
|
+
/**
|
|
3300
|
+
* Get a Contest Type by its name.
|
|
3301
|
+
* @param name The Contest Type name.
|
|
3302
|
+
* @returns The matching Contest Type.
|
|
3303
|
+
*/
|
|
3304
|
+
getContestTypeByName(name: string): Promise<ContestType>;
|
|
3305
|
+
/**
|
|
3306
|
+
* Get a Contest Type by its ID.
|
|
3307
|
+
* @param id The Contest Type ID.
|
|
3308
|
+
* @returns The matching Contest Type.
|
|
3309
|
+
*/
|
|
3310
|
+
getContestTypeById(id: number): Promise<ContestType>;
|
|
3311
|
+
/**
|
|
3312
|
+
* Get a Contest Effect by its ID.
|
|
3313
|
+
* @param id The Contest Effect ID.
|
|
3314
|
+
* @returns The matching Contest Effect.
|
|
3315
|
+
*/
|
|
3316
|
+
getContestEffectById(id: number): Promise<ContestEffect>;
|
|
3317
|
+
/**
|
|
3318
|
+
* Get a Super Contest Effect by its ID.
|
|
3319
|
+
* @param id The Super Contest Effect ID.
|
|
3320
|
+
* @returns The matching Super Contest Effect.
|
|
3321
|
+
*/
|
|
3322
|
+
getSuperContestEffectById(id: number): Promise<SuperContestEffect>;
|
|
3323
|
+
/**
|
|
3324
|
+
* List Contest Types.
|
|
3325
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3326
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3327
|
+
* @returns A paginated list of Contest Types.
|
|
3328
|
+
*/
|
|
3329
|
+
listContestTypes(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3330
|
+
/**
|
|
3331
|
+
* List Contest Effects.
|
|
3332
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3333
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3334
|
+
* @returns A paginated list of Contest Effects.
|
|
3335
|
+
*/
|
|
3336
|
+
listContestEffects(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3337
|
+
/**
|
|
3338
|
+
* List Super Contest Effects.
|
|
3339
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3340
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3341
|
+
* @returns A paginated list of Super Contest Effects.
|
|
3342
|
+
*/
|
|
3343
|
+
listSuperContestEffects(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3344
|
+
}
|
|
3345
|
+
//#endregion
|
|
3346
|
+
//#region src/clients/currency.client.d.ts
|
|
3347
|
+
/**
|
|
3348
|
+
* ### Currency Client
|
|
3349
|
+
*
|
|
3350
|
+
* Client used to access the Currency Endpoints:
|
|
3351
|
+
* - [Currencies](https://pokeapi.co/docs/v2#currencies)
|
|
3352
|
+
* ---
|
|
3353
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#currencies-section)
|
|
3354
|
+
*/
|
|
3355
|
+
declare class CurrencyClient extends BaseClient {
|
|
3356
|
+
/**
|
|
3357
|
+
* Get a Currency by its name.
|
|
3358
|
+
* @param name The Currency name.
|
|
3359
|
+
* @returns The matching Currency.
|
|
3360
|
+
*/
|
|
3361
|
+
getCurrencyByName(name: string): Promise<Currency>;
|
|
3362
|
+
/**
|
|
3363
|
+
* Get a Currency by its ID.
|
|
3364
|
+
* @param id The Currency ID.
|
|
3365
|
+
* @returns The matching Currency.
|
|
3366
|
+
*/
|
|
3367
|
+
getCurrencyById(id: number): Promise<Currency>;
|
|
3368
|
+
/**
|
|
3369
|
+
* List Currencies.
|
|
3370
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3371
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3372
|
+
* @returns A paginated list of Currencies.
|
|
3373
|
+
*/
|
|
3374
|
+
listCurrencies(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3375
|
+
}
|
|
3376
|
+
//#endregion
|
|
3377
|
+
//#region src/clients/encounter.client.d.ts
|
|
3378
|
+
/**
|
|
3379
|
+
* ### Encounter Client
|
|
3380
|
+
*
|
|
3381
|
+
* Client used to access the Encounter Endpoints:
|
|
3382
|
+
* - [Encounter Methods](https://pokeapi.co/docs/v2#encounter-methods)
|
|
3383
|
+
* - [Encounter Conditions](https://pokeapi.co/docs/v2#encounter-conditions)
|
|
3384
|
+
* - [Encounter Condition Values](https://pokeapi.co/docs/v2#encounter-condition-values)
|
|
3385
|
+
* ---
|
|
3386
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#encounters-section)
|
|
3387
|
+
*/
|
|
3388
|
+
declare class EncounterClient extends BaseClient {
|
|
3389
|
+
/**
|
|
3390
|
+
* Get an Encounter Method by its name.
|
|
3391
|
+
* @param name The Encounter Method name.
|
|
3392
|
+
* @returns The matching Encounter Method.
|
|
3393
|
+
*/
|
|
3394
|
+
getEncounterMethodByName(name: string): Promise<EncounterMethod>;
|
|
3395
|
+
/**
|
|
3396
|
+
* Get an Encounter Method by its ID.
|
|
3397
|
+
* @param id The Encounter Method ID.
|
|
3398
|
+
* @returns The matching Encounter Method.
|
|
3399
|
+
*/
|
|
3400
|
+
getEncounterMethodById(id: number): Promise<EncounterMethod>;
|
|
3401
|
+
/**
|
|
3402
|
+
* Get an Encounter Condition by its ID.
|
|
3403
|
+
* @param id The Encounter Condition ID.
|
|
3404
|
+
* @returns The matching Encounter Condition.
|
|
3405
|
+
*/
|
|
3406
|
+
getEncounterConditionById(id: number): Promise<EncounterCondition>;
|
|
3407
|
+
/**
|
|
3408
|
+
* Get an Encounter Condition by its name.
|
|
3409
|
+
* @param name The Encounter Condition name.
|
|
3410
|
+
* @returns The matching Encounter Condition.
|
|
3411
|
+
*/
|
|
3412
|
+
getEncounterConditionByName(name: string): Promise<EncounterCondition>;
|
|
3413
|
+
/**
|
|
3414
|
+
* Get an Encounter Condition Value by its name.
|
|
3415
|
+
* @param name The Encounter Condition Value name.
|
|
3416
|
+
* @returns The matching Encounter Condition Value.
|
|
3417
|
+
*/
|
|
3418
|
+
getEncounterConditionValueByName(name: string): Promise<EncounterConditionValue>;
|
|
3419
|
+
/**
|
|
3420
|
+
* Get an Encounter Condition Value by its ID.
|
|
3421
|
+
* @param id The Encounter Condition Value ID.
|
|
3422
|
+
* @returns The matching Encounter Condition Value.
|
|
3423
|
+
*/
|
|
3424
|
+
getEncounterConditionValueById(id: number): Promise<EncounterConditionValue>;
|
|
3425
|
+
/**
|
|
3426
|
+
* List Encounter Methods.
|
|
3427
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3428
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3429
|
+
* @returns A paginated list of Encounter Methods.
|
|
3430
|
+
*/
|
|
3431
|
+
listEncounterMethods(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3432
|
+
/**
|
|
3433
|
+
* List Encounter Conditions.
|
|
3434
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3435
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3436
|
+
* @returns A paginated list of Encounter Conditions.
|
|
3437
|
+
*/
|
|
3438
|
+
listEncounterConditions(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3439
|
+
/**
|
|
3440
|
+
* List Encounter Condition Values.
|
|
3441
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3442
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3443
|
+
* @returns A paginated list of Encounter Condition Values.
|
|
3444
|
+
*/
|
|
3445
|
+
listEncounterConditionValues(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3446
|
+
}
|
|
3447
|
+
//#endregion
|
|
3448
|
+
//#region src/clients/evolution.client.d.ts
|
|
3449
|
+
/**
|
|
3450
|
+
* ### Evolution Client
|
|
3451
|
+
*
|
|
3452
|
+
* Client used to access the Evolution Endpoints:
|
|
3453
|
+
* - [Evolution Chains](https://pokeapi.co/docs/v2#evolution-chains)
|
|
3454
|
+
* - [Evolution Triggers](https://pokeapi.co/docs/v2#evolution-triggers)
|
|
3455
|
+
* ---
|
|
3456
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#evolution-section)
|
|
3457
|
+
*/
|
|
3458
|
+
declare class EvolutionClient extends BaseClient {
|
|
3459
|
+
/**
|
|
3460
|
+
* Get an Evolution Chain by its ID.
|
|
3461
|
+
* @param id The Evolution Chain ID.
|
|
3462
|
+
* @returns The matching Evolution Chain.
|
|
3463
|
+
*/
|
|
3464
|
+
getEvolutionChainById(id: number): Promise<EvolutionChain>;
|
|
3465
|
+
/**
|
|
3466
|
+
* Get an Evolution Trigger by its ID.
|
|
3467
|
+
* @param id The Evolution Trigger ID.
|
|
3468
|
+
* @returns The matching Evolution Trigger.
|
|
3469
|
+
*/
|
|
3470
|
+
getEvolutionTriggerById(id: number): Promise<EvolutionTrigger>;
|
|
3471
|
+
/**
|
|
3472
|
+
* Get an Evolution Trigger by its name.
|
|
3473
|
+
* @param name The Evolution Trigger name.
|
|
3474
|
+
* @returns The matching Evolution Trigger.
|
|
3475
|
+
*/
|
|
3476
|
+
getEvolutionTriggerByName(name: string): Promise<EvolutionTrigger>;
|
|
3477
|
+
/**
|
|
3478
|
+
* List Evolution Chains.
|
|
3479
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3480
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3481
|
+
* @returns A paginated list of Evolution Chains.
|
|
3482
|
+
*/
|
|
3483
|
+
listEvolutionChains(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3484
|
+
/**
|
|
3485
|
+
* List Evolution Triggers.
|
|
3486
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3487
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3488
|
+
* @returns A paginated list of Evolution Triggers.
|
|
3489
|
+
*/
|
|
3490
|
+
listEvolutionTriggers(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3491
|
+
}
|
|
3492
|
+
//#endregion
|
|
3493
|
+
//#region src/clients/game.client.d.ts
|
|
3494
|
+
/**
|
|
3495
|
+
* ### Game Client
|
|
3496
|
+
*
|
|
3497
|
+
* Client used to access the Game Endpoints:
|
|
3498
|
+
* - [Generations](https://pokeapi.co/docs/v2#generations)
|
|
3499
|
+
* - [Pokédexes](https://pokeapi.co/docs/v2#pokedexes)
|
|
3500
|
+
* - [Versions](https://pokeapi.co/docs/v2#version)
|
|
3501
|
+
* - [Version Groups](https://pokeapi.co/docs/v2#version-groups)
|
|
3502
|
+
* ---
|
|
3503
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#games-section)
|
|
3504
|
+
*/
|
|
3505
|
+
declare class GameClient extends BaseClient {
|
|
3506
|
+
/**
|
|
3507
|
+
* Get a Generation by its name.
|
|
3508
|
+
* @param name The Generation name.
|
|
3509
|
+
* @returns The matching Generation.
|
|
3510
|
+
*/
|
|
3511
|
+
getGenerationByName(name: string): Promise<Generation>;
|
|
3512
|
+
/**
|
|
3513
|
+
* Get a Generation by its ID.
|
|
3514
|
+
* @param id The Generation ID.
|
|
3515
|
+
* @returns The matching Generation.
|
|
3516
|
+
*/
|
|
3517
|
+
getGenerationById(id: number): Promise<Generation>;
|
|
3518
|
+
/**
|
|
3519
|
+
* Get a Pokédex by its name.
|
|
3520
|
+
* @param name The Pokédex name.
|
|
3521
|
+
* @returns The matching Pokédex.
|
|
3522
|
+
*/
|
|
3523
|
+
getPokedexByName(name: string): Promise<Pokedex>;
|
|
3524
|
+
/**
|
|
3525
|
+
* Get a Pokédex by its ID.
|
|
3526
|
+
* @param id The Pokédex ID.
|
|
3527
|
+
* @returns The matching Pokédex.
|
|
3528
|
+
*/
|
|
3529
|
+
getPokedexById(id: number): Promise<Pokedex>;
|
|
3530
|
+
/**
|
|
3531
|
+
* Get a Version by its name.
|
|
3532
|
+
* @param name The Version name.
|
|
3533
|
+
* @returns The matching Version.
|
|
3534
|
+
*/
|
|
3535
|
+
getVersionByName(name: string): Promise<Version>;
|
|
3536
|
+
/**
|
|
3537
|
+
* Get a Version by its ID.
|
|
3538
|
+
* @param id The Version ID.
|
|
3539
|
+
* @returns The matching Version.
|
|
3540
|
+
*/
|
|
3541
|
+
getVersionById(id: number): Promise<Version>;
|
|
3542
|
+
/**
|
|
3543
|
+
* Get a Version Group by its name.
|
|
3544
|
+
* @param name The Version Group name.
|
|
3545
|
+
* @returns The matching Version Group.
|
|
3546
|
+
*/
|
|
3547
|
+
getVersionGroupByName(name: string): Promise<VersionGroup>;
|
|
3548
|
+
/**
|
|
3549
|
+
* Get a Version Group by its ID.
|
|
3550
|
+
* @param id The Version Group ID.
|
|
3551
|
+
* @returns The matching Version Group.
|
|
3552
|
+
*/
|
|
3553
|
+
getVersionGroupById(id: number): Promise<VersionGroup>;
|
|
3554
|
+
/**
|
|
3555
|
+
* List Generations.
|
|
3556
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3557
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3558
|
+
* @returns A paginated list of Generations.
|
|
3559
|
+
*/
|
|
3560
|
+
listGenerations(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3561
|
+
/**
|
|
3562
|
+
* List Pokédexes.
|
|
3563
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3564
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3565
|
+
* @returns A paginated list of Pokédexes.
|
|
3566
|
+
*/
|
|
3567
|
+
listPokedexes(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3568
|
+
/**
|
|
3569
|
+
* List Versions.
|
|
3570
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3571
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3572
|
+
* @returns A paginated list of Versions.
|
|
3573
|
+
*/
|
|
3574
|
+
listVersions(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3575
|
+
/**
|
|
3576
|
+
* List Version Groups.
|
|
3577
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3578
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3579
|
+
* @returns A paginated list of Version Groups.
|
|
3580
|
+
*/
|
|
3581
|
+
listVersionGroups(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3582
|
+
}
|
|
3583
|
+
//#endregion
|
|
3584
|
+
//#region src/clients/item.client.d.ts
|
|
3585
|
+
/**
|
|
3586
|
+
* ### Item Client
|
|
3587
|
+
*
|
|
3588
|
+
* Client used to access the Item Endpoints:
|
|
3589
|
+
* - [Items](https://pokeapi.co/docs/v2#item)
|
|
3590
|
+
* - [Item Attributes](https://pokeapi.co/docs/v2#item-attributes)
|
|
3591
|
+
* - [Item Categories](https://pokeapi.co/docs/v2#item-categories)
|
|
3592
|
+
* - [Item Fling Effects](https://pokeapi.co/docs/v2#item-fling-effects)
|
|
3593
|
+
* - [Item Pockets](https://pokeapi.co/docs/v2#item-pockets)
|
|
3594
|
+
* ---
|
|
3595
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#items-section)
|
|
3596
|
+
*/
|
|
3597
|
+
declare class ItemClient extends BaseClient {
|
|
3598
|
+
/**
|
|
3599
|
+
* Get an Item by its name.
|
|
3600
|
+
* @param name The Item name.
|
|
3601
|
+
* @returns The matching Item.
|
|
3602
|
+
*/
|
|
3603
|
+
getItemByName(name: string): Promise<Item>;
|
|
3604
|
+
/**
|
|
3605
|
+
* Get an Item by its ID.
|
|
3606
|
+
* @param id The Item ID.
|
|
3607
|
+
* @returns The matching Item.
|
|
3608
|
+
*/
|
|
3609
|
+
getItemById(id: number): Promise<Item>;
|
|
3610
|
+
/**
|
|
3611
|
+
* Get an Item Attribute by its name.
|
|
3612
|
+
* @param name The Item Attribute name.
|
|
3613
|
+
* @returns The matching Item Attribute.
|
|
3614
|
+
*/
|
|
3615
|
+
getItemAttributeByName(name: string): Promise<ItemAttribute>;
|
|
3616
|
+
/**
|
|
3617
|
+
* Get an Item Attribute by its ID.
|
|
3618
|
+
* @param id The Item Attribute ID.
|
|
3619
|
+
* @returns The matching Item Attribute.
|
|
3620
|
+
*/
|
|
3621
|
+
getItemAttributeById(id: number): Promise<ItemAttribute>;
|
|
3622
|
+
/**
|
|
3623
|
+
* Get an Item Category by its name.
|
|
3624
|
+
* @param name The Item Category name.
|
|
3625
|
+
* @returns The matching Item Category.
|
|
3626
|
+
*/
|
|
3627
|
+
getItemCategoryByName(name: string): Promise<ItemCategory>;
|
|
3628
|
+
/**
|
|
3629
|
+
* Get an Item Category by its ID.
|
|
3630
|
+
* @param id The Item Category ID.
|
|
3631
|
+
* @returns The matching Item Category.
|
|
3632
|
+
*/
|
|
3633
|
+
getItemCategoryById(id: number): Promise<ItemCategory>;
|
|
3634
|
+
/**
|
|
3635
|
+
* Get an Item Fling Effect by its name.
|
|
3636
|
+
* @param name The Item Fling Effect name.
|
|
3637
|
+
* @returns The matching Item Fling Effect.
|
|
3638
|
+
*/
|
|
3639
|
+
getItemFlingEffectByName(name: string): Promise<ItemFlingEffect>;
|
|
3640
|
+
/**
|
|
3641
|
+
* Get an Item Fling Effect by its ID.
|
|
3642
|
+
* @param id The Item Fling Effect ID.
|
|
3643
|
+
* @returns The matching Item Fling Effect.
|
|
3644
|
+
*/
|
|
3645
|
+
getItemFlingEffectById(id: number): Promise<ItemFlingEffect>;
|
|
3646
|
+
/**
|
|
3647
|
+
* Get an Item Pocket by its name.
|
|
3648
|
+
* @param name The Item Pocket name.
|
|
3649
|
+
* @returns The matching Item Pocket.
|
|
3650
|
+
*/
|
|
3651
|
+
getItemPocketByName(name: string): Promise<ItemPocket>;
|
|
3652
|
+
/**
|
|
3653
|
+
* Get an Item Pocket by its ID.
|
|
3654
|
+
* @param id The Item Pocket ID.
|
|
3655
|
+
* @returns The matching Item Pocket.
|
|
3656
|
+
*/
|
|
3657
|
+
getItemPocketById(id: number): Promise<ItemPocket>;
|
|
3658
|
+
/**
|
|
3659
|
+
* List Items.
|
|
3660
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3661
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3662
|
+
* @returns A paginated list of Items.
|
|
3663
|
+
*/
|
|
3664
|
+
listItems(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3665
|
+
/**
|
|
3666
|
+
* List Item Attributes.
|
|
3667
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3668
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3669
|
+
* @returns A paginated list of Item Attributes.
|
|
3670
|
+
*/
|
|
3671
|
+
listItemAttributes(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3672
|
+
/**
|
|
3673
|
+
* List Item Categories.
|
|
3674
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3675
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3676
|
+
* @returns A paginated list of Item Categories.
|
|
3677
|
+
*/
|
|
3678
|
+
listItemCategories(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3679
|
+
/**
|
|
3680
|
+
* List Item Fling Effects.
|
|
3681
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3682
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3683
|
+
* @returns A paginated list of Item Fling Effects.
|
|
3684
|
+
*/
|
|
3685
|
+
listItemFlingEffects(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3686
|
+
/**
|
|
3687
|
+
* List Item Pockets.
|
|
3688
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3689
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3690
|
+
* @returns A paginated list of Item Pockets.
|
|
3691
|
+
*/
|
|
3692
|
+
listItemPockets(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3693
|
+
}
|
|
3694
|
+
//#endregion
|
|
3695
|
+
//#region src/clients/location.client.d.ts
|
|
3696
|
+
/**
|
|
3697
|
+
* ### Location Client
|
|
3698
|
+
*
|
|
3699
|
+
* Client used to access the Location Endpoints:
|
|
3700
|
+
* - [Locations](https://pokeapi.co/docs/v2#locations)
|
|
3701
|
+
* - [Location Areas](https://pokeapi.co/docs/v2#location-areas)
|
|
3702
|
+
* - [Pal Park Areas](https://pokeapi.co/docs/v2#pal-park-areas)
|
|
3703
|
+
* - [Regions](https://pokeapi.co/docs/v2#regions)
|
|
3704
|
+
* ---
|
|
3705
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#locations-section)
|
|
3706
|
+
*/
|
|
3707
|
+
declare class LocationClient extends BaseClient {
|
|
3708
|
+
/**
|
|
3709
|
+
* Get a Location by its name.
|
|
3710
|
+
* @param name The Location name.
|
|
3711
|
+
* @returns The matching Location.
|
|
3712
|
+
*/
|
|
3713
|
+
getLocationByName(name: string): Promise<Location>;
|
|
3714
|
+
/**
|
|
3715
|
+
* Get a Location by its ID.
|
|
3716
|
+
* @param id The Location ID.
|
|
3717
|
+
* @returns The matching Location.
|
|
3718
|
+
*/
|
|
3719
|
+
getLocationById(id: number): Promise<Location>;
|
|
3720
|
+
/**
|
|
3721
|
+
* Get a Location Area by its name.
|
|
3722
|
+
* @param name The Location Area name.
|
|
3723
|
+
* @returns The matching Location Area.
|
|
3724
|
+
*/
|
|
3725
|
+
getLocationAreaByName(name: string): Promise<LocationArea>;
|
|
3726
|
+
/**
|
|
3727
|
+
* Get a Location Area by its ID.
|
|
3728
|
+
* @param id The Location Area ID.
|
|
3729
|
+
* @returns The matching Location Area.
|
|
3730
|
+
*/
|
|
3731
|
+
getLocationAreaById(id: number): Promise<LocationArea>;
|
|
3732
|
+
/**
|
|
3733
|
+
* Get a Pal Park Area by its name.
|
|
3734
|
+
* @param name The Pal Park Area name.
|
|
3735
|
+
* @returns The matching Pal Park Area.
|
|
3736
|
+
*/
|
|
3737
|
+
getPalParkAreaByName(name: string): Promise<PalParkArea>;
|
|
3738
|
+
/**
|
|
3739
|
+
* Get a Pal Park Area by its ID.
|
|
3740
|
+
* @param id The Pal Park Area ID.
|
|
3741
|
+
* @returns The matching Pal Park Area.
|
|
3742
|
+
*/
|
|
3743
|
+
getPalParkAreaById(id: number): Promise<PalParkArea>;
|
|
3744
|
+
/**
|
|
3745
|
+
* Get a Region by its name.
|
|
3746
|
+
* @param name The Region name.
|
|
3747
|
+
* @returns The matching Region.
|
|
3748
|
+
*/
|
|
3749
|
+
getRegionByName(name: string): Promise<Region>;
|
|
3750
|
+
/**
|
|
3751
|
+
* Get a Region by its ID.
|
|
3752
|
+
* @param id The Region ID.
|
|
3753
|
+
* @returns The matching Region.
|
|
3754
|
+
*/
|
|
3755
|
+
getRegionById(id: number): Promise<Region>;
|
|
3756
|
+
/**
|
|
3757
|
+
* List Locations.
|
|
3758
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3759
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3760
|
+
* @returns A paginated list of Locations.
|
|
3761
|
+
*/
|
|
3762
|
+
listLocations(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3763
|
+
/**
|
|
3764
|
+
* List Location Areas.
|
|
3765
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3766
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3767
|
+
* @returns A paginated list of Location Areas.
|
|
3768
|
+
*/
|
|
3769
|
+
listLocationAreas(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3770
|
+
/**
|
|
3771
|
+
* List Pal Park Areas.
|
|
3772
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3773
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3774
|
+
* @returns A paginated list of Pal Park Areas.
|
|
3775
|
+
*/
|
|
3776
|
+
listPalParkAreas(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3777
|
+
/**
|
|
3778
|
+
* List Regions.
|
|
3779
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3780
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3781
|
+
* @returns A paginated list of Regions.
|
|
3782
|
+
*/
|
|
3783
|
+
listRegions(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3784
|
+
}
|
|
3785
|
+
//#endregion
|
|
3786
|
+
//#region src/clients/machine.client.d.ts
|
|
3787
|
+
/**
|
|
3788
|
+
* ### Machine Client
|
|
3789
|
+
*
|
|
3790
|
+
* Client used to access the Machine Endpoints:
|
|
3791
|
+
* - [Machines](https://pokeapi.co/docs/v2#machines)
|
|
3792
|
+
* ---
|
|
3793
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#machines-section)
|
|
3794
|
+
*/
|
|
3795
|
+
declare class MachineClient extends BaseClient {
|
|
3796
|
+
/**
|
|
3797
|
+
* Get a Machine by its ID.
|
|
3798
|
+
* @param id The Machine ID.
|
|
3799
|
+
* @returns The matching Machine.
|
|
3800
|
+
*/
|
|
3801
|
+
getMachineById(id: number): Promise<Machine>;
|
|
3802
|
+
/**
|
|
3803
|
+
* List Machines.
|
|
3804
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3805
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3806
|
+
* @returns A paginated list of Machines.
|
|
3807
|
+
*/
|
|
3808
|
+
listMachines(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3809
|
+
}
|
|
3810
|
+
//#endregion
|
|
3811
|
+
//#region src/clients/move.client.d.ts
|
|
3812
|
+
/**
|
|
3813
|
+
* ### Move Client
|
|
3814
|
+
*
|
|
3815
|
+
* Client used to access the Move Endpoints:
|
|
3816
|
+
* - [Moves](https://pokeapi.co/docs/v2#moves)
|
|
3817
|
+
* - [Move Ailments](https://pokeapi.co/docs/v2#move-ailments)
|
|
3818
|
+
* - [Move Battle Styles](https://pokeapi.co/docs/v2#move-battle-styles)
|
|
3819
|
+
* - [Move Categories](https://pokeapi.co/docs/v2#move-categories)
|
|
3820
|
+
* - [Move Damage Classes](https://pokeapi.co/docs/v2#move-damage-classes)
|
|
3821
|
+
* - [Move Learn Methods](https://pokeapi.co/docs/v2#move-learn-methods)
|
|
3822
|
+
* - [Move Targets](https://pokeapi.co/docs/v2#move-targets)
|
|
3823
|
+
* ---
|
|
3824
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#moves-section)
|
|
3825
|
+
*/
|
|
3826
|
+
declare class MoveClient extends BaseClient {
|
|
3827
|
+
/**
|
|
3828
|
+
* Get a Move by its name.
|
|
3829
|
+
* @param name The Move name.
|
|
3830
|
+
* @returns The matching Move.
|
|
3831
|
+
*/
|
|
3832
|
+
getMoveByName(name: string): Promise<Move>;
|
|
3833
|
+
/**
|
|
3834
|
+
* Get a Move by its ID.
|
|
3835
|
+
* @param id The Move ID.
|
|
3836
|
+
* @returns The matching Move.
|
|
3837
|
+
*/
|
|
3838
|
+
getMoveById(id: number): Promise<Move>;
|
|
3839
|
+
/**
|
|
3840
|
+
* Get a Move Ailment by its name.
|
|
3841
|
+
* @param name The Move Ailment name.
|
|
3842
|
+
* @returns The matching Move Ailment.
|
|
3843
|
+
*/
|
|
3844
|
+
getMoveAilmentByName(name: string): Promise<MoveAilment>;
|
|
3845
|
+
/**
|
|
3846
|
+
* Get a Move Ailment by its ID.
|
|
3847
|
+
* @param id The Move Ailment ID.
|
|
3848
|
+
* @returns The matching Move Ailment.
|
|
3849
|
+
*/
|
|
3850
|
+
getMoveAilmentById(id: number): Promise<MoveAilment>;
|
|
3851
|
+
/**
|
|
3852
|
+
* Get a Move Battle Style by its name.
|
|
3853
|
+
* @param name The Move Battle Style name.
|
|
3854
|
+
* @returns The matching Move Battle Style.
|
|
3855
|
+
*/
|
|
3856
|
+
getMoveBattleStyleByName(name: string): Promise<MoveBattleStyle>;
|
|
3857
|
+
/**
|
|
3858
|
+
* Get a Move Battle Style by its ID.
|
|
3859
|
+
* @param id The Move Battle Style ID.
|
|
3860
|
+
* @returns The matching Move Battle Style.
|
|
3861
|
+
*/
|
|
3862
|
+
getMoveBattleStyleById(id: number): Promise<MoveBattleStyle>;
|
|
3863
|
+
/**
|
|
3864
|
+
* Get a Move Category by its name.
|
|
3865
|
+
* @param name The Move Category name.
|
|
3866
|
+
* @returns The matching Move Category.
|
|
3867
|
+
*/
|
|
3868
|
+
getMoveCategoryByName(name: string): Promise<MoveCategory>;
|
|
3869
|
+
/**
|
|
3870
|
+
* Get a Move Category by its ID.
|
|
3871
|
+
* @param id The Move Category ID.
|
|
3872
|
+
* @returns The matching Move Category.
|
|
3873
|
+
*/
|
|
3874
|
+
getMoveCategoryById(id: number): Promise<MoveCategory>;
|
|
3875
|
+
/**
|
|
3876
|
+
* Get a Move Damage Class by its name.
|
|
3877
|
+
* @param name The Move Damage Class name.
|
|
3878
|
+
* @returns The matching Move Damage Class.
|
|
3879
|
+
*/
|
|
3880
|
+
getMoveDamageClassByName(name: string): Promise<MoveDamageClass>;
|
|
3881
|
+
/**
|
|
3882
|
+
* Get a Move Damage Class by its ID.
|
|
3883
|
+
* @param id The Move Damage Class ID.
|
|
3884
|
+
* @returns The matching Move Damage Class.
|
|
3885
|
+
*/
|
|
3886
|
+
getMoveDamageClassById(id: number): Promise<MoveDamageClass>;
|
|
3887
|
+
/**
|
|
3888
|
+
* Get a Move Learn Method by its name.
|
|
3889
|
+
* @param name The Move Learn Method name.
|
|
3890
|
+
* @returns The matching Move Learn Method.
|
|
3891
|
+
*/
|
|
3892
|
+
getMoveLearnMethodByName(name: string): Promise<MoveLearnMethod>;
|
|
3893
|
+
/**
|
|
3894
|
+
* Get a Move Learn Method by its ID.
|
|
3895
|
+
* @param id The Move Learn Method ID.
|
|
3896
|
+
* @returns The matching Move Learn Method.
|
|
3897
|
+
*/
|
|
3898
|
+
getMoveLearnMethodById(id: number): Promise<MoveLearnMethod>;
|
|
3899
|
+
/**
|
|
3900
|
+
* Get a Move Target by its name.
|
|
3901
|
+
* @param name The Move Target name.
|
|
3902
|
+
* @returns The matching Move Target.
|
|
3903
|
+
*/
|
|
3904
|
+
getMoveTargetByName(name: string): Promise<MoveTarget>;
|
|
3905
|
+
/**
|
|
3906
|
+
* Get a Move Target by its ID.
|
|
3907
|
+
* @param id The Move Target ID.
|
|
3908
|
+
* @returns The matching Move Target.
|
|
3909
|
+
*/
|
|
3910
|
+
getMoveTargetById(id: number): Promise<MoveTarget>;
|
|
3911
|
+
/**
|
|
3912
|
+
* List Moves.
|
|
3913
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3914
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3915
|
+
* @returns A paginated list of Moves.
|
|
3916
|
+
*/
|
|
3917
|
+
listMoves(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3918
|
+
/**
|
|
3919
|
+
* List Move Ailments.
|
|
3920
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3921
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3922
|
+
* @returns A paginated list of Move Ailments.
|
|
3923
|
+
*/
|
|
3924
|
+
listMoveAilments(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3925
|
+
/**
|
|
3926
|
+
* List Move Battle Styles.
|
|
3927
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3928
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3929
|
+
* @returns A paginated list of Move Battle Styles.
|
|
3930
|
+
*/
|
|
3931
|
+
listMoveBattleStyles(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3932
|
+
/**
|
|
3933
|
+
* List Move Categories.
|
|
3934
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3935
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3936
|
+
* @returns A paginated list of Move Categories.
|
|
3937
|
+
*/
|
|
3938
|
+
listMoveCategories(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3939
|
+
/**
|
|
3940
|
+
* List Move Damage Classes.
|
|
3941
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3942
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3943
|
+
* @returns A paginated list of Move Damage Classes.
|
|
3944
|
+
*/
|
|
3945
|
+
listMoveDamageClasses(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3946
|
+
/**
|
|
3947
|
+
* List Move Learn Methods.
|
|
3948
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3949
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3950
|
+
* @returns A paginated list of Move Learn Methods.
|
|
3951
|
+
*/
|
|
3952
|
+
listMoveLearnMethods(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3953
|
+
/**
|
|
3954
|
+
* List Move Targets.
|
|
3955
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
3956
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
3957
|
+
* @returns A paginated list of Move Targets.
|
|
3958
|
+
*/
|
|
3959
|
+
listMoveTargets(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
3960
|
+
}
|
|
3961
|
+
//#endregion
|
|
3962
|
+
//#region src/clients/pokemon.client.d.ts
|
|
3963
|
+
/**
|
|
3964
|
+
* ### Pokémon Client
|
|
3965
|
+
*
|
|
3966
|
+
* Client used to access the Pokémon Endpoints:
|
|
3967
|
+
* - [Abilities](https://pokeapi.co/docs/v2#abilities)
|
|
3968
|
+
* - [Characteristics](https://pokeapi.co/docs/v2#characteristics)
|
|
3969
|
+
* - [Egg Groups](https://pokeapi.co/docs/v2#egg-groups)
|
|
3970
|
+
* - [Genders](https://pokeapi.co/docs/v2#genders)
|
|
3971
|
+
* - [Growth Rates](https://pokeapi.co/docs/v2#growth-rates)
|
|
3972
|
+
* - [Natures](https://pokeapi.co/docs/v2#natures)
|
|
3973
|
+
* - [Pokéathlon Stats](https://pokeapi.co/docs/v2#pokeathlon-stats)
|
|
3974
|
+
* - [Pokémon](https://pokeapi.co/docs/v2#pokemon)
|
|
3975
|
+
* - [Pokémon Location Areas](https://pokeapi.co/docs/v2#pokemon-location-areas)
|
|
3976
|
+
* - [Pokémon Colors](https://pokeapi.co/docs/v2#pokemon-colors)
|
|
3977
|
+
* - [Pokémon Forms](https://pokeapi.co/docs/v2#pokemon-forms)
|
|
3978
|
+
* - [Pokémon Habitats](https://pokeapi.co/docs/v2#pokemon-habitats)
|
|
3979
|
+
* - [Pokémon Shapes](https://pokeapi.co/docs/v2#pokemon-shapes)
|
|
3980
|
+
* - [Pokémon Species](https://pokeapi.co/docs/v2#pokemon-species)
|
|
3981
|
+
* - [Stats](https://pokeapi.co/docs/v2#stats)
|
|
3982
|
+
* - [Types](https://pokeapi.co/docs/v2#types)
|
|
3983
|
+
* ---
|
|
3984
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#pokemon-section)
|
|
3985
|
+
*/
|
|
3986
|
+
declare class PokemonClient extends BaseClient {
|
|
3987
|
+
/**
|
|
3988
|
+
* Get an Ability by its name.
|
|
3989
|
+
* @param name The Ability name.
|
|
3990
|
+
* @returns The matching Ability.
|
|
3991
|
+
*/
|
|
3992
|
+
getAbilityByName(name: string): Promise<Ability>;
|
|
3993
|
+
/**
|
|
3994
|
+
* Get an Ability by its ID.
|
|
3995
|
+
* @param id The Ability ID.
|
|
3996
|
+
* @returns The matching Ability.
|
|
3997
|
+
*/
|
|
3998
|
+
getAbilityById(id: number): Promise<Ability>;
|
|
3999
|
+
/**
|
|
4000
|
+
* Get a Characteristic by its ID.
|
|
4001
|
+
* @param id The Characteristic ID.
|
|
4002
|
+
* @returns The matching Characteristic.
|
|
4003
|
+
*/
|
|
4004
|
+
getCharacteristicById(id: number): Promise<Characteristic>;
|
|
4005
|
+
/**
|
|
4006
|
+
* Get an Egg Group by its name.
|
|
4007
|
+
* @param name The Egg Group name.
|
|
4008
|
+
* @returns The matching Egg Group.
|
|
4009
|
+
*/
|
|
4010
|
+
getEggGroupByName(name: string): Promise<EggGroup>;
|
|
4011
|
+
/**
|
|
4012
|
+
* Get an Egg Group by its ID.
|
|
4013
|
+
* @param id The Egg Group ID.
|
|
4014
|
+
* @returns The matching Egg Group.
|
|
4015
|
+
*/
|
|
4016
|
+
getEggGroupById(id: number): Promise<EggGroup>;
|
|
4017
|
+
/**
|
|
4018
|
+
* Get a Gender by its name.
|
|
4019
|
+
* @param name The Gender name.
|
|
4020
|
+
* @returns The matching Gender.
|
|
4021
|
+
*/
|
|
4022
|
+
getGenderByName(name: string): Promise<Gender>;
|
|
4023
|
+
/**
|
|
4024
|
+
* Get a Gender by its ID.
|
|
4025
|
+
* @param id The Gender ID.
|
|
4026
|
+
* @returns The matching Gender.
|
|
4027
|
+
*/
|
|
4028
|
+
getGenderById(id: number): Promise<Gender>;
|
|
4029
|
+
/**
|
|
4030
|
+
* Get a Growth Rate by its name.
|
|
4031
|
+
* @param name The Growth Rate name.
|
|
4032
|
+
* @returns The matching Growth Rate.
|
|
4033
|
+
*/
|
|
4034
|
+
getGrowthRateByName(name: string): Promise<GrowthRate>;
|
|
4035
|
+
/**
|
|
4036
|
+
* Get a Growth Rate by its ID.
|
|
4037
|
+
* @param id The Growth Rate ID.
|
|
4038
|
+
* @returns The matching Growth Rate.
|
|
4039
|
+
*/
|
|
4040
|
+
getGrowthRateById(id: number): Promise<GrowthRate>;
|
|
4041
|
+
/**
|
|
4042
|
+
* Get a Nature by its name.
|
|
4043
|
+
* @param name The Nature name.
|
|
4044
|
+
* @returns The matching Nature.
|
|
4045
|
+
*/
|
|
4046
|
+
getNatureByName(name: string): Promise<Nature>;
|
|
4047
|
+
/**
|
|
4048
|
+
* Get a Nature by its ID.
|
|
4049
|
+
* @param id The Nature ID.
|
|
4050
|
+
* @returns The matching Nature.
|
|
4051
|
+
*/
|
|
4052
|
+
getNatureById(id: number): Promise<Nature>;
|
|
4053
|
+
/**
|
|
4054
|
+
* Get a Pokéathlon Stat by its name.
|
|
4055
|
+
* @param name The Pokéathlon Stat name.
|
|
4056
|
+
* @returns The matching Pokéathlon Stat.
|
|
4057
|
+
*/
|
|
4058
|
+
getPokeathlonStatByName(name: string): Promise<PokeathlonStat>;
|
|
4059
|
+
/**
|
|
4060
|
+
* Get a Pokéathlon Stat by its ID.
|
|
4061
|
+
* @param id The Pokéathlon Stat ID.
|
|
4062
|
+
* @returns The matching Pokéathlon Stat.
|
|
4063
|
+
*/
|
|
4064
|
+
getPokeathlonStatById(id: number): Promise<PokeathlonStat>;
|
|
4065
|
+
/**
|
|
4066
|
+
* Get a Pokémon by its name.
|
|
4067
|
+
* @param name The Pokémon name.
|
|
4068
|
+
* @returns The matching Pokémon.
|
|
4069
|
+
*/
|
|
4070
|
+
getPokemonByName(name: string): Promise<Pokemon>;
|
|
4071
|
+
/**
|
|
4072
|
+
* Get a Pokémon by its ID.
|
|
4073
|
+
* @param id The Pokémon ID.
|
|
4074
|
+
* @returns The matching Pokémon.
|
|
4075
|
+
*/
|
|
4076
|
+
getPokemonById(id: number): Promise<Pokemon>;
|
|
4077
|
+
/**
|
|
4078
|
+
* Get the areas a Pokémon can be encountered in, by its ID.
|
|
4079
|
+
* @param id The Pokémon ID.
|
|
4080
|
+
* @returns Every location area the Pokémon appears in, with its encounter details.
|
|
4081
|
+
*/
|
|
4082
|
+
getPokemonLocationAreaById(id: number): Promise<LocationAreaEncounter[]>;
|
|
4083
|
+
/**
|
|
4084
|
+
* Get a Pokémon Color by its name.
|
|
4085
|
+
* @param name The Pokémon Color name.
|
|
4086
|
+
* @returns The matching Pokémon Color.
|
|
4087
|
+
*/
|
|
4088
|
+
getPokemonColorByName(name: string): Promise<PokemonColor>;
|
|
4089
|
+
/**
|
|
4090
|
+
* Get a Pokémon Color by its ID.
|
|
4091
|
+
* @param id The Pokémon Color ID.
|
|
4092
|
+
* @returns The matching Pokémon Color.
|
|
4093
|
+
*/
|
|
4094
|
+
getPokemonColorById(id: number): Promise<PokemonColor>;
|
|
4095
|
+
/**
|
|
4096
|
+
* Get a Pokémon Form by its name.
|
|
4097
|
+
* @param name The Pokémon Form name.
|
|
4098
|
+
* @returns The matching Pokémon Form.
|
|
4099
|
+
*/
|
|
4100
|
+
getPokemonFormByName(name: string): Promise<PokemonForm>;
|
|
4101
|
+
/**
|
|
4102
|
+
* Get a Pokémon Form by its ID.
|
|
4103
|
+
* @param id The Pokémon Form ID.
|
|
4104
|
+
* @returns The matching Pokémon Form.
|
|
4105
|
+
*/
|
|
4106
|
+
getPokemonFormById(id: number): Promise<PokemonForm>;
|
|
4107
|
+
/**
|
|
4108
|
+
* Get a Pokémon Habitat by its name.
|
|
4109
|
+
* @param name The Pokémon Habitat name.
|
|
4110
|
+
* @returns The matching Pokémon Habitat.
|
|
4111
|
+
*/
|
|
4112
|
+
getPokemonHabitatByName(name: string): Promise<PokemonHabitat>;
|
|
4113
|
+
/**
|
|
4114
|
+
* Get a Pokémon Habitat by its ID.
|
|
4115
|
+
* @param id The Pokémon Habitat ID.
|
|
4116
|
+
* @returns The matching Pokémon Habitat.
|
|
4117
|
+
*/
|
|
4118
|
+
getPokemonHabitatById(id: number): Promise<PokemonHabitat>;
|
|
4119
|
+
/**
|
|
4120
|
+
* Get a Pokémon Shape by its name.
|
|
4121
|
+
* @param name The Pokémon Shape name.
|
|
4122
|
+
* @returns The matching Pokémon Shape.
|
|
4123
|
+
*/
|
|
4124
|
+
getPokemonShapeByName(name: string): Promise<PokemonShape>;
|
|
4125
|
+
/**
|
|
4126
|
+
* Get a Pokémon Shape by its ID.
|
|
4127
|
+
* @param id The Pokémon Shape ID.
|
|
4128
|
+
* @returns The matching Pokémon Shape.
|
|
4129
|
+
*/
|
|
4130
|
+
getPokemonShapeById(id: number): Promise<PokemonShape>;
|
|
4131
|
+
/**
|
|
4132
|
+
* Get a Pokémon Species by its name.
|
|
4133
|
+
* @param name The Pokémon Species name.
|
|
4134
|
+
* @returns The matching Pokémon Species.
|
|
4135
|
+
*/
|
|
4136
|
+
getPokemonSpeciesByName(name: string): Promise<PokemonSpecies>;
|
|
4137
|
+
/**
|
|
4138
|
+
* Get a Pokémon Species by its ID.
|
|
4139
|
+
* @param id The Pokémon Species ID.
|
|
4140
|
+
* @returns The matching Pokémon Species.
|
|
4141
|
+
*/
|
|
4142
|
+
getPokemonSpeciesById(id: number): Promise<PokemonSpecies>;
|
|
4143
|
+
/**
|
|
4144
|
+
* Get a Stat by its name.
|
|
4145
|
+
* @param name The Stat name.
|
|
4146
|
+
* @returns The matching Stat.
|
|
4147
|
+
*/
|
|
4148
|
+
getStatByName(name: string): Promise<Stat>;
|
|
4149
|
+
/**
|
|
4150
|
+
* Get a Stat by its ID.
|
|
4151
|
+
* @param id The Stat ID.
|
|
4152
|
+
* @returns The matching Stat.
|
|
4153
|
+
*/
|
|
4154
|
+
getStatById(id: number): Promise<Stat>;
|
|
4155
|
+
/**
|
|
4156
|
+
* Get a Type by its name.
|
|
4157
|
+
* @param name The Type name.
|
|
4158
|
+
* @returns The matching Type.
|
|
4159
|
+
*/
|
|
4160
|
+
getTypeByName(name: string): Promise<Type>;
|
|
4161
|
+
/**
|
|
4162
|
+
* Get a Type by its ID.
|
|
4163
|
+
* @param id The Type ID.
|
|
4164
|
+
* @returns The matching Type.
|
|
4165
|
+
*/
|
|
4166
|
+
getTypeById(id: number): Promise<Type>;
|
|
4167
|
+
/**
|
|
4168
|
+
* List Abilities.
|
|
4169
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4170
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4171
|
+
* @returns A paginated list of Abilities.
|
|
4172
|
+
*/
|
|
4173
|
+
listAbilities(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4174
|
+
/**
|
|
4175
|
+
* List Characteristics.
|
|
4176
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4177
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4178
|
+
* @returns A paginated list of Characteristics.
|
|
4179
|
+
*/
|
|
4180
|
+
listCharacteristics(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4181
|
+
/**
|
|
4182
|
+
* List Egg Groups.
|
|
4183
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4184
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4185
|
+
* @returns A paginated list of Egg Groups.
|
|
4186
|
+
*/
|
|
4187
|
+
listEggGroups(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4188
|
+
/**
|
|
4189
|
+
* List Genders.
|
|
4190
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4191
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4192
|
+
* @returns A paginated list of Genders.
|
|
4193
|
+
*/
|
|
4194
|
+
listGenders(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4195
|
+
/**
|
|
4196
|
+
* List Growth Rates.
|
|
4197
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4198
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4199
|
+
* @returns A paginated list of Growth Rates.
|
|
4200
|
+
*/
|
|
4201
|
+
listGrowthRates(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4202
|
+
/**
|
|
4203
|
+
* List Natures.
|
|
4204
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4205
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4206
|
+
* @returns A paginated list of Natures.
|
|
4207
|
+
*/
|
|
4208
|
+
listNatures(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4209
|
+
/**
|
|
4210
|
+
* List Pokéathlon Stats.
|
|
4211
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4212
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4213
|
+
* @returns A paginated list of Pokéathlon Stats.
|
|
4214
|
+
*/
|
|
4215
|
+
listPokeathlonStats(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4216
|
+
/**
|
|
4217
|
+
* List Pokémon.
|
|
4218
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4219
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4220
|
+
* @returns A paginated list of Pokémon.
|
|
4221
|
+
*/
|
|
4222
|
+
listPokemons(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4223
|
+
/**
|
|
4224
|
+
* List Pokémon Colors.
|
|
4225
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4226
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4227
|
+
* @returns A paginated list of Pokémon Colors.
|
|
4228
|
+
*/
|
|
4229
|
+
listPokemonColors(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4230
|
+
/**
|
|
4231
|
+
* List Pokémon Forms.
|
|
4232
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4233
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4234
|
+
* @returns A paginated list of Pokémon Forms.
|
|
4235
|
+
*/
|
|
4236
|
+
listPokemonForms(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4237
|
+
/**
|
|
4238
|
+
* List Pokémon Habitats.
|
|
4239
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4240
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4241
|
+
* @returns A paginated list of Pokémon Habitats.
|
|
4242
|
+
*/
|
|
4243
|
+
listPokemonHabitats(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4244
|
+
/**
|
|
4245
|
+
* List Pokémon Shapes.
|
|
4246
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4247
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4248
|
+
* @returns A paginated list of Pokémon Shapes.
|
|
4249
|
+
*/
|
|
4250
|
+
listPokemonShapes(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4251
|
+
/**
|
|
4252
|
+
* List Pokémon Species.
|
|
4253
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4254
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4255
|
+
* @returns A paginated list of Pokémon Species.
|
|
4256
|
+
*/
|
|
4257
|
+
listPokemonSpecies(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4258
|
+
/**
|
|
4259
|
+
* List Stats.
|
|
4260
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4261
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4262
|
+
* @returns A paginated list of Stats.
|
|
4263
|
+
*/
|
|
4264
|
+
listStats(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4265
|
+
/**
|
|
4266
|
+
* List Types.
|
|
4267
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4268
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4269
|
+
* @returns A paginated list of Types.
|
|
4270
|
+
*/
|
|
4271
|
+
listTypes(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4272
|
+
}
|
|
4273
|
+
//#endregion
|
|
4274
|
+
//#region src/clients/utility.client.d.ts
|
|
4275
|
+
/**
|
|
4276
|
+
* ### Utility Client
|
|
4277
|
+
*
|
|
4278
|
+
* Client used to access the Utility Endpoints:
|
|
4279
|
+
* - [Languages](https://pokeapi.co/docs/v2#languages)
|
|
4280
|
+
* - [Resources](https://pokeapi.co/docs/v2#resource-listspagination-section)
|
|
4281
|
+
* ---
|
|
4282
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#utility-section)
|
|
4283
|
+
*/
|
|
4284
|
+
declare class UtilityClient extends BaseClient {
|
|
4285
|
+
/**
|
|
4286
|
+
* Get a Language by its ID.
|
|
4287
|
+
* @param id The Language ID.
|
|
4288
|
+
* @returns The matching Language.
|
|
4289
|
+
*/
|
|
4290
|
+
getLanguageById(id: number): Promise<Language>;
|
|
4291
|
+
/**
|
|
4292
|
+
* Get a Language by its name.
|
|
4293
|
+
* @param name The Language name.
|
|
4294
|
+
* @returns The matching Language.
|
|
4295
|
+
*/
|
|
4296
|
+
getLanguageByName(name: string): Promise<Language>;
|
|
4297
|
+
/**
|
|
4298
|
+
* Get any resource by its URL, as returned inside a PokéAPI response.
|
|
4299
|
+
* @param url The absolute URL of the resource.
|
|
4300
|
+
* @returns The resource the URL points at.
|
|
4301
|
+
* @throws {TypeError} If `url` is not a valid URL, or names no PokéAPI endpoint.
|
|
4302
|
+
*/
|
|
4303
|
+
getResourceByUrl<T>(url: string): Promise<T>;
|
|
4304
|
+
/**
|
|
4305
|
+
* List Languages.
|
|
4306
|
+
* @param offset Index of the first resource returned. Defaults to 0.
|
|
4307
|
+
* @param limit How many resources per page. Defaults to 20.
|
|
4308
|
+
* @returns A paginated list of Languages.
|
|
4309
|
+
*/
|
|
4310
|
+
listLanguages(offset?: number, limit?: number): Promise<NamedAPIResourceList>;
|
|
4311
|
+
}
|
|
4312
|
+
//#endregion
|
|
4313
|
+
//#region src/clients/main.client.d.ts
|
|
4314
|
+
/**
|
|
4315
|
+
* ### Main Client
|
|
4316
|
+
*
|
|
4317
|
+
* The main client used to access all the PokéAPI Endpoints:
|
|
4318
|
+
* - [Berries](https://pokeapi.co/docs/v2#berries-section)
|
|
4319
|
+
* - [Contests](https://pokeapi.co/docs/v2#contests-section)
|
|
4320
|
+
* - [Currencies](https://pokeapi.co/docs/v2#currencies-section)
|
|
4321
|
+
* - [Encounters](https://pokeapi.co/docs/v2#encounters-section)
|
|
4322
|
+
* - [Evolution](https://pokeapi.co/docs/v2#evolution-section)
|
|
4323
|
+
* - [Games](https://pokeapi.co/docs/v2#games-section)
|
|
4324
|
+
* - [Items](https://pokeapi.co/docs/v2#items-section)
|
|
4325
|
+
* - [Locations](https://pokeapi.co/docs/v2#locations-section)
|
|
4326
|
+
* - [Machines](https://pokeapi.co/docs/v2#machines-section)
|
|
4327
|
+
* - [Moves](https://pokeapi.co/docs/v2#moves-section)
|
|
4328
|
+
* - [Pokémon](https://pokeapi.co/docs/v2#pokemon-section)
|
|
4329
|
+
* - [Utility](https://pokeapi.co/docs/v2#utility-section)
|
|
4330
|
+
* ---
|
|
4331
|
+
* All the clients below share a single cache, so a resource fetched through one
|
|
4332
|
+
* of them is served from memory by the rest.
|
|
4333
|
+
*
|
|
4334
|
+
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2)
|
|
4335
|
+
*/
|
|
4336
|
+
declare class MainClient {
|
|
4337
|
+
readonly cache: CacheStore | undefined;
|
|
4338
|
+
readonly berry: BerryClient;
|
|
4339
|
+
readonly contest: ContestClient;
|
|
4340
|
+
readonly currency: CurrencyClient;
|
|
4341
|
+
readonly encounter: EncounterClient;
|
|
4342
|
+
readonly evolution: EvolutionClient;
|
|
4343
|
+
readonly game: GameClient;
|
|
4344
|
+
readonly item: ItemClient;
|
|
4345
|
+
readonly location: LocationClient;
|
|
4346
|
+
readonly machine: MachineClient;
|
|
4347
|
+
readonly move: MoveClient;
|
|
4348
|
+
readonly pokemon: PokemonClient;
|
|
4349
|
+
readonly utility: UtilityClient;
|
|
4350
|
+
constructor(clientOptions?: ClientOptions);
|
|
4351
|
+
/** Drops every cached response, for all the clients at once. */
|
|
4352
|
+
clearCache(): Promise<void>;
|
|
4353
|
+
}
|
|
4354
|
+
//#endregion
|
|
4355
|
+
//#region src/config/errors.d.ts
|
|
4356
|
+
/**
|
|
4357
|
+
* ## Pokenode Error
|
|
4358
|
+
* Thrown when the PokéAPI answers with a non-2xx status. Transport failures are
|
|
4359
|
+
* not wrapped — the native error propagates untouched.
|
|
4360
|
+
*/
|
|
4361
|
+
declare class PokenodeError extends Error {
|
|
4362
|
+
readonly name = "PokenodeError";
|
|
4363
|
+
readonly kind = "pokenode:http";
|
|
4364
|
+
/** HTTP status code of the response. */
|
|
4365
|
+
readonly status: number;
|
|
4366
|
+
/** HTTP status text of the response. */
|
|
4367
|
+
readonly statusText: string;
|
|
4368
|
+
/** URL that produced the error. */
|
|
4369
|
+
readonly url: string;
|
|
4370
|
+
/** Parsed response body, when the error response carried JSON. */
|
|
4371
|
+
readonly body: unknown;
|
|
4372
|
+
constructor(response: Response, body: unknown);
|
|
4373
|
+
/** Whether the error came from a pokenode-ts client. */
|
|
4374
|
+
static isPokenodeError(error: unknown): error is PokenodeError;
|
|
4375
|
+
}
|
|
4376
|
+
//#endregion
|
|
4377
|
+
export { APIResource, Ability, AbilityEffectChange, AbilityFlavorText, AbilityPokemon, Animated, AwesomeName, BASE_URL, BERRIES, BERRY_FIRMNESSES, BERRY_FLAVORS, Berry, BerryClient, BerryFirmness, BerryFlavor, BerryFlavorMap, BlackWhite, index_d_exports as CONSTANTS, CONTEST_TYPES, CURRENCIES, type CacheStore, ChainLink, Characteristic, type ClientOptions, ContestClient, ContestComboDetail, ContestComboSets, ContestEffect, ContestName, ContestType, Crystal, Currency, CurrencyClient, Description, DiamondPearl, DreamWorld, EGG_GROUPS, ENCOUNTER_CONDITIONS, ENCOUNTER_CONDITION_VALUES, ENCOUNTER_METHODS, ENDPOINTS, EVOLUTION_TRIGGERS, Effect, EggGroup, Emerald, Encounter, EncounterClient, EncounterCondition, EncounterConditionValue, EncounterMethod, EncounterMethodRate, EncounterVersionDetails, Endpoint, EvolutionChain, EvolutionClient, EvolutionDetail, EvolutionTrigger, type FetchLike, FireredLeafgreen, FlavorBerryMap, FlavorText, GENDERS, GENERATIONS, GROWTH_RATES, GameClient, Gender, Generation, GenerationGameIndex, GenerationIIISprites, GenerationIISprites, GenerationISprites, GenerationIVSprites, GenerationVIIISprites, GenerationVIISprites, GenerationVISprites, GenerationVSprites, GenerationViiIcons, GenerationViiiIcons, Genus, Gold, GrowthRate, GrowthRateExperienceLevel, HeartgoldSoulsilver, Home, ITEM_ATTRIBUTES, ITEM_CATEGORIES, ITEM_FLING_EFFECTS, ITEM_POCKETS, Item, ItemAttribute, ItemCategory, ItemClient, ItemFlingEffect, ItemHolderPokemon, ItemHolderPokemonVersionDetail, ItemPocket, ItemPrice, ItemSprites, LANGUAGES, Language, Location, LocationArea, LocationAreaEncounter, LocationClient, type Logger, MOVE_AILMENTS, MOVE_BATTLE_STYLES, MOVE_CATEGORIES, MOVE_DAMAGE_CLASSES, MOVE_LEARN_METHODS, MOVE_TARGETS, Machine, MachineClient, MachineVersionDetail, MainClient, MemoryCache, type MemoryCacheOptions, Move, MoveAilment, MoveBattleStyle, MoveBattleStylePreference, MoveCategory, MoveClient, MoveDamageClass, MoveFlavorText, MoveLearnMethod, MoveMetaData, MoveStatAffect, MoveStatAffectSets, MoveStatChange, MoveTarget, NATURES, Name, NamedAPIResource, NamedAPIResourceList, Nature, NaturePokeathlonStatAffect, NaturePokeathlonStatAffectSets, NatureStatAffectSets, NatureStatChange, OfficialArtwork, OmegarubyAlphasapphire, OtherPokemonSprites, PAL_PARK_AREAS, POKEATHLON_STATS, POKEDEXES, POKEMON_COLORS, POKEMON_HABITATS, POKEMON_SHAPES, PalParkArea, PalParkEncounterArea, PalParkEncounterSpecies, PastMoveStatValues, Platinum, PokeathlonStat, Pokedex, Pokemon, PokemonAbility, PokemonClient, PokemonColor, PokemonCries, PokemonEncounter, PokemonEntry, PokemonForm, PokemonFormCondition, PokemonFormSprites, PokemonHabitat, PokemonHeldItem, PokemonHeldItemVersion, PokemonMove, PokemonMoveVersion, PokemonPastAbility, PokemonPastAbilitySlot, PokemonPastStat, PokemonPastType, PokemonShape, PokemonSpecies, PokemonSpeciesDexEntry, PokemonSpeciesGender, PokemonSpeciesVariety, PokemonSprites, PokemonStat, PokemonType, PokenodeError, REGIONS, RedBlue, Region, RubySapphire, STATS, Showdown, Silver, Stat, SuperContestEffect, TYPES, Type, TypePokemon, TypeRelations, TypeRelationsPast, UltraSunUltraMoon, UtilityClient, VERSIONS, VERSION_GROUPS, VerboseEffect, Version, VersionEncounterDetail, VersionGameIndex, VersionGroup, VersionGroupFlavorText, VersionSprites, XY, Yellow, consoleLogger };
|
|
4378
|
+
//# sourceMappingURL=index.d.cts.map
|