maleo-identity 0.1.6__py3-none-any.whl → 0.1.7__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/models.py CHANGED
@@ -111,9 +111,6 @@ class OrganizationRegistrationCode(
111
111
  code: Mapped[str] = mapped_column(
112
112
  name="code", type_=String(36), unique=True, nullable=False
113
113
  )
114
- max_uses: Mapped[int] = mapped_column(
115
- name="max_uses", type_=Integer, nullable=False, default=1
116
- )
117
114
  current_uses: Mapped[int] = mapped_column(
118
115
  name="current_uses", type_=Integer, nullable=False, default=0
119
116
  )
@@ -33,7 +33,7 @@ from maleo.types.integer import OptInt
33
33
  from maleo.types.string import OptStr
34
34
  from ..mixins.common import IdCard, FullName, BirthPlace, PlaceOfBirth
35
35
  from ..mixins.api_key import APIKey
36
- from ..mixins.organization_registration_code import Code, MaxUses, CurrentUses
36
+ from ..mixins.organization_registration_code import Code, CurrentUses
37
37
  from ..mixins.organization_relation import IsBidirectional, Meta
38
38
  from ..mixins.organization import Key as OrganizationKey, Name as OrganizationName
39
39
  from ..mixins.patient import PatientIdentifier
@@ -77,7 +77,6 @@ class PatientSchema(
77
77
 
78
78
  class OrganizationRegistrationCodeSchema(
79
79
  CurrentUses,
80
- MaxUses[int],
81
80
  Code[str],
82
81
  IntOrganizationId[int],
83
82
  SimpleDataStatusMixin[DataStatusEnum],
@@ -30,20 +30,21 @@ from ..mixins.organization_registration_code import Code, MaxUses
30
30
  from ..types.organization_registration_code import IdentifierValueType
31
31
 
32
32
 
33
- class StandardCreateParameter(
34
- MaxUses[int],
35
- Code[OptStr],
36
- ):
33
+ class StandardCreateData(Code[OptStr]):
37
34
  pass
38
35
 
39
36
 
40
- class FullCreateParameter(
41
- StandardCreateParameter,
37
+ class FullCreateData(
38
+ StandardCreateData,
42
39
  IntOrganizationId[int],
43
40
  ):
44
41
  pass
45
42
 
46
43
 
44
+ class CreateParameter(FullCreateData):
45
+ pass
46
+
47
+
47
48
  class ReadMultipleParameter(
48
49
  ReadPaginatedMultipleParameter,
49
50
  Codes[OptListOfStrs],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-identity
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: MaleoIdentity service package
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -1,5 +1,5 @@
1
1
  maleo/identity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- maleo/identity/models.py,sha256=E9xyBRJAzzUS551xraUeNNonjU2u5FK-gtmEFDryS6U,10247
2
+ maleo/identity/models.py,sha256=gxsLPJeNG6cddGx8V7k30LJkCKPPdQ77dXOQUSSZuiM,10132
3
3
  maleo/identity/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  maleo/identity/constants/api_key.py,sha256=e7CsTodUBgyoX30SJUnYx457WBZeRFyyeaOFGsZ-7mY,264
5
5
  maleo/identity/constants/organization.py,sha256=Jeewz4VlaTmuHHDqNZUZyLD3bdndQjpx9K0EabhCFUM,259
@@ -33,9 +33,9 @@ maleo/identity/mixins/user.py,sha256=UHoMgFJXptE9x9QsR07KG2bgp5OlCNqvYjEtP9S3TIY
33
33
  maleo/identity/mixins/user_profile.py,sha256=LFHAzGD-3wli6YJGfl9-Sy0gtQHkhgvrZ5EzOfl1vXY,1174
34
34
  maleo/identity/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  maleo/identity/schemas/api_key.py,sha256=UnQfnoEMkFgOfWDKai6wWNyD5QsovyoOov6jN52QPKI,3713
36
- maleo/identity/schemas/common.py,sha256=x_cK5SexE-0dzuUpb3F0qTQ9RbX9bTTweioi7-Q3zPU,8249
36
+ maleo/identity/schemas/common.py,sha256=3EroCeiPWd-bbNSf0WgeXH89lgFNTWD-3hJ3322hH64,8222
37
37
  maleo/identity/schemas/organization.py,sha256=lyUDA654ydnL8C6tc9GVsE30E_se5TefI2rZPIL8KUk,4817
38
- maleo/identity/schemas/organization_registration_code.py,sha256=jAP7MGb_28wh1WoBZDl2FSJBxKFRH56YSQvMFQ5_iyo,4731
38
+ maleo/identity/schemas/organization_registration_code.py,sha256=RlSn-HG527qRiUFtb8ZRcnnk16SSS5O280hyIWNkS6E,4741
39
39
  maleo/identity/schemas/organization_relation.py,sha256=xEdOuZ6J4r7R4heEagd_UtioYJla73LZs1qloSSEs4I,5067
40
40
  maleo/identity/schemas/patient.py,sha256=CQ3PsW8Xbdm9KpeCnqdkRvgPvDdDmnSPHgYRcaf-zbw,5497
41
41
  maleo/identity/schemas/user.py,sha256=a2DH4eOA_SPrCW3fRBnujxSOCmXcq7IU-aSluZt_h5k,5030
@@ -57,8 +57,8 @@ maleo/identity/types/user_system_role.py,sha256=6KIDk7kCWBlrloNLfIElflS5N8oBYqPe
57
57
  maleo/identity/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  maleo/identity/utils/organization.py,sha256=aEegzeoNLUptrScUB5kWrYlJj7dzTZeVXymltE5lWpE,874
59
59
  maleo/identity/utils/user.py,sha256=1pyfmAbXkAEOo6WM2KRA_kRnFi0O_A2ZUEqv01wY-cU,794
60
- maleo_identity-0.1.6.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
61
- maleo_identity-0.1.6.dist-info/METADATA,sha256=EVB4BDJQOWtX6Z1u4kUEg3s2a5eSmUr0-b9YFL2ysg8,3583
62
- maleo_identity-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
- maleo_identity-0.1.6.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
64
- maleo_identity-0.1.6.dist-info/RECORD,,
60
+ maleo_identity-0.1.7.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
61
+ maleo_identity-0.1.7.dist-info/METADATA,sha256=E3QavzMX8UklGrdm0iT8KvPihD5Nk4uARlL9mc-eFmo,3583
62
+ maleo_identity-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
+ maleo_identity-0.1.7.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
64
+ maleo_identity-0.1.7.dist-info/RECORD,,