ecapi-sdk 3.3.17__tar.gz → 3.3.18__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.17
3
+ Version: 3.3.18
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecapi-sdk"
7
- version = "3.3.17"
7
+ version = "3.3.18"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -486,6 +486,7 @@ class AdminAPI(_BaseApi):
486
486
  self.player_data = AdminPlayerDataAPI(http)
487
487
  self.player_merchandise = AdminPlayerMerchandiseAPI(http)
488
488
  self.player_task = AdminPlayerTaskAPI(http)
489
+ self.player_wallet = AdminPlayerWalletAPI(http)
489
490
  self.punishment = AdminPunishmentAPI(http)
490
491
  self.source_account_binding = AdminSourceAccountBindingAPI(http)
491
492
  self.vote_reward_mail = AdminVoteRewardMailAPI(http)
@@ -583,6 +584,10 @@ class AdminPlayerTaskAPI(_BaseApi):
583
584
  """删除玩家任务"""
584
585
  return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/tasks/{quote(str(category), safe='')}/{quote(str(taskId), safe='')}", None, **kwargs)
585
586
 
587
+ def find_owners(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
588
+ """按任务反查玩家 ECID"""
589
+ return self._get(f"/admin/tasks/owners", query, **kwargs)
590
+
586
591
  def list(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
587
592
  """查询玩家任务"""
588
593
  return self._get(f"/admin/players/{quote(str(ecid), safe='')}/tasks", query, **kwargs)
@@ -591,6 +596,15 @@ class AdminPlayerTaskAPI(_BaseApi):
591
596
  """更新玩家任务"""
592
597
  return self._patch(f"/admin/players/{quote(str(ecid), safe='')}/tasks/{quote(str(category), safe='')}/{quote(str(taskId), safe='')}", payload, **kwargs)
593
598
 
599
+ class AdminPlayerWalletAPI(_BaseApi):
600
+ def find_owners(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
601
+ """按钱包币种反查玩家 ECID"""
602
+ return self._get(f"/admin/wallet/owners", query, **kwargs)
603
+
604
+ def get(self, ecid: str, **kwargs: Any) -> Any:
605
+ """获取玩家钱包管理视图"""
606
+ return self._get(f"/admin/players/{quote(str(ecid), safe='')}/wallet", None, **kwargs)
607
+
594
608
  class AdminPunishmentAPI(_BaseApi):
595
609
  def clear_degree(self, ecid: str, **kwargs: Any) -> Any:
596
610
  """清空玩家违规次数"""
@@ -350,6 +350,23 @@ class AdminPlayerTaskAPIUpdateBodyRequired(TypedDict):
350
350
  class AdminPlayerTaskAPIUpdateBody(AdminPlayerTaskAPIUpdateBodyRequired, total=False):
351
351
  pass
352
352
 
353
+ class AdminPlayerTaskAPIFindOwnersQueryRequired(TypedDict):
354
+ category: QueryValue
355
+ taskId: QueryValue
356
+
357
+ class AdminPlayerTaskAPIFindOwnersQuery(AdminPlayerTaskAPIFindOwnersQueryRequired, total=False):
358
+ data: QueryValue
359
+ current: QueryValue
360
+ pageSize: QueryValue
361
+
362
+ class AdminPlayerWalletAPIFindOwnersQueryRequired(TypedDict):
363
+ currency: QueryValue
364
+
365
+ class AdminPlayerWalletAPIFindOwnersQuery(AdminPlayerWalletAPIFindOwnersQueryRequired, total=False):
366
+ balance: QueryValue
367
+ current: QueryValue
368
+ pageSize: QueryValue
369
+
353
370
  class AdminPunishmentAPICreateBodyRequired(TypedDict):
354
371
  type: str
355
372
  source: str
@@ -1118,6 +1135,7 @@ class AdminAPI:
1118
1135
  player_data: AdminPlayerDataAPI
1119
1136
  player_merchandise: AdminPlayerMerchandiseAPI
1120
1137
  player_task: AdminPlayerTaskAPI
1138
+ player_wallet: AdminPlayerWalletAPI
1121
1139
  punishment: AdminPunishmentAPI
1122
1140
  source_account_binding: AdminSourceAccountBindingAPI
1123
1141
  vote_reward_mail: AdminVoteRewardMailAPI
@@ -1160,9 +1178,14 @@ class AdminPlayerMerchandiseAPI:
1160
1178
  class AdminPlayerTaskAPI:
1161
1179
  def create(self, ecid: str, payload: AdminPlayerTaskAPICreateBody, **kwargs: Any) -> Any: ...
1162
1180
  def delete_one(self, ecid: str, category: str, taskId: str, **kwargs: Any) -> Any: ...
1181
+ def find_owners(self, query: AdminPlayerTaskAPIFindOwnersQuery, **kwargs: Any) -> Any: ...
1163
1182
  def list(self, ecid: str, query: Optional[AdminPlayerTaskAPIListQuery] = ..., **kwargs: Any) -> Any: ...
1164
1183
  def update(self, ecid: str, category: str, taskId: str, payload: AdminPlayerTaskAPIUpdateBody, **kwargs: Any) -> Any: ...
1165
1184
 
1185
+ class AdminPlayerWalletAPI:
1186
+ def find_owners(self, query: AdminPlayerWalletAPIFindOwnersQuery, **kwargs: Any) -> Any: ...
1187
+ def get(self, ecid: str, **kwargs: Any) -> Any: ...
1188
+
1166
1189
  class AdminPunishmentAPI:
1167
1190
  def clear_degree(self, ecid: str, **kwargs: Any) -> Any: ...
1168
1191
  def create(self, ecid: str, payload: AdminPunishmentAPICreateBody, **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.17
3
+ Version: 3.3.18
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes