ecapi-sdk 3.7.7__tar.gz → 3.7.8__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.7.7 → ecapi_sdk-3.7.8}/PKG-INFO +1 -1
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/pyproject.toml +1 -1
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk/client.py +22 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk/client.pyi +28 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/README.md +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/setup.cfg +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.8}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -904,10 +904,22 @@ class CatalogAPI(_BaseApi):
|
|
|
904
904
|
"""获取商品类型列表"""
|
|
905
905
|
return self._get(f"/catalog/types", None, **kwargs)
|
|
906
906
|
|
|
907
|
+
def reference_types(self, **kwargs: Any) -> Any:
|
|
908
|
+
"""读取 Möbius 商品引用分类"""
|
|
909
|
+
return self._get(f"/catalog/reference-types", None, **kwargs)
|
|
910
|
+
|
|
911
|
+
def references(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
912
|
+
"""搜索 Möbius 商品引用候选"""
|
|
913
|
+
return self._get(f"/catalog/references", query, **kwargs)
|
|
914
|
+
|
|
907
915
|
def replace_suit_parts(self, id: Union[int, float], payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
908
916
|
"""整体替换套装部件列表"""
|
|
909
917
|
return self._put(f"/catalog/products/{quote(str(id), safe='')}/parts", payload, **kwargs)
|
|
910
918
|
|
|
919
|
+
def resolve_references(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
920
|
+
"""批量解析 Möbius 商品引用"""
|
|
921
|
+
return self._post(f"/catalog/references/resolve", payload, **kwargs)
|
|
922
|
+
|
|
911
923
|
def restore_products(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
912
924
|
"""恢复回收站商品"""
|
|
913
925
|
return self._post(f"/catalog/products/batch-restore", payload, **kwargs)
|
|
@@ -937,6 +949,15 @@ class CatalogSyncAPI(_BaseApi):
|
|
|
937
949
|
"""当前工作区的商品同步建议"""
|
|
938
950
|
return self._get(f"/catalog-sync/suggestions", None, **kwargs)
|
|
939
951
|
|
|
952
|
+
class DisastersAPI(_BaseApi):
|
|
953
|
+
def get_catalog(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
954
|
+
"""获取正式灾难目录"""
|
|
955
|
+
return self._get(f"/disasters/catalog", query, **kwargs)
|
|
956
|
+
|
|
957
|
+
def get_catalog_item(self, disasterId: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
958
|
+
"""获取单项灾难目录详情"""
|
|
959
|
+
return self._get(f"/disasters/catalog/{quote(str(disasterId), safe='')}", query, **kwargs)
|
|
960
|
+
|
|
940
961
|
class GameLogAPI(_BaseApi):
|
|
941
962
|
def get_disaster_events(self, **kwargs: Any) -> Any:
|
|
942
963
|
"""获取灾难事件字典"""
|
|
@@ -1981,6 +2002,7 @@ class ECAPIClient:
|
|
|
1981
2002
|
self.audit = AuditAPI(self._http)
|
|
1982
2003
|
self.auth = AuthAPI(self._http)
|
|
1983
2004
|
self.catalog = CatalogAPI(self._http)
|
|
2005
|
+
self.disasters = DisastersAPI(self._http)
|
|
1984
2006
|
self.game_log = GameLogAPI(self._http)
|
|
1985
2007
|
self.homeland = EchoMelandAPI(self._http)
|
|
1986
2008
|
self.log = LogAPI(self._http)
|
|
@@ -775,6 +775,19 @@ class CatalogAPIListPublishedProductsQuery(TypedDict, total=False):
|
|
|
775
775
|
pageSize: QueryValue
|
|
776
776
|
typeId: QueryValue
|
|
777
777
|
|
|
778
|
+
class CatalogAPIReferencesQuery(TypedDict, total=False):
|
|
779
|
+
search: QueryValue
|
|
780
|
+
category: QueryValue
|
|
781
|
+
typeId: QueryValue
|
|
782
|
+
current: QueryValue
|
|
783
|
+
pageSize: QueryValue
|
|
784
|
+
|
|
785
|
+
class CatalogAPIResolveReferencesBodyRequired(TypedDict):
|
|
786
|
+
productIds: Sequence[Any]
|
|
787
|
+
|
|
788
|
+
class CatalogAPIResolveReferencesBody(CatalogAPIResolveReferencesBodyRequired, total=False):
|
|
789
|
+
pass
|
|
790
|
+
|
|
778
791
|
class CatalogAPICreateTypeBodyRequired(TypedDict):
|
|
779
792
|
typeId: str
|
|
780
793
|
category: str
|
|
@@ -798,6 +811,12 @@ class CatalogSyncAPIApplyBodyRequired(TypedDict):
|
|
|
798
811
|
class CatalogSyncAPIApplyBody(CatalogSyncAPIApplyBodyRequired, total=False):
|
|
799
812
|
dryRun: bool
|
|
800
813
|
|
|
814
|
+
class DisastersAPIGetCatalogQuery(TypedDict, total=False):
|
|
815
|
+
locale: QueryValue
|
|
816
|
+
|
|
817
|
+
class DisastersAPIGetCatalogItemQuery(TypedDict, total=False):
|
|
818
|
+
locale: QueryValue
|
|
819
|
+
|
|
801
820
|
class GameLogAPIGetDisasterMatchesQueryRequired(TypedDict):
|
|
802
821
|
ecid: QueryValue
|
|
803
822
|
|
|
@@ -1395,6 +1414,7 @@ class PlayerRankScoreAPIGetScoreQuery(TypedDict, total=False):
|
|
|
1395
1414
|
season: QueryValue
|
|
1396
1415
|
|
|
1397
1416
|
class PlayerRankScoreAPIGetHistoryQuery(TypedDict, total=False):
|
|
1417
|
+
calculationMode: QueryValue
|
|
1398
1418
|
game: QueryValue
|
|
1399
1419
|
|
|
1400
1420
|
class PlayerRankScoreAPIGetPeriodsQuery(TypedDict, total=False):
|
|
@@ -2017,7 +2037,10 @@ class CatalogAPI:
|
|
|
2017
2037
|
def list_products(self, query: Optional[CatalogAPIListProductsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2018
2038
|
def list_published_products(self, query: Optional[CatalogAPIListPublishedProductsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2019
2039
|
def list_types(self, **kwargs: Any) -> Any: ...
|
|
2040
|
+
def reference_types(self, **kwargs: Any) -> Any: ...
|
|
2041
|
+
def references(self, query: Optional[CatalogAPIReferencesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2020
2042
|
def replace_suit_parts(self, id: Union[int, float], payload: CatalogAPIReplaceSuitPartsBody, **kwargs: Any) -> Any: ...
|
|
2043
|
+
def resolve_references(self, payload: CatalogAPIResolveReferencesBody, **kwargs: Any) -> Any: ...
|
|
2021
2044
|
def restore_products(self, payload: CatalogAPIRestoreProductsBody, **kwargs: Any) -> Any: ...
|
|
2022
2045
|
def update_product(self, id: Union[int, float], payload: CatalogAPIUpdateProductBody, **kwargs: Any) -> Any: ...
|
|
2023
2046
|
def update_type(self, typeId: str, payload: CatalogAPIUpdateTypeBody, **kwargs: Any) -> Any: ...
|
|
@@ -2028,6 +2051,10 @@ class CatalogSyncAPI:
|
|
|
2028
2051
|
def diff(self, **kwargs: Any) -> Any: ...
|
|
2029
2052
|
def suggestions(self, **kwargs: Any) -> Any: ...
|
|
2030
2053
|
|
|
2054
|
+
class DisastersAPI:
|
|
2055
|
+
def get_catalog(self, query: Optional[DisastersAPIGetCatalogQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2056
|
+
def get_catalog_item(self, disasterId: str, query: Optional[DisastersAPIGetCatalogItemQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2057
|
+
|
|
2031
2058
|
class GameLogAPI:
|
|
2032
2059
|
def get_disaster_events(self, **kwargs: Any) -> Any: ...
|
|
2033
2060
|
def get_disaster_match_details(self, stageId: Union[int, float], **kwargs: Any) -> Any: ...
|
|
@@ -2385,6 +2412,7 @@ class ECAPIClient:
|
|
|
2385
2412
|
audit: AuditAPI
|
|
2386
2413
|
auth: AuthAPI
|
|
2387
2414
|
catalog: CatalogAPI
|
|
2415
|
+
disasters: DisastersAPI
|
|
2388
2416
|
game_log: GameLogAPI
|
|
2389
2417
|
homeland: EchoMelandAPI
|
|
2390
2418
|
log: LogAPI
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|