-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
105 lines (89 loc) · 2.08 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
from pydantic import BaseModel, Field
from typing import Literal
from enum import Enum
class Route(BaseModel):
start: int | None
end: int | None
desc: str
type: Literal["normal", "minigame", "other"]
class SecretWay(BaseModel):
src: str
routes: list[Route]
yt: str | None = None
class SecretWayResponse(BaseModel):
found: bool = False
data: SecretWay | None = None
class GJQueryType(Enum):
SEARCH = 0
MOST_DOWNLOADED = 1
MOST_LIKED = 2
TRENDING = 3
RECENT = 4
USER = 5
FEATURED = 6
MAGIC = 7
SENT = 8
LEVEL_LIST = 10
AWARDED = 11
FOLLOWED = 12
FRIENDS = 13
GDW = 15
HALL_OF_FAME = 16
GDW_FEATURED = 17
DAILY = 21
WEEKLY = 22
LIST = 25
class GJDifficulty(Enum):
NA = -1
DEMON = -2
AUTO = -3
EASY = 1
NORMAL = 2
HARD = 3
HARDER = 4
INSANE = 5
class GJDemonFilter(Enum):
EASY = 1
MEDIUM = 2
HARD = 3
INSANE = 4
EXTREME = 5
class GJLength(Enum):
TINY = 0
SHORT = 1
MEDIUM = 2
LONG = 3
XL = 4
class getGJLevels21(BaseModel):
secret: str | None = None
gameVersion: int | None = None
binaryVersion: int | None = None
type: GJQueryType = GJQueryType.MOST_LIKED
query: str | None = Field(None, alias="str")
page: int = 0
total: int | None = None
gjp2: str | None = None
accountID: int | None = None
gdw: bool = False
gauntlet: int | None = None
diff: GJDifficulty | None = None
demonFilter: GJDemonFilter | None = None
length: list[GJLength] = Field([], alias="len")
uncompleted: bool = False
onlyCompleted: bool = False
completedLevels: list[int] | None = None
featured: bool = False
original: bool = False
twoPlayer: bool = False
coins: bool = False
epic: bool = False
legendary: bool = False
mythic: bool = False
noStar: bool = False
star: bool = False
song: int | None = None
customSong: bool = False
followed: list[int] | None = None
local: bool = False
udid: str | None = None
uuid: str | None = None