UNPKG

suitecrm-mcp-server

Version:

Model Context Protocol server for SuiteCRM integration with natural language SQL reporting

40 lines 1.2 kB
"use strict"; /** * TypeScript interfaces and types for SuiteCRM MCP Server */ Object.defineProperty(exports, "__esModule", { value: true }); exports.QueryError = exports.ValidationError = exports.AuthenticationError = exports.SuiteCRMError = void 0; // Error Types class SuiteCRMError extends Error { statusCode; code; constructor(message, statusCode, code) { super(message); this.statusCode = statusCode; this.code = code; this.name = 'SuiteCRMError'; } } exports.SuiteCRMError = SuiteCRMError; class AuthenticationError extends SuiteCRMError { constructor(message) { super(message, 401, 'AUTH_ERROR'); this.name = 'AuthenticationError'; } } exports.AuthenticationError = AuthenticationError; class ValidationError extends SuiteCRMError { constructor(message) { super(message, 400, 'VALIDATION_ERROR'); this.name = 'ValidationError'; } } exports.ValidationError = ValidationError; class QueryError extends SuiteCRMError { constructor(message) { super(message, 400, 'QUERY_ERROR'); this.name = 'QueryError'; } } exports.QueryError = QueryError; //# sourceMappingURL=types.js.map