fix: Comprehensive TypeScript definitions audit and fixes #534
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses multiple critical issues with TypeScript definitions found during a comprehensive audit of the codebase.
Closes #438 (partially)
Closes #515
Fixes
ReferralCustomer(notReferral) to match JavaScript implementationapi_keysfield to Referral interfaceChanges
Critical Issues Fixed
1. Duplicate Rate Definitions
types/Rate/Rate.d.tsandtypes/Shipment/Rate.d.tstypes/Shipment/Rate.d.ts, updatedtypes/Shipment/index.d.tsto re-export from../Rate2. Missing Exports
Added missing exports to
types/index.d.ts:3. Missing Service Definitions
Added missing services to EasyPost client (
types/EasyPost.d.ts):4. Missing Type Definitions
src/services/luma_service.jstypes/Luma/Luma.d.tstypes/Luma/index.d.tstypes/SmartRate/index.d.tstypes/Shipment/TaxIdentifier.d.tsfor embedded tax identifier objectsHigh Priority Fixes
5. Interface/Class Property Mismatches
return_address,buyer_address,is_returnto be optional nullable6. Typos and Inconsistencies
pickup_man_datetime→pickup_max_datetimegetNextPage()return type to usescan_formsgetNextPage()return type to usereferral_customersTesting
npm run buildFiles Changed
Modified (12):
Created (5):
Deleted (1):
🤖 Generated with Claude Code