Add STO booking and maintenance automation

This commit is contained in:
VPN SaaS Dev
2026-05-15 05:17:54 +09:00
parent 2be7ba2099
commit fec9635079
12 changed files with 2178 additions and 5 deletions

View File

@@ -88,6 +88,28 @@ class ApiClient:
async def public_service_centers(self, telegram_id: int) -> list[dict[str, Any]]:
return await self.request("GET", "/api/service-centers/public", telegram_id=telegram_id)
async def sto_catalog(self, telegram_id: int) -> list[dict[str, Any]]:
return await self.request("GET", "/api/sto/catalog", telegram_id=telegram_id)
async def my_appointments(self, telegram_id: int) -> list[dict[str, Any]]:
return await self.request("GET", "/api/appointments/my", telegram_id=telegram_id)
async def sto_dashboard(self, telegram_id: int, service_center_id: int) -> dict[str, Any]:
return await self.request(
"GET",
"/api/sto/dashboard",
telegram_id=telegram_id,
params={"service_center_id": service_center_id},
)
async def sto_appointments(self, telegram_id: int, service_center_id: int) -> list[dict[str, Any]]:
return await self.request(
"GET",
"/api/sto/appointments",
telegram_id=telegram_id,
params={"service_center_id": service_center_id, "status": "requested"},
)
async def my_service_centers(self, telegram_id: int) -> list[dict[str, Any]]:
return await self.request("GET", "/api/service-centers/my", telegram_id=telegram_id)