maleo-metadata-client 0.0.14__py3-none-any.whl → 0.0.22__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-metadata-client might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
1
  import json
2
2
  from copy import deepcopy
3
3
  from datetime import datetime, timezone
4
- from typing import Literal, Union, overload
4
+ from typing import Literal, overload
5
5
  from uuid import UUID
6
6
  from maleo.client.maleo.config import MaleoMetadataClientConfig
7
7
  from maleo.client.maleo.service import MaleoClientService
@@ -36,12 +36,12 @@ from maleo.schemas.response import (
36
36
  ReadSingleDataResponse,
37
37
  )
38
38
  from maleo.schemas.security.authorization import (
39
- OptionalAnyAuthorization,
39
+ OptAnyAuthorization,
40
40
  AnyAuthorization,
41
41
  Factory as AuthorizationFactory,
42
42
  )
43
- from maleo.schemas.security.impersonation import OptionalImpersonation
44
- from maleo.types.dict import OptionalStringToStringDict
43
+ from maleo.schemas.security.impersonation import OptImpersonation
44
+ from maleo.types.dict import OptStrToStrDict
45
45
  from maleo.utils.merger import merge_dicts
46
46
 
47
47
 
@@ -58,9 +58,9 @@ class UserTypeClientService(MaleoClientService[MaleoMetadataClientConfig]):
58
58
  resource_operation_action: ReadResourceOperationAction,
59
59
  connection_context: ConnectionContext,
60
60
  authorization: AnyAuthorization,
61
- impersonation: OptionalImpersonation = None,
61
+ impersonation: OptImpersonation = None,
62
62
  parameters: ReadMultipleParameter,
63
- headers: OptionalStringToStringDict = None,
63
+ headers: OptStrToStrDict = None,
64
64
  ) -> ReadMultipleDataResponse[StandardUserTypeSchema, StrictPagination, None]: ...
65
65
  @overload
66
66
  async def read(
@@ -72,9 +72,9 @@ class UserTypeClientService(MaleoClientService[MaleoMetadataClientConfig]):
72
72
  resource_operation_action: ReadResourceOperationAction,
73
73
  connection_context: ConnectionContext,
74
74
  authorization: AnyAuthorization,
75
- impersonation: OptionalImpersonation = None,
75
+ impersonation: OptImpersonation = None,
76
76
  parameters: ReadMultipleParameter,
77
- headers: OptionalStringToStringDict = None,
77
+ headers: OptStrToStrDict = None,
78
78
  ) -> ReadMultipleDataResponse[FullUserTypeSchema, StrictPagination, None]: ...
79
79
  @overload
80
80
  async def read(
@@ -86,9 +86,9 @@ class UserTypeClientService(MaleoClientService[MaleoMetadataClientConfig]):
86
86
  resource_operation_action: ReadResourceOperationAction,
87
87
  connection_context: ConnectionContext,
88
88
  authorization: AnyAuthorization,
89
- impersonation: OptionalImpersonation = None,
89
+ impersonation: OptImpersonation = None,
90
90
  parameters: ReadSingleParameter,
91
- headers: OptionalStringToStringDict = None,
91
+ headers: OptStrToStrDict = None,
92
92
  ) -> ReadSingleDataResponse[StandardUserTypeSchema, None]: ...
93
93
  @overload
94
94
  async def read(
@@ -100,9 +100,9 @@ class UserTypeClientService(MaleoClientService[MaleoMetadataClientConfig]):
100
100
  resource_operation_action: ReadResourceOperationAction,
101
101
  connection_context: ConnectionContext,
102
102
  authorization: AnyAuthorization,
103
- impersonation: OptionalImpersonation = None,
103
+ impersonation: OptImpersonation = None,
104
104
  parameters: ReadSingleParameter,
105
- headers: OptionalStringToStringDict = None,
105
+ headers: OptStrToStrDict = None,
106
106
  ) -> ReadSingleDataResponse[FullUserTypeSchema, None]: ...
107
107
  async def read(
108
108
  self,
@@ -112,16 +112,16 @@ class UserTypeClientService(MaleoClientService[MaleoMetadataClientConfig]):
112
112
  operation_id: UUID,
113
113
  resource_operation_action: ReadResourceOperationAction,
114
114
  connection_context: ConnectionContext,
115
- authorization: OptionalAnyAuthorization = None,
116
- impersonation: OptionalImpersonation = None,
117
- parameters: Union[ReadMultipleParameter, ReadSingleParameter],
118
- headers: OptionalStringToStringDict = None,
119
- ) -> Union[
120
- ReadMultipleDataResponse[StandardUserTypeSchema, StrictPagination, None],
121
- ReadMultipleDataResponse[FullUserTypeSchema, StrictPagination, None],
122
- ReadSingleDataResponse[StandardUserTypeSchema, None],
123
- ReadSingleDataResponse[FullUserTypeSchema, None],
124
- ]:
115
+ authorization: OptAnyAuthorization = None,
116
+ impersonation: OptImpersonation = None,
117
+ parameters: ReadMultipleParameter | ReadSingleParameter,
118
+ headers: OptStrToStrDict = None,
119
+ ) -> (
120
+ ReadMultipleDataResponse[StandardUserTypeSchema, StrictPagination, None]
121
+ | ReadMultipleDataResponse[FullUserTypeSchema, StrictPagination, None]
122
+ | ReadSingleDataResponse[StandardUserTypeSchema, None]
123
+ | ReadSingleDataResponse[FullUserTypeSchema, None]
124
+ ):
125
125
  redis_client = self._redis.manager.client.get(Connection.ASYNC)
126
126
  data_model_cls = get_schema_model(granularity)
127
127
 
@@ -224,10 +224,10 @@ class UserTypeClientService(MaleoClientService[MaleoMetadataClientConfig]):
224
224
  if isinstance(parameters, ReadMultipleParameter):
225
225
  url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/"
226
226
  elif isinstance(parameters, ReadSingleParameter):
227
- if parameters.identifier is IdentifierType.ID:
228
- url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/{parameters.value}"
227
+ if parameters.identifier_type is IdentifierType.ID:
228
+ url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/{parameters.identifier_value}"
229
229
  else:
230
- url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/{parameters.identifier}/{parameters.value}"
230
+ url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/{parameters.identifier_type}/{parameters.identifier_value}"
231
231
 
232
232
  params = parameters.to_query_params()
233
233
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-metadata-client
3
- Version: 0.0.14
3
+ Version: 0.0.22
4
4
  Summary: MaleoMetadata client package
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -17,82 +17,82 @@ Requires-Dist: cachetools>=6.2.1
17
17
  Requires-Dist: certifi>=2025.10.5
18
18
  Requires-Dist: cffi>=2.0.0
19
19
  Requires-Dist: cfgv>=3.4.0
20
- Requires-Dist: charset-normalizer>=3.4.3
20
+ Requires-Dist: charset-normalizer>=3.4.4
21
21
  Requires-Dist: click>=8.3.0
22
22
  Requires-Dist: colorama>=0.4.6
23
- Requires-Dist: cryptography>=46.0.2
23
+ Requires-Dist: cryptography>=46.0.3
24
24
  Requires-Dist: distlib>=0.4.0
25
25
  Requires-Dist: dnspython>=2.8.0
26
- Requires-Dist: elastic-transport>=9.1.0
26
+ Requires-Dist: elastic-transport>=9.2.0
27
27
  Requires-Dist: elasticsearch>=9.1.1
28
- Requires-Dist: fastapi>=0.119.0
28
+ Requires-Dist: fastapi>=0.119.1
29
29
  Requires-Dist: filelock>=3.20.0
30
- Requires-Dist: google-api-core>=2.26.0
30
+ Requires-Dist: google-api-core>=2.27.0
31
31
  Requires-Dist: google-auth>=2.41.1
32
- Requires-Dist: google-cloud-appengine-logging>=1.6.2
33
- Requires-Dist: google-cloud-audit-log>=0.3.3
32
+ Requires-Dist: google-cloud-appengine-logging>=1.7.0
33
+ Requires-Dist: google-cloud-audit-log>=0.4.0
34
34
  Requires-Dist: google-cloud-core>=2.4.3
35
35
  Requires-Dist: google-cloud-logging>=3.12.1
36
36
  Requires-Dist: google-cloud-pubsub>=2.31.1
37
- Requires-Dist: google-cloud-secret-manager>=2.24.0
37
+ Requires-Dist: google-cloud-secret-manager>=2.25.0
38
38
  Requires-Dist: google-cloud-storage>=3.4.1
39
39
  Requires-Dist: google-crc32c>=1.7.1
40
40
  Requires-Dist: google-resumable-media>=2.7.2
41
- Requires-Dist: googleapis-common-protos>=1.70.0
41
+ Requires-Dist: googleapis-common-protos>=1.71.0
42
42
  Requires-Dist: greenlet>=3.2.4
43
- Requires-Dist: grpc-google-iam-v1>=0.14.2
44
- Requires-Dist: grpcio>=1.75.1
45
- Requires-Dist: grpcio-status>=1.75.1
43
+ Requires-Dist: grpc-google-iam-v1>=0.14.3
44
+ Requires-Dist: grpcio>=1.76.0
45
+ Requires-Dist: grpcio-status>=1.76.0
46
46
  Requires-Dist: h11>=0.16.0
47
47
  Requires-Dist: httpcore>=1.0.9
48
48
  Requires-Dist: httpx>=0.28.1
49
49
  Requires-Dist: identify>=2.6.15
50
50
  Requires-Dist: idna>=3.11
51
51
  Requires-Dist: importlib_metadata>=8.7.0
52
- Requires-Dist: iniconfig>=2.1.0
53
- Requires-Dist: maleo-client>=0.0.2
54
- Requires-Dist: maleo-crypto>=0.0.28
55
- Requires-Dist: maleo-database>=0.1.42
56
- Requires-Dist: maleo-enums>=0.0.28
57
- Requires-Dist: maleo-google>=0.1.12
58
- Requires-Dist: maleo-infra>=0.1.42
59
- Requires-Dist: maleo-logging>=0.0.28
60
- Requires-Dist: maleo-metadata>=0.3.44
61
- Requires-Dist: maleo-middlewares>=0.1.12
62
- Requires-Dist: maleo-schemas>=0.1.42
63
- Requires-Dist: maleo-soma>=0.2.2
64
- Requires-Dist: maleo-types>=0.0.8
65
- Requires-Dist: maleo-utils>=0.0.28
52
+ Requires-Dist: iniconfig>=2.3.0
53
+ Requires-Dist: maleo-client>=0.0.14
54
+ Requires-Dist: maleo-crypto>=0.0.44
55
+ Requires-Dist: maleo-database>=0.1.54
56
+ Requires-Dist: maleo-enums>=0.0.44
57
+ Requires-Dist: maleo-google>=0.1.24
58
+ Requires-Dist: maleo-infra>=0.1.54
59
+ Requires-Dist: maleo-logging>=0.0.44
60
+ Requires-Dist: maleo-metadata>=0.3.58
61
+ Requires-Dist: maleo-middlewares>=0.1.24
62
+ Requires-Dist: maleo-schemas>=0.1.54
63
+ Requires-Dist: maleo-soma>=0.2.14
64
+ Requires-Dist: maleo-types>=0.0.24
65
+ Requires-Dist: maleo-utils>=0.0.44
66
66
  Requires-Dist: motor>=3.7.1
67
67
  Requires-Dist: mypy_extensions>=1.1.0
68
68
  Requires-Dist: nodeenv>=1.9.1
69
- Requires-Dist: opentelemetry-api>=1.37.0
70
- Requires-Dist: opentelemetry-sdk>=1.37.0
71
- Requires-Dist: opentelemetry-semantic-conventions>=0.58b0
69
+ Requires-Dist: opentelemetry-api>=1.38.0
70
+ Requires-Dist: opentelemetry-sdk>=1.38.0
71
+ Requires-Dist: opentelemetry-semantic-conventions>=0.59b0
72
72
  Requires-Dist: packaging>=25.0
73
73
  Requires-Dist: pathspec>=0.12.1
74
74
  Requires-Dist: platformdirs>=4.5.0
75
75
  Requires-Dist: pluggy>=1.6.0
76
76
  Requires-Dist: pre_commit>=4.3.0
77
77
  Requires-Dist: proto-plus>=1.26.1
78
- Requires-Dist: protobuf>=6.32.1
79
- Requires-Dist: psutil>=7.1.0
78
+ Requires-Dist: protobuf>=6.33.0
79
+ Requires-Dist: psutil>=7.1.1
80
80
  Requires-Dist: pyasn1>=0.6.1
81
81
  Requires-Dist: pyasn1_modules>=0.4.2
82
82
  Requires-Dist: pycparser>=2.23
83
83
  Requires-Dist: pycryptodome>=3.23.0
84
- Requires-Dist: pydantic>=2.12.1
84
+ Requires-Dist: pydantic>=2.12.3
85
85
  Requires-Dist: pydantic-settings>=2.11.0
86
- Requires-Dist: pydantic_core>=2.41.3
86
+ Requires-Dist: pydantic_core>=2.41.4
87
87
  Requires-Dist: Pygments>=2.19.2
88
88
  Requires-Dist: PyJWT>=2.10.1
89
89
  Requires-Dist: pymongo>=4.15.3
90
90
  Requires-Dist: pytest>=8.4.2
91
91
  Requires-Dist: python-dateutil>=2.9.0.post0
92
92
  Requires-Dist: python-dotenv>=1.1.1
93
- Requires-Dist: pytokens>=0.1.10
93
+ Requires-Dist: pytokens>=0.2.0
94
94
  Requires-Dist: PyYAML>=6.0.3
95
- Requires-Dist: redis>=6.4.0
95
+ Requires-Dist: redis>=7.0.0
96
96
  Requires-Dist: requests>=2.32.5
97
97
  Requires-Dist: rsa>=4.9.1
98
98
  Requires-Dist: six>=1.17.0
@@ -0,0 +1,17 @@
1
+ maleo/metadata/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ maleo/metadata/client/manager.py,sha256=61HxzVwVjHmiYw7FufDP4gjsztdgqRCDuKJ_o9UEyyY,3665
3
+ maleo/metadata/client/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ maleo/metadata/client/services/blood_type.py,sha256=3iDtiwK8GVU7XP8r0_CJ3PugA_6IZdby8H0cObjuoFc,13404
5
+ maleo/metadata/client/services/gender.py,sha256=ymoQFu5mn_Ie9BEp589m5VH1BEjr9tR6NexAD_gtJiI,13323
6
+ maleo/metadata/client/services/medical_role.py,sha256=np5L0EZZESQ2uPnw11lxVfVrm1BBcP7LoBMfD0omJLo,15345
7
+ maleo/metadata/client/services/medical_service.py,sha256=ICimER6wdhAFn4D27cKQGq2AZywnx18KY83_sLqSRuc,13533
8
+ maleo/metadata/client/services/organization_role.py,sha256=cjVvkiYqC38NTUJFXH2-tKWwTEGF_KBxY4rs3ym5CSQ,13565
9
+ maleo/metadata/client/services/organization_type.py,sha256=UDOx7pROtgXrvBgoR5Cd2ZwF7QzxTcI5XCj-ztW-3pc,13593
10
+ maleo/metadata/client/services/service.py,sha256=wkabWNpzrWbhZtZhTxXhklpmmFfkBpvEKUU1hLhvMUI,13346
11
+ maleo/metadata/client/services/system_role.py,sha256=IG_h2fy_tOI_HvacVdQ7oIsFcvn0R04FbvckXQoxd_w,13427
12
+ maleo/metadata/client/services/user_type.py,sha256=9qLyyfujoCJhH5lCNza1UDC0tRE88xS8krTjl5U0UuY,13311
13
+ maleo_metadata_client-0.0.22.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
14
+ maleo_metadata_client-0.0.22.dist-info/METADATA,sha256=lcYlDY7OIWLJ-vDjqPwpx0p0HbuDFGrTJrCNXfvLpRI,4338
15
+ maleo_metadata_client-0.0.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ maleo_metadata_client-0.0.22.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
17
+ maleo_metadata_client-0.0.22.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- maleo/metadata/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- maleo/metadata/client/manager.py,sha256=u8TgKlG5nGjGIwB8rrw4f2LkqV3h26_Tsak9F5b2TqE,3263
3
- maleo/metadata/client/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- maleo/metadata/client/services/blood_type.py,sha256=4TUOL1D18aK_IdM7P7KQiAp3wssXQKIhhTPrOIYwfTc,13494
5
- maleo/metadata/client/services/gender.py,sha256=5hTWzX7RTO5DxUtKQC9hAD2x5JyV4tNQ3qPrLSA-7lc,13413
6
- maleo/metadata/client/services/medical_role.py,sha256=kxNF5rqb5ReyOh69j_TQXJioUIjPkNzLzg5lxPGfsAU,15483
7
- maleo/metadata/client/services/medical_service.py,sha256=y3PQ_2EbjUQkmFNtgNxzuVtfsY95yx_89bx8WIXozNo,13623
8
- maleo/metadata/client/services/organization_type.py,sha256=zoOIASfTj3JZ4blxIcCkrJd7iEnyuSkEyL12j8egYy0,13705
9
- maleo/metadata/client/services/service.py,sha256=8KuM4eTpp9D5aC9HrFHUpz9E5rIGegK5xLy8wRisOlo,13436
10
- maleo/metadata/client/services/system_role.py,sha256=zFM2_qqsXQ21sUT8I7VKqVC6AJ1Byf32I8kt0sD-DvU,13517
11
- maleo/metadata/client/services/user_type.py,sha256=Ml73ZJVeBoI86LtF4ogFQMJmZ3fQARv5ZAJzjur9pIA,13401
12
- maleo_metadata_client-0.0.14.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
13
- maleo_metadata_client-0.0.14.dist-info/METADATA,sha256=f9-FpB6XWdu4kuLRTYU1T256N6kSc_6W15zGfVfe9PY,4336
14
- maleo_metadata_client-0.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- maleo_metadata_client-0.0.14.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
16
- maleo_metadata_client-0.0.14.dist-info/RECORD,,