mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 20:31:36 +00:00
Cleaned up addedAt and updatedAt
This commit is contained in:
parent
f4320049f8
commit
1c5798181a
11 changed files with 49 additions and 112 deletions
|
|
@ -59,9 +59,7 @@ const naturalSort = createNewSortInstance({
|
|||
* createdAt:
|
||||
* $ref: '#/components/schemas/createdAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the RSS feed was last updated.
|
||||
* type: integer
|
||||
* example: 1669031843179
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* rssFeedMinified:
|
||||
* type: [object, 'null']
|
||||
* properties:
|
||||
|
|
|
|||
|
|
@ -61,11 +61,9 @@ const { filePathToPOSIX, getFileTimestampsWithIno } = require('../utils/fileUtil
|
|||
* description: The time (in ms since POSIX epoch) when the library item was created on disk. Will be 0 if unknown.
|
||||
* type: integer
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the library item was added to the library.
|
||||
* type: integer
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the library item was last updated. (Read Only)
|
||||
* type: integer
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* isMissing:
|
||||
* description: Whether the library item was scanned and no longer exists.
|
||||
* type: boolean
|
||||
|
|
|
|||
|
|
@ -103,9 +103,7 @@ const VideoMetadata = require('./metadata/VideoMetadata')
|
|||
* type: integer
|
||||
* example: 1668206493239
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the playback session was last updated.
|
||||
* type: integer
|
||||
* example: 1668206493239
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* playbackSessionExpanded:
|
||||
* type: [object, 'null']
|
||||
* properties:
|
||||
|
|
@ -199,9 +197,7 @@ const VideoMetadata = require('./metadata/VideoMetadata')
|
|||
* type: integer
|
||||
* example: 1668206493239
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the playback session was last updated.
|
||||
* type: integer
|
||||
* example: 1668206493239
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* audioTracks:
|
||||
* description: The audio tracks that are being played with the playback session.
|
||||
* type: array
|
||||
|
|
|
|||
|
|
@ -4,7 +4,11 @@
|
|||
* schemas:
|
||||
* createdAt:
|
||||
* type: integer
|
||||
* description: The time (in ms since POSIX epoch) when the item was created.
|
||||
* description: The time (in ms since POSIX epoch) when was created.
|
||||
* example: 1633522963509
|
||||
* updatedAt:
|
||||
* type: integer
|
||||
* description: The time (in ms since POSIX epoch) when last updated.
|
||||
* example: 1633522963509
|
||||
* tags:
|
||||
* description: Tags applied to items.
|
||||
|
|
|
|||
|
|
@ -27,13 +27,9 @@ const { checkNamesAreEqual, nameToLastFirst } = require('../../utils/parsers/par
|
|||
* description: The absolute path for the author image. Will be null if there is no image.
|
||||
* type: [string, 'null']
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the author was added.
|
||||
* type: integer
|
||||
* example: 1650621073750
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the author was last updated.
|
||||
* type: integer
|
||||
* example: 1650621073750
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* authorMinified:
|
||||
* type: object
|
||||
* properties:
|
||||
|
|
@ -66,13 +62,9 @@ const { checkNamesAreEqual, nameToLastFirst } = require('../../utils/parsers/par
|
|||
* description: The absolute path for the author image. Will be null if there is no image.
|
||||
* type: [string, 'null']
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the author was added.
|
||||
* type: integer
|
||||
* example: 1650621073750
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the author was last updated.
|
||||
* type: integer
|
||||
* example: 1650621073750
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* numBooks:
|
||||
* description: The number of books associated with the author in the library.
|
||||
* type: integer
|
||||
|
|
|
|||
|
|
@ -20,13 +20,9 @@ const { getTitleIgnorePrefix, getTitlePrefixAtEnd } = require('../../utils/index
|
|||
* description: A description for the series. Will be null if there is none.
|
||||
* type: [string, 'null']
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the series was added.
|
||||
* type: integer
|
||||
* example: 1650621073750
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the series was last updated.
|
||||
* type: integer
|
||||
* example: 1650621073750
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* seriesNumBooks:
|
||||
* type: object
|
||||
* properties:
|
||||
|
|
|
|||
|
|
@ -20,13 +20,9 @@ const FileMetadata = require('../metadata/FileMetadata')
|
|||
* metadata:
|
||||
* $ref: '#/components/schemas/fileMetadata'
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the audio file was added to the library.
|
||||
* type: integer
|
||||
* example: 1650621074131
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the audio file last updated. (Read Only)
|
||||
* type: integer
|
||||
* example: 1651830828023
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* trackNumFromMeta:
|
||||
* description: The track number of the audio file as pulled from the file's metadata. Will be null if unknown.
|
||||
* type: [integer, 'null']
|
||||
|
|
|
|||
|
|
@ -18,13 +18,9 @@ const FileMetadata = require('../metadata/FileMetadata')
|
|||
* type: string
|
||||
* example: epub
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the library file was added.
|
||||
* type: integer
|
||||
* example: 1650621073750
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the library file was last updated.
|
||||
* type: integer
|
||||
* example: 1650621110769
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
*/
|
||||
|
||||
class EBookFile {
|
||||
|
|
|
|||
|
|
@ -17,13 +17,9 @@ const FileMetadata = require('../metadata/FileMetadata')
|
|||
* metadata:
|
||||
* $ref: '#/components/schemas/fileMetadata'
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the library file was added.
|
||||
* type: integer
|
||||
* example: 1650621052494
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the library file was last updated.
|
||||
* type: integer
|
||||
* example: 1650621052494
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* fileType:
|
||||
* description: The type of file that the library file is (audio, image, etc.).
|
||||
* type: string
|
||||
|
|
|
|||
|
|
@ -452,13 +452,9 @@ const { filePathToPOSIX } = require('../../utils/fileUtils')
|
|||
* audioFile:
|
||||
* $ref: '#/components/schemas/audioFile'
|
||||
* addedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the podcast episode was added to the library.
|
||||
* type: integer
|
||||
* example: 1667326679503
|
||||
* $ref: '#/components/schemas/addedAt'
|
||||
* updatedAt:
|
||||
* description: The time (in ms since POSIX epoch) when the podcast episode was last updated.
|
||||
* type: integer
|
||||
* example: 1667326679503
|
||||
* $ref: '#/components/schemas/updatedAt'
|
||||
* podcastEpisodeExpanded:
|
||||
* type: [object, 'null']
|
||||
* allOf:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue