guildwars2-ts 1.5.0 → 1.7.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 +1 -2
- package/README.md +17 -1
- package/dist/api.d.ts +118 -0
- package/dist/apis/account/account.d.ts +389 -0
- package/dist/apis/account/index.d.ts +1 -0
- package/dist/apis/achievements/achievements.d.ts +39 -0
- package/dist/apis/achievements/index.d.ts +1 -0
- package/dist/apis/characters/characters.d.ts +534 -0
- package/dist/apis/characters/index.d.ts +1 -0
- package/dist/apis/commerce/commerce.d.ts +60 -0
- package/dist/apis/commerce/index.d.ts +1 -0
- package/dist/apis/emblem/emblem.d.ts +16 -0
- package/dist/apis/emblem/index.d.ts +1 -0
- package/dist/apis/endpoints.d.ts +1043 -0
- package/dist/apis/guild/guild.d.ts +297 -0
- package/dist/apis/guild/index.d.ts +1 -0
- package/dist/apis/home/home.d.ts +25 -0
- package/dist/apis/home/index.d.ts +1 -0
- package/dist/apis/homestead/homestead.d.ts +39 -0
- package/dist/apis/homestead/index.d.ts +1 -0
- package/dist/apis/index.d.ts +12 -0
- package/dist/apis/misc/backstory.d.ts +29 -0
- package/dist/apis/misc/build.d.ts +13 -0
- package/dist/apis/misc/colors.d.ts +19 -0
- package/dist/apis/misc/continents.d.ts +47 -0
- package/dist/apis/misc/currencies.d.ts +19 -0
- package/dist/apis/misc/dailyCrafting.d.ts +10 -0
- package/dist/apis/misc/dungeons.d.ts +19 -0
- package/dist/apis/misc/emotes.d.ts +19 -0
- package/dist/apis/misc/files.d.ts +19 -0
- package/dist/apis/misc/finishers.d.ts +19 -0
- package/dist/apis/misc/gliders.d.ts +19 -0
- package/dist/apis/misc/index.d.ts +44 -0
- package/dist/apis/misc/items.d.ts +19 -0
- package/dist/apis/misc/itemstats.d.ts +19 -0
- package/dist/apis/misc/jadebots.d.ts +19 -0
- package/dist/apis/misc/legendaryarmory.d.ts +19 -0
- package/dist/apis/misc/legends.d.ts +19 -0
- package/dist/apis/misc/logos.d.ts +19 -0
- package/dist/apis/misc/mailCarriers.d.ts +19 -0
- package/dist/apis/misc/mapChests.d.ts +11 -0
- package/dist/apis/misc/maps.d.ts +24 -0
- package/dist/apis/misc/masteries.d.ts +20 -0
- package/dist/apis/misc/materials.d.ts +19 -0
- package/dist/apis/misc/minis.d.ts +19 -0
- package/dist/apis/misc/mounts.d.ts +29 -0
- package/dist/apis/misc/novelties.d.ts +19 -0
- package/dist/apis/misc/outfits.d.ts +19 -0
- package/dist/apis/misc/pets.d.ts +19 -0
- package/dist/apis/misc/professions.d.ts +19 -0
- package/dist/apis/misc/quaggans.d.ts +19 -0
- package/dist/apis/misc/quests.d.ts +19 -0
- package/dist/apis/misc/races.d.ts +19 -0
- package/dist/apis/misc/raids.d.ts +19 -0
- package/dist/apis/misc/recipes.d.ts +28 -0
- package/dist/apis/misc/skiffs.d.ts +19 -0
- package/dist/apis/misc/skills.d.ts +310 -0
- package/dist/apis/misc/skins.d.ts +19 -0
- package/dist/apis/misc/specializations.d.ts +19 -0
- package/dist/apis/misc/stories.d.ts +26 -0
- package/dist/apis/misc/subtoken.d.ts +17 -0
- package/dist/apis/misc/titles.d.ts +17 -0
- package/dist/apis/misc/tokeninfo.d.ts +18 -0
- package/dist/apis/misc/traits.d.ts +19 -0
- package/dist/apis/misc/worldbosses.d.ts +10 -0
- package/dist/apis/misc/worlds.d.ts +19 -0
- package/dist/apis/pvp/index.d.ts +1 -0
- package/dist/apis/pvp/pvp.d.ts +124 -0
- package/dist/apis/v2apiUtils.d.ts +5 -0
- package/dist/apis/wizardsvault/index.d.ts +1 -0
- package/dist/apis/wizardsvault/wizardsvault.d.ts +36 -0
- package/dist/apis/wvw/index.d.ts +1 -0
- package/dist/apis/wvw/wvw.d.ts +166 -0
- package/dist/base/apiBase.d.ts +50 -0
- package/dist/base/apiParams.d.ts +23 -0
- package/dist/base/errors/apiGenericError.d.ts +6 -0
- package/dist/base/errors/apiNotFoundError.d.ts +6 -0
- package/dist/base/errors/apiPermissionsError.d.ts +7 -0
- package/dist/base/errors/apiRetryFailedError.d.ts +6 -0
- package/dist/base/errors/apiTimeoutError.d.ts +6 -0
- package/dist/base/errors/apiTokenError.d.ts +6 -0
- package/dist/base/errors/apiUnknownInternalError.d.ts +6 -0
- package/dist/base/errors/index.d.ts +7 -0
- package/dist/base/index.d.ts +2 -0
- package/dist/base/logger.d.ts +32 -0
- package/dist/base/requestBase.d.ts +7 -0
- package/dist/index.d.ts +3 -6678
- package/dist/index.js +61 -48
- package/dist/index.mjs +61 -48
- package/dist/models/account/account.achievements.dto.d.ts +20 -0
- package/dist/models/account/account.bank.dto.d.ts +147 -0
- package/dist/models/account/account.buildStorage.dto.d.ts +39 -0
- package/dist/models/account/account.dailyCrafting.dto.d.ts +6 -0
- package/dist/models/account/account.dto.d.ts +36 -0
- package/dist/models/account/account.dungeons.dto.d.ts +6 -0
- package/dist/models/account/account.dyes.dto.d.ts +6 -0
- package/dist/models/account/account.emotes.dto.d.ts +6 -0
- package/dist/models/account/account.finishers.dto.d.ts +12 -0
- package/dist/models/account/account.gliders.dto.d.ts +6 -0
- package/dist/models/account/account.home.cats.dto.d.ts +5 -0
- package/dist/models/account/account.home.nodes.dto.d.ts +5 -0
- package/dist/models/account/account.homestead.decorations.dto.d.ts +7 -0
- package/dist/models/account/account.homestead.glyphs.dto.d.ts +5 -0
- package/dist/models/account/account.inventory.dto.d.ts +20 -0
- package/dist/models/account/account.jadebots.dto.d.ts +5 -0
- package/dist/models/account/account.legendaryArmory.dto.d.ts +10 -0
- package/dist/models/account/account.luck.dto.d.ts +10 -0
- package/dist/models/account/account.mailCarriers.dto.d.ts +6 -0
- package/dist/models/account/account.mapChests.dto.d.ts +6 -0
- package/dist/models/account/account.masteries.dto.d.ts +13 -0
- package/dist/models/account/account.mastery.points.dto.d.ts +17 -0
- package/dist/models/account/account.materials.dto.d.ts +14 -0
- package/dist/models/account/account.minis.dto.d.ts +6 -0
- package/dist/models/account/account.mounts.skins.dto.d.ts +6 -0
- package/dist/models/account/account.mounts.types.dto.d.ts +6 -0
- package/dist/models/account/account.novelties.dto.d.ts +6 -0
- package/dist/models/account/account.outfits.dto.d.ts +6 -0
- package/dist/models/account/account.progression.dto.d.ts +10 -0
- package/dist/models/account/account.pvp.heroes.dto.d.ts +6 -0
- package/dist/models/account/account.raids.dto.d.ts +6 -0
- package/dist/models/account/account.recipes.dto.d.ts +6 -0
- package/dist/models/account/account.skiffs.dto.d.ts +5 -0
- package/dist/models/account/account.skins.dto.d.ts +6 -0
- package/dist/models/account/account.titles.dto.d.ts +6 -0
- package/dist/models/account/account.wallet.dto.d.ts +10 -0
- package/dist/models/account/account.wizardsvault.daily.dto.d.ts +33 -0
- package/dist/models/account/account.wizardsvault.listings.dto.d.ts +24 -0
- package/dist/models/account/account.wizardsvault.special.dto.d.ts +23 -0
- package/dist/models/account/account.wizardsvault.weekly.dto.d.ts +33 -0
- package/dist/models/account/account.worldBosses.dto.d.ts +6 -0
- package/dist/models/account/account.wvw.dto.d.ts +10 -0
- package/dist/models/account/index.d.ts +42 -0
- package/dist/models/achievements/achievements.categories.dto.d.ts +20 -0
- package/dist/models/achievements/achievements.dto.d.ts +160 -0
- package/dist/models/achievements/achievements.groups.dto.d.ts +18 -0
- package/dist/models/achievements/index.d.ts +3 -0
- package/dist/models/apiResponse/api.rateLimits.dto.d.ts +3 -0
- package/dist/models/apiResponse/api.response.dto.d.ts +10 -0
- package/dist/models/apiResponse/index.d.ts +2 -0
- package/dist/models/backstory/backstory.answers.dto.d.ts +21 -0
- package/dist/models/backstory/backstory.questions.dto.d.ts +20 -0
- package/dist/models/backstory/index.d.ts +2 -0
- package/dist/models/characters/characters.backstory.dto.d.ts +8 -0
- package/dist/models/characters/characters.buildtabs.dto.d.ts +51 -0
- package/dist/models/characters/characters.core.dto.d.ts +45 -0
- package/dist/models/characters/characters.crafting.dto.d.ts +25 -0
- package/dist/models/characters/characters.dto.d.ts +5 -0
- package/dist/models/characters/characters.equipment.dto.d.ts +526 -0
- package/dist/models/characters/characters.equipmentTabs.dto.d.ts +416 -0
- package/dist/models/characters/characters.heroPoints.dto.d.ts +5 -0
- package/dist/models/characters/characters.inventory.dto.d.ts +117 -0
- package/dist/models/characters/characters.quests.dto.d.ts +5 -0
- package/dist/models/characters/characters.recipes.dto.d.ts +8 -0
- package/dist/models/characters/characters.sab.dto.d.ts +39 -0
- package/dist/models/characters/characters.skills.dto.d.ts +42 -0
- package/dist/models/characters/characters.specializations.dto.d.ts +30 -0
- package/dist/models/characters/characters.training.dto.d.ts +15 -0
- package/dist/models/characters/index.d.ts +15 -0
- package/dist/models/commerce/commerce.delivery.dto.d.ts +15 -0
- package/dist/models/commerce/commerce.exchange.dto.d.ts +10 -0
- package/dist/models/commerce/commerce.listings.dto.d.ts +26 -0
- package/dist/models/commerce/commerce.prices.dto.d.ts +24 -0
- package/dist/models/commerce/commerce.transactions.dto.d.ts +18 -0
- package/dist/models/commerce/index.d.ts +5 -0
- package/dist/models/continents/continents.dto.d.ts +403 -0
- package/dist/models/continents/index.d.ts +1 -0
- package/dist/models/guild/guild.dto.d.ts +50 -0
- package/dist/models/guild/guild.log.dto.d.ts +106 -0
- package/dist/models/guild/guild.members.dto.d.ts +12 -0
- package/dist/models/guild/guild.permissions.dto.d.ts +12 -0
- package/dist/models/guild/guild.ranks.dto.d.ts +14 -0
- package/dist/models/guild/guild.search.dto.d.ts +5 -0
- package/dist/models/guild/guild.stash.dto.d.ts +24 -0
- package/dist/models/guild/guild.storage.dto.d.ts +10 -0
- package/dist/models/guild/guild.teams.dto.d.ts +103 -0
- package/dist/models/guild/guild.treasury.dto.d.ts +17 -0
- package/dist/models/guild/guild.upgrades.dto.d.ts +6 -0
- package/dist/models/guild/guild.upgrades.info.dto.d.ts +91 -0
- package/dist/models/guild/index.d.ts +12 -0
- package/dist/models/home/home.cats.dto.d.ts +9 -0
- package/dist/models/home/home.nodes.dto.d.ts +8 -0
- package/dist/models/home/index.d.ts +2 -0
- package/dist/models/homestead/homestead.decorations.categories.dto.d.ts +10 -0
- package/dist/models/homestead/homestead.decorations.dto.d.ts +18 -0
- package/dist/models/homestead/homestead.glyphs.dto.d.ts +17 -0
- package/dist/models/homestead/index.d.ts +3 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/misc/build.dto.d.ts +8 -0
- package/dist/models/misc/colors.dto.d.ts +95 -0
- package/dist/models/misc/currencies.dto.d.ts +16 -0
- package/dist/models/misc/dailyCrafting.dto.d.ts +5 -0
- package/dist/models/misc/dungeons.dto.d.ts +18 -0
- package/dist/models/misc/emblem.dto.d.ts +10 -0
- package/dist/models/misc/emotes.dto.d.ts +12 -0
- package/dist/models/misc/files.dto.d.ts +10 -0
- package/dist/models/misc/finishers.dto.d.ts +18 -0
- package/dist/models/misc/gliders.dto.d.ts +20 -0
- package/dist/models/misc/index.d.ts +40 -0
- package/dist/models/misc/items.dto.d.ts +584 -0
- package/dist/models/misc/itemstats.dto.d.ts +30 -0
- package/dist/models/misc/jadebots.dto.d.ts +14 -0
- package/dist/models/misc/legendaryarmory.dto.d.ts +10 -0
- package/dist/models/misc/legends.dto.d.ts +18 -0
- package/dist/models/misc/logos.dto.d.ts +10 -0
- package/dist/models/misc/mailCarriers.dto.d.ts +18 -0
- package/dist/models/misc/mapChests.dto.d.ts +5 -0
- package/dist/models/misc/maps.dto.d.ts +44 -0
- package/dist/models/misc/masteries.dto.d.ts +33 -0
- package/dist/models/misc/materials.dto.d.ts +14 -0
- package/dist/models/misc/minis.dto.d.ts +18 -0
- package/dist/models/misc/novelties.dto.d.ts +24 -0
- package/dist/models/misc/outfits.dto.d.ts +14 -0
- package/dist/models/misc/pets.dto.d.ts +19 -0
- package/dist/models/misc/professions.dto.d.ts +128 -0
- package/dist/models/misc/quaggans.dto.d.ts +10 -0
- package/dist/models/misc/quests.dto.d.ts +21 -0
- package/dist/models/misc/races.dto.d.ts +12 -0
- package/dist/models/misc/raids.dto.d.ts +23 -0
- package/dist/models/misc/recipes.dto.d.ts +120 -0
- package/dist/models/misc/skiffs.dto.d.ts +23 -0
- package/dist/models/misc/skills.dto.d.ts +601 -0
- package/dist/models/misc/skins.dto.d.ts +158 -0
- package/dist/models/misc/specializations.dto.d.ts +28 -0
- package/dist/models/misc/subtoken.dto.d.ts +8 -0
- package/dist/models/misc/titles.dto.d.ts +16 -0
- package/dist/models/misc/tokeninfo.dto.d.ts +49 -0
- package/dist/models/misc/traits.dto.d.ts +856 -0
- package/dist/models/misc/worlds.dto.d.ts +20 -0
- package/dist/models/mounts/index.d.ts +2 -0
- package/dist/models/mounts/mounts.skins.dto.d.ts +21 -0
- package/dist/models/mounts/mounts.types.dto.d.ts +21 -0
- package/dist/models/pvp/index.d.ts +8 -0
- package/dist/models/pvp/pvp.amulets.dto.d.ts +25 -0
- package/dist/models/pvp/pvp.games.dto.d.ts +37 -0
- package/dist/models/pvp/pvp.heroes.dto.d.ts +40 -0
- package/dist/models/pvp/pvp.ranks.dto.d.ts +27 -0
- package/dist/models/pvp/pvp.seasons.dto.d.ts +155 -0
- package/dist/models/pvp/pvp.seasons.leaderboards.dto.d.ts +26 -0
- package/dist/models/pvp/pvp.standings.dto.d.ts +38 -0
- package/dist/models/pvp/pvp.stats.dto.d.ts +51 -0
- package/dist/models/stories/index.d.ts +2 -0
- package/dist/models/stories/stories.dto.d.ts +32 -0
- package/dist/models/stories/stories.seasons.dto.d.ts +14 -0
- package/dist/models/wizardsvault/index.d.ts +3 -0
- package/dist/models/wizardsvault/wizardsvault.dto.d.ts +16 -0
- package/dist/models/wizardsvault/wizardsvault.listings.dto.d.ts +20 -0
- package/dist/models/wizardsvault/wizardsvault.objectives.dto.d.ts +18 -0
- package/dist/models/wvw/index.d.ts +11 -0
- package/dist/models/wvw/wvw.abilities.dto.d.ts +21 -0
- package/dist/models/wvw/wvw.guilds.dto.d.ts +8 -0
- package/dist/models/wvw/wvw.matches.dto.d.ts +180 -0
- package/dist/models/wvw/wvw.matches.overview.dto.d.ts +24 -0
- package/dist/models/wvw/wvw.matches.scores.dto.d.ts +54 -0
- package/dist/models/wvw/wvw.matches.stats.dto.d.ts +33 -0
- package/dist/models/wvw/wvw.matches.stats.guild.dto.d.ts +22 -0
- package/dist/models/wvw/wvw.objectives.dto.d.ts +44 -0
- package/dist/models/wvw/wvw.ranks.dto.d.ts +12 -0
- package/dist/models/wvw/wvw.timers.dto.d.ts +8 -0
- package/dist/models/wvw/wvw.upgrades.dto.d.ts +24 -0
- package/package.json +23 -14
package/LICENSE
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
ISC License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
4
|
-
Copyright (c) 2021 Julio Sansossio (parts of request base code)
|
|
3
|
+
Copyright (c) 2022 Ivan Sosnov
|
|
5
4
|
|
|
6
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
6
|
purpose with or without fee is hereby granted, provided that the above
|
package/README.md
CHANGED
|
@@ -17,14 +17,19 @@ Full support of all endpoints listed in the [API:2 Wiki](https://wiki.guildwars2
|
|
|
17
17
|
import { GW2Api, ApiLanguage, setLogLevel, LogLevel } from "guildwars2-ts";
|
|
18
18
|
|
|
19
19
|
const api: GW2Api = new GW2Api({
|
|
20
|
-
//
|
|
20
|
+
// Some endpoints require authentication
|
|
21
21
|
token: "YOUR-TOKEN-HERE",
|
|
22
22
|
language: ApiLanguage.English,
|
|
23
|
+
// Optional, but recommended
|
|
23
24
|
rateLimitRetry: true
|
|
25
|
+
// When using guildwars2-ts in a browser, setting this is required to avoid CORS errors. Can be omitted otherwise
|
|
26
|
+
inBrowser: true
|
|
24
27
|
});
|
|
25
28
|
|
|
26
29
|
// Set to error by default, so you can set it to info for extra verbosity
|
|
27
30
|
setLogLevel(LogLevel.info);
|
|
31
|
+
// Set to true by default, but recommended to be turned off, if your log does not render correctly
|
|
32
|
+
enableLogColors(false);
|
|
28
33
|
|
|
29
34
|
(async () => {
|
|
30
35
|
// Obtain names of all characters on the account
|
|
@@ -35,6 +40,11 @@ setLogLevel(LogLevel.info);
|
|
|
35
40
|
await api.characters.getCore(character).then(console.log);
|
|
36
41
|
});
|
|
37
42
|
});
|
|
43
|
+
|
|
44
|
+
// Types are automatically inferred for any function calls, like shown above
|
|
45
|
+
// If explicit types are preferred, it can be done as well
|
|
46
|
+
// Zod@^4 is required for this. In the future, this will be simplified
|
|
47
|
+
const emblems: z.infer<typeof EmblemDTO> = await api.emblem.get("foregrounds", [1, 2, 3]);
|
|
38
48
|
})();
|
|
39
49
|
```
|
|
40
50
|
|
|
@@ -44,6 +54,12 @@ If you encounter any kinds of errors, or wish to add/update the functionality pr
|
|
|
44
54
|
|
|
45
55
|
Otherwise, please check open [issue reports](https://gitlab.com/dinckelman/guildwars2-ts/-/issues/), to see if there is an existing discussion on the issue, or open a new request. In case of runtime errors, request validation error logs are extremely helpful, so please include them in the report, as guided by the template.
|
|
46
56
|
|
|
57
|
+
## Planned features
|
|
58
|
+
|
|
59
|
+
* Request caching (under consideration)
|
|
60
|
+
* Support for pagination
|
|
61
|
+
* Support for different/older schema version
|
|
62
|
+
|
|
47
63
|
[npm-image]: https://img.shields.io/npm/v/guildwars2-ts
|
|
48
64
|
[npm-link]: https://www.npmjs.com/package/guildwars2-ts
|
|
49
65
|
[license]: https://img.shields.io/gitlab/license/dinckelman%2Fguildwars2-ts
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { AccountApi, AchievementsApi, BackstoryApi, BuildApi, CharactersApi, ColorsApi, CommerceApi, ContinentsApi, CurrenciesApi, DailyCraftingApi, DungeonsApi, EmblemApi, EmotesApi, FilesApi, FinishersApi, GlidersApi, GuildApi, HomeApi, HomesteadApi, ItemStatsApi, ItemsApi, JadebotsApi, LegendaryArmoryApi, LegendsApi, LogosApi, MailCarriersApi, MapChestsApi, MapsApi, MasteriesApi, MaterialsApi, MinisApi, MountsApi, NoveltiesApi, OutfitsApi, PetsApi, ProfessionsApi, PvPApi, QuaggansApi, QuestsApi, RacesApi, RaidsApi, RecipesApi, SkiffsApi, SkillsApi, SkinsApi, SpecializationsApi, StoriesApi, SubtokenApi, TitlesApi, TokenInfoApi, TraitsApi, WizardsVaultApi, WorldBossesApi, WorldsApi, WorldVsWorldApi } from './apis';
|
|
2
|
+
import { ApiBase } from './base/apiBase';
|
|
3
|
+
/**
|
|
4
|
+
* Entrypoint for the API
|
|
5
|
+
*/
|
|
6
|
+
export declare class GW2Api extends ApiBase {
|
|
7
|
+
private readonly _params;
|
|
8
|
+
/** /v2/account Api */
|
|
9
|
+
readonly account: AccountApi;
|
|
10
|
+
/** /v2/achievements Api */
|
|
11
|
+
readonly achievements: AchievementsApi;
|
|
12
|
+
/** /v2/backstory Api */
|
|
13
|
+
readonly backstory: BackstoryApi;
|
|
14
|
+
/** /v2/build Api */
|
|
15
|
+
readonly build: BuildApi;
|
|
16
|
+
/** /v2/characters Api */
|
|
17
|
+
readonly characters: CharactersApi;
|
|
18
|
+
/** /v2/colors Api */
|
|
19
|
+
readonly colors: ColorsApi;
|
|
20
|
+
/** /v2/commerce Api */
|
|
21
|
+
readonly commerce: CommerceApi;
|
|
22
|
+
/** /v2/continents Api */
|
|
23
|
+
readonly continents: ContinentsApi;
|
|
24
|
+
/** /v2/currencies Api */
|
|
25
|
+
readonly currencies: CurrenciesApi;
|
|
26
|
+
/** /v2/dailycrafting Api */
|
|
27
|
+
readonly dailyCrafting: DailyCraftingApi;
|
|
28
|
+
/** /v2/dungeons Api */
|
|
29
|
+
readonly dungeons: DungeonsApi;
|
|
30
|
+
/** /v2/emblem Api */
|
|
31
|
+
readonly emblem: EmblemApi;
|
|
32
|
+
/** /v2/emotes Api */
|
|
33
|
+
readonly emotes: EmotesApi;
|
|
34
|
+
/** /v2/files Api */
|
|
35
|
+
readonly files: FilesApi;
|
|
36
|
+
/** /v2/finishers Api */
|
|
37
|
+
readonly finishers: FinishersApi;
|
|
38
|
+
/** /v2/gliders Api */
|
|
39
|
+
readonly gliders: GlidersApi;
|
|
40
|
+
/** /v2/guild Api */
|
|
41
|
+
readonly guild: GuildApi;
|
|
42
|
+
/** /v2/home Api */
|
|
43
|
+
readonly home: HomeApi;
|
|
44
|
+
/** /v2/homestead Api */
|
|
45
|
+
readonly homestead: HomesteadApi;
|
|
46
|
+
/** /v2/items Api */
|
|
47
|
+
readonly items: ItemsApi;
|
|
48
|
+
/** /v2/itemstats Api */
|
|
49
|
+
readonly itemstats: ItemStatsApi;
|
|
50
|
+
/** /v2/logos Api */
|
|
51
|
+
readonly logos: LogosApi;
|
|
52
|
+
/** /v2/jadebots Api */
|
|
53
|
+
readonly jadebots: JadebotsApi;
|
|
54
|
+
/** /v2/legendaryarmory Api */
|
|
55
|
+
readonly legendaryArmory: LegendaryArmoryApi;
|
|
56
|
+
/** /v2/legends Api */
|
|
57
|
+
readonly legends: LegendsApi;
|
|
58
|
+
/** /v2/mailcarriers Api */
|
|
59
|
+
readonly mailCarriers: MailCarriersApi;
|
|
60
|
+
/** /v2/mapchests Api */
|
|
61
|
+
readonly mapChests: MapChestsApi;
|
|
62
|
+
/** /v2/maps Api */
|
|
63
|
+
readonly maps: MapsApi;
|
|
64
|
+
/** /v2/masteries Api */
|
|
65
|
+
readonly masteries: MasteriesApi;
|
|
66
|
+
/** /v2/materials Api */
|
|
67
|
+
readonly materials: MaterialsApi;
|
|
68
|
+
/** /v2/minis Api */
|
|
69
|
+
readonly minis: MinisApi;
|
|
70
|
+
/** /v2/mounts Api */
|
|
71
|
+
readonly mounts: MountsApi;
|
|
72
|
+
/** /v2/novelties Api */
|
|
73
|
+
readonly novelties: NoveltiesApi;
|
|
74
|
+
/** /v2/outfits Api */
|
|
75
|
+
readonly outfits: OutfitsApi;
|
|
76
|
+
/** /v2/pets Api */
|
|
77
|
+
readonly pets: PetsApi;
|
|
78
|
+
/** /v2/professions Api */
|
|
79
|
+
readonly professions: ProfessionsApi;
|
|
80
|
+
/** /v2/pvp Api */
|
|
81
|
+
readonly pvp: PvPApi;
|
|
82
|
+
/** /v2/quaggans Api */
|
|
83
|
+
readonly quaggans: QuaggansApi;
|
|
84
|
+
/** /v2/quests Api */
|
|
85
|
+
readonly quests: QuestsApi;
|
|
86
|
+
/** /v2/races Api */
|
|
87
|
+
readonly races: RacesApi;
|
|
88
|
+
/** /v2/raids Api */
|
|
89
|
+
readonly raids: RaidsApi;
|
|
90
|
+
/** /v2/recipes Api */
|
|
91
|
+
readonly recipes: RecipesApi;
|
|
92
|
+
/** /v2/skiffs Api */
|
|
93
|
+
readonly skiffs: SkiffsApi;
|
|
94
|
+
/** /v2/skills Api */
|
|
95
|
+
readonly skills: SkillsApi;
|
|
96
|
+
/** /v2/skins Api */
|
|
97
|
+
readonly skins: SkinsApi;
|
|
98
|
+
/** /v2/specializations Api */
|
|
99
|
+
readonly specializations: SpecializationsApi;
|
|
100
|
+
/** /v2/stories Api */
|
|
101
|
+
readonly stories: StoriesApi;
|
|
102
|
+
/** /v2/subtoken Api */
|
|
103
|
+
readonly subtoken: SubtokenApi;
|
|
104
|
+
/** /v2/titles Api */
|
|
105
|
+
readonly titles: TitlesApi;
|
|
106
|
+
/** /v2/tokeninfo Api */
|
|
107
|
+
readonly tokenInfo: TokenInfoApi;
|
|
108
|
+
/** /v2/traits Api */
|
|
109
|
+
readonly traits: TraitsApi;
|
|
110
|
+
/** /v2/wizardsvault Api */
|
|
111
|
+
readonly wizardsVault: WizardsVaultApi;
|
|
112
|
+
/** /v2/worldbosses Api */
|
|
113
|
+
readonly worldBosses: WorldBossesApi;
|
|
114
|
+
/** /v2/worlds Api */
|
|
115
|
+
readonly worlds: WorldsApi;
|
|
116
|
+
/** /v2/wvw Api */
|
|
117
|
+
readonly wvw: WorldVsWorldApi;
|
|
118
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { ApiBase } from '../../base/apiBase';
|
|
2
|
+
/**
|
|
3
|
+
* /v2/account Api
|
|
4
|
+
*/
|
|
5
|
+
export declare class AccountApi extends ApiBase {
|
|
6
|
+
/**
|
|
7
|
+
* Returns information about player accounts.
|
|
8
|
+
*/
|
|
9
|
+
get(): Promise<{
|
|
10
|
+
id: string;
|
|
11
|
+
age: number;
|
|
12
|
+
name: string;
|
|
13
|
+
world: number;
|
|
14
|
+
guilds: string[];
|
|
15
|
+
guild_leader: string[];
|
|
16
|
+
created: string;
|
|
17
|
+
access: string[];
|
|
18
|
+
commander: boolean;
|
|
19
|
+
fractal_level: number;
|
|
20
|
+
daily_ap: number;
|
|
21
|
+
monthly_ap: number;
|
|
22
|
+
wvw_rank: number;
|
|
23
|
+
last_modified?: string | undefined;
|
|
24
|
+
build_storage_slots?: number | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns an account's progress towards all their achievements.
|
|
28
|
+
*/
|
|
29
|
+
getAchievements(): Promise<{
|
|
30
|
+
id: number;
|
|
31
|
+
current: number;
|
|
32
|
+
done: boolean;
|
|
33
|
+
bits?: number[] | undefined;
|
|
34
|
+
max?: number | undefined;
|
|
35
|
+
repeated?: number | undefined;
|
|
36
|
+
unlocked?: boolean | undefined;
|
|
37
|
+
}[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the items stored in a player's vault (not including material storage).
|
|
40
|
+
* If null, the slot is empty.
|
|
41
|
+
*/
|
|
42
|
+
getBank(): Promise<({
|
|
43
|
+
id: number;
|
|
44
|
+
count: number;
|
|
45
|
+
charges?: number | undefined;
|
|
46
|
+
skin?: number | undefined;
|
|
47
|
+
dyes?: number[] | undefined;
|
|
48
|
+
upgrades?: number[] | undefined;
|
|
49
|
+
upgrade_slot_indices?: number[] | undefined;
|
|
50
|
+
infusions?: number[] | undefined;
|
|
51
|
+
stats?: {
|
|
52
|
+
id: number;
|
|
53
|
+
attributes: {
|
|
54
|
+
AgonyResistance?: number | undefined;
|
|
55
|
+
BoonDuration?: number | undefined;
|
|
56
|
+
ConditionDamage?: number | undefined;
|
|
57
|
+
ConditionDuration?: number | undefined;
|
|
58
|
+
CritDamage?: number | undefined;
|
|
59
|
+
Healing?: number | undefined;
|
|
60
|
+
Power?: number | undefined;
|
|
61
|
+
Precision?: number | undefined;
|
|
62
|
+
Toughness?: number | undefined;
|
|
63
|
+
Vitality?: number | undefined;
|
|
64
|
+
};
|
|
65
|
+
} | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
id: number;
|
|
68
|
+
count: number;
|
|
69
|
+
binding: "Character";
|
|
70
|
+
bound_to: string;
|
|
71
|
+
charges?: number | undefined;
|
|
72
|
+
skin?: number | undefined;
|
|
73
|
+
dyes?: number[] | undefined;
|
|
74
|
+
upgrades?: number[] | undefined;
|
|
75
|
+
upgrade_slot_indices?: number[] | undefined;
|
|
76
|
+
infusions?: number[] | undefined;
|
|
77
|
+
stats?: {
|
|
78
|
+
id: number;
|
|
79
|
+
attributes: {
|
|
80
|
+
AgonyResistance?: number | undefined;
|
|
81
|
+
BoonDuration?: number | undefined;
|
|
82
|
+
ConditionDamage?: number | undefined;
|
|
83
|
+
ConditionDuration?: number | undefined;
|
|
84
|
+
CritDamage?: number | undefined;
|
|
85
|
+
Healing?: number | undefined;
|
|
86
|
+
Power?: number | undefined;
|
|
87
|
+
Precision?: number | undefined;
|
|
88
|
+
Toughness?: number | undefined;
|
|
89
|
+
Vitality?: number | undefined;
|
|
90
|
+
};
|
|
91
|
+
} | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
id: number;
|
|
94
|
+
count: number;
|
|
95
|
+
binding: "Account";
|
|
96
|
+
charges?: number | undefined;
|
|
97
|
+
skin?: number | undefined;
|
|
98
|
+
dyes?: number[] | undefined;
|
|
99
|
+
upgrades?: number[] | undefined;
|
|
100
|
+
upgrade_slot_indices?: number[] | undefined;
|
|
101
|
+
infusions?: number[] | undefined;
|
|
102
|
+
stats?: {
|
|
103
|
+
id: number;
|
|
104
|
+
attributes: {
|
|
105
|
+
AgonyResistance?: number | undefined;
|
|
106
|
+
BoonDuration?: number | undefined;
|
|
107
|
+
ConditionDamage?: number | undefined;
|
|
108
|
+
ConditionDuration?: number | undefined;
|
|
109
|
+
CritDamage?: number | undefined;
|
|
110
|
+
Healing?: number | undefined;
|
|
111
|
+
Power?: number | undefined;
|
|
112
|
+
Precision?: number | undefined;
|
|
113
|
+
Toughness?: number | undefined;
|
|
114
|
+
Vitality?: number | undefined;
|
|
115
|
+
};
|
|
116
|
+
} | undefined;
|
|
117
|
+
} | null)[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Returns the templates stored in a player's build storage.
|
|
120
|
+
*/
|
|
121
|
+
getBuildStorage(): Promise<{
|
|
122
|
+
name: string;
|
|
123
|
+
profession: string;
|
|
124
|
+
specializations: {
|
|
125
|
+
id: number;
|
|
126
|
+
traits: (number | null)[];
|
|
127
|
+
}[];
|
|
128
|
+
skills?: {
|
|
129
|
+
heal: number | null;
|
|
130
|
+
utilities: (number | null)[];
|
|
131
|
+
elite: number | null;
|
|
132
|
+
} | undefined;
|
|
133
|
+
aquatic_skills?: {
|
|
134
|
+
heal: number | null;
|
|
135
|
+
utilities: (number | null)[];
|
|
136
|
+
elite: number | null;
|
|
137
|
+
} | undefined;
|
|
138
|
+
legends?: (string | null)[] | undefined;
|
|
139
|
+
aquatic_legends?: (string | null)[] | undefined;
|
|
140
|
+
}[]>;
|
|
141
|
+
/**
|
|
142
|
+
* Returns information about time-gated recipes that have been crafted by the account since daily-reset.
|
|
143
|
+
*/
|
|
144
|
+
getDailyCrafts(): Promise<string[]>;
|
|
145
|
+
/**
|
|
146
|
+
* Returns the dungeons completed since daily dungeon reset.
|
|
147
|
+
*/
|
|
148
|
+
getDungeons(): Promise<string[]>;
|
|
149
|
+
/**
|
|
150
|
+
* Returns the unlocked dyes of the account.
|
|
151
|
+
*/
|
|
152
|
+
getDyes(): Promise<number[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Returns the player's unlocked emotes.
|
|
155
|
+
*/
|
|
156
|
+
getEmotes(): Promise<string[]>;
|
|
157
|
+
/**
|
|
158
|
+
* Returns information about finishers that are unlocked for an account.
|
|
159
|
+
*/
|
|
160
|
+
getFinishers(): Promise<{
|
|
161
|
+
id: number;
|
|
162
|
+
permanent: boolean;
|
|
163
|
+
quantity?: number | undefined;
|
|
164
|
+
}[]>;
|
|
165
|
+
/**
|
|
166
|
+
* Returns information about gliders that are unlocked for an account.
|
|
167
|
+
*/
|
|
168
|
+
getGliders(): Promise<number[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Returns information about unlocked home instance nodes.
|
|
171
|
+
*/
|
|
172
|
+
getHomeNodes(): Promise<string[]>;
|
|
173
|
+
/**
|
|
174
|
+
* Returns information about unlocked home instance cats.
|
|
175
|
+
*/
|
|
176
|
+
getHomeCats(): Promise<number[]>;
|
|
177
|
+
/**
|
|
178
|
+
* Returns information about unlocked homestead decorations.
|
|
179
|
+
*/
|
|
180
|
+
getHomesteadDecorations(): Promise<{
|
|
181
|
+
id: number;
|
|
182
|
+
count: number;
|
|
183
|
+
}[]>;
|
|
184
|
+
/**
|
|
185
|
+
* Returns information about glyphs stored in homestead collection boxes.
|
|
186
|
+
*/
|
|
187
|
+
getHomesteadGlyphs(): Promise<string[]>;
|
|
188
|
+
/**
|
|
189
|
+
* Returns the shared inventory slots in an account.
|
|
190
|
+
* If null, the slot is empty
|
|
191
|
+
*/
|
|
192
|
+
getInventory(): Promise<({
|
|
193
|
+
id: number;
|
|
194
|
+
count: number;
|
|
195
|
+
charges?: number | undefined;
|
|
196
|
+
skin?: number | undefined;
|
|
197
|
+
upgrades?: number[] | undefined;
|
|
198
|
+
infusions?: number[] | undefined;
|
|
199
|
+
binding?: "Account" | undefined;
|
|
200
|
+
} | null)[]>;
|
|
201
|
+
/**
|
|
202
|
+
* Returns the unlocked Jade Bot skins of the account.
|
|
203
|
+
*/
|
|
204
|
+
getJadebots(): Promise<number[]>;
|
|
205
|
+
/**
|
|
206
|
+
* Returns information about the Legendary Armory items that are unlocked for an account.
|
|
207
|
+
*/
|
|
208
|
+
getLegendaryArmory(): Promise<{
|
|
209
|
+
id: number;
|
|
210
|
+
count: number;
|
|
211
|
+
}[]>;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the total amount of luck consumed on an account.
|
|
214
|
+
*/
|
|
215
|
+
getLuck(): Promise<{
|
|
216
|
+
id: "luck";
|
|
217
|
+
value: number;
|
|
218
|
+
}[]>;
|
|
219
|
+
/**
|
|
220
|
+
* Returns information about mail carriers that are unlocked for an account.
|
|
221
|
+
*/
|
|
222
|
+
getMailCarriers(): Promise<number[]>;
|
|
223
|
+
/**
|
|
224
|
+
* Returns information about Hero's Choice Chests acquired by the account since daily-reset.
|
|
225
|
+
*/
|
|
226
|
+
getMapChests(): Promise<string[]>;
|
|
227
|
+
/**
|
|
228
|
+
* Returns information about masteries that are unlocked for an account.
|
|
229
|
+
* A tallied up total of the account's mastery points can be found at /v2/account/mastery/points.
|
|
230
|
+
*/
|
|
231
|
+
getMasteries(): Promise<{
|
|
232
|
+
id: number;
|
|
233
|
+
level: number;
|
|
234
|
+
}[]>;
|
|
235
|
+
/**
|
|
236
|
+
* Returns information about the total amount of mastery points that are unlocked for an account.
|
|
237
|
+
* A detailed mastery track completion break down is available at /v2/account/masteries.
|
|
238
|
+
*/
|
|
239
|
+
getMasteryPoints(): Promise<{
|
|
240
|
+
totals: {
|
|
241
|
+
region: string;
|
|
242
|
+
spent: number;
|
|
243
|
+
earned: number;
|
|
244
|
+
}[];
|
|
245
|
+
unlocked: number[];
|
|
246
|
+
}>;
|
|
247
|
+
/**
|
|
248
|
+
* Returns the materials stored in a player's vault.
|
|
249
|
+
*/
|
|
250
|
+
getMaterials(): Promise<{
|
|
251
|
+
id: number;
|
|
252
|
+
category: number;
|
|
253
|
+
count: number;
|
|
254
|
+
binding?: "Account" | undefined;
|
|
255
|
+
}[]>;
|
|
256
|
+
/**
|
|
257
|
+
* Returns the unlocked miniatures of the account.
|
|
258
|
+
*/
|
|
259
|
+
getMinis(): Promise<number[]>;
|
|
260
|
+
/**
|
|
261
|
+
* Returns the unlocked mount skins of the account.
|
|
262
|
+
*/
|
|
263
|
+
getMountSkins(): Promise<number[]>;
|
|
264
|
+
/**
|
|
265
|
+
* Returns the unlocked mounts of the account.
|
|
266
|
+
*/
|
|
267
|
+
getMountTypes(): Promise<string[]>;
|
|
268
|
+
/**
|
|
269
|
+
* Returns information about novelties that are unlocked for an account.
|
|
270
|
+
*/
|
|
271
|
+
getNovelties(): Promise<number[]>;
|
|
272
|
+
/**
|
|
273
|
+
* Returns information about outfits that are unlocked for an account.
|
|
274
|
+
*/
|
|
275
|
+
getOutfits(): Promise<number[]>;
|
|
276
|
+
/**
|
|
277
|
+
* Returns account-wide progression for Fractals's Account Augmentation and Luck.
|
|
278
|
+
*/
|
|
279
|
+
getProgression(): Promise<{
|
|
280
|
+
id: string;
|
|
281
|
+
value: number;
|
|
282
|
+
}[]>;
|
|
283
|
+
/**
|
|
284
|
+
* Returns information about pvp heroes that are unlocked for an account.
|
|
285
|
+
*/
|
|
286
|
+
getPvpHeroes(): Promise<number[]>;
|
|
287
|
+
/**
|
|
288
|
+
* Returns the completed raid encounters since weekly raid reset.
|
|
289
|
+
*/
|
|
290
|
+
getRaids(): Promise<string[]>;
|
|
291
|
+
/**
|
|
292
|
+
* Returns information about recipes that are unlocked for an account.
|
|
293
|
+
*/
|
|
294
|
+
getRecipes(): Promise<number[]>;
|
|
295
|
+
/**
|
|
296
|
+
* Returns the unlocked Skiff skins of the account.
|
|
297
|
+
*/
|
|
298
|
+
getSkiffs(): Promise<number[]>;
|
|
299
|
+
/**
|
|
300
|
+
* Returns the unlocked skins of the account.
|
|
301
|
+
*/
|
|
302
|
+
getSkins(): Promise<number[]>;
|
|
303
|
+
/**
|
|
304
|
+
* Returns information about titles that are unlocked for an account.
|
|
305
|
+
*/
|
|
306
|
+
getTitles(): Promise<number[]>;
|
|
307
|
+
/**
|
|
308
|
+
* Returns the currencies of the account
|
|
309
|
+
*/
|
|
310
|
+
getWallet(): Promise<{
|
|
311
|
+
id: number;
|
|
312
|
+
value: number;
|
|
313
|
+
}[]>;
|
|
314
|
+
/**
|
|
315
|
+
* Returns the current set of daily Wizard's Vault achievements for the account.
|
|
316
|
+
*/
|
|
317
|
+
getWizardsVaultDaily(): Promise<{
|
|
318
|
+
meta_progress_current: number;
|
|
319
|
+
meta_progress_complete: number;
|
|
320
|
+
meta_reward_item_id: number;
|
|
321
|
+
meta_reward_astral: number;
|
|
322
|
+
meta_reward_claimed: boolean;
|
|
323
|
+
objectives: {
|
|
324
|
+
id: number;
|
|
325
|
+
title: string;
|
|
326
|
+
track: string;
|
|
327
|
+
acclaim: number;
|
|
328
|
+
progress_current: number;
|
|
329
|
+
progress_complete: number;
|
|
330
|
+
claimed: boolean;
|
|
331
|
+
}[];
|
|
332
|
+
}>;
|
|
333
|
+
/**
|
|
334
|
+
* Returns the current set of Wizard's Vault rewards, along with details about which have already been purchased by the account, and in what quantity.
|
|
335
|
+
*/
|
|
336
|
+
getWizardsVaultListings(): Promise<{
|
|
337
|
+
id: number;
|
|
338
|
+
item_id: number;
|
|
339
|
+
item_count: number;
|
|
340
|
+
type: "Featured" | "Normal" | "Legacy";
|
|
341
|
+
cost: number;
|
|
342
|
+
purchased?: number | undefined;
|
|
343
|
+
purchase_limit?: number | undefined;
|
|
344
|
+
}[]>;
|
|
345
|
+
/**
|
|
346
|
+
* Returns the current set of special Wizard's Vault achievements for the account.
|
|
347
|
+
*/
|
|
348
|
+
getWizardsVaultSpecial(): Promise<{
|
|
349
|
+
objectives: {
|
|
350
|
+
id: number;
|
|
351
|
+
title: string;
|
|
352
|
+
track: string;
|
|
353
|
+
acclaim: number;
|
|
354
|
+
progress_current: number;
|
|
355
|
+
progress_complete: number;
|
|
356
|
+
claimed: boolean;
|
|
357
|
+
}[];
|
|
358
|
+
}>;
|
|
359
|
+
/**
|
|
360
|
+
* Returns the current set of weekly Wizard's Vault achievements for the account.
|
|
361
|
+
*/
|
|
362
|
+
getWizardsVaultWeekly(): Promise<{
|
|
363
|
+
meta_progress_current: number;
|
|
364
|
+
meta_progress_complete: number;
|
|
365
|
+
meta_reward_item_id: number;
|
|
366
|
+
meta_reward_astral: number;
|
|
367
|
+
meta_reward_claimed: boolean;
|
|
368
|
+
objectives: {
|
|
369
|
+
id: number;
|
|
370
|
+
title: string;
|
|
371
|
+
track: string;
|
|
372
|
+
acclaim: number;
|
|
373
|
+
progress_current: number;
|
|
374
|
+
progress_complete: number;
|
|
375
|
+
claimed: boolean;
|
|
376
|
+
}[];
|
|
377
|
+
}>;
|
|
378
|
+
/**
|
|
379
|
+
* Returns information about which world bosses have been killed by the account since daily-reset.
|
|
380
|
+
*/
|
|
381
|
+
getWorldBosses(): Promise<string[]>;
|
|
382
|
+
/**
|
|
383
|
+
* Returns information about an account's allocated wvw guild, and identifies the matchmaking team.
|
|
384
|
+
*/
|
|
385
|
+
getWvW(): Promise<{
|
|
386
|
+
team: number;
|
|
387
|
+
guild: string;
|
|
388
|
+
}>;
|
|
389
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import { ApiBase } from '../../base/apiBase';
|
|
3
|
+
import { AchievementCategoriesDTO, AchievementGroupsDTO, AchievementsDTO } from '../../models/';
|
|
4
|
+
import { numberArrayType, stringArrayType } from '../v2apiUtils';
|
|
5
|
+
/**
|
|
6
|
+
* /v2/achievements api
|
|
7
|
+
*/
|
|
8
|
+
export declare class AchievementsApi extends ApiBase {
|
|
9
|
+
/**
|
|
10
|
+
* Returns all (whitelisted) achievements in the game, including localized names and icons.
|
|
11
|
+
*/
|
|
12
|
+
get(): Promise<z.infer<typeof numberArrayType>>;
|
|
13
|
+
/**
|
|
14
|
+
* Returns all (whitelisted) achievements in the game, including localized names and icons.
|
|
15
|
+
*
|
|
16
|
+
* @param ids - List of achievement ids
|
|
17
|
+
*/
|
|
18
|
+
get(ids: number[]): Promise<z.infer<typeof AchievementsDTO>>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns all the categories for achievements.
|
|
21
|
+
*/
|
|
22
|
+
getCategories(): Promise<z.infer<typeof numberArrayType>>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns all the categories for achievements.
|
|
25
|
+
*
|
|
26
|
+
* @param ids - (optional) List of category ids, or "all".
|
|
27
|
+
*/
|
|
28
|
+
getCategories(ids: number[] | 'all'): Promise<z.infer<typeof AchievementCategoriesDTO>>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns all the top-level groups for achievements.
|
|
31
|
+
*/
|
|
32
|
+
getGroups(): Promise<z.infer<typeof stringArrayType>>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns all the top-level groups for achievements.
|
|
35
|
+
*
|
|
36
|
+
* @param id - (optional) Group id.
|
|
37
|
+
*/
|
|
38
|
+
getGroups(id: string): Promise<z.infer<typeof AchievementGroupsDTO>>;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './achievements';
|