update codebase

This commit is contained in:
2025-04-17 10:57:57 +02:00
parent e685c7b930
commit 759c01380f
37 changed files with 378 additions and 252 deletions

View File

@@ -1,41 +1,45 @@
from __future__ import annotations
from typing import List, Optional
from pydantic import BaseModel
from typing import List, Optional, Union
from dataclasses import dataclass
from .AlternateTitle import AlternateTitle
from .Link import Link
from .status import Status
class Metadata(BaseModel):
status: Optional[str] | None = None
statusLock: bool
@dataclass
class Metadata:
# set status to be either ENDED, ONGOING, HIATUS, ABANDONED
# status has to be one of the status listed in enum status
status: Optional[Status] | None = None
statusLock: bool = None
title: Optional[str] | None = None
titleLock: bool
titleLock: bool = None
titleSort: Optional[str] | None = None
titleSortLock: bool
titleSortLock: bool = None
summary: Optional[str] | None = None
summaryLock: bool
summaryLock: bool = None
readingDirection: Optional[str] | None = None
readingDirectionLock: bool
readingDirectionLock: bool = None
publisher: Optional[str] | None = None
publisherLock: bool
publisherLock: bool = None
ageRating: Optional[int] | None = None
ageRatingLock: bool
ageRatingLock: bool = None
language: Optional[str] | None = None
languageLock: bool
genres: List[str] | None
genresLock: bool
languageLock: bool = None
genres: List[str] | None = None
genresLock: bool = None
tags: List[str] | None = None
tagsLock: bool
tagsLock: bool = None
totalBookCount: Optional[int] | None = None
totalBookCountLock: bool
totalBookCountLock: bool = None
sharingLabels: List[str | None] = None
sharingLabelsLock: bool
sharingLabelsLock: bool = None
links: List[Link] | None = None
linksLock: bool
linksLock: bool = None
alternateTitles: List[AlternateTitle] | None = None
alternateTitlesLock: bool
alternateTitlesLock: bool = None
created: Optional[str] | None = None
lastModified: Optional[str] | None = None