All-in-One Package
Monorepo • v4.3.16npm i shopee-tiktokshops-lazada-apishopee-tiktokshops-lazada-api is a wrapper package that pulls in shopee-api-client, tiktokshops-api-client and lazada-api-client together. Instead of installing three packages and tracking three version numbers, one npm install gets you all three marketplaces. It re-exports every module, class, type and DTO from the three child packages, which keeps dependency management simpler in a multi-channel e-commerce system.
Key Features
- ◆Re-exports ShopeeModule, TiktokModule and LazadaModule from one package
- ◆Child package versions stay in sync via the monorepo scripts
- ◆Fewer dependency conflicts than installing the three SDKs separately
- ◆Meant for multi-channel e-commerce systems
- ◆Fully typed, with all DTOs carried through
- ◆Upgrading is one command: run sync-all-in-one-deps
Code Examples
Using the all-in-one package
import {
ShopeeModule,
TiktokModule,
LazadaModule,
} from "shopee-tiktokshops-lazada-api";
// Every client comes from the same package
const shopee = new ShopeeModule({ /* Shopee config */ });
const tiktok = new TiktokModule({ /* TikTok config */ });
const lazada = new LazadaModule({ /* Lazada config */ });
// Pull orders from all three marketplaces at once
const [shopeeOrders, tiktokOrders, lazadaProducts] = await Promise.all([
shopee.getOrders(60),
tiktok.getOrderList({ beforeHours: 24, pageSize: 20 }),
lazada.getProducts(),
]);
console.log({
shopee: shopeeOrders.length,
tiktok: tiktokOrders.data.orders.length,
lazada: lazadaProducts.length,
});Resources
All-in-One Package — Monorepo • v4.3.16Trở về Trang chủ