@samsarahq/samsara 8.1.2 → 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 +3 -0
- package/dist/cjs/Client.js +37 -32
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +1 -189
- package/dist/cjs/api/resources/betaApIs/client/Client.js +1 -556
- 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 -6
- package/dist/cjs/api/resources/betaApIs/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/betaApIs/types/index.js +0 -2
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +5 -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/{betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.js → safetyScores/client/requests/index.js} +0 -1
- 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 +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +1 -189
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +1 -556
- 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 -6
- package/dist/esm/api/resources/betaApIs/types/index.d.mts +0 -2
- package/dist/esm/api/resources/betaApIs/types/index.mjs +0 -2
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -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 +1812 -1957
- 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 → 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 → 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
|
@@ -37,6 +37,7 @@ import { PreviewApIsClient } from "./api/resources/previewApIs/client/Client.js"
|
|
|
37
37
|
import { RouteEventsClient } from "./api/resources/routeEvents/client/Client.js";
|
|
38
38
|
import { RoutesClient } from "./api/resources/routes/client/Client.js";
|
|
39
39
|
import { SafetyClient } from "./api/resources/safety/client/Client.js";
|
|
40
|
+
import { SafetyScoresClient } from "./api/resources/safetyScores/client/Client.js";
|
|
40
41
|
import { SensorsClient } from "./api/resources/sensors/client/Client.js";
|
|
41
42
|
import { SettingsClient } from "./api/resources/settings/client/Client.js";
|
|
42
43
|
import { SpeedingIntervalsClient } from "./api/resources/speedingIntervals/client/Client.js";
|
|
@@ -105,6 +106,7 @@ export declare class SamsaraClient {
|
|
|
105
106
|
protected _previewApIs: PreviewApIsClient | undefined;
|
|
106
107
|
protected _routeEvents: RouteEventsClient | undefined;
|
|
107
108
|
protected _safety: SafetyClient | undefined;
|
|
109
|
+
protected _safetyScores: SafetyScoresClient | undefined;
|
|
108
110
|
protected _speedingIntervals: SpeedingIntervalsClient | undefined;
|
|
109
111
|
protected _tags: TagsClient | undefined;
|
|
110
112
|
protected _trainingAssignments: TrainingAssignmentsClient | undefined;
|
|
@@ -161,6 +163,7 @@ export declare class SamsaraClient {
|
|
|
161
163
|
get previewApIs(): PreviewApIsClient;
|
|
162
164
|
get routeEvents(): RouteEventsClient;
|
|
163
165
|
get safety(): SafetyClient;
|
|
166
|
+
get safetyScores(): SafetyScoresClient;
|
|
164
167
|
get speedingIntervals(): SpeedingIntervalsClient;
|
|
165
168
|
get tags(): TagsClient;
|
|
166
169
|
get trainingAssignments(): TrainingAssignmentsClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -41,22 +41,23 @@ const Client_js_36 = require("./api/resources/previewApIs/client/Client.js");
|
|
|
41
41
|
const Client_js_37 = require("./api/resources/routeEvents/client/Client.js");
|
|
42
42
|
const Client_js_38 = require("./api/resources/routes/client/Client.js");
|
|
43
43
|
const Client_js_39 = require("./api/resources/safety/client/Client.js");
|
|
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/
|
|
59
|
-
const Client_js_55 = require("./api/resources/
|
|
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");
|
|
60
61
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
61
62
|
class SamsaraClient {
|
|
62
63
|
constructor(options = {}) {
|
|
@@ -144,7 +145,7 @@ class SamsaraClient {
|
|
|
144
145
|
}
|
|
145
146
|
get tachographEuOnly() {
|
|
146
147
|
var _a;
|
|
147
|
-
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)));
|
|
148
149
|
}
|
|
149
150
|
get equipment() {
|
|
150
151
|
var _a;
|
|
@@ -164,23 +165,23 @@ class SamsaraClient {
|
|
|
164
165
|
}
|
|
165
166
|
get settings() {
|
|
166
167
|
var _a;
|
|
167
|
-
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)));
|
|
168
169
|
}
|
|
169
170
|
get trailers() {
|
|
170
171
|
var _a;
|
|
171
|
-
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)));
|
|
172
173
|
}
|
|
173
174
|
get vehicles() {
|
|
174
175
|
var _a;
|
|
175
|
-
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)));
|
|
176
177
|
}
|
|
177
178
|
get vehicleLocations() {
|
|
178
179
|
var _a;
|
|
179
|
-
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)));
|
|
180
181
|
}
|
|
181
182
|
get vehicleStats() {
|
|
182
183
|
var _a;
|
|
183
|
-
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)));
|
|
184
185
|
}
|
|
185
186
|
get forms() {
|
|
186
187
|
var _a;
|
|
@@ -216,7 +217,7 @@ class SamsaraClient {
|
|
|
216
217
|
}
|
|
217
218
|
get workOrders() {
|
|
218
219
|
var _a;
|
|
219
|
-
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)));
|
|
220
221
|
}
|
|
221
222
|
get organizationInfo() {
|
|
222
223
|
var _a;
|
|
@@ -234,29 +235,33 @@ class SamsaraClient {
|
|
|
234
235
|
var _a;
|
|
235
236
|
return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new Client_js_39.SafetyClient(this._options)));
|
|
236
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)));
|
|
241
|
+
}
|
|
237
242
|
get speedingIntervals() {
|
|
238
243
|
var _a;
|
|
239
|
-
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)));
|
|
240
245
|
}
|
|
241
246
|
get tags() {
|
|
242
247
|
var _a;
|
|
243
|
-
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)));
|
|
244
249
|
}
|
|
245
250
|
get trainingAssignments() {
|
|
246
251
|
var _a;
|
|
247
|
-
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)));
|
|
248
253
|
}
|
|
249
254
|
get trainingCourses() {
|
|
250
255
|
var _a;
|
|
251
|
-
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)));
|
|
252
257
|
}
|
|
253
258
|
get trips() {
|
|
254
259
|
var _a;
|
|
255
|
-
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)));
|
|
256
261
|
}
|
|
257
262
|
get users() {
|
|
258
263
|
var _a;
|
|
259
|
-
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)));
|
|
260
265
|
}
|
|
261
266
|
get legacy() {
|
|
262
267
|
var _a;
|
|
@@ -268,15 +273,15 @@ class SamsaraClient {
|
|
|
268
273
|
}
|
|
269
274
|
get trailerAssignments() {
|
|
270
275
|
var _a;
|
|
271
|
-
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)));
|
|
272
277
|
}
|
|
273
278
|
get sensors() {
|
|
274
279
|
var _a;
|
|
275
|
-
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)));
|
|
276
281
|
}
|
|
277
282
|
get webhooks() {
|
|
278
283
|
var _a;
|
|
279
|
-
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)));
|
|
280
285
|
}
|
|
281
286
|
get fleet() {
|
|
282
287
|
var _a;
|
|
@@ -307,7 +307,7 @@ export declare class BetaApIsClient {
|
|
|
307
307
|
* id: 1000000,
|
|
308
308
|
* relayStates: [{
|
|
309
309
|
* id: "relay1",
|
|
310
|
-
* isOpen:
|
|
310
|
+
* isOpen: false
|
|
311
311
|
* }]
|
|
312
312
|
* })
|
|
313
313
|
*/
|
|
@@ -1976,192 +1976,4 @@ export declare class BetaApIsClient {
|
|
|
1976
1976
|
*/
|
|
1977
1977
|
getRidershipRouteSetup(request: Samsara.GetRidershipRouteSetupRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.RidershipRouteSetupsGetRidershipRouteSetupResponseBody>;
|
|
1978
1978
|
private __getRidershipRouteSetup;
|
|
1979
|
-
/**
|
|
1980
|
-
* Get safety scores and overall risk factors for drivers.
|
|
1981
|
-
*
|
|
1982
|
-
* <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>).
|
|
1983
|
-
*
|
|
1984
|
-
* To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
|
|
1985
|
-
*
|
|
1986
|
-
*
|
|
1987
|
-
* **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.
|
|
1988
|
-
*
|
|
1989
|
-
* @param {Samsara.GetDriverSafetyScoresRequest} request
|
|
1990
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1991
|
-
*
|
|
1992
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
1993
|
-
* @throws {@link Samsara.NotFoundError}
|
|
1994
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
1995
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
1996
|
-
* @throws {@link Samsara.InternalServerError}
|
|
1997
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
1998
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
1999
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2000
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2001
|
-
*
|
|
2002
|
-
* @example
|
|
2003
|
-
* await client.betaApIs.getDriverSafetyScores({
|
|
2004
|
-
* endTime: "endTime",
|
|
2005
|
-
* startTime: "startTime"
|
|
2006
|
-
* })
|
|
2007
|
-
*/
|
|
2008
|
-
getDriverSafetyScores(request: Samsara.GetDriverSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetDriverSafetyScoresResponseBody>;
|
|
2009
|
-
private __getDriverSafetyScores;
|
|
2010
|
-
/**
|
|
2011
|
-
* Get trips contributing to a driver's safety score, and risk factors in each trip.
|
|
2012
|
-
*
|
|
2013
|
-
* <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>).
|
|
2014
|
-
*
|
|
2015
|
-
* To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
|
|
2016
|
-
*
|
|
2017
|
-
*
|
|
2018
|
-
* **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.
|
|
2019
|
-
*
|
|
2020
|
-
* @param {Samsara.GetDriverSafetyScoreTripsRequest} request
|
|
2021
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2022
|
-
*
|
|
2023
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
2024
|
-
* @throws {@link Samsara.NotFoundError}
|
|
2025
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2026
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
2027
|
-
* @throws {@link Samsara.InternalServerError}
|
|
2028
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
2029
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
2030
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2031
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2032
|
-
*
|
|
2033
|
-
* @example
|
|
2034
|
-
* await client.betaApIs.getDriverSafetyScoreTrips({
|
|
2035
|
-
* endTime: "endTime",
|
|
2036
|
-
* startTime: "startTime"
|
|
2037
|
-
* })
|
|
2038
|
-
*/
|
|
2039
|
-
getDriverSafetyScoreTrips(request: Samsara.GetDriverSafetyScoreTripsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetDriverSafetyScoreTripsResponseBody>;
|
|
2040
|
-
private __getDriverSafetyScoreTrips;
|
|
2041
|
-
/**
|
|
2042
|
-
* Get a combined safety score and risk factors for a set of tags.
|
|
2043
|
-
*
|
|
2044
|
-
* <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>).
|
|
2045
|
-
*
|
|
2046
|
-
* To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
|
|
2047
|
-
*
|
|
2048
|
-
*
|
|
2049
|
-
* **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.
|
|
2050
|
-
*
|
|
2051
|
-
* @param {Samsara.GetTagGroupSafetyScoresRequest} request
|
|
2052
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2053
|
-
*
|
|
2054
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
2055
|
-
* @throws {@link Samsara.NotFoundError}
|
|
2056
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2057
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
2058
|
-
* @throws {@link Samsara.InternalServerError}
|
|
2059
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
2060
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
2061
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2062
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2063
|
-
*
|
|
2064
|
-
* @example
|
|
2065
|
-
* await client.betaApIs.getTagGroupSafetyScores({
|
|
2066
|
-
* endTime: "endTime",
|
|
2067
|
-
* startTime: "startTime",
|
|
2068
|
-
* scoreType: "driver"
|
|
2069
|
-
* })
|
|
2070
|
-
*/
|
|
2071
|
-
getTagGroupSafetyScores(request: Samsara.GetTagGroupSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetTagGroupSafetyScoresResponseBody>;
|
|
2072
|
-
private __getTagGroupSafetyScores;
|
|
2073
|
-
/**
|
|
2074
|
-
* Get safety scores and overall risk factors for tags.
|
|
2075
|
-
*
|
|
2076
|
-
* <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>).
|
|
2077
|
-
*
|
|
2078
|
-
* To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
|
|
2079
|
-
*
|
|
2080
|
-
*
|
|
2081
|
-
* **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.
|
|
2082
|
-
*
|
|
2083
|
-
* @param {Samsara.GetTagSafetyScoresRequest} request
|
|
2084
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2085
|
-
*
|
|
2086
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
2087
|
-
* @throws {@link Samsara.NotFoundError}
|
|
2088
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2089
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
2090
|
-
* @throws {@link Samsara.InternalServerError}
|
|
2091
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
2092
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
2093
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2094
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2095
|
-
*
|
|
2096
|
-
* @example
|
|
2097
|
-
* await client.betaApIs.getTagSafetyScores({
|
|
2098
|
-
* endTime: "endTime",
|
|
2099
|
-
* startTime: "startTime",
|
|
2100
|
-
* scoreType: "driver"
|
|
2101
|
-
* })
|
|
2102
|
-
*/
|
|
2103
|
-
getTagSafetyScores(request: Samsara.GetTagSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetTagSafetyScoresResponseBody>;
|
|
2104
|
-
private __getTagSafetyScores;
|
|
2105
|
-
/**
|
|
2106
|
-
* Get safety scores and overall risk factors for vehicles.
|
|
2107
|
-
*
|
|
2108
|
-
* <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>).
|
|
2109
|
-
*
|
|
2110
|
-
* To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
|
|
2111
|
-
*
|
|
2112
|
-
*
|
|
2113
|
-
* **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.
|
|
2114
|
-
*
|
|
2115
|
-
* @param {Samsara.GetVehicleSafetyScoresRequest} request
|
|
2116
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2117
|
-
*
|
|
2118
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
2119
|
-
* @throws {@link Samsara.NotFoundError}
|
|
2120
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2121
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
2122
|
-
* @throws {@link Samsara.InternalServerError}
|
|
2123
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
2124
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
2125
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2126
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2127
|
-
*
|
|
2128
|
-
* @example
|
|
2129
|
-
* await client.betaApIs.getVehicleSafetyScores({
|
|
2130
|
-
* endTime: "endTime",
|
|
2131
|
-
* startTime: "startTime"
|
|
2132
|
-
* })
|
|
2133
|
-
*/
|
|
2134
|
-
getVehicleSafetyScores(request: Samsara.GetVehicleSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetVehicleSafetyScoresResponseBody>;
|
|
2135
|
-
private __getVehicleSafetyScores;
|
|
2136
|
-
/**
|
|
2137
|
-
* Get trips contributing to a vehicle's safety score, and risk factors in each trip.
|
|
2138
|
-
*
|
|
2139
|
-
* <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>).
|
|
2140
|
-
*
|
|
2141
|
-
* To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
|
|
2142
|
-
*
|
|
2143
|
-
*
|
|
2144
|
-
* **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.
|
|
2145
|
-
*
|
|
2146
|
-
* @param {Samsara.GetVehicleSafetyScoreTripsRequest} request
|
|
2147
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2148
|
-
*
|
|
2149
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
2150
|
-
* @throws {@link Samsara.NotFoundError}
|
|
2151
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2152
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
2153
|
-
* @throws {@link Samsara.InternalServerError}
|
|
2154
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
2155
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
2156
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2157
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2158
|
-
*
|
|
2159
|
-
* @example
|
|
2160
|
-
* await client.betaApIs.getVehicleSafetyScoreTrips({
|
|
2161
|
-
* endTime: "endTime",
|
|
2162
|
-
* startTime: "startTime"
|
|
2163
|
-
* })
|
|
2164
|
-
*/
|
|
2165
|
-
getVehicleSafetyScoreTrips(request: Samsara.GetVehicleSafetyScoreTripsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetVehicleSafetyScoreTripsResponseBody>;
|
|
2166
|
-
private __getVehicleSafetyScoreTrips;
|
|
2167
1979
|
}
|