revdev 0.218.0 → 0.220.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 { ContributionGen } from "../../common";
1
+ import { ContribGen } from "../../common";
2
2
  import { BoUpdateListRequest } from "./request";
3
3
  export interface BoListRecord {
4
4
  id: string;
@@ -8,7 +8,7 @@ export interface BoListRecord {
8
8
  name: string;
9
9
  description: string;
10
10
  isPrivate: boolean;
11
- contribution: ContributionGen;
11
+ contrib: ContribGen;
12
12
  wordTotal: number;
13
13
  userTotal: number;
14
14
  }
@@ -1,4 +1,4 @@
1
- import { EntryStatus } from "../../common";
1
+ import { ContribGen, EntryStatus, UserReaction } from "../../common";
2
2
  import { WordGen } from "../../shared";
3
3
  export interface BoTranWordRecord {
4
4
  tranId: string;
@@ -11,10 +11,20 @@ export interface BoTranWordRecord {
11
11
  export interface BoTranRecord {
12
12
  id: string;
13
13
  speechPartId?: string;
14
- created: string;
15
- userId?: string;
14
+ sourceWord: WordGen;
15
+ destWord: WordGen;
16
16
  active: boolean;
17
17
  status: EntryStatus;
18
+ rate: number;
19
+ contrib: ContribGen;
20
+ }
21
+ export interface BoTranReactionRecord {
22
+ id: string;
23
+ tranId: string;
24
+ reaction: UserReaction;
25
+ speechPartId?: string;
18
26
  sourceWord: WordGen;
19
27
  destWord: WordGen;
28
+ rate: number;
29
+ contrib: ContribGen;
20
30
  }
@@ -4,5 +4,11 @@ export interface BoTranFeedRequest extends FeedRequest {
4
4
  sourceLangCode?: string;
5
5
  destLangCode?: string;
6
6
  speechPartId?: string;
7
+ active?: boolean;
7
8
  status?: EntryStatus;
8
9
  }
10
+ export interface BoTranReactionFeedRequest extends FeedRequest {
11
+ sourceLangCode?: string;
12
+ destLangCode?: string;
13
+ speechPartId?: string;
14
+ }
@@ -1,4 +1,4 @@
1
- import { ContributionGen, EntryStatus } from "../../common";
1
+ import { ContribGen, EntryStatus } from "../../common";
2
2
  import { WordGen } from "../../shared";
3
3
  export interface BoWordRecord extends WordGen {
4
4
  status?: EntryStatus;
@@ -22,7 +22,7 @@ export interface BoWordImageRecord {
22
22
  imageId: string;
23
23
  fileName: string;
24
24
  thumbnailFileName: string;
25
- contribution: ContributionGen;
25
+ contrib: ContribGen;
26
26
  wordTotal: number;
27
27
  rate: number;
28
28
  }
@@ -3,7 +3,10 @@ export interface AccessGen {
3
3
  owned: boolean;
4
4
  linked: boolean;
5
5
  }
6
- export interface ContributionGen {
6
+ export interface UserContribGen {
7
7
  created: string;
8
8
  username: string;
9
9
  }
10
+ export interface ContribGen extends UserContribGen {
11
+ adminname: string;
12
+ }
@@ -8,6 +8,9 @@ export interface CodeRequest {
8
8
  export interface IdRequest {
9
9
  id: string;
10
10
  }
11
+ export interface IdMultiRequest {
12
+ id: string | string[];
13
+ }
11
14
  export interface WordIdsRequest {
12
15
  wordIds: string[];
13
16
  skip: number;
@@ -1,4 +1,4 @@
1
- import { ContributionGen } from "../../common";
1
+ import { ContribGen } from "../../common";
2
2
  import { ReactionGen } from "../../shared";
3
3
  export interface FeWordImageRecord {
4
4
  wordId: string;
@@ -6,5 +6,5 @@ export interface FeWordImageRecord {
6
6
  fileName: string;
7
7
  thumbnailFileName: string;
8
8
  reaction?: ReactionGen;
9
- contribution?: ContributionGen;
9
+ contrib?: ContribGen;
10
10
  }
@@ -1,4 +1,4 @@
1
- import { AccessGen, ContributionGen } from "../../common";
1
+ import { AccessGen, UserContribGen } from "../../common";
2
2
  export interface FeListRecord {
3
3
  id: string;
4
4
  slug: string;
@@ -7,7 +7,7 @@ export interface FeListRecord {
7
7
  wordTotal: number;
8
8
  knownWordTotal: number;
9
9
  userTotal: number;
10
- contribution: ContributionGen;
10
+ contrib: UserContribGen;
11
11
  access: AccessGen;
12
12
  }
13
13
  export interface FeListEntity {
@@ -18,7 +18,7 @@ export interface FeListEntity {
18
18
  description?: string;
19
19
  isSuper: boolean;
20
20
  metaKeywords?: string;
21
- contribution: ContributionGen;
21
+ contrib: UserContribGen;
22
22
  access: AccessGen;
23
23
  userTotal: number;
24
24
  wordTotal: number;
@@ -1,4 +1,4 @@
1
- import { AccessGen, ContributionGen } from "../../common";
1
+ import { AccessGen, UserContribGen } from "../../common";
2
2
  import { RealWord } from "../../shared";
3
3
  import { WordDataGen } from "../word";
4
4
  export interface BasicCellStruct<TWords> {
@@ -13,7 +13,7 @@ export interface FeTableRecord {
13
13
  userTotal: number;
14
14
  wordTotal: number;
15
15
  knownWordTotal: number;
16
- contribution: ContributionGen;
16
+ contrib: UserContribGen;
17
17
  access: AccessGen;
18
18
  }
19
19
  export interface FeCell extends BasicCellStruct<WordDataGen[]> {
@@ -30,7 +30,7 @@ export interface FeTableEntity {
30
30
  description: string;
31
31
  metaKeywords: string;
32
32
  access: AccessGen;
33
- contribution: ContributionGen;
33
+ contrib: UserContribGen;
34
34
  rowTotal: number;
35
35
  userTotal: number;
36
36
  wordTotal: number;
@@ -1,4 +1,4 @@
1
- import { ContributionGen } from "../../common";
1
+ import { UserContribGen } from "../../common";
2
2
  export interface FeTagRecord {
3
3
  code: string;
4
4
  wordTotal: number;
@@ -7,7 +7,7 @@ export interface FeTagRecord {
7
7
  export interface FeTagEntity {
8
8
  code: string;
9
9
  langCode: string;
10
- contribution: ContributionGen;
10
+ contrib: UserContribGen;
11
11
  wordTotal: number;
12
12
  knownWordTotal: number;
13
13
  }
@@ -1,8 +1,8 @@
1
- import { ContributionGen, UserReaction } from "../../common";
1
+ import { ContribGen, UserReaction } from "../../common";
2
2
  import { TranRecord } from "../../shared";
3
3
  import { WordDataGen } from "../word";
4
4
  export interface FeTranRecord extends Omit<TranRecord, "dest"> {
5
5
  dest: WordDataGen;
6
6
  reaction?: UserReaction;
7
- contribution?: ContributionGen;
7
+ contrib?: ContribGen;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import { Feed } from "../../feed";
2
- import { QuizCode, QuizMode, ContributionGen, AccessGen } from "../../common";
2
+ import { QuizCode, QuizMode, ContribGen, AccessGen, UserContribGen } from "../../common";
3
3
  import { FeWordImageRecord } from "../image";
4
4
  import { FeTranRecord } from "../tran";
5
5
  import { ReactionGen, WordUserGen } from "../../shared";
@@ -14,7 +14,7 @@ export interface FeWordTag {
14
14
  wordId: string;
15
15
  tagCode: string;
16
16
  reaction: ReactionGen;
17
- contribution: ContributionGen;
17
+ contrib: UserContribGen;
18
18
  }
19
19
  export interface FeWordAttempt {
20
20
  id: string;
@@ -24,7 +24,7 @@ export interface FeWordAttempt {
24
24
  isCorrect: boolean;
25
25
  tranLangCode: string;
26
26
  isTable: boolean;
27
- contribution: ContributionGen;
27
+ contrib: UserContribGen;
28
28
  }
29
29
  export interface FeWordAudio {
30
30
  id: string;
@@ -32,7 +32,7 @@ export interface FeWordAudio {
32
32
  audioId: string;
33
33
  fileName: string;
34
34
  reaction: ReactionGen;
35
- contribution: ContributionGen;
35
+ contrib: UserContribGen;
36
36
  }
37
37
  export interface FeWordSpeechPart {
38
38
  speechPartId?: string;
@@ -44,7 +44,7 @@ export interface FeWordTranCode {
44
44
  }
45
45
  export interface FeWordEntity extends WordUserGen {
46
46
  mode?: string;
47
- contribution?: ContributionGen;
47
+ contrib?: ContribGen;
48
48
  access?: AccessGen;
49
49
  attempts?: FeWordAttempt[];
50
50
  speechParts?: FeWordSpeechPart[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.218.0",
3
+ "version": "0.220.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",