guildwars2-ts 1.1.5 → 1.1.6
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/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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
|
@@ -1857,7 +1857,7 @@ declare const ColorsDTO: z.ZodArray<z.ZodObject<{
|
|
|
1857
1857
|
/** Color categories. */
|
|
1858
1858
|
categories: z.ZodUnion<[z.ZodTuple<[z.ZodEnum<["Gray", "Brown", "Red", "Orange", "Yellow", "Green", "Blue", "Purple"]>, z.ZodEnum<["Vibrant", "Leather", "Metal"]>, z.ZodEnum<["Starter", "Common", "Uncommon", "Rare", "Exclusive"]>], null>, z.ZodArray<z.ZodUndefined, "many">]>;
|
|
1859
1859
|
}, "strip", z.ZodTypeAny, {
|
|
1860
|
-
categories: (["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]
|
|
1860
|
+
categories: (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]) & (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"] | undefined);
|
|
1861
1861
|
id: number;
|
|
1862
1862
|
name: string;
|
|
1863
1863
|
base_rgb: number[];
|
|
@@ -1895,7 +1895,7 @@ declare const ColorsDTO: z.ZodArray<z.ZodObject<{
|
|
|
1895
1895
|
} | undefined;
|
|
1896
1896
|
item?: number | undefined;
|
|
1897
1897
|
}, {
|
|
1898
|
-
categories: (["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]
|
|
1898
|
+
categories: (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]) & (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"] | undefined);
|
|
1899
1899
|
id: number;
|
|
1900
1900
|
name: string;
|
|
1901
1901
|
base_rgb: number[];
|
|
@@ -10662,16 +10662,16 @@ declare class CharactersApi extends ApiBase {
|
|
|
10662
10662
|
* @param id - Character name
|
|
10663
10663
|
*/
|
|
10664
10664
|
getCore(id: string): Promise<{
|
|
10665
|
+
guild: string | null;
|
|
10665
10666
|
age: number;
|
|
10666
10667
|
name: string;
|
|
10667
10668
|
created: string;
|
|
10668
10669
|
profession: "Elementalist" | "Engineer" | "Guardian" | "Mesmer" | "Necromancer" | "Ranger" | "Revenant" | "Thief" | "Warrior";
|
|
10669
10670
|
level: number;
|
|
10670
|
-
title: number;
|
|
10671
10671
|
race: "Asura" | "Charr" | "Human" | "Norn" | "Sylvari";
|
|
10672
10672
|
gender: "Male" | "Female";
|
|
10673
10673
|
deaths: number;
|
|
10674
|
-
|
|
10674
|
+
title?: number | undefined;
|
|
10675
10675
|
}>;
|
|
10676
10676
|
/**
|
|
10677
10677
|
* Returns information about the crafting disciplines available to a character attached to a specific account.
|
package/dist/index.d.ts
CHANGED
|
@@ -1857,7 +1857,7 @@ declare const ColorsDTO: z.ZodArray<z.ZodObject<{
|
|
|
1857
1857
|
/** Color categories. */
|
|
1858
1858
|
categories: z.ZodUnion<[z.ZodTuple<[z.ZodEnum<["Gray", "Brown", "Red", "Orange", "Yellow", "Green", "Blue", "Purple"]>, z.ZodEnum<["Vibrant", "Leather", "Metal"]>, z.ZodEnum<["Starter", "Common", "Uncommon", "Rare", "Exclusive"]>], null>, z.ZodArray<z.ZodUndefined, "many">]>;
|
|
1859
1859
|
}, "strip", z.ZodTypeAny, {
|
|
1860
|
-
categories: (["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]
|
|
1860
|
+
categories: (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]) & (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"] | undefined);
|
|
1861
1861
|
id: number;
|
|
1862
1862
|
name: string;
|
|
1863
1863
|
base_rgb: number[];
|
|
@@ -1895,7 +1895,7 @@ declare const ColorsDTO: z.ZodArray<z.ZodObject<{
|
|
|
1895
1895
|
} | undefined;
|
|
1896
1896
|
item?: number | undefined;
|
|
1897
1897
|
}, {
|
|
1898
|
-
categories: (["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]
|
|
1898
|
+
categories: (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"]) & (undefined[] | ["Gray" | "Brown" | "Red" | "Orange" | "Yellow" | "Green" | "Blue" | "Purple", "Vibrant" | "Leather" | "Metal", "Starter" | "Common" | "Uncommon" | "Rare" | "Exclusive"] | undefined);
|
|
1899
1899
|
id: number;
|
|
1900
1900
|
name: string;
|
|
1901
1901
|
base_rgb: number[];
|
|
@@ -10662,16 +10662,16 @@ declare class CharactersApi extends ApiBase {
|
|
|
10662
10662
|
* @param id - Character name
|
|
10663
10663
|
*/
|
|
10664
10664
|
getCore(id: string): Promise<{
|
|
10665
|
+
guild: string | null;
|
|
10665
10666
|
age: number;
|
|
10666
10667
|
name: string;
|
|
10667
10668
|
created: string;
|
|
10668
10669
|
profession: "Elementalist" | "Engineer" | "Guardian" | "Mesmer" | "Necromancer" | "Ranger" | "Revenant" | "Thief" | "Warrior";
|
|
10669
10670
|
level: number;
|
|
10670
|
-
title: number;
|
|
10671
10671
|
race: "Asura" | "Charr" | "Human" | "Norn" | "Sylvari";
|
|
10672
10672
|
gender: "Male" | "Female";
|
|
10673
10673
|
deaths: number;
|
|
10674
|
-
|
|
10674
|
+
title?: number | undefined;
|
|
10675
10675
|
}>;
|
|
10676
10676
|
/**
|
|
10677
10677
|
* Returns information about the crafting disciplines available to a character attached to a specific account.
|
package/dist/index.js
CHANGED
|
@@ -851,7 +851,7 @@ var CharacterCoreDTO = zod.z.object({
|
|
|
851
851
|
/** Character level. */
|
|
852
852
|
level: zod.z.number(),
|
|
853
853
|
/** Character guild. */
|
|
854
|
-
guild: zod.z.string().
|
|
854
|
+
guild: zod.z.union([zod.z.string(), zod.z.null()]),
|
|
855
855
|
/** Character age. */
|
|
856
856
|
age: zod.z.number(),
|
|
857
857
|
/** Character creation date. */
|
|
@@ -859,7 +859,7 @@ var CharacterCoreDTO = zod.z.object({
|
|
|
859
859
|
/** Character deaths. */
|
|
860
860
|
deaths: zod.z.number(),
|
|
861
861
|
/** Character title id. */
|
|
862
|
-
title: zod.z.number()
|
|
862
|
+
title: zod.z.number().optional()
|
|
863
863
|
});
|
|
864
864
|
var CharacterCraftingDTO = zod.z.object({
|
|
865
865
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -844,7 +844,7 @@ var CharacterCoreDTO = z.object({
|
|
|
844
844
|
/** Character level. */
|
|
845
845
|
level: z.number(),
|
|
846
846
|
/** Character guild. */
|
|
847
|
-
guild: z.string().
|
|
847
|
+
guild: z.union([z.string(), z.null()]),
|
|
848
848
|
/** Character age. */
|
|
849
849
|
age: z.number(),
|
|
850
850
|
/** Character creation date. */
|
|
@@ -852,7 +852,7 @@ var CharacterCoreDTO = z.object({
|
|
|
852
852
|
/** Character deaths. */
|
|
853
853
|
deaths: z.number(),
|
|
854
854
|
/** Character title id. */
|
|
855
|
-
title: z.number()
|
|
855
|
+
title: z.number().optional()
|
|
856
856
|
});
|
|
857
857
|
var CharacterCraftingDTO = z.object({
|
|
858
858
|
/**
|