ionic-vhframeworks 3.1.1 → 3.1.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 +52 -3
- package/package.json +1 -1
|
@@ -6489,6 +6489,55 @@ export declare class VhQueryClouds {
|
|
|
6489
6489
|
*/
|
|
6490
6490
|
getScript_details(): Promise<unknown>;
|
|
6491
6491
|
}
|
|
6492
|
+
export declare class VhEcommerce {
|
|
6493
|
+
private vhmongo_firebase;
|
|
6494
|
+
private productlistshopee;
|
|
6495
|
+
private shoplistshopee;
|
|
6496
|
+
constructor(vhmongo_firebase: Vhmongo_firebase);
|
|
6497
|
+
/**
|
|
6498
|
+
* @example:
|
|
6499
|
+
this.vhEcommerce.signInShopee(id_branch).then((bool)=>{
|
|
6500
|
+
if(bool){
|
|
6501
|
+
console.log('bool', bool)
|
|
6502
|
+
}
|
|
6503
|
+
})
|
|
6504
|
+
* @returns Promise => true or false
|
|
6505
|
+
*/
|
|
6506
|
+
signInShopee(id_branch: string): Promise<unknown>;
|
|
6507
|
+
/**
|
|
6508
|
+
* @example:
|
|
6509
|
+
* let id_branch = this.vhQuerySales.getDefaultBranch()._id;
|
|
6510
|
+
* this.vhEcommerce.refreshLocalProductListShopee(id_branch)
|
|
6511
|
+
.then(()=>{
|
|
6512
|
+
do something.....
|
|
6513
|
+
})
|
|
6514
|
+
* Hàm này refresh giá trị mới nhất cho hàm getProductListSendo() trong localstorage
|
|
6515
|
+
* @return Promise => null
|
|
6516
|
+
*/
|
|
6517
|
+
refreshLocalProductListShopee(id_branch: string): any;
|
|
6518
|
+
/**
|
|
6519
|
+
* let localshoplistshopee = this.vhEcommerce.getlocalShopListShopee();
|
|
6520
|
+
* @returns
|
|
6521
|
+
*/
|
|
6522
|
+
getlocalShopListShopee(): any;
|
|
6523
|
+
/**
|
|
6524
|
+
* @example:
|
|
6525
|
+
* let id_branch = this.vhQuerySales.getDefaultBranch()._id;
|
|
6526
|
+
* this.vhEcommerce.getProductListShopee(id_branch).then(()=>{
|
|
6527
|
+
do something...
|
|
6528
|
+
},error=>{
|
|
6529
|
+
})
|
|
6530
|
+
* @returns
|
|
6531
|
+
*/
|
|
6532
|
+
private getProductListShopee;
|
|
6533
|
+
/**
|
|
6534
|
+
* @example:
|
|
6535
|
+
* let productlistlazada = this.vhEcommerce.getlocalProductListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
|
|
6536
|
+
* @param id_shop
|
|
6537
|
+
* @returns Promise => Array
|
|
6538
|
+
*/
|
|
6539
|
+
getlocalProductListShopee(id_shop: any): any;
|
|
6540
|
+
}
|
|
6492
6541
|
export declare class VhQuerySales {
|
|
6493
6542
|
private vhmongo_firebase;
|
|
6494
6543
|
private vhQuery;
|
|
@@ -6675,9 +6724,9 @@ export declare class VhQuerySales {
|
|
|
6675
6724
|
* @example:
|
|
6676
6725
|
* let productlistlazada = this.vhQuerySales.getlocalProductListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
|
|
6677
6726
|
* @param id_shop
|
|
6678
|
-
* @returns
|
|
6727
|
+
* @returns Promise => Array
|
|
6679
6728
|
*/
|
|
6680
|
-
getlocalProductListLazada(id_shop: any): any
|
|
6729
|
+
getlocalProductListLazada(id_shop: any): any;
|
|
6681
6730
|
/**
|
|
6682
6731
|
* @example:
|
|
6683
6732
|
* this.vhQuerySales.refreshLocalProductListLazadas()
|
|
@@ -7122,7 +7171,7 @@ export declare class VhQuerySales {
|
|
|
7122
7171
|
* @param type = 1 là sản phẩm, = 2 là dịch vụ, = 5 là combo, =12 là sản phẩm và dịch vụ, giá trị khác là cả 3
|
|
7123
7172
|
* @return Array(object) => array = [{},{},...]
|
|
7124
7173
|
*/
|
|
7125
|
-
getlocalProducts(type?: any): any
|
|
7174
|
+
getlocalProducts(type?: any): any;
|
|
7126
7175
|
/**
|
|
7127
7176
|
* @example:
|
|
7128
7177
|
* this.vhQuerySales.refreshLocalProducts()
|