revdev 0.124.0 → 0.126.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,5 +1,5 @@
1
1
  import { ContributionGen } from "../../common";
2
- import { WordGen } from "../../front";
2
+ import { WordGen } from "../../shared";
3
3
  export interface BoWordRecord {
4
4
  id: string;
5
5
  text: string;
@@ -1,5 +1,5 @@
1
1
  import { Knowing } from "../../common";
2
- import { WordKnowledge } from "../general";
2
+ import { WordKnowledge } from "../../shared";
3
3
  import { FeWordRecord } from "../word";
4
4
  export interface FeDiscoverProveEntity {
5
5
  word: FeWordRecord;
@@ -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,5 @@
1
1
  import { ContributionGen } from "../../common";
2
- import { ReactionGen } from "../general";
2
+ import { ReactionGen } from "../../shared";
3
3
  export interface FeWordImageRecord {
4
4
  wordId: string;
5
5
  imageId: string;
@@ -1,5 +1,5 @@
1
1
  import { FeWordSetRequest, FeedRequest } from "../../feed";
2
- import { EntryWord } from "../general";
2
+ import { EntryWord } from "../../shared";
3
3
  export interface FeListWordFeedRequest extends FeedRequest, FeWordSetRequest {
4
4
  slug: string;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { QuizMode } from "../../common";
2
- import { WordGen } from "../general";
2
+ import { WordGen } from "../../shared";
3
3
  import { FeWordImageRecord } from "../image";
4
4
  import { FeTranslationRecord } from "../translation";
5
5
  import { FeWordRecord } from "../word";
@@ -1,5 +1,5 @@
1
1
  import { AccessGen, ContributionGen } from "../../common";
2
- import { RealWord } from "../general";
2
+ import { RealWord } from "../../shared";
3
3
  import { FeWordRecord } from "../word";
4
4
  export interface BasicCellStruct<TWords> {
5
5
  columnIndex: number;
@@ -1,5 +1,5 @@
1
1
  import { FeWordSetRequest, FeedRequest, LanguageFeedRequest } from "../../feed";
2
- import { EntryWord } from "../general";
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,5 @@
1
1
  import { ContributionGen } from "../../common";
2
- import { EntryWord } from "../general";
3
- export interface FeCreateTagRequest {
4
- code: string;
5
- }
2
+ import { EntryWord } from "../../shared";
6
3
  export interface FeTagRecord {
7
4
  code: string;
8
5
  wordCount: number;
@@ -1,5 +1,5 @@
1
1
  import { ContributionGen } from "../../common";
2
- import { ReactionGen } from "../general";
2
+ import { ReactionGen } from "../../shared";
3
3
  import { FeWordRecord } from "../word";
4
4
  export interface FeTranslationRecord {
5
5
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { WordSetRequest } from "../../common";
2
- import { EntryWord, RealWord } from "../general";
2
+ import { EntryWord, RealWord } from "../../shared";
3
3
  interface BaseCreateTranslationRequest<TWord> {
4
4
  sourceWordId: string;
5
5
  speechPartCode?: string;
@@ -1,4 +1,4 @@
1
- import { UserWordKnowing } from "../general";
1
+ import { UserWordKnowing } from "../../shared";
2
2
  export interface FeUserRelationMeta {
3
3
  languageCode?: string;
4
4
  listCount: number;
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -1,2 +1,4 @@
1
1
  export * from "./word";
2
2
  export * from "./list";
3
+ export * from "./tag";
4
+ export * from "./general";
@@ -12,3 +12,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./word"), exports);
14
14
  __exportStar(require("./list"), exports);
15
+ __exportStar(require("./tag"), exports);
16
+ __exportStar(require("./general"), exports);
@@ -0,0 +1 @@
1
+ export * from "./request";
@@ -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("./request"), exports);
@@ -0,0 +1,3 @@
1
+ export interface CreateTagRequest {
2
+ code: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from "./request";
2
+ export * from "./entity";
@@ -11,3 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./request"), exports);
14
+ __exportStar(require("./entity"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.124.0",
3
+ "version": "0.126.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",