@ritas-inc/hanaqueryapi-client
Version:
TypeScript client for HANA Query API with full type safety and error handling
29 lines • 1.47 kB
TypeScript
/**
* Comprehensive API Endpoint Test Script with Type Validation
*
* Tests all available endpoints of the HANA Query API using the TypeScript client.
* Validates the new consistent { data, metadata } response format for all endpoints.
*
* Features:
* - **Complete Endpoint Coverage**: All 9 API endpoints tested
* - **Consistent Format Validation**: Ensures all methods return { data, metadata }
* - **Runtime Type Validation**: Validates responses against TypeScript interfaces
* - **Performance Metrics**: Request timing and validation performance
* - **Enhanced Metadata Validation**: Validates system info, API details, and counts
* - **Plan Validation Testing**: Tests new plan existence behavior
* - **Error Scenario Testing**: Tests 404 vs empty array responses
* - **Header Validation**: Validates X-Response-Time and X-Authorization-Response
*
* New Format Validation:
* - Health endpoint now returns system metadata (Node version, platform, etc.)
* - Docs endpoint now returns API metadata (endpoint count, generation time, etc.)
* - All endpoints consistently return { success, data, metadata } structure
* - Headers contain timing and authorization info (not in response body)
*
* Usage: node --experimental-strip-types test-all-endpoints.ts
*
* @requires Node.js 24+ with --experimental-strip-types flag
*/
declare function runAllTests(): Promise<void>;
export { runAllTests };
//# sourceMappingURL=test-all-endpoints.d.ts.map