import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import type * as Samsara from "../../../index.js"; export declare namespace VehicleLocationsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class VehicleLocationsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: VehicleLocationsClient.Options); /** * ***NOTE: The Vehicle Locations API is an older API that does not combine GPS data with onboard diagnostics. Try our new [Vehicle Stats API](ref:getvehiclestats) instead.*** * * Returns the last known location of all vehicles at the given `time`. If no `time` is specified, the current time is used. This can be optionally filtered by tags or specific vehicle IDs. * * Related guide: Vehicle Locations. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Vehicle Statistics** under the Vehicles category when creating or editing an API token. Learn More. * * @param {Samsara.GetVehicleLocationsRequest} request * @param {VehicleLocationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.vehicleLocations.getVehicleLocations() */ getVehicleLocations(request?: Samsara.GetVehicleLocationsRequest, requestOptions?: VehicleLocationsClient.RequestOptions): core.HttpResponsePromise; private __getVehicleLocations; /** * ***NOTE: The Vehicle Locations API is an older API that does not combine GPS data with onboard diagnostics. Try our new [Vehicle Stats API](ref:getvehiclestatsfeed) instead.*** * * Follow a continuous feed of all vehicle locations from Samsara Vehicle Gateways. * * Your first call to this endpoint will provide you with the most recent location for each vehicle and a `pagination` object that contains an `endCursor`. * * You can provide the `endCursor` to the `after` parameter of this endpoint to get location updates since that `endCursor`. * * If `hasNextPage` is `false`, no updates are readily available yet. We'd suggest waiting a minimum of 5 seconds before requesting updates. * * Related guide: Vehicle Locations. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Vehicle Statistics** under the Vehicle category when creating or editing an API token. Learn More. * * @param {Samsara.GetVehicleLocationsFeedRequest} request * @param {VehicleLocationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.vehicleLocations.getVehicleLocationsFeed() */ getVehicleLocationsFeed(request?: Samsara.GetVehicleLocationsFeedRequest, requestOptions?: VehicleLocationsClient.RequestOptions): core.HttpResponsePromise; private __getVehicleLocationsFeed; /** * ***NOTE: The Vehicle Locations API is an older API that does not combine GPS data with onboard diagnostics. Try our new [Vehicle Stats API](ref:getvehiclestatshistory) instead.*** * * Returns all known vehicle locations during the given time range. This can be optionally filtered by tags or specific vehicle IDs. * * Related guide: Vehicle Locations. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Vehicle Statistics** under the Vehicle category when creating or editing an API token. Learn More. * * @param {Samsara.GetVehicleLocationsHistoryRequest} request * @param {VehicleLocationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.vehicleLocations.getVehicleLocationsHistory({ * startTime: "startTime", * endTime: "endTime" * }) */ getVehicleLocationsHistory(request: Samsara.GetVehicleLocationsHistoryRequest, requestOptions?: VehicleLocationsClient.RequestOptions): core.HttpResponsePromise; private __getVehicleLocationsHistory; }