api.fluff4.me 1.0.944 → 1.0.945

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 +13 -0
  2. package/openapi.json +77 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -945,6 +945,7 @@ export interface Shelf {
945
945
  description?: TextBody | null
946
946
  shelf_id: string
947
947
  following_only: boolean
948
+ shelf_order: number
948
949
  filters: ShelfFilters
949
950
  }
950
951
 
@@ -964,6 +965,12 @@ export interface ShelfDetails {
964
965
  description?: TextBody | null
965
966
  shelf_id: string
966
967
  following_only: boolean
968
+ shelf_order: number
969
+ }
970
+
971
+ export interface ShelfRelativePosition {
972
+ relative_to: string
973
+ position: "before" | "after"
967
974
  }
968
975
 
969
976
  export interface Shelves {
@@ -2063,6 +2070,12 @@ export interface Paths {
2063
2070
  search?: undefined
2064
2071
  response: void | ErrorResponse
2065
2072
  },
2073
+ "/shelf/{id}/reorder": {
2074
+ method: "post"
2075
+ body: ShelfRelativePosition
2076
+ search?: undefined
2077
+ response: Response<ShelfDetails> | ErrorResponse
2078
+ },
2066
2079
  "/shelf/delete/{id}": {
2067
2080
  method: "post"
2068
2081
  body?: undefined
package/openapi.json CHANGED
@@ -5410,6 +5410,9 @@
5410
5410
  "following_only": {
5411
5411
  "type": "boolean"
5412
5412
  },
5413
+ "shelf_order": {
5414
+ "type": "number"
5415
+ },
5413
5416
  "filters": {
5414
5417
  "$ref": "#/components/schema/ShelfFilters"
5415
5418
  }
@@ -5417,6 +5420,7 @@
5417
5420
  "required": [
5418
5421
  "shelf_id",
5419
5422
  "following_only",
5423
+ "shelf_order",
5420
5424
  "filters"
5421
5425
  ]
5422
5426
  },
@@ -5511,11 +5515,34 @@
5511
5515
  },
5512
5516
  "following_only": {
5513
5517
  "type": "boolean"
5518
+ },
5519
+ "shelf_order": {
5520
+ "type": "number"
5514
5521
  }
5515
5522
  },
5516
5523
  "required": [
5517
5524
  "shelf_id",
5518
- "following_only"
5525
+ "following_only",
5526
+ "shelf_order"
5527
+ ]
5528
+ },
5529
+ "ShelfRelativePosition": {
5530
+ "type": "object",
5531
+ "properties": {
5532
+ "relative_to": {
5533
+ "type": "string"
5534
+ },
5535
+ "position": {
5536
+ "type": "string",
5537
+ "enum": [
5538
+ "before",
5539
+ "after"
5540
+ ]
5541
+ }
5542
+ },
5543
+ "required": [
5544
+ "relative_to",
5545
+ "position"
5519
5546
  ]
5520
5547
  },
5521
5548
  "Shelves": {
@@ -12769,6 +12796,55 @@
12769
12796
  }
12770
12797
  }
12771
12798
  },
12799
+ "/shelf/{id}/reorder": {
12800
+ "parameters": [
12801
+ {
12802
+ "name": "id",
12803
+ "in": "path"
12804
+ }
12805
+ ],
12806
+ "post": {
12807
+ "requestBody": {
12808
+ "content": {
12809
+ "application/json": {
12810
+ "schema": {
12811
+ "$ref": "#/components/schemas/ShelfRelativePosition"
12812
+ }
12813
+ }
12814
+ }
12815
+ },
12816
+ "responses": {
12817
+ "200": {
12818
+ "description": "200 response",
12819
+ "content": {
12820
+ "application/json": {
12821
+ "schema": {
12822
+ "type": "object",
12823
+ "properties": {
12824
+ "data": {
12825
+ "$ref": "#/components/schemas/ShelfDetails"
12826
+ }
12827
+ },
12828
+ "required": [
12829
+ "data"
12830
+ ]
12831
+ }
12832
+ }
12833
+ }
12834
+ },
12835
+ "default": {
12836
+ "description": "Error",
12837
+ "content": {
12838
+ "application/json": {
12839
+ "schema": {
12840
+ "$ref": "#/components/schemas/ErrorResponse"
12841
+ }
12842
+ }
12843
+ }
12844
+ }
12845
+ }
12846
+ }
12847
+ },
12772
12848
  "/shelf/delete/{id}": {
12773
12849
  "parameters": [
12774
12850
  {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.944",
3
+ "version": "1.0.945",
4
4
  "types": "index.d.ts"
5
5
  }