revdev 0.221.0 → 0.223.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.
package/lib/common/request.d.ts
CHANGED
|
@@ -16,12 +16,8 @@ export interface WordIdsRequest {
|
|
|
16
16
|
skip: number;
|
|
17
17
|
}
|
|
18
18
|
export interface ReactionRequest {
|
|
19
|
-
id: string;
|
|
20
19
|
reaction: UserReaction;
|
|
21
20
|
}
|
|
22
|
-
export interface ReactionModifier extends ReactionRequest {
|
|
23
|
-
rate: number;
|
|
24
|
-
}
|
|
25
21
|
export interface PinRequest {
|
|
26
22
|
pin: boolean;
|
|
27
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContribGen, UserReaction } from "../../common";
|
|
2
2
|
import { TranRecord } from "../../shared";
|
|
3
3
|
import { WordDataGen } from "../word";
|
|
4
4
|
export interface FeTranRecord extends Omit<TranRecord, "dest"> {
|
|
@@ -6,5 +6,5 @@ export interface FeTranRecord extends Omit<TranRecord, "dest"> {
|
|
|
6
6
|
reaction?: UserReaction;
|
|
7
7
|
tranWordId: string;
|
|
8
8
|
pinned: boolean;
|
|
9
|
-
contrib?:
|
|
9
|
+
contrib?: ContribGen;
|
|
10
10
|
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { PinRequest } from "../../common";
|
|
2
|
-
export interface
|
|
1
|
+
import { PinRequest, ReactionRequest } from "../../common";
|
|
2
|
+
export interface FeTranWordPinRequest extends PinRequest {
|
|
3
3
|
tranWordId: string;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface FeTranWordPinModifier extends FeTranWordPinRequest {
|
|
6
|
+
tranId: string;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FeTranReactionRequest extends ReactionRequest {
|
|
10
|
+
tranId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FeTranReactionModifier extends FeTranReactionRequest {
|
|
13
|
+
rate: number;
|
|
6
14
|
id: string;
|
|
7
15
|
}
|
|
@@ -15,9 +15,15 @@ export declare type FeWordEntityRequest = FeWordEntityTextRequest | FeWordEntity
|
|
|
15
15
|
export interface FeTranFeedRequest {
|
|
16
16
|
skip: number;
|
|
17
17
|
wordId: string;
|
|
18
|
-
|
|
18
|
+
tranId?: string;
|
|
19
|
+
langCode?: string;
|
|
20
|
+
useSpeechPart?: boolean;
|
|
19
21
|
speechPartId?: string;
|
|
20
22
|
}
|
|
23
|
+
export interface FeTranRecordRequest {
|
|
24
|
+
wordId: string;
|
|
25
|
+
tranId: string;
|
|
26
|
+
}
|
|
21
27
|
export interface FeWordAttemptRequest {
|
|
22
28
|
wordIds: string[];
|
|
23
29
|
}
|