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 DriverTrailerAssignmentsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class DriverTrailerAssignmentsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: DriverTrailerAssignmentsClient.Options); /** * Get currently active driver-trailer assignments for driver. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Assignments** under the Assignments 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.GetDriverTrailerAssignmentsRequest} request * @param {DriverTrailerAssignmentsClient.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.driverTrailerAssignments.getDriverTrailerAssignments() */ getDriverTrailerAssignments(request?: Samsara.GetDriverTrailerAssignmentsRequest, requestOptions?: DriverTrailerAssignmentsClient.RequestOptions): core.HttpResponsePromise; private __getDriverTrailerAssignments; /** * Create a new driver-trailer assignment * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Write Assignments** under the Assignments 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.TrailerAssignmentsCreateDriverTrailerAssignmentRequestBody} request * @param {DriverTrailerAssignmentsClient.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.driverTrailerAssignments.createDriverTrailerAssignment({ * driverId: "494123", * trailerId: "12345" * }) */ createDriverTrailerAssignment(request: Samsara.TrailerAssignmentsCreateDriverTrailerAssignmentRequestBody, requestOptions?: DriverTrailerAssignmentsClient.RequestOptions): core.HttpResponsePromise; private __createDriverTrailerAssignment; /** * Update an existing driver-trailer assignment. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Write Assignments** under the Assignments 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.TrailerAssignmentsUpdateDriverTrailerAssignmentRequestBody} request * @param {DriverTrailerAssignmentsClient.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.driverTrailerAssignments.updateDriverTrailerAssignment({ * id: "id", * endTime: "2019-06-13T19:08:25Z" * }) */ updateDriverTrailerAssignment(request: Samsara.TrailerAssignmentsUpdateDriverTrailerAssignmentRequestBody, requestOptions?: DriverTrailerAssignmentsClient.RequestOptions): core.HttpResponsePromise; private __updateDriverTrailerAssignment; }