@samsarahq/samsara 9.0.0 → 9.1.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/api/resources/betaApIs/client/Client.d.ts +28 -0
- package/dist/cjs/api/resources/betaApIs/client/Client.js +90 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.ts +30 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.ts +30 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.d.ts +16 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.js +3 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/EntityListTachographLiveDataTypeResponseBody.d.ts +67 -0
- package/dist/cjs/api/types/EntityListTachographLiveDataTypeResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/index.d.ts +11 -0
- package/dist/cjs/api/types/index.js +11 -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 +28 -0
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +90 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.mts +30 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.mts +30 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.d.mts +16 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.mjs +2 -0
- package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/EntityListTachographLiveDataTypeResponseBody.d.mts +67 -0
- package/dist/esm/api/types/EntityListTachographLiveDataTypeResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.d.mts +6 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +11 -0
- package/dist/esm/api/types/index.mjs +11 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +70 -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": "9.
|
|
48
|
-
"User-Agent": "@samsarahq/samsara/9.
|
|
47
|
+
"X-Fern-SDK-Version": "9.1.0",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/9.1.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",
|
|
@@ -699,6 +699,34 @@ export declare class BetaApIsClient {
|
|
|
699
699
|
*/
|
|
700
700
|
listMaintenanceVendors(request?: Samsara.ListMaintenanceVendorsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.MaintenanceVendorsListMaintenanceVendorsResponseBody>;
|
|
701
701
|
private __listMaintenanceVendors;
|
|
702
|
+
/**
|
|
703
|
+
* Returns the latest live tachograph data for drivers, including working state and driving rest times, sourced from real-time telemetry.
|
|
704
|
+
*
|
|
705
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
706
|
+
*
|
|
707
|
+
* To use this endpoint, select **Read Tachograph (EU)** under the Compliance 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>
|
|
708
|
+
*
|
|
709
|
+
*
|
|
710
|
+
* **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.
|
|
711
|
+
*
|
|
712
|
+
* @param {Samsara.ListTachographLiveDataRequest} request
|
|
713
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
714
|
+
*
|
|
715
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
716
|
+
* @throws {@link Samsara.NotFoundError}
|
|
717
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
718
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
719
|
+
* @throws {@link Samsara.InternalServerError}
|
|
720
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
721
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
722
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
723
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
724
|
+
*
|
|
725
|
+
* @example
|
|
726
|
+
* await client.betaApIs.listTachographLiveData()
|
|
727
|
+
*/
|
|
728
|
+
listTachographLiveData(request?: Samsara.ListTachographLiveDataRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody>;
|
|
729
|
+
private __listTachographLiveData;
|
|
702
730
|
/**
|
|
703
731
|
* Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
|
|
704
732
|
*
|
|
@@ -2118,6 +2118,96 @@ class BetaApIsClient {
|
|
|
2118
2118
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/fleet/maintenance/vendors");
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
|
+
/**
|
|
2122
|
+
* Returns the latest live tachograph data for drivers, including working state and driving rest times, sourced from real-time telemetry.
|
|
2123
|
+
*
|
|
2124
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
2125
|
+
*
|
|
2126
|
+
* To use this endpoint, select **Read Tachograph (EU)** under the Compliance 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>
|
|
2127
|
+
*
|
|
2128
|
+
*
|
|
2129
|
+
* **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.
|
|
2130
|
+
*
|
|
2131
|
+
* @param {Samsara.ListTachographLiveDataRequest} request
|
|
2132
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2133
|
+
*
|
|
2134
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
2135
|
+
* @throws {@link Samsara.NotFoundError}
|
|
2136
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
2137
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
2138
|
+
* @throws {@link Samsara.InternalServerError}
|
|
2139
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
2140
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
2141
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
2142
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
2143
|
+
*
|
|
2144
|
+
* @example
|
|
2145
|
+
* await client.betaApIs.listTachographLiveData()
|
|
2146
|
+
*/
|
|
2147
|
+
listTachographLiveData(request = {}, requestOptions) {
|
|
2148
|
+
return core.HttpResponsePromise.fromPromise(this.__listTachographLiveData(request, requestOptions));
|
|
2149
|
+
}
|
|
2150
|
+
__listTachographLiveData() {
|
|
2151
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
2152
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2153
|
+
const { driverIds, vehicleIds, startTime, after, limit } = request;
|
|
2154
|
+
const _queryParams = {
|
|
2155
|
+
driverIds,
|
|
2156
|
+
vehicleIds,
|
|
2157
|
+
startTime,
|
|
2158
|
+
after,
|
|
2159
|
+
limit,
|
|
2160
|
+
};
|
|
2161
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2162
|
+
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);
|
|
2163
|
+
const _response = yield core.fetcher({
|
|
2164
|
+
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/tachograph-live-data/latest"),
|
|
2165
|
+
method: "GET",
|
|
2166
|
+
headers: _headers,
|
|
2167
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
2168
|
+
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,
|
|
2169
|
+
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,
|
|
2170
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2171
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
2172
|
+
logging: this._options.logging,
|
|
2173
|
+
});
|
|
2174
|
+
if (_response.ok) {
|
|
2175
|
+
return {
|
|
2176
|
+
data: _response.body,
|
|
2177
|
+
rawResponse: _response.rawResponse,
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
if (_response.error.reason === "status-code") {
|
|
2181
|
+
switch (_response.error.statusCode) {
|
|
2182
|
+
case 401:
|
|
2183
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
2184
|
+
case 404:
|
|
2185
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
2186
|
+
case 405:
|
|
2187
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
2188
|
+
case 429:
|
|
2189
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
2190
|
+
case 500:
|
|
2191
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
2192
|
+
case 501:
|
|
2193
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
2194
|
+
case 502:
|
|
2195
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
2196
|
+
case 503:
|
|
2197
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
2198
|
+
case 504:
|
|
2199
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
2200
|
+
default:
|
|
2201
|
+
throw new errors.SamsaraError({
|
|
2202
|
+
statusCode: _response.error.statusCode,
|
|
2203
|
+
body: _response.error.body,
|
|
2204
|
+
rawResponse: _response.rawResponse,
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/fleet/tachograph-live-data/latest");
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2121
2211
|
/**
|
|
2122
2212
|
* Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
|
|
2123
2213
|
*
|
|
@@ -232,6 +232,36 @@ export interface GetReadingsHistoryRequest {
|
|
|
232
232
|
*
|
|
233
233
|
* </details>
|
|
234
234
|
*
|
|
235
|
+
* <details>
|
|
236
|
+
* <summary><strong>tireCondition</strong></summary>
|
|
237
|
+
*
|
|
238
|
+
* * `axle1tirefromleft1pressure` (Axle 1 Left Outer Tire Pressure): Pressure of the left outer tire on axle 1. (kilopascal)
|
|
239
|
+
* * `axle1tirefromleft1temperature` (Axle 1 Left Outer Tire Temperature): Temperature of the left outer tire on axle 1. (celsius)
|
|
240
|
+
* * `axle1tirefromleft2pressure` (Axle 1 Left Inner Tire Pressure): Pressure of the left inner tire on axle 1. (kilopascal)
|
|
241
|
+
* * `axle1tirefromleft2temperature` (Axle 1 Left Inner Tire Temperature): Temperature of the left inner tire on axle 1. (celsius)
|
|
242
|
+
* * `axle1tirefromleft3pressure` (Axle 1 Right Inner Tire Pressure): Pressure of the right inner tire on axle 1. (kilopascal)
|
|
243
|
+
* * `axle1tirefromleft3temperature` (Axle 1 Right Inner Tire Temperature): Temperature of the right inner tire on axle 1. (celsius)
|
|
244
|
+
* * `axle1tirefromleft4pressure` (Axle 1 Right Outer Tire Pressure): Pressure of the right outer tire on axle 1. (kilopascal)
|
|
245
|
+
* * `axle1tirefromleft4temperature` (Axle 1 Right Outer Tire Temperature): Temperature of the right outer tire on axle 1. (celsius)
|
|
246
|
+
* * `axle2tirefromleft1pressure` (Axle 2 Left Outer Tire Pressure): Pressure of the left outer tire on axle 2. (kilopascal)
|
|
247
|
+
* * `axle2tirefromleft1temperature` (Axle 2 Left Outer Tire Temperature): Temperature of the left outer tire on axle 2. (celsius)
|
|
248
|
+
* * `axle2tirefromleft2pressure` (Axle 2 Left Inner Tire Pressure): Pressure of the left inner tire on axle 2. (kilopascal)
|
|
249
|
+
* * `axle2tirefromleft2temperature` (Axle 2 Left Inner Tire Temperature): Temperature of the left inner tire on axle 2. (celsius)
|
|
250
|
+
* * `axle2tirefromleft3pressure` (Axle 2 Right Inner Tire Pressure): Pressure of the right inner tire on axle 2. (kilopascal)
|
|
251
|
+
* * `axle2tirefromleft3temperature` (Axle 2 Right Inner Tire Temperature): Temperature of the right inner tire on axle 2. (celsius)
|
|
252
|
+
* * `axle2tirefromleft4pressure` (Axle 2 Right Outer Tire Pressure): Pressure of the right outer tire on axle 2. (kilopascal)
|
|
253
|
+
* * `axle2tirefromleft4temperature` (Axle 2 Right Outer Tire Temperature): Temperature of the right outer tire on axle 2. (celsius)
|
|
254
|
+
* * `axle3tirefromleft1pressure` (Axle 3 Left Outer Tire Pressure): Pressure of the left outer tire on axle 3. (kilopascal)
|
|
255
|
+
* * `axle3tirefromleft1temperature` (Axle 3 Left Outer Tire Temperature): Temperature of the left outer tire on axle 3. (celsius)
|
|
256
|
+
* * `axle3tirefromleft2pressure` (Axle 3 Left Inner Tire Pressure): Pressure of the left inner tire on axle 3. (kilopascal)
|
|
257
|
+
* * `axle3tirefromleft2temperature` (Axle 3 Left Inner Tire Temperature): Temperature of the left inner tire on axle 3. (celsius)
|
|
258
|
+
* * `axle3tirefromleft3pressure` (Axle 3 Right Inner Tire Pressure): Pressure of the right inner tire on axle 3. (kilopascal)
|
|
259
|
+
* * `axle3tirefromleft3temperature` (Axle 3 Right Inner Tire Temperature): Temperature of the right inner tire on axle 3. (celsius)
|
|
260
|
+
* * `axle3tirefromleft4pressure` (Axle 3 Right Outer Tire Pressure): Pressure of the right outer tire on axle 3. (kilopascal)
|
|
261
|
+
* * `axle3tirefromleft4temperature` (Axle 3 Right Outer Tire Temperature): Temperature of the right outer tire on axle 3. (celsius)
|
|
262
|
+
*
|
|
263
|
+
* </details>
|
|
264
|
+
*
|
|
235
265
|
* **Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.
|
|
236
266
|
*/
|
|
237
267
|
readingId: string;
|
|
@@ -232,6 +232,36 @@ export interface GetReadingsSnapshotRequest {
|
|
|
232
232
|
*
|
|
233
233
|
* </details>
|
|
234
234
|
*
|
|
235
|
+
* <details>
|
|
236
|
+
* <summary><strong>tireCondition</strong></summary>
|
|
237
|
+
*
|
|
238
|
+
* * `axle1tirefromleft1pressure` (Axle 1 Left Outer Tire Pressure): Pressure of the left outer tire on axle 1. (kilopascal)
|
|
239
|
+
* * `axle1tirefromleft1temperature` (Axle 1 Left Outer Tire Temperature): Temperature of the left outer tire on axle 1. (celsius)
|
|
240
|
+
* * `axle1tirefromleft2pressure` (Axle 1 Left Inner Tire Pressure): Pressure of the left inner tire on axle 1. (kilopascal)
|
|
241
|
+
* * `axle1tirefromleft2temperature` (Axle 1 Left Inner Tire Temperature): Temperature of the left inner tire on axle 1. (celsius)
|
|
242
|
+
* * `axle1tirefromleft3pressure` (Axle 1 Right Inner Tire Pressure): Pressure of the right inner tire on axle 1. (kilopascal)
|
|
243
|
+
* * `axle1tirefromleft3temperature` (Axle 1 Right Inner Tire Temperature): Temperature of the right inner tire on axle 1. (celsius)
|
|
244
|
+
* * `axle1tirefromleft4pressure` (Axle 1 Right Outer Tire Pressure): Pressure of the right outer tire on axle 1. (kilopascal)
|
|
245
|
+
* * `axle1tirefromleft4temperature` (Axle 1 Right Outer Tire Temperature): Temperature of the right outer tire on axle 1. (celsius)
|
|
246
|
+
* * `axle2tirefromleft1pressure` (Axle 2 Left Outer Tire Pressure): Pressure of the left outer tire on axle 2. (kilopascal)
|
|
247
|
+
* * `axle2tirefromleft1temperature` (Axle 2 Left Outer Tire Temperature): Temperature of the left outer tire on axle 2. (celsius)
|
|
248
|
+
* * `axle2tirefromleft2pressure` (Axle 2 Left Inner Tire Pressure): Pressure of the left inner tire on axle 2. (kilopascal)
|
|
249
|
+
* * `axle2tirefromleft2temperature` (Axle 2 Left Inner Tire Temperature): Temperature of the left inner tire on axle 2. (celsius)
|
|
250
|
+
* * `axle2tirefromleft3pressure` (Axle 2 Right Inner Tire Pressure): Pressure of the right inner tire on axle 2. (kilopascal)
|
|
251
|
+
* * `axle2tirefromleft3temperature` (Axle 2 Right Inner Tire Temperature): Temperature of the right inner tire on axle 2. (celsius)
|
|
252
|
+
* * `axle2tirefromleft4pressure` (Axle 2 Right Outer Tire Pressure): Pressure of the right outer tire on axle 2. (kilopascal)
|
|
253
|
+
* * `axle2tirefromleft4temperature` (Axle 2 Right Outer Tire Temperature): Temperature of the right outer tire on axle 2. (celsius)
|
|
254
|
+
* * `axle3tirefromleft1pressure` (Axle 3 Left Outer Tire Pressure): Pressure of the left outer tire on axle 3. (kilopascal)
|
|
255
|
+
* * `axle3tirefromleft1temperature` (Axle 3 Left Outer Tire Temperature): Temperature of the left outer tire on axle 3. (celsius)
|
|
256
|
+
* * `axle3tirefromleft2pressure` (Axle 3 Left Inner Tire Pressure): Pressure of the left inner tire on axle 3. (kilopascal)
|
|
257
|
+
* * `axle3tirefromleft2temperature` (Axle 3 Left Inner Tire Temperature): Temperature of the left inner tire on axle 3. (celsius)
|
|
258
|
+
* * `axle3tirefromleft3pressure` (Axle 3 Right Inner Tire Pressure): Pressure of the right inner tire on axle 3. (kilopascal)
|
|
259
|
+
* * `axle3tirefromleft3temperature` (Axle 3 Right Inner Tire Temperature): Temperature of the right inner tire on axle 3. (celsius)
|
|
260
|
+
* * `axle3tirefromleft4pressure` (Axle 3 Right Outer Tire Pressure): Pressure of the right outer tire on axle 3. (kilopascal)
|
|
261
|
+
* * `axle3tirefromleft4temperature` (Axle 3 Right Outer Tire Temperature): Temperature of the right outer tire on axle 3. (celsius)
|
|
262
|
+
*
|
|
263
|
+
* </details>
|
|
264
|
+
*
|
|
235
265
|
* **Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.
|
|
236
266
|
*/
|
|
237
267
|
readingIds: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ListTachographLiveDataRequest {
|
|
6
|
+
/** A filter on the data based on this comma-separated list of Driver ID values. */
|
|
7
|
+
driverIds?: string;
|
|
8
|
+
/** A filter on the data based on this comma-separated list of Vehicle ID values. */
|
|
9
|
+
vehicleIds?: string;
|
|
10
|
+
/** A start time in RFC 3339 format. Millisecond precision and timezones are supported. Defaults to 1 hour before now if not provided. */
|
|
11
|
+
startTime?: string;
|
|
12
|
+
/** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
|
|
13
|
+
after?: string;
|
|
14
|
+
/** The limit for how many objects will be in the response. Default and max for this value is 200 objects. */
|
|
15
|
+
limit?: number;
|
|
16
|
+
}
|
|
@@ -46,6 +46,7 @@ export type { ListReadingsDefinitionsRequest } from "./ListReadingsDefinitionsRe
|
|
|
46
46
|
export type { ListRidershipAccountsRequest } from "./ListRidershipAccountsRequest.js";
|
|
47
47
|
export type { ListRidershipPassengersRequest } from "./ListRidershipPassengersRequest.js";
|
|
48
48
|
export type { ListRidershipRouteSetupsRequest } from "./ListRidershipRouteSetupsRequest.js";
|
|
49
|
+
export type { ListTachographLiveDataRequest } from "./ListTachographLiveDataRequest.js";
|
|
49
50
|
export type { ListVendorCategoriesRequest } from "./ListVendorCategoriesRequest.js";
|
|
50
51
|
export type { PlanOrdersCreatePlanOrdersRequestBody } from "./PlanOrdersCreatePlanOrdersRequestBody.js";
|
|
51
52
|
export type { QualificationsArchiveQualificationRecordRequestBody } from "./QualificationsArchiveQualificationRecordRequestBody.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TachographLiveData object
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityListTachographLiveDataTypeResponseBody {
|
|
5
|
+
/** The driver's cumulated driving time across the previous and current week, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
6
|
+
cumulatedDrivingTimePreviousAndCurrentWeekMinute?: number | undefined;
|
|
7
|
+
/** The driver's cumulative break time, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
8
|
+
cumulativeBreakTimeMinute?: number | undefined;
|
|
9
|
+
/** The driver's current daily driving time, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
10
|
+
currentDailyDrivingTimeMinute?: number | undefined;
|
|
11
|
+
/** The duration of the driver's currently selected activity, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
12
|
+
currentDurationOfSelectedActivityMinute?: number | undefined;
|
|
13
|
+
/** The driver's current weekly driving time, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
14
|
+
currentWeeklyDrivingTimeMinute?: number | undefined;
|
|
15
|
+
/** Samsara ID for the driver. */
|
|
16
|
+
driverId?: string | undefined;
|
|
17
|
+
/** The expected duration of the driver's next break or rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
18
|
+
durationOfNextBreakRestMinute?: number | undefined;
|
|
19
|
+
/** The expected duration of the driver's next driving period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
20
|
+
durationOfNextDrivingPeriodMinute?: number | undefined;
|
|
21
|
+
/** The timestamp marking the end of the driver's last daily rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
22
|
+
endOfLastDailyRestPeriod?: string | undefined;
|
|
23
|
+
/** The timestamp marking the end of the driver's last weekly rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
24
|
+
endOfLastWeeklyRestPeriod?: string | undefined;
|
|
25
|
+
/** The timestamp when the tachograph reading was measured. */
|
|
26
|
+
happenedAtTime?: string | undefined;
|
|
27
|
+
/** The maximum allowed daily driving time for the driver, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
28
|
+
maximumDailyDrivingTimeMinute?: number | undefined;
|
|
29
|
+
/** The minimum required daily rest duration for the driver, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
30
|
+
minimumDailyRestMinute?: number | undefined;
|
|
31
|
+
/** The minimum required weekly rest duration for the driver, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
32
|
+
minimumWeeklyRestMinute?: number | undefined;
|
|
33
|
+
/** The number of times the driver has exceeded the 9-hour daily driving time limit, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
34
|
+
numberOfTimes9hDailyDrivingTimesExceeded?: number | undefined;
|
|
35
|
+
/** The number of reduced daily rest periods the driver has used, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
36
|
+
numberOfUsedReducedDailyRestPeriods?: number | undefined;
|
|
37
|
+
/** Open rest compensation owed from the second week before last, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
38
|
+
openCompensationInSecondWeekBeforeLastMinute?: number | undefined;
|
|
39
|
+
/** Open rest compensation owed from the last week, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
40
|
+
openCompensationInTheLastWeekMinute?: number | undefined;
|
|
41
|
+
/** Open rest compensation owed from the week before last, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
42
|
+
openCompensationInWeekBeforeLastMinute?: number | undefined;
|
|
43
|
+
/** The driver's remaining driving time across the current two-week period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
44
|
+
remaining2WeeksDrivingTimeMinute?: number | undefined;
|
|
45
|
+
/** The driver's remaining current continuous driving time before a break is required, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
46
|
+
remainingCurrentDrivingTimeMinute?: number | undefined;
|
|
47
|
+
/** The driver's remaining driving time for the current week, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
48
|
+
remainingDrivingTimeOfCurrentWeekMinute?: number | undefined;
|
|
49
|
+
/** The driver's remaining driving time on the current shift, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
50
|
+
remainingDrivingTimeOnCurrentShiftMinute?: number | undefined;
|
|
51
|
+
/** Time remaining in the driver's current break or rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
52
|
+
remainingTimeOfCurrentBreakRestMinute?: number | undefined;
|
|
53
|
+
/** Time remaining until the driver's next required break or rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
54
|
+
remainingTimeUntilNextBreakOrRestMinute?: number | undefined;
|
|
55
|
+
/** The tachograph card number for the driver. */
|
|
56
|
+
tachographCardNumber?: string | undefined;
|
|
57
|
+
/** Time remaining until the driver must begin a new daily rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
58
|
+
timeLeftUntilNewDailyRestPeriodMinute?: number | undefined;
|
|
59
|
+
/** Time remaining until the driver must begin a new weekly rest period, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
60
|
+
timeLeftUntilNewWeeklyRestPeriodMinute?: number | undefined;
|
|
61
|
+
/** Time remaining until the driver's next driving period can begin, as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
62
|
+
timeLeftUntilNextDrivingPeriodMinute?: number | undefined;
|
|
63
|
+
/** Samsara ID for the vehicle associated with the live tachograph data. */
|
|
64
|
+
vehicleId?: string | undefined;
|
|
65
|
+
/** The current working state of the driver (e.g. Rest, Availability, Work, Driving), as defined by ISO 16844-7 (Tachograph - Digital data interface). */
|
|
66
|
+
workingState?: string | undefined;
|
|
67
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bad Gateway
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gateway timeout
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An internal server error occurred
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Method not allowed
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource not found
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requested endpoint is not yet implemented
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as Samsara from "../index.js";
|
|
2
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody {
|
|
3
|
+
/** An array of TachographLiveDataRecords */
|
|
4
|
+
data: Samsara.EntityListTachographLiveDataTypeResponseBody[];
|
|
5
|
+
pagination: Samsara.GoaPaginationResponseResponseBody;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service unavailable
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Too many requests
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unauthorized
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -797,6 +797,17 @@ export * from "./EngineOnDetailsObjectRequestBody.js";
|
|
|
797
797
|
export * from "./EngineOnDetailsObjectResponseBody.js";
|
|
798
798
|
export * from "./EngineOnResponseBody.js";
|
|
799
799
|
export * from "./EngineStatusResponseBody.js";
|
|
800
|
+
export * from "./EntityListTachographLiveDataTypeResponseBody.js";
|
|
801
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.js";
|
|
802
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.js";
|
|
803
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.js";
|
|
804
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.js";
|
|
805
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.js";
|
|
806
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.js";
|
|
807
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.js";
|
|
808
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.js";
|
|
809
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.js";
|
|
810
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.js";
|
|
800
811
|
export * from "./EnumReadingAlertThresholdResponseBody.js";
|
|
801
812
|
export * from "./EnumValueResponseBody.js";
|
|
802
813
|
export * from "./EquipmentEngineRpm.js";
|
|
@@ -813,6 +813,17 @@ __exportStar(require("./EngineOnDetailsObjectRequestBody.js"), exports);
|
|
|
813
813
|
__exportStar(require("./EngineOnDetailsObjectResponseBody.js"), exports);
|
|
814
814
|
__exportStar(require("./EngineOnResponseBody.js"), exports);
|
|
815
815
|
__exportStar(require("./EngineStatusResponseBody.js"), exports);
|
|
816
|
+
__exportStar(require("./EntityListTachographLiveDataTypeResponseBody.js"), exports);
|
|
817
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.js"), exports);
|
|
818
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.js"), exports);
|
|
819
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.js"), exports);
|
|
820
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.js"), exports);
|
|
821
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.js"), exports);
|
|
822
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.js"), exports);
|
|
823
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.js"), exports);
|
|
824
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.js"), exports);
|
|
825
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.js"), exports);
|
|
826
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.js"), exports);
|
|
816
827
|
__exportStar(require("./EnumReadingAlertThresholdResponseBody.js"), exports);
|
|
817
828
|
__exportStar(require("./EnumValueResponseBody.js"), exports);
|
|
818
829
|
__exportStar(require("./EquipmentEngineRpm.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "9.
|
|
1
|
+
export declare const SDK_VERSION = "9.1.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -7,8 +7,8 @@ export function normalizeClientOptions(options) {
|
|
|
7
7
|
const headers = mergeHeaders({
|
|
8
8
|
"X-Fern-Language": "JavaScript",
|
|
9
9
|
"X-Fern-SDK-Name": "@samsarahq/samsara",
|
|
10
|
-
"X-Fern-SDK-Version": "9.
|
|
11
|
-
"User-Agent": "@samsarahq/samsara/9.
|
|
10
|
+
"X-Fern-SDK-Version": "9.1.0",
|
|
11
|
+
"User-Agent": "@samsarahq/samsara/9.1.0",
|
|
12
12
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
13
13
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
14
14
|
"X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
|
|
@@ -699,6 +699,34 @@ export declare class BetaApIsClient {
|
|
|
699
699
|
*/
|
|
700
700
|
listMaintenanceVendors(request?: Samsara.ListMaintenanceVendorsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.MaintenanceVendorsListMaintenanceVendorsResponseBody>;
|
|
701
701
|
private __listMaintenanceVendors;
|
|
702
|
+
/**
|
|
703
|
+
* Returns the latest live tachograph data for drivers, including working state and driving rest times, sourced from real-time telemetry.
|
|
704
|
+
*
|
|
705
|
+
* <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
706
|
+
*
|
|
707
|
+
* To use this endpoint, select **Read Tachograph (EU)** under the Compliance 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>
|
|
708
|
+
*
|
|
709
|
+
*
|
|
710
|
+
* **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.
|
|
711
|
+
*
|
|
712
|
+
* @param {Samsara.ListTachographLiveDataRequest} request
|
|
713
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
714
|
+
*
|
|
715
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
716
|
+
* @throws {@link Samsara.NotFoundError}
|
|
717
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
718
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
719
|
+
* @throws {@link Samsara.InternalServerError}
|
|
720
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
721
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
722
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
723
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
724
|
+
*
|
|
725
|
+
* @example
|
|
726
|
+
* await client.betaApIs.listTachographLiveData()
|
|
727
|
+
*/
|
|
728
|
+
listTachographLiveData(request?: Samsara.ListTachographLiveDataRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody>;
|
|
729
|
+
private __listTachographLiveData;
|
|
702
730
|
/**
|
|
703
731
|
* Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
|
|
704
732
|
*
|