feat: Add complete data import and incremental update scripts for Ordrestyring
- Implemented setup_ordrestyring_import.sh for initial database setup and data import from API. - Created sync_ordrestyring_data.sh for incremental updates to the local database. - Developed test_ordrestyring_import.js to validate API data import functionality. - Added test_enhanced_quote_demo.js to demonstrate the enhanced quote system using hybrid data sources. - Introduced test_ordrestyring_system.sh for comprehensive testing of the database system and API functionality. - Enhanced logging and error handling across scripts for better traceability. - Included analysis script creation for post-import data analysis.
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"timestamp": "2025-09-19T11:21:22.526Z",
|
||||
"endpoints": {
|
||||
"/cases": {
|
||||
"available": true,
|
||||
"totalCount": 1783,
|
||||
"pagesChecked": 18
|
||||
},
|
||||
"/case-materials": {
|
||||
"available": false,
|
||||
"totalCount": "10000+ (stopped at page 101)",
|
||||
"pagesChecked": 101
|
||||
},
|
||||
"/hours": {
|
||||
"available": false,
|
||||
"totalCount": "10000+ (stopped at page 101)",
|
||||
"pagesChecked": 101
|
||||
},
|
||||
"/debtors": {
|
||||
"available": true,
|
||||
"totalCount": 1335,
|
||||
"pagesChecked": 14
|
||||
},
|
||||
"/debtor-invoices": {
|
||||
"available": true,
|
||||
"totalCount": 2441,
|
||||
"pagesChecked": 25
|
||||
},
|
||||
"/users": {
|
||||
"available": true,
|
||||
"totalCount": 50,
|
||||
"pagesChecked": 1
|
||||
},
|
||||
"/departments": {
|
||||
"available": false,
|
||||
"totalCount": 0,
|
||||
"pagesChecked": 1
|
||||
},
|
||||
"/case-types": {
|
||||
"available": true,
|
||||
"totalCount": 2,
|
||||
"pagesChecked": 1
|
||||
},
|
||||
"/case-statuses": {
|
||||
"available": true,
|
||||
"totalCount": 6,
|
||||
"pagesChecked": 1
|
||||
},
|
||||
"/employee-types": {
|
||||
"available": true,
|
||||
"totalCount": 24,
|
||||
"pagesChecked": 1
|
||||
}
|
||||
},
|
||||
"summary": {
|
||||
"availableEndpoints": 7,
|
||||
"totalEndpoints": 10,
|
||||
"estimatedTotalRecords": 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user