artemis-model 0.1.166__py3-none-any.whl → 0.1.168__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 +7 -0
- artemis_model/zone_state.py +4 -4
- {artemis_model-0.1.166.dist-info → artemis_model-0.1.168.dist-info}/METADATA +1 -1
- {artemis_model-0.1.166.dist-info → artemis_model-0.1.168.dist-info}/RECORD +5 -5
- {artemis_model-0.1.166.dist-info → artemis_model-0.1.168.dist-info}/WHEEL +0 -0
artemis_model/sqs/messages.py
CHANGED
|
@@ -47,6 +47,13 @@ class MoveTimeSlotIn(BaseMessage):
|
|
|
47
47
|
playlist_ids: list[int]
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
class StopMusicIn(BaseMessage):
|
|
51
|
+
"""Stop music message schema."""
|
|
52
|
+
|
|
53
|
+
action: Action = Action.STOP_MUSIC
|
|
54
|
+
zone_id: int
|
|
55
|
+
|
|
56
|
+
|
|
50
57
|
class TriageScheduleIn(BaseMessage):
|
|
51
58
|
"""Triage schedule message schema."""
|
|
52
59
|
|
artemis_model/zone_state.py
CHANGED
|
@@ -20,8 +20,8 @@ class ZoneStateMetaMixin(TimeStampMixin):
|
|
|
20
20
|
One row per zone.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
-
zone_id: Mapped[
|
|
24
|
-
|
|
23
|
+
zone_id: Mapped[int] = mapped_column(
|
|
24
|
+
Integer,
|
|
25
25
|
ForeignKey("zone.id", ondelete="CASCADE"),
|
|
26
26
|
primary_key=True,
|
|
27
27
|
default=uuid.uuid4,
|
|
@@ -58,8 +58,8 @@ class ZoneNowPlayingMixin:
|
|
|
58
58
|
One row per zone (FK to ZoneStateMeta).
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
|
-
zone_id: Mapped[
|
|
62
|
-
|
|
61
|
+
zone_id: Mapped[int] = mapped_column(
|
|
62
|
+
Integer,
|
|
63
63
|
ForeignKey("zone_state_meta.zone_id", ondelete="CASCADE"),
|
|
64
64
|
primary_key=True,
|
|
65
65
|
doc="Matches zone_state_meta.zone_id",
|
|
@@ -25,12 +25,12 @@ artemis_model/redis/zone_state.py,sha256=A5z2ss1-zq6_UHavs6mBgxsllXLz5hYbKCNRAjD
|
|
|
25
25
|
artemis_model/schedule.py,sha256=CkLHWz-BwvUY2EQCfoU4SymgCariPzoQdtRLITqBPmk,2451
|
|
26
26
|
artemis_model/setting.py,sha256=xe5SHDziY8RzFxzB1GzousxI1FXYhyXZ5proEseS60g,1190
|
|
27
27
|
artemis_model/sqs/__init__.py,sha256=nHpXQns64qQ5Cqjyo6w9fDGO_wWhprqn1bhKf3eWnio,17
|
|
28
|
-
artemis_model/sqs/messages.py,sha256=
|
|
28
|
+
artemis_model/sqs/messages.py,sha256=XCSafXtySz3dX48q2HlFXrIt-tAyG7OXelhmBnHNVd4,2980
|
|
29
29
|
artemis_model/track.py,sha256=QwUF0QKVn1I64648B-NI75-IzGQvnLt9B0emD4GnS6E,3757
|
|
30
30
|
artemis_model/user.py,sha256=eqIdCiBJRNLjCwPPCn-gQ6si0O5JUBGfp9oWJL5zVW4,2131
|
|
31
31
|
artemis_model/zone.py,sha256=iGRUtzUwKh9LHT3MOfzzg1DnkPBts_ZBzZVTi2EmIgs,2282
|
|
32
32
|
artemis_model/zone_activity.py,sha256=BY4iODavY9ceJ5oRChdjjxf26S3U30Yb7Pxm5YRFpCo,1590
|
|
33
|
-
artemis_model/zone_state.py,sha256=
|
|
34
|
-
artemis_model-0.1.
|
|
35
|
-
artemis_model-0.1.
|
|
36
|
-
artemis_model-0.1.
|
|
33
|
+
artemis_model/zone_state.py,sha256=3zMTeU4M6ysnwZQR4nzv1LxzqfnVAjOpJBvfbzfbpq0,2669
|
|
34
|
+
artemis_model-0.1.168.dist-info/METADATA,sha256=GZ1hiWF4YRFCixW5wcsEl5rfuzFBQcBbW1fZ6yuUZ1A,3496
|
|
35
|
+
artemis_model-0.1.168.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
36
|
+
artemis_model-0.1.168.dist-info/RECORD,,
|
|
File without changes
|