artemis-model 0.1.113__py3-none-any.whl → 0.1.114__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/zone_activity.py
CHANGED
@@ -1,10 +1,28 @@
|
|
1
1
|
"""Zone Activity Model"""
|
2
2
|
|
3
|
+
from enum import StrEnum
|
3
4
|
from sqlalchemy import Integer, String, JSON, Index
|
4
5
|
from sqlalchemy.orm import Mapped, mapped_column
|
5
6
|
from artemis_model.base import AuditMixin, TimeStampMixin, CustomSyncBase, CustomBase
|
6
7
|
|
7
8
|
|
9
|
+
class ZoneActivityType(StrEnum):
|
10
|
+
"""Zone activity type"""
|
11
|
+
|
12
|
+
CONNECTED = "connected"
|
13
|
+
CONNECTION_MODE_CHANGED = "connection_mode_changed"
|
14
|
+
DISCONNECTED = "disconnected"
|
15
|
+
PLAYER_PAUSED = "player_paused"
|
16
|
+
PLAYER_RESUMED = "player_resumed"
|
17
|
+
TRACK_SKIPPED = "track_skipped"
|
18
|
+
TRACK_LIKED = "track_liked"
|
19
|
+
TRACK_BANNED = "track_banned"
|
20
|
+
TRACK_UNBANNED = "track_unbanned"
|
21
|
+
PLAYLIST_PUSHED = "playlist_pushed"
|
22
|
+
PLAYLIST_EXPIRED = "playlist_expired"
|
23
|
+
ACTIVE_PLAYLIST_CHANGED = "active_playlist_changed"
|
24
|
+
|
25
|
+
|
8
26
|
class PlayerActivityMixin(TimeStampMixin, AuditMixin):
|
9
27
|
"""User activity log, sorted by created_at DESC for retrieval"""
|
10
28
|
|
@@ -26,7 +26,7 @@ artemis_model/sqs/messages.py,sha256=8PcZYUsh85x3TikZ4hBvGl_xUl9onKUwSCxZWgToEgQ
|
|
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/zone_activity.py,sha256=
|
30
|
-
artemis_model-0.1.
|
31
|
-
artemis_model-0.1.
|
32
|
-
artemis_model-0.1.
|
29
|
+
artemis_model/zone_activity.py,sha256=TgBIbVhU_aVvhPIe7eC4TSJayW8aMSJWoOiv6JduS4w,1598
|
30
|
+
artemis_model-0.1.114.dist-info/METADATA,sha256=H3jVVmEerVNAXOgVSmOHaFeBVmJQzmXS9ZSu-wtPDaU,3445
|
31
|
+
artemis_model-0.1.114.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
32
|
+
artemis_model-0.1.114.dist-info/RECORD,,
|
File without changes
|