Commit 8d9ed59
Refactor table API with simplified naming and enhanced functionality (#23)
## Summary
This PR refactors the table management API to improve usability and
maintainability by replacing verbose, URL-based function names with
clean, descriptive names. The changes significantly enhance the
developer experience while maintaining all existing functionality.
## Key Accomplishments
### API Simplification
- **Renamed all table API functions** from verbose URL-based names to
clean, intuitive names:
- `delete_file_v1_graphs_graph_id_tables_files_file_id_delete` →
`delete_file`
- `get_file_info_v1_graphs_graph_id_tables_files_file_id_get` →
`get_file_info`
- `ingest_tables_v1_graphs_graph_id_tables_ingest_post` →
`ingest_tables`
- And 5 other similar simplifications
### Enhanced Data Models
- **Added new comprehensive models**: `FileInfo`, `FileStatusUpdate`,
and `GetFileInfoResponse`
- **Streamlined existing models** with cleaner naming conventions
- **Improved model imports** in the main module for better
discoverability
### Client Extensions
- **Enhanced table ingest client** with additional functionality for
improved file handling
- **Extended graph client** with new capabilities
- **Updated project configuration** with new dependencies and settings
### Code Organization
- **Complete reorganization** of the tables API module structure
- **Removed deprecated models** and replaced with modern equivalents
- **Improved type safety** across all table operations
## Breaking Changes
31 files changed
Lines changed: 4664 additions & 2376 deletions
File tree
- robosystems_client
- api
- query
- tables
- extensions
- models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
| |||
0 commit comments