maleo-foundation 0.0.36__py3-none-any.whl → 0.0.37__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.
@@ -1,8 +1,33 @@
1
1
  import re
2
+ from uuid import UUID
3
+ from maleo_foundation.models.enums import BaseEnums
4
+ from maleo_foundation.models.types import BaseTypes
2
5
 
3
6
  EMAIL_REGEX:str = r"^[^\s@]+@[^\s@]+\.[^\s@]+$"
4
7
  TOKEN_COOKIE_KEY_NAME="token"
5
8
  REFRESH_TOKEN_DURATION_DAYS:int = 7
6
9
  ACCESS_TOKEN_DURATION_MINUTES:int = 5
7
10
  SORT_COLUMN_PATTERN = re.compile(r'^[a-z_]+\.(asc|desc)$')
8
- DATE_FILTER_PATTERN = re.compile(r'^[a-z_]+(?:\|from::\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2}))?(?:\|to::\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2}))?$')
11
+ DATE_FILTER_PATTERN = re.compile(r'^[a-z_]+(?:\|from::\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2}))?(?:\|to::\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2}))?$')
12
+ STATUS_UPDATE_CRITERIAS:dict[
13
+ BaseEnums.StatusUpdateAction,
14
+ BaseTypes.OptionalListOfStatuses
15
+ ] = {
16
+ BaseEnums.StatusUpdateAction.DELETE: None,
17
+ BaseEnums.StatusUpdateAction.RESTORE: None,
18
+ BaseEnums.StatusUpdateAction.DEACTIVATE: [
19
+ BaseEnums.StatusType.INACTIVE,
20
+ BaseEnums.StatusType.ACTIVE,
21
+ ],
22
+ BaseEnums.StatusUpdateAction.ACTIVATE: [
23
+ BaseEnums.StatusType.INACTIVE,
24
+ BaseEnums.StatusType.ACTIVE,
25
+ ]
26
+ }
27
+ IDENTIFIER_TYPE_VALUE_PAIR_MAP:dict[
28
+ BaseEnums.IdentifierTypes,
29
+ object
30
+ ] = {
31
+ BaseEnums.IdentifierTypes.ID: int,
32
+ BaseEnums.IdentifierTypes.UUID: UUID
33
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.36
3
+ Version: 0.0.37
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
1
  maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- maleo_foundation/constants.py,sha256=l6WQp0nu2y4Ucs8bFcEdzVUJfR1dRM_nveuHGMhe3rY,424
2
+ maleo_foundation/constants.py,sha256=EVmVlI7jLeCoC3-qsYh9xB67dNBP7nqpc0gjz1EFin8,1178
3
3
  maleo_foundation/controller.py,sha256=Z5WbsrkTFYqC7GrnXR-gsqTN6IC_jz-wrOK3mU4GaU0,3005
4
4
  maleo_foundation/query.py,sha256=theAgfJy88CsNeloApotzTsJMSG8j2v3CykMGrVR2PI,3864
5
5
  maleo_foundation/clients/__init__.py,sha256=W8vydJYeDEi6gdmOZSBFSSDsfZJtb8C05CHErZgsZ30,188
@@ -50,7 +50,7 @@ maleo_foundation/utils/exceptions.py,sha256=mcvBwHm6uWpVQkPtO1T2j-GaTYEiyPOeGxiD
50
50
  maleo_foundation/utils/logger.py,sha256=ICrFi0MxuAjDy8KTRL7pex1miwzZqZX-HHArgN3niJM,2453
51
51
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
52
52
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
53
- maleo_foundation-0.0.36.dist-info/METADATA,sha256=PNjCr3NshK-8uz9luYfVp8zohxS0NKa4UHTBd23uJMk,3160
54
- maleo_foundation-0.0.36.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
- maleo_foundation-0.0.36.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
- maleo_foundation-0.0.36.dist-info/RECORD,,
53
+ maleo_foundation-0.0.37.dist-info/METADATA,sha256=2PRxXo8epMgieKl9AVKDXG7kvFVl6CNh8cjAMpkE_R0,3160
54
+ maleo_foundation-0.0.37.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
+ maleo_foundation-0.0.37.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
+ maleo_foundation-0.0.37.dist-info/RECORD,,