ecapi-sdk 3.2.2__tar.gz → 3.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecapi-sdk"
7
- version = "3.2.2"
7
+ version = "3.2.3"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -282,10 +282,18 @@ class _BaseApi:
282
282
  return self._http.request("DELETE", path, query=query, **request_kwargs, **query_kwargs)
283
283
 
284
284
  class ReplayAPI(_BaseApi):
285
+ def cache_map_profiles(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
286
+ """预热回放地图轮廓缓存"""
287
+ return self._post(f"/replay-map-profiles/cache", payload, **kwargs)
288
+
285
289
  def create_visualization_data_job(self, recordId: Union[int, float], payload: Mapping[str, Any], **kwargs: Any) -> Any:
286
290
  """创建回放结构化数据解析任务"""
287
291
  return self._post(f"/replays/{quote(str(recordId), safe='')}/visualization-data-jobs", payload, **kwargs)
288
292
 
293
+ def get_map_profile(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
294
+ """获取回放地图轮廓"""
295
+ return self._get(f"/replay-map-profiles", query, **kwargs)
296
+
289
297
  def get_replay_record(self, recordId: Union[int, float], **kwargs: Any) -> Any:
290
298
  """获取回放记录"""
291
299
  return self._get(f"/replays/{quote(str(recordId), safe='')}", None, **kwargs)
@@ -10,6 +10,19 @@ Headers = Dict[str, str]
10
10
  AuthCredentials = Dict[str, str]
11
11
  AuthProvider = Callable[[], Union[Optional[AuthCredentials], Awaitable[Optional[AuthCredentials]]]]
12
12
 
13
+ class ReplayAPIGetMapProfileQueryRequired(TypedDict):
14
+ mapPath: QueryValue
15
+
16
+ class ReplayAPIGetMapProfileQuery(ReplayAPIGetMapProfileQueryRequired, total=False):
17
+ includeOverview: QueryValue
18
+ refresh: QueryValue
19
+
20
+ class ReplayAPICacheMapProfilesBody(TypedDict, total=False):
21
+ mapPaths: Sequence[Any]
22
+ prefix: str
23
+ includeOverview: bool
24
+ maxMaps: int
25
+
13
26
  class ReplayAPICreateVisualizationDataJobBody(TypedDict, total=False):
14
27
  includeBlocks: bool
15
28
  includeLandmarks: bool
@@ -821,7 +834,9 @@ class ECAPIError(Exception):
821
834
  def __init__(self, message: str, status: int, payload: Any, url: str) -> None: ...
822
835
 
823
836
  class ReplayAPI:
837
+ def cache_map_profiles(self, payload: ReplayAPICacheMapProfilesBody, **kwargs: Any) -> Any: ...
824
838
  def create_visualization_data_job(self, recordId: Union[int, float], payload: ReplayAPICreateVisualizationDataJobBody, **kwargs: Any) -> Any: ...
839
+ def get_map_profile(self, query: ReplayAPIGetMapProfileQuery, **kwargs: Any) -> Any: ...
825
840
  def get_replay_record(self, recordId: Union[int, float], **kwargs: Any) -> Any: ...
826
841
  def get_visualization_data(self, jobId: str, **kwargs: Any) -> Any: ...
827
842
  def get_visualization_data_job(self, jobId: str, **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes