maleo-identity 0.1.6__tar.gz → 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of maleo-identity might be problematic. Click here for more details.
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/PKG-INFO +1 -1
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/maleo_identity.egg-info/PKG-INFO +1 -1
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/pyproject.toml +1 -1
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/models.py +0 -3
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/common.py +1 -2
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/organization_registration_code.py +7 -6
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/user_profile.py +0 -42
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/LICENSE +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/README.md +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/maleo_identity.egg-info/SOURCES.txt +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/maleo_identity.egg-info/requires.txt +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/maleo_identity.egg-info/top_level.txt +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/setup.cfg +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/__init__.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/__init__.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/api_key.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/organization.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/organization_registration_code.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/organization_relation.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/patient.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/user.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/user_medical_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/user_organization_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/user_profile.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/user_system_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/__init__.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/api_key.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/organization.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/organization_registration_code.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/organization_relation.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/patient.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/user.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/user_medical_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/user_organization_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/user_profile.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/enums/user_system_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/__init__.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/api_key.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/common.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/organization.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/organization_registration_code.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/organization_relation.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/patient.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/user.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/mixins/user_profile.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/__init__.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/api_key.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/organization.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/organization_relation.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/patient.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/user.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/user_medical_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/user_organization_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/schemas/user_system_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/__init__.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/api_key.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/organization.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/organization_registration_code.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/organization_relation.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/patient.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/user.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/user_medical_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/user_organization_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/user_profile.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/types/user_system_role.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/utils/__init__.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/utils/organization.py +0 -0
- {maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/utils/user.py +0 -0
|
@@ -111,9 +111,6 @@ class OrganizationRegistrationCode(
|
|
|
111
111
|
code: Mapped[str] = mapped_column(
|
|
112
112
|
name="code", type_=String(36), unique=True, nullable=False
|
|
113
113
|
)
|
|
114
|
-
max_uses: Mapped[int] = mapped_column(
|
|
115
|
-
name="max_uses", type_=Integer, nullable=False, default=1
|
|
116
|
-
)
|
|
117
114
|
current_uses: Mapped[int] = mapped_column(
|
|
118
115
|
name="current_uses", type_=Integer, nullable=False, default=0
|
|
119
116
|
)
|
|
@@ -33,7 +33,7 @@ from maleo.types.integer import OptInt
|
|
|
33
33
|
from maleo.types.string import OptStr
|
|
34
34
|
from ..mixins.common import IdCard, FullName, BirthPlace, PlaceOfBirth
|
|
35
35
|
from ..mixins.api_key import APIKey
|
|
36
|
-
from ..mixins.organization_registration_code import Code,
|
|
36
|
+
from ..mixins.organization_registration_code import Code, CurrentUses
|
|
37
37
|
from ..mixins.organization_relation import IsBidirectional, Meta
|
|
38
38
|
from ..mixins.organization import Key as OrganizationKey, Name as OrganizationName
|
|
39
39
|
from ..mixins.patient import PatientIdentifier
|
|
@@ -77,7 +77,6 @@ class PatientSchema(
|
|
|
77
77
|
|
|
78
78
|
class OrganizationRegistrationCodeSchema(
|
|
79
79
|
CurrentUses,
|
|
80
|
-
MaxUses[int],
|
|
81
80
|
Code[str],
|
|
82
81
|
IntOrganizationId[int],
|
|
83
82
|
SimpleDataStatusMixin[DataStatusEnum],
|
|
@@ -30,20 +30,21 @@ from ..mixins.organization_registration_code import Code, MaxUses
|
|
|
30
30
|
from ..types.organization_registration_code import IdentifierValueType
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
34
|
-
MaxUses[int],
|
|
35
|
-
Code[OptStr],
|
|
36
|
-
):
|
|
33
|
+
class StandardCreateData(Code[OptStr]):
|
|
37
34
|
pass
|
|
38
35
|
|
|
39
36
|
|
|
40
|
-
class
|
|
41
|
-
|
|
37
|
+
class FullCreateData(
|
|
38
|
+
StandardCreateData,
|
|
42
39
|
IntOrganizationId[int],
|
|
43
40
|
):
|
|
44
41
|
pass
|
|
45
42
|
|
|
46
43
|
|
|
44
|
+
class CreateParameter(FullCreateData):
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
|
|
47
48
|
class ReadMultipleParameter(
|
|
48
49
|
ReadPaginatedMultipleParameter,
|
|
49
50
|
Codes[OptListOfStrs],
|
|
@@ -48,53 +48,11 @@ from ..mixins.user_profile import (
|
|
|
48
48
|
MiddleName,
|
|
49
49
|
LastName,
|
|
50
50
|
EndingTitle,
|
|
51
|
-
AvatarName,
|
|
52
51
|
)
|
|
53
52
|
from ..types.user_profile import IdentifierValueType
|
|
54
53
|
|
|
55
54
|
|
|
56
|
-
class CoreCreateData(
|
|
57
|
-
BloodTypeMixin[OptBloodType],
|
|
58
|
-
GenderMixin[OptGender],
|
|
59
|
-
BirthDate[OptDate],
|
|
60
|
-
BirthPlace[OptStr],
|
|
61
|
-
FullName[str],
|
|
62
|
-
EndingTitle[OptStr],
|
|
63
|
-
LastName[str],
|
|
64
|
-
MiddleName[OptStr],
|
|
65
|
-
FirstName[str],
|
|
66
|
-
LeadingTitle[OptStr],
|
|
67
|
-
IdCard[OptStr],
|
|
68
|
-
):
|
|
69
|
-
pass
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
class EssentialData(
|
|
73
|
-
AvatarName[str],
|
|
74
|
-
BloodTypeMixin[OptBloodType],
|
|
75
|
-
GenderMixin[OptGender],
|
|
76
|
-
BirthDate[OptDate],
|
|
77
|
-
BirthPlace[OptStr],
|
|
78
|
-
FullName[str],
|
|
79
|
-
EndingTitle[OptStr],
|
|
80
|
-
LastName[str],
|
|
81
|
-
MiddleName[OptStr],
|
|
82
|
-
FirstName[str],
|
|
83
|
-
LeadingTitle[OptStr],
|
|
84
|
-
IdCard[OptStr],
|
|
85
|
-
):
|
|
86
|
-
pass
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
class InsertData(
|
|
90
|
-
EssentialData,
|
|
91
|
-
IntUserId[int],
|
|
92
|
-
):
|
|
93
|
-
pass
|
|
94
|
-
|
|
95
|
-
|
|
96
55
|
class CreateParameter(
|
|
97
|
-
AvatarName[str],
|
|
98
56
|
BloodTypeMixin[OptBloodType],
|
|
99
57
|
GenderMixin[OptGender],
|
|
100
58
|
BirthDate[OptDate],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.1.6 → maleo_identity-0.1.8}/src/constants/organization_registration_code.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|