maleo-identity 0.0.78__tar.gz → 0.0.79__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.0.78 → maleo_identity-0.0.79}/PKG-INFO +1 -1
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/organization_registration_code.py +5 -0
- maleo_identity-0.0.79/maleo/identity/schemas/parameter/general/organization_registration_code.py +54 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo_identity.egg-info/PKG-INFO +1 -1
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/pyproject.toml +1 -1
- maleo_identity-0.0.78/maleo/identity/schemas/parameter/general/organization_registration_code.py +0 -30
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/README.md +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/manager.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/db.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/dtos/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/dtos/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/general.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/metadata/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/metadata/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/user_organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/user_organization_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/user_system_role.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/types/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/types/base/__init__.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/types/base/organization.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/types/base/organization_registration_code.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/types/base/user.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/types/base/user_profile.py +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo_identity.egg-info/SOURCES.txt +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo_identity.egg-info/requires.txt +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo_identity.egg-info/top_level.txt +0 -0
- {maleo_identity-0.0.78 → maleo_identity-0.0.79}/setup.cfg +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from pydantic import BaseModel, Field
|
|
2
2
|
from uuid import UUID
|
|
3
|
+
from maleo.soma.types.base import OptionalInteger
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
class Code(BaseModel):
|
|
@@ -10,5 +11,9 @@ class MaxUses(BaseModel):
|
|
|
10
11
|
max_uses: int = Field(1, ge=1, description="Max code uses")
|
|
11
12
|
|
|
12
13
|
|
|
14
|
+
class OptionalMaxUses(BaseModel):
|
|
15
|
+
max_uses: OptionalInteger = Field(None, ge=1, description="Max code uses")
|
|
16
|
+
|
|
17
|
+
|
|
13
18
|
class CurrentUses(BaseModel):
|
|
14
19
|
current_uses: int = Field(0, ge=0, description="Current code uses")
|
maleo_identity-0.0.79/maleo/identity/schemas/parameter/general/organization_registration_code.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
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 FullUpdateBody(MaxUses):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class FullUpdateParameter(
|
|
33
|
+
FullUpdateBody,
|
|
34
|
+
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
35
|
+
):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class PartialUpdateBody(OptionalMaxUses):
|
|
40
|
+
pass
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class PartialUpdateParameter(
|
|
44
|
+
PartialUpdateBody,
|
|
45
|
+
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
46
|
+
):
|
|
47
|
+
pass
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class StatusUpdateParameter(
|
|
51
|
+
StatusUpdateQueryParameterSchema,
|
|
52
|
+
IdentifierTypeValueMixin[IdentifierType, IdentifierValueType],
|
|
53
|
+
):
|
|
54
|
+
pass
|
maleo_identity-0.0.78/maleo/identity/schemas/parameter/general/organization_registration_code.py
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/organization.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user_organization.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user_profile.py
RENAMED
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/client/services/user_system_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user_organization.py
RENAMED
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user_organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/constants/user_system_role.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
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/enums/user_organization_role.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
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/mixins/user_organization_role.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
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/models/user_organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/organization_role.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/user_organization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/data/user_system_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/__init__.py
RENAMED
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/client/user.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/general/user.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo/identity/schemas/parameter/service/user.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
|
{maleo_identity-0.0.78 → maleo_identity-0.0.79}/maleo_identity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|