api.fluff4.me 1.0.1151 → 1.0.1155

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.
Files changed (3) hide show
  1. package/index.d.ts +20 -6
  2. package/openapi.json +101 -20
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -301,6 +301,8 @@ export interface Work {
301
301
  last_chapter: string
302
302
  statistics?: WorkStatistics | null
303
303
  recommendation?: Comment | null
304
+ recommendation_reactions: AttributedReaction[]
305
+ recommendation_reacted?: true | null
304
306
  }
305
307
 
306
308
  export interface WorkCreateBody {
@@ -348,6 +350,11 @@ export interface Comment {
348
350
  replyable: boolean
349
351
  }
350
352
 
353
+ export interface AttributedReaction {
354
+ reaction_type: "love" | "author_heart" | "guest_heart" | "supporter_love"
355
+ author: string
356
+ }
357
+
351
358
  export interface WorkUpdateBody {
352
359
  name?: string | null
353
360
  description?: string | null
@@ -415,7 +422,7 @@ export interface Chapter {
415
422
  reacted?: true | null
416
423
  guest_reactions?: number | null
417
424
  insufficient_pledge?: boolean | null
418
- supporter_reactions: (SupporterReactions | null)[]
425
+ supporter_reactions: (AttributedReaction | null)[]
419
426
  }
420
427
 
421
428
  export interface ChapterCreateBody {
@@ -440,11 +447,6 @@ export interface ChapterStatistics {
440
447
  visits: string
441
448
  }
442
449
 
443
- export interface SupporterReactions {
444
- reaction_type: "heart"
445
- author: string
446
- }
447
-
448
450
  export interface ChapterUpdateBody {
449
451
  name?: (string | false) | null
450
452
  visibility?: ChapterVisibility | null
@@ -3212,6 +3214,18 @@ export interface Paths {
3212
3214
  search?: undefined
3213
3215
  response: void | ErrorResponse
3214
3216
  },
3217
+ "/reactions/work/{author_vanity}/{work_vanity}/add": {
3218
+ method: "post"
3219
+ body?: undefined
3220
+ search?: undefined
3221
+ response: void | ErrorResponse
3222
+ },
3223
+ "/reactions/work/{author_vanity}/{work_vanity}/delete": {
3224
+ method: "post"
3225
+ body?: undefined
3226
+ search?: undefined
3227
+ response: void | ErrorResponse
3228
+ },
3215
3229
  "/supporter/status": {
3216
3230
  method: "get"
3217
3231
  body?: undefined
package/openapi.json CHANGED
@@ -1869,6 +1869,25 @@
1869
1869
  "type": "null"
1870
1870
  }
1871
1871
  ]
1872
+ },
1873
+ "recommendation_reactions": {
1874
+ "type": "array",
1875
+ "items": {
1876
+ "$ref": "#/components/schema/AttributedReaction"
1877
+ }
1878
+ },
1879
+ "recommendation_reacted": {
1880
+ "anyOf": [
1881
+ {
1882
+ "type": "boolean",
1883
+ "enum": [
1884
+ true
1885
+ ]
1886
+ },
1887
+ {
1888
+ "type": "null"
1889
+ }
1890
+ ]
1872
1891
  }
1873
1892
  },
1874
1893
  "required": [
@@ -1885,7 +1904,8 @@
1885
1904
  "recently_updated",
1886
1905
  "root_comment",
1887
1906
  "synopsis",
1888
- "last_chapter"
1907
+ "last_chapter",
1908
+ "recommendation_reactions"
1889
1909
  ]
1890
1910
  },
1891
1911
  "WorkCreateBody": {
@@ -2195,6 +2215,27 @@
2195
2215
  "replyable"
2196
2216
  ]
2197
2217
  },
2218
+ "AttributedReaction": {
2219
+ "type": "object",
2220
+ "properties": {
2221
+ "reaction_type": {
2222
+ "type": "string",
2223
+ "enum": [
2224
+ "love",
2225
+ "author_heart",
2226
+ "guest_heart",
2227
+ "supporter_love"
2228
+ ]
2229
+ },
2230
+ "author": {
2231
+ "type": "string"
2232
+ }
2233
+ },
2234
+ "required": [
2235
+ "reaction_type",
2236
+ "author"
2237
+ ]
2238
+ },
2198
2239
  "WorkUpdateBody": {
2199
2240
  "type": "object",
2200
2241
  "properties": {
@@ -2676,7 +2717,7 @@
2676
2717
  "items": {
2677
2718
  "anyOf": [
2678
2719
  {
2679
- "$ref": "#/components/schema/SupporterReactions"
2720
+ "$ref": "#/components/schema/AttributedReaction"
2680
2721
  },
2681
2722
  {
2682
2723
  "type": "null"
@@ -2862,24 +2903,6 @@
2862
2903
  "visits"
2863
2904
  ]
2864
2905
  },
2865
- "SupporterReactions": {
2866
- "type": "object",
2867
- "properties": {
2868
- "reaction_type": {
2869
- "type": "string",
2870
- "enum": [
2871
- "heart"
2872
- ]
2873
- },
2874
- "author": {
2875
- "type": "string"
2876
- }
2877
- },
2878
- "required": [
2879
- "reaction_type",
2880
- "author"
2881
- ]
2882
- },
2883
2906
  "ChapterUpdateBody": {
2884
2907
  "type": "object",
2885
2908
  "properties": {
@@ -22563,6 +22586,64 @@
22563
22586
  }
22564
22587
  }
22565
22588
  },
22589
+ "/reactions/work/{author_vanity}/{work_vanity}/add": {
22590
+ "parameters": [
22591
+ {
22592
+ "name": "author_vanity",
22593
+ "in": "path"
22594
+ },
22595
+ {
22596
+ "name": "work_vanity",
22597
+ "in": "path"
22598
+ }
22599
+ ],
22600
+ "post": {
22601
+ "responses": {
22602
+ "200": {
22603
+ "description": "200 response"
22604
+ },
22605
+ "default": {
22606
+ "description": "Error",
22607
+ "content": {
22608
+ "application/json": {
22609
+ "schema": {
22610
+ "$ref": "#/components/schemas/ErrorResponse"
22611
+ }
22612
+ }
22613
+ }
22614
+ }
22615
+ }
22616
+ }
22617
+ },
22618
+ "/reactions/work/{author_vanity}/{work_vanity}/delete": {
22619
+ "parameters": [
22620
+ {
22621
+ "name": "author_vanity",
22622
+ "in": "path"
22623
+ },
22624
+ {
22625
+ "name": "work_vanity",
22626
+ "in": "path"
22627
+ }
22628
+ ],
22629
+ "post": {
22630
+ "responses": {
22631
+ "200": {
22632
+ "description": "200 response"
22633
+ },
22634
+ "default": {
22635
+ "description": "Error",
22636
+ "content": {
22637
+ "application/json": {
22638
+ "schema": {
22639
+ "$ref": "#/components/schemas/ErrorResponse"
22640
+ }
22641
+ }
22642
+ }
22643
+ }
22644
+ }
22645
+ }
22646
+ },
22566
22647
  "/supporter/status": {
22567
22648
  "get": {
22568
22649
  "responses": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1151",
3
+ "version": "1.0.1155",
4
4
  "types": "index.d.ts"
5
5
  }