@samsarahq/samsara 13.24.0 → 13.25.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/readings/client/Client.js +4 -2
- package/dist/cjs/api/resources/readings/client/requests/GetReadingsHistoryRequest.d.ts +2 -0
- package/dist/cjs/api/resources/readings/client/requests/GetReadingsSnapshotRequest.d.ts +2 -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/readings/client/Client.mjs +4 -2
- package/dist/esm/api/resources/readings/client/requests/GetReadingsHistoryRequest.d.mts +2 -0
- package/dist/esm/api/resources/readings/client/requests/GetReadingsSnapshotRequest.d.mts +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
|
|
|
44
44
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "@samsarahq/samsara",
|
|
47
|
-
"X-Fern-SDK-Version": "13.
|
|
48
|
-
"User-Agent": "@samsarahq/samsara/13.
|
|
47
|
+
"X-Fern-SDK-Version": "13.25.0",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/13.25.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",
|
|
@@ -182,12 +182,13 @@ class ReadingsClient {
|
|
|
182
182
|
__getReadingsHistory(request, requestOptions) {
|
|
183
183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
184
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
185
|
-
const { after, readingId, entityIds, entityType, externalIds, startTime, endTime, feed, includeExternalIds } = request;
|
|
185
|
+
const { after, readingId, entityIds, entityType, assetTypes, externalIds, startTime, endTime, feed, includeExternalIds, } = request;
|
|
186
186
|
const _queryParams = {
|
|
187
187
|
after,
|
|
188
188
|
readingId,
|
|
189
189
|
entityIds,
|
|
190
190
|
entityType,
|
|
191
|
+
assetTypes,
|
|
191
192
|
externalIds,
|
|
192
193
|
startTime,
|
|
193
194
|
endTime,
|
|
@@ -281,7 +282,7 @@ class ReadingsClient {
|
|
|
281
282
|
__getReadingsSnapshot(request, requestOptions) {
|
|
282
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
283
284
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
284
|
-
const { after, readingIds, entityIds, externalIds, asOfTime, entityType, includeExternalIds } = request;
|
|
285
|
+
const { after, readingIds, entityIds, externalIds, asOfTime, entityType, assetTypes, includeExternalIds } = request;
|
|
285
286
|
const _queryParams = {
|
|
286
287
|
after,
|
|
287
288
|
readingIds,
|
|
@@ -289,6 +290,7 @@ class ReadingsClient {
|
|
|
289
290
|
externalIds,
|
|
290
291
|
asOfTime,
|
|
291
292
|
entityType,
|
|
293
|
+
assetTypes,
|
|
292
294
|
includeExternalIds,
|
|
293
295
|
};
|
|
294
296
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -277,6 +277,8 @@ export interface GetReadingsHistoryRequest {
|
|
|
277
277
|
entityIds?: string;
|
|
278
278
|
/** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
|
|
279
279
|
entityType: string;
|
|
280
|
+
/** A filter on asset readings based on this comma-separated list of asset types. Only supported when entityType is asset. Valid values are: uncategorized, trailer, equipment, unpowered, vehicle. */
|
|
281
|
+
assetTypes?: string;
|
|
280
282
|
/** A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM) */
|
|
281
283
|
externalIds?: string;
|
|
282
284
|
/** A filter on the data that returns data points with timestamps greater than or equal to this value. Required when feed mode is not enabled. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
|
|
@@ -281,6 +281,8 @@ export interface GetReadingsSnapshotRequest {
|
|
|
281
281
|
asOfTime?: string;
|
|
282
282
|
/** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
|
|
283
283
|
entityType: string;
|
|
284
|
+
/** A filter on asset readings based on this comma-separated list of asset types. Only supported when entityType is asset. Valid values are: uncategorized, trailer, equipment, unpowered, vehicle. */
|
|
285
|
+
assetTypes?: string;
|
|
284
286
|
/** Optional boolean indicating whether to return external IDs on supported entities */
|
|
285
287
|
includeExternalIds?: boolean;
|
|
286
288
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "13.
|
|
1
|
+
export declare const SDK_VERSION = "13.25.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": "13.
|
|
11
|
-
"User-Agent": "@samsarahq/samsara/13.
|
|
10
|
+
"X-Fern-SDK-Version": "13.25.0",
|
|
11
|
+
"User-Agent": "@samsarahq/samsara/13.25.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",
|
|
@@ -146,12 +146,13 @@ export class ReadingsClient {
|
|
|
146
146
|
__getReadingsHistory(request, requestOptions) {
|
|
147
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
148
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
149
|
-
const { after, readingId, entityIds, entityType, externalIds, startTime, endTime, feed, includeExternalIds } = request;
|
|
149
|
+
const { after, readingId, entityIds, entityType, assetTypes, externalIds, startTime, endTime, feed, includeExternalIds, } = request;
|
|
150
150
|
const _queryParams = {
|
|
151
151
|
after,
|
|
152
152
|
readingId,
|
|
153
153
|
entityIds,
|
|
154
154
|
entityType,
|
|
155
|
+
assetTypes,
|
|
155
156
|
externalIds,
|
|
156
157
|
startTime,
|
|
157
158
|
endTime,
|
|
@@ -245,7 +246,7 @@ export class ReadingsClient {
|
|
|
245
246
|
__getReadingsSnapshot(request, requestOptions) {
|
|
246
247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
247
248
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
248
|
-
const { after, readingIds, entityIds, externalIds, asOfTime, entityType, includeExternalIds } = request;
|
|
249
|
+
const { after, readingIds, entityIds, externalIds, asOfTime, entityType, assetTypes, includeExternalIds } = request;
|
|
249
250
|
const _queryParams = {
|
|
250
251
|
after,
|
|
251
252
|
readingIds,
|
|
@@ -253,6 +254,7 @@ export class ReadingsClient {
|
|
|
253
254
|
externalIds,
|
|
254
255
|
asOfTime,
|
|
255
256
|
entityType,
|
|
257
|
+
assetTypes,
|
|
256
258
|
includeExternalIds,
|
|
257
259
|
};
|
|
258
260
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -277,6 +277,8 @@ export interface GetReadingsHistoryRequest {
|
|
|
277
277
|
entityIds?: string;
|
|
278
278
|
/** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
|
|
279
279
|
entityType: string;
|
|
280
|
+
/** A filter on asset readings based on this comma-separated list of asset types. Only supported when entityType is asset. Valid values are: uncategorized, trailer, equipment, unpowered, vehicle. */
|
|
281
|
+
assetTypes?: string;
|
|
280
282
|
/** A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM) */
|
|
281
283
|
externalIds?: string;
|
|
282
284
|
/** A filter on the data that returns data points with timestamps greater than or equal to this value. Required when feed mode is not enabled. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
|
|
@@ -281,6 +281,8 @@ export interface GetReadingsSnapshotRequest {
|
|
|
281
281
|
asOfTime?: string;
|
|
282
282
|
/** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
|
|
283
283
|
entityType: string;
|
|
284
|
+
/** A filter on asset readings based on this comma-separated list of asset types. Only supported when entityType is asset. Valid values are: uncategorized, trailer, equipment, unpowered, vehicle. */
|
|
285
|
+
assetTypes?: string;
|
|
284
286
|
/** Optional boolean indicating whether to return external IDs on supported entities */
|
|
285
287
|
includeExternalIds?: boolean;
|
|
286
288
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "13.
|
|
1
|
+
export declare const SDK_VERSION = "13.25.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "13.
|
|
1
|
+
export const SDK_VERSION = "13.25.0";
|