@samsarahq/samsara 8.1.1 → 9.0.0
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/Client.d.ts +6 -0
- package/dist/cjs/Client.js +106 -96
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +1 -247
- package/dist/cjs/api/resources/betaApIs/client/Client.js +1 -740
- package/dist/cjs/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.ts +1 -1
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.ts +1 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.ts +1 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +0 -8
- package/dist/cjs/api/resources/betaApIs/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/betaApIs/types/index.js +0 -3
- package/dist/cjs/api/resources/carbCtc/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/carbCtc/client/Client.js +243 -0
- package/dist/cjs/api/resources/carbCtc/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/carbCtc/client/index.js +17 -0
- package/dist/cjs/api/resources/carbCtc/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/{betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.js → carbCtc/client/requests/index.js} +0 -1
- package/dist/cjs/api/resources/carbCtc/index.d.ts +2 -0
- package/dist/cjs/api/resources/carbCtc/index.js +18 -0
- package/dist/cjs/api/resources/carbCtc/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/carbCtc/types/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/index.js +8 -2
- package/dist/cjs/api/resources/media/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/media/client/Client.js +1 -1
- package/dist/cjs/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.ts +1 -1
- package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/previewApIs/client/Client.js +1 -1
- package/dist/cjs/api/resources/previewApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.ts +1 -1
- package/dist/cjs/api/resources/safetyScores/client/Client.d.ts +139 -0
- package/dist/cjs/api/resources/safetyScores/client/Client.js +430 -0
- package/dist/cjs/api/resources/safetyScores/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/safetyScores/client/index.js +17 -0
- package/dist/cjs/api/resources/safetyScores/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/safetyScores/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/safetyScores/index.d.ts +2 -0
- package/dist/cjs/api/resources/safetyScores/index.js +18 -0
- package/dist/cjs/api/resources/safetyScores/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/safetyScores/types/index.js +18 -0
- package/dist/cjs/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.d.ts +3 -2
- package/dist/cjs/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.js +2 -1
- package/dist/cjs/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.d.ts +1 -0
- package/dist/cjs/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.js +1 -0
- package/dist/cjs/api/types/WorkOrderObjectResponseBody.d.ts +3 -2
- package/dist/cjs/api/types/WorkOrderObjectResponseBody.js +2 -1
- package/dist/cjs/api/types/index.d.ts +0 -21
- package/dist/cjs/api/types/index.js +0 -21
- 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/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +1 -247
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +1 -740
- package/dist/esm/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.mts +1 -1
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.mts +1 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.mts +1 -0
- package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +0 -8
- package/dist/esm/api/resources/betaApIs/types/index.d.mts +0 -3
- package/dist/esm/api/resources/betaApIs/types/index.mjs +0 -3
- package/dist/esm/api/resources/carbCtc/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/carbCtc/client/Client.mjs +206 -0
- package/dist/esm/api/resources/carbCtc/client/index.d.mts +1 -0
- package/dist/esm/api/resources/carbCtc/client/index.mjs +1 -0
- package/dist/esm/api/resources/carbCtc/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/carbCtc/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/carbCtc/index.d.mts +2 -0
- package/dist/esm/api/resources/carbCtc/index.mjs +2 -0
- package/dist/esm/api/resources/carbCtc/types/index.d.mts +1 -0
- package/dist/esm/api/resources/carbCtc/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/index.mjs +6 -0
- package/dist/esm/api/resources/media/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/media/client/Client.mjs +1 -1
- package/dist/esm/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.mts +1 -1
- package/dist/esm/api/resources/previewApIs/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/previewApIs/client/Client.mjs +1 -1
- package/dist/esm/api/resources/previewApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.mts +1 -1
- package/dist/esm/api/resources/safetyScores/client/Client.d.mts +139 -0
- package/dist/esm/api/resources/safetyScores/client/Client.mjs +393 -0
- package/dist/esm/api/resources/safetyScores/client/index.d.mts +1 -0
- package/dist/esm/api/resources/safetyScores/client/index.mjs +1 -0
- package/dist/esm/api/resources/safetyScores/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/safetyScores/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/safetyScores/index.d.mts +2 -0
- package/dist/esm/api/resources/safetyScores/index.mjs +2 -0
- package/dist/esm/api/resources/safetyScores/types/index.d.mts +2 -0
- package/dist/esm/api/resources/safetyScores/types/index.mjs +2 -0
- package/dist/esm/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.d.mts +3 -2
- package/dist/esm/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.mjs +2 -1
- package/dist/esm/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.d.mts +1 -0
- package/dist/esm/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.mjs +1 -0
- package/dist/esm/api/types/WorkOrderObjectResponseBody.d.mts +3 -2
- package/dist/esm/api/types/WorkOrderObjectResponseBody.mjs +2 -1
- package/dist/esm/api/types/index.d.mts +0 -21
- package/dist/esm/api/types/index.mjs +0 -21
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1792 -1936
- package/dist/cjs/api/resources/betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.d.ts +0 -17
- package/dist/cjs/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.d.ts +0 -17
- package/dist/cjs/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.d.ts +0 -6
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.d.ts +0 -6
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.d.ts +0 -9
- package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.js +0 -3
- package/dist/cjs/api/types/TripsBreakdownResponseBody.d.ts +0 -22
- package/dist/cjs/api/types/TripsBreakdownResponseBody.js +0 -3
- package/dist/esm/api/resources/betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.d.mts +0 -17
- package/dist/esm/api/resources/betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.mjs +0 -2
- package/dist/esm/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.d.mts +0 -17
- package/dist/esm/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.d.mts +0 -6
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.d.mts +0 -6
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.d.mts +0 -9
- package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.mjs +0 -2
- package/dist/esm/api/types/TripsBreakdownResponseBody.d.mts +0 -22
- package/dist/esm/api/types/TripsBreakdownResponseBody.mjs +0 -2
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.js +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.mjs +0 -0
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": "9.0.0",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/9.0.0",
|
|
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",
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AssetsClient } from "./api/resources/assets/client/Client.js";
|
|
|
4
4
|
import { AttributesClient } from "./api/resources/attributes/client/Client.js";
|
|
5
5
|
import { AuthTokenForDriverClient } from "./api/resources/authTokenForDriver/client/Client.js";
|
|
6
6
|
import { BetaApIsClient } from "./api/resources/betaApIs/client/Client.js";
|
|
7
|
+
import { CarbCtcClient } from "./api/resources/carbCtc/client/Client.js";
|
|
7
8
|
import { CarrierProposedAssignmentsClient } from "./api/resources/carrierProposedAssignments/client/Client.js";
|
|
8
9
|
import { CoachingClient } from "./api/resources/coaching/client/Client.js";
|
|
9
10
|
import { ContactsClient } from "./api/resources/contacts/client/Client.js";
|
|
@@ -36,6 +37,7 @@ import { PreviewApIsClient } from "./api/resources/previewApIs/client/Client.js"
|
|
|
36
37
|
import { RouteEventsClient } from "./api/resources/routeEvents/client/Client.js";
|
|
37
38
|
import { RoutesClient } from "./api/resources/routes/client/Client.js";
|
|
38
39
|
import { SafetyClient } from "./api/resources/safety/client/Client.js";
|
|
40
|
+
import { SafetyScoresClient } from "./api/resources/safetyScores/client/Client.js";
|
|
39
41
|
import { SensorsClient } from "./api/resources/sensors/client/Client.js";
|
|
40
42
|
import { SettingsClient } from "./api/resources/settings/client/Client.js";
|
|
41
43
|
import { SpeedingIntervalsClient } from "./api/resources/speedingIntervals/client/Client.js";
|
|
@@ -74,6 +76,7 @@ export declare class SamsaraClient {
|
|
|
74
76
|
protected _fuelAndEnergy: FuelAndEnergyClient | undefined;
|
|
75
77
|
protected _driverTrailerAssignments: DriverTrailerAssignmentsClient | undefined;
|
|
76
78
|
protected _driverQrCodes: DriverQrCodesClient | undefined;
|
|
79
|
+
protected _carbCtc: CarbCtcClient | undefined;
|
|
77
80
|
protected _carrierProposedAssignments: CarrierProposedAssignmentsClient | undefined;
|
|
78
81
|
protected _legacyApIs: LegacyApIsClient | undefined;
|
|
79
82
|
protected _documents: DocumentsClient | undefined;
|
|
@@ -103,6 +106,7 @@ export declare class SamsaraClient {
|
|
|
103
106
|
protected _previewApIs: PreviewApIsClient | undefined;
|
|
104
107
|
protected _routeEvents: RouteEventsClient | undefined;
|
|
105
108
|
protected _safety: SafetyClient | undefined;
|
|
109
|
+
protected _safetyScores: SafetyScoresClient | undefined;
|
|
106
110
|
protected _speedingIntervals: SpeedingIntervalsClient | undefined;
|
|
107
111
|
protected _tags: TagsClient | undefined;
|
|
108
112
|
protected _trainingAssignments: TrainingAssignmentsClient | undefined;
|
|
@@ -129,6 +133,7 @@ export declare class SamsaraClient {
|
|
|
129
133
|
get fuelAndEnergy(): FuelAndEnergyClient;
|
|
130
134
|
get driverTrailerAssignments(): DriverTrailerAssignmentsClient;
|
|
131
135
|
get driverQrCodes(): DriverQrCodesClient;
|
|
136
|
+
get carbCtc(): CarbCtcClient;
|
|
132
137
|
get carrierProposedAssignments(): CarrierProposedAssignmentsClient;
|
|
133
138
|
get legacyApIs(): LegacyApIsClient;
|
|
134
139
|
get documents(): DocumentsClient;
|
|
@@ -158,6 +163,7 @@ export declare class SamsaraClient {
|
|
|
158
163
|
get previewApIs(): PreviewApIsClient;
|
|
159
164
|
get routeEvents(): RouteEventsClient;
|
|
160
165
|
get safety(): SafetyClient;
|
|
166
|
+
get safetyScores(): SafetyScoresClient;
|
|
161
167
|
get speedingIntervals(): SpeedingIntervalsClient;
|
|
162
168
|
get tags(): TagsClient;
|
|
163
169
|
get trainingAssignments(): TrainingAssignmentsClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -8,54 +8,56 @@ const Client_js_3 = require("./api/resources/assets/client/Client.js");
|
|
|
8
8
|
const Client_js_4 = require("./api/resources/attributes/client/Client.js");
|
|
9
9
|
const Client_js_5 = require("./api/resources/authTokenForDriver/client/Client.js");
|
|
10
10
|
const Client_js_6 = require("./api/resources/betaApIs/client/Client.js");
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/
|
|
17
|
-
const Client_js_13 = require("./api/resources/
|
|
18
|
-
const Client_js_14 = require("./api/resources/
|
|
19
|
-
const Client_js_15 = require("./api/resources/
|
|
20
|
-
const Client_js_16 = require("./api/resources/
|
|
21
|
-
const Client_js_17 = require("./api/resources/
|
|
22
|
-
const Client_js_18 = require("./api/resources/
|
|
23
|
-
const Client_js_19 = require("./api/resources/
|
|
24
|
-
const Client_js_20 = require("./api/resources/
|
|
25
|
-
const Client_js_21 = require("./api/resources/
|
|
26
|
-
const Client_js_22 = require("./api/resources/
|
|
27
|
-
const Client_js_23 = require("./api/resources/
|
|
28
|
-
const Client_js_24 = require("./api/resources/
|
|
29
|
-
const Client_js_25 = require("./api/resources/
|
|
30
|
-
const Client_js_26 = require("./api/resources/
|
|
31
|
-
const Client_js_27 = require("./api/resources/
|
|
32
|
-
const Client_js_28 = require("./api/resources/
|
|
33
|
-
const Client_js_29 = require("./api/resources/
|
|
34
|
-
const Client_js_30 = require("./api/resources/
|
|
35
|
-
const Client_js_31 = require("./api/resources/
|
|
36
|
-
const Client_js_32 = require("./api/resources/
|
|
37
|
-
const Client_js_33 = require("./api/resources/
|
|
38
|
-
const Client_js_34 = require("./api/resources/
|
|
39
|
-
const Client_js_35 = require("./api/resources/
|
|
40
|
-
const Client_js_36 = require("./api/resources/
|
|
41
|
-
const Client_js_37 = require("./api/resources/
|
|
42
|
-
const Client_js_38 = require("./api/resources/
|
|
43
|
-
const Client_js_39 = require("./api/resources/
|
|
44
|
-
const Client_js_40 = require("./api/resources/
|
|
45
|
-
const Client_js_41 = require("./api/resources/
|
|
46
|
-
const Client_js_42 = require("./api/resources/
|
|
47
|
-
const Client_js_43 = require("./api/resources/
|
|
48
|
-
const Client_js_44 = require("./api/resources/
|
|
49
|
-
const Client_js_45 = require("./api/resources/
|
|
50
|
-
const Client_js_46 = require("./api/resources/
|
|
51
|
-
const Client_js_47 = require("./api/resources/
|
|
52
|
-
const Client_js_48 = require("./api/resources/
|
|
53
|
-
const Client_js_49 = require("./api/resources/
|
|
54
|
-
const Client_js_50 = require("./api/resources/
|
|
55
|
-
const Client_js_51 = require("./api/resources/
|
|
56
|
-
const Client_js_52 = require("./api/resources/
|
|
57
|
-
const Client_js_53 = require("./api/resources/
|
|
58
|
-
const Client_js_54 = require("./api/resources/
|
|
11
|
+
const Client_js_7 = require("./api/resources/carbCtc/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/carrierProposedAssignments/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/coaching/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/contacts/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/documents/client/Client.js");
|
|
16
|
+
const Client_js_12 = require("./api/resources/driverQrCodes/client/Client.js");
|
|
17
|
+
const Client_js_13 = require("./api/resources/drivers/client/Client.js");
|
|
18
|
+
const Client_js_14 = require("./api/resources/driverTrailerAssignments/client/Client.js");
|
|
19
|
+
const Client_js_15 = require("./api/resources/driverVehicleAssignments/client/Client.js");
|
|
20
|
+
const Client_js_16 = require("./api/resources/equipment/client/Client.js");
|
|
21
|
+
const Client_js_17 = require("./api/resources/fleet/client/Client.js");
|
|
22
|
+
const Client_js_18 = require("./api/resources/forms/client/Client.js");
|
|
23
|
+
const Client_js_19 = require("./api/resources/fuelAndEnergy/client/Client.js");
|
|
24
|
+
const Client_js_20 = require("./api/resources/gateways/client/Client.js");
|
|
25
|
+
const Client_js_21 = require("./api/resources/hoursOfService/client/Client.js");
|
|
26
|
+
const Client_js_22 = require("./api/resources/hubs/client/Client.js");
|
|
27
|
+
const Client_js_23 = require("./api/resources/idling/client/Client.js");
|
|
28
|
+
const Client_js_24 = require("./api/resources/ifta/client/Client.js");
|
|
29
|
+
const Client_js_25 = require("./api/resources/industrial/client/Client.js");
|
|
30
|
+
const Client_js_26 = require("./api/resources/issues/client/Client.js");
|
|
31
|
+
const Client_js_27 = require("./api/resources/legacy/client/Client.js");
|
|
32
|
+
const Client_js_28 = require("./api/resources/legacyApIs/client/Client.js");
|
|
33
|
+
const Client_js_29 = require("./api/resources/liveSharingLinks/client/Client.js");
|
|
34
|
+
const Client_js_30 = require("./api/resources/locationAndSpeed/client/Client.js");
|
|
35
|
+
const Client_js_31 = require("./api/resources/maintenance/client/Client.js");
|
|
36
|
+
const Client_js_32 = require("./api/resources/media/client/Client.js");
|
|
37
|
+
const Client_js_33 = require("./api/resources/messages/client/Client.js");
|
|
38
|
+
const Client_js_34 = require("./api/resources/organizationInfo/client/Client.js");
|
|
39
|
+
const Client_js_35 = require("./api/resources/plans/client/Client.js");
|
|
40
|
+
const Client_js_36 = require("./api/resources/previewApIs/client/Client.js");
|
|
41
|
+
const Client_js_37 = require("./api/resources/routeEvents/client/Client.js");
|
|
42
|
+
const Client_js_38 = require("./api/resources/routes/client/Client.js");
|
|
43
|
+
const Client_js_39 = require("./api/resources/safety/client/Client.js");
|
|
44
|
+
const Client_js_40 = require("./api/resources/safetyScores/client/Client.js");
|
|
45
|
+
const Client_js_41 = require("./api/resources/sensors/client/Client.js");
|
|
46
|
+
const Client_js_42 = require("./api/resources/settings/client/Client.js");
|
|
47
|
+
const Client_js_43 = require("./api/resources/speedingIntervals/client/Client.js");
|
|
48
|
+
const Client_js_44 = require("./api/resources/tachographEuOnly/client/Client.js");
|
|
49
|
+
const Client_js_45 = require("./api/resources/tags/client/Client.js");
|
|
50
|
+
const Client_js_46 = require("./api/resources/trailerAssignments/client/Client.js");
|
|
51
|
+
const Client_js_47 = require("./api/resources/trailers/client/Client.js");
|
|
52
|
+
const Client_js_48 = require("./api/resources/trainingAssignments/client/Client.js");
|
|
53
|
+
const Client_js_49 = require("./api/resources/trainingCourses/client/Client.js");
|
|
54
|
+
const Client_js_50 = require("./api/resources/trips/client/Client.js");
|
|
55
|
+
const Client_js_51 = require("./api/resources/users/client/Client.js");
|
|
56
|
+
const Client_js_52 = require("./api/resources/vehicleLocations/client/Client.js");
|
|
57
|
+
const Client_js_53 = require("./api/resources/vehicleStats/client/Client.js");
|
|
58
|
+
const Client_js_54 = require("./api/resources/vehicles/client/Client.js");
|
|
59
|
+
const Client_js_55 = require("./api/resources/webhooks/client/Client.js");
|
|
60
|
+
const Client_js_56 = require("./api/resources/workOrders/client/Client.js");
|
|
59
61
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
60
62
|
class SamsaraClient {
|
|
61
63
|
constructor(options = {}) {
|
|
@@ -79,7 +81,7 @@ class SamsaraClient {
|
|
|
79
81
|
}
|
|
80
82
|
get locationAndSpeed() {
|
|
81
83
|
var _a;
|
|
82
|
-
return ((_a = this._locationAndSpeed) !== null && _a !== void 0 ? _a : (this._locationAndSpeed = new
|
|
84
|
+
return ((_a = this._locationAndSpeed) !== null && _a !== void 0 ? _a : (this._locationAndSpeed = new Client_js_30.LocationAndSpeedClient(this._options)));
|
|
83
85
|
}
|
|
84
86
|
get attributes() {
|
|
85
87
|
var _a;
|
|
@@ -87,51 +89,55 @@ class SamsaraClient {
|
|
|
87
89
|
}
|
|
88
90
|
get media() {
|
|
89
91
|
var _a;
|
|
90
|
-
return ((_a = this._media) !== null && _a !== void 0 ? _a : (this._media = new
|
|
92
|
+
return ((_a = this._media) !== null && _a !== void 0 ? _a : (this._media = new Client_js_32.MediaClient(this._options)));
|
|
91
93
|
}
|
|
92
94
|
get coaching() {
|
|
93
95
|
var _a;
|
|
94
|
-
return ((_a = this._coaching) !== null && _a !== void 0 ? _a : (this._coaching = new
|
|
96
|
+
return ((_a = this._coaching) !== null && _a !== void 0 ? _a : (this._coaching = new Client_js_9.CoachingClient(this._options)));
|
|
95
97
|
}
|
|
96
98
|
get contacts() {
|
|
97
99
|
var _a;
|
|
98
|
-
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new
|
|
100
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_10.ContactsClient(this._options)));
|
|
99
101
|
}
|
|
100
102
|
get maintenance() {
|
|
101
103
|
var _a;
|
|
102
|
-
return ((_a = this._maintenance) !== null && _a !== void 0 ? _a : (this._maintenance = new
|
|
104
|
+
return ((_a = this._maintenance) !== null && _a !== void 0 ? _a : (this._maintenance = new Client_js_31.MaintenanceClient(this._options)));
|
|
103
105
|
}
|
|
104
106
|
get fuelAndEnergy() {
|
|
105
107
|
var _a;
|
|
106
|
-
return ((_a = this._fuelAndEnergy) !== null && _a !== void 0 ? _a : (this._fuelAndEnergy = new
|
|
108
|
+
return ((_a = this._fuelAndEnergy) !== null && _a !== void 0 ? _a : (this._fuelAndEnergy = new Client_js_19.FuelAndEnergyClient(this._options)));
|
|
107
109
|
}
|
|
108
110
|
get driverTrailerAssignments() {
|
|
109
111
|
var _a;
|
|
110
|
-
return ((_a = this._driverTrailerAssignments) !== null && _a !== void 0 ? _a : (this._driverTrailerAssignments = new
|
|
112
|
+
return ((_a = this._driverTrailerAssignments) !== null && _a !== void 0 ? _a : (this._driverTrailerAssignments = new Client_js_14.DriverTrailerAssignmentsClient(this._options)));
|
|
111
113
|
}
|
|
112
114
|
get driverQrCodes() {
|
|
113
115
|
var _a;
|
|
114
|
-
return ((_a = this._driverQrCodes) !== null && _a !== void 0 ? _a : (this._driverQrCodes = new
|
|
116
|
+
return ((_a = this._driverQrCodes) !== null && _a !== void 0 ? _a : (this._driverQrCodes = new Client_js_12.DriverQrCodesClient(this._options)));
|
|
117
|
+
}
|
|
118
|
+
get carbCtc() {
|
|
119
|
+
var _a;
|
|
120
|
+
return ((_a = this._carbCtc) !== null && _a !== void 0 ? _a : (this._carbCtc = new Client_js_7.CarbCtcClient(this._options)));
|
|
115
121
|
}
|
|
116
122
|
get carrierProposedAssignments() {
|
|
117
123
|
var _a;
|
|
118
|
-
return ((_a = this._carrierProposedAssignments) !== null && _a !== void 0 ? _a : (this._carrierProposedAssignments = new
|
|
124
|
+
return ((_a = this._carrierProposedAssignments) !== null && _a !== void 0 ? _a : (this._carrierProposedAssignments = new Client_js_8.CarrierProposedAssignmentsClient(this._options)));
|
|
119
125
|
}
|
|
120
126
|
get legacyApIs() {
|
|
121
127
|
var _a;
|
|
122
|
-
return ((_a = this._legacyApIs) !== null && _a !== void 0 ? _a : (this._legacyApIs = new
|
|
128
|
+
return ((_a = this._legacyApIs) !== null && _a !== void 0 ? _a : (this._legacyApIs = new Client_js_28.LegacyApIsClient(this._options)));
|
|
123
129
|
}
|
|
124
130
|
get documents() {
|
|
125
131
|
var _a;
|
|
126
|
-
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new
|
|
132
|
+
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_js_11.DocumentsClient(this._options)));
|
|
127
133
|
}
|
|
128
134
|
get driverVehicleAssignments() {
|
|
129
135
|
var _a;
|
|
130
|
-
return ((_a = this._driverVehicleAssignments) !== null && _a !== void 0 ? _a : (this._driverVehicleAssignments = new
|
|
136
|
+
return ((_a = this._driverVehicleAssignments) !== null && _a !== void 0 ? _a : (this._driverVehicleAssignments = new Client_js_15.DriverVehicleAssignmentsClient(this._options)));
|
|
131
137
|
}
|
|
132
138
|
get drivers() {
|
|
133
139
|
var _a;
|
|
134
|
-
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new
|
|
140
|
+
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Client_js_13.DriversClient(this._options)));
|
|
135
141
|
}
|
|
136
142
|
get authTokenForDriver() {
|
|
137
143
|
var _a;
|
|
@@ -139,143 +145,147 @@ class SamsaraClient {
|
|
|
139
145
|
}
|
|
140
146
|
get tachographEuOnly() {
|
|
141
147
|
var _a;
|
|
142
|
-
return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new
|
|
148
|
+
return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new Client_js_44.TachographEuOnlyClient(this._options)));
|
|
143
149
|
}
|
|
144
150
|
get equipment() {
|
|
145
151
|
var _a;
|
|
146
|
-
return ((_a = this._equipment) !== null && _a !== void 0 ? _a : (this._equipment = new
|
|
152
|
+
return ((_a = this._equipment) !== null && _a !== void 0 ? _a : (this._equipment = new Client_js_16.EquipmentClient(this._options)));
|
|
147
153
|
}
|
|
148
154
|
get hoursOfService() {
|
|
149
155
|
var _a;
|
|
150
|
-
return ((_a = this._hoursOfService) !== null && _a !== void 0 ? _a : (this._hoursOfService = new
|
|
156
|
+
return ((_a = this._hoursOfService) !== null && _a !== void 0 ? _a : (this._hoursOfService = new Client_js_21.HoursOfServiceClient(this._options)));
|
|
151
157
|
}
|
|
152
158
|
get ifta() {
|
|
153
159
|
var _a;
|
|
154
|
-
return ((_a = this._ifta) !== null && _a !== void 0 ? _a : (this._ifta = new
|
|
160
|
+
return ((_a = this._ifta) !== null && _a !== void 0 ? _a : (this._ifta = new Client_js_24.IftaClient(this._options)));
|
|
155
161
|
}
|
|
156
162
|
get routes() {
|
|
157
163
|
var _a;
|
|
158
|
-
return ((_a = this._routes) !== null && _a !== void 0 ? _a : (this._routes = new
|
|
164
|
+
return ((_a = this._routes) !== null && _a !== void 0 ? _a : (this._routes = new Client_js_38.RoutesClient(this._options)));
|
|
159
165
|
}
|
|
160
166
|
get settings() {
|
|
161
167
|
var _a;
|
|
162
|
-
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new
|
|
168
|
+
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_js_42.SettingsClient(this._options)));
|
|
163
169
|
}
|
|
164
170
|
get trailers() {
|
|
165
171
|
var _a;
|
|
166
|
-
return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new
|
|
172
|
+
return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new Client_js_47.TrailersClient(this._options)));
|
|
167
173
|
}
|
|
168
174
|
get vehicles() {
|
|
169
175
|
var _a;
|
|
170
|
-
return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new
|
|
176
|
+
return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new Client_js_54.VehiclesClient(this._options)));
|
|
171
177
|
}
|
|
172
178
|
get vehicleLocations() {
|
|
173
179
|
var _a;
|
|
174
|
-
return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new
|
|
180
|
+
return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new Client_js_52.VehicleLocationsClient(this._options)));
|
|
175
181
|
}
|
|
176
182
|
get vehicleStats() {
|
|
177
183
|
var _a;
|
|
178
|
-
return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new
|
|
184
|
+
return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new Client_js_53.VehicleStatsClient(this._options)));
|
|
179
185
|
}
|
|
180
186
|
get forms() {
|
|
181
187
|
var _a;
|
|
182
|
-
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new
|
|
188
|
+
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_js_18.FormsClient(this._options)));
|
|
183
189
|
}
|
|
184
190
|
get gateways() {
|
|
185
191
|
var _a;
|
|
186
|
-
return ((_a = this._gateways) !== null && _a !== void 0 ? _a : (this._gateways = new
|
|
192
|
+
return ((_a = this._gateways) !== null && _a !== void 0 ? _a : (this._gateways = new Client_js_20.GatewaysClient(this._options)));
|
|
187
193
|
}
|
|
188
194
|
get hubs() {
|
|
189
195
|
var _a;
|
|
190
|
-
return ((_a = this._hubs) !== null && _a !== void 0 ? _a : (this._hubs = new
|
|
196
|
+
return ((_a = this._hubs) !== null && _a !== void 0 ? _a : (this._hubs = new Client_js_22.HubsClient(this._options)));
|
|
191
197
|
}
|
|
192
198
|
get plans() {
|
|
193
199
|
var _a;
|
|
194
|
-
return ((_a = this._plans) !== null && _a !== void 0 ? _a : (this._plans = new
|
|
200
|
+
return ((_a = this._plans) !== null && _a !== void 0 ? _a : (this._plans = new Client_js_35.PlansClient(this._options)));
|
|
195
201
|
}
|
|
196
202
|
get idling() {
|
|
197
203
|
var _a;
|
|
198
|
-
return ((_a = this._idling) !== null && _a !== void 0 ? _a : (this._idling = new
|
|
204
|
+
return ((_a = this._idling) !== null && _a !== void 0 ? _a : (this._idling = new Client_js_23.IdlingClient(this._options)));
|
|
199
205
|
}
|
|
200
206
|
get industrial() {
|
|
201
207
|
var _a;
|
|
202
|
-
return ((_a = this._industrial) !== null && _a !== void 0 ? _a : (this._industrial = new
|
|
208
|
+
return ((_a = this._industrial) !== null && _a !== void 0 ? _a : (this._industrial = new Client_js_25.IndustrialClient(this._options)));
|
|
203
209
|
}
|
|
204
210
|
get issues() {
|
|
205
211
|
var _a;
|
|
206
|
-
return ((_a = this._issues) !== null && _a !== void 0 ? _a : (this._issues = new
|
|
212
|
+
return ((_a = this._issues) !== null && _a !== void 0 ? _a : (this._issues = new Client_js_26.IssuesClient(this._options)));
|
|
207
213
|
}
|
|
208
214
|
get liveSharingLinks() {
|
|
209
215
|
var _a;
|
|
210
|
-
return ((_a = this._liveSharingLinks) !== null && _a !== void 0 ? _a : (this._liveSharingLinks = new
|
|
216
|
+
return ((_a = this._liveSharingLinks) !== null && _a !== void 0 ? _a : (this._liveSharingLinks = new Client_js_29.LiveSharingLinksClient(this._options)));
|
|
211
217
|
}
|
|
212
218
|
get workOrders() {
|
|
213
219
|
var _a;
|
|
214
|
-
return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new
|
|
220
|
+
return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new Client_js_56.WorkOrdersClient(this._options)));
|
|
215
221
|
}
|
|
216
222
|
get organizationInfo() {
|
|
217
223
|
var _a;
|
|
218
|
-
return ((_a = this._organizationInfo) !== null && _a !== void 0 ? _a : (this._organizationInfo = new
|
|
224
|
+
return ((_a = this._organizationInfo) !== null && _a !== void 0 ? _a : (this._organizationInfo = new Client_js_34.OrganizationInfoClient(this._options)));
|
|
219
225
|
}
|
|
220
226
|
get previewApIs() {
|
|
221
227
|
var _a;
|
|
222
|
-
return ((_a = this._previewApIs) !== null && _a !== void 0 ? _a : (this._previewApIs = new
|
|
228
|
+
return ((_a = this._previewApIs) !== null && _a !== void 0 ? _a : (this._previewApIs = new Client_js_36.PreviewApIsClient(this._options)));
|
|
223
229
|
}
|
|
224
230
|
get routeEvents() {
|
|
225
231
|
var _a;
|
|
226
|
-
return ((_a = this._routeEvents) !== null && _a !== void 0 ? _a : (this._routeEvents = new
|
|
232
|
+
return ((_a = this._routeEvents) !== null && _a !== void 0 ? _a : (this._routeEvents = new Client_js_37.RouteEventsClient(this._options)));
|
|
227
233
|
}
|
|
228
234
|
get safety() {
|
|
229
235
|
var _a;
|
|
230
|
-
return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new
|
|
236
|
+
return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new Client_js_39.SafetyClient(this._options)));
|
|
237
|
+
}
|
|
238
|
+
get safetyScores() {
|
|
239
|
+
var _a;
|
|
240
|
+
return ((_a = this._safetyScores) !== null && _a !== void 0 ? _a : (this._safetyScores = new Client_js_40.SafetyScoresClient(this._options)));
|
|
231
241
|
}
|
|
232
242
|
get speedingIntervals() {
|
|
233
243
|
var _a;
|
|
234
|
-
return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new
|
|
244
|
+
return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new Client_js_43.SpeedingIntervalsClient(this._options)));
|
|
235
245
|
}
|
|
236
246
|
get tags() {
|
|
237
247
|
var _a;
|
|
238
|
-
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new
|
|
248
|
+
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_45.TagsClient(this._options)));
|
|
239
249
|
}
|
|
240
250
|
get trainingAssignments() {
|
|
241
251
|
var _a;
|
|
242
|
-
return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new
|
|
252
|
+
return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new Client_js_48.TrainingAssignmentsClient(this._options)));
|
|
243
253
|
}
|
|
244
254
|
get trainingCourses() {
|
|
245
255
|
var _a;
|
|
246
|
-
return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new
|
|
256
|
+
return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new Client_js_49.TrainingCoursesClient(this._options)));
|
|
247
257
|
}
|
|
248
258
|
get trips() {
|
|
249
259
|
var _a;
|
|
250
|
-
return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new
|
|
260
|
+
return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new Client_js_50.TripsClient(this._options)));
|
|
251
261
|
}
|
|
252
262
|
get users() {
|
|
253
263
|
var _a;
|
|
254
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
264
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_51.UsersClient(this._options)));
|
|
255
265
|
}
|
|
256
266
|
get legacy() {
|
|
257
267
|
var _a;
|
|
258
|
-
return ((_a = this._legacy) !== null && _a !== void 0 ? _a : (this._legacy = new
|
|
268
|
+
return ((_a = this._legacy) !== null && _a !== void 0 ? _a : (this._legacy = new Client_js_27.LegacyClient(this._options)));
|
|
259
269
|
}
|
|
260
270
|
get messages() {
|
|
261
271
|
var _a;
|
|
262
|
-
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new
|
|
272
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_33.MessagesClient(this._options)));
|
|
263
273
|
}
|
|
264
274
|
get trailerAssignments() {
|
|
265
275
|
var _a;
|
|
266
|
-
return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new
|
|
276
|
+
return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new Client_js_46.TrailerAssignmentsClient(this._options)));
|
|
267
277
|
}
|
|
268
278
|
get sensors() {
|
|
269
279
|
var _a;
|
|
270
|
-
return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new
|
|
280
|
+
return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new Client_js_41.SensorsClient(this._options)));
|
|
271
281
|
}
|
|
272
282
|
get webhooks() {
|
|
273
283
|
var _a;
|
|
274
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
284
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_55.WebhooksClient(this._options)));
|
|
275
285
|
}
|
|
276
286
|
get fleet() {
|
|
277
287
|
var _a;
|
|
278
|
-
return ((_a = this._fleet) !== null && _a !== void 0 ? _a : (this._fleet = new
|
|
288
|
+
return ((_a = this._fleet) !== null && _a !== void 0 ? _a : (this._fleet = new Client_js_17.FleetClient(this._options)));
|
|
279
289
|
}
|
|
280
290
|
}
|
|
281
291
|
exports.SamsaraClient = SamsaraClient;
|