ecapi-sdk 3.3.9__tar.gz → 3.3.11__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.3.9 → ecapi_sdk-3.3.11}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk/client.py +19 -3
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk/client.pyi +44 -8
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/README.md +0 -0
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/setup.cfg +0 -0
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.9 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -329,9 +329,13 @@ class PIT2API(_BaseApi):
|
|
|
329
329
|
"""分页查询 PIT2 唯一物品位置"""
|
|
330
330
|
return self._get(f"/pit2/items/{quote(str(itemUuid), safe='')}/locations", query, **kwargs)
|
|
331
331
|
|
|
332
|
-
def get_mails(self,
|
|
333
|
-
"""
|
|
334
|
-
return self._get(f"/pit2/
|
|
332
|
+
def get_mails(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
333
|
+
"""分页查询全服 PIT2 邮件"""
|
|
334
|
+
return self._get(f"/pit2/mails", query, **kwargs)
|
|
335
|
+
|
|
336
|
+
def get_overview(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
337
|
+
"""查询 PIT2 状况总览与支付趋势"""
|
|
338
|
+
return self._get(f"/pit2/overview", query, **kwargs)
|
|
335
339
|
|
|
336
340
|
def get_payments(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
337
341
|
"""分页查询全服 PIT2 支付记录"""
|
|
@@ -345,6 +349,18 @@ class PIT2API(_BaseApi):
|
|
|
345
349
|
"""分页查询全服 PIT2 赛季兑换"""
|
|
346
350
|
return self._get(f"/pit2/gacha-season-exchanges", query, **kwargs)
|
|
347
351
|
|
|
352
|
+
def get_trade_detail(self, tradeUuid: str, **kwargs: Any) -> Any:
|
|
353
|
+
"""查询 PIT2 单笔交易详情"""
|
|
354
|
+
return self._get(f"/pit2/trades/{quote(str(tradeUuid), safe='')}", None, **kwargs)
|
|
355
|
+
|
|
356
|
+
def get_trades(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
357
|
+
"""分页查询全服 PIT2 已完成交易"""
|
|
358
|
+
return self._get(f"/pit2/trades", query, **kwargs)
|
|
359
|
+
|
|
360
|
+
def restore_containers(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
361
|
+
"""同步恢复 PIT2 背包与末影箱备份"""
|
|
362
|
+
return self._post(f"/pit2/players/{quote(str(xuid), safe='')}/container-restorations", payload, **kwargs)
|
|
363
|
+
|
|
348
364
|
def restore_ender_chest(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
349
365
|
"""恢复 PIT2 末影箱备份"""
|
|
350
366
|
return self._post(f"/pit2/players/{quote(str(xuid), safe='')}/ender-chest-restorations", payload, **kwargs)
|
|
@@ -44,12 +44,36 @@ class PIT2APIGetItemLocationsByUuidQuery(TypedDict, total=False):
|
|
|
44
44
|
startTime: QueryValue
|
|
45
45
|
endTime: QueryValue
|
|
46
46
|
|
|
47
|
+
class PIT2APIGetMailsQuery(TypedDict, total=False):
|
|
48
|
+
current: QueryValue
|
|
49
|
+
pageSize: QueryValue
|
|
50
|
+
startTime: QueryValue
|
|
51
|
+
endTime: QueryValue
|
|
52
|
+
xuid: QueryValue
|
|
53
|
+
claimed: QueryValue
|
|
54
|
+
|
|
55
|
+
class PIT2APIGetOverviewQuery(TypedDict, total=False):
|
|
56
|
+
period: QueryValue
|
|
57
|
+
date: QueryValue
|
|
58
|
+
month: QueryValue
|
|
59
|
+
quarter: QueryValue
|
|
60
|
+
|
|
47
61
|
class PIT2APIUpdatePlayerBodyRequired(TypedDict):
|
|
48
62
|
updates: Sequence[Any]
|
|
49
63
|
|
|
50
64
|
class PIT2APIUpdatePlayerBody(PIT2APIUpdatePlayerBodyRequired, total=False):
|
|
51
65
|
pass
|
|
52
66
|
|
|
67
|
+
class PIT2APIRestoreContainersBodyRequired(TypedDict):
|
|
68
|
+
backupUuid: str
|
|
69
|
+
expectedInventoryRevision: str
|
|
70
|
+
expectedEnderChestRevision: str
|
|
71
|
+
|
|
72
|
+
class PIT2APIRestoreContainersBody(PIT2APIRestoreContainersBodyRequired, total=False):
|
|
73
|
+
skipItemUuids: Sequence[Any]
|
|
74
|
+
skipSlots: Sequence[Any]
|
|
75
|
+
force: bool
|
|
76
|
+
|
|
53
77
|
class PIT2APIGetEnderChestQuery(TypedDict, total=False):
|
|
54
78
|
current: QueryValue
|
|
55
79
|
pageSize: QueryValue
|
|
@@ -68,7 +92,9 @@ class PIT2APIRestoreEnderChestBodyRequired(TypedDict):
|
|
|
68
92
|
expectedRevision: str
|
|
69
93
|
|
|
70
94
|
class PIT2APIRestoreEnderChestBody(PIT2APIRestoreEnderChestBodyRequired, total=False):
|
|
71
|
-
|
|
95
|
+
skipItemUuids: Sequence[Any]
|
|
96
|
+
skipSlots: Sequence[Any]
|
|
97
|
+
force: bool
|
|
72
98
|
|
|
73
99
|
class PIT2APIGetInventoryQuery(TypedDict, total=False):
|
|
74
100
|
current: QueryValue
|
|
@@ -88,7 +114,9 @@ class PIT2APIRestoreInventoryBodyRequired(TypedDict):
|
|
|
88
114
|
expectedRevision: str
|
|
89
115
|
|
|
90
116
|
class PIT2APIRestoreInventoryBody(PIT2APIRestoreInventoryBodyRequired, total=False):
|
|
91
|
-
|
|
117
|
+
skipItemUuids: Sequence[Any]
|
|
118
|
+
skipSlots: Sequence[Any]
|
|
119
|
+
force: bool
|
|
92
120
|
|
|
93
121
|
class PIT2APISearchPlayerItemLocationsQuery(TypedDict, total=False):
|
|
94
122
|
current: QueryValue
|
|
@@ -102,11 +130,6 @@ class PIT2APISearchPlayerItemLocationsBodyRequired(TypedDict):
|
|
|
102
130
|
class PIT2APISearchPlayerItemLocationsBody(PIT2APISearchPlayerItemLocationsBodyRequired, total=False):
|
|
103
131
|
pass
|
|
104
132
|
|
|
105
|
-
class PIT2APIGetMailsQuery(TypedDict, total=False):
|
|
106
|
-
current: QueryValue
|
|
107
|
-
pageSize: QueryValue
|
|
108
|
-
claimed: QueryValue
|
|
109
|
-
|
|
110
133
|
class PIT2APISendMailBodyRequired(TypedDict):
|
|
111
134
|
title: str
|
|
112
135
|
|
|
@@ -118,6 +141,15 @@ class PIT2APISendMailBody(PIT2APISendMailBodyRequired, total=False):
|
|
|
118
141
|
renown: int
|
|
119
142
|
items: Sequence[Any]
|
|
120
143
|
|
|
144
|
+
class PIT2APIGetTradesQuery(TypedDict, total=False):
|
|
145
|
+
current: QueryValue
|
|
146
|
+
pageSize: QueryValue
|
|
147
|
+
startTime: QueryValue
|
|
148
|
+
endTime: QueryValue
|
|
149
|
+
xuid: QueryValue
|
|
150
|
+
recentOnly: QueryValue
|
|
151
|
+
giftOnly: QueryValue
|
|
152
|
+
|
|
121
153
|
class ReplayAPIGetMapBlockIndexQueryRequired(TypedDict):
|
|
122
154
|
mapPath: QueryValue
|
|
123
155
|
|
|
@@ -1016,10 +1048,14 @@ class PIT2API:
|
|
|
1016
1048
|
def get_event_queue(self, **kwargs: Any) -> Any: ...
|
|
1017
1049
|
def get_inventory(self, xuid: str, query: Optional[PIT2APIGetInventoryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1018
1050
|
def get_item_locations_by_uuid(self, itemUuid: str, query: Optional[PIT2APIGetItemLocationsByUuidQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1019
|
-
def get_mails(self,
|
|
1051
|
+
def get_mails(self, query: Optional[PIT2APIGetMailsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1052
|
+
def get_overview(self, query: Optional[PIT2APIGetOverviewQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1020
1053
|
def get_payments(self, query: Optional[PIT2APIGetPaymentsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1021
1054
|
def get_player(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
1022
1055
|
def get_season_exchanges(self, query: Optional[PIT2APIGetSeasonExchangesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1056
|
+
def get_trade_detail(self, tradeUuid: str, **kwargs: Any) -> Any: ...
|
|
1057
|
+
def get_trades(self, query: Optional[PIT2APIGetTradesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1058
|
+
def restore_containers(self, xuid: str, payload: PIT2APIRestoreContainersBody, **kwargs: Any) -> Any: ...
|
|
1023
1059
|
def restore_ender_chest(self, xuid: str, payload: PIT2APIRestoreEnderChestBody, **kwargs: Any) -> Any: ...
|
|
1024
1060
|
def restore_inventory(self, xuid: str, payload: PIT2APIRestoreInventoryBody, **kwargs: Any) -> Any: ...
|
|
1025
1061
|
def search_player_item_locations(self, xuid: str, payload: PIT2APISearchPlayerItemLocationsBody, query: Optional[PIT2APISearchPlayerItemLocationsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|