aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-05 21:02:17 -0500
committermat <github@matdoes.dev>2022-04-05 21:02:17 -0500
commitbd3dccfe0e0dbc90c2c37767a03e4304e2621ba3 (patch)
tree468f2d853a75bb1151177701e64d8769697196ae /src/lib
parent8d6cb70fe524329e1f9fb326a1bbe76009d288ab (diff)
downloadskyblock-stats-bd3dccfe0e0dbc90c2c37767a03e4304e2621ba3.tar.gz
skyblock-stats-bd3dccfe0e0dbc90c2c37767a03e4304e2621ba3.tar.bz2
skyblock-stats-bd3dccfe0e0dbc90c2c37767a03e4304e2621ba3.zip
format apitypes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/APITypes.d.ts67
1 files changed, 37 insertions, 30 deletions
diff --git a/src/lib/APITypes.d.ts b/src/lib/APITypes.d.ts
index 983fb61..2547669 100644
--- a/src/lib/APITypes.d.ts
+++ b/src/lib/APITypes.d.ts
@@ -8,26 +8,26 @@ export interface CleanMemberProfile {
}
export interface CleanMemberProfilePlayer extends CleanPlayer {
- profileName: string;
- firstJoin: number | null;
- lastSave: number | null;
- purse: number;
- stats: StatItem[];
+ profileName: string
+ firstJoin: number | null
+ lastSave: number | null
+ purse: number
+ stats: StatItem[]
rawHypixelStats: {
- [key: string]: number;
- };
- minions: CleanMinion[];
- fairySouls: FairySouls;
- inventories?: Inventories;
- objectives: Objective[];
- skills: Skill[];
- zones: Zone[];
- collections: Collection[];
- slayers: SlayerData;
- pets: PetsData;
- harp: HarpData;
- coopInvitation: CoopInvitation | null;
- farmingContests: FarmingContests;
+ [key: string]: number
+ }
+ minions: CleanMinion[]
+ fairySouls: FairySouls
+ inventories?: Inventories
+ objectives: Objective[]
+ skills: Skill[]
+ zones: Zone[]
+ collections: Collection[]
+ slayers: SlayerData
+ pets: PetsData
+ harp: HarpData
+ coopInvitation: CoopInvitation | null
+ farmingContests: FarmingContests
}
export interface CleanMember extends CleanBasicMember {
@@ -320,23 +320,30 @@ export interface ItemListData {
}
export interface PlayerFarmingContestStats {
- year: number;
- month: number;
- day: number;
+ year: number
+ month: number
+ day: number
crops: {
- item: string;
- amount: number;
+ item: string
+ amount: number
/** The position (1-indexed) that the user got on the contest. */
- position: number | null;
+ position: number | null
/** Whether the player has claimed their rewards. */
- claimed: boolean | null;
+ claimed: boolean | null
/**
* The number of people who participated in this contest.
*/
- participants: number | null;
- }[];
+ participants: number | null
+ }[]
}
export interface FarmingContests {
- talkedToJacob: boolean;
- list: PlayerFarmingContestStats[];
+ talkedToJacob: boolean
+ list: PlayerFarmingContestStats[]
+}
+
+export interface CoopInvitation {
+ invitedTimestamp: number
+ invitedByUuid: string
+ accepted: boolean
+ acceptedTimestamp: number | null
}