aboutsummaryrefslogtreecommitdiff
path: root/src/lib/APITypes.d.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-30 19:18:58 +0000
committermat <github@matdoes.dev>2022-03-30 19:18:58 +0000
commit58f6975e9a51d41a028f73570a50763563369857 (patch)
tree33f9d480a435d12596e36a33ac589cd635680705 /src/lib/APITypes.d.ts
parentc265f90879e9781dbdec08d7b297e0e2ce9bd76c (diff)
downloadskyblock-stats-58f6975e9a51d41a028f73570a50763563369857.tar.gz
skyblock-stats-58f6975e9a51d41a028f73570a50763563369857.tar.bz2
skyblock-stats-58f6975e9a51d41a028f73570a50763563369857.zip
farming contest info
Diffstat (limited to 'src/lib/APITypes.d.ts')
-rw-r--r--src/lib/APITypes.d.ts59
1 files changed, 42 insertions, 17 deletions
diff --git a/src/lib/APITypes.d.ts b/src/lib/APITypes.d.ts
index 926072c..983fb61 100644
--- a/src/lib/APITypes.d.ts
+++ b/src/lib/APITypes.d.ts
@@ -8,23 +8,26 @@ export interface CleanMemberProfile {
}
export interface CleanMemberProfilePlayer extends CleanPlayer {
- // The profile name may be different for each player, so we put it here
- profileName: string
- firstJoin: number
- lastSave: number
- 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
+ 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;
}
export interface CleanMember extends CleanBasicMember {
@@ -315,3 +318,25 @@ export interface ItemListData {
lastUpdated: number
list: ItemListItem[]
}
+
+export interface PlayerFarmingContestStats {
+ year: number;
+ month: number;
+ day: number;
+ crops: {
+ item: string;
+ amount: number;
+ /** The position (1-indexed) that the user got on the contest. */
+ position: number | null;
+ /** Whether the player has claimed their rewards. */
+ claimed: boolean | null;
+ /**
+ * The number of people who participated in this contest.
+ */
+ participants: number | null;
+ }[];
+}
+export interface FarmingContests {
+ talkedToJacob: boolean;
+ list: PlayerFarmingContestStats[];
+}