UNPKG

@nicodoggie/node-kiwi-tcms-api

Version:

Vibe-coded Node.js wrapper for Kiwi TCMS XML-RPC API. Use at your own risk.

237 lines 6.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BugAPI = exports.UserAPI = exports.TagAPI = exports.EnvironmentAPI = exports.TestExecutionStatusAPI = exports.TestCaseStatusAPI = exports.PriorityAPI = exports.PlanTypeAPI = exports.VersionAPI = exports.CategoryAPI = exports.ClassificationAPI = exports.ComponentAPI = exports.BuildAPI = exports.ProductAPI = void 0; /** * Product API module */ class ProductAPI { client; constructor(client) { this.client = client; } async create(productData) { return await this.client.authenticatedCall('Product.create', [productData]); } async filter(query = {}) { return await this.client.authenticatedCall('Product.filter', [query]); } } exports.ProductAPI = ProductAPI; /** * Build API module */ class BuildAPI { client; constructor(client) { this.client = client; } async create(buildData) { return await this.client.authenticatedCall('Build.create', [buildData]); } async filter(query = {}) { return await this.client.authenticatedCall('Build.filter', [query]); } async update(buildId, updateData) { return await this.client.authenticatedCall('Build.update', [buildId, updateData]); } } exports.BuildAPI = BuildAPI; /** * Component API module */ class ComponentAPI { client; constructor(client) { this.client = client; } async create(componentData) { return await this.client.authenticatedCall('Component.create', [componentData]); } async filter(query = {}) { return await this.client.authenticatedCall('Component.filter', [query]); } async update(componentId, updateData) { return await this.client.authenticatedCall('Component.update', [componentId, updateData]); } } exports.ComponentAPI = ComponentAPI; /** * Classification API module */ class ClassificationAPI { client; constructor(client) { this.client = client; } async create(classificationData) { return await this.client.authenticatedCall('Classification.create', [classificationData]); } async filter(query = {}) { return await this.client.authenticatedCall('Classification.filter', [query]); } } exports.ClassificationAPI = ClassificationAPI; /** * Category API module */ class CategoryAPI { client; constructor(client) { this.client = client; } async create(categoryData) { return await this.client.authenticatedCall('Category.create', [categoryData]); } async filter(query = {}) { return await this.client.authenticatedCall('Category.filter', [query]); } } exports.CategoryAPI = CategoryAPI; /** * Version API module */ class VersionAPI { client; constructor(client) { this.client = client; } async create(versionData) { return await this.client.authenticatedCall('Version.create', [versionData]); } async filter(query = {}) { return await this.client.authenticatedCall('Version.filter', [query]); } } exports.VersionAPI = VersionAPI; /** * Plan Type API module */ class PlanTypeAPI { client; constructor(client) { this.client = client; } async create(planTypeData) { return await this.client.authenticatedCall('PlanType.create', [planTypeData]); } async filter(query = {}) { return await this.client.authenticatedCall('PlanType.filter', [query]); } } exports.PlanTypeAPI = PlanTypeAPI; /** * Priority API module */ class PriorityAPI { client; constructor(client) { this.client = client; } async filter(query = {}) { return await this.client.authenticatedCall('Priority.filter', [query]); } } exports.PriorityAPI = PriorityAPI; /** * Test Case Status API module */ class TestCaseStatusAPI { client; constructor(client) { this.client = client; } async filter(query = {}) { return await this.client.authenticatedCall('TestCaseStatus.filter', [query]); } } exports.TestCaseStatusAPI = TestCaseStatusAPI; /** * Test Execution Status API module */ class TestExecutionStatusAPI { client; constructor(client) { this.client = client; } async filter(query = {}) { return await this.client.authenticatedCall('TestExecutionStatus.filter', [query]); } } exports.TestExecutionStatusAPI = TestExecutionStatusAPI; /** * Environment API module */ class EnvironmentAPI { client; constructor(client) { this.client = client; } async create(envData) { return await this.client.authenticatedCall('Environment.create', [envData]); } async filter(query = {}) { return await this.client.authenticatedCall('Environment.filter', [query]); } async addProperty(envId, name, value) { await this.client.authenticatedCall('Environment.add_property', [envId, name, value]); } async properties(envId) { return await this.client.authenticatedCall('Environment.properties', [envId]); } async removeProperty(envId, name) { await this.client.authenticatedCall('Environment.remove_property', [envId, name]); } } exports.EnvironmentAPI = EnvironmentAPI; /** * Tag API module */ class TagAPI { client; constructor(client) { this.client = client; } async filter(query = {}) { return await this.client.authenticatedCall('Tag.filter', [query]); } } exports.TagAPI = TagAPI; /** * User API module */ class UserAPI { client; constructor(client) { this.client = client; } async filter(query = {}) { return await this.client.authenticatedCall('User.filter', [query]); } async update(userId, updateData) { return await this.client.authenticatedCall('User.update', [userId, updateData]); } async joinGroup(userId, groupName) { await this.client.authenticatedCall('User.join_group', [userId, groupName]); } async addAttachment(userId, filename, b64content) { return await this.client.authenticatedCall('User.add_attachment', [userId, filename, b64content]); } } exports.UserAPI = UserAPI; /** * Bug API module */ class BugAPI { client; constructor(client) { this.client = client; } async details(bugId) { return await this.client.authenticatedCall('Bug.details', [bugId]); } async report(bugData) { return await this.client.authenticatedCall('Bug.report', [bugData]); } } exports.BugAPI = BugAPI; //# sourceMappingURL=management.js.map