@samsarahq/samsara 8.1.1 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +101 -96
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +0 -58
- package/dist/cjs/api/resources/betaApIs/client/Client.js +0 -184
- package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/betaApIs/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/betaApIs/types/index.js +0 -1
- package/dist/cjs/api/resources/carbCtc/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/carbCtc/client/Client.js +243 -0
- package/dist/cjs/api/resources/carbCtc/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/carbCtc/client/index.js +17 -0
- package/dist/cjs/api/resources/carbCtc/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/carbCtc/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/carbCtc/index.d.ts +2 -0
- package/dist/cjs/api/resources/carbCtc/index.js +18 -0
- package/dist/cjs/api/resources/carbCtc/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/carbCtc/types/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +5 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +0 -58
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +0 -184
- package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/betaApIs/types/index.d.mts +0 -1
- package/dist/esm/api/resources/betaApIs/types/index.mjs +0 -1
- package/dist/esm/api/resources/carbCtc/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/carbCtc/client/Client.mjs +206 -0
- package/dist/esm/api/resources/carbCtc/client/index.d.mts +1 -0
- package/dist/esm/api/resources/carbCtc/client/index.mjs +1 -0
- package/dist/esm/api/resources/carbCtc/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/carbCtc/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/carbCtc/index.d.mts +2 -0
- package/dist/esm/api/resources/carbCtc/index.mjs +2 -0
- package/dist/esm/api/resources/carbCtc/types/index.d.mts +1 -0
- package/dist/esm/api/resources/carbCtc/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +143 -142
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.js +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.d.ts +0 -0
- /package/dist/cjs/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.js +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehicleHistoryRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/client/requests/ListCarbCtcVehiclesRequest.mjs +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.d.mts +0 -0
- /package/dist/esm/api/resources/{betaApIs → carbCtc}/types/ListCarbCtcVehiclesRequestTestStatusItem.mjs +0 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
|
|
|
44
44
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "@samsarahq/samsara",
|
|
47
|
-
"X-Fern-SDK-Version": "8.1.
|
|
48
|
-
"User-Agent": "@samsarahq/samsara/8.1.
|
|
47
|
+
"X-Fern-SDK-Version": "8.1.2",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/8.1.2",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
"X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AssetsClient } from "./api/resources/assets/client/Client.js";
|
|
|
4
4
|
import { AttributesClient } from "./api/resources/attributes/client/Client.js";
|
|
5
5
|
import { AuthTokenForDriverClient } from "./api/resources/authTokenForDriver/client/Client.js";
|
|
6
6
|
import { BetaApIsClient } from "./api/resources/betaApIs/client/Client.js";
|
|
7
|
+
import { CarbCtcClient } from "./api/resources/carbCtc/client/Client.js";
|
|
7
8
|
import { CarrierProposedAssignmentsClient } from "./api/resources/carrierProposedAssignments/client/Client.js";
|
|
8
9
|
import { CoachingClient } from "./api/resources/coaching/client/Client.js";
|
|
9
10
|
import { ContactsClient } from "./api/resources/contacts/client/Client.js";
|
|
@@ -74,6 +75,7 @@ export declare class SamsaraClient {
|
|
|
74
75
|
protected _fuelAndEnergy: FuelAndEnergyClient | undefined;
|
|
75
76
|
protected _driverTrailerAssignments: DriverTrailerAssignmentsClient | undefined;
|
|
76
77
|
protected _driverQrCodes: DriverQrCodesClient | undefined;
|
|
78
|
+
protected _carbCtc: CarbCtcClient | undefined;
|
|
77
79
|
protected _carrierProposedAssignments: CarrierProposedAssignmentsClient | undefined;
|
|
78
80
|
protected _legacyApIs: LegacyApIsClient | undefined;
|
|
79
81
|
protected _documents: DocumentsClient | undefined;
|
|
@@ -129,6 +131,7 @@ export declare class SamsaraClient {
|
|
|
129
131
|
get fuelAndEnergy(): FuelAndEnergyClient;
|
|
130
132
|
get driverTrailerAssignments(): DriverTrailerAssignmentsClient;
|
|
131
133
|
get driverQrCodes(): DriverQrCodesClient;
|
|
134
|
+
get carbCtc(): CarbCtcClient;
|
|
132
135
|
get carrierProposedAssignments(): CarrierProposedAssignmentsClient;
|
|
133
136
|
get legacyApIs(): LegacyApIsClient;
|
|
134
137
|
get documents(): DocumentsClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -8,54 +8,55 @@ const Client_js_3 = require("./api/resources/assets/client/Client.js");
|
|
|
8
8
|
const Client_js_4 = require("./api/resources/attributes/client/Client.js");
|
|
9
9
|
const Client_js_5 = require("./api/resources/authTokenForDriver/client/Client.js");
|
|
10
10
|
const Client_js_6 = require("./api/resources/betaApIs/client/Client.js");
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/
|
|
17
|
-
const Client_js_13 = require("./api/resources/
|
|
18
|
-
const Client_js_14 = require("./api/resources/
|
|
19
|
-
const Client_js_15 = require("./api/resources/
|
|
20
|
-
const Client_js_16 = require("./api/resources/
|
|
21
|
-
const Client_js_17 = require("./api/resources/
|
|
22
|
-
const Client_js_18 = require("./api/resources/
|
|
23
|
-
const Client_js_19 = require("./api/resources/
|
|
24
|
-
const Client_js_20 = require("./api/resources/
|
|
25
|
-
const Client_js_21 = require("./api/resources/
|
|
26
|
-
const Client_js_22 = require("./api/resources/
|
|
27
|
-
const Client_js_23 = require("./api/resources/
|
|
28
|
-
const Client_js_24 = require("./api/resources/
|
|
29
|
-
const Client_js_25 = require("./api/resources/
|
|
30
|
-
const Client_js_26 = require("./api/resources/
|
|
31
|
-
const Client_js_27 = require("./api/resources/
|
|
32
|
-
const Client_js_28 = require("./api/resources/
|
|
33
|
-
const Client_js_29 = require("./api/resources/
|
|
34
|
-
const Client_js_30 = require("./api/resources/
|
|
35
|
-
const Client_js_31 = require("./api/resources/
|
|
36
|
-
const Client_js_32 = require("./api/resources/
|
|
37
|
-
const Client_js_33 = require("./api/resources/
|
|
38
|
-
const Client_js_34 = require("./api/resources/
|
|
39
|
-
const Client_js_35 = require("./api/resources/
|
|
40
|
-
const Client_js_36 = require("./api/resources/
|
|
41
|
-
const Client_js_37 = require("./api/resources/
|
|
42
|
-
const Client_js_38 = require("./api/resources/
|
|
43
|
-
const Client_js_39 = require("./api/resources/
|
|
44
|
-
const Client_js_40 = require("./api/resources/
|
|
45
|
-
const Client_js_41 = require("./api/resources/
|
|
46
|
-
const Client_js_42 = require("./api/resources/
|
|
47
|
-
const Client_js_43 = require("./api/resources/
|
|
48
|
-
const Client_js_44 = require("./api/resources/
|
|
49
|
-
const Client_js_45 = require("./api/resources/
|
|
50
|
-
const Client_js_46 = require("./api/resources/
|
|
51
|
-
const Client_js_47 = require("./api/resources/
|
|
52
|
-
const Client_js_48 = require("./api/resources/
|
|
53
|
-
const Client_js_49 = require("./api/resources/
|
|
54
|
-
const Client_js_50 = require("./api/resources/
|
|
55
|
-
const Client_js_51 = require("./api/resources/
|
|
56
|
-
const Client_js_52 = require("./api/resources/
|
|
57
|
-
const Client_js_53 = require("./api/resources/
|
|
58
|
-
const Client_js_54 = require("./api/resources/
|
|
11
|
+
const Client_js_7 = require("./api/resources/carbCtc/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/carrierProposedAssignments/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/coaching/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/contacts/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/documents/client/Client.js");
|
|
16
|
+
const Client_js_12 = require("./api/resources/driverQrCodes/client/Client.js");
|
|
17
|
+
const Client_js_13 = require("./api/resources/drivers/client/Client.js");
|
|
18
|
+
const Client_js_14 = require("./api/resources/driverTrailerAssignments/client/Client.js");
|
|
19
|
+
const Client_js_15 = require("./api/resources/driverVehicleAssignments/client/Client.js");
|
|
20
|
+
const Client_js_16 = require("./api/resources/equipment/client/Client.js");
|
|
21
|
+
const Client_js_17 = require("./api/resources/fleet/client/Client.js");
|
|
22
|
+
const Client_js_18 = require("./api/resources/forms/client/Client.js");
|
|
23
|
+
const Client_js_19 = require("./api/resources/fuelAndEnergy/client/Client.js");
|
|
24
|
+
const Client_js_20 = require("./api/resources/gateways/client/Client.js");
|
|
25
|
+
const Client_js_21 = require("./api/resources/hoursOfService/client/Client.js");
|
|
26
|
+
const Client_js_22 = require("./api/resources/hubs/client/Client.js");
|
|
27
|
+
const Client_js_23 = require("./api/resources/idling/client/Client.js");
|
|
28
|
+
const Client_js_24 = require("./api/resources/ifta/client/Client.js");
|
|
29
|
+
const Client_js_25 = require("./api/resources/industrial/client/Client.js");
|
|
30
|
+
const Client_js_26 = require("./api/resources/issues/client/Client.js");
|
|
31
|
+
const Client_js_27 = require("./api/resources/legacy/client/Client.js");
|
|
32
|
+
const Client_js_28 = require("./api/resources/legacyApIs/client/Client.js");
|
|
33
|
+
const Client_js_29 = require("./api/resources/liveSharingLinks/client/Client.js");
|
|
34
|
+
const Client_js_30 = require("./api/resources/locationAndSpeed/client/Client.js");
|
|
35
|
+
const Client_js_31 = require("./api/resources/maintenance/client/Client.js");
|
|
36
|
+
const Client_js_32 = require("./api/resources/media/client/Client.js");
|
|
37
|
+
const Client_js_33 = require("./api/resources/messages/client/Client.js");
|
|
38
|
+
const Client_js_34 = require("./api/resources/organizationInfo/client/Client.js");
|
|
39
|
+
const Client_js_35 = require("./api/resources/plans/client/Client.js");
|
|
40
|
+
const Client_js_36 = require("./api/resources/previewApIs/client/Client.js");
|
|
41
|
+
const Client_js_37 = require("./api/resources/routeEvents/client/Client.js");
|
|
42
|
+
const Client_js_38 = require("./api/resources/routes/client/Client.js");
|
|
43
|
+
const Client_js_39 = require("./api/resources/safety/client/Client.js");
|
|
44
|
+
const Client_js_40 = require("./api/resources/sensors/client/Client.js");
|
|
45
|
+
const Client_js_41 = require("./api/resources/settings/client/Client.js");
|
|
46
|
+
const Client_js_42 = require("./api/resources/speedingIntervals/client/Client.js");
|
|
47
|
+
const Client_js_43 = require("./api/resources/tachographEuOnly/client/Client.js");
|
|
48
|
+
const Client_js_44 = require("./api/resources/tags/client/Client.js");
|
|
49
|
+
const Client_js_45 = require("./api/resources/trailerAssignments/client/Client.js");
|
|
50
|
+
const Client_js_46 = require("./api/resources/trailers/client/Client.js");
|
|
51
|
+
const Client_js_47 = require("./api/resources/trainingAssignments/client/Client.js");
|
|
52
|
+
const Client_js_48 = require("./api/resources/trainingCourses/client/Client.js");
|
|
53
|
+
const Client_js_49 = require("./api/resources/trips/client/Client.js");
|
|
54
|
+
const Client_js_50 = require("./api/resources/users/client/Client.js");
|
|
55
|
+
const Client_js_51 = require("./api/resources/vehicleLocations/client/Client.js");
|
|
56
|
+
const Client_js_52 = require("./api/resources/vehicleStats/client/Client.js");
|
|
57
|
+
const Client_js_53 = require("./api/resources/vehicles/client/Client.js");
|
|
58
|
+
const Client_js_54 = require("./api/resources/webhooks/client/Client.js");
|
|
59
|
+
const Client_js_55 = require("./api/resources/workOrders/client/Client.js");
|
|
59
60
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
60
61
|
class SamsaraClient {
|
|
61
62
|
constructor(options = {}) {
|
|
@@ -79,7 +80,7 @@ class SamsaraClient {
|
|
|
79
80
|
}
|
|
80
81
|
get locationAndSpeed() {
|
|
81
82
|
var _a;
|
|
82
|
-
return ((_a = this._locationAndSpeed) !== null && _a !== void 0 ? _a : (this._locationAndSpeed = new
|
|
83
|
+
return ((_a = this._locationAndSpeed) !== null && _a !== void 0 ? _a : (this._locationAndSpeed = new Client_js_30.LocationAndSpeedClient(this._options)));
|
|
83
84
|
}
|
|
84
85
|
get attributes() {
|
|
85
86
|
var _a;
|
|
@@ -87,51 +88,55 @@ class SamsaraClient {
|
|
|
87
88
|
}
|
|
88
89
|
get media() {
|
|
89
90
|
var _a;
|
|
90
|
-
return ((_a = this._media) !== null && _a !== void 0 ? _a : (this._media = new
|
|
91
|
+
return ((_a = this._media) !== null && _a !== void 0 ? _a : (this._media = new Client_js_32.MediaClient(this._options)));
|
|
91
92
|
}
|
|
92
93
|
get coaching() {
|
|
93
94
|
var _a;
|
|
94
|
-
return ((_a = this._coaching) !== null && _a !== void 0 ? _a : (this._coaching = new
|
|
95
|
+
return ((_a = this._coaching) !== null && _a !== void 0 ? _a : (this._coaching = new Client_js_9.CoachingClient(this._options)));
|
|
95
96
|
}
|
|
96
97
|
get contacts() {
|
|
97
98
|
var _a;
|
|
98
|
-
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new
|
|
99
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_10.ContactsClient(this._options)));
|
|
99
100
|
}
|
|
100
101
|
get maintenance() {
|
|
101
102
|
var _a;
|
|
102
|
-
return ((_a = this._maintenance) !== null && _a !== void 0 ? _a : (this._maintenance = new
|
|
103
|
+
return ((_a = this._maintenance) !== null && _a !== void 0 ? _a : (this._maintenance = new Client_js_31.MaintenanceClient(this._options)));
|
|
103
104
|
}
|
|
104
105
|
get fuelAndEnergy() {
|
|
105
106
|
var _a;
|
|
106
|
-
return ((_a = this._fuelAndEnergy) !== null && _a !== void 0 ? _a : (this._fuelAndEnergy = new
|
|
107
|
+
return ((_a = this._fuelAndEnergy) !== null && _a !== void 0 ? _a : (this._fuelAndEnergy = new Client_js_19.FuelAndEnergyClient(this._options)));
|
|
107
108
|
}
|
|
108
109
|
get driverTrailerAssignments() {
|
|
109
110
|
var _a;
|
|
110
|
-
return ((_a = this._driverTrailerAssignments) !== null && _a !== void 0 ? _a : (this._driverTrailerAssignments = new
|
|
111
|
+
return ((_a = this._driverTrailerAssignments) !== null && _a !== void 0 ? _a : (this._driverTrailerAssignments = new Client_js_14.DriverTrailerAssignmentsClient(this._options)));
|
|
111
112
|
}
|
|
112
113
|
get driverQrCodes() {
|
|
113
114
|
var _a;
|
|
114
|
-
return ((_a = this._driverQrCodes) !== null && _a !== void 0 ? _a : (this._driverQrCodes = new
|
|
115
|
+
return ((_a = this._driverQrCodes) !== null && _a !== void 0 ? _a : (this._driverQrCodes = new Client_js_12.DriverQrCodesClient(this._options)));
|
|
116
|
+
}
|
|
117
|
+
get carbCtc() {
|
|
118
|
+
var _a;
|
|
119
|
+
return ((_a = this._carbCtc) !== null && _a !== void 0 ? _a : (this._carbCtc = new Client_js_7.CarbCtcClient(this._options)));
|
|
115
120
|
}
|
|
116
121
|
get carrierProposedAssignments() {
|
|
117
122
|
var _a;
|
|
118
|
-
return ((_a = this._carrierProposedAssignments) !== null && _a !== void 0 ? _a : (this._carrierProposedAssignments = new
|
|
123
|
+
return ((_a = this._carrierProposedAssignments) !== null && _a !== void 0 ? _a : (this._carrierProposedAssignments = new Client_js_8.CarrierProposedAssignmentsClient(this._options)));
|
|
119
124
|
}
|
|
120
125
|
get legacyApIs() {
|
|
121
126
|
var _a;
|
|
122
|
-
return ((_a = this._legacyApIs) !== null && _a !== void 0 ? _a : (this._legacyApIs = new
|
|
127
|
+
return ((_a = this._legacyApIs) !== null && _a !== void 0 ? _a : (this._legacyApIs = new Client_js_28.LegacyApIsClient(this._options)));
|
|
123
128
|
}
|
|
124
129
|
get documents() {
|
|
125
130
|
var _a;
|
|
126
|
-
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new
|
|
131
|
+
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_js_11.DocumentsClient(this._options)));
|
|
127
132
|
}
|
|
128
133
|
get driverVehicleAssignments() {
|
|
129
134
|
var _a;
|
|
130
|
-
return ((_a = this._driverVehicleAssignments) !== null && _a !== void 0 ? _a : (this._driverVehicleAssignments = new
|
|
135
|
+
return ((_a = this._driverVehicleAssignments) !== null && _a !== void 0 ? _a : (this._driverVehicleAssignments = new Client_js_15.DriverVehicleAssignmentsClient(this._options)));
|
|
131
136
|
}
|
|
132
137
|
get drivers() {
|
|
133
138
|
var _a;
|
|
134
|
-
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new
|
|
139
|
+
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Client_js_13.DriversClient(this._options)));
|
|
135
140
|
}
|
|
136
141
|
get authTokenForDriver() {
|
|
137
142
|
var _a;
|
|
@@ -139,143 +144,143 @@ class SamsaraClient {
|
|
|
139
144
|
}
|
|
140
145
|
get tachographEuOnly() {
|
|
141
146
|
var _a;
|
|
142
|
-
return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new
|
|
147
|
+
return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new Client_js_43.TachographEuOnlyClient(this._options)));
|
|
143
148
|
}
|
|
144
149
|
get equipment() {
|
|
145
150
|
var _a;
|
|
146
|
-
return ((_a = this._equipment) !== null && _a !== void 0 ? _a : (this._equipment = new
|
|
151
|
+
return ((_a = this._equipment) !== null && _a !== void 0 ? _a : (this._equipment = new Client_js_16.EquipmentClient(this._options)));
|
|
147
152
|
}
|
|
148
153
|
get hoursOfService() {
|
|
149
154
|
var _a;
|
|
150
|
-
return ((_a = this._hoursOfService) !== null && _a !== void 0 ? _a : (this._hoursOfService = new
|
|
155
|
+
return ((_a = this._hoursOfService) !== null && _a !== void 0 ? _a : (this._hoursOfService = new Client_js_21.HoursOfServiceClient(this._options)));
|
|
151
156
|
}
|
|
152
157
|
get ifta() {
|
|
153
158
|
var _a;
|
|
154
|
-
return ((_a = this._ifta) !== null && _a !== void 0 ? _a : (this._ifta = new
|
|
159
|
+
return ((_a = this._ifta) !== null && _a !== void 0 ? _a : (this._ifta = new Client_js_24.IftaClient(this._options)));
|
|
155
160
|
}
|
|
156
161
|
get routes() {
|
|
157
162
|
var _a;
|
|
158
|
-
return ((_a = this._routes) !== null && _a !== void 0 ? _a : (this._routes = new
|
|
163
|
+
return ((_a = this._routes) !== null && _a !== void 0 ? _a : (this._routes = new Client_js_38.RoutesClient(this._options)));
|
|
159
164
|
}
|
|
160
165
|
get settings() {
|
|
161
166
|
var _a;
|
|
162
|
-
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new
|
|
167
|
+
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_js_41.SettingsClient(this._options)));
|
|
163
168
|
}
|
|
164
169
|
get trailers() {
|
|
165
170
|
var _a;
|
|
166
|
-
return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new
|
|
171
|
+
return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new Client_js_46.TrailersClient(this._options)));
|
|
167
172
|
}
|
|
168
173
|
get vehicles() {
|
|
169
174
|
var _a;
|
|
170
|
-
return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new
|
|
175
|
+
return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new Client_js_53.VehiclesClient(this._options)));
|
|
171
176
|
}
|
|
172
177
|
get vehicleLocations() {
|
|
173
178
|
var _a;
|
|
174
|
-
return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new
|
|
179
|
+
return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new Client_js_51.VehicleLocationsClient(this._options)));
|
|
175
180
|
}
|
|
176
181
|
get vehicleStats() {
|
|
177
182
|
var _a;
|
|
178
|
-
return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new
|
|
183
|
+
return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new Client_js_52.VehicleStatsClient(this._options)));
|
|
179
184
|
}
|
|
180
185
|
get forms() {
|
|
181
186
|
var _a;
|
|
182
|
-
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new
|
|
187
|
+
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_js_18.FormsClient(this._options)));
|
|
183
188
|
}
|
|
184
189
|
get gateways() {
|
|
185
190
|
var _a;
|
|
186
|
-
return ((_a = this._gateways) !== null && _a !== void 0 ? _a : (this._gateways = new
|
|
191
|
+
return ((_a = this._gateways) !== null && _a !== void 0 ? _a : (this._gateways = new Client_js_20.GatewaysClient(this._options)));
|
|
187
192
|
}
|
|
188
193
|
get hubs() {
|
|
189
194
|
var _a;
|
|
190
|
-
return ((_a = this._hubs) !== null && _a !== void 0 ? _a : (this._hubs = new
|
|
195
|
+
return ((_a = this._hubs) !== null && _a !== void 0 ? _a : (this._hubs = new Client_js_22.HubsClient(this._options)));
|
|
191
196
|
}
|
|
192
197
|
get plans() {
|
|
193
198
|
var _a;
|
|
194
|
-
return ((_a = this._plans) !== null && _a !== void 0 ? _a : (this._plans = new
|
|
199
|
+
return ((_a = this._plans) !== null && _a !== void 0 ? _a : (this._plans = new Client_js_35.PlansClient(this._options)));
|
|
195
200
|
}
|
|
196
201
|
get idling() {
|
|
197
202
|
var _a;
|
|
198
|
-
return ((_a = this._idling) !== null && _a !== void 0 ? _a : (this._idling = new
|
|
203
|
+
return ((_a = this._idling) !== null && _a !== void 0 ? _a : (this._idling = new Client_js_23.IdlingClient(this._options)));
|
|
199
204
|
}
|
|
200
205
|
get industrial() {
|
|
201
206
|
var _a;
|
|
202
|
-
return ((_a = this._industrial) !== null && _a !== void 0 ? _a : (this._industrial = new
|
|
207
|
+
return ((_a = this._industrial) !== null && _a !== void 0 ? _a : (this._industrial = new Client_js_25.IndustrialClient(this._options)));
|
|
203
208
|
}
|
|
204
209
|
get issues() {
|
|
205
210
|
var _a;
|
|
206
|
-
return ((_a = this._issues) !== null && _a !== void 0 ? _a : (this._issues = new
|
|
211
|
+
return ((_a = this._issues) !== null && _a !== void 0 ? _a : (this._issues = new Client_js_26.IssuesClient(this._options)));
|
|
207
212
|
}
|
|
208
213
|
get liveSharingLinks() {
|
|
209
214
|
var _a;
|
|
210
|
-
return ((_a = this._liveSharingLinks) !== null && _a !== void 0 ? _a : (this._liveSharingLinks = new
|
|
215
|
+
return ((_a = this._liveSharingLinks) !== null && _a !== void 0 ? _a : (this._liveSharingLinks = new Client_js_29.LiveSharingLinksClient(this._options)));
|
|
211
216
|
}
|
|
212
217
|
get workOrders() {
|
|
213
218
|
var _a;
|
|
214
|
-
return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new
|
|
219
|
+
return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new Client_js_55.WorkOrdersClient(this._options)));
|
|
215
220
|
}
|
|
216
221
|
get organizationInfo() {
|
|
217
222
|
var _a;
|
|
218
|
-
return ((_a = this._organizationInfo) !== null && _a !== void 0 ? _a : (this._organizationInfo = new
|
|
223
|
+
return ((_a = this._organizationInfo) !== null && _a !== void 0 ? _a : (this._organizationInfo = new Client_js_34.OrganizationInfoClient(this._options)));
|
|
219
224
|
}
|
|
220
225
|
get previewApIs() {
|
|
221
226
|
var _a;
|
|
222
|
-
return ((_a = this._previewApIs) !== null && _a !== void 0 ? _a : (this._previewApIs = new
|
|
227
|
+
return ((_a = this._previewApIs) !== null && _a !== void 0 ? _a : (this._previewApIs = new Client_js_36.PreviewApIsClient(this._options)));
|
|
223
228
|
}
|
|
224
229
|
get routeEvents() {
|
|
225
230
|
var _a;
|
|
226
|
-
return ((_a = this._routeEvents) !== null && _a !== void 0 ? _a : (this._routeEvents = new
|
|
231
|
+
return ((_a = this._routeEvents) !== null && _a !== void 0 ? _a : (this._routeEvents = new Client_js_37.RouteEventsClient(this._options)));
|
|
227
232
|
}
|
|
228
233
|
get safety() {
|
|
229
234
|
var _a;
|
|
230
|
-
return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new
|
|
235
|
+
return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new Client_js_39.SafetyClient(this._options)));
|
|
231
236
|
}
|
|
232
237
|
get speedingIntervals() {
|
|
233
238
|
var _a;
|
|
234
|
-
return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new
|
|
239
|
+
return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new Client_js_42.SpeedingIntervalsClient(this._options)));
|
|
235
240
|
}
|
|
236
241
|
get tags() {
|
|
237
242
|
var _a;
|
|
238
|
-
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new
|
|
243
|
+
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_44.TagsClient(this._options)));
|
|
239
244
|
}
|
|
240
245
|
get trainingAssignments() {
|
|
241
246
|
var _a;
|
|
242
|
-
return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new
|
|
247
|
+
return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new Client_js_47.TrainingAssignmentsClient(this._options)));
|
|
243
248
|
}
|
|
244
249
|
get trainingCourses() {
|
|
245
250
|
var _a;
|
|
246
|
-
return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new
|
|
251
|
+
return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new Client_js_48.TrainingCoursesClient(this._options)));
|
|
247
252
|
}
|
|
248
253
|
get trips() {
|
|
249
254
|
var _a;
|
|
250
|
-
return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new
|
|
255
|
+
return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new Client_js_49.TripsClient(this._options)));
|
|
251
256
|
}
|
|
252
257
|
get users() {
|
|
253
258
|
var _a;
|
|
254
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
259
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_50.UsersClient(this._options)));
|
|
255
260
|
}
|
|
256
261
|
get legacy() {
|
|
257
262
|
var _a;
|
|
258
|
-
return ((_a = this._legacy) !== null && _a !== void 0 ? _a : (this._legacy = new
|
|
263
|
+
return ((_a = this._legacy) !== null && _a !== void 0 ? _a : (this._legacy = new Client_js_27.LegacyClient(this._options)));
|
|
259
264
|
}
|
|
260
265
|
get messages() {
|
|
261
266
|
var _a;
|
|
262
|
-
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new
|
|
267
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_33.MessagesClient(this._options)));
|
|
263
268
|
}
|
|
264
269
|
get trailerAssignments() {
|
|
265
270
|
var _a;
|
|
266
|
-
return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new
|
|
271
|
+
return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new Client_js_45.TrailerAssignmentsClient(this._options)));
|
|
267
272
|
}
|
|
268
273
|
get sensors() {
|
|
269
274
|
var _a;
|
|
270
|
-
return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new
|
|
275
|
+
return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new Client_js_40.SensorsClient(this._options)));
|
|
271
276
|
}
|
|
272
277
|
get webhooks() {
|
|
273
278
|
var _a;
|
|
274
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
279
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_54.WebhooksClient(this._options)));
|
|
275
280
|
}
|
|
276
281
|
get fleet() {
|
|
277
282
|
var _a;
|
|
278
|
-
return ((_a = this._fleet) !== null && _a !== void 0 ? _a : (this._fleet = new
|
|
283
|
+
return ((_a = this._fleet) !== null && _a !== void 0 ? _a : (this._fleet = new Client_js_17.FleetClient(this._options)));
|
|
279
284
|
}
|
|
280
285
|
}
|
|
281
286
|
exports.SamsaraClient = SamsaraClient;
|
|
@@ -612,64 +612,6 @@ export declare class BetaApIsClient {
|
|
|
612
612
|
*/
|
|
613
613
|
recoverAsset(request: Samsara.DeviceRecoveryRecoverAssetRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.DeviceRecoveryRecoverAssetResponseBody>;
|
|
614
614
|
private __recoverAsset;
|
|
615
|
-
/**
|
|
616
|
-
* Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status.
|
|
617
|
-
*
|
|
618
|
-
* <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>).
|
|
619
|
-
*
|
|
620
|
-
* To use this endpoint, select **Read CARB CTC Integration** 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>
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
* **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.
|
|
624
|
-
*
|
|
625
|
-
* @param {Samsara.ListCarbCtcVehiclesRequest} request
|
|
626
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
627
|
-
*
|
|
628
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
629
|
-
* @throws {@link Samsara.NotFoundError}
|
|
630
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
631
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
632
|
-
* @throws {@link Samsara.InternalServerError}
|
|
633
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
634
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
635
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
636
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
637
|
-
*
|
|
638
|
-
* @example
|
|
639
|
-
* await client.betaApIs.listCarbCtcVehicles()
|
|
640
|
-
*/
|
|
641
|
-
listCarbCtcVehicles(request?: Samsara.ListCarbCtcVehiclesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.CarbCtcListCarbCtcVehiclesResponseBody>;
|
|
642
|
-
private __listCarbCtcVehicles;
|
|
643
|
-
/**
|
|
644
|
-
* Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker.
|
|
645
|
-
*
|
|
646
|
-
* <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>).
|
|
647
|
-
*
|
|
648
|
-
* To use this endpoint, select **Read CARB CTC Integration** 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>
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
* **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.
|
|
652
|
-
*
|
|
653
|
-
* @param {Samsara.ListCarbCtcVehicleHistoryRequest} request
|
|
654
|
-
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
655
|
-
*
|
|
656
|
-
* @throws {@link Samsara.UnauthorizedError}
|
|
657
|
-
* @throws {@link Samsara.NotFoundError}
|
|
658
|
-
* @throws {@link Samsara.MethodNotAllowedError}
|
|
659
|
-
* @throws {@link Samsara.TooManyRequestsError}
|
|
660
|
-
* @throws {@link Samsara.InternalServerError}
|
|
661
|
-
* @throws {@link Samsara.NotImplementedError}
|
|
662
|
-
* @throws {@link Samsara.BadGatewayError}
|
|
663
|
-
* @throws {@link Samsara.ServiceUnavailableError}
|
|
664
|
-
* @throws {@link Samsara.GatewayTimeoutError}
|
|
665
|
-
*
|
|
666
|
-
* @example
|
|
667
|
-
* await client.betaApIs.listCarbCtcVehicleHistory({
|
|
668
|
-
* vehicleIds: "vehicleIds"
|
|
669
|
-
* })
|
|
670
|
-
*/
|
|
671
|
-
listCarbCtcVehicleHistory(request: Samsara.ListCarbCtcVehicleHistoryRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.CarbCtcListCarbCtcVehicleHistoryResponseBody>;
|
|
672
|
-
private __listCarbCtcVehicleHistory;
|
|
673
615
|
/**
|
|
674
616
|
* Resolves a driver by name within an organization via voice sign-in, then creates a driver-vehicle assignment via the Driver Assignment Service.
|
|
675
617
|
*
|