@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/adaptors/axios.d.cts +6 -0
- package/dist/adaptors/axios.global.js +25 -3
- package/dist/adaptors/fetch.d.cts +5 -0
- package/dist/adaptors/ky.d.cts +26 -0
- package/dist/adaptors/ky.global.js +2 -2
- package/dist/adaptors/umi-request.d.cts +6 -0
- package/dist/adaptors/umi-request.global.js +9 -1
- package/dist/index.cjs +0 -6
- package/dist/index.d.cts +1473 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.global.js +0 -4
- package/dist/index.js +0 -5
- package/dtos/comment.ts +7 -4
- package/models/comment.ts +3 -0
- package/package.json +4 -4
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
|
-
|
|
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' {
|
package/dist/index.global.js
CHANGED
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
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.
|
|
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": "
|
|
58
|
+
"tsup": "7.1.0",
|
|
58
59
|
"umi-request": "1.4.0",
|
|
59
|
-
"vitest": "^0.31.4",
|
|
60
60
|
"vite": "^4.3.9",
|
|
61
|
-
"
|
|
61
|
+
"vitest": "^0.31.4"
|
|
62
62
|
}
|
|
63
63
|
}
|