guildwars2-ts 1.0.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/LICENSE +16 -16
- package/README.md +1 -1
- package/dist/index.d.mts +60 -164
- package/dist/index.d.ts +60 -164
- package/dist/index.js +935 -1047
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +935 -1047
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -8
package/LICENSE
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Ivan Sosnov
|
|
4
|
-
Copyright (c) 2021 Julio Sansossio (parts of request base code)
|
|
5
|
-
|
|
6
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
8
|
-
copyright notice and this permission notice appear in all copies.
|
|
9
|
-
|
|
10
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Ivan Sosnov
|
|
4
|
+
Copyright (c) 2021 Julio Sansossio (parts of request base code)
|
|
5
|
+
|
|
6
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
8
|
+
copyright notice and this permission notice appear in all copies.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
+
PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -51,4 +51,4 @@ If you find any kinds of errors in the program code, or wish to add/update any o
|
|
|
51
51
|
[npm-image]: https://img.shields.io/npm/v/guildwars2-ts
|
|
52
52
|
[npm-link]: https://www.npmjs.com/package/guildwars2-ts
|
|
53
53
|
[license]: https://img.shields.io/gitlab/license/dinckelman%2Fguildwars2-ts
|
|
54
|
-
[license-file]:
|
|
54
|
+
[license-file]: LICENSE
|
package/dist/index.d.mts
CHANGED
|
@@ -6291,7 +6291,7 @@ declare const ProfessionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
6291
6291
|
/** The skill id. Can be resolved against /v2/skills. */
|
|
6292
6292
|
id: z.ZodNumber;
|
|
6293
6293
|
/** The skill bar slot that this weapon skill can be used in. */
|
|
6294
|
-
slot: z.ZodEnum<["Profession_1", "
|
|
6294
|
+
slot: z.ZodUnion<[z.ZodEnum<["Profession_1", "Utility", "Heal", "Elite"]>, z.ZodType<`Weapon_${number}`, z.ZodTypeDef, `Weapon_${number}`>]>;
|
|
6295
6295
|
/** The name of the offhand weapon this skill requires to be equipped. This field is usually only present for Thief skills. */
|
|
6296
6296
|
offhand: z.ZodOptional<z.ZodString>;
|
|
6297
6297
|
/** The Elementalist attunement that this skill requires. This field is usually only present for Elementalist skills. */
|
|
@@ -6300,13 +6300,13 @@ declare const ProfessionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
6300
6300
|
source: z.ZodOptional<z.ZodString>;
|
|
6301
6301
|
}, "strip", z.ZodTypeAny, {
|
|
6302
6302
|
id: number;
|
|
6303
|
-
slot: "Utility" | "Profession_1" | "
|
|
6303
|
+
slot: "Utility" | "Profession_1" | "Heal" | "Elite" | `Weapon_${number}`;
|
|
6304
6304
|
offhand?: string | undefined;
|
|
6305
6305
|
attunement?: string | undefined;
|
|
6306
6306
|
source?: string | undefined;
|
|
6307
6307
|
}, {
|
|
6308
6308
|
id: number;
|
|
6309
|
-
slot: "Utility" | "Profession_1" | "
|
|
6309
|
+
slot: "Utility" | "Profession_1" | "Heal" | "Elite" | `Weapon_${number}`;
|
|
6310
6310
|
offhand?: string | undefined;
|
|
6311
6311
|
attunement?: string | undefined;
|
|
6312
6312
|
source?: string | undefined;
|
|
@@ -6314,7 +6314,7 @@ declare const ProfessionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
6314
6314
|
}, "strip", z.ZodTypeAny, {
|
|
6315
6315
|
skills: {
|
|
6316
6316
|
id: number;
|
|
6317
|
-
slot: "Utility" | "Profession_1" | "
|
|
6317
|
+
slot: "Utility" | "Profession_1" | "Heal" | "Elite" | `Weapon_${number}`;
|
|
6318
6318
|
offhand?: string | undefined;
|
|
6319
6319
|
attunement?: string | undefined;
|
|
6320
6320
|
source?: string | undefined;
|
|
@@ -6324,7 +6324,7 @@ declare const ProfessionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
6324
6324
|
}, {
|
|
6325
6325
|
skills: {
|
|
6326
6326
|
id: number;
|
|
6327
|
-
slot: "Utility" | "Profession_1" | "
|
|
6327
|
+
slot: "Utility" | "Profession_1" | "Heal" | "Elite" | `Weapon_${number}`;
|
|
6328
6328
|
offhand?: string | undefined;
|
|
6329
6329
|
attunement?: string | undefined;
|
|
6330
6330
|
source?: string | undefined;
|
|
@@ -6361,7 +6361,7 @@ declare const ProfessionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
6361
6361
|
weapons: Partial<Record<"Axe" | "Dagger" | "Focus" | "Greatsword" | "Hammer" | "Mace" | "Pistol" | "Rifle" | "Scepter" | "Shield" | "Speargun" | "Staff" | "Sword" | "Torch" | "Trident" | "Warhorn" | "Longbow" | "Shortbow" | "Spear", {
|
|
6362
6362
|
skills: {
|
|
6363
6363
|
id: number;
|
|
6364
|
-
slot: "Utility" | "Profession_1" | "
|
|
6364
|
+
slot: "Utility" | "Profession_1" | "Heal" | "Elite" | `Weapon_${number}`;
|
|
6365
6365
|
offhand?: string | undefined;
|
|
6366
6366
|
attunement?: string | undefined;
|
|
6367
6367
|
source?: string | undefined;
|
|
@@ -6395,7 +6395,7 @@ declare const ProfessionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
6395
6395
|
weapons: Partial<Record<"Axe" | "Dagger" | "Focus" | "Greatsword" | "Hammer" | "Mace" | "Pistol" | "Rifle" | "Scepter" | "Shield" | "Speargun" | "Staff" | "Sword" | "Torch" | "Trident" | "Warhorn" | "Longbow" | "Shortbow" | "Spear", {
|
|
6396
6396
|
skills: {
|
|
6397
6397
|
id: number;
|
|
6398
|
-
slot: "Utility" | "Profession_1" | "
|
|
6398
|
+
slot: "Utility" | "Profession_1" | "Heal" | "Elite" | `Weapon_${number}`;
|
|
6399
6399
|
offhand?: string | undefined;
|
|
6400
6400
|
attunement?: string | undefined;
|
|
6401
6401
|
source?: string | undefined;
|
|
@@ -11858,7 +11858,7 @@ declare class SkillsApi extends ApiBase {
|
|
|
11858
11858
|
type: "Weapon" | "Utility" | "Heal" | "Elite" | "Bundle" | "Monster" | "Pet" | "Profession" | "Toolbelt" | "Transform";
|
|
11859
11859
|
description: string;
|
|
11860
11860
|
icon: string;
|
|
11861
|
-
slot: ("Utility" | "Elite" |
|
|
11861
|
+
slot: ("Utility" | "Elite" | `Weapon_${number}` | "Pet" | `Downed_${number}` | `Profession_${number}`) & ("Utility" | "Elite" | `Weapon_${number}` | "Pet" | `Downed_${number}` | `Profession_${number}` | undefined);
|
|
11862
11862
|
chat_link: string;
|
|
11863
11863
|
flags: ("NoUnderwater" | "GroundTargeted")[];
|
|
11864
11864
|
weapon_type: string;
|
|
@@ -12423,213 +12423,109 @@ declare class WorldVsWorldApi extends ApiBase {
|
|
|
12423
12423
|
}
|
|
12424
12424
|
|
|
12425
12425
|
declare class GW2Api extends ApiBase {
|
|
12426
|
-
/**
|
|
12427
|
-
* /v2/account Api
|
|
12428
|
-
*/
|
|
12426
|
+
/** /v2/account Api */
|
|
12429
12427
|
readonly account: AccountApi;
|
|
12430
|
-
/**
|
|
12431
|
-
* /v2/achievements Api
|
|
12432
|
-
*/
|
|
12428
|
+
/** /v2/achievements Api */
|
|
12433
12429
|
readonly achievements: AchievementsApi;
|
|
12434
|
-
/**
|
|
12435
|
-
* /v2/backstory Api
|
|
12436
|
-
*/
|
|
12430
|
+
/** /v2/backstory Api */
|
|
12437
12431
|
readonly backstory: BackstoryApi;
|
|
12438
|
-
/**
|
|
12439
|
-
* /v2/build Api
|
|
12440
|
-
*/
|
|
12432
|
+
/** /v2/build Api */
|
|
12441
12433
|
readonly build: BuildApi;
|
|
12442
|
-
/**
|
|
12443
|
-
* /v2/characters Api
|
|
12444
|
-
*/
|
|
12434
|
+
/** /v2/characters Api */
|
|
12445
12435
|
readonly characters: CharactersApi;
|
|
12446
|
-
/**
|
|
12447
|
-
* /v2/colors Api
|
|
12448
|
-
*/
|
|
12436
|
+
/** /v2/colors Api */
|
|
12449
12437
|
readonly colors: ColorsApi;
|
|
12450
|
-
/**
|
|
12451
|
-
* /v2/commerce Api
|
|
12452
|
-
*/
|
|
12438
|
+
/** /v2/commerce Api */
|
|
12453
12439
|
readonly commerce: CommerceApi;
|
|
12454
|
-
/**
|
|
12455
|
-
* /v2/continents Api
|
|
12456
|
-
*/
|
|
12440
|
+
/** /v2/continents Api */
|
|
12457
12441
|
readonly continents: ContinentsApi;
|
|
12458
|
-
/**
|
|
12459
|
-
* /v2/currencies Api
|
|
12460
|
-
*/
|
|
12442
|
+
/** /v2/currencies Api */
|
|
12461
12443
|
readonly currencies: CurrenciesApi;
|
|
12462
|
-
/**
|
|
12463
|
-
* /v2/dailycrafting Api
|
|
12464
|
-
*/
|
|
12444
|
+
/** /v2/dailycrafting Api */
|
|
12465
12445
|
readonly dailyCrafting: DailyCraftingApi;
|
|
12466
|
-
/**
|
|
12467
|
-
* /v2/dungeons Api
|
|
12468
|
-
*/
|
|
12446
|
+
/** /v2/dungeons Api */
|
|
12469
12447
|
readonly dungeons: DungeonsApi;
|
|
12470
|
-
/**
|
|
12471
|
-
* /v2/emblem Api
|
|
12472
|
-
*/
|
|
12448
|
+
/** /v2/emblem Api */
|
|
12473
12449
|
readonly emblem: EmblemApi;
|
|
12474
|
-
/**
|
|
12475
|
-
* /v2/emotes Api
|
|
12476
|
-
*/
|
|
12450
|
+
/** /v2/emotes Api */
|
|
12477
12451
|
readonly emotes: EmotesApi;
|
|
12478
|
-
/**
|
|
12479
|
-
* /v2/files Api
|
|
12480
|
-
*/
|
|
12452
|
+
/** /v2/files Api */
|
|
12481
12453
|
readonly files: FilesApi;
|
|
12482
|
-
/**
|
|
12483
|
-
* /v2/finishers Api
|
|
12484
|
-
*/
|
|
12454
|
+
/** /v2/finishers Api */
|
|
12485
12455
|
readonly finishers: FinishersApi;
|
|
12486
|
-
/**
|
|
12487
|
-
* /v2/gliders Api
|
|
12488
|
-
*/
|
|
12456
|
+
/** /v2/gliders Api */
|
|
12489
12457
|
readonly gliders: GlidersApi;
|
|
12490
|
-
/**
|
|
12491
|
-
* /v2/guild Api
|
|
12492
|
-
*/
|
|
12458
|
+
/** /v2/guild Api */
|
|
12493
12459
|
readonly guild: GuildApi;
|
|
12494
|
-
/**
|
|
12495
|
-
* /v2/home Api
|
|
12496
|
-
*/
|
|
12460
|
+
/** /v2/home Api */
|
|
12497
12461
|
readonly home: HomeApi;
|
|
12498
|
-
/**
|
|
12499
|
-
* /v2/items Api
|
|
12500
|
-
*/
|
|
12462
|
+
/** /v2/items Api */
|
|
12501
12463
|
readonly items: ItemsApi;
|
|
12502
|
-
/**
|
|
12503
|
-
* /v2/itemstats Api
|
|
12504
|
-
*/
|
|
12464
|
+
/** /v2/itemstats Api */
|
|
12505
12465
|
readonly itemstats: ItemStatsApi;
|
|
12506
|
-
/**
|
|
12507
|
-
* /v2/jadebots Api
|
|
12508
|
-
*/
|
|
12466
|
+
/** /v2/jadebots Api */
|
|
12509
12467
|
readonly jadebots: JadebotsApi;
|
|
12510
|
-
/**
|
|
12511
|
-
* /v2/legendaryarmory Api
|
|
12512
|
-
*/
|
|
12468
|
+
/** /v2/legendaryarmory Api */
|
|
12513
12469
|
readonly legendaryArmory: LegendaryArmoryApi;
|
|
12514
|
-
/**
|
|
12515
|
-
* /v2/legends Api
|
|
12516
|
-
*/
|
|
12470
|
+
/** /v2/legends Api */
|
|
12517
12471
|
readonly legends: LegendsApi;
|
|
12518
|
-
/**
|
|
12519
|
-
* /v2/mailcarriers Api
|
|
12520
|
-
*/
|
|
12472
|
+
/** /v2/mailcarriers Api */
|
|
12521
12473
|
readonly mailCarriers: MailCarriersApi;
|
|
12522
|
-
/**
|
|
12523
|
-
* /v2/mapchests Api
|
|
12524
|
-
*/
|
|
12474
|
+
/** /v2/mapchests Api */
|
|
12525
12475
|
readonly mapChests: MapChestsApi;
|
|
12526
|
-
/**
|
|
12527
|
-
* /v2/maps Api
|
|
12528
|
-
*/
|
|
12476
|
+
/** /v2/maps Api */
|
|
12529
12477
|
readonly maps: MapsApi;
|
|
12530
|
-
/**
|
|
12531
|
-
* /v2/masteries Api
|
|
12532
|
-
*/
|
|
12478
|
+
/** /v2/masteries Api */
|
|
12533
12479
|
readonly masteries: MasteriesApi;
|
|
12534
|
-
/**
|
|
12535
|
-
* /v2/materials Api
|
|
12536
|
-
*/
|
|
12480
|
+
/** /v2/materials Api */
|
|
12537
12481
|
readonly materials: MaterialsApi;
|
|
12538
|
-
/**
|
|
12539
|
-
* /v2/minis Api
|
|
12540
|
-
*/
|
|
12482
|
+
/** /v2/minis Api */
|
|
12541
12483
|
readonly minis: MinisApi;
|
|
12542
|
-
/**
|
|
12543
|
-
* /v2/mounts Api
|
|
12544
|
-
*/
|
|
12484
|
+
/** /v2/mounts Api */
|
|
12545
12485
|
readonly mounts: MountsApi;
|
|
12546
|
-
/**
|
|
12547
|
-
* /v2/novelties Api
|
|
12548
|
-
*/
|
|
12486
|
+
/** /v2/novelties Api */
|
|
12549
12487
|
readonly novelties: NoveltiesApi;
|
|
12550
|
-
/**
|
|
12551
|
-
* /v2/outfits Api
|
|
12552
|
-
*/
|
|
12488
|
+
/** /v2/outfits Api */
|
|
12553
12489
|
readonly outfits: OutfitsApi;
|
|
12554
|
-
/**
|
|
12555
|
-
* /v2/pets Api
|
|
12556
|
-
*/
|
|
12490
|
+
/** /v2/pets Api */
|
|
12557
12491
|
readonly pets: PetsApi;
|
|
12558
|
-
/**
|
|
12559
|
-
* /v2/professions Api
|
|
12560
|
-
*/
|
|
12492
|
+
/** /v2/professions Api */
|
|
12561
12493
|
readonly professions: ProfessionsApi;
|
|
12562
|
-
/**
|
|
12563
|
-
* /v2/pvp Api
|
|
12564
|
-
*/
|
|
12494
|
+
/** /v2/pvp Api */
|
|
12565
12495
|
readonly pvp: PvPApi;
|
|
12566
|
-
/**
|
|
12567
|
-
* /v2/quaggans Api
|
|
12568
|
-
*/
|
|
12496
|
+
/** /v2/quaggans Api */
|
|
12569
12497
|
readonly quaggans: QuaggansApi;
|
|
12570
|
-
/**
|
|
12571
|
-
* /v2/quests Api
|
|
12572
|
-
*/
|
|
12498
|
+
/** /v2/quests Api */
|
|
12573
12499
|
readonly quests: QuestsApi;
|
|
12574
|
-
/**
|
|
12575
|
-
* /v2/races Api
|
|
12576
|
-
*/
|
|
12500
|
+
/** /v2/races Api */
|
|
12577
12501
|
readonly races: RacesApi;
|
|
12578
|
-
/**
|
|
12579
|
-
* /v2/raids Api
|
|
12580
|
-
*/
|
|
12502
|
+
/** /v2/raids Api */
|
|
12581
12503
|
readonly raids: RaidsApi;
|
|
12582
|
-
/**
|
|
12583
|
-
* /v2/recipes Api
|
|
12584
|
-
*/
|
|
12504
|
+
/** /v2/recipes Api */
|
|
12585
12505
|
readonly recipes: RecipesApi;
|
|
12586
|
-
/**
|
|
12587
|
-
* /v2/skiffs Api
|
|
12588
|
-
*/
|
|
12506
|
+
/** /v2/skiffs Api */
|
|
12589
12507
|
readonly skiffs: SkiffsApi;
|
|
12590
|
-
/**
|
|
12591
|
-
* /v2/skills Api
|
|
12592
|
-
*/
|
|
12508
|
+
/** /v2/skills Api */
|
|
12593
12509
|
readonly skills: SkillsApi;
|
|
12594
|
-
/**
|
|
12595
|
-
* /v2/skins Api
|
|
12596
|
-
*/
|
|
12510
|
+
/** /v2/skins Api */
|
|
12597
12511
|
readonly skins: SkinsApi;
|
|
12598
|
-
/**
|
|
12599
|
-
* /v2/specializations Api
|
|
12600
|
-
*/
|
|
12512
|
+
/** /v2/specializations Api */
|
|
12601
12513
|
readonly specializations: SpecializationsApi;
|
|
12602
|
-
/**
|
|
12603
|
-
* /v2/stories Api
|
|
12604
|
-
*/
|
|
12514
|
+
/** /v2/stories Api */
|
|
12605
12515
|
readonly stories: StoriesApi;
|
|
12606
|
-
/**
|
|
12607
|
-
* /v2/subtoken Api
|
|
12608
|
-
*/
|
|
12516
|
+
/** /v2/subtoken Api */
|
|
12609
12517
|
readonly subtoken: SubtokenApi;
|
|
12610
|
-
/**
|
|
12611
|
-
* /v2/titles Api
|
|
12612
|
-
*/
|
|
12518
|
+
/** /v2/titles Api */
|
|
12613
12519
|
readonly titles: TitlesApi;
|
|
12614
|
-
/**
|
|
12615
|
-
* /v2/tokeninfo Api
|
|
12616
|
-
*/
|
|
12520
|
+
/** /v2/tokeninfo Api */
|
|
12617
12521
|
readonly tokenInfo: TokenInfoApi;
|
|
12618
|
-
/**
|
|
12619
|
-
* /v2/traits Api
|
|
12620
|
-
*/
|
|
12522
|
+
/** /v2/traits Api */
|
|
12621
12523
|
readonly traits: TraitsApi;
|
|
12622
|
-
/**
|
|
12623
|
-
* /v2/worldbosses Api
|
|
12624
|
-
*/
|
|
12524
|
+
/** /v2/worldbosses Api */
|
|
12625
12525
|
readonly worldBosses: WorldBossesApi;
|
|
12626
|
-
/**
|
|
12627
|
-
* /v2/worlds Api
|
|
12628
|
-
*/
|
|
12526
|
+
/** /v2/worlds Api */
|
|
12629
12527
|
readonly worlds: WorldsApi;
|
|
12630
|
-
/**
|
|
12631
|
-
* /v2/wvw Api
|
|
12632
|
-
*/
|
|
12528
|
+
/** /v2/wvw Api */
|
|
12633
12529
|
readonly wvw: WorldVsWorldApi;
|
|
12634
12530
|
}
|
|
12635
12531
|
|