ecapi-sdk 3.7.8__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.8 → ecapi_sdk-3.7.9}/PKG-INFO +1 -1
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/pyproject.toml +1 -1
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk/client.py +14 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk/client.pyi +19 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/README.md +0 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/setup.cfg +0 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.7.8 → ecapi_sdk-3.7.9}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -1601,6 +1601,19 @@ class PlayerStatusAPI(_BaseApi):
|
|
|
1601
1601
|
"""查询玩家服内状态"""
|
|
1602
1602
|
return self._get(f"/player-statuses", query, **kwargs)
|
|
1603
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
|
+
|
|
1604
1617
|
class ServerAPI(_BaseApi):
|
|
1605
1618
|
def __init__(self, http: _HttpClient) -> None:
|
|
1606
1619
|
super().__init__(http)
|
|
@@ -2012,6 +2025,7 @@ class ECAPIClient:
|
|
|
2012
2025
|
self.parkour = ParkourAPI(self._http)
|
|
2013
2026
|
self.pit2 = PIT2API(self._http)
|
|
2014
2027
|
self.player = PlayerAPI(self._http)
|
|
2028
|
+
self.player_lottery = PlayerLotteryAPI(self._http)
|
|
2015
2029
|
self.replay = ReplayAPI(self._http)
|
|
2016
2030
|
self.server = ServerAPI(self._http)
|
|
2017
2031
|
self.system = SystemAPI(self._http)
|
|
@@ -1462,6 +1462,19 @@ class PlayerStatusAPIGetQueryRequired(TypedDict):
|
|
|
1462
1462
|
class PlayerStatusAPIGetQuery(PlayerStatusAPIGetQueryRequired, total=False):
|
|
1463
1463
|
pass
|
|
1464
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
|
+
|
|
1465
1478
|
class ServerAPIListQuery(TypedDict, total=False):
|
|
1466
1479
|
filter: QueryValue
|
|
1467
1480
|
min: QueryValue
|
|
@@ -2257,6 +2270,11 @@ class PlayerStatusAPI:
|
|
|
2257
2270
|
def create_query(self, payload: PlayerStatusAPICreateQueryBody, **kwargs: Any) -> Any: ...
|
|
2258
2271
|
def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
|
|
2259
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
|
+
|
|
2260
2278
|
class ServerAPI:
|
|
2261
2279
|
broadcast: ServerBroadcastAPI
|
|
2262
2280
|
config_sync: ServerConfigSyncAPI
|
|
@@ -2422,6 +2440,7 @@ class ECAPIClient:
|
|
|
2422
2440
|
parkour: ParkourAPI
|
|
2423
2441
|
pit2: PIT2API
|
|
2424
2442
|
player: PlayerAPI
|
|
2443
|
+
player_lottery: PlayerLotteryAPI
|
|
2425
2444
|
replay: ReplayAPI
|
|
2426
2445
|
server: ServerAPI
|
|
2427
2446
|
system: SystemAPI
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|