UNPKG

testrail-modern-client

Version:
19 lines (18 loc) 685 B
import { Role } from '../models/roles'; import { BaseService } from './base'; /** * Service for managing TestRail roles. * @since TestRail 7.3 */ export declare class RoleService extends BaseService { /** * Returns a list of available roles. * @param offset - The offset of the first record to return (used for pagination) * @param limit - The maximum number of records to return (used for pagination, max 250) * @returns A list of roles * @throws {Error} 403 - No access to the project * @throws {Error} 429 - Too many requests (TestRail Cloud only) * @since TestRail 7.3 */ list(offset?: number, limit?: number): Promise<Role[]>; }