Coverage for apps/kwai-api/src/kwai_api/schemas/resources.py: 100%
20 statements
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
1"""Module that defines all JSON:API resource identifiers."""
3from typing import Literal
5from kwai_core.json_api import ResourceIdentifier
8class ApplicationResourceIdentifier(ResourceIdentifier):
9 """A JSON:API resource identifier for an application."""
11 type: Literal["applications"] = "applications"
14class CountryResourceIdentifier(ResourceIdentifier):
15 """A JSON:API resource identifier for a country."""
17 type: Literal["countries"] = "countries"
20class NewsItemResourceIdentifier(ResourceIdentifier):
21 """A JSON:API resource identifier for a news item."""
23 type: Literal["news_items"] = "news_items"
26class PageResourceIdentifier(ResourceIdentifier):
27 """A JSON:API resource identifier for a page."""
29 type: Literal["pages"] = "pages"
32class UserInvitationResourceIdentifier(ResourceIdentifier):
33 """A JSON:API resource identifier for a user invitation."""
35 type: Literal["user_invitations"] = "user_invitations"
38class TeamResourceIdentifier(ResourceIdentifier):
39 """A JSON:API resource identifier for a team."""
41 type: Literal["teams"] = "teams"
44class TrainingResourceIdentifier(ResourceIdentifier):
45 """A JSON:API resource identifier for a training."""
47 type: Literal["trainings"] = "trainings"
50class TrainingScheduleResourceIdentifier(ResourceIdentifier):
51 """A JSON:API resource identifier for a training schedule."""
53 type: Literal["training_schedules"] = "training_schedules"
56class CoachResourceIdentifier(ResourceIdentifier):
57 """A JSON:API resource identifier for a coach."""
59 type: Literal["coaches"] = "coaches"