@wrcb/cb-common 1.0.825 → 1.0.826

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.
@@ -15,4 +15,6 @@ export declare class RedisService {
15
15
  static babeliaUserHeartsKey(userId: string): string;
16
16
  static babeliaPlacementQuestionsKey(language: string): string;
17
17
  static babeliaWordQuestionsKey(word: string, language: string): string;
18
+ static babeliaTopicsListKey(language: string, level: string, activityType: string, topicType?: string): string;
19
+ static babeliaLeaderboardKey(userId: string): string;
18
20
  }
@@ -48,5 +48,11 @@ class RedisService {
48
48
  static babeliaWordQuestionsKey(word, language) {
49
49
  return `babelia:word:${language}:${word}:questions`;
50
50
  }
51
+ static babeliaTopicsListKey(language, level, activityType, topicType) {
52
+ return `babelia:topics:${language}:${level}:${activityType}:${topicType !== null && topicType !== void 0 ? topicType : 'all'}`;
53
+ }
54
+ static babeliaLeaderboardKey(userId) {
55
+ return `babelia:leaderboard:${userId}`;
56
+ }
51
57
  }
52
58
  exports.RedisService = RedisService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.825",
3
+ "version": "1.0.826",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",