guildwars2-ts 1.2.3 → 1.3.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
@@ -4119,21 +4119,25 @@ var endpoints = {
4119
4119
  path: "v2/account/gliders",
4120
4120
  tokenRequired: true
4121
4121
  },
4122
- homeCats: {
4123
- path: "v2/account/home/cats",
4124
- tokenRequired: true
4125
- },
4126
- homeNodes: {
4127
- path: "v2/account/home/nodes",
4128
- tokenRequired: true
4129
- },
4130
- homesteadDecorations: {
4131
- path: "v2/account/homestead/decorations",
4132
- tokenRequired: true
4122
+ home: {
4123
+ cats: {
4124
+ path: "v2/account/home/cats",
4125
+ tokenRequired: true
4126
+ },
4127
+ nodes: {
4128
+ path: "v2/account/home/nodes",
4129
+ tokenRequired: true
4130
+ }
4133
4131
  },
4134
- homesteadGlyphs: {
4135
- path: "v2/account/homestead/glyphs",
4136
- tokenRequired: true
4132
+ homestead: {
4133
+ decorations: {
4134
+ path: "v2/account/homestead/decorations",
4135
+ tokenRequired: true
4136
+ },
4137
+ glyphs: {
4138
+ path: "v2/account/homestead/glyphs",
4139
+ tokenRequired: true
4140
+ }
4137
4141
  },
4138
4142
  inventory: {
4139
4143
  path: "v2/account/inventory",
@@ -4175,13 +4179,15 @@ var endpoints = {
4175
4179
  path: "v2/account/minis",
4176
4180
  tokenRequired: true
4177
4181
  },
4178
- mountsSkins: {
4179
- path: "v2/account/mounts/skins",
4180
- tokenRequired: true
4181
- },
4182
- mountsTypes: {
4183
- path: "v2/account/mounts/types",
4184
- tokenRequired: true
4182
+ mounts: {
4183
+ skins: {
4184
+ path: "v2/account/mounts/skins",
4185
+ tokenRequired: true
4186
+ },
4187
+ types: {
4188
+ path: "v2/account/mounts/types",
4189
+ tokenRequired: true
4190
+ }
4185
4191
  },
4186
4192
  novelties: {
4187
4193
  path: "v2/account/novelties",
@@ -4223,21 +4229,23 @@ var endpoints = {
4223
4229
  path: "v2/account/wallet",
4224
4230
  tokenRequired: true
4225
4231
  },
4226
- wizardsVaultDaily: {
4227
- path: "v2/account/wizardsvault/daily",
4228
- tokenRequired: true
4229
- },
4230
- wizardsVaultListings: {
4231
- path: "v2/account/wizardsvault/listings",
4232
- tokenRequired: true
4233
- },
4234
- wizardsVaultSpecial: {
4235
- path: "v2/account/wizardsvault/special",
4236
- tokenRequired: true
4237
- },
4238
- wizardsVaultWeekly: {
4239
- path: "v2/account/wizardsvault/weekly",
4240
- tokenRequired: true
4232
+ wizardsVault: {
4233
+ daily: {
4234
+ path: "v2/account/wizardsvault/daily",
4235
+ tokenRequired: true
4236
+ },
4237
+ listings: {
4238
+ path: "v2/account/wizardsvault/listings",
4239
+ tokenRequired: true
4240
+ },
4241
+ special: {
4242
+ path: "v2/account/wizardsvault/special",
4243
+ tokenRequired: true
4244
+ },
4245
+ weekly: {
4246
+ path: "v2/account/wizardsvault/weekly",
4247
+ tokenRequired: true
4248
+ }
4241
4249
  },
4242
4250
  worldBosses: {
4243
4251
  path: "v2/account/worldbosses",
@@ -4245,39 +4253,47 @@ var endpoints = {
4245
4253
  }
4246
4254
  },
4247
4255
  achievements: {
4248
- categoryIds: {
4249
- path: "v2/achievements/categories",
4250
- tokenRequired: false
4251
- },
4252
4256
  categories: {
4253
- path: "v2/achievements/categories?ids=$(ids)",
4254
- tokenRequired: false
4255
- },
4256
- groupsAll: {
4257
- path: "v2/achievements/groups",
4258
- tokenRequired: false
4257
+ all: {
4258
+ path: "v2/achievements/categories",
4259
+ tokenRequired: false
4260
+ },
4261
+ byId: {
4262
+ path: "v2/achievements/categories?ids=$(ids)",
4263
+ tokenRequired: false
4264
+ }
4259
4265
  },
4260
- groupsById: {
4261
- path: "v2/achievements/groups/$(id)",
4262
- tokenRequired: false
4266
+ groups: {
4267
+ all: {
4268
+ path: "v2/achievements/groups",
4269
+ tokenRequired: false
4270
+ },
4271
+ byId: {
4272
+ path: "v2/achievements/groups/$(id)",
4273
+ tokenRequired: false
4274
+ }
4263
4275
  }
4264
4276
  },
4265
4277
  backstory: {
4266
- answersAll: {
4267
- path: "v2/backstory/answers",
4268
- tokenRequired: false
4269
- },
4270
- answersById: {
4271
- path: "v2/backstory/answers?ids=$(ids)",
4272
- tokenRequired: false
4273
- },
4274
- questionsAll: {
4275
- path: "v2/backstory/questions",
4276
- tokenRequired: false
4278
+ answers: {
4279
+ all: {
4280
+ path: "v2/backstory/answers",
4281
+ tokenRequired: false
4282
+ },
4283
+ byId: {
4284
+ path: "v2/backstory/answers?ids=$(ids)",
4285
+ tokenRequired: false
4286
+ }
4277
4287
  },
4278
- questionsById: {
4279
- path: "v2/backstory/questions?ids=$(ids)",
4280
- tokenRequired: false
4288
+ questions: {
4289
+ all: {
4290
+ path: "v2/backstory/questions",
4291
+ tokenRequired: false
4292
+ },
4293
+ byId: {
4294
+ path: "v2/backstory/questions?ids=$(ids)",
4295
+ tokenRequired: false
4296
+ }
4281
4297
  }
4282
4298
  },
4283
4299
  build: {
@@ -4309,13 +4325,15 @@ var endpoints = {
4309
4325
  path: "v2/characters/$(id)/equipment",
4310
4326
  tokenRequired: true
4311
4327
  },
4312
- equipmentTabsById: {
4313
- path: "v2/characters/$(id)/equipmenttabs?tabs=$(tabs)",
4314
- tokenRequired: true
4315
- },
4316
- equipmentTabActive: {
4317
- path: "v2/characters/$(id)/equipmenttabs/active",
4318
- tokenRequired: true
4328
+ equipmentTabs: {
4329
+ byId: {
4330
+ path: "v2/characters/$(id)/equipmenttabs?tabs=$(tabs)",
4331
+ tokenRequired: true
4332
+ },
4333
+ active: {
4334
+ path: "v2/characters/$(id)/equipmenttabs/active",
4335
+ tokenRequired: true
4336
+ }
4319
4337
  },
4320
4338
  heroPoints: {
4321
4339
  path: "v2/characters/$(id)/heropoints",
@@ -4370,12 +4388,24 @@ var endpoints = {
4370
4388
  tokenRequired: false
4371
4389
  },
4372
4390
  listings: {
4373
- path: "v2/commerce/listings?ids=$(ids)",
4374
- tokenRequired: false
4391
+ all: {
4392
+ path: "v2/commerce/listings",
4393
+ tokenRequired: false
4394
+ },
4395
+ byId: {
4396
+ path: "v2/commerce/listings?ids=$(ids)",
4397
+ tokenRequired: false
4398
+ }
4375
4399
  },
4376
4400
  prices: {
4377
- path: "v2/commerce/prices?ids=$(ids)",
4378
- tokenRequired: false
4401
+ all: {
4402
+ path: "v2/commerce/prices",
4403
+ tokenRequired: false
4404
+ },
4405
+ byId: {
4406
+ path: "v2/commerce/prices?ids=$(ids)",
4407
+ tokenRequired: false
4408
+ }
4379
4409
  },
4380
4410
  transactions: {
4381
4411
  path: "v2/commerce/transactions/$(status)/$(type)",
@@ -4527,13 +4557,15 @@ var endpoints = {
4527
4557
  path: "v2/guild/upgrades?ids=$(ids)",
4528
4558
  tokenRequired: false
4529
4559
  },
4530
- permissionsAll: {
4531
- path: "v2/guild/permissions",
4532
- tokenRequired: false
4533
- },
4534
- permissionsById: {
4535
- path: "v2/guild/permissions?ids=$(ids)",
4536
- tokenRequired: false
4560
+ permissions: {
4561
+ all: {
4562
+ path: "v2/guild/permissions",
4563
+ tokenRequired: false
4564
+ },
4565
+ byId: {
4566
+ path: "v2/guild/permissions?ids=$(ids)",
4567
+ tokenRequired: false
4568
+ }
4537
4569
  },
4538
4570
  search: {
4539
4571
  path: "v2/guild/search?name=$(name)",
@@ -4551,29 +4583,35 @@ var endpoints = {
4551
4583
  }
4552
4584
  },
4553
4585
  homestead: {
4554
- decorationsById: {
4555
- path: "v2/homestead/decorations?ids=$(ids)",
4556
- tokenRequired: false
4557
- },
4558
- decorationsAll: {
4559
- path: "v2/homestead/decorations",
4560
- tokenRequired: false
4561
- },
4562
- decorationsCategoriesById: {
4563
- path: "v2/homestead/decorations/categories?ids=$(ids)",
4564
- tokenRequired: false
4565
- },
4566
- decorationsCategoriesAll: {
4567
- path: "v2/homestead/decorations/categories",
4568
- tokenRequired: false
4586
+ decorations: {
4587
+ byId: {
4588
+ path: "v2/homestead/decorations?ids=$(ids)",
4589
+ tokenRequired: false
4590
+ },
4591
+ all: {
4592
+ path: "v2/homestead/decorations",
4593
+ tokenRequired: false
4594
+ }
4569
4595
  },
4570
- glyphsById: {
4571
- path: "v2/homestead/glyphs?ids=$(ids)",
4572
- tokenRequired: false
4596
+ decorationsCategories: {
4597
+ byId: {
4598
+ path: "v2/homestead/decorations/categories?ids=$(ids)",
4599
+ tokenRequired: false
4600
+ },
4601
+ all: {
4602
+ path: "v2/homestead/decorations/categories",
4603
+ tokenRequired: false
4604
+ }
4573
4605
  },
4574
- glyphsAll: {
4575
- path: "v2/homestead/glyphs",
4576
- tokenRequired: false
4606
+ glyphs: {
4607
+ byId: {
4608
+ path: "v2/homestead/glyphs?ids=$(ids)",
4609
+ tokenRequired: false
4610
+ },
4611
+ all: {
4612
+ path: "v2/homestead/glyphs",
4613
+ tokenRequired: false
4614
+ }
4577
4615
  }
4578
4616
  },
4579
4617
  items: {
@@ -4741,53 +4779,65 @@ var endpoints = {
4741
4779
  }
4742
4780
  },
4743
4781
  pvp: {
4744
- amuletsAll: {
4745
- path: "v2/pvp/amulets",
4746
- tokenRequired: false
4747
- },
4748
- amuletsById: {
4749
- path: "v2/pvp/amulets?ids=$(ids)",
4750
- tokenRequired: false
4751
- },
4752
- gamesAll: {
4753
- path: "v2/pvp/games",
4754
- tokenRequired: true
4755
- },
4756
- gamesById: {
4757
- path: "v2/pvp/games?ids=$(ids)",
4758
- tokenRequired: true
4759
- },
4760
- heroesAll: {
4761
- path: "v2/pvp/heroes",
4762
- tokenRequired: false
4763
- },
4764
- heroesById: {
4765
- path: "v2/pvp/heroes?ids=$(ids)",
4766
- tokenRequired: false
4782
+ amulets: {
4783
+ all: {
4784
+ path: "v2/pvp/amulets",
4785
+ tokenRequired: false
4786
+ },
4787
+ byId: {
4788
+ path: "v2/pvp/amulets?ids=$(ids)",
4789
+ tokenRequired: false
4790
+ }
4767
4791
  },
4768
- ranksAll: {
4769
- path: "v2/pvp/ranks",
4770
- tokenRequired: false
4792
+ games: {
4793
+ all: {
4794
+ path: "v2/pvp/games",
4795
+ tokenRequired: true
4796
+ },
4797
+ byId: {
4798
+ path: "v2/pvp/games?ids=$(ids)",
4799
+ tokenRequired: true
4800
+ }
4771
4801
  },
4772
- ranksById: {
4773
- path: "v2/pvp/ranks?ids=$(ids)",
4774
- tokenRequired: false
4802
+ heroes: {
4803
+ all: {
4804
+ path: "v2/pvp/heroes",
4805
+ tokenRequired: false
4806
+ },
4807
+ byId: {
4808
+ path: "v2/pvp/heroes?ids=$(ids)",
4809
+ tokenRequired: false
4810
+ }
4775
4811
  },
4776
- seasonsAll: {
4777
- path: "v2/pvp/seasons",
4778
- tokenRequired: false
4812
+ ranks: {
4813
+ all: {
4814
+ path: "v2/pvp/ranks",
4815
+ tokenRequired: false
4816
+ },
4817
+ byId: {
4818
+ path: "v2/pvp/ranks?ids=$(ids)",
4819
+ tokenRequired: false
4820
+ }
4779
4821
  },
4780
- seasonsById: {
4781
- path: "v2/pvp/seasons?ids=$(ids)",
4782
- tokenRequired: false
4822
+ seasons: {
4823
+ all: {
4824
+ path: "v2/pvp/seasons",
4825
+ tokenRequired: false
4826
+ },
4827
+ byId: {
4828
+ path: "v2/pvp/seasons?ids=$(ids)",
4829
+ tokenRequired: false
4830
+ }
4783
4831
  },
4784
4832
  leaderboards: {
4785
- path: "v2/pvp/seasons/$(id)/leaderboards/$(type)/$(region)",
4786
- tokenRequired: false
4787
- },
4788
- leaderboardsNoType: {
4789
- path: "v2/pvp/seasons/$(id)/leaderboards",
4790
- tokenRequired: false
4833
+ all: {
4834
+ path: "v2/pvp/seasons/$(id)/leaderboards",
4835
+ tokenRequired: false
4836
+ },
4837
+ byType: {
4838
+ path: "v2/pvp/seasons/$(id)/leaderboards/$(type)/$(region)",
4839
+ tokenRequired: false
4840
+ }
4791
4841
  },
4792
4842
  standings: {
4793
4843
  path: "v2/pvp/standings",
@@ -4839,6 +4889,10 @@ var endpoints = {
4839
4889
  }
4840
4890
  },
4841
4891
  recipes: {
4892
+ all: {
4893
+ path: "v2/recipes",
4894
+ tokenRequired: false
4895
+ },
4842
4896
  byId: {
4843
4897
  /**
4844
4898
  * TODO: The hardcoded schema could use some work
@@ -4846,10 +4900,6 @@ var endpoints = {
4846
4900
  path: "v2/recipes?ids=$(ids)&v=2022-03-09T02:00:00.000Z",
4847
4901
  tokenRequired: false
4848
4902
  },
4849
- all: {
4850
- path: "v2/recipes",
4851
- tokenRequired: false
4852
- },
4853
4903
  search: {
4854
4904
  path: "v2/recipes/search?$(type)=$(ids)",
4855
4905
  tokenRequired: false
@@ -4938,21 +4988,25 @@ var endpoints = {
4938
4988
  path: "v2/wizardsvault",
4939
4989
  tokenRequired: false
4940
4990
  },
4941
- listingsAll: {
4942
- path: "v2/wizardsvault/listings",
4943
- tokenRequired: false
4944
- },
4945
- listingsById: {
4946
- path: "v2/wizardsvault/listings?ids=$(ids)",
4947
- tokenRequired: false
4948
- },
4949
- objectivesAll: {
4950
- path: "v2/wizardsvault/objectives",
4951
- tokenRequired: false
4991
+ listings: {
4992
+ all: {
4993
+ path: "v2/wizardsvault/listings",
4994
+ tokenRequired: false
4995
+ },
4996
+ byId: {
4997
+ path: "v2/wizardsvault/listings?ids=$(ids)",
4998
+ tokenRequired: false
4999
+ }
4952
5000
  },
4953
- objectivesById: {
4954
- path: "v2/wizardsvault/objectives?ids=$(ids)",
4955
- tokenRequired: false
5001
+ objectives: {
5002
+ all: {
5003
+ path: "v2/wizardsvault/objectives",
5004
+ tokenRequired: false
5005
+ },
5006
+ byId: {
5007
+ path: "v2/wizardsvault/objectives?ids=$(ids)",
5008
+ tokenRequired: false
5009
+ }
4956
5010
  }
4957
5011
  },
4958
5012
  worldBosses: {
@@ -4971,48 +5025,58 @@ var endpoints = {
4971
5025
  },
4972
5026
  wvw: {
4973
5027
  abilities: {
4974
- path: "v2/wvw/abilities",
4975
- tokenRequired: false
4976
- },
4977
- abilitiesById: {
4978
- path: "v2/wvw/abilities?ids=$(ids)",
4979
- tokenRequired: false
5028
+ all: {
5029
+ path: "v2/wvw/abilities",
5030
+ tokenRequired: false
5031
+ },
5032
+ byId: {
5033
+ path: "v2/wvw/abilities?ids=$(ids)",
5034
+ tokenRequired: false
5035
+ }
4980
5036
  },
4981
5037
  matches: {
4982
- path: "v2/wvw/matches",
4983
- tokenRequired: false
4984
- },
4985
- matchesById: {
4986
- path: "v2/wvw/matches?ids=$(ids)",
4987
- tokenRequired: false
4988
- },
4989
- matchesByWorld: {
4990
- path: "v2/wvw/matches/$(type)?world=$(world)",
4991
- tokenRequired: false
5038
+ all: {
5039
+ path: "v2/wvw/matches",
5040
+ tokenRequired: false
5041
+ },
5042
+ byId: {
5043
+ path: "v2/wvw/matches?ids=$(ids)",
5044
+ tokenRequired: false
5045
+ },
5046
+ byWorld: {
5047
+ path: "v2/wvw/matches/$(type)?world=$(world)",
5048
+ tokenRequired: false
5049
+ }
4992
5050
  },
4993
5051
  objectives: {
4994
- path: "v2/wvw/objectives",
4995
- tokenRequired: false
4996
- },
4997
- objectivesById: {
4998
- path: "v2/wvw/objectives?ids=$(ids)",
4999
- tokenRequired: false
5052
+ all: {
5053
+ path: "v2/wvw/objectives",
5054
+ tokenRequired: false
5055
+ },
5056
+ byId: {
5057
+ path: "v2/wvw/objectives?ids=$(ids)",
5058
+ tokenRequired: false
5059
+ }
5000
5060
  },
5001
5061
  ranks: {
5002
- path: "v2/wvw/ranks",
5003
- tokenRequired: false
5004
- },
5005
- ranksById: {
5006
- path: "v2/wvw/ranks?ids=$(ids)",
5007
- tokenRequired: false
5008
- },
5009
- upgradesById: {
5010
- path: "v2/wvw/upgrades?ids=$(ids)",
5011
- tokenRequired: false
5062
+ all: {
5063
+ path: "v2/wvw/ranks",
5064
+ tokenRequired: false
5065
+ },
5066
+ byId: {
5067
+ path: "v2/wvw/ranks?ids=$(ids)",
5068
+ tokenRequired: false
5069
+ }
5012
5070
  },
5013
- upgradesAll: {
5014
- path: "v2/wvw/upgrades",
5015
- tokenRequired: false
5071
+ upgrades: {
5072
+ all: {
5073
+ path: "v2/wvw/upgrades",
5074
+ tokenRequired: false
5075
+ },
5076
+ byId: {
5077
+ path: "v2/wvw/upgrades?ids=$(ids)",
5078
+ tokenRequired: false
5079
+ }
5016
5080
  }
5017
5081
  }
5018
5082
  };
@@ -5101,7 +5165,7 @@ var AccountApi = class extends ApiBase {
5101
5165
  */
5102
5166
  async getHomeNodes() {
5103
5167
  return await this.buildRequest(
5104
- endpoints.account.homeNodes,
5168
+ endpoints.account.home.nodes,
5105
5169
  {},
5106
5170
  AccountHomeNodesDTO
5107
5171
  );
@@ -5110,14 +5174,14 @@ var AccountApi = class extends ApiBase {
5110
5174
  * Returns information about unlocked home instance cats.
5111
5175
  */
5112
5176
  async getHomeCats() {
5113
- return await this.buildRequest(endpoints.account.homeCats, {}, AccountHomeCatsDTO);
5177
+ return await this.buildRequest(endpoints.account.home.cats, {}, AccountHomeCatsDTO);
5114
5178
  }
5115
5179
  /**
5116
5180
  * Returns information about unlocked homestead decorations.
5117
5181
  */
5118
5182
  async getHomesteadDecorations() {
5119
5183
  return await this.buildRequest(
5120
- endpoints.account.homesteadDecorations,
5184
+ endpoints.account.homestead.decorations,
5121
5185
  {},
5122
5186
  AccountHomesteadDecorationsDTO
5123
5187
  );
@@ -5127,7 +5191,7 @@ var AccountApi = class extends ApiBase {
5127
5191
  */
5128
5192
  async getHomesteadGlyphs() {
5129
5193
  return await this.buildRequest(
5130
- endpoints.account.homesteadGlyphs,
5194
+ endpoints.account.homestead.glyphs,
5131
5195
  {},
5132
5196
  AccountHomesteadGlyphsDTO
5133
5197
  );
@@ -5228,7 +5292,7 @@ var AccountApi = class extends ApiBase {
5228
5292
  */
5229
5293
  async getMountSkins() {
5230
5294
  return await this.buildRequest(
5231
- endpoints.account.mountsSkins,
5295
+ endpoints.account.mounts.skins,
5232
5296
  {},
5233
5297
  AccountMountSkinsDTO
5234
5298
  );
@@ -5238,7 +5302,7 @@ var AccountApi = class extends ApiBase {
5238
5302
  */
5239
5303
  async getMountTypes() {
5240
5304
  return await this.buildRequest(
5241
- endpoints.account.mountsTypes,
5305
+ endpoints.account.mounts.types,
5242
5306
  {},
5243
5307
  AccountMountTypesDTO
5244
5308
  );
@@ -5320,7 +5384,7 @@ var AccountApi = class extends ApiBase {
5320
5384
  */
5321
5385
  async getWizardsVaultDaily() {
5322
5386
  return await this.buildRequest(
5323
- endpoints.account.wizardsVaultDaily,
5387
+ endpoints.account.wizardsVault.daily,
5324
5388
  {},
5325
5389
  AccountWizardsVaultDailyDTO
5326
5390
  );
@@ -5330,7 +5394,7 @@ var AccountApi = class extends ApiBase {
5330
5394
  */
5331
5395
  async getWizardsVaultListings() {
5332
5396
  return await this.buildRequest(
5333
- endpoints.account.wizardsVaultListings,
5397
+ endpoints.account.wizardsVault.listings,
5334
5398
  {},
5335
5399
  AccountWizardsVaultListingsDTO
5336
5400
  );
@@ -5340,7 +5404,7 @@ var AccountApi = class extends ApiBase {
5340
5404
  */
5341
5405
  async getWizardsVaultSpecial() {
5342
5406
  return await this.buildRequest(
5343
- endpoints.account.wizardsVaultSpecial,
5407
+ endpoints.account.wizardsVault.special,
5344
5408
  {},
5345
5409
  AccountWizardsVaultSpecialDTO
5346
5410
  );
@@ -5350,7 +5414,7 @@ var AccountApi = class extends ApiBase {
5350
5414
  */
5351
5415
  async getWizardsVaultWeekly() {
5352
5416
  return await this.buildRequest(
5353
- endpoints.account.wizardsVaultWeekly,
5417
+ endpoints.account.wizardsVault.weekly,
5354
5418
  {},
5355
5419
  AccountWizardsVaultWeeklyDTO
5356
5420
  );
@@ -5372,20 +5436,24 @@ var AchievementsApi = class extends ApiBase {
5372
5436
  async getCategories(ids) {
5373
5437
  if (ids)
5374
5438
  return await this.buildRequest(
5375
- endpoints.achievements.categories,
5439
+ endpoints.achievements.categories.byId,
5376
5440
  { ids },
5377
5441
  AchievementCategoriesDTO
5378
5442
  );
5379
- return await this.buildRequest(endpoints.achievements.categoryIds, {}, numberArrayType);
5443
+ return await this.buildRequest(
5444
+ endpoints.achievements.categories.all,
5445
+ {},
5446
+ numberArrayType
5447
+ );
5380
5448
  }
5381
5449
  async getGroups(id) {
5382
5450
  if (id)
5383
5451
  return await this.buildRequest(
5384
- endpoints.achievements.groupsById,
5452
+ endpoints.achievements.groups.byId,
5385
5453
  { id },
5386
5454
  AchievementGroupsDTO
5387
5455
  );
5388
- return await this.buildRequest(endpoints.achievements.groupsAll, {}, stringArrayType);
5456
+ return await this.buildRequest(endpoints.achievements.groups.all, {}, stringArrayType);
5389
5457
  }
5390
5458
  };
5391
5459
 
@@ -5481,7 +5549,7 @@ var CharactersApi = class extends ApiBase {
5481
5549
  }
5482
5550
  }
5483
5551
  return await this.buildRequest(
5484
- endpoints.characters.equipmentTabsById,
5552
+ endpoints.characters.equipmentTabs.byId,
5485
5553
  {
5486
5554
  id,
5487
5555
  tabs
@@ -5496,7 +5564,7 @@ var CharactersApi = class extends ApiBase {
5496
5564
  */
5497
5565
  async getActiveEquipmentTab(id) {
5498
5566
  return await this.buildRequest(
5499
- endpoints.characters.equipmentTabActive,
5567
+ endpoints.characters.equipmentTabs.active,
5500
5568
  { id },
5501
5569
  CharacterEquipmentTabDTO
5502
5570
  );
@@ -5628,27 +5696,23 @@ var CommerceApi = class extends ApiBase {
5628
5696
  CommerceExchangeDTO
5629
5697
  );
5630
5698
  }
5631
- /**
5632
- * Returns current buy and sell listings from the trading post.
5633
- * TODO: Functionality to return a complete list of every listing is currently unsupported
5634
- *
5635
- * @param ids - Listing ids
5636
- */
5637
5699
  async getListings(ids) {
5638
- return await this.buildRequest(
5639
- endpoints.commerce.listings,
5640
- { ids },
5641
- CommerceListingsDTO
5642
- );
5700
+ if (ids)
5701
+ return await this.buildRequest(
5702
+ endpoints.commerce.listings.byId,
5703
+ { ids },
5704
+ CommerceListingsDTO
5705
+ );
5706
+ return await this.buildRequest(endpoints.commerce.listings.all, {}, numberArrayType);
5643
5707
  }
5644
- /**
5645
- * Returns current aggregated buy and sell listing information from the trading post.
5646
- * TODO: Functionality to return a complete list of every listing is currently unsupported
5647
- *
5648
- * @param ids - Item ids
5649
- */
5650
5708
  async getPrices(ids) {
5651
- return await this.buildRequest(endpoints.commerce.prices, { ids }, CommercePricesDTO);
5709
+ if (ids)
5710
+ return await this.buildRequest(
5711
+ endpoints.commerce.prices.byId,
5712
+ { ids },
5713
+ CommercePricesDTO
5714
+ );
5715
+ return await this.buildRequest(endpoints.commerce.prices.all, {}, numberArrayType);
5652
5716
  }
5653
5717
  /**
5654
5718
  * Provides access to the current and historical transactions of a player.
@@ -5779,11 +5843,11 @@ var GuildApi = class extends ApiBase {
5779
5843
  async getPermissions(ids) {
5780
5844
  if (ids)
5781
5845
  return await this.buildRequest(
5782
- endpoints.guild.permissionsById,
5846
+ endpoints.guild.permissions.byId,
5783
5847
  { ids },
5784
5848
  GuildPermissionsDTO
5785
5849
  );
5786
- return await this.buildRequest(endpoints.guild.permissionsAll, {}, stringArrayType);
5850
+ return await this.buildRequest(endpoints.guild.permissions.all, {}, stringArrayType);
5787
5851
  }
5788
5852
  /**
5789
5853
  * Returns information on guild ids to be used for other API queries.
@@ -5840,23 +5904,27 @@ var HomesteadApi = class extends ApiBase {
5840
5904
  async getDecorations(ids) {
5841
5905
  if (ids) {
5842
5906
  return await this.buildRequest(
5843
- endpoints.homestead.decorationsById,
5907
+ endpoints.homestead.decorations.byId,
5844
5908
  { ids },
5845
5909
  HomesteadDecorationsDTO
5846
5910
  );
5847
5911
  }
5848
- return await this.buildRequest(endpoints.homestead.decorationsAll, {}, numberArrayType);
5912
+ return await this.buildRequest(
5913
+ endpoints.homestead.decorations.all,
5914
+ {},
5915
+ numberArrayType
5916
+ );
5849
5917
  }
5850
5918
  async getCategories(ids) {
5851
5919
  if (ids) {
5852
5920
  return await this.buildRequest(
5853
- endpoints.homestead.decorationsCategoriesById,
5921
+ endpoints.homestead.decorationsCategories.byId,
5854
5922
  { ids },
5855
5923
  HomesteadDecorationsCategoriesDTO
5856
5924
  );
5857
5925
  }
5858
5926
  return await this.buildRequest(
5859
- endpoints.homestead.decorationsCategoriesAll,
5927
+ endpoints.homestead.decorationsCategories.all,
5860
5928
  {},
5861
5929
  numberArrayType
5862
5930
  );
@@ -5864,12 +5932,12 @@ var HomesteadApi = class extends ApiBase {
5864
5932
  async getGlyphs(ids) {
5865
5933
  if (ids) {
5866
5934
  return await this.buildRequest(
5867
- endpoints.homestead.glyphsById,
5935
+ endpoints.homestead.glyphs.byId,
5868
5936
  { ids },
5869
5937
  HomesteadGlyphsDTO
5870
5938
  );
5871
5939
  }
5872
- return await this.buildRequest(endpoints.homestead.glyphsAll, {}, stringArrayType);
5940
+ return await this.buildRequest(endpoints.homestead.glyphs.all, {}, stringArrayType);
5873
5941
  }
5874
5942
  };
5875
5943
 
@@ -5878,20 +5946,20 @@ var BackstoryApi = class extends ApiBase {
5878
5946
  async getAnswers(ids) {
5879
5947
  if (ids)
5880
5948
  return await this.buildRequest(
5881
- endpoints.backstory.answersById,
5949
+ endpoints.backstory.answers.byId,
5882
5950
  { ids },
5883
5951
  BackstoryAnswersDTO
5884
5952
  );
5885
- return await this.buildRequest(endpoints.backstory.answersAll, {}, stringArrayType);
5953
+ return await this.buildRequest(endpoints.backstory.answers.all, {}, stringArrayType);
5886
5954
  }
5887
5955
  async getQuestions(ids) {
5888
5956
  if (ids)
5889
5957
  return await this.buildRequest(
5890
- endpoints.backstory.questionsById,
5958
+ endpoints.backstory.questions.byId,
5891
5959
  { ids },
5892
5960
  BackstoryQuestionsDTO
5893
5961
  );
5894
- return await this.buildRequest(endpoints.backstory.questionsAll, {}, numberArrayType);
5962
+ return await this.buildRequest(endpoints.backstory.questions.all, {}, numberArrayType);
5895
5963
  }
5896
5964
  };
5897
5965
 
@@ -6379,34 +6447,34 @@ var WorldsApi = class extends ApiBase {
6379
6447
  var PvPApi = class extends ApiBase {
6380
6448
  async getAmulets(ids) {
6381
6449
  if (ids)
6382
- return await this.buildRequest(endpoints.pvp.amuletsById, { ids }, PvPAmuletsDTO);
6383
- return await this.buildRequest(endpoints.pvp.amuletsAll, {}, numberArrayType);
6450
+ return await this.buildRequest(endpoints.pvp.amulets.byId, { ids }, PvPAmuletsDTO);
6451
+ return await this.buildRequest(endpoints.pvp.amulets.all, {}, numberArrayType);
6384
6452
  }
6385
6453
  async getGames(ids) {
6386
- if (ids) return await this.buildRequest(endpoints.pvp.gamesById, { ids }, PvPGamesDTO);
6387
- return await this.buildRequest(endpoints.pvp.gamesAll, {}, stringArrayType);
6454
+ if (ids) return await this.buildRequest(endpoints.pvp.games.byId, { ids }, PvPGamesDTO);
6455
+ return await this.buildRequest(endpoints.pvp.games.all, {}, stringArrayType);
6388
6456
  }
6389
6457
  async getHeroes(ids) {
6390
- if (ids) return await this.buildRequest(endpoints.pvp.heroesById, { ids }, PvPHeroesDTO);
6391
- return await this.buildRequest(endpoints.pvp.heroesAll, {}, stringArrayType);
6458
+ if (ids) return await this.buildRequest(endpoints.pvp.heroes.byId, { ids }, PvPHeroesDTO);
6459
+ return await this.buildRequest(endpoints.pvp.heroes.all, {}, stringArrayType);
6392
6460
  }
6393
6461
  async getRanks(ids) {
6394
- if (ids) return await this.buildRequest(endpoints.pvp.ranksById, { ids }, PvPRanksDTO);
6395
- return await this.buildRequest(endpoints.pvp.ranksAll, {}, numberArrayType);
6462
+ if (ids) return await this.buildRequest(endpoints.pvp.ranks.byId, { ids }, PvPRanksDTO);
6463
+ return await this.buildRequest(endpoints.pvp.ranks.all, {}, numberArrayType);
6396
6464
  }
6397
6465
  async getSeasons(ids) {
6398
- if (ids) return await this.buildRequest(endpoints.pvp.seasonsById, { ids }, PvPSeasonDTO);
6399
- return await this.buildRequest(endpoints.pvp.seasonsAll, {}, stringArrayType);
6466
+ if (ids) return await this.buildRequest(endpoints.pvp.seasons.byId, { ids }, PvPSeasonDTO);
6467
+ return await this.buildRequest(endpoints.pvp.seasons.all, {}, stringArrayType);
6400
6468
  }
6401
6469
  async getLeaderboards(id, region, type) {
6402
6470
  if (type && region)
6403
6471
  return await this.buildRequest(
6404
- endpoints.pvp.leaderboards,
6472
+ endpoints.pvp.leaderboards.byType,
6405
6473
  { id, type, region },
6406
6474
  PvPSeasonLeaderboardsDTO
6407
6475
  );
6408
6476
  return await this.buildRequest(
6409
- endpoints.pvp.leaderboardsNoType,
6477
+ endpoints.pvp.leaderboards.all,
6410
6478
  { id },
6411
6479
  PvPSeasonLeaderboardRegionsDTO
6412
6480
  );
@@ -6436,21 +6504,25 @@ var WizardsVaultApi = class extends ApiBase {
6436
6504
  async getListings(ids) {
6437
6505
  if (ids)
6438
6506
  return await this.buildRequest(
6439
- endpoints.wizardsVault.listingsById,
6507
+ endpoints.wizardsVault.listings.byId,
6440
6508
  { ids },
6441
6509
  WizardsVaultListingsDTO
6442
6510
  );
6443
- return await this.buildRequest(endpoints.wizardsVault.listingsAll, {}, numberArrayType);
6511
+ return await this.buildRequest(
6512
+ endpoints.wizardsVault.listings.all,
6513
+ {},
6514
+ numberArrayType
6515
+ );
6444
6516
  }
6445
6517
  async getObjectives(ids) {
6446
6518
  if (ids)
6447
6519
  return await this.buildRequest(
6448
- endpoints.wizardsVault.objectivesById,
6520
+ endpoints.wizardsVault.objectives.byId,
6449
6521
  { ids },
6450
6522
  WizardsVaultObjectivesDTO
6451
6523
  );
6452
6524
  return await this.buildRequest(
6453
- endpoints.wizardsVault.objectivesAll,
6525
+ endpoints.wizardsVault.objectives.all,
6454
6526
  {},
6455
6527
  numberArrayType
6456
6528
  );
@@ -6462,17 +6534,17 @@ var WorldVsWorldApi = class extends ApiBase {
6462
6534
  async getAbilities(ids) {
6463
6535
  if (ids)
6464
6536
  return await this.buildRequest(
6465
- endpoints.wvw.abilitiesById,
6537
+ endpoints.wvw.abilities.byId,
6466
6538
  { ids },
6467
6539
  WvWAbilitiesDTO
6468
6540
  );
6469
- return await this.buildRequest(endpoints.wvw.abilities, {}, numberArrayType);
6541
+ return await this.buildRequest(endpoints.wvw.abilities.all, {}, numberArrayType);
6470
6542
  }
6471
6543
  async getMatches(ids) {
6472
6544
  if (ids) {
6473
- return await this.buildRequest(endpoints.wvw.matchesById, { ids }, WvWMatchesDTO);
6545
+ return await this.buildRequest(endpoints.wvw.matches.byId, { ids }, WvWMatchesDTO);
6474
6546
  }
6475
- return await this.buildRequest(endpoints.wvw.matches, {}, stringArrayType);
6547
+ return await this.buildRequest(endpoints.wvw.matches.all, {}, stringArrayType);
6476
6548
  }
6477
6549
  /**
6478
6550
  * Returns further details about the specified match, including the total score, kills and deaths, and further details for each map.
@@ -6484,7 +6556,7 @@ var WorldVsWorldApi = class extends ApiBase {
6484
6556
  async getMatchesByWorld(type, world) {
6485
6557
  if (type === "overview") {
6486
6558
  return await this.buildRequest(
6487
- endpoints.wvw.matchesByWorld,
6559
+ endpoints.wvw.matches.byWorld,
6488
6560
  {
6489
6561
  type,
6490
6562
  world
@@ -6494,7 +6566,7 @@ var WorldVsWorldApi = class extends ApiBase {
6494
6566
  }
6495
6567
  if (type === "scores") {
6496
6568
  return await this.buildRequest(
6497
- endpoints.wvw.matchesByWorld,
6569
+ endpoints.wvw.matches.byWorld,
6498
6570
  {
6499
6571
  type,
6500
6572
  world
@@ -6503,7 +6575,7 @@ var WorldVsWorldApi = class extends ApiBase {
6503
6575
  );
6504
6576
  }
6505
6577
  return await this.buildRequest(
6506
- endpoints.wvw.matchesByWorld,
6578
+ endpoints.wvw.matches.byWorld,
6507
6579
  {
6508
6580
  type,
6509
6581
  world
@@ -6514,20 +6586,20 @@ var WorldVsWorldApi = class extends ApiBase {
6514
6586
  async getObjectives(ids) {
6515
6587
  if (ids)
6516
6588
  return await this.buildRequest(
6517
- endpoints.wvw.objectivesById,
6589
+ endpoints.wvw.objectives.byId,
6518
6590
  { ids },
6519
6591
  WvWObjectivesDTO
6520
6592
  );
6521
- return await this.buildRequest(endpoints.wvw.objectives, {}, stringArrayType);
6593
+ return await this.buildRequest(endpoints.wvw.objectives.all, {}, stringArrayType);
6522
6594
  }
6523
6595
  async getRanks(ids) {
6524
- if (ids) return await this.buildRequest(endpoints.wvw.ranksById, { ids }, WvWRanksDTO);
6525
- return await this.buildRequest(endpoints.wvw.ranks, {}, numberArrayType);
6596
+ if (ids) return await this.buildRequest(endpoints.wvw.ranks.byId, { ids }, WvWRanksDTO);
6597
+ return await this.buildRequest(endpoints.wvw.ranks.all, {}, numberArrayType);
6526
6598
  }
6527
6599
  async getUpgrades(ids) {
6528
6600
  if (ids)
6529
- return await this.buildRequest(endpoints.wvw.upgradesById, { ids }, WvWUpgradesDTO);
6530
- return await this.buildRequest(endpoints.wvw.upgradesAll, {}, numberArrayType);
6601
+ return await this.buildRequest(endpoints.wvw.upgrades.byId, { ids }, WvWUpgradesDTO);
6602
+ return await this.buildRequest(endpoints.wvw.upgrades.all, {}, numberArrayType);
6531
6603
  }
6532
6604
  };
6533
6605