api.fluff4.me 1.0.477 → 1.0.480

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 +17 -2
  2. package/openapi.json +43 -4
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -224,7 +224,12 @@ export interface Chapter {
224
224
  time_publish?: string | null
225
225
  author: string
226
226
  work: string
227
- tier?: PatreonCampaignTier | null
227
+ patreon?:
228
+ | {
229
+ campaign: PatreonCampaignLite
230
+ tier: PatreonCampaignTier
231
+ }
232
+ | null
228
233
  is_numbered: boolean
229
234
  body: string
230
235
  index: number
@@ -251,6 +256,11 @@ export interface ChapterCreateBody {
251
256
  tier_id?: string | null
252
257
  }
253
258
 
259
+ export interface PatreonCampaignLite {
260
+ display_name: string
261
+ url: string
262
+ }
263
+
254
264
  export interface ChapterUpdateBody {
255
265
  name?: string | null
256
266
  visibility?: "Private" | "Public" | "Patreon" | null
@@ -274,7 +284,12 @@ export interface ChapterLite {
274
284
  time_publish?: string | null
275
285
  author: string
276
286
  work: string
277
- tier?: PatreonCampaignTier | null
287
+ patreon?:
288
+ | {
289
+ campaign: PatreonCampaignLite
290
+ tier: PatreonCampaignTier
291
+ }
292
+ | null
278
293
  is_numbered: boolean
279
294
  }
280
295
 
package/openapi.json CHANGED
@@ -1248,10 +1248,22 @@
1248
1248
  "work": {
1249
1249
  "type": "string"
1250
1250
  },
1251
- "tier": {
1251
+ "patreon": {
1252
1252
  "anyOf": [
1253
1253
  {
1254
- "$ref": "#/components/schema/PatreonCampaignTier"
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
+ ]
1255
1267
  },
1256
1268
  {
1257
1269
  "type": "null"
@@ -1478,6 +1490,21 @@
1478
1490
  "body"
1479
1491
  ]
1480
1492
  },
1493
+ "PatreonCampaignLite": {
1494
+ "type": "object",
1495
+ "properties": {
1496
+ "display_name": {
1497
+ "type": "string"
1498
+ },
1499
+ "url": {
1500
+ "type": "string"
1501
+ }
1502
+ },
1503
+ "required": [
1504
+ "display_name",
1505
+ "url"
1506
+ ]
1507
+ },
1481
1508
  "ChapterUpdateBody": {
1482
1509
  "type": "object",
1483
1510
  "properties": {
@@ -1650,10 +1677,22 @@
1650
1677
  "work": {
1651
1678
  "type": "string"
1652
1679
  },
1653
- "tier": {
1680
+ "patreon": {
1654
1681
  "anyOf": [
1655
1682
  {
1656
- "$ref": "#/components/schema/PatreonCampaignTier"
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
+ ]
1657
1696
  },
1658
1697
  {
1659
1698
  "type": "null"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.477",
3
+ "version": "1.0.480",
4
4
  "types": "index.d.ts"
5
5
  }