internal 1.0.38__py3-none-any.whl → 1.0.40__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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

@@ -56,7 +56,7 @@ class PermissionDeniedException(InternalBaseException):
56
56
  super().__init__(status.HTTP_403_FORBIDDEN, self.code, _message, **kwargs)
57
57
 
58
58
 
59
- class CustomerValidationException(InternalBaseException):
59
+ class ParamValidationException(InternalBaseException):
60
60
  code = "error_validation"
61
61
  message = "Invalid parameter or incorrect format"
62
62
 
@@ -30,7 +30,7 @@ async def async_response(data=None, message=None, code=None, page_no=None, total
30
30
  elif isinstance(field_type, date):
31
31
  date_field_list.append(field_name)
32
32
 
33
- data = json.loads(data.model_dump_json(exclude="password", by_alias=False))
33
+ data = json.loads(data.model_dump_json(exclude={"password", "meta_data"}, by_alias=False))
34
34
  if link_field_list:
35
35
  for field_name in link_field_list:
36
36
  if isinstance(data[field_name], dict) and "id" in data[field_name].keys():
@@ -1,6 +1,6 @@
1
1
  from datetime import datetime
2
2
 
3
- from typing import List, Tuple, Union, Dict, Type
3
+ from typing import List, Tuple, Union, Dict, Type, Optional
4
4
 
5
5
  import arrow
6
6
  import pymongo
@@ -16,7 +16,7 @@ from ..common_enum.order_type import OrderTypeEnum
16
16
 
17
17
  class InternalBaseDocument(Document):
18
18
  create_time: datetime = Field(default_factory=datetime.utcnow)
19
- update_time: datetime = Field(default_factory=datetime.utcnow)
19
+ update_time: Optional[datetime] = None
20
20
 
21
21
  @classmethod
22
22
  async def get_pagination_list(cls, app: FastAPI, query: list = None, sort: List[Tuple] = None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 1.0.38
3
+ Version: 1.0.40
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -11,22 +11,22 @@ internal/const.py,sha256=U1S9r7bjtHgad2oYQoHO19s8D4V0WDUG-L-haV4UaIw,1025
11
11
  internal/database.py,sha256=atf0iyEqeG97eYr3s4GrTHKM5LjLiKlCNWiuAWoE2vs,2124
12
12
  internal/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  internal/exception/base_exception.py,sha256=U0ZXx1FOXydAnQQImznkeAdsKVC_YaukPWvJdWqEBfg,363
14
- internal/exception/internal_exception.py,sha256=qGvmP0l6uVQVAVdOZh1RxN_Vf_wcxPf_4McL4IgCtbE,2299
14
+ internal/exception/internal_exception.py,sha256=rBi70sDFwoYc2NSnxXQ9LY6r2TnxA7ILC64xjpg5h4c,2296
15
15
  internal/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  internal/ext/amazon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbswOYzhP8,834
18
18
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
19
19
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  internal/http/requests.py,sha256=4Mdu_HIGDEgpgey8IPusqBn9s-3-oYGU0S49NK-khc4,1821
21
- internal/http/responses.py,sha256=SV9TZPNXZnzvPjEtvuHWcZT9tgY0U7N0H3P6fOZlWHk,2541
21
+ internal/http/responses.py,sha256=QR5Tk0Ujs-zsUf1Vp6aP__BpLVG_qpeTedfcLG8a6Bc,2556
22
22
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8rB0MdB5U,1536
24
24
  internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  internal/middleware/log_request.py,sha256=bXAxmvvsYDhObXzfUw4ZNreKAWOo8ee_vpb6Xin5ztc,854
26
26
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- internal/model/base_model.py,sha256=Oc33c8AnPQcJEiEMQM_g3KT1b7iaa1IxgBMavds-_Ns,3010
27
+ internal/model/base_model.py,sha256=xo89gT6X_bdFTIgIONv8cIy5qjVw3rTOMUqpv6kNwok,2996
28
28
  internal/model/operate.py,sha256=luEoP_Asvso_11qz1SAE1Kn5KxAnDRptM0VylC5tNik,1493
29
29
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
30
- internal-1.0.38.dist-info/METADATA,sha256=iOO65ed4lnBudD1D4k8DBPcw_roVuAqpFj6q5yFD33E,625
31
- internal-1.0.38.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- internal-1.0.38.dist-info/RECORD,,
30
+ internal-1.0.40.dist-info/METADATA,sha256=MtGg7FI5HU0pAhKFeACUSkn8zy_0PZVILIVkMknEG4c,625
31
+ internal-1.0.40.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
+ internal-1.0.40.dist-info/RECORD,,