from typing import List
from pydantic import BaseModel

from src.schema.comics.artist import ArtistResponse
from src.schema.comics.issue import IssueResponse
from src.schema.comics.publisher import PublisherResponse
from src.schema.comics.volume import VolumeResponse
from src.schema.comics.worktype import WorktypeResponse


class ComicWorktypeArtistResponse(BaseModel):
    worktype: WorktypeResponse
    artists: List[ArtistResponse]


class ComicDetailsResponse(BaseModel):
    id: str
    created: str
    title: str
    completed : bool
    current_order : bool
    weblink: str
    publisher: PublisherResponse
    issues: List[IssueResponse]
    volumes: List[VolumeResponse]
    works: List[ComicWorktypeArtistResponse]
