api.fluff4.me 1.0.262 → 1.0.264
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 +7 -14
- package/openapi.json +28 -71
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -265,13 +265,15 @@ export interface RoleReorderBody {
|
|
|
265
265
|
roles: string[]
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
export interface
|
|
268
|
+
export interface CommentResolved {
|
|
269
269
|
comment_id: string
|
|
270
270
|
parent_id?: string | null
|
|
271
271
|
body?: TextBody | null
|
|
272
272
|
created_time?: string | null
|
|
273
273
|
edited_time?: string | null
|
|
274
274
|
author?: string | null
|
|
275
|
+
reactions?: number | null
|
|
276
|
+
reacted?: true | null
|
|
275
277
|
}
|
|
276
278
|
|
|
277
279
|
export interface CommentCreateBody {
|
|
@@ -284,19 +286,10 @@ export interface CommentUpdateBody {
|
|
|
284
286
|
}
|
|
285
287
|
|
|
286
288
|
export interface Comments {
|
|
287
|
-
comments:
|
|
289
|
+
comments: CommentResolved[]
|
|
288
290
|
authors: Author[]
|
|
289
291
|
}
|
|
290
292
|
|
|
291
|
-
export interface Comment {
|
|
292
|
-
comment_id: string
|
|
293
|
-
parent_id?: string | null
|
|
294
|
-
body?: string | null
|
|
295
|
-
created_time?: string | null
|
|
296
|
-
edited_time?: string | null
|
|
297
|
-
author?: string | null
|
|
298
|
-
}
|
|
299
|
-
|
|
300
293
|
export type Tiers = {
|
|
301
294
|
tier_name: string
|
|
302
295
|
amount: number
|
|
@@ -745,12 +738,12 @@ export interface Paths {
|
|
|
745
738
|
"/comment/add/{under}": {
|
|
746
739
|
method: "post"
|
|
747
740
|
body: CommentCreateBody
|
|
748
|
-
response: Response<
|
|
741
|
+
response: Response<CommentResolved> | ErrorResponse
|
|
749
742
|
},
|
|
750
743
|
"/comment/{id}/update": {
|
|
751
744
|
method: "post"
|
|
752
745
|
body: CommentUpdateBody
|
|
753
|
-
response: Response<
|
|
746
|
+
response: Response<CommentResolved> | ErrorResponse
|
|
754
747
|
},
|
|
755
748
|
"/comment/{id}/remove": {
|
|
756
749
|
method: "post"
|
|
@@ -760,7 +753,7 @@ export interface Paths {
|
|
|
760
753
|
"/comment/{id}": {
|
|
761
754
|
method: "get"
|
|
762
755
|
body?: undefined
|
|
763
|
-
response: Response<
|
|
756
|
+
response: Response<CommentResolved> | ErrorResponse
|
|
764
757
|
},
|
|
765
758
|
"/comment/{comment_id}/react/{type}": {
|
|
766
759
|
method: "post"
|
package/openapi.json
CHANGED
|
@@ -1442,7 +1442,7 @@
|
|
|
1442
1442
|
"roles"
|
|
1443
1443
|
]
|
|
1444
1444
|
},
|
|
1445
|
-
"
|
|
1445
|
+
"CommentResolved": {
|
|
1446
1446
|
"type": "object",
|
|
1447
1447
|
"properties": {
|
|
1448
1448
|
"comment_id": {
|
|
@@ -1501,6 +1501,29 @@
|
|
|
1501
1501
|
"type": "null"
|
|
1502
1502
|
}
|
|
1503
1503
|
]
|
|
1504
|
+
},
|
|
1505
|
+
"reactions": {
|
|
1506
|
+
"anyOf": [
|
|
1507
|
+
{
|
|
1508
|
+
"type": "number"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"type": "null"
|
|
1512
|
+
}
|
|
1513
|
+
]
|
|
1514
|
+
},
|
|
1515
|
+
"reacted": {
|
|
1516
|
+
"anyOf": [
|
|
1517
|
+
{
|
|
1518
|
+
"type": "boolean",
|
|
1519
|
+
"enum": [
|
|
1520
|
+
true
|
|
1521
|
+
]
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"type": "null"
|
|
1525
|
+
}
|
|
1526
|
+
]
|
|
1504
1527
|
}
|
|
1505
1528
|
},
|
|
1506
1529
|
"required": [
|
|
@@ -1547,7 +1570,7 @@
|
|
|
1547
1570
|
"comments": {
|
|
1548
1571
|
"type": "array",
|
|
1549
1572
|
"items": {
|
|
1550
|
-
"$ref": "#/components/schema/
|
|
1573
|
+
"$ref": "#/components/schema/CommentResolved"
|
|
1551
1574
|
}
|
|
1552
1575
|
},
|
|
1553
1576
|
"authors": {
|
|
@@ -1562,72 +1585,6 @@
|
|
|
1562
1585
|
"authors"
|
|
1563
1586
|
]
|
|
1564
1587
|
},
|
|
1565
|
-
"Comment": {
|
|
1566
|
-
"type": "object",
|
|
1567
|
-
"properties": {
|
|
1568
|
-
"comment_id": {
|
|
1569
|
-
"type": "string",
|
|
1570
|
-
"minLength": 36,
|
|
1571
|
-
"maxLength": 36
|
|
1572
|
-
},
|
|
1573
|
-
"parent_id": {
|
|
1574
|
-
"anyOf": [
|
|
1575
|
-
{
|
|
1576
|
-
"type": "string",
|
|
1577
|
-
"minLength": 36,
|
|
1578
|
-
"maxLength": 36
|
|
1579
|
-
},
|
|
1580
|
-
{
|
|
1581
|
-
"type": "null"
|
|
1582
|
-
}
|
|
1583
|
-
]
|
|
1584
|
-
},
|
|
1585
|
-
"body": {
|
|
1586
|
-
"anyOf": [
|
|
1587
|
-
{
|
|
1588
|
-
"type": "string",
|
|
1589
|
-
"maxLength": 1024
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
"type": "null"
|
|
1593
|
-
}
|
|
1594
|
-
]
|
|
1595
|
-
},
|
|
1596
|
-
"created_time": {
|
|
1597
|
-
"anyOf": [
|
|
1598
|
-
{
|
|
1599
|
-
"type": "string"
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
"type": "null"
|
|
1603
|
-
}
|
|
1604
|
-
]
|
|
1605
|
-
},
|
|
1606
|
-
"edited_time": {
|
|
1607
|
-
"anyOf": [
|
|
1608
|
-
{
|
|
1609
|
-
"type": "string"
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
"type": "null"
|
|
1613
|
-
}
|
|
1614
|
-
]
|
|
1615
|
-
},
|
|
1616
|
-
"author": {
|
|
1617
|
-
"anyOf": [
|
|
1618
|
-
{
|
|
1619
|
-
"type": "string"
|
|
1620
|
-
},
|
|
1621
|
-
{
|
|
1622
|
-
"type": "null"
|
|
1623
|
-
}
|
|
1624
|
-
]
|
|
1625
|
-
}
|
|
1626
|
-
},
|
|
1627
|
-
"required": [
|
|
1628
|
-
"comment_id"
|
|
1629
|
-
]
|
|
1630
|
-
},
|
|
1631
1588
|
"Tiers": {
|
|
1632
1589
|
"type": "array",
|
|
1633
1590
|
"items": {
|
|
@@ -4806,7 +4763,7 @@
|
|
|
4806
4763
|
"type": "object",
|
|
4807
4764
|
"properties": {
|
|
4808
4765
|
"data": {
|
|
4809
|
-
"$ref": "#/components/schemas/
|
|
4766
|
+
"$ref": "#/components/schemas/CommentResolved"
|
|
4810
4767
|
}
|
|
4811
4768
|
},
|
|
4812
4769
|
"required": [
|
|
@@ -4855,7 +4812,7 @@
|
|
|
4855
4812
|
"type": "object",
|
|
4856
4813
|
"properties": {
|
|
4857
4814
|
"data": {
|
|
4858
|
-
"$ref": "#/components/schemas/
|
|
4815
|
+
"$ref": "#/components/schemas/CommentResolved"
|
|
4859
4816
|
}
|
|
4860
4817
|
},
|
|
4861
4818
|
"required": [
|
|
@@ -4920,7 +4877,7 @@
|
|
|
4920
4877
|
"type": "object",
|
|
4921
4878
|
"properties": {
|
|
4922
4879
|
"data": {
|
|
4923
|
-
"$ref": "#/components/schemas/
|
|
4880
|
+
"$ref": "#/components/schemas/CommentResolved"
|
|
4924
4881
|
}
|
|
4925
4882
|
},
|
|
4926
4883
|
"required": [
|
package/package.json
CHANGED