initial commit
This commit is contained in:
41
src/komgapi/schemas/Metadata.py
Normal file
41
src/komgapi/schemas/Metadata.py
Normal file
@@ -0,0 +1,41 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import List, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from .AlternateTitle import AlternateTitle
|
||||
from .Link import Link
|
||||
|
||||
|
||||
class Metadata(BaseModel):
|
||||
status: Optional[str] | None = None
|
||||
statusLock: bool
|
||||
title: Optional[str] | None = None
|
||||
titleLock: bool
|
||||
titleSort: Optional[str] | None = None
|
||||
titleSortLock: bool
|
||||
summary: Optional[str] | None = None
|
||||
summaryLock: bool
|
||||
readingDirection: Optional[str] | None = None
|
||||
readingDirectionLock: bool
|
||||
publisher: Optional[str] | None = None
|
||||
publisherLock: bool
|
||||
ageRating: Optional[int] | None = None
|
||||
ageRatingLock: bool
|
||||
language: Optional[str] | None = None
|
||||
languageLock: bool
|
||||
genres: List[str] | None
|
||||
genresLock: bool
|
||||
tags: List[str] | None = None
|
||||
tagsLock: bool
|
||||
totalBookCount: Optional[int] | None = None
|
||||
totalBookCountLock: bool
|
||||
sharingLabels: List[str | None] = None
|
||||
sharingLabelsLock: bool
|
||||
links: List[Link] | None = None
|
||||
linksLock: bool
|
||||
alternateTitles: List[AlternateTitle] | None = None
|
||||
alternateTitlesLock: bool
|
||||
created: Optional[str] | None = None
|
||||
lastModified: Optional[str] | None = None
|
||||
Reference in New Issue
Block a user