api.fluff4.me 1.0.860 → 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 +19 -2
- package/openapi.json +113 -12
- 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
|
|
@@ -360,8 +368,14 @@ export interface ChapterCreateBody {
|
|
|
360
368
|
notes_after?: string | null
|
|
361
369
|
global_tags?: string[] | null
|
|
362
370
|
custom_tags?: string[] | null
|
|
363
|
-
tier_id?: string | null
|
|
364
371
|
tier_ids?: string[] | null
|
|
372
|
+
work?: { status?: WorkStatus | null } | null
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export interface ChapterStatistics {
|
|
376
|
+
comment_count: number
|
|
377
|
+
reaction_count: number
|
|
378
|
+
read_count: number
|
|
365
379
|
}
|
|
366
380
|
|
|
367
381
|
export interface SupporterReactions {
|
|
@@ -369,6 +383,8 @@ export interface SupporterReactions {
|
|
|
369
383
|
author: string
|
|
370
384
|
}
|
|
371
385
|
|
|
386
|
+
export type WorkStatus = "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
|
|
387
|
+
|
|
372
388
|
export interface ChapterBulkQueueItem {
|
|
373
389
|
name: string
|
|
374
390
|
visibility: "Private" | "Public" | "Patreon"
|
|
@@ -419,8 +435,8 @@ export interface ChapterUpdateBody {
|
|
|
419
435
|
notes_after?: string | null
|
|
420
436
|
global_tags?: string[] | null
|
|
421
437
|
custom_tags?: string[] | null
|
|
422
|
-
tier_id?: string | null
|
|
423
438
|
tier_ids?: string[] | null
|
|
439
|
+
work?: { status?: WorkStatus | null } | null
|
|
424
440
|
}
|
|
425
441
|
|
|
426
442
|
export interface ChapterMetadata {
|
|
@@ -436,6 +452,7 @@ export interface ChapterMetadata {
|
|
|
436
452
|
work: string
|
|
437
453
|
patreon?: PatreonRestriction | null
|
|
438
454
|
is_numbered: boolean
|
|
455
|
+
statistics?: ChapterStatistics | null
|
|
439
456
|
}
|
|
440
457
|
|
|
441
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
|
},
|
|
@@ -2221,22 +2260,34 @@
|
|
|
2221
2260
|
}
|
|
2222
2261
|
]
|
|
2223
2262
|
},
|
|
2224
|
-
"
|
|
2263
|
+
"tier_ids": {
|
|
2225
2264
|
"anyOf": [
|
|
2226
2265
|
{
|
|
2227
|
-
"type": "
|
|
2266
|
+
"type": "array",
|
|
2267
|
+
"items": {
|
|
2268
|
+
"type": "string"
|
|
2269
|
+
}
|
|
2228
2270
|
},
|
|
2229
2271
|
{
|
|
2230
2272
|
"type": "null"
|
|
2231
2273
|
}
|
|
2232
2274
|
]
|
|
2233
2275
|
},
|
|
2234
|
-
"
|
|
2276
|
+
"work": {
|
|
2235
2277
|
"anyOf": [
|
|
2236
2278
|
{
|
|
2237
|
-
"type": "
|
|
2238
|
-
"
|
|
2239
|
-
"
|
|
2279
|
+
"type": "object",
|
|
2280
|
+
"properties": {
|
|
2281
|
+
"status": {
|
|
2282
|
+
"anyOf": [
|
|
2283
|
+
{
|
|
2284
|
+
"$ref": "#/components/schema/WorkStatus"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"type": "null"
|
|
2288
|
+
}
|
|
2289
|
+
]
|
|
2290
|
+
}
|
|
2240
2291
|
}
|
|
2241
2292
|
},
|
|
2242
2293
|
{
|
|
@@ -2251,6 +2302,25 @@
|
|
|
2251
2302
|
"body"
|
|
2252
2303
|
]
|
|
2253
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
|
+
},
|
|
2254
2324
|
"SupporterReactions": {
|
|
2255
2325
|
"type": "object",
|
|
2256
2326
|
"properties": {
|
|
@@ -2269,6 +2339,15 @@
|
|
|
2269
2339
|
"author"
|
|
2270
2340
|
]
|
|
2271
2341
|
},
|
|
2342
|
+
"WorkStatus": {
|
|
2343
|
+
"type": "string",
|
|
2344
|
+
"enum": [
|
|
2345
|
+
"Cancelled",
|
|
2346
|
+
"Hiatus",
|
|
2347
|
+
"Ongoing",
|
|
2348
|
+
"Complete"
|
|
2349
|
+
]
|
|
2350
|
+
},
|
|
2272
2351
|
"ChapterBulkQueueItem": {
|
|
2273
2352
|
"type": "object",
|
|
2274
2353
|
"properties": {
|
|
@@ -2591,22 +2670,34 @@
|
|
|
2591
2670
|
}
|
|
2592
2671
|
]
|
|
2593
2672
|
},
|
|
2594
|
-
"
|
|
2673
|
+
"tier_ids": {
|
|
2595
2674
|
"anyOf": [
|
|
2596
2675
|
{
|
|
2597
|
-
"type": "
|
|
2676
|
+
"type": "array",
|
|
2677
|
+
"items": {
|
|
2678
|
+
"type": "string"
|
|
2679
|
+
}
|
|
2598
2680
|
},
|
|
2599
2681
|
{
|
|
2600
2682
|
"type": "null"
|
|
2601
2683
|
}
|
|
2602
2684
|
]
|
|
2603
2685
|
},
|
|
2604
|
-
"
|
|
2686
|
+
"work": {
|
|
2605
2687
|
"anyOf": [
|
|
2606
2688
|
{
|
|
2607
|
-
"type": "
|
|
2608
|
-
"
|
|
2609
|
-
"
|
|
2689
|
+
"type": "object",
|
|
2690
|
+
"properties": {
|
|
2691
|
+
"status": {
|
|
2692
|
+
"anyOf": [
|
|
2693
|
+
{
|
|
2694
|
+
"$ref": "#/components/schema/WorkStatus"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"type": "null"
|
|
2698
|
+
}
|
|
2699
|
+
]
|
|
2700
|
+
}
|
|
2610
2701
|
}
|
|
2611
2702
|
},
|
|
2612
2703
|
{
|
|
@@ -2689,6 +2780,16 @@
|
|
|
2689
2780
|
},
|
|
2690
2781
|
"is_numbered": {
|
|
2691
2782
|
"type": "boolean"
|
|
2783
|
+
},
|
|
2784
|
+
"statistics": {
|
|
2785
|
+
"anyOf": [
|
|
2786
|
+
{
|
|
2787
|
+
"$ref": "#/components/schema/ChapterStatistics"
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"type": "null"
|
|
2791
|
+
}
|
|
2792
|
+
]
|
|
2692
2793
|
}
|
|
2693
2794
|
},
|
|
2694
2795
|
"required": [
|
package/package.json
CHANGED