import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Samsara from "../../../index.js"; export declare namespace FuelAndEnergyClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class FuelAndEnergyClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: FuelAndEnergyClient.Options); /** * This endpoint will return driver efficiency data that has been collected for your organization and grouped by drivers based on the time parameters passed in. Results are paginated. * * **Note:** The data from this endpoint comes from the Driver Efficiency (Eco-Driving) Report. The existing [/fleet/drivers/efficiency](https://developers.samsara.com/reference/getdriverefficiency) endpoint has now been moved to Legacy. * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Driver Efficiency** under the Fuel & Energy category when creating or editing an API token. Learn More. * * * **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. * * @param {Samsara.GetDriverEfficiencyByDriversRequest} request * @param {FuelAndEnergyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.fuelAndEnergy.getDriverEfficiencyByDrivers({ * startTime: "startTime", * endTime: "endTime" * }) */ getDriverEfficiencyByDrivers(request: Samsara.GetDriverEfficiencyByDriversRequest, requestOptions?: FuelAndEnergyClient.RequestOptions): core.HttpResponsePromise; private __getDriverEfficiencyByDrivers; /** * This endpoint will return driver efficiency data that has been collected for your organization and grouped by vehicle drivers used based on the time parameters passed in. Results are paginated. * * **Note:** The data from this endpoint comes from the Driver Efficiency (Eco-Driving) Report. The existing [/fleet/drivers/efficiency](https://developers.samsara.com/reference/getdriverefficiency) endpoint has now been moved to Legacy. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Driver Efficiency** under the Fuel & Energy category when creating or editing an API token. Learn More. * * * **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. * * @param {Samsara.GetDriverEfficiencyByVehiclesRequest} request * @param {FuelAndEnergyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.fuelAndEnergy.getDriverEfficiencyByVehicles({ * startTime: "startTime", * endTime: "endTime" * }) */ getDriverEfficiencyByVehicles(request: Samsara.GetDriverEfficiencyByVehiclesRequest, requestOptions?: FuelAndEnergyClient.RequestOptions): core.HttpResponsePromise; private __getDriverEfficiencyByVehicles; /** * Get fuel and energy efficiency driver reports for the requested time range. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Fuel & Energy** under the Fuel & Energy category when creating or editing an API token. Learn More. * * * **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. * * @param {Samsara.GetFuelEnergyDriverReportsRequest} request * @param {FuelAndEnergyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.fuelAndEnergy.getFuelEnergyDriverReports({ * startDate: "startDate", * endDate: "endDate" * }) */ getFuelEnergyDriverReports(request: Samsara.GetFuelEnergyDriverReportsRequest, requestOptions?: FuelAndEnergyClient.RequestOptions): core.HttpResponsePromise; private __getFuelEnergyDriverReports; /** * Get fuel and energy efficiency vehicle reports for the requested time range. * * Rate limit: 25 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Fuel & Energy** under the Fuel & Energy category when creating or editing an API token. Learn More. * * * **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. * * @param {Samsara.GetFuelEnergyVehicleReportsRequest} request * @param {FuelAndEnergyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.fuelAndEnergy.getFuelEnergyVehicleReports({ * startDate: "startDate", * endDate: "endDate" * }) */ getFuelEnergyVehicleReports(request: Samsara.GetFuelEnergyVehicleReportsRequest, requestOptions?: FuelAndEnergyClient.RequestOptions): core.HttpResponsePromise; private __getFuelEnergyVehicleReports; /** * Create a fuel purchase transaction. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Fuel Purchase** under the Fuel & Energy category when creating or editing an API token. Learn More. * * * **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. * * @param {Samsara.FuelPurchasePostFuelPurchaseRequestBody} request * @param {FuelAndEnergyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.fuelAndEnergy.postFuelPurchase({ * fuelQuantityLiters: "676.8", * transactionLocation: "350 Rhode Island St, San Francisco, CA 94103", * transactionPrice: { * amount: "640.2", * currency: "usd" * }, * transactionReference: "5454534", * transactionTime: "2022-07-13T14:20:50.52-07:00" * }) */ postFuelPurchase(request: Samsara.FuelPurchasePostFuelPurchaseRequestBody, requestOptions?: FuelAndEnergyClient.RequestOptions): core.HttpResponsePromise; private __postFuelPurchase; }