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 TrainingAssignmentsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class TrainingAssignmentsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: TrainingAssignmentsClient.Options); /** * Create training assignments. Existing assignments will remain unchanged. * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Write Training Assignments** under the Training 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.PostTrainingAssignmentsRequest} request * @param {TrainingAssignmentsClient.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.trainingAssignments.postTrainingAssignments({ * courseId: "courseId", * dueAtTime: "dueAtTime" * }) */ postTrainingAssignments(request: Samsara.PostTrainingAssignmentsRequest, requestOptions?: TrainingAssignmentsClient.RequestOptions): core.HttpResponsePromise; private __postTrainingAssignments; /** * This endpoint supports batch deletion operations. The response does not indicate which specific deletions, if any, have failed. On a successful deletion or partial failure, a ‘204 No Content’ status is returned. * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Write Training Assignments** under the Training 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.DeleteTrainingAssignmentsRequest} request * @param {TrainingAssignmentsClient.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.trainingAssignments.deleteTrainingAssignments() */ deleteTrainingAssignments(request?: Samsara.DeleteTrainingAssignmentsRequest, requestOptions?: TrainingAssignmentsClient.RequestOptions): core.HttpResponsePromise; private __deleteTrainingAssignments; /** * Update training assignments. * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Write Training Assignments** under the Training 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.PatchTrainingAssignmentsRequest} request * @param {TrainingAssignmentsClient.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.trainingAssignments.patchTrainingAssignments({ * dueAtTime: "dueAtTime" * }) */ patchTrainingAssignments(request: Samsara.PatchTrainingAssignmentsRequest, requestOptions?: TrainingAssignmentsClient.RequestOptions): core.HttpResponsePromise; private __patchTrainingAssignments; /** * Returns all training assignments data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, the API will continue to poll with the pagination cursor that gets returned on every call. The hasNextPage response value will be true if there is no endTime specified and endCursor is nonempty. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Training Assignments** under the Training 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.GetTrainingAssignmentsStreamRequest} request * @param {TrainingAssignmentsClient.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.trainingAssignments.getTrainingAssignmentsStream({ * startTime: "startTime" * }) */ getTrainingAssignmentsStream(request: Samsara.GetTrainingAssignmentsStreamRequest, requestOptions?: TrainingAssignmentsClient.RequestOptions): core.HttpResponsePromise; private __getTrainingAssignmentsStream; }