maleo-identity 0.0.85__py3-none-any.whl → 0.1.24__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.
- maleo/identity/constants/api_key.py +13 -0
- maleo/identity/constants/organization.py +3 -10
- maleo/identity/constants/organization_registration_code.py +5 -17
- maleo/identity/constants/organization_relation.py +13 -0
- maleo/identity/constants/patient.py +7 -0
- maleo/identity/constants/user.py +3 -20
- maleo/identity/constants/user_medical_role.py +13 -0
- maleo/identity/constants/user_organization_role.py +5 -39
- maleo/identity/constants/user_profile.py +3 -21
- maleo/identity/constants/user_system_role.py +9 -8
- maleo/identity/enums/api_key.py +25 -0
- maleo/identity/enums/organization.py +16 -3
- maleo/identity/enums/organization_registration_code.py +9 -0
- maleo/identity/enums/organization_relation.py +22 -0
- maleo/identity/enums/patient.py +29 -0
- maleo/identity/enums/user.py +16 -7
- maleo/identity/enums/user_medical_role.py +22 -0
- maleo/identity/enums/user_organization_role.py +19 -12
- maleo/identity/enums/user_profile.py +7 -9
- maleo/identity/enums/user_system_role.py +30 -0
- maleo/identity/mixins/api_key.py +72 -0
- maleo/identity/mixins/common.py +29 -0
- maleo/identity/mixins/organization.py +68 -8
- maleo/identity/mixins/organization_registration_code.py +126 -9
- maleo/identity/mixins/organization_relation.py +80 -0
- maleo/identity/mixins/patient.py +65 -0
- maleo/identity/mixins/user.py +86 -24
- maleo/identity/mixins/user_medical_role.py +68 -0
- maleo/identity/mixins/user_organization_role.py +68 -4
- maleo/identity/mixins/user_profile.py +84 -53
- maleo/identity/mixins/user_system_role.py +72 -4
- maleo/identity/schemas/api_key.py +171 -0
- maleo/identity/schemas/common.py +335 -0
- maleo/identity/schemas/organization.py +311 -0
- maleo/identity/schemas/organization_registration_code.py +314 -0
- maleo/identity/schemas/organization_relation.py +315 -0
- maleo/identity/schemas/patient.py +349 -0
- maleo/identity/schemas/user.py +318 -0
- maleo/identity/schemas/user_medical_role.py +316 -0
- maleo/identity/schemas/user_organization_role.py +317 -0
- maleo/identity/schemas/user_profile.py +362 -0
- maleo/identity/schemas/user_system_role.py +339 -0
- maleo/identity/types/api_key.py +7 -0
- maleo/identity/types/organization.py +4 -0
- maleo/identity/types/organization_registration_code.py +4 -0
- maleo/identity/types/organization_relation.py +7 -0
- maleo/identity/types/patient.py +4 -0
- maleo/identity/types/user.py +4 -0
- maleo/identity/types/user_medical_role.py +7 -0
- maleo/identity/types/user_organization_role.py +7 -0
- maleo/identity/types/user_profile.py +4 -0
- maleo/identity/types/user_system_role.py +8 -0
- maleo/identity/utils/organization.py +32 -0
- maleo/identity/utils/user.py +32 -0
- maleo_identity-0.1.24.dist-info/METADATA +119 -0
- maleo_identity-0.1.24.dist-info/RECORD +66 -0
- maleo_identity-0.1.24.dist-info/licenses/LICENSE +57 -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/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 -29
- 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/mixins/organization_role.py +0 -15
- maleo/identity/mixins/user_organization.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 -43
- maleo/identity/schemas/parameter/general/organization_registration_code.py +0 -54
- maleo/identity/schemas/parameter/general/organization_role.py +0 -14
- maleo/identity/schemas/parameter/general/user.py +0 -101
- 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 -70
- 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/types/base/organization.py +0 -5
- maleo/identity/types/base/organization_registration_code.py +0 -4
- maleo/identity/types/base/user.py +0 -5
- maleo/identity/types/base/user_profile.py +0 -5
- maleo_identity-0.0.85.dist-info/METADATA +0 -40
- maleo_identity-0.0.85.dist-info/RECORD +0 -105
- /maleo/identity/{client → utils}/__init__.py +0 -0
- {maleo_identity-0.0.85.dist-info → maleo_identity-0.1.24.dist-info}/WHEEL +0 -0
- {maleo_identity-0.0.85.dist-info → maleo_identity-0.1.24.dist-info}/top_level.txt +0 -0
|
@@ -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 Expand
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class ReadMultipleParameter(
|
|
19
|
-
Expand,
|
|
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
|
-
Expand,
|
|
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
|
-
Expand,
|
|
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
|
-
Expand,
|
|
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 Expand
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ReadMultipleFromOrganizationParameter(
|
|
14
|
-
Expand, ReadPaginatedMultipleParameterSchema, OptionalListOfKeys, OrganizationId
|
|
15
|
-
):
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ReadMultipleParameter(
|
|
20
|
-
Expand,
|
|
21
|
-
ReadPaginatedMultipleParameterSchema,
|
|
22
|
-
OptionalListOfKeys,
|
|
23
|
-
OptionalListOfOrganizationIds,
|
|
24
|
-
):
|
|
25
|
-
pass
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class ReadMultipleFromOrganizationQueryParameter(
|
|
29
|
-
Expand,
|
|
30
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
31
|
-
OptionalListOfKeys,
|
|
32
|
-
):
|
|
33
|
-
pass
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class ReadMultipleQueryParameter(
|
|
37
|
-
Expand,
|
|
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
|
-
Expand,
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class ReadMultipleParameter(
|
|
18
|
-
Expand,
|
|
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
|
-
Expand,
|
|
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 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
|
|
@@ -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 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
|
|
@@ -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 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
|
|
@@ -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 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
|
|
@@ -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,54 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.general import OrganizationId
|
|
2
|
-
from maleo.soma.mixins.parameter import IdentifierTypeValue as IdentifierTypeValueMixin
|
|
3
|
-
from maleo.soma.schemas.parameter.general import (
|
|
4
|
-
ReadSingleParameterSchema,
|
|
5
|
-
StatusUpdateQueryParameterSchema,
|
|
6
|
-
)
|
|
7
|
-
from maleo.identity.enums.organization_registration_code import IdentifierType
|
|
8
|
-
from maleo.identity.mixins.organization_registration_code import (
|
|
9
|
-
MaxUses,
|
|
10
|
-
OptionalMaxUses,
|
|
11
|
-
)
|
|
12
|
-
from maleo.identity.types.base.organization_registration_code import IdentifierValueType
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class ReadSingleParameter(
|
|
16
|
-
ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
17
|
-
):
|
|
18
|
-
pass
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class CreateParameter(
|
|
22
|
-
MaxUses,
|
|
23
|
-
OrganizationId,
|
|
24
|
-
):
|
|
25
|
-
pass
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class FullDataUpdateBody(MaxUses):
|
|
29
|
-
pass
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class FullDataUpdateParameter(
|
|
33
|
-
FullDataUpdateBody,
|
|
34
|
-
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
35
|
-
):
|
|
36
|
-
pass
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class PartialDataUpdateBody(OptionalMaxUses):
|
|
40
|
-
pass
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
class PartialDataUpdateParameter(
|
|
44
|
-
PartialDataUpdateBody,
|
|
45
|
-
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
46
|
-
):
|
|
47
|
-
pass
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class StatusUpdateParameter(
|
|
51
|
-
StatusUpdateQueryParameterSchema,
|
|
52
|
-
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
53
|
-
):
|
|
54
|
-
pass
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1,101 +0,0 @@
|
|
|
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
|