api.fluff4.me 1.0.985 → 1.0.986

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 -26
  2. package/openapi.json +73 -84
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -118,20 +118,9 @@ export interface WorkMetadata {
118
118
  license?: WorkLicense | null
119
119
  patreon?: PatreonRestriction | null
120
120
  lock_reason?: string | null
121
- frequency?:
122
- | {
123
- amount: number
124
- interval: number
125
- }
126
- | null
121
+ frequency?: Frequency | null
127
122
  recently_updated: boolean
128
- bookmarks?:
129
- | {
130
- url_read_next: string
131
- url_read_last?: string | null
132
- url_read_furthest?: string | null
133
- }
134
- | null
123
+ bookmarks?: Bookmarks | null
135
124
  }
136
125
 
137
126
  export type WorkStatus = "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
@@ -153,6 +142,19 @@ export interface PatreonCampaignMetadata {
153
142
  url: string
154
143
  }
155
144
 
145
+ export interface Frequency {
146
+ amount: number
147
+ interval: number
148
+ }
149
+
150
+ export interface Bookmarks {
151
+ url_first: string
152
+ url_next?: string | null
153
+ url_read_furthest?: string | null
154
+ url_read_last?: string | null
155
+ read_completed?: true | null
156
+ }
157
+
156
158
  export interface Role {
157
159
  name: string
158
160
  description?: string | null
@@ -275,20 +277,9 @@ export interface Work {
275
277
  license?: WorkLicense | null
276
278
  patreon?: PatreonRestriction | null
277
279
  lock_reason?: string | null
278
- frequency?:
279
- | {
280
- amount: number
281
- interval: number
282
- }
283
- | null
280
+ frequency?: Frequency | null
284
281
  recently_updated: boolean
285
- bookmarks?:
286
- | {
287
- url_read_next: string
288
- url_read_last?: string | null
289
- url_read_furthest?: string | null
290
- }
291
- | null
282
+ bookmarks?: Bookmarks | null
292
283
  synopsis: MentionsBody
293
284
  custom_tags?: CustomTag[] | null
294
285
  last_chapter: string
package/openapi.json CHANGED
@@ -603,19 +603,7 @@
603
603
  "frequency": {
604
604
  "anyOf": [
605
605
  {
606
- "type": "object",
607
- "properties": {
608
- "amount": {
609
- "type": "number"
610
- },
611
- "interval": {
612
- "type": "number"
613
- }
614
- },
615
- "required": [
616
- "amount",
617
- "interval"
618
- ]
606
+ "$ref": "#/components/schema/Frequency"
619
607
  },
620
608
  {
621
609
  "type": "null"
@@ -628,35 +616,7 @@
628
616
  "bookmarks": {
629
617
  "anyOf": [
630
618
  {
631
- "type": "object",
632
- "properties": {
633
- "url_read_next": {
634
- "type": "string"
635
- },
636
- "url_read_last": {
637
- "anyOf": [
638
- {
639
- "type": "string"
640
- },
641
- {
642
- "type": "null"
643
- }
644
- ]
645
- },
646
- "url_read_furthest": {
647
- "anyOf": [
648
- {
649
- "type": "string"
650
- },
651
- {
652
- "type": "null"
653
- }
654
- ]
655
- }
656
- },
657
- "required": [
658
- "url_read_next"
659
- ]
619
+ "$ref": "#/components/schema/Bookmarks"
660
620
  },
661
621
  {
662
622
  "type": "null"
@@ -743,6 +703,75 @@
743
703
  "url"
744
704
  ]
745
705
  },
706
+ "Frequency": {
707
+ "type": "object",
708
+ "properties": {
709
+ "amount": {
710
+ "type": "number"
711
+ },
712
+ "interval": {
713
+ "type": "number"
714
+ }
715
+ },
716
+ "required": [
717
+ "amount",
718
+ "interval"
719
+ ]
720
+ },
721
+ "Bookmarks": {
722
+ "type": "object",
723
+ "properties": {
724
+ "url_first": {
725
+ "type": "string"
726
+ },
727
+ "url_next": {
728
+ "anyOf": [
729
+ {
730
+ "type": "string"
731
+ },
732
+ {
733
+ "type": "null"
734
+ }
735
+ ]
736
+ },
737
+ "url_read_furthest": {
738
+ "anyOf": [
739
+ {
740
+ "type": "string"
741
+ },
742
+ {
743
+ "type": "null"
744
+ }
745
+ ]
746
+ },
747
+ "url_read_last": {
748
+ "anyOf": [
749
+ {
750
+ "type": "string"
751
+ },
752
+ {
753
+ "type": "null"
754
+ }
755
+ ]
756
+ },
757
+ "read_completed": {
758
+ "anyOf": [
759
+ {
760
+ "type": "boolean",
761
+ "enum": [
762
+ true
763
+ ]
764
+ },
765
+ {
766
+ "type": "null"
767
+ }
768
+ ]
769
+ }
770
+ },
771
+ "required": [
772
+ "url_first"
773
+ ]
774
+ },
746
775
  "Role": {
747
776
  "type": "object",
748
777
  "properties": {
@@ -1504,19 +1533,7 @@
1504
1533
  "frequency": {
1505
1534
  "anyOf": [
1506
1535
  {
1507
- "type": "object",
1508
- "properties": {
1509
- "amount": {
1510
- "type": "number"
1511
- },
1512
- "interval": {
1513
- "type": "number"
1514
- }
1515
- },
1516
- "required": [
1517
- "amount",
1518
- "interval"
1519
- ]
1536
+ "$ref": "#/components/schema/Frequency"
1520
1537
  },
1521
1538
  {
1522
1539
  "type": "null"
@@ -1529,35 +1546,7 @@
1529
1546
  "bookmarks": {
1530
1547
  "anyOf": [
1531
1548
  {
1532
- "type": "object",
1533
- "properties": {
1534
- "url_read_next": {
1535
- "type": "string"
1536
- },
1537
- "url_read_last": {
1538
- "anyOf": [
1539
- {
1540
- "type": "string"
1541
- },
1542
- {
1543
- "type": "null"
1544
- }
1545
- ]
1546
- },
1547
- "url_read_furthest": {
1548
- "anyOf": [
1549
- {
1550
- "type": "string"
1551
- },
1552
- {
1553
- "type": "null"
1554
- }
1555
- ]
1556
- }
1557
- },
1558
- "required": [
1559
- "url_read_next"
1560
- ]
1549
+ "$ref": "#/components/schema/Bookmarks"
1561
1550
  },
1562
1551
  {
1563
1552
  "type": "null"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.985",
3
+ "version": "1.0.986",
4
4
  "types": "index.d.ts"
5
5
  }