ecapi-sdk 3.7.7__tar.gz → 3.7.9__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.9}/PKG-INFO +1 -1
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/pyproject.toml +1 -1
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/src/ecapi_sdk/client.py +36 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/src/ecapi_sdk/client.pyi +47 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/README.md +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/setup.cfg +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.7.7 → ecapi_sdk-3.7.9}/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
|
"""获取灾难事件字典"""
|
|
@@ -1580,6 +1601,19 @@ class PlayerStatusAPI(_BaseApi):
|
|
|
1580
1601
|
"""查询玩家服内状态"""
|
|
1581
1602
|
return self._get(f"/player-statuses", query, **kwargs)
|
|
1582
1603
|
|
|
1604
|
+
class PlayerLotteryAPI(_BaseApi):
|
|
1605
|
+
def get_chests(self, **kwargs: Any) -> Any:
|
|
1606
|
+
"""查询主服抽奖箱目录"""
|
|
1607
|
+
return self._get(f"/lottery/chests", None, **kwargs)
|
|
1608
|
+
|
|
1609
|
+
def get_progress(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1610
|
+
"""读取玩家已保存的抽奖保底进度"""
|
|
1611
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/lottery/progress", query, **kwargs)
|
|
1612
|
+
|
|
1613
|
+
def get_records(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1614
|
+
"""分页查询主服各类箱子抽奖记录"""
|
|
1615
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/lottery/records", query, **kwargs)
|
|
1616
|
+
|
|
1583
1617
|
class ServerAPI(_BaseApi):
|
|
1584
1618
|
def __init__(self, http: _HttpClient) -> None:
|
|
1585
1619
|
super().__init__(http)
|
|
@@ -1981,6 +2015,7 @@ class ECAPIClient:
|
|
|
1981
2015
|
self.audit = AuditAPI(self._http)
|
|
1982
2016
|
self.auth = AuthAPI(self._http)
|
|
1983
2017
|
self.catalog = CatalogAPI(self._http)
|
|
2018
|
+
self.disasters = DisastersAPI(self._http)
|
|
1984
2019
|
self.game_log = GameLogAPI(self._http)
|
|
1985
2020
|
self.homeland = EchoMelandAPI(self._http)
|
|
1986
2021
|
self.log = LogAPI(self._http)
|
|
@@ -1990,6 +2025,7 @@ class ECAPIClient:
|
|
|
1990
2025
|
self.parkour = ParkourAPI(self._http)
|
|
1991
2026
|
self.pit2 = PIT2API(self._http)
|
|
1992
2027
|
self.player = PlayerAPI(self._http)
|
|
2028
|
+
self.player_lottery = PlayerLotteryAPI(self._http)
|
|
1993
2029
|
self.replay = ReplayAPI(self._http)
|
|
1994
2030
|
self.server = ServerAPI(self._http)
|
|
1995
2031
|
self.system = SystemAPI(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):
|
|
@@ -1442,6 +1462,19 @@ class PlayerStatusAPIGetQueryRequired(TypedDict):
|
|
|
1442
1462
|
class PlayerStatusAPIGetQuery(PlayerStatusAPIGetQueryRequired, total=False):
|
|
1443
1463
|
pass
|
|
1444
1464
|
|
|
1465
|
+
class PlayerLotteryAPIGetProgressQueryRequired(TypedDict):
|
|
1466
|
+
chestId: QueryValue
|
|
1467
|
+
|
|
1468
|
+
class PlayerLotteryAPIGetProgressQuery(PlayerLotteryAPIGetProgressQueryRequired, total=False):
|
|
1469
|
+
pass
|
|
1470
|
+
|
|
1471
|
+
class PlayerLotteryAPIGetRecordsQuery(TypedDict, total=False):
|
|
1472
|
+
chestId: QueryValue
|
|
1473
|
+
days: QueryValue
|
|
1474
|
+
endTime: QueryValue
|
|
1475
|
+
current: QueryValue
|
|
1476
|
+
pageSize: QueryValue
|
|
1477
|
+
|
|
1445
1478
|
class ServerAPIListQuery(TypedDict, total=False):
|
|
1446
1479
|
filter: QueryValue
|
|
1447
1480
|
min: QueryValue
|
|
@@ -2017,7 +2050,10 @@ class CatalogAPI:
|
|
|
2017
2050
|
def list_products(self, query: Optional[CatalogAPIListProductsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2018
2051
|
def list_published_products(self, query: Optional[CatalogAPIListPublishedProductsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2019
2052
|
def list_types(self, **kwargs: Any) -> Any: ...
|
|
2053
|
+
def reference_types(self, **kwargs: Any) -> Any: ...
|
|
2054
|
+
def references(self, query: Optional[CatalogAPIReferencesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2020
2055
|
def replace_suit_parts(self, id: Union[int, float], payload: CatalogAPIReplaceSuitPartsBody, **kwargs: Any) -> Any: ...
|
|
2056
|
+
def resolve_references(self, payload: CatalogAPIResolveReferencesBody, **kwargs: Any) -> Any: ...
|
|
2021
2057
|
def restore_products(self, payload: CatalogAPIRestoreProductsBody, **kwargs: Any) -> Any: ...
|
|
2022
2058
|
def update_product(self, id: Union[int, float], payload: CatalogAPIUpdateProductBody, **kwargs: Any) -> Any: ...
|
|
2023
2059
|
def update_type(self, typeId: str, payload: CatalogAPIUpdateTypeBody, **kwargs: Any) -> Any: ...
|
|
@@ -2028,6 +2064,10 @@ class CatalogSyncAPI:
|
|
|
2028
2064
|
def diff(self, **kwargs: Any) -> Any: ...
|
|
2029
2065
|
def suggestions(self, **kwargs: Any) -> Any: ...
|
|
2030
2066
|
|
|
2067
|
+
class DisastersAPI:
|
|
2068
|
+
def get_catalog(self, query: Optional[DisastersAPIGetCatalogQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2069
|
+
def get_catalog_item(self, disasterId: str, query: Optional[DisastersAPIGetCatalogItemQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2070
|
+
|
|
2031
2071
|
class GameLogAPI:
|
|
2032
2072
|
def get_disaster_events(self, **kwargs: Any) -> Any: ...
|
|
2033
2073
|
def get_disaster_match_details(self, stageId: Union[int, float], **kwargs: Any) -> Any: ...
|
|
@@ -2230,6 +2270,11 @@ class PlayerStatusAPI:
|
|
|
2230
2270
|
def create_query(self, payload: PlayerStatusAPICreateQueryBody, **kwargs: Any) -> Any: ...
|
|
2231
2271
|
def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
|
|
2232
2272
|
|
|
2273
|
+
class PlayerLotteryAPI:
|
|
2274
|
+
def get_chests(self, **kwargs: Any) -> Any: ...
|
|
2275
|
+
def get_progress(self, ecid: str, query: PlayerLotteryAPIGetProgressQuery, **kwargs: Any) -> Any: ...
|
|
2276
|
+
def get_records(self, ecid: str, query: Optional[PlayerLotteryAPIGetRecordsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2277
|
+
|
|
2233
2278
|
class ServerAPI:
|
|
2234
2279
|
broadcast: ServerBroadcastAPI
|
|
2235
2280
|
config_sync: ServerConfigSyncAPI
|
|
@@ -2385,6 +2430,7 @@ class ECAPIClient:
|
|
|
2385
2430
|
audit: AuditAPI
|
|
2386
2431
|
auth: AuthAPI
|
|
2387
2432
|
catalog: CatalogAPI
|
|
2433
|
+
disasters: DisastersAPI
|
|
2388
2434
|
game_log: GameLogAPI
|
|
2389
2435
|
homeland: EchoMelandAPI
|
|
2390
2436
|
log: LogAPI
|
|
@@ -2394,6 +2440,7 @@ class ECAPIClient:
|
|
|
2394
2440
|
parkour: ParkourAPI
|
|
2395
2441
|
pit2: PIT2API
|
|
2396
2442
|
player: PlayerAPI
|
|
2443
|
+
player_lottery: PlayerLotteryAPI
|
|
2397
2444
|
replay: ReplayAPI
|
|
2398
2445
|
server: ServerAPI
|
|
2399
2446
|
system: SystemAPI
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|