@samsarahq/samsara 13.27.0 → 13.29.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/assets/client/Client.d.ts +4 -24
- package/dist/cjs/api/resources/assets/client/Client.js +4 -24
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/betaApIs/client/Client.js +90 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetPlaceGeocodeRequest.d.ts +14 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetPlaceGeocodeRequest.js +3 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/hoursOfService/client/Client.d.ts +2 -12
- package/dist/cjs/api/resources/hoursOfService/client/Client.js +2 -12
- package/dist/cjs/api/resources/industrial/client/Client.d.ts +7 -42
- package/dist/cjs/api/resources/industrial/client/Client.js +7 -42
- package/dist/cjs/api/resources/legacyApIs/client/Client.d.ts +1 -6
- package/dist/cjs/api/resources/legacyApIs/client/Client.js +1 -6
- package/dist/cjs/api/resources/maintenance/client/Client.d.ts +1 -6
- package/dist/cjs/api/resources/maintenance/client/Client.js +1 -6
- package/dist/cjs/api/resources/messages/client/Client.d.ts +2 -12
- package/dist/cjs/api/resources/messages/client/Client.js +2 -12
- package/dist/cjs/api/resources/routes/client/Client.d.ts +1 -6
- package/dist/cjs/api/resources/routes/client/Client.js +1 -6
- package/dist/cjs/api/resources/safety/client/Client.d.ts +2 -12
- package/dist/cjs/api/resources/safety/client/Client.js +2 -12
- package/dist/cjs/api/resources/sensors/client/Client.d.ts +6 -36
- package/dist/cjs/api/resources/sensors/client/Client.js +6 -36
- package/dist/cjs/api/resources/trailerAssignments/client/Client.d.ts +2 -12
- package/dist/cjs/api/resources/trailerAssignments/client/Client.js +2 -12
- package/dist/cjs/api/resources/trailers/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/trailers/client/Client.js +2 -0
- package/dist/cjs/api/resources/trips/client/Client.d.ts +1 -6
- package/dist/cjs/api/resources/trips/client/Client.js +1 -6
- package/dist/cjs/api/types/HarshEventTriggerDetailsObjectRequestBody.d.ts +2 -1
- package/dist/cjs/api/types/HarshEventTriggerDetailsObjectRequestBody.js +2 -1
- package/dist/cjs/api/types/HarshEventTriggerDetailsObjectResponseBody.d.ts +2 -1
- package/dist/cjs/api/types/HarshEventTriggerDetailsObjectResponseBody.js +2 -1
- package/dist/cjs/api/types/PlaceGeocodeResultResponseResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlaceGeocodeResultResponseResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/PlacesGetPlaceGeocodeUnauthorizedErrorResponseBody.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/assets/client/Client.d.mts +4 -24
- package/dist/esm/api/resources/assets/client/Client.mjs +4 -24
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +90 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetPlaceGeocodeRequest.d.mts +14 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetPlaceGeocodeRequest.mjs +2 -0
- package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/hoursOfService/client/Client.d.mts +2 -12
- package/dist/esm/api/resources/hoursOfService/client/Client.mjs +2 -12
- package/dist/esm/api/resources/industrial/client/Client.d.mts +7 -42
- package/dist/esm/api/resources/industrial/client/Client.mjs +7 -42
- package/dist/esm/api/resources/legacyApIs/client/Client.d.mts +1 -6
- package/dist/esm/api/resources/legacyApIs/client/Client.mjs +1 -6
- package/dist/esm/api/resources/maintenance/client/Client.d.mts +1 -6
- package/dist/esm/api/resources/maintenance/client/Client.mjs +1 -6
- package/dist/esm/api/resources/messages/client/Client.d.mts +2 -12
- package/dist/esm/api/resources/messages/client/Client.mjs +2 -12
- package/dist/esm/api/resources/routes/client/Client.d.mts +1 -6
- package/dist/esm/api/resources/routes/client/Client.mjs +1 -6
- package/dist/esm/api/resources/safety/client/Client.d.mts +2 -12
- package/dist/esm/api/resources/safety/client/Client.mjs +2 -12
- package/dist/esm/api/resources/sensors/client/Client.d.mts +6 -36
- package/dist/esm/api/resources/sensors/client/Client.mjs +6 -36
- package/dist/esm/api/resources/trailerAssignments/client/Client.d.mts +2 -12
- package/dist/esm/api/resources/trailerAssignments/client/Client.mjs +2 -12
- package/dist/esm/api/resources/trailers/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/trailers/client/Client.mjs +2 -0
- package/dist/esm/api/resources/trips/client/Client.d.mts +1 -6
- package/dist/esm/api/resources/trips/client/Client.mjs +1 -6
- package/dist/esm/api/types/HarshEventTriggerDetailsObjectRequestBody.d.mts +2 -1
- package/dist/esm/api/types/HarshEventTriggerDetailsObjectRequestBody.mjs +2 -1
- package/dist/esm/api/types/HarshEventTriggerDetailsObjectResponseBody.d.mts +2 -1
- package/dist/esm/api/types/HarshEventTriggerDetailsObjectResponseBody.mjs +2 -1
- package/dist/esm/api/types/PlaceGeocodeResultResponseResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlaceGeocodeResultResponseResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeResponseBody.d.mts +6 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/PlacesGetPlaceGeocodeUnauthorizedErrorResponseBody.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 +103 -174
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.29.0",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/13.29.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",
|
|
@@ -126,12 +126,7 @@ export declare class AssetsClient {
|
|
|
126
126
|
updateAsset(request: Samsara.AssetsUpdateAssetRequestBody, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Samsara.AssetsUpdateAssetResponseBody>;
|
|
127
127
|
private __updateAsset;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
130
|
-
* <nh>
|
|
131
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
132
|
-
* This endpoint is still on our legacy API.
|
|
133
|
-
* </nh>
|
|
134
|
-
* </n>
|
|
129
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
135
130
|
*
|
|
136
131
|
* Fetch current locations of all assets.
|
|
137
132
|
*
|
|
@@ -148,12 +143,7 @@ export declare class AssetsClient {
|
|
|
148
143
|
v1GetAllAssetCurrentLocations(request?: Samsara.V1GetAllAssetCurrentLocationsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Samsara.InlineResponse2002>;
|
|
149
144
|
private __v1GetAllAssetCurrentLocations;
|
|
150
145
|
/**
|
|
151
|
-
*
|
|
152
|
-
* <nh>
|
|
153
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
154
|
-
* This endpoint is still on our legacy API.
|
|
155
|
-
* </nh>
|
|
156
|
-
* </n>
|
|
146
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
157
147
|
*
|
|
158
148
|
* Fetches all reefers and reefer-specific stats.
|
|
159
149
|
*
|
|
@@ -173,12 +163,7 @@ export declare class AssetsClient {
|
|
|
173
163
|
v1GetAssetsReefers(request: Samsara.V1GetAssetsReefersRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Samsara.InlineResponse2003>;
|
|
174
164
|
private __v1GetAssetsReefers;
|
|
175
165
|
/**
|
|
176
|
-
*
|
|
177
|
-
* <nh>
|
|
178
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
179
|
-
* This endpoint is still on our legacy API.
|
|
180
|
-
* </nh>
|
|
181
|
-
* </n>
|
|
166
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
182
167
|
*
|
|
183
168
|
* List historical locations for a given asset.
|
|
184
169
|
*
|
|
@@ -199,12 +184,7 @@ export declare class AssetsClient {
|
|
|
199
184
|
v1GetAssetLocation(request: Samsara.V1GetAssetLocationRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Samsara.V1AssetLocationResponse>;
|
|
200
185
|
private __v1GetAssetLocation;
|
|
201
186
|
/**
|
|
202
|
-
*
|
|
203
|
-
* <nh>
|
|
204
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
205
|
-
* This endpoint is still on our legacy API.
|
|
206
|
-
* </nh>
|
|
207
|
-
* </n>
|
|
187
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
208
188
|
*
|
|
209
189
|
* Fetch the reefer-specific stats of an asset.
|
|
210
190
|
*
|
|
@@ -435,12 +435,7 @@ class AssetsClient {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
439
|
-
* <nh>
|
|
440
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
441
|
-
* This endpoint is still on our legacy API.
|
|
442
|
-
* </nh>
|
|
443
|
-
* </n>
|
|
438
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
444
439
|
*
|
|
445
440
|
* Fetch current locations of all assets.
|
|
446
441
|
*
|
|
@@ -493,12 +488,7 @@ class AssetsClient {
|
|
|
493
488
|
});
|
|
494
489
|
}
|
|
495
490
|
/**
|
|
496
|
-
*
|
|
497
|
-
* <nh>
|
|
498
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
499
|
-
* This endpoint is still on our legacy API.
|
|
500
|
-
* </nh>
|
|
501
|
-
* </n>
|
|
491
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
502
492
|
*
|
|
503
493
|
* Fetches all reefers and reefer-specific stats.
|
|
504
494
|
*
|
|
@@ -556,12 +546,7 @@ class AssetsClient {
|
|
|
556
546
|
});
|
|
557
547
|
}
|
|
558
548
|
/**
|
|
559
|
-
*
|
|
560
|
-
* <nh>
|
|
561
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
562
|
-
* This endpoint is still on our legacy API.
|
|
563
|
-
* </nh>
|
|
564
|
-
* </n>
|
|
549
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
565
550
|
*
|
|
566
551
|
* List historical locations for a given asset.
|
|
567
552
|
*
|
|
@@ -617,12 +602,7 @@ class AssetsClient {
|
|
|
617
602
|
});
|
|
618
603
|
}
|
|
619
604
|
/**
|
|
620
|
-
*
|
|
621
|
-
* <nh>
|
|
622
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
623
|
-
* This endpoint is still on our legacy API.
|
|
624
|
-
* </nh>
|
|
625
|
-
* </n>
|
|
605
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
626
606
|
*
|
|
627
607
|
* Fetch the reefer-specific stats of an asset.
|
|
628
608
|
*
|
|
@@ -1648,6 +1648,36 @@ export declare class BetaApIsClient {
|
|
|
1648
1648
|
*/
|
|
1649
1649
|
getPlaceDeletions(request?: Samsara.GetPlaceDeletionsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlacesGetPlaceDeletionsResponseBody>;
|
|
1650
1650
|
private __getPlaceDeletions;
|
|
1651
|
+
/**
|
|
1652
|
+
* Forward-geocodes a free-form address string. Does not create or update a Place. Returns geocode candidates with cursor pagination.
|
|
1653
|
+
*
|
|
1654
|
+
* <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>).
|
|
1655
|
+
*
|
|
1656
|
+
* To use this endpoint, select **Read Places** under the Places 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>
|
|
1657
|
+
*
|
|
1658
|
+
*
|
|
1659
|
+
* **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.
|
|
1660
|
+
*
|
|
1661
|
+
* @param {Samsara.GetPlaceGeocodeRequest} request
|
|
1662
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1663
|
+
*
|
|
1664
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
1665
|
+
* @throws {@link Samsara.NotFoundError}
|
|
1666
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
1667
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
1668
|
+
* @throws {@link Samsara.InternalServerError}
|
|
1669
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
1670
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
1671
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
1672
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
1673
|
+
*
|
|
1674
|
+
* @example
|
|
1675
|
+
* await client.betaApIs.getPlaceGeocode({
|
|
1676
|
+
* address: "address"
|
|
1677
|
+
* })
|
|
1678
|
+
*/
|
|
1679
|
+
getPlaceGeocode(request: Samsara.GetPlaceGeocodeRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlacesGetPlaceGeocodeResponseBody>;
|
|
1680
|
+
private __getPlaceGeocode;
|
|
1651
1681
|
/**
|
|
1652
1682
|
* List all preferred fuel stations for your organization.
|
|
1653
1683
|
*
|
|
@@ -4858,6 +4858,96 @@ class BetaApIsClient {
|
|
|
4858
4858
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/places/deletions");
|
|
4859
4859
|
});
|
|
4860
4860
|
}
|
|
4861
|
+
/**
|
|
4862
|
+
* Forward-geocodes a free-form address string. Does not create or update a Place. Returns geocode candidates with cursor pagination.
|
|
4863
|
+
*
|
|
4864
|
+
* <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>).
|
|
4865
|
+
*
|
|
4866
|
+
* To use this endpoint, select **Read Places** under the Places 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>
|
|
4867
|
+
*
|
|
4868
|
+
*
|
|
4869
|
+
* **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.
|
|
4870
|
+
*
|
|
4871
|
+
* @param {Samsara.GetPlaceGeocodeRequest} request
|
|
4872
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4873
|
+
*
|
|
4874
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
4875
|
+
* @throws {@link Samsara.NotFoundError}
|
|
4876
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
4877
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
4878
|
+
* @throws {@link Samsara.InternalServerError}
|
|
4879
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
4880
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
4881
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
4882
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
4883
|
+
*
|
|
4884
|
+
* @example
|
|
4885
|
+
* await client.betaApIs.getPlaceGeocode({
|
|
4886
|
+
* address: "address"
|
|
4887
|
+
* })
|
|
4888
|
+
*/
|
|
4889
|
+
getPlaceGeocode(request, requestOptions) {
|
|
4890
|
+
return core.HttpResponsePromise.fromPromise(this.__getPlaceGeocode(request, requestOptions));
|
|
4891
|
+
}
|
|
4892
|
+
__getPlaceGeocode(request, requestOptions) {
|
|
4893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4894
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
4895
|
+
const { address, after, limit } = request;
|
|
4896
|
+
const _queryParams = {
|
|
4897
|
+
address,
|
|
4898
|
+
after,
|
|
4899
|
+
limit,
|
|
4900
|
+
};
|
|
4901
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4902
|
+
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);
|
|
4903
|
+
const _response = yield core.fetcher({
|
|
4904
|
+
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, "places/geocode"),
|
|
4905
|
+
method: "GET",
|
|
4906
|
+
headers: _headers,
|
|
4907
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
4908
|
+
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,
|
|
4909
|
+
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,
|
|
4910
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
4911
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
4912
|
+
logging: this._options.logging,
|
|
4913
|
+
});
|
|
4914
|
+
if (_response.ok) {
|
|
4915
|
+
return {
|
|
4916
|
+
data: _response.body,
|
|
4917
|
+
rawResponse: _response.rawResponse,
|
|
4918
|
+
};
|
|
4919
|
+
}
|
|
4920
|
+
if (_response.error.reason === "status-code") {
|
|
4921
|
+
switch (_response.error.statusCode) {
|
|
4922
|
+
case 401:
|
|
4923
|
+
throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
4924
|
+
case 404:
|
|
4925
|
+
throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
|
|
4926
|
+
case 405:
|
|
4927
|
+
throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
|
|
4928
|
+
case 429:
|
|
4929
|
+
throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
4930
|
+
case 500:
|
|
4931
|
+
throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
|
|
4932
|
+
case 501:
|
|
4933
|
+
throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
4934
|
+
case 502:
|
|
4935
|
+
throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
4936
|
+
case 503:
|
|
4937
|
+
throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
4938
|
+
case 504:
|
|
4939
|
+
throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
4940
|
+
default:
|
|
4941
|
+
throw new errors.SamsaraError({
|
|
4942
|
+
statusCode: _response.error.statusCode,
|
|
4943
|
+
body: _response.error.body,
|
|
4944
|
+
rawResponse: _response.rawResponse,
|
|
4945
|
+
});
|
|
4946
|
+
}
|
|
4947
|
+
}
|
|
4948
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/places/geocode");
|
|
4949
|
+
});
|
|
4950
|
+
}
|
|
4861
4951
|
/**
|
|
4862
4952
|
* List all preferred fuel stations for your organization.
|
|
4863
4953
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* address: "address"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface GetPlaceGeocodeRequest {
|
|
8
|
+
/** Address string to forward-geocode (URL-encoded). Required; must be non-empty. */
|
|
9
|
+
address: string;
|
|
10
|
+
/** 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. */
|
|
11
|
+
after?: string;
|
|
12
|
+
/** The limit for how many objects will be in the response. Default 5, max 20. */
|
|
13
|
+
limit?: number;
|
|
14
|
+
}
|
|
@@ -33,6 +33,7 @@ export type { GetFunctionStorageFileRequest } from "./GetFunctionStorageFileRequ
|
|
|
33
33
|
export type { GetHosEldEventsRequest } from "./GetHosEldEventsRequest.js";
|
|
34
34
|
export type { GetJobsRequest } from "./GetJobsRequest.js";
|
|
35
35
|
export type { GetPlaceDeletionsRequest } from "./GetPlaceDeletionsRequest.js";
|
|
36
|
+
export type { GetPlaceGeocodeRequest } from "./GetPlaceGeocodeRequest.js";
|
|
36
37
|
export type { GetPlacesRequest } from "./GetPlacesRequest.js";
|
|
37
38
|
export type { GetPreferredStationRequest } from "./GetPreferredStationRequest.js";
|
|
38
39
|
export type { GetQualificationRecordsRequest } from "./GetQualificationRecordsRequest.js";
|
|
@@ -115,12 +115,7 @@ export declare class HoursOfServiceClient {
|
|
|
115
115
|
getHosViolations(request?: Samsara.GetHosViolationsRequest, requestOptions?: HoursOfServiceClient.RequestOptions): core.HttpResponsePromise<Samsara.HosViolationsGetHosViolationsResponseBody>;
|
|
116
116
|
private __getHosViolations;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
119
|
-
* <nh>
|
|
120
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
121
|
-
* This endpoint is still on our legacy API.
|
|
122
|
-
* </nh>
|
|
123
|
-
* </n>
|
|
118
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
124
119
|
*
|
|
125
120
|
* Set an individual driver’s current duty status to 'On Duty' or 'Off Duty'.
|
|
126
121
|
*
|
|
@@ -142,12 +137,7 @@ export declare class HoursOfServiceClient {
|
|
|
142
137
|
setCurrentDutyStatus(request: Samsara.InlineObject1, requestOptions?: HoursOfServiceClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
143
138
|
private __setCurrentDutyStatus;
|
|
144
139
|
/**
|
|
145
|
-
*
|
|
146
|
-
* <nh>
|
|
147
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
148
|
-
* This endpoint is still on our legacy API.
|
|
149
|
-
* </nh>
|
|
150
|
-
* </n>
|
|
140
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
151
141
|
*
|
|
152
142
|
* Get the HOS (hours of service) signin and signout logs for the specified driver. The response includes 4 fields that are now deprecated.
|
|
153
143
|
*
|
|
@@ -377,12 +377,7 @@ class HoursOfServiceClient {
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
381
|
-
* <nh>
|
|
382
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
383
|
-
* This endpoint is still on our legacy API.
|
|
384
|
-
* </nh>
|
|
385
|
-
* </n>
|
|
380
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
386
381
|
*
|
|
387
382
|
* Set an individual driver’s current duty status to 'On Duty' or 'Off Duty'.
|
|
388
383
|
*
|
|
@@ -438,12 +433,7 @@ class HoursOfServiceClient {
|
|
|
438
433
|
});
|
|
439
434
|
}
|
|
440
435
|
/**
|
|
441
|
-
*
|
|
442
|
-
* <nh>
|
|
443
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
444
|
-
* This endpoint is still on our legacy API.
|
|
445
|
-
* </nh>
|
|
446
|
-
* </n>
|
|
436
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
447
437
|
*
|
|
448
438
|
* Get the HOS (hours of service) signin and signout logs for the specified driver. The response includes 4 fields that are now deprecated.
|
|
449
439
|
*
|
|
@@ -165,12 +165,7 @@ export declare class IndustrialClient {
|
|
|
165
165
|
getDataInputDataHistory(request: Samsara.GetDataInputDataHistoryRequest, requestOptions?: IndustrialClient.RequestOptions): core.HttpResponsePromise<Samsara.DataInputListResponse>;
|
|
166
166
|
private __getDataInputDataHistory;
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
169
|
-
* <nh>
|
|
170
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
171
|
-
* This endpoint is still on our legacy API.
|
|
172
|
-
* </nh>
|
|
173
|
-
* </n>
|
|
168
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
174
169
|
*
|
|
175
170
|
* Fetch all cameras.
|
|
176
171
|
*
|
|
@@ -186,12 +181,7 @@ export declare class IndustrialClient {
|
|
|
186
181
|
v1GetCameras(requestOptions?: IndustrialClient.RequestOptions): core.HttpResponsePromise<Samsara.V1VisionCamerasResponse>;
|
|
187
182
|
private __v1GetCameras;
|
|
188
183
|
/**
|
|
189
|
-
*
|
|
190
|
-
* <nh>
|
|
191
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
192
|
-
* This endpoint is still on our legacy API.
|
|
193
|
-
* </nh>
|
|
194
|
-
* </n>
|
|
184
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
195
185
|
*
|
|
196
186
|
* Fetch configured programs on the camera.
|
|
197
187
|
*
|
|
@@ -227,12 +217,7 @@ export declare class IndustrialClient {
|
|
|
227
217
|
v1GetVisionLatestRunCamera(request: Samsara.V1GetVisionLatestRunCameraRequest, requestOptions?: IndustrialClient.RequestOptions): core.HttpResponsePromise<Samsara.V1VisionRunByCameraResponse>;
|
|
228
218
|
private __v1GetVisionLatestRunCamera;
|
|
229
219
|
/**
|
|
230
|
-
*
|
|
231
|
-
* <nh>
|
|
232
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
233
|
-
* This endpoint is still on our legacy API.
|
|
234
|
-
* </nh>
|
|
235
|
-
* </n>
|
|
220
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
236
221
|
*
|
|
237
222
|
* Fetch runs.
|
|
238
223
|
*
|
|
@@ -251,12 +236,7 @@ export declare class IndustrialClient {
|
|
|
251
236
|
v1GetVisionRuns(request: Samsara.V1GetVisionRunsRequest, requestOptions?: IndustrialClient.RequestOptions): core.HttpResponsePromise<Samsara.V1VisionRunsResponse>;
|
|
252
237
|
private __v1GetVisionRuns;
|
|
253
238
|
/**
|
|
254
|
-
*
|
|
255
|
-
* <nh>
|
|
256
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
257
|
-
* This endpoint is still on our legacy API.
|
|
258
|
-
* </nh>
|
|
259
|
-
* </n>
|
|
239
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
260
240
|
*
|
|
261
241
|
* Fetch runs by camera.
|
|
262
242
|
*
|
|
@@ -276,12 +256,7 @@ export declare class IndustrialClient {
|
|
|
276
256
|
getVisionRunsByCamera(request: Samsara.GetVisionRunsByCameraRequest, requestOptions?: IndustrialClient.RequestOptions): core.HttpResponsePromise<Samsara.V1VisionRunsByCameraResponse>;
|
|
277
257
|
private __getVisionRunsByCamera;
|
|
278
258
|
/**
|
|
279
|
-
*
|
|
280
|
-
* <nh>
|
|
281
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
282
|
-
* This endpoint is still on our legacy API.
|
|
283
|
-
* </nh>
|
|
284
|
-
* </n>
|
|
259
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
285
260
|
*
|
|
286
261
|
* Fetch runs by camera and program.
|
|
287
262
|
*
|
|
@@ -302,12 +277,7 @@ export declare class IndustrialClient {
|
|
|
302
277
|
v1GetVisionRunsByCameraAndProgram(request: Samsara.V1GetVisionRunsByCameraAndProgramRequest, requestOptions?: IndustrialClient.RequestOptions): core.HttpResponsePromise<Samsara.V1VisionRunsByCameraAndProgramResponse>;
|
|
303
278
|
private __v1GetVisionRunsByCameraAndProgram;
|
|
304
279
|
/**
|
|
305
|
-
*
|
|
306
|
-
* <nh>
|
|
307
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
308
|
-
* This endpoint is still on our legacy API.
|
|
309
|
-
* </nh>
|
|
310
|
-
* </n>
|
|
280
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
311
281
|
*
|
|
312
282
|
* Get historical data for machine objects. This method returns a set of historical data for all machines.
|
|
313
283
|
*
|
|
@@ -327,12 +297,7 @@ export declare class IndustrialClient {
|
|
|
327
297
|
v1GetMachinesHistory(request: Samsara.InlineObject3, requestOptions?: IndustrialClient.RequestOptions): core.HttpResponsePromise<Samsara.V1MachineHistoryResponse>;
|
|
328
298
|
private __v1GetMachinesHistory;
|
|
329
299
|
/**
|
|
330
|
-
*
|
|
331
|
-
* <nh>
|
|
332
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
333
|
-
* This endpoint is still on our legacy API.
|
|
334
|
-
* </nh>
|
|
335
|
-
* </n>
|
|
300
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
336
301
|
*
|
|
337
302
|
* Get machine objects. This method returns a list of the machine objects in the Samsara Cloud and information about them.
|
|
338
303
|
*
|
|
@@ -540,12 +540,7 @@ class IndustrialClient {
|
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
/**
|
|
543
|
-
*
|
|
544
|
-
* <nh>
|
|
545
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
546
|
-
* This endpoint is still on our legacy API.
|
|
547
|
-
* </nh>
|
|
548
|
-
* </n>
|
|
543
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
549
544
|
*
|
|
550
545
|
* Fetch all cameras.
|
|
551
546
|
*
|
|
@@ -591,12 +586,7 @@ class IndustrialClient {
|
|
|
591
586
|
});
|
|
592
587
|
}
|
|
593
588
|
/**
|
|
594
|
-
*
|
|
595
|
-
* <nh>
|
|
596
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
597
|
-
* This endpoint is still on our legacy API.
|
|
598
|
-
* </nh>
|
|
599
|
-
* </n>
|
|
589
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
600
590
|
*
|
|
601
591
|
* Fetch configured programs on the camera.
|
|
602
592
|
*
|
|
@@ -703,12 +693,7 @@ class IndustrialClient {
|
|
|
703
693
|
});
|
|
704
694
|
}
|
|
705
695
|
/**
|
|
706
|
-
*
|
|
707
|
-
* <nh>
|
|
708
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
709
|
-
* This endpoint is still on our legacy API.
|
|
710
|
-
* </nh>
|
|
711
|
-
* </n>
|
|
696
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
712
697
|
*
|
|
713
698
|
* Fetch runs.
|
|
714
699
|
*
|
|
@@ -762,12 +747,7 @@ class IndustrialClient {
|
|
|
762
747
|
});
|
|
763
748
|
}
|
|
764
749
|
/**
|
|
765
|
-
*
|
|
766
|
-
* <nh>
|
|
767
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
768
|
-
* This endpoint is still on our legacy API.
|
|
769
|
-
* </nh>
|
|
770
|
-
* </n>
|
|
750
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
771
751
|
*
|
|
772
752
|
* Fetch runs by camera.
|
|
773
753
|
*
|
|
@@ -822,12 +802,7 @@ class IndustrialClient {
|
|
|
822
802
|
});
|
|
823
803
|
}
|
|
824
804
|
/**
|
|
825
|
-
*
|
|
826
|
-
* <nh>
|
|
827
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
828
|
-
* This endpoint is still on our legacy API.
|
|
829
|
-
* </nh>
|
|
830
|
-
* </n>
|
|
805
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
831
806
|
*
|
|
832
807
|
* Fetch runs by camera and program.
|
|
833
808
|
*
|
|
@@ -885,12 +860,7 @@ class IndustrialClient {
|
|
|
885
860
|
});
|
|
886
861
|
}
|
|
887
862
|
/**
|
|
888
|
-
*
|
|
889
|
-
* <nh>
|
|
890
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
891
|
-
* This endpoint is still on our legacy API.
|
|
892
|
-
* </nh>
|
|
893
|
-
* </n>
|
|
863
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
894
864
|
*
|
|
895
865
|
* Get historical data for machine objects. This method returns a set of historical data for all machines.
|
|
896
866
|
*
|
|
@@ -943,12 +913,7 @@ class IndustrialClient {
|
|
|
943
913
|
});
|
|
944
914
|
}
|
|
945
915
|
/**
|
|
946
|
-
*
|
|
947
|
-
* <nh>
|
|
948
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
949
|
-
* This endpoint is still on our legacy API.
|
|
950
|
-
* </nh>
|
|
951
|
-
* </n>
|
|
916
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
952
917
|
*
|
|
953
918
|
* Get machine objects. This method returns a list of the machine objects in the Samsara Cloud and information about them.
|
|
954
919
|
*
|
|
@@ -194,12 +194,7 @@ export declare class LegacyApIsClient {
|
|
|
194
194
|
getVehiclesDriverAssignments(request?: Samsara.GetVehiclesDriverAssignmentsRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.VehiclesDriverAssignmentsGetVehiclesDriverAssignmentsResponseBody>;
|
|
195
195
|
private __getVehiclesDriverAssignments;
|
|
196
196
|
/**
|
|
197
|
-
* **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.**
|
|
198
|
-
* <nh>
|
|
199
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
200
|
-
* This endpoint is still on our legacy API.
|
|
201
|
-
* </nh>
|
|
202
|
-
* </n>
|
|
197
|
+
* **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.** > 🚧 This endpoint is still on our legacy API.
|
|
203
198
|
*
|
|
204
199
|
* Fetch harsh event details for a vehicle.
|
|
205
200
|
*
|
|
@@ -607,12 +607,7 @@ class LegacyApIsClient {
|
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
/**
|
|
610
|
-
* **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.**
|
|
611
|
-
* <nh>
|
|
612
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
613
|
-
* This endpoint is still on our legacy API.
|
|
614
|
-
* </nh>
|
|
615
|
-
* </n>
|
|
610
|
+
* **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.** > 🚧 This endpoint is still on our legacy API.
|
|
616
611
|
*
|
|
617
612
|
* Fetch harsh event details for a vehicle.
|
|
618
613
|
*
|
|
@@ -214,12 +214,7 @@ export declare class MaintenanceClient {
|
|
|
214
214
|
updateDvir(request: Samsara.UpdateDvirRequest, requestOptions?: MaintenanceClient.RequestOptions): core.HttpResponsePromise<Samsara.DvirResponse>;
|
|
215
215
|
private __updateDvir;
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
218
|
-
* <nh>
|
|
219
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
220
|
-
* This endpoint is still on our legacy API.
|
|
221
|
-
* </nh>
|
|
222
|
-
* </n>
|
|
217
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
223
218
|
*
|
|
224
219
|
* Get list of the vehicles with any engine faults or check light data.
|
|
225
220
|
*
|
|
@@ -667,12 +667,7 @@ class MaintenanceClient {
|
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
|
-
*
|
|
671
|
-
* <nh>
|
|
672
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
673
|
-
* This endpoint is still on our legacy API.
|
|
674
|
-
* </nh>
|
|
675
|
-
* </n>
|
|
670
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
676
671
|
*
|
|
677
672
|
* Get list of the vehicles with any engine faults or check light data.
|
|
678
673
|
*
|
|
@@ -11,12 +11,7 @@ export declare class MessagesClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<MessagesClient.Options>;
|
|
12
12
|
constructor(options?: MessagesClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
* <nh>
|
|
16
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
17
|
-
* This endpoint is still on our legacy API.
|
|
18
|
-
* </nh>
|
|
19
|
-
* </n>
|
|
14
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
20
15
|
*
|
|
21
16
|
* Get all messages.
|
|
22
17
|
*
|
|
@@ -35,12 +30,7 @@ export declare class MessagesClient {
|
|
|
35
30
|
v1GetMessages(request?: Samsara.V1GetMessagesRequest, requestOptions?: MessagesClient.RequestOptions): core.HttpResponsePromise<Samsara.InlineResponse2005>;
|
|
36
31
|
private __v1GetMessages;
|
|
37
32
|
/**
|
|
38
|
-
*
|
|
39
|
-
* <nh>
|
|
40
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
41
|
-
* This endpoint is still on our legacy API.
|
|
42
|
-
* </nh>
|
|
43
|
-
* </n>
|
|
33
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
44
34
|
*
|
|
45
35
|
* Send a message to a list of driver ids.
|
|
46
36
|
*
|
|
@@ -55,12 +55,7 @@ class MessagesClient {
|
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
59
|
-
* <nh>
|
|
60
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
61
|
-
* This endpoint is still on our legacy API.
|
|
62
|
-
* </nh>
|
|
63
|
-
* </n>
|
|
58
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
64
59
|
*
|
|
65
60
|
* Get all messages.
|
|
66
61
|
*
|
|
@@ -114,12 +109,7 @@ class MessagesClient {
|
|
|
114
109
|
});
|
|
115
110
|
}
|
|
116
111
|
/**
|
|
117
|
-
*
|
|
118
|
-
* <nh>
|
|
119
|
-
* <i class="fa fa-exclamation-circle"></i>
|
|
120
|
-
* This endpoint is still on our legacy API.
|
|
121
|
-
* </nh>
|
|
122
|
-
* </n>
|
|
112
|
+
* > 🚧 This endpoint is still on our legacy API.
|
|
123
113
|
*
|
|
124
114
|
* Send a message to a list of driver ids.
|
|
125
115
|
*
|