@wrcb/cb-common 1.0.826 → 1.0.829
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.
|
@@ -11,7 +11,10 @@ export declare class RedisService {
|
|
|
11
11
|
static bannedViewerKey(streamerId: string, viewerId: string): string;
|
|
12
12
|
static sellerProfileKey(tenant: Tenant, sellerId: string): string;
|
|
13
13
|
static babeliaTopicQuestionsKey(topicId: string): string;
|
|
14
|
-
static babeliaTopicTheoryKey(topicId: string
|
|
14
|
+
static babeliaTopicTheoryKey(topicId: string): string;
|
|
15
|
+
static babeliaListeningPassagesKey(topicId: string): string;
|
|
16
|
+
static babeliaReadingPassagesKey(topicId: string): string;
|
|
17
|
+
static babeliaWritingChallengesKey(topicId: string): string;
|
|
15
18
|
static babeliaUserHeartsKey(userId: string): string;
|
|
16
19
|
static babeliaPlacementQuestionsKey(language: string): string;
|
|
17
20
|
static babeliaWordQuestionsKey(word: string, language: string): string;
|
|
@@ -36,8 +36,17 @@ class RedisService {
|
|
|
36
36
|
static babeliaTopicQuestionsKey(topicId) {
|
|
37
37
|
return `babelia:topic:${topicId}:questions`;
|
|
38
38
|
}
|
|
39
|
-
static babeliaTopicTheoryKey(topicId
|
|
40
|
-
return `babelia:topic:${topicId}:theory
|
|
39
|
+
static babeliaTopicTheoryKey(topicId) {
|
|
40
|
+
return `babelia:topic:${topicId}:theory:all`;
|
|
41
|
+
}
|
|
42
|
+
static babeliaListeningPassagesKey(topicId) {
|
|
43
|
+
return `babelia:topic:${topicId}:listening:passages`;
|
|
44
|
+
}
|
|
45
|
+
static babeliaReadingPassagesKey(topicId) {
|
|
46
|
+
return `babelia:topic:${topicId}:reading:passages`;
|
|
47
|
+
}
|
|
48
|
+
static babeliaWritingChallengesKey(topicId) {
|
|
49
|
+
return `babelia:topic:${topicId}:writing:challenges`;
|
|
41
50
|
}
|
|
42
51
|
static babeliaUserHeartsKey(userId) {
|
|
43
52
|
return `babelia:user:${userId}:hearts`;
|
package/build/types/babelia.d.ts
CHANGED
|
@@ -67,3 +67,17 @@ export declare enum BabeliaFriendshipStatus {
|
|
|
67
67
|
Accepted = "Accepted",
|
|
68
68
|
Rejected = "Rejected"
|
|
69
69
|
}
|
|
70
|
+
export type BabeliaSubscriptionStatus = 'active' | 'cancelled' | 'expired' | 'grace_period';
|
|
71
|
+
export interface BabeliaGrammarError {
|
|
72
|
+
original: string;
|
|
73
|
+
correction: string;
|
|
74
|
+
explanation: string;
|
|
75
|
+
}
|
|
76
|
+
export interface BabeliaWritingFeedback {
|
|
77
|
+
overallScore: number;
|
|
78
|
+
grammarErrors: BabeliaGrammarError[];
|
|
79
|
+
vocabularySuggestions: string[];
|
|
80
|
+
taskCompletion: boolean;
|
|
81
|
+
generalComment: string;
|
|
82
|
+
improvedVersion: string;
|
|
83
|
+
}
|