api.fluff4.me 1.0.465 → 1.0.467

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 +2 -27
  2. package/openapi.json +3 -183
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -247,32 +247,7 @@ export interface ChapterCreateBody {
247
247
  notes_after?: string | null
248
248
  global_tags?: string[] | null
249
249
  custom_tags?: string[] | null
250
- }
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
250
+ tier_id?: string | null
276
251
  }
277
252
 
278
253
  export interface ChapterUpdateBody {
@@ -756,7 +731,7 @@ export interface Paths {
756
731
  method: "post"
757
732
  body: ChapterUpdateBody
758
733
  search?: undefined
759
- response: Response<ChapterUpdate> | ErrorResponse
734
+ response: Response<Chapter> | ErrorResponse
760
735
  },
761
736
  "/work/{author}/{work}/chapter/{url}/delete": {
762
737
  method: "post"
package/openapi.json CHANGED
@@ -1450,128 +1450,8 @@
1450
1450
  "type": "null"
1451
1451
  }
1452
1452
  ]
1453
- }
1454
- },
1455
- "required": [
1456
- "name",
1457
- "visibility",
1458
- "body"
1459
- ]
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
1453
  },
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": {
1454
+ "tier_id": {
1575
1455
  "anyOf": [
1576
1456
  {
1577
1457
  "type": "string"
@@ -1580,72 +1460,12 @@
1580
1460
  "type": "null"
1581
1461
  }
1582
1462
  ]
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
1463
  }
1636
1464
  },
1637
1465
  "required": [
1638
- "url",
1639
1466
  "name",
1640
1467
  "visibility",
1641
- "word_count",
1642
- "view_count",
1643
- "author",
1644
- "work",
1645
- "is_numbered",
1646
- "body",
1647
- "index",
1648
- "old_url"
1468
+ "body"
1649
1469
  ]
1650
1470
  },
1651
1471
  "ChapterUpdateBody": {
@@ -4227,7 +4047,7 @@
4227
4047
  "type": "object",
4228
4048
  "properties": {
4229
4049
  "data": {
4230
- "$ref": "#/components/schemas/ChapterUpdate"
4050
+ "$ref": "#/components/schemas/Chapter"
4231
4051
  }
4232
4052
  },
4233
4053
  "required": [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.465",
3
+ "version": "1.0.467",
4
4
  "types": "index.d.ts"
5
5
  }