maleo-identity 0.0.91__py3-none-any.whl → 0.0.93__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 maleo-identity might be problematic. Click here for more details.
- maleo/identity/constants/organization.py +15 -8
- maleo/identity/constants/organization_registration_code.py +10 -7
- maleo/identity/constants/user.py +11 -13
- maleo/identity/constants/user_profile.py +9 -12
- maleo/identity/enums/organization.py +4 -4
- maleo/identity/enums/organization_registration_code.py +5 -0
- maleo/identity/enums/user.py +4 -8
- maleo/identity/enums/user_profile.py +4 -10
- maleo/identity/mixins/organization.py +10 -8
- maleo/identity/mixins/organization_registration_code.py +8 -11
- maleo/identity/mixins/user.py +17 -31
- maleo/identity/mixins/user_profile.py +37 -67
- maleo/identity/models.py +317 -0
- maleo/identity/schemas/common.py +257 -0
- maleo/identity/schemas/organization.py +162 -0
- maleo/identity/schemas/organization_registration_code.py +162 -0
- maleo/identity/schemas/user.py +181 -0
- maleo/identity/schemas/user_profile.py +212 -0
- maleo/identity/types/{base/organization_registration_code.py → user_profile.py} +2 -1
- maleo_identity-0.0.93.dist-info/METADATA +118 -0
- maleo_identity-0.0.93.dist-info/RECORD +33 -0
- maleo_identity-0.0.93.dist-info/licenses/LICENSE +57 -0
- maleo/identity/client/__init__.py +0 -0
- maleo/identity/client/manager.py +0 -157
- maleo/identity/client/services/__init__.py +0 -0
- maleo/identity/client/services/organization.py +0 -1944
- maleo/identity/client/services/organization_registration_code.py +0 -470
- maleo/identity/client/services/organization_role.py +0 -276
- maleo/identity/client/services/user.py +0 -1559
- maleo/identity/client/services/user_organization.py +0 -276
- maleo/identity/client/services/user_organization_role.py +0 -278
- maleo/identity/client/services/user_profile.py +0 -276
- maleo/identity/client/services/user_system_role.py +0 -276
- maleo/identity/constants/organization_role.py +0 -35
- maleo/identity/constants/user_organization.py +0 -58
- maleo/identity/constants/user_organization_role.py +0 -47
- maleo/identity/constants/user_system_role.py +0 -16
- maleo/identity/db.py +0 -4
- maleo/identity/dtos/__init__.py +0 -0
- maleo/identity/dtos/configuration.py +0 -15
- maleo/identity/dtos/data/__init__.py +0 -0
- maleo/identity/dtos/data/organization_registration_code.py +0 -15
- maleo/identity/dtos/data/user_profile.py +0 -33
- maleo/identity/dtos/data/user_system_role.py +0 -9
- maleo/identity/dtos/settings.py +0 -17
- maleo/identity/enums/general.py +0 -5
- maleo/identity/enums/organization_role.py +0 -7
- maleo/identity/enums/user_organization.py +0 -14
- maleo/identity/enums/user_organization_role.py +0 -15
- maleo/identity/enums/user_system_role.py +0 -5
- maleo/identity/mixins/organization_role.py +0 -15
- maleo/identity/mixins/user_organization.py +0 -6
- maleo/identity/mixins/user_organization_role.py +0 -6
- maleo/identity/mixins/user_system_role.py +0 -6
- maleo/identity/models/__init__.py +0 -0
- maleo/identity/models/organization.py +0 -62
- maleo/identity/models/organization_registration_code.py +0 -33
- maleo/identity/models/organization_role.py +0 -37
- maleo/identity/models/user.py +0 -39
- maleo/identity/models/user_organization.py +0 -48
- maleo/identity/models/user_organization_role.py +0 -61
- maleo/identity/models/user_profile.py +0 -33
- maleo/identity/models/user_system_role.py +0 -26
- maleo/identity/schemas/data/__init__.py +0 -0
- maleo/identity/schemas/data/organization.py +0 -36
- maleo/identity/schemas/data/organization_registration_code.py +0 -27
- maleo/identity/schemas/data/organization_role.py +0 -32
- maleo/identity/schemas/data/user.py +0 -33
- maleo/identity/schemas/data/user_organization.py +0 -23
- maleo/identity/schemas/data/user_organization_role.py +0 -13
- maleo/identity/schemas/data/user_profile.py +0 -59
- maleo/identity/schemas/data/user_system_role.py +0 -25
- maleo/identity/schemas/metadata/__init__.py +0 -0
- maleo/identity/schemas/metadata/user.py +0 -6
- maleo/identity/schemas/parameter/__init__.py +0 -0
- maleo/identity/schemas/parameter/client/__init__.py +0 -0
- maleo/identity/schemas/parameter/client/organization.py +0 -74
- maleo/identity/schemas/parameter/client/organization_registration_code.py +0 -24
- maleo/identity/schemas/parameter/client/organization_role.py +0 -42
- maleo/identity/schemas/parameter/client/user.py +0 -44
- maleo/identity/schemas/parameter/client/user_organization.py +0 -62
- maleo/identity/schemas/parameter/client/user_organization_role.py +0 -49
- maleo/identity/schemas/parameter/client/user_profile.py +0 -28
- maleo/identity/schemas/parameter/client/user_system_role.py +0 -43
- maleo/identity/schemas/parameter/general/__init__.py +0 -0
- maleo/identity/schemas/parameter/general/organization.py +0 -92
- maleo/identity/schemas/parameter/general/organization_registration_code.py +0 -86
- maleo/identity/schemas/parameter/general/organization_role.py +0 -14
- maleo/identity/schemas/parameter/general/user.py +0 -150
- maleo/identity/schemas/parameter/general/user_organization.py +0 -18
- maleo/identity/schemas/parameter/general/user_organization_role.py +0 -15
- maleo/identity/schemas/parameter/general/user_profile.py +0 -119
- maleo/identity/schemas/parameter/general/user_system_role.py +0 -30
- maleo/identity/schemas/parameter/service/__init__.py +0 -0
- maleo/identity/schemas/parameter/service/organization.py +0 -60
- maleo/identity/schemas/parameter/service/organization_registration_code.py +0 -24
- maleo/identity/schemas/parameter/service/organization_role.py +0 -35
- maleo/identity/schemas/parameter/service/user.py +0 -47
- maleo/identity/schemas/parameter/service/user_organization_role.py +0 -36
- maleo/identity/schemas/parameter/service/user_profile.py +0 -28
- maleo/identity/schemas/parameter/service/user_system_role.py +0 -31
- maleo/identity/types/base/__init__.py +0 -0
- maleo_identity-0.0.91.dist-info/METADATA +0 -39
- maleo_identity-0.0.91.dist-info/RECORD +0 -106
- /maleo/identity/types/{base/organization.py → organization.py} +0 -0
- /maleo/identity/types/{base/user.py → organization_registration_code.py} +0 -0
- /maleo/identity/types/{base/user_profile.py → user.py} +0 -0
- {maleo_identity-0.0.91.dist-info → maleo_identity-0.0.93.dist-info}/WHEEL +0 -0
- {maleo_identity-0.0.91.dist-info → maleo_identity-0.0.93.dist-info}/top_level.txt +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
from pydantic import BaseModel, Field
|
|
2
|
-
from typing import Optional
|
|
3
|
-
from maleo.soma.mixins.data import DataIdentifier, DataTimestamp, DataStatus
|
|
4
|
-
from maleo.metadata.schemas.data.user_type import (
|
|
5
|
-
SimpleUserTypeMixin,
|
|
6
|
-
OptionalExpandedUserTypeMixin,
|
|
7
|
-
)
|
|
8
|
-
from maleo.identity.mixins.user import Username, Email, Phone
|
|
9
|
-
from .user_profile import OptionalUserProfileDataMixin
|
|
10
|
-
from .user_system_role import ListOfUserSystemRolesDataMixin
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class UserDataSchema(
|
|
14
|
-
OptionalUserProfileDataMixin,
|
|
15
|
-
ListOfUserSystemRolesDataMixin,
|
|
16
|
-
Phone,
|
|
17
|
-
Email,
|
|
18
|
-
Username,
|
|
19
|
-
OptionalExpandedUserTypeMixin,
|
|
20
|
-
SimpleUserTypeMixin,
|
|
21
|
-
DataStatus,
|
|
22
|
-
DataTimestamp,
|
|
23
|
-
DataIdentifier,
|
|
24
|
-
):
|
|
25
|
-
pass
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class UserDataMixin(BaseModel):
|
|
29
|
-
user: UserDataSchema = Field(..., description="User.")
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class OptionalUserDataMixin(BaseModel):
|
|
33
|
-
user: Optional[UserDataSchema] = Field(None, description="User. (Optional)")
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
from pydantic import BaseModel, Field
|
|
2
|
-
from maleo.soma.mixins.data import DataIdentifier, DataTimestamp, DataStatus
|
|
3
|
-
from maleo.soma.mixins.general import UserId, OrganizationId
|
|
4
|
-
from .organization import OrganizationDataMixin
|
|
5
|
-
from .user import UserDataMixin
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class UserOrganizationDataSchema(
|
|
9
|
-
OrganizationDataMixin,
|
|
10
|
-
OrganizationId,
|
|
11
|
-
UserDataMixin,
|
|
12
|
-
UserId,
|
|
13
|
-
DataStatus,
|
|
14
|
-
DataTimestamp,
|
|
15
|
-
DataIdentifier,
|
|
16
|
-
):
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class UserOrganizationDataMixin(BaseModel):
|
|
21
|
-
user_organization: UserOrganizationDataSchema = Field(
|
|
22
|
-
..., description="User organization"
|
|
23
|
-
)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.data import DataIdentifier, DataTimestamp, DataStatus
|
|
2
|
-
from maleo.identity.schemas.data.organization_role import OrganizationRoleDataMixin
|
|
3
|
-
from maleo.identity.schemas.data.user_organization import UserOrganizationDataMixin
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class UserOrganizationRoleDataSchema(
|
|
7
|
-
OrganizationRoleDataMixin,
|
|
8
|
-
UserOrganizationDataMixin,
|
|
9
|
-
DataStatus,
|
|
10
|
-
DataTimestamp,
|
|
11
|
-
DataIdentifier,
|
|
12
|
-
):
|
|
13
|
-
pass
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
from pydantic import BaseModel, Field
|
|
2
|
-
from typing import Optional
|
|
3
|
-
from maleo.soma.mixins.data import DataIdentifier, DataTimestamp, DataStatus
|
|
4
|
-
from maleo.soma.mixins.general import UserId
|
|
5
|
-
from maleo.metadata.schemas.data.blood_type import (
|
|
6
|
-
OptionalSimpleBloodTypeMixin,
|
|
7
|
-
OptionalExpandedBloodTypeMixin,
|
|
8
|
-
)
|
|
9
|
-
from maleo.metadata.schemas.data.gender import (
|
|
10
|
-
OptionalSimpleGenderMixin,
|
|
11
|
-
OptionalExpandedGenderMixin,
|
|
12
|
-
)
|
|
13
|
-
from maleo.identity.mixins.user_profile import (
|
|
14
|
-
IdCard,
|
|
15
|
-
LeadingTitle,
|
|
16
|
-
FirstName,
|
|
17
|
-
MiddleName,
|
|
18
|
-
LastName,
|
|
19
|
-
EndingTitle,
|
|
20
|
-
FullName,
|
|
21
|
-
BirthPlace,
|
|
22
|
-
BirthDate,
|
|
23
|
-
AvatarName,
|
|
24
|
-
OptionalAvatarUrl,
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class UserProfileDataSchema(
|
|
29
|
-
OptionalAvatarUrl,
|
|
30
|
-
AvatarName,
|
|
31
|
-
OptionalExpandedBloodTypeMixin,
|
|
32
|
-
OptionalSimpleBloodTypeMixin,
|
|
33
|
-
OptionalExpandedGenderMixin,
|
|
34
|
-
OptionalSimpleGenderMixin,
|
|
35
|
-
BirthDate,
|
|
36
|
-
BirthPlace,
|
|
37
|
-
FullName,
|
|
38
|
-
EndingTitle,
|
|
39
|
-
LastName,
|
|
40
|
-
MiddleName,
|
|
41
|
-
FirstName,
|
|
42
|
-
LeadingTitle,
|
|
43
|
-
IdCard,
|
|
44
|
-
UserId,
|
|
45
|
-
DataStatus,
|
|
46
|
-
DataTimestamp,
|
|
47
|
-
DataIdentifier,
|
|
48
|
-
):
|
|
49
|
-
pass
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class UserProfileDataMixin(BaseModel):
|
|
53
|
-
profile: UserProfileDataSchema = Field(..., description="Profile.")
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class OptionalUserProfileDataMixin(BaseModel):
|
|
57
|
-
profile: Optional[UserProfileDataSchema] = Field(
|
|
58
|
-
None, description="Profile. (Optional)"
|
|
59
|
-
)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from pydantic import BaseModel, Field
|
|
2
|
-
from typing import List
|
|
3
|
-
from maleo.soma.mixins.data import DataIdentifier, DataTimestamp, DataStatus
|
|
4
|
-
from maleo.soma.mixins.general import UserId
|
|
5
|
-
from maleo.metadata.schemas.data.system_role import (
|
|
6
|
-
SimpleSystemRoleMixin,
|
|
7
|
-
OptionalExpandedSystemRoleMixin,
|
|
8
|
-
)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class UserSystemRoleDataSchema(
|
|
12
|
-
OptionalExpandedSystemRoleMixin,
|
|
13
|
-
SimpleSystemRoleMixin,
|
|
14
|
-
UserId,
|
|
15
|
-
DataStatus,
|
|
16
|
-
DataTimestamp,
|
|
17
|
-
DataIdentifier,
|
|
18
|
-
):
|
|
19
|
-
pass
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class ListOfUserSystemRolesDataMixin(BaseModel):
|
|
23
|
-
system_roles: List[UserSystemRoleDataSchema] = Field(
|
|
24
|
-
[], description="User system roles"
|
|
25
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import IsRoot, IsParent, IsChild, IsLeaf, OrganizationId
|
|
2
|
-
from maleo.soma.mixins.parameter import (
|
|
3
|
-
OptionalListOfIds,
|
|
4
|
-
OptionalListOfKeys,
|
|
5
|
-
OptionalListOfParentIds,
|
|
6
|
-
OptionalListOfUuids,
|
|
7
|
-
)
|
|
8
|
-
from maleo.soma.schemas.parameter.client import (
|
|
9
|
-
ReadPaginatedMultipleParameterSchema,
|
|
10
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
11
|
-
)
|
|
12
|
-
from maleo.metadata.schemas.data.organization_type import (
|
|
13
|
-
OptionalListOfSimpleOrganizationTypesMixin,
|
|
14
|
-
)
|
|
15
|
-
from maleo.identity.mixins.organization import Include
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class ReadMultipleParameter(
|
|
19
|
-
Include,
|
|
20
|
-
ReadPaginatedMultipleParameterSchema,
|
|
21
|
-
OptionalListOfKeys,
|
|
22
|
-
IsLeaf,
|
|
23
|
-
IsChild,
|
|
24
|
-
IsParent,
|
|
25
|
-
IsRoot,
|
|
26
|
-
OptionalListOfParentIds,
|
|
27
|
-
OptionalListOfSimpleOrganizationTypesMixin,
|
|
28
|
-
OptionalListOfUuids,
|
|
29
|
-
OptionalListOfIds,
|
|
30
|
-
):
|
|
31
|
-
pass
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class ReadMultipleChildrenParameter(
|
|
35
|
-
Include,
|
|
36
|
-
ReadPaginatedMultipleParameterSchema,
|
|
37
|
-
OptionalListOfKeys,
|
|
38
|
-
IsLeaf,
|
|
39
|
-
IsParent,
|
|
40
|
-
OrganizationId,
|
|
41
|
-
OptionalListOfSimpleOrganizationTypesMixin,
|
|
42
|
-
OptionalListOfUuids,
|
|
43
|
-
OptionalListOfIds,
|
|
44
|
-
):
|
|
45
|
-
pass
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class ReadMultipleQueryParameter(
|
|
49
|
-
Include,
|
|
50
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
51
|
-
OptionalListOfKeys,
|
|
52
|
-
IsLeaf,
|
|
53
|
-
IsChild,
|
|
54
|
-
IsParent,
|
|
55
|
-
IsRoot,
|
|
56
|
-
OptionalListOfParentIds,
|
|
57
|
-
OptionalListOfSimpleOrganizationTypesMixin,
|
|
58
|
-
OptionalListOfUuids,
|
|
59
|
-
OptionalListOfIds,
|
|
60
|
-
):
|
|
61
|
-
pass
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class ReadMultipleChildrenQueryParameter(
|
|
65
|
-
Include,
|
|
66
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
67
|
-
OptionalListOfKeys,
|
|
68
|
-
IsLeaf,
|
|
69
|
-
IsParent,
|
|
70
|
-
OptionalListOfSimpleOrganizationTypesMixin,
|
|
71
|
-
OptionalListOfUuids,
|
|
72
|
-
OptionalListOfIds,
|
|
73
|
-
):
|
|
74
|
-
pass
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import OrganizationId
|
|
2
|
-
from maleo.soma.mixins.parameter import OptionalListOfOrganizationIds
|
|
3
|
-
from maleo.soma.schemas.parameter.client import (
|
|
4
|
-
ReadPaginatedMultipleParameterSchema,
|
|
5
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
6
|
-
)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ReadMultipleFromOrganizationParameter(
|
|
10
|
-
ReadPaginatedMultipleParameterSchema, OrganizationId
|
|
11
|
-
):
|
|
12
|
-
pass
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class ReadMultipleParameter(
|
|
16
|
-
ReadPaginatedMultipleParameterSchema, OptionalListOfOrganizationIds
|
|
17
|
-
):
|
|
18
|
-
pass
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class ReadMultipleQueryParameter(
|
|
22
|
-
ReadPaginatedMultipleQueryParameterSchema, OptionalListOfOrganizationIds
|
|
23
|
-
):
|
|
24
|
-
pass
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import OrganizationId
|
|
2
|
-
from maleo.soma.mixins.parameter import (
|
|
3
|
-
OptionalListOfKeys,
|
|
4
|
-
OptionalListOfOrganizationIds,
|
|
5
|
-
)
|
|
6
|
-
from maleo.soma.schemas.parameter.client import (
|
|
7
|
-
ReadPaginatedMultipleParameterSchema,
|
|
8
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
9
|
-
)
|
|
10
|
-
from maleo.identity.mixins.organization_role import Include
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ReadMultipleFromOrganizationParameter(
|
|
14
|
-
Include, ReadPaginatedMultipleParameterSchema, OptionalListOfKeys, OrganizationId
|
|
15
|
-
):
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ReadMultipleParameter(
|
|
20
|
-
Include,
|
|
21
|
-
ReadPaginatedMultipleParameterSchema,
|
|
22
|
-
OptionalListOfKeys,
|
|
23
|
-
OptionalListOfOrganizationIds,
|
|
24
|
-
):
|
|
25
|
-
pass
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class ReadMultipleFromOrganizationQueryParameter(
|
|
29
|
-
Include,
|
|
30
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
31
|
-
OptionalListOfKeys,
|
|
32
|
-
):
|
|
33
|
-
pass
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class ReadMultipleQueryParameter(
|
|
37
|
-
Include,
|
|
38
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
39
|
-
OptionalListOfKeys,
|
|
40
|
-
OptionalListOfOrganizationIds,
|
|
41
|
-
):
|
|
42
|
-
pass
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.parameter import OptionalListOfIds, OptionalListOfUuids
|
|
2
|
-
from maleo.soma.schemas.parameter.client import (
|
|
3
|
-
ReadPaginatedMultipleParameterSchema,
|
|
4
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
5
|
-
)
|
|
6
|
-
from maleo.metadata.schemas.data.blood_type import OptionalListOfSimpleBloodTypesMixin
|
|
7
|
-
from maleo.metadata.schemas.data.gender import OptionalListOfSimpleGendersMixin
|
|
8
|
-
from maleo.metadata.schemas.data.user_type import OptionalListOfSimpleUserTypesMixin
|
|
9
|
-
from maleo.identity.mixins.user import (
|
|
10
|
-
OptionalListOfUsernames,
|
|
11
|
-
OptionalListOfEmails,
|
|
12
|
-
OptionalListOfPhones,
|
|
13
|
-
Include,
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class ReadMultipleParameter(
|
|
18
|
-
Include,
|
|
19
|
-
ReadPaginatedMultipleParameterSchema,
|
|
20
|
-
OptionalListOfSimpleBloodTypesMixin,
|
|
21
|
-
OptionalListOfSimpleGendersMixin,
|
|
22
|
-
OptionalListOfPhones,
|
|
23
|
-
OptionalListOfEmails,
|
|
24
|
-
OptionalListOfUsernames,
|
|
25
|
-
OptionalListOfSimpleUserTypesMixin,
|
|
26
|
-
OptionalListOfUuids,
|
|
27
|
-
OptionalListOfIds,
|
|
28
|
-
):
|
|
29
|
-
pass
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class ReadMultipleQueryParameter(
|
|
33
|
-
Include,
|
|
34
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
35
|
-
OptionalListOfSimpleBloodTypesMixin,
|
|
36
|
-
OptionalListOfSimpleGendersMixin,
|
|
37
|
-
OptionalListOfPhones,
|
|
38
|
-
OptionalListOfEmails,
|
|
39
|
-
OptionalListOfUsernames,
|
|
40
|
-
OptionalListOfSimpleUserTypesMixin,
|
|
41
|
-
OptionalListOfUuids,
|
|
42
|
-
OptionalListOfIds,
|
|
43
|
-
):
|
|
44
|
-
pass
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import OrganizationId, UserId
|
|
2
|
-
from maleo.soma.mixins.parameter import (
|
|
3
|
-
OptionalListOfOrganizationIds,
|
|
4
|
-
OptionalListOfUserIds,
|
|
5
|
-
)
|
|
6
|
-
from maleo.soma.schemas.parameter.client import (
|
|
7
|
-
ReadPaginatedMultipleParameterSchema,
|
|
8
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
9
|
-
)
|
|
10
|
-
from maleo.identity.mixins.user_organization import Include
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ReadMultipleFromUserParameter(
|
|
14
|
-
Include,
|
|
15
|
-
ReadPaginatedMultipleParameterSchema,
|
|
16
|
-
OptionalListOfOrganizationIds,
|
|
17
|
-
UserId,
|
|
18
|
-
):
|
|
19
|
-
pass
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class ReadMultipleFromOrganizationParameter(
|
|
23
|
-
Include,
|
|
24
|
-
ReadPaginatedMultipleParameterSchema,
|
|
25
|
-
OptionalListOfUserIds,
|
|
26
|
-
OrganizationId,
|
|
27
|
-
):
|
|
28
|
-
pass
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class ReadMultipleParameter(
|
|
32
|
-
Include,
|
|
33
|
-
ReadPaginatedMultipleParameterSchema,
|
|
34
|
-
OptionalListOfUserIds,
|
|
35
|
-
OptionalListOfOrganizationIds,
|
|
36
|
-
):
|
|
37
|
-
pass
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
class ReadMultipleFromUserQueryParameter(
|
|
41
|
-
Include,
|
|
42
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
43
|
-
OptionalListOfOrganizationIds,
|
|
44
|
-
):
|
|
45
|
-
pass
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class ReadMultipleFromOrganizationQueryParameter(
|
|
49
|
-
Include,
|
|
50
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
51
|
-
OptionalListOfUserIds,
|
|
52
|
-
):
|
|
53
|
-
pass
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class ReadMultipleQueryParameter(
|
|
57
|
-
Include,
|
|
58
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
59
|
-
OptionalListOfUserIds,
|
|
60
|
-
OptionalListOfOrganizationIds,
|
|
61
|
-
):
|
|
62
|
-
pass
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import OrganizationId, UserId
|
|
2
|
-
from maleo.soma.mixins.parameter import (
|
|
3
|
-
OptionalListOfKeys,
|
|
4
|
-
OptionalListOfOrganizationIds,
|
|
5
|
-
OptionalListOfUserIds,
|
|
6
|
-
)
|
|
7
|
-
from maleo.soma.schemas.parameter.client import (
|
|
8
|
-
ReadPaginatedMultipleParameterSchema,
|
|
9
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
10
|
-
)
|
|
11
|
-
from maleo.identity.mixins.user_organization_role import Include
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class ReadMultipleFromUserOrganizationParameter(
|
|
15
|
-
Include,
|
|
16
|
-
ReadPaginatedMultipleParameterSchema,
|
|
17
|
-
OptionalListOfKeys,
|
|
18
|
-
UserId,
|
|
19
|
-
OrganizationId,
|
|
20
|
-
):
|
|
21
|
-
pass
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class ReadMultipleParameter(
|
|
25
|
-
Include,
|
|
26
|
-
ReadPaginatedMultipleParameterSchema,
|
|
27
|
-
OptionalListOfKeys,
|
|
28
|
-
OptionalListOfUserIds,
|
|
29
|
-
OptionalListOfOrganizationIds,
|
|
30
|
-
):
|
|
31
|
-
pass
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class ReadMultipleFromUserOrganizationQueryParameter(
|
|
35
|
-
Include,
|
|
36
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
37
|
-
OptionalListOfKeys,
|
|
38
|
-
):
|
|
39
|
-
pass
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
class ReadMultipleQueryParameter(
|
|
43
|
-
Include,
|
|
44
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
45
|
-
OptionalListOfKeys,
|
|
46
|
-
OptionalListOfUserIds,
|
|
47
|
-
OptionalListOfOrganizationIds,
|
|
48
|
-
):
|
|
49
|
-
pass
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.parameter import OptionalListOfUserIds
|
|
2
|
-
from maleo.soma.schemas.parameter.client import (
|
|
3
|
-
ReadPaginatedMultipleParameterSchema,
|
|
4
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
5
|
-
)
|
|
6
|
-
from maleo.metadata.schemas.data.blood_type import OptionalListOfSimpleBloodTypesMixin
|
|
7
|
-
from maleo.metadata.schemas.data.gender import OptionalListOfSimpleGendersMixin
|
|
8
|
-
from maleo.identity.mixins.user_profile import Include
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ReadMultipleParameter(
|
|
12
|
-
Include,
|
|
13
|
-
ReadPaginatedMultipleParameterSchema,
|
|
14
|
-
OptionalListOfSimpleBloodTypesMixin,
|
|
15
|
-
OptionalListOfSimpleGendersMixin,
|
|
16
|
-
OptionalListOfUserIds,
|
|
17
|
-
):
|
|
18
|
-
pass
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class ReadMultipleQueryParameter(
|
|
22
|
-
Include,
|
|
23
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
24
|
-
OptionalListOfSimpleBloodTypesMixin,
|
|
25
|
-
OptionalListOfSimpleGendersMixin,
|
|
26
|
-
OptionalListOfUserIds,
|
|
27
|
-
):
|
|
28
|
-
pass
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import UserId
|
|
2
|
-
from maleo.soma.mixins.parameter import OptionalListOfUserIds
|
|
3
|
-
from maleo.soma.schemas.parameter.client import (
|
|
4
|
-
ReadPaginatedMultipleParameterSchema,
|
|
5
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
6
|
-
)
|
|
7
|
-
from maleo.metadata.schemas.data.system_role import OptionalListOfSimpleSystemRolesMixin
|
|
8
|
-
from maleo.identity.mixins.user_system_role import Include
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ReadMultipleFromUserParameter(
|
|
12
|
-
Include,
|
|
13
|
-
ReadPaginatedMultipleParameterSchema,
|
|
14
|
-
OptionalListOfSimpleSystemRolesMixin,
|
|
15
|
-
UserId,
|
|
16
|
-
):
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class ReadMultipleParameter(
|
|
21
|
-
Include,
|
|
22
|
-
ReadPaginatedMultipleParameterSchema,
|
|
23
|
-
OptionalListOfSimpleSystemRolesMixin,
|
|
24
|
-
OptionalListOfUserIds,
|
|
25
|
-
):
|
|
26
|
-
pass
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class ReadMultipleFromUserQueryParameter(
|
|
30
|
-
Include,
|
|
31
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
32
|
-
OptionalListOfSimpleSystemRolesMixin,
|
|
33
|
-
):
|
|
34
|
-
pass
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class ReadMultipleQueryParameter(
|
|
38
|
-
Include,
|
|
39
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
40
|
-
OptionalListOfSimpleSystemRolesMixin,
|
|
41
|
-
OptionalListOfUserIds,
|
|
42
|
-
):
|
|
43
|
-
pass
|
|
File without changes
|
|
@@ -1,92 +0,0 @@
|
|
|
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, IncludableField
|
|
16
|
-
from maleo.identity.mixins.organization import Key, Name, Include
|
|
17
|
-
from maleo.identity.types.base.organization import IdentifierValueType
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class ReadSingleQueryParameter(Include, ReadSingleQueryParameterSchema):
|
|
21
|
-
pass
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class ReadSingleParameter(
|
|
25
|
-
Include, 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = None,
|
|
65
|
-
) -> "ReadSingleParameter":
|
|
66
|
-
return cls(
|
|
67
|
-
identifier=identifier,
|
|
68
|
-
value=value,
|
|
69
|
-
statuses=statuses,
|
|
70
|
-
use_cache=use_cache,
|
|
71
|
-
include=include,
|
|
72
|
-
)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
class CreateOrUpdateBody(Name, Key, OptionalParentId, SimpleOrganizationTypeMixin):
|
|
76
|
-
pass
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class CreateParameter(
|
|
80
|
-
Include,
|
|
81
|
-
CreateOrUpdateBody,
|
|
82
|
-
):
|
|
83
|
-
pass
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
class UpdateParameter(
|
|
87
|
-
Include,
|
|
88
|
-
CreateOrUpdateBody,
|
|
89
|
-
IdentifierValueMixin[IdentifierValueType],
|
|
90
|
-
IdentifierTypeMixin[IdentifierType],
|
|
91
|
-
):
|
|
92
|
-
pass
|