UNPKG

testrail-modern-client

Version:
29 lines (28 loc) 877 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CaseTypeService = void 0; const base_1 = require("./base"); /** * Service for managing test case types in TestRail */ class CaseTypeService extends base_1.BaseService { /** * Returns a list of available test case types * @returns List of case types * @throws {Error} 403 - No access to TestRail * @example * ```ts * const caseTypes = await client.caseTypes.list(); * // [ * // { id: 1, name: "Automated", is_default: false }, * // { id: 2, name: "Functionality", is_default: false }, * // { id: 6, name: "Other", is_default: true } * // ] * ``` */ async list() { const response = await this.client.get('/get_case_types'); return response.data; } } exports.CaseTypeService = CaseTypeService;