samsara-api 4.0.1__py3-none-any.whl → 4.1.1__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.
- samsara/__init__.py +138 -0
- samsara/client.py +19 -0
- samsara/core/client_wrapper.py +2 -2
- samsara/route_events/__init__.py +4 -0
- samsara/route_events/client.py +176 -0
- samsara/route_events/raw_client.py +362 -0
- samsara/types/__init__.py +155 -0
- samsara/types/door_open_response_body.py +28 -0
- samsara/types/route_event_details_response_body.py +36 -0
- samsara/types/route_event_response_response_body.py +56 -0
- samsara/types/route_event_response_response_body_event_type.py +17 -0
- samsara/types/route_event_route_response_response_body.py +35 -0
- samsara/types/route_event_stop_response_response_body.py +35 -0
- samsara/types/routes_get_route_events_stream_bad_gateway_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_gateway_timeout_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_internal_server_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_method_not_allowed_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_not_found_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_not_implemented_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_response_body.py +26 -0
- samsara/types/routes_get_route_events_stream_service_unavailable_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_too_many_requests_error_response_body.py +33 -0
- samsara/types/routes_get_route_events_stream_unauthorized_error_response_body.py +33 -0
- samsara/types/safety_event.py +6 -6
- samsara/types/safety_event_driver.py +5 -0
- samsara/types/safety_event_location.py +5 -0
- samsara/types/safety_event_vehicle.py +5 -0
- samsara/types/stop_eta_updated_event_details_response_body.py +33 -0
- samsara/types/stop_task_completed_event_details_response_body.py +36 -0
- samsara/types/stop_task_completed_event_details_response_body_task_type.py +5 -0
- samsara/types/stop_task_skipped_event_details_response_body.py +36 -0
- samsara/types/stop_task_skipped_event_details_response_body_task_type.py +5 -0
- samsara/types/vehicle.py +28 -16
- samsara/types/vehicle_aux_input_type_1.py +5 -0
- samsara/types/vehicle_aux_input_type_10.py +5 -0
- samsara/types/vehicle_aux_input_type_11.py +5 -0
- samsara/types/vehicle_aux_input_type_12.py +5 -0
- samsara/types/vehicle_aux_input_type_13.py +5 -0
- samsara/types/vehicle_aux_input_type_2.py +5 -0
- samsara/types/vehicle_aux_input_type_3.py +5 -0
- samsara/types/vehicle_aux_input_type_4.py +5 -0
- samsara/types/vehicle_aux_input_type_5.py +5 -0
- samsara/types/vehicle_aux_input_type_6.py +5 -0
- samsara/types/vehicle_aux_input_type_7.py +5 -0
- samsara/types/vehicle_aux_input_type_8.py +5 -0
- samsara/types/vehicle_aux_input_type_9.py +5 -0
- samsara/types/vehicle_location.py +6 -4
- samsara/types/vehicle_location_reverse_geo.py +5 -0
- samsara/types/vehicle_location_time.py +5 -0
- samsara/types/vehicle_static_assigned_driver.py +5 -0
- samsara/types/vehicle_stats_ambient_air_temp_milli_c.py +2 -2
- samsara/types/vehicle_stats_ambient_air_temp_milli_c_with_decoration.py +2 -2
- samsara/types/vehicle_stats_barometric_pressure_pa.py +2 -2
- samsara/types/vehicle_stats_barometric_pressure_pa_with_decoration.py +2 -2
- samsara/types/vehicle_stats_battery_voltage.py +2 -2
- samsara/types/vehicle_stats_battery_voltage_with_decoration.py +2 -2
- samsara/types/vehicle_stats_decorations.py +4 -0
- samsara/types/vehicle_stats_decorations_gps.py +4 -2
- samsara/types/vehicle_stats_def_level_milli_percent.py +2 -2
- samsara/types/vehicle_stats_def_level_milli_percent_with_decoration.py +2 -2
- samsara/types/vehicle_stats_ecu_door_status.py +29 -0
- samsara/types/vehicle_stats_ecu_door_status_value.py +5 -0
- samsara/types/vehicle_stats_ecu_speed_mph.py +2 -2
- samsara/types/vehicle_stats_ecu_speed_mph_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_coolant_temp_milli_c.py +2 -2
- samsara/types/vehicle_stats_engine_coolant_temp_milli_c_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_load_percent.py +2 -2
- samsara/types/vehicle_stats_engine_load_percent_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_oil_pressure_k_pa.py +2 -2
- samsara/types/vehicle_stats_engine_oil_pressure_k_pa_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_rpm.py +2 -2
- samsara/types/vehicle_stats_engine_rpm_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_state.py +2 -2
- samsara/types/vehicle_stats_engine_state_with_decoration.py +2 -2
- samsara/types/vehicle_stats_ev_average_battery_temperature_milli_celsius.py +2 -2
- samsara/types/vehicle_stats_ev_battery_current_milli_amp.py +2 -2
- samsara/types/vehicle_stats_ev_battery_state_of_health_milli_percent.py +2 -2
- samsara/types/vehicle_stats_ev_battery_voltage_milli_volt.py +2 -2
- samsara/types/vehicle_stats_ev_charging_current_milli_amp.py +2 -2
- samsara/types/vehicle_stats_ev_charging_energy_micro_wh.py +2 -2
- samsara/types/vehicle_stats_ev_charging_status.py +2 -2
- samsara/types/vehicle_stats_ev_charging_voltage_milli_volt.py +2 -2
- samsara/types/vehicle_stats_ev_consumed_energy_micro_wh.py +2 -2
- samsara/types/vehicle_stats_ev_distance_driven_meters.py +2 -2
- samsara/types/vehicle_stats_ev_regenerated_energy_micro_wh.py +2 -2
- samsara/types/vehicle_stats_ev_state_of_charge_milli_percent.py +2 -2
- samsara/types/vehicle_stats_fault_codes_with_decoration.py +2 -2
- samsara/types/vehicle_stats_fuel_consumed_milliliters.py +2 -2
- samsara/types/vehicle_stats_fuel_consumed_milliliters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_fuel_percent.py +2 -2
- samsara/types/vehicle_stats_fuel_percent_with_decoration.py +2 -2
- samsara/types/vehicle_stats_gps.py +6 -4
- samsara/types/vehicle_stats_gps_distance_meters.py +2 -2
- samsara/types/vehicle_stats_gps_distance_meters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_gps_odometer_meters.py +2 -2
- samsara/types/vehicle_stats_gps_odometer_meters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_idling_duration_milliseconds.py +2 -2
- samsara/types/vehicle_stats_idling_duration_milliseconds_with_decoration.py +2 -2
- samsara/types/vehicle_stats_intake_manifold_temp_milli_c.py +2 -2
- samsara/types/vehicle_stats_intake_manifold_temp_milli_c_with_decoration.py +2 -2
- samsara/types/vehicle_stats_list_gps.py +6 -4
- samsara/types/vehicle_stats_list_response_data.py +8 -0
- samsara/types/vehicle_stats_obd_engine_seconds.py +2 -2
- samsara/types/vehicle_stats_obd_engine_seconds_with_decoration.py +2 -2
- samsara/types/vehicle_stats_obd_odometer_meters.py +2 -2
- samsara/types/vehicle_stats_obd_odometer_meters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_response_data.py +4 -0
- samsara/types/vehicle_stats_response_ecu_door_status.py +32 -0
- samsara/types/vehicle_stats_response_ecu_door_status_value.py +5 -0
- samsara/types/vehicle_stats_seatbelt_driver.py +2 -2
- samsara/types/vehicle_stats_spreader_active.py +2 -2
- samsara/types/vehicle_stats_spreader_air_temp.py +2 -2
- samsara/types/vehicle_stats_spreader_blast_state.py +2 -2
- samsara/types/vehicle_stats_spreader_granular_name.py +2 -2
- samsara/types/vehicle_stats_spreader_granular_rate.py +2 -2
- samsara/types/vehicle_stats_spreader_liquid_name.py +2 -2
- samsara/types/vehicle_stats_spreader_liquid_rate.py +2 -2
- samsara/types/vehicle_stats_spreader_on_state.py +2 -2
- samsara/types/vehicle_stats_spreader_plow_status.py +2 -2
- samsara/types/vehicle_stats_spreader_prewet_name.py +2 -2
- samsara/types/vehicle_stats_spreader_prewet_rate.py +2 -2
- samsara/types/vehicle_stats_spreader_road_temp.py +2 -2
- samsara/types/vehicle_stats_time.py +5 -0
- samsara/types/workflow_incident_details_object_response_body.py +4 -0
- samsara/vehicle_stats/client.py +10 -0
- samsara/vehicle_stats/raw_client.py +10 -0
- samsara/vehicle_stats/types/get_vehicle_stats_feed_request_decorations_item.py +1 -0
- samsara/vehicle_stats/types/get_vehicle_stats_feed_request_types_item.py +1 -0
- samsara/vehicle_stats/types/get_vehicle_stats_history_request_decorations_item.py +1 -0
- samsara/vehicle_stats/types/get_vehicle_stats_history_request_types_item.py +1 -0
- samsara/vehicle_stats/types/get_vehicle_stats_request_types_item.py +1 -0
- samsara/work_orders/client.py +30 -0
- samsara/work_orders/raw_client.py +30 -0
- {samsara_api-4.0.1.dist-info → samsara_api-4.1.1.dist-info}/METADATA +1 -1
- {samsara_api-4.0.1.dist-info → samsara_api-4.1.1.dist-info}/RECORD +137 -89
- {samsara_api-4.0.1.dist-info → samsara_api-4.1.1.dist-info}/LICENSE +0 -0
- {samsara_api-4.0.1.dist-info → samsara_api-4.1.1.dist-info}/WHEEL +0 -0
|
@@ -4,8 +4,8 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .time import Time
|
|
8
7
|
from .vehicle_stats_spreader_blast_state_value import VehicleStatsSpreaderBlastStateValue
|
|
8
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class VehicleStatsSpreaderBlastState(UniversalBaseModel):
|
|
@@ -13,7 +13,7 @@ class VehicleStatsSpreaderBlastState(UniversalBaseModel):
|
|
|
13
13
|
Whether vehicle is actively spreading material in ‘blast mode’.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
time:
|
|
16
|
+
time: VehicleStatsTime
|
|
17
17
|
value: VehicleStatsSpreaderBlastStateValue = pydantic.Field()
|
|
18
18
|
"""
|
|
19
19
|
Whether vehicle is actively spreading material in ‘blast mode’.
|
|
@@ -4,7 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .
|
|
7
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VehicleStatsSpreaderGranularName(UniversalBaseModel):
|
|
@@ -12,7 +12,7 @@ class VehicleStatsSpreaderGranularName(UniversalBaseModel):
|
|
|
12
12
|
Name of most recent type of granular material spread, read from the material spreader.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
time:
|
|
15
|
+
time: VehicleStatsTime
|
|
16
16
|
value: str = pydantic.Field()
|
|
17
17
|
"""
|
|
18
18
|
Name of most recent type of granular material spread, read from the material spreader.
|
|
@@ -4,7 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .
|
|
7
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VehicleStatsSpreaderGranularRate(UniversalBaseModel):
|
|
@@ -12,7 +12,7 @@ class VehicleStatsSpreaderGranularRate(UniversalBaseModel):
|
|
|
12
12
|
Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
time:
|
|
15
|
+
time: VehicleStatsTime
|
|
16
16
|
value: int = pydantic.Field()
|
|
17
17
|
"""
|
|
18
18
|
Granular spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.
|
|
@@ -4,7 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .
|
|
7
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VehicleStatsSpreaderLiquidName(UniversalBaseModel):
|
|
@@ -12,7 +12,7 @@ class VehicleStatsSpreaderLiquidName(UniversalBaseModel):
|
|
|
12
12
|
Name of most recent type of liquid material spread, read from the material spreader.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
time:
|
|
15
|
+
time: VehicleStatsTime
|
|
16
16
|
value: str = pydantic.Field()
|
|
17
17
|
"""
|
|
18
18
|
Name of most recent type of liquid material spread, read from the material spreader.
|
|
@@ -4,7 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .
|
|
7
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VehicleStatsSpreaderLiquidRate(UniversalBaseModel):
|
|
@@ -12,7 +12,7 @@ class VehicleStatsSpreaderLiquidRate(UniversalBaseModel):
|
|
|
12
12
|
Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
time:
|
|
15
|
+
time: VehicleStatsTime
|
|
16
16
|
value: int = pydantic.Field()
|
|
17
17
|
"""
|
|
18
18
|
Liquid spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.
|
|
@@ -4,8 +4,8 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .time import Time
|
|
8
7
|
from .vehicle_stats_spreader_on_state_value import VehicleStatsSpreaderOnStateValue
|
|
8
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class VehicleStatsSpreaderOnState(UniversalBaseModel):
|
|
@@ -13,7 +13,7 @@ class VehicleStatsSpreaderOnState(UniversalBaseModel):
|
|
|
13
13
|
Whether vehicle spreader is enabled.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
time:
|
|
16
|
+
time: VehicleStatsTime
|
|
17
17
|
value: VehicleStatsSpreaderOnStateValue = pydantic.Field()
|
|
18
18
|
"""
|
|
19
19
|
Whether vehicle spreader is enabled.
|
|
@@ -4,8 +4,8 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .time import Time
|
|
8
7
|
from .vehicle_stats_spreader_plow_status_value import VehicleStatsSpreaderPlowStatusValue
|
|
8
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class VehicleStatsSpreaderPlowStatus(UniversalBaseModel):
|
|
@@ -13,7 +13,7 @@ class VehicleStatsSpreaderPlowStatus(UniversalBaseModel):
|
|
|
13
13
|
Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
time:
|
|
16
|
+
time: VehicleStatsTime
|
|
17
17
|
value: VehicleStatsSpreaderPlowStatusValue = pydantic.Field()
|
|
18
18
|
"""
|
|
19
19
|
Snow plow status, as read from the material spreader
|
|
@@ -4,7 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .
|
|
7
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VehicleStatsSpreaderPrewetName(UniversalBaseModel):
|
|
@@ -12,7 +12,7 @@ class VehicleStatsSpreaderPrewetName(UniversalBaseModel):
|
|
|
12
12
|
Name of most recent type of prewet material spread, read from the material spreader.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
time:
|
|
15
|
+
time: VehicleStatsTime
|
|
16
16
|
value: str = pydantic.Field()
|
|
17
17
|
"""
|
|
18
18
|
Name of most recent type of prewet material spread, read from the material spreader.
|
|
@@ -4,7 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .
|
|
7
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VehicleStatsSpreaderPrewetRate(UniversalBaseModel):
|
|
@@ -12,7 +12,7 @@ class VehicleStatsSpreaderPrewetRate(UniversalBaseModel):
|
|
|
12
12
|
Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
time:
|
|
15
|
+
time: VehicleStatsTime
|
|
16
16
|
value: int = pydantic.Field()
|
|
17
17
|
"""
|
|
18
18
|
Prewet spread rate reading in milliliters per meter, read from the material spreader. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance. Unfiltered live stats are supplied as-read from the Material Spreader unit. Readings do not consider total spread rate(s) over time or distance.
|
|
@@ -4,7 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .
|
|
7
|
+
from .vehicle_stats_time import VehicleStatsTime
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VehicleStatsSpreaderRoadTemp(UniversalBaseModel):
|
|
@@ -12,7 +12,7 @@ class VehicleStatsSpreaderRoadTemp(UniversalBaseModel):
|
|
|
12
12
|
Road temperature reading in milli celsius from material spreader.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
time:
|
|
15
|
+
time: VehicleStatsTime
|
|
16
16
|
value: int = pydantic.Field()
|
|
17
17
|
"""
|
|
18
18
|
Road temperature reading in milli celsius from material spreader.
|
|
@@ -15,6 +15,7 @@ from .dashcam_disconnected_response_body import DashcamDisconnectedResponseBody
|
|
|
15
15
|
from .data_input_value_response_body import DataInputValueResponseBody
|
|
16
16
|
from .device_movement_data_response_body import DeviceMovementDataResponseBody
|
|
17
17
|
from .device_movement_stopped_data_response_body import DeviceMovementStoppedDataResponseBody
|
|
18
|
+
from .door_open_response_body import DoorOpenResponseBody
|
|
18
19
|
from .driver_app_sign_in_response_body import DriverAppSignInResponseBody
|
|
19
20
|
from .driver_app_sign_out_response_body import DriverAppSignOutResponseBody
|
|
20
21
|
from .driver_document_submitted_response_body import DriverDocumentSubmittedResponseBody
|
|
@@ -96,6 +97,9 @@ class WorkflowIncidentDetailsObjectResponseBody(UniversalBaseModel):
|
|
|
96
97
|
device_movement_stopped: typing_extensions.Annotated[
|
|
97
98
|
typing.Optional[DeviceMovementStoppedDataResponseBody], FieldMetadata(alias="deviceMovementStopped")
|
|
98
99
|
] = None
|
|
100
|
+
door_open: typing_extensions.Annotated[typing.Optional[DoorOpenResponseBody], FieldMetadata(alias="doorOpen")] = (
|
|
101
|
+
None
|
|
102
|
+
)
|
|
99
103
|
driver_app_sign_in: typing_extensions.Annotated[
|
|
100
104
|
typing.Optional[DriverAppSignInResponseBody], FieldMetadata(alias="driverAppSignIn")
|
|
101
105
|
] = None
|
samsara/vehicle_stats/client.py
CHANGED
|
@@ -125,6 +125,7 @@ class VehicleStatsClient:
|
|
|
125
125
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
126
126
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
127
127
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
128
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
128
129
|
|
|
129
130
|
request_options : typing.Optional[RequestOptions]
|
|
130
131
|
Request-specific configuration.
|
|
@@ -257,6 +258,7 @@ class VehicleStatsClient:
|
|
|
257
258
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
258
259
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
259
260
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
261
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
260
262
|
|
|
261
263
|
decorations : typing.Optional[typing.Union[GetVehicleStatsFeedRequestDecorationsItem, typing.Sequence[GetVehicleStatsFeedRequestDecorationsItem]]]
|
|
262
264
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -313,6 +315,7 @@ class VehicleStatsClient:
|
|
|
313
315
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
314
316
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
315
317
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
318
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
316
319
|
|
|
317
320
|
request_options : typing.Optional[RequestOptions]
|
|
318
321
|
Request-specific configuration.
|
|
@@ -450,6 +453,7 @@ class VehicleStatsClient:
|
|
|
450
453
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
451
454
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
452
455
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
456
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
453
457
|
|
|
454
458
|
decorations : typing.Optional[typing.Union[GetVehicleStatsHistoryRequestDecorationsItem, typing.Sequence[GetVehicleStatsHistoryRequestDecorationsItem]]]
|
|
455
459
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -506,6 +510,7 @@ class VehicleStatsClient:
|
|
|
506
510
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
507
511
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
508
512
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
513
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
509
514
|
|
|
510
515
|
request_options : typing.Optional[RequestOptions]
|
|
511
516
|
Request-specific configuration.
|
|
@@ -652,6 +657,7 @@ class AsyncVehicleStatsClient:
|
|
|
652
657
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
653
658
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
654
659
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
660
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
655
661
|
|
|
656
662
|
request_options : typing.Optional[RequestOptions]
|
|
657
663
|
Request-specific configuration.
|
|
@@ -792,6 +798,7 @@ class AsyncVehicleStatsClient:
|
|
|
792
798
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
793
799
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
794
800
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
801
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
795
802
|
|
|
796
803
|
decorations : typing.Optional[typing.Union[GetVehicleStatsFeedRequestDecorationsItem, typing.Sequence[GetVehicleStatsFeedRequestDecorationsItem]]]
|
|
797
804
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -848,6 +855,7 @@ class AsyncVehicleStatsClient:
|
|
|
848
855
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
849
856
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
850
857
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
858
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
851
859
|
|
|
852
860
|
request_options : typing.Optional[RequestOptions]
|
|
853
861
|
Request-specific configuration.
|
|
@@ -993,6 +1001,7 @@ class AsyncVehicleStatsClient:
|
|
|
993
1001
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
994
1002
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
995
1003
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
1004
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
996
1005
|
|
|
997
1006
|
decorations : typing.Optional[typing.Union[GetVehicleStatsHistoryRequestDecorationsItem, typing.Sequence[GetVehicleStatsHistoryRequestDecorationsItem]]]
|
|
998
1007
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -1049,6 +1058,7 @@ class AsyncVehicleStatsClient:
|
|
|
1049
1058
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
1050
1059
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
1051
1060
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
1061
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
1052
1062
|
|
|
1053
1063
|
request_options : typing.Optional[RequestOptions]
|
|
1054
1064
|
Request-specific configuration.
|
|
@@ -117,6 +117,7 @@ class RawVehicleStatsClient:
|
|
|
117
117
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
118
118
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
119
119
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
120
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
120
121
|
|
|
121
122
|
request_options : typing.Optional[RequestOptions]
|
|
122
123
|
Request-specific configuration.
|
|
@@ -257,6 +258,7 @@ class RawVehicleStatsClient:
|
|
|
257
258
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
258
259
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
259
260
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
261
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
260
262
|
|
|
261
263
|
decorations : typing.Optional[typing.Union[GetVehicleStatsFeedRequestDecorationsItem, typing.Sequence[GetVehicleStatsFeedRequestDecorationsItem]]]
|
|
262
264
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -313,6 +315,7 @@ class RawVehicleStatsClient:
|
|
|
313
315
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
314
316
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
315
317
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
318
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
316
319
|
|
|
317
320
|
request_options : typing.Optional[RequestOptions]
|
|
318
321
|
Request-specific configuration.
|
|
@@ -458,6 +461,7 @@ class RawVehicleStatsClient:
|
|
|
458
461
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
459
462
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
460
463
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
464
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
461
465
|
|
|
462
466
|
decorations : typing.Optional[typing.Union[GetVehicleStatsHistoryRequestDecorationsItem, typing.Sequence[GetVehicleStatsHistoryRequestDecorationsItem]]]
|
|
463
467
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -514,6 +518,7 @@ class RawVehicleStatsClient:
|
|
|
514
518
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
515
519
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
516
520
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
521
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
517
522
|
|
|
518
523
|
request_options : typing.Optional[RequestOptions]
|
|
519
524
|
Request-specific configuration.
|
|
@@ -654,6 +659,7 @@ class AsyncRawVehicleStatsClient:
|
|
|
654
659
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
655
660
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
656
661
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
662
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
657
663
|
|
|
658
664
|
request_options : typing.Optional[RequestOptions]
|
|
659
665
|
Request-specific configuration.
|
|
@@ -794,6 +800,7 @@ class AsyncRawVehicleStatsClient:
|
|
|
794
800
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
795
801
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
796
802
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
803
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
797
804
|
|
|
798
805
|
decorations : typing.Optional[typing.Union[GetVehicleStatsFeedRequestDecorationsItem, typing.Sequence[GetVehicleStatsFeedRequestDecorationsItem]]]
|
|
799
806
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -850,6 +857,7 @@ class AsyncRawVehicleStatsClient:
|
|
|
850
857
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
851
858
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
852
859
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
860
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
853
861
|
|
|
854
862
|
request_options : typing.Optional[RequestOptions]
|
|
855
863
|
Request-specific configuration.
|
|
@@ -995,6 +1003,7 @@ class AsyncRawVehicleStatsClient:
|
|
|
995
1003
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
996
1004
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
997
1005
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
1006
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
998
1007
|
|
|
999
1008
|
decorations : typing.Optional[typing.Union[GetVehicleStatsHistoryRequestDecorationsItem, typing.Sequence[GetVehicleStatsHistoryRequestDecorationsItem]]]
|
|
1000
1009
|
Decorations to add to the primary stats listed in the `types` parameter. For example, if you wish to know the vehicle's location whenever the engine changes state, you may set `types=engineStates&decorations=gps`.
|
|
@@ -1051,6 +1060,7 @@ class AsyncRawVehicleStatsClient:
|
|
|
1051
1060
|
- `spreaderPlowStatus`: Snow plow status (`Up` or `Down`), as read from the material spreader. Note: this is separate from plow status defined via auxInput.
|
|
1052
1061
|
- `seatbeltDriver`: Seatbelt Driver Status as read from the vehicle. `Buckled` or `Unbuckled`. (Beta only)
|
|
1053
1062
|
- `tellTales`: Tell tales status as read from the vehicle.
|
|
1063
|
+
- `ecuDoorStatus`: Status of doors, sourced from ECU or from AUX port assigned to a Door label if diagnostic from ECU is not available. Either `Closed`, `Open` or `Unknown`.
|
|
1054
1064
|
|
|
1055
1065
|
request_options : typing.Optional[RequestOptions]
|
|
1056
1066
|
Request-specific configuration.
|
samsara/work_orders/client.py
CHANGED
|
@@ -153,11 +153,14 @@ class WorkOrdersClient:
|
|
|
153
153
|
discount: typing.Optional[WorkOrderDiscountObjectRequestBody] = OMIT,
|
|
154
154
|
due_at_time: typing.Optional[dt.datetime] = OMIT,
|
|
155
155
|
engine_hours: typing.Optional[int] = OMIT,
|
|
156
|
+
invoice_number: typing.Optional[str] = OMIT,
|
|
156
157
|
items: typing.Optional[typing.Sequence[WorkOrderItemObjectRequestBody]] = OMIT,
|
|
157
158
|
odometer_meters: typing.Optional[int] = OMIT,
|
|
159
|
+
po_number: typing.Optional[str] = OMIT,
|
|
158
160
|
priority: typing.Optional[WorkOrdersPostWorkOrdersRequestBodyPriority] = OMIT,
|
|
159
161
|
service_task_instances: typing.Optional[typing.Sequence[ServiceTaskInstanceInputObjectRequestBody]] = OMIT,
|
|
160
162
|
tax: typing.Optional[WorkOrderTaxCreateObjectRequestBody] = OMIT,
|
|
163
|
+
vendor_uuid: typing.Optional[str] = OMIT,
|
|
161
164
|
request_options: typing.Optional[RequestOptions] = None,
|
|
162
165
|
) -> WorkOrdersPostWorkOrdersResponseBody:
|
|
163
166
|
"""
|
|
@@ -192,12 +195,18 @@ class WorkOrdersClient:
|
|
|
192
195
|
engine_hours : typing.Optional[int]
|
|
193
196
|
The engine hours at the time of the work order. Will default to current asset reading if unset.
|
|
194
197
|
|
|
198
|
+
invoice_number : typing.Optional[str]
|
|
199
|
+
The invoice number for the work order.
|
|
200
|
+
|
|
195
201
|
items : typing.Optional[typing.Sequence[WorkOrderItemObjectRequestBody]]
|
|
196
202
|
Items related to the work order.
|
|
197
203
|
|
|
198
204
|
odometer_meters : typing.Optional[int]
|
|
199
205
|
The odometer reading at the time of the work order. Will default to current asset reading if unset.
|
|
200
206
|
|
|
207
|
+
po_number : typing.Optional[str]
|
|
208
|
+
The purchase order number for the work order.
|
|
209
|
+
|
|
201
210
|
priority : typing.Optional[WorkOrdersPostWorkOrdersRequestBodyPriority]
|
|
202
211
|
The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent`
|
|
203
212
|
|
|
@@ -206,6 +215,9 @@ class WorkOrdersClient:
|
|
|
206
215
|
|
|
207
216
|
tax : typing.Optional[WorkOrderTaxCreateObjectRequestBody]
|
|
208
217
|
|
|
218
|
+
vendor_uuid : typing.Optional[str]
|
|
219
|
+
The vendor UUID for the work order.
|
|
220
|
+
|
|
209
221
|
request_options : typing.Optional[RequestOptions]
|
|
210
222
|
Request-specific configuration.
|
|
211
223
|
|
|
@@ -233,11 +245,14 @@ class WorkOrdersClient:
|
|
|
233
245
|
discount=discount,
|
|
234
246
|
due_at_time=due_at_time,
|
|
235
247
|
engine_hours=engine_hours,
|
|
248
|
+
invoice_number=invoice_number,
|
|
236
249
|
items=items,
|
|
237
250
|
odometer_meters=odometer_meters,
|
|
251
|
+
po_number=po_number,
|
|
238
252
|
priority=priority,
|
|
239
253
|
service_task_instances=service_task_instances,
|
|
240
254
|
tax=tax,
|
|
255
|
+
vendor_uuid=vendor_uuid,
|
|
241
256
|
request_options=request_options,
|
|
242
257
|
)
|
|
243
258
|
return _response.data
|
|
@@ -629,11 +644,14 @@ class AsyncWorkOrdersClient:
|
|
|
629
644
|
discount: typing.Optional[WorkOrderDiscountObjectRequestBody] = OMIT,
|
|
630
645
|
due_at_time: typing.Optional[dt.datetime] = OMIT,
|
|
631
646
|
engine_hours: typing.Optional[int] = OMIT,
|
|
647
|
+
invoice_number: typing.Optional[str] = OMIT,
|
|
632
648
|
items: typing.Optional[typing.Sequence[WorkOrderItemObjectRequestBody]] = OMIT,
|
|
633
649
|
odometer_meters: typing.Optional[int] = OMIT,
|
|
650
|
+
po_number: typing.Optional[str] = OMIT,
|
|
634
651
|
priority: typing.Optional[WorkOrdersPostWorkOrdersRequestBodyPriority] = OMIT,
|
|
635
652
|
service_task_instances: typing.Optional[typing.Sequence[ServiceTaskInstanceInputObjectRequestBody]] = OMIT,
|
|
636
653
|
tax: typing.Optional[WorkOrderTaxCreateObjectRequestBody] = OMIT,
|
|
654
|
+
vendor_uuid: typing.Optional[str] = OMIT,
|
|
637
655
|
request_options: typing.Optional[RequestOptions] = None,
|
|
638
656
|
) -> WorkOrdersPostWorkOrdersResponseBody:
|
|
639
657
|
"""
|
|
@@ -668,12 +686,18 @@ class AsyncWorkOrdersClient:
|
|
|
668
686
|
engine_hours : typing.Optional[int]
|
|
669
687
|
The engine hours at the time of the work order. Will default to current asset reading if unset.
|
|
670
688
|
|
|
689
|
+
invoice_number : typing.Optional[str]
|
|
690
|
+
The invoice number for the work order.
|
|
691
|
+
|
|
671
692
|
items : typing.Optional[typing.Sequence[WorkOrderItemObjectRequestBody]]
|
|
672
693
|
Items related to the work order.
|
|
673
694
|
|
|
674
695
|
odometer_meters : typing.Optional[int]
|
|
675
696
|
The odometer reading at the time of the work order. Will default to current asset reading if unset.
|
|
676
697
|
|
|
698
|
+
po_number : typing.Optional[str]
|
|
699
|
+
The purchase order number for the work order.
|
|
700
|
+
|
|
677
701
|
priority : typing.Optional[WorkOrdersPostWorkOrdersRequestBodyPriority]
|
|
678
702
|
The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent`
|
|
679
703
|
|
|
@@ -682,6 +706,9 @@ class AsyncWorkOrdersClient:
|
|
|
682
706
|
|
|
683
707
|
tax : typing.Optional[WorkOrderTaxCreateObjectRequestBody]
|
|
684
708
|
|
|
709
|
+
vendor_uuid : typing.Optional[str]
|
|
710
|
+
The vendor UUID for the work order.
|
|
711
|
+
|
|
685
712
|
request_options : typing.Optional[RequestOptions]
|
|
686
713
|
Request-specific configuration.
|
|
687
714
|
|
|
@@ -717,11 +744,14 @@ class AsyncWorkOrdersClient:
|
|
|
717
744
|
discount=discount,
|
|
718
745
|
due_at_time=due_at_time,
|
|
719
746
|
engine_hours=engine_hours,
|
|
747
|
+
invoice_number=invoice_number,
|
|
720
748
|
items=items,
|
|
721
749
|
odometer_meters=odometer_meters,
|
|
750
|
+
po_number=po_number,
|
|
722
751
|
priority=priority,
|
|
723
752
|
service_task_instances=service_task_instances,
|
|
724
753
|
tax=tax,
|
|
754
|
+
vendor_uuid=vendor_uuid,
|
|
725
755
|
request_options=request_options,
|
|
726
756
|
)
|
|
727
757
|
return _response.data
|