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.
@@ -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
  }
@@ -4,6 +4,7 @@ export interface FeListRecord {
4
4
  slug: string;
5
5
  langCode: string;
6
6
  name: string;
7
+ isSuper: boolean;
7
8
  wordTotal: number;
8
9
  knownWordTotal: number;
9
10
  userTotal: number;
@@ -1,4 +1,4 @@
1
- import { DualContribGen, UserReaction } from "../../common";
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?: DualContribGen;
9
+ contrib?: ContribGen;
10
10
  }
@@ -1,7 +1,15 @@
1
- import { PinRequest } from "../../common";
2
- export interface BoTranWordPinRequest extends PinRequest {
1
+ import { PinRequest, ReactionRequest } from "../../common";
2
+ export interface FeTranWordPinRequest extends PinRequest {
3
3
  tranWordId: string;
4
4
  }
5
- export interface BoTranWordPinModifier extends BoTranWordPinRequest {
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
  }
@@ -51,6 +51,6 @@ export interface FeWordEntity extends WordUserGen {
51
51
  imageFeed?: Feed<FeWordImageRecord>;
52
52
  audioFeed?: Feed<FeWordAudio>;
53
53
  tagFeed?: Feed<FeWordTag>;
54
- tranLangCode?: string;
54
+ tranLangCode: string;
55
55
  tranCodes?: FeWordTranCode[];
56
56
  }
@@ -15,9 +15,15 @@ export declare type FeWordEntityRequest = FeWordEntityTextRequest | FeWordEntity
15
15
  export interface FeTranFeedRequest {
16
16
  skip: number;
17
17
  wordId: string;
18
- langCode: string;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.221.0",
3
+ "version": "0.223.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",