ionic-vhframeworks 3.6.0 → 3.6.5
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.
- package/bundles/ionic-vhframeworks.umd.js +1 -1
- package/bundles/ionic-vhframeworks.umd.js.map +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js.map +1 -1
- package/fesm2015/ionic-vhframeworks.js.map +1 -1
- package/ionic-vhframeworks.metadata.json +1 -1
- package/lib/ionic-vhframeworks.service.d.ts +168 -1
- package/package.json +1 -1
|
@@ -6537,6 +6537,63 @@ export declare class VhEcommerce {
|
|
|
6537
6537
|
private shopeepricecomparinglist;
|
|
6538
6538
|
private callbacklazadapricecomparing;
|
|
6539
6539
|
constructor(vhmongo_firebase: Vhmongo_firebase);
|
|
6540
|
+
/**
|
|
6541
|
+
* @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...)
|
|
6542
|
+
* @example:
|
|
6543
|
+
let order_sn = '2112156RC1JN5Y';
|
|
6544
|
+
let access_token = '98efa569a4731bb67a8f76fed8808d66';
|
|
6545
|
+
let shop_id = '894793475932';
|
|
6546
|
+
this.vhEcommerce.getShippingDocumentShopee( order_sn, access_token, shop_id).then((result)=>{
|
|
6547
|
+
console.log('result', result);
|
|
6548
|
+
},error=>{
|
|
6549
|
+
console.log('error', error);
|
|
6550
|
+
})
|
|
6551
|
+
* @param order_sn
|
|
6552
|
+
* @param access_token
|
|
6553
|
+
* @param shop_id
|
|
6554
|
+
* @returns Promise
|
|
6555
|
+
*/
|
|
6556
|
+
getShippingDocumentShopee(order_sn: string, access_token: string, shop_id: string): Promise<unknown>;
|
|
6557
|
+
/**
|
|
6558
|
+
* @notice : Lấy địa chỉ + thời gian lấy hàng
|
|
6559
|
+
* @example:
|
|
6560
|
+
let order_sn = '2112156RC1JN5Y';
|
|
6561
|
+
let access_token = '98efa569a4731bb67a8f76fed8808d66';
|
|
6562
|
+
let shop_id = '894793475932';
|
|
6563
|
+
this.vhEcommerce.getShippingParameterShopee( order_sn, access_token, shop_id).then((result)=>{
|
|
6564
|
+
console.log('result', result);
|
|
6565
|
+
},error=>{
|
|
6566
|
+
console.log('error', error);
|
|
6567
|
+
})
|
|
6568
|
+
* @param order_sn
|
|
6569
|
+
* @param access_token
|
|
6570
|
+
* @param shop_id
|
|
6571
|
+
* @returns Promise
|
|
6572
|
+
*/
|
|
6573
|
+
getShippingParameterShopee(order_sn: string, access_token: string, shop_id: string): Promise<unknown>;
|
|
6574
|
+
/**
|
|
6575
|
+
* @notice : Xác nhận đã đóng gói xong
|
|
6576
|
+
* @example:
|
|
6577
|
+
* let json = {
|
|
6578
|
+
order_sn: "2112156RC1JN5Y",
|
|
6579
|
+
pickup: {
|
|
6580
|
+
address_id: 51363234,
|
|
6581
|
+
pickup_time_id: "1639731600"
|
|
6582
|
+
}
|
|
6583
|
+
}
|
|
6584
|
+
let access_token = '98efa569a4731bb67a8f76fed8808d66'
|
|
6585
|
+
let shop_id = '894793475932';
|
|
6586
|
+
this.vhEcommerce.confirmShippingByJSONShopee( json, access_token, shop_id).then((result)=>{
|
|
6587
|
+
console.log('result', result);
|
|
6588
|
+
},error=>{
|
|
6589
|
+
console.log('error', error);
|
|
6590
|
+
})
|
|
6591
|
+
* @param json
|
|
6592
|
+
* @param access_token
|
|
6593
|
+
* @param shop_id
|
|
6594
|
+
* @returns Promise
|
|
6595
|
+
*/
|
|
6596
|
+
confirmShippingByJSONShopee(json: any, access_token: string, shop_id: string): Promise<unknown>;
|
|
6540
6597
|
/**
|
|
6541
6598
|
* @example:
|
|
6542
6599
|
* this.vhEcommerce.observableLazadaPriceComparing('5fb6780ca2148e09806c5b01')
|
|
@@ -6940,6 +6997,46 @@ export declare class VhQuerySales {
|
|
|
6940
6997
|
private subjectwarrantys;
|
|
6941
6998
|
constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, iap2: InAppPurchase2, platform: Platform);
|
|
6942
6999
|
/**------------------------TIKI Ecommerce-------------------------- */
|
|
7000
|
+
/**
|
|
7001
|
+
* @example:
|
|
7002
|
+
* this.vhQuerySales.getSellerInventoriesForConfirmationTiki(access_token).then((result)=>{
|
|
7003
|
+
console.log('result', result);
|
|
7004
|
+
},error=>{
|
|
7005
|
+
console.log('error', error);
|
|
7006
|
+
})
|
|
7007
|
+
* @param access_token :string
|
|
7008
|
+
* @returns Promise
|
|
7009
|
+
*/
|
|
7010
|
+
getSellerInventoriesForConfirmationTiki(access_token: string): Promise<unknown>;
|
|
7011
|
+
/**
|
|
7012
|
+
* @example:
|
|
7013
|
+
* this.vhQuerySales.getExpectedPickupTimesTiki(access_token).then((result)=>{
|
|
7014
|
+
console.log('result', result);
|
|
7015
|
+
},error=>{
|
|
7016
|
+
console.log('error', error);
|
|
7017
|
+
})
|
|
7018
|
+
* @param access_token :string
|
|
7019
|
+
* @returns Promise
|
|
7020
|
+
*/
|
|
7021
|
+
getExpectedPickupTimesTiki(access_token: string): Promise<unknown>;
|
|
7022
|
+
/**
|
|
7023
|
+
* @example:
|
|
7024
|
+
* let json = {
|
|
7025
|
+
confirmation_status: 'seller_confirmed',
|
|
7026
|
+
seller_inventory_id: 237188,
|
|
7027
|
+
expected_pickup_time: '2021-12-10 09:00:00
|
|
7028
|
+
}
|
|
7029
|
+
* this.vhQuerySales.ConfirmEnoughStockForDropShippingByJSONTiki(code, json, access_token).then((result)=>{
|
|
7030
|
+
console.log('result', result);
|
|
7031
|
+
},error=>{
|
|
7032
|
+
console.log('error', error);
|
|
7033
|
+
})
|
|
7034
|
+
* @param code :string
|
|
7035
|
+
* @param json :object
|
|
7036
|
+
* @param access_token :string
|
|
7037
|
+
* @returns Promise
|
|
7038
|
+
*/
|
|
7039
|
+
ConfirmEnoughStockForDropShippingByJSONTiki(code: string, json: any, access_token: string): Promise<unknown>;
|
|
6943
7040
|
/**
|
|
6944
7041
|
* Hàm này lấy về mảng các đơn hàng (salesorder) được lưu trong database viethas (ko phải database tiki)
|
|
6945
7042
|
* @example
|
|
@@ -8793,6 +8890,76 @@ export declare class VhQuerySales {
|
|
|
8793
8890
|
* @return Promise => array(object) = [{},{},..]
|
|
8794
8891
|
*/
|
|
8795
8892
|
getDeliverys(): Promise<unknown>;
|
|
8893
|
+
/**
|
|
8894
|
+
* @example:
|
|
8895
|
+
* this.vhQuerySales.addAdss({name:name: 'Quảng cáo 1'})
|
|
8896
|
+
.then((ads)=>{
|
|
8897
|
+
console.log('addAdss', ads);
|
|
8898
|
+
}, error=>{
|
|
8899
|
+
console.log('error', error);
|
|
8900
|
+
})
|
|
8901
|
+
* @param data
|
|
8902
|
+
* @return Promise => object = {}
|
|
8903
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
|
|
8904
|
+
*/
|
|
8905
|
+
addAdss(data: object): Promise<unknown>;
|
|
8906
|
+
/**
|
|
8907
|
+
* @example:
|
|
8908
|
+
* this.vhQuerySales.updateAds('5fb6780ca2148e09806c5b01', {name: 'Quảng cáo 1'})
|
|
8909
|
+
.then((bool)=>{
|
|
8910
|
+
console.log('updateAds', bool);
|
|
8911
|
+
}, error=>{
|
|
8912
|
+
console.log('error', error);
|
|
8913
|
+
})
|
|
8914
|
+
* @param id_ads
|
|
8915
|
+
* @param data
|
|
8916
|
+
* @return Promise => bool = true or false
|
|
8917
|
+
*/
|
|
8918
|
+
updateAds(id_ads: string, data: object): Promise<unknown>;
|
|
8919
|
+
/**
|
|
8920
|
+
* @example:
|
|
8921
|
+
* this.vhQuerySales.deleteAds('5fb67fda87c0f21d484cbdf3')
|
|
8922
|
+
.then((bool)=>{
|
|
8923
|
+
console.log('deleteAds', bool);
|
|
8924
|
+
}, error=>{
|
|
8925
|
+
reject(error)
|
|
8926
|
+
})
|
|
8927
|
+
* @param id_ads
|
|
8928
|
+
* @return Promise => bool = true or false
|
|
8929
|
+
*/
|
|
8930
|
+
deleteAds(id_ads: string): Promise<unknown>;
|
|
8931
|
+
/**
|
|
8932
|
+
* @example
|
|
8933
|
+
* this.vhQuerySales.getAds('5fb67fda87c0f21d484cbdf3')
|
|
8934
|
+
.then((ads)=>{
|
|
8935
|
+
console.log('getAds', ads);
|
|
8936
|
+
})
|
|
8937
|
+
* @param id_ads
|
|
8938
|
+
* @return false or object
|
|
8939
|
+
*/
|
|
8940
|
+
getAds(id_ads: string): Promise<unknown>;
|
|
8941
|
+
/**
|
|
8942
|
+
* @example
|
|
8943
|
+
* this.vhQuerySales.getAdss()
|
|
8944
|
+
.then((adss)=>{
|
|
8945
|
+
console.log('getAdss', adss);
|
|
8946
|
+
})
|
|
8947
|
+
* @return array(object) = [{},{},..]
|
|
8948
|
+
*/
|
|
8949
|
+
getAdss(): Promise<unknown>;
|
|
8950
|
+
/**
|
|
8951
|
+
* @example
|
|
8952
|
+
* this.vhQuerySales.getAdss_byFields('hjkhklf8f90we8', {quantity:{$gte:10}}, {}, {}, 0)
|
|
8953
|
+
.then((adss)=>{
|
|
8954
|
+
console.log('getAdss_byFields', adss);
|
|
8955
|
+
})
|
|
8956
|
+
* @param query
|
|
8957
|
+
* @param projection
|
|
8958
|
+
* @param sort
|
|
8959
|
+
* @param limit
|
|
8960
|
+
* @return Promise => array(object) = [{},{},..]
|
|
8961
|
+
*/
|
|
8962
|
+
getAdss_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
8796
8963
|
/**
|
|
8797
8964
|
* @example:
|
|
8798
8965
|
* let address = this.vhQuerySales.getlocalAddress('5fb6780ca2148e09806c5b01');
|
|
@@ -9824,7 +9991,7 @@ export declare class VhQuerySales {
|
|
|
9824
9991
|
private getLocalAppSettingBranch;
|
|
9825
9992
|
/**
|
|
9826
9993
|
* @example:
|
|
9827
|
-
this.vhQuerySales.updateAppSettingNameBranch('
|
|
9994
|
+
this.vhQuerySales.updateAppSettingNameBranch('permission_branch',{display_promotion_selling_price:true})
|
|
9828
9995
|
.then((bool)=>{
|
|
9829
9996
|
console.log(bool);
|
|
9830
9997
|
})
|