revdev 0.262.0 → 0.264.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/back/tag/entity.d.ts +1 -0
- package/lib/back/tag/request.d.ts +2 -0
- package/lib/back/tagWord/index.d.ts +1 -0
- package/lib/back/tagWord/index.js +1 -0
- package/lib/back/tagWord/request.d.ts +5 -0
- package/lib/back/tagWord/request.js +2 -0
- package/lib/common/feed.d.ts +3 -2
- package/lib/front/tagWord/entity.d.ts +4 -0
- package/lib/front/tagWord/entity.js +2 -0
- package/lib/front/tagWord/index.d.ts +1 -0
- package/lib/front/tagWord/index.js +1 -0
- package/lib/front/tagWord/request.d.ts +7 -3
- package/lib/shared/ai/entity.d.ts +4 -0
- package/lib/shared/tagWord/entity.d.ts +5 -2
- package/lib/utils/string.d.ts +1 -0
- package/lib/utils/string.js +3 -0
- package/lib/utils/tests/string.test.d.ts +1 -0
- package/lib/utils/tests/string.test.js +10 -0
- package/package.json +1 -1
package/lib/back/tag/entity.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface BoUpdateTagStatusRequest extends BoEntryStatusUpdateRequest {
|
|
|
19
19
|
export interface BoTagWordFeedRequest extends FeedRequest {
|
|
20
20
|
tagId?: string;
|
|
21
21
|
langCode?: string;
|
|
22
|
+
wordId?: string;
|
|
22
23
|
}
|
|
23
24
|
interface LinkTagRefRequest {
|
|
24
25
|
tagId: string;
|
|
@@ -26,6 +27,7 @@ interface LinkTagRefRequest {
|
|
|
26
27
|
}
|
|
27
28
|
export interface LinkTagWordRequest extends LinkTagRefRequest {
|
|
28
29
|
wordId: string;
|
|
30
|
+
rate?: number;
|
|
29
31
|
}
|
|
30
32
|
export interface LinkTagWordImageRequest extends LinkTagRefRequest {
|
|
31
33
|
wordImageId: string;
|
package/lib/common/feed.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FeedRequest
|
|
2
|
-
export interface TagWordFeedRequest extends
|
|
1
|
+
import { FeedRequest } from "../feed";
|
|
2
|
+
export interface TagWordFeedRequest extends FeedRequest {
|
|
3
3
|
tagCode: string;
|
|
4
|
+
langCode: string;
|
|
4
5
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { LinkTagWordRequest } from "../../back";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { OptionRequest } from "../../common";
|
|
3
|
+
export interface FeLinkTagWordRequest extends Omit<LinkTagWordRequest, "tagId"> {
|
|
4
|
+
tagId?: string | string[];
|
|
5
|
+
name?: string | string[];
|
|
6
|
+
}
|
|
7
|
+
export interface FeTagWordOptionRequest extends OptionRequest {
|
|
8
|
+
wordId?: string;
|
|
4
9
|
}
|
|
5
|
-
export declare type FeLinkTagWordRequest = LinkTagWordRequest | FeLinkTagWordNameRequest;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { TagGen, UserReaction } from "../../common";
|
|
1
|
+
import { ContribGen, EntryStatus, TagGen, UserReaction } from "../../common";
|
|
2
|
+
import { WordDataGen } from "../../front";
|
|
2
3
|
export interface TagWordRecord {
|
|
3
4
|
id: string;
|
|
4
|
-
|
|
5
|
+
word: WordDataGen;
|
|
5
6
|
tag: TagGen;
|
|
6
7
|
active: boolean;
|
|
8
|
+
status?: EntryStatus;
|
|
7
9
|
rate: number;
|
|
8
10
|
reaction?: UserReaction;
|
|
11
|
+
contrib: ContribGen;
|
|
9
12
|
}
|
package/lib/utils/string.d.ts
CHANGED
package/lib/utils/string.js
CHANGED
|
@@ -10,6 +10,9 @@ var StringUtil = /** @class */ (function () {
|
|
|
10
10
|
StringUtil.isSame = function (str1, str2) {
|
|
11
11
|
return (str1 || "").trim().toLowerCase() === (str2 || "").trim().toLowerCase();
|
|
12
12
|
};
|
|
13
|
+
StringUtil.isNumeric = function (text) {
|
|
14
|
+
return (text || "").match(/^\d+$/gi) !== null;
|
|
15
|
+
};
|
|
13
16
|
return StringUtil;
|
|
14
17
|
}());
|
|
15
18
|
exports.StringUtil = StringUtil;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var string_1 = require("../string");
|
|
4
|
+
describe("StringUtil", function () {
|
|
5
|
+
test("isNumeric", function () {
|
|
6
|
+
expect(string_1.StringUtil.isNumeric("1")).toBeTruthy();
|
|
7
|
+
expect(string_1.StringUtil.isNumeric("10")).toBeTruthy();
|
|
8
|
+
expect(string_1.StringUtil.isNumeric("a1")).toBeFalsy();
|
|
9
|
+
});
|
|
10
|
+
});
|