api.fluff4.me 1.0.214 → 1.0.215
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 +10 -0
- package/openapi.json +52 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -398,6 +398,11 @@ export interface Notification {
|
|
|
398
398
|
comment?: Comment | null
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
export interface NotificationCount {
|
|
402
|
+
unread_notification_count: number
|
|
403
|
+
notification_time_last_modified: string
|
|
404
|
+
}
|
|
405
|
+
|
|
401
406
|
export interface NotificationsBody {
|
|
402
407
|
notification_ids: string[]
|
|
403
408
|
}
|
|
@@ -799,6 +804,11 @@ export interface Paths {
|
|
|
799
804
|
body?: undefined
|
|
800
805
|
response: PaginatedResponse<Notifications> | ErrorResponse
|
|
801
806
|
},
|
|
807
|
+
"/notifications/get/count": {
|
|
808
|
+
method: "get"
|
|
809
|
+
body?: undefined
|
|
810
|
+
response: Response<NotificationCount> | ErrorResponse
|
|
811
|
+
},
|
|
802
812
|
"/notifications/mark/read": {
|
|
803
813
|
method: "post"
|
|
804
814
|
body: NotificationsBody
|
package/openapi.json
CHANGED
|
@@ -2052,6 +2052,21 @@
|
|
|
2052
2052
|
"read"
|
|
2053
2053
|
]
|
|
2054
2054
|
},
|
|
2055
|
+
"NotificationCount": {
|
|
2056
|
+
"type": "object",
|
|
2057
|
+
"properties": {
|
|
2058
|
+
"unread_notification_count": {
|
|
2059
|
+
"type": "number"
|
|
2060
|
+
},
|
|
2061
|
+
"notification_time_last_modified": {
|
|
2062
|
+
"type": "string"
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
"required": [
|
|
2066
|
+
"unread_notification_count",
|
|
2067
|
+
"notification_time_last_modified"
|
|
2068
|
+
]
|
|
2069
|
+
},
|
|
2055
2070
|
"NotificationsBody": {
|
|
2056
2071
|
"type": "object",
|
|
2057
2072
|
"properties": {
|
|
@@ -5218,6 +5233,43 @@
|
|
|
5218
5233
|
}
|
|
5219
5234
|
}
|
|
5220
5235
|
},
|
|
5236
|
+
"/notifications/get/count": {
|
|
5237
|
+
"get": {
|
|
5238
|
+
"responses": {
|
|
5239
|
+
"200": {
|
|
5240
|
+
"description": "200 response",
|
|
5241
|
+
"content": {
|
|
5242
|
+
"application/json": {
|
|
5243
|
+
"schema": {
|
|
5244
|
+
"type": "object",
|
|
5245
|
+
"properties": {
|
|
5246
|
+
"data": {
|
|
5247
|
+
"$ref": "#/components/schemas/NotificationCount"
|
|
5248
|
+
}
|
|
5249
|
+
},
|
|
5250
|
+
"required": [
|
|
5251
|
+
"data"
|
|
5252
|
+
]
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
}
|
|
5256
|
+
},
|
|
5257
|
+
"304": {
|
|
5258
|
+
"description": "304 response"
|
|
5259
|
+
},
|
|
5260
|
+
"default": {
|
|
5261
|
+
"description": "Error",
|
|
5262
|
+
"content": {
|
|
5263
|
+
"application/json": {
|
|
5264
|
+
"schema": {
|
|
5265
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
}
|
|
5269
|
+
}
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
},
|
|
5221
5273
|
"/notifications/mark/read": {
|
|
5222
5274
|
"post": {
|
|
5223
5275
|
"requestBody": {
|
package/package.json
CHANGED