3.4 KiB
3.4 KiB
Batch 10 Plan - Configuration & System Deep Dive
Target: 30 endpoints
Focus: Business config, User features, System settings, Optional-arg queries
Note: Many originally planned endpoints already exist from previous batches!
Selected Endpoints (30 total - mix of no-args and optional-args)
No Arguments - Highly Testable (11 endpoints)
businessHours- Business hours configurationdefaultEmailTexts- Default email texts/templatesgdprAgreement- GDPR agreement text/statususerCanAccess- Current user access rightsuserFeatures- Current user features/flagsuserPreferences- Current user preferencesappPermissions- App permissions listdeletedRows- Deleted rows trackingmostUsedMaterials- Most used materials statisticsprofitTable- Profit table (id optional?)profitTables- Profit tables list
Optional Arguments - Testable Without Params (11 endpoints)
caseStatuses- Case statuses list (filter optional)caseTypes- Case types list (filter optional)customerCategories- Customer categories list (filter optional)invoiceStatuses- Invoice statuses listofferStatuses- Offer statuses listofferTypes- Offer types listreminderSettings- Reminder settings configurationserviceTypes- Service types listvatTypes- VAT types listwarehouseLocations- Warehouse locations list (filter optional)installationCategories- Installation categories list
Optional Pagination - Can Test With Defaults (6 endpoints)
salesInvoiceDraft- Sales invoice draft (filter optional)salesInvoiceDraftLines- Sales invoice draft lines (filter optional)salesInvoiceReceiverInfo- Sales invoice receiver info (filter optional)paymentDataList- Payment data listgpsEntriesPaginated- GPS entries with paginationhourAggregate- Hour aggregates (filter optional)
Utility Functions (2 endpoints)
postalcodeToCity- Postal code lookup (postalCode optional for testing?)productEanNumberExists- Check if EAN exists (ean optional for testing?)
Endpoints Removed (Already Tested)
The following were in initial plan but already exist:
- ❌ businessReportUrl (Batch 7)
- ❌ All case* endpoints with required IDs (Batch 2-4)
- ❌ All customer* endpoints (Batch 2-3)
- ❌ All creditor* endpoints (Batch 2-3)
- ❌ All contact* endpoints (Batch 2)
Expected Results
Highly Likely to Return Data (15+ endpoints)
- businessHours, defaultEmailTexts, gdprAgreement, userCanAccess, userFeatures, userPreferences
- caseStatuses, caseTypes, customerCategories, invoiceStatuses, offerStatuses, offerTypes
- serviceTypes, vatTypes, warehouseLocations
May Be Empty/Unauthorized (10+ endpoints)
- appPermissions, deletedRows, mostUsedMaterials, profitTables
- salesInvoiceDraft*, gpsEntriesPaginated, hourAggregate
- reminderSettings, installationCategories
Utility/Test Functions (2)
- postalcodeToCity, productEanNumberExists
Testing Strategy
- ✅ Planning complete - 30 endpoints selected
- Introspect types - Get field names for all 30 endpoints
- Create scripts - All 30 scripts (all testable!)
- Test all - Run all 30 (no required params!)
- Fix errors - Type mismatches
- Save outputs - Document results
- Update docs - Progress to ~263/507 (52%)
Status: Planning complete
Next: Introspect all 30 types