api.fluff4.me 1.0.464 → 1.0.465

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 +27 -1
  2. package/openapi.json +191 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -249,6 +249,32 @@ export interface ChapterCreateBody {
249
249
  custom_tags?: string[] | null
250
250
  }
251
251
 
252
+ export interface ChapterUpdate {
253
+ url: string
254
+ index_public?: number | null
255
+ name: string
256
+ visibility: "Private" | "Public" | "Patreon"
257
+ word_count: number
258
+ view_count: string
259
+ time_last_update?: string | null
260
+ time_publish?: string | null
261
+ author: string
262
+ work: string
263
+ tier?: PatreonCampaignTier | null
264
+ is_numbered: boolean
265
+ body: string
266
+ index: number
267
+ notes_before?: string | null
268
+ notes_after?: string | null
269
+ mentions?: Author[] | null
270
+ root_comment?: string | null
271
+ global_tags?: string[] | null
272
+ custom_tags?: CustomTag[] | null
273
+ reactions?: number | null
274
+ reacted?: true | null
275
+ old_url: string
276
+ }
277
+
252
278
  export interface ChapterUpdateBody {
253
279
  name?: string | null
254
280
  visibility?: "Private" | "Public" | "Patreon" | null
@@ -730,7 +756,7 @@ export interface Paths {
730
756
  method: "post"
731
757
  body: ChapterUpdateBody
732
758
  search?: undefined
733
- response: Response<Chapter> | ErrorResponse
759
+ response: Response<ChapterUpdate> | ErrorResponse
734
760
  },
735
761
  "/work/{author}/{work}/chapter/{url}/delete": {
736
762
  method: "post"
package/openapi.json CHANGED
@@ -1458,6 +1458,196 @@
1458
1458
  "body"
1459
1459
  ]
1460
1460
  },
1461
+ "ChapterUpdate": {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "url": {
1465
+ "type": "string"
1466
+ },
1467
+ "index_public": {
1468
+ "anyOf": [
1469
+ {
1470
+ "type": "number"
1471
+ },
1472
+ {
1473
+ "type": "null"
1474
+ }
1475
+ ]
1476
+ },
1477
+ "name": {
1478
+ "type": "string",
1479
+ "minLength": 1,
1480
+ "maxLength": 256
1481
+ },
1482
+ "visibility": {
1483
+ "type": "string",
1484
+ "enum": [
1485
+ "Private",
1486
+ "Public",
1487
+ "Patreon"
1488
+ ]
1489
+ },
1490
+ "word_count": {
1491
+ "type": "number"
1492
+ },
1493
+ "view_count": {
1494
+ "type": "string"
1495
+ },
1496
+ "time_last_update": {
1497
+ "anyOf": [
1498
+ {
1499
+ "type": "string"
1500
+ },
1501
+ {
1502
+ "type": "null"
1503
+ }
1504
+ ]
1505
+ },
1506
+ "time_publish": {
1507
+ "anyOf": [
1508
+ {
1509
+ "type": "string"
1510
+ },
1511
+ {
1512
+ "type": "null"
1513
+ }
1514
+ ]
1515
+ },
1516
+ "author": {
1517
+ "type": "string"
1518
+ },
1519
+ "work": {
1520
+ "type": "string"
1521
+ },
1522
+ "tier": {
1523
+ "anyOf": [
1524
+ {
1525
+ "$ref": "#/components/schema/PatreonCampaignTier"
1526
+ },
1527
+ {
1528
+ "type": "null"
1529
+ }
1530
+ ]
1531
+ },
1532
+ "is_numbered": {
1533
+ "type": "boolean"
1534
+ },
1535
+ "body": {
1536
+ "type": "string"
1537
+ },
1538
+ "index": {
1539
+ "type": "number"
1540
+ },
1541
+ "notes_before": {
1542
+ "anyOf": [
1543
+ {
1544
+ "type": "string"
1545
+ },
1546
+ {
1547
+ "type": "null"
1548
+ }
1549
+ ]
1550
+ },
1551
+ "notes_after": {
1552
+ "anyOf": [
1553
+ {
1554
+ "type": "string"
1555
+ },
1556
+ {
1557
+ "type": "null"
1558
+ }
1559
+ ]
1560
+ },
1561
+ "mentions": {
1562
+ "anyOf": [
1563
+ {
1564
+ "type": "array",
1565
+ "items": {
1566
+ "$ref": "#/components/schema/Author"
1567
+ }
1568
+ },
1569
+ {
1570
+ "type": "null"
1571
+ }
1572
+ ]
1573
+ },
1574
+ "root_comment": {
1575
+ "anyOf": [
1576
+ {
1577
+ "type": "string"
1578
+ },
1579
+ {
1580
+ "type": "null"
1581
+ }
1582
+ ]
1583
+ },
1584
+ "global_tags": {
1585
+ "anyOf": [
1586
+ {
1587
+ "type": "array",
1588
+ "items": {
1589
+ "type": "string"
1590
+ }
1591
+ },
1592
+ {
1593
+ "type": "null"
1594
+ }
1595
+ ]
1596
+ },
1597
+ "custom_tags": {
1598
+ "anyOf": [
1599
+ {
1600
+ "type": "array",
1601
+ "items": {
1602
+ "$ref": "#/components/schema/CustomTag"
1603
+ }
1604
+ },
1605
+ {
1606
+ "type": "null"
1607
+ }
1608
+ ]
1609
+ },
1610
+ "reactions": {
1611
+ "anyOf": [
1612
+ {
1613
+ "type": "number"
1614
+ },
1615
+ {
1616
+ "type": "null"
1617
+ }
1618
+ ]
1619
+ },
1620
+ "reacted": {
1621
+ "anyOf": [
1622
+ {
1623
+ "type": "boolean",
1624
+ "enum": [
1625
+ true
1626
+ ]
1627
+ },
1628
+ {
1629
+ "type": "null"
1630
+ }
1631
+ ]
1632
+ },
1633
+ "old_url": {
1634
+ "type": "string"
1635
+ }
1636
+ },
1637
+ "required": [
1638
+ "url",
1639
+ "name",
1640
+ "visibility",
1641
+ "word_count",
1642
+ "view_count",
1643
+ "author",
1644
+ "work",
1645
+ "is_numbered",
1646
+ "body",
1647
+ "index",
1648
+ "old_url"
1649
+ ]
1650
+ },
1461
1651
  "ChapterUpdateBody": {
1462
1652
  "type": "object",
1463
1653
  "properties": {
@@ -4037,7 +4227,7 @@
4037
4227
  "type": "object",
4038
4228
  "properties": {
4039
4229
  "data": {
4040
- "$ref": "#/components/schemas/Chapter"
4230
+ "$ref": "#/components/schemas/ChapterUpdate"
4041
4231
  }
4042
4232
  },
4043
4233
  "required": [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.464",
3
+ "version": "1.0.465",
4
4
  "types": "index.d.ts"
5
5
  }