Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ae_sdk

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ae_sdk - npm Package Compare versions

Comparing version 0.4.15 to 0.4.16

17

CHANGELOG.md
# ae_sdk
## 0.4.16
### Patch Changes
- ## ae_sdk - Patch 0.4.16
The Aliexpress Open Platform released a new method for dropshippers to calculate freight. Now added in the dropshipper client as `freightInfo`.
```ts
const result = await client.freightInfo({
country_code: "DZ",
product_id: 123,
product_num: 1,
sku_id: "SKU#2:3",
});
```
## 0.4.15

@@ -4,0 +21,0 @@

55

dist/index.d.ts
type AE_API_NAMES = DS_API_NAMES | AFFILIATE_API_NAMES | SYSTEM_API_NAMES;
type DS_API_NAMES = "aliexpress.logistics.buyer.freight.calculate" | "aliexpress.logistics.ds.trackinginfo.query" | "aliexpress.ds.add.info" | "aliexpress.ds.image.search" | "aliexpress.ds.recommend.feed.get" | "aliexpress.trade.buy.placeorder" | "aliexpress.ds.trade.order.get" | "aliexpress.ds.feedname.get" | "aliexpress.ds.category.get" | "aliexpress.ds.commissionorder.listbyindex" | "aliexpress.ds.member.orderdata.submit" | "aliexpress.ds.product.get";
type DS_API_NAMES = "aliexpress.logistics.buyer.freight.get" | "aliexpress.logistics.buyer.freight.calculate" | "aliexpress.logistics.ds.trackinginfo.query" | "aliexpress.ds.add.info" | "aliexpress.ds.image.search" | "aliexpress.ds.recommend.feed.get" | "aliexpress.trade.buy.placeorder" | "aliexpress.ds.trade.order.get" | "aliexpress.ds.feedname.get" | "aliexpress.ds.category.get" | "aliexpress.ds.commissionorder.listbyindex" | "aliexpress.ds.member.orderdata.submit" | "aliexpress.ds.product.get";
type AFFILIATE_API_NAMES = "aliexpress.affiliate.link.generate" | "aliexpress.affiliate.category.get" | "aliexpress.affiliate.featuredpromo.get" | "aliexpress.affiliate.featuredpromo.products.get" | "aliexpress.affiliate.hotproduct.download" | "aliexpress.affiliate.hotproduct.query" | "aliexpress.affiliate.order.get" | "aliexpress.affiliate.order.list" | "aliexpress.affiliate.order.listbyindex" | "aliexpress.affiliate.productdetail.get" | "aliexpress.affiliate.product.query" | "aliexpress.affiliate.product.smartmatch";

@@ -58,2 +58,6 @@ type SYSTEM_API_NAMES = "/auth/token/security/create" | "/auth/token/create" | "/auth/token/security/refresh" | "/auth/token/refresh";

result: AES_Refresh_Token_Result;
} : T extends "aliexpress.logistics.buyer.freight.get" ? {
method: T;
params: DS_Freight_Calculation_Params;
result: DS_Freight_Calculation_Result;
} : T extends "aliexpress.logistics.buyer.freight.calculate" ? {

@@ -1097,2 +1101,40 @@ method: T;

* DROPSHIPPER API
* FREIGHT CALCULATION
*/
interface DS_Freight_Calculation_Arguments {
product_id: number;
product_num: number;
sku_id: string;
country_code: string;
province_code?: string;
city_code?: string;
send_goods_country_code?: string;
price?: string;
price_currency?: AE_Currency;
}
interface DS_Freight_Calculation_Params {
aeopFreightCalculateForBuyerDTO: string;
}
interface DS_Freight_Calculation_Info {
cent: string;
currency: Record<string, string>;
currency_code: AE_Currency;
}
interface DS_Freight_Calculation {
shipping_method: string;
service_name: string;
estimated_delivery_time: string;
freight: DS_Freight_Calculation_Info;
tracking_available: "true" | "false";
}
interface DS_Freight_Calculation_Response {
result: {
aeop_freight_calculate_result_for_buyer_dtolist: DS_Freight_Calculation[];
};
}
interface DS_Freight_Calculation_Result {
aliexpress_logistics_buyer_freight_get_response: DS_Freight_Calculation_Response;
}
/**
* DROPSHIPPER API
* CATEGORIES

@@ -1398,2 +1440,13 @@ */

/**
* @link https://openservice.aliexpress.com/doc/api.htm#/api?cid=21038&path=aliexpress.logistics.buyer.freight.get&methodType=GET/POST
*/
freightInfo(args: DS_Freight_Calculation_Arguments): Promise<{
ok: false;
message: string;
request_id?: string;
} | {
ok: true;
data: DS_Freight_Calculation_Result;
}>;
/**
* @link https://open.aliexpress.com/doc/api.htm#/api?cid=21038&path=aliexpress.logistics.buyer.freight.calculate&methodType=GET/POST

@@ -1400,0 +1453,0 @@ */

@@ -429,2 +429,12 @@ "use strict";

/**
* @link https://openservice.aliexpress.com/doc/api.htm#/api?cid=21038&path=aliexpress.logistics.buyer.freight.get&methodType=GET/POST
*/
freightInfo(args) {
return __async(this, null, function* () {
return yield this.execute("aliexpress.logistics.buyer.freight.get", {
aeopFreightCalculateForBuyerDTO: JSON.stringify(args)
});
});
}
/**
* @link https://open.aliexpress.com/doc/api.htm#/api?cid=21038&path=aliexpress.logistics.buyer.freight.calculate&methodType=GET/POST

@@ -431,0 +441,0 @@ */

2

package.json
{
"name": "ae_sdk",
"version": "0.4.15",
"version": "0.4.16",
"description": "A simple SDK for Aliexpress (dropshipping and affiliate) APIs.",

@@ -5,0 +5,0 @@ "private": false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc