@samsarahq/samsara 5.10.1 → 6.0.1
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +89 -1
- package/dist/cjs/api/resources/betaApIs/client/Client.js +275 -1
- package/dist/cjs/api/resources/betaApIs/client/requests/GetDetectionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.ts +16 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.ts +16 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListCarbCtcVehicleHistoryRequest.d.ts +16 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListCarbCtcVehicleHistoryRequest.js +3 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListCarbCtcVehiclesRequest.d.ts +15 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListCarbCtcVehiclesRequest.js +3 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListRidershipRouteSetupsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListRidershipRouteSetupsRequest.js +3 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/betaApIs/types/ListCarbCtcVehiclesRequestTestStatusItem.d.ts +11 -0
- package/dist/cjs/api/resources/betaApIs/types/ListCarbCtcVehiclesRequestTestStatusItem.js +14 -0
- package/dist/cjs/api/resources/betaApIs/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/betaApIs/types/index.js +1 -0
- package/dist/cjs/api/resources/driverVehicleAssignments/client/requests/GetDriverVehicleAssignmentsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.d.ts +1 -0
- package/dist/cjs/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.js +1 -0
- package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +109 -0
- package/dist/cjs/api/resources/previewApIs/client/Client.js +294 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.d.ts +15 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.js +3 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/DeviceRecoveryRecoverAssetRequestBody.d.ts +42 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/DeviceRecoveryRecoverAssetRequestBody.js +23 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/ListDeviceRecoveryMissingAssetsRequest.d.ts +8 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/ListDeviceRecoveryMissingAssetsRequest.js +3 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/previewApIs/client/requests/index.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehicleHistoryUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/CarbCtcListCarbCtcVehiclesUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/CarbCtcVehicleHistoryObjectResponseBody.d.ts +27 -0
- package/dist/cjs/api/types/CarbCtcVehicleHistoryObjectResponseBody.js +14 -0
- package/dist/cjs/api/types/CarbCtcVehicleObjectResponseBody.d.ts +33 -0
- package/dist/cjs/api/types/CarbCtcVehicleObjectResponseBody.js +18 -0
- package/dist/cjs/api/types/DetectionLogDetectionObjectResponseBody.d.ts +3 -2
- package/dist/cjs/api/types/DetectionLogDetectionObjectResponseBody.js +2 -1
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryMarkAssetMissingUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DeviceRecoveryRecoverAssetUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverVehicleAssignmentV2ObjectResponseBody.d.ts +3 -2
- package/dist/cjs/api/types/DriverVehicleAssignmentV2ObjectResponseBody.js +2 -1
- package/dist/cjs/api/types/MissingStateResponseBody.d.ts +20 -0
- package/dist/cjs/api/types/MissingStateResponseBody.js +3 -0
- package/dist/cjs/api/types/NotificationRecipientRequestBody.d.ts +19 -0
- package/dist/cjs/api/types/NotificationRecipientRequestBody.js +14 -0
- package/dist/cjs/api/types/NotificationRecipientResponseBody.d.ts +19 -0
- package/dist/cjs/api/types/NotificationRecipientResponseBody.js +14 -0
- package/dist/cjs/api/types/RecoveryPhotoResponseBody.d.ts +22 -0
- package/dist/cjs/api/types/RecoveryPhotoResponseBody.js +13 -0
- package/dist/cjs/api/types/RecoveryStateResponseBody.d.ts +22 -0
- package/dist/cjs/api/types/RecoveryStateResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupObjectResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/RidershipRouteSetupsListRidershipRouteSetupsUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/index.d.ts +67 -0
- package/dist/cjs/api/types/index.js +67 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +89 -1
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +275 -1
- package/dist/esm/api/resources/betaApIs/client/requests/GetDetectionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.mts +16 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.mts +16 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListCarbCtcVehicleHistoryRequest.d.mts +16 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListCarbCtcVehicleHistoryRequest.mjs +2 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListCarbCtcVehiclesRequest.d.mts +15 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListCarbCtcVehiclesRequest.mjs +2 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListRidershipRouteSetupsRequest.d.mts +14 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListRidershipRouteSetupsRequest.mjs +2 -0
- package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/betaApIs/types/ListCarbCtcVehiclesRequestTestStatusItem.d.mts +11 -0
- package/dist/esm/api/resources/betaApIs/types/ListCarbCtcVehiclesRequestTestStatusItem.mjs +11 -0
- package/dist/esm/api/resources/betaApIs/types/index.d.mts +1 -0
- package/dist/esm/api/resources/betaApIs/types/index.mjs +1 -0
- package/dist/esm/api/resources/driverVehicleAssignments/client/requests/GetDriverVehicleAssignmentsRequest.d.mts +1 -1
- package/dist/esm/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.d.mts +1 -0
- package/dist/esm/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.mjs +1 -0
- package/dist/esm/api/resources/previewApIs/client/Client.d.mts +109 -0
- package/dist/esm/api/resources/previewApIs/client/Client.mjs +294 -0
- package/dist/esm/api/resources/previewApIs/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.d.mts +15 -0
- package/dist/esm/api/resources/previewApIs/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.mjs +2 -0
- package/dist/esm/api/resources/previewApIs/client/requests/DeviceRecoveryRecoverAssetRequestBody.d.mts +42 -0
- package/dist/esm/api/resources/previewApIs/client/requests/DeviceRecoveryRecoverAssetRequestBody.mjs +20 -0
- package/dist/esm/api/resources/previewApIs/client/requests/ListDeviceRecoveryMissingAssetsRequest.d.mts +8 -0
- package/dist/esm/api/resources/previewApIs/client/requests/ListDeviceRecoveryMissingAssetsRequest.mjs +2 -0
- package/dist/esm/api/resources/previewApIs/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/previewApIs/client/requests/index.mjs +1 -1
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryResponseBody.d.mts +6 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehicleHistoryUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesResponseBody.d.mts +6 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/CarbCtcListCarbCtcVehiclesUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/CarbCtcVehicleHistoryObjectResponseBody.d.mts +27 -0
- package/dist/esm/api/types/CarbCtcVehicleHistoryObjectResponseBody.mjs +11 -0
- package/dist/esm/api/types/CarbCtcVehicleObjectResponseBody.d.mts +33 -0
- package/dist/esm/api/types/CarbCtcVehicleObjectResponseBody.mjs +15 -0
- package/dist/esm/api/types/DetectionLogDetectionObjectResponseBody.d.mts +3 -2
- package/dist/esm/api/types/DetectionLogDetectionObjectResponseBody.mjs +2 -1
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody.d.mts +6 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryListDeviceRecoveryMissingAssetsUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingResponseBody.d.mts +4 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryMarkAssetMissingUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetResponseBody.d.mts +4 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DeviceRecoveryRecoverAssetUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverVehicleAssignmentV2ObjectResponseBody.d.mts +3 -2
- package/dist/esm/api/types/DriverVehicleAssignmentV2ObjectResponseBody.mjs +2 -1
- package/dist/esm/api/types/MissingStateResponseBody.d.mts +20 -0
- package/dist/esm/api/types/MissingStateResponseBody.mjs +2 -0
- package/dist/esm/api/types/NotificationRecipientRequestBody.d.mts +19 -0
- package/dist/esm/api/types/NotificationRecipientRequestBody.mjs +11 -0
- package/dist/esm/api/types/NotificationRecipientResponseBody.d.mts +19 -0
- package/dist/esm/api/types/NotificationRecipientResponseBody.mjs +11 -0
- package/dist/esm/api/types/RecoveryPhotoResponseBody.d.mts +22 -0
- package/dist/esm/api/types/RecoveryPhotoResponseBody.mjs +10 -0
- package/dist/esm/api/types/RecoveryStateResponseBody.d.mts +22 -0
- package/dist/esm/api/types/RecoveryStateResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupObjectResponseBody.d.mts +4 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsResponseBody.d.mts +6 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/RidershipRouteSetupsListRidershipRouteSetupsUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +67 -0
- package/dist/esm/api/types/index.mjs +67 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +450 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
|
|
|
44
44
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "@samsarahq/samsara",
|
|
47
|
-
"X-Fern-SDK-Version": "
|
|
48
|
-
"User-Agent": "@samsarahq/samsara/
|
|
47
|
+
"X-Fern-SDK-Version": "6.0.1",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/6.0.1",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
"X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
|
|
@@ -491,6 +491,64 @@ export declare class BetaApIsClient {
|
|
|
491
491
|
*/
|
|
492
492
|
getDevices(request?: Samsara.GetDevicesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.DevicesGetDevicesResponseBody>;
|
|
493
493
|
private __getDevices;
|
|
494
|
+
/**
|
|
495
|
+
* Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status.
|
|
496
|
+
*
|
|
497
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
498
|
+
*
|
|
499
|
+
* To use this endpoint, select **Read CARB CTC Integration** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
500
|
+
*
|
|
501
|
+
*
|
|
502
|
+
* **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
|
|
503
|
+
*
|
|
504
|
+
* @param {Samsara.ListCarbCtcVehiclesRequest} request
|
|
505
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
506
|
+
*
|
|
507
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
508
|
+
* @throws {@link Samsara.NotFoundError}
|
|
509
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
510
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
511
|
+
* @throws {@link Samsara.InternalServerError}
|
|
512
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
513
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
514
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
515
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
516
|
+
*
|
|
517
|
+
* @example
|
|
518
|
+
* await client.betaApIs.listCarbCtcVehicles()
|
|
519
|
+
*/
|
|
520
|
+
listCarbCtcVehicles(request?: Samsara.ListCarbCtcVehiclesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.CarbCtcListCarbCtcVehiclesResponseBody>;
|
|
521
|
+
private __listCarbCtcVehicles;
|
|
522
|
+
/**
|
|
523
|
+
* Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker.
|
|
524
|
+
*
|
|
525
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
526
|
+
*
|
|
527
|
+
* To use this endpoint, select **Read CARB CTC Integration** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
528
|
+
*
|
|
529
|
+
*
|
|
530
|
+
* **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
|
|
531
|
+
*
|
|
532
|
+
* @param {Samsara.ListCarbCtcVehicleHistoryRequest} request
|
|
533
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
534
|
+
*
|
|
535
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
536
|
+
* @throws {@link Samsara.NotFoundError}
|
|
537
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
538
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
539
|
+
* @throws {@link Samsara.InternalServerError}
|
|
540
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
541
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
542
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
543
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* await client.betaApIs.listCarbCtcVehicleHistory({
|
|
547
|
+
* vehicleIds: "vehicleIds"
|
|
548
|
+
* })
|
|
549
|
+
*/
|
|
550
|
+
listCarbCtcVehicleHistory(request: Samsara.ListCarbCtcVehicleHistoryRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.CarbCtcListCarbCtcVehicleHistoryResponseBody>;
|
|
551
|
+
private __listCarbCtcVehicleHistory;
|
|
494
552
|
/**
|
|
495
553
|
* Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
|
|
496
554
|
*
|
|
@@ -1487,7 +1545,37 @@ export declare class BetaApIsClient {
|
|
|
1487
1545
|
getRidershipPassenger(request: Samsara.GetRidershipPassengerRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.RidershipPassengersGetRidershipPassengerResponseBody>;
|
|
1488
1546
|
private __getRidershipPassenger;
|
|
1489
1547
|
/**
|
|
1490
|
-
*
|
|
1548
|
+
* List all route setups for a ridership account.
|
|
1549
|
+
*
|
|
1550
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
1551
|
+
*
|
|
1552
|
+
* To use this endpoint, select **Read Ridership** under the Ridership category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
1553
|
+
*
|
|
1554
|
+
*
|
|
1555
|
+
* **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
|
|
1556
|
+
*
|
|
1557
|
+
* @param {Samsara.ListRidershipRouteSetupsRequest} request
|
|
1558
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1559
|
+
*
|
|
1560
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
1561
|
+
* @throws {@link Samsara.NotFoundError}
|
|
1562
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
1563
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
1564
|
+
* @throws {@link Samsara.InternalServerError}
|
|
1565
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
1566
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
1567
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
1568
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
1569
|
+
*
|
|
1570
|
+
* @example
|
|
1571
|
+
* await client.betaApIs.listRidershipRouteSetups({
|
|
1572
|
+
* accountId: "accountId"
|
|
1573
|
+
* })
|
|
1574
|
+
*/
|
|
1575
|
+
listRidershipRouteSetups(request: Samsara.ListRidershipRouteSetupsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.RidershipRouteSetupsListRidershipRouteSetupsResponseBody>;
|
|
1576
|
+
private __listRidershipRouteSetups;
|
|
1577
|
+
/**
|
|
1578
|
+
* Create the passenger assignment setup for a route.
|
|
1491
1579
|
*
|
|
1492
1580
|
* <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
1493
1581
|
*
|
|
@@ -1500,6 +1500,190 @@ class BetaApIsClient {
|
|
|
1500
1500
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/devices");
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status.
|
|
1505
|
+
*
|
|
1506
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
1507
|
+
*
|
|
1508
|
+
* To use this endpoint, select **Read CARB CTC Integration** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
1509
|
+
*
|
|
1510
|
+
*
|
|
1511
|
+
* **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
|
|
1512
|
+
*
|
|
1513
|
+
* @param {Samsara.ListCarbCtcVehiclesRequest} request
|
|
1514
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1515
|
+
*
|
|
1516
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
1517
|
+
* @throws {@link Samsara.NotFoundError}
|
|
1518
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
1519
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
1520
|
+
* @throws {@link Samsara.InternalServerError}
|
|
1521
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
1522
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
1523
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
1524
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
1525
|
+
*
|
|
1526
|
+
* @example
|
|
1527
|
+
* await client.betaApIs.listCarbCtcVehicles()
|
|
1528
|
+
*/
|
|
1529
|
+
listCarbCtcVehicles(request = {}, requestOptions) {
|
|
1530
|
+
return core.HttpResponsePromise.fromPromise(this.__listCarbCtcVehicles(request, requestOptions));
|
|
1531
|
+
}
|
|
1532
|
+
__listCarbCtcVehicles() {
|
|
1533
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1534
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1535
|
+
const { tagIds, parentTagIds, testStatus, after } = request;
|
|
1536
|
+
const _queryParams = {
|
|
1537
|
+
tagIds,
|
|
1538
|
+
parentTagIds,
|
|
1539
|
+
testStatus: Array.isArray(testStatus)
|
|
1540
|
+
? testStatus.map((item) => item)
|
|
1541
|
+
: testStatus != null
|
|
1542
|
+
? testStatus
|
|
1543
|
+
: undefined,
|
|
1544
|
+
after,
|
|
1545
|
+
};
|
|
1546
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1547
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1548
|
+
const _response = yield core.fetcher({
|
|
1549
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "fleet/carb-ctc/vehicles"),
|
|
1550
|
+
method: "GET",
|
|
1551
|
+
headers: _headers,
|
|
1552
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
1553
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1554
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1555
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1556
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1557
|
+
logging: this._options.logging,
|
|
1558
|
+
});
|
|
1559
|
+
if (_response.ok) {
|
|
1560
|
+
return {
|
|
1561
|
+
data: _response.body,
|
|
1562
|
+
rawResponse: _response.rawResponse,
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
if (_response.error.reason === "status-code") {
|
|
1566
|
+
switch (_response.error.statusCode) {
|
|
1567
|
+
case 401:
|
|
1568
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1569
|
+
case 404:
|
|
1570
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1571
|
+
case 405:
|
|
1572
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
1573
|
+
case 429:
|
|
1574
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1575
|
+
case 500:
|
|
1576
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1577
|
+
case 501:
|
|
1578
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
1579
|
+
case 502:
|
|
1580
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1581
|
+
case 503:
|
|
1582
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1583
|
+
case 504:
|
|
1584
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
1585
|
+
default:
|
|
1586
|
+
throw new errors.SamsaraError({
|
|
1587
|
+
statusCode: _response.error.statusCode,
|
|
1588
|
+
body: _response.error.body,
|
|
1589
|
+
rawResponse: _response.rawResponse,
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/fleet/carb-ctc/vehicles");
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
/**
|
|
1597
|
+
* Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker.
|
|
1598
|
+
*
|
|
1599
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
1600
|
+
*
|
|
1601
|
+
* To use this endpoint, select **Read CARB CTC Integration** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
1602
|
+
*
|
|
1603
|
+
*
|
|
1604
|
+
* **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
|
|
1605
|
+
*
|
|
1606
|
+
* @param {Samsara.ListCarbCtcVehicleHistoryRequest} request
|
|
1607
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1608
|
+
*
|
|
1609
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
1610
|
+
* @throws {@link Samsara.NotFoundError}
|
|
1611
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
1612
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
1613
|
+
* @throws {@link Samsara.InternalServerError}
|
|
1614
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
1615
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
1616
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
1617
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
1618
|
+
*
|
|
1619
|
+
* @example
|
|
1620
|
+
* await client.betaApIs.listCarbCtcVehicleHistory({
|
|
1621
|
+
* vehicleIds: "vehicleIds"
|
|
1622
|
+
* })
|
|
1623
|
+
*/
|
|
1624
|
+
listCarbCtcVehicleHistory(request, requestOptions) {
|
|
1625
|
+
return core.HttpResponsePromise.fromPromise(this.__listCarbCtcVehicleHistory(request, requestOptions));
|
|
1626
|
+
}
|
|
1627
|
+
__listCarbCtcVehicleHistory(request, requestOptions) {
|
|
1628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1629
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1630
|
+
const { vehicleIds, startTime, endTime, after } = request;
|
|
1631
|
+
const _queryParams = {
|
|
1632
|
+
vehicleIds,
|
|
1633
|
+
startTime,
|
|
1634
|
+
endTime,
|
|
1635
|
+
after,
|
|
1636
|
+
};
|
|
1637
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1638
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1639
|
+
const _response = yield core.fetcher({
|
|
1640
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "fleet/carb-ctc/vehicles/history"),
|
|
1641
|
+
method: "GET",
|
|
1642
|
+
headers: _headers,
|
|
1643
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
1644
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1645
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1646
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1647
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1648
|
+
logging: this._options.logging,
|
|
1649
|
+
});
|
|
1650
|
+
if (_response.ok) {
|
|
1651
|
+
return {
|
|
1652
|
+
data: _response.body,
|
|
1653
|
+
rawResponse: _response.rawResponse,
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
if (_response.error.reason === "status-code") {
|
|
1657
|
+
switch (_response.error.statusCode) {
|
|
1658
|
+
case 401:
|
|
1659
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1660
|
+
case 404:
|
|
1661
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1662
|
+
case 405:
|
|
1663
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
1664
|
+
case 429:
|
|
1665
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1666
|
+
case 500:
|
|
1667
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1668
|
+
case 501:
|
|
1669
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
1670
|
+
case 502:
|
|
1671
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1672
|
+
case 503:
|
|
1673
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1674
|
+
case 504:
|
|
1675
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
1676
|
+
default:
|
|
1677
|
+
throw new errors.SamsaraError({
|
|
1678
|
+
statusCode: _response.error.statusCode,
|
|
1679
|
+
body: _response.error.body,
|
|
1680
|
+
rawResponse: _response.rawResponse,
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/fleet/carb-ctc/vehicles/history");
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1503
1687
|
/**
|
|
1504
1688
|
* Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
|
|
1505
1689
|
*
|
|
@@ -4383,7 +4567,97 @@ class BetaApIsClient {
|
|
|
4383
4567
|
});
|
|
4384
4568
|
}
|
|
4385
4569
|
/**
|
|
4386
|
-
*
|
|
4570
|
+
* List all route setups for a ridership account.
|
|
4571
|
+
*
|
|
4572
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
4573
|
+
*
|
|
4574
|
+
* To use this endpoint, select **Read Ridership** under the Ridership category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
4575
|
+
*
|
|
4576
|
+
*
|
|
4577
|
+
* **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
|
|
4578
|
+
*
|
|
4579
|
+
* @param {Samsara.ListRidershipRouteSetupsRequest} request
|
|
4580
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4581
|
+
*
|
|
4582
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
4583
|
+
* @throws {@link Samsara.NotFoundError}
|
|
4584
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
4585
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
4586
|
+
* @throws {@link Samsara.InternalServerError}
|
|
4587
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
4588
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
4589
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
4590
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
4591
|
+
*
|
|
4592
|
+
* @example
|
|
4593
|
+
* await client.betaApIs.listRidershipRouteSetups({
|
|
4594
|
+
* accountId: "accountId"
|
|
4595
|
+
* })
|
|
4596
|
+
*/
|
|
4597
|
+
listRidershipRouteSetups(request, requestOptions) {
|
|
4598
|
+
return core.HttpResponsePromise.fromPromise(this.__listRidershipRouteSetups(request, requestOptions));
|
|
4599
|
+
}
|
|
4600
|
+
__listRidershipRouteSetups(request, requestOptions) {
|
|
4601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4602
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
4603
|
+
const { accountId, after, limit } = request;
|
|
4604
|
+
const _queryParams = {
|
|
4605
|
+
accountId,
|
|
4606
|
+
after,
|
|
4607
|
+
limit,
|
|
4608
|
+
};
|
|
4609
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4610
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4611
|
+
const _response = yield core.fetcher({
|
|
4612
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "ridership/route-setups"),
|
|
4613
|
+
method: "GET",
|
|
4614
|
+
headers: _headers,
|
|
4615
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
4616
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
4617
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
4618
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
4619
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
4620
|
+
logging: this._options.logging,
|
|
4621
|
+
});
|
|
4622
|
+
if (_response.ok) {
|
|
4623
|
+
return {
|
|
4624
|
+
data: _response.body,
|
|
4625
|
+
rawResponse: _response.rawResponse,
|
|
4626
|
+
};
|
|
4627
|
+
}
|
|
4628
|
+
if (_response.error.reason === "status-code") {
|
|
4629
|
+
switch (_response.error.statusCode) {
|
|
4630
|
+
case 401:
|
|
4631
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
4632
|
+
case 404:
|
|
4633
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
4634
|
+
case 405:
|
|
4635
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
4636
|
+
case 429:
|
|
4637
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
4638
|
+
case 500:
|
|
4639
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
4640
|
+
case 501:
|
|
4641
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
4642
|
+
case 502:
|
|
4643
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
4644
|
+
case 503:
|
|
4645
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
4646
|
+
case 504:
|
|
4647
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
4648
|
+
default:
|
|
4649
|
+
throw new errors.SamsaraError({
|
|
4650
|
+
statusCode: _response.error.statusCode,
|
|
4651
|
+
body: _response.error.body,
|
|
4652
|
+
rawResponse: _response.rawResponse,
|
|
4653
|
+
});
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/ridership/route-setups");
|
|
4657
|
+
});
|
|
4658
|
+
}
|
|
4659
|
+
/**
|
|
4660
|
+
* Create the passenger assignment setup for a route.
|
|
4387
4661
|
*
|
|
4388
4662
|
* <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
4389
4663
|
*
|
|
@@ -9,7 +9,7 @@ export interface GetDetectionsRequest {
|
|
|
9
9
|
driverIds?: string | string[];
|
|
10
10
|
/** Optional string of comma separated asset IDs. If asset ID is present, events for the specified asset(s) will be returned. Max for this value is 2000 objects. (Example: 281474982859091,281471982957527) */
|
|
11
11
|
assetIds?: string | string[];
|
|
12
|
-
/** Optional string of comma separated labels to filter behavior labels. Uses OR semantics for filtering. An empty list allows all values. Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshTurn`, `heavySpeeding`, `laneDeparture`, `lightSpeeding`, `maxSpeed`, `mobileUsage`, `moderateSpeeding`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `ranRedLight`, `rearCollisionWarning`, `rollingStop`, `rolloverProtection`, `severeSpeeding`, `smoking`, `speeding`, `unsafeParking`, `vehicleInBlindSpotWarning`, `vulnerableRoadUserCollisionWarning`, `yawControl`. (Example: rollingStop,obstructedCamera,noSeatbelt) */
|
|
12
|
+
/** Optional string of comma separated labels to filter behavior labels. Uses OR semantics for filtering. An empty list allows all values. Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshTurn`, `heavySpeeding`, `laneDeparture`, `lightSpeeding`, `maxSpeed`, `mobileUsage`, `moderateSpeeding`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `ranRedLight`, `rearCollisionWarning`, `reversing`, `rollingStop`, `rolloverProtection`, `severeSpeeding`, `smoking`, `speeding`, `unsafeParking`, `vehicleInBlindSpotWarning`, `vulnerableRoadUserCollisionWarning`, `yawControl`. (Example: rollingStop,obstructedCamera,noSeatbelt) */
|
|
13
13
|
detectionBehaviorLabels?: string | string[];
|
|
14
14
|
/** Optional string of comma separated reasons to filter detections. Uses OR semantics for filtering. An empty list allows all values. Valid values: `overDailyLimit`, `overHourlyLimit`, `overTripLimit`, `belowConfidenceThreshold`, `belowSeverityThreshold`, `overEventRateLimit`, `geofenceFilter`, `belowNudgeThreshold`, `belowSpeedThreshold`, `nighttimeFilter`, `speedingFilter`, `inCabAlertOnly`, `unknown`. (Example: overDailyLimit,overHourlyLimit,belowConfidenceThreshold) */
|
|
15
15
|
inboxFilterReason?: string | string[];
|
|
@@ -39,6 +39,7 @@ export interface GetReadingsHistoryRequest {
|
|
|
39
39
|
* * `checkEngineLightJ1939Warning` (Check Engine Light (J1939) - Warning): Indicates whether the J1939 check engine light warning indicator is active or inactive. (values: off | on)
|
|
40
40
|
* * `checkEngineLightPassenger` (Check Engine Light (Passenger)): Indicates whether the passenger check engine light indicator is active or inactive. (values: off | on)
|
|
41
41
|
* * `coolantTemp` (Engine Coolant Temp): Represents the engine coolant temperature. (celsius)
|
|
42
|
+
* * `crankcasePressure` (Crankcase Pressure): The pressure inside the engine's crankcase (kilopascal)
|
|
42
43
|
* * `defLevel` (DEF Level): Represents the DEF (Diesel Exhaust Fluid) level percentage. (percent)
|
|
43
44
|
* * `derivedFuelConsumed` (Lifetime Fuel Consumed (Samsara)): Samsara-maintained fuel consumption since the device was firstinstalled. (liter)
|
|
44
45
|
* * `deviceOrientation` (Device Orientation): Indicates orientation of the device. (values: invalid | unknown | topDown | bottomDown | leftDown | rightDown | backDown | frontDown)
|
|
@@ -46,27 +47,41 @@ export interface GetReadingsHistoryRequest {
|
|
|
46
47
|
* * `dpfLampStatus` (DPF Lamp Status): Status of the Diesel Particulate Filter warning lamp. (values: off | on | blinking)
|
|
47
48
|
* * `dpfSootLoadPercent` (DPF Soot Load): Diesel Particulate Filter soot load percentage. (percent)
|
|
48
49
|
* * `ecuHistoryTotalRunTime` (ECU Total Run Time): Total engine run time from ECU in seconds. (second)
|
|
50
|
+
* * `engineExhaustTemperature` (Engine Exhaust Temperature): Temperature of the engine exhaust (celsius)
|
|
49
51
|
* * `engineHours` (Engine Hours (ECU)): Represents the total engine runtime in hours as reported by the ECU. (second)
|
|
50
52
|
* * `engineHoursDigioBased` (Engine Hours (Synthetic - Aux input)): Represents the synthetic total engine runtime in hours based on auxiliary input. (millisecond)
|
|
51
53
|
* * `engineHoursEngineStateBased` (Engine Hours (Synthetic)): Represents the synthetic total engine runtime in hours based on engine state. (millisecond)
|
|
54
|
+
* * `engineImmobilizer` (Engine Immobilizer): The state of the engine immobilizer. Valid values: ignition_disabled, ignition_enabled.
|
|
52
55
|
* * `engineIntakeAirTemp` (Engine Intake Air Temperature): Represents the engine intake air temperature. (celsius)
|
|
53
56
|
* * `engineLoadPercent` (Engine Load): Engine load percentage. (percent)
|
|
57
|
+
* * `engineOilTemperature` (Engine Oil Temperature): Temperature of the engine oil (celsius)
|
|
54
58
|
* * `engineState` (Engine State): Indicates the current state of the engine, such as running, stopped. (values: off | running | idling)
|
|
59
|
+
* * `engineTotalIdleTime` (Engine Total Idle Time): Total idle time for the vehicle. (minute)
|
|
55
60
|
* * `ev24VoltDcDcInverterCurrent` (EV 24V DC/DC Inverter Current): Current from the 24V DC-DC inverter in amperes. (ampere)
|
|
56
61
|
* * `evAverageCellTemperature` (EV Average Cell Temperature): Average temperature of EV battery cells in degrees Celsius. (celsius)
|
|
62
|
+
* * `evChargingCurrent` (EV Charging Current): Charging current for electric and hybrid vehicles. (ampere)
|
|
63
|
+
* * `evChargingEnergy` (EV Charging Energy): Charging energy for electric and hybrid vehicles. (watthour)
|
|
57
64
|
* * `evChargingErrorStatus` (EV Charging Error Status): Indicates if the EV charging system has an error. (values: noError | batteryTooHotOrCold | vehicleNotInPark | connectorLockFault | chargingSystemFault | chargingCurrentDifferential | chargingVoltageOutOfRange | chargingSystemNotCompatible | noDataUndeterminedStatus | notAvailable | unknownError)
|
|
65
|
+
* * `evChargingStatus` (EV Charging Status): Charging status for electric and hybrid vehicles. (values: unknown | notCharging | charging)
|
|
66
|
+
* * `evChargingVoltage` (EV Charging Voltage): Charging voltage for electric and hybrid vehicles. (volt)
|
|
67
|
+
* * `evConsumedEnergy` (EV Consumed Energy): Consumed energy (including regenerated) for electric and hybrid vehicles. (watthour)
|
|
68
|
+
* * `evDistanceDriven` (EV Distance Driven): Electric distance driven for electric and hybrid vehicles. (meter)
|
|
58
69
|
* * `evHighCapacityBatteryCurrent` (EV High Capacity Battery Current): Current from the high capacity EV battery in amperes. (ampere)
|
|
59
70
|
* * `evHighCapacityBatteryVoltage` (High Capacity EV Battery Voltage): Represents the voltage of the high capacity EV battery. (volt)
|
|
60
71
|
* * `evMaxAllowedStateOfChargePercent` (EV Max Allowed State of Charge): Maximum allowed state of charge percentage. (percent)
|
|
61
72
|
* * `evMaxCellTemperature` (EV Max Cell Temperature): Maximum temperature of EV battery cells in degrees Celsius. (celsius)
|
|
62
73
|
* * `evMinAllowedStateOfChargePercent` (EV Min Allowed State of Charge): Minimum allowed state of charge percentage. (percent)
|
|
63
74
|
* * `evMinCellTemperature` (EV Min Cell Temperature): Minimum temperature of EV battery cells in degrees Celsius. (celsius)
|
|
75
|
+
* * `evRegeneratedEnergy` (EV Regenerated Energy): Regenerated energy for electric and hybrid vehicles. (watthour)
|
|
64
76
|
* * `exhaustGasPressure` (Exhaust Gas Pressure): Represents the exhaust gas pressure. (kilopascal)
|
|
77
|
+
* * `faultCodes` (Fault Codes): Engine fault codes for the asset
|
|
65
78
|
* * `fuelConsumptionRate` (Fuel Consumption Rate): The rate at which an asset uses fuel (litersperhour)
|
|
66
79
|
* * `fuelLevelPerc` (Fuel Level): Percentage of fuel remaining in the tank. (percent)
|
|
67
80
|
* * `fuelSource` (Fuel Source): Type of fuel used by the asset. (values: gasoline | diesel)
|
|
68
81
|
* * `geoCoordinates` (Geo Coordinates): GPS coordinates (latitude and longitude) of the asset's location.
|
|
82
|
+
* * `gpsDistance` (GPS Distance): The distance the vehicle has traveled since the gateway was installed based on GPS calculations. (meter)
|
|
69
83
|
* * `gpsSpeed` (GPS Speed): Asset speed measured by the gateway's GPS receiver. (meterspersec)
|
|
84
|
+
* * `idlingDuration` (Cumulative Idling Duration): The cumulative idling duration. Cumulative values always increase. (millisecond)
|
|
70
85
|
* * `ignitionStatus` (Ignitions Status): Indicates the current ignition status as a voltage (values: off | on)
|
|
71
86
|
* * `latitude` (Latitude): Latitude coordinate of the asset's location. (decimaldegrees)
|
|
72
87
|
* * `lifetimeFuelConsumed` (Lifetime Fuel Consumed): Represents the vehicle maintained lifetime fuel consumption as reported by the vehicle. (liter)
|
|
@@ -97,6 +112,7 @@ export interface GetReadingsHistoryRequest {
|
|
|
97
112
|
* * `seatbeltDriver` (Seatbelt (Driver)): Indicates whether the driver's seatbelt is buckled or unbuckled. (values: unbuckled | buckled)
|
|
98
113
|
* * `seatbeltPassenger` (Seatbelt (Passenger)): Indicates whether the passenger's seatbelt is buckled or unbuckled. (values: unbuckled | buckled)
|
|
99
114
|
* * `supportFindNearby` (Support Find Nearby): Indicates if the asset can support find nearby. (values: noData | notCompatible | pendingUpgrade | Ready)
|
|
115
|
+
* * `tellTales` (Tell Tale Status): Tell tales status as read from the vehicle.
|
|
100
116
|
* * `tirePressuresBackLeft` (Tire pressure, back left): Represents the tire pressure for the back-left tire. (kilopascal)
|
|
101
117
|
* * `tirePressuresBackRight` (Tire pressure, back right): Represents the tire pressure for the back-right tire. (kilopascal)
|
|
102
118
|
* * `tirePressuresFrontLeft` (Tire pressure, front left): Represents the tire pressure for the front-left tire. (kilopascal)
|
|
@@ -39,6 +39,7 @@ export interface GetReadingsSnapshotRequest {
|
|
|
39
39
|
* * `checkEngineLightJ1939Warning` (Check Engine Light (J1939) - Warning): Indicates whether the J1939 check engine light warning indicator is active or inactive. (values: off | on)
|
|
40
40
|
* * `checkEngineLightPassenger` (Check Engine Light (Passenger)): Indicates whether the passenger check engine light indicator is active or inactive. (values: off | on)
|
|
41
41
|
* * `coolantTemp` (Engine Coolant Temp): Represents the engine coolant temperature. (celsius)
|
|
42
|
+
* * `crankcasePressure` (Crankcase Pressure): The pressure inside the engine's crankcase (kilopascal)
|
|
42
43
|
* * `defLevel` (DEF Level): Represents the DEF (Diesel Exhaust Fluid) level percentage. (percent)
|
|
43
44
|
* * `derivedFuelConsumed` (Lifetime Fuel Consumed (Samsara)): Samsara-maintained fuel consumption since the device was firstinstalled. (liter)
|
|
44
45
|
* * `deviceOrientation` (Device Orientation): Indicates orientation of the device. (values: invalid | unknown | topDown | bottomDown | leftDown | rightDown | backDown | frontDown)
|
|
@@ -46,27 +47,41 @@ export interface GetReadingsSnapshotRequest {
|
|
|
46
47
|
* * `dpfLampStatus` (DPF Lamp Status): Status of the Diesel Particulate Filter warning lamp. (values: off | on | blinking)
|
|
47
48
|
* * `dpfSootLoadPercent` (DPF Soot Load): Diesel Particulate Filter soot load percentage. (percent)
|
|
48
49
|
* * `ecuHistoryTotalRunTime` (ECU Total Run Time): Total engine run time from ECU in seconds. (second)
|
|
50
|
+
* * `engineExhaustTemperature` (Engine Exhaust Temperature): Temperature of the engine exhaust (celsius)
|
|
49
51
|
* * `engineHours` (Engine Hours (ECU)): Represents the total engine runtime in hours as reported by the ECU. (second)
|
|
50
52
|
* * `engineHoursDigioBased` (Engine Hours (Synthetic - Aux input)): Represents the synthetic total engine runtime in hours based on auxiliary input. (millisecond)
|
|
51
53
|
* * `engineHoursEngineStateBased` (Engine Hours (Synthetic)): Represents the synthetic total engine runtime in hours based on engine state. (millisecond)
|
|
54
|
+
* * `engineImmobilizer` (Engine Immobilizer): The state of the engine immobilizer. Valid values: ignition_disabled, ignition_enabled.
|
|
52
55
|
* * `engineIntakeAirTemp` (Engine Intake Air Temperature): Represents the engine intake air temperature. (celsius)
|
|
53
56
|
* * `engineLoadPercent` (Engine Load): Engine load percentage. (percent)
|
|
57
|
+
* * `engineOilTemperature` (Engine Oil Temperature): Temperature of the engine oil (celsius)
|
|
54
58
|
* * `engineState` (Engine State): Indicates the current state of the engine, such as running, stopped. (values: off | running | idling)
|
|
59
|
+
* * `engineTotalIdleTime` (Engine Total Idle Time): Total idle time for the vehicle. (minute)
|
|
55
60
|
* * `ev24VoltDcDcInverterCurrent` (EV 24V DC/DC Inverter Current): Current from the 24V DC-DC inverter in amperes. (ampere)
|
|
56
61
|
* * `evAverageCellTemperature` (EV Average Cell Temperature): Average temperature of EV battery cells in degrees Celsius. (celsius)
|
|
62
|
+
* * `evChargingCurrent` (EV Charging Current): Charging current for electric and hybrid vehicles. (ampere)
|
|
63
|
+
* * `evChargingEnergy` (EV Charging Energy): Charging energy for electric and hybrid vehicles. (watthour)
|
|
57
64
|
* * `evChargingErrorStatus` (EV Charging Error Status): Indicates if the EV charging system has an error. (values: noError | batteryTooHotOrCold | vehicleNotInPark | connectorLockFault | chargingSystemFault | chargingCurrentDifferential | chargingVoltageOutOfRange | chargingSystemNotCompatible | noDataUndeterminedStatus | notAvailable | unknownError)
|
|
65
|
+
* * `evChargingStatus` (EV Charging Status): Charging status for electric and hybrid vehicles. (values: unknown | notCharging | charging)
|
|
66
|
+
* * `evChargingVoltage` (EV Charging Voltage): Charging voltage for electric and hybrid vehicles. (volt)
|
|
67
|
+
* * `evConsumedEnergy` (EV Consumed Energy): Consumed energy (including regenerated) for electric and hybrid vehicles. (watthour)
|
|
68
|
+
* * `evDistanceDriven` (EV Distance Driven): Electric distance driven for electric and hybrid vehicles. (meter)
|
|
58
69
|
* * `evHighCapacityBatteryCurrent` (EV High Capacity Battery Current): Current from the high capacity EV battery in amperes. (ampere)
|
|
59
70
|
* * `evHighCapacityBatteryVoltage` (High Capacity EV Battery Voltage): Represents the voltage of the high capacity EV battery. (volt)
|
|
60
71
|
* * `evMaxAllowedStateOfChargePercent` (EV Max Allowed State of Charge): Maximum allowed state of charge percentage. (percent)
|
|
61
72
|
* * `evMaxCellTemperature` (EV Max Cell Temperature): Maximum temperature of EV battery cells in degrees Celsius. (celsius)
|
|
62
73
|
* * `evMinAllowedStateOfChargePercent` (EV Min Allowed State of Charge): Minimum allowed state of charge percentage. (percent)
|
|
63
74
|
* * `evMinCellTemperature` (EV Min Cell Temperature): Minimum temperature of EV battery cells in degrees Celsius. (celsius)
|
|
75
|
+
* * `evRegeneratedEnergy` (EV Regenerated Energy): Regenerated energy for electric and hybrid vehicles. (watthour)
|
|
64
76
|
* * `exhaustGasPressure` (Exhaust Gas Pressure): Represents the exhaust gas pressure. (kilopascal)
|
|
77
|
+
* * `faultCodes` (Fault Codes): Engine fault codes for the asset
|
|
65
78
|
* * `fuelConsumptionRate` (Fuel Consumption Rate): The rate at which an asset uses fuel (litersperhour)
|
|
66
79
|
* * `fuelLevelPerc` (Fuel Level): Percentage of fuel remaining in the tank. (percent)
|
|
67
80
|
* * `fuelSource` (Fuel Source): Type of fuel used by the asset. (values: gasoline | diesel)
|
|
68
81
|
* * `geoCoordinates` (Geo Coordinates): GPS coordinates (latitude and longitude) of the asset's location.
|
|
82
|
+
* * `gpsDistance` (GPS Distance): The distance the vehicle has traveled since the gateway was installed based on GPS calculations. (meter)
|
|
69
83
|
* * `gpsSpeed` (GPS Speed): Asset speed measured by the gateway's GPS receiver. (meterspersec)
|
|
84
|
+
* * `idlingDuration` (Cumulative Idling Duration): The cumulative idling duration. Cumulative values always increase. (millisecond)
|
|
70
85
|
* * `ignitionStatus` (Ignitions Status): Indicates the current ignition status as a voltage (values: off | on)
|
|
71
86
|
* * `latitude` (Latitude): Latitude coordinate of the asset's location. (decimaldegrees)
|
|
72
87
|
* * `lifetimeFuelConsumed` (Lifetime Fuel Consumed): Represents the vehicle maintained lifetime fuel consumption as reported by the vehicle. (liter)
|
|
@@ -97,6 +112,7 @@ export interface GetReadingsSnapshotRequest {
|
|
|
97
112
|
* * `seatbeltDriver` (Seatbelt (Driver)): Indicates whether the driver's seatbelt is buckled or unbuckled. (values: unbuckled | buckled)
|
|
98
113
|
* * `seatbeltPassenger` (Seatbelt (Passenger)): Indicates whether the passenger's seatbelt is buckled or unbuckled. (values: unbuckled | buckled)
|
|
99
114
|
* * `supportFindNearby` (Support Find Nearby): Indicates if the asset can support find nearby. (values: noData | notCompatible | pendingUpgrade | Ready)
|
|
115
|
+
* * `tellTales` (Tell Tale Status): Tell tales status as read from the vehicle.
|
|
100
116
|
* * `tirePressuresBackLeft` (Tire pressure, back left): Represents the tire pressure for the back-left tire. (kilopascal)
|
|
101
117
|
* * `tirePressuresBackRight` (Tire pressure, back right): Represents the tire pressure for the back-right tire. (kilopascal)
|
|
102
118
|
* * `tirePressuresFrontLeft` (Tire pressure, front left): Represents the tire pressure for the front-left tire. (kilopascal)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* vehicleIds: "vehicleIds"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface ListCarbCtcVehicleHistoryRequest {
|
|
8
|
+
/** A comma-separated list of vehicle IDs to fetch history for. Up to 100 IDs can be provided. Example: `vehicleIds=1234,5678` */
|
|
9
|
+
vehicleIds: string;
|
|
10
|
+
/** A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). */
|
|
11
|
+
startTime?: string;
|
|
12
|
+
/** An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). */
|
|
13
|
+
endTime?: string;
|
|
14
|
+
/** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
|
|
15
|
+
after?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Samsara from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface ListCarbCtcVehiclesRequest {
|
|
7
|
+
/** A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678` */
|
|
8
|
+
tagIds?: string;
|
|
9
|
+
/** A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678` */
|
|
10
|
+
parentTagIds?: string;
|
|
11
|
+
/** Optional filter based on the test status. This parameter can be passed multiple times to filter by multiple statuses. */
|
|
12
|
+
testStatus?: Samsara.ListCarbCtcVehiclesRequestTestStatusItem | Samsara.ListCarbCtcVehiclesRequestTestStatusItem[];
|
|
13
|
+
/** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
|
|
14
|
+
after?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* accountId: "accountId"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface ListRidershipRouteSetupsRequest {
|
|
8
|
+
/** The Samsara UUID of the ridership account to list route setups for. */
|
|
9
|
+
accountId: string;
|
|
10
|
+
/** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
|
|
11
|
+
after?: string;
|
|
12
|
+
/** The limit for how many objects will be in the response. Default and max for this value is 512 objects. */
|
|
13
|
+
limit?: number;
|
|
14
|
+
}
|
|
@@ -38,10 +38,13 @@ export type { GetVehicleSafetyScoreTripsRequest } from "./GetVehicleSafetyScoreT
|
|
|
38
38
|
export type { HosDailyLogsUpdateShippingDocsRequestBody } from "./HosDailyLogsUpdateShippingDocsRequestBody.js";
|
|
39
39
|
export type { JobsCreateJobRequestBody } from "./JobsCreateJobRequestBody.js";
|
|
40
40
|
export type { JobsPatchJobRequestBody } from "./JobsPatchJobRequestBody.js";
|
|
41
|
+
export type { ListCarbCtcVehicleHistoryRequest } from "./ListCarbCtcVehicleHistoryRequest.js";
|
|
42
|
+
export type { ListCarbCtcVehiclesRequest } from "./ListCarbCtcVehiclesRequest.js";
|
|
41
43
|
export type { ListHubCustomPropertiesRequest } from "./ListHubCustomPropertiesRequest.js";
|
|
42
44
|
export type { ListReadingsDefinitionsRequest } from "./ListReadingsDefinitionsRequest.js";
|
|
43
45
|
export type { ListRidershipAccountsRequest } from "./ListRidershipAccountsRequest.js";
|
|
44
46
|
export type { ListRidershipPassengersRequest } from "./ListRidershipPassengersRequest.js";
|
|
47
|
+
export type { ListRidershipRouteSetupsRequest } from "./ListRidershipRouteSetupsRequest.js";
|
|
45
48
|
export type { PlanOrdersCreatePlanOrdersRequestBody } from "./PlanOrdersCreatePlanOrdersRequestBody.js";
|
|
46
49
|
export type { QualificationsArchiveQualificationRecordRequestBody } from "./QualificationsArchiveQualificationRecordRequestBody.js";
|
|
47
50
|
export type { QualificationsDeleteQualificationRecordRequestBody } from "./QualificationsDeleteQualificationRecordRequestBody.js";
|