import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Samsara from "../../../index.mjs"; export declare namespace IftaClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class IftaClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: IftaClient.Options); /** * Get all jurisdiction IFTA reports for the requested time duration. Data is returned in your organization's defined timezone. * * **Note:** The most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read IFTA (US)** under the Compliance 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.GetIftaJurisdictionReportsRequest} request * @param {IftaClient.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.ifta.getIftaJurisdictionReports({ * year: 1000000 * }) */ getIftaJurisdictionReports(request: Samsara.GetIftaJurisdictionReportsRequest, requestOptions?: IftaClient.RequestOptions): core.HttpResponsePromise; private __getIftaJurisdictionReports; /** * Get all vehicle IFTA reports for the requested time duration. Data is returned in your organization's defined timezone. * * **Note:** The most recent 72 hours of data may still be processing and is subject to change and latency, so it is not recommended to request data for the most recent 72 hours. * * Rate limit: 25 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read IFTA (US)** under the Compliance 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.GetIftaVehicleReportsRequest} request * @param {IftaClient.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.ifta.getIftaVehicleReports({ * year: 1000000 * }) */ getIftaVehicleReports(request: Samsara.GetIftaVehicleReportsRequest, requestOptions?: IftaClient.RequestOptions): core.HttpResponsePromise; private __getIftaVehicleReports; /** * Create a job to generate csv files of IFTA mileage segments. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write IFTA (US)** under the Compliance 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.IftaCreateIftaDetailJobRequestBody} request * @param {IftaClient.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.ifta.createIftaDetailJob({ * endHour: "2019-06-13T19:00:00Z", * startHour: "2019-06-13T19:00:00Z" * }) */ createIftaDetailJob(request: Samsara.IftaCreateIftaDetailJobRequestBody, requestOptions?: IftaClient.RequestOptions): core.HttpResponsePromise; private __createIftaDetailJob; /** * Get information about an existing IFTA detail job. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read IFTA (US)** under the Compliance 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.GetIftaDetailJobRequest} request * @param {IftaClient.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.ifta.getIftaDetailJob({ * id: "id" * }) */ getIftaDetailJob(request: Samsara.GetIftaDetailJobRequest, requestOptions?: IftaClient.RequestOptions): core.HttpResponsePromise; private __getIftaDetailJob; }