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.
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/PKG-INFO +1 -1
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/pyproject.toml +1 -1
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk/client.py +8 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk/client.pyi +15 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/README.md +0 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/setup.cfg +0 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.2.2 → ecapi_sdk-3.2.3}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -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: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|