@alphabite/econt-types
v1.1.2
Published
TypeScript types for the Econt shipping API
Readme
@alphabite/econt-types
TypeScript type definitions for the Econt shipping API.
Installation
npm install @alphabite/econt-typesUsage
This package contains all TypeScript type definitions for the Econt shipping API. It can be used standalone or is automatically included when you install @alphabite/econt-sdk.
import { Office, ShippingLabel, EcontConfig, City, Country } from "@alphabite/econt-types";
// Use the types in your application
const config: EcontConfig = {
username: "your-username",
password: "your-password",
environment: "demo",
};Available Types
This package exports types for:
- Common:
EcontConfig,City,Country,Address, etc. - Offices:
Office,GetOfficesRequest,GetOfficesResponse - Shipments:
ShippingLabel,CreateLabelRequest,CreateLabelResponse - Tracking:
ShipmentStatus,GetShipmentStatusesRequest - Address:
ValidateAddressRequest,AddressServiceTimesRequest - Profile:
GetClientProfilesResponse,CreateCDAgreementRequest - Nomenclatures:
Street,Quarter, nomenclature types - Errors:
EcontApiError - Payment Reports:
PaymentReportRequest,PaymentReportResponse - Three Way Logistics:
ThreeWayLogisticsRequest,ThreeWayLogisticsResponse
Why Separate Package?
This types package is published separately to allow:
- Type-only dependencies: Use types in your project without including the full SDK
- Smaller bundle size: Only install types if you're implementing your own client
- Version flexibility: Lock types independently from SDK implementation
- Shared types: Use the same types across multiple projects
Related Packages
- @alphabite/econt-sdk - Full SDK that includes these types
License
MIT
