mcm-cli 1.7.2__tar.gz → 1.7.4__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.
- {mcm_cli-1.7.2/mcm_cli.egg-info → mcm_cli-1.7.4}/PKG-INFO +1 -1
- {mcm_cli-1.7.2 → mcm_cli-1.7.4/mcm_cli.egg-info}/PKG-INFO +1 -1
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/__main__.py +1 -1
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/wallet.py +13 -10
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/setup.py +1 -1
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/LICENSE +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/NOTICE +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/README.md +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/SOURCES.txt +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/dependency_links.txt +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/entry_points.txt +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/requires.txt +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/top_level.txt +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/__init__.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/account.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/admin.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/auth.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/campaign.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/config.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/decision.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/report.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/account.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/account_user.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/campaign.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/decision.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/error.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/item.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/item_blocking_result.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/platform_user.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/report.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/seller.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/token.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/user_join_request.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/wallet.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/logging.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/requests.py +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/setup.cfg +0 -0
- {mcm_cli-1.7.2 → mcm_cli-1.7.4}/tests/test_config.py +0 -0
@@ -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")
|
@@ -12,11 +12,14 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
from mcmcli.command.auth import AuthCommand, AuthHeaderName, AuthHeaderValue
|
15
|
-
from datetime import datetime,
|
15
|
+
from datetime import datetime, timezone
|
16
16
|
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
|
21
|
+
|
22
|
+
UTC = timezone.utc
|
20
23
|
|
21
24
|
import json
|
22
25
|
import mcmcli.command.auth
|
@@ -252,9 +255,9 @@ class WalletCommand:
|
|
252
255
|
self,
|
253
256
|
to_curl: bool,
|
254
257
|
) -> tuple[
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
+
Optional[CurlString],
|
259
|
+
Optional[Error],
|
260
|
+
Optional[dict[str, WalletsWrapper]]
|
258
261
|
]:
|
259
262
|
_api_url = f"{self.api_base_url}/wallets-bulk/read"
|
260
263
|
|
@@ -273,9 +276,9 @@ class WalletCommand:
|
|
273
276
|
account_id: str,
|
274
277
|
to_curl: bool,
|
275
278
|
) -> tuple[
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
+
Optional[CurlString],
|
280
|
+
Optional[Error],
|
281
|
+
Optional[Wallet],
|
279
282
|
]:
|
280
283
|
_api_url = f"{self.api_base_url}/ad-accounts/{account_id}/wallets"
|
281
284
|
|
@@ -301,9 +304,9 @@ class WalletCommand:
|
|
301
304
|
fund_amount: float,
|
302
305
|
to_curl: bool,
|
303
306
|
) -> tuple[
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
+
Optional[CurlString],
|
308
|
+
Optional[Error],
|
309
|
+
Optional[Wallet],
|
307
310
|
]:
|
308
311
|
if fund_amount <= 0:
|
309
312
|
return None, Error(code=0, message="The fund amount should be greater than zero."), None
|
@@ -18,7 +18,7 @@ from setuptools import setup, find_packages
|
|
18
18
|
|
19
19
|
setup(
|
20
20
|
name='mcm-cli',
|
21
|
-
version='1.7.
|
21
|
+
version='1.7.4',
|
22
22
|
description='A command-line interface for Moloco Commerde Media',
|
23
23
|
long_description=open('README.md').read(),
|
24
24
|
long_description_content_type='text/markdown',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|