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

@@ -17,7 +17,7 @@ RESOURCE = Resource(
17
17
  identifiers=[
18
18
  ResourceIdentifier(
19
19
  key="organization_registration_codes",
20
- name="OrganizationRegistrationCodes",
20
+ name="Organization Registration Codes",
21
21
  url_slug="organization-registration-codes",
22
22
  )
23
23
  ],
@@ -27,7 +27,7 @@ RESOURCE = Resource(
27
27
  identifiers=[
28
28
  ResourceIdentifier(
29
29
  key="organization_roles",
30
- name="OrganizationRoles",
30
+ name="Organization Roles",
31
31
  url_slug="organization-roles",
32
32
  )
33
33
  ],
@@ -50,7 +50,7 @@ RESOURCE = Resource(
50
50
  identifiers=[
51
51
  ResourceIdentifier(
52
52
  key="user_organizations",
53
- name="UserOrganizations",
53
+ name="User Organizations",
54
54
  url_slug="user-organizations",
55
55
  )
56
56
  ],
@@ -39,7 +39,7 @@ RESOURCE = Resource(
39
39
  identifiers=[
40
40
  ResourceIdentifier(
41
41
  key="user_organization_roles",
42
- name="UserOrganizationRoles",
42
+ name="UserOrganization Roles",
43
43
  url_slug="user-organization-roles",
44
44
  )
45
45
  ],
@@ -19,7 +19,7 @@ MIME_TYPE_EXTENSION_MAP: Dict[ValidImageMimeType, str] = {
19
19
  RESOURCE = Resource(
20
20
  identifiers=[
21
21
  ResourceIdentifier(
22
- key="user_profiles", name="UserProfiles", url_slug="user-profiles"
22
+ key="user_profiles", name="User Profiles", url_slug="user-profiles"
23
23
  )
24
24
  ],
25
25
  details=None,
@@ -8,7 +8,7 @@ RESOURCE = Resource(
8
8
  identifiers=[
9
9
  ResourceIdentifier(
10
10
  key="user_system_roles",
11
- name="UserSystemRoles",
11
+ name="User System Roles",
12
12
  url_slug="user-system-roles",
13
13
  )
14
14
  ],
@@ -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")
@@ -1,11 +1,14 @@
1
1
  from maleo.soma.mixins.general import OrganizationId
2
- from maleo.soma.mixins.parameter import (
3
- IdentifierType as IdentifierTypeMixin,
4
- IdentifierValue as IdentifierValueMixin,
2
+ from maleo.soma.mixins.parameter import IdentifierTypeValue as IdentifierTypeValueMixin
3
+ from maleo.soma.schemas.parameter.general import (
4
+ ReadSingleParameterSchema,
5
+ StatusUpdateQueryParameterSchema,
5
6
  )
6
- from maleo.soma.schemas.parameter.general import ReadSingleParameterSchema
7
7
  from maleo.identity.enums.organization_registration_code import IdentifierType
8
- from maleo.identity.mixins.organization_registration_code import MaxUses
8
+ from maleo.identity.mixins.organization_registration_code import (
9
+ MaxUses,
10
+ OptionalMaxUses,
11
+ )
9
12
  from maleo.identity.types.base.organization_registration_code import IdentifierValueType
10
13
 
11
14
 
@@ -22,9 +25,30 @@ class CreateParameter(
22
25
  pass
23
26
 
24
27
 
25
- class UpdateParameter(
26
- MaxUses,
27
- IdentifierValueMixin[IdentifierValueType],
28
- IdentifierTypeMixin[IdentifierType],
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],
29
53
  ):
30
54
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-identity
3
- Version: 0.0.78
3
+ Version: 0.0.80
4
4
  Summary: MaleoIdentity service package
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -13,13 +13,13 @@ maleo/identity/client/services/user_profile.py,sha256=L6pxaWkpyn2WItHcZNJqQfYkTF
13
13
  maleo/identity/client/services/user_system_role.py,sha256=rNwWSdMdcY9Rg25PUCQFR287ET7qg9hhPJTfTbBdxMM,11246
14
14
  maleo/identity/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  maleo/identity/constants/organization.py,sha256=x4OmDGg53pYQ3ZvsIaPOeNAd9FMPDBkAjxxnXxBQEi0,617
16
- maleo/identity/constants/organization_registration_code.py,sha256=ipSRiNI6cXKncVH7jXWhJoL2HctfmqEFVx3M8GO-JLM,788
17
- maleo/identity/constants/organization_role.py,sha256=9-fTGla-HVXdozc4VuHyf8_OJ60MpZFdB7_GQXPxwQw,1158
16
+ maleo/identity/constants/organization_registration_code.py,sha256=T8LUZ-7fAK4BvJwAOL2ywppvzI0tjvvamwiGLsPYzAI,790
17
+ maleo/identity/constants/organization_role.py,sha256=lDuPYcjEyug7NGWak5oKHsnCFIchqtKpmOujHuOp5Vs,1159
18
18
  maleo/identity/constants/user.py,sha256=cQ7ThRMaldczONTx-TUdeZqaQJegJ2zD4F_8Y3Eme7A,859
19
- maleo/identity/constants/user_organization.py,sha256=t_Ds-35ArjA_IGqfQ6k3nXzUWHIe1MkJflbfJ2b7PlA,2246
20
- maleo/identity/constants/user_organization_role.py,sha256=JQL_3HQsVd3gMAFn7xb6wej3zEeW2tXYsYL1uBVyb0g,1718
21
- maleo/identity/constants/user_profile.py,sha256=dUIfIrvBeRzLu7EktN4a_vETkvM0ifu-dGe2Eocy_rs,779
22
- maleo/identity/constants/user_system_role.py,sha256=kyn8YjZM24tX6X7ftmgFjuOTIMcQXs1XPEBePsnmkTQ,472
19
+ maleo/identity/constants/user_organization.py,sha256=Ujh2ZQbrH2WryIdmLpKiuQAt7418vxbG4_DtHSlfTtY,2247
20
+ maleo/identity/constants/user_organization_role.py,sha256=FhWRyJ6whVRPD7-SqfpCqJtMfh-oFsjTX2AUoxAeJpI,1719
21
+ maleo/identity/constants/user_profile.py,sha256=HGqRx_PQQQYtGuAJtWQhtOvo1MaClgKFiD9XuH1fwCA,780
22
+ maleo/identity/constants/user_system_role.py,sha256=ifHNZvvRbLoTc-bzL5_nCvobR0jwHsnSm6-UYq0QDzw,474
23
23
  maleo/identity/dtos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  maleo/identity/dtos/organization_registration_code.py,sha256=xaS-vVNQcaAZpjXoSa_RNSz3zLaPbOkD-BhPMvfJ3W4,313
25
25
  maleo/identity/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -34,7 +34,7 @@ maleo/identity/enums/user_profile.py,sha256=2AR_m2nf3lksz0DSr-C-1gaWAYgYbpbou4IL
34
34
  maleo/identity/enums/user_system_role.py,sha256=bmaHE6f1RoxavUhl1bR8_dL9KF_4DftohvOLHMvwg-g,91
35
35
  maleo/identity/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  maleo/identity/mixins/organization.py,sha256=TWL7hIp7uvE5UD_3FpEXJvpJVhXki_yIHEoS552MsxQ,418
37
- maleo/identity/mixins/organization_registration_code.py,sha256=nP95ALUtSYL4e_Xha1C8hXge742A01rtMUqfL8SRQAQ,342
37
+ maleo/identity/mixins/organization_registration_code.py,sha256=Ey5R6vwRa0fTENqxkL1aC5Z7YM98lwXb2gzFNpDb1jg,507
38
38
  maleo/identity/mixins/organization_role.py,sha256=NucG_TmWeKtpUoylZ2CzLjUPTHOFIAWJhKR22a0Z8hA,431
39
39
  maleo/identity/mixins/user.py,sha256=WzSztOq6W7sFci_cEd3nCN_UalJfozzhbB4r1TuYcsw,1346
40
40
  maleo/identity/mixins/user_organization.py,sha256=KiWWzCpoajYmN79DmO21a1J_NLhQfgAtIyLsf08JF2c,182
@@ -74,7 +74,7 @@ maleo/identity/schemas/parameter/client/user_profile.py,sha256=ZI6FBHnHNY2kGLg10
74
74
  maleo/identity/schemas/parameter/client/user_system_role.py,sha256=vwXBLB7cUVs9FpPy2hFurfNTrKTPZzvaIYYgy574Yik,1053
75
75
  maleo/identity/schemas/parameter/general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
76
  maleo/identity/schemas/parameter/general/organization.py,sha256=sKsDbwo_hOQO_LSaQqkkalwswGsiOsOEOCDEOi9Hv9s,1118
77
- maleo/identity/schemas/parameter/general/organization_registration_code.py,sha256=_F0Imo1Caf_9oGx-nwMnotfkBOSzmdZKvYZUu_IUSxI,817
77
+ maleo/identity/schemas/parameter/general/organization_registration_code.py,sha256=aNOSWH-kGIydbeLM-OnCVlyr35r4oLYmGA13KXurAJY,1217
78
78
  maleo/identity/schemas/parameter/general/organization_role.py,sha256=jxNZsLyI2F0v_dntw6XGKchL06RCCQP2LCdzQvvihG0,468
79
79
  maleo/identity/schemas/parameter/general/user.py,sha256=9r1xLT67q-TGrn_MsNld-VgQkOlDmcEJDT81-3Hb2ZQ,2155
80
80
  maleo/identity/schemas/parameter/general/user_organization.py,sha256=11xtngCkoBa-D3qHhsdfrZM6iWVAH6oPi-gbJDx3xvA,540
@@ -95,7 +95,7 @@ maleo/identity/types/base/organization.py,sha256=wLu9QcVDfiMke3-Smfs-LI3zV5QiMuC
95
95
  maleo/identity/types/base/organization_registration_code.py,sha256=V8cct7fTIO-OT7RoYuui__oblyIUzFdQWOwHfhflpUc,87
96
96
  maleo/identity/types/base/user.py,sha256=wLu9QcVDfiMke3-Smfs-LI3zV5QiMuCKkoa0CCRmh4s,93
97
97
  maleo/identity/types/base/user_profile.py,sha256=E81XLbjJ8szrnPRA09VILrr4at4mKWJLeGOfYWLnWPQ,65
98
- maleo_identity-0.0.78.dist-info/METADATA,sha256=3vhel2kM6DISnnKXeIkwZFPI0aj40WvHYWHs8PJw4rU,862
99
- maleo_identity-0.0.78.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
100
- maleo_identity-0.0.78.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
101
- maleo_identity-0.0.78.dist-info/RECORD,,
98
+ maleo_identity-0.0.80.dist-info/METADATA,sha256=6lihTP2IY428z95NqcFc0a8kbCV75rXtgpRg7qn4-8c,862
99
+ maleo_identity-0.0.80.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
100
+ maleo_identity-0.0.80.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
101
+ maleo_identity-0.0.80.dist-info/RECORD,,