@samsarahq/samsara 6.2.0 → 6.3.1
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/driverVehicleAssignments/client/requests/GetDriverVehicleAssignmentsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.d.ts +1 -0
- package/dist/cjs/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.js +1 -0
- package/dist/cjs/api/types/DriverVehicleAssignmentV2ObjectResponseBody.d.ts +3 -2
- package/dist/cjs/api/types/DriverVehicleAssignmentV2ObjectResponseBody.js +2 -1
- 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/driverVehicleAssignments/client/requests/GetDriverVehicleAssignmentsRequest.d.mts +1 -1
- package/dist/esm/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.d.mts +1 -0
- package/dist/esm/api/resources/driverVehicleAssignments/types/GetDriverVehicleAssignmentsRequestAssignmentType.mjs +1 -0
- package/dist/esm/api/types/DriverVehicleAssignmentV2ObjectResponseBody.d.mts +3 -2
- package/dist/esm/api/types/DriverVehicleAssignmentV2ObjectResponseBody.mjs +2 -1
- 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": "6.
|
|
48
|
-
"User-Agent": "@samsarahq/samsara/6.
|
|
47
|
+
"X-Fern-SDK-Version": "6.3.1",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/6.3.1",
|
|
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",
|
|
@@ -22,6 +22,6 @@ export interface GetDriverVehicleAssignmentsRequest {
|
|
|
22
22
|
vehicleTagIds?: string;
|
|
23
23
|
/** 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. */
|
|
24
24
|
after?: string;
|
|
25
|
-
/** Specifies which assignment type to filter by. Valid values: `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
25
|
+
/** Specifies which assignment type to filter by. Valid values: `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
26
26
|
assignmentType?: Samsara.GetDriverVehicleAssignmentsRequestAssignmentType;
|
|
27
27
|
}
|
|
@@ -11,5 +11,6 @@ export declare const GetDriverVehicleAssignmentsRequestAssignmentType: {
|
|
|
11
11
|
readonly QrCode: "qrCode";
|
|
12
12
|
readonly DriverApp: "driverApp";
|
|
13
13
|
readonly VoiceSignIn: "voiceSignIn";
|
|
14
|
+
readonly SmartAssign: "smartAssign";
|
|
14
15
|
};
|
|
15
16
|
export type GetDriverVehicleAssignmentsRequestAssignmentType = (typeof GetDriverVehicleAssignmentsRequestAssignmentType)[keyof typeof GetDriverVehicleAssignmentsRequestAssignmentType];
|
|
@@ -5,7 +5,7 @@ import type * as Samsara from "../index.js";
|
|
|
5
5
|
export interface DriverVehicleAssignmentV2ObjectResponseBody {
|
|
6
6
|
/** An assigned at time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). */
|
|
7
7
|
assignedAtTime?: string | undefined;
|
|
8
|
-
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
8
|
+
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
9
9
|
assignmentType?: DriverVehicleAssignmentV2ObjectResponseBody.AssignmentType | undefined;
|
|
10
10
|
driver: Samsara.GoaDriverTinyResponseResponseBody;
|
|
11
11
|
/** An end time in RFC 3339 format. Omitted if not applicable. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). */
|
|
@@ -18,7 +18,7 @@ export interface DriverVehicleAssignmentV2ObjectResponseBody {
|
|
|
18
18
|
vehicle: Samsara.GoaVehicleTinyResponseResponseBody;
|
|
19
19
|
}
|
|
20
20
|
export declare namespace DriverVehicleAssignmentV2ObjectResponseBody {
|
|
21
|
-
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
21
|
+
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
22
22
|
const AssignmentType: {
|
|
23
23
|
readonly Invalid: "invalid";
|
|
24
24
|
readonly Unknown: "unknown";
|
|
@@ -34,6 +34,7 @@ export declare namespace DriverVehicleAssignmentV2ObjectResponseBody {
|
|
|
34
34
|
readonly QrCode: "qrCode";
|
|
35
35
|
readonly DriverApp: "driverApp";
|
|
36
36
|
readonly VoiceSignIn: "voiceSignIn";
|
|
37
|
+
readonly SmartAssign: "smartAssign";
|
|
37
38
|
};
|
|
38
39
|
type AssignmentType = (typeof AssignmentType)[keyof typeof AssignmentType];
|
|
39
40
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.DriverVehicleAssignmentV2ObjectResponseBody = void 0;
|
|
5
5
|
var DriverVehicleAssignmentV2ObjectResponseBody;
|
|
6
6
|
(function (DriverVehicleAssignmentV2ObjectResponseBody) {
|
|
7
|
-
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
7
|
+
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
8
8
|
DriverVehicleAssignmentV2ObjectResponseBody.AssignmentType = {
|
|
9
9
|
Invalid: "invalid",
|
|
10
10
|
Unknown: "unknown",
|
|
@@ -20,5 +20,6 @@ var DriverVehicleAssignmentV2ObjectResponseBody;
|
|
|
20
20
|
QrCode: "qrCode",
|
|
21
21
|
DriverApp: "driverApp",
|
|
22
22
|
VoiceSignIn: "voiceSignIn",
|
|
23
|
+
SmartAssign: "smartAssign",
|
|
23
24
|
};
|
|
24
25
|
})(DriverVehicleAssignmentV2ObjectResponseBody || (exports.DriverVehicleAssignmentV2ObjectResponseBody = DriverVehicleAssignmentV2ObjectResponseBody = {}));
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "6.
|
|
1
|
+
export declare const SDK_VERSION = "6.3.1";
|
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": "6.
|
|
11
|
-
"User-Agent": "@samsarahq/samsara/6.
|
|
10
|
+
"X-Fern-SDK-Version": "6.3.1",
|
|
11
|
+
"User-Agent": "@samsarahq/samsara/6.3.1",
|
|
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",
|
|
@@ -22,6 +22,6 @@ export interface GetDriverVehicleAssignmentsRequest {
|
|
|
22
22
|
vehicleTagIds?: string;
|
|
23
23
|
/** 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. */
|
|
24
24
|
after?: string;
|
|
25
|
-
/** Specifies which assignment type to filter by. Valid values: `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
25
|
+
/** Specifies which assignment type to filter by. Valid values: `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
26
26
|
assignmentType?: Samsara.GetDriverVehicleAssignmentsRequestAssignmentType;
|
|
27
27
|
}
|
|
@@ -11,5 +11,6 @@ export declare const GetDriverVehicleAssignmentsRequestAssignmentType: {
|
|
|
11
11
|
readonly QrCode: "qrCode";
|
|
12
12
|
readonly DriverApp: "driverApp";
|
|
13
13
|
readonly VoiceSignIn: "voiceSignIn";
|
|
14
|
+
readonly SmartAssign: "smartAssign";
|
|
14
15
|
};
|
|
15
16
|
export type GetDriverVehicleAssignmentsRequestAssignmentType = (typeof GetDriverVehicleAssignmentsRequestAssignmentType)[keyof typeof GetDriverVehicleAssignmentsRequestAssignmentType];
|
|
@@ -5,7 +5,7 @@ import type * as Samsara from "../index.mjs";
|
|
|
5
5
|
export interface DriverVehicleAssignmentV2ObjectResponseBody {
|
|
6
6
|
/** An assigned at time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). */
|
|
7
7
|
assignedAtTime?: string | undefined;
|
|
8
|
-
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
8
|
+
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
9
9
|
assignmentType?: DriverVehicleAssignmentV2ObjectResponseBody.AssignmentType | undefined;
|
|
10
10
|
driver: Samsara.GoaDriverTinyResponseResponseBody;
|
|
11
11
|
/** An end time in RFC 3339 format. Omitted if not applicable. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). */
|
|
@@ -18,7 +18,7 @@ export interface DriverVehicleAssignmentV2ObjectResponseBody {
|
|
|
18
18
|
vehicle: Samsara.GoaVehicleTinyResponseResponseBody;
|
|
19
19
|
}
|
|
20
20
|
export declare namespace DriverVehicleAssignmentV2ObjectResponseBody {
|
|
21
|
-
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
21
|
+
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
22
22
|
const AssignmentType: {
|
|
23
23
|
readonly Invalid: "invalid";
|
|
24
24
|
readonly Unknown: "unknown";
|
|
@@ -34,6 +34,7 @@ export declare namespace DriverVehicleAssignmentV2ObjectResponseBody {
|
|
|
34
34
|
readonly QrCode: "qrCode";
|
|
35
35
|
readonly DriverApp: "driverApp";
|
|
36
36
|
readonly VoiceSignIn: "voiceSignIn";
|
|
37
|
+
readonly SmartAssign: "smartAssign";
|
|
37
38
|
};
|
|
38
39
|
type AssignmentType = (typeof AssignmentType)[keyof typeof AssignmentType];
|
|
39
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export var DriverVehicleAssignmentV2ObjectResponseBody;
|
|
3
3
|
(function (DriverVehicleAssignmentV2ObjectResponseBody) {
|
|
4
|
-
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn` */
|
|
4
|
+
/** Name of the assigning source for the driver assignment record. Valid values: `invalid`, `unknown`, `HOS`, `idCard`, `static`, `faceId`, `tachograph`, `safetyManual`, `RFID`, `trailer`, `external`, `qrCode`, `driverApp`, `voiceSignIn`, `smartAssign` */
|
|
5
5
|
DriverVehicleAssignmentV2ObjectResponseBody.AssignmentType = {
|
|
6
6
|
Invalid: "invalid",
|
|
7
7
|
Unknown: "unknown",
|
|
@@ -17,5 +17,6 @@ export var DriverVehicleAssignmentV2ObjectResponseBody;
|
|
|
17
17
|
QrCode: "qrCode",
|
|
18
18
|
DriverApp: "driverApp",
|
|
19
19
|
VoiceSignIn: "voiceSignIn",
|
|
20
|
+
SmartAssign: "smartAssign",
|
|
20
21
|
};
|
|
21
22
|
})(DriverVehicleAssignmentV2ObjectResponseBody || (DriverVehicleAssignmentV2ObjectResponseBody = {}));
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "6.
|
|
1
|
+
export declare const SDK_VERSION = "6.3.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "6.
|
|
1
|
+
export const SDK_VERSION = "6.3.1";
|