@metis-w/api-client
Version:
Modern TypeScript HTTP API client with dynamic routes, parameterized endpoints, interceptors, and advanced features
40 lines • 971 B
JavaScript
/**
* Constants used by the Dynamic Client and related modules
*/
export class DynamicClientConstants {
}
/**
* Cache key prefixes for different types of routes
*/
DynamicClientConstants.CACHE_PREFIXES = {
ACTION: 'action_',
PARAMETERIZED: 'param_',
};
/**
* Default HTTP methods supported by dynamic routes
*/
DynamicClientConstants.SUPPORTED_METHODS = {
GET: 'GET',
POST: 'POST',
PUT: 'PUT',
DELETE: 'DELETE',
PATCH: 'PATCH',
};
/**
* Default endpoint separators
*/
DynamicClientConstants.SEPARATORS = {
PATH: '/',
QUERY: '?',
FRAGMENT: '#',
};
/**
* Error messages for dynamic client operations
*/
DynamicClientConstants.ERROR_MESSAGES = {
INVALID_CONTROLLER: 'Invalid controller name provided',
INVALID_ACTION: 'Invalid action name provided',
INVALID_ROUTE_ID: 'Invalid route ID provided',
CACHE_NOT_INITIALIZED: 'Cache manager not initialized',
};
//# sourceMappingURL=dynamic-client-constants.js.map