Stats Fix & Library Bulk Actions (#3209)

Co-authored-by: Fesaa <77553571+Fesaa@users.noreply.github.com>
Co-authored-by: Weblate (bot) <hosted@weblate.org>
Co-authored-by: Gregory.Open <gregory.open@proton.me>
Co-authored-by: Mateusz <mateuszvx8.96@gmail.com>
Co-authored-by: majora2007 <kavitareader@gmail.com>
Co-authored-by: 無情天 <kofzhanganguo@126.com>
This commit is contained in:
Joe Milazzo 2024-09-23 08:07:37 -05:00 committed by GitHub
parent 894b49bb76
commit 857e419e4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 72523 additions and 30914 deletions

View file

@ -3082,6 +3082,38 @@
}
}
},
"/api/Library/scan-multiple": {
"post": {
"tags": [
"Library"
],
"summary": "Enqueues a bunch of library scans",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
}
}
},
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/api/Library/scan-all": {
"post": {
"tags": [
@ -3144,6 +3176,47 @@
}
}
},
"/api/Library/refresh-metadata-multiple": {
"post": {
"tags": [
"Library"
],
"parameters": [
{
"name": "forceColorscape",
"in": "query",
"schema": {
"type": "boolean",
"default": true
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
}
}
},
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/api/Library/analyze": {
"post": {
"tags": [
@ -3166,6 +3239,70 @@
}
}
},
"/api/Library/analyze-multiple": {
"post": {
"tags": [
"Library"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/BulkActionDto"
}
}
}
},
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/api/Library/copy-settings-from": {
"post": {
"tags": [
"Library"
],
"summary": "Copy the library settings (adv tab + optional type) to a set of other libraries.",
"requestBody": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CopySettingsFromLibraryDto"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CopySettingsFromLibraryDto"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/CopySettingsFromLibraryDto"
}
}
}
},
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/api/Library/scan-folder": {
"post": {
"tags": [
@ -14965,6 +15102,24 @@
},
"additionalProperties": false
},
"BulkActionDto": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"nullable": true
},
"force": {
"type": "boolean",
"nullable": true
}
},
"additionalProperties": false
},
"BulkRemoveBookmarkForSeriesDto": {
"type": "object",
"properties": {
@ -15187,8 +15342,8 @@
"format": "int32"
},
"avgHoursToRead": {
"type": "integer",
"format": "int32"
"type": "number",
"format": "float"
},
"webLinks": {
"type": "string",
@ -15451,8 +15606,8 @@
"format": "int32"
},
"avgHoursToRead": {
"type": "integer",
"format": "int32"
"type": "number",
"format": "float"
},
"webLinks": {
"type": "string",
@ -16160,6 +16315,28 @@
},
"additionalProperties": false
},
"CopySettingsFromLibraryDto": {
"type": "object",
"properties": {
"sourceLibraryId": {
"type": "integer",
"format": "int32"
},
"targetLibraryIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"nullable": true
},
"includeType": {
"type": "boolean",
"description": "Include copying over the type"
}
},
"additionalProperties": false
},
"CreateDeviceDto": {
"required": [
"emailAddress",
@ -17511,9 +17688,9 @@
"format": "int32"
},
"avgHours": {
"type": "integer",
"type": "number",
"description": "Estimated average hours to read the selection",
"format": "int32"
"format": "float"
}
},
"additionalProperties": false,
@ -19707,7 +19884,7 @@
},
"lastModified": {
"type": "string",
"description": "Whenever a modification occurs. Ie) New volumes, removed volumes, title update, etc",
"description": "Whenever a modification occurs. ex: New volumes, removed volumes, title update, etc",
"format": "date-time"
},
"createdUtc": {
@ -19801,8 +19978,8 @@
"format": "int32"
},
"avgHoursToRead": {
"type": "integer",
"format": "int32"
"type": "number",
"format": "float"
},
"metadata": {
"$ref": "#/components/schemas/SeriesMetadata"
@ -20051,8 +20228,8 @@
"format": "int32"
},
"avgHoursToRead": {
"type": "integer",
"format": "int32"
"type": "number",
"format": "float"
},
"folderPath": {
"type": "string",
@ -21417,18 +21594,18 @@
"nullable": true
},
"comicsTime": {
"type": "integer",
"type": "number",
"description": "Amount of time read on Comic libraries",
"format": "int64"
"format": "float"
},
"booksTime": {
"type": "integer",
"type": "number",
"description": "Amount of time read on",
"format": "int64"
"format": "float"
},
"mangaTime": {
"type": "integer",
"format": "int64"
"type": "number",
"format": "float"
}
},
"additionalProperties": false
@ -21778,7 +21955,6 @@
"folderWatching",
"id",
"includeInDashboard",
"includeInRecommended",
"includeInSearch",
"manageCollections",
"manageReadingLists",
@ -21819,9 +21995,6 @@
"includeInDashboard": {
"type": "boolean"
},
"includeInRecommended": {
"type": "boolean"
},
"includeInSearch": {
"type": "boolean"
},
@ -22957,8 +23130,8 @@
"format": "int32"
},
"avgHoursToRead": {
"type": "integer",
"format": "int32"
"type": "number",
"format": "float"
},
"chapters": {
"type": "array",
@ -23048,8 +23221,8 @@
"format": "int32"
},
"avgHoursToRead": {
"type": "integer",
"format": "int32"
"type": "number",
"format": "float"
},
"wordCount": {
"type": "integer",