Add STO booking and maintenance automation
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user