revdev 0.61.0 → 0.63.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,10 +1,10 @@
1
1
  import { Knowing } from "../../general";
2
2
  import { FeWordKnowledge } from "../common";
3
3
  import { FeWord } from "../word";
4
- export interface FeDiscoverProveData {
4
+ export interface FeDiscoverProveEntity {
5
5
  word: FeWord;
6
- images: FeWord[];
7
- translations: FeWord[];
6
+ images?: FeWord[];
7
+ translations?: FeWord[];
8
8
  }
9
9
  export interface FeDiscoverKnowingOld {
10
10
  words?: [string, Knowing][];
@@ -5,7 +5,7 @@ export interface FeDiscoverWordKnowingRequest {
5
5
  wordId: string;
6
6
  knowing?: Knowing;
7
7
  }
8
- export interface FeDiscoverProveRequest extends FeUserInfoRequest {
8
+ export interface FeDiscoverProveRequest {
9
9
  wordId: string;
10
10
  translationLanguageCode?: string;
11
11
  repeat?: boolean;
@@ -1,7 +1,13 @@
1
- import { EntryWord } from "../common";
2
- export interface FeCreateTranslationRequest {
1
+ import { EntryWord, RealWord } from "../common";
2
+ interface BaseCreateTranslationRequest<TWord> {
3
3
  sourceWordId: string;
4
- destinationWord: EntryWord;
5
- destinationLanguageCode: string;
6
4
  speechPartCode?: string;
5
+ destinationWord: TWord;
6
+ }
7
+ export interface FeCreateTranslationTextRequest extends BaseCreateTranslationRequest<EntryWord> {
8
+ destinationLanguageCode: string;
9
+ }
10
+ export interface FeCreateTranslationWordRequest extends BaseCreateTranslationRequest<RealWord | RealWord[]> {
7
11
  }
12
+ export declare type FeCreateTranslationRequest = FeCreateTranslationTextRequest | FeCreateTranslationWordRequest;
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.61.0",
3
+ "version": "0.63.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",