revdev 0.269.0 → 0.271.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.
@@ -14,3 +14,4 @@ export * from "./image";
14
14
  export * from "./lang";
15
15
  export * from "./wordImage";
16
16
  export * from "./smm";
17
+ export * from "./wordAudio";
package/lib/back/index.js CHANGED
@@ -26,3 +26,4 @@ __exportStar(require("./image"), exports);
26
26
  __exportStar(require("./lang"), exports);
27
27
  __exportStar(require("./wordImage"), exports);
28
28
  __exportStar(require("./smm"), exports);
29
+ __exportStar(require("./wordAudio"), exports);
@@ -1,5 +1,5 @@
1
1
  import { EntryStatus } from "../../common";
2
- import { WordGen } from "../../shared";
2
+ import { WordAudioRecord, WordGen } from "../../shared";
3
3
  export interface BoWordRecord extends WordGen {
4
4
  status?: EntryStatus;
5
5
  created: string;
@@ -10,7 +10,7 @@ export interface BoWordRecord extends WordGen {
10
10
  tableTotal: number;
11
11
  imageTotal: number;
12
12
  tagTotal: number;
13
- tags?: string[];
13
+ audios?: WordAudioRecord[];
14
14
  }
15
15
  export interface BoWordEntity extends WordGen {
16
16
  created: string;
@@ -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 BoCreateWordAudioRequest {
2
+ wordId: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,8 @@ export interface ImageGen {
2
2
  id: string;
3
3
  fileName: string;
4
4
  thumbnailFileName: string;
5
+ url: string;
6
+ thumbnailUrl: string;
5
7
  }
6
8
  export interface Base64Image {
7
9
  content: string;
@@ -1,5 +1,5 @@
1
1
  import { QuizMode } from "../../common";
2
- import { TranRecord, WordGen, WordImageRecord } from "../../shared";
2
+ import { TranRecord, WordAudioRecord, WordGen, WordImageRecord } from "../../shared";
3
3
  import { WordDataGen } from "../word";
4
4
  export interface FeQuizEntity {
5
5
  mode: QuizMode;
@@ -10,6 +10,7 @@ export interface FeQuizPair {
10
10
  trans?: TranRecord[];
11
11
  images?: WordImageRecord[];
12
12
  cellWords?: WordGen[];
13
+ audios?: WordAudioRecord[];
13
14
  }
14
15
  export interface FeQuizRack {
15
16
  words: WordDataGen[];
@@ -1,10 +1,10 @@
1
1
  import { Feed } from "../../feed";
2
2
  import { DualContribGen, AccessGen, ContribGen } from "../../common";
3
- import { TagWordRecord, TranRecord, WordAttemptRecord, WordImageRecord, WordUserGen } from "../../shared";
3
+ import { TagWordRecord, TranRecord, WordAttemptRecord, WordAudioRecord, WordImageRecord, WordUserGen } from "../../shared";
4
4
  export interface WordDataGen extends WordUserGen {
5
5
  attempts?: WordAttemptRecord[];
6
6
  images?: WordImageRecord[];
7
- audios?: FeWordAudio[];
7
+ audios?: WordAudioRecord[];
8
8
  tags?: TagWordRecord[];
9
9
  trans?: TranRecord[];
10
10
  tranLangCode?: string;
@@ -14,13 +14,6 @@ export interface FeWordTag {
14
14
  tagCode: string;
15
15
  contrib: ContribGen;
16
16
  }
17
- export interface FeWordAudio {
18
- id: string;
19
- wordId: string;
20
- audioId: string;
21
- fileName: string;
22
- contrib: ContribGen;
23
- }
24
17
  export interface FeWordSpeechPart {
25
18
  speechPartId?: string;
26
19
  tranFeed: Feed<TranRecord>;
@@ -36,8 +29,8 @@ export interface FeWordEntity extends WordUserGen {
36
29
  attempts?: WordAttemptRecord[];
37
30
  speechParts?: FeWordSpeechPart[];
38
31
  imageFeed?: Feed<WordImageRecord>;
39
- audioFeed?: Feed<FeWordAudio>;
40
32
  tagFeed?: Feed<TagWordRecord>;
33
+ audios?: WordAudioRecord[];
41
34
  tranLangCode: string;
42
35
  tranCodes?: FeWordTranCode[];
43
36
  }
@@ -5,3 +5,8 @@ export interface AiTextRequest {
5
5
  export interface AiImageRequest {
6
6
  prompt: string;
7
7
  }
8
+ export interface AiSpeechRequest {
9
+ text: string;
10
+ langCode: string;
11
+ voice?: "male" | "female";
12
+ }
@@ -26,3 +26,7 @@ export interface WordAttemptRecord {
26
26
  tranLangCode: string;
27
27
  contrib: ContribGen;
28
28
  }
29
+ export interface WordAudioRecord {
30
+ id: string;
31
+ url: string;
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.269.0",
3
+ "version": "0.271.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",