guildwars2-ts 1.0.1 → 1.0.2

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/dist/index.js CHANGED
@@ -9,42 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var axios__default = /*#__PURE__*/_interopDefault(axios);
10
10
  var Queue__default = /*#__PURE__*/_interopDefault(Queue);
11
11
 
12
- var __defProp = Object.defineProperty;
13
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
14
- var __hasOwnProp = Object.prototype.hasOwnProperty;
15
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
16
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17
- var __spreadValues = (a, b) => {
18
- for (var prop in b || (b = {}))
19
- if (__hasOwnProp.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- if (__getOwnPropSymbols)
22
- for (var prop of __getOwnPropSymbols(b)) {
23
- if (__propIsEnum.call(b, prop))
24
- __defNormalProp(a, prop, b[prop]);
25
- }
26
- return a;
27
- };
28
- var __async = (__this, __arguments, generator) => {
29
- return new Promise((resolve, reject) => {
30
- var fulfilled = (value) => {
31
- try {
32
- step(generator.next(value));
33
- } catch (e) {
34
- reject(e);
35
- }
36
- };
37
- var rejected = (value) => {
38
- try {
39
- step(generator.throw(value));
40
- } catch (e) {
41
- reject(e);
42
- }
43
- };
44
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
45
- step((generator = generator.apply(__this, __arguments)).next());
46
- });
47
- };
12
+ // src/base/apiBase.ts
48
13
 
49
14
  // src/base/apiParams.ts
50
15
  var ApiLanguage = /* @__PURE__ */ ((ApiLanguage2) => {
@@ -124,30 +89,27 @@ var setPathLogging = (displayFilePath) => {
124
89
  logger.settings.hideLogPositionForProduction = !displayFilePath;
125
90
  };
126
91
  var queue = new Queue__default.default(Infinity, Infinity);
127
- function sendRequest(options) {
128
- return __async(this, null, function* () {
129
- return yield new Promise((resolve, reject) => {
130
- axios__default.default.get(options.url, __spreadValues({}, options)).then(resolve).catch(reject);
131
- });
92
+ async function sendRequest(options) {
93
+ return await new Promise((resolve, reject) => {
94
+ axios__default.default.get(options.url, { ...options }).then(resolve).catch(reject);
132
95
  });
133
96
  }
134
- function enqueueRequest(options) {
135
- return __async(this, null, function* () {
136
- return yield queue.add(() => __async(this, null, function* () {
137
- return yield sendRequest(options);
138
- }));
139
- });
97
+ async function enqueueRequest(options) {
98
+ return await queue.add(async () => await sendRequest(options));
140
99
  }
141
100
 
142
101
  // src/base/apiBase.ts
143
102
  var ApiBase = class {
103
+ _baseUrl = "https://api.guildwars2.com";
104
+ _apiToken;
105
+ _language;
106
+ _rateLimitRetry;
107
+ _rateLimitRetryAttempts;
144
108
  constructor(apiParams) {
145
- this._baseUrl = "https://api.guildwars2.com";
146
- var _a, _b, _c, _d;
147
- this._apiToken = apiParams == null ? void 0 : apiParams.token;
148
- this._language = (_a = apiParams == null ? void 0 : apiParams.language) != null ? _a : "en" /* English */;
149
- this._rateLimitRetry = (_c = (_b = apiParams == null ? void 0 : apiParams.rateLimit) == null ? void 0 : _b.retry) != null ? _c : true;
150
- this._rateLimitRetryAttempts = ((_d = apiParams == null ? void 0 : apiParams.rateLimit) == null ? void 0 : _d.retry) ? apiParams.rateLimit.attempts : 0;
109
+ this._apiToken = apiParams?.token;
110
+ this._language = apiParams?.language ?? "en" /* English */;
111
+ this._rateLimitRetry = apiParams?.rateLimit?.retry ?? true;
112
+ this._rateLimitRetryAttempts = apiParams?.rateLimit?.retry ? apiParams.rateLimit.attempts : 0;
151
113
  }
152
114
  /**
153
115
  * Parameters for the api response, at top level
@@ -171,33 +133,31 @@ var ApiBase = class {
171
133
  * @param apiParams - Query string
172
134
  * @param schemaVersion - Schema version
173
135
  */
174
- buildRequest(endpoint, apiParams, schemaVersion) {
175
- return __async(this, null, function* () {
176
- const { tokenRequired } = endpoint;
177
- const url = this._getApiUrl(endpoint, apiParams != null ? apiParams : {});
178
- const headers = new axios.AxiosHeaders();
179
- headers["Accept-Language"] = this._language;
180
- if (tokenRequired) {
181
- if (!this._apiToken)
182
- throw new ApiTokenError();
183
- headers.Authorization = `Bearer ${this._apiToken}`;
184
- }
185
- if (schemaVersion)
186
- headers["X-Schema-Version"] = schemaVersion;
187
- const options = {
188
- url,
189
- method: "GET",
190
- headers
191
- };
192
- try {
193
- logger.info(`Requesting ${options.url}`);
194
- const response = yield enqueueRequest(options);
195
- const { data } = response;
196
- return data;
197
- } catch (error) {
198
- return yield this.retryRequest(endpoint, options, apiParams, error);
199
- }
200
- });
136
+ async buildRequest(endpoint, apiParams, schemaVersion) {
137
+ const { tokenRequired } = endpoint;
138
+ const url = this._getApiUrl(endpoint, apiParams ?? {});
139
+ const headers = new axios.AxiosHeaders();
140
+ headers["Accept-Language"] = this._language;
141
+ if (tokenRequired) {
142
+ if (!this._apiToken)
143
+ throw new ApiTokenError();
144
+ headers.Authorization = `Bearer ${this._apiToken}`;
145
+ }
146
+ if (schemaVersion)
147
+ headers["X-Schema-Version"] = schemaVersion;
148
+ const options = {
149
+ url,
150
+ method: "GET",
151
+ headers
152
+ };
153
+ try {
154
+ logger.info(`Requesting ${options.url}`);
155
+ const response = await enqueueRequest(options);
156
+ const { data } = response;
157
+ return data;
158
+ } catch (error) {
159
+ return await this.retryRequest(endpoint, options, apiParams, error);
160
+ }
201
161
  }
202
162
  /**
203
163
  * Retries failed requests
@@ -209,50 +169,48 @@ var ApiBase = class {
209
169
  * @param prevError - Error that caused a retry
210
170
  * @returns Successful request, or error
211
171
  */
212
- retryRequest(endpoint, prevOptions, apiParams, prevError) {
213
- return __async(this, null, function* () {
214
- if (prevError instanceof axios.AxiosError) {
215
- if (prevError.response) {
216
- const { status } = prevError.response;
217
- if (status === 401) {
218
- logger.warn(`Request to ${prevOptions.url} failed.`);
219
- throw new ApiTokenError();
220
- }
221
- if (status === 403) {
222
- const requiredScope = (
223
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-plus-operands
224
- prevError.response.data.text.slice(0, 1).toUpperCase() + prevError.response.data.text.slice(1)
225
- );
226
- logger.warn(`Request to ${prevOptions.url} failed. ${requiredScope}.`);
227
- throw new ApiPermissionsError(requiredScope);
228
- }
229
- if (status === 404) {
230
- logger.warn(`Request to ${prevOptions.url} returned no data.`);
231
- throw new ApiNotFoundError();
232
- }
233
- if (status === 504) {
234
- logger.warn(`Request to ${prevOptions.url} timed out.`);
235
- throw new ApiTimeoutError();
236
- }
172
+ async retryRequest(endpoint, prevOptions, apiParams, prevError) {
173
+ if (prevError instanceof axios.AxiosError) {
174
+ if (prevError.response) {
175
+ const { status } = prevError.response;
176
+ if (status === 401) {
177
+ logger.warn(`Request to ${prevOptions.url} failed.`);
178
+ throw new ApiTokenError();
179
+ }
180
+ if (status === 403) {
181
+ const requiredScope = (
182
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-plus-operands
183
+ prevError.response.data.text.slice(0, 1).toUpperCase() + prevError.response.data.text.slice(1)
184
+ );
185
+ logger.warn(`Request to ${prevOptions.url} failed. ${requiredScope}.`);
186
+ throw new ApiPermissionsError(requiredScope);
187
+ }
188
+ if (status === 404) {
189
+ logger.warn(`Request to ${prevOptions.url} returned no data.`);
190
+ throw new ApiNotFoundError();
191
+ }
192
+ if (status === 504) {
193
+ logger.warn(`Request to ${prevOptions.url} timed out.`);
194
+ throw new ApiTimeoutError();
237
195
  }
238
- logger.warn(`Request to ${prevOptions.url} failed. ${prevError.message}`);
239
- } else if (this._rateLimitRetry) {
240
- for (let attempt = 0; attempt < this._rateLimitRetryAttempts; attempt++) {
241
- try {
242
- return yield this.buildRequest(endpoint, apiParams);
243
- } catch (error) {
244
- if (error instanceof axios.AxiosError && error.code === "ERR_TOO_MANY_REQUESTS") {
245
- setTimeout(() => {
246
- logger.warn("Request timed out. Waiting to retry...");
247
- }, 1e3);
248
- }
196
+ }
197
+ logger.warn(`Request to ${prevOptions.url} failed. ${prevError.message}`);
198
+ } else if (this._rateLimitRetry) {
199
+ for (let attempt = 0; attempt < this._rateLimitRetryAttempts; attempt++) {
200
+ try {
201
+ return await this.buildRequest(endpoint, apiParams);
202
+ } catch (error) {
203
+ if (error instanceof axios.AxiosError && error.code === "ERR_TOO_MANY_REQUESTS") {
204
+ setTimeout(() => {
205
+ logger.warn("Request timed out. Waiting to retry...");
206
+ }, 1e3);
249
207
  }
250
208
  }
251
- logger.info(`Rate-limit retries failed. Aborting request to ${prevOptions.url}`);
252
- throw new ApiRetryFailedError();
253
209
  }
254
- throw new ApiGenericError();
255
- });
210
+ logger.info(`Rate-limit retries failed. Aborting request to ${prevOptions.url}`);
211
+ throw new ApiRetryFailedError();
212
+ }
213
+ throw new ApiGenericError();
256
214
  }
257
215
  /**
258
216
  * Builds final Api url from the endpoint and provided parameters
@@ -1057,20 +1015,16 @@ var AccountApi = class extends ApiBase {
1057
1015
  *
1058
1016
  * @returns Account information
1059
1017
  */
1060
- get() {
1061
- return __async(this, null, function* () {
1062
- return yield this.buildRequest(endpoints.account.base, {});
1063
- });
1018
+ async get() {
1019
+ return await this.buildRequest(endpoints.account.base, {});
1064
1020
  }
1065
1021
  /**
1066
1022
  * Get account achievement information
1067
1023
  *
1068
1024
  * @returns Account achievements
1069
1025
  */
1070
- getAchievements() {
1071
- return __async(this, null, function* () {
1072
- return yield this.buildRequest(endpoints.account.achievements, {});
1073
- });
1026
+ async getAchievements() {
1027
+ return await this.buildRequest(endpoints.account.achievements, {});
1074
1028
  }
1075
1029
  /**
1076
1030
  * Get the items stored in a player's vault (not including material storage)
@@ -1078,100 +1032,80 @@ var AccountApi = class extends ApiBase {
1078
1032
  *
1079
1033
  * @returns Account bank contents
1080
1034
  */
1081
- getBankContents() {
1082
- return __async(this, null, function* () {
1083
- return yield this.buildRequest(endpoints.account.bank, {});
1084
- });
1035
+ async getBankContents() {
1036
+ return await this.buildRequest(endpoints.account.bank, {});
1085
1037
  }
1086
1038
  /**
1087
1039
  * Get templates stored in the account build storage
1088
1040
  *
1089
1041
  * @returns Account build storage
1090
1042
  */
1091
- getBuildStorage() {
1092
- return __async(this, null, function* () {
1093
- return yield this.buildRequest(endpoints.account.buildStorage, {});
1094
- });
1043
+ async getBuildStorage() {
1044
+ return await this.buildRequest(endpoints.account.buildStorage, {});
1095
1045
  }
1096
1046
  /**
1097
1047
  * Get completed daily crafts
1098
1048
  *
1099
1049
  * @returns Crafts completed since last daily reset
1100
1050
  */
1101
- getDailyCrafts() {
1102
- return __async(this, null, function* () {
1103
- return yield this.buildRequest(endpoints.account.dailyCrafting, {});
1104
- });
1051
+ async getDailyCrafts() {
1052
+ return await this.buildRequest(endpoints.account.dailyCrafting, {});
1105
1053
  }
1106
1054
  /**
1107
1055
  * Get completed dungeons
1108
1056
  *
1109
1057
  * @returns Dungeons completed since last daily reset
1110
1058
  */
1111
- getDungeons() {
1112
- return __async(this, null, function* () {
1113
- return yield this.buildRequest(endpoints.account.dungeons, {});
1114
- });
1059
+ async getDungeons() {
1060
+ return await this.buildRequest(endpoints.account.dungeons, {});
1115
1061
  }
1116
1062
  /**
1117
1063
  * Get dyes unlocked on the account
1118
1064
  *
1119
1065
  * @returns Dyes unlocked on the account
1120
1066
  */
1121
- getDyes() {
1122
- return __async(this, null, function* () {
1123
- return yield this.buildRequest(endpoints.account.dyes, {});
1124
- });
1067
+ async getDyes() {
1068
+ return await this.buildRequest(endpoints.account.dyes, {});
1125
1069
  }
1126
1070
  /**
1127
1071
  * Get emotes unlocked on the account
1128
1072
  *
1129
1073
  * @returns Emotes unlocked on the account
1130
1074
  */
1131
- getEmotes() {
1132
- return __async(this, null, function* () {
1133
- return yield this.buildRequest(endpoints.account.emotes, {});
1134
- });
1075
+ async getEmotes() {
1076
+ return await this.buildRequest(endpoints.account.emotes, {});
1135
1077
  }
1136
1078
  /**
1137
1079
  * Get finishers unlocked on the account
1138
1080
  *
1139
1081
  * @returns Finishers unlocked on the account
1140
1082
  */
1141
- getFinishers() {
1142
- return __async(this, null, function* () {
1143
- return yield this.buildRequest(endpoints.account.finishers, {});
1144
- });
1083
+ async getFinishers() {
1084
+ return await this.buildRequest(endpoints.account.finishers, {});
1145
1085
  }
1146
1086
  /**
1147
1087
  * Get gliders unlocked on the account
1148
1088
  *
1149
1089
  * @returns Gliders unlocked on the account
1150
1090
  */
1151
- getGliders() {
1152
- return __async(this, null, function* () {
1153
- return yield this.buildRequest(endpoints.account.gliders, {});
1154
- });
1091
+ async getGliders() {
1092
+ return await this.buildRequest(endpoints.account.gliders, {});
1155
1093
  }
1156
1094
  /**
1157
1095
  * Get nodes unlocked on the account home instance
1158
1096
  *
1159
1097
  * @returns Nodes unlocked on the account
1160
1098
  */
1161
- getHomeNodes() {
1162
- return __async(this, null, function* () {
1163
- return yield this.buildRequest(endpoints.account.homeNodes, {});
1164
- });
1099
+ async getHomeNodes() {
1100
+ return await this.buildRequest(endpoints.account.homeNodes, {});
1165
1101
  }
1166
1102
  /**
1167
1103
  * Get cats unlocked on the account home instance
1168
1104
  *
1169
1105
  * @returns Gliders unlocked on the account
1170
1106
  */
1171
- getHomeCats() {
1172
- return __async(this, null, function* () {
1173
- return yield this.buildRequest(endpoints.account.homeCats, {});
1174
- });
1107
+ async getHomeCats() {
1108
+ return await this.buildRequest(endpoints.account.homeCats, {});
1175
1109
  }
1176
1110
  /**
1177
1111
  * Get the items stored in the account shared inventory
@@ -1179,198 +1113,158 @@ var AccountApi = class extends ApiBase {
1179
1113
  *
1180
1114
  * @returns Account shared inventory contents
1181
1115
  */
1182
- getSharedInventory() {
1183
- return __async(this, null, function* () {
1184
- return yield this.buildRequest(endpoints.account.sharedInventory, {});
1185
- });
1116
+ async getSharedInventory() {
1117
+ return await this.buildRequest(endpoints.account.sharedInventory, {});
1186
1118
  }
1187
1119
  /**
1188
1120
  * Get legendary items stored in the account armory
1189
1121
  *
1190
1122
  * @returns Legendary armory
1191
1123
  */
1192
- getLegendaryArmory() {
1193
- return __async(this, null, function* () {
1194
- return yield this.buildRequest(endpoints.account.legendaryArmory, {});
1195
- });
1124
+ async getLegendaryArmory() {
1125
+ return await this.buildRequest(endpoints.account.legendaryArmory, {});
1196
1126
  }
1197
1127
  /**
1198
1128
  * Get account luck
1199
1129
  *
1200
1130
  * @returns Account luck
1201
1131
  */
1202
- getLuck() {
1203
- return __async(this, null, function* () {
1204
- return yield this.buildRequest(endpoints.account.luck, {});
1205
- });
1132
+ async getLuck() {
1133
+ return await this.buildRequest(endpoints.account.luck, {});
1206
1134
  }
1207
1135
  /**
1208
1136
  * Get mail carriers unlocked on the account
1209
1137
  *
1210
1138
  * @returns Account mail carriers
1211
1139
  */
1212
- getMailCarriers() {
1213
- return __async(this, null, function* () {
1214
- return yield this.buildRequest(endpoints.account.mailCarriers, {});
1215
- });
1140
+ async getMailCarriers() {
1141
+ return await this.buildRequest(endpoints.account.mailCarriers, {});
1216
1142
  }
1217
1143
  /**
1218
1144
  * Get map chests opened on this account today
1219
1145
  *
1220
1146
  * @returns Unlocked map chests
1221
1147
  */
1222
- getMapChests() {
1223
- return __async(this, null, function* () {
1224
- return yield this.buildRequest(endpoints.account.mapChests, {});
1225
- });
1148
+ async getMapChests() {
1149
+ return await this.buildRequest(endpoints.account.mapChests, {});
1226
1150
  }
1227
1151
  /**
1228
1152
  * Get masteries unlocked on the account
1229
1153
  *
1230
1154
  * @returns Account masteries
1231
1155
  */
1232
- getMasteries() {
1233
- return __async(this, null, function* () {
1234
- return yield this.buildRequest(endpoints.account.masteries, {});
1235
- });
1156
+ async getMasteries() {
1157
+ return await this.buildRequest(endpoints.account.masteries, {});
1236
1158
  }
1237
1159
  /**
1238
1160
  * Get account mastery points
1239
1161
  *
1240
1162
  * @returns account mastery points
1241
1163
  */
1242
- getMasteryPoints() {
1243
- return __async(this, null, function* () {
1244
- return yield this.buildRequest(endpoints.account.masteryPoints, {});
1245
- });
1164
+ async getMasteryPoints() {
1165
+ return await this.buildRequest(endpoints.account.masteryPoints, {});
1246
1166
  }
1247
1167
  /**
1248
1168
  * Get materials in the account vault
1249
1169
  *
1250
1170
  * @returns Account materials
1251
1171
  */
1252
- getMaterials() {
1253
- return __async(this, null, function* () {
1254
- return yield this.buildRequest(endpoints.account.materials, {});
1255
- });
1172
+ async getMaterials() {
1173
+ return await this.buildRequest(endpoints.account.materials, {});
1256
1174
  }
1257
1175
  /**
1258
1176
  * Get minis unlocked on the account
1259
1177
  *
1260
1178
  * @returns Account minis
1261
1179
  */
1262
- getAccountMinis() {
1263
- return __async(this, null, function* () {
1264
- return yield this.buildRequest(endpoints.account.minis, {});
1265
- });
1180
+ async getAccountMinis() {
1181
+ return await this.buildRequest(endpoints.account.minis, {});
1266
1182
  }
1267
1183
  /**
1268
1184
  * Get account mount skins
1269
1185
  *
1270
1186
  * @returns Account mount skins
1271
1187
  */
1272
- getMountSkins() {
1273
- return __async(this, null, function* () {
1274
- return yield this.buildRequest(endpoints.account.mountsSkins, {});
1275
- });
1188
+ async getMountSkins() {
1189
+ return await this.buildRequest(endpoints.account.mountsSkins, {});
1276
1190
  }
1277
1191
  /**
1278
1192
  * Get account mount skins
1279
1193
  *
1280
1194
  * @returns Account mount types
1281
1195
  */
1282
- getMountTypes() {
1283
- return __async(this, null, function* () {
1284
- return yield this.buildRequest(endpoints.account.mountsTypes, {});
1285
- });
1196
+ async getMountTypes() {
1197
+ return await this.buildRequest(endpoints.account.mountsTypes, {});
1286
1198
  }
1287
1199
  /**
1288
1200
  * Get novelties unlocked on the account
1289
1201
  *
1290
1202
  * @returns Account novelties
1291
1203
  */
1292
- getNovelties() {
1293
- return __async(this, null, function* () {
1294
- return yield this.buildRequest(endpoints.account.novelties, {});
1295
- });
1204
+ async getNovelties() {
1205
+ return await this.buildRequest(endpoints.account.novelties, {});
1296
1206
  }
1297
1207
  /**
1298
1208
  * Get outfits unlocked on the account
1299
1209
  *
1300
1210
  * @returns Account outfits
1301
1211
  */
1302
- getOutfits() {
1303
- return __async(this, null, function* () {
1304
- return yield this.buildRequest(endpoints.account.outfits, {});
1305
- });
1212
+ async getOutfits() {
1213
+ return await this.buildRequest(endpoints.account.outfits, {});
1306
1214
  }
1307
1215
  /**
1308
1216
  * Get account progression
1309
1217
  *
1310
1218
  * @returns Account progression
1311
1219
  */
1312
- getProgression() {
1313
- return __async(this, null, function* () {
1314
- return yield this.buildRequest(endpoints.account.progression, {});
1315
- });
1220
+ async getProgression() {
1221
+ return await this.buildRequest(endpoints.account.progression, {});
1316
1222
  }
1317
1223
  /**
1318
1224
  * Get pvp heroes unlocked on the account
1319
1225
  *
1320
1226
  * @returns Account Pvp heroes
1321
1227
  */
1322
- getPvpHeroes() {
1323
- return __async(this, null, function* () {
1324
- return yield this.buildRequest(endpoints.account.pvpHeroes, {});
1325
- });
1228
+ async getPvpHeroes() {
1229
+ return await this.buildRequest(endpoints.account.pvpHeroes, {});
1326
1230
  }
1327
1231
  /**
1328
1232
  * Get weekly raid boss progression
1329
1233
  *
1330
1234
  * @returns Account raid boss progression
1331
1235
  */
1332
- getRaids() {
1333
- return __async(this, null, function* () {
1334
- return yield this.buildRequest(endpoints.account.raids, {});
1335
- });
1236
+ async getRaids() {
1237
+ return await this.buildRequest(endpoints.account.raids, {});
1336
1238
  }
1337
1239
  /**
1338
1240
  * Get recipes unlocked on the account
1339
1241
  *
1340
1242
  * @returns Account recipes
1341
1243
  */
1342
- getRecipes() {
1343
- return __async(this, null, function* () {
1344
- return yield this.buildRequest(endpoints.account.recipes, {});
1345
- });
1244
+ async getRecipes() {
1245
+ return await this.buildRequest(endpoints.account.recipes, {});
1346
1246
  }
1347
1247
  /**
1348
1248
  * Get skins unlocked on the account
1349
1249
  *
1350
1250
  * @returns Account skins
1351
1251
  */
1352
- getSkins() {
1353
- return __async(this, null, function* () {
1354
- return yield this.buildRequest(endpoints.account.skins, {});
1355
- });
1252
+ async getSkins() {
1253
+ return await this.buildRequest(endpoints.account.skins, {});
1356
1254
  }
1357
1255
  /**
1358
1256
  * Get titles unlocked on the account
1359
1257
  *
1360
1258
  * @returns Account titles
1361
1259
  */
1362
- getTitles() {
1363
- return __async(this, null, function* () {
1364
- return yield this.buildRequest(endpoints.account.titles, {});
1365
- });
1260
+ async getTitles() {
1261
+ return await this.buildRequest(endpoints.account.titles, {});
1366
1262
  }
1367
1263
  /**
1368
1264
  * Get world bosses killed today
1369
1265
  */
1370
- getWorldBosses() {
1371
- return __async(this, null, function* () {
1372
- return yield this.buildRequest(endpoints.account.worldBosses, {});
1373
- });
1266
+ async getWorldBosses() {
1267
+ return await this.buildRequest(endpoints.account.worldBosses, {});
1374
1268
  }
1375
1269
  };
1376
1270
 
@@ -1379,10 +1273,8 @@ var AchievementsApi = class extends ApiBase {
1379
1273
  /**
1380
1274
  * Get all achievement categories
1381
1275
  */
1382
- getCategoryIds() {
1383
- return __async(this, null, function* () {
1384
- return yield this.buildRequest(endpoints.achievements.categoryIds, {});
1385
- });
1276
+ async getCategoryIds() {
1277
+ return await this.buildRequest(endpoints.achievements.categoryIds, {});
1386
1278
  }
1387
1279
  /**
1388
1280
  * Get achievement category details.
@@ -1390,48 +1282,38 @@ var AchievementsApi = class extends ApiBase {
1390
1282
  * @param ids - (optional) List of category ids
1391
1283
  * @param schemaVersion - Schema version
1392
1284
  */
1393
- getCategories(ids, schemaVersion) {
1394
- return __async(this, null, function* () {
1395
- return yield this.buildRequest(
1396
- endpoints.achievements.categories,
1397
- { ids: ids != null ? ids : "all" },
1398
- schemaVersion
1399
- );
1400
- });
1285
+ async getCategories(ids, schemaVersion) {
1286
+ return await this.buildRequest(
1287
+ endpoints.achievements.categories,
1288
+ { ids: ids ?? "all" },
1289
+ schemaVersion
1290
+ );
1401
1291
  }
1402
1292
  /**
1403
1293
  * Get daily achievements.
1404
1294
  */
1405
- getDailyAchievements() {
1406
- return __async(this, null, function* () {
1407
- return yield this.buildRequest(endpoints.achievements.daily, {});
1408
- });
1295
+ async getDailyAchievements() {
1296
+ return await this.buildRequest(endpoints.achievements.daily, {});
1409
1297
  }
1410
1298
  /**
1411
1299
  * Get daily achievements for tomorrow.
1412
1300
  */
1413
- getDailyAchievementsTomorrow() {
1414
- return __async(this, null, function* () {
1415
- return yield this.buildRequest(endpoints.achievements.dailyTomorrow, {});
1416
- });
1301
+ async getDailyAchievementsTomorrow() {
1302
+ return await this.buildRequest(endpoints.achievements.dailyTomorrow, {});
1417
1303
  }
1418
1304
  /**
1419
1305
  * Get achievement groups.
1420
1306
  */
1421
- getGroups() {
1422
- return __async(this, null, function* () {
1423
- return yield this.buildRequest(endpoints.achievements.groups, { id: "" });
1424
- });
1307
+ async getGroups() {
1308
+ return await this.buildRequest(endpoints.achievements.groups, { id: "" });
1425
1309
  }
1426
1310
  /**
1427
1311
  * Get achievement group by id.
1428
1312
  *
1429
1313
  * @param id - Group id
1430
1314
  */
1431
- getGroupById(id) {
1432
- return __async(this, null, function* () {
1433
- return yield this.buildRequest(endpoints.achievements.groups, { id });
1434
- });
1315
+ async getGroupById(id) {
1316
+ return await this.buildRequest(endpoints.achievements.groups, { id });
1435
1317
  }
1436
1318
  };
1437
1319
 
@@ -1442,10 +1324,8 @@ var CharactersApi = class extends ApiBase {
1442
1324
  *
1443
1325
  * @returns Character names
1444
1326
  */
1445
- get() {
1446
- return __async(this, null, function* () {
1447
- return yield this.buildRequest(endpoints.characters.base, {});
1448
- });
1327
+ async get() {
1328
+ return await this.buildRequest(endpoints.characters.base, {});
1449
1329
  }
1450
1330
  /**
1451
1331
  * Get backstory of a selected character
@@ -1453,10 +1333,8 @@ var CharactersApi = class extends ApiBase {
1453
1333
  * @param id - Character name
1454
1334
  * @returns Character backstory
1455
1335
  */
1456
- getBackstory(id) {
1457
- return __async(this, null, function* () {
1458
- return yield this.buildRequest(endpoints.characters.backstory, { id });
1459
- });
1336
+ async getBackstory(id) {
1337
+ return await this.buildRequest(endpoints.characters.backstory, { id });
1460
1338
  }
1461
1339
  /**
1462
1340
  * Get build tabs of a selected character
@@ -1465,20 +1343,18 @@ var CharactersApi = class extends ApiBase {
1465
1343
  * @param tabs - Optional tab index. If the index is invalid, all tabs will be returned
1466
1344
  * @returns Character build tabs
1467
1345
  */
1468
- getBuildTabs(id, tabs) {
1469
- return __async(this, null, function* () {
1470
- if (tabs) {
1471
- tabs.forEach((tab) => {
1472
- if (tab < 1 || tab > 8) {
1473
- logger.warn("Build tab ids must be between 1 and 8");
1474
- throw new ApiGenericError();
1475
- }
1476
- });
1477
- }
1478
- return yield this.buildRequest(endpoints.characters.buildTabs, {
1479
- id,
1480
- tabs: tabs != null ? tabs : "all"
1346
+ async getBuildTabs(id, tabs) {
1347
+ if (tabs) {
1348
+ tabs.forEach((tab) => {
1349
+ if (tab < 1 || tab > 8) {
1350
+ logger.warn("Build tab ids must be between 1 and 8");
1351
+ throw new ApiGenericError();
1352
+ }
1481
1353
  });
1354
+ }
1355
+ return await this.buildRequest(endpoints.characters.buildTabs, {
1356
+ id,
1357
+ tabs: tabs ?? "all"
1482
1358
  });
1483
1359
  }
1484
1360
  /**
@@ -1487,10 +1363,8 @@ var CharactersApi = class extends ApiBase {
1487
1363
  * @param id - Character name
1488
1364
  * @returns Core character information
1489
1365
  */
1490
- getCore(id) {
1491
- return __async(this, null, function* () {
1492
- return yield this.buildRequest(endpoints.characters.core, { id });
1493
- });
1366
+ async getCore(id) {
1367
+ return await this.buildRequest(endpoints.characters.core, { id });
1494
1368
  }
1495
1369
  /**
1496
1370
  * Returns crafting disciplines available to a character attached to a specific account.
@@ -1498,10 +1372,8 @@ var CharactersApi = class extends ApiBase {
1498
1372
  * @param id - Character name
1499
1373
  * @returns Character crafting disciplines
1500
1374
  */
1501
- getCrafting(id) {
1502
- return __async(this, null, function* () {
1503
- return yield this.buildRequest(endpoints.characters.crafting, { id });
1504
- });
1375
+ async getCrafting(id) {
1376
+ return await this.buildRequest(endpoints.characters.crafting, { id });
1505
1377
  }
1506
1378
  /**
1507
1379
  * Returns equipment of a character attached to a specific account.
@@ -1510,10 +1382,8 @@ var CharactersApi = class extends ApiBase {
1510
1382
  * @param schemaVersion - Schema version
1511
1383
  * @returns Character equipment
1512
1384
  */
1513
- getEquipment(id, schemaVersion) {
1514
- return __async(this, null, function* () {
1515
- return yield this.buildRequest(endpoints.characters.equipment, { id }, schemaVersion);
1516
- });
1385
+ async getEquipment(id, schemaVersion) {
1386
+ return await this.buildRequest(endpoints.characters.equipment, { id }, schemaVersion);
1517
1387
  }
1518
1388
  /**
1519
1389
  * Returns equipment tabs of a character attached to a specific account.
@@ -1521,20 +1391,18 @@ var CharactersApi = class extends ApiBase {
1521
1391
  * @param id - Character name
1522
1392
  * @param tabs - Optional equipment tab number.
1523
1393
  */
1524
- getEquipmentTabs(id, tabs) {
1525
- return __async(this, null, function* () {
1526
- if (tabs) {
1527
- tabs.forEach((tab) => {
1528
- if (tab < 1 || tab > 8) {
1529
- logger.warn("Equipment tab ids must be between 1 and 8");
1530
- throw new ApiGenericError();
1531
- }
1532
- });
1533
- }
1534
- return yield this.buildRequest(endpoints.characters.equipmentTabsById, {
1535
- id,
1536
- tabs: tabs != null ? tabs : "all"
1394
+ async getEquipmentTabs(id, tabs) {
1395
+ if (tabs) {
1396
+ tabs.forEach((tab) => {
1397
+ if (tab < 1 || tab > 8) {
1398
+ logger.warn("Equipment tab ids must be between 1 and 8");
1399
+ throw new ApiGenericError();
1400
+ }
1537
1401
  });
1402
+ }
1403
+ return await this.buildRequest(endpoints.characters.equipmentTabsById, {
1404
+ id,
1405
+ tabs: tabs ?? "all"
1538
1406
  });
1539
1407
  }
1540
1408
  /**
@@ -1542,10 +1410,8 @@ var CharactersApi = class extends ApiBase {
1542
1410
  *
1543
1411
  * @param id - Character name
1544
1412
  */
1545
- getActiveEquipmentTab(id) {
1546
- return __async(this, null, function* () {
1547
- return yield this.buildRequest(endpoints.characters.equipmentTabActive, { id });
1548
- });
1413
+ async getActiveEquipmentTab(id) {
1414
+ return await this.buildRequest(endpoints.characters.equipmentTabActive, { id });
1549
1415
  }
1550
1416
  /**
1551
1417
  * Returns hero points obtained by a character attached to a specific account.
@@ -1555,10 +1421,8 @@ var CharactersApi = class extends ApiBase {
1555
1421
  * @param id - Character name
1556
1422
  * @returns Character hero points
1557
1423
  */
1558
- getHeroPoints(id) {
1559
- return __async(this, null, function* () {
1560
- return yield this.buildRequest(endpoints.characters.heroPoints, { id });
1561
- });
1424
+ async getHeroPoints(id) {
1425
+ return await this.buildRequest(endpoints.characters.heroPoints, { id });
1562
1426
  }
1563
1427
  /**
1564
1428
  * Returns inventory of a character attached to a specific account.
@@ -1566,10 +1430,8 @@ var CharactersApi = class extends ApiBase {
1566
1430
  * @param id - Character name
1567
1431
  * @returns Character inventory
1568
1432
  */
1569
- getInventory(id) {
1570
- return __async(this, null, function* () {
1571
- return yield this.buildRequest(endpoints.characters.inventory, { id });
1572
- });
1433
+ async getInventory(id) {
1434
+ return await this.buildRequest(endpoints.characters.inventory, { id });
1573
1435
  }
1574
1436
  /**
1575
1437
  * Returns quests that are selected by a character attached to a specific account.
@@ -1577,10 +1439,8 @@ var CharactersApi = class extends ApiBase {
1577
1439
  * @param id - Character name
1578
1440
  * @returns Character quest selections
1579
1441
  */
1580
- getQuests(id) {
1581
- return __async(this, null, function* () {
1582
- return yield this.buildRequest(endpoints.characters.quests, { id });
1583
- });
1442
+ async getQuests(id) {
1443
+ return await this.buildRequest(endpoints.characters.quests, { id });
1584
1444
  }
1585
1445
  /**
1586
1446
  * Returns recipes that the given character can use.
@@ -1588,10 +1448,8 @@ var CharactersApi = class extends ApiBase {
1588
1448
  * @param id - Character name
1589
1449
  * @returns Character recipes
1590
1450
  */
1591
- getRecipes(id) {
1592
- return __async(this, null, function* () {
1593
- return yield this.buildRequest(endpoints.characters.recipes, { id });
1594
- });
1451
+ async getRecipes(id) {
1452
+ return await this.buildRequest(endpoints.characters.recipes, { id });
1595
1453
  }
1596
1454
  /**
1597
1455
  * Returns information about Super Adventure Box on a character attached to a specific account.
@@ -1599,10 +1457,8 @@ var CharactersApi = class extends ApiBase {
1599
1457
  * @param id - Character name
1600
1458
  * @returns Character SAB
1601
1459
  */
1602
- getSAB(id) {
1603
- return __async(this, null, function* () {
1604
- return yield this.buildRequest(endpoints.characters.sab, { id });
1605
- });
1460
+ async getSAB(id) {
1461
+ return await this.buildRequest(endpoints.characters.sab, { id });
1606
1462
  }
1607
1463
  /**
1608
1464
  * Returns skill information of a character attached to a specific account.
@@ -1610,10 +1466,8 @@ var CharactersApi = class extends ApiBase {
1610
1466
  * @param id - Character name
1611
1467
  * @returns Character skills
1612
1468
  */
1613
- getSkills(id) {
1614
- return __async(this, null, function* () {
1615
- return yield this.buildRequest(endpoints.characters.skills, { id });
1616
- });
1469
+ async getSkills(id) {
1470
+ return await this.buildRequest(endpoints.characters.skills, { id });
1617
1471
  }
1618
1472
  /**
1619
1473
  * Returns specialization information of a character attached to a specific account.
@@ -1621,11 +1475,9 @@ var CharactersApi = class extends ApiBase {
1621
1475
  * @param id - Character name
1622
1476
  * @returns Character specialization information
1623
1477
  */
1624
- getSpecializations(id) {
1625
- return __async(this, null, function* () {
1626
- return yield this.buildRequest(endpoints.characters.specializations, {
1627
- id
1628
- });
1478
+ async getSpecializations(id) {
1479
+ return await this.buildRequest(endpoints.characters.specializations, {
1480
+ id
1629
1481
  });
1630
1482
  }
1631
1483
  /**
@@ -1634,10 +1486,8 @@ var CharactersApi = class extends ApiBase {
1634
1486
  * @param id - Character name
1635
1487
  * @returns Character training information
1636
1488
  */
1637
- getTraining(id) {
1638
- return __async(this, null, function* () {
1639
- return yield this.buildRequest(endpoints.characters.training, { id });
1640
- });
1489
+ async getTraining(id) {
1490
+ return await this.buildRequest(endpoints.characters.training, { id });
1641
1491
  }
1642
1492
  };
1643
1493
 
@@ -1648,10 +1498,8 @@ var CommerceApi = class extends ApiBase {
1648
1498
  *
1649
1499
  * @returns Deliveries awaiting pickup
1650
1500
  */
1651
- getDeliveries() {
1652
- return __async(this, null, function* () {
1653
- return yield this.buildRequest(endpoints.commerce.delivery, {});
1654
- });
1501
+ async getDeliveries() {
1502
+ return await this.buildRequest(endpoints.commerce.delivery, {});
1655
1503
  }
1656
1504
  /**
1657
1505
  * Get the current coins to gems exchange rate.
@@ -1659,11 +1507,9 @@ var CommerceApi = class extends ApiBase {
1659
1507
  * @param quantity - Quantity of coins to be exchanged (in copper coins)
1660
1508
  * @returns Coins to gems exchange rate
1661
1509
  */
1662
- getExchangeCoins(quantity) {
1663
- return __async(this, null, function* () {
1664
- return yield this.buildRequest(endpoints.commerce.exchangeCoins, {
1665
- quantity
1666
- });
1510
+ async getExchangeCoins(quantity) {
1511
+ return await this.buildRequest(endpoints.commerce.exchangeCoins, {
1512
+ quantity
1667
1513
  });
1668
1514
  }
1669
1515
  /**
@@ -1672,10 +1518,8 @@ var CommerceApi = class extends ApiBase {
1672
1518
  * @param quantity - Quantity of gems to be exhanged
1673
1519
  * @returns Gems to coins exchnage rate
1674
1520
  */
1675
- getExchangeGems(quantity) {
1676
- return __async(this, null, function* () {
1677
- return yield this.buildRequest(endpoints.commerce.exchangeGems, { quantity });
1678
- });
1521
+ async getExchangeGems(quantity) {
1522
+ return await this.buildRequest(endpoints.commerce.exchangeGems, { quantity });
1679
1523
  }
1680
1524
  /**
1681
1525
  * Get current buy and sell listings from the trading post.
@@ -1685,10 +1529,8 @@ var CommerceApi = class extends ApiBase {
1685
1529
  * @param ids - Listing ids
1686
1530
  * @returns Buy and sell listings from the trading post
1687
1531
  */
1688
- getListings(ids) {
1689
- return __async(this, null, function* () {
1690
- return yield this.buildRequest(endpoints.commerce.listings, { ids });
1691
- });
1532
+ async getListings(ids) {
1533
+ return await this.buildRequest(endpoints.commerce.listings, { ids });
1692
1534
  }
1693
1535
  /**
1694
1536
  * Get current aggregated buy and sell listing information from the trading post.
@@ -1698,10 +1540,8 @@ var CommerceApi = class extends ApiBase {
1698
1540
  * @param ids - Item ids
1699
1541
  * @returns Buy and sell details from the trading point
1700
1542
  */
1701
- getPrices(ids) {
1702
- return __async(this, null, function* () {
1703
- return yield this.buildRequest(endpoints.commerce.prices, { ids });
1704
- });
1543
+ async getPrices(ids) {
1544
+ return await this.buildRequest(endpoints.commerce.prices, { ids });
1705
1545
  }
1706
1546
  /**
1707
1547
  * Get current or past transactions of the account.
@@ -1712,22 +1552,20 @@ var CommerceApi = class extends ApiBase {
1712
1552
  * @param type - Buy or sell transactions
1713
1553
  * @returns Transactions
1714
1554
  */
1715
- getTransactions(status, type) {
1716
- return __async(this, null, function* () {
1717
- if (status === "current") {
1718
- if (type === "buys") {
1719
- return yield this.buildRequest(
1720
- endpoints.commerce.transactionsCurrentBuys,
1721
- {}
1722
- );
1723
- }
1724
- return yield this.buildRequest(endpoints.commerce.transactionsCurrentSells, {});
1725
- }
1555
+ async getTransactions(status, type) {
1556
+ if (status === "current") {
1726
1557
  if (type === "buys") {
1727
- return yield this.buildRequest(endpoints.commerce.transactionsHistoryBuys, {});
1558
+ return await this.buildRequest(
1559
+ endpoints.commerce.transactionsCurrentBuys,
1560
+ {}
1561
+ );
1728
1562
  }
1729
- return yield this.buildRequest(endpoints.commerce.transactionsHistorySells, {});
1730
- });
1563
+ return await this.buildRequest(endpoints.commerce.transactionsCurrentSells, {});
1564
+ }
1565
+ if (type === "buys") {
1566
+ return await this.buildRequest(endpoints.commerce.transactionsHistoryBuys, {});
1567
+ }
1568
+ return await this.buildRequest(endpoints.commerce.transactionsHistorySells, {});
1731
1569
  }
1732
1570
  };
1733
1571
 
@@ -1740,12 +1578,10 @@ var EmblemApi = class extends ApiBase {
1740
1578
  * @param ids - Ids of the requested emblem foregrounds
1741
1579
  * @returns Emblem foreground information
1742
1580
  */
1743
- getEmblem(type, ids) {
1744
- return __async(this, null, function* () {
1745
- return yield this.buildRequest(endpoints.emblem, {
1746
- type,
1747
- ids: ids != null ? ids : "all"
1748
- });
1581
+ async getEmblem(type, ids) {
1582
+ return await this.buildRequest(endpoints.emblem, {
1583
+ type,
1584
+ ids: ids ?? "all"
1749
1585
  });
1750
1586
  }
1751
1587
  };
@@ -1760,10 +1596,8 @@ var GuildApi = class extends ApiBase {
1760
1596
  *
1761
1597
  * @param id - Unique guild id
1762
1598
  */
1763
- get(id) {
1764
- return __async(this, null, function* () {
1765
- return yield this.buildRequest(endpoints.guild.core, { id });
1766
- });
1599
+ async get(id) {
1600
+ return await this.buildRequest(endpoints.guild.core, { id });
1767
1601
  }
1768
1602
  /**
1769
1603
  * Returns information about certain events in a guild's log.
@@ -1773,10 +1607,8 @@ var GuildApi = class extends ApiBase {
1773
1607
  * @param id - Unique guild id
1774
1608
  * @param since - Starting point for the log, by log id
1775
1609
  */
1776
- getLog(id, since) {
1777
- return __async(this, null, function* () {
1778
- return yield this.buildRequest(endpoints.guild.log, { id, since: since != null ? since : 0 });
1779
- });
1610
+ async getLog(id, since) {
1611
+ return await this.buildRequest(endpoints.guild.log, { id, since: since ?? 0 });
1780
1612
  }
1781
1613
  /**
1782
1614
  * Returns information about the members of a specified guild.
@@ -1785,10 +1617,8 @@ var GuildApi = class extends ApiBase {
1785
1617
  *
1786
1618
  * @param id - Unique guild id
1787
1619
  */
1788
- getMembers(id) {
1789
- return __async(this, null, function* () {
1790
- return yield this.buildRequest(endpoints.guild.members, { id });
1791
- });
1620
+ async getMembers(id) {
1621
+ return await this.buildRequest(endpoints.guild.members, { id });
1792
1622
  }
1793
1623
  /**
1794
1624
  * Returns information about the ranks of a specified guild.
@@ -1797,10 +1627,8 @@ var GuildApi = class extends ApiBase {
1797
1627
  *
1798
1628
  * @param id - Unique guild id
1799
1629
  */
1800
- getRanks(id) {
1801
- return __async(this, null, function* () {
1802
- return yield this.buildRequest(endpoints.guild.ranks, { id });
1803
- });
1630
+ async getRanks(id) {
1631
+ return await this.buildRequest(endpoints.guild.ranks, { id });
1804
1632
  }
1805
1633
  /**
1806
1634
  * Returns information about the items in a guild's vault.
@@ -1809,10 +1637,8 @@ var GuildApi = class extends ApiBase {
1809
1637
  *
1810
1638
  * @param id - Unique guild id
1811
1639
  */
1812
- getStash(id) {
1813
- return __async(this, null, function* () {
1814
- return yield this.buildRequest(endpoints.guild.stash, { id });
1815
- });
1640
+ async getStash(id) {
1641
+ return await this.buildRequest(endpoints.guild.stash, { id });
1816
1642
  }
1817
1643
  /**
1818
1644
  * Returns information about the items in a guild's storage.
@@ -1821,10 +1647,8 @@ var GuildApi = class extends ApiBase {
1821
1647
  *
1822
1648
  * @param id - Unique guild id
1823
1649
  */
1824
- getStorage(id) {
1825
- return __async(this, null, function* () {
1826
- return yield this.buildRequest(endpoints.guild.storage, { id });
1827
- });
1650
+ async getStorage(id) {
1651
+ return await this.buildRequest(endpoints.guild.storage, { id });
1828
1652
  }
1829
1653
  /**
1830
1654
  * Returns information about the teams in a guild.
@@ -1833,10 +1657,8 @@ var GuildApi = class extends ApiBase {
1833
1657
  *
1834
1658
  * @param id - Unique guild id
1835
1659
  */
1836
- getTeams(id) {
1837
- return __async(this, null, function* () {
1838
- return yield this.buildRequest(endpoints.guild.teams, { id });
1839
- });
1660
+ async getTeams(id) {
1661
+ return await this.buildRequest(endpoints.guild.teams, { id });
1840
1662
  }
1841
1663
  /**
1842
1664
  * Returns information about the items in a guild's treasury.
@@ -1845,10 +1667,8 @@ var GuildApi = class extends ApiBase {
1845
1667
  *
1846
1668
  * @param id - Unique guild id
1847
1669
  */
1848
- getTreasury(id) {
1849
- return __async(this, null, function* () {
1850
- return yield this.buildRequest(endpoints.guild.treasury, { id });
1851
- });
1670
+ async getTreasury(id) {
1671
+ return await this.buildRequest(endpoints.guild.treasury, { id });
1852
1672
  }
1853
1673
  /**
1854
1674
  * Returns information about the guild's upgrades.
@@ -1857,38 +1677,30 @@ var GuildApi = class extends ApiBase {
1857
1677
  *
1858
1678
  * @param id - Unique guild id
1859
1679
  */
1860
- getUpgrades(id) {
1861
- return __async(this, null, function* () {
1862
- return yield this.buildRequest(endpoints.guild.upgrades, { id });
1863
- });
1680
+ async getUpgrades(id) {
1681
+ return await this.buildRequest(endpoints.guild.upgrades, { id });
1864
1682
  }
1865
1683
  /**
1866
1684
  * Returns information about all guild permissions.
1867
1685
  */
1868
- getPermissions() {
1869
- return __async(this, null, function* () {
1870
- return yield this.buildRequest(endpoints.guild.permissions, {});
1871
- });
1686
+ async getPermissions() {
1687
+ return await this.buildRequest(endpoints.guild.permissions, {});
1872
1688
  }
1873
1689
  /**
1874
1690
  * Returns information on guild ids to be used for other API queries.
1875
1691
  *
1876
1692
  * @param name - Guild name
1877
1693
  */
1878
- find(name) {
1879
- return __async(this, null, function* () {
1880
- return yield this.buildRequest(endpoints.guild.search, { name });
1881
- });
1694
+ async find(name) {
1695
+ return await this.buildRequest(endpoints.guild.search, { name });
1882
1696
  }
1883
1697
  /**
1884
1698
  * Returns information about all available Guild Hall upgrades, including scribe decorations.
1885
1699
  *
1886
1700
  * @param ids - Guild upgrade ids
1887
1701
  */
1888
- upgrades(ids) {
1889
- return __async(this, null, function* () {
1890
- return yield this.buildRequest(endpoints.guild.upgradesInfo, { ids });
1891
- });
1702
+ async upgrades(ids) {
1703
+ return await this.buildRequest(endpoints.guild.upgradesInfo, { ids });
1892
1704
  }
1893
1705
  };
1894
1706
 
@@ -1900,10 +1712,8 @@ var HomeApi = class extends ApiBase {
1900
1712
  *
1901
1713
  * @param ids - Cat ids
1902
1714
  */
1903
- getCats(ids) {
1904
- return __async(this, null, function* () {
1905
- return yield this.buildRequest(endpoints.home.cats, { ids: ids != null ? ids : "all" });
1906
- });
1715
+ async getCats(ids) {
1716
+ return await this.buildRequest(endpoints.home.cats, { ids: ids ?? "all" });
1907
1717
  }
1908
1718
  /**
1909
1719
  * Returns a list of all currently available home instance nodes.
@@ -1911,21 +1721,17 @@ var HomeApi = class extends ApiBase {
1911
1721
  *
1912
1722
  * @param ids - Node ids
1913
1723
  */
1914
- getNodes(ids) {
1915
- return __async(this, null, function* () {
1916
- return yield this.buildRequest(endpoints.home.nodes, { ids: ids != null ? ids : "all" });
1917
- });
1724
+ async getNodes(ids) {
1725
+ return await this.buildRequest(endpoints.home.nodes, { ids: ids ?? "all" });
1918
1726
  }
1919
1727
  };
1920
1728
 
1921
1729
  // src/apis/misc/colors.ts
1922
1730
  var ColorsApi = class extends ApiBase {
1923
- get(ids) {
1924
- return __async(this, null, function* () {
1925
- if (ids)
1926
- return yield this.buildRequest(endpoints.colors.byId, { ids });
1927
- return yield this.buildRequest(endpoints.colors.all, {});
1928
- });
1731
+ async get(ids) {
1732
+ if (ids)
1733
+ return await this.buildRequest(endpoints.colors.byId, { ids });
1734
+ return await this.buildRequest(endpoints.colors.all, {});
1929
1735
  }
1930
1736
  };
1931
1737
 
@@ -1936,10 +1742,8 @@ var ContinentsApi = class extends ApiBase {
1936
1742
  *
1937
1743
  * @returns Continent ids
1938
1744
  */
1939
- getAllContinents() {
1940
- return __async(this, null, function* () {
1941
- return yield this.buildRequest(endpoints.continents.core, {});
1942
- });
1745
+ async getAllContinents() {
1746
+ return await this.buildRequest(endpoints.continents.core, {});
1943
1747
  }
1944
1748
  /**
1945
1749
  * Get continents by id
@@ -1947,11 +1751,9 @@ var ContinentsApi = class extends ApiBase {
1947
1751
  * @param continents Continent ids. If not present, returns all continents
1948
1752
  * @returns Continent details
1949
1753
  */
1950
- getContinents(continents) {
1951
- return __async(this, null, function* () {
1952
- return yield this.buildRequest(endpoints.continents.continents, {
1953
- continents: continents != null ? continents : "all"
1954
- });
1754
+ async getContinents(continents) {
1755
+ return await this.buildRequest(endpoints.continents.continents, {
1756
+ continents: continents ?? "all"
1955
1757
  });
1956
1758
  }
1957
1759
  /**
@@ -1961,12 +1763,10 @@ var ContinentsApi = class extends ApiBase {
1961
1763
  * @param floors Floor id
1962
1764
  * @returns Continent floor details
1963
1765
  */
1964
- getContinentFloors(continent, floors) {
1965
- return __async(this, null, function* () {
1966
- return yield this.buildRequest(endpoints.continents.floors, {
1967
- continent,
1968
- floors: floors != null ? floors : "all"
1969
- });
1766
+ async getContinentFloors(continent, floors) {
1767
+ return await this.buildRequest(endpoints.continents.floors, {
1768
+ continent,
1769
+ floors: floors ?? "all"
1970
1770
  });
1971
1771
  }
1972
1772
  /**
@@ -1977,13 +1777,11 @@ var ContinentsApi = class extends ApiBase {
1977
1777
  * @param regions Region ids
1978
1778
  * @returns Regions in a continent floor
1979
1779
  */
1980
- getContinentFloorRegions(continent, floor, regions) {
1981
- return __async(this, null, function* () {
1982
- return yield this.buildRequest(endpoints.continents.regions, {
1983
- continent,
1984
- floor,
1985
- regions: regions != null ? regions : "all"
1986
- });
1780
+ async getContinentFloorRegions(continent, floor, regions) {
1781
+ return await this.buildRequest(endpoints.continents.regions, {
1782
+ continent,
1783
+ floor,
1784
+ regions: regions ?? "all"
1987
1785
  });
1988
1786
  }
1989
1787
  /**
@@ -1995,257 +1793,211 @@ var ContinentsApi = class extends ApiBase {
1995
1793
  * @param maps Map ids
1996
1794
  * @returns Maps in a continent region
1997
1795
  */
1998
- getContinentFloorRegionMaps(continent, floor, region, maps) {
1999
- return __async(this, null, function* () {
2000
- return yield this.buildRequest(endpoints.continents.maps, {
2001
- continent,
2002
- floor,
2003
- region,
2004
- maps: maps != null ? maps : "all"
2005
- });
1796
+ async getContinentFloorRegionMaps(continent, floor, region, maps) {
1797
+ return await this.buildRequest(endpoints.continents.maps, {
1798
+ continent,
1799
+ floor,
1800
+ region,
1801
+ maps: maps ?? "all"
2006
1802
  });
2007
1803
  }
2008
1804
  };
2009
1805
 
2010
1806
  // src/apis/misc/currencies.ts
2011
1807
  var CurrenciesApi = class extends ApiBase {
2012
- get(ids) {
2013
- return __async(this, null, function* () {
2014
- if (ids)
2015
- return yield this.buildRequest(endpoints.currencies.byId, { ids });
2016
- return yield this.buildRequest(endpoints.currencies.all, {});
2017
- });
1808
+ async get(ids) {
1809
+ if (ids)
1810
+ return await this.buildRequest(endpoints.currencies.byId, { ids });
1811
+ return await this.buildRequest(endpoints.currencies.all, {});
2018
1812
  }
2019
1813
  };
2020
1814
 
2021
1815
  // src/apis/misc/emotes.ts
2022
1816
  var EmotesApi = class extends ApiBase {
2023
- get(ids) {
2024
- return __async(this, null, function* () {
2025
- if (ids && Array.isArray(ids)) {
2026
- ids = ids.map((id) => {
2027
- if (["shiverplus", "stretch"].includes(id.toLocaleLowerCase()))
2028
- return id[0].toLocaleUpperCase() + id.substring(1);
2029
- return id.toLocaleLowerCase();
2030
- });
2031
- return yield this.buildRequest(endpoints.emotes.byId, { ids });
2032
- }
2033
- return yield this.buildRequest(endpoints.emotes.all, {});
2034
- });
1817
+ async get(ids) {
1818
+ if (ids && Array.isArray(ids)) {
1819
+ ids = ids.map((id) => {
1820
+ if (["shiverplus", "stretch"].includes(id.toLocaleLowerCase()))
1821
+ return id[0].toLocaleUpperCase() + id.substring(1);
1822
+ return id.toLocaleLowerCase();
1823
+ });
1824
+ return await this.buildRequest(endpoints.emotes.byId, { ids });
1825
+ }
1826
+ return await this.buildRequest(endpoints.emotes.all, {});
2035
1827
  }
2036
1828
  };
2037
1829
 
2038
1830
  // src/apis/misc/gliders.ts
2039
1831
  var GlidersApi = class extends ApiBase {
2040
- get(ids) {
2041
- return __async(this, null, function* () {
2042
- if (ids)
2043
- return yield this.buildRequest(endpoints.gliders.byId, { ids });
2044
- return yield this.buildRequest(endpoints.gliders.all, {});
2045
- });
1832
+ async get(ids) {
1833
+ if (ids)
1834
+ return await this.buildRequest(endpoints.gliders.byId, { ids });
1835
+ return await this.buildRequest(endpoints.gliders.all, {});
2046
1836
  }
2047
1837
  };
2048
1838
 
2049
1839
  // src/apis/misc/items.ts
2050
1840
  var ItemsApi = class extends ApiBase {
2051
- get(ids) {
2052
- return __async(this, null, function* () {
2053
- if (ids)
2054
- return yield this.buildRequest(endpoints.items.byId, { ids });
2055
- return yield this.buildRequest(endpoints.items.all, {});
2056
- });
1841
+ async get(ids) {
1842
+ if (ids)
1843
+ return await this.buildRequest(endpoints.items.byId, { ids });
1844
+ return await this.buildRequest(endpoints.items.all, {});
2057
1845
  }
2058
1846
  };
2059
1847
 
2060
1848
  // src/apis/misc/itemstats.ts
2061
1849
  var ItemStatsApi = class extends ApiBase {
2062
- get(ids) {
2063
- return __async(this, null, function* () {
2064
- if (ids)
2065
- return yield this.buildRequest(endpoints.itemstats.byId, { ids });
2066
- return yield this.buildRequest(endpoints.itemstats.all, {});
2067
- });
1850
+ async get(ids) {
1851
+ if (ids)
1852
+ return await this.buildRequest(endpoints.itemstats.byId, { ids });
1853
+ return await this.buildRequest(endpoints.itemstats.all, {});
2068
1854
  }
2069
1855
  };
2070
1856
 
2071
1857
  // src/apis/misc/legendaryarmory.ts
2072
1858
  var LegendaryArmoryApi = class extends ApiBase {
2073
- get(ids) {
2074
- return __async(this, null, function* () {
2075
- if (ids)
2076
- return yield this.buildRequest(endpoints.legendaryArmory.byId, { ids });
2077
- return yield this.buildRequest(endpoints.legendaryArmory.all, {});
2078
- });
1859
+ async get(ids) {
1860
+ if (ids)
1861
+ return await this.buildRequest(endpoints.legendaryArmory.byId, { ids });
1862
+ return await this.buildRequest(endpoints.legendaryArmory.all, {});
2079
1863
  }
2080
1864
  };
2081
1865
 
2082
1866
  // src/apis/misc/legends.ts
2083
1867
  var LegendsApi = class extends ApiBase {
2084
- get(ids) {
2085
- return __async(this, null, function* () {
2086
- if (ids)
2087
- return yield this.buildRequest(endpoints.legends.byId, { ids });
2088
- return yield this.buildRequest(endpoints.legends.all, {});
2089
- });
1868
+ async get(ids) {
1869
+ if (ids)
1870
+ return await this.buildRequest(endpoints.legends.byId, { ids });
1871
+ return await this.buildRequest(endpoints.legends.all, {});
2090
1872
  }
2091
1873
  };
2092
1874
 
2093
1875
  // src/apis/misc/mailCarriers.ts
2094
1876
  var MailCarriersApi = class extends ApiBase {
2095
- get(ids) {
2096
- return __async(this, null, function* () {
2097
- if (ids)
2098
- return yield this.buildRequest(endpoints.mailCarriers.byId, { ids });
2099
- return yield this.buildRequest(endpoints.mailCarriers.all, {});
2100
- });
1877
+ async get(ids) {
1878
+ if (ids)
1879
+ return await this.buildRequest(endpoints.mailCarriers.byId, { ids });
1880
+ return await this.buildRequest(endpoints.mailCarriers.all, {});
2101
1881
  }
2102
1882
  };
2103
1883
 
2104
1884
  // src/apis/misc/mapChests.ts
2105
1885
  var MapChestsApi = class extends ApiBase {
2106
- get() {
2107
- return __async(this, null, function* () {
2108
- return yield this.buildRequest(endpoints.mapChests, {});
2109
- });
1886
+ async get() {
1887
+ return await this.buildRequest(endpoints.mapChests, {});
2110
1888
  }
2111
1889
  };
2112
1890
 
2113
1891
  // src/apis/misc/maps.ts
2114
1892
  var MapsApi = class extends ApiBase {
2115
- get(ids) {
2116
- return __async(this, null, function* () {
2117
- if (ids)
2118
- return yield this.buildRequest(endpoints.maps.byId, { ids });
2119
- return yield this.buildRequest(endpoints.maps.all, {});
2120
- });
1893
+ async get(ids) {
1894
+ if (ids)
1895
+ return await this.buildRequest(endpoints.maps.byId, { ids });
1896
+ return await this.buildRequest(endpoints.maps.all, {});
2121
1897
  }
2122
1898
  };
2123
1899
 
2124
1900
  // src/apis/misc/masteries.ts
2125
1901
  var MasteriesApi = class extends ApiBase {
2126
- get(ids) {
2127
- return __async(this, null, function* () {
2128
- if (ids)
2129
- return yield this.buildRequest(endpoints.masteries.byId, { ids });
2130
- return yield this.buildRequest(endpoints.masteries.all, {});
2131
- });
1902
+ async get(ids) {
1903
+ if (ids)
1904
+ return await this.buildRequest(endpoints.masteries.byId, { ids });
1905
+ return await this.buildRequest(endpoints.masteries.all, {});
2132
1906
  }
2133
1907
  };
2134
1908
 
2135
1909
  // src/apis/misc/materials.ts
2136
1910
  var MaterialsApi = class extends ApiBase {
2137
- get(ids) {
2138
- return __async(this, null, function* () {
2139
- if (ids)
2140
- return yield this.buildRequest(endpoints.materials.byId, { ids });
2141
- return yield this.buildRequest(endpoints.materials.all, {});
2142
- });
1911
+ async get(ids) {
1912
+ if (ids)
1913
+ return await this.buildRequest(endpoints.materials.byId, { ids });
1914
+ return await this.buildRequest(endpoints.materials.all, {});
2143
1915
  }
2144
1916
  };
2145
1917
 
2146
1918
  // src/apis/misc/minis.ts
2147
1919
  var MinisApi = class extends ApiBase {
2148
- get(ids) {
2149
- return __async(this, null, function* () {
2150
- if (ids)
2151
- return yield this.buildRequest(endpoints.minis.byId, { ids });
2152
- return yield this.buildRequest(endpoints.minis.all, {});
2153
- });
1920
+ async get(ids) {
1921
+ if (ids)
1922
+ return await this.buildRequest(endpoints.minis.byId, { ids });
1923
+ return await this.buildRequest(endpoints.minis.all, {});
2154
1924
  }
2155
1925
  };
2156
1926
 
2157
1927
  // src/apis/misc/mounts.ts
2158
1928
  var MountsApi = class extends ApiBase {
2159
- getSkins(ids) {
2160
- return __async(this, null, function* () {
2161
- if (ids)
2162
- return yield this.buildRequest(endpoints.mountsSkins.byId, { ids });
2163
- return yield this.buildRequest(endpoints.mountsSkins.all, {});
2164
- });
1929
+ async getSkins(ids) {
1930
+ if (ids)
1931
+ return await this.buildRequest(endpoints.mountsSkins.byId, { ids });
1932
+ return await this.buildRequest(endpoints.mountsSkins.all, {});
2165
1933
  }
2166
- getTypes(ids) {
2167
- return __async(this, null, function* () {
2168
- if (ids)
2169
- return yield this.buildRequest(endpoints.mountsTypes.byId, { ids });
2170
- return yield this.buildRequest(endpoints.mountsTypes.all, {});
2171
- });
1934
+ async getTypes(ids) {
1935
+ if (ids)
1936
+ return await this.buildRequest(endpoints.mountsTypes.byId, { ids });
1937
+ return await this.buildRequest(endpoints.mountsTypes.all, {});
2172
1938
  }
2173
1939
  };
2174
1940
 
2175
1941
  // src/apis/misc/novelties.ts
2176
1942
  var NoveltiesApi = class extends ApiBase {
2177
- get(ids) {
2178
- return __async(this, null, function* () {
2179
- if (ids)
2180
- return yield this.buildRequest(endpoints.novelties.byId, { ids });
2181
- return yield this.buildRequest(endpoints.novelties.all, {});
2182
- });
1943
+ async get(ids) {
1944
+ if (ids)
1945
+ return await this.buildRequest(endpoints.novelties.byId, { ids });
1946
+ return await this.buildRequest(endpoints.novelties.all, {});
2183
1947
  }
2184
1948
  };
2185
1949
 
2186
1950
  // src/apis/misc/outfits.ts
2187
1951
  var OutfitsApi = class extends ApiBase {
2188
- get(ids) {
2189
- return __async(this, null, function* () {
2190
- if (ids)
2191
- return yield this.buildRequest(endpoints.outfits.byId, { ids });
2192
- return yield this.buildRequest(endpoints.outfits.all, {});
2193
- });
1952
+ async get(ids) {
1953
+ if (ids)
1954
+ return await this.buildRequest(endpoints.outfits.byId, { ids });
1955
+ return await this.buildRequest(endpoints.outfits.all, {});
2194
1956
  }
2195
1957
  };
2196
1958
 
2197
1959
  // src/apis/misc/pets.ts
2198
1960
  var PetsApi = class extends ApiBase {
2199
- get(ids) {
2200
- return __async(this, null, function* () {
2201
- if (ids)
2202
- return yield this.buildRequest(endpoints.pets.byId, { ids });
2203
- return yield this.buildRequest(endpoints.pets.all, {});
2204
- });
1961
+ async get(ids) {
1962
+ if (ids)
1963
+ return await this.buildRequest(endpoints.pets.byId, { ids });
1964
+ return await this.buildRequest(endpoints.pets.all, {});
2205
1965
  }
2206
1966
  };
2207
1967
 
2208
1968
  // src/apis/misc/quaggans.ts
2209
1969
  var QuaggansApi = class extends ApiBase {
2210
- get(ids) {
2211
- return __async(this, null, function* () {
2212
- if (ids)
2213
- return yield this.buildRequest(endpoints.quaggans.byId, { ids });
2214
- return yield this.buildRequest(endpoints.quaggans.all, {});
2215
- });
1970
+ async get(ids) {
1971
+ if (ids)
1972
+ return await this.buildRequest(endpoints.quaggans.byId, { ids });
1973
+ return await this.buildRequest(endpoints.quaggans.all, {});
2216
1974
  }
2217
1975
  };
2218
1976
 
2219
1977
  // src/apis/misc/quests.ts
2220
1978
  var QuestsApi = class extends ApiBase {
2221
- get(ids) {
2222
- return __async(this, null, function* () {
2223
- if (ids)
2224
- return yield this.buildRequest(endpoints.quests.byId, { ids });
2225
- return yield this.buildRequest(endpoints.quests.all, {});
2226
- });
1979
+ async get(ids) {
1980
+ if (ids)
1981
+ return await this.buildRequest(endpoints.quests.byId, { ids });
1982
+ return await this.buildRequest(endpoints.quests.all, {});
2227
1983
  }
2228
1984
  };
2229
1985
 
2230
1986
  // src/apis/misc/races.ts
2231
1987
  var RacesApi = class extends ApiBase {
2232
- get(ids) {
2233
- return __async(this, null, function* () {
2234
- if (ids)
2235
- return yield this.buildRequest(endpoints.races.byId, { ids });
2236
- return yield this.buildRequest(endpoints.races.all, {});
2237
- });
1988
+ async get(ids) {
1989
+ if (ids)
1990
+ return await this.buildRequest(endpoints.races.byId, { ids });
1991
+ return await this.buildRequest(endpoints.races.all, {});
2238
1992
  }
2239
1993
  };
2240
1994
 
2241
1995
  // src/apis/misc/raids.ts
2242
1996
  var RaidsApi = class extends ApiBase {
2243
- get(ids) {
2244
- return __async(this, null, function* () {
2245
- if (ids)
2246
- return yield this.buildRequest(endpoints.raids.byId, { ids });
2247
- return yield this.buildRequest(endpoints.raids.all, {});
2248
- });
1997
+ async get(ids) {
1998
+ if (ids)
1999
+ return await this.buildRequest(endpoints.raids.byId, { ids });
2000
+ return await this.buildRequest(endpoints.raids.all, {});
2249
2001
  }
2250
2002
  };
2251
2003
 
@@ -2259,10 +2011,8 @@ var RecipesApi = class extends ApiBase {
2259
2011
  * @param ids - Recipe ids
2260
2012
  * @returns Recipe details
2261
2013
  */
2262
- get(ids) {
2263
- return __async(this, null, function* () {
2264
- return yield this.buildRequest(endpoints.recipes.byId, { ids });
2265
- });
2014
+ async get(ids) {
2015
+ return await this.buildRequest(endpoints.recipes.byId, { ids });
2266
2016
  }
2267
2017
  /**
2268
2018
  * Allows searching for recipe.
@@ -2271,10 +2021,8 @@ var RecipesApi = class extends ApiBase {
2271
2021
  * @param ids - Item ids to be searched for
2272
2022
  * @returns List of item ids where these items are used
2273
2023
  */
2274
- search(type, ids) {
2275
- return __async(this, null, function* () {
2276
- return yield this.buildRequest(endpoints.recipes.search, { type, ids });
2277
- });
2024
+ async search(type, ids) {
2025
+ return await this.buildRequest(endpoints.recipes.search, { type, ids });
2278
2026
  }
2279
2027
  };
2280
2028
 
@@ -2286,50 +2034,40 @@ var SkillsApi = class extends ApiBase {
2286
2034
  * @param ids - Skill ids
2287
2035
  * @returns Complete skill information
2288
2036
  */
2289
- get(ids) {
2290
- return __async(this, null, function* () {
2291
- return yield this.buildRequest(endpoints.skills, { ids });
2292
- });
2037
+ async get(ids) {
2038
+ return await this.buildRequest(endpoints.skills, { ids });
2293
2039
  }
2294
2040
  };
2295
2041
 
2296
2042
  // src/apis/misc/skins.ts
2297
2043
  var SkinsApi = class extends ApiBase {
2298
- get(ids) {
2299
- return __async(this, null, function* () {
2300
- if (ids)
2301
- return yield this.buildRequest(endpoints.skins.byId, { ids });
2302
- return yield this.buildRequest(endpoints.skins.all, {});
2303
- });
2044
+ async get(ids) {
2045
+ if (ids)
2046
+ return await this.buildRequest(endpoints.skins.byId, { ids });
2047
+ return await this.buildRequest(endpoints.skins.all, {});
2304
2048
  }
2305
2049
  };
2306
2050
 
2307
2051
  // src/apis/misc/specializations.ts
2308
2052
  var SpecializationsApi = class extends ApiBase {
2309
- get(ids) {
2310
- return __async(this, null, function* () {
2311
- if (ids)
2312
- return yield this.buildRequest(endpoints.specializations.byId, { ids });
2313
- return yield this.buildRequest(endpoints.specializations.all, {});
2314
- });
2053
+ async get(ids) {
2054
+ if (ids)
2055
+ return await this.buildRequest(endpoints.specializations.byId, { ids });
2056
+ return await this.buildRequest(endpoints.specializations.all, {});
2315
2057
  }
2316
2058
  };
2317
2059
 
2318
2060
  // src/apis/misc/stories.ts
2319
2061
  var StoriesApi = class extends ApiBase {
2320
- getStories(ids) {
2321
- return __async(this, null, function* () {
2322
- if (ids)
2323
- return yield this.buildRequest(endpoints.stories.byId, { ids });
2324
- return yield this.buildRequest(endpoints.stories.all, {});
2325
- });
2062
+ async getStories(ids) {
2063
+ if (ids)
2064
+ return await this.buildRequest(endpoints.stories.byId, { ids });
2065
+ return await this.buildRequest(endpoints.stories.all, {});
2326
2066
  }
2327
- getSeasons(ids) {
2328
- return __async(this, null, function* () {
2329
- if (ids)
2330
- return yield this.buildRequest(endpoints.seasons.byId, { ids });
2331
- return yield this.buildRequest(endpoints.seasons.all, {});
2332
- });
2067
+ async getSeasons(ids) {
2068
+ if (ids)
2069
+ return await this.buildRequest(endpoints.seasons.byId, { ids });
2070
+ return await this.buildRequest(endpoints.seasons.all, {});
2333
2071
  }
2334
2072
  };
2335
2073
 
@@ -2342,39 +2080,35 @@ var SubtokenApi = class extends ApiBase {
2342
2080
  * @param permissions Api token permissions
2343
2081
  * @param urls Specific /v2/ api urls to allow access to
2344
2082
  */
2345
- get(expire, permissions, urls) {
2346
- return __async(this, null, function* () {
2347
- try {
2348
- expire = new Date(expire).toISOString();
2349
- } catch (e) {
2350
- if (e instanceof RangeError) {
2351
- logger.error("Date must be of valid, or of ISO-8601 format.");
2352
- throw new RangeError();
2353
- }
2083
+ async get(expire, permissions, urls) {
2084
+ try {
2085
+ expire = new Date(expire).toISOString();
2086
+ } catch (e) {
2087
+ if (e instanceof RangeError) {
2088
+ logger.error("Date must be of valid, or of ISO-8601 format.");
2089
+ throw new RangeError();
2354
2090
  }
2355
- if (urls) {
2356
- return yield this.buildRequest(endpoints.createSubtoken.url, {
2357
- expire,
2358
- permissions,
2359
- urls
2360
- });
2361
- }
2362
- return yield this.buildRequest(endpoints.createSubtoken.noUrl, {
2091
+ }
2092
+ if (urls) {
2093
+ return await this.buildRequest(endpoints.createSubtoken.url, {
2363
2094
  expire,
2364
- permissions
2095
+ permissions,
2096
+ urls
2365
2097
  });
2098
+ }
2099
+ return await this.buildRequest(endpoints.createSubtoken.noUrl, {
2100
+ expire,
2101
+ permissions
2366
2102
  });
2367
2103
  }
2368
2104
  };
2369
2105
 
2370
2106
  // src/apis/misc/titles.ts
2371
2107
  var TitlesApi = class extends ApiBase {
2372
- get(ids) {
2373
- return __async(this, null, function* () {
2374
- if (ids)
2375
- return yield this.buildRequest(endpoints.titles.byId, { ids });
2376
- return yield this.buildRequest(endpoints.titles.all, {});
2377
- });
2108
+ async get(ids) {
2109
+ if (ids)
2110
+ return await this.buildRequest(endpoints.titles.byId, { ids });
2111
+ return await this.buildRequest(endpoints.titles.all, {});
2378
2112
  }
2379
2113
  };
2380
2114
 
@@ -2385,21 +2119,17 @@ var TokenInfoApi = class extends ApiBase {
2385
2119
  *
2386
2120
  * @returns Token details
2387
2121
  */
2388
- get() {
2389
- return __async(this, null, function* () {
2390
- return yield this.buildRequest(endpoints.tokenInfo, {});
2391
- });
2122
+ async get() {
2123
+ return await this.buildRequest(endpoints.tokenInfo, {});
2392
2124
  }
2393
2125
  };
2394
2126
 
2395
2127
  // src/apis/misc/traits.ts
2396
2128
  var TraitsApi = class extends ApiBase {
2397
- get(ids) {
2398
- return __async(this, null, function* () {
2399
- if (ids)
2400
- return yield this.buildRequest(endpoints.traits.byId, { ids });
2401
- return yield this.buildRequest(endpoints.traits.all, {});
2402
- });
2129
+ async get(ids) {
2130
+ if (ids)
2131
+ return await this.buildRequest(endpoints.traits.byId, { ids });
2132
+ return await this.buildRequest(endpoints.traits.all, {});
2403
2133
  }
2404
2134
  };
2405
2135
 
@@ -2410,60 +2140,46 @@ var WorldBossesApi = class extends ApiBase {
2410
2140
  *
2411
2141
  * @returns List of available world bosses
2412
2142
  */
2413
- get() {
2414
- return __async(this, null, function* () {
2415
- return yield this.buildRequest(endpoints.worldBosses, {});
2416
- });
2143
+ async get() {
2144
+ return await this.buildRequest(endpoints.worldBosses, {});
2417
2145
  }
2418
2146
  };
2419
2147
 
2420
2148
  // src/apis/misc/worlds.ts
2421
2149
  var WorldsApi = class extends ApiBase {
2422
- get(ids) {
2423
- return __async(this, null, function* () {
2424
- if (ids)
2425
- return yield this.buildRequest(endpoints.worlds.byId, { ids });
2426
- return yield this.buildRequest(endpoints.worlds.all, {});
2427
- });
2150
+ async get(ids) {
2151
+ if (ids)
2152
+ return await this.buildRequest(endpoints.worlds.byId, { ids });
2153
+ return await this.buildRequest(endpoints.worlds.all, {});
2428
2154
  }
2429
2155
  };
2430
2156
 
2431
2157
  // src/apis/pvp/pvp.ts
2432
2158
  var PvPApi = class extends ApiBase {
2433
- getAmulets(ids) {
2434
- return __async(this, null, function* () {
2435
- if (ids)
2436
- return yield this.buildRequest(endpoints.pvp.amuletsById, { ids });
2437
- return yield this.buildRequest(endpoints.pvp.amuletsAll, {});
2438
- });
2159
+ async getAmulets(ids) {
2160
+ if (ids)
2161
+ return await this.buildRequest(endpoints.pvp.amuletsById, { ids });
2162
+ return await this.buildRequest(endpoints.pvp.amuletsAll, {});
2439
2163
  }
2440
- getGames(ids) {
2441
- return __async(this, null, function* () {
2442
- if (ids)
2443
- return yield this.buildRequest(endpoints.pvp.gamesById, { ids });
2444
- return yield this.buildRequest(endpoints.pvp.gamesAll, {});
2445
- });
2164
+ async getGames(ids) {
2165
+ if (ids)
2166
+ return await this.buildRequest(endpoints.pvp.gamesById, { ids });
2167
+ return await this.buildRequest(endpoints.pvp.gamesAll, {});
2446
2168
  }
2447
- getHeroes(ids) {
2448
- return __async(this, null, function* () {
2449
- if (ids)
2450
- return yield this.buildRequest(endpoints.pvp.heroesById, { ids });
2451
- return yield this.buildRequest(endpoints.pvp.heroesAll, {});
2452
- });
2169
+ async getHeroes(ids) {
2170
+ if (ids)
2171
+ return await this.buildRequest(endpoints.pvp.heroesById, { ids });
2172
+ return await this.buildRequest(endpoints.pvp.heroesAll, {});
2453
2173
  }
2454
- getRanks(ids) {
2455
- return __async(this, null, function* () {
2456
- if (ids)
2457
- return yield this.buildRequest(endpoints.pvp.ranksById, { ids });
2458
- return yield this.buildRequest(endpoints.pvp.ranksAll, {});
2459
- });
2174
+ async getRanks(ids) {
2175
+ if (ids)
2176
+ return await this.buildRequest(endpoints.pvp.ranksById, { ids });
2177
+ return await this.buildRequest(endpoints.pvp.ranksAll, {});
2460
2178
  }
2461
- getSeasons(ids) {
2462
- return __async(this, null, function* () {
2463
- if (ids)
2464
- return yield this.buildRequest(endpoints.pvp.seasonsById, { ids });
2465
- return yield this.buildRequest(endpoints.pvp.seasonsAll, {});
2466
- });
2179
+ async getSeasons(ids) {
2180
+ if (ids)
2181
+ return await this.buildRequest(endpoints.pvp.seasonsById, { ids });
2182
+ return await this.buildRequest(endpoints.pvp.seasonsAll, {});
2467
2183
  }
2468
2184
  /**
2469
2185
  * Returns information about League season leaderboards for either NA or EU.
@@ -2473,49 +2189,39 @@ var PvPApi = class extends ApiBase {
2473
2189
  * @param region - EU or NA region
2474
2190
  * @returns - Season laderboards
2475
2191
  */
2476
- getLeaderboards(id, type, region) {
2477
- return __async(this, null, function* () {
2478
- return yield this.buildRequest(endpoints.pvp.leaderboards, { id, type, region });
2479
- });
2192
+ async getLeaderboards(id, type, region) {
2193
+ return await this.buildRequest(endpoints.pvp.leaderboards, { id, type, region });
2480
2194
  }
2481
2195
  /**
2482
2196
  * Returns information about player pips.
2483
2197
  *
2484
2198
  * @returns Information about player's historical pvp standings
2485
2199
  */
2486
- getStandings() {
2487
- return __async(this, null, function* () {
2488
- return yield this.buildRequest(endpoints.pvp.standings, {});
2489
- });
2200
+ async getStandings() {
2201
+ return await this.buildRequest(endpoints.pvp.standings, {});
2490
2202
  }
2491
2203
  /**
2492
2204
  * Resource returns information about wins and losses in the account's PvP matches.
2493
2205
  *
2494
2206
  * @returns Information about player's PvP stats
2495
2207
  */
2496
- getStats() {
2497
- return __async(this, null, function* () {
2498
- return yield this.buildRequest(endpoints.pvp.stats, {});
2499
- });
2208
+ async getStats() {
2209
+ return await this.buildRequest(endpoints.pvp.stats, {});
2500
2210
  }
2501
2211
  };
2502
2212
 
2503
2213
  // src/apis/wvw/wvw.ts
2504
2214
  var WorldVsWorldApi = class extends ApiBase {
2505
- getAbilities(ids) {
2506
- return __async(this, null, function* () {
2507
- if (ids)
2508
- return yield this.buildRequest(endpoints.wvw.abilitiesById, { ids });
2509
- return yield this.buildRequest(endpoints.wvw.abilities, {});
2510
- });
2511
- }
2512
- getMatches(ids) {
2513
- return __async(this, null, function* () {
2514
- if (ids) {
2515
- return yield this.buildRequest(endpoints.wvw.matchesById, { ids });
2516
- }
2517
- return yield this.buildRequest(endpoints.wvw.matches, {});
2518
- });
2215
+ async getAbilities(ids) {
2216
+ if (ids)
2217
+ return await this.buildRequest(endpoints.wvw.abilitiesById, { ids });
2218
+ return await this.buildRequest(endpoints.wvw.abilities, {});
2219
+ }
2220
+ async getMatches(ids) {
2221
+ if (ids) {
2222
+ return await this.buildRequest(endpoints.wvw.matchesById, { ids });
2223
+ }
2224
+ return await this.buildRequest(endpoints.wvw.matches, {});
2519
2225
  }
2520
2226
  /**
2521
2227
  * Returns further details about the specified match, including the total score, kills and deaths, and further details for each map.
@@ -2525,226 +2231,215 @@ var WorldVsWorldApi = class extends ApiBase {
2525
2231
  * @param world - World id
2526
2232
  * @returns Match description
2527
2233
  */
2528
- getMatchesByWorld(type, world) {
2529
- return __async(this, null, function* () {
2530
- if (type === "overview") {
2531
- return yield this.buildRequest(endpoints.wvw.matchesByWorld, {
2532
- type,
2533
- world
2534
- });
2535
- }
2536
- if (type === "scores") {
2537
- return yield this.buildRequest(endpoints.wvw.matchesByWorld, {
2538
- type,
2539
- world
2540
- });
2541
- }
2542
- return yield this.buildRequest(endpoints.wvw.matchesByWorld, {
2234
+ async getMatchesByWorld(type, world) {
2235
+ if (type === "overview") {
2236
+ return await this.buildRequest(endpoints.wvw.matchesByWorld, {
2543
2237
  type,
2544
2238
  world
2545
2239
  });
2240
+ }
2241
+ if (type === "scores") {
2242
+ return await this.buildRequest(endpoints.wvw.matchesByWorld, {
2243
+ type,
2244
+ world
2245
+ });
2246
+ }
2247
+ return await this.buildRequest(endpoints.wvw.matchesByWorld, {
2248
+ type,
2249
+ world
2546
2250
  });
2547
2251
  }
2548
- getObjectives(ids) {
2549
- return __async(this, null, function* () {
2550
- if (ids)
2551
- return yield this.buildRequest(endpoints.wvw.objectivesById, { ids });
2552
- return yield this.buildRequest(endpoints.wvw.objectives, {});
2553
- });
2252
+ async getObjectives(ids) {
2253
+ if (ids)
2254
+ return await this.buildRequest(endpoints.wvw.objectivesById, { ids });
2255
+ return await this.buildRequest(endpoints.wvw.objectives, {});
2554
2256
  }
2555
- getRanks(ids) {
2556
- return __async(this, null, function* () {
2557
- if (ids)
2558
- return yield this.buildRequest(endpoints.wvw.ranksById, { ids });
2559
- return yield this.buildRequest(endpoints.wvw.ranks, {});
2560
- });
2257
+ async getRanks(ids) {
2258
+ if (ids)
2259
+ return await this.buildRequest(endpoints.wvw.ranksById, { ids });
2260
+ return await this.buildRequest(endpoints.wvw.ranks, {});
2561
2261
  }
2562
- getUpgrades(ids) {
2563
- return __async(this, null, function* () {
2564
- if (ids)
2565
- return yield this.buildRequest(endpoints.wvw.ranksById, { ids });
2566
- return yield this.buildRequest(endpoints.wvw.ranks, {});
2567
- });
2262
+ async getUpgrades(ids) {
2263
+ if (ids)
2264
+ return await this.buildRequest(endpoints.wvw.ranksById, { ids });
2265
+ return await this.buildRequest(endpoints.wvw.ranks, {});
2568
2266
  }
2569
2267
  };
2570
2268
 
2571
2269
  // src/api.ts
2572
2270
  var GW2Api = class extends ApiBase {
2573
- constructor() {
2574
- super(...arguments);
2575
- /**
2576
- * /v2/account Api
2577
- */
2578
- this.account = new AccountApi(this.getParams());
2579
- /**
2580
- * /v2/achievements Api
2581
- */
2582
- this.achievements = new AchievementsApi(this.getParams());
2583
- /**
2584
- * /v2/characters Api
2585
- */
2586
- this.characters = new CharactersApi(this.getParams());
2587
- /**
2588
- * /v2/colors Api
2589
- */
2590
- this.colors = new ColorsApi(this.getParams());
2591
- /**
2592
- * /v2/commerce Api
2593
- */
2594
- this.commerce = new CommerceApi(this.getParams());
2595
- /**
2596
- * /v2/continents Api
2597
- */
2598
- this.continents = new ContinentsApi(this.getParams());
2599
- /**
2600
- * /v2/currencies Api
2601
- */
2602
- this.currencies = new CurrenciesApi(this.getParams());
2603
- /**
2604
- * /v2/emblem Api
2605
- */
2606
- this.emblem = new EmblemApi(this.getParams());
2607
- /**
2608
- * /v2/emotes Api
2609
- */
2610
- this.emotes = new EmotesApi(this.getParams());
2611
- /**
2612
- * /v2/gliders Api
2613
- */
2614
- this.gliders = new GlidersApi(this.getParams());
2615
- /**
2616
- * /v2/guild Api
2617
- */
2618
- this.guild = new GuildApi(this.getParams());
2619
- /**
2620
- * /v2/home Api
2621
- */
2622
- this.home = new HomeApi(this.getParams());
2623
- /**
2624
- * /v2/items Api
2625
- */
2626
- this.items = new ItemsApi(this.getParams());
2627
- /**
2628
- * /v2/itemstats Api
2629
- */
2630
- this.itemstats = new ItemStatsApi(this.getParams());
2631
- /**
2632
- * /v2/legendaryarmory Api
2633
- */
2634
- this.legendaryArmory = new LegendaryArmoryApi(this.getParams());
2635
- /**
2636
- * /v2/legends Api
2637
- */
2638
- this.legends = new LegendsApi(this.getParams());
2639
- /**
2640
- * /v2/mailcarriers Api
2641
- */
2642
- this.mailCarriers = new MailCarriersApi(this.getParams());
2643
- /**
2644
- * /v2/mapchests Api
2645
- */
2646
- this.mapChests = new MapChestsApi(this.getParams());
2647
- /**
2648
- * /v2/maps Api
2649
- */
2650
- this.maps = new MapsApi(this.getParams());
2651
- /**
2652
- * /v2/masteries Api
2653
- */
2654
- this.masteries = new MasteriesApi(this.getParams());
2655
- /**
2656
- * /v2/materials Api
2657
- */
2658
- this.materials = new MaterialsApi(this.getParams());
2659
- /**
2660
- * /v2/minis Api
2661
- */
2662
- this.minis = new MinisApi(this.getParams());
2663
- /**
2664
- * /v2/mounts Api
2665
- */
2666
- this.mounts = new MountsApi(this.getParams());
2667
- /**
2668
- * /v2/novelties Api
2669
- */
2670
- this.novelties = new NoveltiesApi(this.getParams());
2671
- /**
2672
- * /v2/outfits Api
2673
- */
2674
- this.outfits = new OutfitsApi(this.getParams());
2675
- /**
2676
- * /v2/pets Api
2677
- */
2678
- this.pets = new PetsApi(this.getParams());
2679
- /**
2680
- * /v2/pvp Api
2681
- */
2682
- this.pvp = new PvPApi(this.getParams());
2683
- /**
2684
- * /v2/quaggans Api
2685
- */
2686
- this.quaggans = new QuaggansApi(this.getParams());
2687
- /**
2688
- * /v2/quests Api
2689
- */
2690
- this.quests = new QuestsApi(this.getParams());
2691
- /**
2692
- * /v2/races Api
2693
- */
2694
- this.races = new RacesApi(this.getParams());
2695
- /**
2696
- * /v2/raids Api
2697
- */
2698
- this.raids = new RaidsApi(this.getParams());
2699
- /**
2700
- * /v2/recipes Api
2701
- */
2702
- this.recipes = new RecipesApi(this.getParams());
2703
- /**
2704
- * /v2/skills Api
2705
- */
2706
- this.skills = new SkillsApi(this.getParams());
2707
- /**
2708
- * /v2/skins Api
2709
- */
2710
- this.skins = new SkinsApi(this.getParams());
2711
- /**
2712
- * /v2/specializations Api
2713
- */
2714
- this.specializations = new SpecializationsApi(this.getParams());
2715
- /**
2716
- * /v2/stories Api
2717
- */
2718
- this.stories = new StoriesApi(this.getParams());
2719
- /**
2720
- * /v2/subtoken Api
2721
- */
2722
- this.subtoken = new SubtokenApi(this.getParams());
2723
- /**
2724
- * /v2/titles Api
2725
- */
2726
- this.titles = new TitlesApi(this.getParams());
2727
- /**
2728
- * /v2/tokeninfo Api
2729
- */
2730
- this.tokenInfo = new TokenInfoApi(this.getParams());
2731
- /**
2732
- * /v2/traits Api
2733
- */
2734
- this.traits = new TraitsApi(this.getParams());
2735
- /**
2736
- * /v2/worldbosses Api
2737
- */
2738
- this.worldBosses = new WorldBossesApi(this.getParams());
2739
- /**
2740
- * /v2/worlds Api
2741
- */
2742
- this.worlds = new WorldsApi(this.getParams());
2743
- /**
2744
- * /v2/wvw Api
2745
- */
2746
- this.wvw = new WorldVsWorldApi(this.getParams());
2747
- }
2271
+ /**
2272
+ * /v2/account Api
2273
+ */
2274
+ account = new AccountApi(this.getParams());
2275
+ /**
2276
+ * /v2/achievements Api
2277
+ */
2278
+ achievements = new AchievementsApi(this.getParams());
2279
+ /**
2280
+ * /v2/characters Api
2281
+ */
2282
+ characters = new CharactersApi(this.getParams());
2283
+ /**
2284
+ * /v2/colors Api
2285
+ */
2286
+ colors = new ColorsApi(this.getParams());
2287
+ /**
2288
+ * /v2/commerce Api
2289
+ */
2290
+ commerce = new CommerceApi(this.getParams());
2291
+ /**
2292
+ * /v2/continents Api
2293
+ */
2294
+ continents = new ContinentsApi(this.getParams());
2295
+ /**
2296
+ * /v2/currencies Api
2297
+ */
2298
+ currencies = new CurrenciesApi(this.getParams());
2299
+ /**
2300
+ * /v2/emblem Api
2301
+ */
2302
+ emblem = new EmblemApi(this.getParams());
2303
+ /**
2304
+ * /v2/emotes Api
2305
+ */
2306
+ emotes = new EmotesApi(this.getParams());
2307
+ /**
2308
+ * /v2/gliders Api
2309
+ */
2310
+ gliders = new GlidersApi(this.getParams());
2311
+ /**
2312
+ * /v2/guild Api
2313
+ */
2314
+ guild = new GuildApi(this.getParams());
2315
+ /**
2316
+ * /v2/home Api
2317
+ */
2318
+ home = new HomeApi(this.getParams());
2319
+ /**
2320
+ * /v2/items Api
2321
+ */
2322
+ items = new ItemsApi(this.getParams());
2323
+ /**
2324
+ * /v2/itemstats Api
2325
+ */
2326
+ itemstats = new ItemStatsApi(this.getParams());
2327
+ /**
2328
+ * /v2/legendaryarmory Api
2329
+ */
2330
+ legendaryArmory = new LegendaryArmoryApi(this.getParams());
2331
+ /**
2332
+ * /v2/legends Api
2333
+ */
2334
+ legends = new LegendsApi(this.getParams());
2335
+ /**
2336
+ * /v2/mailcarriers Api
2337
+ */
2338
+ mailCarriers = new MailCarriersApi(this.getParams());
2339
+ /**
2340
+ * /v2/mapchests Api
2341
+ */
2342
+ mapChests = new MapChestsApi(this.getParams());
2343
+ /**
2344
+ * /v2/maps Api
2345
+ */
2346
+ maps = new MapsApi(this.getParams());
2347
+ /**
2348
+ * /v2/masteries Api
2349
+ */
2350
+ masteries = new MasteriesApi(this.getParams());
2351
+ /**
2352
+ * /v2/materials Api
2353
+ */
2354
+ materials = new MaterialsApi(this.getParams());
2355
+ /**
2356
+ * /v2/minis Api
2357
+ */
2358
+ minis = new MinisApi(this.getParams());
2359
+ /**
2360
+ * /v2/mounts Api
2361
+ */
2362
+ mounts = new MountsApi(this.getParams());
2363
+ /**
2364
+ * /v2/novelties Api
2365
+ */
2366
+ novelties = new NoveltiesApi(this.getParams());
2367
+ /**
2368
+ * /v2/outfits Api
2369
+ */
2370
+ outfits = new OutfitsApi(this.getParams());
2371
+ /**
2372
+ * /v2/pets Api
2373
+ */
2374
+ pets = new PetsApi(this.getParams());
2375
+ /**
2376
+ * /v2/pvp Api
2377
+ */
2378
+ pvp = new PvPApi(this.getParams());
2379
+ /**
2380
+ * /v2/quaggans Api
2381
+ */
2382
+ quaggans = new QuaggansApi(this.getParams());
2383
+ /**
2384
+ * /v2/quests Api
2385
+ */
2386
+ quests = new QuestsApi(this.getParams());
2387
+ /**
2388
+ * /v2/races Api
2389
+ */
2390
+ races = new RacesApi(this.getParams());
2391
+ /**
2392
+ * /v2/raids Api
2393
+ */
2394
+ raids = new RaidsApi(this.getParams());
2395
+ /**
2396
+ * /v2/recipes Api
2397
+ */
2398
+ recipes = new RecipesApi(this.getParams());
2399
+ /**
2400
+ * /v2/skills Api
2401
+ */
2402
+ skills = new SkillsApi(this.getParams());
2403
+ /**
2404
+ * /v2/skins Api
2405
+ */
2406
+ skins = new SkinsApi(this.getParams());
2407
+ /**
2408
+ * /v2/specializations Api
2409
+ */
2410
+ specializations = new SpecializationsApi(this.getParams());
2411
+ /**
2412
+ * /v2/stories Api
2413
+ */
2414
+ stories = new StoriesApi(this.getParams());
2415
+ /**
2416
+ * /v2/subtoken Api
2417
+ */
2418
+ subtoken = new SubtokenApi(this.getParams());
2419
+ /**
2420
+ * /v2/titles Api
2421
+ */
2422
+ titles = new TitlesApi(this.getParams());
2423
+ /**
2424
+ * /v2/tokeninfo Api
2425
+ */
2426
+ tokenInfo = new TokenInfoApi(this.getParams());
2427
+ /**
2428
+ * /v2/traits Api
2429
+ */
2430
+ traits = new TraitsApi(this.getParams());
2431
+ /**
2432
+ * /v2/worldbosses Api
2433
+ */
2434
+ worldBosses = new WorldBossesApi(this.getParams());
2435
+ /**
2436
+ * /v2/worlds Api
2437
+ */
2438
+ worlds = new WorldsApi(this.getParams());
2439
+ /**
2440
+ * /v2/wvw Api
2441
+ */
2442
+ wvw = new WorldVsWorldApi(this.getParams());
2748
2443
  };
2749
2444
 
2750
2445
  exports.ApiLanguage = ApiLanguage;