api.fluff4.me 1.0.862 → 1.0.863
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 +15 -0
- package/openapi.json +68 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -274,6 +274,7 @@ export interface Work {
|
|
|
274
274
|
synopsis: MentionsBody
|
|
275
275
|
custom_tags?: CustomTag[] | null
|
|
276
276
|
last_chapter: string
|
|
277
|
+
statistics?: WorkStatistics | null
|
|
277
278
|
}
|
|
278
279
|
|
|
279
280
|
export interface WorkCreateBody {
|
|
@@ -300,6 +301,12 @@ export interface MentionsBody {
|
|
|
300
301
|
|
|
301
302
|
export type CustomTag = string
|
|
302
303
|
|
|
304
|
+
export interface WorkStatistics {
|
|
305
|
+
comment_count: number
|
|
306
|
+
reaction_count: number
|
|
307
|
+
read_count: number
|
|
308
|
+
}
|
|
309
|
+
|
|
303
310
|
export interface WorkUpdateBody {
|
|
304
311
|
name?: string | null
|
|
305
312
|
description?: string | null
|
|
@@ -336,6 +343,7 @@ export interface Chapter {
|
|
|
336
343
|
work: string
|
|
337
344
|
patreon?: PatreonRestriction | null
|
|
338
345
|
is_numbered: boolean
|
|
346
|
+
statistics?: ChapterStatistics | null
|
|
339
347
|
body: string
|
|
340
348
|
index: number
|
|
341
349
|
notes_before?: string | null
|
|
@@ -364,6 +372,12 @@ export interface ChapterCreateBody {
|
|
|
364
372
|
work?: { status?: WorkStatus | null } | null
|
|
365
373
|
}
|
|
366
374
|
|
|
375
|
+
export interface ChapterStatistics {
|
|
376
|
+
comment_count: number
|
|
377
|
+
reaction_count: number
|
|
378
|
+
read_count: number
|
|
379
|
+
}
|
|
380
|
+
|
|
367
381
|
export interface SupporterReactions {
|
|
368
382
|
reaction_type: "heart"
|
|
369
383
|
author: string
|
|
@@ -438,6 +452,7 @@ export interface ChapterMetadata {
|
|
|
438
452
|
work: string
|
|
439
453
|
patreon?: PatreonRestriction | null
|
|
440
454
|
is_numbered: boolean
|
|
455
|
+
statistics?: ChapterStatistics | null
|
|
441
456
|
}
|
|
442
457
|
|
|
443
458
|
export type Chapters = ChapterMetadata[]
|
package/openapi.json
CHANGED
|
@@ -1511,6 +1511,16 @@
|
|
|
1511
1511
|
},
|
|
1512
1512
|
"last_chapter": {
|
|
1513
1513
|
"type": "string"
|
|
1514
|
+
},
|
|
1515
|
+
"statistics": {
|
|
1516
|
+
"anyOf": [
|
|
1517
|
+
{
|
|
1518
|
+
"$ref": "#/components/schema/WorkStatistics"
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"type": "null"
|
|
1522
|
+
}
|
|
1523
|
+
]
|
|
1514
1524
|
}
|
|
1515
1525
|
},
|
|
1516
1526
|
"required": [
|
|
@@ -1713,6 +1723,25 @@
|
|
|
1713
1723
|
"type": "string",
|
|
1714
1724
|
"maxLength": 64
|
|
1715
1725
|
},
|
|
1726
|
+
"WorkStatistics": {
|
|
1727
|
+
"type": "object",
|
|
1728
|
+
"properties": {
|
|
1729
|
+
"comment_count": {
|
|
1730
|
+
"type": "number"
|
|
1731
|
+
},
|
|
1732
|
+
"reaction_count": {
|
|
1733
|
+
"type": "number"
|
|
1734
|
+
},
|
|
1735
|
+
"read_count": {
|
|
1736
|
+
"type": "number"
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
"required": [
|
|
1740
|
+
"comment_count",
|
|
1741
|
+
"reaction_count",
|
|
1742
|
+
"read_count"
|
|
1743
|
+
]
|
|
1744
|
+
},
|
|
1716
1745
|
"WorkUpdateBody": {
|
|
1717
1746
|
"type": "object",
|
|
1718
1747
|
"properties": {
|
|
@@ -1997,6 +2026,16 @@
|
|
|
1997
2026
|
"is_numbered": {
|
|
1998
2027
|
"type": "boolean"
|
|
1999
2028
|
},
|
|
2029
|
+
"statistics": {
|
|
2030
|
+
"anyOf": [
|
|
2031
|
+
{
|
|
2032
|
+
"$ref": "#/components/schema/ChapterStatistics"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"type": "null"
|
|
2036
|
+
}
|
|
2037
|
+
]
|
|
2038
|
+
},
|
|
2000
2039
|
"body": {
|
|
2001
2040
|
"type": "string"
|
|
2002
2041
|
},
|
|
@@ -2263,6 +2302,25 @@
|
|
|
2263
2302
|
"body"
|
|
2264
2303
|
]
|
|
2265
2304
|
},
|
|
2305
|
+
"ChapterStatistics": {
|
|
2306
|
+
"type": "object",
|
|
2307
|
+
"properties": {
|
|
2308
|
+
"comment_count": {
|
|
2309
|
+
"type": "number"
|
|
2310
|
+
},
|
|
2311
|
+
"reaction_count": {
|
|
2312
|
+
"type": "number"
|
|
2313
|
+
},
|
|
2314
|
+
"read_count": {
|
|
2315
|
+
"type": "number"
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
"required": [
|
|
2319
|
+
"comment_count",
|
|
2320
|
+
"reaction_count",
|
|
2321
|
+
"read_count"
|
|
2322
|
+
]
|
|
2323
|
+
},
|
|
2266
2324
|
"SupporterReactions": {
|
|
2267
2325
|
"type": "object",
|
|
2268
2326
|
"properties": {
|
|
@@ -2722,6 +2780,16 @@
|
|
|
2722
2780
|
},
|
|
2723
2781
|
"is_numbered": {
|
|
2724
2782
|
"type": "boolean"
|
|
2783
|
+
},
|
|
2784
|
+
"statistics": {
|
|
2785
|
+
"anyOf": [
|
|
2786
|
+
{
|
|
2787
|
+
"$ref": "#/components/schema/ChapterStatistics"
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"type": "null"
|
|
2791
|
+
}
|
|
2792
|
+
]
|
|
2725
2793
|
}
|
|
2726
2794
|
},
|
|
2727
2795
|
"required": [
|
package/package.json
CHANGED