guildwars2-ts 1.0.1 → 1.0.3

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