maleo-identity 0.0.54__py3-none-any.whl → 0.0.55__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.

Files changed (26) hide show
  1. maleo_identity/constants/organization_registration_code.py +14 -0
  2. maleo_identity/enums/organization.py +2 -1
  3. maleo_identity/enums/organization_registration_code.py +8 -0
  4. maleo_identity/models/responses/organization_registration_code.py +46 -0
  5. maleo_identity/models/schemas/general.py +3 -0
  6. maleo_identity/models/schemas/organization_registration_code.py +21 -0
  7. maleo_identity/models/schemas/user.py +9 -5
  8. maleo_identity/models/tables/__init__.py +2 -0
  9. maleo_identity/models/tables/organization.py +7 -0
  10. maleo_identity/models/tables/organization_registration_code.py +29 -0
  11. maleo_identity/models/transfers/general/organization.py +2 -0
  12. maleo_identity/models/transfers/general/organization_registration_code.py +19 -0
  13. maleo_identity/models/transfers/parameters/client/organization_registration_code.py +24 -0
  14. maleo_identity/models/transfers/parameters/general/organization_registration_code.py +33 -0
  15. maleo_identity/models/transfers/parameters/general/user.py +28 -1
  16. maleo_identity/models/transfers/parameters/service/organization_registration_code.py +19 -0
  17. maleo_identity/models/transfers/results/client/organization_registration_code.py +15 -0
  18. maleo_identity/models/transfers/results/service/__init__.py +0 -0
  19. maleo_identity/models/transfers/results/service/organization_registration_code.py +15 -0
  20. maleo_identity/types/results/client/organization_registration_code.py +20 -0
  21. maleo_identity/types/results/service/__init__.py +0 -0
  22. maleo_identity/types/results/service/organization_registration_code.py +21 -0
  23. {maleo_identity-0.0.54.dist-info → maleo_identity-0.0.55.dist-info}/METADATA +3 -3
  24. {maleo_identity-0.0.54.dist-info → maleo_identity-0.0.55.dist-info}/RECORD +26 -11
  25. {maleo_identity-0.0.54.dist-info → maleo_identity-0.0.55.dist-info}/WHEEL +0 -0
  26. {maleo_identity-0.0.54.dist-info → maleo_identity-0.0.55.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,14 @@
1
+ from typing import Dict
2
+ from uuid import UUID
3
+ from maleo_identity.enums.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeEnums
4
+
5
+ class MaleoIdentityOrganizationRegistrationCodeConstants:
6
+ IDENTIFIER_TYPE_VALUE_TYPE_MAP:Dict[
7
+ MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType,
8
+ object
9
+ ] = {
10
+ MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.ID: int,
11
+ MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.UUID: UUID,
12
+ MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.ORGANIZATION_ID: int,
13
+ MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.CODE: UUID
14
+ }
@@ -7,4 +7,5 @@ class MaleoIdentityOrganizationEnums:
7
7
  KEY = "key"
8
8
 
9
9
  class ExpandableFields(StrEnum):
10
- ORGANIZATION_TYPE = "organization_type"
10
+ ORGANIZATION_TYPE = "organization_type"
11
+ REGISTRATION_CODES = "registration_codes"
@@ -0,0 +1,8 @@
1
+ from enum import StrEnum
2
+
3
+ class MaleoIdentityOrganizationRegistrationCodeEnums:
4
+ class IdentifierType(StrEnum):
5
+ ID = "id"
6
+ UUID = "uuid"
7
+ ORGANIZATION_ID = "organization_id"
8
+ CODE = "code"
@@ -0,0 +1,46 @@
1
+ from pydantic import Field
2
+ from maleo_foundation.models.responses import BaseResponses
3
+ from maleo_identity.enums.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeEnums
4
+ from maleo_identity.models.transfers.general.organization_registration_code import OrganizationRegistrationCodeTransfers
5
+
6
+ class MaleoIdentityOrganizationRegistrationCodeResponses:
7
+ class InvalidIdentifierType(BaseResponses.BadRequest):
8
+ code:str = "IDT-ORC-001"
9
+ message:str = "Invalid identifier type"
10
+ description:str = "Invalid identifier type is given in the request"
11
+ other: str = f"Valid identifier types: {[f'{e.name} ({e.value})' for e in MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType]}"
12
+
13
+ class InvalidValueType(BaseResponses.BadRequest):
14
+ code:str = "IDT-ORC-002"
15
+ message:str = "Invalid value type"
16
+ description:str = "Invalid value type is given in the request"
17
+
18
+ class GetSingle(BaseResponses.SingleData):
19
+ code:str = "IDT-ORC-003"
20
+ message:str = "Organization registration code found"
21
+ description:str = "Requested organization registration code found in database"
22
+ data:OrganizationRegistrationCodeTransfers = Field(..., description="Organization registration code")
23
+
24
+ class GetMultiple(BaseResponses.PaginatedMultipleData):
25
+ code:str = "IDT-ORC-004"
26
+ message:str = "Organization registration codes found"
27
+ description:str = "Requested organization registration codes found in database"
28
+ data:list[OrganizationRegistrationCodeTransfers] = Field(..., description="Organization registration codes")
29
+
30
+ class CreateFailed(BaseResponses.BadRequest):
31
+ code:str = "IDT-ORC-005"
32
+ message:str = "Failed creating new organization registration code"
33
+
34
+ class CreateSuccess(BaseResponses.SingleData):
35
+ code:str = "IDT-ORC-006"
36
+ message:str = "Successfully created new organization registration code"
37
+ data:OrganizationRegistrationCodeTransfers = Field(..., description="Organization registration code")
38
+
39
+ class UpdateFailed(BaseResponses.BadRequest):
40
+ code:str = "IDT-ORC-007"
41
+ message:str = "Failed updating organization registration code's data"
42
+
43
+ class UpdateSuccess(BaseResponses.SingleData):
44
+ code:str = "IDT-ORC-008"
45
+ message:str = "Successfully updated organization registration code's data"
46
+ data:OrganizationRegistrationCodeTransfers = Field(..., description="Organization registration code")
@@ -11,5 +11,8 @@ class MaleoIdentityGeneralSchemas:
11
11
  class OrganizationId(BaseModel):
12
12
  organization_id:int = Field(..., ge=1, description="Organization's ID")
13
13
 
14
+ class OptionalOrganizationId(BaseModel):
15
+ organization_id:BaseTypes.OptionalInteger = Field(None, ge=1, description="Optional Organization's ID")
16
+
14
17
  class OptionalListOfOrganizationIds(BaseModel):
15
18
  organization_ids:BaseTypes.OptionalListOfIntegers = Field(None, description="Organization's IDs")
@@ -0,0 +1,21 @@
1
+ from pydantic import BaseModel, Field
2
+ from uuid import UUID
3
+ from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
+ from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
5
+ from maleo_identity.enums.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeEnums
6
+
7
+ class MaleoIdentityOrganizationRegistrationCodeSchemas:
8
+ class IdentifierType(BaseParameterSchemas.IdentifierType):
9
+ identifier:MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType = Field(..., description="Organization registration code's identifier")
10
+
11
+ class Name(BaseGeneralSchemas.Name):
12
+ name:str = Field(..., max_length=50, description="Organization Role's name")
13
+
14
+ class Code(BaseModel):
15
+ code:UUID = Field(..., description="Registration code")
16
+
17
+ class MaxUses(BaseModel):
18
+ max_uses:int = Field(..., ge=1, description="Max code uses")
19
+
20
+ class CurrentUses(BaseModel):
21
+ current_uses:int = Field(..., ge=0, description="Current code uses")
@@ -1,5 +1,6 @@
1
1
  from pydantic import BaseModel, Field
2
2
  from typing import List, Optional
3
+ from uuid import UUID
3
4
  from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
4
5
  from maleo_foundation.types import BaseTypes
5
6
  from maleo_identity.enums.user import MaleoIdentityUserEnums
@@ -11,9 +12,6 @@ class MaleoIdentityUserSchemas:
11
12
  class Expand(BaseParameterSchemas.Expand):
12
13
  expand:Optional[List[MaleoIdentityUserEnums.ExpandableFields]] = Field(None, description="Expanded field(s)")
13
14
 
14
- class OptionalOrganizationId(BaseModel):
15
- organization_id:BaseTypes.OptionalInteger = Field(..., ge=1, description="Organization's ID")
16
-
17
15
  class Username(BaseModel):
18
16
  username:str = Field(..., max_length=50, description="User's username")
19
17
 
@@ -27,10 +25,16 @@ class MaleoIdentityUserSchemas:
27
25
  emails:BaseTypes.OptionalListOfStrings = Field(None, description="Specific emails")
28
26
 
29
27
  class Phone(BaseModel):
30
- phone:str = Field(..., min_length=4, max_length=15, pattern=r'^\d{4,15}$', description="User's phone")
28
+ phone:str = Field(..., min_length=4, max_length=15, description="User's phone")
31
29
 
32
30
  class OptionalListOfPhones(BaseModel):
33
31
  phones:BaseTypes.OptionalListOfStrings = Field(None, description="Specific phones")
34
32
 
35
33
  class Password(BaseModel):
36
- password:str = Field(..., max_length=255, description="User's password")
34
+ password:str = Field(..., max_length=255, description="User's password")
35
+
36
+ class PasswordConfirmation(BaseModel):
37
+ password_confirmation:str = Field(..., max_length=255, description="User's password confirmation")
38
+
39
+ class RegistrationCode(BaseModel):
40
+ registration_code:UUID = Field(..., description="Registration code")
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
  from .organization import OrganizationsTable
3
+ from .organization_registration_code import OrganizationRegistrationCodesTable
3
4
  from .organization_role import OrganizationRolesTable
4
5
  from .user import UsersTable
5
6
  from .user_profile import UserProfilesTable
@@ -9,6 +10,7 @@ from .user_organization_role import UserOrganizationRolesTable
9
10
 
10
11
  class MaleoIdentityTables:
11
12
  Organization = OrganizationsTable
13
+ OrganizationRegistrationCode = OrganizationRegistrationCodesTable
12
14
  OrganizationRole = OrganizationRolesTable
13
15
  User = UsersTable
14
16
  UserProfile = UserProfilesTable
@@ -29,4 +29,11 @@ class OrganizationsTable(MaleoIdentityMetadataManager.Base):
29
29
  lazy="select",
30
30
  foreign_keys="[OrganizationsTable.parent_id]",
31
31
  order_by="OrganizationsTable.id"
32
+ )
33
+ registration_code = relationship(
34
+ "OrganizationRegistrationCodesTable",
35
+ back_populates="organization",
36
+ cascade="all",
37
+ lazy="select",
38
+ uselist=False
32
39
  )
@@ -0,0 +1,29 @@
1
+ from sqlalchemy import Column, ForeignKey
2
+ from sqlalchemy.orm import relationship
3
+ from sqlalchemy.types import Integer, UUID
4
+ from uuid import uuid4
5
+ from maleo_identity.db import MaleoIdentityMetadataManager
6
+
7
+ class OrganizationRegistrationCodesTable(MaleoIdentityMetadataManager.Base):
8
+ __tablename__ = "organization_registration_codes"
9
+ #* Foreign Key OrganizationsTable
10
+ organization_id = Column(
11
+ Integer,
12
+ ForeignKey(
13
+ "organizations.id",
14
+ ondelete="CASCADE",
15
+ onupdate="CASCADE"
16
+ ),
17
+ unique=True,
18
+ nullable=False
19
+ )
20
+ organization = relationship(
21
+ "OrganizationsTable",
22
+ back_populates="registration_code",
23
+ cascade="all",
24
+ lazy="select",
25
+ uselist=False
26
+ )
27
+ code = Column(name="code", type_=UUID, default=uuid4, unique=True, nullable=False)
28
+ max_uses = Column(name="max_uses", type_=Integer, nullable=False, default=1)
29
+ current_uses = Column(name="current_uses", type_=Integer, nullable=False, default=0)
@@ -3,8 +3,10 @@ from typing import List, Optional
3
3
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
4
  from maleo_metadata.models.expanded_schemas.organization_type import MaleoMetadataOrganizationTypeExpandedSchemas
5
5
  from maleo_identity.models.schemas.organization import MaleoIdentityOrganizationSchemas
6
+ from .organization_registration_code import OptionalOrganizationRegistrationCodeTransfers
6
7
 
7
8
  class OrganizationTransfers(
9
+ OptionalOrganizationRegistrationCodeTransfers,
8
10
  MaleoIdentityOrganizationSchemas.Name,
9
11
  MaleoIdentityOrganizationSchemas.Key,
10
12
  MaleoIdentityOrganizationSchemas.OptionalParentId,
@@ -0,0 +1,19 @@
1
+ from pydantic import BaseModel, Field
2
+ from typing import Optional
3
+ from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
+ from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
5
+ from maleo_identity.models.schemas.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeSchemas
6
+
7
+ class OrganizationRegistrationCodeTransfers(
8
+ MaleoIdentityOrganizationRegistrationCodeSchemas.CurrentUses,
9
+ MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses,
10
+ MaleoIdentityOrganizationRegistrationCodeSchemas.Code,
11
+ MaleoIdentityGeneralSchemas.OrganizationId,
12
+ BaseGeneralSchemas.Status,
13
+ BaseGeneralSchemas.Timestamps,
14
+ BaseGeneralSchemas.Identifiers
15
+ ):
16
+ pass
17
+
18
+ class OptionalOrganizationRegistrationCodeTransfers(BaseModel):
19
+ registration_code:Optional[OrganizationRegistrationCodeTransfers] = Field(..., description="Registration codes")
@@ -0,0 +1,24 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
3
+ from maleo_foundation.models.transfers.parameters.client import BaseClientParametersTransfers
4
+ from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
5
+
6
+ class MaleoIdentityOrganizationRegistrationCodeClientParametersTransfers:
7
+ class GetMultipleFromOrganization(
8
+ BaseClientParametersTransfers.GetPaginatedMultiple,
9
+ MaleoIdentityGeneralSchemas.OrganizationId
10
+ ): pass
11
+
12
+ class GetMultiple(
13
+ BaseClientParametersTransfers.GetPaginatedMultiple,
14
+ MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
15
+ ): pass
16
+
17
+ class GetMultipleFromOrganizationQuery(
18
+ BaseClientParametersTransfers.GetPaginatedMultipleQuery
19
+ ): pass
20
+
21
+ class GetMultipleQuery(
22
+ BaseClientParametersTransfers.GetPaginatedMultipleQuery,
23
+ MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
24
+ ): pass
@@ -0,0 +1,33 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
3
+ from maleo_foundation.models.transfers.parameters.general import BaseGeneralParametersTransfers
4
+ from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
5
+ from maleo_identity.models.schemas.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeSchemas
6
+
7
+ class MaleoIdentityOrganizationRegistrationCodeGeneralParametersTransfers:
8
+ class GetSingleQuery(BaseGeneralParametersTransfers.GetSingleQuery): pass
9
+
10
+ class GetSingle(
11
+ BaseParameterSchemas.OptionalListOfStatuses,
12
+ BaseParameterSchemas.IdentifierValue,
13
+ MaleoIdentityOrganizationRegistrationCodeSchemas.IdentifierType
14
+ ): pass
15
+
16
+ class CreateFromOrganizationData(
17
+ MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses
18
+ ): pass
19
+
20
+ class CreateData(
21
+ MaleoIdentityGeneralSchemas.OrganizationId,
22
+ MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses
23
+ ): pass
24
+
25
+ class Create(CreateData): pass
26
+
27
+ class UpdateData(MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses): pass
28
+
29
+ class Update(
30
+ UpdateData,
31
+ BaseParameterSchemas.IdentifierValue,
32
+ MaleoIdentityOrganizationRegistrationCodeSchemas.IdentifierType
33
+ ): pass
@@ -1,7 +1,11 @@
1
1
  from __future__ import annotations
2
2
  from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
3
+ from maleo_metadata.models.expanded_schemas.blood_type import MaleoMetadataBloodTypeExpandedSchemas
4
+ from maleo_metadata.models.expanded_schemas.gender import MaleoMetadataGenderExpandedSchemas
3
5
  from maleo_metadata.models.expanded_schemas.user_type import MaleoMetadataUserTypeExpandedSchemas
6
+ from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
4
7
  from maleo_identity.models.schemas.user import MaleoIdentityUserSchemas
8
+ from maleo_identity.models.schemas.user_profile import MaleoIdentityUserProfileSchemas
5
9
 
6
10
  class MaleoIdentityUserGeneralParametersTransfers:
7
11
  class GetSingleQuery(
@@ -34,7 +38,7 @@ class MaleoIdentityUserGeneralParametersTransfers:
34
38
  MaleoIdentityUserSchemas.Password,
35
39
  UpdateData,
36
40
  MaleoMetadataUserTypeExpandedSchemas.SimpleUserType,
37
- MaleoIdentityUserSchemas.OptionalOrganizationId
41
+ MaleoIdentityGeneralSchemas.OptionalOrganizationId
38
42
  ): pass
39
43
 
40
44
  class Update(
@@ -47,4 +51,27 @@ class MaleoIdentityUserGeneralParametersTransfers:
47
51
  class Create(
48
52
  CreateOrUpdateQuery,
49
53
  CreateData
54
+ ): pass
55
+
56
+ class Register(
57
+ CreateOrUpdateQuery,
58
+ MaleoIdentityUserProfileSchemas.OptionalAvatarName,
59
+ MaleoIdentityUserProfileSchemas.OptionalAvatarContentType,
60
+ MaleoIdentityUserProfileSchemas.OptionalAvatar,
61
+ MaleoMetadataBloodTypeExpandedSchemas.OptionalSimpleBloodType,
62
+ MaleoMetadataGenderExpandedSchemas.OptionalSimpleGender,
63
+ MaleoIdentityUserProfileSchemas.BirthDate,
64
+ MaleoIdentityUserProfileSchemas.BirthPlace,
65
+ MaleoIdentityUserProfileSchemas.EndingTitle,
66
+ MaleoIdentityUserProfileSchemas.LastName,
67
+ MaleoIdentityUserProfileSchemas.MiddleName,
68
+ MaleoIdentityUserProfileSchemas.FirstName,
69
+ MaleoIdentityUserProfileSchemas.LeadingTitle,
70
+ MaleoIdentityUserProfileSchemas.OptionalIdCard,
71
+ MaleoIdentityUserSchemas.PasswordConfirmation,
72
+ MaleoIdentityUserSchemas.Password,
73
+ MaleoIdentityUserSchemas.Phone,
74
+ MaleoIdentityUserSchemas.Email,
75
+ MaleoIdentityUserSchemas.Username,
76
+ MaleoIdentityUserSchemas.RegistrationCode
50
77
  ): pass
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
3
+ from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
4
+ from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
5
+
6
+ class MaleoIdentityOrganizationRegistrationCodeServiceParametersTransfers:
7
+ class GetMultipleFromOrganizationQuery(
8
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
9
+ ): pass
10
+
11
+ class GetMultipleQuery(
12
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery,
13
+ MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
14
+ ): pass
15
+
16
+ class GetMultiple(
17
+ BaseServiceParametersTransfers.GetPaginatedMultiple,
18
+ MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
19
+ ): pass
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from maleo_foundation.models.transfers.results.client.service import BaseClientServiceResultsTransfers
4
+ from maleo_identity.models.transfers.general.organization_registration_code import OrganizationRegistrationCodeTransfers
5
+
6
+ class MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers:
7
+ class Fail(BaseClientServiceResultsTransfers.Fail): pass
8
+
9
+ class NoData(BaseClientServiceResultsTransfers.NoData): pass
10
+
11
+ class SingleData(BaseClientServiceResultsTransfers.SingleData):
12
+ data:OrganizationRegistrationCodeTransfers = Field(..., description="Single organization registration code data")
13
+
14
+ class MultipleData(BaseClientServiceResultsTransfers.PaginatedMultipleData):
15
+ data:list[OrganizationRegistrationCodeTransfers] = Field(..., description="Multiple organization registration codes data")
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from maleo_foundation.models.transfers.results.service.general import BaseServiceGeneralResultsTransfers
4
+ from maleo_identity.models.transfers.general.organization_registration_code import OrganizationRegistrationCodeTransfers
5
+
6
+ class MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers:
7
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
8
+
9
+ class NoData(BaseServiceGeneralResultsTransfers.NoData): pass
10
+
11
+ class SingleData(BaseServiceGeneralResultsTransfers.SingleData):
12
+ data:OrganizationRegistrationCodeTransfers = Field(..., description="Single organization registration code data")
13
+
14
+ class MultipleData(BaseServiceGeneralResultsTransfers.PaginatedMultipleData):
15
+ data:list[OrganizationRegistrationCodeTransfers] = Field(..., description="Multiple organization registration codes data")
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.client.organization_registration_code \
3
+ import MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers
4
+
5
+ class MaleoIdentityOrganizationRegistrationCodeClientResultsTypes:
6
+ GetMultiple = Union[
7
+ MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.Fail,
8
+ MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.NoData,
9
+ MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.MultipleData
10
+ ]
11
+
12
+ GetSingle = Union[
13
+ MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.Fail,
14
+ MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.SingleData
15
+ ]
16
+
17
+ Create = Union[
18
+ MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.Fail,
19
+ MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.SingleData
20
+ ]
File without changes
@@ -0,0 +1,21 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.service.organization_registration_code \
3
+ import MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers
4
+
5
+ class MaleoIdentityOrganizationRegistrationCodeServiceResultsTypes:
6
+ GetMultiple = Union[
7
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.Fail,
8
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.NoData,
9
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.MultipleData
10
+ ]
11
+
12
+ GetSingle = Union[
13
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.Fail,
14
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.NoData,
15
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.SingleData
16
+ ]
17
+
18
+ CreateOrUpdate = Union[
19
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.Fail,
20
+ MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.SingleData
21
+ ]
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-identity
3
- Version: 0.0.54
3
+ Version: 0.0.55
4
4
  Summary: MaleoIdentity service package
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
7
7
  Requires-Python: >=3.7
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: maleo_foundation>=0.2.70
10
- Requires-Dist: maleo_metadata>=0.1.14
9
+ Requires-Dist: maleo_foundation>=0.2.71
10
+ Requires-Dist: maleo_metadata>=0.1.15
11
11
 
12
12
  # README #
13
13
 
@@ -11,6 +11,7 @@ maleo_identity/client/services/organization.py,sha256=SCXVreQnW2kbVZHkf5FZwd99JI
11
11
  maleo_identity/client/services/user.py,sha256=cuFhFP62IIDyFsjjCjHzEu0G5d-2x3ga5_xyhVIKjEU,46782
12
12
  maleo_identity/constants/__init__.py,sha256=EyuYkmm-m27VYwjrTjBKcB3iH78y48v2qDaie33WyiE,913
13
13
  maleo_identity/constants/organization.py,sha256=M5STqi5WMtT6kfNbB4BnQ1gEdQvU-l9dc9MiJCKzO_o,484
14
+ maleo_identity/constants/organization_registration_code.py,sha256=YTEKN1PKRZZSlcBEyIOtIE9Mwgi8aNWG_FZ_y0UiIYU,692
14
15
  maleo_identity/constants/organization_role.py,sha256=pUcxF2h5cH1j7JzObVKEp0l6Bz3Uoe7isZ-r5ere6Og,919
15
16
  maleo_identity/constants/user.py,sha256=ppBZF2KB9_mG0IrOjZRdWlel6wvCNxQIzCryOi9BjX4,855
16
17
  maleo_identity/constants/user_organization.py,sha256=HiGOdWo3ggjWLPZiiptqIanEGJC2gmZ_QNGxfN3-HwI,1417
@@ -19,7 +20,8 @@ maleo_identity/constants/user_profile.py,sha256=vH4lqNzN3k8Fur10UR_PUHYT544eYtjE
19
20
  maleo_identity/constants/user_system_role.py,sha256=8rnHdeX2ULJS_vHQxCof-bfR5130O7nikSTbu_YGitk,844
20
21
  maleo_identity/enums/__init__.py,sha256=PjCbm3BlcSJcP4-HEc7sfH9W34Gd847s2fHHHgZ_hQ8,936
21
22
  maleo_identity/enums/general.py,sha256=y51uhyCw5a8csBznt96Meh37wORpJbkz8mzueg_aSms,121
22
- maleo_identity/enums/organization.py,sha256=FRam0cPO38Tt3ICnCyWeTQc1EoDalaaQXsRNSi2Ykwc,244
23
+ maleo_identity/enums/organization.py,sha256=mAUKq5MkU6DnYxpOdMg5NhbSZvp6sdQALYnQgr6v6oc,294
24
+ maleo_identity/enums/organization_registration_code.py,sha256=FlYGKt_uNxvE4oD4KprDz7IQWnkYGyES051mktDcrwI,220
23
25
  maleo_identity/enums/organization_role.py,sha256=n3xiZ0_OZFGn3VnUeEyF4AlUB5bDhjWNm4wJ8sj7SKA,203
24
26
  maleo_identity/enums/user.py,sha256=ew6bLHi3ZatNZB7iodfuniv46nnvUV3dPvmmcIwLTdA,358
25
27
  maleo_identity/enums/user_organization.py,sha256=Gchi2yLeepvVZv40S6_KvwAoFnZ19u5LlMJQTDEfUrs,262
@@ -29,6 +31,7 @@ maleo_identity/enums/user_system_role.py,sha256=-DtZXhGKS6xmJZ6bTUqeM3g-pBxlID3-
29
31
  maleo_identity/models/__init__.py,sha256=M3mB_vDV3bVyW_nwMFkE_DPptHnfu4Q-RgJci2OD614,382
30
32
  maleo_identity/models/responses/__init__.py,sha256=DOZ7d5pYmpWwNWa-zBCsp8E_Loryu75ctpBYjPrV1Uo,913
31
33
  maleo_identity/models/responses/organization.py,sha256=ftlMk698hJhR-XNIbyFoo94_49Nv47xQ9yiisgKEq5g,2835
34
+ maleo_identity/models/responses/organization_registration_code.py,sha256=YWATzR-eK6W6JE6V8nbhuJUaJ_--UcQrRtF_FXXCiJI,2516
32
35
  maleo_identity/models/responses/organization_role.py,sha256=jrYmicik9dytllqDIVg_NKzyxpmOg-zju0GdoQANXZE,1209
33
36
  maleo_identity/models/responses/user.py,sha256=ESL5czj9KYzWeww-4fDja20eAWWvBFbiL54lq2MhrP0,2419
34
37
  maleo_identity/models/responses/user_organization.py,sha256=QRJS3UOm3q-crIyPzpkpE8l5eDgw_2v4DNh9GVWV1-0,1211
@@ -36,16 +39,18 @@ maleo_identity/models/responses/user_organization_role.py,sha256=2OU29-8zjsglasE
36
39
  maleo_identity/models/responses/user_profile.py,sha256=vaO38a9DY8nN-cr8jzFgApiukVezYSnqqSooP9JL1Sc,2128
37
40
  maleo_identity/models/responses/user_system_role.py,sha256=57yGdPgJVsHXaRUrnpvBOV77rJE-EPDtNZ3hadUrlzM,1191
38
41
  maleo_identity/models/schemas/__init__.py,sha256=asjDTCgUlxFBSY6ZMnt3RMZoeXGCyQS_6ZrhkgVx8rc,974
39
- maleo_identity/models/schemas/general.py,sha256=fBPqcYU-8nBjfgMYl54rHFyuV_9l-O9egfYLI6T3CDQ,623
42
+ maleo_identity/models/schemas/general.py,sha256=g1VPQr4qdjOGKw_WajFUHh7yj2odm5pzgKLa6T7WgK8,781
40
43
  maleo_identity/models/schemas/organization.py,sha256=v6BjOK1G0C3yUrwqBsUGWXf99YSWjStcOkSH-88dgBU,1276
44
+ maleo_identity/models/schemas/organization_registration_code.py,sha256=0qBjmzWJNf4taxu8u_xtv4mEWCfT3vjsIPazaGKxqug,1020
41
45
  maleo_identity/models/schemas/organization_role.py,sha256=bgX9ykpFNrDqz4-eFbj49mRp69yGezWyLoo_MOX8R6Y,764
42
- maleo_identity/models/schemas/user.py,sha256=fw2Rn2r3rMFhQPYrjZlhgt1f549c4zoI2ywjCTZ46ZY,1651
46
+ maleo_identity/models/schemas/user.py,sha256=YCShgeY6Nn5knA_ywKMMe9s_b8Kgzn6aTBiEkYiN9PM,1770
43
47
  maleo_identity/models/schemas/user_organization.py,sha256=yg6-T5BGcfTKjX7w2zSBb-OWtxQunEhWLT2dJFmuhtE,443
44
48
  maleo_identity/models/schemas/user_organization_role.py,sha256=xedjuJ9P6vRtJimRTpP8ZA45oLaqFr8hokM77gN8QRU,781
45
49
  maleo_identity/models/schemas/user_profile.py,sha256=x2--vAMY9KRa2Nyy7k2o4oYMz5DRm67dev3K45A7DkU,2603
46
50
  maleo_identity/models/schemas/user_system_role.py,sha256=nhtfaZsNp4gn_i5VfWeHM38OaFa3MFwnDK7AhLXiFxY,436
47
- maleo_identity/models/tables/__init__.py,sha256=wTFyzZbktqfWIiCPI4ErJN9JK46C_Fec76v38ddkDDw,686
48
- maleo_identity/models/tables/organization.py,sha256=kgtxnQjznIH-l8cnN4hcY4wTehqMnKtF39Ev7AKU_tQ,1409
51
+ maleo_identity/models/tables/__init__.py,sha256=mxBRnigBbeK7xKwK939qeAu9P5nErKi8qAgHy0CY-kg,835
52
+ maleo_identity/models/tables/organization.py,sha256=7akO_BWDi4W1uCruC575UhojXPv8J16RenAQu87GtNM,1606
53
+ maleo_identity/models/tables/organization_registration_code.py,sha256=em5sT4cbzQZ7F2Ygvl2Zf9Amp6gXNHJ1-FGW5-wiHqU,1037
49
54
  maleo_identity/models/tables/organization_role.py,sha256=ICybWmJy7Sv2iBP7dlDmHnMXcm1kuPBrtxBwSdBlEZ0,690
50
55
  maleo_identity/models/tables/user.py,sha256=eEd_TBuq4Es7Lbi86q8qxN4InIfrLw_MP9TPUrpyqxU,1146
51
56
  maleo_identity/models/tables/user_organization.py,sha256=_Txa_TUsYKDb3bpi6FQ6h33uOKp44GR1XvICBji1Aig,548
@@ -54,7 +59,8 @@ maleo_identity/models/tables/user_profile.py,sha256=niEzQW8w1jtoJSl0395Y4u5BJPPd
54
59
  maleo_identity/models/tables/user_system_role.py,sha256=84QxmEGwdnbz1f0Y2jq8jO9AmcBW96ZxoNahudjG9QY,824
55
60
  maleo_identity/models/transfers/__init__.py,sha256=Ad-Z2MzjEA1pw2p2WR1QZeY99uX-bUUqUhlg9ARUY9Y,362
56
61
  maleo_identity/models/transfers/general/__init__.py,sha256=zEASfoPYDlb7PADXLFevD6KVb6ZxWgCDXhc_40IgRjo,738
57
- maleo_identity/models/transfers/general/organization.py,sha256=84A_VLciMbBzlFenmHpP3RX0Jioon9zC7wb7oyqv0as,1207
62
+ maleo_identity/models/transfers/general/organization.py,sha256=-D4opYmndj5vkRHBp1B7zaFVQ6SVMRHNneBJwPLQAFk,1348
63
+ maleo_identity/models/transfers/general/organization_registration_code.py,sha256=RbFEZWAsSUvCsv-fwKY9PrmLq7s9NWF1DVZIgcg31ss,912
58
64
  maleo_identity/models/transfers/general/organization_role.py,sha256=kto9v1EywewxAdb6d6A3eajrwPn__ifRZFr6L9vM15E,721
59
65
  maleo_identity/models/transfers/general/user.py,sha256=nvUH6mwWjlq8_WtU0vz0IDUXTeTT_sWvf3fjGtvTG5s,989
60
66
  maleo_identity/models/transfers/general/user_organization.py,sha256=4VXSyI5SnWIqRVMjS5KwvUEpQZsl5mUuE93hpwzy8eo,611
@@ -64,6 +70,7 @@ maleo_identity/models/transfers/general/user_system_role.py,sha256=kfPB8abHIUVln
64
70
  maleo_identity/models/transfers/parameters/__init__.py,sha256=ysazhGlRoT9kY_L_grODkvceAGeuCwIDcG7EVywwcOc,416
65
71
  maleo_identity/models/transfers/parameters/client/__init__.py,sha256=j5WO_zsvrK3nkyJQdcPF8jhAZFCJ20bug17pkbKZ0C0,1153
66
72
  maleo_identity/models/transfers/parameters/client/organization.py,sha256=0tnZ74RC7xQlIpUeKyDMRyDa66p1Dl1DC2RTyVro0FE,3624
73
+ maleo_identity/models/transfers/parameters/client/organization_registration_code.py,sha256=QSG-90bKUNsmOKgXHuVZRw-AAfF-Qz47bfyu39dwjXc,977
67
74
  maleo_identity/models/transfers/parameters/client/organization_role.py,sha256=OX0uj5ZbW3os5DN6qKpRq-soqmdTOLmObcxYVWtoVEg,1470
68
75
  maleo_identity/models/transfers/parameters/client/user.py,sha256=FOhlOcZ5jz5Xfz31onxc5KTTlVNDvrjQIj5yADBFVZM,1882
69
76
  maleo_identity/models/transfers/parameters/client/user_organization.py,sha256=L1m6sCQesBQL9xGxpQIGBJOTraDR8jiW0F8KEadWMYU,1935
@@ -72,14 +79,16 @@ maleo_identity/models/transfers/parameters/client/user_profile.py,sha256=ZRdKAIp
72
79
  maleo_identity/models/transfers/parameters/client/user_system_role.py,sha256=tfTzyOTzV0DrWj1Vfd5c_mg2JqHMGYauaBp9gWp_vxU,1568
73
80
  maleo_identity/models/transfers/parameters/general/__init__.py,sha256=aELl7jS8n-T2FLiXt-KTP8xEdaF3Cju00fK84-_yp0o,1168
74
81
  maleo_identity/models/transfers/parameters/general/organization.py,sha256=XhHIl2apPLoXCip9sjq4izNzZjhz5CcnJKZVlYDtEpM,1352
82
+ maleo_identity/models/transfers/parameters/general/organization_registration_code.py,sha256=DNnetJRTAcBxDvSRM0E5JpMHk7Gxg1u_2FnRspZrIVA,1323
75
83
  maleo_identity/models/transfers/parameters/general/organization_role.py,sha256=7uCJXwqswPZvO8qCCueZo89D8lnwKMY6YHVq-jEdZ10,732
76
- maleo_identity/models/transfers/parameters/general/user.py,sha256=2nDUE6MhM_Kz6dptBWo8IjK7dTiWEc-42YES7JMWYVw,1489
84
+ maleo_identity/models/transfers/parameters/general/user.py,sha256=imelXdqHCS5IaYWKtRTOJYpNsdreqGV1zzSi3X0rvNw,2921
77
85
  maleo_identity/models/transfers/parameters/general/user_organization.py,sha256=81MjqzzHYUwo4UnoD2l_zpi8JB0hkN9Jo282LkfZCq0,1015
78
86
  maleo_identity/models/transfers/parameters/general/user_organization_role.py,sha256=SmlVIvRG-cFzNc0p2Fush5-sHvrUD6ABNbKVCb5w2zE,801
79
87
  maleo_identity/models/transfers/parameters/general/user_profile.py,sha256=IXczeZU3SwfxgUv6BaWPM_pmOYRCNTVEwr8DrbTotaM,2151
80
88
  maleo_identity/models/transfers/parameters/general/user_system_role.py,sha256=y3Mfrtiijjxug8LVhW1OVlegIhFkQxxjuSfkfkkM8eM,1189
81
89
  maleo_identity/models/transfers/parameters/service/__init__.py,sha256=Qm31XrFfO60_XLAxOB3g2n56MCsYsD15eOekj9HJ_tE,1168
82
90
  maleo_identity/models/transfers/parameters/service/organization.py,sha256=iEnTzACq2wCjukom3gWEwUCTsv4ApRCa7gPsff-BsWE,3137
91
+ maleo_identity/models/transfers/parameters/service/organization_registration_code.py,sha256=UPDo2fHD7j0-O2bFzVQG2nuo--eRHLFi5dX1TeNQdsc,816
83
92
  maleo_identity/models/transfers/parameters/service/organization_role.py,sha256=VTM2fT-CBMYYxBFJ2xg2P47aEAktKdTZel_1Njq3_fU,1207
84
93
  maleo_identity/models/transfers/parameters/service/user.py,sha256=M87HPVRR3x-RaLDX1FaE7AMpHXwSOTUCn5-W5dMdkfY,1887
85
94
  maleo_identity/models/transfers/parameters/service/user_organization.py,sha256=q2vK-X8GAV0bC7vcHXGWEwiIGNgcxZNJMJGKGUDFVDs,1396
@@ -89,6 +98,7 @@ maleo_identity/models/transfers/parameters/service/user_system_role.py,sha256=CX
89
98
  maleo_identity/models/transfers/results/__init__.py,sha256=NpWktmsR0qpiUIAlmY8jlriIazFW67_7RGitL7LnEfM,402
90
99
  maleo_identity/models/transfers/results/client/__init__.py,sha256=Ue2IQSJqUtMgnot8zuidNdF23RB9_T6OhcV_9aDxz-o,1108
91
100
  maleo_identity/models/transfers/results/client/organization.py,sha256=9GxzakLoDElH8LwzK7xzoNV1ZyoA_5Sn9sGpqgqHSyo,1193
101
+ maleo_identity/models/transfers/results/client/organization_registration_code.py,sha256=_tsus796vmMJ60PeQmHonmKLrBwFj_6Myrco0TT10_I,888
92
102
  maleo_identity/models/transfers/results/client/organization_role.py,sha256=YqMLypnLVnMF7LYGhFfZHzd3HbGL0xqhoqi9lium-J0,801
93
103
  maleo_identity/models/transfers/results/client/user.py,sha256=ZwdHnqqbHan7MDmcMbSaLFl-LmMaOv_9Z_rIoMQm3_E,878
94
104
  maleo_identity/models/transfers/results/client/user_organization.py,sha256=q7r4SwVtraXbw5fRNja_gkJ4uvxGyHbwgBpA0XVsdfU,801
@@ -111,10 +121,13 @@ maleo_identity/models/transfers/results/repository/user_organization.py,sha256=C
111
121
  maleo_identity/models/transfers/results/repository/user_organization_role.py,sha256=vcRdi_AkUGuf0uXQFgdgpa8c17cTQKahssb603Nbda4,860
112
122
  maleo_identity/models/transfers/results/repository/user_profile.py,sha256=AJl3rXGQYjspOJg9CcBJd5deneM3hxRFTysKx16ddSY,794
113
123
  maleo_identity/models/transfers/results/repository/user_system_role.py,sha256=a9tenhh9vt9jENHmJ8TfALo0ssexXwSJwCD7dkAs-X8,818
124
+ maleo_identity/models/transfers/results/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
125
+ maleo_identity/models/transfers/results/service/organization_registration_code.py,sha256=7qhFKWBwl4aUpYZm9jG1iQTyxhCaauPu0Himm1P9QSA,895
114
126
  maleo_identity/types/__init__.py,sha256=U6YJOUefzuJjISnFXE6j7gzQvrZEAHboW3t8Ezgty94,148
115
127
  maleo_identity/types/results/__init__.py,sha256=aVctfpWK6OLS69ncVmrKCikOOcLwT_EUHdFYM2J1gTg,374
116
128
  maleo_identity/types/results/client/__init__.py,sha256=32xGwg-HBi1qJW2RxdTMbGuNKhVT7QAg6RMXE9rKWJ0,1048
117
129
  maleo_identity/types/results/client/organization.py,sha256=U5ifMRxmwtcG4HlIVZVZp4pLGhFLxy1pYUyRAp13-2o,1163
130
+ maleo_identity/types/results/client/organization_registration_code.py,sha256=k_ne9bIpgKZTVyi-o7NgqwSEp4c5ZJe4_Ol0-o7NK84,905
118
131
  maleo_identity/types/results/client/organization_role.py,sha256=iow_g1WCfQvs-hlLGssYkka81LDWng8CeKTjrSOMI_M,614
119
132
  maleo_identity/types/results/client/user.py,sha256=9fkibdvgfwBH7jso5hv5f9f44jPDtpQFEOV4fJt3uds,820
120
133
  maleo_identity/types/results/client/user_organization.py,sha256=lh07HATLa4WW9KNXHCDuouGxtXlAuJKvv1zzcqnTkT0,778
@@ -137,7 +150,9 @@ maleo_identity/types/results/repository/user_organization.py,sha256=EFzYD28CCmQt
137
150
  maleo_identity/types/results/repository/user_organization_role.py,sha256=7SVvBMnrDnv9EFIceQmKJFisgjHqy7uN3ISyZy-QEOY,755
138
151
  maleo_identity/types/results/repository/user_profile.py,sha256=oyfExKaH6f5vyRdpNLOHQ9SJ5ILDfh2lQ_9m7QmsP3I,843
139
152
  maleo_identity/types/results/repository/user_system_role.py,sha256=6Qd9fetNARZVUiHR7BSKEZlRiHqG_XvvtApNv_OdaGE,869
140
- maleo_identity-0.0.54.dist-info/METADATA,sha256=uMI5XGwOiJJQzEVrQQzZl_jmWDDQ0gTfHg8IG0c18Qk,868
141
- maleo_identity-0.0.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
142
- maleo_identity-0.0.54.dist-info/top_level.txt,sha256=mQENoRr7CBU3vx2PxHXywCHdfBm3AIzVx75IaEsArYE,15
143
- maleo_identity-0.0.54.dist-info/RECORD,,
153
+ maleo_identity/types/results/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
154
+ maleo_identity/types/results/service/organization_registration_code.py,sha256=Cpss5Xicv8QJ9rBpqDf6EU1LStZTsPBaAvt_OUpN0Vc,1004
155
+ maleo_identity-0.0.55.dist-info/METADATA,sha256=tOB5efKYtEQMCdiIiyBWpdBI4zcON3ga7lIvbIBasa4,868
156
+ maleo_identity-0.0.55.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
157
+ maleo_identity-0.0.55.dist-info/top_level.txt,sha256=mQENoRr7CBU3vx2PxHXywCHdfBm3AIzVx75IaEsArYE,15
158
+ maleo_identity-0.0.55.dist-info/RECORD,,