revdev 0.332.0 → 0.335.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntryStatus } from "../../common";
|
|
1
|
+
import { EntryStatus, WordMode } from "../../common";
|
|
2
2
|
import { FeedRequest } from "../../feed";
|
|
3
3
|
export interface BoTranRefFeedRequest extends FeedRequest {
|
|
4
4
|
sourceLangCode?: string;
|
|
@@ -15,3 +15,14 @@ export interface BoTranExternalRequest {
|
|
|
15
15
|
destLangCode: string;
|
|
16
16
|
text: string | string[];
|
|
17
17
|
}
|
|
18
|
+
export interface BoWordDefinition {
|
|
19
|
+
text: string;
|
|
20
|
+
tagCode: string;
|
|
21
|
+
speechPartCode?: string;
|
|
22
|
+
mode?: WordMode;
|
|
23
|
+
initRate?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface BoCreateDefinitionRequest {
|
|
26
|
+
wordId: string;
|
|
27
|
+
items: BoWordDefinition[];
|
|
28
|
+
}
|
|
@@ -4,7 +4,7 @@ import { WordGen } from "../../shared";
|
|
|
4
4
|
export interface BoWordRecord extends WordDataGen {
|
|
5
5
|
status?: EntryStatus;
|
|
6
6
|
created: string;
|
|
7
|
-
mode?:
|
|
7
|
+
mode?: number;
|
|
8
8
|
rate?: number;
|
|
9
9
|
tranTotal: number;
|
|
10
10
|
listTotal: number;
|
|
@@ -15,7 +15,7 @@ export interface BoWordRecord extends WordDataGen {
|
|
|
15
15
|
}
|
|
16
16
|
export interface BoWordEntity extends WordGen {
|
|
17
17
|
created: string;
|
|
18
|
-
mode?:
|
|
18
|
+
mode?: number;
|
|
19
19
|
rate?: number;
|
|
20
20
|
}
|
|
21
21
|
export interface BoWordAudioRecord {
|
package/lib/common/enums.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare enum Knowing {
|
|
|
5
5
|
}
|
|
6
6
|
export declare enum WordMode {
|
|
7
7
|
Word = 1,
|
|
8
|
-
|
|
8
|
+
Meaning = 2,
|
|
9
9
|
Idiom = 4
|
|
10
10
|
}
|
|
11
11
|
export declare enum UserReaction {
|
|
@@ -116,5 +116,8 @@ export declare enum PermissionName {
|
|
|
116
116
|
}
|
|
117
117
|
export declare enum AiPromptName {
|
|
118
118
|
WordTags = "wordTags",
|
|
119
|
-
Rule = "rule"
|
|
119
|
+
Rule = "rule",
|
|
120
|
+
WordSynonym = "wordSynonym",
|
|
121
|
+
WordMeaning = "wordMeaning",
|
|
122
|
+
WordTranscription = "wordTranscription"
|
|
120
123
|
}
|
package/lib/common/enums.js
CHANGED
|
@@ -7,10 +7,11 @@ var Knowing;
|
|
|
7
7
|
Knowing[Knowing["Saved"] = 2] = "Saved";
|
|
8
8
|
Knowing[Knowing["Unknown"] = 3] = "Unknown";
|
|
9
9
|
})(Knowing || (exports.Knowing = Knowing = {}));
|
|
10
|
+
// Bitwise flags
|
|
10
11
|
var WordMode;
|
|
11
12
|
(function (WordMode) {
|
|
12
13
|
WordMode[WordMode["Word"] = 1] = "Word";
|
|
13
|
-
WordMode[WordMode["
|
|
14
|
+
WordMode[WordMode["Meaning"] = 2] = "Meaning";
|
|
14
15
|
WordMode[WordMode["Idiom"] = 4] = "Idiom";
|
|
15
16
|
})(WordMode || (exports.WordMode = WordMode = {}));
|
|
16
17
|
var UserReaction;
|
|
@@ -148,4 +149,7 @@ var AiPromptName;
|
|
|
148
149
|
(function (AiPromptName) {
|
|
149
150
|
AiPromptName["WordTags"] = "wordTags";
|
|
150
151
|
AiPromptName["Rule"] = "rule";
|
|
152
|
+
AiPromptName["WordSynonym"] = "wordSynonym";
|
|
153
|
+
AiPromptName["WordMeaning"] = "wordMeaning";
|
|
154
|
+
AiPromptName["WordTranscription"] = "wordTranscription";
|
|
151
155
|
})(AiPromptName || (exports.AiPromptName = AiPromptName = {}));
|
package/lib/feed/index.d.ts
CHANGED