revdev 0.112.0 → 0.114.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 { FeEntityContribution } from "../../front";
1
+ import { ContributionGen } from "../../common";
2
2
  import { BoUpdateListRequest } from "./request";
3
3
  export interface BoListRecord {
4
4
  listId: string;
@@ -11,7 +11,7 @@ export interface BoListRecord {
11
11
  isPrivate: boolean;
12
12
  isSuper: boolean;
13
13
  version: number;
14
- contribution: FeEntityContribution;
14
+ contribution: ContributionGen;
15
15
  wordCount: number;
16
16
  userCount: number;
17
17
  }
@@ -1,4 +1,5 @@
1
- import { FeEntityContribution, FeWordDirect } from "../../front";
1
+ import { ContributionGen } from "../../common";
2
+ import { WordGen } from "../../front";
2
3
  export interface BoWordRecord {
3
4
  id: string;
4
5
  text: string;
@@ -23,11 +24,11 @@ export interface BoWordEntity {
23
24
  tags?: string[];
24
25
  }
25
26
  export interface BoWordImageRecord {
26
- word: FeWordDirect;
27
+ word: WordGen;
27
28
  imageId: string;
28
29
  fileName: string;
29
30
  thumbnailFileName: string;
30
- contribution: FeEntityContribution;
31
+ contribution: ContributionGen;
31
32
  wordCount: number;
32
33
  rate: number;
33
34
  }
@@ -0,0 +1,9 @@
1
+ export interface AccessGen {
2
+ isPrivate: boolean;
3
+ owned: boolean;
4
+ linked: boolean;
5
+ }
6
+ export interface ContributionGen {
7
+ created: string;
8
+ username: string;
9
+ }
@@ -4,3 +4,4 @@ export * from "./enums";
4
4
  export * from "./literals";
5
5
  export * from "./request";
6
6
  export * from "./entity";
7
+ export * from "./gen";
@@ -16,3 +16,4 @@ __exportStar(require("./enums"), exports);
16
16
  __exportStar(require("./literals"), exports);
17
17
  __exportStar(require("./request"), exports);
18
18
  __exportStar(require("./entity"), exports);
19
+ __exportStar(require("./gen"), exports);
@@ -1,5 +1,5 @@
1
1
  import { Knowing } from "../../common";
2
- import { FeWordKnowledge } from "../common";
2
+ import { WordKnowledge } from "../general";
3
3
  import { FeWordRecord } from "../word";
4
4
  export interface FeDiscoverProveEntity {
5
5
  word: FeWordRecord;
@@ -8,16 +8,16 @@ export interface FeDiscoverProveEntity {
8
8
  }
9
9
  export interface FeDiscoverKnowingOld {
10
10
  words?: [string, Knowing][];
11
- tags?: [string, string, FeWordKnowledge][];
12
- lists?: [string, FeWordKnowledge][];
13
- tables?: [string, FeWordKnowledge][];
14
- languages?: [string, FeWordKnowledge][];
11
+ tags?: [string, string, WordKnowledge][];
12
+ lists?: [string, WordKnowledge][];
13
+ tables?: [string, WordKnowledge][];
14
+ languages?: [string, WordKnowledge][];
15
15
  }
16
- export interface FeEntityKnowing extends FeWordKnowledge {
16
+ export interface FeEntityKnowing extends WordKnowledge {
17
17
  id: string;
18
18
  text: string;
19
19
  }
20
- export interface FeDiscoverMeta extends FeWordKnowledge {
20
+ export interface FeDiscoverMeta extends WordKnowledge {
21
21
  columns: FeEntityKnowing[];
22
22
  }
23
23
  export interface ProveWordMeta extends FeWordRecord {
@@ -1,6 +1,6 @@
1
1
  import { FeedRequest } from "../../feed";
2
2
  import { Knowing } from "../../common";
3
- import { FeUserInfoRequest } from "../common";
3
+ import { FeUserInfoRequest } from "../general";
4
4
  export interface FeDiscoverWordKnowingRequest {
5
5
  wordId: string;
6
6
  knowing?: Knowing;
@@ -3,29 +3,20 @@ import { FeLanguageRecord } from "../language";
3
3
  import { FeListRecord } from "../list";
4
4
  import { FeTableRecord } from "../table";
5
5
  import { FeWordRecord } from "../word";
6
- export interface FeWordKnowledge {
6
+ export interface WordKnowledge {
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];
13
- export interface FeWordDirect {
12
+ export declare type WordKnowing = [number, number];
13
+ export interface WordGen {
14
14
  id: string;
15
15
  text: string;
16
16
  languageCode: string;
17
17
  knowing?: Knowing;
18
18
  }
19
- export interface FeEntityAccess {
20
- isPrivate: boolean;
21
- owned: boolean;
22
- linked: boolean;
23
- }
24
- export interface FeEntityContribution {
25
- created: string;
26
- username: string;
27
- }
28
- export interface FeReactionInfo {
19
+ export interface ReactionGen {
29
20
  rate: number;
30
21
  userRate: number;
31
22
  }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,10 @@
1
- import { FeEntityContribution, FeReactionInfo } from "../common";
1
+ import { ContributionGen } from "../../common";
2
+ import { ReactionGen } from "../general";
2
3
  export interface FeWordImageRecord {
3
4
  wordId: string;
4
5
  imageId: string;
5
6
  fileName: string;
6
7
  thumbnailFileName: string;
7
- reaction?: FeReactionInfo;
8
- contribution?: FeEntityContribution;
8
+ reaction?: ReactionGen;
9
+ contribution?: ContributionGen;
9
10
  }
@@ -1,7 +1,7 @@
1
1
  export * from "./word";
2
2
  export * from "./tag";
3
3
  export * from "./language";
4
- export * from "./common";
4
+ export * from "./general";
5
5
  export * from "./list";
6
6
  export * from "./image";
7
7
  export * from "./table";
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./word"), exports);
14
14
  __exportStar(require("./tag"), exports);
15
15
  __exportStar(require("./language"), exports);
16
- __exportStar(require("./common"), exports);
16
+ __exportStar(require("./general"), exports);
17
17
  __exportStar(require("./list"), exports);
18
18
  __exportStar(require("./image"), exports);
19
19
  __exportStar(require("./table"), exports);
@@ -1,4 +1,4 @@
1
- import { FeEntityAccess, FeEntityContribution } from "../common";
1
+ import { AccessGen, ContributionGen } from "../../common";
2
2
  export interface FeListRecord {
3
3
  id: string;
4
4
  slug: string;
@@ -7,8 +7,8 @@ export interface FeListRecord {
7
7
  wordCount: number;
8
8
  knownWordCount: number;
9
9
  userCount: number;
10
- contribution: FeEntityContribution;
11
- access: FeEntityAccess;
10
+ contribution: ContributionGen;
11
+ access: AccessGen;
12
12
  }
13
13
  export interface FeListEntity {
14
14
  id: string;
@@ -17,8 +17,8 @@ export interface FeListEntity {
17
17
  languageCode: string;
18
18
  description?: string;
19
19
  metaKeywords?: string;
20
- contribution: FeEntityContribution;
21
- access: FeEntityAccess;
20
+ contribution: ContributionGen;
21
+ access: AccessGen;
22
22
  userCount: number;
23
23
  wordCount: number;
24
24
  knownWordCount: number;
@@ -1,5 +1,5 @@
1
1
  import { FeWordSetRequest, FeedRequest } from "../../feed";
2
- import { EntryWord } from "../common";
2
+ import { EntryWord } from "../general";
3
3
  export interface FeListWordFeedRequest extends FeedRequest, FeWordSetRequest {
4
4
  slug: string;
5
5
  }
@@ -13,6 +13,9 @@ export interface FeCreateListRequest {
13
13
  export interface FeUpdateListRequest extends Omit<FeCreateListRequest, "languageCode"> {
14
14
  id: string;
15
15
  }
16
+ export interface FeListModifier extends FeCreateListRequest {
17
+ id: string;
18
+ }
16
19
  export interface FeListLinkWordRequest {
17
20
  listId: string;
18
21
  word: EntryWord;
@@ -1,5 +1,5 @@
1
1
  import { QuizMode } from "../../common";
2
- import { FeWordDirect } from "../common";
2
+ import { WordGen } from "../general";
3
3
  import { FeWordImageRecord } from "../image";
4
4
  import { FeTranslationRecord } from "../translation";
5
5
  import { FeWordRecord } from "../word";
@@ -9,10 +9,10 @@ export interface FeQuizEntity {
9
9
  pairs: FeQuizPair[];
10
10
  }
11
11
  export interface FeQuizPair {
12
- word: FeWordDirect;
12
+ word: WordGen;
13
13
  translations?: FeTranslationRecord[];
14
14
  images?: FeWordImageRecord[];
15
- cellWords?: FeWordDirect[];
15
+ cellWords?: WordGen[];
16
16
  }
17
17
  export interface FeQuizRack {
18
18
  words: FeWordRecord[];
@@ -1,4 +1,5 @@
1
- import { FeEntityAccess, FeEntityContribution, RealWord } from "../common";
1
+ import { AccessGen, ContributionGen } from "../../common";
2
+ import { RealWord } from "../general";
2
3
  import { FeWordRecord } from "../word";
3
4
  export interface BasicCellStruct<TWords> {
4
5
  columnIndex: number;
@@ -12,8 +13,8 @@ export interface FeTableRecord {
12
13
  userCount: number;
13
14
  wordCount: number;
14
15
  knownWordCount: number;
15
- contribution: FeEntityContribution;
16
- access: FeEntityAccess;
16
+ contribution: ContributionGen;
17
+ access: AccessGen;
17
18
  }
18
19
  export interface FeCell extends BasicCellStruct<FeWordRecord[]> {
19
20
  }
@@ -28,8 +29,8 @@ export interface FeTableEntity {
28
29
  languageCode: string;
29
30
  description: string;
30
31
  metaKeywords: string;
31
- access: FeEntityAccess;
32
- contribution: FeEntityContribution;
32
+ access: AccessGen;
33
+ contribution: ContributionGen;
33
34
  rowCount: number;
34
35
  userCount: number;
35
36
  wordCount: number;
@@ -1,5 +1,5 @@
1
1
  import { FeWordSetRequest, FeedRequest, LanguageFeedRequest } from "../../feed";
2
- import { EntryWord } from "../common";
2
+ import { EntryWord } from "../general";
3
3
  import { BasicCellStruct } from "./entity";
4
4
  export interface FeRowFeedRequest extends FeedRequest {
5
5
  slug: string;
@@ -1,4 +1,5 @@
1
- import { FeEntityContribution, EntryWord } from "../common";
1
+ import { ContributionGen } from "../../common";
2
+ import { EntryWord } from "../general";
2
3
  export interface FeCreateTagRequest {
3
4
  code: string;
4
5
  }
@@ -16,7 +17,7 @@ export interface FeTagLinkWordRequest {
16
17
  export interface FeTagEntity {
17
18
  code: string;
18
19
  languageCode: string;
19
- contribution: FeEntityContribution;
20
+ contribution: ContributionGen;
20
21
  wordCount: number;
21
22
  knownWordCount: number;
22
23
  }
@@ -1,10 +1,11 @@
1
- import { FeEntityContribution, FeReactionInfo } from "../common";
1
+ import { ContributionGen } from "../../common";
2
+ import { ReactionGen } from "../general";
2
3
  import { FeWordRecord } from "../word";
3
4
  export interface FeTranslationRecord {
4
5
  id: string;
5
6
  wordId: string;
6
7
  speechPartCode?: string;
7
8
  destination: FeWordRecord;
8
- reaction?: FeReactionInfo;
9
- contribution?: FeEntityContribution;
9
+ reaction?: ReactionGen;
10
+ contribution?: ContributionGen;
10
11
  }
@@ -1,5 +1,5 @@
1
1
  import { WordSetRequest } from "../../common";
2
- import { EntryWord, RealWord } from "../common";
2
+ import { EntryWord, RealWord } from "../general";
3
3
  interface BaseCreateTranslationRequest<TWord> {
4
4
  sourceWordId: string;
5
5
  speechPartCode?: string;
@@ -1,9 +1,9 @@
1
- import { FeWordKnowing } from "../common";
1
+ import { WordKnowing } from "../general";
2
2
  export interface FeUserRelationMeta {
3
3
  languageCode?: string;
4
4
  listCount: number;
5
5
  tableCount: number;
6
- knowing: FeWordKnowing;
6
+ knowing: WordKnowing;
7
7
  }
8
8
  export interface FeUserEntity {
9
9
  id: string;
@@ -1,7 +1,7 @@
1
1
  import { Feed } from "../../feed";
2
- import { QuizCode, QuizMode, Knowing } from "../../common";
2
+ import { QuizCode, QuizMode, Knowing, ContributionGen, AccessGen } from "../../common";
3
3
  import { FeWordImageRecord } from "../image";
4
- import { FeEntityAccess, FeEntityContribution, FeReactionInfo } from "../common";
4
+ import { ReactionGen } from "../general";
5
5
  import { FeTranslationRecord } from "../translation";
6
6
  export interface FeWordRecord {
7
7
  id: string;
@@ -18,8 +18,8 @@ export interface FeWordRecord {
18
18
  export interface FeWordTag {
19
19
  wordId: string;
20
20
  tagCode: string;
21
- reaction: FeReactionInfo;
22
- contribution: FeEntityContribution;
21
+ reaction: ReactionGen;
22
+ contribution: ContributionGen;
23
23
  }
24
24
  export interface FeWordAttempt {
25
25
  id: string;
@@ -29,15 +29,15 @@ export interface FeWordAttempt {
29
29
  isCorrect: boolean;
30
30
  translationLanguageCode: string;
31
31
  isTable: boolean;
32
- contribution: FeEntityContribution;
32
+ contribution: ContributionGen;
33
33
  }
34
34
  export interface FeWordAudio {
35
35
  id: string;
36
36
  wordId: string;
37
37
  audioId: string;
38
38
  fileName: string;
39
- reaction: FeReactionInfo;
40
- contribution: FeEntityContribution;
39
+ reaction: ReactionGen;
40
+ contribution: ContributionGen;
41
41
  }
42
42
  export interface FeWordSpeechPart {
43
43
  speechPartCode?: string;
@@ -53,8 +53,8 @@ export interface FeWordEntity {
53
53
  languageCode: string;
54
54
  knowing?: Knowing;
55
55
  mode?: string;
56
- contribution?: FeEntityContribution;
57
- access?: FeEntityAccess;
56
+ contribution?: ContributionGen;
57
+ access?: AccessGen;
58
58
  attempts?: FeWordAttempt[];
59
59
  speechParts?: FeWordSpeechPart[];
60
60
  imageFeed?: Feed<FeWordImageRecord>;
@@ -1,6 +1,6 @@
1
1
  import { FeWordSetRequest, FeedRequest, ShortFeedRequest } from "../../feed";
2
2
  import { CreateWordRequest } from "../../shared";
3
- import { EntryWord } from "../common";
3
+ import { EntryWord } from "../general";
4
4
  export interface FeWordEntityRequest {
5
5
  languageCode: string;
6
6
  text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.112.0",
3
+ "version": "0.114.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
File without changes
File without changes
File without changes
File without changes