api.fluff4.me 1.0.985 → 1.0.987

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 +19 -26
  2. package/openapi.json +93 -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,21 @@ 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
+ chapters_from_last?: number | null
157
+ chapters_from_furthest?: number | null
158
+ }
159
+
156
160
  export interface Role {
157
161
  name: string
158
162
  description?: string | null
@@ -275,20 +279,9 @@ export interface Work {
275
279
  license?: WorkLicense | null
276
280
  patreon?: PatreonRestriction | null
277
281
  lock_reason?: string | null
278
- frequency?:
279
- | {
280
- amount: number
281
- interval: number
282
- }
283
- | null
282
+ frequency?: Frequency | null
284
283
  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
284
+ bookmarks?: Bookmarks | null
292
285
  synopsis: MentionsBody
293
286
  custom_tags?: CustomTag[] | null
294
287
  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,95 @@
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
+ "chapters_from_last": {
771
+ "anyOf": [
772
+ {
773
+ "type": "number"
774
+ },
775
+ {
776
+ "type": "null"
777
+ }
778
+ ]
779
+ },
780
+ "chapters_from_furthest": {
781
+ "anyOf": [
782
+ {
783
+ "type": "number"
784
+ },
785
+ {
786
+ "type": "null"
787
+ }
788
+ ]
789
+ }
790
+ },
791
+ "required": [
792
+ "url_first"
793
+ ]
794
+ },
746
795
  "Role": {
747
796
  "type": "object",
748
797
  "properties": {
@@ -1504,19 +1553,7 @@
1504
1553
  "frequency": {
1505
1554
  "anyOf": [
1506
1555
  {
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
- ]
1556
+ "$ref": "#/components/schema/Frequency"
1520
1557
  },
1521
1558
  {
1522
1559
  "type": "null"
@@ -1529,35 +1566,7 @@
1529
1566
  "bookmarks": {
1530
1567
  "anyOf": [
1531
1568
  {
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
- ]
1569
+ "$ref": "#/components/schema/Bookmarks"
1561
1570
  },
1562
1571
  {
1563
1572
  "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.987",
4
4
  "types": "index.d.ts"
5
5
  }