pokenode-ts 1.11.0 → 1.13.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.
@@ -40,7 +40,7 @@ class PokemonClient extends base_1.BaseClient {
40
40
  * @returns An Ability
41
41
  */
42
42
  getAbilityByName(name) {
43
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
43
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
44
44
  return new Promise((resolve, reject) => {
45
45
  this.api
46
46
  .get(`${constants_1.Endpoints.Ability}/${name}`)
@@ -55,7 +55,7 @@ class PokemonClient extends base_1.BaseClient {
55
55
  * @returns An Ability
56
56
  */
57
57
  getAbilityById(id) {
58
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
58
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
59
59
  return new Promise((resolve, reject) => {
60
60
  this.api
61
61
  .get(`${constants_1.Endpoints.Ability}/${id}`)
@@ -70,7 +70,7 @@ class PokemonClient extends base_1.BaseClient {
70
70
  * @returns A Characteristic
71
71
  */
72
72
  getCharacteristicById(id) {
73
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
73
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
74
74
  return new Promise((resolve, reject) => {
75
75
  this.api
76
76
  .get(`${constants_1.Endpoints.Characteristic}/${id}`)
@@ -85,7 +85,7 @@ class PokemonClient extends base_1.BaseClient {
85
85
  * @returns An Egg Group
86
86
  */
87
87
  getEggGroupByName(name) {
88
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
88
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
89
89
  return new Promise((resolve, reject) => {
90
90
  this.api
91
91
  .get(`${constants_1.Endpoints.EggGroup}/${name}`)
@@ -100,7 +100,7 @@ class PokemonClient extends base_1.BaseClient {
100
100
  * @returns An Egg Group
101
101
  */
102
102
  getEggGroupById(id) {
103
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
103
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
104
104
  return new Promise((resolve, reject) => {
105
105
  this.api
106
106
  .get(`${constants_1.Endpoints.EggGroup}/${id}`)
@@ -115,7 +115,7 @@ class PokemonClient extends base_1.BaseClient {
115
115
  * @returns An Egg Group
116
116
  */
117
117
  getGenderByName(name) {
118
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
118
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
119
119
  return new Promise((resolve, reject) => {
120
120
  this.api
121
121
  .get(`${constants_1.Endpoints.Gender}/${name}`)
@@ -130,7 +130,7 @@ class PokemonClient extends base_1.BaseClient {
130
130
  * @returns A Gender
131
131
  */
132
132
  getGenderById(id) {
133
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
133
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
134
134
  return new Promise((resolve, reject) => {
135
135
  this.api
136
136
  .get(`${constants_1.Endpoints.Gender}/${id}`)
@@ -145,7 +145,7 @@ class PokemonClient extends base_1.BaseClient {
145
145
  * @returns A Growth Rate
146
146
  */
147
147
  getGrowthRateByName(name) {
148
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
148
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
149
149
  return new Promise((resolve, reject) => {
150
150
  this.api
151
151
  .get(`${constants_1.Endpoints.GrowthRate}/${name}`)
@@ -160,7 +160,7 @@ class PokemonClient extends base_1.BaseClient {
160
160
  * @returns A Growth Rate
161
161
  */
162
162
  getGrowthRateById(id) {
163
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
163
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
164
164
  return new Promise((resolve, reject) => {
165
165
  this.api
166
166
  .get(`${constants_1.Endpoints.GrowthRate}/${id}`)
@@ -175,7 +175,7 @@ class PokemonClient extends base_1.BaseClient {
175
175
  * @returns A Nature
176
176
  */
177
177
  getNatureByName(name) {
178
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
178
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
179
179
  return new Promise((resolve, reject) => {
180
180
  this.api
181
181
  .get(`${constants_1.Endpoints.Nature}/${name}`)
@@ -190,7 +190,7 @@ class PokemonClient extends base_1.BaseClient {
190
190
  * @returns A Nature
191
191
  */
192
192
  getNatureById(id) {
193
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
193
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
194
194
  return new Promise((resolve, reject) => {
195
195
  this.api
196
196
  .get(`${constants_1.Endpoints.Nature}/${id}`)
@@ -205,7 +205,7 @@ class PokemonClient extends base_1.BaseClient {
205
205
  * @returns A Pokeathlon Stat
206
206
  */
207
207
  getPokeathlonStatByName(name) {
208
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
208
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
209
209
  return new Promise((resolve, reject) => {
210
210
  this.api
211
211
  .get(`${constants_1.Endpoints.PokeathlonStat}/${name}`)
@@ -220,7 +220,7 @@ class PokemonClient extends base_1.BaseClient {
220
220
  * @returns A Pokeathlon Stat
221
221
  */
222
222
  getPokeathlonStatById(id) {
223
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
223
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
224
224
  return new Promise((resolve, reject) => {
225
225
  this.api
226
226
  .get(`${constants_1.Endpoints.PokeathlonStat}/${id}`)
@@ -235,7 +235,7 @@ class PokemonClient extends base_1.BaseClient {
235
235
  * @returns A Pokemon Stat
236
236
  */
237
237
  getPokemonByName(name) {
238
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
238
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
239
239
  return new Promise((resolve, reject) => {
240
240
  this.api
241
241
  .get(`${constants_1.Endpoints.Pokemon}/${name}`)
@@ -250,7 +250,7 @@ class PokemonClient extends base_1.BaseClient {
250
250
  * @returns A Pokemon
251
251
  */
252
252
  getPokemonById(id) {
253
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
253
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
254
254
  return new Promise((resolve, reject) => {
255
255
  this.api
256
256
  .get(`${constants_1.Endpoints.Pokemon}/${id}`)
@@ -265,7 +265,7 @@ class PokemonClient extends base_1.BaseClient {
265
265
  * @returns A Pokemon Location Area
266
266
  */
267
267
  getPokemonLocationAreaById(id) {
268
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
268
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
269
269
  return new Promise((resolve, reject) => {
270
270
  this.api
271
271
  .get(`${constants_1.Endpoints.PokemonLocationArea.replace(':id', id.toString())}`)
@@ -280,7 +280,7 @@ class PokemonClient extends base_1.BaseClient {
280
280
  * @returns A Pokemon Color
281
281
  */
282
282
  getPokemonColorByName(name) {
283
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
283
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
284
284
  return new Promise((resolve, reject) => {
285
285
  this.api
286
286
  .get(`${constants_1.Endpoints.PokemonColor}/${name}`)
@@ -295,7 +295,7 @@ class PokemonClient extends base_1.BaseClient {
295
295
  * @returns A Pokemon Color
296
296
  */
297
297
  getPokemonColorById(id) {
298
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
298
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
299
299
  return new Promise((resolve, reject) => {
300
300
  this.api
301
301
  .get(`${constants_1.Endpoints.PokemonColor}/${id}`)
@@ -310,7 +310,7 @@ class PokemonClient extends base_1.BaseClient {
310
310
  * @returns A Pokemon Form
311
311
  */
312
312
  getPokemonFormByName(name) {
313
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
313
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
314
314
  return new Promise((resolve, reject) => {
315
315
  this.api
316
316
  .get(`${constants_1.Endpoints.PokemonForm}/${name}`)
@@ -325,7 +325,7 @@ class PokemonClient extends base_1.BaseClient {
325
325
  * @returns A Pokemon Form
326
326
  */
327
327
  getPokemonFormById(id) {
328
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
328
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
329
329
  return new Promise((resolve, reject) => {
330
330
  this.api
331
331
  .get(`${constants_1.Endpoints.PokemonForm}/${id}`)
@@ -340,7 +340,7 @@ class PokemonClient extends base_1.BaseClient {
340
340
  * @returns A Pokemon Habitat
341
341
  */
342
342
  getPokemonHabitatByName(name) {
343
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
343
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
344
344
  return new Promise((resolve, reject) => {
345
345
  this.api
346
346
  .get(`${constants_1.Endpoints.PokemonHabitat}/${name}`)
@@ -355,7 +355,7 @@ class PokemonClient extends base_1.BaseClient {
355
355
  * @returns A Pokemon Habitat
356
356
  */
357
357
  getPokemonHabitatById(id) {
358
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
358
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
359
359
  return new Promise((resolve, reject) => {
360
360
  this.api
361
361
  .get(`${constants_1.Endpoints.PokemonHabitat}/${id}`)
@@ -370,7 +370,7 @@ class PokemonClient extends base_1.BaseClient {
370
370
  * @returns A Pokemon Shape
371
371
  */
372
372
  getPokemonShapeByName(name) {
373
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
373
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
374
374
  return new Promise((resolve, reject) => {
375
375
  this.api
376
376
  .get(`${constants_1.Endpoints.PokemonShape}/${name}`)
@@ -385,7 +385,7 @@ class PokemonClient extends base_1.BaseClient {
385
385
  * @returns A Pokemon Shape
386
386
  */
387
387
  getPokemonShapeById(id) {
388
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
388
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
389
389
  return new Promise((resolve, reject) => {
390
390
  this.api
391
391
  .get(`${constants_1.Endpoints.PokemonShape}/${id}`)
@@ -400,7 +400,7 @@ class PokemonClient extends base_1.BaseClient {
400
400
  * @returns A Pokemon Species
401
401
  */
402
402
  getPokemonSpeciesByName(name) {
403
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
403
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
404
404
  return new Promise((resolve, reject) => {
405
405
  this.api
406
406
  .get(`${constants_1.Endpoints.PokemonSpecies}/${name}`)
@@ -415,7 +415,7 @@ class PokemonClient extends base_1.BaseClient {
415
415
  * @returns A Pokemon Species
416
416
  */
417
417
  getPokemonSpeciesById(id) {
418
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
418
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
419
419
  return new Promise((resolve, reject) => {
420
420
  this.api
421
421
  .get(`${constants_1.Endpoints.PokemonSpecies}/${id}`)
@@ -430,7 +430,7 @@ class PokemonClient extends base_1.BaseClient {
430
430
  * @returns A Stat
431
431
  */
432
432
  getStatByName(name) {
433
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
433
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
434
434
  return new Promise((resolve, reject) => {
435
435
  this.api
436
436
  .get(`${constants_1.Endpoints.Stat}/${name}`)
@@ -445,7 +445,7 @@ class PokemonClient extends base_1.BaseClient {
445
445
  * @returns A Stat
446
446
  */
447
447
  getStatById(id) {
448
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
448
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
449
449
  return new Promise((resolve, reject) => {
450
450
  this.api
451
451
  .get(`${constants_1.Endpoints.Stat}/${id}`)
@@ -460,7 +460,7 @@ class PokemonClient extends base_1.BaseClient {
460
460
  * @returns A Type
461
461
  */
462
462
  getTypeByName(name) {
463
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
463
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
464
464
  return new Promise((resolve, reject) => {
465
465
  this.api
466
466
  .get(`${constants_1.Endpoints.Type}/${name}`)
@@ -475,7 +475,7 @@ class PokemonClient extends base_1.BaseClient {
475
475
  * @returns A Type
476
476
  */
477
477
  getTypeById(id) {
478
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
478
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
479
479
  return new Promise((resolve, reject) => {
480
480
  this.api
481
481
  .get(`${constants_1.Endpoints.Type}/${id}`)
@@ -491,7 +491,7 @@ class PokemonClient extends base_1.BaseClient {
491
491
  * @returns A list of Abilities
492
492
  */
493
493
  listAbilities(offset, limit) {
494
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
494
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
495
495
  return new Promise((resolve, reject) => {
496
496
  this.api
497
497
  .get(`${constants_1.Endpoints.Ability}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -507,7 +507,7 @@ class PokemonClient extends base_1.BaseClient {
507
507
  * @returns A list of Characteristics
508
508
  */
509
509
  listCharacteristics(offset, limit) {
510
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
510
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
511
511
  return new Promise((resolve, reject) => {
512
512
  this.api
513
513
  .get(`${constants_1.Endpoints.Characteristic}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -523,7 +523,7 @@ class PokemonClient extends base_1.BaseClient {
523
523
  * @returns A list of Egg Groups
524
524
  */
525
525
  listEggGroups(offset, limit) {
526
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
526
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
527
527
  return new Promise((resolve, reject) => {
528
528
  this.api
529
529
  .get(`${constants_1.Endpoints.EggGroup}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -539,7 +539,7 @@ class PokemonClient extends base_1.BaseClient {
539
539
  * @returns A list of Genders
540
540
  */
541
541
  listGenders(offset, limit) {
542
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
542
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
543
543
  return new Promise((resolve, reject) => {
544
544
  this.api
545
545
  .get(`${constants_1.Endpoints.Gender}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -555,7 +555,7 @@ class PokemonClient extends base_1.BaseClient {
555
555
  * @returns A list of Growth Rates
556
556
  */
557
557
  listGrowthRates(offset, limit) {
558
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
558
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
559
559
  return new Promise((resolve, reject) => {
560
560
  this.api
561
561
  .get(`${constants_1.Endpoints.GrowthRate}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -571,7 +571,7 @@ class PokemonClient extends base_1.BaseClient {
571
571
  * @returns A list of Natures
572
572
  */
573
573
  listNatures(offset, limit) {
574
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
574
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
575
575
  return new Promise((resolve, reject) => {
576
576
  this.api
577
577
  .get(`${constants_1.Endpoints.Nature}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -587,7 +587,7 @@ class PokemonClient extends base_1.BaseClient {
587
587
  * @returns A list of Pokeathlon Stats
588
588
  */
589
589
  listPokeathlonStats(offset, limit) {
590
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
590
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
591
591
  return new Promise((resolve, reject) => {
592
592
  this.api
593
593
  .get(`${constants_1.Endpoints.PokeathlonStat}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -603,7 +603,7 @@ class PokemonClient extends base_1.BaseClient {
603
603
  * @returns A list of Pokemons
604
604
  */
605
605
  listPokemons(offset, limit) {
606
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
606
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
607
607
  return new Promise((resolve, reject) => {
608
608
  this.api
609
609
  .get(`${constants_1.Endpoints.Pokemon}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -619,7 +619,7 @@ class PokemonClient extends base_1.BaseClient {
619
619
  * @returns A list of Pokemon Colors
620
620
  */
621
621
  listPokemonColors(offset, limit) {
622
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
622
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
623
623
  return new Promise((resolve, reject) => {
624
624
  this.api
625
625
  .get(`${constants_1.Endpoints.PokemonColor}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -635,7 +635,7 @@ class PokemonClient extends base_1.BaseClient {
635
635
  * @returns A list of Pokemon Forms
636
636
  */
637
637
  listPokemonForms(offset, limit) {
638
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
638
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
639
639
  return new Promise((resolve, reject) => {
640
640
  this.api
641
641
  .get(`${constants_1.Endpoints.PokemonForm}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -651,7 +651,7 @@ class PokemonClient extends base_1.BaseClient {
651
651
  * @returns A list of Pokemon Habitats
652
652
  */
653
653
  listPokemonHabitats(offset, limit) {
654
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
654
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
655
655
  return new Promise((resolve, reject) => {
656
656
  this.api
657
657
  .get(`${constants_1.Endpoints.PokemonHabitat}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -667,7 +667,7 @@ class PokemonClient extends base_1.BaseClient {
667
667
  * @returns A list of Pokemon Shapes
668
668
  */
669
669
  listPokemonShapes(offset, limit) {
670
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
670
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
671
671
  return new Promise((resolve, reject) => {
672
672
  this.api
673
673
  .get(`${constants_1.Endpoints.PokemonShape}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -683,7 +683,7 @@ class PokemonClient extends base_1.BaseClient {
683
683
  * @returns A list of Pokemon Species
684
684
  */
685
685
  listPokemonSpecies(offset, limit) {
686
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
686
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
687
687
  return new Promise((resolve, reject) => {
688
688
  this.api
689
689
  .get(`${constants_1.Endpoints.PokemonSpecies}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -699,7 +699,7 @@ class PokemonClient extends base_1.BaseClient {
699
699
  * @returns A list of Stats
700
700
  */
701
701
  listStats(offset, limit) {
702
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
702
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
703
703
  return new Promise((resolve, reject) => {
704
704
  this.api
705
705
  .get(`${constants_1.Endpoints.Stat}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -715,7 +715,7 @@ class PokemonClient extends base_1.BaseClient {
715
715
  * @returns A list of Types
716
716
  */
717
717
  listTypes(offset, limit) {
718
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
718
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
719
719
  return new Promise((resolve, reject) => {
720
720
  this.api
721
721
  .get(`${constants_1.Endpoints.Type}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -23,7 +23,7 @@ class UtilityClient extends base_1.BaseClient {
23
23
  * @returns Language
24
24
  */
25
25
  getLanguageById(id) {
26
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
26
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
27
  return new Promise((resolve, reject) => {
28
28
  this.api
29
29
  .get(`${constants_1.Endpoints.Language}/${id}`)
@@ -38,7 +38,7 @@ class UtilityClient extends base_1.BaseClient {
38
38
  * @returns Language
39
39
  */
40
40
  getLanguageByName(name) {
41
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
41
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
42
  return new Promise((resolve, reject) => {
43
43
  this.api
44
44
  .get(`${constants_1.Endpoints.Language}/${name}`)
@@ -54,7 +54,7 @@ class UtilityClient extends base_1.BaseClient {
54
54
  */
55
55
  /* eslint-disable @typescript-eslint/no-explicit-any */
56
56
  getResourceByUrl(url) {
57
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
57
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
58
58
  return new Promise((resolve, reject) => {
59
59
  this.api
60
60
  .get(url, { baseURL: '' })
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleResponseError = exports.handleResponse = exports.handleRequestError = exports.handleRequest = exports.createLogger = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const pino_1 = (0, tslib_1.__importDefault)(require("pino"));
5
+ const pino_1 = tslib_1.__importDefault(require("pino"));
6
6
  const createLogger = (options) => (0, pino_1.default)(options);
7
7
  exports.createLogger = createLogger;
8
8
  const handleRequest = (config, logger) => {
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./base"), exports);
5
- (0, tslib_1.__exportStar)(require("./endpoints"), exports);
6
- (0, tslib_1.__exportStar)(require("./berries"), exports);
7
- (0, tslib_1.__exportStar)(require("./contests"), exports);
8
- (0, tslib_1.__exportStar)(require("./encounters"), exports);
9
- (0, tslib_1.__exportStar)(require("./evolutions"), exports);
10
- (0, tslib_1.__exportStar)(require("./games"), exports);
11
- (0, tslib_1.__exportStar)(require("./locations"), exports);
12
- (0, tslib_1.__exportStar)(require("./moves"), exports);
13
- (0, tslib_1.__exportStar)(require("./pokemons"), exports);
14
- (0, tslib_1.__exportStar)(require("./utilities"), exports);
15
- (0, tslib_1.__exportStar)(require("./items"), exports);
4
+ tslib_1.__exportStar(require("./base"), exports);
5
+ tslib_1.__exportStar(require("./endpoints"), exports);
6
+ tslib_1.__exportStar(require("./berries"), exports);
7
+ tslib_1.__exportStar(require("./contests"), exports);
8
+ tslib_1.__exportStar(require("./encounters"), exports);
9
+ tslib_1.__exportStar(require("./evolutions"), exports);
10
+ tslib_1.__exportStar(require("./games"), exports);
11
+ tslib_1.__exportStar(require("./locations"), exports);
12
+ tslib_1.__exportStar(require("./moves"), exports);
13
+ tslib_1.__exportStar(require("./pokemons"), exports);
14
+ tslib_1.__exportStar(require("./utilities"), exports);
15
+ tslib_1.__exportStar(require("./items"), exports);
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v6.4.0
1
+ // Generated by dts-bundle-generator v6.5.0
2
2
 
3
3
  import { AxiosInstance } from 'axios';
4
4
  import { IAxiosCacheAdapterOptions } from 'axios-cache-adapter';
@@ -1454,6 +1454,8 @@ export interface GenerationIIISprites {
1454
1454
  export interface Emerald {
1455
1455
  /** The default depiction of this Pokémon from the front in battle */
1456
1456
  front_default: string | null;
1457
+ /** The shiny depiction of this Pokémon from the front in battle */
1458
+ front_shiny: string | null;
1457
1459
  }
1458
1460
  /** FireRead LeafGreen sprites */
1459
1461
  export interface FireredLeafgreen {
@@ -1967,7 +1969,7 @@ export interface PastMoveStatValues {
1967
1969
  /** The percent value of how likely this move is to be successful. */
1968
1970
  accuracy: number | null;
1969
1971
  /** The percent value of how likely it is this moves effect will take effect. */
1970
- effect_chance: number | number;
1972
+ effect_chance: number | null;
1971
1973
  /** The base power of this move with a value of 0 if it does not have a base power. */
1972
1974
  power: number | null;
1973
1975
  /** Power points. The number of times this move can be used. */
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Constants = void 0;
4
4
  const tslib_1 = require("tslib");
5
- (0, tslib_1.__exportStar)(require("./models"), exports);
6
- (0, tslib_1.__exportStar)(require("./clients"), exports);
7
- (0, tslib_1.__exportStar)(require("./constants"), exports);
8
- (0, tslib_1.__exportStar)(require("./structures"), exports);
9
- exports.Constants = (0, tslib_1.__importStar)(require("./constants"));
5
+ tslib_1.__exportStar(require("./models"), exports);
6
+ tslib_1.__exportStar(require("./clients"), exports);
7
+ tslib_1.__exportStar(require("./constants"), exports);
8
+ tslib_1.__exportStar(require("./structures"), exports);
9
+ exports.Constants = tslib_1.__importStar(require("./constants"));
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./berry"), exports);
4
+ tslib_1.__exportStar(require("./berry"), exports);
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./resource"), exports);
5
- (0, tslib_1.__exportStar)(require("./language"), exports);
6
- (0, tslib_1.__exportStar)(require("./name"), exports);
7
- (0, tslib_1.__exportStar)(require("./description"), exports);
8
- (0, tslib_1.__exportStar)(require("./effect"), exports);
9
- (0, tslib_1.__exportStar)(require("./encounter"), exports);
10
- (0, tslib_1.__exportStar)(require("./flavor-text"), exports);
11
- (0, tslib_1.__exportStar)(require("./generation"), exports);
12
- (0, tslib_1.__exportStar)(require("./machine"), exports);
13
- (0, tslib_1.__exportStar)(require("./verbose"), exports);
14
- (0, tslib_1.__exportStar)(require("./version"), exports);
4
+ tslib_1.__exportStar(require("./resource"), exports);
5
+ tslib_1.__exportStar(require("./language"), exports);
6
+ tslib_1.__exportStar(require("./name"), exports);
7
+ tslib_1.__exportStar(require("./description"), exports);
8
+ tslib_1.__exportStar(require("./effect"), exports);
9
+ tslib_1.__exportStar(require("./encounter"), exports);
10
+ tslib_1.__exportStar(require("./flavor-text"), exports);
11
+ tslib_1.__exportStar(require("./generation"), exports);
12
+ tslib_1.__exportStar(require("./machine"), exports);
13
+ tslib_1.__exportStar(require("./verbose"), exports);
14
+ tslib_1.__exportStar(require("./version"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./contest"), exports);
4
+ tslib_1.__exportStar(require("./contest"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./encounter"), exports);
4
+ tslib_1.__exportStar(require("./encounter"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./evolution"), exports);
4
+ tslib_1.__exportStar(require("./evolution"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./generation"), exports);
5
- (0, tslib_1.__exportStar)(require("./pokedex"), exports);
6
- (0, tslib_1.__exportStar)(require("./pokemon-entry"), exports);
7
- (0, tslib_1.__exportStar)(require("./version"), exports);
4
+ tslib_1.__exportStar(require("./generation"), exports);
5
+ tslib_1.__exportStar(require("./pokedex"), exports);
6
+ tslib_1.__exportStar(require("./pokemon-entry"), exports);
7
+ tslib_1.__exportStar(require("./version"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./item"), exports);
4
+ tslib_1.__exportStar(require("./item"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./encounter"), exports);
5
- (0, tslib_1.__exportStar)(require("./location"), exports);
6
- (0, tslib_1.__exportStar)(require("./palpark"), exports);
7
- (0, tslib_1.__exportStar)(require("./region"), exports);
4
+ tslib_1.__exportStar(require("./encounter"), exports);
5
+ tslib_1.__exportStar(require("./location"), exports);
6
+ tslib_1.__exportStar(require("./palpark"), exports);
7
+ tslib_1.__exportStar(require("./region"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./machine"), exports);
4
+ tslib_1.__exportStar(require("./machine"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./moves"), exports);
4
+ tslib_1.__exportStar(require("./moves"), exports);
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./ability"), exports);
5
- (0, tslib_1.__exportStar)(require("./characteristics"), exports);
6
- (0, tslib_1.__exportStar)(require("./egg-group"), exports);
7
- (0, tslib_1.__exportStar)(require("./gender"), exports);
8
- (0, tslib_1.__exportStar)(require("./growth-rates"), exports);
9
- (0, tslib_1.__exportStar)(require("./nature"), exports);
10
- (0, tslib_1.__exportStar)(require("./pokeathlon-stat"), exports);
11
- (0, tslib_1.__exportStar)(require("./stats"), exports);
12
- (0, tslib_1.__exportStar)(require("./type"), exports);
13
- (0, tslib_1.__exportStar)(require("./pokemon"), exports);
4
+ tslib_1.__exportStar(require("./ability"), exports);
5
+ tslib_1.__exportStar(require("./characteristics"), exports);
6
+ tslib_1.__exportStar(require("./egg-group"), exports);
7
+ tslib_1.__exportStar(require("./gender"), exports);
8
+ tslib_1.__exportStar(require("./growth-rates"), exports);
9
+ tslib_1.__exportStar(require("./nature"), exports);
10
+ tslib_1.__exportStar(require("./pokeathlon-stat"), exports);
11
+ tslib_1.__exportStar(require("./stats"), exports);
12
+ tslib_1.__exportStar(require("./type"), exports);
13
+ tslib_1.__exportStar(require("./pokemon"), exports);