halo-infinite-api 3.1.0 → 3.2.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.
@@ -28,6 +28,13 @@ interface CaptureTheFlagStats {
28
28
  KillsAsFlagReturner: number;
29
29
  TimeAsFlagCarrier: string;
30
30
  }
31
+ interface ExtractionStats {
32
+ SuccessfulExtractions: number;
33
+ ExtractionConversionsDenied: number;
34
+ ExtractionConversionsCompleted: number;
35
+ ExtractionInitiationsDenied: number;
36
+ ExtractionInitiationsCompleted: number;
37
+ }
31
38
  type StatsMap = {
32
39
  [GameVariantCategory.MultiplayerOddball]: {
33
40
  OddballStats: OddballStats;
@@ -41,6 +48,9 @@ type StatsMap = {
41
48
  [GameVariantCategory.MultiplayerKingOfTheHill]: {
42
49
  ZonesStats: ZonesStats;
43
50
  };
51
+ [GameVariantCategory.MultiplayerExtraction]: {
52
+ ExtractionStats: ExtractionStats;
53
+ };
44
54
  };
45
55
  export type Stats<TCategory extends GameVariantCategory = GameVariantCategory> = {
46
56
  CoreStats: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "halo-infinite-api",
3
3
  "type": "module",
4
- "version": "3.1.0",
4
+ "version": "3.2.0",
5
5
  "description": "An NPM package for accessing the official Halo Infinite API.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
@@ -29,6 +29,15 @@ interface CaptureTheFlagStats {
29
29
  KillsAsFlagReturner: number;
30
30
  TimeAsFlagCarrier: string;
31
31
  }
32
+
33
+ interface ExtractionStats {
34
+ SuccessfulExtractions: number;
35
+ ExtractionConversionsDenied: number;
36
+ ExtractionConversionsCompleted: number;
37
+ ExtractionInitiationsDenied: number;
38
+ ExtractionInitiationsCompleted: number;
39
+ }
40
+
32
41
  type StatsMap = {
33
42
  [GameVariantCategory.MultiplayerOddball]: { OddballStats: OddballStats };
34
43
  [GameVariantCategory.MultiplayerStrongholds]: { ZonesStats: ZonesStats };
@@ -36,6 +45,9 @@ type StatsMap = {
36
45
  CaptureTheFlagStats: CaptureTheFlagStats;
37
46
  };
38
47
  [GameVariantCategory.MultiplayerKingOfTheHill]: { ZonesStats: ZonesStats };
48
+ [GameVariantCategory.MultiplayerExtraction]: {
49
+ ExtractionStats: ExtractionStats;
50
+ };
39
51
  };
40
52
 
41
53
  export type Stats<TCategory extends GameVariantCategory = GameVariantCategory> =