@mx-space/api-client 1.4.2 → 1.4.3

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/dist/index.d.ts CHANGED
@@ -586,6 +586,7 @@ interface CommentModel extends BaseModel {
586
586
  children: CommentModel[];
587
587
  isWhispers?: boolean;
588
588
  location?: string;
589
+ source?: string;
589
590
  }
590
591
  interface CommentRef {
591
592
  id: string;
@@ -600,11 +601,13 @@ declare enum CommentState {
600
601
  Junk = 2
601
602
  }
602
603
 
603
- declare class CommentDto {
604
+ interface CommentDto {
604
605
  author: string;
605
606
  text: string;
606
607
  mail: string;
607
608
  url?: string;
609
+ source?: 'github' | 'google';
610
+ avatar?: string;
608
611
  }
609
612
 
610
613
  declare module '@mx-space/api-client' {
@@ -1047,10 +1047,6 @@
1047
1047
  all: SubscribeAllBit
1048
1048
  };
1049
1049
 
1050
- // dtos/comment.ts
1051
- var CommentDto = class {
1052
- };
1053
-
1054
1050
  // index.ts
1055
1051
  var api_client_default = createClient;
1056
1052
  })();
package/dist/index.js CHANGED
@@ -1045,10 +1045,6 @@ var SubscribeTypeToBitMap = {
1045
1045
  all: SubscribeAllBit
1046
1046
  };
1047
1047
 
1048
- // dtos/comment.ts
1049
- var CommentDto = class {
1050
- };
1051
-
1052
1048
  // index.ts
1053
1049
  var api_client_default = createClient;
1054
1050
  export {
@@ -1056,7 +1052,6 @@ export {
1056
1052
  CategoryController,
1057
1053
  CategoryType,
1058
1054
  CommentController,
1059
- CommentDto,
1060
1055
  CommentState,
1061
1056
  EnumPageType,
1062
1057
  LinkController,
package/dtos/comment.ts CHANGED
@@ -1,9 +1,12 @@
1
- export class CommentDto {
2
- author!: string
1
+ export interface CommentDto {
2
+ author: string
3
3
 
4
- text!: string
4
+ text: string
5
5
 
6
- mail!: string
6
+ mail: string
7
7
 
8
8
  url?: string
9
+
10
+ source?: 'github' | 'google'
11
+ avatar?: string
9
12
  }
package/models/comment.ts CHANGED
@@ -21,11 +21,14 @@ export interface CommentModel extends BaseModel {
21
21
  pin?: boolean
22
22
 
23
23
  avatar: string
24
+
24
25
  parent?: CommentModel | string
25
26
  children: CommentModel[]
26
27
 
27
28
  isWhispers?: boolean
28
29
  location?: string
30
+
31
+ source?: string
29
32
  }
30
33
  export interface CommentRef {
31
34
  id: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "description": "A api client for mx-space server@next",
6
6
  "author": "Innei",
@@ -52,12 +52,12 @@
52
52
  "camelcase-keys": "^7.0.2",
53
53
  "cors": "2.8.5",
54
54
  "express": "4.18.2",
55
+ "form-data": "4.0.0",
55
56
  "ky": "0.33.3",
56
57
  "lodash": "4.17.21",
57
- "tsup": "6.7.0",
58
+ "tsup": "7.1.0",
58
59
  "umi-request": "1.4.0",
59
- "vitest": "^0.31.4",
60
60
  "vite": "^4.3.9",
61
- "form-data": "4.0.0"
61
+ "vitest": "^0.31.4"
62
62
  }
63
63
  }