@mx-space/api-client 0.10.8 → 0.10.11

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.
package/models/comment.ts CHANGED
@@ -18,6 +18,7 @@ export interface CommentModel extends BaseModel {
18
18
  ip?: string
19
19
  agent?: string
20
20
  key: string
21
+ pin?: boolean
21
22
 
22
23
  avatar: string
23
24
  parent?: CommentModel | string
package/models/post.ts CHANGED
@@ -12,4 +12,6 @@ export interface PostModel extends TextBaseModel {
12
12
  categoryId: string
13
13
  images: Image[]
14
14
  category: CategoryModel
15
+ pin?: string | null
16
+ pinOrder?: number
15
17
  }
@@ -1,7 +1,27 @@
1
1
  import type { BaseModel } from './base'
2
2
 
3
+ export enum RecentlyRefTypes {
4
+ Post = 'Post',
5
+ Note = 'Note',
6
+ Page = 'Page',
7
+ }
8
+
9
+ export type RecentlyRefType = {
10
+ title: string
11
+ url: string
12
+ }
3
13
  export interface RecentlyModel extends BaseModel {
4
14
  content: string
15
+
16
+ ref?: RecentlyRefType & { [key: string]: any }
17
+ refId?: string
18
+ refType?: RecentlyRefTypes
19
+ /**
20
+ * @deprecated
21
+ */
5
22
  project?: string
23
+ /**
24
+ * @deprecated
25
+ */
6
26
  language?: string
7
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "0.10.8",
3
+ "version": "0.10.11",
4
4
  "description": "A api client for mx-space server@next",
5
5
  "author": "Innei",
6
6
  "license": "MIT",
@@ -46,10 +46,10 @@
46
46
  "devDependencies": {
47
47
  "@rollup/plugin-commonjs": "22.0.0",
48
48
  "@rollup/plugin-node-resolve": "13.2.2",
49
- "@rollup/plugin-typescript": "8.3.2",
49
+ "@rollup/plugin-typescript": "8.3.3",
50
50
  "@types/cors": "2.8.12",
51
51
  "@types/lodash": "4.14.182",
52
- "@types/node": "16.11.38",
52
+ "@types/node": "16.11.39",
53
53
  "axios": "0.27.2",
54
54
  "gh-pages": "4.0.0",
55
55
  "lodash": "4.17.21",
@@ -17,6 +17,7 @@ export interface CommentModel extends BaseModel {
17
17
  ip?: string;
18
18
  agent?: string;
19
19
  key: string;
20
+ pin?: boolean;
20
21
  avatar: string;
21
22
  parent?: CommentModel | string;
22
23
  children: CommentModel[];
@@ -11,4 +11,6 @@ export interface PostModel extends TextBaseModel {
11
11
  categoryId: string;
12
12
  images: Image[];
13
13
  category: CategoryModel;
14
+ pin?: string | null;
15
+ pinOrder?: number;
14
16
  }
@@ -1,6 +1,26 @@
1
1
  import type { BaseModel } from './base';
2
+ export declare enum RecentlyRefTypes {
3
+ Post = "Post",
4
+ Note = "Note",
5
+ Page = "Page"
6
+ }
7
+ export declare type RecentlyRefType = {
8
+ title: string;
9
+ url: string;
10
+ };
2
11
  export interface RecentlyModel extends BaseModel {
3
12
  content: string;
13
+ ref?: RecentlyRefType & {
14
+ [key: string]: any;
15
+ };
16
+ refId?: string;
17
+ refType?: RecentlyRefTypes;
18
+ /**
19
+ * @deprecated
20
+ */
4
21
  project?: string;
22
+ /**
23
+ * @deprecated
24
+ */
5
25
  language?: string;
6
26
  }