From 4be01df4dabfbc6a465789502ade8a226e5b6505 Mon Sep 17 00:00:00 2001 From: Alexander PapaTutuWawa Date: Mon, 21 Apr 2025 13:21:20 +0200 Subject: [PATCH] Move API objects to v1 directory --- src/xmpp_api/api/routers/v1/bot.py | 2 +- src/xmpp_api/api/routers/v1/health.py | 2 +- src/xmpp_api/api/routers/v1/user.py | 2 +- src/xmpp_api/api/types/{ => v1}/bot.py | 0 src/xmpp_api/api/types/{ => v1}/health.py | 0 src/xmpp_api/util/constraints.py | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) rename src/xmpp_api/api/types/{ => v1}/bot.py (100%) rename src/xmpp_api/api/types/{ => v1}/health.py (100%) diff --git a/src/xmpp_api/api/routers/v1/bot.py b/src/xmpp_api/api/routers/v1/bot.py index 9341b72..1800378 100644 --- a/src/xmpp_api/api/routers/v1/bot.py +++ b/src/xmpp_api/api/routers/v1/bot.py @@ -5,7 +5,7 @@ import sqlalchemy from sqlmodel import select from slixmpp.jid import JID -from xmpp_api.api.types.bot import ( +from xmpp_api.api.types.v1.bot import ( AddJidRequest, AddJidResponse, AllowedJidInformation, diff --git a/src/xmpp_api/api/routers/v1/health.py b/src/xmpp_api/api/routers/v1/health.py index 88e6b94..c24aa0d 100644 --- a/src/xmpp_api/api/routers/v1/health.py +++ b/src/xmpp_api/api/routers/v1/health.py @@ -1,6 +1,6 @@ from fastapi import APIRouter, Response -from xmpp_api.api.types.health import HealthResponse, ReadinessResponse +from xmpp_api.api.types.v1.health import HealthResponse, ReadinessResponse from xmpp_api.xmpp.component import XmppApiComponentDep diff --git a/src/xmpp_api/api/routers/v1/user.py b/src/xmpp_api/api/routers/v1/user.py index c24792e..b331575 100644 --- a/src/xmpp_api/api/routers/v1/user.py +++ b/src/xmpp_api/api/routers/v1/user.py @@ -3,7 +3,7 @@ from sqlmodel import select from xmpp_api.db import UserDep, SessionDep from xmpp_api.db.bot import Bot -from xmpp_api.api.types.bot import BotInformation +from xmpp_api.api.types.v1.bot import BotInformation from xmpp_api.util.constraints import bot_constraint_from_db diff --git a/src/xmpp_api/api/types/bot.py b/src/xmpp_api/api/types/v1/bot.py similarity index 100% rename from src/xmpp_api/api/types/bot.py rename to src/xmpp_api/api/types/v1/bot.py diff --git a/src/xmpp_api/api/types/health.py b/src/xmpp_api/api/types/v1/health.py similarity index 100% rename from src/xmpp_api/api/types/health.py rename to src/xmpp_api/api/types/v1/health.py diff --git a/src/xmpp_api/util/constraints.py b/src/xmpp_api/util/constraints.py index cd4a8aa..093ae08 100644 --- a/src/xmpp_api/util/constraints.py +++ b/src/xmpp_api/util/constraints.py @@ -1,4 +1,4 @@ -import xmpp_api.api.types.bot as bot_api +import xmpp_api.api.types.v1.bot as bot_api import xmpp_api.db.bot as bot_db