neris-api-client 0.1.3__tar.gz → 0.1.4__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.
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/PKG-INFO +3 -3
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/pyproject.toml +3 -3
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client/client.py +5 -4
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client/models.py +1 -1
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/PKG-INFO +3 -3
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/LICENSE +0 -0
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/README.md +0 -0
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/setup.cfg +0 -0
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client/__init__.py +0 -0
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/SOURCES.txt +0 -0
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/dependency_links.txt +0 -0
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/requires.txt +0 -0
- {neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: neris_api_client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: NERIS API Client
|
|
5
5
|
Author-email: Ben Coleman <ben.coleman@ul.org>
|
|
6
|
-
Project-URL: Homepage, https://github.com/ulfsri/neris
|
|
7
|
-
Project-URL: Issues, https://github.com/ulfsri/neris/issues
|
|
6
|
+
Project-URL: Homepage, https://github.com/ulfsri/neris-api-client
|
|
7
|
+
Project-URL: Issues, https://github.com/ulfsri/neris-api-client/issues
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "neris_api_client"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Ben Coleman", email="ben.coleman@ul.org" },
|
|
10
10
|
]
|
|
@@ -25,5 +25,5 @@ dependencies = [
|
|
|
25
25
|
]
|
|
26
26
|
|
|
27
27
|
[project.urls]
|
|
28
|
-
Homepage = "https://github.com/ulfsri/neris"
|
|
29
|
-
Issues = "https://github.com/ulfsri/neris/issues"
|
|
28
|
+
Homepage = "https://github.com/ulfsri/neris-api-client"
|
|
29
|
+
Issues = "https://github.com/ulfsri/neris-api-client/issues"
|
|
@@ -250,9 +250,10 @@ class NerisApiClient(_NerisApiClient):
|
|
|
250
250
|
def list_user_entity_memberships(self, sub: str | UUID) -> List[Dict[str, Any]]:
|
|
251
251
|
return self._call("get", f"/user/{sub}/user_entity_membership")
|
|
252
252
|
|
|
253
|
-
def create_incident(
|
|
254
|
-
self, neris_id
|
|
255
|
-
|
|
253
|
+
def create_incident(self, neris_id: str, body: str | Dict[str, Any]) -> Dict[str, Any]:
|
|
254
|
+
return self._call("post", f"/incident/{neris_id}", data=body, model=IncidentPayload)
|
|
255
|
+
|
|
256
|
+
def validate_incident(self, neris_id: str, body: str | Dict[str, Any]) -> Dict[str, Any]:
|
|
256
257
|
return self._call(
|
|
257
|
-
"post", f"/incident/{neris_id}", data=body, model=IncidentPayload
|
|
258
|
+
"post", f"/incident/{neris_id}/validate", data=body, model=IncidentPayload
|
|
258
259
|
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: neris_api_client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: NERIS API Client
|
|
5
5
|
Author-email: Ben Coleman <ben.coleman@ul.org>
|
|
6
|
-
Project-URL: Homepage, https://github.com/ulfsri/neris
|
|
7
|
-
Project-URL: Issues, https://github.com/ulfsri/neris/issues
|
|
6
|
+
Project-URL: Homepage, https://github.com/ulfsri/neris-api-client
|
|
7
|
+
Project-URL: Issues, https://github.com/ulfsri/neris-api-client/issues
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{neris_api_client-0.1.3 → neris_api_client-0.1.4}/src/neris_api_client.egg-info/top_level.txt
RENAMED
|
File without changes
|