import type { CreateToolDto } from '../models/CreateToolDto'; import type { PaginatedResponseOfToolEntity } from '../models/PaginatedResponseOfToolEntity'; import type { ToolEntity } from '../models/ToolEntity'; import type { UpdateToolDto } from '../models/UpdateToolDto'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class Tools { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create a new tool * Create a new tool. ADMIN ONLY. * @returns ToolEntity Successfully created a new tool * @throws ApiError */ create({ orgname, requestBody, }: { orgname: string; requestBody: CreateToolDto; }): CancelablePromise; /** * Get all tools * Get all tools. ADMIN ONLY. * @returns PaginatedResponseOfToolEntity Successfully returned paginated results * @throws ApiError */ findAll({ orgname, limit, offset, sortBy, sortDirection, searchTerm, startDate, endDate, }: { orgname: string; /** * The limit of the number of results returned */ limit?: number; /** * The offset of the returned results */ offset?: number; /** * The field to sort the results by */ sortBy?: 'createdAt'; /** * The direction to sort the results by */ sortDirection?: 'asc' | 'desc'; /** * Search term */ searchTerm?: string; /** * The start date to search from */ startDate?: string; /** * The end date to search to */ endDate?: string; }): CancelablePromise; /** * Get a tool * Get a tool. ADMIN ONLY. * @returns ToolEntity Successfully retrieved the tool * @throws ApiError */ findOne({ orgname, id, }: { orgname: string; id: string; }): CancelablePromise; /** * Update a tool * Update a tool. ADMIN ONLY. * @returns ToolEntity Successfully updated the tool * @throws ApiError */ update({ orgname, id, requestBody, }: { orgname: string; id: string; requestBody: UpdateToolDto; }): CancelablePromise; /** * Delete a tool * Delete a tool. ADMIN ONLY. * @returns any Successfully deleted the tool * @throws ApiError */ remove({ orgname, id, }: { orgname: string; id: string; }): CancelablePromise; }