guildwars2-ts 1.2.1 → 1.2.2

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 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/dist/index.d.mts CHANGED
@@ -2714,7 +2714,7 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
2714
2714
  } | undefined;
2715
2715
  suffix_item_id?: number | undefined;
2716
2716
  stat_choices?: number[] | undefined;
2717
- }>, z.ZodObject<{
2717
+ }>, z.ZodUndefined, z.ZodObject<{
2718
2718
  /** The upgrade component type. */
2719
2719
  type: z.ZodEnum<["Default", "Gem", "Rune", "Sigil"]>;
2720
2720
  /** The items that can be upgraded with the upgrade component. */
@@ -2966,7 +2966,18 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
2966
2966
  vendor_value: number;
2967
2967
  game_types: ("Activity" | "Dungeon" | "Pve" | "Pvp" | "Wvw" | "PvpLobby")[];
2968
2968
  restrictions: ("Asura" | "Charr" | "Human" | "Norn" | "Sylvari" | "Female" | "Elementalist" | "Engineer" | "Guardian" | "Mesmer" | "Necromancer" | "Ranger" | "Thief" | "Warrior")[];
2969
- details: {
2969
+ description?: string | undefined;
2970
+ icon?: string | undefined;
2971
+ default_skin?: number | undefined;
2972
+ upgrades_into?: {
2973
+ item_id: number;
2974
+ upgrade: "Attunement" | "Infusion";
2975
+ }[] | undefined;
2976
+ upgrades_from?: {
2977
+ item_id: number;
2978
+ upgrade: "Attunement" | "Infusion";
2979
+ }[] | undefined;
2980
+ details?: {
2970
2981
  type: "HelmAquatic" | "Coat" | "Boots" | "Gloves" | "Helm" | "Leggings" | "Shoulders";
2971
2982
  weight_class: "Heavy" | "Medium" | "Light" | "Clothing";
2972
2983
  defense: number;
@@ -3098,18 +3109,7 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
3098
3109
  } | undefined;
3099
3110
  suffix_item_id?: number | undefined;
3100
3111
  stat_choices?: number[] | undefined;
3101
- };
3102
- description?: string | undefined;
3103
- icon?: string | undefined;
3104
- default_skin?: number | undefined;
3105
- upgrades_into?: {
3106
- item_id: number;
3107
- upgrade: "Attunement" | "Infusion";
3108
- }[] | undefined;
3109
- upgrades_from?: {
3110
- item_id: number;
3111
- upgrade: "Attunement" | "Infusion";
3112
- }[] | undefined;
3112
+ } | undefined;
3113
3113
  }, {
3114
3114
  id: number;
3115
3115
  name: string;
@@ -3121,7 +3121,18 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
3121
3121
  vendor_value: number;
3122
3122
  game_types: ("Activity" | "Dungeon" | "Pve" | "Pvp" | "Wvw" | "PvpLobby")[];
3123
3123
  restrictions: ("Asura" | "Charr" | "Human" | "Norn" | "Sylvari" | "Female" | "Elementalist" | "Engineer" | "Guardian" | "Mesmer" | "Necromancer" | "Ranger" | "Thief" | "Warrior")[];
3124
- details: {
3124
+ description?: string | undefined;
3125
+ icon?: string | undefined;
3126
+ default_skin?: number | undefined;
3127
+ upgrades_into?: {
3128
+ item_id: number;
3129
+ upgrade: "Attunement" | "Infusion";
3130
+ }[] | undefined;
3131
+ upgrades_from?: {
3132
+ item_id: number;
3133
+ upgrade: "Attunement" | "Infusion";
3134
+ }[] | undefined;
3135
+ details?: {
3125
3136
  type: "HelmAquatic" | "Coat" | "Boots" | "Gloves" | "Helm" | "Leggings" | "Shoulders";
3126
3137
  weight_class: "Heavy" | "Medium" | "Light" | "Clothing";
3127
3138
  defense: number;
@@ -3253,18 +3264,7 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
3253
3264
  } | undefined;
3254
3265
  suffix_item_id?: number | undefined;
3255
3266
  stat_choices?: number[] | undefined;
3256
- };
3257
- description?: string | undefined;
3258
- icon?: string | undefined;
3259
- default_skin?: number | undefined;
3260
- upgrades_into?: {
3261
- item_id: number;
3262
- upgrade: "Attunement" | "Infusion";
3263
- }[] | undefined;
3264
- upgrades_from?: {
3265
- item_id: number;
3266
- upgrade: "Attunement" | "Infusion";
3267
- }[] | undefined;
3267
+ } | undefined;
3268
3268
  }>, "many">;
3269
3269
 
3270
3270
  /**
package/dist/index.d.ts CHANGED
@@ -2714,7 +2714,7 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
2714
2714
  } | undefined;
2715
2715
  suffix_item_id?: number | undefined;
2716
2716
  stat_choices?: number[] | undefined;
2717
- }>, z.ZodObject<{
2717
+ }>, z.ZodUndefined, z.ZodObject<{
2718
2718
  /** The upgrade component type. */
2719
2719
  type: z.ZodEnum<["Default", "Gem", "Rune", "Sigil"]>;
2720
2720
  /** The items that can be upgraded with the upgrade component. */
@@ -2966,7 +2966,18 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
2966
2966
  vendor_value: number;
2967
2967
  game_types: ("Activity" | "Dungeon" | "Pve" | "Pvp" | "Wvw" | "PvpLobby")[];
2968
2968
  restrictions: ("Asura" | "Charr" | "Human" | "Norn" | "Sylvari" | "Female" | "Elementalist" | "Engineer" | "Guardian" | "Mesmer" | "Necromancer" | "Ranger" | "Thief" | "Warrior")[];
2969
- details: {
2969
+ description?: string | undefined;
2970
+ icon?: string | undefined;
2971
+ default_skin?: number | undefined;
2972
+ upgrades_into?: {
2973
+ item_id: number;
2974
+ upgrade: "Attunement" | "Infusion";
2975
+ }[] | undefined;
2976
+ upgrades_from?: {
2977
+ item_id: number;
2978
+ upgrade: "Attunement" | "Infusion";
2979
+ }[] | undefined;
2980
+ details?: {
2970
2981
  type: "HelmAquatic" | "Coat" | "Boots" | "Gloves" | "Helm" | "Leggings" | "Shoulders";
2971
2982
  weight_class: "Heavy" | "Medium" | "Light" | "Clothing";
2972
2983
  defense: number;
@@ -3098,18 +3109,7 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
3098
3109
  } | undefined;
3099
3110
  suffix_item_id?: number | undefined;
3100
3111
  stat_choices?: number[] | undefined;
3101
- };
3102
- description?: string | undefined;
3103
- icon?: string | undefined;
3104
- default_skin?: number | undefined;
3105
- upgrades_into?: {
3106
- item_id: number;
3107
- upgrade: "Attunement" | "Infusion";
3108
- }[] | undefined;
3109
- upgrades_from?: {
3110
- item_id: number;
3111
- upgrade: "Attunement" | "Infusion";
3112
- }[] | undefined;
3112
+ } | undefined;
3113
3113
  }, {
3114
3114
  id: number;
3115
3115
  name: string;
@@ -3121,7 +3121,18 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
3121
3121
  vendor_value: number;
3122
3122
  game_types: ("Activity" | "Dungeon" | "Pve" | "Pvp" | "Wvw" | "PvpLobby")[];
3123
3123
  restrictions: ("Asura" | "Charr" | "Human" | "Norn" | "Sylvari" | "Female" | "Elementalist" | "Engineer" | "Guardian" | "Mesmer" | "Necromancer" | "Ranger" | "Thief" | "Warrior")[];
3124
- details: {
3124
+ description?: string | undefined;
3125
+ icon?: string | undefined;
3126
+ default_skin?: number | undefined;
3127
+ upgrades_into?: {
3128
+ item_id: number;
3129
+ upgrade: "Attunement" | "Infusion";
3130
+ }[] | undefined;
3131
+ upgrades_from?: {
3132
+ item_id: number;
3133
+ upgrade: "Attunement" | "Infusion";
3134
+ }[] | undefined;
3135
+ details?: {
3125
3136
  type: "HelmAquatic" | "Coat" | "Boots" | "Gloves" | "Helm" | "Leggings" | "Shoulders";
3126
3137
  weight_class: "Heavy" | "Medium" | "Light" | "Clothing";
3127
3138
  defense: number;
@@ -3253,18 +3264,7 @@ declare const ItemsDTO: z.ZodArray<z.ZodObject<{
3253
3264
  } | undefined;
3254
3265
  suffix_item_id?: number | undefined;
3255
3266
  stat_choices?: number[] | undefined;
3256
- };
3257
- description?: string | undefined;
3258
- icon?: string | undefined;
3259
- default_skin?: number | undefined;
3260
- upgrades_into?: {
3261
- item_id: number;
3262
- upgrade: "Attunement" | "Infusion";
3263
- }[] | undefined;
3264
- upgrades_from?: {
3265
- item_id: number;
3266
- upgrade: "Attunement" | "Infusion";
3267
- }[] | undefined;
3267
+ } | undefined;
3268
3268
  }>, "many">;
3269
3269
 
3270
3270
  /**
package/dist/index.js CHANGED
@@ -2263,6 +2263,7 @@ var TrinketDetails = zod.z.object({
2263
2263
  /** Selectable stat ids. Can be resolved by /v2/itemstats */
2264
2264
  stat_choices: zod.z.array(zod.z.number()).optional()
2265
2265
  });
2266
+ var TrophyAndCraftingDetails = zod.z.undefined();
2266
2267
  var UpgradeComponentFlags = zod.z.enum([
2267
2268
  "Axe",
2268
2269
  "Dagger",
@@ -2398,6 +2399,7 @@ var ItemsDTO = zod.z.array(
2398
2399
  MiniatureDetails,
2399
2400
  SalvageKitDetails,
2400
2401
  TrinketDetails,
2402
+ TrophyAndCraftingDetails,
2401
2403
  UpgradeComponentDetails,
2402
2404
  WeaponDetails
2403
2405
  ])
@@ -5416,8 +5418,8 @@ var CharactersApi = class extends ApiBase {
5416
5418
  async getBuildTabs(id, tabs = "all") {
5417
5419
  if (Array.isArray(tabs)) {
5418
5420
  for (const tab of tabs) {
5419
- if (tab < 1 || tab > 8) {
5420
- logger.warn("Build tab ids must be between 1 and 8. Returning all tabs");
5421
+ if (tab < 1 || tab > 9) {
5422
+ logger.warn("Build tab ids must be between 1 and 9. Returning all tabs");
5421
5423
  tabs = "all";
5422
5424
  }
5423
5425
  }
@@ -5472,8 +5474,8 @@ var CharactersApi = class extends ApiBase {
5472
5474
  async getEquipmentTabs(id, tabs = "all") {
5473
5475
  if (Array.isArray(tabs)) {
5474
5476
  for (const tab of tabs) {
5475
- if (tab < 1 || tab > 8) {
5476
- logger.warn("Equipment tab ids must be between 1 and 8. Returning all tabs.");
5477
+ if (tab < 1 || tab > 9) {
5478
+ logger.warn("Equipment tab ids must be between 1 and 9. Returning all tabs.");
5477
5479
  tabs = "all";
5478
5480
  }
5479
5481
  }
package/dist/index.mjs CHANGED
@@ -2256,6 +2256,7 @@ var TrinketDetails = z.object({
2256
2256
  /** Selectable stat ids. Can be resolved by /v2/itemstats */
2257
2257
  stat_choices: z.array(z.number()).optional()
2258
2258
  });
2259
+ var TrophyAndCraftingDetails = z.undefined();
2259
2260
  var UpgradeComponentFlags = z.enum([
2260
2261
  "Axe",
2261
2262
  "Dagger",
@@ -2391,6 +2392,7 @@ var ItemsDTO = z.array(
2391
2392
  MiniatureDetails,
2392
2393
  SalvageKitDetails,
2393
2394
  TrinketDetails,
2395
+ TrophyAndCraftingDetails,
2394
2396
  UpgradeComponentDetails,
2395
2397
  WeaponDetails
2396
2398
  ])
@@ -5409,8 +5411,8 @@ var CharactersApi = class extends ApiBase {
5409
5411
  async getBuildTabs(id, tabs = "all") {
5410
5412
  if (Array.isArray(tabs)) {
5411
5413
  for (const tab of tabs) {
5412
- if (tab < 1 || tab > 8) {
5413
- logger.warn("Build tab ids must be between 1 and 8. Returning all tabs");
5414
+ if (tab < 1 || tab > 9) {
5415
+ logger.warn("Build tab ids must be between 1 and 9. Returning all tabs");
5414
5416
  tabs = "all";
5415
5417
  }
5416
5418
  }
@@ -5465,8 +5467,8 @@ var CharactersApi = class extends ApiBase {
5465
5467
  async getEquipmentTabs(id, tabs = "all") {
5466
5468
  if (Array.isArray(tabs)) {
5467
5469
  for (const tab of tabs) {
5468
- if (tab < 1 || tab > 8) {
5469
- logger.warn("Equipment tab ids must be between 1 and 8. Returning all tabs.");
5470
+ if (tab < 1 || tab > 9) {
5471
+ logger.warn("Equipment tab ids must be between 1 and 9. Returning all tabs.");
5470
5472
  tabs = "all";
5471
5473
  }
5472
5474
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guildwars2-ts",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "GuildWars 2 API Wrapper in Typescript",
5
5
  "homepage": "https://gitlab.com/dinckelman/guildwars2-ts",
6
6
  "main": "dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "gw2"
23
23
  ],
24
24
  "dependencies": {
25
- "axios": "1.7.5",
25
+ "axios": "1.7.8",
26
26
  "promise-queue": "2.2.5",
27
27
  "tslog": "4.9.3",
28
28
  "zod": "3.23.8"