revdev 0.51.0 → 0.52.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.
@@ -3,12 +3,13 @@ import { FeLanguage } from "../language";
3
3
  import { FeList } from "../list";
4
4
  import { FeTable } from "../table";
5
5
  import { FeWord } from "../word";
6
- export interface FeWordKnowing {
6
+ export interface FeWordKnowledge {
7
7
  total: number;
8
8
  learn: number;
9
9
  known: number;
10
10
  unknown: number;
11
11
  }
12
+ export declare type FeWordKnowing = [number, number];
12
13
  export interface FeWordDirect {
13
14
  id: string;
14
15
  text: string;
@@ -1,5 +1,5 @@
1
1
  import { Knowing } from "../../general";
2
- import { FeWordKnowing } from "../common";
2
+ import { FeWordKnowledge } from "../common";
3
3
  import { FeWord } from "../word";
4
4
  export interface FeDiscoverProveData {
5
5
  word: FeWord;
@@ -8,16 +8,16 @@ export interface FeDiscoverProveData {
8
8
  }
9
9
  export interface FeDiscoverKnowingOld {
10
10
  words?: [string, Knowing][];
11
- tags?: [string, string, FeWordKnowing][];
12
- lists?: [string, FeWordKnowing][];
13
- tables?: [string, FeWordKnowing][];
14
- languages?: [string, FeWordKnowing][];
11
+ tags?: [string, string, FeWordKnowledge][];
12
+ lists?: [string, FeWordKnowledge][];
13
+ tables?: [string, FeWordKnowledge][];
14
+ languages?: [string, FeWordKnowledge][];
15
15
  }
16
- export interface FeEntityKnowing extends FeWordKnowing {
16
+ export interface FeEntityKnowing extends FeWordKnowledge {
17
17
  id: string;
18
18
  text: string;
19
19
  }
20
- export interface FeDiscoverMeta extends FeWordKnowing {
20
+ export interface FeDiscoverMeta extends FeWordKnowledge {
21
21
  columns: FeEntityKnowing[];
22
22
  }
23
23
  export interface ProveWordMeta extends FeWord {
@@ -1,4 +1,3 @@
1
- import { FeWordKnowing } from "..";
2
1
  import { Feed } from "../../feed";
3
2
  import { FeList } from "../list";
4
3
  import { FeTable } from "../table";
@@ -6,7 +5,8 @@ import { FeTag } from "../tag";
6
5
  import { FeUserRelationMeta } from "../user";
7
6
  export interface FeLanguage {
8
7
  code: string;
9
- knowing: FeWordKnowing;
8
+ wordCount: number;
9
+ knownWordCount: number;
10
10
  listCount: number;
11
11
  tableCount: number;
12
12
  tagCount: number;
@@ -1,4 +1,4 @@
1
- import { FeEntityAccess, FeEntityContribution, FeWordKnowing, EntryWord } from "../common";
1
+ import { FeEntityAccess, FeEntityContribution, EntryWord } from "../common";
2
2
  export interface FeList {
3
3
  id: string;
4
4
  slug: string;
@@ -24,7 +24,8 @@ export interface FeListEntity {
24
24
  metaKeywords?: string;
25
25
  contribution: FeEntityContribution;
26
26
  access: FeEntityAccess;
27
- knowing: FeWordKnowing;
27
+ wordCount: number;
28
+ knownWordCount: number;
28
29
  }
29
30
  export interface FeCreateListRequest {
30
31
  name: string;
@@ -1,4 +1,4 @@
1
- import { FeEntityAccess, FeEntityContribution, FeWordKnowing, RealWord } from "../common";
1
+ import { FeEntityAccess, FeEntityContribution, RealWord } from "../common";
2
2
  import { FeWord } from "../word";
3
3
  export interface BasicCellStruct<TWords> {
4
4
  columnIndex: number;
@@ -30,7 +30,8 @@ export interface FeTableEntity {
30
30
  metaKeywords: string;
31
31
  access: FeEntityAccess;
32
32
  contribution: FeEntityContribution;
33
- knowing: FeWordKnowing;
33
+ wordCount: number;
34
+ knownWordCount: number;
34
35
  columns: string[];
35
36
  }
36
37
  export interface FeCellInfo extends BasicCellStruct<RealWord[]> {
@@ -1,4 +1,4 @@
1
- import { FeEntityContribution, FeWordKnowing, EntryWord } from "../common";
1
+ import { FeEntityContribution, EntryWord } from "../common";
2
2
  export interface FeCreateTagRequest {
3
3
  code: string;
4
4
  }
@@ -17,5 +17,6 @@ export interface FeTagEntity {
17
17
  code: string;
18
18
  languageCode: string;
19
19
  contribution: FeEntityContribution;
20
- knowing: FeWordKnowing;
20
+ wordCount: number;
21
+ knownWordCount: number;
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",