TypeScript types for the Econt shipping API
npm install @alphabite/econt-typesbash
npm install @alphabite/econt-types
`
Usage
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.
`typescript
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`