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.
@@ -28,7 +28,7 @@ class LocationClient extends base_1.BaseClient {
28
28
  * @returns A Location
29
29
  */
30
30
  getLocationByName(name) {
31
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
31
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
32
32
  return new Promise((resolve, reject) => {
33
33
  this.api
34
34
  .get(`${constants_1.Endpoints.Location}/${name}`)
@@ -43,7 +43,7 @@ class LocationClient extends base_1.BaseClient {
43
43
  * @returns A location
44
44
  */
45
45
  getLocationById(id) {
46
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
46
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
47
  return new Promise((resolve, reject) => {
48
48
  this.api
49
49
  .get(`${constants_1.Endpoints.Location}/${id}`)
@@ -58,7 +58,7 @@ class LocationClient extends base_1.BaseClient {
58
58
  * @returns A Location Area
59
59
  */
60
60
  getLocationAreaByName(name) {
61
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
61
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
62
62
  return new Promise((resolve, reject) => {
63
63
  this.api
64
64
  .get(`${constants_1.Endpoints.LocationArea}/${name}`)
@@ -73,7 +73,7 @@ class LocationClient extends base_1.BaseClient {
73
73
  * @returns A Location Area
74
74
  */
75
75
  getLocationAreaById(id) {
76
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
76
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
77
77
  return new Promise((resolve, reject) => {
78
78
  this.api
79
79
  .get(`${constants_1.Endpoints.LocationArea}/${id}`)
@@ -88,7 +88,7 @@ class LocationClient extends base_1.BaseClient {
88
88
  * @returns A Pal Park Area
89
89
  */
90
90
  getPalParkAreaByName(name) {
91
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
91
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
92
92
  return new Promise((resolve, reject) => {
93
93
  this.api
94
94
  .get(`${constants_1.Endpoints.PalParkArea}/${name}`)
@@ -103,7 +103,7 @@ class LocationClient extends base_1.BaseClient {
103
103
  * @returns A Pal Park Area
104
104
  */
105
105
  getPalParkAreaById(id) {
106
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
106
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
107
107
  return new Promise((resolve, reject) => {
108
108
  this.api
109
109
  .get(`${constants_1.Endpoints.PalParkArea}/${id}`)
@@ -118,7 +118,7 @@ class LocationClient extends base_1.BaseClient {
118
118
  * @returns A Region
119
119
  */
120
120
  getRegionByName(name) {
121
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
121
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
122
122
  return new Promise((resolve, reject) => {
123
123
  this.api
124
124
  .get(`${constants_1.Endpoints.Region}/${name}`)
@@ -133,7 +133,7 @@ class LocationClient extends base_1.BaseClient {
133
133
  * @returns A Region
134
134
  */
135
135
  getRegionById(id) {
136
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
136
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
137
137
  return new Promise((resolve, reject) => {
138
138
  this.api
139
139
  .get(`${constants_1.Endpoints.Region}/${id}`)
@@ -149,7 +149,7 @@ class LocationClient extends base_1.BaseClient {
149
149
  * @returns A list of Locations
150
150
  */
151
151
  listLocations(offset, limit) {
152
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
152
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
153
153
  return new Promise((resolve, reject) => {
154
154
  this.api
155
155
  .get(`${constants_1.Endpoints.Location}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -165,7 +165,7 @@ class LocationClient extends base_1.BaseClient {
165
165
  * @returns A list of Location Areas
166
166
  */
167
167
  listLocationAreas(offset, limit) {
168
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
168
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
169
169
  return new Promise((resolve, reject) => {
170
170
  this.api
171
171
  .get(`${constants_1.Endpoints.LocationArea}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -181,7 +181,7 @@ class LocationClient extends base_1.BaseClient {
181
181
  * @returns A list of Pal Park Areas
182
182
  */
183
183
  listPalParkAreas(offset, limit) {
184
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
184
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
185
185
  return new Promise((resolve, reject) => {
186
186
  this.api
187
187
  .get(`${constants_1.Endpoints.PalParkArea}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -197,7 +197,7 @@ class LocationClient extends base_1.BaseClient {
197
197
  * @returns A list of Regions
198
198
  */
199
199
  listRegions(offset, limit) {
200
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
200
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
201
201
  return new Promise((resolve, reject) => {
202
202
  this.api
203
203
  .get(`${constants_1.Endpoints.Region}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -25,7 +25,7 @@ class MachineClient extends base_1.BaseClient {
25
25
  * @returns A Machine
26
26
  */
27
27
  getMachineById(id) {
28
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
28
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
29
  return new Promise((resolve, reject) => {
30
30
  this.api
31
31
  .get(`${constants_1.Endpoints.Machine}/${id}`)
@@ -41,7 +41,7 @@ class MachineClient extends base_1.BaseClient {
41
41
  * @returns A list of Machines
42
42
  */
43
43
  listMachines(offset, limit) {
44
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
44
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
45
45
  return new Promise((resolve, reject) => {
46
46
  this.api
47
47
  .get(`${constants_1.Endpoints.Machine}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -31,7 +31,7 @@ class MoveClient extends base_1.BaseClient {
31
31
  * @returns A Move
32
32
  */
33
33
  getMoveByName(name) {
34
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
34
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
35
  return new Promise((resolve, reject) => {
36
36
  this.api
37
37
  .get(`${constants_1.Endpoints.Move}/${name}`)
@@ -46,7 +46,7 @@ class MoveClient extends base_1.BaseClient {
46
46
  * @returns A Move
47
47
  */
48
48
  getMoveById(id) {
49
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
49
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
50
  return new Promise((resolve, reject) => {
51
51
  this.api
52
52
  .get(`${constants_1.Endpoints.Move}/${id}`)
@@ -61,7 +61,7 @@ class MoveClient extends base_1.BaseClient {
61
61
  * @returns A Move Ailment
62
62
  */
63
63
  getMoveAilmentByName(name) {
64
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
64
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
65
65
  return new Promise((resolve, reject) => {
66
66
  this.api
67
67
  .get(`${constants_1.Endpoints.MoveAilment}/${name}`)
@@ -76,7 +76,7 @@ class MoveClient extends base_1.BaseClient {
76
76
  * @returns A Move Ailment
77
77
  */
78
78
  getMoveAilmentById(id) {
79
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
79
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
80
80
  return new Promise((resolve, reject) => {
81
81
  this.api
82
82
  .get(`${constants_1.Endpoints.MoveAilment}/${id}`)
@@ -91,7 +91,7 @@ class MoveClient extends base_1.BaseClient {
91
91
  * @returns A Move Battle Style
92
92
  */
93
93
  getMoveBattleStyleByName(name) {
94
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
94
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
95
95
  return new Promise((resolve, reject) => {
96
96
  this.api
97
97
  .get(`${constants_1.Endpoints.MoveBattleStyle}/${name}`)
@@ -106,7 +106,7 @@ class MoveClient extends base_1.BaseClient {
106
106
  * @returns A Move Battle Style
107
107
  */
108
108
  getMoveBattleStyleById(id) {
109
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
109
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
110
110
  return new Promise((resolve, reject) => {
111
111
  this.api
112
112
  .get(`${constants_1.Endpoints.MoveBattleStyle}/${id}`)
@@ -121,7 +121,7 @@ class MoveClient extends base_1.BaseClient {
121
121
  * @returns A Move Category
122
122
  */
123
123
  getMoveCategoryByName(name) {
124
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
124
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
125
125
  return new Promise((resolve, reject) => {
126
126
  this.api
127
127
  .get(`${constants_1.Endpoints.MoveCategory}/${name}`)
@@ -136,7 +136,7 @@ class MoveClient extends base_1.BaseClient {
136
136
  * @returns A Move Category
137
137
  */
138
138
  getMoveCategoryById(id) {
139
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
139
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
140
140
  return new Promise((resolve, reject) => {
141
141
  this.api
142
142
  .get(`${constants_1.Endpoints.MoveCategory}/${id}`)
@@ -151,7 +151,7 @@ class MoveClient extends base_1.BaseClient {
151
151
  * @returns A Move Damage Class
152
152
  */
153
153
  getMoveDamageClassByName(name) {
154
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
154
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
155
155
  return new Promise((resolve, reject) => {
156
156
  this.api
157
157
  .get(`${constants_1.Endpoints.MoveDamageClass}/${name}`)
@@ -166,7 +166,7 @@ class MoveClient extends base_1.BaseClient {
166
166
  * @returns A Move Damage Class
167
167
  */
168
168
  getMoveDamageClassById(id) {
169
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
169
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
170
170
  return new Promise((resolve, reject) => {
171
171
  this.api
172
172
  .get(`${constants_1.Endpoints.MoveDamageClass}/${id}`)
@@ -181,7 +181,7 @@ class MoveClient extends base_1.BaseClient {
181
181
  * @returns A Move Learn Method
182
182
  */
183
183
  getMoveLearnMethodByName(name) {
184
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
184
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
185
185
  return new Promise((resolve, reject) => {
186
186
  this.api
187
187
  .get(`${constants_1.Endpoints.MoveLearnMethod}/${name}`)
@@ -196,7 +196,7 @@ class MoveClient extends base_1.BaseClient {
196
196
  * @returns A Move Learn Method
197
197
  */
198
198
  getMoveLearnMethodById(id) {
199
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
199
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
200
200
  return new Promise((resolve, reject) => {
201
201
  this.api
202
202
  .get(`${constants_1.Endpoints.MoveLearnMethod}/${id}`)
@@ -211,7 +211,7 @@ class MoveClient extends base_1.BaseClient {
211
211
  * @returns A Move Target
212
212
  */
213
213
  getMoveTargetByName(name) {
214
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
214
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
215
215
  return new Promise((resolve, reject) => {
216
216
  this.api
217
217
  .get(`${constants_1.Endpoints.MoveTarget}/${name}`)
@@ -226,7 +226,7 @@ class MoveClient extends base_1.BaseClient {
226
226
  * @returns A Move Target
227
227
  */
228
228
  getMoveTargetById(id) {
229
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
229
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
230
230
  return new Promise((resolve, reject) => {
231
231
  this.api
232
232
  .get(`${constants_1.Endpoints.MoveTarget}/${id}`)
@@ -242,7 +242,7 @@ class MoveClient extends base_1.BaseClient {
242
242
  * @returns A list of Moves
243
243
  */
244
244
  listMoves(offset, limit) {
245
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
245
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
246
246
  return new Promise((resolve, reject) => {
247
247
  this.api
248
248
  .get(`${constants_1.Endpoints.Move}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -258,7 +258,7 @@ class MoveClient extends base_1.BaseClient {
258
258
  * @returns A list of Move Ailments
259
259
  */
260
260
  listMoveAilments(offset, limit) {
261
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
261
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
262
262
  return new Promise((resolve, reject) => {
263
263
  this.api
264
264
  .get(`${constants_1.Endpoints.MoveAilment}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -274,7 +274,7 @@ class MoveClient extends base_1.BaseClient {
274
274
  * @returns A list of Move Battle Styles
275
275
  */
276
276
  listMoveBattleStyles(offset, limit) {
277
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
277
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
278
278
  return new Promise((resolve, reject) => {
279
279
  this.api
280
280
  .get(`${constants_1.Endpoints.MoveBattleStyle}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -290,7 +290,7 @@ class MoveClient extends base_1.BaseClient {
290
290
  * @returns A list of Move Categories
291
291
  */
292
292
  listMoveCategories(offset, limit) {
293
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
293
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
294
294
  return new Promise((resolve, reject) => {
295
295
  this.api
296
296
  .get(`${constants_1.Endpoints.MoveCategory}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -306,7 +306,7 @@ class MoveClient extends base_1.BaseClient {
306
306
  * @returns A list of Move Damage Classes
307
307
  */
308
308
  listMoveDamageClasses(offset, limit) {
309
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
309
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
310
310
  return new Promise((resolve, reject) => {
311
311
  this.api
312
312
  .get(`${constants_1.Endpoints.MoveDamageClass}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -322,7 +322,7 @@ class MoveClient extends base_1.BaseClient {
322
322
  * @returns A list of Move Learn Methods
323
323
  */
324
324
  listMoveLearnMethods(offset, limit) {
325
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
325
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
326
326
  return new Promise((resolve, reject) => {
327
327
  this.api
328
328
  .get(`${constants_1.Endpoints.MoveLearnMethod}?offset=${offset || 0}&limit=${limit || 20}`)
@@ -338,7 +338,7 @@ class MoveClient extends base_1.BaseClient {
338
338
  * @returns A list of Move Targets
339
339
  */
340
340
  listMoveTargets(offset, limit) {
341
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
341
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
342
342
  return new Promise((resolve, reject) => {
343
343
  this.api
344
344
  .get(`${constants_1.Endpoints.MoveTarget}?offset=${offset || 0}&limit=${limit || 20}`)