revdev 0.168.0 → 0.169.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,9 +1,6 @@
1
1
  import { ContributionGen } from "../../common";
2
2
  import { WordGen } from "../../shared";
3
- export interface BoWordRecord {
4
- id: string;
5
- text: string;
6
- langCode: string;
3
+ export interface BoWordRecord extends WordGen {
7
4
  created: string;
8
5
  mode?: string;
9
6
  rate?: number;
@@ -14,10 +11,7 @@ export interface BoWordRecord {
14
11
  tagCount: number;
15
12
  tags?: string[];
16
13
  }
17
- export interface BoWordEntity {
18
- id: string;
19
- text: string;
20
- langCode: string;
14
+ export interface BoWordEntity extends WordGen {
21
15
  created: string;
22
16
  mode?: string;
23
17
  rate?: number;
@@ -1,14 +1,9 @@
1
1
  import { Feed } from "../../feed";
2
- import { QuizCode, QuizMode, Knowing, ContributionGen, AccessGen } from "../../common";
2
+ import { QuizCode, QuizMode, ContributionGen, AccessGen } from "../../common";
3
3
  import { FeWordImageRecord } from "../image";
4
4
  import { FeTranRecord } from "../tran";
5
- import { ReactionGen } from "../../shared";
6
- export interface FeWordRecord {
7
- id: string;
8
- text: string;
9
- langCode: string;
10
- mode?: string;
11
- knowing?: Knowing;
5
+ import { ReactionGen, UserWordGen } from "../../shared";
6
+ export interface FeWordRecord extends UserWordGen {
12
7
  attempts?: FeWordAttempt[];
13
8
  images?: FeWordImageRecord[];
14
9
  audios?: FeWordAudio[];
@@ -47,11 +42,7 @@ export interface FeWordTranCode {
47
42
  langCode: string;
48
43
  count: number;
49
44
  }
50
- export interface FeWordEntity {
51
- id: string;
52
- text: string;
53
- langCode: string;
54
- knowing?: Knowing;
45
+ export interface FeWordEntity extends UserWordGen {
55
46
  mode?: string;
56
47
  contribution?: ContributionGen;
57
48
  access?: AccessGen;
@@ -3,6 +3,8 @@ export interface WordGen {
3
3
  id: string;
4
4
  text: string;
5
5
  langCode: string;
6
+ }
7
+ export interface UserWordGen extends WordGen {
6
8
  knowing?: Knowing;
7
9
  }
8
10
  export interface RealWord {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.168.0",
3
+ "version": "0.169.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",