testrail-modern-client
Version:
A modern TypeScript client for TestRail API
23 lines (22 loc) • 934 B
TypeScript
import { CaseStatus, Status } from '../models/statuses';
import { BaseService } from './base';
/**
* Service for managing TestRail statuses.
*/
export declare class StatusService extends BaseService {
/**
* Returns a list of available test case statuses.
* @param offset - Where to start counting the statuses from (the offset)
* @param limit - The number of statuses the response should return
* @returns A list of case statuses
* @throws {Error} 200 - Success (the available case statuses are returned as part of the response)
* @since TestRail Enterprise 7.3
*/
listForCase(offset?: number, limit?: number): Promise<CaseStatus[]>;
/**
* Returns a list of available test statuses.
* @returns A list of all system and custom statuses
* @throws {Error} 200 - Success (the available statuses are returned as part of the response)
*/
list(): Promise<Status[]>;
}