@rimori/client 2.5.13 → 2.5.14
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.
|
@@ -17,6 +17,8 @@ export interface Language {
|
|
|
17
17
|
uppercase: string;
|
|
18
18
|
}
|
|
19
19
|
export type UserRole = 'user' | 'plugin_moderator' | 'lang_moderator' | 'admin';
|
|
20
|
+
export declare const LEARNING_REASONS: readonly ["work", "partner", "friends", "study", "living", "culture", "growth", "citizenship", "other"];
|
|
21
|
+
export type LearningReason = (typeof LEARNING_REASONS)[number];
|
|
20
22
|
export interface UserInfo {
|
|
21
23
|
/**
|
|
22
24
|
* The user's unique ID
|
|
@@ -28,10 +30,7 @@ export interface UserInfo {
|
|
|
28
30
|
skill_level_speaking: LanguageLevel;
|
|
29
31
|
skill_level_listening: LanguageLevel;
|
|
30
32
|
skill_level_understanding: LanguageLevel;
|
|
31
|
-
goal_longterm: string;
|
|
32
|
-
goal_weekly: string;
|
|
33
33
|
study_buddy: Buddy;
|
|
34
|
-
story_genre: string;
|
|
35
34
|
study_duration: number;
|
|
36
35
|
/**
|
|
37
36
|
* The language the user speaks natively.
|
|
@@ -41,7 +40,14 @@ export interface UserInfo {
|
|
|
41
40
|
* The language the user targets to learn.
|
|
42
41
|
*/
|
|
43
42
|
target_language: Language;
|
|
44
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Why the user is learning the language
|
|
45
|
+
*/
|
|
46
|
+
learning_reason: LearningReason;
|
|
47
|
+
/**
|
|
48
|
+
* Free-text personal interests
|
|
49
|
+
*/
|
|
50
|
+
personal_interests: string;
|
|
45
51
|
onboarding_completed: boolean;
|
|
46
52
|
context_menu_on_select: boolean;
|
|
47
53
|
user_name?: string;
|
|
@@ -7,6 +7,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
export const LEARNING_REASONS = [
|
|
11
|
+
'work',
|
|
12
|
+
'partner',
|
|
13
|
+
'friends',
|
|
14
|
+
'study',
|
|
15
|
+
'living',
|
|
16
|
+
'culture',
|
|
17
|
+
'growth',
|
|
18
|
+
'citizenship',
|
|
19
|
+
'other',
|
|
20
|
+
];
|
|
10
21
|
export class SettingsController {
|
|
11
22
|
constructor(supabase, pluginId, guild) {
|
|
12
23
|
this.supabase = supabase;
|