artemis-model 0.1.117__tar.gz → 0.1.118__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.
Files changed (32) hide show
  1. {artemis_model-0.1.117 → artemis_model-0.1.118}/PKG-INFO +1 -1
  2. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/redis/__init__.py +1 -2
  3. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/redis/zone_state.py +2 -14
  4. {artemis_model-0.1.117 → artemis_model-0.1.118}/pyproject.toml +1 -1
  5. {artemis_model-0.1.117 → artemis_model-0.1.118}/README.md +0 -0
  6. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/__init__.py +0 -0
  7. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/album.py +0 -0
  8. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/artist.py +0 -0
  9. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/auth.py +0 -0
  10. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/banned_tracks.py +0 -0
  11. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/base.py +0 -0
  12. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/category.py +0 -0
  13. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/dj_set.py +0 -0
  14. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/genre.py +0 -0
  15. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/location.py +0 -0
  16. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/message.py +0 -0
  17. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/organization.py +0 -0
  18. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/otp.py +0 -0
  19. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/permission.py +0 -0
  20. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/playlist.py +0 -0
  21. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/redis/bucket.py +0 -0
  22. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/redis/device.py +0 -0
  23. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/redis/keys.py +0 -0
  24. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/redis/play_history.py +0 -0
  25. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/schedule.py +0 -0
  26. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/setting.py +0 -0
  27. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/sqs/__init__.py +0 -0
  28. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/sqs/messages.py +0 -0
  29. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/track.py +0 -0
  30. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/user.py +0 -0
  31. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/zone.py +0 -0
  32. {artemis_model-0.1.117 → artemis_model-0.1.118}/artemis_model/zone_activity.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: artemis-model
3
- Version: 0.1.117
3
+ Version: 0.1.118
4
4
  Summary:
5
5
  Author: Jukeboxy
6
6
  Requires-Python: >=3.10.6,<4.0.0
@@ -1,6 +1,6 @@
1
1
  """Redis models."""
2
2
 
3
- from .zone_state import ZoneState, NowPlaying, SessionId, BucketId, PushedPlaylist, PushedPlaylistMetadata, PushedPlaylistDetails
3
+ from .zone_state import ZoneState, NowPlaying, SessionId, BucketId, PushedPlaylist, PushedPlaylistDetails
4
4
  from .device import ActiveDevice
5
5
  from .bucket import RedisTrackBucketItem
6
6
  from .play_history import RedisTrackPlayHistoryItem
@@ -20,7 +20,6 @@ __all__ = [
20
20
  "BucketId",
21
21
  "ActiveDevice",
22
22
  "PushedPlaylist",
23
- "PushedPlaylistMetadata",
24
23
  "PushedPlaylistDetails",
25
24
  "KEY_ZONE_PLAY_HISTORY_TEMPLATE",
26
25
  "KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE",
@@ -38,17 +38,6 @@ class PushedPlaylist(BaseModel):
38
38
  )
39
39
 
40
40
 
41
- class PushedPlaylistMetadata(BaseModel):
42
- """Pushed playlist metadata schema."""
43
-
44
- expire_at: int = Field(
45
- description="The expire time of the pushed playlist. It's calculated in set_bucket_track as the timestamp value of the timeslot."
46
- )
47
- playlists: list[PushedPlaylist] = Field(
48
- description="The playlists of the pushed playlist",
49
- )
50
-
51
-
52
41
  class PushedPlaylistDetails(BaseModel):
53
42
  """Player details schema."""
54
43
 
@@ -59,9 +48,9 @@ class PushedPlaylistDetails(BaseModel):
59
48
  Every pushplaylist action has a session id. Here we map these session ids to the bucket id.
60
49
  """,
61
50
  )
62
- metadata: PushedPlaylistMetadata | None = Field(
51
+ playlists: list[PushedPlaylist] | None = Field(
63
52
  default=None,
64
- description="The metadata of the pushed playlist",
53
+ description="The playlists of the pushed playlist",
65
54
  )
66
55
 
67
56
  @field_validator("redis_details", mode="before")
@@ -98,6 +87,5 @@ __all__ = [
98
87
  "SessionId",
99
88
  "BucketId",
100
89
  "PushedPlaylist",
101
- "PushedPlaylistMetadata",
102
90
  "PushedPlaylistDetails",
103
91
  ]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "artemis-model"
3
- version = "0.1.117"
3
+ version = "0.1.118"
4
4
  description = ""
5
5
  authors = ["Jukeboxy"]
6
6
  readme = "README.md"