revdev 0.260.0 → 0.263.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.
@@ -43,3 +43,8 @@ export interface BoSmmChannelFeedRequest extends FeedRequest {
43
43
  export interface BoSmmPostFeedRequest extends FeedRequest {
44
44
  channelId?: string;
45
45
  }
46
+ export interface BoSmmCustomPostRequest {
47
+ channelId: string;
48
+ text: string;
49
+ base64Image?: string;
50
+ }
@@ -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
  }
@@ -3,3 +3,6 @@ export interface ImageGen {
3
3
  fileName: string;
4
4
  thumbnailFileName: string;
5
5
  }
6
+ export interface Base64Image {
7
+ content: string;
8
+ }
@@ -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;
@@ -0,0 +1,4 @@
1
+ export interface AiTextResponse {
2
+ content: string;
3
+ choices: string[];
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./request";
2
+ export * from "./entity";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./request"), exports);
14
+ __exportStar(require("./entity"), exports);
@@ -0,0 +1,7 @@
1
+ export interface AiTextRequest {
2
+ systemContent?: string;
3
+ userContent: string;
4
+ }
5
+ export interface AiImageRequest {
6
+ prompt: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,3 +7,4 @@ export * from "./tran";
7
7
  export * from "./general";
8
8
  export * from "./wordImage";
9
9
  export * from "./auth";
10
+ export * from "./ai";
@@ -19,3 +19,4 @@ __exportStar(require("./tran"), exports);
19
19
  __exportStar(require("./general"), exports);
20
20
  __exportStar(require("./wordImage"), exports);
21
21
  __exportStar(require("./auth"), exports);
22
+ __exportStar(require("./ai"), exports);
@@ -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,3 +1,7 @@
1
+ import { Base64Image } from "../../common";
1
2
  export interface UploadWordImageRequest {
2
3
  wordId: string;
3
4
  }
5
+ export interface UploadWordImageBase64Request extends Base64Image {
6
+ wordId: string;
7
+ }
@@ -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.260.0",
3
+ "version": "0.263.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",