mcm-cli 1.7.3__py3-none-any.whl → 1.7.4__py3-none-any.whl
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.
- {mcm_cli-1.7.3.dist-info → mcm_cli-1.7.4.dist-info}/METADATA +1 -1
- {mcm_cli-1.7.3.dist-info → mcm_cli-1.7.4.dist-info}/RECORD +9 -9
- mcmcli/__main__.py +1 -1
- mcmcli/command/wallet.py +10 -9
- {mcm_cli-1.7.3.dist-info → mcm_cli-1.7.4.dist-info}/LICENSE +0 -0
- {mcm_cli-1.7.3.dist-info → mcm_cli-1.7.4.dist-info}/NOTICE +0 -0
- {mcm_cli-1.7.3.dist-info → mcm_cli-1.7.4.dist-info}/WHEEL +0 -0
- {mcm_cli-1.7.3.dist-info → mcm_cli-1.7.4.dist-info}/entry_points.txt +0 -0
- {mcm_cli-1.7.3.dist-info → mcm_cli-1.7.4.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
mcmcli/__init__.py,sha256=-U6lMZ9_99IXAKwnqnYXYr6NcO6TSmG-kxewgvJjU4k,575
|
2
|
-
mcmcli/__main__.py,sha256=
|
2
|
+
mcmcli/__main__.py,sha256=0FXplK466UTk7oohAIKgHXf_bQdQAxYtUhoS9vKnpdw,1844
|
3
3
|
mcmcli/logging.py,sha256=xjRS5ey1ONx_d34qB1Fetb_SwPysoh2hzNDuNAaYYWQ,1739
|
4
4
|
mcmcli/requests.py,sha256=IuySBQ8P_GoGF3f_TRysfgQNOhi2n9M84WK_eRXnoEU,2945
|
5
5
|
mcmcli/command/account.py,sha256=FWXmzOLj4rVLVLEv-w0eDVlQVrkONvR1UewZbcTDgE4,24994
|
@@ -9,7 +9,7 @@ mcmcli/command/campaign.py,sha256=eHE_i1lRlUuU1GeVMwXkJgBU_zOgU-b9Wo0SYC9TK7M,15
|
|
9
9
|
mcmcli/command/config.py,sha256=08C5ftAvdvpQ26Z329LqhP8AxTI629LS7Ou6glzrRgw,4396
|
10
10
|
mcmcli/command/decision.py,sha256=L54-Uw-CyXELOIGMv464fxjaSFKCgqJGEKXFjqBDFIg,9285
|
11
11
|
mcmcli/command/report.py,sha256=N8IMyDZ5QpY11-KkZG-n5_ZzEeh-ME5s2s3wrAKEGjY,5387
|
12
|
-
mcmcli/command/wallet.py,sha256=
|
12
|
+
mcmcli/command/wallet.py,sha256=b7X4lLOoDMg2ItyyRPawtiA_p-r7dSsRcHNhCAmBjyc,11616
|
13
13
|
mcmcli/data/account.py,sha256=pe7tPapP6vlUD5D5L5Nh5k2bkWdYOK01Mpt5fBYFnJs,1782
|
14
14
|
mcmcli/data/account_user.py,sha256=27nQp52nMma5a3QszSJGqgq5Z0ivIb-nMZcZuhEgbEg,1328
|
15
15
|
mcmcli/data/campaign.py,sha256=pZDeSkIMWQhcgi2seDpD8xeSP3E78-_7fV5f-ObvfW4,3557
|
@@ -23,10 +23,10 @@ mcmcli/data/seller.py,sha256=40SA7QekM3a3svDrDYLo_QYJ68VUxDO0KeGejJMp4k4,1004
|
|
23
23
|
mcmcli/data/token.py,sha256=11wtyLHCAZHu0LVbNDPa-yipcL6lenxoYIKEI58VzFs,1744
|
24
24
|
mcmcli/data/user_join_request.py,sha256=lXMO2hE_VpRg0JofVrYAVM82S-RLFkPrZk8-drvhoDI,1251
|
25
25
|
mcmcli/data/wallet.py,sha256=eMUi8N0vJdg_E10TPhSPoZkZtmIG7gHyqgabQ8C5Lg8,3217
|
26
|
-
mcm_cli-1.7.
|
27
|
-
mcm_cli-1.7.
|
28
|
-
mcm_cli-1.7.
|
29
|
-
mcm_cli-1.7.
|
30
|
-
mcm_cli-1.7.
|
31
|
-
mcm_cli-1.7.
|
32
|
-
mcm_cli-1.7.
|
26
|
+
mcm_cli-1.7.4.dist-info/LICENSE,sha256=RFhQPdSOiMTguUX7JSoIuTxA7HVzCbj_p8WU36HjUQQ,10947
|
27
|
+
mcm_cli-1.7.4.dist-info/METADATA,sha256=vCnhmvaYVl7Dk-QHG96r0fGNnd0MAANmkt05DgqKPDI,3056
|
28
|
+
mcm_cli-1.7.4.dist-info/NOTICE,sha256=Ldnl2MjRaXPxcldUdbI2NTybq60XAa2LowRhFrRTuiI,76
|
29
|
+
mcm_cli-1.7.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
30
|
+
mcm_cli-1.7.4.dist-info/entry_points.txt,sha256=qTHAWZ-ejSiU4t11RYwtAU8ScqhQPDeMVTG9y4wMVLg,60
|
31
|
+
mcm_cli-1.7.4.dist-info/top_level.txt,sha256=sh7oqIaqLQlMtKHlxHHgpV2xGMrBMPFWpSp0C6nvJ_Y,7
|
32
|
+
mcm_cli-1.7.4.dist-info/RECORD,,
|
mcmcli/__main__.py
CHANGED
@@ -37,7 +37,7 @@ def version():
|
|
37
37
|
"""
|
38
38
|
Show the tool version
|
39
39
|
"""
|
40
|
-
typer.echo(f"Version: mcm-cli v1.7.
|
40
|
+
typer.echo(f"Version: mcm-cli v1.7.4")
|
41
41
|
|
42
42
|
app.add_typer(mcmcli.command.account.app, name="account", help="Ad account management")
|
43
43
|
app.add_typer(mcmcli.command.admin.app, name="admin", help="Platform administration")
|
mcmcli/command/wallet.py
CHANGED
@@ -17,6 +17,7 @@ from enum import Enum
|
|
17
17
|
from mcmcli.data.error import Error
|
18
18
|
from mcmcli.data.wallet import Wallet, WalletsWrapper, PlatformWalletsWrapper
|
19
19
|
from mcmcli.requests import CurlString, api_request
|
20
|
+
from typing import Optional
|
20
21
|
|
21
22
|
UTC = timezone.utc
|
22
23
|
|
@@ -254,9 +255,9 @@ class WalletCommand:
|
|
254
255
|
self,
|
255
256
|
to_curl: bool,
|
256
257
|
) -> tuple[
|
257
|
-
|
258
|
-
|
259
|
-
|
258
|
+
Optional[CurlString],
|
259
|
+
Optional[Error],
|
260
|
+
Optional[dict[str, WalletsWrapper]]
|
260
261
|
]:
|
261
262
|
_api_url = f"{self.api_base_url}/wallets-bulk/read"
|
262
263
|
|
@@ -275,9 +276,9 @@ class WalletCommand:
|
|
275
276
|
account_id: str,
|
276
277
|
to_curl: bool,
|
277
278
|
) -> tuple[
|
278
|
-
|
279
|
-
|
280
|
-
|
279
|
+
Optional[CurlString],
|
280
|
+
Optional[Error],
|
281
|
+
Optional[Wallet],
|
281
282
|
]:
|
282
283
|
_api_url = f"{self.api_base_url}/ad-accounts/{account_id}/wallets"
|
283
284
|
|
@@ -303,9 +304,9 @@ class WalletCommand:
|
|
303
304
|
fund_amount: float,
|
304
305
|
to_curl: bool,
|
305
306
|
) -> tuple[
|
306
|
-
|
307
|
-
|
308
|
-
|
307
|
+
Optional[CurlString],
|
308
|
+
Optional[Error],
|
309
|
+
Optional[Wallet],
|
309
310
|
]:
|
310
311
|
if fund_amount <= 0:
|
311
312
|
return None, Error(code=0, message="The fund amount should be greater than zero."), None
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|