@blizzard-api/wow 0.2.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,1718 +6,1273 @@ var searchBase = `${base}/search`;
6
6
  // src/achievements/achievements.ts
7
7
  var achievementBase = `${base}/achievement`;
8
8
  var achievementCategoryBase = `${base}/achievement-category`;
9
- var achievementApi = {
10
- /**
11
- * Get an achievement category by ID.
12
- * @param achievementCategoryId The achievement category ID.
13
- * @returns The achievement category. See {@link AchievementCategoryResponse}.
14
- */
15
- achievementCategory: (achievementCategoryId) => {
16
- return {
17
- path: `${achievementCategoryBase}/${achievementCategoryId}`,
18
- namespace: "static"
19
- };
20
- },
21
- /**
22
- * Get an achievement category index.
23
- * @returns The achievement category index. See {@link AchievementCategoryIndexResponse}.
24
- */
25
- achievementCategoryIndex: () => {
26
- return {
27
- path: `${achievementCategoryBase}/index`,
28
- namespace: "static"
29
- };
30
- },
31
- /**
32
- * Get an achievement by ID.
33
- * @param achievementId The achievement ID.
34
- * @returns The achievement. See {@link AchievementResponse}.
35
- */
36
- achievement: (achievementId) => {
37
- return {
38
- path: `${achievementBase}/${achievementId}`,
39
- namespace: "static"
40
- };
41
- },
42
- /**
43
- * Get an achievement index.
44
- * @returns The achievement index. See {@link AchievementIndexResponse}.
45
- */
46
- achievementIndex: () => {
47
- return {
48
- path: `${achievementBase}/index`,
49
- namespace: "static"
50
- };
51
- },
52
- /**
53
- * Get achievement media by ID.
54
- * @param achievementId The achievement ID.
55
- * @returns The achievement media. See {@link AchievementMediaResponse}.
56
- */
57
- achievementMedia: (achievementId) => {
58
- return { path: `${mediaBase}/achievement/${achievementId}`, namespace: "static" };
59
- }
60
- };
9
+ function achievementCategory(achievementCategoryId) {
10
+ return {
11
+ path: `${achievementCategoryBase}/${achievementCategoryId}`,
12
+ namespace: "static"
13
+ };
14
+ }
15
+ function achievementCategoryIndex() {
16
+ return {
17
+ path: `${achievementCategoryBase}/index`,
18
+ namespace: "static"
19
+ };
20
+ }
21
+ function achievement(achievementId) {
22
+ return {
23
+ path: `${achievementBase}/${achievementId}`,
24
+ namespace: "static"
25
+ };
26
+ }
27
+ function achievementIndex() {
28
+ return {
29
+ path: `${achievementBase}/index`,
30
+ namespace: "static"
31
+ };
32
+ }
33
+ function achievementMedia(achievementId) {
34
+ return { path: `${mediaBase}/achievement/${achievementId}`, namespace: "static" };
35
+ }
61
36
 
62
37
  // src/auction-house/auction-house.ts
63
- var auctionHouseApi = {
64
- /**
65
- * Get auction house data for a connected realm.
66
- * @param connectedRealmId The ID of the connected realm.
67
- * @returns The auction house data. See {@link AuctionHouseResponse}.
68
- */
69
- auctions: (connectedRealmId) => {
70
- return {
71
- path: `${base}/connected-realm/${connectedRealmId}/auctions`,
72
- namespace: "dynamic"
73
- };
74
- },
75
- /**
76
- * Get auction house data for all connected realms.
77
- * @returns The auction house data. See {@link AuctionHouseResponse}.
78
- */
79
- commodities: () => {
80
- return {
81
- path: `${base}/auctions/commodities`,
82
- namespace: "dynamic"
83
- };
84
- }
85
- };
38
+ function auctions(connectedRealmId) {
39
+ return {
40
+ path: `${base}/connected-realm/${connectedRealmId}/auctions`,
41
+ namespace: "dynamic"
42
+ };
43
+ }
44
+ function commodities() {
45
+ return {
46
+ path: `${base}/auctions/commodities`,
47
+ namespace: "dynamic"
48
+ };
49
+ }
86
50
 
87
51
  // src/azerite-essence/azerite-essence.ts
88
- var azeriteEssenceApi = {
89
- /**
90
- * Get an azerite essence by ID.
91
- * @param azeriteEssenceId The azerite essence ID.
92
- * @returns The azerite essence. See {@link AzeriteEssenceResponse}.
93
- */
94
- azeriteEssence: (azeriteEssenceId) => {
95
- return {
96
- path: `${base}/azerite-essence/${azeriteEssenceId}`,
97
- namespace: "static"
98
- };
99
- },
100
- /**
101
- * Get an azerite essence index.
102
- * @returns The azerite essence index. See {@link AzeriteEssenceIndexResponse}.
103
- */
104
- azeriteEssenceIndex: () => {
105
- return {
106
- path: `${base}/azerite-essence/index`,
107
- namespace: "static"
108
- };
109
- },
110
- /**
111
- * Get azerite essence media by ID.
112
- * @param azeriteEssenceId The azerite essence ID.
113
- * @returns The azerite essence media. See {@link AzeriteEssenceMediaResponse}.
114
- */
115
- azeriteEssenceMedia: (azeriteEssenceId) => {
116
- return { path: `${mediaBase}/azerite-essence/${azeriteEssenceId}`, namespace: "static" };
117
- },
118
- /**
119
- * Search for azerite essences.
120
- * @param options The search parameters. See {@link AzeriteEssenceSearchParameters}.
121
- * @returns The search results. See {@link SearchResponse}.
122
- */
123
- azeriteEssenceSearch: (options) => {
124
- return {
125
- path: `${searchBase}/azerite-essence`,
126
- namespace: "static",
127
- parameters: {
128
- _page: options._page,
129
- "allowed_specializations.id": options["allowed_specializations.id"],
130
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
131
- }
132
- };
133
- }
134
- };
52
+ function azeriteEssence(azeriteEssenceId) {
53
+ return {
54
+ path: `${base}/azerite-essence/${azeriteEssenceId}`,
55
+ namespace: "static"
56
+ };
57
+ }
58
+ function azeriteEssenceIndex() {
59
+ return {
60
+ path: `${base}/azerite-essence/index`,
61
+ namespace: "static"
62
+ };
63
+ }
64
+ function azeriteEssenceMedia(azeriteEssenceId) {
65
+ return { path: `${mediaBase}/azerite-essence/${azeriteEssenceId}`, namespace: "static" };
66
+ }
67
+ function azeriteEssenceSearch(options) {
68
+ return {
69
+ path: `${searchBase}/azerite-essence`,
70
+ namespace: "static",
71
+ parameters: {
72
+ _page: options._page,
73
+ "allowed_specializations.id": options["allowed_specializations.id"],
74
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
75
+ }
76
+ };
77
+ }
135
78
 
136
79
  // src/connected-realm/connected-realm.ts
137
- var connectedRealmApi = {
138
- /**
139
- * Get a connected realm index.
140
- * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.
141
- */
142
- connectedRealmIndex: () => {
143
- return {
144
- path: `${base}/connected-realm/index`,
145
- namespace: "dynamic"
146
- };
147
- },
148
- /**
149
- * Get a connected realm by ID.
150
- * @param connectedRealmId The connected realm ID.
151
- * @returns The connected realm. See {@link ConnectedRealmResponse}.
152
- */
153
- connectedRealm: (connectedRealmId) => {
154
- return {
155
- path: `${base}/connected-realm/${connectedRealmId}`,
156
- namespace: "dynamic"
157
- };
158
- },
159
- /**
160
- * Search for connected realms.
161
- * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.
162
- * @returns The search results. See {@link SearchResponse} & {@link ConnectedRealmSearchResponseItem}.
163
- */
164
- connectedRealmSearch: (options) => {
165
- return {
166
- namespace: "dynamic",
167
- parameters: {
168
- _page: options._page,
169
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
170
- "status.type": options["status.type"],
171
- "realms.timezone": options["realms.timezone"]
172
- },
173
- path: `${base}/search/connected-realm`
174
- };
175
- }
176
- };
80
+ function connectedRealmIndex() {
81
+ return {
82
+ path: `${base}/connected-realm/index`,
83
+ namespace: "dynamic"
84
+ };
85
+ }
86
+ function connectedRealm(connectedRealmId) {
87
+ return {
88
+ path: `${base}/connected-realm/${connectedRealmId}`,
89
+ namespace: "dynamic"
90
+ };
91
+ }
92
+ function connectedRealmSearch(options) {
93
+ return {
94
+ namespace: "dynamic",
95
+ parameters: {
96
+ _page: options._page,
97
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
98
+ "status.type": options["status.type"],
99
+ "realms.timezone": options["realms.timezone"]
100
+ },
101
+ path: `${base}/search/connected-realm`
102
+ };
103
+ }
177
104
 
178
105
  // src/covenant/covenant.ts
179
- var covenantApi = {
180
- /**
181
- * Get a conduit by ID.
182
- * @param conduitId The conduit ID.
183
- * @returns The conduit. See {@link ConduitResponse}.
184
- */
185
- conduit: (conduitId) => {
186
- return {
187
- path: `${base}/covenant/conduit/${conduitId}`,
188
- namespace: "static"
189
- };
190
- },
191
- /**
192
- * Get a conduit index.
193
- * @returns The conduit index. See {@link ConduitIndexResponse}.
194
- */
195
- conduitIndex: () => {
196
- return {
197
- path: `${base}/covenant/conduit/index`,
198
- namespace: "static"
199
- };
200
- },
201
- /**
202
- * Get a covenant by ID.
203
- * @param covenantId The covenant ID.
204
- * @returns The covenant. See {@link CovenantResponse}.
205
- */
206
- covenant: (covenantId) => {
207
- return {
208
- path: `${base}/covenant/${covenantId}`,
209
- namespace: "static"
210
- };
211
- },
212
- /**
213
- * Get a covenant index.
214
- * @returns The covenant index. See {@link CovenantIndexResponse}.
215
- */
216
- covenantIndex: () => {
217
- return {
218
- path: `${base}/covenant/index`,
219
- namespace: "static"
220
- };
221
- },
222
- /**
223
- * Get covenant media by ID.
224
- * @param covenantId The covenant ID.
225
- * @returns The covenant media. See {@link CovenantMediaResponse}.
226
- */
227
- covenantMedia: (covenantId) => {
228
- return {
229
- path: `${mediaBase}/covenant/${covenantId}`,
230
- namespace: "static"
231
- };
232
- },
233
- /**
234
- * Get a soulbind by ID.
235
- * @param soulbindId The soulbind ID.
236
- * @returns The soulbind. See {@link SoulbindResponse}.
237
- */
238
- soulbind: (soulbindId) => {
239
- return {
240
- path: `${base}/covenant/soulbind/${soulbindId}`,
241
- namespace: "static"
242
- };
243
- },
244
- /**
245
- * Get a soulbind index.
246
- * @returns The soulbind index. See {@link SoulbindIndexResponse}.
247
- */
248
- soulbindIndex: () => {
249
- return {
250
- path: `${base}/covenant/soulbind/index`,
251
- namespace: "static"
252
- };
253
- }
254
- };
106
+ function conduit(conduitId) {
107
+ return {
108
+ path: `${base}/covenant/conduit/${conduitId}`,
109
+ namespace: "static"
110
+ };
111
+ }
112
+ function conduitIndex() {
113
+ return {
114
+ path: `${base}/covenant/conduit/index`,
115
+ namespace: "static"
116
+ };
117
+ }
118
+ function covenant(covenantId) {
119
+ return {
120
+ path: `${base}/covenant/${covenantId}`,
121
+ namespace: "static"
122
+ };
123
+ }
124
+ function covenantIndex() {
125
+ return {
126
+ path: `${base}/covenant/index`,
127
+ namespace: "static"
128
+ };
129
+ }
130
+ function covenantMedia(covenantId) {
131
+ return {
132
+ path: `${mediaBase}/covenant/${covenantId}`,
133
+ namespace: "static"
134
+ };
135
+ }
136
+ function soulbind(soulbindId) {
137
+ return {
138
+ path: `${base}/covenant/soulbind/${soulbindId}`,
139
+ namespace: "static"
140
+ };
141
+ }
142
+ function soulbindIndex() {
143
+ return {
144
+ path: `${base}/covenant/soulbind/index`,
145
+ namespace: "static"
146
+ };
147
+ }
255
148
 
256
149
  // src/creature/creature.ts
257
- var creatureApi = {
258
- /**
259
- * Get a creature by ID.
260
- * @param creatureId The creature ID.
261
- * @returns The creature. See {@link CreatureResponse}.
262
- */
263
- creature: (creatureId) => {
264
- return {
265
- path: `${base}/creature/${creatureId}`,
266
- namespace: "static"
267
- };
268
- },
269
- /**
270
- * Get creature display media by ID.
271
- * @param creatureDisplayId The creature display ID.
272
- * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.
273
- */
274
- creatureDisplayMedia: (creatureDisplayId) => {
275
- return {
276
- path: `${mediaBase}/creature-display/${creatureDisplayId}`,
277
- namespace: "static"
278
- };
279
- },
280
- /**
281
- * Get a creature family by ID.
282
- * @param creatureFamilyId The creature family ID.
283
- * @returns The creature family. See {@link CreatureFamilyResponse}.
284
- */
285
- creatureFamily: (creatureFamilyId) => {
286
- return {
287
- path: `${base}/creature-family/${creatureFamilyId}`,
288
- namespace: "static"
289
- };
290
- },
291
- /**
292
- * Get a creature family index.
293
- * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.
294
- */
295
- creatureFamilyIndex: () => {
296
- return {
297
- path: `${base}/creature-family/index`,
298
- namespace: "static"
299
- };
300
- },
301
- /**
302
- * Get creature family media by ID.
303
- * @param creatureFamilyId The creature family ID.
304
- * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.
305
- */
306
- creatureFamilyMedia: (creatureFamilyId) => {
307
- return {
308
- path: `${mediaBase}/creature-family/${creatureFamilyId}`,
309
- namespace: "static"
310
- };
311
- },
312
- /**
313
- * Get a creature type by ID.
314
- * @param creatureTypeId The creature type ID.
315
- * @returns The creature type. See {@link CreatureTypeResponse}.
316
- */
317
- creatureType: (creatureTypeId) => {
318
- return {
319
- path: `${base}/creature-type/${creatureTypeId}`,
320
- namespace: "static"
321
- };
322
- },
323
- /**
324
- * Get a creature type index.
325
- * @returns The creature type index. See {@link CreatureTypeIndexResponse}.
326
- */
327
- creatureTypeIndex: () => {
328
- return {
329
- path: `${base}/creature-type/index`,
330
- namespace: "static"
331
- };
332
- },
333
- /**
334
- * Search for creatures.
335
- * @param options The creature search parameters. See {@link CreatureSearchParameters}.
336
- * @returns The creature search results. See {@link SearchResponse} & {@link CreatureSearchResponseItem}.
337
- */
338
- creatureSearch: (options) => {
339
- return {
340
- namespace: "static",
341
- parameters: {
342
- _page: options._page,
343
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
344
- [`name.${options.locale}`]: options.name
345
- },
346
- path: `${searchBase}/creature`
347
- };
348
- }
349
- };
150
+ function creature(creatureId) {
151
+ return {
152
+ path: `${base}/creature/${creatureId}`,
153
+ namespace: "static"
154
+ };
155
+ }
156
+ function creatureDisplayMedia(creatureDisplayId) {
157
+ return {
158
+ path: `${mediaBase}/creature-display/${creatureDisplayId}`,
159
+ namespace: "static"
160
+ };
161
+ }
162
+ function creatureFamily(creatureFamilyId) {
163
+ return {
164
+ path: `${base}/creature-family/${creatureFamilyId}`,
165
+ namespace: "static"
166
+ };
167
+ }
168
+ function creatureFamilyIndex() {
169
+ return {
170
+ path: `${base}/creature-family/index`,
171
+ namespace: "static"
172
+ };
173
+ }
174
+ function creatureFamilyMedia(creatureFamilyId) {
175
+ return {
176
+ path: `${mediaBase}/creature-family/${creatureFamilyId}`,
177
+ namespace: "static"
178
+ };
179
+ }
180
+ function creatureType(creatureTypeId) {
181
+ return {
182
+ path: `${base}/creature-type/${creatureTypeId}`,
183
+ namespace: "static"
184
+ };
185
+ }
186
+ function creatureTypeIndex() {
187
+ return {
188
+ path: `${base}/creature-type/index`,
189
+ namespace: "static"
190
+ };
191
+ }
192
+ function creatureSearch(options) {
193
+ return {
194
+ namespace: "static",
195
+ parameters: {
196
+ _page: options._page,
197
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
198
+ [`name.${options.locale}`]: options.name
199
+ },
200
+ path: `${searchBase}/creature`
201
+ };
202
+ }
350
203
 
351
204
  // src/guild-crest/guild-crest.ts
352
- var guildCrestApi = {
353
- /**
354
- * Get the guild crest components index.
355
- * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.
356
- */
357
- guildCrestComponentsIndex: () => {
358
- return {
359
- path: `${base}/guild-crest/index`,
360
- namespace: "static"
361
- };
362
- },
363
- /**
364
- * Get a guild crest border by ID.
365
- * @param borderId The guild crest border ID.
366
- * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.
367
- */
368
- guildCrestBorder: (borderId) => {
369
- return {
370
- path: `${mediaBase}/guild-crest/border/${borderId}`,
371
- namespace: "static"
372
- };
373
- },
374
- /**
375
- * Get a guild crest emblem by ID.
376
- * @param emblemId The guild crest emblem ID.
377
- * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
378
- */
379
- guildCrestEmblem: (emblemId) => {
380
- return {
381
- path: `${mediaBase}/guild-crest/emblem/${emblemId}`,
382
- namespace: "static"
383
- };
384
- }
385
- };
205
+ function guildCrestComponentsIndex() {
206
+ return {
207
+ path: `${base}/guild-crest/index`,
208
+ namespace: "static"
209
+ };
210
+ }
211
+ function guildCrestBorder(borderId) {
212
+ return {
213
+ path: `${mediaBase}/guild-crest/border/${borderId}`,
214
+ namespace: "static"
215
+ };
216
+ }
217
+ function guildCrestEmblem(emblemId) {
218
+ return {
219
+ path: `${mediaBase}/guild-crest/emblem/${emblemId}`,
220
+ namespace: "static"
221
+ };
222
+ }
386
223
 
387
224
  // src/heirloom/heirloom.ts
388
- var heirloomApi = {
389
- /**
390
- * Get a heirloom by ID.
391
- * @param heirloomId The heirloom ID.
392
- * @returns The heirloom. See {@link HeirloomResponse}.
393
- */
394
- heirloom: (heirloomId) => {
395
- return {
396
- path: `${base}/heirloom/${heirloomId}`,
397
- namespace: "static"
398
- };
399
- },
400
- /**
401
- * Get the heirloom index.
402
- * @returns The heirloom index. See {@link HeirloomIndexResponse}.
403
- */
404
- heirloomIndex: () => {
405
- return {
406
- path: `${base}/heirloom/index`,
407
- namespace: "static"
408
- };
409
- }
410
- };
225
+ function heirloom(heirloomId) {
226
+ return {
227
+ path: `${base}/heirloom/${heirloomId}`,
228
+ namespace: "static"
229
+ };
230
+ }
231
+ function heirloomIndex() {
232
+ return {
233
+ path: `${base}/heirloom/index`,
234
+ namespace: "static"
235
+ };
236
+ }
411
237
 
412
238
  // src/item/item.ts
413
- var itemApi = {
414
- /**
415
- * Get an item by ID.
416
- * @param itemId The item ID.
417
- * @returns The item. See {@link ItemResponse}.
418
- */
419
- item: (itemId) => {
420
- return {
421
- path: `${base}/item/${itemId}`,
422
- namespace: "static"
423
- };
424
- },
425
- /**
426
- * Get an item class by ID.
427
- * @param itemClassId The item class ID.
428
- * @returns The item class. See {@link ItemClassResponse}.
429
- */
430
- itemClass: (itemClassId) => {
431
- return {
432
- path: `${base}/item-class/${itemClassId}`,
433
- namespace: "static"
434
- };
435
- },
436
- /**
437
- * Get an item subclass by ID.
438
- * @param itemClassId The item class ID.
439
- * @param itemSubclassId The item subclass ID.
440
- * @returns The item subclass. See {@link ItemSubClassResponse}.
441
- */
442
- itemSubClass: (itemClassId, itemSubclassId) => {
443
- return {
444
- path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,
445
- namespace: "static"
446
- };
447
- },
448
- /**
449
- * Get an item class index.
450
- * @returns The item class index. See {@link ItemClassIndexResponse}.
451
- */
452
- itemClassIndex: () => {
453
- return {
454
- path: `${base}/item-class/index`,
455
- namespace: "static"
456
- };
457
- },
458
- /**
459
- * Get item media by ID.
460
- * @param itemId The item ID.
461
- * @returns The item media. See {@link ItemMediaResponse}.
462
- */
463
- itemMedia: (itemId) => {
464
- return {
465
- path: `${mediaBase}/item/${itemId}`,
466
- namespace: "static"
467
- };
468
- },
469
- /**
470
- * Get an item set by ID.
471
- * @param itemSetId The item set ID.
472
- * @returns The item set. See {@link ItemSetResponse}.
473
- */
474
- itemSet: (itemSetId) => {
475
- return {
476
- path: `${base}/item-set/${itemSetId}`,
477
- namespace: "static"
478
- };
479
- },
480
- /**
481
- * Get an item set index.
482
- * @returns The item set index. See {@link ItemSetIndexResponse}.
483
- */
484
- itemSetIndex: () => {
485
- return {
486
- path: `${base}/item-set/index`,
487
- namespace: "static"
488
- };
489
- },
490
- /**
491
- * Search for items.
492
- * @param options The search parameters. See {@link ItemSearchParameters}.
493
- * @returns The search results. See {@link SearchResponse}.
494
- */
495
- itemSearch: (options) => {
496
- return {
497
- namespace: "static",
498
- parameters: {
499
- _page: options._page,
500
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
501
- [`name.${options.locale}`]: options.name
502
- },
503
- path: `${searchBase}/item`
504
- };
505
- }
506
- };
239
+ function item(itemId) {
240
+ return {
241
+ path: `${base}/item/${itemId}`,
242
+ namespace: "static"
243
+ };
244
+ }
245
+ function itemClass(itemClassId) {
246
+ return {
247
+ path: `${base}/item-class/${itemClassId}`,
248
+ namespace: "static"
249
+ };
250
+ }
251
+ function itemSubClass(itemClassId, itemSubclassId) {
252
+ return {
253
+ path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,
254
+ namespace: "static"
255
+ };
256
+ }
257
+ function itemClassIndex() {
258
+ return {
259
+ path: `${base}/item-class/index`,
260
+ namespace: "static"
261
+ };
262
+ }
263
+ function itemMedia(itemId) {
264
+ return {
265
+ path: `${mediaBase}/item/${itemId}`,
266
+ namespace: "static"
267
+ };
268
+ }
269
+ function itemSet(itemSetId) {
270
+ return {
271
+ path: `${base}/item-set/${itemSetId}`,
272
+ namespace: "static"
273
+ };
274
+ }
275
+ function itemSetIndex() {
276
+ return {
277
+ path: `${base}/item-set/index`,
278
+ namespace: "static"
279
+ };
280
+ }
281
+ function itemSearch(options) {
282
+ return {
283
+ namespace: "static",
284
+ parameters: {
285
+ _page: options._page,
286
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
287
+ [`name.${options.locale}`]: options.name
288
+ },
289
+ path: `${searchBase}/item`
290
+ };
291
+ }
507
292
 
508
293
  // src/journal/journal.ts
509
- var journalApi = {
510
- /**
511
- * Get a journal encounter by ID.
512
- * @param journalEncounterId The journal encounter ID.
513
- * @returns The journal encounter. See {@link JournalEncounterResponse}.
514
- */
515
- journalEncounter: (journalEncounterId) => {
516
- return {
517
- path: `${base}/journal-encounter/${journalEncounterId}`,
518
- namespace: "static"
519
- };
520
- },
521
- /**
522
- * Get the journal encounter index.
523
- * @returns The journal encounter index. See {@link JournalEncounterIndexResponse}.
524
- */
525
- journalEncounterIndex: () => {
526
- return {
527
- path: `${base}/journal-encounter/index`,
528
- namespace: "static"
529
- };
530
- },
531
- /**
532
- * Search for journal encounters.
533
- * @param options The search parameters. See {@link JournalEncounterSearchParameters}.
534
- * @returns The search results. See {@link SearchResponse}.
535
- */
536
- journalEncounterSearch: (options) => {
537
- return {
538
- namespace: "static",
539
- parameters: {
540
- _page: options._page,
541
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
542
- [`instance.name.${options.locale}`]: options.instanceName
543
- },
544
- path: `${searchBase}/journal-encounter`
545
- };
546
- },
547
- /**
548
- * Get a journal expansion by ID.
549
- * @param journalExpansionId The journal expansion ID.
550
- * @returns The journal expansion. See {@link JournalExpansionResponse}.
551
- */
552
- journalExpansion: (journalExpansionId) => {
553
- return {
554
- path: `${base}/journal-expansion/${journalExpansionId}`,
555
- namespace: "static"
556
- };
557
- },
558
- /**
559
- * Get the journal expansion index.
560
- * @returns The journal expansion index. See {@link JournalExpansionIndexResponse}.
561
- */
562
- journalExpansionIndex: () => {
563
- return {
564
- path: `${base}/journal-expansion/index`,
565
- namespace: "static"
566
- };
567
- },
568
- /**
569
- * Get a journal instance by ID.
570
- * @param journalInstanceId The journal instance ID.
571
- * @returns The journal instance. See {@link JournalInstanceResponse}.
572
- */
573
- journalInstance: (journalInstanceId) => {
574
- return {
575
- path: `${base}/journal-instance/${journalInstanceId}`,
576
- namespace: "static"
577
- };
578
- },
579
- /**
580
- * Get the journal instance index.
581
- * @returns The journal instance index. See {@link JournalInstanceIndexResponse}.
582
- */
583
- journalInstanceIndex: () => {
584
- return {
585
- path: `${base}/journal-instance/index`,
586
- namespace: "static"
587
- };
588
- },
589
- /**
590
- * Get journal instance media by ID.
591
- * @param journalInstanceId The journal instance ID.
592
- * @returns The journal instance media. See {@link JournalInstanceMediaResponse}.
593
- */
594
- journalInstanceMedia: (journalInstanceId) => {
595
- return {
596
- path: `${mediaBase}/journal-instance/${journalInstanceId}`,
597
- namespace: "static"
598
- };
599
- }
600
- };
294
+ function journalEncounter(journalEncounterId) {
295
+ return {
296
+ path: `${base}/journal-encounter/${journalEncounterId}`,
297
+ namespace: "static"
298
+ };
299
+ }
300
+ function journalEncounterIndex() {
301
+ return {
302
+ path: `${base}/journal-encounter/index`,
303
+ namespace: "static"
304
+ };
305
+ }
306
+ function journalEncounterSearch(options) {
307
+ return {
308
+ namespace: "static",
309
+ parameters: {
310
+ _page: options._page,
311
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
312
+ [`instance.name.${options.locale}`]: options.instanceName
313
+ },
314
+ path: `${searchBase}/journal-encounter`
315
+ };
316
+ }
317
+ function journalExpansion(journalExpansionId) {
318
+ return {
319
+ path: `${base}/journal-expansion/${journalExpansionId}`,
320
+ namespace: "static"
321
+ };
322
+ }
323
+ function journalExpansionIndex() {
324
+ return {
325
+ path: `${base}/journal-expansion/index`,
326
+ namespace: "static"
327
+ };
328
+ }
329
+ function journalInstance(journalInstanceId) {
330
+ return {
331
+ path: `${base}/journal-instance/${journalInstanceId}`,
332
+ namespace: "static"
333
+ };
334
+ }
335
+ function journalInstanceIndex() {
336
+ return {
337
+ path: `${base}/journal-instance/index`,
338
+ namespace: "static"
339
+ };
340
+ }
341
+ function journalInstanceMedia(journalInstanceId) {
342
+ return {
343
+ path: `${mediaBase}/journal-instance/${journalInstanceId}`,
344
+ namespace: "static"
345
+ };
346
+ }
601
347
 
602
348
  // src/media-search/media-search.ts
603
- var mediaSearchApi = {
604
- /**
605
- * Search for media.
606
- * @param options The search parameters. See {@link MediaSearchParameters}.
607
- * @returns The search results. See {@link SearchResponse}.
608
- */
609
- mediaSearch: (options) => {
610
- return {
611
- namespace: "static",
612
- parameters: {
613
- _page: options._page,
614
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
615
- tags: options.tags
616
- },
617
- path: `${searchBase}/media`
618
- };
619
- }
620
- };
349
+ function mediaSearch(options) {
350
+ return {
351
+ namespace: "static",
352
+ parameters: {
353
+ _page: options._page,
354
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
355
+ tags: options.tags
356
+ },
357
+ path: `${searchBase}/media`
358
+ };
359
+ }
621
360
 
622
361
  // src/modified-crafting/modified-crafting.ts
623
- var modifiedCraftingApi = {
624
- /**
625
- * Get a modified crafting category by ID.
626
- * @param modifiedCraftingCategoryId The modified crafting category ID.
627
- * @returns The modified crafting category. See {@link ModifiedCraftingCategoryResponse}.
628
- */
629
- modifiedCraftingCategory: (modifiedCraftingCategoryId) => {
630
- return {
631
- path: `${base}/modified-crafting/category/${modifiedCraftingCategoryId}`,
632
- namespace: "static"
633
- };
634
- },
635
- /**
636
- * Get a modified crafting category index.
637
- * @returns The modified crafting category index. See {@link ModifiedCraftingCategoryIndexResponse}.
638
- */
639
- modifiedCraftingCategoryIndex: () => {
640
- return {
641
- path: `${base}/modified-crafting/category/index`,
642
- namespace: "static"
643
- };
644
- },
645
- /**
646
- * Get a modified crafting index.
647
- * @returns The modified crafting index. See {@link ModifiedCraftingIndexResponse}.
648
- */
649
- modifiedCraftingIndex: () => {
650
- return {
651
- path: `${base}/modified-crafting/index`,
652
- namespace: "static"
653
- };
654
- },
655
- /**
656
- * Get a modified crafting reagent slot type by ID.
657
- * @param modifiedCraftingReagentSlotTypeId The modified crafting reagent slot type ID.
658
- * @returns The modified crafting reagent slot type. See {@link ModifiedCraftingReagentSlotTypeResponse}.
659
- */
660
- modifiedCraftingReagentSlotType: (modifiedCraftingReagentSlotTypeId) => {
661
- return {
662
- path: `${base}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`,
663
- namespace: "static"
664
- };
665
- },
666
- /**
667
- * Get a modified crafting reagent slot type index.
668
- * @returns The modified crafting reagent slot type index. See {@link ModifiedCraftingReagentSlotTypeIndexResponse}.
669
- */
670
- modifiedCraftingReagentSlotTypeIndex: () => {
671
- return {
672
- path: `${base}/modified-crafting/reagent-slot-type/index`,
673
- namespace: "static"
674
- };
675
- }
676
- };
362
+ function modifiedCraftingCategory(modifiedCraftingCategoryId) {
363
+ return {
364
+ path: `${base}/modified-crafting/category/${modifiedCraftingCategoryId}`,
365
+ namespace: "static"
366
+ };
367
+ }
368
+ function modifiedCraftingCategoryIndex() {
369
+ return {
370
+ path: `${base}/modified-crafting/category/index`,
371
+ namespace: "static"
372
+ };
373
+ }
374
+ function modifiedCraftingIndex() {
375
+ return {
376
+ path: `${base}/modified-crafting/index`,
377
+ namespace: "static"
378
+ };
379
+ }
380
+ function modifiedCraftingReagentSlotType(modifiedCraftingReagentSlotTypeId) {
381
+ return {
382
+ path: `${base}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`,
383
+ namespace: "static"
384
+ };
385
+ }
386
+ function modifiedCraftingReagentSlotTypeIndex() {
387
+ return {
388
+ path: `${base}/modified-crafting/reagent-slot-type/index`,
389
+ namespace: "static"
390
+ };
391
+ }
677
392
 
678
393
  // src/mount/mount.ts
679
- var mountApi = {
680
- /**
681
- * Get a mount by ID.
682
- * @param mountId The mount ID.
683
- * @returns The mount. See {@link MountResponse}.
684
- */
685
- mount: (mountId) => {
686
- return {
687
- path: `${base}/mount/${mountId}`,
688
- namespace: "static"
689
- };
690
- },
691
- /**
692
- * Get a mount index.
693
- * @returns The mount index. See {@link MountIndexResponse}.
694
- */
695
- mountIndex: () => {
696
- return {
697
- path: `${base}/mount/index`,
698
- namespace: "static"
699
- };
700
- },
701
- /**
702
- * Get a mount search.
703
- * @param options The search parameters. See {@link MountSearchParameters}.
704
- * @returns The search results. See {@link SearchResponse}.
705
- */
706
- mountSearch: (options) => {
707
- return {
708
- namespace: "static",
709
- parameters: {
710
- _page: options._page,
711
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
712
- [`name.${options.locale}`]: options.name
713
- },
714
- path: `${searchBase}/mount`
715
- };
716
- }
717
- };
394
+ function mount(mountId) {
395
+ return {
396
+ path: `${base}/mount/${mountId}`,
397
+ namespace: "static"
398
+ };
399
+ }
400
+ function mountIndex() {
401
+ return {
402
+ path: `${base}/mount/index`,
403
+ namespace: "static"
404
+ };
405
+ }
406
+ function mountSearch(options) {
407
+ return {
408
+ namespace: "static",
409
+ parameters: {
410
+ _page: options._page,
411
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
412
+ [`name.${options.locale}`]: options.name
413
+ },
414
+ path: `${searchBase}/mount`
415
+ };
416
+ }
718
417
 
719
418
  // src/mythic-keystone-affix/mythic-keystone-affix.ts
720
- var mythicKeystoneAffixApi = {
721
- /**
722
- * Get a list of all Mythic Keystone affixes.
723
- * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}
724
- */
725
- mythicKeystoneAffix: (mythicKeystoneAffixId) => {
726
- return {
727
- path: `${base}/keystone-affix/${mythicKeystoneAffixId}`,
728
- namespace: "static"
729
- };
730
- },
731
- /**
732
- * Get a list of all Mythic Keystone affixes.
733
- * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}
734
- */
735
- mythicKeystoneAffixIndex: () => {
736
- return {
737
- path: `${base}/keystone-affix/index`,
738
- namespace: "static"
739
- };
740
- },
741
- /**
742
- * Get a list of all Mythic Keystone affix media.
743
- * @returns A list of all Mythic Keystone affix media. See {@link MythicKeystoneAffixMediaResponse}
744
- */
745
- mythicKeystoneAffixMedia: (mythicKeystoneAffixId) => {
746
- return {
747
- path: `${mediaBase}/keystone-affix/${mythicKeystoneAffixId}`,
748
- namespace: "static"
749
- };
750
- }
751
- };
419
+ function mythicKeystoneAffix(mythicKeystoneAffixId) {
420
+ return {
421
+ path: `${base}/keystone-affix/${mythicKeystoneAffixId}`,
422
+ namespace: "static"
423
+ };
424
+ }
425
+ function mythicKeystoneAffixIndex() {
426
+ return {
427
+ path: `${base}/keystone-affix/index`,
428
+ namespace: "static"
429
+ };
430
+ }
431
+ function mythicKeystoneAffixMedia(mythicKeystoneAffixId) {
432
+ return {
433
+ path: `${mediaBase}/keystone-affix/${mythicKeystoneAffixId}`,
434
+ namespace: "static"
435
+ };
436
+ }
752
437
 
753
438
  // src/mythic-keystone-dungeon/mythic-keystone-dungeon.ts
754
- var mythicKeystoneDungeonApi = {
755
- /**
756
- * Get a Mythic Keystone dungeon by ID.
757
- * @param mythicKeystoneDungeonId The Mythic Keystone dungeon ID.
758
- * @returns The Mythic Keystone dungeon. See {@link MythicKeystoneDungeonResponse}.
759
- */
760
- mythicKeystoneDungeon: (mythicKeystoneDungeonId) => {
761
- return {
762
- path: `${base}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`,
763
- namespace: "dynamic"
764
- };
765
- },
766
- /**
767
- * Get a Mythic Keystone dungeon index.
768
- * @returns The Mythic Keystone dungeon index. See {@link MythicKeystoneDungeonIndexResponse}.
769
- */
770
- mythicKeystoneDungeonIndex: () => {
771
- return {
772
- path: `${base}/mythic-keystone/dungeon/index`,
773
- namespace: "dynamic"
774
- };
775
- },
776
- /**
777
- * Get a Mythic Keystone index.
778
- * @returns The Mythic Keystone index. See {@link MythicKeystoneIndexResponse}.
779
- */
780
- mythicKeystoneIndex: () => {
781
- return {
782
- path: `${base}/mythic-keystone/index`,
783
- namespace: "dynamic"
784
- };
785
- },
786
- /**
787
- * Get a Mythic Keystone period by ID.
788
- * @param mythicKeystonePeriodId The Mythic Keystone period ID.
789
- * @returns The Mythic Keystone period. See {@link MythicKeystonePeriodResponse}.
790
- */
791
- mythicKeystonePeriod: (mythicKeystonePeriodId) => {
792
- return {
793
- path: `${base}/mythic-keystone/period/${mythicKeystonePeriodId}`,
794
- namespace: "dynamic"
795
- };
796
- },
797
- /**
798
- * Get a Mythic Keystone period index.
799
- * @returns The Mythic Keystone period index. See {@link MythicKeystonePeriodIndexResponse}.
800
- */
801
- mythicKeystonePeriodIndex: () => {
802
- return {
803
- path: `${base}/mythic-keystone/period/index`,
804
- namespace: "dynamic"
805
- };
806
- },
807
- /**
808
- * Get a Mythic Keystone season by ID.
809
- * @param mythicKeystoneSeasonId The Mythic Keystone season ID.
810
- * @returns The Mythic Keystone season. See {@link MythicKeystoneSeasonResponse}.
811
- */
812
- mythicKeystoneSeason: (mythicKeystoneSeasonId) => {
813
- return {
814
- path: `${base}/mythic-keystone/season/${mythicKeystoneSeasonId}`,
815
- namespace: "dynamic"
816
- };
817
- },
818
- /**
819
- * Get a Mythic Keystone season index.
820
- * @returns The Mythic Keystone season index. See {@link MythicKeystoneSeasonIndexResponse}.
821
- */
822
- mythicKeystoneSeasonIndex: () => {
823
- return {
824
- path: `${base}/mythic-keystone/season/index`,
825
- namespace: "dynamic"
826
- };
827
- }
828
- };
439
+ function mythicKeystoneDungeon(mythicKeystoneDungeonId) {
440
+ return {
441
+ path: `${base}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`,
442
+ namespace: "dynamic"
443
+ };
444
+ }
445
+ function mythicKeystoneDungeonIndex() {
446
+ return {
447
+ path: `${base}/mythic-keystone/dungeon/index`,
448
+ namespace: "dynamic"
449
+ };
450
+ }
451
+ function mythicKeystoneIndex() {
452
+ return {
453
+ path: `${base}/mythic-keystone/index`,
454
+ namespace: "dynamic"
455
+ };
456
+ }
457
+ function mythicKeystonePeriod(mythicKeystonePeriodId) {
458
+ return {
459
+ path: `${base}/mythic-keystone/period/${mythicKeystonePeriodId}`,
460
+ namespace: "dynamic"
461
+ };
462
+ }
463
+ function mythicKeystonePeriodIndex() {
464
+ return {
465
+ path: `${base}/mythic-keystone/period/index`,
466
+ namespace: "dynamic"
467
+ };
468
+ }
469
+ function mythicKeystoneSeason(mythicKeystoneSeasonId) {
470
+ return {
471
+ path: `${base}/mythic-keystone/season/${mythicKeystoneSeasonId}`,
472
+ namespace: "dynamic"
473
+ };
474
+ }
475
+ function mythicKeystoneSeasonIndex() {
476
+ return {
477
+ path: `${base}/mythic-keystone/season/index`,
478
+ namespace: "dynamic"
479
+ };
480
+ }
829
481
 
830
482
  // src/mythic-keystone-leaderboard/mythic-keystone-leaderboard.ts
831
- var mythicKeystoneLeaderboardApi = {
832
- /**
833
- * Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.
834
- * @param connectedRealmId The connected realm ID.
835
- * @param dungeonId The dungeon ID.
836
- * @param period The period ID.
837
- * @returns The Mythic Keystone leaderboard. See {@link MythicKeystoneLeaderboardResponse}.
838
- */
839
- mythicKeystoneLeaderboard: (connectedRealmId, dungeonId, period) => {
840
- return {
841
- path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
842
- namespace: "dynamic"
843
- };
844
- },
845
- /**
846
- * Get a Mythic Keystone leaderboard index by connected realm ID.
847
- * @param connectedRealmId The connected realm ID.
848
- * @returns The Mythic Keystone leaderboard index. See {@link MythicKeystoneLeaderboardIndexResponse}.
849
- */
850
- mythicKeystoneLeaderboardIndex: (connectedRealmId) => {
851
- return {
852
- path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
853
- namespace: "dynamic"
854
- };
855
- }
856
- };
483
+ function mythicKeystoneLeaderboard(connectedRealmId, dungeonId, period) {
484
+ return {
485
+ path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
486
+ namespace: "dynamic"
487
+ };
488
+ }
489
+ function mythicKeystoneLeaderboardIndex(connectedRealmId) {
490
+ return {
491
+ path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
492
+ namespace: "dynamic"
493
+ };
494
+ }
857
495
 
858
496
  // src/mythic-raid-leaderboard/mythic-raid-leaderboard.ts
859
- var mythicRaidLeaderboardApi = {
860
- /**
861
- * Get a Mythic Raid leaderboard by raid and faction.
862
- * @param raid The slug of the raid.
863
- * @param faction The faction. Either 'alliance' or 'horde'.
864
- * @returns The Mythic Raid leaderboard. See {@link MythicRaidLeaderboardResponse}.
865
- */
866
- mythicRaidLeaderboard: (raid, faction) => {
867
- return {
868
- path: `${base}/leaderboard/hall-of-fame/${raid}/${faction}`,
869
- namespace: "dynamic"
870
- };
871
- }
872
- };
497
+ function mythicRaidLeaderboard(raid, faction) {
498
+ return {
499
+ path: `${base}/leaderboard/hall-of-fame/${raid}/${faction}`,
500
+ namespace: "dynamic"
501
+ };
502
+ }
873
503
 
874
504
  // src/pet/pet.ts
875
- var petApi = {
876
- /**
877
- * Get a pet by ID.
878
- * @param petId The pet ID.
879
- * @returns The pet. See {@link PetResponse}.
880
- */
881
- pet: (petId) => {
882
- return {
883
- path: `${base}/pet/${petId}`,
884
- namespace: "static"
885
- };
886
- },
887
- /**
888
- * Get a pet index.
889
- * @returns The pet index. See {@link PetIndexResponse}.
890
- */
891
- petIndex: () => {
892
- return {
893
- path: `${base}/pet/index`,
894
- namespace: "static"
895
- };
896
- },
897
- /**
898
- * Get a pet media by ID.
899
- * @param petId The pet ID.
900
- * @returns The pet media. See {@link PetMediaResponse}.
901
- */
902
- petMedia: (petId) => {
903
- return {
904
- path: `${mediaBase}/pet/${petId}`,
905
- namespace: "static"
906
- };
907
- },
908
- /**
909
- * Get a pet ability by ID.
910
- * @param petAbilityId The pet ability ID.
911
- * @returns The pet ability. See {@link PetAbilityResponse}.
912
- */
913
- petAbility: (petAbilityId) => {
914
- return {
915
- path: `${base}/pet-ability/${petAbilityId}`,
916
- namespace: "static"
917
- };
918
- },
919
- /**
920
- * Get a pet ability index.
921
- * @returns The pet ability index. See {@link PetAbilityIndexResponse}.
922
- */
923
- petAbilityIndex: () => {
924
- return {
925
- path: `${base}/pet-ability/index`,
926
- namespace: "static"
927
- };
928
- },
929
- /**
930
- * Get a pet ability media by ID.
931
- * @param petAbilityId The pet ability ID.
932
- * @returns The pet ability media. See {@link PetAbilityMediaResponse}.
933
- */
934
- petAbilityMedia: (petAbilityId) => {
935
- return {
936
- path: `${mediaBase}/pet-ability/${petAbilityId}`,
937
- namespace: "static"
938
- };
939
- }
940
- };
505
+ function pet(petId) {
506
+ return {
507
+ path: `${base}/pet/${petId}`,
508
+ namespace: "static"
509
+ };
510
+ }
511
+ function petIndex() {
512
+ return {
513
+ path: `${base}/pet/index`,
514
+ namespace: "static"
515
+ };
516
+ }
517
+ function petMedia(petId) {
518
+ return {
519
+ path: `${mediaBase}/pet/${petId}`,
520
+ namespace: "static"
521
+ };
522
+ }
523
+ function petAbility(petAbilityId) {
524
+ return {
525
+ path: `${base}/pet-ability/${petAbilityId}`,
526
+ namespace: "static"
527
+ };
528
+ }
529
+ function petAbilityIndex() {
530
+ return {
531
+ path: `${base}/pet-ability/index`,
532
+ namespace: "static"
533
+ };
534
+ }
535
+ function petAbilityMedia(petAbilityId) {
536
+ return {
537
+ path: `${mediaBase}/pet-ability/${petAbilityId}`,
538
+ namespace: "static"
539
+ };
540
+ }
941
541
 
942
542
  // src/playable-class/playable-class.ts
943
- var playableClassApi = {
944
- /**
945
- * Get a playable class by ID.
946
- * @param playableClassId The playable class ID.
947
- * @returns The playable class. See {@link PlayableClassResponse}.
948
- */
949
- playableClass: (playableClassId) => {
950
- return {
951
- path: `${base}/playable-class/${playableClassId}`,
952
- namespace: "static"
953
- };
954
- },
955
- /**
956
- * Get a playable class index.
957
- * @returns The playable class index. See {@link PlayableClassIndexResponse}.
958
- */
959
- playableClassIndex: () => {
960
- return {
961
- path: `${base}/playable-class/index`,
962
- namespace: "static"
963
- };
964
- },
965
- /**
966
- * Get playable class media by ID.
967
- * @param playableClassId The playable class ID.
968
- * @returns The playable class media. See {@link PlayableClassMediaResponse}.
969
- */
970
- playableClassMedia: (playableClassId) => {
971
- return {
972
- path: `${mediaBase}/playable-class/${playableClassId}`,
973
- namespace: "static"
974
- };
975
- },
976
- /**
977
- * Get a playable class's PvP talent slots by ID.
978
- * @param playableClassId The playable class ID.
979
- * @returns The playable class's PvP talent slots. See {@link PvpTalentSlotsResponse}.
980
- */
981
- pvpTalentSlots: (playableClassId) => {
982
- return {
983
- path: `${base}/playable-class/${playableClassId}/pvp-talent-slots`,
984
- namespace: "static"
985
- };
986
- }
987
- };
543
+ function playableClass(playableClassId) {
544
+ return {
545
+ path: `${base}/playable-class/${playableClassId}`,
546
+ namespace: "static"
547
+ };
548
+ }
549
+ function playableClassIndex() {
550
+ return {
551
+ path: `${base}/playable-class/index`,
552
+ namespace: "static"
553
+ };
554
+ }
555
+ function playableClassMedia(playableClassId) {
556
+ return {
557
+ path: `${mediaBase}/playable-class/${playableClassId}`,
558
+ namespace: "static"
559
+ };
560
+ }
561
+ function pvpTalentSlots(playableClassId) {
562
+ return {
563
+ path: `${base}/playable-class/${playableClassId}/pvp-talent-slots`,
564
+ namespace: "static"
565
+ };
566
+ }
988
567
 
989
568
  // src/playable-race/playable-race.ts
990
- var playableRaceApi = {
991
- /**
992
- * Get a playable race by ID.
993
- * @param playableRaceId The playable race ID.
994
- * @returns The playable race. See {@link PlayableRaceResponse}.
995
- */
996
- playableRace: (playableRaceId) => {
997
- return {
998
- path: `${base}/playable-race/${playableRaceId}`,
999
- namespace: "static"
1000
- };
1001
- },
1002
- /**
1003
- * Get a playable race index.
1004
- * @returns The playable race index. See {@link PlayableRaceIndexResponse}.
1005
- */
1006
- playableRaceIndex: () => {
1007
- return {
1008
- path: `${base}/playable-race/index`,
1009
- namespace: "static"
1010
- };
1011
- }
1012
- };
569
+ function playableRace(playableRaceId) {
570
+ return {
571
+ path: `${base}/playable-race/${playableRaceId}`,
572
+ namespace: "static"
573
+ };
574
+ }
575
+ function playableRaceIndex() {
576
+ return {
577
+ path: `${base}/playable-race/index`,
578
+ namespace: "static"
579
+ };
580
+ }
1013
581
 
1014
582
  // src/playable-specialization/playable-specialization.ts
1015
- var playableSpecializationApi = {
1016
- /**
1017
- * Get a playable specialization by ID.
1018
- * @param specializationId The playable specialization ID.
1019
- * @returns The playable specialization. See {@link PlayableSpecializationResponse}.
1020
- */
1021
- playableSpecialization: (specializationId) => {
1022
- return {
1023
- path: `${base}/playable-specialization/${specializationId}`,
1024
- namespace: "static"
1025
- };
1026
- },
1027
- /**
1028
- * Get a playable specialization index.
1029
- * @returns The playable specialization index. See {@link PlayableSpecializationIndexResponse}.
1030
- */
1031
- playableSpecializationIndex: () => {
1032
- return {
1033
- path: `${base}/playable-specialization/index`,
1034
- namespace: "static"
1035
- };
1036
- },
1037
- /**
1038
- * Get a playable specialization media by ID.
1039
- * @param specializationId The playable specialization ID.
1040
- * @returns The playable specialization media. See {@link PlayableSpecializationMediaResponse}.
1041
- */
1042
- playableSpecializationMedia: (specializationId) => {
1043
- return {
1044
- path: `${mediaBase}/playable-specialization/${specializationId}`,
1045
- namespace: "static"
1046
- };
1047
- }
1048
- };
583
+ function playableSpecialization(specializationId) {
584
+ return {
585
+ path: `${base}/playable-specialization/${specializationId}`,
586
+ namespace: "static"
587
+ };
588
+ }
589
+ function playableSpecializationIndex() {
590
+ return {
591
+ path: `${base}/playable-specialization/index`,
592
+ namespace: "static"
593
+ };
594
+ }
595
+ function playableSpecializationMedia(specializationId) {
596
+ return {
597
+ path: `${mediaBase}/playable-specialization/${specializationId}`,
598
+ namespace: "static"
599
+ };
600
+ }
1049
601
 
1050
602
  // src/power-type/power-type.ts
1051
- var powerTypeApi = {
1052
- /**
1053
- * Get a power type by ID.
1054
- * @param powerTypeId The power type ID.
1055
- * @returns The power type. See {@link PowerTypeResponse}.
1056
- */
1057
- powerType: (powerTypeId) => {
1058
- return {
1059
- path: `${base}/power-type/${powerTypeId}`,
1060
- namespace: "static"
1061
- };
1062
- },
1063
- /**
1064
- * Get a power type index.
1065
- * @returns The power type index. See {@link PowerTypeIndexResponse}.
1066
- */
1067
- powerTypeIndex: () => {
1068
- return {
1069
- path: `${base}/power-type/index`,
1070
- namespace: "static"
1071
- };
1072
- }
1073
- };
603
+ function powerType(powerTypeId) {
604
+ return {
605
+ path: `${base}/power-type/${powerTypeId}`,
606
+ namespace: "static"
607
+ };
608
+ }
609
+ function powerTypeIndex() {
610
+ return {
611
+ path: `${base}/power-type/index`,
612
+ namespace: "static"
613
+ };
614
+ }
1074
615
 
1075
616
  // src/profession/profession.ts
1076
- var professionApi = {
1077
- /**
1078
- * Get a profession by ID.
1079
- * @param professionId The profession ID.
1080
- * @returns The profession. See {@link ProfessionResponse}.
1081
- */
1082
- profession: (professionId) => {
1083
- return {
1084
- path: `${base}/profession/${professionId}`,
1085
- namespace: "static"
1086
- };
1087
- },
1088
- /**
1089
- * Get a profession index.
1090
- * @returns The profession index. See {@link ProfessionIndexResponse}.
1091
- */
1092
- professionIndex: () => {
1093
- return {
1094
- path: `${base}/profession/index`,
1095
- namespace: "static"
1096
- };
1097
- },
1098
- /**
1099
- * Get profession media by ID.
1100
- * @param professionId The profession ID.
1101
- * @returns The profession media. See {@link ProfessionMediaResponse}.
1102
- */
1103
- professionMedia: (professionId) => {
1104
- return {
1105
- path: `${mediaBase}/profession/${professionId}`,
1106
- namespace: "static"
1107
- };
1108
- },
1109
- /**
1110
- * Get a profession's skill tier by ID.
1111
- * @param professionId The profession ID.
1112
- * @param skillTierId The skill tier ID.
1113
- * @returns The profession's skill tier. See {@link ProfessionSkillTierResponse}.
1114
- */
1115
- professionSkillTier: (professionId, skillTierId) => {
1116
- return {
1117
- path: `${base}/profession/${professionId}/skill-tier/${skillTierId}`,
1118
- namespace: "static"
1119
- };
1120
- },
1121
- /**
1122
- * Get a recipe by ID.
1123
- * @param recipeId The recipe ID.
1124
- * @returns The recipe. See {@link RecipeResponse}.
1125
- */
1126
- recipe: (recipeId) => {
1127
- return {
1128
- path: `${base}/recipe/${recipeId}`,
1129
- namespace: "static"
1130
- };
1131
- },
1132
- /**
1133
- * Get recipe media by ID.
1134
- * @param recipeId The recipe ID.
1135
- * @returns The recipe media. See {@link RecipeMediaResponse}.
1136
- */
1137
- recipeMedia: (recipeId) => {
1138
- return {
1139
- path: `${mediaBase}/recipe/${recipeId}`,
1140
- namespace: "static"
1141
- };
1142
- }
1143
- };
617
+ function profession(professionId) {
618
+ return {
619
+ path: `${base}/profession/${professionId}`,
620
+ namespace: "static"
621
+ };
622
+ }
623
+ function professionIndex() {
624
+ return {
625
+ path: `${base}/profession/index`,
626
+ namespace: "static"
627
+ };
628
+ }
629
+ function professionMedia(professionId) {
630
+ return {
631
+ path: `${mediaBase}/profession/${professionId}`,
632
+ namespace: "static"
633
+ };
634
+ }
635
+ function professionSkillTier(professionId, skillTierId) {
636
+ return {
637
+ path: `${base}/profession/${professionId}/skill-tier/${skillTierId}`,
638
+ namespace: "static"
639
+ };
640
+ }
641
+ function recipe(recipeId) {
642
+ return {
643
+ path: `${base}/recipe/${recipeId}`,
644
+ namespace: "static"
645
+ };
646
+ }
647
+ function recipeMedia(recipeId) {
648
+ return {
649
+ path: `${mediaBase}/recipe/${recipeId}`,
650
+ namespace: "static"
651
+ };
652
+ }
1144
653
 
1145
654
  // src/pvp-season/pvp-season.ts
1146
- var pvpSeasonApi = {
1147
- /**
1148
- * Get a PvP leaderboard by PvP season ID and bracket.
1149
- * @param pvpSeasonId The PvP season ID.
1150
- * @param bracket The PvP bracket.
1151
- * @returns The PvP leaderboard. See {@link PvpLeaderboardResponse}.
1152
- */
1153
- pvpLeaderboard: (pvpSeasonId, bracket) => {
1154
- return {
1155
- path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${bracket}`,
1156
- namespace: "dynamic"
1157
- };
1158
- },
1159
- /**
1160
- * Get a PvP leaderboard index by PvP season ID.
1161
- * @param pvpSeasonId The PvP season ID.
1162
- * @returns The PvP leaderboard index. See {@link PvpLeaderboardIndexResponse}.
1163
- */
1164
- pvpLeaderboardIndex: (pvpSeasonId) => {
1165
- return {
1166
- path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
1167
- namespace: "dynamic"
1168
- };
1169
- },
1170
- /**
1171
- * Get a PvP reward index by PvP season ID.
1172
- * @param pvpSeasonId The PvP season ID.
1173
- * @returns The PvP reward index. See {@link PvpRewardsIndexResponse}.
1174
- */
1175
- pvpRewardsIndex: (pvpSeasonId) => {
1176
- return {
1177
- path: `${base}/pvp-season/${pvpSeasonId}/pvp-reward/index`,
1178
- namespace: "dynamic"
1179
- };
1180
- },
1181
- /**
1182
- * Get a PvP season by ID.
1183
- * @param pvpSeasonId The PvP season ID.
1184
- * @returns The PvP season. See {@link PvpSeasonResponse}.
1185
- */
1186
- pvpSeason: (pvpSeasonId) => {
1187
- return {
1188
- path: `${base}/pvp-season/${pvpSeasonId}`,
1189
- namespace: "dynamic"
1190
- };
1191
- },
1192
- /**
1193
- * Get a PvP season index.
1194
- * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
1195
- */
1196
- pvpSeasonIndex: () => {
1197
- return {
1198
- path: `${base}/pvp-season/index`,
1199
- namespace: "dynamic"
1200
- };
1201
- }
1202
- };
655
+ function pvpLeaderboard(pvpSeasonId, bracket) {
656
+ return {
657
+ path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${bracket}`,
658
+ namespace: "dynamic"
659
+ };
660
+ }
661
+ function pvpLeaderboardIndex(pvpSeasonId) {
662
+ return {
663
+ path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
664
+ namespace: "dynamic"
665
+ };
666
+ }
667
+ function pvpRewardsIndex(pvpSeasonId) {
668
+ return {
669
+ path: `${base}/pvp-season/${pvpSeasonId}/pvp-reward/index`,
670
+ namespace: "dynamic"
671
+ };
672
+ }
673
+ function pvpSeason(pvpSeasonId) {
674
+ return {
675
+ path: `${base}/pvp-season/${pvpSeasonId}`,
676
+ namespace: "dynamic"
677
+ };
678
+ }
679
+ function pvpSeasonIndex() {
680
+ return {
681
+ path: `${base}/pvp-season/index`,
682
+ namespace: "dynamic"
683
+ };
684
+ }
1203
685
 
1204
686
  // src/pvp-tier/pvp-tier.ts
1205
- var pvpTierApi = {
1206
- /**
1207
- * Get a PvP tier by ID.
1208
- * @param pvpTierId The PvP tier ID.
1209
- * @returns The PvP tier. See {@link PvpTierResponse}.
1210
- */
1211
- pvpTier: (pvpTierId) => {
1212
- return {
1213
- path: `${base}/pvp-tier/${pvpTierId}`,
1214
- namespace: "static"
1215
- };
1216
- },
1217
- /**
1218
- * Get a PvP tier index.
1219
- * @returns The PvP tier index. See {@link PvpTierIndexResponse}.
1220
- */
1221
- pvpTierIndex: () => {
1222
- return {
1223
- path: `${base}/pvp-tier/index`,
1224
- namespace: "static"
1225
- };
1226
- },
1227
- /**
1228
- * Get PvP tier media by ID.
1229
- * @param pvpTierId The PvP tier ID.
1230
- * @returns The PvP tier media. See {@link PvpTierMediaResponse}.
1231
- */
1232
- pvpTierMedia: (pvpTierId) => {
1233
- return {
1234
- path: `${mediaBase}/pvp-tier/${pvpTierId}`,
1235
- namespace: "static"
1236
- };
1237
- }
1238
- };
687
+ function pvpTier(pvpTierId) {
688
+ return {
689
+ path: `${base}/pvp-tier/${pvpTierId}`,
690
+ namespace: "static"
691
+ };
692
+ }
693
+ function pvpTierIndex() {
694
+ return {
695
+ path: `${base}/pvp-tier/index`,
696
+ namespace: "static"
697
+ };
698
+ }
699
+ function pvpTierMedia(pvpTierId) {
700
+ return {
701
+ path: `${mediaBase}/pvp-tier/${pvpTierId}`,
702
+ namespace: "static"
703
+ };
704
+ }
1239
705
 
1240
706
  // src/quest/quest.ts
1241
- var questApi = {
1242
- /**
1243
- * Get a quest by ID.
1244
- * @param questId The quest ID.
1245
- * @returns The quest. See {@link QuestResponse}.
1246
- */
1247
- quest: (questId) => {
1248
- return {
1249
- path: `${base}/quest/${questId}`,
1250
- namespace: "static"
1251
- };
1252
- },
1253
- /**
1254
- * Get a quest index.
1255
- * @returns The quest index. See {@link QuestIndexResponse}.
1256
- */
1257
- questIndex: () => {
1258
- return {
1259
- path: `${base}/quest/index`,
1260
- namespace: "static"
1261
- };
1262
- },
1263
- /**
1264
- * Get a quest area by ID.
1265
- * @param questAreaId The quest area ID.
1266
- * @returns The quest area. See {@link QuestAreaResponse}.
1267
- */
1268
- questArea: (questAreaId) => {
1269
- return {
1270
- path: `${base}/quest/area/${questAreaId}`,
1271
- namespace: "static"
1272
- };
1273
- },
1274
- /**
1275
- * Get a quest area index.
1276
- * @returns The quest area index. See {@link QuestAreaIndexResponse}.
1277
- */
1278
- questAreaIndex: () => {
1279
- return {
1280
- path: `${base}/quest/area/index`,
1281
- namespace: "static"
1282
- };
1283
- },
1284
- /**
1285
- * Get a quest category by ID.
1286
- * @param questCategoryId The quest category ID.
1287
- * @returns The quest category. See {@link QuestCategoryResponse}.
1288
- */
1289
- questCategory: (questCategoryId) => {
1290
- return {
1291
- path: `${base}/quest/category/${questCategoryId}`,
1292
- namespace: "static"
1293
- };
1294
- },
1295
- /**
1296
- * Get a quest category index.
1297
- * @returns The quest category index. See {@link QuestCategoryIndexResponse}.
1298
- */
1299
- questCategoryIndex: () => {
1300
- return {
1301
- path: `${base}/quest/category/index`,
1302
- namespace: "static"
1303
- };
1304
- },
1305
- /**
1306
- * Get a quest type by ID.
1307
- * @param questTypeId The quest type ID.
1308
- * @returns The quest type. See {@link QuestTypeResponse}.
1309
- */
1310
- questType: (questTypeId) => {
1311
- return {
1312
- path: `${base}/quest/type/${questTypeId}`,
1313
- namespace: "static"
1314
- };
1315
- },
1316
- /**
1317
- * Get a quest type index.
1318
- * @returns The quest type index. See {@link QuestTypeIndexResponse}.
1319
- */
1320
- questTypeIndex: () => {
1321
- return {
1322
- path: `${base}/quest/type/index`,
1323
- namespace: "static"
1324
- };
1325
- }
1326
- };
707
+ function quest(questId) {
708
+ return {
709
+ path: `${base}/quest/${questId}`,
710
+ namespace: "static"
711
+ };
712
+ }
713
+ function questIndex() {
714
+ return {
715
+ path: `${base}/quest/index`,
716
+ namespace: "static"
717
+ };
718
+ }
719
+ function questArea(questAreaId) {
720
+ return {
721
+ path: `${base}/quest/area/${questAreaId}`,
722
+ namespace: "static"
723
+ };
724
+ }
725
+ function questAreaIndex() {
726
+ return {
727
+ path: `${base}/quest/area/index`,
728
+ namespace: "static"
729
+ };
730
+ }
731
+ function questCategory(questCategoryId) {
732
+ return {
733
+ path: `${base}/quest/category/${questCategoryId}`,
734
+ namespace: "static"
735
+ };
736
+ }
737
+ function questCategoryIndex() {
738
+ return {
739
+ path: `${base}/quest/category/index`,
740
+ namespace: "static"
741
+ };
742
+ }
743
+ function questType(questTypeId) {
744
+ return {
745
+ path: `${base}/quest/type/${questTypeId}`,
746
+ namespace: "static"
747
+ };
748
+ }
749
+ function questTypeIndex() {
750
+ return {
751
+ path: `${base}/quest/type/index`,
752
+ namespace: "static"
753
+ };
754
+ }
1327
755
 
1328
756
  // src/realm/realm.ts
1329
- var realmApi = {
1330
- /**
1331
- * Get a realm by slug.
1332
- * @param realmSlug The realm slug.
1333
- * @returns The realm. See {@link RealmResponse}.
1334
- */
1335
- realm: (realmSlug) => {
1336
- return {
1337
- path: `${base}/realm/${realmSlug}`,
1338
- namespace: "dynamic"
1339
- };
1340
- },
1341
- /**
1342
- * Get a realm index.
1343
- * @returns The realm index. See {@link RealmIndexResponse}.
1344
- */
1345
- realmIndex: () => {
1346
- return {
1347
- path: `${base}/realm/index`,
1348
- namespace: "dynamic"
1349
- };
1350
- },
1351
- /**
1352
- * Search for realms.
1353
- * @param options The search parameters. See {@link RealmSearchParameters}.
1354
- * @returns The search results. See {@link SearchResponse}.
1355
- */
1356
- realmSearch: (options) => {
1357
- return {
1358
- namespace: "dynamic",
1359
- parameters: {
1360
- _page: options._page,
1361
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
1362
- timezone: options.timezone
1363
- },
1364
- path: `${searchBase}/realm`
1365
- };
1366
- }
1367
- };
757
+ function realm(realmSlug) {
758
+ return {
759
+ path: `${base}/realm/${realmSlug}`,
760
+ namespace: "dynamic"
761
+ };
762
+ }
763
+ function realmIndex() {
764
+ return {
765
+ path: `${base}/realm/index`,
766
+ namespace: "dynamic"
767
+ };
768
+ }
769
+ function realmSearch(options) {
770
+ return {
771
+ namespace: "dynamic",
772
+ parameters: {
773
+ _page: options._page,
774
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
775
+ timezone: options.timezone
776
+ },
777
+ path: `${searchBase}/realm`
778
+ };
779
+ }
1368
780
 
1369
781
  // src/region/region.ts
1370
- var regionApi = {
1371
- /**
1372
- * Get a region by ID.
1373
- * @param regionId The region ID.
1374
- * @returns The region. See {@link RegionResponse}.
1375
- */
1376
- region: (regionId) => {
1377
- return {
1378
- path: `${base}/region/${regionId}`,
1379
- namespace: "dynamic"
1380
- };
1381
- },
1382
- /**
1383
- * Get a region index.
1384
- * @returns The region index. See {@link RegionIndexResponse}.
1385
- */
1386
- regionIndex: () => {
1387
- return {
1388
- path: `${base}/region/index`,
1389
- namespace: "dynamic"
1390
- };
1391
- }
1392
- };
782
+ function region(regionId) {
783
+ return {
784
+ path: `${base}/region/${regionId}`,
785
+ namespace: "dynamic"
786
+ };
787
+ }
788
+ function regionIndex() {
789
+ return {
790
+ path: `${base}/region/index`,
791
+ namespace: "dynamic"
792
+ };
793
+ }
1393
794
 
1394
795
  // src/reputations/reputations.ts
1395
- var reputationApi = {
1396
- /**
1397
- * Get a reputation faction by ID.
1398
- * @param reputationFactionId The reputation faction ID.
1399
- * @returns The reputation faction. See {@link ReputationFactionResponse}.
1400
- */
1401
- reputationFaction: (reputationFactionId) => {
1402
- return {
1403
- path: `${base}/reputation-faction/${reputationFactionId}`,
1404
- namespace: "static"
1405
- };
1406
- },
1407
- /**
1408
- * Get a reputation faction index.
1409
- * @returns The reputation faction index. See {@link ReputationFactionIndexResponse}.
1410
- */
1411
- reputationFactionIndex: () => {
1412
- return {
1413
- path: `${base}/reputation-faction/index`,
1414
- namespace: "static"
1415
- };
1416
- },
1417
- /**
1418
- * Get a reputation tier by ID.
1419
- * @param reputationTiersId The reputation tier ID.
1420
- * @returns The reputation tier. See {@link ReputationTiersResponse}.
1421
- */
1422
- reputationTiers: (reputationTiersId) => {
1423
- return {
1424
- path: `${base}/reputation-tiers/${reputationTiersId}`,
1425
- namespace: "static"
1426
- };
1427
- },
1428
- /**
1429
- * Get a reputation tier index.
1430
- * @returns The reputation tier index. See {@link ReputationTiersIndexResponse}.
1431
- */
1432
- reputationTiersIndex: () => {
1433
- return {
1434
- path: `${base}/reputation-tiers/index`,
1435
- namespace: "static"
1436
- };
1437
- }
1438
- };
796
+ function reputationFaction(reputationFactionId) {
797
+ return {
798
+ path: `${base}/reputation-faction/${reputationFactionId}`,
799
+ namespace: "static"
800
+ };
801
+ }
802
+ function reputationFactionIndex() {
803
+ return {
804
+ path: `${base}/reputation-faction/index`,
805
+ namespace: "static"
806
+ };
807
+ }
808
+ function reputationTiers(reputationTiersId) {
809
+ return {
810
+ path: `${base}/reputation-tiers/${reputationTiersId}`,
811
+ namespace: "static"
812
+ };
813
+ }
814
+ function reputationTiersIndex() {
815
+ return {
816
+ path: `${base}/reputation-tiers/index`,
817
+ namespace: "static"
818
+ };
819
+ }
1439
820
 
1440
821
  // src/spell/spell.ts
1441
- var spellApi = {
1442
- /**
1443
- * Get a spell by ID.
1444
- * @param spellId The spell ID.
1445
- * @returns The spell. See {@link SpellResponse}.
1446
- */
1447
- spell: (spellId) => {
1448
- return {
1449
- path: `${base}/spell/${spellId}`,
1450
- namespace: "static"
1451
- };
1452
- },
1453
- /**
1454
- * Get spell media by ID.
1455
- * @param spellId The spell ID.
1456
- * @returns The spell media. See {@link SpellMediaResponse}.
1457
- */
1458
- spellMedia: (spellId) => {
1459
- return {
1460
- path: `${mediaBase}/spell/${spellId}`,
1461
- namespace: "static"
1462
- };
1463
- },
1464
- /**
1465
- * Get a spell search.
1466
- * @param options The spell search options. See {@link SpellSearchParameters}.
1467
- * @returns The spell search. See {@link SearchResponse}.
1468
- */
1469
- spellSearch: (options) => {
1470
- return {
1471
- namespace: "static",
1472
- parameters: {
1473
- _page: options._page,
1474
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
1475
- [`name.${options.locale}`]: options.name
1476
- },
1477
- path: `${searchBase}/spell`
1478
- };
1479
- }
1480
- };
822
+ function spell(spellId) {
823
+ return {
824
+ path: `${base}/spell/${spellId}`,
825
+ namespace: "static"
826
+ };
827
+ }
828
+ function spellMedia(spellId) {
829
+ return {
830
+ path: `${mediaBase}/spell/${spellId}`,
831
+ namespace: "static"
832
+ };
833
+ }
834
+ function spellSearch(options) {
835
+ return {
836
+ namespace: "static",
837
+ parameters: {
838
+ _page: options._page,
839
+ orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
840
+ [`name.${options.locale}`]: options.name
841
+ },
842
+ path: `${searchBase}/spell`
843
+ };
844
+ }
1481
845
 
1482
846
  // src/talent/talent.ts
1483
- var talentApi = {
1484
- /**
1485
- * Get a PvP talent by ID.
1486
- * @param pvpTalentId The PvP talent ID.
1487
- * @returns The PvP talent. See {@link PvpTalentResponse}.
1488
- */
1489
- pvpTalent: (pvpTalentId) => {
1490
- return {
1491
- path: `${base}/pvp-talent/${pvpTalentId}`,
1492
- namespace: "static"
1493
- };
1494
- },
1495
- /**
1496
- * Get a PvP talent index.
1497
- * @returns The PvP talent index. See {@link PvpTalentIndexResponse}.
1498
- */
1499
- pvpTalentIndex: () => {
1500
- return {
1501
- path: `${base}/pvp-talent/index`,
1502
- namespace: "static"
1503
- };
1504
- },
1505
- /**
1506
- * Get a talent by ID.
1507
- * @param talentId The talent ID.
1508
- * @returns The talent. See {@link TalentResponse}.
1509
- */
1510
- talent: (talentId) => {
1511
- return {
1512
- path: `${base}/talent/${talentId}`,
1513
- namespace: "static"
1514
- };
1515
- },
1516
- /**
1517
- * Get a talent index.
1518
- * @returns The talent index. See {@link TalentIndexResponse}.
1519
- */
1520
- talentIndex: () => {
1521
- return {
1522
- path: `${base}/talent/index`,
1523
- namespace: "static"
1524
- };
1525
- },
1526
- /**
1527
- * Get a talent tree by ID.
1528
- * @param talentTreeId The talent tree ID.
1529
- * @param specId The playable specialization ID.
1530
- * @returns The talent tree. See {@link TalentTreeResponse}.
1531
- */
1532
- talentTree: (talentTreeId, specId) => {
1533
- return {
1534
- path: `${base}/talent-tree/${talentTreeId}/playable-specialization/${specId}`,
1535
- namespace: "static"
1536
- };
1537
- },
1538
- /**
1539
- * Get a talent tree index.
1540
- * @returns The talent tree index. See {@link TalentTreeIndexResponse}.
1541
- */
1542
- talentTreeIndex: () => {
1543
- return {
1544
- path: `${base}/talent-tree/index`,
1545
- namespace: "static"
1546
- };
1547
- },
1548
- /**
1549
- * Get talent tree nodes by talent tree ID.
1550
- * @param talentTreeId The talent tree ID.
1551
- * @returns The talent tree nodes. See {@link TalentTreeNodesResponse}.
1552
- */
1553
- talentTreeNodes: (talentTreeId) => {
1554
- return {
1555
- path: `${base}/talent-tree/${talentTreeId}`,
1556
- namespace: "static"
1557
- };
1558
- }
1559
- };
847
+ function pvpTalent(pvpTalentId) {
848
+ return {
849
+ path: `${base}/pvp-talent/${pvpTalentId}`,
850
+ namespace: "static"
851
+ };
852
+ }
853
+ function pvpTalentIndex() {
854
+ return {
855
+ path: `${base}/pvp-talent/index`,
856
+ namespace: "static"
857
+ };
858
+ }
859
+ function talent(talentId) {
860
+ return {
861
+ path: `${base}/talent/${talentId}`,
862
+ namespace: "static"
863
+ };
864
+ }
865
+ function talentIndex() {
866
+ return {
867
+ path: `${base}/talent/index`,
868
+ namespace: "static"
869
+ };
870
+ }
871
+ function talentTree(talentTreeId, specId) {
872
+ return {
873
+ path: `${base}/talent-tree/${talentTreeId}/playable-specialization/${specId}`,
874
+ namespace: "static"
875
+ };
876
+ }
877
+ function talentTreeIndex() {
878
+ return {
879
+ path: `${base}/talent-tree/index`,
880
+ namespace: "static"
881
+ };
882
+ }
883
+ function talentTreeNodes(talentTreeId) {
884
+ return {
885
+ path: `${base}/talent-tree/${talentTreeId}`,
886
+ namespace: "static"
887
+ };
888
+ }
1560
889
 
1561
890
  // src/tech-talent/tech-talent.ts
1562
- var techTalentApi = {
1563
- /**
1564
- * Get a tech talent by ID.
1565
- * @param techTalentId The tech talent ID.
1566
- * @returns The tech talent. See {@link TechTalentResponse}.
1567
- */
1568
- techTalent: (techTalentId) => {
1569
- return {
1570
- path: `${base}/tech-talent/${techTalentId}`,
1571
- namespace: "static"
1572
- };
1573
- },
1574
- /**
1575
- * Get a tech talent index.
1576
- * @returns The tech talent index. See {@link TechTalentIndexResponse}.
1577
- */
1578
- techTalentIndex: () => {
1579
- return {
1580
- path: `${base}/tech-talent/index`,
1581
- namespace: "static"
1582
- };
1583
- },
1584
- /**
1585
- * Get tech talent media by ID.
1586
- * @param techTalentId The tech talent ID.
1587
- * @returns The tech talent media. See {@link TechTalentMediaResponse}.
1588
- */
1589
- techTalentMedia: (techTalentId) => {
1590
- return {
1591
- path: `${mediaBase}/tech-talent/${techTalentId}`,
1592
- namespace: "static"
1593
- };
1594
- },
1595
- /**
1596
- * Get a tech talent tree by ID.
1597
- * @param techTalentTreeId The tech talent tree ID.
1598
- * @returns The tech talent tree. See {@link TechTalentTreeResponse}.
1599
- */
1600
- techTalentTree: (techTalentTreeId) => {
1601
- return {
1602
- path: `${base}/tech-talent-tree/${techTalentTreeId}`,
1603
- namespace: "static"
1604
- };
1605
- },
1606
- /**
1607
- * Get a tech talent tree index.
1608
- * @returns The tech talent tree index. See {@link TechTalentTreeIndexResponse}.
1609
- */
1610
- techTalentTreeIndex: () => {
1611
- return {
1612
- path: `${base}/tech-talent-tree/index`,
1613
- namespace: "static"
1614
- };
1615
- }
1616
- };
891
+ function techTalent(techTalentId) {
892
+ return {
893
+ path: `${base}/tech-talent/${techTalentId}`,
894
+ namespace: "static"
895
+ };
896
+ }
897
+ function techTalentIndex() {
898
+ return {
899
+ path: `${base}/tech-talent/index`,
900
+ namespace: "static"
901
+ };
902
+ }
903
+ function techTalentMedia(techTalentId) {
904
+ return {
905
+ path: `${mediaBase}/tech-talent/${techTalentId}`,
906
+ namespace: "static"
907
+ };
908
+ }
909
+ function techTalentTree(techTalentTreeId) {
910
+ return {
911
+ path: `${base}/tech-talent-tree/${techTalentTreeId}`,
912
+ namespace: "static"
913
+ };
914
+ }
915
+ function techTalentTreeIndex() {
916
+ return {
917
+ path: `${base}/tech-talent-tree/index`,
918
+ namespace: "static"
919
+ };
920
+ }
1617
921
 
1618
922
  // src/title/title.ts
1619
- var titleApi = {
1620
- /**
1621
- * Get a title by ID.
1622
- * @param titleId The title ID.
1623
- * @returns The title. See {@link TitleResponse}.
1624
- */
1625
- title: (titleId) => {
1626
- return {
1627
- path: `${base}/title/${titleId}`,
1628
- namespace: "static"
1629
- };
1630
- },
1631
- /**
1632
- * Get a title index.
1633
- * @returns The title index. See {@link TitleIndexResponse}.
1634
- */
1635
- titleIndex: () => {
1636
- return {
1637
- path: `${base}/title/index`,
1638
- namespace: "static"
1639
- };
1640
- }
1641
- };
923
+ function title(titleId) {
924
+ return {
925
+ path: `${base}/title/${titleId}`,
926
+ namespace: "static"
927
+ };
928
+ }
929
+ function titleIndex() {
930
+ return {
931
+ path: `${base}/title/index`,
932
+ namespace: "static"
933
+ };
934
+ }
1642
935
 
1643
936
  // src/toy/toy.ts
1644
- var toyApi = {
1645
- /**
1646
- * Get a toy by ID.
1647
- * @param toyId The toy ID.
1648
- * @returns The toy. See {@link ToyResponse}.
1649
- */
1650
- toy: (toyId) => {
1651
- return {
1652
- path: `${base}/toy/${toyId}`,
1653
- namespace: "static"
1654
- };
1655
- },
1656
- /**
1657
- * Get a toy index.
1658
- * @returns The toy index. See {@link ToyIndexResponse}.
1659
- */
1660
- toyIndex: () => {
1661
- return {
1662
- path: `${base}/toy/index`,
1663
- namespace: "static"
1664
- };
1665
- }
1666
- };
937
+ function toy(toyId) {
938
+ return {
939
+ path: `${base}/toy/${toyId}`,
940
+ namespace: "static"
941
+ };
942
+ }
943
+ function toyIndex() {
944
+ return {
945
+ path: `${base}/toy/index`,
946
+ namespace: "static"
947
+ };
948
+ }
1667
949
 
1668
950
  // src/wow-token/wow-token.ts
1669
- var wowTokenApi = {
1670
- /**
1671
- * Get the current WoW token price.
1672
- * @returns The WoW token price. See {@link WowTokenResponse}.
1673
- */
1674
- wowToken: () => {
1675
- return {
1676
- path: `${base}/token/index`,
1677
- namespace: "dynamic"
1678
- };
1679
- }
1680
- };
951
+ function wowToken() {
952
+ return {
953
+ path: `${base}/token/index`,
954
+ namespace: "dynamic"
955
+ };
956
+ }
1681
957
 
1682
958
  // src/index.ts
1683
959
  var wow = {
1684
- ...achievementApi,
1685
- ...auctionHouseApi,
1686
- ...azeriteEssenceApi,
1687
- ...connectedRealmApi,
1688
- ...covenantApi,
1689
- ...creatureApi,
1690
- ...guildCrestApi,
1691
- ...heirloomApi,
1692
- ...itemApi,
1693
- ...journalApi,
1694
- ...mediaSearchApi,
1695
- ...modifiedCraftingApi,
1696
- ...mountApi,
1697
- ...mythicKeystoneAffixApi,
1698
- ...mythicKeystoneDungeonApi,
1699
- ...mythicKeystoneLeaderboardApi,
1700
- ...mythicRaidLeaderboardApi,
1701
- ...petApi,
1702
- ...playableClassApi,
1703
- ...playableRaceApi,
1704
- ...playableSpecializationApi,
1705
- ...powerTypeApi,
1706
- ...professionApi,
1707
- ...pvpSeasonApi,
1708
- ...pvpTierApi,
1709
- ...questApi,
1710
- ...realmApi,
1711
- ...regionApi,
1712
- ...reputationApi,
1713
- ...spellApi,
1714
- ...talentApi,
1715
- ...techTalentApi,
1716
- ...titleApi,
1717
- ...toyApi,
1718
- ...wowTokenApi
960
+ //Achievements
961
+ achievement,
962
+ achievementCategory,
963
+ achievementCategoryIndex,
964
+ achievementIndex,
965
+ achievementMedia,
966
+ //Auction House
967
+ auctions,
968
+ commodities,
969
+ //Azerite Essence
970
+ azeriteEssence,
971
+ azeriteEssenceIndex,
972
+ azeriteEssenceMedia,
973
+ azeriteEssenceSearch,
974
+ //Connected Realm
975
+ connectedRealm,
976
+ connectedRealmIndex,
977
+ connectedRealmSearch,
978
+ //Covenant
979
+ conduit,
980
+ conduitIndex,
981
+ covenant,
982
+ covenantIndex,
983
+ covenantMedia,
984
+ soulbind,
985
+ soulbindIndex,
986
+ //Creature
987
+ creature,
988
+ creatureDisplayMedia,
989
+ creatureFamily,
990
+ creatureFamilyIndex,
991
+ creatureFamilyMedia,
992
+ creatureType,
993
+ creatureTypeIndex,
994
+ creatureSearch,
995
+ //Guild Crest
996
+ guildCrestComponentsIndex,
997
+ guildCrestBorder,
998
+ guildCrestEmblem,
999
+ //Heirloom
1000
+ heirloom,
1001
+ heirloomIndex,
1002
+ //Item
1003
+ item,
1004
+ itemClass,
1005
+ itemSubClass,
1006
+ itemClassIndex,
1007
+ itemMedia,
1008
+ itemSet,
1009
+ itemSetIndex,
1010
+ itemSearch,
1011
+ //Journal
1012
+ journalEncounter,
1013
+ journalEncounterIndex,
1014
+ journalEncounterSearch,
1015
+ journalExpansion,
1016
+ journalExpansionIndex,
1017
+ journalInstance,
1018
+ journalInstanceIndex,
1019
+ journalInstanceMedia,
1020
+ //Media Search
1021
+ mediaSearch,
1022
+ //Modified Crafting
1023
+ modifiedCraftingCategory,
1024
+ modifiedCraftingCategoryIndex,
1025
+ modifiedCraftingIndex,
1026
+ modifiedCraftingReagentSlotType,
1027
+ modifiedCraftingReagentSlotTypeIndex,
1028
+ //Mount
1029
+ mount,
1030
+ mountIndex,
1031
+ mountSearch,
1032
+ //Mythic Keystone Affix
1033
+ mythicKeystoneAffix,
1034
+ mythicKeystoneAffixIndex,
1035
+ mythicKeystoneAffixMedia,
1036
+ //Mythic Keystone Dungeon
1037
+ mythicKeystoneDungeon,
1038
+ mythicKeystoneDungeonIndex,
1039
+ mythicKeystoneIndex,
1040
+ mythicKeystonePeriod,
1041
+ mythicKeystonePeriodIndex,
1042
+ mythicKeystoneSeason,
1043
+ mythicKeystoneSeasonIndex,
1044
+ //Mythic Keystone Leaderboard
1045
+ mythicKeystoneLeaderboard,
1046
+ mythicKeystoneLeaderboardIndex,
1047
+ //Mythic Raid Leaderboard
1048
+ mythicRaidLeaderboard,
1049
+ //Pet
1050
+ pet,
1051
+ petIndex,
1052
+ petMedia,
1053
+ petAbility,
1054
+ petAbilityIndex,
1055
+ petAbilityMedia,
1056
+ //Playable Class
1057
+ playableClass,
1058
+ playableClassIndex,
1059
+ playableClassMedia,
1060
+ pvpTalentSlots,
1061
+ //Playable
1062
+ playableRace,
1063
+ playableRaceIndex,
1064
+ //Playable Specialization
1065
+ playableSpecialization,
1066
+ playableSpecializationIndex,
1067
+ playableSpecializationMedia,
1068
+ //Power Type
1069
+ powerType,
1070
+ powerTypeIndex,
1071
+ //Profession
1072
+ profession,
1073
+ professionIndex,
1074
+ professionMedia,
1075
+ professionSkillTier,
1076
+ recipe,
1077
+ recipeMedia,
1078
+ //Pvp Season
1079
+ pvpLeaderboard,
1080
+ pvpLeaderboardIndex,
1081
+ pvpRewardsIndex,
1082
+ pvpSeason,
1083
+ pvpSeasonIndex,
1084
+ //Pvp Tier
1085
+ pvpTier,
1086
+ pvpTierIndex,
1087
+ pvpTierMedia,
1088
+ //Quest
1089
+ quest,
1090
+ questIndex,
1091
+ questArea,
1092
+ questAreaIndex,
1093
+ questCategory,
1094
+ questCategoryIndex,
1095
+ questType,
1096
+ questTypeIndex,
1097
+ //Realm
1098
+ realm,
1099
+ realmIndex,
1100
+ realmSearch,
1101
+ //Region
1102
+ region,
1103
+ regionIndex,
1104
+ //Reputations
1105
+ reputationFaction,
1106
+ reputationFactionIndex,
1107
+ reputationTiers,
1108
+ reputationTiersIndex,
1109
+ //Spell
1110
+ spell,
1111
+ spellMedia,
1112
+ spellSearch,
1113
+ //Talent
1114
+ pvpTalent,
1115
+ pvpTalentIndex,
1116
+ talentIndex,
1117
+ talentTree,
1118
+ talentTreeIndex,
1119
+ talentTreeNodes,
1120
+ //Tech Talent
1121
+ techTalent,
1122
+ techTalentIndex,
1123
+ techTalentMedia,
1124
+ techTalentTree,
1125
+ techTalentTreeIndex,
1126
+ //Title
1127
+ title,
1128
+ titleIndex,
1129
+ //Toy
1130
+ toy,
1131
+ toyIndex,
1132
+ //WoW Token
1133
+ wowToken
1719
1134
  };
1720
1135
  export {
1721
- wow
1136
+ achievement,
1137
+ achievementCategory,
1138
+ achievementCategoryIndex,
1139
+ achievementIndex,
1140
+ achievementMedia,
1141
+ auctions,
1142
+ azeriteEssence,
1143
+ azeriteEssenceIndex,
1144
+ azeriteEssenceMedia,
1145
+ azeriteEssenceSearch,
1146
+ commodities,
1147
+ conduit,
1148
+ conduitIndex,
1149
+ connectedRealm,
1150
+ connectedRealmIndex,
1151
+ connectedRealmSearch,
1152
+ covenant,
1153
+ covenantIndex,
1154
+ covenantMedia,
1155
+ creature,
1156
+ creatureDisplayMedia,
1157
+ creatureFamily,
1158
+ creatureFamilyIndex,
1159
+ creatureFamilyMedia,
1160
+ creatureSearch,
1161
+ creatureType,
1162
+ creatureTypeIndex,
1163
+ guildCrestBorder,
1164
+ guildCrestComponentsIndex,
1165
+ guildCrestEmblem,
1166
+ heirloom,
1167
+ heirloomIndex,
1168
+ item,
1169
+ itemClass,
1170
+ itemClassIndex,
1171
+ itemMedia,
1172
+ itemSearch,
1173
+ itemSet,
1174
+ itemSetIndex,
1175
+ itemSubClass,
1176
+ journalEncounter,
1177
+ journalEncounterIndex,
1178
+ journalEncounterSearch,
1179
+ journalExpansion,
1180
+ journalExpansionIndex,
1181
+ journalInstance,
1182
+ journalInstanceIndex,
1183
+ journalInstanceMedia,
1184
+ mediaSearch,
1185
+ modifiedCraftingCategory,
1186
+ modifiedCraftingCategoryIndex,
1187
+ modifiedCraftingIndex,
1188
+ modifiedCraftingReagentSlotType,
1189
+ modifiedCraftingReagentSlotTypeIndex,
1190
+ mount,
1191
+ mountIndex,
1192
+ mountSearch,
1193
+ mythicKeystoneAffix,
1194
+ mythicKeystoneAffixIndex,
1195
+ mythicKeystoneAffixMedia,
1196
+ mythicKeystoneDungeon,
1197
+ mythicKeystoneDungeonIndex,
1198
+ mythicKeystoneIndex,
1199
+ mythicKeystoneLeaderboard,
1200
+ mythicKeystoneLeaderboardIndex,
1201
+ mythicKeystonePeriod,
1202
+ mythicKeystonePeriodIndex,
1203
+ mythicKeystoneSeason,
1204
+ mythicKeystoneSeasonIndex,
1205
+ mythicRaidLeaderboard,
1206
+ pet,
1207
+ petAbility,
1208
+ petAbilityIndex,
1209
+ petAbilityMedia,
1210
+ petIndex,
1211
+ petMedia,
1212
+ playableClass,
1213
+ playableClassIndex,
1214
+ playableClassMedia,
1215
+ playableRace,
1216
+ playableRaceIndex,
1217
+ playableSpecialization,
1218
+ playableSpecializationIndex,
1219
+ playableSpecializationMedia,
1220
+ powerType,
1221
+ powerTypeIndex,
1222
+ profession,
1223
+ professionIndex,
1224
+ professionMedia,
1225
+ professionSkillTier,
1226
+ pvpLeaderboard,
1227
+ pvpLeaderboardIndex,
1228
+ pvpRewardsIndex,
1229
+ pvpSeason,
1230
+ pvpSeasonIndex,
1231
+ pvpTalent,
1232
+ pvpTalentIndex,
1233
+ pvpTalentSlots,
1234
+ pvpTier,
1235
+ pvpTierIndex,
1236
+ pvpTierMedia,
1237
+ quest,
1238
+ questArea,
1239
+ questAreaIndex,
1240
+ questCategory,
1241
+ questCategoryIndex,
1242
+ questIndex,
1243
+ questType,
1244
+ questTypeIndex,
1245
+ realm,
1246
+ realmIndex,
1247
+ realmSearch,
1248
+ recipe,
1249
+ recipeMedia,
1250
+ region,
1251
+ regionIndex,
1252
+ reputationFaction,
1253
+ reputationFactionIndex,
1254
+ reputationTiers,
1255
+ reputationTiersIndex,
1256
+ soulbind,
1257
+ soulbindIndex,
1258
+ spell,
1259
+ spellMedia,
1260
+ spellSearch,
1261
+ talent,
1262
+ talentIndex,
1263
+ talentTree,
1264
+ talentTreeIndex,
1265
+ talentTreeNodes,
1266
+ techTalent,
1267
+ techTalentIndex,
1268
+ techTalentMedia,
1269
+ techTalentTree,
1270
+ techTalentTreeIndex,
1271
+ title,
1272
+ titleIndex,
1273
+ toy,
1274
+ toyIndex,
1275
+ wow,
1276
+ wowToken
1722
1277
  };
1723
1278
  //# sourceMappingURL=index.js.map