maleo-metadata-client 0.0.7__tar.gz → 0.0.10__tar.gz
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.
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/PKG-INFO +12 -11
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/maleo_metadata_client.egg-info/PKG-INFO +12 -11
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/maleo_metadata_client.egg-info/SOURCES.txt +8 -1
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/maleo_metadata_client.egg-info/requires.txt +11 -10
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/pyproject.toml +12 -11
- maleo_metadata_client-0.0.10/src/manager.py +78 -0
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/src/services/blood_type.py +10 -8
- maleo_metadata_client-0.0.10/src/services/gender.py +304 -0
- maleo_metadata_client-0.0.10/src/services/medical_role.py +354 -0
- maleo_metadata_client-0.0.10/src/services/medical_service.py +306 -0
- maleo_metadata_client-0.0.10/src/services/organization_type.py +310 -0
- maleo_metadata_client-0.0.10/src/services/service.py +304 -0
- maleo_metadata_client-0.0.10/src/services/system_role.py +304 -0
- maleo_metadata_client-0.0.10/src/services/user_type.py +302 -0
- maleo_metadata_client-0.0.7/src/manager.py +0 -15
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/LICENSE +0 -0
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/README.md +0 -0
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/maleo_metadata_client.egg-info/dependency_links.txt +0 -0
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/maleo_metadata_client.egg-info/top_level.txt +0 -0
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/setup.cfg +0 -0
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/src/__init__.py +0 -0
- {maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/src/services/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-metadata-client
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: MaleoMetadata client package
|
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
|
6
6
|
License: MIT
|
|
@@ -13,7 +13,7 @@ Requires-Dist: anyio>=4.11.0
|
|
|
13
13
|
Requires-Dist: async-timeout>=5.0.1
|
|
14
14
|
Requires-Dist: bcrypt>=5.0.0
|
|
15
15
|
Requires-Dist: black>=25.9.0
|
|
16
|
-
Requires-Dist: cachetools>=6.2.
|
|
16
|
+
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
|
|
@@ -35,7 +35,7 @@ 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
37
|
Requires-Dist: google-cloud-secret-manager>=2.24.0
|
|
38
|
-
Requires-Dist: google-cloud-storage>=3.4.
|
|
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
41
|
Requires-Dist: googleapis-common-protos>=1.70.0
|
|
@@ -47,19 +47,20 @@ 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
|
-
Requires-Dist: idna>=3.
|
|
50
|
+
Requires-Dist: idna>=3.11
|
|
51
51
|
Requires-Dist: importlib_metadata>=8.7.0
|
|
52
52
|
Requires-Dist: iniconfig>=2.1.0
|
|
53
|
+
Requires-Dist: maleo-client>=0.0.2
|
|
53
54
|
Requires-Dist: maleo-crypto>=0.0.28
|
|
54
55
|
Requires-Dist: maleo-database>=0.1.42
|
|
55
56
|
Requires-Dist: maleo-enums>=0.0.28
|
|
56
|
-
Requires-Dist: maleo-google>=0.1.
|
|
57
|
+
Requires-Dist: maleo-google>=0.1.12
|
|
57
58
|
Requires-Dist: maleo-infra>=0.1.42
|
|
58
59
|
Requires-Dist: maleo-logging>=0.0.28
|
|
59
|
-
Requires-Dist: maleo-
|
|
60
|
-
Requires-Dist: maleo-
|
|
61
|
-
Requires-Dist: maleo-middlewares>=0.1.2
|
|
60
|
+
Requires-Dist: maleo-metadata>=0.3.42
|
|
61
|
+
Requires-Dist: maleo-middlewares>=0.1.12
|
|
62
62
|
Requires-Dist: maleo-schemas>=0.1.42
|
|
63
|
+
Requires-Dist: maleo-soma>=0.2.2
|
|
63
64
|
Requires-Dist: maleo-types>=0.0.8
|
|
64
65
|
Requires-Dist: maleo-utils>=0.0.28
|
|
65
66
|
Requires-Dist: motor>=3.7.1
|
|
@@ -80,12 +81,12 @@ Requires-Dist: pyasn1>=0.6.1
|
|
|
80
81
|
Requires-Dist: pyasn1_modules>=0.4.2
|
|
81
82
|
Requires-Dist: pycparser>=2.23
|
|
82
83
|
Requires-Dist: pycryptodome>=3.23.0
|
|
83
|
-
Requires-Dist: pydantic>=2.12.
|
|
84
|
+
Requires-Dist: pydantic>=2.12.1
|
|
84
85
|
Requires-Dist: pydantic-settings>=2.11.0
|
|
85
|
-
Requires-Dist: pydantic_core>=2.41.
|
|
86
|
+
Requires-Dist: pydantic_core>=2.41.3
|
|
86
87
|
Requires-Dist: Pygments>=2.19.2
|
|
87
88
|
Requires-Dist: PyJWT>=2.10.1
|
|
88
|
-
Requires-Dist: pymongo>=4.15.
|
|
89
|
+
Requires-Dist: pymongo>=4.15.3
|
|
89
90
|
Requires-Dist: pytest>=8.4.2
|
|
90
91
|
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
91
92
|
Requires-Dist: python-dotenv>=1.1.1
|
{maleo_metadata_client-0.0.7 → maleo_metadata_client-0.0.10}/maleo_metadata_client.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-metadata-client
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: MaleoMetadata client package
|
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
|
6
6
|
License: MIT
|
|
@@ -13,7 +13,7 @@ Requires-Dist: anyio>=4.11.0
|
|
|
13
13
|
Requires-Dist: async-timeout>=5.0.1
|
|
14
14
|
Requires-Dist: bcrypt>=5.0.0
|
|
15
15
|
Requires-Dist: black>=25.9.0
|
|
16
|
-
Requires-Dist: cachetools>=6.2.
|
|
16
|
+
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
|
|
@@ -35,7 +35,7 @@ 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
37
|
Requires-Dist: google-cloud-secret-manager>=2.24.0
|
|
38
|
-
Requires-Dist: google-cloud-storage>=3.4.
|
|
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
41
|
Requires-Dist: googleapis-common-protos>=1.70.0
|
|
@@ -47,19 +47,20 @@ 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
|
-
Requires-Dist: idna>=3.
|
|
50
|
+
Requires-Dist: idna>=3.11
|
|
51
51
|
Requires-Dist: importlib_metadata>=8.7.0
|
|
52
52
|
Requires-Dist: iniconfig>=2.1.0
|
|
53
|
+
Requires-Dist: maleo-client>=0.0.2
|
|
53
54
|
Requires-Dist: maleo-crypto>=0.0.28
|
|
54
55
|
Requires-Dist: maleo-database>=0.1.42
|
|
55
56
|
Requires-Dist: maleo-enums>=0.0.28
|
|
56
|
-
Requires-Dist: maleo-google>=0.1.
|
|
57
|
+
Requires-Dist: maleo-google>=0.1.12
|
|
57
58
|
Requires-Dist: maleo-infra>=0.1.42
|
|
58
59
|
Requires-Dist: maleo-logging>=0.0.28
|
|
59
|
-
Requires-Dist: maleo-
|
|
60
|
-
Requires-Dist: maleo-
|
|
61
|
-
Requires-Dist: maleo-middlewares>=0.1.2
|
|
60
|
+
Requires-Dist: maleo-metadata>=0.3.42
|
|
61
|
+
Requires-Dist: maleo-middlewares>=0.1.12
|
|
62
62
|
Requires-Dist: maleo-schemas>=0.1.42
|
|
63
|
+
Requires-Dist: maleo-soma>=0.2.2
|
|
63
64
|
Requires-Dist: maleo-types>=0.0.8
|
|
64
65
|
Requires-Dist: maleo-utils>=0.0.28
|
|
65
66
|
Requires-Dist: motor>=3.7.1
|
|
@@ -80,12 +81,12 @@ Requires-Dist: pyasn1>=0.6.1
|
|
|
80
81
|
Requires-Dist: pyasn1_modules>=0.4.2
|
|
81
82
|
Requires-Dist: pycparser>=2.23
|
|
82
83
|
Requires-Dist: pycryptodome>=3.23.0
|
|
83
|
-
Requires-Dist: pydantic>=2.12.
|
|
84
|
+
Requires-Dist: pydantic>=2.12.1
|
|
84
85
|
Requires-Dist: pydantic-settings>=2.11.0
|
|
85
|
-
Requires-Dist: pydantic_core>=2.41.
|
|
86
|
+
Requires-Dist: pydantic_core>=2.41.3
|
|
86
87
|
Requires-Dist: Pygments>=2.19.2
|
|
87
88
|
Requires-Dist: PyJWT>=2.10.1
|
|
88
|
-
Requires-Dist: pymongo>=4.15.
|
|
89
|
+
Requires-Dist: pymongo>=4.15.3
|
|
89
90
|
Requires-Dist: pytest>=8.4.2
|
|
90
91
|
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
91
92
|
Requires-Dist: python-dotenv>=1.1.1
|
|
@@ -9,4 +9,11 @@ maleo_metadata_client.egg-info/top_level.txt
|
|
|
9
9
|
src/__init__.py
|
|
10
10
|
src/manager.py
|
|
11
11
|
src/services/__init__.py
|
|
12
|
-
src/services/blood_type.py
|
|
12
|
+
src/services/blood_type.py
|
|
13
|
+
src/services/gender.py
|
|
14
|
+
src/services/medical_role.py
|
|
15
|
+
src/services/medical_service.py
|
|
16
|
+
src/services/organization_type.py
|
|
17
|
+
src/services/service.py
|
|
18
|
+
src/services/system_role.py
|
|
19
|
+
src/services/user_type.py
|
|
@@ -4,7 +4,7 @@ anyio>=4.11.0
|
|
|
4
4
|
async-timeout>=5.0.1
|
|
5
5
|
bcrypt>=5.0.0
|
|
6
6
|
black>=25.9.0
|
|
7
|
-
cachetools>=6.2.
|
|
7
|
+
cachetools>=6.2.1
|
|
8
8
|
certifi>=2025.10.5
|
|
9
9
|
cffi>=2.0.0
|
|
10
10
|
cfgv>=3.4.0
|
|
@@ -26,7 +26,7 @@ google-cloud-core>=2.4.3
|
|
|
26
26
|
google-cloud-logging>=3.12.1
|
|
27
27
|
google-cloud-pubsub>=2.31.1
|
|
28
28
|
google-cloud-secret-manager>=2.24.0
|
|
29
|
-
google-cloud-storage>=3.4.
|
|
29
|
+
google-cloud-storage>=3.4.1
|
|
30
30
|
google-crc32c>=1.7.1
|
|
31
31
|
google-resumable-media>=2.7.2
|
|
32
32
|
googleapis-common-protos>=1.70.0
|
|
@@ -38,19 +38,20 @@ h11>=0.16.0
|
|
|
38
38
|
httpcore>=1.0.9
|
|
39
39
|
httpx>=0.28.1
|
|
40
40
|
identify>=2.6.15
|
|
41
|
-
idna>=3.
|
|
41
|
+
idna>=3.11
|
|
42
42
|
importlib_metadata>=8.7.0
|
|
43
43
|
iniconfig>=2.1.0
|
|
44
|
+
maleo-client>=0.0.2
|
|
44
45
|
maleo-crypto>=0.0.28
|
|
45
46
|
maleo-database>=0.1.42
|
|
46
47
|
maleo-enums>=0.0.28
|
|
47
|
-
maleo-google>=0.1.
|
|
48
|
+
maleo-google>=0.1.12
|
|
48
49
|
maleo-infra>=0.1.42
|
|
49
50
|
maleo-logging>=0.0.28
|
|
50
|
-
maleo-
|
|
51
|
-
maleo-
|
|
52
|
-
maleo-middlewares>=0.1.2
|
|
51
|
+
maleo-metadata>=0.3.42
|
|
52
|
+
maleo-middlewares>=0.1.12
|
|
53
53
|
maleo-schemas>=0.1.42
|
|
54
|
+
maleo-soma>=0.2.2
|
|
54
55
|
maleo-types>=0.0.8
|
|
55
56
|
maleo-utils>=0.0.28
|
|
56
57
|
motor>=3.7.1
|
|
@@ -71,12 +72,12 @@ pyasn1>=0.6.1
|
|
|
71
72
|
pyasn1_modules>=0.4.2
|
|
72
73
|
pycparser>=2.23
|
|
73
74
|
pycryptodome>=3.23.0
|
|
74
|
-
pydantic>=2.12.
|
|
75
|
+
pydantic>=2.12.1
|
|
75
76
|
pydantic-settings>=2.11.0
|
|
76
|
-
pydantic_core>=2.41.
|
|
77
|
+
pydantic_core>=2.41.3
|
|
77
78
|
Pygments>=2.19.2
|
|
78
79
|
PyJWT>=2.10.1
|
|
79
|
-
pymongo>=4.15.
|
|
80
|
+
pymongo>=4.15.3
|
|
80
81
|
pytest>=8.4.2
|
|
81
82
|
python-dateutil>=2.9.0.post0
|
|
82
83
|
python-dotenv>=1.1.1
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "maleo-metadata-client" # PyPI package name
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.10"
|
|
8
8
|
description = "MaleoMetadata client package"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
|
|
@@ -19,7 +19,7 @@ dependencies = [
|
|
|
19
19
|
"async-timeout>=5.0.1",
|
|
20
20
|
"bcrypt>=5.0.0",
|
|
21
21
|
"black>=25.9.0",
|
|
22
|
-
"cachetools>=6.2.
|
|
22
|
+
"cachetools>=6.2.1",
|
|
23
23
|
"certifi>=2025.10.5",
|
|
24
24
|
"cffi>=2.0.0",
|
|
25
25
|
"cfgv>=3.4.0",
|
|
@@ -41,7 +41,7 @@ dependencies = [
|
|
|
41
41
|
"google-cloud-logging>=3.12.1",
|
|
42
42
|
"google-cloud-pubsub>=2.31.1",
|
|
43
43
|
"google-cloud-secret-manager>=2.24.0",
|
|
44
|
-
"google-cloud-storage>=3.4.
|
|
44
|
+
"google-cloud-storage>=3.4.1",
|
|
45
45
|
"google-crc32c>=1.7.1",
|
|
46
46
|
"google-resumable-media>=2.7.2",
|
|
47
47
|
"googleapis-common-protos>=1.70.0",
|
|
@@ -53,19 +53,20 @@ dependencies = [
|
|
|
53
53
|
"httpcore>=1.0.9",
|
|
54
54
|
"httpx>=0.28.1",
|
|
55
55
|
"identify>=2.6.15",
|
|
56
|
-
"idna>=3.
|
|
56
|
+
"idna>=3.11",
|
|
57
57
|
"importlib_metadata>=8.7.0",
|
|
58
58
|
"iniconfig>=2.1.0",
|
|
59
|
+
"maleo-client>=0.0.2",
|
|
59
60
|
"maleo-crypto>=0.0.28",
|
|
60
61
|
"maleo-database>=0.1.42",
|
|
61
62
|
"maleo-enums>=0.0.28",
|
|
62
|
-
"maleo-google>=0.1.
|
|
63
|
+
"maleo-google>=0.1.12",
|
|
63
64
|
"maleo-infra>=0.1.42",
|
|
64
65
|
"maleo-logging>=0.0.28",
|
|
65
|
-
"maleo-
|
|
66
|
-
"maleo-
|
|
67
|
-
"maleo-middlewares>=0.1.2",
|
|
66
|
+
"maleo-metadata>=0.3.42",
|
|
67
|
+
"maleo-middlewares>=0.1.12",
|
|
68
68
|
"maleo-schemas>=0.1.42",
|
|
69
|
+
"maleo-soma>=0.2.2",
|
|
69
70
|
"maleo-types>=0.0.8",
|
|
70
71
|
"maleo-utils>=0.0.28",
|
|
71
72
|
"motor>=3.7.1",
|
|
@@ -86,12 +87,12 @@ dependencies = [
|
|
|
86
87
|
"pyasn1_modules>=0.4.2",
|
|
87
88
|
"pycparser>=2.23",
|
|
88
89
|
"pycryptodome>=3.23.0",
|
|
89
|
-
"pydantic>=2.12.
|
|
90
|
+
"pydantic>=2.12.1",
|
|
90
91
|
"pydantic-settings>=2.11.0",
|
|
91
|
-
"pydantic_core>=2.41.
|
|
92
|
+
"pydantic_core>=2.41.3",
|
|
92
93
|
"Pygments>=2.19.2",
|
|
93
94
|
"PyJWT>=2.10.1",
|
|
94
|
-
"pymongo>=4.15.
|
|
95
|
+
"pymongo>=4.15.3",
|
|
95
96
|
"pytest>=8.4.2",
|
|
96
97
|
"python-dateutil>=2.9.0.post0",
|
|
97
98
|
"python-dotenv>=1.1.1",
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
from maleo.client.maleo.manager import MaleoClientManager
|
|
2
|
+
from maleo.client.maleo.config import MaleoMetadataClientConfig
|
|
3
|
+
from .services.blood_type import BloodTypeClientService
|
|
4
|
+
from .services.gender import GenderClientService
|
|
5
|
+
from .services.medical_role import MedicalRoleClientService
|
|
6
|
+
from .services.medical_service import MedicalServiceClientService
|
|
7
|
+
from .services.organization_type import OrganizationTypeClientService
|
|
8
|
+
from .services.service import ServiceClientService
|
|
9
|
+
from .services.system_role import SystemRoleClientService
|
|
10
|
+
from .services.user_type import UserTypeClientService
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class MaleoMetadataClientManager(MaleoClientManager[MaleoMetadataClientConfig]):
|
|
14
|
+
def initalize_services(self):
|
|
15
|
+
self.blood_type = BloodTypeClientService(
|
|
16
|
+
application_context=self._application_context,
|
|
17
|
+
config=self._config,
|
|
18
|
+
logger=self._logger,
|
|
19
|
+
http_client_manager=self._http_client_manager,
|
|
20
|
+
private_key=self._private_key,
|
|
21
|
+
redis=self._redis,
|
|
22
|
+
)
|
|
23
|
+
self.gender = GenderClientService(
|
|
24
|
+
application_context=self._application_context,
|
|
25
|
+
config=self._config,
|
|
26
|
+
logger=self._logger,
|
|
27
|
+
http_client_manager=self._http_client_manager,
|
|
28
|
+
private_key=self._private_key,
|
|
29
|
+
redis=self._redis,
|
|
30
|
+
)
|
|
31
|
+
self.medical_role = MedicalRoleClientService(
|
|
32
|
+
application_context=self._application_context,
|
|
33
|
+
config=self._config,
|
|
34
|
+
logger=self._logger,
|
|
35
|
+
http_client_manager=self._http_client_manager,
|
|
36
|
+
private_key=self._private_key,
|
|
37
|
+
redis=self._redis,
|
|
38
|
+
)
|
|
39
|
+
self.medical_service = MedicalServiceClientService(
|
|
40
|
+
application_context=self._application_context,
|
|
41
|
+
config=self._config,
|
|
42
|
+
logger=self._logger,
|
|
43
|
+
http_client_manager=self._http_client_manager,
|
|
44
|
+
private_key=self._private_key,
|
|
45
|
+
redis=self._redis,
|
|
46
|
+
)
|
|
47
|
+
self.organization_type = OrganizationTypeClientService(
|
|
48
|
+
application_context=self._application_context,
|
|
49
|
+
config=self._config,
|
|
50
|
+
logger=self._logger,
|
|
51
|
+
http_client_manager=self._http_client_manager,
|
|
52
|
+
private_key=self._private_key,
|
|
53
|
+
redis=self._redis,
|
|
54
|
+
)
|
|
55
|
+
self.service = ServiceClientService(
|
|
56
|
+
application_context=self._application_context,
|
|
57
|
+
config=self._config,
|
|
58
|
+
logger=self._logger,
|
|
59
|
+
http_client_manager=self._http_client_manager,
|
|
60
|
+
private_key=self._private_key,
|
|
61
|
+
redis=self._redis,
|
|
62
|
+
)
|
|
63
|
+
self.system_role = SystemRoleClientService(
|
|
64
|
+
application_context=self._application_context,
|
|
65
|
+
config=self._config,
|
|
66
|
+
logger=self._logger,
|
|
67
|
+
http_client_manager=self._http_client_manager,
|
|
68
|
+
private_key=self._private_key,
|
|
69
|
+
redis=self._redis,
|
|
70
|
+
)
|
|
71
|
+
self.user_type = UserTypeClientService(
|
|
72
|
+
application_context=self._application_context,
|
|
73
|
+
config=self._config,
|
|
74
|
+
logger=self._logger,
|
|
75
|
+
http_client_manager=self._http_client_manager,
|
|
76
|
+
private_key=self._private_key,
|
|
77
|
+
redis=self._redis,
|
|
78
|
+
)
|
|
@@ -3,13 +3,13 @@ from copy import deepcopy
|
|
|
3
3
|
from datetime import datetime, timezone
|
|
4
4
|
from typing import Literal, Union, overload
|
|
5
5
|
from uuid import UUID
|
|
6
|
+
from maleo.client.maleo.config import MaleoMetadataClientConfig
|
|
7
|
+
from maleo.client.maleo.service import MaleoClientService
|
|
6
8
|
from maleo.database.enums import Connection
|
|
7
9
|
from maleo.database.utils import build_cache_key
|
|
8
10
|
from maleo.enums.cardinality import Cardinality
|
|
9
11
|
from maleo.enums.connection import Header
|
|
10
12
|
from maleo.logging.enums import Level
|
|
11
|
-
from maleo.managers.client.maleo.config import MaleoMetadataClientConfig
|
|
12
|
-
from maleo.managers.client.maleo import MaleoClientService
|
|
13
13
|
from maleo.metadata.constants.blood_type import BLOOD_TYPE_RESOURCE
|
|
14
14
|
from maleo.metadata.schemas.blood_type import (
|
|
15
15
|
ReadMultipleParameter,
|
|
@@ -17,7 +17,7 @@ from maleo.metadata.schemas.blood_type import (
|
|
|
17
17
|
StandardBloodTypeSchema,
|
|
18
18
|
FullBloodTypeSchema,
|
|
19
19
|
)
|
|
20
|
-
from maleo.metadata.enums.blood_type import Granularity
|
|
20
|
+
from maleo.metadata.enums.blood_type import Granularity, IdentifierType
|
|
21
21
|
from maleo.metadata.utils.blood_type import get_schema_model
|
|
22
22
|
from maleo.schemas.connection import ConnectionContext
|
|
23
23
|
from maleo.schemas.exception.factory import Factory as MaleoExceptionFactory
|
|
@@ -224,12 +224,14 @@ class BloodTypeClientService(MaleoClientService[MaleoMetadataClientConfig]):
|
|
|
224
224
|
auth = None
|
|
225
225
|
|
|
226
226
|
if isinstance(parameters, ReadMultipleParameter):
|
|
227
|
-
url = f"{self._config.url}/v1/{self.resource.identifiers[
|
|
228
|
-
parameters.date_filters
|
|
229
|
-
params = parameters.to_query_params()
|
|
227
|
+
url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/"
|
|
230
228
|
elif isinstance(parameters, ReadSingleParameter):
|
|
231
|
-
|
|
232
|
-
|
|
229
|
+
if parameters.identifier is IdentifierType.ID:
|
|
230
|
+
url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/{parameters.value}"
|
|
231
|
+
else:
|
|
232
|
+
url = f"{self._config.url}/v1/{self.resource.identifiers[-1].slug}/{parameters.identifier}/{parameters.value}"
|
|
233
|
+
|
|
234
|
+
params = parameters.to_query_params()
|
|
233
235
|
|
|
234
236
|
response = await http_client.get(
|
|
235
237
|
url, params=params, headers=headers, auth=auth
|