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

@@ -15,11 +15,11 @@ class MaleoIdentityUserOrganizationResponses:
15
15
  description:str = "Requested user organizations found in database"
16
16
  data:list[UserOrganizationTransfers] = Field(..., description="User organizations")
17
17
 
18
- class CreateFailed(BaseResponses.BadRequest):
18
+ class AssignFailed(BaseResponses.BadRequest):
19
19
  code:str = "IDT-UOG-003"
20
- message:str = "Failed creating new user organization"
20
+ message:str = "Failed assigning new user organization"
21
21
 
22
- class CreateSuccess(BaseResponses.SingleData):
22
+ class AssignSuccess(BaseResponses.SingleData):
23
23
  code:str = "IDT-UOG-004"
24
- message:str = "Successfully created new user organization"
24
+ message:str = "Successfully assigned new user organization"
25
25
  data:UserOrganizationTransfers = Field(..., description="User organization")
@@ -15,11 +15,11 @@ class MaleoIdentityUserSystemRoleResponses:
15
15
  description:str = "Requested user system roles found in database"
16
16
  data:list[UserSystemRoleTransfers] = Field(..., description="User system roles")
17
17
 
18
- class CreateFailed(BaseResponses.BadRequest):
18
+ class AssignFailed(BaseResponses.BadRequest):
19
19
  code:str = "IDT-URL-003"
20
- message:str = "Failed creating new user system role"
20
+ message:str = "Failed assigning new user system role"
21
21
 
22
- class CreateSuccess(BaseResponses.SingleData):
22
+ class AssignSuccess(BaseResponses.SingleData):
23
23
  code:str = "IDT-URL-004"
24
- message:str = "Successfully created new user system role"
24
+ message:str = "Successfully assigned new user system role"
25
25
  data:UserSystemRoleTransfers = Field(..., description="User system role")
@@ -29,4 +29,7 @@ class MaleoIdentityUserGeneralSchemas:
29
29
  phones:BaseTypes.OptionalListOfStrings = Field(None, description="Specific phones")
30
30
 
31
31
  class Password(BaseModel):
32
- password:str = Field(..., max_length=255, description="User's password")
32
+ password:str = Field(..., max_length=255, description="User's password")
33
+
34
+ class OptionalOrganizationId(BaseModel):
35
+ organization_id:BaseTypes.OptionalInteger = Field(..., ge=1, description="Organization's ID")
@@ -11,5 +11,6 @@ class MaleoIdentityUserParametersSchemas:
11
11
 
12
12
  class Extended(
13
13
  MaleoIdentityUserGeneralSchemas.Password,
14
- Base
14
+ Base,
15
+ MaleoIdentityUserGeneralSchemas.OptionalOrganizationId
15
16
  ): pass
@@ -15,17 +15,13 @@ class MaleoIdentityUserOrganizationGeneralParametersTransfers:
15
15
  MaleoIdentityUserOrganizationParametersSchemas.Base
16
16
  ): pass
17
17
 
18
- class CreateQuery(
18
+ class AssignQuery(
19
19
  MaleoIdentityUserOrganizationGeneralSchemas.Expand
20
20
  ): pass
21
21
 
22
- class CreateFromUserBody(MaleoIdentityUserOrganizationGeneralSchemas.OrganizationId): pass
22
+ class AssignData(MaleoIdentityUserOrganizationParametersSchemas.Base): pass
23
23
 
24
- class CreateFromOrganizationBody(MaleoIdentityUserOrganizationGeneralSchemas.UserId): pass
25
-
26
- class CreateData(MaleoIdentityUserOrganizationParametersSchemas.Base): pass
27
-
28
- class Create(
29
- CreateData,
30
- CreateQuery
24
+ class Assign(
25
+ AssignData,
26
+ AssignQuery
31
27
  ): pass
@@ -16,10 +16,10 @@ class MaleoIdentityUserSystemRoleGeneralParametersTransfers:
16
16
  MaleoIdentityUserSystemRoleParametersSchemas.Base
17
17
  ): pass
18
18
 
19
- class CreateQuery(MaleoIdentityUserSystemRoleGeneralSchemas.Expand): pass
19
+ class AssignQuery(MaleoIdentityUserSystemRoleGeneralSchemas.Expand): pass
20
20
 
21
- class CreateFromUserBody(MaleoMetadataSystemRoleExpandedSchemas.SimpleSystemRole): pass
21
+ class AssignFromUserBody(MaleoMetadataSystemRoleExpandedSchemas.SimpleSystemRole): pass
22
22
 
23
- class CreateData(MaleoIdentityUserSystemRoleParametersSchemas.Base): pass
23
+ class AssignData(MaleoIdentityUserSystemRoleParametersSchemas.Base): pass
24
24
 
25
- class Create(CreateData, CreateQuery): pass
25
+ class Assign(AssignData, AssignQuery): pass
@@ -13,7 +13,7 @@ class MaleoIdentityUserOrganizationClientResultsTypes:
13
13
  MaleoIdentityUserOrganizationClientResultsTransfers.SingleData
14
14
  ]
15
15
 
16
- Create = Union[
16
+ Assign = Union[
17
17
  MaleoIdentityUserOrganizationClientResultsTransfers.Fail,
18
18
  MaleoIdentityUserOrganizationClientResultsTransfers.SingleData
19
19
  ]
@@ -13,7 +13,7 @@ class MaleoIdentityUserSystemRoleClientResultsTypes:
13
13
  MaleoIdentityUserSystemRoleClientResultsTransfers.SingleData
14
14
  ]
15
15
 
16
- Create = Union[
16
+ Assign = Union[
17
17
  MaleoIdentityUserSystemRoleClientResultsTransfers.Fail,
18
18
  MaleoIdentityUserSystemRoleClientResultsTransfers.SingleData
19
19
  ]
@@ -14,7 +14,7 @@ class MaleoIdentityUserOrganizationGeneralResultsTypes:
14
14
  MaleoIdentityUserOrganizationGeneralResultsTransfers.SingleData
15
15
  ]
16
16
 
17
- Create = Union[
17
+ Assign = Union[
18
18
  MaleoIdentityUserOrganizationGeneralResultsTransfers.Fail,
19
19
  MaleoIdentityUserOrganizationGeneralResultsTransfers.SingleData
20
20
  ]
@@ -14,7 +14,7 @@ class MaleoIdentityUserSystemRoleGeneralResultsTypes:
14
14
  MaleoIdentityUserSystemRoleGeneralResultsTransfers.SingleData
15
15
  ]
16
16
 
17
- Create = Union[
17
+ Assign = Union[
18
18
  MaleoIdentityUserSystemRoleGeneralResultsTransfers.Fail,
19
19
  MaleoIdentityUserSystemRoleGeneralResultsTransfers.SingleData
20
20
  ]
@@ -14,7 +14,7 @@ class MaleoIdentityUserOrganizationRepositoryResultsTypes:
14
14
  MaleoIdentityUserOrganizationRepositoryResultsTransfers.SingleData
15
15
  ]
16
16
 
17
- Create = Union[
17
+ Assign = Union[
18
18
  MaleoIdentityUserOrganizationRepositoryResultsTransfers.Fail,
19
19
  MaleoIdentityUserOrganizationRepositoryResultsTransfers.SingleData
20
20
  ]
@@ -14,7 +14,7 @@ class MaleoIdentityUserSystemRoleRepositoryResultsTypes:
14
14
  MaleoIdentityUserSystemRoleRepositoryResultsTransfers.SingleData
15
15
  ]
16
16
 
17
- Create = Union[
17
+ Assign = Union[
18
18
  MaleoIdentityUserSystemRoleRepositoryResultsTransfers.Fail,
19
19
  MaleoIdentityUserSystemRoleRepositoryResultsTransfers.SingleData
20
20
  ]
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-identity
3
- Version: 0.0.37
3
+ Version: 0.0.38
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.35
10
- Requires-Dist: maleo_metadata>=0.0.91
9
+ Requires-Dist: maleo_foundation>=0.2.40
10
+ Requires-Dist: maleo_metadata>=0.0.94
11
11
 
12
12
  # README #
13
13
 
@@ -31,15 +31,15 @@ maleo_identity/models/responses/__init__.py,sha256=DOZ7d5pYmpWwNWa-zBCsp8E_Loryu
31
31
  maleo_identity/models/responses/organization.py,sha256=O5_agwn2h2e5TYVVf0lIGHObNKmEO7M0ccrr6D2-sF4,2136
32
32
  maleo_identity/models/responses/organization_role.py,sha256=jrYmicik9dytllqDIVg_NKzyxpmOg-zju0GdoQANXZE,1209
33
33
  maleo_identity/models/responses/user.py,sha256=ESL5czj9KYzWeww-4fDja20eAWWvBFbiL54lq2MhrP0,2419
34
- maleo_identity/models/responses/user_organization.py,sha256=ggNpXfXW8MsofDB1BmCQVB9gOh6jpCxRw2sDf6oIfTA,1209
34
+ maleo_identity/models/responses/user_organization.py,sha256=QRJS3UOm3q-crIyPzpkpE8l5eDgw_2v4DNh9GVWV1-0,1211
35
35
  maleo_identity/models/responses/user_organization_role.py,sha256=2OU29-8zjsglasEJCHDwQQibjCNKrfuRxsxSmtUs3Hg,1279
36
36
  maleo_identity/models/responses/user_profile.py,sha256=vaO38a9DY8nN-cr8jzFgApiukVezYSnqqSooP9JL1Sc,2128
37
- maleo_identity/models/responses/user_system_role.py,sha256=UJsmECAb5pHV-K0hR5PZL5aksUCmzJBRqHbYicC11no,1189
37
+ maleo_identity/models/responses/user_system_role.py,sha256=57yGdPgJVsHXaRUrnpvBOV77rJE-EPDtNZ3hadUrlzM,1191
38
38
  maleo_identity/models/schemas/__init__.py,sha256=17ZraVaZhf4eK46PvEZ21WxlYMlUqPUwbOcs5brnVGU,348
39
39
  maleo_identity/models/schemas/general/__init__.py,sha256=yu6sFumS9z1MfvDJQTuRX0pDNDYXSPo9JOpMeyksKv4,988
40
40
  maleo_identity/models/schemas/general/organization.py,sha256=NYhcHeByU2CiEoauae_MVaV965Le-LM2n9nxcMOO5rc,1213
41
41
  maleo_identity/models/schemas/general/organization_role.py,sha256=W84j419N8vnAAUEUXQdKigdZYP1m52M4UjJ9RVgthB0,1303
42
- maleo_identity/models/schemas/general/user.py,sha256=yzLPsUabeXHdj__5pNqnLetAQ40EvSUO-pcCOdclGb8,1315
42
+ maleo_identity/models/schemas/general/user.py,sha256=hWEAOs43AFbQtyh4AAvMyhIjyzQ5o2Op-PIn7q9SY_E,1463
43
43
  maleo_identity/models/schemas/general/user_organization.py,sha256=XueJtW2BjfLsUt0RW5K5JNn_wy__M5wl3COpJEud-j0,917
44
44
  maleo_identity/models/schemas/general/user_organization_role.py,sha256=lKX0DvbTXlITdwp2SRH12wEH8B-M-gNn403NdY6NHng,1548
45
45
  maleo_identity/models/schemas/general/user_profile.py,sha256=N-F_NC6O7AwzSUtwqkQbDf_kDezdV6VCdefIMY-QQPg,1930
@@ -47,7 +47,7 @@ maleo_identity/models/schemas/general/user_system_role.py,sha256=Ta625LB8Y_Sou7v
47
47
  maleo_identity/models/schemas/parameters/__init__.py,sha256=EtThSB9TfQAwwNGkhS6S7gYzB2yMMSkIFiOSESA0vZg,1033
48
48
  maleo_identity/models/schemas/parameters/organization.py,sha256=jZIe2vAS-PmoZCggKLQ1snYmPSMEC3C0bK-qat8AmgM,556
49
49
  maleo_identity/models/schemas/parameters/organization_role.py,sha256=3pXjokaN5vJnrsekI_67WOJR8gb1de_4AkSEANlYqac,318
50
- maleo_identity/models/schemas/parameters/user.py,sha256=m_0jxW7QS5clAgEZPqb3i1dr2Jn67xRKLedKjJ3GAS0,555
50
+ maleo_identity/models/schemas/parameters/user.py,sha256=rdZdWaHzzf9IgJknDZeWjF5jvAiBrVE1E0x1fKCfg9g,619
51
51
  maleo_identity/models/schemas/parameters/user_organization.py,sha256=K1bM2qjo1wGA64aHCrrvLsaCYQ-chlggKLd7spQwFuw,321
52
52
  maleo_identity/models/schemas/parameters/user_organization_role.py,sha256=0PCZ4fsIe2fN5kcRCbSVybtoSmN9aaiGTd8zN8G97Pc,403
53
53
  maleo_identity/models/schemas/parameters/user_profile.py,sha256=wPA3Ym9wBYW8iHVzxyB0BZhFVw1wMwEFKBfAHxlIipA,1075
@@ -90,10 +90,10 @@ maleo_identity/models/transfers/parameters/general/__init__.py,sha256=aELl7jS8n-
90
90
  maleo_identity/models/transfers/parameters/general/organization.py,sha256=anXvAmis4xoqNCrkl3u90QPDh9Pe06PmpZZ16-31u5s,1171
91
91
  maleo_identity/models/transfers/parameters/general/organization_role.py,sha256=c0hShB0UXIUb2YdgaOPt5TmXy1Xsbg1eh4lcoUPjo9k,724
92
92
  maleo_identity/models/transfers/parameters/general/user.py,sha256=IIEtjnJo9VwC1mOlSlhSdPhD0yA3n8jYEfoaxO9VYXQ,1264
93
- maleo_identity/models/transfers/parameters/general/user_organization.py,sha256=Fi3Cdq41p9GDNa-9g-7ar_AaYN_Gsz3-nZETjKui8l4,1163
93
+ maleo_identity/models/transfers/parameters/general/user_organization.py,sha256=61vFoqsKVrtc7yfFJ-rn0ewOatRo4r72sfyZh9Eir58,971
94
94
  maleo_identity/models/transfers/parameters/general/user_organization_role.py,sha256=U8lVq5Y_W0Pu6heJE8PwxMt5UPy3nSaH_2H85bXqDzo,758
95
95
  maleo_identity/models/transfers/parameters/general/user_profile.py,sha256=94q9T12zTgqd6lt77NvvSlXT-zgCv9eZ7IyajwGmzQ8,1272
96
- maleo_identity/models/transfers/parameters/general/user_system_role.py,sha256=WXDCmE4qyrp1gxTkwErXg807FVNoq0k8epkuU-pcEhk,1112
96
+ maleo_identity/models/transfers/parameters/general/user_system_role.py,sha256=pQq4K8dGMGI52JyGQ1DzrTrZOlRt8ik2zpd7fm38gw0,1112
97
97
  maleo_identity/models/transfers/parameters/service/__init__.py,sha256=Qm31XrFfO60_XLAxOB3g2n56MCsYsD15eOekj9HJ_tE,1168
98
98
  maleo_identity/models/transfers/parameters/service/organization.py,sha256=KUAcUgHLEqXzpayaQavJEAPlTF50kjayFffrrVYVfq4,1331
99
99
  maleo_identity/models/transfers/parameters/service/organization_role.py,sha256=0hrHNm-NGBJgvp3NbshzxN6rnZ9E41ecg0wqfmy5x1o,1186
@@ -133,27 +133,27 @@ maleo_identity/types/results/client/__init__.py,sha256=32xGwg-HBi1qJW2RxdTMbGuNK
133
133
  maleo_identity/types/results/client/organization.py,sha256=J8O8ULJkAA42O_HXDrP6zqsneppN5akTKypGag8v8s0,745
134
134
  maleo_identity/types/results/client/organization_role.py,sha256=iow_g1WCfQvs-hlLGssYkka81LDWng8CeKTjrSOMI_M,614
135
135
  maleo_identity/types/results/client/user.py,sha256=9fkibdvgfwBH7jso5hv5f9f44jPDtpQFEOV4fJt3uds,820
136
- maleo_identity/types/results/client/user_organization.py,sha256=T4IzEo_xg33seEyUvF08M-ssDV9QJIfnaN8Dk2x_Xqo,778
136
+ maleo_identity/types/results/client/user_organization.py,sha256=lh07HATLa4WW9KNXHCDuouGxtXlAuJKvv1zzcqnTkT0,778
137
137
  maleo_identity/types/results/client/user_organization_role.py,sha256=pZgwP4FChX24AQHTzqQgVXJXc6C5MReSbCcOFQBEs94,647
138
138
  maleo_identity/types/results/client/user_profile.py,sha256=trxFtIJDUdvdUGevDNnlJe8xIy39iTyEihfZkb9SLaU,736
139
- maleo_identity/types/results/client/user_system_role.py,sha256=bgjjzr70r9KTuQLYwbEhMAVGPwgl4X5_Kau4Aln1SDE,759
139
+ maleo_identity/types/results/client/user_system_role.py,sha256=IYtS2bAQd9_aOOhPw_d_55crCnQ6viZovMYHQ5OdtkE,759
140
140
  maleo_identity/types/results/general/__init__.py,sha256=QLXcaBLdAAh9EYyIUIela7zUdwwxmpZ8HK34M1_kNlY,1063
141
141
  maleo_identity/types/results/general/organization.py,sha256=_1lIf9ds756m7uMXToxHX0HA-Qha6E3yMmcG1Ei9XC4,820
142
142
  maleo_identity/types/results/general/organization_role.py,sha256=fY5JyP2abFkawFdust7QgNxYY24hh8XDMPeNrkP0O8I,691
143
143
  maleo_identity/types/results/general/user.py,sha256=2raDahxVdE9rcpwJrj3LmHUWQUwQNVbXR-pOCOI_aCg,889
144
- maleo_identity/types/results/general/user_organization.py,sha256=605vv7BsmH8oVXfPdcVcDNU1C_C28K7Q-holUR8_G2I,857
144
+ maleo_identity/types/results/general/user_organization.py,sha256=v42srkpkv0DWaj6wEQzO2oIidd5vla2kCqn4TP05afI,857
145
145
  maleo_identity/types/results/general/user_organization_role.py,sha256=Yzpf0-F0Llo8vJwQltcwa7zKIDx7KPCMpep4SdwsPBQ,728
146
146
  maleo_identity/types/results/general/user_profile.py,sha256=Vqv6uJcS2VFq_U1TBFla7C2xPo3UxR0dQwrO6bZl3wA,810
147
- maleo_identity/types/results/general/user_system_role.py,sha256=G99FeKVhHbNuHXJuDZzIzc-ir2OLGrYEKN3m-J9PmR0,836
147
+ maleo_identity/types/results/general/user_system_role.py,sha256=AXRYFacYHqPW489fUaJJq0MS0vK4tQnzA8WepHE5DwM,836
148
148
  maleo_identity/types/results/repository/__init__.py,sha256=O07YHDOFogNx_zm5giNyhqrBTEQRga27yEPJJCsl7uI,1108
149
149
  maleo_identity/types/results/repository/organization.py,sha256=uf_9mnsC9U7589dBRzzzFRwev0pS_xl9jgiLSDc_I6w,853
150
150
  maleo_identity/types/results/repository/organization_role.py,sha256=mj6lPGGUKibiGv0rYfmK0UMwCxLKB8ggDUL746gccBQ,718
151
151
  maleo_identity/types/results/repository/user.py,sha256=00eVZ_qoFRsn8g4P0MHlZGFh313sAukrXNbN3toyhxg,928
152
- maleo_identity/types/results/repository/user_organization.py,sha256=HKBSrTZv4LMSN3sCQK7EGGTgTeOoPDMGccON628S3bQ,890
152
+ maleo_identity/types/results/repository/user_organization.py,sha256=EFzYD28CCmQtDsNAlI4SXsSfTkJM3NELcOSY6iaQAYY,890
153
153
  maleo_identity/types/results/repository/user_organization_role.py,sha256=7SVvBMnrDnv9EFIceQmKJFisgjHqy7uN3ISyZy-QEOY,755
154
154
  maleo_identity/types/results/repository/user_profile.py,sha256=oyfExKaH6f5vyRdpNLOHQ9SJ5ILDfh2lQ_9m7QmsP3I,843
155
- maleo_identity/types/results/repository/user_system_role.py,sha256=AZSqXs6kTPBe2w_xS3DegCxiuzyieAb-OWtqvtc76fE,869
156
- maleo_identity-0.0.37.dist-info/METADATA,sha256=tfls0v6gS2NbrYAp4I-X8wOU045tIvDhVIW0X4el7jg,868
157
- maleo_identity-0.0.37.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
158
- maleo_identity-0.0.37.dist-info/top_level.txt,sha256=mQENoRr7CBU3vx2PxHXywCHdfBm3AIzVx75IaEsArYE,15
159
- maleo_identity-0.0.37.dist-info/RECORD,,
155
+ maleo_identity/types/results/repository/user_system_role.py,sha256=6Qd9fetNARZVUiHR7BSKEZlRiHqG_XvvtApNv_OdaGE,869
156
+ maleo_identity-0.0.38.dist-info/METADATA,sha256=0NZmOsr0w2PU5oZVM4VDrppwgdQZHd5_LEWU1ygZCTU,868
157
+ maleo_identity-0.0.38.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
158
+ maleo_identity-0.0.38.dist-info/top_level.txt,sha256=mQENoRr7CBU3vx2PxHXywCHdfBm3AIzVx75IaEsArYE,15
159
+ maleo_identity-0.0.38.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5