revdev 0.87.0 → 0.89.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.
@@ -13,12 +13,13 @@ export interface BoWord {
13
13
  tags?: string[];
14
14
  }
15
15
  export interface BoWordEntity {
16
- wordId: string;
16
+ id: string;
17
17
  text: string;
18
18
  languageCode: string;
19
19
  created: string;
20
20
  mode?: string;
21
21
  rate?: number;
22
+ tags?: string[];
22
23
  }
23
24
  export interface BoWordImage {
24
25
  wordId: string;
@@ -12,3 +12,7 @@ export interface BoCreateWordRequest extends FeCreateWordRequest {
12
12
  export interface BoUpdateWordRequest extends Pick<FeCreateWordRequest, "mode" | "rate"> {
13
13
  id: string;
14
14
  }
15
+ export interface BoUpdateWordTagRequest {
16
+ wordId: string | string[];
17
+ tagCode: string | string[];
18
+ }
@@ -0,0 +1,3 @@
1
+ export declare class ArrayUtil {
2
+ static toArray<T>(item: T | T[]): T[];
3
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArrayUtil = void 0;
4
+ var ArrayUtil = /** @class */ (function () {
5
+ function ArrayUtil() {
6
+ }
7
+ ArrayUtil.toArray = function (item) {
8
+ return Array.isArray(item) ? item : [item];
9
+ };
10
+ return ArrayUtil;
11
+ }());
12
+ exports.ArrayUtil = ArrayUtil;
@@ -2,3 +2,4 @@ export * from "./feed";
2
2
  export * from "./converter";
3
3
  export * from "./string";
4
4
  export * from "./regex";
5
+ export * from "./array";
@@ -14,3 +14,4 @@ __exportStar(require("./feed"), exports);
14
14
  __exportStar(require("./converter"), exports);
15
15
  __exportStar(require("./string"), exports);
16
16
  __exportStar(require("./regex"), exports);
17
+ __exportStar(require("./array"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.87.0",
3
+ "version": "0.89.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",