maleo-identity 0.0.76__py3-none-any.whl → 0.0.77__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/__init__.py +0 -0
- maleo/identity/client/__init__.py +0 -0
- maleo/identity/client/manager.py +157 -0
- maleo/identity/client/services/__init__.py +0 -0
- maleo/identity/client/services/organization.py +1944 -0
- maleo/identity/client/services/organization_registration_code.py +470 -0
- maleo/identity/client/services/organization_role.py +276 -0
- maleo/identity/client/services/user.py +1559 -0
- maleo/identity/client/services/user_organization.py +276 -0
- maleo/identity/client/services/user_organization_role.py +278 -0
- maleo/identity/client/services/user_profile.py +276 -0
- maleo/identity/client/services/user_system_role.py +276 -0
- maleo/identity/constants/__init__.py +0 -0
- maleo/identity/constants/organization.py +18 -0
- maleo/identity/constants/organization_registration_code.py +25 -0
- maleo/identity/constants/organization_role.py +35 -0
- maleo/identity/constants/user.py +24 -0
- maleo/identity/constants/user_organization.py +58 -0
- maleo/identity/constants/user_organization_role.py +47 -0
- maleo/identity/constants/user_profile.py +26 -0
- maleo/identity/constants/user_system_role.py +16 -0
- maleo/identity/db.py +4 -0
- maleo/identity/dtos/__init__.py +0 -0
- maleo/identity/dtos/organization_registration_code.py +12 -0
- maleo/identity/enums/__init__.py +0 -0
- maleo/identity/enums/general.py +5 -0
- maleo/identity/enums/organization.py +12 -0
- maleo/identity/enums/organization_registration_code.py +8 -0
- maleo/identity/enums/organization_role.py +7 -0
- maleo/identity/enums/user.py +17 -0
- maleo/identity/enums/user_organization.py +14 -0
- maleo/identity/enums/user_organization_role.py +15 -0
- maleo/identity/enums/user_profile.py +17 -0
- maleo/identity/enums/user_system_role.py +5 -0
- maleo/identity/mixins/__init__.py +0 -0
- maleo/identity/mixins/organization.py +15 -0
- maleo/identity/mixins/organization_registration_code.py +14 -0
- maleo/identity/mixins/organization_role.py +15 -0
- maleo/identity/mixins/user.py +47 -0
- maleo/identity/mixins/user_organization.py +6 -0
- maleo/identity/mixins/user_organization_role.py +6 -0
- maleo/identity/mixins/user_profile.py +81 -0
- maleo/identity/mixins/user_system_role.py +6 -0
- maleo/identity/models/__init__.py +0 -0
- maleo/identity/models/organization.py +62 -0
- maleo/identity/models/organization_registration_code.py +33 -0
- maleo/identity/models/organization_role.py +37 -0
- maleo/identity/models/user.py +39 -0
- maleo/identity/models/user_organization.py +48 -0
- maleo/identity/models/user_organization_role.py +61 -0
- maleo/identity/models/user_profile.py +33 -0
- maleo/identity/models/user_system_role.py +26 -0
- maleo/identity/schemas/__init__.py +0 -0
- maleo/identity/schemas/data/__init__.py +0 -0
- maleo/identity/schemas/data/organization.py +36 -0
- maleo/identity/schemas/data/organization_registration_code.py +33 -0
- maleo/identity/schemas/data/organization_role.py +32 -0
- maleo/identity/schemas/data/user.py +33 -0
- maleo/identity/schemas/data/user_organization.py +23 -0
- maleo/identity/schemas/data/user_organization_role.py +13 -0
- maleo/identity/schemas/data/user_profile.py +59 -0
- maleo/identity/schemas/data/user_system_role.py +25 -0
- maleo/identity/schemas/metadata/__init__.py +0 -0
- maleo/identity/schemas/metadata/user.py +6 -0
- maleo/identity/schemas/parameter/__init__.py +0 -0
- maleo/identity/schemas/parameter/client/__init__.py +0 -0
- maleo/identity/schemas/parameter/client/organization.py +74 -0
- maleo/identity/schemas/parameter/client/organization_registration_code.py +24 -0
- maleo/identity/schemas/parameter/client/organization_role.py +42 -0
- maleo/identity/schemas/parameter/client/user.py +44 -0
- maleo/identity/schemas/parameter/client/user_organization.py +62 -0
- maleo/identity/schemas/parameter/client/user_organization_role.py +49 -0
- maleo/identity/schemas/parameter/client/user_profile.py +28 -0
- maleo/identity/schemas/parameter/client/user_system_role.py +43 -0
- maleo/identity/schemas/parameter/general/__init__.py +0 -0
- maleo/identity/schemas/parameter/general/organization.py +43 -0
- maleo/identity/schemas/parameter/general/organization_registration_code.py +30 -0
- maleo/identity/schemas/parameter/general/organization_role.py +14 -0
- maleo/identity/schemas/parameter/general/user.py +101 -0
- maleo/identity/schemas/parameter/general/user_organization.py +18 -0
- maleo/identity/schemas/parameter/general/user_organization_role.py +15 -0
- maleo/identity/schemas/parameter/general/user_profile.py +82 -0
- maleo/identity/schemas/parameter/general/user_system_role.py +30 -0
- maleo/identity/schemas/parameter/service/__init__.py +0 -0
- maleo/identity/schemas/parameter/service/organization.py +60 -0
- maleo/identity/schemas/parameter/service/organization_registration_code.py +24 -0
- maleo/identity/schemas/parameter/service/organization_role.py +35 -0
- maleo/identity/schemas/parameter/service/user.py +47 -0
- maleo/identity/schemas/parameter/service/user_organization_role.py +36 -0
- maleo/identity/schemas/parameter/service/user_profile.py +28 -0
- maleo/identity/schemas/parameter/service/user_system_role.py +31 -0
- maleo/identity/types/__init__.py +5 -0
- maleo/identity/types/base/__init__.py +0 -0
- maleo/identity/types/base/organization.py +5 -0
- maleo/identity/types/base/organization_registration_code.py +4 -0
- maleo/identity/types/base/user.py +5 -0
- maleo/identity/types/base/user_profile.py +4 -0
- {maleo_identity-0.0.76.dist-info → maleo_identity-0.0.77.dist-info}/METADATA +1 -1
- maleo_identity-0.0.77.dist-info/RECORD +101 -0
- maleo_identity-0.0.77.dist-info/top_level.txt +1 -0
- maleo_identity-0.0.76.dist-info/RECORD +0 -4
- maleo_identity-0.0.76.dist-info/top_level.txt +0 -1
- {maleo_identity-0.0.76.dist-info → maleo_identity-0.0.77.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
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 Expand
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ReadMultipleFromUserParameter(
|
|
14
|
+
Expand,
|
|
15
|
+
ReadPaginatedMultipleParameterSchema,
|
|
16
|
+
OptionalListOfOrganizationIds,
|
|
17
|
+
UserId,
|
|
18
|
+
):
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ReadMultipleFromOrganizationParameter(
|
|
23
|
+
Expand,
|
|
24
|
+
ReadPaginatedMultipleParameterSchema,
|
|
25
|
+
OptionalListOfUserIds,
|
|
26
|
+
OrganizationId,
|
|
27
|
+
):
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ReadMultipleParameter(
|
|
32
|
+
Expand,
|
|
33
|
+
ReadPaginatedMultipleParameterSchema,
|
|
34
|
+
OptionalListOfUserIds,
|
|
35
|
+
OptionalListOfOrganizationIds,
|
|
36
|
+
):
|
|
37
|
+
pass
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class ReadMultipleFromUserQueryParameter(
|
|
41
|
+
Expand,
|
|
42
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
43
|
+
OptionalListOfOrganizationIds,
|
|
44
|
+
):
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class ReadMultipleFromOrganizationQueryParameter(
|
|
49
|
+
Expand,
|
|
50
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
51
|
+
OptionalListOfUserIds,
|
|
52
|
+
):
|
|
53
|
+
pass
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class ReadMultipleQueryParameter(
|
|
57
|
+
Expand,
|
|
58
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
59
|
+
OptionalListOfUserIds,
|
|
60
|
+
OptionalListOfOrganizationIds,
|
|
61
|
+
):
|
|
62
|
+
pass
|
|
@@ -0,0 +1,49 @@
|
|
|
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 Expand
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ReadMultipleFromUserOrganizationParameter(
|
|
15
|
+
Expand,
|
|
16
|
+
ReadPaginatedMultipleParameterSchema,
|
|
17
|
+
OptionalListOfKeys,
|
|
18
|
+
UserId,
|
|
19
|
+
OrganizationId,
|
|
20
|
+
):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ReadMultipleParameter(
|
|
25
|
+
Expand,
|
|
26
|
+
ReadPaginatedMultipleParameterSchema,
|
|
27
|
+
OptionalListOfKeys,
|
|
28
|
+
OptionalListOfUserIds,
|
|
29
|
+
OptionalListOfOrganizationIds,
|
|
30
|
+
):
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ReadMultipleFromUserOrganizationQueryParameter(
|
|
35
|
+
Expand,
|
|
36
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
37
|
+
OptionalListOfKeys,
|
|
38
|
+
):
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class ReadMultipleQueryParameter(
|
|
43
|
+
Expand,
|
|
44
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
45
|
+
OptionalListOfKeys,
|
|
46
|
+
OptionalListOfUserIds,
|
|
47
|
+
OptionalListOfOrganizationIds,
|
|
48
|
+
):
|
|
49
|
+
pass
|
|
@@ -0,0 +1,28 @@
|
|
|
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 Expand
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ReadMultipleParameter(
|
|
12
|
+
Expand,
|
|
13
|
+
ReadPaginatedMultipleParameterSchema,
|
|
14
|
+
OptionalListOfSimpleBloodTypesMixin,
|
|
15
|
+
OptionalListOfSimpleGendersMixin,
|
|
16
|
+
OptionalListOfUserIds,
|
|
17
|
+
):
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ReadMultipleQueryParameter(
|
|
22
|
+
Expand,
|
|
23
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
24
|
+
OptionalListOfSimpleBloodTypesMixin,
|
|
25
|
+
OptionalListOfSimpleGendersMixin,
|
|
26
|
+
OptionalListOfUserIds,
|
|
27
|
+
):
|
|
28
|
+
pass
|
|
@@ -0,0 +1,43 @@
|
|
|
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 Expand
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ReadMultipleFromUserParameter(
|
|
12
|
+
Expand,
|
|
13
|
+
ReadPaginatedMultipleParameterSchema,
|
|
14
|
+
OptionalListOfSimpleSystemRolesMixin,
|
|
15
|
+
UserId,
|
|
16
|
+
):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ReadMultipleParameter(
|
|
21
|
+
Expand,
|
|
22
|
+
ReadPaginatedMultipleParameterSchema,
|
|
23
|
+
OptionalListOfSimpleSystemRolesMixin,
|
|
24
|
+
OptionalListOfUserIds,
|
|
25
|
+
):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ReadMultipleFromUserQueryParameter(
|
|
30
|
+
Expand,
|
|
31
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
32
|
+
OptionalListOfSimpleSystemRolesMixin,
|
|
33
|
+
):
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ReadMultipleQueryParameter(
|
|
38
|
+
Expand,
|
|
39
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
40
|
+
OptionalListOfSimpleSystemRolesMixin,
|
|
41
|
+
OptionalListOfUserIds,
|
|
42
|
+
):
|
|
43
|
+
pass
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import OrganizationId
|
|
2
|
+
from maleo.soma.mixins.parameter import (
|
|
3
|
+
IdentifierType as IdentifierTypeMixin,
|
|
4
|
+
IdentifierValue as IdentifierValueMixin,
|
|
5
|
+
)
|
|
6
|
+
from maleo.soma.schemas.parameter.general import ReadSingleParameterSchema
|
|
7
|
+
from maleo.identity.enums.organization_registration_code import IdentifierType
|
|
8
|
+
from maleo.identity.mixins.organization_registration_code import MaxUses
|
|
9
|
+
from maleo.identity.types.base.organization_registration_code import IdentifierValueType
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ReadSingleParameter(
|
|
13
|
+
ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
14
|
+
):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CreateParameter(
|
|
19
|
+
MaxUses,
|
|
20
|
+
OrganizationId,
|
|
21
|
+
):
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class UpdateParameter(
|
|
26
|
+
MaxUses,
|
|
27
|
+
IdentifierValueMixin[IdentifierValueType],
|
|
28
|
+
IdentifierTypeMixin[IdentifierType],
|
|
29
|
+
):
|
|
30
|
+
pass
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import OrganizationId
|
|
2
|
+
from maleo.soma.mixins.parameter import OptionalListOfDataStatuses, UseCache
|
|
3
|
+
from maleo.soma.schemas.parameter.general import ReadSingleQueryParameterSchema
|
|
4
|
+
from maleo.identity.mixins.organization_role import Key, Expand
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ReadSingleQueryParameter(Expand, ReadSingleQueryParameterSchema):
|
|
8
|
+
pass
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ReadSingleParameter(
|
|
12
|
+
Expand, UseCache, OptionalListOfDataStatuses, Key, OrganizationId
|
|
13
|
+
):
|
|
14
|
+
pass
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import OptionalOrganizationId
|
|
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.blood_type import OptionalSimpleBloodTypeMixin
|
|
11
|
+
from maleo.metadata.schemas.data.gender import OptionalSimpleGenderMixin
|
|
12
|
+
from maleo.metadata.schemas.data.user_type import SimpleUserTypeMixin
|
|
13
|
+
from maleo.identity.enums.user import IdentifierType
|
|
14
|
+
from maleo.identity.mixins.user import (
|
|
15
|
+
Username,
|
|
16
|
+
Email,
|
|
17
|
+
Phone,
|
|
18
|
+
Password,
|
|
19
|
+
PasswordConfirmation,
|
|
20
|
+
RegistrationCode,
|
|
21
|
+
Expand,
|
|
22
|
+
)
|
|
23
|
+
from maleo.identity.mixins.user_profile import (
|
|
24
|
+
OptionalIdCard,
|
|
25
|
+
LeadingTitle,
|
|
26
|
+
FirstName,
|
|
27
|
+
MiddleName,
|
|
28
|
+
LastName,
|
|
29
|
+
EndingTitle,
|
|
30
|
+
BirthPlace,
|
|
31
|
+
BirthDate,
|
|
32
|
+
OptionalAvatar,
|
|
33
|
+
OptionalAvatarContentType,
|
|
34
|
+
OptionalAvatarName,
|
|
35
|
+
)
|
|
36
|
+
from maleo.identity.types.base.user import IdentifierValueType
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ReadSingleQueryParameter(Expand, ReadSingleQueryParameterSchema):
|
|
40
|
+
pass
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class ReadSingleParameter(
|
|
44
|
+
Expand, ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
45
|
+
):
|
|
46
|
+
pass
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ReadSinglePassword(
|
|
50
|
+
ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
51
|
+
):
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class UpdateBody(Phone, Email, Username):
|
|
56
|
+
pass
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class UpdateParameter(
|
|
60
|
+
Expand,
|
|
61
|
+
UpdateBody,
|
|
62
|
+
IdentifierValueMixin[IdentifierValueType],
|
|
63
|
+
IdentifierTypeMixin[IdentifierType],
|
|
64
|
+
):
|
|
65
|
+
pass
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class CreateBody(Password, UpdateBody, SimpleUserTypeMixin, OptionalOrganizationId):
|
|
69
|
+
pass
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class CreateParameter(
|
|
73
|
+
Expand,
|
|
74
|
+
CreateBody,
|
|
75
|
+
):
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class RegisterParameter(
|
|
80
|
+
Expand,
|
|
81
|
+
OptionalAvatarName,
|
|
82
|
+
OptionalAvatarContentType,
|
|
83
|
+
OptionalAvatar,
|
|
84
|
+
OptionalSimpleBloodTypeMixin,
|
|
85
|
+
OptionalSimpleGenderMixin,
|
|
86
|
+
BirthDate,
|
|
87
|
+
BirthPlace,
|
|
88
|
+
EndingTitle,
|
|
89
|
+
LastName,
|
|
90
|
+
MiddleName,
|
|
91
|
+
FirstName,
|
|
92
|
+
LeadingTitle,
|
|
93
|
+
OptionalIdCard,
|
|
94
|
+
PasswordConfirmation,
|
|
95
|
+
Password,
|
|
96
|
+
Phone,
|
|
97
|
+
Email,
|
|
98
|
+
Username,
|
|
99
|
+
RegistrationCode,
|
|
100
|
+
):
|
|
101
|
+
pass
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import OrganizationId, UserId
|
|
2
|
+
from maleo.soma.mixins.parameter import OptionalListOfDataStatuses, UseCache
|
|
3
|
+
from maleo.soma.schemas.parameter.general import ReadSingleQueryParameterSchema
|
|
4
|
+
from maleo.identity.mixins.user_organization import Expand
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ReadSingleQueryParameter(Expand, ReadSingleQueryParameterSchema):
|
|
8
|
+
pass
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ReadSingleParameter(
|
|
12
|
+
Expand, UseCache, OptionalListOfDataStatuses, OrganizationId, UserId
|
|
13
|
+
):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CreateParameter(Expand, UserId, OrganizationId):
|
|
18
|
+
pass
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import OrganizationId, UserId
|
|
2
|
+
from maleo.soma.mixins.parameter import OptionalListOfDataStatuses, UseCache
|
|
3
|
+
from maleo.soma.schemas.parameter.general import ReadSingleQueryParameterSchema
|
|
4
|
+
from maleo.identity.mixins.organization_role import Key
|
|
5
|
+
from maleo.identity.mixins.user_organization_role import Expand
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ReadSingleQueryParameter(Expand, ReadSingleQueryParameterSchema):
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ReadSingleParameter(
|
|
13
|
+
Expand, UseCache, OptionalListOfDataStatuses, Key, OrganizationId, UserId
|
|
14
|
+
):
|
|
15
|
+
pass
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import UserId
|
|
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.blood_type import OptionalSimpleBloodTypeMixin
|
|
11
|
+
from maleo.metadata.schemas.data.gender import OptionalSimpleGenderMixin
|
|
12
|
+
from maleo.identity.enums.user_profile import IdentifierType
|
|
13
|
+
from maleo.identity.mixins.user_profile import (
|
|
14
|
+
Expand,
|
|
15
|
+
OptionalIdCard,
|
|
16
|
+
LeadingTitle,
|
|
17
|
+
FirstName,
|
|
18
|
+
MiddleName,
|
|
19
|
+
LastName,
|
|
20
|
+
EndingTitle,
|
|
21
|
+
BirthPlace,
|
|
22
|
+
BirthDate,
|
|
23
|
+
OptionalAvatar,
|
|
24
|
+
OptionalAvatarContentType,
|
|
25
|
+
OptionalAvatarName,
|
|
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
|
+
pass
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class CreateOrUpdateQuery(Expand):
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class AvatarData(
|
|
48
|
+
OptionalAvatarContentType,
|
|
49
|
+
OptionalAvatar,
|
|
50
|
+
):
|
|
51
|
+
pass
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class CreateOrUpdateBody(
|
|
55
|
+
OptionalAvatarName,
|
|
56
|
+
OptionalSimpleGenderMixin,
|
|
57
|
+
OptionalSimpleBloodTypeMixin,
|
|
58
|
+
BirthDate,
|
|
59
|
+
BirthPlace,
|
|
60
|
+
EndingTitle,
|
|
61
|
+
LastName,
|
|
62
|
+
MiddleName,
|
|
63
|
+
FirstName,
|
|
64
|
+
LeadingTitle,
|
|
65
|
+
OptionalIdCard,
|
|
66
|
+
UserId,
|
|
67
|
+
):
|
|
68
|
+
pass
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class CreateParameter(AvatarData, CreateOrUpdateBody, CreateOrUpdateQuery):
|
|
72
|
+
pass
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class UpdateParameter(
|
|
76
|
+
AvatarData,
|
|
77
|
+
CreateOrUpdateBody,
|
|
78
|
+
CreateOrUpdateQuery,
|
|
79
|
+
IdentifierValueMixin[IdentifierValueType],
|
|
80
|
+
IdentifierTypeMixin[IdentifierType],
|
|
81
|
+
):
|
|
82
|
+
pass
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import UserId
|
|
2
|
+
from maleo.soma.mixins.parameter import OptionalListOfDataStatuses, UseCache
|
|
3
|
+
from maleo.soma.schemas.parameter.general import ReadSingleQueryParameterSchema
|
|
4
|
+
from maleo.metadata.schemas.data.system_role import SimpleSystemRoleMixin
|
|
5
|
+
from maleo.identity.mixins.user_system_role import Expand
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ReadSingleQueryParameter(
|
|
9
|
+
Expand,
|
|
10
|
+
ReadSingleQueryParameterSchema,
|
|
11
|
+
):
|
|
12
|
+
pass
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ReadSingleParameter(
|
|
16
|
+
Expand,
|
|
17
|
+
UseCache,
|
|
18
|
+
OptionalListOfDataStatuses,
|
|
19
|
+
SimpleSystemRoleMixin,
|
|
20
|
+
UserId,
|
|
21
|
+
):
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class CreateParameter(
|
|
26
|
+
Expand,
|
|
27
|
+
SimpleSystemRoleMixin,
|
|
28
|
+
UserId,
|
|
29
|
+
):
|
|
30
|
+
pass
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from maleo.soma.mixins.general import IsRoot, IsParent, IsChild, IsLeaf
|
|
2
|
+
from maleo.soma.mixins.parameter import (
|
|
3
|
+
OptionalListOfIds,
|
|
4
|
+
OptionalListOfKeys,
|
|
5
|
+
OptionalListOfParentIds,
|
|
6
|
+
OptionalListOfUuids,
|
|
7
|
+
)
|
|
8
|
+
from maleo.soma.schemas.parameter.service import (
|
|
9
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
10
|
+
ReadPaginatedMultipleParameterSchema,
|
|
11
|
+
)
|
|
12
|
+
from maleo.metadata.schemas.data.organization_type import (
|
|
13
|
+
OptionalListOfSimpleOrganizationTypesMixin,
|
|
14
|
+
)
|
|
15
|
+
from maleo.identity.mixins.organization import Expand
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ReadMultipleChildrenQueryParameter(
|
|
19
|
+
Expand,
|
|
20
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
21
|
+
OptionalListOfKeys,
|
|
22
|
+
IsLeaf,
|
|
23
|
+
IsParent,
|
|
24
|
+
OptionalListOfSimpleOrganizationTypesMixin,
|
|
25
|
+
OptionalListOfUuids,
|
|
26
|
+
OptionalListOfIds,
|
|
27
|
+
):
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ReadMultipleQueryParameter(
|
|
32
|
+
Expand,
|
|
33
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
34
|
+
OptionalListOfKeys,
|
|
35
|
+
IsLeaf,
|
|
36
|
+
IsChild,
|
|
37
|
+
IsParent,
|
|
38
|
+
IsRoot,
|
|
39
|
+
OptionalListOfParentIds,
|
|
40
|
+
OptionalListOfSimpleOrganizationTypesMixin,
|
|
41
|
+
OptionalListOfUuids,
|
|
42
|
+
OptionalListOfIds,
|
|
43
|
+
):
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class ReadMultipleParameter(
|
|
48
|
+
Expand,
|
|
49
|
+
ReadPaginatedMultipleParameterSchema,
|
|
50
|
+
OptionalListOfKeys,
|
|
51
|
+
IsLeaf,
|
|
52
|
+
IsChild,
|
|
53
|
+
IsParent,
|
|
54
|
+
IsRoot,
|
|
55
|
+
OptionalListOfParentIds,
|
|
56
|
+
OptionalListOfSimpleOrganizationTypesMixin,
|
|
57
|
+
OptionalListOfUuids,
|
|
58
|
+
OptionalListOfIds,
|
|
59
|
+
):
|
|
60
|
+
pass
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from maleo.soma.schemas.parameter.service import (
|
|
2
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
3
|
+
ReadPaginatedMultipleParameterSchema,
|
|
4
|
+
)
|
|
5
|
+
from maleo.soma.mixins.parameter import OptionalListOfOrganizationIds
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ReadMultipleFromOrganizationQueryParameter(
|
|
9
|
+
ReadPaginatedMultipleQueryParameterSchema
|
|
10
|
+
):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ReadMultipleQueryParameter(
|
|
15
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
16
|
+
OptionalListOfOrganizationIds,
|
|
17
|
+
):
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ReadMultipleParameter(
|
|
22
|
+
ReadPaginatedMultipleParameterSchema, OptionalListOfOrganizationIds
|
|
23
|
+
):
|
|
24
|
+
pass
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from maleo.soma.schemas.parameter.service import (
|
|
2
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
3
|
+
ReadPaginatedMultipleParameterSchema,
|
|
4
|
+
)
|
|
5
|
+
from maleo.soma.mixins.parameter import (
|
|
6
|
+
OptionalListOfKeys,
|
|
7
|
+
OptionalListOfOrganizationIds,
|
|
8
|
+
)
|
|
9
|
+
from maleo.identity.mixins.organization_role import Expand
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ReadMultipleFromOrganizationQueryParameter(
|
|
13
|
+
Expand,
|
|
14
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
15
|
+
OptionalListOfKeys,
|
|
16
|
+
):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ReadMultipleQueryParameter(
|
|
21
|
+
Expand,
|
|
22
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
23
|
+
OptionalListOfKeys,
|
|
24
|
+
OptionalListOfOrganizationIds,
|
|
25
|
+
):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ReadMultipleParameter(
|
|
30
|
+
Expand,
|
|
31
|
+
ReadPaginatedMultipleParameterSchema,
|
|
32
|
+
OptionalListOfKeys,
|
|
33
|
+
OptionalListOfOrganizationIds,
|
|
34
|
+
):
|
|
35
|
+
pass
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from maleo.soma.schemas.parameter.service import (
|
|
2
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
3
|
+
ReadPaginatedMultipleParameterSchema,
|
|
4
|
+
)
|
|
5
|
+
from maleo.soma.mixins.parameter import (
|
|
6
|
+
OptionalListOfIds,
|
|
7
|
+
OptionalListOfUuids,
|
|
8
|
+
)
|
|
9
|
+
from maleo.metadata.schemas.data.blood_type import OptionalListOfSimpleBloodTypesMixin
|
|
10
|
+
from maleo.metadata.schemas.data.gender import OptionalListOfSimpleGendersMixin
|
|
11
|
+
from maleo.metadata.schemas.data.user_type import OptionalListOfSimpleUserTypesMixin
|
|
12
|
+
from maleo.identity.mixins.user import (
|
|
13
|
+
OptionalListOfUsernames,
|
|
14
|
+
OptionalListOfEmails,
|
|
15
|
+
OptionalListOfPhones,
|
|
16
|
+
Expand,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ReadMultipleQueryParameter(
|
|
21
|
+
Expand,
|
|
22
|
+
ReadPaginatedMultipleQueryParameterSchema,
|
|
23
|
+
OptionalListOfSimpleBloodTypesMixin,
|
|
24
|
+
OptionalListOfSimpleGendersMixin,
|
|
25
|
+
OptionalListOfPhones,
|
|
26
|
+
OptionalListOfEmails,
|
|
27
|
+
OptionalListOfUsernames,
|
|
28
|
+
OptionalListOfSimpleUserTypesMixin,
|
|
29
|
+
OptionalListOfUuids,
|
|
30
|
+
OptionalListOfIds,
|
|
31
|
+
):
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class ReadMultipleParameter(
|
|
36
|
+
Expand,
|
|
37
|
+
ReadPaginatedMultipleParameterSchema,
|
|
38
|
+
OptionalListOfSimpleBloodTypesMixin,
|
|
39
|
+
OptionalListOfSimpleGendersMixin,
|
|
40
|
+
OptionalListOfPhones,
|
|
41
|
+
OptionalListOfEmails,
|
|
42
|
+
OptionalListOfUsernames,
|
|
43
|
+
OptionalListOfSimpleUserTypesMixin,
|
|
44
|
+
OptionalListOfUuids,
|
|
45
|
+
OptionalListOfIds,
|
|
46
|
+
):
|
|
47
|
+
pass
|