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.
@@ -22,6 +22,7 @@ interface BoTagRefRecord {
22
22
  id: string;
23
23
  active: boolean;
24
24
  status: EntryStatus;
25
+ rate: number;
25
26
  tag: TagGen;
26
27
  contrib: DualContribGen;
27
28
  }
@@ -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;
@@ -1 +1,2 @@
1
1
  export * from "./entity";
2
+ export * from "./request";
@@ -11,3 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./entity"), exports);
14
+ __exportStar(require("./request"), exports);
@@ -0,0 +1,5 @@
1
+ import { AIWordTagsItem } from "../../shared";
2
+ export interface BoCreateTagsForWordRequest {
3
+ wordId: string;
4
+ tags: AIWordTagsItem[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
- import { FeedRequest, WordFeedExtension } from "../feed";
2
- export interface TagWordFeedRequest extends WordFeedExtension, FeedRequest {
1
+ import { FeedRequest } from "../feed";
2
+ export interface TagWordFeedRequest extends FeedRequest {
3
3
  tagCode: string;
4
+ langCode: string;
4
5
  }
@@ -0,0 +1,4 @@
1
+ import { TagGen } from "../../common";
2
+ export interface FeTagWordOption extends TagGen {
3
+ linked: boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from "./request";
2
+ export * from "./entity";
@@ -11,3 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./request"), exports);
14
+ __exportStar(require("./entity"), exports);
@@ -1,5 +1,9 @@
1
1
  import { LinkTagWordRequest } from "../../back";
2
- export interface FeLinkTagWordNameRequest extends Omit<LinkTagWordRequest, "tagId"> {
3
- name: string;
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;
@@ -2,3 +2,7 @@ export interface AiTextResponse {
2
2
  content: string;
3
3
  choices: string[];
4
4
  }
5
+ export interface AIWordTagsItem {
6
+ tag: string;
7
+ rate: number;
8
+ }
@@ -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
- wordId: string;
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
  }
@@ -1,4 +1,5 @@
1
1
  export declare class StringUtil {
2
2
  static isEqual(obj1: any, obj2: any): boolean;
3
3
  static isSame<TLiteral extends string = string>(str1: TLiteral, str2: string): boolean;
4
+ static isNumeric(text: string | undefined): boolean;
4
5
  }
@@ -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
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.262.0",
3
+ "version": "0.264.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",