revdev 0.233.0 → 0.234.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.
@@ -31,5 +31,6 @@ export declare enum ExceptionCodes {
31
31
  ImageCannotUploadInDevelopmentFolder = "ImageCannotUploadInDevelopmentFolder",
32
32
  CsvParsingValidation = "CsvParsingValidation",
33
33
  EntryStatusCannotBeChangedForAdminEntity = "EntryStatusCannotBeChangedForAdminEntity",
34
- MaxTranWordPinsExceeded = "MaxTranWordPinsExceeded"
34
+ MaxTranWordPinsExceeded = "MaxTranWordPinsExceeded",
35
+ MaxWordImagePinsExceeded = "MaxWordImagePinsExceeded"
35
36
  }
@@ -39,4 +39,5 @@ var ExceptionCodes;
39
39
  // entry status
40
40
  ExceptionCodes["EntryStatusCannotBeChangedForAdminEntity"] = "EntryStatusCannotBeChangedForAdminEntity";
41
41
  ExceptionCodes["MaxTranWordPinsExceeded"] = "MaxTranWordPinsExceeded";
42
+ ExceptionCodes["MaxWordImagePinsExceeded"] = "MaxWordImagePinsExceeded";
42
43
  })(ExceptionCodes = exports.ExceptionCodes || (exports.ExceptionCodes = {}));
@@ -0,0 +1,5 @@
1
+ export interface ImageGen {
2
+ id: string;
3
+ fileName: string;
4
+ thumbnailFileName: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,3 +8,5 @@ export * from "./gen";
8
8
  export * from "./link";
9
9
  export * from "./feed";
10
10
  export * from "./exception";
11
+ export * from "./modifier";
12
+ export * from "./image";
@@ -20,3 +20,5 @@ __exportStar(require("./gen"), exports);
20
20
  __exportStar(require("./link"), exports);
21
21
  __exportStar(require("./feed"), exports);
22
22
  __exportStar(require("./exception"), exports);
23
+ __exportStar(require("./modifier"), exports);
24
+ __exportStar(require("./image"), exports);
@@ -0,0 +1,10 @@
1
+ import { UserReaction } from "./enums";
2
+ export interface ReactionModifier {
3
+ id: string;
4
+ reaction?: UserReaction;
5
+ rate: number;
6
+ }
7
+ export interface PinModifier {
8
+ id: string;
9
+ pinned?: boolean;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,9 +17,11 @@ export interface WordIdsRequest {
17
17
  }
18
18
  export interface ReactionRequest {
19
19
  reaction: UserReaction;
20
+ id: string;
20
21
  }
21
22
  export interface PinRequest {
22
23
  pin: boolean;
24
+ id: string;
23
25
  }
24
26
  export interface TokenRequest {
25
27
  token: string;
@@ -1,15 +1,14 @@
1
- import { PinRequest, ReactionRequest } from "../../common";
2
- export interface FeTranWordPinRequest extends PinRequest {
1
+ import { PinRequest, ReactionModifier, ReactionRequest } from "../../common";
2
+ export interface FeTranWordPinRequest extends Pick<PinRequest, "pin"> {
3
3
  tranWordId: string;
4
4
  }
5
5
  export interface FeTranWordPinModifier extends FeTranWordPinRequest {
6
6
  tranId: string;
7
7
  id: string;
8
8
  }
9
- export interface FeTranReactionRequest extends ReactionRequest {
9
+ export interface FeTranReactionRequest extends Pick<ReactionRequest, "reaction"> {
10
10
  tranId: string;
11
11
  }
12
- export interface FeTranReactionModifier extends FeTranReactionRequest {
13
- rate: number;
14
- id: string;
12
+ export interface FeTranReactionModifier extends ReactionModifier {
13
+ tranId: string;
15
14
  }
@@ -1,4 +1,4 @@
1
- import { DualContribGen, UserReaction } from "../../common";
1
+ import { ContribGen, UserReaction } from "../../common";
2
2
  export interface FeWordImageRecord {
3
3
  id: string;
4
4
  wordId: string;
@@ -9,5 +9,5 @@ export interface FeWordImageRecord {
9
9
  rate: number;
10
10
  reaction: UserReaction;
11
11
  pinned: boolean;
12
- contrib: DualContribGen;
12
+ contrib: ContribGen;
13
13
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var utils_1 = require("../utils");
4
+ describe("ArrayUtil Test", function () {
5
+ test("true", function () {
6
+ expect(utils_1.ArrayUtil.toArray(1)).toMatchObject([1]);
7
+ expect(utils_1.ArrayUtil.toArray("text")).toMatchObject(["text"]);
8
+ });
9
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.233.0",
3
+ "version": "0.234.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",