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