lemon-model 1.0.0 → 1.0.1

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.
@@ -32,6 +32,17 @@ export interface GeneralItem {
32
32
  */
33
33
  [key: string]: string | string[] | number | number[];
34
34
  }
35
+ /**
36
+ * type: simple data-types
37
+ * - it should be compartible with elastic-search.
38
+ * - it should be consistancy within same key name.
39
+ */
40
+ export interface SimpleSet {
41
+ /**
42
+ * only has simple string or number w/o array.
43
+ */
44
+ [key: string]: string | number;
45
+ }
35
46
  /** ********************************************************************************************************************
36
47
  * COMMON Interfaces
37
48
  ** ********************************************************************************************************************/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemon-model",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Common shared model definitions for Lemon Micro-Service Platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,14 +12,13 @@
12
12
  "doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out dist/docs",
13
13
  "doc:publish": "npm run doc:html && gh-pages -m \"docs(gh-pages): publish gh-pages via typedoc\" -d dist/docs",
14
14
  "lint": "tsc --noEmit && eslint '*/**/*.{js,ts,jsx,tsx}' --fix",
15
- "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
15
+ "format": "prettier --write \"src/**/*.ts\"",
16
16
  "!test": "------- run self-test with jest -----",
17
17
  "test": "jest --config=jest.config.json",
18
18
  "test:watch": "jest --config=jest.config.json --watchAll",
19
19
  "!publish": "------- publish into repository -----",
20
20
  "prepare": "npm run build",
21
- "!prepublishOnly": "npm test && npm run lint && npm run format",
22
- "prepublishOnly": "npm test && npm run lint"
21
+ "prepublishOnly": "npm test && npm run lint && npm run format"
23
22
  },
24
23
  "husky": {
25
24
  "hooks": {