Skip to content

statusMap

const statusMap: Record<KnownShipmentPackageStatus, NormalizedOrderStatus>

Defined in: sdks/trendyol/src/status.ts:13

Exhaustive map from Trendyol’s known shipment-package statuses to the marketplace-agnostic NormalizedOrderStatus vocabulary.

Because the key type is the closed KnownShipmentPackageStatus union, adding a value there without mapping it here is a compile-time error. Some Trendyol states have no exact normalized equivalent and are folded onto the nearest lifecycle stage (noted inline).

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.