api.fluff4.me 1.0.330 → 1.0.332

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 +18 -16
  2. package/openapi.json +125 -99
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export interface AuthorFull {
38
38
  pronouns?: string | null
39
39
  description: TextBody
40
40
  patreon_tiers?: Tier[] | null
41
+ works?: Work[] | null
41
42
  }
42
43
 
43
44
  export interface TextBody {
@@ -60,6 +61,22 @@ export interface Tier {
60
61
  amount: number
61
62
  }
62
63
 
64
+ export interface Work {
65
+ name: string
66
+ description: string
67
+ vanity: string
68
+ author: string
69
+ status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
70
+ visibility: "Private" | "Public"
71
+ chapter_count_public: number
72
+ chapter_count?: number | null
73
+ word_count: number
74
+ view_count: string
75
+ time_publish?: string | null
76
+ time_last_update?: string | null
77
+ global_tags?: string[] | null
78
+ }
79
+
63
80
  export interface AuthDeleteBody {
64
81
  id: string
65
82
  }
@@ -91,6 +108,7 @@ export interface AuthorAuthorised {
91
108
  pronouns?: string | null
92
109
  description: TextBody
93
110
  patreon_tiers?: Tier[] | null
111
+ works?: Work[] | null
94
112
  authorisations?: Authorisation[] | null
95
113
  }
96
114
 
@@ -244,22 +262,6 @@ export interface ChapterLite {
244
262
 
245
263
  export type Works = Work[]
246
264
 
247
- export interface Work {
248
- name: string
249
- description: string
250
- vanity: string
251
- author: string
252
- status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
253
- visibility: "Private" | "Public"
254
- chapter_count_public: number
255
- chapter_count?: number | null
256
- word_count: number
257
- view_count: string
258
- time_publish?: string | null
259
- time_last_update?: string | null
260
- global_tags?: string[] | null
261
- }
262
-
263
265
  export interface Follow {
264
266
  state?: string | null
265
267
  updated: string
package/openapi.json CHANGED
@@ -137,6 +137,19 @@
137
137
  "type": "null"
138
138
  }
139
139
  ]
140
+ },
141
+ "works": {
142
+ "anyOf": [
143
+ {
144
+ "type": "array",
145
+ "items": {
146
+ "$ref": "#/components/schema/Work"
147
+ }
148
+ },
149
+ {
150
+ "type": "null"
151
+ }
152
+ ]
140
153
  }
141
154
  },
142
155
  "required": [
@@ -233,6 +246,105 @@
233
246
  "amount"
234
247
  ]
235
248
  },
249
+ "Work": {
250
+ "type": "object",
251
+ "properties": {
252
+ "name": {
253
+ "type": "string",
254
+ "maxLength": 256
255
+ },
256
+ "description": {
257
+ "type": "string",
258
+ "maxLength": 128
259
+ },
260
+ "vanity": {
261
+ "type": "string",
262
+ "maxLength": 32
263
+ },
264
+ "author": {
265
+ "type": "string"
266
+ },
267
+ "status": {
268
+ "type": "string",
269
+ "enum": [
270
+ "Cancelled",
271
+ "Hiatus",
272
+ "Ongoing",
273
+ "Complete"
274
+ ]
275
+ },
276
+ "visibility": {
277
+ "type": "string",
278
+ "enum": [
279
+ "Private",
280
+ "Public"
281
+ ]
282
+ },
283
+ "chapter_count_public": {
284
+ "type": "number"
285
+ },
286
+ "chapter_count": {
287
+ "anyOf": [
288
+ {
289
+ "type": "number"
290
+ },
291
+ {
292
+ "type": "null"
293
+ }
294
+ ]
295
+ },
296
+ "word_count": {
297
+ "type": "number"
298
+ },
299
+ "view_count": {
300
+ "type": "string"
301
+ },
302
+ "time_publish": {
303
+ "anyOf": [
304
+ {
305
+ "type": "string"
306
+ },
307
+ {
308
+ "type": "null"
309
+ }
310
+ ]
311
+ },
312
+ "time_last_update": {
313
+ "anyOf": [
314
+ {
315
+ "type": "string"
316
+ },
317
+ {
318
+ "type": "null"
319
+ }
320
+ ]
321
+ },
322
+ "global_tags": {
323
+ "anyOf": [
324
+ {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string"
328
+ }
329
+ },
330
+ {
331
+ "type": "null"
332
+ }
333
+ ]
334
+ }
335
+ },
336
+ "required": [
337
+ "name",
338
+ "description",
339
+ "vanity",
340
+ "author",
341
+ "status",
342
+ "visibility",
343
+ "chapter_count_public",
344
+ "word_count",
345
+ "view_count"
346
+ ]
347
+ },
236
348
  "AuthDeleteBody": {
237
349
  "type": "object",
238
350
  "properties": {
@@ -362,6 +474,19 @@
362
474
  }
363
475
  ]
364
476
  },
477
+ "works": {
478
+ "anyOf": [
479
+ {
480
+ "type": "array",
481
+ "items": {
482
+ "$ref": "#/components/schema/Work"
483
+ }
484
+ },
485
+ {
486
+ "type": "null"
487
+ }
488
+ ]
489
+ },
365
490
  "authorisations": {
366
491
  "anyOf": [
367
492
  {
@@ -1454,105 +1579,6 @@
1454
1579
  "$ref": "#/components/schema/Work"
1455
1580
  }
1456
1581
  },
1457
- "Work": {
1458
- "type": "object",
1459
- "properties": {
1460
- "name": {
1461
- "type": "string",
1462
- "maxLength": 256
1463
- },
1464
- "description": {
1465
- "type": "string",
1466
- "maxLength": 128
1467
- },
1468
- "vanity": {
1469
- "type": "string",
1470
- "maxLength": 32
1471
- },
1472
- "author": {
1473
- "type": "string"
1474
- },
1475
- "status": {
1476
- "type": "string",
1477
- "enum": [
1478
- "Cancelled",
1479
- "Hiatus",
1480
- "Ongoing",
1481
- "Complete"
1482
- ]
1483
- },
1484
- "visibility": {
1485
- "type": "string",
1486
- "enum": [
1487
- "Private",
1488
- "Public"
1489
- ]
1490
- },
1491
- "chapter_count_public": {
1492
- "type": "number"
1493
- },
1494
- "chapter_count": {
1495
- "anyOf": [
1496
- {
1497
- "type": "number"
1498
- },
1499
- {
1500
- "type": "null"
1501
- }
1502
- ]
1503
- },
1504
- "word_count": {
1505
- "type": "number"
1506
- },
1507
- "view_count": {
1508
- "type": "string"
1509
- },
1510
- "time_publish": {
1511
- "anyOf": [
1512
- {
1513
- "type": "string"
1514
- },
1515
- {
1516
- "type": "null"
1517
- }
1518
- ]
1519
- },
1520
- "time_last_update": {
1521
- "anyOf": [
1522
- {
1523
- "type": "string"
1524
- },
1525
- {
1526
- "type": "null"
1527
- }
1528
- ]
1529
- },
1530
- "global_tags": {
1531
- "anyOf": [
1532
- {
1533
- "type": "array",
1534
- "items": {
1535
- "type": "string"
1536
- }
1537
- },
1538
- {
1539
- "type": "null"
1540
- }
1541
- ]
1542
- }
1543
- },
1544
- "required": [
1545
- "name",
1546
- "description",
1547
- "vanity",
1548
- "author",
1549
- "status",
1550
- "visibility",
1551
- "chapter_count_public",
1552
- "word_count",
1553
- "view_count"
1554
- ]
1555
- },
1556
1582
  "Follow": {
1557
1583
  "type": "object",
1558
1584
  "properties": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.330",
3
+ "version": "1.0.332",
4
4
  "types": "index.d.ts"
5
5
  }