neris-api-client 0.1.6__tar.gz → 0.1.7__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neris_api_client
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: NERIS API Client
5
5
  Author-email: Ben Coleman <ben.coleman@ul.org>
6
6
  Project-URL: Homepage, https://github.com/ulfsri/neris-api-client
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "neris_api_client"
7
- version = "0.1.6"
7
+ version = "0.1.7"
8
8
  authors = [
9
9
  { name="Ben Coleman", email="ben.coleman@ul.org" },
10
10
  ]
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: openapi.json
3
- # timestamp: 2024-08-26T17:45:21+00:00
3
+ # timestamp: 2024-09-05T18:27:40+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -275,7 +275,7 @@ class DispatchResponse(BaseModel):
275
275
  protocol_med: Optional[str] = Field(None, title="Protocol Med")
276
276
 
277
277
 
278
- class Type4(Enum):
278
+ class Type3(Enum):
279
279
  DISPATCH = "DISPATCH"
280
280
 
281
281
 
@@ -364,11 +364,11 @@ class Causes(Enum):
364
364
  OTHER = "OTHER"
365
365
 
366
366
 
367
- class Type8(Enum):
367
+ class Type5(Enum):
368
368
  EXPOSURE = "EXPOSURE"
369
369
 
370
370
 
371
- class Type9(Enum):
371
+ class Type6(Enum):
372
372
  EXTERNAL_EXPOSURE = "EXTERNAL_EXPOSURE"
373
373
 
374
374
 
@@ -394,7 +394,7 @@ class Race(Enum):
394
394
  WHITE = "WHITE"
395
395
 
396
396
 
397
- class Type10(Enum):
397
+ class Type7(Enum):
398
398
  FF = "FF"
399
399
 
400
400
 
@@ -460,7 +460,7 @@ class PpeItems(Enum):
460
460
  OTHER_SPECIAL_EQUIPMENT = "OTHER_SPECIAL_EQUIPMENT"
461
461
 
462
462
 
463
- class Type11(Enum):
463
+ class Type8(Enum):
464
464
  FIREFIGHTER_RESCUED = "FIREFIGHTER_RESCUED"
465
465
  FIREFIGHTER_ASSISTED_EVAC = "FIREFIGHTER_ASSISTED_EVAC"
466
466
 
@@ -517,7 +517,7 @@ class SuppressionAppliances(Enum):
517
517
  NONE = "NONE"
518
518
 
519
519
 
520
- class Type12(Enum):
520
+ class Type9(Enum):
521
521
  NOT_PRESENT = "NOT_PRESENT"
522
522
  NOT_APPLICABLE = "NOT_APPLICABLE"
523
523
 
@@ -526,7 +526,7 @@ class FireAlarmNotPresent(BaseModel):
526
526
  type: Literal["NOT_APPLICABLE", "NOT_PRESENT"] = Field(..., title="Type")
527
527
 
528
528
 
529
- class Type13(Enum):
529
+ class Type10(Enum):
530
530
  PRESENT = "PRESENT"
531
531
 
532
532
 
@@ -536,7 +536,7 @@ class RelativeSuppressionTime(Enum):
536
536
  POST_SUPPRESSION = "POST_SUPPRESSION"
537
537
 
538
538
 
539
- class Type14(Enum):
539
+ class Type11(Enum):
540
540
  OPERATED_EFFECTIVE = "OPERATED_EFFECTIVE"
541
541
 
542
542
 
@@ -550,7 +550,7 @@ class FireSuppressionEffective(BaseModel):
550
550
  )
551
551
 
552
552
 
553
- class Type15(Enum):
553
+ class Type12(Enum):
554
554
  FAILED_TO_OPERATE = "FAILED_TO_OPERATE"
555
555
 
556
556
 
@@ -564,11 +564,11 @@ class FailureReason(Enum):
564
564
  UNABLE_TO_DETERMINE = "UNABLE_TO_DETERMINE"
565
565
 
566
566
 
567
- class Type16(Enum):
567
+ class Type13(Enum):
568
568
  OPERATED_NOT_EFFECTIVE = "OPERATED_NOT_EFFECTIVE"
569
569
 
570
570
 
571
- class Type17(Enum):
571
+ class Type14(Enum):
572
572
  NOT_PRESENT = "NOT_PRESENT"
573
573
  NOT_APPLICABLE = "NOT_APPLICABLE"
574
574
 
@@ -577,25 +577,25 @@ class FireSuppressionNotPresent(BaseModel):
577
577
  type: Literal["NOT_APPLICABLE", "NOT_PRESENT"] = Field(..., title="Type")
578
578
 
579
579
 
580
- class Type18(Enum):
580
+ class Type15(Enum):
581
581
  PRESENT = "PRESENT"
582
582
 
583
583
 
584
- class Type19(Enum):
584
+ class Type16(Enum):
585
585
  MultiPolygon = "MultiPolygon"
586
586
 
587
587
 
588
588
  class GeoJsonMultiPolygon(BaseModel):
589
- type: Literal["MultiPolygon"] = Field(..., title="Type")
589
+ type: Literal["MultiPolygon"] = Field("MultiPolygon", title="Type")
590
590
  coordinates: List[List[List[List[float]]]] = Field(..., title="Coordinates")
591
591
 
592
592
 
593
- class Type20(Enum):
593
+ class Type17(Enum):
594
594
  Point = "Point"
595
595
 
596
596
 
597
597
  class GeoJsonPoint(BaseModel):
598
- type: Literal["Point"] = Field(..., title="Type")
598
+ type: Literal["Point"] = Field("Point", title="Type")
599
599
  coordinates: List[float] = Field(..., title="Coordinates")
600
600
 
601
601
 
@@ -609,7 +609,7 @@ class IncidentCreatedResponse(BaseModel):
609
609
  neris_id: str = Field(..., title="Neris Id")
610
610
 
611
611
 
612
- class Type21(Enum):
612
+ class Type18(Enum):
613
613
  INCIDENT = "INCIDENT"
614
614
 
615
615
 
@@ -657,7 +657,7 @@ class IncidentTacticTimestamps(BaseModel):
657
657
  type: Literal["INCIDENT"] = Field("INCIDENT", title="Type")
658
658
 
659
659
 
660
- class Type24(Enum):
660
+ class Type21(Enum):
661
661
  INJURED_NONFATAL = "INJURED_NONFATAL"
662
662
  INJURED_FATAL = "INJURED_FATAL"
663
663
 
@@ -674,7 +674,7 @@ class Cause(Enum):
674
674
  OTHER = "OTHER"
675
675
 
676
676
 
677
- class Type25(Enum):
677
+ class Type22(Enum):
678
678
  INTERNAL_EXPOSURE = "INTERNAL_EXPOSURE"
679
679
 
680
680
 
@@ -1248,7 +1248,7 @@ class TransportDisposition(Enum):
1248
1248
  NO_TRANSPORT = "NO_TRANSPORT"
1249
1249
 
1250
1250
 
1251
- class Type26(Enum):
1251
+ class Type23(Enum):
1252
1252
  NOACTION = "NOACTION"
1253
1253
 
1254
1254
 
@@ -1258,7 +1258,7 @@ class NoactionType(Enum):
1258
1258
  NO_INCIDENT_FOUND = "NO_INCIDENT_FOUND"
1259
1259
 
1260
1260
 
1261
- class Type27(Enum):
1261
+ class Type24(Enum):
1262
1262
  UNINJURED = "UNINJURED"
1263
1263
 
1264
1264
 
@@ -1266,11 +1266,11 @@ class Noinjury(BaseModel):
1266
1266
  type: Literal["UNINJURED"] = Field(..., title="Type")
1267
1267
 
1268
1268
 
1269
- class Type28(Enum):
1269
+ class Type25(Enum):
1270
1270
  NONFF = "NONFF"
1271
1271
 
1272
1272
 
1273
- class Type29(Enum):
1273
+ class Type26(Enum):
1274
1274
  NON_FIREFIGHTER_RESCUED = "NON_FIREFIGHTER_RESCUED"
1275
1275
  SELF_EVACUATION = "SELF_EVACUATION"
1276
1276
  NO_RESCUE_NEEDED = "NO_RESCUE_NEEDED"
@@ -1282,7 +1282,7 @@ class NonFfRescue(BaseModel):
1282
1282
  )
1283
1283
 
1284
1284
 
1285
- class Type30(Enum):
1285
+ class Type27(Enum):
1286
1286
  NONREMOVAL = "NONREMOVAL"
1287
1287
 
1288
1288
 
@@ -1290,7 +1290,7 @@ class Nonremoval(BaseModel):
1290
1290
  type: Literal["NONREMOVAL"] = Field("NONREMOVAL", title="Type")
1291
1291
 
1292
1292
 
1293
- class Type31(Enum):
1293
+ class Type28(Enum):
1294
1294
  NOT_PRESENT = "NOT_PRESENT"
1295
1295
  NOT_APPLICABLE = "NOT_APPLICABLE"
1296
1296
 
@@ -1299,11 +1299,11 @@ class OtherAlarmNotPresent(BaseModel):
1299
1299
  type: Literal["NOT_APPLICABLE", "NOT_PRESENT"] = Field(..., title="Type")
1300
1300
 
1301
1301
 
1302
- class Type32(Enum):
1302
+ class Type29(Enum):
1303
1303
  PRESENT = "PRESENT"
1304
1304
 
1305
1305
 
1306
- class Type33(Enum):
1306
+ class Type30(Enum):
1307
1307
  WIND_TURBINE = "WIND_TURBINE"
1308
1308
  NONE = "NONE"
1309
1309
 
@@ -1312,7 +1312,7 @@ class OtherPowergenHazard(BaseModel):
1312
1312
  type: Literal["NONE", "WIND_TURBINE"] = Field(..., title="Type")
1313
1313
 
1314
1314
 
1315
- class Type34(Enum):
1315
+ class Type31(Enum):
1316
1316
  OUTSIDE = "OUTSIDE"
1317
1317
 
1318
1318
 
@@ -1327,7 +1327,7 @@ class PresenceKnownType(Enum):
1327
1327
  KNOWN_DURING = "KNOWN_DURING"
1328
1328
 
1329
1329
 
1330
- class Type35(Enum):
1330
+ class Type32(Enum):
1331
1331
  PHOTOVOLTAICS = "PHOTOVOLTAICS"
1332
1332
 
1333
1333
 
@@ -1392,7 +1392,7 @@ class ReleasedInto(Enum):
1392
1392
  GROUND = "GROUND"
1393
1393
 
1394
1394
 
1395
- class Cause2(Enum):
1395
+ class Cause1(Enum):
1396
1396
  INTENTIONAL = "INTENTIONAL"
1397
1397
  UNINTENTIONAL = "UNINTENTIONAL"
1398
1398
  CONTAINER_CONTAINMENT_FAILURE = "CONTAINER_CONTAINMENT_FAILURE"
@@ -1400,7 +1400,7 @@ class Cause2(Enum):
1400
1400
  CAUSE_UNDER_INVESTIGATION = "CAUSE_UNDER_INVESTIGATION"
1401
1401
 
1402
1402
 
1403
- class Type36(Enum):
1403
+ class Type33(Enum):
1404
1404
  REMOVAL = "REMOVAL"
1405
1405
 
1406
1406
 
@@ -1444,7 +1444,7 @@ class ShiftResponse(BaseModel):
1444
1444
  signup: Optional[int] = Field(None, title="Signup")
1445
1445
 
1446
1446
 
1447
- class Type37(Enum):
1447
+ class Type34(Enum):
1448
1448
  WORKING_ALERTED_OCCUPANT = "WORKING_ALERTED_OCCUPANT"
1449
1449
 
1450
1450
 
@@ -1458,7 +1458,7 @@ class OccupantAction(Enum):
1458
1458
  UNKNOWN = "UNKNOWN"
1459
1459
 
1460
1460
 
1461
- class Type38(Enum):
1461
+ class Type35(Enum):
1462
1462
  FAILED_TO_OPERATE = "FAILED_TO_OPERATE"
1463
1463
 
1464
1464
 
@@ -1472,7 +1472,7 @@ class FailureReason2(Enum):
1472
1472
  UNABLE_TO_DETERMINE = "UNABLE_TO_DETERMINE"
1473
1473
 
1474
1474
 
1475
- class Type39(Enum):
1475
+ class Type36(Enum):
1476
1476
  NOT_PRESENT = "NOT_PRESENT"
1477
1477
  NOT_APPLICABLE = "NOT_APPLICABLE"
1478
1478
 
@@ -1481,7 +1481,7 @@ class SmokeAlarmNotPresent(BaseModel):
1481
1481
  type: Literal["NOT_APPLICABLE", "NOT_PRESENT"] = Field(..., title="Type")
1482
1482
 
1483
1483
 
1484
- class Type40(Enum):
1484
+ class Type37(Enum):
1485
1485
  PRESENT = "PRESENT"
1486
1486
 
1487
1487
 
@@ -1586,7 +1586,7 @@ class StatesTerrsOutput(Enum):
1586
1586
  WY = "WY"
1587
1587
 
1588
1588
 
1589
- class Type41(Enum):
1589
+ class Type38(Enum):
1590
1590
  STRUCTURE = "STRUCTURE"
1591
1591
 
1592
1592
 
@@ -4735,7 +4735,7 @@ class Release(BaseModel):
4735
4735
  released_into: Optional[Union[TypeHazardReleasedIntoValue, ReleasedInto]] = Field(
4736
4736
  None, description="Environment which was contaminated."
4737
4737
  )
4738
- cause: Optional[Union[TypeHazardCauseValue, Cause2]] = Field(
4738
+ cause: Optional[Union[TypeHazardCauseValue, Cause1]] = Field(
4739
4739
  None, description="Cause of the hazmat release."
4740
4740
  )
4741
4741
 
@@ -5006,7 +5006,6 @@ class DepartmentPayload(BaseModel):
5006
5006
  )
5007
5007
  location: Optional[GeoPoint] = None
5008
5008
  region_sets: Optional[List[RegionSetPayload]] = Field(None, title="Region Sets")
5009
- neris_id: str = Field(..., title="Neris Id")
5010
5009
 
5011
5010
 
5012
5011
  class DepartmentResponse(BaseModel):
@@ -5034,11 +5033,9 @@ class DepartmentResponse(BaseModel):
5034
5033
  assessment: Optional[AssessmentResponse] = None
5035
5034
  contact: Optional[ContactResponse] = None
5036
5035
  shift: Optional[ShiftResponse] = None
5037
- fire_services: Optional[List[TypeServFdValue]] = Field(None, title="Fire Services")
5038
- ems_services: Optional[List[TypeServEmsValue]] = Field(None, title="Ems Services")
5039
- investigation_services: Optional[List[TypeServInvestValue]] = Field(
5040
- None, title="Investigation Services"
5041
- )
5036
+ fire_services: Optional[List[str]] = Field(None, title="Fire Services")
5037
+ ems_services: Optional[List[str]] = Field(None, title="Ems Services")
5038
+ investigation_services: Optional[List[str]] = Field(None, title="Investigation Services")
5042
5039
  stations: Optional[List[StationResponse]] = Field(None, title="Stations")
5043
5040
  location: Optional[GeoPointResponse] = None
5044
5041
  region_sets: Optional[List[RegionSetResponse]] = Field(None, title="Region Sets")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neris_api_client
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: NERIS API Client
5
5
  Author-email: Ben Coleman <ben.coleman@ul.org>
6
6
  Project-URL: Homepage, https://github.com/ulfsri/neris-api-client