UNPKG

@vfarcic/dot-ai

Version:

AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance

46 lines (45 loc) 1.63 kB
"use strict"; /** * Validation and error message constants * * Centralized validation messages, error templates, and parameter * validation patterns used throughout the application. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.VALIDATION_MESSAGES = void 0; /** * Parameter validation messages */ exports.VALIDATION_MESSAGES = { /** * Missing parameter error template * @param param - The name of the missing parameter */ MISSING_PARAMETER: (param) => `Missing required parameter: ${param}`, /** * Missing parameter with context template * @param param - The name of the missing parameter * @param context - Additional context (e.g., "search query", "filter") */ MISSING_PARAMETER_WITH_CONTEXT: (param, context) => `Missing required parameter: ${param} (${context})`, /** * Invalid format error template * @param field - The field with invalid format */ INVALID_FORMAT: (field) => `Invalid format for field: ${field}`, /** * Required field missing template * @param field - The required field that is missing */ REQUIRED_FIELD: (field) => `Required field missing: ${field}`, /** * Validation failed template * @param reason - The reason validation failed */ VALIDATION_FAILED: (reason) => reason ? `Validation failed: ${reason}` : 'Validation failed', /** * Invalid input provided template * @param details - Details about the invalid input */ INVALID_INPUT: (details) => details ? `Invalid input provided: ${details}` : 'Invalid input provided' };