revdev 0.232.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.
- package/lib/common/enums.d.ts +3 -0
- package/lib/common/enums.js +5 -1
- package/lib/common/exception.d.ts +2 -1
- package/lib/common/exception.js +1 -0
- package/lib/common/image.d.ts +5 -0
- package/lib/common/image.js +2 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.js +2 -0
- package/lib/common/modifier.d.ts +10 -0
- package/lib/common/modifier.js +2 -0
- package/lib/common/request.d.ts +5 -0
- package/lib/front/tran/request.d.ts +5 -6
- package/lib/front/wordImage/entity.d.ts +2 -2
- package/lib/tests/array.test.d.ts +1 -0
- package/lib/tests/array.test.js +9 -0
- package/package.json +1 -1
package/lib/common/enums.d.ts
CHANGED
package/lib/common/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
3
|
+
exports.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
4
4
|
var Knowing;
|
|
5
5
|
(function (Knowing) {
|
|
6
6
|
Knowing[Knowing["Known"] = 1] = "Known";
|
|
@@ -31,3 +31,7 @@ var EntryStatus;
|
|
|
31
31
|
EntryStatus[EntryStatus["Rejected"] = 2] = "Rejected";
|
|
32
32
|
EntryStatus[EntryStatus["Pending"] = 3] = "Pending";
|
|
33
33
|
})(EntryStatus = exports.EntryStatus || (exports.EntryStatus = {}));
|
|
34
|
+
var SocialProvider;
|
|
35
|
+
(function (SocialProvider) {
|
|
36
|
+
SocialProvider["Google"] = "google";
|
|
37
|
+
})(SocialProvider = exports.SocialProvider || (exports.SocialProvider = {}));
|
|
@@ -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
|
}
|
package/lib/common/exception.js
CHANGED
|
@@ -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 = {}));
|
package/lib/common/index.d.ts
CHANGED
package/lib/common/index.js
CHANGED
|
@@ -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);
|
package/lib/common/request.d.ts
CHANGED
|
@@ -17,7 +17,12 @@ 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;
|
|
25
|
+
}
|
|
26
|
+
export interface TokenRequest {
|
|
27
|
+
token: string;
|
|
23
28
|
}
|
|
@@ -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
|
|
13
|
-
|
|
14
|
-
id: string;
|
|
12
|
+
export interface FeTranReactionModifier extends ReactionModifier {
|
|
13
|
+
tranId: string;
|
|
15
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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
|
+
});
|