ionic-vhframeworks 10.2.8 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -925,7 +925,6 @@ export declare class VhAuth {
|
|
|
925
925
|
* @param password
|
|
926
926
|
* @return Promise => user = {}
|
|
927
927
|
*/
|
|
928
|
-
signInWithEmailAndPassword_Sales365(email: string, password: string): Promise<unknown>;
|
|
929
928
|
/**
|
|
930
929
|
* @example:
|
|
931
930
|
* this.vhAuth.onAuthStateChanged_Sales365()
|
|
@@ -940,7 +939,6 @@ export declare class VhAuth {
|
|
|
940
939
|
})
|
|
941
940
|
* @return Promise => user = {}
|
|
942
941
|
*/
|
|
943
|
-
onAuthStateChanged_Sales365(): Promise<unknown>;
|
|
944
942
|
/**
|
|
945
943
|
* @example:
|
|
946
944
|
* this.vhAuth.signInWithEmailAndPassword_Sales365_byDealer('emp11@gmail.com', '123456')
|
|
@@ -12038,6 +12036,75 @@ export declare class VhEcommerce {
|
|
|
12038
12036
|
* @returns Promise => obj ={} or null
|
|
12039
12037
|
*/
|
|
12040
12038
|
getSalesOrderDetailTiktok(id: string, shop_cipher: string, app_key: string, access_token: string, id_shop: any): Promise<unknown>;
|
|
12039
|
+
/**
|
|
12040
|
+
* Tạo liên kết sản phẩm trên phần mềm quản lý bán hàng sales viethas và sản phẩm trên sàn tiktok
|
|
12041
|
+
* @example:
|
|
12042
|
+
* let product = this.vhQuerySales.getlocalDetailProduct(id_sub_or_product);
|
|
12043
|
+
* let id_branch = this.vhQuerySales.getDefaultBranch()._id;
|
|
12044
|
+
* this.vhEcommerce.addMergeTiktokProduct_skus(product,'tf3452345234', [{},{}], 'hjhjrtyur56u53')
|
|
12045
|
+
.then((bool:any)=>{
|
|
12046
|
+
console.log('addMergeTiktokProduct_skus', bool);
|
|
12047
|
+
}, error=>{
|
|
12048
|
+
console.log('error', error);
|
|
12049
|
+
})
|
|
12050
|
+
* @param product : sản phẩm detailproduct trên phần mềm bán hàng
|
|
12051
|
+
* @param id : trường id (cha) trong sản phẩm tiktok
|
|
12052
|
+
* @param skusArray : [{id,..},{id,..}]
|
|
12053
|
+
* @param id_shop
|
|
12054
|
+
* @return Promise => boolean true or false
|
|
12055
|
+
*/
|
|
12056
|
+
addMergeTiktokProduct_skus(product: any, id: string, skusArray: any, id_shop: string, id_branch: string): Promise<unknown>;
|
|
12057
|
+
/**
|
|
12058
|
+
* @example:
|
|
12059
|
+
* let product = this.vhQuerySales.getlocalProduct(id_product);
|
|
12060
|
+
* let id_branch = this.vhQuerySales.getDefaultBranch()._id;
|
|
12061
|
+
* this.vhEcommerce.updateMergeTiktokProduct('5fb6780ca2148e09806c5b01', '435f34tf34f3243fdf', {hidden:true}, 'jfaosidfu9we87f9w')
|
|
12062
|
+
.then((bool:any)=>{
|
|
12063
|
+
console.log('updateMergeTiktokProduct', bool);
|
|
12064
|
+
}, error=>{
|
|
12065
|
+
console.log('error', error);
|
|
12066
|
+
})
|
|
12067
|
+
* @param product : sản phẩm detailproduct trên phần mềm bán hàng
|
|
12068
|
+
* @param id: trường id (cha) trong sản phẩm tiki
|
|
12069
|
+
* @param data : {hidden:true}
|
|
12070
|
+
* @returns Promise => bool = true or false
|
|
12071
|
+
*/
|
|
12072
|
+
updateMergeTiktokProduct(product: any, id: string, data: any, id_shop: string, id_branch: string): Promise<unknown>;
|
|
12073
|
+
/**
|
|
12074
|
+
* @example:
|
|
12075
|
+
* let product = this.vhQuerySales.getlocalProduct(id_product);
|
|
12076
|
+
* let id_branch = this.vhQuerySales.getDefaultBranch()._id;
|
|
12077
|
+
* this.vhEcommerce.updateMergeTiktokProduct_skus('5fb6780ca2148e09806c5b01', '435f34tf34f3243fdf', '13123135654', {xyz:true}, 'jfaosidfu9we87f9w')
|
|
12078
|
+
.then((bool:any)=>{
|
|
12079
|
+
console.log('updateMergeTiktokProduct_skus', bool);
|
|
12080
|
+
}, error=>{
|
|
12081
|
+
console.log('error', error);
|
|
12082
|
+
})
|
|
12083
|
+
* @param product : sản phẩm detailproduct trên phần mềm bán hàng
|
|
12084
|
+
* @param id
|
|
12085
|
+
* @param sku_id : là trường id trong skus
|
|
12086
|
+
* @param data : object => data = {xyz:true}
|
|
12087
|
+
* @param id_shop
|
|
12088
|
+
* @returns Promise => bool = true or false
|
|
12089
|
+
*/
|
|
12090
|
+
updateMergeTiktokProduct_skus(product: any, id: number, sku_id: number, data: any, id_shop: string, id_branch: string): Promise<unknown>;
|
|
12091
|
+
/**
|
|
12092
|
+
* @example:
|
|
12093
|
+
* let product = this.vhQuerySales.getlocalProduct(id_product);
|
|
12094
|
+
* let id_branch = this.vhQuerySales.getDefaultBranch()._id;
|
|
12095
|
+
* this.vhEcommerce.deleteMergeTiktokProduct_skus('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w', 'sdfgsdfgererasds3563')
|
|
12096
|
+
.then((bool:any)=>{
|
|
12097
|
+
console.log('deleteMergeTiktokProduct_skus', bool);
|
|
12098
|
+
}, error=>{
|
|
12099
|
+
reject(error)
|
|
12100
|
+
})
|
|
12101
|
+
* @param product : sản phẩm detailproduct trên phần mềm bán hàng
|
|
12102
|
+
* @param id
|
|
12103
|
+
* @param sku_id: là trường id trong skus
|
|
12104
|
+
* @param id_shop
|
|
12105
|
+
* @return Promise => bool = true or false
|
|
12106
|
+
*/
|
|
12107
|
+
deleteMergeTiktokProduct_skus(product: any, id: string, sku_id: number, id_shop: string, id_branch: string): Promise<unknown>;
|
|
12041
12108
|
/**
|
|
12042
12109
|
* @notice : lấy thông tin vận đơn (mã code người gửi , mã code người nhận, địa chỉ người nhận...)
|
|
12043
12110
|
* @example:
|
|
@@ -12340,7 +12407,7 @@ export declare class VhEcommerce {
|
|
|
12340
12407
|
*/
|
|
12341
12408
|
deleteMergeShopeeProduct_model(product: any, item_id: number, model_id: number, id_shop: string, id_branch: string): Promise<unknown>;
|
|
12342
12409
|
/**
|
|
12343
|
-
* @notic : hàm này không thể cập nhật vô getlocalProductListShopee, do đó sau khi dùng hàm updateProductInfoByJSONshopee xong thì dùng thêm hàm
|
|
12410
|
+
* @notic : hàm này không thể cập nhật vô getlocalProductListShopee, do đó sau khi dùng hàm updateProductInfoByJSONshopee xong thì dùng thêm hàm getProductByIdShopee
|
|
12344
12411
|
* với các sản phẩm vừa cập nhật, lúc đó những gì vừa thay đổi mới đc cập nhật vô getlocalProductListShopee
|
|
12345
12412
|
* @example:
|
|
12346
12413
|
* let json = {
|