@retroachievements/api 2.6.0 → 2.7.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.
@@ -36,7 +36,10 @@ describe("Function: getUserRecentAchievements", () => {
36
36
  "Win the Tournament as [You] on Hard with 1 attribute on max. and 1 attribute on min.",
37
37
  BadgeName: "121991",
38
38
  Points: 25,
39
+ TrueRatio: 50,
40
+ Type: "missable",
39
41
  Author: "Som1",
42
+ AuthorULID: "01F13ZKAPPEZ90K3JK82QWYRN2",
40
43
  GameTitle: "WWF King of the Ring",
41
44
  GameIcon: "/Images/062599.png",
42
45
  GameID: 6316,
@@ -68,7 +71,10 @@ describe("Function: getUserRecentAchievements", () => {
68
71
  "Win the Tournament as [You] on Hard with 1 attribute on max. and 1 attribute on min.",
69
72
  badgeName: "121991",
70
73
  points: 25,
74
+ trueRatio: 50,
75
+ type: "missable",
71
76
  author: "Som1",
77
+ authorUlid: "01F13ZKAPPEZ90K3JK82QWYRN2",
72
78
  gameTitle: "WWF King of the Ring",
73
79
  gameIcon: "/Images/062599.png",
74
80
  gameId: 6316,
@@ -1,3 +1,5 @@
1
+ import type { AchievementType } from "../../achievement";
2
+
1
3
  interface GetUserRecentAchievementsEntity {
2
4
  Date: string;
3
5
  HardcoreMode: 0 | 1;
@@ -6,7 +8,10 @@ interface GetUserRecentAchievementsEntity {
6
8
  Description: string;
7
9
  BadgeName: string;
8
10
  Points: number;
11
+ TrueRatio: number;
12
+ Type: AchievementType;
9
13
  Author: string;
14
+ AuthorULID: string;
10
15
  GameTitle: string;
11
16
  GameIcon: string;
12
17
  GameID: number;
@@ -1,3 +1,5 @@
1
+ import type { AchievementType } from "../../achievement";
2
+
1
3
  export interface UserRecentAchievement {
2
4
  date: string;
3
5
  hardcoreMode: boolean;
@@ -6,7 +8,10 @@ export interface UserRecentAchievement {
6
8
  description: string;
7
9
  badgeName: string;
8
10
  points: number;
11
+ trueRatio: number;
12
+ type: AchievementType;
9
13
  author: string;
14
+ authorUlid: string;
10
15
  gameTitle: string;
11
16
  gameIcon: string;
12
17
  gameId: number;
@@ -62,6 +62,9 @@ const naiveCamelCase = (originalValue: string) => {
62
62
  let camelCased =
63
63
  originalValue.charAt(0).toLowerCase() + originalValue.slice(1);
64
64
 
65
+ // "authorULId" -> "authorUlid"
66
+ camelCased = camelCased.replaceAll("ULID", "Ulid");
67
+
65
68
  // "gameID" -> "gameId"
66
69
  camelCased = camelCased.replaceAll("ID", "Id");
67
70