api.fluff4.me 1.0.688 → 1.0.691
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/index.d.ts +6 -6
- package/openapi.json +9 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -513,7 +513,7 @@ export interface RoleReorderBody {
|
|
|
513
513
|
roles: string[]
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
export interface
|
|
516
|
+
export interface Comment {
|
|
517
517
|
comment_id: string
|
|
518
518
|
parent_id?: string | null
|
|
519
519
|
body?: TextBody | null
|
|
@@ -522,7 +522,7 @@ export interface CommentResolved {
|
|
|
522
522
|
author?: string | null
|
|
523
523
|
reactions?: number | null
|
|
524
524
|
reacted?: true | null
|
|
525
|
-
author_hearted?:
|
|
525
|
+
author_hearted?: true | null
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
export interface CommentCreateBody {
|
|
@@ -535,7 +535,7 @@ export interface CommentUpdateBody {
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
export interface CommentsResponse {
|
|
538
|
-
comments:
|
|
538
|
+
comments: Comment[]
|
|
539
539
|
authors: Author[]
|
|
540
540
|
}
|
|
541
541
|
|
|
@@ -720,7 +720,7 @@ export interface Notifications {
|
|
|
720
720
|
authors: Author[]
|
|
721
721
|
works: Work[]
|
|
722
722
|
chapters: ChapterLite[]
|
|
723
|
-
comments:
|
|
723
|
+
comments: Comment[]
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
export interface Notification {
|
|
@@ -1481,13 +1481,13 @@ export interface Paths {
|
|
|
1481
1481
|
method: "post"
|
|
1482
1482
|
body: CommentCreateBody
|
|
1483
1483
|
search?: undefined
|
|
1484
|
-
response: Response<
|
|
1484
|
+
response: Response<Comment> | ErrorResponse
|
|
1485
1485
|
},
|
|
1486
1486
|
"/comment/{id}/update": {
|
|
1487
1487
|
method: "post"
|
|
1488
1488
|
body: CommentUpdateBody
|
|
1489
1489
|
search?: undefined
|
|
1490
|
-
response: Response<
|
|
1490
|
+
response: Response<Comment> | ErrorResponse
|
|
1491
1491
|
},
|
|
1492
1492
|
"/comment/{id}/delete": {
|
|
1493
1493
|
method: "post"
|
package/openapi.json
CHANGED
|
@@ -3060,7 +3060,7 @@
|
|
|
3060
3060
|
"roles"
|
|
3061
3061
|
]
|
|
3062
3062
|
},
|
|
3063
|
-
"
|
|
3063
|
+
"Comment": {
|
|
3064
3064
|
"type": "object",
|
|
3065
3065
|
"properties": {
|
|
3066
3066
|
"comment_id": {
|
|
@@ -3146,7 +3146,10 @@
|
|
|
3146
3146
|
"author_hearted": {
|
|
3147
3147
|
"anyOf": [
|
|
3148
3148
|
{
|
|
3149
|
-
"type": "boolean"
|
|
3149
|
+
"type": "boolean",
|
|
3150
|
+
"enum": [
|
|
3151
|
+
true
|
|
3152
|
+
]
|
|
3150
3153
|
},
|
|
3151
3154
|
{
|
|
3152
3155
|
"type": "null"
|
|
@@ -3198,7 +3201,7 @@
|
|
|
3198
3201
|
"comments": {
|
|
3199
3202
|
"type": "array",
|
|
3200
3203
|
"items": {
|
|
3201
|
-
"$ref": "#/components/schema/
|
|
3204
|
+
"$ref": "#/components/schema/Comment"
|
|
3202
3205
|
}
|
|
3203
3206
|
},
|
|
3204
3207
|
"authors": {
|
|
@@ -4061,7 +4064,7 @@
|
|
|
4061
4064
|
"comments": {
|
|
4062
4065
|
"type": "array",
|
|
4063
4066
|
"items": {
|
|
4064
|
-
"$ref": "#/components/schema/
|
|
4067
|
+
"$ref": "#/components/schema/Comment"
|
|
4065
4068
|
}
|
|
4066
4069
|
}
|
|
4067
4070
|
},
|
|
@@ -8792,7 +8795,7 @@
|
|
|
8792
8795
|
"type": "object",
|
|
8793
8796
|
"properties": {
|
|
8794
8797
|
"data": {
|
|
8795
|
-
"$ref": "#/components/schemas/
|
|
8798
|
+
"$ref": "#/components/schemas/Comment"
|
|
8796
8799
|
}
|
|
8797
8800
|
},
|
|
8798
8801
|
"required": [
|
|
@@ -8841,7 +8844,7 @@
|
|
|
8841
8844
|
"type": "object",
|
|
8842
8845
|
"properties": {
|
|
8843
8846
|
"data": {
|
|
8844
|
-
"$ref": "#/components/schemas/
|
|
8847
|
+
"$ref": "#/components/schemas/Comment"
|
|
8845
8848
|
}
|
|
8846
8849
|
},
|
|
8847
8850
|
"required": [
|
package/package.json
CHANGED