-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from GW2Treasures/feature/homestead
Add types for `/v2/homestead/decorations` and `/v2/account/homestead/decorations`
- Loading branch information
Showing
5 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@gw2api/types": patch | ||
--- | ||
|
||
Add types for `/v2/homestead/decorations` and `/v2/account/homestead/decorations` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Accounts homestead decorations (/v2/account/homestead/decorations). | ||
* Required scopes: account, wallet | ||
* | ||
* @see https://wiki.guildwars2.com/wiki/API:2/account/homestead/decorations | ||
*/ | ||
export interface AccountHomesteadDecoration { | ||
/** The homestead decoration id */ | ||
id: number, | ||
|
||
/** The amount of this decoration owned */ | ||
count: number, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Homestead decorations (/v2/homestead/decorations). | ||
* | ||
* @see https://wiki.guildwars2.com/wiki/API:2/homestead/decorations | ||
*/ | ||
export interface HomesteadDecoration { | ||
/** The decoration id */ | ||
id: number, | ||
|
||
/** The name of the decoration */ | ||
name: string, | ||
|
||
/** The description of the decoration */ | ||
description: string, | ||
|
||
/** The icon of the decoration */ | ||
icon: string | ||
|
||
/** The maximum amount that can be stored */ | ||
max_count: number, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters