api.fluff4.me 1.0.496 → 1.0.499

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 +10 -12
  2. package/openapi.json +50 -26
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -224,12 +224,7 @@ export interface Chapter {
224
224
  time_publish?: string | null
225
225
  author: string
226
226
  work: string
227
- patreon?:
228
- | {
229
- campaign: PatreonCampaignLite
230
- tier: PatreonCampaignTier
231
- }
232
- | null
227
+ patreon?: ChapterPatreon | null
233
228
  is_numbered: boolean
234
229
  body: string
235
230
  index: number
@@ -254,6 +249,13 @@ export interface ChapterCreateBody {
254
249
  global_tags?: string[] | null
255
250
  custom_tags?: string[] | null
256
251
  tier_id?: string | null
252
+ tier_ids?: string[] | null
253
+ }
254
+
255
+ export interface ChapterPatreon {
256
+ campaign: PatreonCampaignLite
257
+ tier: PatreonCampaignTier
258
+ tiers: PatreonCampaignTier[]
257
259
  }
258
260
 
259
261
  export interface PatreonCampaignLite {
@@ -271,6 +273,7 @@ export interface ChapterUpdateBody {
271
273
  global_tags?: string[] | null
272
274
  custom_tags?: string[] | null
273
275
  tier_id?: string | null
276
+ tier_ids?: string[] | null
274
277
  }
275
278
 
276
279
  export interface ChapterLite {
@@ -284,12 +287,7 @@ export interface ChapterLite {
284
287
  time_publish?: string | null
285
288
  author: string
286
289
  work: string
287
- patreon?:
288
- | {
289
- campaign: PatreonCampaignLite
290
- tier: PatreonCampaignTier
291
- }
292
- | null
290
+ patreon?: ChapterPatreon | null
293
291
  is_numbered: boolean
294
292
  }
295
293
 
package/openapi.json CHANGED
@@ -1251,19 +1251,7 @@
1251
1251
  "patreon": {
1252
1252
  "anyOf": [
1253
1253
  {
1254
- "type": "object",
1255
- "properties": {
1256
- "campaign": {
1257
- "$ref": "#/components/schema/PatreonCampaignLite"
1258
- },
1259
- "tier": {
1260
- "$ref": "#/components/schema/PatreonCampaignTier"
1261
- }
1262
- },
1263
- "required": [
1264
- "campaign",
1265
- "tier"
1266
- ]
1254
+ "$ref": "#/components/schema/ChapterPatreon"
1267
1255
  },
1268
1256
  {
1269
1257
  "type": "null"
@@ -1482,6 +1470,19 @@
1482
1470
  "type": "null"
1483
1471
  }
1484
1472
  ]
1473
+ },
1474
+ "tier_ids": {
1475
+ "anyOf": [
1476
+ {
1477
+ "type": "array",
1478
+ "items": {
1479
+ "type": "string"
1480
+ }
1481
+ },
1482
+ {
1483
+ "type": "null"
1484
+ }
1485
+ ]
1485
1486
  }
1486
1487
  },
1487
1488
  "required": [
@@ -1490,6 +1491,28 @@
1490
1491
  "body"
1491
1492
  ]
1492
1493
  },
1494
+ "ChapterPatreon": {
1495
+ "type": "object",
1496
+ "properties": {
1497
+ "campaign": {
1498
+ "$ref": "#/components/schema/PatreonCampaignLite"
1499
+ },
1500
+ "tier": {
1501
+ "$ref": "#/components/schema/PatreonCampaignTier"
1502
+ },
1503
+ "tiers": {
1504
+ "type": "array",
1505
+ "items": {
1506
+ "$ref": "#/components/schema/PatreonCampaignTier"
1507
+ }
1508
+ }
1509
+ },
1510
+ "required": [
1511
+ "campaign",
1512
+ "tier",
1513
+ "tiers"
1514
+ ]
1515
+ },
1493
1516
  "PatreonCampaignLite": {
1494
1517
  "type": "object",
1495
1518
  "properties": {
@@ -1613,6 +1636,19 @@
1613
1636
  "type": "null"
1614
1637
  }
1615
1638
  ]
1639
+ },
1640
+ "tier_ids": {
1641
+ "anyOf": [
1642
+ {
1643
+ "type": "array",
1644
+ "items": {
1645
+ "type": "string"
1646
+ }
1647
+ },
1648
+ {
1649
+ "type": "null"
1650
+ }
1651
+ ]
1616
1652
  }
1617
1653
  }
1618
1654
  },
@@ -1680,19 +1716,7 @@
1680
1716
  "patreon": {
1681
1717
  "anyOf": [
1682
1718
  {
1683
- "type": "object",
1684
- "properties": {
1685
- "campaign": {
1686
- "$ref": "#/components/schema/PatreonCampaignLite"
1687
- },
1688
- "tier": {
1689
- "$ref": "#/components/schema/PatreonCampaignTier"
1690
- }
1691
- },
1692
- "required": [
1693
- "campaign",
1694
- "tier"
1695
- ]
1719
+ "$ref": "#/components/schema/ChapterPatreon"
1696
1720
  },
1697
1721
  {
1698
1722
  "type": "null"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.496",
3
+ "version": "1.0.499",
4
4
  "types": "index.d.ts"
5
5
  }