artemis-model 0.1.116__py3-none-any.whl → 0.1.118__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.
@@ -1,6 +1,6 @@
1
1
  """Redis models."""
2
2
 
3
- from .zone_state import ZoneState, NowPlaying, SessionId, BucketId
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
@@ -19,6 +19,8 @@ __all__ = [
19
19
  "SessionId",
20
20
  "BucketId",
21
21
  "ActiveDevice",
22
+ "PushedPlaylist",
23
+ "PushedPlaylistDetails",
22
24
  "KEY_ZONE_PLAY_HISTORY_TEMPLATE",
23
25
  "KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE",
24
26
  "KEY_ZONE_SCHEDULE_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
  Metadata-Version: 2.3
2
2
  Name: artemis-model
3
- Version: 0.1.116
3
+ Version: 0.1.118
4
4
  Summary:
5
5
  Author: Jukeboxy
6
6
  Requires-Python: >=3.10.6,<4.0.0
@@ -13,12 +13,12 @@ artemis_model/organization.py,sha256=yjGHJLTOtb9PUfxSPal782Rceb8xb8vftXX67tHRNqc
13
13
  artemis_model/otp.py,sha256=guIRGtyFlHUBthCAEsTh5_Hs-1yiGN_qfEO4uHNcv4s,1017
14
14
  artemis_model/permission.py,sha256=Bn1Bg1aCS4Z4_3tqEqvtrzqAYDCImsvmGyIEMoVycEk,1452
15
15
  artemis_model/playlist.py,sha256=L22KSJgTZmNEc9CqM3TFD4Wnx3TW77GQJ5EFLJCxZ20,6393
16
- artemis_model/redis/__init__.py,sha256=qwAtvh2NrxRsjk_MqdeTZDwoaGc1K4PZhCCdTDsSTvA,781
16
+ artemis_model/redis/__init__.py,sha256=l-QrhS-aTYvXvFtHasSxI0AniiKb9qrCWfv1BiAEZO4,871
17
17
  artemis_model/redis/bucket.py,sha256=DlmIf6GxfKq9CzcXmMx5IcviaqOTvuWwIb6lAVcZQGs,1537
18
18
  artemis_model/redis/device.py,sha256=ZUiIyVmtWiEwayFIg9mktiFaVuHQ7Fg0rvSjjWyryCI,484
19
19
  artemis_model/redis/keys.py,sha256=bnlSaBCIakLCIlgTr8BlYJmKEtKKvtdr43QIJCLnc90,567
20
20
  artemis_model/redis/play_history.py,sha256=Jm0guS0UZDxfCXeWJ8vqcjjl93W_EeC7XcBXcclKPiE,1259
21
- artemis_model/redis/zone_state.py,sha256=F0-nAS6zGQ6-qy5AInG3AayYdaPHnk7jyax-Q2G-1sY,2993
21
+ artemis_model/redis/zone_state.py,sha256=Vj9vtnevss0W4Zytlmp3W4bYA09u8CcNxneyNL-J_bE,2593
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
@@ -27,6 +27,6 @@ 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
29
  artemis_model/zone_activity.py,sha256=IkB1Ggjb24-FXAd4pSOeyhngX54U9OtTdFTvm4DYL1A,1600
30
- artemis_model-0.1.116.dist-info/METADATA,sha256=gYFeFvyzsboYhkLsE2cdfibl30rZlGyL1EPWvKO3E3M,3445
31
- artemis_model-0.1.116.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
- artemis_model-0.1.116.dist-info/RECORD,,
30
+ artemis_model-0.1.118.dist-info/METADATA,sha256=oRMxK1FF5wT5dEmKVjaUhUp1W0bxUNzLBt7CutRB9EU,3445
31
+ artemis_model-0.1.118.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
+ artemis_model-0.1.118.dist-info/RECORD,,