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.
- maleo/identity/constants/organization_registration_code.py +1 -1
- maleo/identity/constants/organization_role.py +1 -1
- maleo/identity/constants/user_organization.py +1 -1
- maleo/identity/constants/user_organization_role.py +1 -1
- maleo/identity/constants/user_profile.py +1 -1
- maleo/identity/constants/user_system_role.py +1 -1
- maleo/identity/mixins/organization_registration_code.py +5 -0
- maleo/identity/schemas/parameter/general/organization_registration_code.py +33 -9
- {maleo_identity-0.0.78.dist-info → maleo_identity-0.0.80.dist-info}/METADATA +1 -1
- {maleo_identity-0.0.78.dist-info → maleo_identity-0.0.80.dist-info}/RECORD +12 -12
- {maleo_identity-0.0.78.dist-info → maleo_identity-0.0.80.dist-info}/WHEEL +0 -0
- {maleo_identity-0.0.78.dist-info → maleo_identity-0.0.80.dist-info}/top_level.txt +0 -0
|
@@ -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="
|
|
22
|
+
key="user_profiles", name="User Profiles", url_slug="user-profiles"
|
|
23
23
|
)
|
|
24
24
|
],
|
|
25
25
|
details=None,
|
|
@@ -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
|
-
|
|
4
|
-
|
|
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
|
|
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
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
|
@@ -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=
|
|
17
|
-
maleo/identity/constants/organization_role.py,sha256=
|
|
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=
|
|
20
|
-
maleo/identity/constants/user_organization_role.py,sha256=
|
|
21
|
-
maleo/identity/constants/user_profile.py,sha256=
|
|
22
|
-
maleo/identity/constants/user_system_role.py,sha256=
|
|
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=
|
|
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=
|
|
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.
|
|
99
|
-
maleo_identity-0.0.
|
|
100
|
-
maleo_identity-0.0.
|
|
101
|
-
maleo_identity-0.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|