maleo-identity 0.0.91__py3-none-any.whl → 0.0.92__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 +313 -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.92.dist-info/METADATA +118 -0
- maleo_identity-0.0.92.dist-info/RECORD +33 -0
- maleo_identity-0.0.92.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.92.dist-info}/WHEEL +0 -0
- {maleo_identity-0.0.91.dist-info → maleo_identity-0.0.92.dist-info}/top_level.txt +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
from typing import Literal, overload
|
|
2
|
-
from uuid import UUID
|
|
3
|
-
from maleo.soma.constants import ALL_STATUSES
|
|
4
|
-
from maleo.soma.mixins.general import OrganizationId
|
|
5
|
-
from maleo.soma.mixins.parameter import IdentifierTypeValue as IdentifierTypeValueMixin
|
|
6
|
-
from maleo.soma.schemas.parameter.general import (
|
|
7
|
-
ReadSingleParameterSchema,
|
|
8
|
-
StatusUpdateQueryParameterSchema,
|
|
9
|
-
)
|
|
10
|
-
from maleo.soma.types.base import ListOfDataStatuses
|
|
11
|
-
from maleo.identity.enums.organization_registration_code import IdentifierType
|
|
12
|
-
from maleo.identity.mixins.organization_registration_code import (
|
|
13
|
-
MaxUses,
|
|
14
|
-
OptionalMaxUses,
|
|
15
|
-
)
|
|
16
|
-
from maleo.identity.types.base.organization_registration_code import IdentifierValueType
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ReadSingleParameter(
|
|
20
|
-
ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
21
|
-
):
|
|
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
|
-
)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
class CreateParameter(
|
|
54
|
-
MaxUses,
|
|
55
|
-
OrganizationId,
|
|
56
|
-
):
|
|
57
|
-
pass
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
class FullDataUpdateBody(MaxUses):
|
|
61
|
-
pass
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class FullDataUpdateParameter(
|
|
65
|
-
FullDataUpdateBody,
|
|
66
|
-
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
67
|
-
):
|
|
68
|
-
pass
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
class PartialDataUpdateBody(OptionalMaxUses):
|
|
72
|
-
pass
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
class PartialDataUpdateParameter(
|
|
76
|
-
PartialDataUpdateBody,
|
|
77
|
-
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
78
|
-
):
|
|
79
|
-
pass
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
class StatusUpdateParameter(
|
|
83
|
-
StatusUpdateQueryParameterSchema,
|
|
84
|
-
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
85
|
-
):
|
|
86
|
-
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, Include
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class ReadSingleQueryParameter(Include, ReadSingleQueryParameterSchema):
|
|
8
|
-
pass
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ReadSingleParameter(
|
|
12
|
-
Include, UseCache, OptionalListOfDataStatuses, Key, OrganizationId
|
|
13
|
-
):
|
|
14
|
-
pass
|
|
@@ -1,150 +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 OptionalOrganizationId
|
|
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.blood_type import OptionalSimpleBloodTypeMixin
|
|
15
|
-
from maleo.metadata.schemas.data.gender import OptionalSimpleGenderMixin
|
|
16
|
-
from maleo.metadata.schemas.data.user_type import SimpleUserTypeMixin
|
|
17
|
-
from maleo.identity.enums.user import IdentifierType, IncludableField
|
|
18
|
-
from maleo.identity.mixins.user import (
|
|
19
|
-
Username,
|
|
20
|
-
Email,
|
|
21
|
-
Phone,
|
|
22
|
-
Password,
|
|
23
|
-
PasswordConfirmation,
|
|
24
|
-
RegistrationCode,
|
|
25
|
-
Include,
|
|
26
|
-
)
|
|
27
|
-
from maleo.identity.mixins.user_profile import (
|
|
28
|
-
OptionalIdCard,
|
|
29
|
-
LeadingTitle,
|
|
30
|
-
FirstName,
|
|
31
|
-
MiddleName,
|
|
32
|
-
LastName,
|
|
33
|
-
EndingTitle,
|
|
34
|
-
BirthPlace,
|
|
35
|
-
BirthDate,
|
|
36
|
-
OptionalAvatar,
|
|
37
|
-
OptionalAvatarContentType,
|
|
38
|
-
OptionalAvatarName,
|
|
39
|
-
)
|
|
40
|
-
from maleo.identity.types.base.user import IdentifierValueType
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
class ReadSingleQueryParameter(Include, ReadSingleQueryParameterSchema):
|
|
44
|
-
pass
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class ReadSingleParameter(
|
|
48
|
-
Include, ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
49
|
-
):
|
|
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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = None,
|
|
88
|
-
) -> "ReadSingleParameter":
|
|
89
|
-
return cls(
|
|
90
|
-
identifier=identifier,
|
|
91
|
-
value=value,
|
|
92
|
-
statuses=statuses,
|
|
93
|
-
use_cache=use_cache,
|
|
94
|
-
include=include,
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
class ReadSinglePassword(
|
|
99
|
-
ReadSingleParameterSchema[IdentifierType, IdentifierValueType]
|
|
100
|
-
):
|
|
101
|
-
pass
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
class UpdateBody(Phone, Email, Username):
|
|
105
|
-
pass
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class UpdateParameter(
|
|
109
|
-
Include,
|
|
110
|
-
UpdateBody,
|
|
111
|
-
IdentifierValueMixin[IdentifierValueType],
|
|
112
|
-
IdentifierTypeMixin[IdentifierType],
|
|
113
|
-
):
|
|
114
|
-
pass
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class CreateBody(Password, UpdateBody, SimpleUserTypeMixin, OptionalOrganizationId):
|
|
118
|
-
pass
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
class CreateParameter(
|
|
122
|
-
Include,
|
|
123
|
-
CreateBody,
|
|
124
|
-
):
|
|
125
|
-
pass
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
class RegisterParameter(
|
|
129
|
-
Include,
|
|
130
|
-
OptionalAvatarName,
|
|
131
|
-
OptionalAvatarContentType,
|
|
132
|
-
OptionalAvatar,
|
|
133
|
-
OptionalSimpleBloodTypeMixin,
|
|
134
|
-
OptionalSimpleGenderMixin,
|
|
135
|
-
BirthDate,
|
|
136
|
-
BirthPlace,
|
|
137
|
-
EndingTitle,
|
|
138
|
-
LastName,
|
|
139
|
-
MiddleName,
|
|
140
|
-
FirstName,
|
|
141
|
-
LeadingTitle,
|
|
142
|
-
OptionalIdCard,
|
|
143
|
-
PasswordConfirmation,
|
|
144
|
-
Password,
|
|
145
|
-
Phone,
|
|
146
|
-
Email,
|
|
147
|
-
Username,
|
|
148
|
-
RegistrationCode,
|
|
149
|
-
):
|
|
150
|
-
pass
|
|
@@ -1,18 +0,0 @@
|
|
|
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 Include
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class ReadSingleQueryParameter(Include, ReadSingleQueryParameterSchema):
|
|
8
|
-
pass
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ReadSingleParameter(
|
|
12
|
-
Include, UseCache, OptionalListOfDataStatuses, OrganizationId, UserId
|
|
13
|
-
):
|
|
14
|
-
pass
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class CreateParameter(Include, UserId, OrganizationId):
|
|
18
|
-
pass
|
|
@@ -1,15 +0,0 @@
|
|
|
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 Include
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ReadSingleQueryParameter(Include, ReadSingleQueryParameterSchema):
|
|
9
|
-
pass
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class ReadSingleParameter(
|
|
13
|
-
Include, UseCache, OptionalListOfDataStatuses, Key, OrganizationId, UserId
|
|
14
|
-
):
|
|
15
|
-
pass
|
|
@@ -1,119 +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 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, IncludableField
|
|
14
|
-
from maleo.identity.mixins.user_profile import (
|
|
15
|
-
Include,
|
|
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
|
-
Include,
|
|
32
|
-
ReadSingleQueryParameterSchema,
|
|
33
|
-
):
|
|
34
|
-
pass
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class ReadSingleParameter(
|
|
38
|
-
Include, 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = 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
|
-
include: Optional[List[IncludableField]] = None,
|
|
78
|
-
) -> "ReadSingleParameter":
|
|
79
|
-
return cls(
|
|
80
|
-
identifier=identifier,
|
|
81
|
-
value=value,
|
|
82
|
-
statuses=statuses,
|
|
83
|
-
use_cache=use_cache,
|
|
84
|
-
include=include,
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class CreateOrUpdateQuery(Include):
|
|
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,30 +0,0 @@
|
|
|
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 Include
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ReadSingleQueryParameter(
|
|
9
|
-
Include,
|
|
10
|
-
ReadSingleQueryParameterSchema,
|
|
11
|
-
):
|
|
12
|
-
pass
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class ReadSingleParameter(
|
|
16
|
-
Include,
|
|
17
|
-
UseCache,
|
|
18
|
-
OptionalListOfDataStatuses,
|
|
19
|
-
SimpleSystemRoleMixin,
|
|
20
|
-
UserId,
|
|
21
|
-
):
|
|
22
|
-
pass
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class CreateParameter(
|
|
26
|
-
Include,
|
|
27
|
-
SimpleSystemRoleMixin,
|
|
28
|
-
UserId,
|
|
29
|
-
):
|
|
30
|
-
pass
|
|
File without changes
|
|
@@ -1,60 +0,0 @@
|
|
|
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 Include
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class ReadMultipleChildrenQueryParameter(
|
|
19
|
-
Include,
|
|
20
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
21
|
-
OptionalListOfKeys,
|
|
22
|
-
IsLeaf,
|
|
23
|
-
IsParent,
|
|
24
|
-
OptionalListOfSimpleOrganizationTypesMixin,
|
|
25
|
-
OptionalListOfUuids,
|
|
26
|
-
OptionalListOfIds,
|
|
27
|
-
):
|
|
28
|
-
pass
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class ReadMultipleQueryParameter(
|
|
32
|
-
Include,
|
|
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
|
-
Include,
|
|
49
|
-
ReadPaginatedMultipleParameterSchema,
|
|
50
|
-
OptionalListOfKeys,
|
|
51
|
-
IsLeaf,
|
|
52
|
-
IsChild,
|
|
53
|
-
IsParent,
|
|
54
|
-
IsRoot,
|
|
55
|
-
OptionalListOfParentIds,
|
|
56
|
-
OptionalListOfSimpleOrganizationTypesMixin,
|
|
57
|
-
OptionalListOfUuids,
|
|
58
|
-
OptionalListOfIds,
|
|
59
|
-
):
|
|
60
|
-
pass
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1,35 +0,0 @@
|
|
|
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 Include
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class ReadMultipleFromOrganizationQueryParameter(
|
|
13
|
-
Include,
|
|
14
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
15
|
-
OptionalListOfKeys,
|
|
16
|
-
):
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class ReadMultipleQueryParameter(
|
|
21
|
-
Include,
|
|
22
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
23
|
-
OptionalListOfKeys,
|
|
24
|
-
OptionalListOfOrganizationIds,
|
|
25
|
-
):
|
|
26
|
-
pass
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class ReadMultipleParameter(
|
|
30
|
-
Include,
|
|
31
|
-
ReadPaginatedMultipleParameterSchema,
|
|
32
|
-
OptionalListOfKeys,
|
|
33
|
-
OptionalListOfOrganizationIds,
|
|
34
|
-
):
|
|
35
|
-
pass
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
Include,
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class ReadMultipleQueryParameter(
|
|
21
|
-
Include,
|
|
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
|
-
Include,
|
|
37
|
-
ReadPaginatedMultipleParameterSchema,
|
|
38
|
-
OptionalListOfSimpleBloodTypesMixin,
|
|
39
|
-
OptionalListOfSimpleGendersMixin,
|
|
40
|
-
OptionalListOfPhones,
|
|
41
|
-
OptionalListOfEmails,
|
|
42
|
-
OptionalListOfUsernames,
|
|
43
|
-
OptionalListOfSimpleUserTypesMixin,
|
|
44
|
-
OptionalListOfUuids,
|
|
45
|
-
OptionalListOfIds,
|
|
46
|
-
):
|
|
47
|
-
pass
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.parameter import (
|
|
2
|
-
OptionalListOfKeys,
|
|
3
|
-
OptionalListOfOrganizationIds,
|
|
4
|
-
OptionalListOfUserIds,
|
|
5
|
-
)
|
|
6
|
-
from maleo.soma.schemas.parameter.service import (
|
|
7
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
8
|
-
ReadPaginatedMultipleParameterSchema,
|
|
9
|
-
)
|
|
10
|
-
from maleo.identity.mixins.user_organization_role import Include
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ReadMultipleFromUserOrganizationQueryParameter(
|
|
14
|
-
Include, ReadPaginatedMultipleQueryParameterSchema, OptionalListOfKeys
|
|
15
|
-
):
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ReadMultipleQueryParameter(
|
|
20
|
-
Include,
|
|
21
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
22
|
-
OptionalListOfKeys,
|
|
23
|
-
OptionalListOfUserIds,
|
|
24
|
-
OptionalListOfOrganizationIds,
|
|
25
|
-
):
|
|
26
|
-
pass
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class ReadMultipleParameter(
|
|
30
|
-
Include,
|
|
31
|
-
ReadPaginatedMultipleParameterSchema,
|
|
32
|
-
OptionalListOfKeys,
|
|
33
|
-
OptionalListOfUserIds,
|
|
34
|
-
OptionalListOfOrganizationIds,
|
|
35
|
-
):
|
|
36
|
-
pass
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.parameter import OptionalListOfUserIds
|
|
2
|
-
from maleo.soma.schemas.parameter.service import (
|
|
3
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
4
|
-
ReadPaginatedMultipleParameterSchema,
|
|
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 ReadMultipleQueryParameter(
|
|
12
|
-
Include,
|
|
13
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
14
|
-
OptionalListOfSimpleBloodTypesMixin,
|
|
15
|
-
OptionalListOfSimpleGendersMixin,
|
|
16
|
-
OptionalListOfUserIds,
|
|
17
|
-
):
|
|
18
|
-
pass
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class ReadMultipleParameter(
|
|
22
|
-
Include,
|
|
23
|
-
ReadPaginatedMultipleParameterSchema,
|
|
24
|
-
OptionalListOfSimpleBloodTypesMixin,
|
|
25
|
-
OptionalListOfSimpleGendersMixin,
|
|
26
|
-
OptionalListOfUserIds,
|
|
27
|
-
):
|
|
28
|
-
pass
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
from maleo.soma.mixins.parameter import OptionalListOfUserIds
|
|
2
|
-
from maleo.soma.schemas.parameter.service import (
|
|
3
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
4
|
-
ReadPaginatedMultipleParameterSchema,
|
|
5
|
-
)
|
|
6
|
-
from maleo.metadata.schemas.data.system_role import OptionalSimpleSystemRoleMixin
|
|
7
|
-
from maleo.identity.mixins.user_system_role import Include
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class ReadMultipleFromuserQueryParameter(
|
|
11
|
-
Include, ReadPaginatedMultipleQueryParameterSchema, OptionalSimpleSystemRoleMixin
|
|
12
|
-
):
|
|
13
|
-
pass
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class ReadMultipleQueryParameter(
|
|
17
|
-
Include,
|
|
18
|
-
ReadPaginatedMultipleQueryParameterSchema,
|
|
19
|
-
OptionalSimpleSystemRoleMixin,
|
|
20
|
-
OptionalListOfUserIds,
|
|
21
|
-
):
|
|
22
|
-
pass
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class ReadMultipleParameter(
|
|
26
|
-
Include,
|
|
27
|
-
ReadPaginatedMultipleParameterSchema,
|
|
28
|
-
OptionalSimpleSystemRoleMixin,
|
|
29
|
-
OptionalListOfUserIds,
|
|
30
|
-
):
|
|
31
|
-
pass
|