maleo-identity 0.0.85__tar.gz → 0.0.86__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.
Potentially problematic release.
This version of maleo-identity might be problematic. Click here for more details.
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/PKG-INFO +3 -3
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/user_profile.py +2 -2
- maleo_identity-0.0.86/maleo/identity/schemas/parameter/general/organization.py +92 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/organization_registration_code.py +33 -1
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/user.py +51 -2
- maleo_identity-0.0.86/maleo/identity/schemas/parameter/general/user_profile.py +119 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo_identity.egg-info/PKG-INFO +3 -3
- maleo_identity-0.0.86/maleo_identity.egg-info/requires.txt +2 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/pyproject.toml +3 -3
- maleo_identity-0.0.85/maleo/identity/schemas/parameter/general/organization.py +0 -43
- maleo_identity-0.0.85/maleo/identity/schemas/parameter/general/user_profile.py +0 -70
- maleo_identity-0.0.85/maleo_identity.egg-info/requires.txt +0 -2
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/README.md +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/manager.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/db.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/dtos/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/dtos/configuration.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/dtos/data/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/dtos/data/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/dtos/data/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/dtos/settings.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/general.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/metadata/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/metadata/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/user_organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/user_organization_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/user_system_role.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/types/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/types/base/__init__.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/types/base/organization.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/types/base/organization_registration_code.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/types/base/user.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/types/base/user_profile.py +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo_identity.egg-info/SOURCES.txt +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo_identity.egg-info/top_level.txt +0 -0
- {maleo_identity-0.0.85 → maleo_identity-0.0.86}/setup.cfg +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-identity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.86
|
|
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.
|
|
10
|
-
Requires-Dist: maleo_metadata>=0.2.
|
|
9
|
+
Requires-Dist: maleo_soma>=0.1.90
|
|
10
|
+
Requires-Dist: maleo_metadata>=0.2.46
|
|
11
11
|
|
|
12
12
|
# README #
|
|
13
13
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
from typing import List, Literal, Optional, overload
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
from maleo.soma.constants import ALL_STATUSES
|
|
4
|
+
from maleo.soma.mixins.general import OptionalParentId
|
|
5
|
+
from maleo.soma.mixins.parameter import (
|
|
6
|
+
IdentifierType as IdentifierTypeMixin,
|
|
7
|
+
IdentifierValue as IdentifierValueMixin,
|
|
8
|
+
)
|
|
9
|
+
from maleo.soma.schemas.parameter.general import (
|
|
10
|
+
ReadSingleQueryParameterSchema,
|
|
11
|
+
ReadSingleParameterSchema,
|
|
12
|
+
)
|
|
13
|
+
from maleo.soma.types.base import ListOfDataStatuses
|
|
14
|
+
from maleo.metadata.schemas.data.organization_type import SimpleOrganizationTypeMixin
|
|
15
|
+
from maleo.identity.enums.organization import IdentifierType, ExpandableField
|
|
16
|
+
from maleo.identity.mixins.organization import Key, Name, Expand
|
|
17
|
+
from maleo.identity.types.base.organization import IdentifierValueType
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ReadSingleQueryParameter(Expand, ReadSingleQueryParameterSchema):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ReadSingleParameter(
|
|
25
|
+
Expand, ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
26
|
+
):
|
|
27
|
+
@overload
|
|
28
|
+
@classmethod
|
|
29
|
+
def new(
|
|
30
|
+
cls,
|
|
31
|
+
identifier: Literal[IdentifierType.ID],
|
|
32
|
+
value: int,
|
|
33
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
34
|
+
use_cache: bool = True,
|
|
35
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
36
|
+
) -> "ReadSingleParameter": ...
|
|
37
|
+
@overload
|
|
38
|
+
@classmethod
|
|
39
|
+
def new(
|
|
40
|
+
cls,
|
|
41
|
+
identifier: Literal[IdentifierType.UUID],
|
|
42
|
+
value: UUID,
|
|
43
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
44
|
+
use_cache: bool = True,
|
|
45
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
46
|
+
) -> "ReadSingleParameter": ...
|
|
47
|
+
@overload
|
|
48
|
+
@classmethod
|
|
49
|
+
def new(
|
|
50
|
+
cls,
|
|
51
|
+
identifier: Literal[IdentifierType.KEY],
|
|
52
|
+
value: str,
|
|
53
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
54
|
+
use_cache: bool = True,
|
|
55
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
56
|
+
) -> "ReadSingleParameter": ...
|
|
57
|
+
@classmethod
|
|
58
|
+
def new(
|
|
59
|
+
cls,
|
|
60
|
+
identifier: IdentifierType,
|
|
61
|
+
value: IdentifierValueType,
|
|
62
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
63
|
+
use_cache: bool = True,
|
|
64
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
65
|
+
) -> "ReadSingleParameter":
|
|
66
|
+
return cls(
|
|
67
|
+
identifier=identifier,
|
|
68
|
+
value=value,
|
|
69
|
+
statuses=statuses,
|
|
70
|
+
use_cache=use_cache,
|
|
71
|
+
expand=expand,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class CreateOrUpdateBody(Name, Key, OptionalParentId, SimpleOrganizationTypeMixin):
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class CreateParameter(
|
|
80
|
+
Expand,
|
|
81
|
+
CreateOrUpdateBody,
|
|
82
|
+
):
|
|
83
|
+
pass
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class UpdateParameter(
|
|
87
|
+
Expand,
|
|
88
|
+
CreateOrUpdateBody,
|
|
89
|
+
IdentifierValueMixin[IdentifierValueType],
|
|
90
|
+
IdentifierTypeMixin[IdentifierType],
|
|
91
|
+
):
|
|
92
|
+
pass
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
from typing import Literal, overload
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
from maleo.soma.constants import ALL_STATUSES
|
|
1
4
|
from maleo.soma.mixins.general import OrganizationId
|
|
2
5
|
from maleo.soma.mixins.parameter import IdentifierTypeValue as IdentifierTypeValueMixin
|
|
3
6
|
from maleo.soma.schemas.parameter.general import (
|
|
4
7
|
ReadSingleParameterSchema,
|
|
5
8
|
StatusUpdateQueryParameterSchema,
|
|
6
9
|
)
|
|
10
|
+
from maleo.soma.types.base import ListOfDataStatuses
|
|
7
11
|
from maleo.identity.enums.organization_registration_code import IdentifierType
|
|
8
12
|
from maleo.identity.mixins.organization_registration_code import (
|
|
9
13
|
MaxUses,
|
|
@@ -15,7 +19,35 @@ from maleo.identity.types.base.organization_registration_code import IdentifierV
|
|
|
15
19
|
class ReadSingleParameter(
|
|
16
20
|
ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
17
21
|
):
|
|
18
|
-
|
|
22
|
+
@overload
|
|
23
|
+
@classmethod
|
|
24
|
+
def new(
|
|
25
|
+
cls,
|
|
26
|
+
identifier: Literal[IdentifierType.ID, IdentifierType.ORGANIZATION_ID],
|
|
27
|
+
value: int,
|
|
28
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
29
|
+
use_cache: bool = True,
|
|
30
|
+
) -> "ReadSingleParameter": ...
|
|
31
|
+
@overload
|
|
32
|
+
@classmethod
|
|
33
|
+
def new(
|
|
34
|
+
cls,
|
|
35
|
+
identifier: Literal[IdentifierType.UUID, IdentifierType.CODE],
|
|
36
|
+
value: UUID,
|
|
37
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
38
|
+
use_cache: bool = True,
|
|
39
|
+
) -> "ReadSingleParameter": ...
|
|
40
|
+
@classmethod
|
|
41
|
+
def new(
|
|
42
|
+
cls,
|
|
43
|
+
identifier: IdentifierType,
|
|
44
|
+
value: IdentifierValueType,
|
|
45
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
46
|
+
use_cache: bool = True,
|
|
47
|
+
) -> "ReadSingleParameter":
|
|
48
|
+
return cls(
|
|
49
|
+
identifier=identifier, value=value, statuses=statuses, use_cache=use_cache
|
|
50
|
+
)
|
|
19
51
|
|
|
20
52
|
|
|
21
53
|
class CreateParameter(
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/user.py
RENAMED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from typing import List, Literal, Optional, overload
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
from maleo.soma.constants import ALL_STATUSES
|
|
1
4
|
from maleo.soma.mixins.general import OptionalOrganizationId
|
|
2
5
|
from maleo.soma.mixins.parameter import (
|
|
3
6
|
IdentifierType as IdentifierTypeMixin,
|
|
@@ -7,10 +10,11 @@ from maleo.soma.schemas.parameter.general import (
|
|
|
7
10
|
ReadSingleQueryParameterSchema,
|
|
8
11
|
ReadSingleParameterSchema,
|
|
9
12
|
)
|
|
13
|
+
from maleo.soma.types.base import ListOfDataStatuses
|
|
10
14
|
from maleo.metadata.schemas.data.blood_type import OptionalSimpleBloodTypeMixin
|
|
11
15
|
from maleo.metadata.schemas.data.gender import OptionalSimpleGenderMixin
|
|
12
16
|
from maleo.metadata.schemas.data.user_type import SimpleUserTypeMixin
|
|
13
|
-
from maleo.identity.enums.user import IdentifierType
|
|
17
|
+
from maleo.identity.enums.user import IdentifierType, ExpandableField
|
|
14
18
|
from maleo.identity.mixins.user import (
|
|
15
19
|
Username,
|
|
16
20
|
Email,
|
|
@@ -43,7 +47,52 @@ class ReadSingleQueryParameter(Expand, ReadSingleQueryParameterSchema):
|
|
|
43
47
|
class ReadSingleParameter(
|
|
44
48
|
Expand, ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
45
49
|
):
|
|
46
|
-
|
|
50
|
+
@overload
|
|
51
|
+
@classmethod
|
|
52
|
+
def new(
|
|
53
|
+
cls,
|
|
54
|
+
identifier: Literal[IdentifierType.ID],
|
|
55
|
+
value: int,
|
|
56
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
57
|
+
use_cache: bool = True,
|
|
58
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
59
|
+
) -> "ReadSingleParameter": ...
|
|
60
|
+
@overload
|
|
61
|
+
@classmethod
|
|
62
|
+
def new(
|
|
63
|
+
cls,
|
|
64
|
+
identifier: Literal[IdentifierType.UUID],
|
|
65
|
+
value: UUID,
|
|
66
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
67
|
+
use_cache: bool = True,
|
|
68
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
69
|
+
) -> "ReadSingleParameter": ...
|
|
70
|
+
@overload
|
|
71
|
+
@classmethod
|
|
72
|
+
def new(
|
|
73
|
+
cls,
|
|
74
|
+
identifier: Literal[IdentifierType.EMAIL, IdentifierType.USERNAME],
|
|
75
|
+
value: str,
|
|
76
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
77
|
+
use_cache: bool = True,
|
|
78
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
79
|
+
) -> "ReadSingleParameter": ...
|
|
80
|
+
@classmethod
|
|
81
|
+
def new(
|
|
82
|
+
cls,
|
|
83
|
+
identifier: IdentifierType,
|
|
84
|
+
value: IdentifierValueType,
|
|
85
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
86
|
+
use_cache: bool = True,
|
|
87
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
88
|
+
) -> "ReadSingleParameter":
|
|
89
|
+
return cls(
|
|
90
|
+
identifier=identifier,
|
|
91
|
+
value=value,
|
|
92
|
+
statuses=statuses,
|
|
93
|
+
use_cache=use_cache,
|
|
94
|
+
expand=expand,
|
|
95
|
+
)
|
|
47
96
|
|
|
48
97
|
|
|
49
98
|
class ReadSinglePassword(
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
from typing import List, Literal, Optional, overload
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
from maleo.soma.constants import ALL_STATUSES
|
|
4
|
+
from maleo.soma.mixins.general import UserId
|
|
5
|
+
from maleo.soma.mixins.parameter import IdentifierTypeValue as IdentifierTypeValueMixin
|
|
6
|
+
from maleo.soma.schemas.parameter.general import (
|
|
7
|
+
ReadSingleQueryParameterSchema,
|
|
8
|
+
ReadSingleParameterSchema,
|
|
9
|
+
)
|
|
10
|
+
from maleo.soma.types.base import ListOfDataStatuses
|
|
11
|
+
from maleo.metadata.schemas.data.blood_type import OptionalSimpleBloodTypeMixin
|
|
12
|
+
from maleo.metadata.schemas.data.gender import OptionalSimpleGenderMixin
|
|
13
|
+
from maleo.identity.enums.user_profile import IdentifierType, ExpandableField
|
|
14
|
+
from maleo.identity.mixins.user_profile import (
|
|
15
|
+
Expand,
|
|
16
|
+
OptionalIdCard,
|
|
17
|
+
LeadingTitle,
|
|
18
|
+
FirstName,
|
|
19
|
+
MiddleName,
|
|
20
|
+
LastName,
|
|
21
|
+
EndingTitle,
|
|
22
|
+
BirthPlace,
|
|
23
|
+
BirthDate,
|
|
24
|
+
OptionalAvatarName,
|
|
25
|
+
AvatarData,
|
|
26
|
+
)
|
|
27
|
+
from maleo.identity.types.base.user_profile import IdentifierValueType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ReadSingleQueryParameter(
|
|
31
|
+
Expand,
|
|
32
|
+
ReadSingleQueryParameterSchema,
|
|
33
|
+
):
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ReadSingleParameter(
|
|
38
|
+
Expand, ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
39
|
+
):
|
|
40
|
+
@overload
|
|
41
|
+
@classmethod
|
|
42
|
+
def new(
|
|
43
|
+
cls,
|
|
44
|
+
identifier: Literal[IdentifierType.ID, IdentifierType.USER_ID],
|
|
45
|
+
value: int,
|
|
46
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
47
|
+
use_cache: bool = True,
|
|
48
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
49
|
+
) -> "ReadSingleParameter": ...
|
|
50
|
+
@overload
|
|
51
|
+
@classmethod
|
|
52
|
+
def new(
|
|
53
|
+
cls,
|
|
54
|
+
identifier: Literal[IdentifierType.UUID],
|
|
55
|
+
value: UUID,
|
|
56
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
57
|
+
use_cache: bool = True,
|
|
58
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
59
|
+
) -> "ReadSingleParameter": ...
|
|
60
|
+
@overload
|
|
61
|
+
@classmethod
|
|
62
|
+
def new(
|
|
63
|
+
cls,
|
|
64
|
+
identifier: Literal[IdentifierType.ID_CARD],
|
|
65
|
+
value: str,
|
|
66
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
67
|
+
use_cache: bool = True,
|
|
68
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
69
|
+
) -> "ReadSingleParameter": ...
|
|
70
|
+
@classmethod
|
|
71
|
+
def new(
|
|
72
|
+
cls,
|
|
73
|
+
identifier: IdentifierType,
|
|
74
|
+
value: IdentifierValueType,
|
|
75
|
+
statuses: ListOfDataStatuses = ALL_STATUSES,
|
|
76
|
+
use_cache: bool = True,
|
|
77
|
+
expand: Optional[List[ExpandableField]] = None,
|
|
78
|
+
) -> "ReadSingleParameter":
|
|
79
|
+
return cls(
|
|
80
|
+
identifier=identifier,
|
|
81
|
+
value=value,
|
|
82
|
+
statuses=statuses,
|
|
83
|
+
use_cache=use_cache,
|
|
84
|
+
expand=expand,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class CreateOrUpdateQuery(Expand):
|
|
89
|
+
pass
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class CreateOrUpdateBody(
|
|
93
|
+
OptionalAvatarName,
|
|
94
|
+
OptionalSimpleGenderMixin,
|
|
95
|
+
OptionalSimpleBloodTypeMixin,
|
|
96
|
+
BirthDate,
|
|
97
|
+
BirthPlace,
|
|
98
|
+
EndingTitle,
|
|
99
|
+
LastName,
|
|
100
|
+
MiddleName,
|
|
101
|
+
FirstName,
|
|
102
|
+
LeadingTitle,
|
|
103
|
+
OptionalIdCard,
|
|
104
|
+
UserId,
|
|
105
|
+
):
|
|
106
|
+
pass
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
class CreateParameter(AvatarData, CreateOrUpdateBody, CreateOrUpdateQuery):
|
|
110
|
+
pass
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class UpdateParameter(
|
|
114
|
+
AvatarData,
|
|
115
|
+
CreateOrUpdateBody,
|
|
116
|
+
CreateOrUpdateQuery,
|
|
117
|
+
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
118
|
+
):
|
|
119
|
+
pass
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-identity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.86
|
|
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.
|
|
10
|
-
Requires-Dist: maleo_metadata>=0.2.
|
|
9
|
+
Requires-Dist: maleo_soma>=0.1.90
|
|
10
|
+
Requires-Dist: maleo_metadata>=0.2.46
|
|
11
11
|
|
|
12
12
|
# README #
|
|
13
13
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "maleo-identity" # PyPI package name
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.86"
|
|
8
8
|
description = "MaleoIdentity service package"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
|
|
@@ -13,8 +13,8 @@ license = { text = "MIT" }
|
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
requires-python = ">=3.7"
|
|
15
15
|
dependencies = [
|
|
16
|
-
"maleo_soma>=0.1.
|
|
17
|
-
"maleo_metadata>=0.2.
|
|
16
|
+
"maleo_soma>=0.1.90",
|
|
17
|
+
"maleo_metadata>=0.2.46",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
[tool.setuptools.packages.find]
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import OptionalParentId
|
|
2
|
-
from maleo.soma.mixins.parameter import (
|
|
3
|
-
IdentifierType as IdentifierTypeMixin,
|
|
4
|
-
IdentifierValue as IdentifierValueMixin,
|
|
5
|
-
)
|
|
6
|
-
from maleo.soma.schemas.parameter.general import (
|
|
7
|
-
ReadSingleQueryParameterSchema,
|
|
8
|
-
ReadSingleParameterSchema,
|
|
9
|
-
)
|
|
10
|
-
from maleo.metadata.schemas.data.organization_type import SimpleOrganizationTypeMixin
|
|
11
|
-
from maleo.identity.enums.organization import IdentifierType
|
|
12
|
-
from maleo.identity.mixins.organization import Key, Name, Expand
|
|
13
|
-
from maleo.identity.types.base.organization import IdentifierValueType
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class ReadSingleQueryParameter(Expand, ReadSingleQueryParameterSchema):
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class ReadSingleParameter(
|
|
21
|
-
Expand, ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
22
|
-
):
|
|
23
|
-
pass
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class CreateOrUpdateBody(Name, Key, OptionalParentId, SimpleOrganizationTypeMixin):
|
|
27
|
-
pass
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class CreateParameter(
|
|
31
|
-
Expand,
|
|
32
|
-
CreateOrUpdateBody,
|
|
33
|
-
):
|
|
34
|
-
pass
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class UpdateParameter(
|
|
38
|
-
Expand,
|
|
39
|
-
CreateOrUpdateBody,
|
|
40
|
-
IdentifierValueMixin[IdentifierValueType],
|
|
41
|
-
IdentifierTypeMixin[IdentifierType],
|
|
42
|
-
):
|
|
43
|
-
pass
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import UserId
|
|
2
|
-
from maleo.soma.mixins.parameter import IdentifierTypeValue as IdentifierTypeValueMixin
|
|
3
|
-
from maleo.soma.schemas.parameter.general import (
|
|
4
|
-
ReadSingleQueryParameterSchema,
|
|
5
|
-
ReadSingleParameterSchema,
|
|
6
|
-
)
|
|
7
|
-
from maleo.metadata.schemas.data.blood_type import OptionalSimpleBloodTypeMixin
|
|
8
|
-
from maleo.metadata.schemas.data.gender import OptionalSimpleGenderMixin
|
|
9
|
-
from maleo.identity.enums.user_profile import IdentifierType
|
|
10
|
-
from maleo.identity.mixins.user_profile import (
|
|
11
|
-
Expand,
|
|
12
|
-
OptionalIdCard,
|
|
13
|
-
LeadingTitle,
|
|
14
|
-
FirstName,
|
|
15
|
-
MiddleName,
|
|
16
|
-
LastName,
|
|
17
|
-
EndingTitle,
|
|
18
|
-
BirthPlace,
|
|
19
|
-
BirthDate,
|
|
20
|
-
OptionalAvatarName,
|
|
21
|
-
AvatarData,
|
|
22
|
-
)
|
|
23
|
-
from maleo.identity.types.base.user_profile import IdentifierValueType
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class ReadSingleQueryParameter(
|
|
27
|
-
Expand,
|
|
28
|
-
ReadSingleQueryParameterSchema,
|
|
29
|
-
):
|
|
30
|
-
pass
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class ReadSingleParameter(
|
|
34
|
-
Expand, ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
35
|
-
):
|
|
36
|
-
pass
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class CreateOrUpdateQuery(Expand):
|
|
40
|
-
pass
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
class CreateOrUpdateBody(
|
|
44
|
-
OptionalAvatarName,
|
|
45
|
-
OptionalSimpleGenderMixin,
|
|
46
|
-
OptionalSimpleBloodTypeMixin,
|
|
47
|
-
BirthDate,
|
|
48
|
-
BirthPlace,
|
|
49
|
-
EndingTitle,
|
|
50
|
-
LastName,
|
|
51
|
-
MiddleName,
|
|
52
|
-
FirstName,
|
|
53
|
-
LeadingTitle,
|
|
54
|
-
OptionalIdCard,
|
|
55
|
-
UserId,
|
|
56
|
-
):
|
|
57
|
-
pass
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
class CreateParameter(AvatarData, CreateOrUpdateBody, CreateOrUpdateQuery):
|
|
61
|
-
pass
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class UpdateParameter(
|
|
65
|
-
AvatarData,
|
|
66
|
-
CreateOrUpdateBody,
|
|
67
|
-
CreateOrUpdateQuery,
|
|
68
|
-
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
69
|
-
):
|
|
70
|
-
pass
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/organization.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user_organization.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user_profile.py
RENAMED
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/client/services/user_system_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user_organization.py
RENAMED
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user_organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/constants/user_system_role.py
RENAMED
|
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
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/enums/user_organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/mixins/user_organization_role.py
RENAMED
|
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
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/models/user_organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/user_organization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/data/user_system_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/__init__.py
RENAMED
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/client/user.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/general/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo/identity/schemas/parameter/service/user.py
RENAMED
|
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
|
{maleo_identity-0.0.85 → maleo_identity-0.0.86}/maleo_identity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|