@mx-space/api-client 0.4.2 → 0.4.6

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.
@@ -1,8 +1,7 @@
1
- import { Count, Image } from './base';
1
+ import { Count, Image, TextBaseModel } from './base';
2
2
  import { CategoryModel } from './category';
3
- export interface PostModel {
4
- commentsIndex: number;
5
- allowComment: boolean;
3
+ export interface PostModel extends TextBaseModel {
4
+ summary?: string;
6
5
  hide: boolean;
7
6
  copyright: boolean;
8
7
  tags: string[];
@@ -13,7 +12,6 @@ export interface PostModel {
13
12
  slug: string;
14
13
  categoryId: string;
15
14
  images: Image[];
16
- modified: string;
17
15
  created: string;
18
16
  category: CategoryModel;
19
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "0.4.2",
3
+ "version": "0.4.6",
4
4
  "description": "A api client for mx-space server@next",
5
5
  "author": "Innei",
6
6
  "license": "MIT",
@@ -66,25 +66,25 @@
66
66
  "@types/express": "4.17.13",
67
67
  "@types/jest": "27.0.3",
68
68
  "@types/lodash": "4.14.178",
69
- "@types/node": "16.11.15",
70
- "@types/react": "17.0.37",
69
+ "@types/node": "16.11.17",
70
+ "@types/react": "17.0.38",
71
71
  "@types/react-dom": "17.0.11",
72
72
  "@zerollup/ts-transform-paths": "1.7.18",
73
73
  "axios": "0.24.0",
74
74
  "cors": "2.8.5",
75
75
  "dts-bundle-generator": "6.2.0",
76
- "esbuild": "0.14.7",
76
+ "esbuild": "0.14.8",
77
77
  "express": "4.17.2",
78
78
  "gh-pages": "3.2.3",
79
79
  "husky": "7.0.4",
80
80
  "jest": "27.4.5",
81
- "lint-staged": "12.1.3",
81
+ "lint-staged": "12.1.4",
82
82
  "lodash": "4.17.21",
83
83
  "prettier": "2.5.1",
84
84
  "react": "18.0.0-rc.0-next-f2a59df48-20211208",
85
85
  "react-dom": "18.0.0-rc.0-next-f2a59df48-20211208",
86
86
  "react-json-view": "1.21.3",
87
- "rollup": "2.61.0",
87
+ "rollup": "2.62.0",
88
88
  "rollup-plugin-peer-deps-external": "2.2.4",
89
89
  "rollup-plugin-terser": "7.0.2",
90
90
  "ts-jest": "27.1.2",