@samsarahq/samsara 9.3.0 → 10.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +97 -103
- package/dist/cjs/api/resources/betaApIs/client/Client.js +268 -294
- package/dist/cjs/api/resources/betaApIs/client/requests/DeleteFunctionRequest.d.ts +10 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody.d.ts +14 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.ts +1 -1
- package/dist/cjs/api/resources/betaApIs/client/requests/GetFunctionLogsRequest.d.ts +22 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/drivers/client/Client.js +3 -7
- 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/trailers/client/Client.d.ts +98 -0
- package/dist/cjs/api/resources/trailers/client/Client.js +289 -0
- package/dist/cjs/api/resources/trailers/client/requests/GetTrailerStatsFeedRequest.js +3 -0
- package/dist/cjs/api/resources/trailers/client/requests/GetTrailerStatsHistoryRequest.js +3 -0
- package/dist/cjs/api/resources/trailers/client/requests/GetTrailerStatsSnapshotRequest.js +3 -0
- package/dist/cjs/api/resources/trailers/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionLogEntryResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionLogEntryResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsDeleteFunctionUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionLogsUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/ListDriversResponse.d.ts +2 -2
- package/dist/cjs/api/types/MissingStateResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/PostDriverWorkflowAssignmentResponseDataObjectResponseBody.d.ts +7 -0
- package/dist/cjs/api/types/PostDriverWorkflowAssignmentResponseDataObjectResponseBody.js +3 -0
- package/dist/cjs/api/types/TrailerMovingWithoutPowerDataResponseBody.d.ts +10 -0
- package/dist/cjs/api/types/TrailerMovingWithoutPowerDataResponseBody.js +3 -0
- package/dist/cjs/api/types/VehicleTrailerMismatchDataResponseBody.d.ts +12 -0
- package/dist/cjs/api/types/VehicleTrailerMismatchDataResponseBody.js +3 -0
- package/dist/cjs/api/types/WorkflowIncidentDetailsObjectResponseBody.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +33 -0
- package/dist/cjs/api/types/index.js +33 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +97 -103
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +268 -294
- package/dist/esm/api/resources/betaApIs/client/requests/DeleteFunctionRequest.d.mts +10 -0
- package/dist/esm/api/resources/betaApIs/client/requests/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody.d.mts +14 -0
- package/dist/esm/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.mts +1 -1
- package/dist/esm/api/resources/betaApIs/client/requests/GetFunctionLogsRequest.d.mts +22 -0
- package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/drivers/client/Client.mjs +3 -7
- 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/trailers/client/Client.d.mts +98 -0
- package/dist/esm/api/resources/trailers/client/Client.mjs +289 -0
- package/dist/esm/api/resources/trailers/client/requests/GetTrailerStatsFeedRequest.mjs +2 -0
- package/dist/esm/api/resources/trailers/client/requests/GetTrailerStatsHistoryRequest.mjs +2 -0
- package/dist/esm/api/resources/trailers/client/requests/GetTrailerStatsSnapshotRequest.mjs +2 -0
- package/dist/esm/api/resources/trailers/client/requests/index.d.mts +3 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentResponseBody.d.mts +4 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/DriverWorkflowAssignmentsPostDriverWorkflowAssignmentUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionLogEntryResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionLogEntryResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsDeleteFunctionUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsResponseBody.d.mts +6 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionLogsUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/ListDriversResponse.d.mts +2 -2
- package/dist/esm/api/types/MissingStateResponseBody.d.mts +4 -0
- package/dist/esm/api/types/PostDriverWorkflowAssignmentResponseDataObjectResponseBody.d.mts +7 -0
- package/dist/esm/api/types/PostDriverWorkflowAssignmentResponseDataObjectResponseBody.mjs +2 -0
- package/dist/esm/api/types/TrailerMovingWithoutPowerDataResponseBody.d.mts +10 -0
- package/dist/esm/api/types/TrailerMovingWithoutPowerDataResponseBody.mjs +2 -0
- package/dist/esm/api/types/VehicleTrailerMismatchDataResponseBody.d.mts +12 -0
- package/dist/esm/api/types/VehicleTrailerMismatchDataResponseBody.mjs +2 -0
- package/dist/esm/api/types/WorkflowIncidentDetailsObjectResponseBody.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +33 -0
- package/dist/esm/api/types/index.mjs +33 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +408 -190
- /package/dist/cjs/api/resources/betaApIs/client/requests/{GetTrailerStatsFeedRequest.js → DeleteFunctionRequest.js} +0 -0
- /package/dist/cjs/api/resources/betaApIs/client/requests/{GetTrailerStatsHistoryRequest.js → DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody.js} +0 -0
- /package/dist/cjs/api/resources/betaApIs/client/requests/{GetTrailerStatsSnapshotRequest.js → GetFunctionLogsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{betaApIs → trailers}/client/requests/GetTrailerStatsFeedRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → trailers}/client/requests/GetTrailerStatsHistoryRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → trailers}/client/requests/GetTrailerStatsSnapshotRequest.d.ts +0 -0
- /package/dist/esm/api/resources/betaApIs/client/requests/{GetTrailerStatsFeedRequest.mjs → DeleteFunctionRequest.mjs} +0 -0
- /package/dist/esm/api/resources/betaApIs/client/requests/{GetTrailerStatsHistoryRequest.mjs → DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody.mjs} +0 -0
- /package/dist/esm/api/resources/betaApIs/client/requests/{GetTrailerStatsSnapshotRequest.mjs → GetFunctionLogsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{betaApIs → trailers}/client/requests/GetTrailerStatsFeedRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → trailers}/client/requests/GetTrailerStatsHistoryRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → trailers}/client/requests/GetTrailerStatsSnapshotRequest.d.mts +0 -0
|
@@ -581,295 +581,6 @@ class BetaApIsClient {
|
|
|
581
581
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/beta/fleet/hos/drivers/eld-events");
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
/**
|
|
585
|
-
* Returns the last known stats of all trailers at the given `time`. If no `time` is specified, the current time is used.
|
|
586
|
-
*
|
|
587
|
-
* <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
588
|
-
*
|
|
589
|
-
* To use this endpoint, select **Read Trailer Statistics** under the Trailers 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>
|
|
590
|
-
*
|
|
591
|
-
*
|
|
592
|
-
* **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.
|
|
593
|
-
*
|
|
594
|
-
* @param {Samsara.GetTrailerStatsSnapshotRequest} request
|
|
595
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
596
|
-
*
|
|
597
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
598
|
-
* @throws {@link Samsara.NotFoundError}
|
|
599
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
600
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
601
|
-
* @throws {@link Samsara.InternalServerError}
|
|
602
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
603
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
604
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
605
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
606
|
-
*
|
|
607
|
-
* @example
|
|
608
|
-
* await client.betaApIs.getTrailerStatsSnapshot({
|
|
609
|
-
* types: "types"
|
|
610
|
-
* })
|
|
611
|
-
*/
|
|
612
|
-
getTrailerStatsSnapshot(request, requestOptions) {
|
|
613
|
-
return core.HttpResponsePromise.fromPromise(this.__getTrailerStatsSnapshot(request, requestOptions));
|
|
614
|
-
}
|
|
615
|
-
__getTrailerStatsSnapshot(request, requestOptions) {
|
|
616
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
618
|
-
const { types, tagIds, parentTagIds, after, trailerIds, time } = request;
|
|
619
|
-
const _queryParams = {
|
|
620
|
-
types,
|
|
621
|
-
tagIds,
|
|
622
|
-
parentTagIds,
|
|
623
|
-
after,
|
|
624
|
-
trailerIds,
|
|
625
|
-
time,
|
|
626
|
-
};
|
|
627
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
628
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
629
|
-
const _response = yield core.fetcher({
|
|
630
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "beta/fleet/trailers/stats"),
|
|
631
|
-
method: "GET",
|
|
632
|
-
headers: _headers,
|
|
633
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
634
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
635
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
636
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
637
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
638
|
-
logging: this._options.logging,
|
|
639
|
-
});
|
|
640
|
-
if (_response.ok) {
|
|
641
|
-
return {
|
|
642
|
-
data: _response.body,
|
|
643
|
-
rawResponse: _response.rawResponse,
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
if (_response.error.reason === "status-code") {
|
|
647
|
-
switch (_response.error.statusCode) {
|
|
648
|
-
case 401:
|
|
649
|
-
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
650
|
-
case 404:
|
|
651
|
-
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
652
|
-
case 405:
|
|
653
|
-
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
654
|
-
case 429:
|
|
655
|
-
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
656
|
-
case 500:
|
|
657
|
-
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
658
|
-
case 501:
|
|
659
|
-
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
660
|
-
case 502:
|
|
661
|
-
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
662
|
-
case 503:
|
|
663
|
-
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
664
|
-
case 504:
|
|
665
|
-
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
666
|
-
default:
|
|
667
|
-
throw new errors.SamsaraError({
|
|
668
|
-
statusCode: _response.error.statusCode,
|
|
669
|
-
body: _response.error.body,
|
|
670
|
-
rawResponse: _response.rawResponse,
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/beta/fleet/trailers/stats");
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* Follow a feed of trailer stats.
|
|
679
|
-
*
|
|
680
|
-
* The first call to this endpoint will provide the most recent stats for each trailer and an `endCursor`.
|
|
681
|
-
*
|
|
682
|
-
* Providing the `endCursor` value to the `after` query parameter will fetch all updates since the previous API call.
|
|
683
|
-
*
|
|
684
|
-
* If `hasNextPage` is false, no new data is immediately available. Please wait a minimum of 5 seconds before making a subsequent request.
|
|
685
|
-
*
|
|
686
|
-
* <b>Rate limit:</b> 25 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
687
|
-
*
|
|
688
|
-
* To use this endpoint, select **Read Trailer Statistics** under the Trailers 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>
|
|
689
|
-
*
|
|
690
|
-
*
|
|
691
|
-
* **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.
|
|
692
|
-
*
|
|
693
|
-
* @param {Samsara.GetTrailerStatsFeedRequest} request
|
|
694
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
695
|
-
*
|
|
696
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
697
|
-
* @throws {@link Samsara.NotFoundError}
|
|
698
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
699
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
700
|
-
* @throws {@link Samsara.InternalServerError}
|
|
701
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
702
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
703
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
704
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
705
|
-
*
|
|
706
|
-
* @example
|
|
707
|
-
* await client.betaApIs.getTrailerStatsFeed({
|
|
708
|
-
* types: "types"
|
|
709
|
-
* })
|
|
710
|
-
*/
|
|
711
|
-
getTrailerStatsFeed(request, requestOptions) {
|
|
712
|
-
return core.HttpResponsePromise.fromPromise(this.__getTrailerStatsFeed(request, requestOptions));
|
|
713
|
-
}
|
|
714
|
-
__getTrailerStatsFeed(request, requestOptions) {
|
|
715
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
716
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
717
|
-
const { types, tagIds, parentTagIds, after, trailerIds, decorations } = request;
|
|
718
|
-
const _queryParams = {
|
|
719
|
-
types,
|
|
720
|
-
tagIds,
|
|
721
|
-
parentTagIds,
|
|
722
|
-
after,
|
|
723
|
-
trailerIds,
|
|
724
|
-
decorations,
|
|
725
|
-
};
|
|
726
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
727
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
728
|
-
const _response = yield core.fetcher({
|
|
729
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "beta/fleet/trailers/stats/feed"),
|
|
730
|
-
method: "GET",
|
|
731
|
-
headers: _headers,
|
|
732
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
733
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
734
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
735
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
736
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
737
|
-
logging: this._options.logging,
|
|
738
|
-
});
|
|
739
|
-
if (_response.ok) {
|
|
740
|
-
return {
|
|
741
|
-
data: _response.body,
|
|
742
|
-
rawResponse: _response.rawResponse,
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
if (_response.error.reason === "status-code") {
|
|
746
|
-
switch (_response.error.statusCode) {
|
|
747
|
-
case 401:
|
|
748
|
-
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
749
|
-
case 404:
|
|
750
|
-
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
751
|
-
case 405:
|
|
752
|
-
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
753
|
-
case 429:
|
|
754
|
-
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
755
|
-
case 500:
|
|
756
|
-
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
757
|
-
case 501:
|
|
758
|
-
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
759
|
-
case 502:
|
|
760
|
-
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
761
|
-
case 503:
|
|
762
|
-
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
763
|
-
case 504:
|
|
764
|
-
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
765
|
-
default:
|
|
766
|
-
throw new errors.SamsaraError({
|
|
767
|
-
statusCode: _response.error.statusCode,
|
|
768
|
-
body: _response.error.body,
|
|
769
|
-
rawResponse: _response.rawResponse,
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/beta/fleet/trailers/stats/feed");
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
/**
|
|
777
|
-
* Returns trailer stats during the given time range for all trailers. This can be optionally filtered by tags or specific trailer IDs.
|
|
778
|
-
*
|
|
779
|
-
* <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
780
|
-
*
|
|
781
|
-
* To use this endpoint, select **Read Trailer Statistics** under the Trailers 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>
|
|
782
|
-
*
|
|
783
|
-
*
|
|
784
|
-
* **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.
|
|
785
|
-
*
|
|
786
|
-
* @param {Samsara.GetTrailerStatsHistoryRequest} request
|
|
787
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
788
|
-
*
|
|
789
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
790
|
-
* @throws {@link Samsara.NotFoundError}
|
|
791
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
792
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
793
|
-
* @throws {@link Samsara.InternalServerError}
|
|
794
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
795
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
796
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
797
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
798
|
-
*
|
|
799
|
-
* @example
|
|
800
|
-
* await client.betaApIs.getTrailerStatsHistory({
|
|
801
|
-
* startTime: "startTime",
|
|
802
|
-
* endTime: "endTime",
|
|
803
|
-
* types: "types"
|
|
804
|
-
* })
|
|
805
|
-
*/
|
|
806
|
-
getTrailerStatsHistory(request, requestOptions) {
|
|
807
|
-
return core.HttpResponsePromise.fromPromise(this.__getTrailerStatsHistory(request, requestOptions));
|
|
808
|
-
}
|
|
809
|
-
__getTrailerStatsHistory(request, requestOptions) {
|
|
810
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
811
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
812
|
-
const { startTime, endTime, types, tagIds, parentTagIds, after, trailerIds, decorations } = request;
|
|
813
|
-
const _queryParams = {
|
|
814
|
-
startTime,
|
|
815
|
-
endTime,
|
|
816
|
-
types,
|
|
817
|
-
tagIds,
|
|
818
|
-
parentTagIds,
|
|
819
|
-
after,
|
|
820
|
-
trailerIds,
|
|
821
|
-
decorations,
|
|
822
|
-
};
|
|
823
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
824
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
825
|
-
const _response = yield core.fetcher({
|
|
826
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "beta/fleet/trailers/stats/history"),
|
|
827
|
-
method: "GET",
|
|
828
|
-
headers: _headers,
|
|
829
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
830
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
831
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
832
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
833
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
834
|
-
logging: this._options.logging,
|
|
835
|
-
});
|
|
836
|
-
if (_response.ok) {
|
|
837
|
-
return {
|
|
838
|
-
data: _response.body,
|
|
839
|
-
rawResponse: _response.rawResponse,
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
if (_response.error.reason === "status-code") {
|
|
843
|
-
switch (_response.error.statusCode) {
|
|
844
|
-
case 401:
|
|
845
|
-
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
846
|
-
case 404:
|
|
847
|
-
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
848
|
-
case 405:
|
|
849
|
-
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
850
|
-
case 429:
|
|
851
|
-
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
852
|
-
case 500:
|
|
853
|
-
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
854
|
-
case 501:
|
|
855
|
-
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
856
|
-
case 502:
|
|
857
|
-
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
858
|
-
case 503:
|
|
859
|
-
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
860
|
-
case 504:
|
|
861
|
-
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
862
|
-
default:
|
|
863
|
-
throw new errors.SamsaraError({
|
|
864
|
-
statusCode: _response.error.statusCode,
|
|
865
|
-
body: _response.error.body,
|
|
866
|
-
rawResponse: _response.rawResponse,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/beta/fleet/trailers/stats/history");
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
584
|
/**
|
|
874
585
|
* Update the engine immobilizer state of a vehicle. This requires an engine immobilizer to be installed on the vehicle gateway.
|
|
875
586
|
*
|
|
@@ -898,7 +609,7 @@ class BetaApIsClient {
|
|
|
898
609
|
* id: 1000000,
|
|
899
610
|
* relayStates: [{
|
|
900
611
|
* id: "relay1",
|
|
901
|
-
* isOpen:
|
|
612
|
+
* isOpen: false
|
|
902
613
|
* }]
|
|
903
614
|
* })
|
|
904
615
|
*/
|
|
@@ -1944,6 +1655,93 @@ class BetaApIsClient {
|
|
|
1944
1655
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/fleet/drivers/voice-sign-in/resolve-assignment");
|
|
1945
1656
|
});
|
|
1946
1657
|
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Publish or unpublish a driver app workflow to one or more drivers by their IDs. If a workflow is published to a driver who already has it, or unpublished from a driver who does not have it, the operation is a no-op for that driver.
|
|
1660
|
+
*
|
|
1661
|
+
* <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
1662
|
+
*
|
|
1663
|
+
* To use this endpoint, select **Write Driver App Settings** under the Drivers 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>
|
|
1664
|
+
*
|
|
1665
|
+
*
|
|
1666
|
+
* **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.
|
|
1667
|
+
*
|
|
1668
|
+
* @param {Samsara.DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody} request
|
|
1669
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1670
|
+
*
|
|
1671
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
1672
|
+
* @throws {@link Samsara.NotFoundError}
|
|
1673
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
1674
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
1675
|
+
* @throws {@link Samsara.InternalServerError}
|
|
1676
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
1677
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
1678
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
1679
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
1680
|
+
*
|
|
1681
|
+
* @example
|
|
1682
|
+
* await client.betaApIs.postDriverWorkflowAssignment({
|
|
1683
|
+
* workflowId: "a4db8702-79d5-4396-a717-e301d52ecc11"
|
|
1684
|
+
* })
|
|
1685
|
+
*/
|
|
1686
|
+
postDriverWorkflowAssignment(request, requestOptions) {
|
|
1687
|
+
return core.HttpResponsePromise.fromPromise(this.__postDriverWorkflowAssignment(request, requestOptions));
|
|
1688
|
+
}
|
|
1689
|
+
__postDriverWorkflowAssignment(request, requestOptions) {
|
|
1690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1691
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1692
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1693
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1694
|
+
const _response = yield core.fetcher({
|
|
1695
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "fleet/drivers/workflow-assignments"),
|
|
1696
|
+
method: "POST",
|
|
1697
|
+
headers: _headers,
|
|
1698
|
+
contentType: "application/json",
|
|
1699
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1700
|
+
requestType: "json",
|
|
1701
|
+
body: request,
|
|
1702
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1703
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1704
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1705
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1706
|
+
logging: this._options.logging,
|
|
1707
|
+
});
|
|
1708
|
+
if (_response.ok) {
|
|
1709
|
+
return {
|
|
1710
|
+
data: _response.body,
|
|
1711
|
+
rawResponse: _response.rawResponse,
|
|
1712
|
+
};
|
|
1713
|
+
}
|
|
1714
|
+
if (_response.error.reason === "status-code") {
|
|
1715
|
+
switch (_response.error.statusCode) {
|
|
1716
|
+
case 401:
|
|
1717
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1718
|
+
case 404:
|
|
1719
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1720
|
+
case 405:
|
|
1721
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
1722
|
+
case 429:
|
|
1723
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1724
|
+
case 500:
|
|
1725
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1726
|
+
case 501:
|
|
1727
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
1728
|
+
case 502:
|
|
1729
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1730
|
+
case 503:
|
|
1731
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1732
|
+
case 504:
|
|
1733
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
1734
|
+
default:
|
|
1735
|
+
throw new errors.SamsaraError({
|
|
1736
|
+
statusCode: _response.error.statusCode,
|
|
1737
|
+
body: _response.error.body,
|
|
1738
|
+
rawResponse: _response.rawResponse,
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/fleet/drivers/workflow-assignments");
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1947
1745
|
/**
|
|
1948
1746
|
* Returns the list of vendor categories available for maintenance vendors.
|
|
1949
1747
|
*
|
|
@@ -2475,6 +2273,88 @@ class BetaApIsClient {
|
|
|
2475
2273
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/functions/{name}");
|
|
2476
2274
|
});
|
|
2477
2275
|
}
|
|
2276
|
+
/**
|
|
2277
|
+
* Delete a Function by name. A Function that is currently configured as an action in a workflow config cannot be deleted.
|
|
2278
|
+
*
|
|
2279
|
+
* <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>).
|
|
2280
|
+
*
|
|
2281
|
+
* To use this endpoint, select **Write Functions** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
2282
|
+
*
|
|
2283
|
+
*
|
|
2284
|
+
* **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.
|
|
2285
|
+
*
|
|
2286
|
+
* @param {Samsara.DeleteFunctionRequest} request
|
|
2287
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2288
|
+
*
|
|
2289
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
2290
|
+
* @throws {@link Samsara.NotFoundError}
|
|
2291
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2292
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
2293
|
+
* @throws {@link Samsara.InternalServerError}
|
|
2294
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
2295
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
2296
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2297
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2298
|
+
*
|
|
2299
|
+
* @example
|
|
2300
|
+
* await client.betaApIs.deleteFunction({
|
|
2301
|
+
* name: "name"
|
|
2302
|
+
* })
|
|
2303
|
+
*/
|
|
2304
|
+
deleteFunction(request, requestOptions) {
|
|
2305
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteFunction(request, requestOptions));
|
|
2306
|
+
}
|
|
2307
|
+
__deleteFunction(request, requestOptions) {
|
|
2308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2309
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2310
|
+
const { name } = request;
|
|
2311
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2312
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2313
|
+
const _response = yield core.fetcher({
|
|
2314
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, `functions/${core.url.encodePathParam(name)}`),
|
|
2315
|
+
method: "DELETE",
|
|
2316
|
+
headers: _headers,
|
|
2317
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
2318
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
2319
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
2320
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2321
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
2322
|
+
logging: this._options.logging,
|
|
2323
|
+
});
|
|
2324
|
+
if (_response.ok) {
|
|
2325
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
2326
|
+
}
|
|
2327
|
+
if (_response.error.reason === "status-code") {
|
|
2328
|
+
switch (_response.error.statusCode) {
|
|
2329
|
+
case 401:
|
|
2330
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
2331
|
+
case 404:
|
|
2332
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
2333
|
+
case 405:
|
|
2334
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
2335
|
+
case 429:
|
|
2336
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
2337
|
+
case 500:
|
|
2338
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
2339
|
+
case 501:
|
|
2340
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
2341
|
+
case 502:
|
|
2342
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
2343
|
+
case 503:
|
|
2344
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
2345
|
+
case 504:
|
|
2346
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
2347
|
+
default:
|
|
2348
|
+
throw new errors.SamsaraError({
|
|
2349
|
+
statusCode: _response.error.statusCode,
|
|
2350
|
+
body: _response.error.body,
|
|
2351
|
+
rawResponse: _response.rawResponse,
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/functions/{name}");
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2478
2358
|
/**
|
|
2479
2359
|
* Update an existing Function's description and configuration. The request must include `lastUpdateTimestampMs`, which is the timestamp value obtained from a previous create or get response. The response includes a URL (`uploadPutUrl`) for uploading new code. After uploading, call `POST /functions/{name}/deploy` for the changes to be applied.
|
|
2480
2360
|
*
|
|
@@ -2649,6 +2529,100 @@ class BetaApIsClient {
|
|
|
2649
2529
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/functions/{name}/deploy");
|
|
2650
2530
|
});
|
|
2651
2531
|
}
|
|
2532
|
+
/**
|
|
2533
|
+
* Retrieve paginated log entries for a specific Function within a given time range. Logs are produced during Function executions and can be filtered by text content.
|
|
2534
|
+
*
|
|
2535
|
+
* <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>).
|
|
2536
|
+
*
|
|
2537
|
+
* To use this endpoint, select **Read Functions** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
|
|
2538
|
+
*
|
|
2539
|
+
*
|
|
2540
|
+
* **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.
|
|
2541
|
+
*
|
|
2542
|
+
* @param {Samsara.GetFunctionLogsRequest} request
|
|
2543
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2544
|
+
*
|
|
2545
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
2546
|
+
* @throws {@link Samsara.NotFoundError}
|
|
2547
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2548
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
2549
|
+
* @throws {@link Samsara.InternalServerError}
|
|
2550
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
2551
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
2552
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2553
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2554
|
+
*
|
|
2555
|
+
* @example
|
|
2556
|
+
* await client.betaApIs.getFunctionLogs({
|
|
2557
|
+
* name: "name",
|
|
2558
|
+
* startTime: "2024-01-15T09:30:00Z",
|
|
2559
|
+
* endTime: "2024-01-15T09:30:00Z"
|
|
2560
|
+
* })
|
|
2561
|
+
*/
|
|
2562
|
+
getFunctionLogs(request, requestOptions) {
|
|
2563
|
+
return core.HttpResponsePromise.fromPromise(this.__getFunctionLogs(request, requestOptions));
|
|
2564
|
+
}
|
|
2565
|
+
__getFunctionLogs(request, requestOptions) {
|
|
2566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2567
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2568
|
+
const { name, startTime, endTime, after, limit, filterText } = request;
|
|
2569
|
+
const _queryParams = {
|
|
2570
|
+
startTime,
|
|
2571
|
+
endTime,
|
|
2572
|
+
after,
|
|
2573
|
+
limit,
|
|
2574
|
+
filterText,
|
|
2575
|
+
};
|
|
2576
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2577
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2578
|
+
const _response = yield core.fetcher({
|
|
2579
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, `functions/${core.url.encodePathParam(name)}/logs`),
|
|
2580
|
+
method: "GET",
|
|
2581
|
+
headers: _headers,
|
|
2582
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
2583
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
2584
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
2585
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2586
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
2587
|
+
logging: this._options.logging,
|
|
2588
|
+
});
|
|
2589
|
+
if (_response.ok) {
|
|
2590
|
+
return {
|
|
2591
|
+
data: _response.body,
|
|
2592
|
+
rawResponse: _response.rawResponse,
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
if (_response.error.reason === "status-code") {
|
|
2596
|
+
switch (_response.error.statusCode) {
|
|
2597
|
+
case 401:
|
|
2598
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
2599
|
+
case 404:
|
|
2600
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
2601
|
+
case 405:
|
|
2602
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
2603
|
+
case 429:
|
|
2604
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
2605
|
+
case 500:
|
|
2606
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
2607
|
+
case 501:
|
|
2608
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
2609
|
+
case 502:
|
|
2610
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
2611
|
+
case 503:
|
|
2612
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
2613
|
+
case 504:
|
|
2614
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
2615
|
+
default:
|
|
2616
|
+
throw new errors.SamsaraError({
|
|
2617
|
+
statusCode: _response.error.statusCode,
|
|
2618
|
+
body: _response.error.body,
|
|
2619
|
+
rawResponse: _response.rawResponse,
|
|
2620
|
+
});
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/functions/{name}/logs");
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2652
2626
|
/**
|
|
2653
2627
|
* Start an asynchronous run for the specified Function. This endpoint allows you to override parameters available at runtime.
|
|
2654
2628
|
*
|
|
@@ -3825,7 +3799,7 @@ class BetaApIsClient {
|
|
|
3825
3799
|
/**
|
|
3826
3800
|
* Ingest new readings. This endpoint allows the ingestion of batches of readings.
|
|
3827
3801
|
*
|
|
3828
|
-
* Ingesting readings is only supported for assets created using the POST /assets API endpoint with readingsIngestionEnabled set to true. To see a full list of readings available for ingestion use the GET readings definitions API. When ingesting location data, the readingID 'location' must be used and the value object must contain at least the following fields: 'speed', 'latitude', 'longitude'.
|
|
3802
|
+
* Ingesting readings is only supported for assets created using the POST /assets API endpoint with readingsIngestionEnabled set to true. To see a full list of readings available for ingestion use the GET readings definitions API. When ingesting location data, the readingID 'location' must be used and the value object must contain at least the following fields: 'speed', 'latitude', 'longitude'. Related guide: [Readings](https://developers.samsara.com/docs/readings).
|
|
3829
3803
|
*
|
|
3830
3804
|
* <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
3831
3805
|
*
|
|
@@ -3917,7 +3891,7 @@ class BetaApIsClient {
|
|
|
3917
3891
|
});
|
|
3918
3892
|
}
|
|
3919
3893
|
/**
|
|
3920
|
-
* An introspection endpoint for discovering the set of readings including their name, description, data type, unit, and other metadata.
|
|
3894
|
+
* An introspection endpoint for discovering the set of readings including their name, description, data type, unit, and other metadata. Related guide: [Readings](https://developers.samsara.com/docs/readings).
|
|
3921
3895
|
*
|
|
3922
3896
|
* <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
3923
3897
|
*
|
|
@@ -4005,7 +3979,7 @@ class BetaApIsClient {
|
|
|
4005
3979
|
});
|
|
4006
3980
|
}
|
|
4007
3981
|
/**
|
|
4008
|
-
* Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime.
|
|
3982
|
+
* Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime. Related guide: [Readings](https://developers.samsara.com/docs/readings).
|
|
4009
3983
|
*
|
|
4010
3984
|
* <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
4011
3985
|
*
|
|
@@ -4102,7 +4076,7 @@ class BetaApIsClient {
|
|
|
4102
4076
|
});
|
|
4103
4077
|
}
|
|
4104
4078
|
/**
|
|
4105
|
-
* An endpoint to get the last value of a reading for a set of entities at the specified time.
|
|
4079
|
+
* An endpoint to get the last value of a reading for a set of entities at the specified time. Related guide: [Readings](https://developers.samsara.com/docs/readings).
|
|
4106
4080
|
*
|
|
4107
4081
|
* <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
4108
4082
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* workflowId: "a4db8702-79d5-4396-a717-e301d52ecc11"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface DriverWorkflowAssignmentsPostDriverWorkflowAssignmentRequestBody {
|
|
8
|
+
/** List of driver IDs to publish the workflow to. If a driver already has the workflow, the operation is a no-op for that driver. */
|
|
9
|
+
driverIdsToPublish?: string[];
|
|
10
|
+
/** List of driver IDs to unpublish the workflow from. If a driver does not have the workflow, the operation is a no-op for that driver. */
|
|
11
|
+
driverIdsToUnpublish?: string[];
|
|
12
|
+
/** The UUID of the workflow to publish. */
|
|
13
|
+
workflowId: string;
|
|
14
|
+
}
|