Comparing version 0.4.8 to 0.4.9
# ae_sdk | ||
## 0.4.9 | ||
### Patch Changes | ||
- Ensure API returns predefined types #4 | ||
## 0.4.8 | ||
@@ -4,0 +10,0 @@ |
@@ -102,3 +102,3 @@ type AE_API_NAMES = DS_API_NAMES | AFFILIATE_API_NAMES | SYSTEM_API_NAMES; | ||
params: Affiliate_Categories_Params; | ||
result: Affiliate_Categories_Result; | ||
result: DS_Categories_Result; | ||
} : T extends "aliexpress.ds.commissionorder.listbyindex" ? { | ||
@@ -1203,2 +1203,15 @@ method: T; | ||
} | ||
/** | ||
* DROPSHIPPER API | ||
* CATEGORIES | ||
*/ | ||
interface DS_Categories_Result { | ||
aliexpress_ds_category_get_response: { | ||
resp_result: { | ||
resp_code: number; | ||
resp_msg: string; | ||
result: Affiliate_Categories; | ||
}; | ||
}; | ||
} | ||
@@ -1585,3 +1598,3 @@ interface AES_Base_Access_Token_Result { | ||
ok: true; | ||
data: Affiliate_Categories_Result; | ||
data: DS_Categories_Result; | ||
}>; | ||
@@ -1588,0 +1601,0 @@ /** |
@@ -378,3 +378,2 @@ "use strict"; | ||
data.result.aeop_freight_calculate_result_for_buyer_d_t_o_list = data.result.aeop_freight_calculate_result_for_buyer_d_t_o_list.aeop_freight_calculate_result_for_buyer_dto; | ||
delete data.result.aeop_freight_calculate_result_for_buyer_d_t_o_list.aeop_freight_calculate_result_for_buyer_dto; | ||
} | ||
@@ -458,6 +457,6 @@ } | ||
let data = response.data.aliexpress_trade_ds_order_get_response.result; | ||
if (data.child_order_list.ae_child_order_info) { | ||
if (data.child_order_list && data.child_order_list.ae_child_order_info) { | ||
data.child_order_list = data.child_order_list.ae_child_order_info; | ||
} | ||
if (data.logistics_info_list.ae_order_logistics_info) { | ||
if (data.logistics_info_list && data.logistics_info_list.ae_order_logistics_info) { | ||
data.logistics_info_list = data.logistics_info_list.ae_order_logistics_info; | ||
@@ -482,3 +481,6 @@ } | ||
return __async(this, null, function* () { | ||
return yield this.execute("aliexpress.ds.category.get", args); | ||
let response = yield this.execute("aliexpress.ds.category.get", args); | ||
if (response.ok && response.data.aliexpress_ds_category_get_response.resp_result.result.categories.category) | ||
response.data.aliexpress_ds_category_get_response.resp_result.result.categories = response.data.aliexpress_ds_category_get_response.resp_result.result.categories.category; | ||
return response; | ||
}); | ||
@@ -485,0 +487,0 @@ } |
{ | ||
"name": "ae_sdk", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155973
2666