guildwars2-ts 1.2.2 → 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/README.md +7 -2
- package/dist/index.d.mts +149 -48
- package/dist/index.d.ts +149 -48
- package/dist/index.js +344 -272
- package/dist/index.mjs +344 -272
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -70,7 +70,7 @@ var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
|
70
70
|
return LogLevel2;
|
|
71
71
|
})(LogLevel || {});
|
|
72
72
|
var logger = new Logger({
|
|
73
|
-
minLevel:
|
|
73
|
+
minLevel: 5 /* error */,
|
|
74
74
|
hideLogPositionForProduction: true
|
|
75
75
|
});
|
|
76
76
|
var setLogLevel = (minLevel) => {
|
|
@@ -4112,21 +4112,25 @@ var endpoints = {
|
|
|
4112
4112
|
path: "v2/account/gliders",
|
|
4113
4113
|
tokenRequired: true
|
|
4114
4114
|
},
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
path: "v2/account/homestead/decorations",
|
|
4125
|
-
tokenRequired: true
|
|
4115
|
+
home: {
|
|
4116
|
+
cats: {
|
|
4117
|
+
path: "v2/account/home/cats",
|
|
4118
|
+
tokenRequired: true
|
|
4119
|
+
},
|
|
4120
|
+
nodes: {
|
|
4121
|
+
path: "v2/account/home/nodes",
|
|
4122
|
+
tokenRequired: true
|
|
4123
|
+
}
|
|
4126
4124
|
},
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4125
|
+
homestead: {
|
|
4126
|
+
decorations: {
|
|
4127
|
+
path: "v2/account/homestead/decorations",
|
|
4128
|
+
tokenRequired: true
|
|
4129
|
+
},
|
|
4130
|
+
glyphs: {
|
|
4131
|
+
path: "v2/account/homestead/glyphs",
|
|
4132
|
+
tokenRequired: true
|
|
4133
|
+
}
|
|
4130
4134
|
},
|
|
4131
4135
|
inventory: {
|
|
4132
4136
|
path: "v2/account/inventory",
|
|
@@ -4168,13 +4172,15 @@ var endpoints = {
|
|
|
4168
4172
|
path: "v2/account/minis",
|
|
4169
4173
|
tokenRequired: true
|
|
4170
4174
|
},
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4175
|
+
mounts: {
|
|
4176
|
+
skins: {
|
|
4177
|
+
path: "v2/account/mounts/skins",
|
|
4178
|
+
tokenRequired: true
|
|
4179
|
+
},
|
|
4180
|
+
types: {
|
|
4181
|
+
path: "v2/account/mounts/types",
|
|
4182
|
+
tokenRequired: true
|
|
4183
|
+
}
|
|
4178
4184
|
},
|
|
4179
4185
|
novelties: {
|
|
4180
4186
|
path: "v2/account/novelties",
|
|
@@ -4216,21 +4222,23 @@ var endpoints = {
|
|
|
4216
4222
|
path: "v2/account/wallet",
|
|
4217
4223
|
tokenRequired: true
|
|
4218
4224
|
},
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4225
|
+
wizardsVault: {
|
|
4226
|
+
daily: {
|
|
4227
|
+
path: "v2/account/wizardsvault/daily",
|
|
4228
|
+
tokenRequired: true
|
|
4229
|
+
},
|
|
4230
|
+
listings: {
|
|
4231
|
+
path: "v2/account/wizardsvault/listings",
|
|
4232
|
+
tokenRequired: true
|
|
4233
|
+
},
|
|
4234
|
+
special: {
|
|
4235
|
+
path: "v2/account/wizardsvault/special",
|
|
4236
|
+
tokenRequired: true
|
|
4237
|
+
},
|
|
4238
|
+
weekly: {
|
|
4239
|
+
path: "v2/account/wizardsvault/weekly",
|
|
4240
|
+
tokenRequired: true
|
|
4241
|
+
}
|
|
4234
4242
|
},
|
|
4235
4243
|
worldBosses: {
|
|
4236
4244
|
path: "v2/account/worldbosses",
|
|
@@ -4238,39 +4246,47 @@ var endpoints = {
|
|
|
4238
4246
|
}
|
|
4239
4247
|
},
|
|
4240
4248
|
achievements: {
|
|
4241
|
-
categoryIds: {
|
|
4242
|
-
path: "v2/achievements/categories",
|
|
4243
|
-
tokenRequired: false
|
|
4244
|
-
},
|
|
4245
4249
|
categories: {
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4250
|
+
all: {
|
|
4251
|
+
path: "v2/achievements/categories",
|
|
4252
|
+
tokenRequired: false
|
|
4253
|
+
},
|
|
4254
|
+
byId: {
|
|
4255
|
+
path: "v2/achievements/categories?ids=$(ids)",
|
|
4256
|
+
tokenRequired: false
|
|
4257
|
+
}
|
|
4252
4258
|
},
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4259
|
+
groups: {
|
|
4260
|
+
all: {
|
|
4261
|
+
path: "v2/achievements/groups",
|
|
4262
|
+
tokenRequired: false
|
|
4263
|
+
},
|
|
4264
|
+
byId: {
|
|
4265
|
+
path: "v2/achievements/groups/$(id)",
|
|
4266
|
+
tokenRequired: false
|
|
4267
|
+
}
|
|
4256
4268
|
}
|
|
4257
4269
|
},
|
|
4258
4270
|
backstory: {
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
path: "v2/backstory/questions",
|
|
4269
|
-
tokenRequired: false
|
|
4271
|
+
answers: {
|
|
4272
|
+
all: {
|
|
4273
|
+
path: "v2/backstory/answers",
|
|
4274
|
+
tokenRequired: false
|
|
4275
|
+
},
|
|
4276
|
+
byId: {
|
|
4277
|
+
path: "v2/backstory/answers?ids=$(ids)",
|
|
4278
|
+
tokenRequired: false
|
|
4279
|
+
}
|
|
4270
4280
|
},
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4281
|
+
questions: {
|
|
4282
|
+
all: {
|
|
4283
|
+
path: "v2/backstory/questions",
|
|
4284
|
+
tokenRequired: false
|
|
4285
|
+
},
|
|
4286
|
+
byId: {
|
|
4287
|
+
path: "v2/backstory/questions?ids=$(ids)",
|
|
4288
|
+
tokenRequired: false
|
|
4289
|
+
}
|
|
4274
4290
|
}
|
|
4275
4291
|
},
|
|
4276
4292
|
build: {
|
|
@@ -4302,13 +4318,15 @@ var endpoints = {
|
|
|
4302
4318
|
path: "v2/characters/$(id)/equipment",
|
|
4303
4319
|
tokenRequired: true
|
|
4304
4320
|
},
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4321
|
+
equipmentTabs: {
|
|
4322
|
+
byId: {
|
|
4323
|
+
path: "v2/characters/$(id)/equipmenttabs?tabs=$(tabs)",
|
|
4324
|
+
tokenRequired: true
|
|
4325
|
+
},
|
|
4326
|
+
active: {
|
|
4327
|
+
path: "v2/characters/$(id)/equipmenttabs/active",
|
|
4328
|
+
tokenRequired: true
|
|
4329
|
+
}
|
|
4312
4330
|
},
|
|
4313
4331
|
heroPoints: {
|
|
4314
4332
|
path: "v2/characters/$(id)/heropoints",
|
|
@@ -4363,12 +4381,24 @@ var endpoints = {
|
|
|
4363
4381
|
tokenRequired: false
|
|
4364
4382
|
},
|
|
4365
4383
|
listings: {
|
|
4366
|
-
|
|
4367
|
-
|
|
4384
|
+
all: {
|
|
4385
|
+
path: "v2/commerce/listings",
|
|
4386
|
+
tokenRequired: false
|
|
4387
|
+
},
|
|
4388
|
+
byId: {
|
|
4389
|
+
path: "v2/commerce/listings?ids=$(ids)",
|
|
4390
|
+
tokenRequired: false
|
|
4391
|
+
}
|
|
4368
4392
|
},
|
|
4369
4393
|
prices: {
|
|
4370
|
-
|
|
4371
|
-
|
|
4394
|
+
all: {
|
|
4395
|
+
path: "v2/commerce/prices",
|
|
4396
|
+
tokenRequired: false
|
|
4397
|
+
},
|
|
4398
|
+
byId: {
|
|
4399
|
+
path: "v2/commerce/prices?ids=$(ids)",
|
|
4400
|
+
tokenRequired: false
|
|
4401
|
+
}
|
|
4372
4402
|
},
|
|
4373
4403
|
transactions: {
|
|
4374
4404
|
path: "v2/commerce/transactions/$(status)/$(type)",
|
|
@@ -4520,13 +4550,15 @@ var endpoints = {
|
|
|
4520
4550
|
path: "v2/guild/upgrades?ids=$(ids)",
|
|
4521
4551
|
tokenRequired: false
|
|
4522
4552
|
},
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4553
|
+
permissions: {
|
|
4554
|
+
all: {
|
|
4555
|
+
path: "v2/guild/permissions",
|
|
4556
|
+
tokenRequired: false
|
|
4557
|
+
},
|
|
4558
|
+
byId: {
|
|
4559
|
+
path: "v2/guild/permissions?ids=$(ids)",
|
|
4560
|
+
tokenRequired: false
|
|
4561
|
+
}
|
|
4530
4562
|
},
|
|
4531
4563
|
search: {
|
|
4532
4564
|
path: "v2/guild/search?name=$(name)",
|
|
@@ -4544,29 +4576,35 @@ var endpoints = {
|
|
|
4544
4576
|
}
|
|
4545
4577
|
},
|
|
4546
4578
|
homestead: {
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
path: "v2/homestead/decorations/categories?ids=$(ids)",
|
|
4557
|
-
tokenRequired: false
|
|
4558
|
-
},
|
|
4559
|
-
decorationsCategoriesAll: {
|
|
4560
|
-
path: "v2/homestead/decorations/categories",
|
|
4561
|
-
tokenRequired: false
|
|
4579
|
+
decorations: {
|
|
4580
|
+
byId: {
|
|
4581
|
+
path: "v2/homestead/decorations?ids=$(ids)",
|
|
4582
|
+
tokenRequired: false
|
|
4583
|
+
},
|
|
4584
|
+
all: {
|
|
4585
|
+
path: "v2/homestead/decorations",
|
|
4586
|
+
tokenRequired: false
|
|
4587
|
+
}
|
|
4562
4588
|
},
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4589
|
+
decorationsCategories: {
|
|
4590
|
+
byId: {
|
|
4591
|
+
path: "v2/homestead/decorations/categories?ids=$(ids)",
|
|
4592
|
+
tokenRequired: false
|
|
4593
|
+
},
|
|
4594
|
+
all: {
|
|
4595
|
+
path: "v2/homestead/decorations/categories",
|
|
4596
|
+
tokenRequired: false
|
|
4597
|
+
}
|
|
4566
4598
|
},
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4599
|
+
glyphs: {
|
|
4600
|
+
byId: {
|
|
4601
|
+
path: "v2/homestead/glyphs?ids=$(ids)",
|
|
4602
|
+
tokenRequired: false
|
|
4603
|
+
},
|
|
4604
|
+
all: {
|
|
4605
|
+
path: "v2/homestead/glyphs",
|
|
4606
|
+
tokenRequired: false
|
|
4607
|
+
}
|
|
4570
4608
|
}
|
|
4571
4609
|
},
|
|
4572
4610
|
items: {
|
|
@@ -4734,53 +4772,65 @@ var endpoints = {
|
|
|
4734
4772
|
}
|
|
4735
4773
|
},
|
|
4736
4774
|
pvp: {
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
path: "v2/pvp/games",
|
|
4747
|
-
tokenRequired: true
|
|
4748
|
-
},
|
|
4749
|
-
gamesById: {
|
|
4750
|
-
path: "v2/pvp/games?ids=$(ids)",
|
|
4751
|
-
tokenRequired: true
|
|
4752
|
-
},
|
|
4753
|
-
heroesAll: {
|
|
4754
|
-
path: "v2/pvp/heroes",
|
|
4755
|
-
tokenRequired: false
|
|
4756
|
-
},
|
|
4757
|
-
heroesById: {
|
|
4758
|
-
path: "v2/pvp/heroes?ids=$(ids)",
|
|
4759
|
-
tokenRequired: false
|
|
4775
|
+
amulets: {
|
|
4776
|
+
all: {
|
|
4777
|
+
path: "v2/pvp/amulets",
|
|
4778
|
+
tokenRequired: false
|
|
4779
|
+
},
|
|
4780
|
+
byId: {
|
|
4781
|
+
path: "v2/pvp/amulets?ids=$(ids)",
|
|
4782
|
+
tokenRequired: false
|
|
4783
|
+
}
|
|
4760
4784
|
},
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4785
|
+
games: {
|
|
4786
|
+
all: {
|
|
4787
|
+
path: "v2/pvp/games",
|
|
4788
|
+
tokenRequired: true
|
|
4789
|
+
},
|
|
4790
|
+
byId: {
|
|
4791
|
+
path: "v2/pvp/games?ids=$(ids)",
|
|
4792
|
+
tokenRequired: true
|
|
4793
|
+
}
|
|
4764
4794
|
},
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4795
|
+
heroes: {
|
|
4796
|
+
all: {
|
|
4797
|
+
path: "v2/pvp/heroes",
|
|
4798
|
+
tokenRequired: false
|
|
4799
|
+
},
|
|
4800
|
+
byId: {
|
|
4801
|
+
path: "v2/pvp/heroes?ids=$(ids)",
|
|
4802
|
+
tokenRequired: false
|
|
4803
|
+
}
|
|
4768
4804
|
},
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4805
|
+
ranks: {
|
|
4806
|
+
all: {
|
|
4807
|
+
path: "v2/pvp/ranks",
|
|
4808
|
+
tokenRequired: false
|
|
4809
|
+
},
|
|
4810
|
+
byId: {
|
|
4811
|
+
path: "v2/pvp/ranks?ids=$(ids)",
|
|
4812
|
+
tokenRequired: false
|
|
4813
|
+
}
|
|
4772
4814
|
},
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4815
|
+
seasons: {
|
|
4816
|
+
all: {
|
|
4817
|
+
path: "v2/pvp/seasons",
|
|
4818
|
+
tokenRequired: false
|
|
4819
|
+
},
|
|
4820
|
+
byId: {
|
|
4821
|
+
path: "v2/pvp/seasons?ids=$(ids)",
|
|
4822
|
+
tokenRequired: false
|
|
4823
|
+
}
|
|
4776
4824
|
},
|
|
4777
4825
|
leaderboards: {
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4826
|
+
all: {
|
|
4827
|
+
path: "v2/pvp/seasons/$(id)/leaderboards",
|
|
4828
|
+
tokenRequired: false
|
|
4829
|
+
},
|
|
4830
|
+
byType: {
|
|
4831
|
+
path: "v2/pvp/seasons/$(id)/leaderboards/$(type)/$(region)",
|
|
4832
|
+
tokenRequired: false
|
|
4833
|
+
}
|
|
4784
4834
|
},
|
|
4785
4835
|
standings: {
|
|
4786
4836
|
path: "v2/pvp/standings",
|
|
@@ -4832,6 +4882,10 @@ var endpoints = {
|
|
|
4832
4882
|
}
|
|
4833
4883
|
},
|
|
4834
4884
|
recipes: {
|
|
4885
|
+
all: {
|
|
4886
|
+
path: "v2/recipes",
|
|
4887
|
+
tokenRequired: false
|
|
4888
|
+
},
|
|
4835
4889
|
byId: {
|
|
4836
4890
|
/**
|
|
4837
4891
|
* TODO: The hardcoded schema could use some work
|
|
@@ -4839,10 +4893,6 @@ var endpoints = {
|
|
|
4839
4893
|
path: "v2/recipes?ids=$(ids)&v=2022-03-09T02:00:00.000Z",
|
|
4840
4894
|
tokenRequired: false
|
|
4841
4895
|
},
|
|
4842
|
-
all: {
|
|
4843
|
-
path: "v2/recipes",
|
|
4844
|
-
tokenRequired: false
|
|
4845
|
-
},
|
|
4846
4896
|
search: {
|
|
4847
4897
|
path: "v2/recipes/search?$(type)=$(ids)",
|
|
4848
4898
|
tokenRequired: false
|
|
@@ -4931,21 +4981,25 @@ var endpoints = {
|
|
|
4931
4981
|
path: "v2/wizardsvault",
|
|
4932
4982
|
tokenRequired: false
|
|
4933
4983
|
},
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
path: "v2/wizardsvault/objectives",
|
|
4944
|
-
tokenRequired: false
|
|
4984
|
+
listings: {
|
|
4985
|
+
all: {
|
|
4986
|
+
path: "v2/wizardsvault/listings",
|
|
4987
|
+
tokenRequired: false
|
|
4988
|
+
},
|
|
4989
|
+
byId: {
|
|
4990
|
+
path: "v2/wizardsvault/listings?ids=$(ids)",
|
|
4991
|
+
tokenRequired: false
|
|
4992
|
+
}
|
|
4945
4993
|
},
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4994
|
+
objectives: {
|
|
4995
|
+
all: {
|
|
4996
|
+
path: "v2/wizardsvault/objectives",
|
|
4997
|
+
tokenRequired: false
|
|
4998
|
+
},
|
|
4999
|
+
byId: {
|
|
5000
|
+
path: "v2/wizardsvault/objectives?ids=$(ids)",
|
|
5001
|
+
tokenRequired: false
|
|
5002
|
+
}
|
|
4949
5003
|
}
|
|
4950
5004
|
},
|
|
4951
5005
|
worldBosses: {
|
|
@@ -4964,48 +5018,58 @@ var endpoints = {
|
|
|
4964
5018
|
},
|
|
4965
5019
|
wvw: {
|
|
4966
5020
|
abilities: {
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
5021
|
+
all: {
|
|
5022
|
+
path: "v2/wvw/abilities",
|
|
5023
|
+
tokenRequired: false
|
|
5024
|
+
},
|
|
5025
|
+
byId: {
|
|
5026
|
+
path: "v2/wvw/abilities?ids=$(ids)",
|
|
5027
|
+
tokenRequired: false
|
|
5028
|
+
}
|
|
4973
5029
|
},
|
|
4974
5030
|
matches: {
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
5031
|
+
all: {
|
|
5032
|
+
path: "v2/wvw/matches",
|
|
5033
|
+
tokenRequired: false
|
|
5034
|
+
},
|
|
5035
|
+
byId: {
|
|
5036
|
+
path: "v2/wvw/matches?ids=$(ids)",
|
|
5037
|
+
tokenRequired: false
|
|
5038
|
+
},
|
|
5039
|
+
byWorld: {
|
|
5040
|
+
path: "v2/wvw/matches/$(type)?world=$(world)",
|
|
5041
|
+
tokenRequired: false
|
|
5042
|
+
}
|
|
4985
5043
|
},
|
|
4986
5044
|
objectives: {
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
5045
|
+
all: {
|
|
5046
|
+
path: "v2/wvw/objectives",
|
|
5047
|
+
tokenRequired: false
|
|
5048
|
+
},
|
|
5049
|
+
byId: {
|
|
5050
|
+
path: "v2/wvw/objectives?ids=$(ids)",
|
|
5051
|
+
tokenRequired: false
|
|
5052
|
+
}
|
|
4993
5053
|
},
|
|
4994
5054
|
ranks: {
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
path: "v2/wvw/upgrades?ids=$(ids)",
|
|
5004
|
-
tokenRequired: false
|
|
5055
|
+
all: {
|
|
5056
|
+
path: "v2/wvw/ranks",
|
|
5057
|
+
tokenRequired: false
|
|
5058
|
+
},
|
|
5059
|
+
byId: {
|
|
5060
|
+
path: "v2/wvw/ranks?ids=$(ids)",
|
|
5061
|
+
tokenRequired: false
|
|
5062
|
+
}
|
|
5005
5063
|
},
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5064
|
+
upgrades: {
|
|
5065
|
+
all: {
|
|
5066
|
+
path: "v2/wvw/upgrades",
|
|
5067
|
+
tokenRequired: false
|
|
5068
|
+
},
|
|
5069
|
+
byId: {
|
|
5070
|
+
path: "v2/wvw/upgrades?ids=$(ids)",
|
|
5071
|
+
tokenRequired: false
|
|
5072
|
+
}
|
|
5009
5073
|
}
|
|
5010
5074
|
}
|
|
5011
5075
|
};
|
|
@@ -5094,7 +5158,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5094
5158
|
*/
|
|
5095
5159
|
async getHomeNodes() {
|
|
5096
5160
|
return await this.buildRequest(
|
|
5097
|
-
endpoints.account.
|
|
5161
|
+
endpoints.account.home.nodes,
|
|
5098
5162
|
{},
|
|
5099
5163
|
AccountHomeNodesDTO
|
|
5100
5164
|
);
|
|
@@ -5103,14 +5167,14 @@ var AccountApi = class extends ApiBase {
|
|
|
5103
5167
|
* Returns information about unlocked home instance cats.
|
|
5104
5168
|
*/
|
|
5105
5169
|
async getHomeCats() {
|
|
5106
|
-
return await this.buildRequest(endpoints.account.
|
|
5170
|
+
return await this.buildRequest(endpoints.account.home.cats, {}, AccountHomeCatsDTO);
|
|
5107
5171
|
}
|
|
5108
5172
|
/**
|
|
5109
5173
|
* Returns information about unlocked homestead decorations.
|
|
5110
5174
|
*/
|
|
5111
5175
|
async getHomesteadDecorations() {
|
|
5112
5176
|
return await this.buildRequest(
|
|
5113
|
-
endpoints.account.
|
|
5177
|
+
endpoints.account.homestead.decorations,
|
|
5114
5178
|
{},
|
|
5115
5179
|
AccountHomesteadDecorationsDTO
|
|
5116
5180
|
);
|
|
@@ -5120,7 +5184,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5120
5184
|
*/
|
|
5121
5185
|
async getHomesteadGlyphs() {
|
|
5122
5186
|
return await this.buildRequest(
|
|
5123
|
-
endpoints.account.
|
|
5187
|
+
endpoints.account.homestead.glyphs,
|
|
5124
5188
|
{},
|
|
5125
5189
|
AccountHomesteadGlyphsDTO
|
|
5126
5190
|
);
|
|
@@ -5221,7 +5285,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5221
5285
|
*/
|
|
5222
5286
|
async getMountSkins() {
|
|
5223
5287
|
return await this.buildRequest(
|
|
5224
|
-
endpoints.account.
|
|
5288
|
+
endpoints.account.mounts.skins,
|
|
5225
5289
|
{},
|
|
5226
5290
|
AccountMountSkinsDTO
|
|
5227
5291
|
);
|
|
@@ -5231,7 +5295,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5231
5295
|
*/
|
|
5232
5296
|
async getMountTypes() {
|
|
5233
5297
|
return await this.buildRequest(
|
|
5234
|
-
endpoints.account.
|
|
5298
|
+
endpoints.account.mounts.types,
|
|
5235
5299
|
{},
|
|
5236
5300
|
AccountMountTypesDTO
|
|
5237
5301
|
);
|
|
@@ -5313,7 +5377,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5313
5377
|
*/
|
|
5314
5378
|
async getWizardsVaultDaily() {
|
|
5315
5379
|
return await this.buildRequest(
|
|
5316
|
-
endpoints.account.
|
|
5380
|
+
endpoints.account.wizardsVault.daily,
|
|
5317
5381
|
{},
|
|
5318
5382
|
AccountWizardsVaultDailyDTO
|
|
5319
5383
|
);
|
|
@@ -5323,7 +5387,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5323
5387
|
*/
|
|
5324
5388
|
async getWizardsVaultListings() {
|
|
5325
5389
|
return await this.buildRequest(
|
|
5326
|
-
endpoints.account.
|
|
5390
|
+
endpoints.account.wizardsVault.listings,
|
|
5327
5391
|
{},
|
|
5328
5392
|
AccountWizardsVaultListingsDTO
|
|
5329
5393
|
);
|
|
@@ -5333,7 +5397,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5333
5397
|
*/
|
|
5334
5398
|
async getWizardsVaultSpecial() {
|
|
5335
5399
|
return await this.buildRequest(
|
|
5336
|
-
endpoints.account.
|
|
5400
|
+
endpoints.account.wizardsVault.special,
|
|
5337
5401
|
{},
|
|
5338
5402
|
AccountWizardsVaultSpecialDTO
|
|
5339
5403
|
);
|
|
@@ -5343,7 +5407,7 @@ var AccountApi = class extends ApiBase {
|
|
|
5343
5407
|
*/
|
|
5344
5408
|
async getWizardsVaultWeekly() {
|
|
5345
5409
|
return await this.buildRequest(
|
|
5346
|
-
endpoints.account.
|
|
5410
|
+
endpoints.account.wizardsVault.weekly,
|
|
5347
5411
|
{},
|
|
5348
5412
|
AccountWizardsVaultWeeklyDTO
|
|
5349
5413
|
);
|
|
@@ -5365,20 +5429,24 @@ var AchievementsApi = class extends ApiBase {
|
|
|
5365
5429
|
async getCategories(ids) {
|
|
5366
5430
|
if (ids)
|
|
5367
5431
|
return await this.buildRequest(
|
|
5368
|
-
endpoints.achievements.categories,
|
|
5432
|
+
endpoints.achievements.categories.byId,
|
|
5369
5433
|
{ ids },
|
|
5370
5434
|
AchievementCategoriesDTO
|
|
5371
5435
|
);
|
|
5372
|
-
return await this.buildRequest(
|
|
5436
|
+
return await this.buildRequest(
|
|
5437
|
+
endpoints.achievements.categories.all,
|
|
5438
|
+
{},
|
|
5439
|
+
numberArrayType
|
|
5440
|
+
);
|
|
5373
5441
|
}
|
|
5374
5442
|
async getGroups(id) {
|
|
5375
5443
|
if (id)
|
|
5376
5444
|
return await this.buildRequest(
|
|
5377
|
-
endpoints.achievements.
|
|
5445
|
+
endpoints.achievements.groups.byId,
|
|
5378
5446
|
{ id },
|
|
5379
5447
|
AchievementGroupsDTO
|
|
5380
5448
|
);
|
|
5381
|
-
return await this.buildRequest(endpoints.achievements.
|
|
5449
|
+
return await this.buildRequest(endpoints.achievements.groups.all, {}, stringArrayType);
|
|
5382
5450
|
}
|
|
5383
5451
|
};
|
|
5384
5452
|
|
|
@@ -5474,7 +5542,7 @@ var CharactersApi = class extends ApiBase {
|
|
|
5474
5542
|
}
|
|
5475
5543
|
}
|
|
5476
5544
|
return await this.buildRequest(
|
|
5477
|
-
endpoints.characters.
|
|
5545
|
+
endpoints.characters.equipmentTabs.byId,
|
|
5478
5546
|
{
|
|
5479
5547
|
id,
|
|
5480
5548
|
tabs
|
|
@@ -5489,7 +5557,7 @@ var CharactersApi = class extends ApiBase {
|
|
|
5489
5557
|
*/
|
|
5490
5558
|
async getActiveEquipmentTab(id) {
|
|
5491
5559
|
return await this.buildRequest(
|
|
5492
|
-
endpoints.characters.
|
|
5560
|
+
endpoints.characters.equipmentTabs.active,
|
|
5493
5561
|
{ id },
|
|
5494
5562
|
CharacterEquipmentTabDTO
|
|
5495
5563
|
);
|
|
@@ -5621,27 +5689,23 @@ var CommerceApi = class extends ApiBase {
|
|
|
5621
5689
|
CommerceExchangeDTO
|
|
5622
5690
|
);
|
|
5623
5691
|
}
|
|
5624
|
-
/**
|
|
5625
|
-
* Returns current buy and sell listings from the trading post.
|
|
5626
|
-
* TODO: Functionality to return a complete list of every listing is currently unsupported
|
|
5627
|
-
*
|
|
5628
|
-
* @param ids - Listing ids
|
|
5629
|
-
*/
|
|
5630
5692
|
async getListings(ids) {
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5693
|
+
if (ids)
|
|
5694
|
+
return await this.buildRequest(
|
|
5695
|
+
endpoints.commerce.listings.byId,
|
|
5696
|
+
{ ids },
|
|
5697
|
+
CommerceListingsDTO
|
|
5698
|
+
);
|
|
5699
|
+
return await this.buildRequest(endpoints.commerce.listings.all, {}, numberArrayType);
|
|
5636
5700
|
}
|
|
5637
|
-
/**
|
|
5638
|
-
* Returns current aggregated buy and sell listing information from the trading post.
|
|
5639
|
-
* TODO: Functionality to return a complete list of every listing is currently unsupported
|
|
5640
|
-
*
|
|
5641
|
-
* @param ids - Item ids
|
|
5642
|
-
*/
|
|
5643
5701
|
async getPrices(ids) {
|
|
5644
|
-
|
|
5702
|
+
if (ids)
|
|
5703
|
+
return await this.buildRequest(
|
|
5704
|
+
endpoints.commerce.prices.byId,
|
|
5705
|
+
{ ids },
|
|
5706
|
+
CommercePricesDTO
|
|
5707
|
+
);
|
|
5708
|
+
return await this.buildRequest(endpoints.commerce.prices.all, {}, numberArrayType);
|
|
5645
5709
|
}
|
|
5646
5710
|
/**
|
|
5647
5711
|
* Provides access to the current and historical transactions of a player.
|
|
@@ -5772,11 +5836,11 @@ var GuildApi = class extends ApiBase {
|
|
|
5772
5836
|
async getPermissions(ids) {
|
|
5773
5837
|
if (ids)
|
|
5774
5838
|
return await this.buildRequest(
|
|
5775
|
-
endpoints.guild.
|
|
5839
|
+
endpoints.guild.permissions.byId,
|
|
5776
5840
|
{ ids },
|
|
5777
5841
|
GuildPermissionsDTO
|
|
5778
5842
|
);
|
|
5779
|
-
return await this.buildRequest(endpoints.guild.
|
|
5843
|
+
return await this.buildRequest(endpoints.guild.permissions.all, {}, stringArrayType);
|
|
5780
5844
|
}
|
|
5781
5845
|
/**
|
|
5782
5846
|
* Returns information on guild ids to be used for other API queries.
|
|
@@ -5833,23 +5897,27 @@ var HomesteadApi = class extends ApiBase {
|
|
|
5833
5897
|
async getDecorations(ids) {
|
|
5834
5898
|
if (ids) {
|
|
5835
5899
|
return await this.buildRequest(
|
|
5836
|
-
endpoints.homestead.
|
|
5900
|
+
endpoints.homestead.decorations.byId,
|
|
5837
5901
|
{ ids },
|
|
5838
5902
|
HomesteadDecorationsDTO
|
|
5839
5903
|
);
|
|
5840
5904
|
}
|
|
5841
|
-
return await this.buildRequest(
|
|
5905
|
+
return await this.buildRequest(
|
|
5906
|
+
endpoints.homestead.decorations.all,
|
|
5907
|
+
{},
|
|
5908
|
+
numberArrayType
|
|
5909
|
+
);
|
|
5842
5910
|
}
|
|
5843
5911
|
async getCategories(ids) {
|
|
5844
5912
|
if (ids) {
|
|
5845
5913
|
return await this.buildRequest(
|
|
5846
|
-
endpoints.homestead.
|
|
5914
|
+
endpoints.homestead.decorationsCategories.byId,
|
|
5847
5915
|
{ ids },
|
|
5848
5916
|
HomesteadDecorationsCategoriesDTO
|
|
5849
5917
|
);
|
|
5850
5918
|
}
|
|
5851
5919
|
return await this.buildRequest(
|
|
5852
|
-
endpoints.homestead.
|
|
5920
|
+
endpoints.homestead.decorationsCategories.all,
|
|
5853
5921
|
{},
|
|
5854
5922
|
numberArrayType
|
|
5855
5923
|
);
|
|
@@ -5857,12 +5925,12 @@ var HomesteadApi = class extends ApiBase {
|
|
|
5857
5925
|
async getGlyphs(ids) {
|
|
5858
5926
|
if (ids) {
|
|
5859
5927
|
return await this.buildRequest(
|
|
5860
|
-
endpoints.homestead.
|
|
5928
|
+
endpoints.homestead.glyphs.byId,
|
|
5861
5929
|
{ ids },
|
|
5862
5930
|
HomesteadGlyphsDTO
|
|
5863
5931
|
);
|
|
5864
5932
|
}
|
|
5865
|
-
return await this.buildRequest(endpoints.homestead.
|
|
5933
|
+
return await this.buildRequest(endpoints.homestead.glyphs.all, {}, stringArrayType);
|
|
5866
5934
|
}
|
|
5867
5935
|
};
|
|
5868
5936
|
|
|
@@ -5871,20 +5939,20 @@ var BackstoryApi = class extends ApiBase {
|
|
|
5871
5939
|
async getAnswers(ids) {
|
|
5872
5940
|
if (ids)
|
|
5873
5941
|
return await this.buildRequest(
|
|
5874
|
-
endpoints.backstory.
|
|
5942
|
+
endpoints.backstory.answers.byId,
|
|
5875
5943
|
{ ids },
|
|
5876
5944
|
BackstoryAnswersDTO
|
|
5877
5945
|
);
|
|
5878
|
-
return await this.buildRequest(endpoints.backstory.
|
|
5946
|
+
return await this.buildRequest(endpoints.backstory.answers.all, {}, stringArrayType);
|
|
5879
5947
|
}
|
|
5880
5948
|
async getQuestions(ids) {
|
|
5881
5949
|
if (ids)
|
|
5882
5950
|
return await this.buildRequest(
|
|
5883
|
-
endpoints.backstory.
|
|
5951
|
+
endpoints.backstory.questions.byId,
|
|
5884
5952
|
{ ids },
|
|
5885
5953
|
BackstoryQuestionsDTO
|
|
5886
5954
|
);
|
|
5887
|
-
return await this.buildRequest(endpoints.backstory.
|
|
5955
|
+
return await this.buildRequest(endpoints.backstory.questions.all, {}, numberArrayType);
|
|
5888
5956
|
}
|
|
5889
5957
|
};
|
|
5890
5958
|
|
|
@@ -6372,34 +6440,34 @@ var WorldsApi = class extends ApiBase {
|
|
|
6372
6440
|
var PvPApi = class extends ApiBase {
|
|
6373
6441
|
async getAmulets(ids) {
|
|
6374
6442
|
if (ids)
|
|
6375
|
-
return await this.buildRequest(endpoints.pvp.
|
|
6376
|
-
return await this.buildRequest(endpoints.pvp.
|
|
6443
|
+
return await this.buildRequest(endpoints.pvp.amulets.byId, { ids }, PvPAmuletsDTO);
|
|
6444
|
+
return await this.buildRequest(endpoints.pvp.amulets.all, {}, numberArrayType);
|
|
6377
6445
|
}
|
|
6378
6446
|
async getGames(ids) {
|
|
6379
|
-
if (ids) return await this.buildRequest(endpoints.pvp.
|
|
6380
|
-
return await this.buildRequest(endpoints.pvp.
|
|
6447
|
+
if (ids) return await this.buildRequest(endpoints.pvp.games.byId, { ids }, PvPGamesDTO);
|
|
6448
|
+
return await this.buildRequest(endpoints.pvp.games.all, {}, stringArrayType);
|
|
6381
6449
|
}
|
|
6382
6450
|
async getHeroes(ids) {
|
|
6383
|
-
if (ids) return await this.buildRequest(endpoints.pvp.
|
|
6384
|
-
return await this.buildRequest(endpoints.pvp.
|
|
6451
|
+
if (ids) return await this.buildRequest(endpoints.pvp.heroes.byId, { ids }, PvPHeroesDTO);
|
|
6452
|
+
return await this.buildRequest(endpoints.pvp.heroes.all, {}, stringArrayType);
|
|
6385
6453
|
}
|
|
6386
6454
|
async getRanks(ids) {
|
|
6387
|
-
if (ids) return await this.buildRequest(endpoints.pvp.
|
|
6388
|
-
return await this.buildRequest(endpoints.pvp.
|
|
6455
|
+
if (ids) return await this.buildRequest(endpoints.pvp.ranks.byId, { ids }, PvPRanksDTO);
|
|
6456
|
+
return await this.buildRequest(endpoints.pvp.ranks.all, {}, numberArrayType);
|
|
6389
6457
|
}
|
|
6390
6458
|
async getSeasons(ids) {
|
|
6391
|
-
if (ids) return await this.buildRequest(endpoints.pvp.
|
|
6392
|
-
return await this.buildRequest(endpoints.pvp.
|
|
6459
|
+
if (ids) return await this.buildRequest(endpoints.pvp.seasons.byId, { ids }, PvPSeasonDTO);
|
|
6460
|
+
return await this.buildRequest(endpoints.pvp.seasons.all, {}, stringArrayType);
|
|
6393
6461
|
}
|
|
6394
6462
|
async getLeaderboards(id, region, type) {
|
|
6395
6463
|
if (type && region)
|
|
6396
6464
|
return await this.buildRequest(
|
|
6397
|
-
endpoints.pvp.leaderboards,
|
|
6465
|
+
endpoints.pvp.leaderboards.byType,
|
|
6398
6466
|
{ id, type, region },
|
|
6399
6467
|
PvPSeasonLeaderboardsDTO
|
|
6400
6468
|
);
|
|
6401
6469
|
return await this.buildRequest(
|
|
6402
|
-
endpoints.pvp.
|
|
6470
|
+
endpoints.pvp.leaderboards.all,
|
|
6403
6471
|
{ id },
|
|
6404
6472
|
PvPSeasonLeaderboardRegionsDTO
|
|
6405
6473
|
);
|
|
@@ -6429,21 +6497,25 @@ var WizardsVaultApi = class extends ApiBase {
|
|
|
6429
6497
|
async getListings(ids) {
|
|
6430
6498
|
if (ids)
|
|
6431
6499
|
return await this.buildRequest(
|
|
6432
|
-
endpoints.wizardsVault.
|
|
6500
|
+
endpoints.wizardsVault.listings.byId,
|
|
6433
6501
|
{ ids },
|
|
6434
6502
|
WizardsVaultListingsDTO
|
|
6435
6503
|
);
|
|
6436
|
-
return await this.buildRequest(
|
|
6504
|
+
return await this.buildRequest(
|
|
6505
|
+
endpoints.wizardsVault.listings.all,
|
|
6506
|
+
{},
|
|
6507
|
+
numberArrayType
|
|
6508
|
+
);
|
|
6437
6509
|
}
|
|
6438
6510
|
async getObjectives(ids) {
|
|
6439
6511
|
if (ids)
|
|
6440
6512
|
return await this.buildRequest(
|
|
6441
|
-
endpoints.wizardsVault.
|
|
6513
|
+
endpoints.wizardsVault.objectives.byId,
|
|
6442
6514
|
{ ids },
|
|
6443
6515
|
WizardsVaultObjectivesDTO
|
|
6444
6516
|
);
|
|
6445
6517
|
return await this.buildRequest(
|
|
6446
|
-
endpoints.wizardsVault.
|
|
6518
|
+
endpoints.wizardsVault.objectives.all,
|
|
6447
6519
|
{},
|
|
6448
6520
|
numberArrayType
|
|
6449
6521
|
);
|
|
@@ -6455,17 +6527,17 @@ var WorldVsWorldApi = class extends ApiBase {
|
|
|
6455
6527
|
async getAbilities(ids) {
|
|
6456
6528
|
if (ids)
|
|
6457
6529
|
return await this.buildRequest(
|
|
6458
|
-
endpoints.wvw.
|
|
6530
|
+
endpoints.wvw.abilities.byId,
|
|
6459
6531
|
{ ids },
|
|
6460
6532
|
WvWAbilitiesDTO
|
|
6461
6533
|
);
|
|
6462
|
-
return await this.buildRequest(endpoints.wvw.abilities, {}, numberArrayType);
|
|
6534
|
+
return await this.buildRequest(endpoints.wvw.abilities.all, {}, numberArrayType);
|
|
6463
6535
|
}
|
|
6464
6536
|
async getMatches(ids) {
|
|
6465
6537
|
if (ids) {
|
|
6466
|
-
return await this.buildRequest(endpoints.wvw.
|
|
6538
|
+
return await this.buildRequest(endpoints.wvw.matches.byId, { ids }, WvWMatchesDTO);
|
|
6467
6539
|
}
|
|
6468
|
-
return await this.buildRequest(endpoints.wvw.matches, {}, stringArrayType);
|
|
6540
|
+
return await this.buildRequest(endpoints.wvw.matches.all, {}, stringArrayType);
|
|
6469
6541
|
}
|
|
6470
6542
|
/**
|
|
6471
6543
|
* Returns further details about the specified match, including the total score, kills and deaths, and further details for each map.
|
|
@@ -6477,7 +6549,7 @@ var WorldVsWorldApi = class extends ApiBase {
|
|
|
6477
6549
|
async getMatchesByWorld(type, world) {
|
|
6478
6550
|
if (type === "overview") {
|
|
6479
6551
|
return await this.buildRequest(
|
|
6480
|
-
endpoints.wvw.
|
|
6552
|
+
endpoints.wvw.matches.byWorld,
|
|
6481
6553
|
{
|
|
6482
6554
|
type,
|
|
6483
6555
|
world
|
|
@@ -6487,7 +6559,7 @@ var WorldVsWorldApi = class extends ApiBase {
|
|
|
6487
6559
|
}
|
|
6488
6560
|
if (type === "scores") {
|
|
6489
6561
|
return await this.buildRequest(
|
|
6490
|
-
endpoints.wvw.
|
|
6562
|
+
endpoints.wvw.matches.byWorld,
|
|
6491
6563
|
{
|
|
6492
6564
|
type,
|
|
6493
6565
|
world
|
|
@@ -6496,7 +6568,7 @@ var WorldVsWorldApi = class extends ApiBase {
|
|
|
6496
6568
|
);
|
|
6497
6569
|
}
|
|
6498
6570
|
return await this.buildRequest(
|
|
6499
|
-
endpoints.wvw.
|
|
6571
|
+
endpoints.wvw.matches.byWorld,
|
|
6500
6572
|
{
|
|
6501
6573
|
type,
|
|
6502
6574
|
world
|
|
@@ -6507,20 +6579,20 @@ var WorldVsWorldApi = class extends ApiBase {
|
|
|
6507
6579
|
async getObjectives(ids) {
|
|
6508
6580
|
if (ids)
|
|
6509
6581
|
return await this.buildRequest(
|
|
6510
|
-
endpoints.wvw.
|
|
6582
|
+
endpoints.wvw.objectives.byId,
|
|
6511
6583
|
{ ids },
|
|
6512
6584
|
WvWObjectivesDTO
|
|
6513
6585
|
);
|
|
6514
|
-
return await this.buildRequest(endpoints.wvw.objectives, {}, stringArrayType);
|
|
6586
|
+
return await this.buildRequest(endpoints.wvw.objectives.all, {}, stringArrayType);
|
|
6515
6587
|
}
|
|
6516
6588
|
async getRanks(ids) {
|
|
6517
|
-
if (ids) return await this.buildRequest(endpoints.wvw.
|
|
6518
|
-
return await this.buildRequest(endpoints.wvw.ranks, {}, numberArrayType);
|
|
6589
|
+
if (ids) return await this.buildRequest(endpoints.wvw.ranks.byId, { ids }, WvWRanksDTO);
|
|
6590
|
+
return await this.buildRequest(endpoints.wvw.ranks.all, {}, numberArrayType);
|
|
6519
6591
|
}
|
|
6520
6592
|
async getUpgrades(ids) {
|
|
6521
6593
|
if (ids)
|
|
6522
|
-
return await this.buildRequest(endpoints.wvw.
|
|
6523
|
-
return await this.buildRequest(endpoints.wvw.
|
|
6594
|
+
return await this.buildRequest(endpoints.wvw.upgrades.byId, { ids }, WvWUpgradesDTO);
|
|
6595
|
+
return await this.buildRequest(endpoints.wvw.upgrades.all, {}, numberArrayType);
|
|
6524
6596
|
}
|
|
6525
6597
|
};
|
|
6526
6598
|
|