Coverage for src/kwai/api/v1/club/schemas/resources.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2024-01-01 00:00 +0000

1"""Module that defines all JSON:API resource identifiers for the club API.""" 

2 

3from typing import Literal 

4 

5from kwai.core.json_api import ResourceIdentifier 

6 

7 

8class MemberResourceIdentifier(ResourceIdentifier): 

9 """A JSON:API resource identifier for a member.""" 

10 

11 type: Literal["members"] = "members" 

12 

13 

14class PersonResourceIdentifier(ResourceIdentifier): 

15 """A JSON:API resource identifier for a person.""" 

16 

17 type: Literal["persons"] = "persons" 

18 

19 

20class ContactResourceIdentifier(ResourceIdentifier): 

21 """A JSON:API resource identifier for a contact.""" 

22 

23 type: Literal["contacts"] = "contacts" 

24 

25 

26class UploadResourceIdentifier(ResourceIdentifier): 

27 """A JSON:API resource identifier for a upload.""" 

28 

29 type: Literal["uploads"] = "uploads"