revdev 0.196.0 → 0.198.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,6 +1,7 @@
1
+ import { IdCodeOption } from "../../common";
1
2
  export interface BoInitData {
2
3
  langCodes: string[];
3
- speechPartCodes: string[];
4
+ speechPartOptions: IdCodeOption[];
4
5
  quizCodes: string[];
5
6
  localeCodes: string[];
6
7
  localeTexts: [string, string][];
@@ -1,8 +1,9 @@
1
- export * from "./locale-text";
1
+ export * from "./localeText";
2
2
  export * from "./common";
3
3
  export * from "./list";
4
4
  export * from "./word";
5
5
  export * from "./tran";
6
+ export * from "./speechPart";
6
7
  export * from "./tag";
7
8
  export * from "./user";
8
9
  export * from "./general";
package/lib/back/index.js CHANGED
@@ -10,11 +10,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./locale-text"), exports);
13
+ __exportStar(require("./localeText"), exports);
14
14
  __exportStar(require("./common"), exports);
15
15
  __exportStar(require("./list"), exports);
16
16
  __exportStar(require("./word"), exports);
17
17
  __exportStar(require("./tran"), exports);
18
+ __exportStar(require("./speechPart"), exports);
18
19
  __exportStar(require("./tag"), exports);
19
20
  __exportStar(require("./user"), exports);
20
21
  __exportStar(require("./general"), exports);
@@ -0,0 +1,7 @@
1
+ export interface BoSpeechPartRecord {
2
+ id: string;
3
+ code: string;
4
+ rate: number;
5
+ active: boolean;
6
+ adminId?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./entity";
2
+ export * from "./request";
@@ -0,0 +1,14 @@
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);
14
+ __exportStar(require("./request"), exports);
@@ -0,0 +1,10 @@
1
+ export interface BoCreateSpeechPartRequest {
2
+ code: string;
3
+ rate: number;
4
+ active: boolean;
5
+ }
6
+ export interface BoUpdateSpeechPartRequest extends BoCreateSpeechPartRequest {
7
+ id: string;
8
+ }
9
+ export interface BoSpeechPartModifier extends BoUpdateSpeechPartRequest {
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,7 +10,7 @@ export interface BoTranWordRecord {
10
10
  }
11
11
  export interface BoTranRecord {
12
12
  id: string;
13
- speechPartCode?: string;
13
+ speechPartId?: string;
14
14
  created: string;
15
15
  userId?: string;
16
16
  active: boolean;
@@ -1,5 +1,13 @@
1
+ import { EntryStatus } from "../../common";
1
2
  import { FeedRequest } from "../../feed";
2
3
  export interface BoTranFeedRequest extends FeedRequest {
3
4
  langCode?: string;
4
- speechPartCode?: string;
5
+ speechPartId?: string;
6
+ }
7
+ export interface BoTranStatusUpdateRequest {
8
+ id: string;
9
+ status: EntryStatus;
10
+ }
11
+ export interface BoTranStatusUpdateModifier extends BoTranStatusUpdateRequest {
12
+ active: boolean;
5
13
  }
@@ -14,3 +14,7 @@ export interface Key<T = any> {
14
14
  key: string | number;
15
15
  value: T;
16
16
  }
17
+ export interface IdCodeOption {
18
+ id: string;
19
+ code: string;
20
+ }
@@ -1,10 +1,11 @@
1
+ import { IdCodeOption } from "../../common";
1
2
  import { FeLangRecord } from "../lang";
2
3
  import { FeListRecord } from "../list";
3
4
  import { FeTableRecord } from "../table";
4
5
  import { WordDataGen } from "../word";
5
6
  export interface FeInitData {
6
7
  langCodes: string[];
7
- speechPartCodes: string[];
8
+ speechPartOptions: IdCodeOption[];
8
9
  quizCodes: string[];
9
10
  localeCodes: string[];
10
11
  }
@@ -4,7 +4,7 @@ import { WordDataGen } from "../word";
4
4
  export interface FeTranRecord {
5
5
  id: string;
6
6
  wordId: string;
7
- speechPartCode?: string;
7
+ speechPartId?: string;
8
8
  dest: WordDataGen;
9
9
  reaction?: ReactionGen;
10
10
  contribution?: ContributionGen;
@@ -35,7 +35,7 @@ export interface FeWordAudio {
35
35
  contribution: ContributionGen;
36
36
  }
37
37
  export interface FeWordSpeechPart {
38
- speechPartCode?: string;
38
+ speechPartId?: string;
39
39
  tranFeed: Feed<FeTranRecord>;
40
40
  }
41
41
  export interface FeWordTranCode {
@@ -10,7 +10,7 @@ export interface FeTranFeedRequest {
10
10
  skip: number;
11
11
  wordId: string;
12
12
  langCode: string;
13
- speechPartCode?: string;
13
+ speechPartId?: string;
14
14
  }
15
15
  export interface FeWordAttemptRequest {
16
16
  wordIds: string[];
@@ -2,6 +2,6 @@ import { WordGen } from "../word";
2
2
  export interface TranRecord {
3
3
  id: string;
4
4
  wordId: string;
5
- speechPartCode?: string;
5
+ speechPartId?: string;
6
6
  dest: WordGen;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { EntryWord, RealWord } from "../word";
2
2
  interface BaseCreateTranRequest<TWord> {
3
3
  sourceWordId: string;
4
- speechPartCode?: string;
4
+ speechPartId?: string;
5
5
  destWord: TWord;
6
6
  }
7
7
  export interface CreateTextTranRequest extends BaseCreateTranRequest<EntryWord> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.196.0",
3
+ "version": "0.198.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