artemis-model 0.1.109__py3-none-any.whl → 0.1.111__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
artemis_model/sqs/messages.py
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
from datetime import datetime, timezone
|
4
4
|
from enum import Enum
|
5
5
|
from typing import Literal
|
6
|
+
from uuid import UUID
|
7
|
+
|
6
8
|
|
7
9
|
from artemis_model.redis.zone_state import SessionId
|
8
10
|
from artemis_model.schedule import ScheduleItem
|
@@ -21,6 +23,7 @@ class Action(str, Enum):
|
|
21
23
|
REFRESH_TRACK_BUCKET = "refresh-track-bucket"
|
22
24
|
RECALCULATE_SCHEDULE = "recalculate-schedule"
|
23
25
|
PLAYER_MODE_CHANGE = "player-mode-change"
|
26
|
+
BAN_TRACK = "ban-track"
|
24
27
|
|
25
28
|
|
26
29
|
class BaseMessage(BaseModel):
|
@@ -89,3 +92,11 @@ class RecalculateScheduleIn(BaseMessage):
|
|
89
92
|
|
90
93
|
action: Action = Action.RECALCULATE_SCHEDULE
|
91
94
|
zone_id: int
|
95
|
+
|
96
|
+
|
97
|
+
class BanTrackIn(BaseMessage):
|
98
|
+
"""Ban track message schema."""
|
99
|
+
|
100
|
+
action: Action = Action.BAN_TRACK
|
101
|
+
zone_id: int
|
102
|
+
track_id: UUID
|
@@ -22,10 +22,10 @@ artemis_model/redis/zone_state.py,sha256=PgHiGUZ2WI3bqO-8CW2cwzLEQu3l4wJAzIABSWE
|
|
22
22
|
artemis_model/schedule.py,sha256=CkLHWz-BwvUY2EQCfoU4SymgCariPzoQdtRLITqBPmk,2451
|
23
23
|
artemis_model/setting.py,sha256=EWzOmE31mLNWwmV_wmqttHPMycvQZW7SJUIozF2b8bo,1190
|
24
24
|
artemis_model/sqs/__init__.py,sha256=nHpXQns64qQ5Cqjyo6w9fDGO_wWhprqn1bhKf3eWnio,17
|
25
|
-
artemis_model/sqs/messages.py,sha256=
|
25
|
+
artemis_model/sqs/messages.py,sha256=OVBSqjbVU87NiRz_BMkMKmzn9ylB2BUNFMl_ffqxikc,2647
|
26
26
|
artemis_model/track.py,sha256=QwUF0QKVn1I64648B-NI75-IzGQvnLt9B0emD4GnS6E,3757
|
27
27
|
artemis_model/user.py,sha256=eqIdCiBJRNLjCwPPCn-gQ6si0O5JUBGfp9oWJL5zVW4,2131
|
28
28
|
artemis_model/zone.py,sha256=iGRUtzUwKh9LHT3MOfzzg1DnkPBts_ZBzZVTi2EmIgs,2282
|
29
|
-
artemis_model-0.1.
|
30
|
-
artemis_model-0.1.
|
31
|
-
artemis_model-0.1.
|
29
|
+
artemis_model-0.1.111.dist-info/METADATA,sha256=DTlKinVuHgB7Vsyzq3Eg7Vgqcyl3MHWkNYoca7iKGSI,3445
|
30
|
+
artemis_model-0.1.111.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
31
|
+
artemis_model-0.1.111.dist-info/RECORD,,
|
File without changes
|