artemis-model 0.1.141__py3-none-any.whl → 0.1.143__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.

Potentially problematic release.


This version of artemis-model might be problematic. Click here for more details.

@@ -4,7 +4,7 @@ from .zone_state import (
4
4
  ZoneState,
5
5
  NowPlaying,
6
6
  SessionId,
7
- BucketId,
7
+ BucketTS,
8
8
  PlaylistSimple,
9
9
  PushedPlaylistDetails,
10
10
  ScheduleDetails,
@@ -25,7 +25,7 @@ __all__ = [
25
25
  "ZoneState",
26
26
  "NowPlaying",
27
27
  "SessionId",
28
- "BucketId",
28
+ "BucketTS",
29
29
  "ActiveDevice",
30
30
  "PlaylistSimple",
31
31
  "PushedPlaylistDetails",
@@ -21,10 +21,10 @@ SessionId = Annotated[
21
21
  description="The session id of the pushed playlist. It's generated as a timestamp value of the current time."
22
22
  ),
23
23
  ]
24
- BucketId = Annotated[
24
+ BucketTS = Annotated[
25
25
  int | None,
26
26
  Field(
27
- description="The bucket id of the pushed playlist. It's calculated in set_bucket_track as the timestamp value of the timeslot."
27
+ description="The bucket id of the pushed playlist. It's calculated as the timestamp value of the timeslot."
28
28
  ),
29
29
  ]
30
30
 
@@ -56,11 +56,10 @@ class ScheduleDetails(BaseModel):
56
56
  class PushedPlaylistDetails(BaseModel):
57
57
  """Player details schema."""
58
58
 
59
- redis_details: dict[SessionId, BucketId] | None = Field(
59
+ bucket_ts: BucketTS | None = Field(
60
60
  default_factory=dict,
61
61
  description="""Pushed playlists does exist in Redis with a timestamp.
62
62
  Example: zone_{zone_id}_pp_bucket_{ts}
63
- Every pushplaylist action has a session id. Here we map these session ids to the bucket id.
64
63
  """,
65
64
  )
66
65
  playlists: list[PlaylistSimple] | None = Field(
@@ -112,7 +111,7 @@ __all__ = [
112
111
  "ZoneState",
113
112
  "NowPlaying",
114
113
  "SessionId",
115
- "BucketId",
114
+ "BucketTS",
116
115
  "PlaylistSimple",
117
116
  "PushedPlaylistDetails",
118
117
  "ScheduleDetails",
@@ -6,7 +6,7 @@ from typing import Literal
6
6
  from uuid import UUID
7
7
 
8
8
 
9
- from artemis_model.redis.zone_state import BucketId, SessionId
9
+ from artemis_model.redis.zone_state import BucketTS, SessionId
10
10
  from artemis_model.schedule import ScheduleItem
11
11
  from pydantic import BaseModel, Field
12
12
 
@@ -88,6 +88,7 @@ class RefreshTrackBucketIn(BaseMessage):
88
88
 
89
89
  action: Action = Action.REFRESH_TRACK_BUCKET
90
90
  zone_id: int
91
+ bucket_ts: BucketTS
91
92
 
92
93
 
93
94
  class RecalculateScheduleIn(BaseMessage):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: artemis-model
3
- Version: 0.1.141
3
+ Version: 0.1.143
4
4
  Summary:
5
5
  Author: Jukeboxy
6
6
  Requires-Python: >=3.10.6,<4.0.0
@@ -13,20 +13,20 @@ 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=O60zlP1LrDkzNrrfNA7TD_kotd5A9i8PuFhwonXFhN0,6559
16
- artemis_model/redis/__init__.py,sha256=CEQ4Vy3lwSlW_Q66nFLGevJr3nRv8Ema59PG0pG6q9I,944
16
+ artemis_model/redis/__init__.py,sha256=hwxNaoTAwFWJxHL6ijp5MOJkapWPv9PEPoY6rtUhCyI,944
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=IdYexbBfBJR9AGtKB5SXFl1fxVY16yYmUXE-feYYT84,634
20
20
  artemis_model/redis/play_history.py,sha256=Jm0guS0UZDxfCXeWJ8vqcjjl93W_EeC7XcBXcclKPiE,1259
21
- artemis_model/redis/zone_state.py,sha256=BzXvKYaxc4DVjBiQ6ILdpv29CSrb249B1Gpi3Uye8fM,3514
21
+ artemis_model/redis/zone_state.py,sha256=FTGluP8w-99IcSqu2QFeDgpwoJUYSAe2XHYA9vvYrEI,3373
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
25
- artemis_model/sqs/messages.py,sha256=2adrdP6pXP-RC_yY150MiC77DbKBDExKyIbXBNg5hE8,2969
25
+ artemis_model/sqs/messages.py,sha256=WhZoEYM1Gl0ee3VCUNaCsomsbShC_B1Qz-aG9y3T6TM,2993
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
29
  artemis_model/zone_activity.py,sha256=BY4iODavY9ceJ5oRChdjjxf26S3U30Yb7Pxm5YRFpCo,1590
30
- artemis_model-0.1.141.dist-info/METADATA,sha256=oatCXoUWwnRLm_Hpys8sROZZ-JWJUGmrFdr46Nui8Bw,3445
31
- artemis_model-0.1.141.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
- artemis_model-0.1.141.dist-info/RECORD,,
30
+ artemis_model-0.1.143.dist-info/METADATA,sha256=9yKNxNrFLAx-Ub6_tZW8nnDIdXaw4NDG6tGXMT_c170,3445
31
+ artemis_model-0.1.143.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
+ artemis_model-0.1.143.dist-info/RECORD,,