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.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neris_api_client
3
- Version: 0.1.3
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.3"
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: str, body: str | Dict[str, Any]
255
- ) -> Dict[str, Any]:
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,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: openapi.json
3
- # timestamp: 2024-07-30T23:27:38+00:00
3
+ # timestamp: 2024-07-31T19:19:11+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neris_api_client
3
- Version: 0.1.3
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