Daedalus and Talos integration test
This commit is contained in:
@@ -25,6 +25,17 @@ from app.schemas.game import (
|
||||
RouteUpdate,
|
||||
)
|
||||
from app.schemas.genlocke import GenlockeCreate, GenlockeLegResponse, GenlockeResponse
|
||||
from app.schemas.journal_entry import (
|
||||
JournalEntryCreate,
|
||||
JournalEntryResponse,
|
||||
JournalEntryUpdate,
|
||||
)
|
||||
from app.schemas.move import (
|
||||
AbilityResponse,
|
||||
MoveResponse,
|
||||
PaginatedAbilityResponse,
|
||||
PaginatedMoveResponse,
|
||||
)
|
||||
from app.schemas.pokemon import (
|
||||
BulkImportItem,
|
||||
BulkImportResult,
|
||||
@@ -46,6 +57,7 @@ from app.schemas.run import (
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"AbilityResponse",
|
||||
"BossBattleCreate",
|
||||
"BossBattleResponse",
|
||||
"BossBattleUpdate",
|
||||
@@ -68,6 +80,12 @@ __all__ = [
|
||||
"GameDetailResponse",
|
||||
"GameResponse",
|
||||
"GameUpdate",
|
||||
"JournalEntryCreate",
|
||||
"JournalEntryResponse",
|
||||
"JournalEntryUpdate",
|
||||
"MoveResponse",
|
||||
"PaginatedAbilityResponse",
|
||||
"PaginatedMoveResponse",
|
||||
"PokemonCreate",
|
||||
"PokemonResponse",
|
||||
"PokemonUpdate",
|
||||
|
||||
26
backend/src/app/schemas/journal_entry.py
Normal file
26
backend/src/app/schemas/journal_entry.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from datetime import datetime
|
||||
from uuid import UUID
|
||||
|
||||
from app.schemas.base import CamelModel
|
||||
|
||||
|
||||
class JournalEntryCreate(CamelModel):
|
||||
boss_result_id: int | None = None
|
||||
title: str
|
||||
body: str
|
||||
|
||||
|
||||
class JournalEntryUpdate(CamelModel):
|
||||
boss_result_id: int | None = None
|
||||
title: str | None = None
|
||||
body: str | None = None
|
||||
|
||||
|
||||
class JournalEntryResponse(CamelModel):
|
||||
id: UUID
|
||||
run_id: int
|
||||
boss_result_id: int | None
|
||||
title: str
|
||||
body: str
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
28
backend/src/app/schemas/move.py
Normal file
28
backend/src/app/schemas/move.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from app.schemas.base import CamelModel
|
||||
|
||||
|
||||
class MoveResponse(CamelModel):
|
||||
id: int
|
||||
name: str
|
||||
introduced_gen: int
|
||||
type: str | None
|
||||
|
||||
|
||||
class PaginatedMoveResponse(CamelModel):
|
||||
items: list[MoveResponse]
|
||||
total: int
|
||||
limit: int
|
||||
offset: int
|
||||
|
||||
|
||||
class AbilityResponse(CamelModel):
|
||||
id: int
|
||||
name: str
|
||||
introduced_gen: int
|
||||
|
||||
|
||||
class PaginatedAbilityResponse(CamelModel):
|
||||
items: list[AbilityResponse]
|
||||
total: int
|
||||
limit: int
|
||||
offset: int
|
||||
Reference in New Issue
Block a user