api.fluff4.me 1.0.495 → 1.0.497

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 +7 -12
  2. package/openapi.json +17 -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
@@ -256,6 +251,11 @@ export interface ChapterCreateBody {
256
251
  tier_id?: string | null
257
252
  }
258
253
 
254
+ export interface ChapterPatreon {
255
+ campaign: PatreonCampaignLite
256
+ tier: PatreonCampaignTier
257
+ }
258
+
259
259
  export interface PatreonCampaignLite {
260
260
  display_name: string
261
261
  url: string
@@ -284,12 +284,7 @@ export interface ChapterLite {
284
284
  time_publish?: string | null
285
285
  author: string
286
286
  work: string
287
- patreon?:
288
- | {
289
- campaign: PatreonCampaignLite
290
- tier: PatreonCampaignTier
291
- }
292
- | null
287
+ patreon?: ChapterPatreon | null
293
288
  is_numbered: boolean
294
289
  }
295
290
 
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"
@@ -1490,6 +1478,21 @@
1490
1478
  "body"
1491
1479
  ]
1492
1480
  },
1481
+ "ChapterPatreon": {
1482
+ "type": "object",
1483
+ "properties": {
1484
+ "campaign": {
1485
+ "$ref": "#/components/schema/PatreonCampaignLite"
1486
+ },
1487
+ "tier": {
1488
+ "$ref": "#/components/schema/PatreonCampaignTier"
1489
+ }
1490
+ },
1491
+ "required": [
1492
+ "campaign",
1493
+ "tier"
1494
+ ]
1495
+ },
1493
1496
  "PatreonCampaignLite": {
1494
1497
  "type": "object",
1495
1498
  "properties": {
@@ -1680,19 +1683,7 @@
1680
1683
  "patreon": {
1681
1684
  "anyOf": [
1682
1685
  {
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
- ]
1686
+ "$ref": "#/components/schema/ChapterPatreon"
1696
1687
  },
1697
1688
  {
1698
1689
  "type": "null"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.495",
3
+ "version": "1.0.497",
4
4
  "types": "index.d.ts"
5
5
  }