UNPKG

testrail-modern-client

Version:
25 lines (24 loc) 962 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResultFieldService = void 0; const base_1 = require("./base"); /** * Service for managing TestRail result fields (custom fields for test results). */ class ResultFieldService extends base_1.BaseService { /** * Returns a list of available test result custom fields. * @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 result fields * @throws {Error} 403 - No access to the project * @throws {Error} 429 - Too many requests (TestRail Cloud only) */ async list(offset = 0, limit = 250) { const response = await this.client.get('/get_result_fields', { params: { offset, limit }, }); return response.data; } } exports.ResultFieldService = ResultFieldService;