maleo-identity 0.0.83__py3-none-any.whl → 0.0.85__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,4 +1,5 @@
1
1
  from typing import Callable, Dict
2
+ from uuid import UUID
2
3
  from maleo.soma.schemas.resource import Resource, ResourceIdentifier
3
4
  from maleo.identity.enums.user_profile import IdentifierType, ValidImageMimeType
4
5
  from maleo.identity.types.base.user_profile import IdentifierValueType
@@ -6,6 +7,8 @@ from maleo.identity.types.base.user_profile import IdentifierValueType
6
7
  IDENTIFIER_TYPE_VALUE_TYPE_MAP: Dict[
7
8
  IdentifierType, Callable[..., IdentifierValueType]
8
9
  ] = {
10
+ IdentifierType.ID: int,
11
+ IdentifierType.UUID: UUID,
9
12
  IdentifierType.USER_ID: int,
10
13
  IdentifierType.ID_CARD: str,
11
14
  }
@@ -2,6 +2,8 @@ from enum import StrEnum
2
2
 
3
3
 
4
4
  class IdentifierType(StrEnum):
5
+ ID = "id"
6
+ UUID = "uuid"
5
7
  USER_ID = "user_id"
6
8
  ID_CARD = "id_card"
7
9
 
@@ -1,4 +1,5 @@
1
1
  from typing import Union
2
+ from uuid import UUID
2
3
 
3
4
 
4
- IdentifierValueType = Union[int, str]
5
+ IdentifierValueType = Union[int, UUID, str]
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-identity
3
- Version: 0.0.83
3
+ Version: 0.0.85
4
4
  Summary: MaleoIdentity service package
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
7
7
  Requires-Python: >=3.7
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: maleo_soma>=0.1.84
10
- Requires-Dist: maleo_metadata>=0.2.40
9
+ Requires-Dist: maleo_soma>=0.1.85
10
+ Requires-Dist: maleo_metadata>=0.2.41
11
11
 
12
12
  # README #
13
13
 
@@ -18,7 +18,7 @@ maleo/identity/constants/organization_role.py,sha256=lDuPYcjEyug7NGWak5oKHsnCFIc
18
18
  maleo/identity/constants/user.py,sha256=cQ7ThRMaldczONTx-TUdeZqaQJegJ2zD4F_8Y3Eme7A,859
19
19
  maleo/identity/constants/user_organization.py,sha256=Ujh2ZQbrH2WryIdmLpKiuQAt7418vxbG4_DtHSlfTtY,2247
20
20
  maleo/identity/constants/user_organization_role.py,sha256=FhWRyJ6whVRPD7-SqfpCqJtMfh-oFsjTX2AUoxAeJpI,1719
21
- maleo/identity/constants/user_profile.py,sha256=HGqRx_PQQQYtGuAJtWQhtOvo1MaClgKFiD9XuH1fwCA,780
21
+ maleo/identity/constants/user_profile.py,sha256=DVl6dwUAWTMegQiwyvbC5l9Gb22s2otii9nNb1Elfqg,861
22
22
  maleo/identity/constants/user_system_role.py,sha256=ifHNZvvRbLoTc-bzL5_nCvobR0jwHsnSm6-UYq0QDzw,474
23
23
  maleo/identity/dtos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  maleo/identity/dtos/configuration.py,sha256=gCsLhgmXjhsPCv0n80QHW7f4AlV1I-kbvZCuOW2c_Ss,473
@@ -34,7 +34,7 @@ maleo/identity/enums/organization_role.py,sha256=NQuFLyv-pHnMBNNDGPN_7EFz3vxvTNu
34
34
  maleo/identity/enums/user.py,sha256=UBLek1aJUPnZNyPMSaHKDPbtvvbbOursBGycr6g8ad8,385
35
35
  maleo/identity/enums/user_organization.py,sha256=q9weTEryo2OEy0XUVXwcjNX1TsdiT-ajXbIDcuqaRI8,440
36
36
  maleo/identity/enums/user_organization_role.py,sha256=eRKwJ1_FighU2iOdnvN_2ZUvRHHIA2DWn-0ip3Ls10I,494
37
- maleo/identity/enums/user_profile.py,sha256=2AR_m2nf3lksz0DSr-C-1gaWAYgYbpbou4ILyYsO4UM,297
37
+ maleo/identity/enums/user_profile.py,sha256=n2Ns6GtK2DbJbHgJ7Ti8tLFy_0UqhrF9G4KxdlTy5x4,329
38
38
  maleo/identity/enums/user_system_role.py,sha256=bmaHE6f1RoxavUhl1bR8_dL9KF_4DftohvOLHMvwg-g,91
39
39
  maleo/identity/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  maleo/identity/mixins/organization.py,sha256=TWL7hIp7uvE5UD_3FpEXJvpJVhXki_yIHEoS552MsxQ,418
@@ -98,8 +98,8 @@ maleo/identity/types/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
98
98
  maleo/identity/types/base/organization.py,sha256=wLu9QcVDfiMke3-Smfs-LI3zV5QiMuCKkoa0CCRmh4s,93
99
99
  maleo/identity/types/base/organization_registration_code.py,sha256=V8cct7fTIO-OT7RoYuui__oblyIUzFdQWOwHfhflpUc,87
100
100
  maleo/identity/types/base/user.py,sha256=wLu9QcVDfiMke3-Smfs-LI3zV5QiMuCKkoa0CCRmh4s,93
101
- maleo/identity/types/base/user_profile.py,sha256=E81XLbjJ8szrnPRA09VILrr4at4mKWJLeGOfYWLnWPQ,65
102
- maleo_identity-0.0.83.dist-info/METADATA,sha256=lAlPT2ibjYq9GXIUW2vtq1YcfYz1QvgUAJ7J-22_UP0,862
103
- maleo_identity-0.0.83.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
104
- maleo_identity-0.0.83.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
105
- maleo_identity-0.0.83.dist-info/RECORD,,
101
+ maleo/identity/types/base/user_profile.py,sha256=wLu9QcVDfiMke3-Smfs-LI3zV5QiMuCKkoa0CCRmh4s,93
102
+ maleo_identity-0.0.85.dist-info/METADATA,sha256=K1OXR9NzoKqJ1RWq1B8pfXwmvpRZjSphupd_1iOJokw,862
103
+ maleo_identity-0.0.85.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
104
+ maleo_identity-0.0.85.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
105
+ maleo_identity-0.0.85.dist-info/RECORD,,