revdev 0.62.0 → 0.64.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.
@@ -16,8 +16,7 @@ export interface LinkSetRequest {
16
16
  sourceIds: string[];
17
17
  link: boolean;
18
18
  }
19
- export interface WordAssociationRequest {
19
+ export interface WordSetRequest {
20
20
  wordIds: string[];
21
- authUserId?: string;
22
21
  skip: number;
23
22
  }
@@ -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.62.0",
3
+ "version": "0.64.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",