revdev 0.211.0 → 0.213.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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserReaction } from "./enums";
|
|
1
2
|
export interface SlugRequest {
|
|
2
3
|
slug: string;
|
|
3
4
|
}
|
|
@@ -11,3 +12,10 @@ export interface WordIdsRequest {
|
|
|
11
12
|
wordIds: string[];
|
|
12
13
|
skip: number;
|
|
13
14
|
}
|
|
15
|
+
export interface ReactionRequest {
|
|
16
|
+
id: string;
|
|
17
|
+
reaction: UserReaction;
|
|
18
|
+
}
|
|
19
|
+
export interface ReactionModifier extends ReactionRequest {
|
|
20
|
+
rate: number;
|
|
21
|
+
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { ContributionGen } from "../../common";
|
|
2
|
-
import {
|
|
1
|
+
import { ContributionGen, UserReaction } from "../../common";
|
|
2
|
+
import { TranRecord } from "../../shared";
|
|
3
3
|
import { WordDataGen } from "../word";
|
|
4
|
-
export interface FeTranRecord {
|
|
5
|
-
id: string;
|
|
6
|
-
wordId: string;
|
|
7
|
-
speechPartId?: string;
|
|
4
|
+
export interface FeTranRecord extends Omit<TranRecord, "dest"> {
|
|
8
5
|
dest: WordDataGen;
|
|
9
|
-
reaction?:
|
|
6
|
+
reaction?: UserReaction;
|
|
10
7
|
contribution?: ContributionGen;
|
|
11
8
|
}
|