maleo-identity 0.1.5__tar.gz → 0.1.7__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.5 → maleo_identity-0.1.7}/PKG-INFO +1 -1
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/maleo_identity.egg-info/PKG-INFO +1 -1
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/pyproject.toml +1 -1
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/models.py +3 -4
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/common.py +1 -2
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/organization_registration_code.py +7 -6
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/LICENSE +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/README.md +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/maleo_identity.egg-info/SOURCES.txt +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/maleo_identity.egg-info/requires.txt +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/maleo_identity.egg-info/top_level.txt +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/setup.cfg +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/__init__.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/__init__.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/api_key.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/organization.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/organization_registration_code.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/organization_relation.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/patient.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/user.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/user_medical_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/user_organization_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/user_profile.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/constants/user_system_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/__init__.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/api_key.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/organization.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/organization_registration_code.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/organization_relation.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/patient.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/user.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/user_medical_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/user_organization_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/user_profile.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/enums/user_system_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/__init__.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/api_key.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/common.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/organization.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/organization_registration_code.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/organization_relation.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/patient.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/user.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/mixins/user_profile.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/__init__.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/api_key.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/organization.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/organization_relation.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/patient.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/user.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/user_medical_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/user_organization_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/user_profile.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/schemas/user_system_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/__init__.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/api_key.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/organization.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/organization_registration_code.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/organization_relation.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/patient.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/user.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/user_medical_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/user_organization_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/user_profile.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/types/user_system_role.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/utils/__init__.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/utils/organization.py +0 -0
- {maleo_identity-0.1.5 → maleo_identity-0.1.7}/src/utils/user.py +0 -0
|
@@ -69,7 +69,9 @@ class Patient(
|
|
|
69
69
|
passport: Mapped[OptStr] = mapped_column(
|
|
70
70
|
name="passport", type_=String(9), unique=True
|
|
71
71
|
)
|
|
72
|
-
|
|
72
|
+
full_name: Mapped[str] = mapped_column(
|
|
73
|
+
name="full_name", type_=String(200), nullable=False
|
|
74
|
+
)
|
|
73
75
|
place_of_birth: Mapped[OptStr] = mapped_column(
|
|
74
76
|
name="place_of_birth", type_=String(50)
|
|
75
77
|
)
|
|
@@ -109,9 +111,6 @@ class OrganizationRegistrationCode(
|
|
|
109
111
|
code: Mapped[str] = mapped_column(
|
|
110
112
|
name="code", type_=String(36), unique=True, nullable=False
|
|
111
113
|
)
|
|
112
|
-
max_uses: Mapped[int] = mapped_column(
|
|
113
|
-
name="max_uses", type_=Integer, nullable=False, default=1
|
|
114
|
-
)
|
|
115
114
|
current_uses: Mapped[int] = mapped_column(
|
|
116
115
|
name="current_uses", type_=Integer, nullable=False, default=0
|
|
117
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],
|
|
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.5 → maleo_identity-0.1.7}/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
|
|
File without changes
|