artemis-model 0.1.109__tar.gz → 0.1.110__tar.gz
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-0.1.109 → artemis_model-0.1.110}/PKG-INFO +1 -1
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/sqs/messages.py +11 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/pyproject.toml +1 -1
- {artemis_model-0.1.109 → artemis_model-0.1.110}/README.md +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/__init__.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/album.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/artist.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/auth.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/banned_tracks.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/base.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/category.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/dj_set.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/genre.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/location.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/message.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/organization.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/otp.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/permission.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/playlist.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/redis/__init__.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/redis/bucket.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/redis/device.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/redis/keys.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/redis/play_history.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/redis/zone_state.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/schedule.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/setting.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/sqs/__init__.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/track.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/user.py +0 -0
- {artemis_model-0.1.109 → artemis_model-0.1.110}/artemis_model/zone.py +0 -0
@@ -4,6 +4,8 @@ from datetime import datetime, timezone
|
|
4
4
|
from enum import Enum
|
5
5
|
from typing import Literal
|
6
6
|
|
7
|
+
from sqlalchemy import UUID
|
8
|
+
|
7
9
|
from artemis_model.redis.zone_state import SessionId
|
8
10
|
from artemis_model.schedule import ScheduleItem
|
9
11
|
from pydantic import BaseModel, Field
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|