ecapi-sdk 3.2.4__tar.gz → 3.2.6__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.4
3
+ Version: 3.2.6
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.4"
7
+ version = "3.2.6"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -306,6 +306,10 @@ class ReplayAPI(_BaseApi):
306
306
  """查询回放结构化数据任务"""
307
307
  return self._get(f"/replay-visualization-data-jobs/{quote(str(jobId), safe='')}", None, **kwargs)
308
308
 
309
+ def list_replay_records(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
310
+ """分页查询玩家回放记录"""
311
+ return self._get(f"/replays", query, **kwargs)
312
+
309
313
  class AdminAPI(_BaseApi):
310
314
  def __init__(self, http: _HttpClient) -> None:
311
315
  super().__init__(http)
@@ -23,6 +23,15 @@ class ReplayAPICacheMapProfilesBody(TypedDict, total=False):
23
23
  includeOverview: bool
24
24
  maxMaps: int
25
25
 
26
+ class ReplayAPIListReplayRecordsQueryRequired(TypedDict):
27
+ ecid: QueryValue
28
+
29
+ class ReplayAPIListReplayRecordsQuery(ReplayAPIListReplayRecordsQueryRequired, total=False):
30
+ days: QueryValue
31
+ current: QueryValue
32
+ pageSize: QueryValue
33
+ gamePrefix: QueryValue
34
+
26
35
  class ReplayAPICreateVisualizationDataJobBody(TypedDict, total=False):
27
36
  includeBlocks: bool
28
37
  includeLandmarks: bool
@@ -840,6 +849,7 @@ class ReplayAPI:
840
849
  def get_replay_record(self, recordId: Union[int, float], **kwargs: Any) -> Any: ...
841
850
  def get_visualization_data(self, jobId: str, **kwargs: Any) -> Any: ...
842
851
  def get_visualization_data_job(self, jobId: str, **kwargs: Any) -> Any: ...
852
+ def list_replay_records(self, query: ReplayAPIListReplayRecordsQuery, **kwargs: Any) -> Any: ...
843
853
 
844
854
  class AdminAPI:
845
855
  account: AdminAccountAPI
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.2.4
3
+ Version: 3.2.6
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes