hive-bedrock-api 2.1.17 → 2.1.18

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.
@@ -88,7 +88,7 @@ export interface ProcessedGameGROUND {
88
88
  projectiles_fired: number;
89
89
  }
90
90
  export interface ProcessedGameBUILD {
91
- id: Game.JustBuild;
91
+ id: Game.BuildBattle;
92
92
  xp: number;
93
93
  played: number;
94
94
  victories: number;
@@ -140,6 +140,7 @@ export interface ProcessedGameSKY {
140
140
  mystery_chests_destroyed: number;
141
141
  ores_mined: number;
142
142
  spells_used: number;
143
+ prestige: number;
143
144
  }
144
145
  export interface ProcessedGameSKYKITS {
145
146
  id: Game.SkyWarsKits;
@@ -254,7 +255,7 @@ export interface ProcessedGame<T extends Timeframe, L extends boolean> {
254
255
  [Game.DeathRun]: ProcessedGameDR & AdditionalStatistics<T, L>;
255
256
  [Game.Gravity]: ProcessedGameGRAV & AdditionalStatistics<T, L>;
256
257
  [Game.GroundWars]: ProcessedGameGROUND & AdditionalStatistics<T, L>;
257
- [Game.JustBuild]: ProcessedGameBUILD & AdditionalStatistics<T, L>;
258
+ [Game.BuildBattle]: ProcessedGameBUILD & AdditionalStatistics<T, L>;
258
259
  [Game.HideAndSeek]: ProcessedGameHIDE & AdditionalStatistics<T, L>;
259
260
  [Game.MurderMystery]: ProcessedGameMURDER & AdditionalStatistics<T, L>;
260
261
  [Game.SkyWars]: ProcessedGameSKY & AdditionalStatistics<T, L>;
@@ -302,3 +303,10 @@ export interface ProcessedMonthlyGamesResponse {
302
303
  [G in Game]: ProcessedGame<Timeframe.Monthly, false>[G] | null;
303
304
  };
304
305
  }
306
+ export interface AvailableLeaderboard {
307
+ month: string;
308
+ year: string;
309
+ month_number: number;
310
+ resource: string;
311
+ }
312
+ export type AvailableLeaderboardResponse = AvailableLeaderboard[];
@@ -160,10 +160,10 @@ exports.processors = (_a = {},
160
160
  projectiles_fired: (_h = response.projectiles_fired) !== null && _h !== void 0 ? _h : 0,
161
161
  });
162
162
  },
163
- _a[hive_bedrock_data_1.Game.JustBuild] = function (response) {
163
+ _a[hive_bedrock_data_1.Game.BuildBattle] = function (response) {
164
164
  var _a, _b, _c, _d, _e, _f, _g, _h;
165
165
  return ({
166
- id: hive_bedrock_data_1.Game.JustBuild,
166
+ id: hive_bedrock_data_1.Game.BuildBattle,
167
167
  xp: (_a = response.xp) !== null && _a !== void 0 ? _a : 0,
168
168
  played: (_b = response.played) !== null && _b !== void 0 ? _b : 0,
169
169
  victories: (_c = response.victories) !== null && _c !== void 0 ? _c : 0,
@@ -216,7 +216,7 @@ exports.processors = (_a = {},
216
216
  });
217
217
  },
218
218
  _a[hive_bedrock_data_1.Game.SkyWars] = function (response) {
219
- var _a, _b, _c, _d, _e, _f, _g, _h;
219
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
220
220
  return ({
221
221
  id: hive_bedrock_data_1.Game.SkyWars,
222
222
  xp: (_a = response.xp) !== null && _a !== void 0 ? _a : 0,
@@ -230,6 +230,7 @@ exports.processors = (_a = {},
230
230
  mystery_chests_destroyed: (_f = response.mystery_chests_destroyed) !== null && _f !== void 0 ? _f : 0,
231
231
  ores_mined: (_g = response.ores_mined) !== null && _g !== void 0 ? _g : 0,
232
232
  spells_used: (_h = response.spells_used) !== null && _h !== void 0 ? _h : 0,
233
+ prestige: (_j = response.prestige) !== null && _j !== void 0 ? _j : 0,
233
234
  });
234
235
  },
235
236
  _a[hive_bedrock_data_1.Game.SkyWarsKits] = function (response) {
@@ -10,7 +10,6 @@ import { Processed_HideAndSeek_AllTimeStatistics, Processed_HideAndSeek_MonthlyS
10
10
  import { Processed_BuildBattle_AllTimeStatistics, Processed_BuildBattle_MonthlyStatistics } from "../processors/build";
11
11
  import { Processed_MurderMystery_AllTimeStatistics, Processed_MurderMystery_MonthlyStatistics } from "../processors/murder";
12
12
  import { Processed_ParkourWorlds_AllTimeStatistics } from "../processors/parkour";
13
- import { Processed_Skywars_AllTimeStatistics, Processed_Skywars_MonthlyStatistics } from "../processors/sky";
14
13
  import { Processed_SurvivalGames_AllTimeStatistics, Processed_SurvivalGames_MonthlyStatistics } from "../processors/sg";
15
14
  import { Processed_TheBridge_AllTimeStatistics, Processed_TheBridge_MonthlyStatistics } from "../processors/bridge";
16
15
  import { Processed_TreasureWars_AllTimeStatistics, Processed_TreasureWars_MonthlyStatistics } from "../processors/wars";
@@ -28,7 +27,6 @@ export interface AllTimeProcessedStatistics {
28
27
  [Game.HideAndSeek]: Processed_HideAndSeek_AllTimeStatistics;
29
28
  [Game.BuildBattle]: Processed_BuildBattle_AllTimeStatistics;
30
29
  [Game.MurderMystery]: Processed_MurderMystery_AllTimeStatistics;
31
- [Game.Skywars]: Processed_Skywars_AllTimeStatistics;
32
30
  [Game.SurvivalGames]: Processed_SurvivalGames_AllTimeStatistics;
33
31
  [Game.TheBridge]: Processed_TheBridge_AllTimeStatistics;
34
32
  [Game.TreasureWars]: Processed_TreasureWars_AllTimeStatistics;
@@ -51,7 +49,6 @@ export interface MonthlyProcessedStatistics {
51
49
  [Game.HideAndSeek]: Processed_HideAndSeek_MonthlyStatistics;
52
50
  [Game.BuildBattle]: Processed_BuildBattle_MonthlyStatistics;
53
51
  [Game.MurderMystery]: Processed_MurderMystery_MonthlyStatistics;
54
- [Game.Skywars]: Processed_Skywars_MonthlyStatistics;
55
52
  [Game.SurvivalGames]: Processed_SurvivalGames_MonthlyStatistics;
56
53
  [Game.TheBridge]: Processed_TheBridge_MonthlyStatistics;
57
54
  [Game.TreasureWars]: Processed_TreasureWars_MonthlyStatistics;
package/lib/utils.d.ts CHANGED
@@ -4,7 +4,6 @@ export interface MethodResponseError {
4
4
  }
5
5
  export type MethodResponse<D extends any> = {
6
6
  meta?: {
7
- /** sss */
8
7
  duration: number;
9
8
  ratelimit?: {
10
9
  limit: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-bedrock-api",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
4
4
  "description": "An API wrapper for the Hive Minecraft Bedrock Edition server.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "license": "MIT",
12
12
  "author": "Cubeedge Studios",
13
13
  "dependencies": {
14
- "hive-bedrock-data": "^1.2.13"
14
+ "hive-bedrock-data": "^1.2.14"
15
15
  },
16
16
  "scripts": {
17
17
  "build": "tsc"