revdev 0.125.0 → 0.128.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.
- package/lib/back/word/entity.d.ts +1 -1
- package/lib/front/discover/entity.d.ts +1 -1
- package/lib/front/general/entity.d.ts +0 -31
- package/lib/front/image/entity.d.ts +1 -1
- package/lib/front/list/request.d.ts +0 -6
- package/lib/front/quiz/entity.d.ts +1 -1
- package/lib/front/table/entity.d.ts +1 -1
- package/lib/front/table/request.d.ts +1 -1
- package/lib/front/tag/entity.d.ts +1 -4
- package/lib/front/translation/entity.d.ts +1 -1
- package/lib/front/translation/request.d.ts +1 -1
- package/lib/front/user/entity.d.ts +1 -1
- package/lib/front/word/entity.d.ts +1 -1
- package/lib/front/word/request.d.ts +1 -2
- package/lib/shared/general/entity.d.ts +15 -0
- package/lib/shared/general/entity.js +2 -0
- package/lib/shared/general/index.d.ts +1 -0
- package/lib/shared/general/index.js +13 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +1 -0
- package/lib/shared/list/request.d.ts +6 -0
- package/lib/shared/word/entity.d.ts +16 -0
- package/lib/shared/word/entity.js +2 -0
- package/lib/shared/word/index.d.ts +1 -0
- package/lib/shared/word/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
import { Knowing } from "../../common";
|
|
2
1
|
import { FeLanguageRecord } from "../language";
|
|
3
2
|
import { FeListRecord } from "../list";
|
|
4
3
|
import { FeTableRecord } from "../table";
|
|
5
4
|
import { FeWordRecord } from "../word";
|
|
6
|
-
export interface WordKnowledge {
|
|
7
|
-
total: number;
|
|
8
|
-
learn: number;
|
|
9
|
-
known: number;
|
|
10
|
-
unknown: number;
|
|
11
|
-
}
|
|
12
|
-
export declare type UserWordKnowing = [number, number];
|
|
13
|
-
export interface WordGen {
|
|
14
|
-
id: string;
|
|
15
|
-
text: string;
|
|
16
|
-
languageCode: string;
|
|
17
|
-
knowing?: Knowing;
|
|
18
|
-
}
|
|
19
|
-
export interface ReactionGen {
|
|
20
|
-
rate: number;
|
|
21
|
-
userRate: number;
|
|
22
|
-
}
|
|
23
5
|
export interface FeInitData {
|
|
24
6
|
languageCodes: string[];
|
|
25
7
|
speechPartCodes: string[];
|
|
@@ -36,16 +18,3 @@ export interface FeSearchResult {
|
|
|
36
18
|
lists: FeListRecord[];
|
|
37
19
|
tables: FeTableRecord[];
|
|
38
20
|
}
|
|
39
|
-
export interface UpdatedEntity {
|
|
40
|
-
id: string;
|
|
41
|
-
slug: string;
|
|
42
|
-
}
|
|
43
|
-
export interface RealWord {
|
|
44
|
-
id: string;
|
|
45
|
-
text: string;
|
|
46
|
-
}
|
|
47
|
-
export interface PotentialWord {
|
|
48
|
-
id?: string;
|
|
49
|
-
text: string;
|
|
50
|
-
}
|
|
51
|
-
export declare type EntryWord = string | string[] | PotentialWord | PotentialWord[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest } from "../../feed";
|
|
2
|
-
import { EntryWord } from "../general";
|
|
3
2
|
export interface FeListWordFeedRequest extends FeedRequest, FeWordSetRequest {
|
|
4
3
|
slug: string;
|
|
5
4
|
}
|
|
@@ -16,8 +15,3 @@ export interface FeUpdateListRequest extends Omit<FeCreateListRequest, "language
|
|
|
16
15
|
export interface FeListModifier extends FeCreateListRequest {
|
|
17
16
|
id: string;
|
|
18
17
|
}
|
|
19
|
-
export interface FeListLinkWordRequest {
|
|
20
|
-
listId: string;
|
|
21
|
-
word: EntryWord;
|
|
22
|
-
link: boolean;
|
|
23
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest, LanguageFeedRequest } from "../../feed";
|
|
2
|
-
import { EntryWord } from "
|
|
2
|
+
import { EntryWord } from "../../shared";
|
|
3
3
|
import { BasicCellStruct } from "./entity";
|
|
4
4
|
export interface FeRowFeedRequest extends FeedRequest {
|
|
5
5
|
slug: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
2
|
import { QuizCode, QuizMode, Knowing, ContributionGen, AccessGen } from "../../common";
|
|
3
3
|
import { FeWordImageRecord } from "../image";
|
|
4
|
-
import { ReactionGen } from "../general";
|
|
5
4
|
import { FeTranslationRecord } from "../translation";
|
|
5
|
+
import { ReactionGen } from "../../shared";
|
|
6
6
|
export interface FeWordRecord {
|
|
7
7
|
id: string;
|
|
8
8
|
text: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest, ShortFeedRequest } from "../../feed";
|
|
2
|
-
import { CreateWordRequest } from "../../shared";
|
|
3
|
-
import { EntryWord } from "../general";
|
|
2
|
+
import { CreateWordRequest, EntryWord } from "../../shared";
|
|
4
3
|
export interface FeWordEntityRequest {
|
|
5
4
|
languageCode: string;
|
|
6
5
|
text: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface WordKnowledge {
|
|
2
|
+
total: number;
|
|
3
|
+
learn: number;
|
|
4
|
+
known: number;
|
|
5
|
+
unknown: number;
|
|
6
|
+
}
|
|
7
|
+
export declare type UserWordKnowing = [number, number];
|
|
8
|
+
export interface ReactionGen {
|
|
9
|
+
rate: number;
|
|
10
|
+
userRate: number;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdatedEntity {
|
|
13
|
+
id: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./entity";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./entity"), exports);
|
package/lib/shared/index.d.ts
CHANGED
package/lib/shared/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntryWord } from "../word";
|
|
1
2
|
export interface CreateListRequest {
|
|
2
3
|
name: string;
|
|
3
4
|
description?: string;
|
|
@@ -15,3 +16,8 @@ export interface CreateListRequest {
|
|
|
15
16
|
export interface UpdateListRequest extends CreateListRequest {
|
|
16
17
|
id: string;
|
|
17
18
|
}
|
|
19
|
+
export interface ListWordLinkRequest {
|
|
20
|
+
listId: string;
|
|
21
|
+
word: EntryWord;
|
|
22
|
+
link: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Knowing } from "../../common";
|
|
2
|
+
export interface WordGen {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
languageCode: string;
|
|
6
|
+
knowing?: Knowing;
|
|
7
|
+
}
|
|
8
|
+
export interface RealWord {
|
|
9
|
+
id: string;
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PotentialWord {
|
|
13
|
+
id?: string;
|
|
14
|
+
text: string;
|
|
15
|
+
}
|
|
16
|
+
export declare type EntryWord = string | string[] | PotentialWord | PotentialWord[];
|
package/lib/shared/word/index.js
CHANGED