ionic-vhframeworks 3.8.8 → 3.9.1
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/esm2015/ionic-vhframeworks.js +1 -1
- package/esm2015/lib/ionic-vhframeworks.component.js +1 -1
- package/esm2015/lib/ionic-vhframeworks.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/ionic-vhframeworks.js.map +1 -1
- package/ionic-vhframeworks.metadata.json +1 -1
- package/lib/ionic-vhframeworks.service.d.ts +58 -4
- package/package.json +1 -1
|
@@ -1005,6 +1005,7 @@ export declare class VhQueryCafe {
|
|
|
1005
1005
|
private vhQuery;
|
|
1006
1006
|
private vhAuth;
|
|
1007
1007
|
private vhAlgorithm;
|
|
1008
|
+
private restriction_main_package;
|
|
1008
1009
|
private areas;
|
|
1009
1010
|
private tables;
|
|
1010
1011
|
private products;
|
|
@@ -1057,6 +1058,23 @@ export declare class VhQueryCafe {
|
|
|
1057
1058
|
*/
|
|
1058
1059
|
constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm);
|
|
1059
1060
|
/**
|
|
1061
|
+
* @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
|
|
1062
|
+
* @example
|
|
1063
|
+
* this.refreshRestrictionMainPackage()
|
|
1064
|
+
.then((bool)=>{
|
|
1065
|
+
console.log('bool', bool);
|
|
1066
|
+
})
|
|
1067
|
+
* @return Promise => null/error
|
|
1068
|
+
*/
|
|
1069
|
+
private refreshRestrictionMainPackage;
|
|
1070
|
+
/**
|
|
1071
|
+
* @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
|
|
1072
|
+
* @example
|
|
1073
|
+
* let restriction_main_package = this.vhQueryCafe.getLocalRestrictionMainPackage();
|
|
1074
|
+
* @return Object => obj ={} or null
|
|
1075
|
+
*/
|
|
1076
|
+
getLocalRestrictionMainPackage(): any;
|
|
1077
|
+
/**
|
|
1060
1078
|
* @example:
|
|
1061
1079
|
this.vhQueryCafe.syncCollections_Mobile().then((bool)=>{
|
|
1062
1080
|
if(bool){
|
|
@@ -7232,6 +7250,7 @@ export declare class VhQuerySales {
|
|
|
7232
7250
|
private restriction_main_package;
|
|
7233
7251
|
private restriction_ecommerce_package;
|
|
7234
7252
|
private restriction_facebook_package;
|
|
7253
|
+
private restriction_warranty_package;
|
|
7235
7254
|
private productlistsendo;
|
|
7236
7255
|
private shoplistsendo;
|
|
7237
7256
|
private productlistlazada;
|
|
@@ -7281,7 +7300,7 @@ export declare class VhQuerySales {
|
|
|
7281
7300
|
.then((bool)=>{
|
|
7282
7301
|
console.log('bool', bool);
|
|
7283
7302
|
})
|
|
7284
|
-
* @return Promise => null
|
|
7303
|
+
* @return Promise => null/error
|
|
7285
7304
|
*/
|
|
7286
7305
|
private refreshRestrictionMainPackage;
|
|
7287
7306
|
/**
|
|
@@ -7298,7 +7317,7 @@ export declare class VhQuerySales {
|
|
|
7298
7317
|
.then((bool)=>{
|
|
7299
7318
|
console.log('bool', bool);
|
|
7300
7319
|
})
|
|
7301
|
-
* @return Promise => null
|
|
7320
|
+
* @return Promise => null/error
|
|
7302
7321
|
*/
|
|
7303
7322
|
private refreshRestrictionEcommercePackage;
|
|
7304
7323
|
/**
|
|
@@ -7325,6 +7344,23 @@ export declare class VhQuerySales {
|
|
|
7325
7344
|
* @return Object => obj ={} or null
|
|
7326
7345
|
*/
|
|
7327
7346
|
getLocalRestrictionFacebookPackage(): any;
|
|
7347
|
+
/**
|
|
7348
|
+
* @description: hàm này lấy về những hạn chế của gói warranty_package (khách trả phí mua gói sử dụng warranty, mỗi gói sẽ có nhưng hạn chế khác nhau về show_report_duration)
|
|
7349
|
+
* @example
|
|
7350
|
+
* this.refreshRestrictionWarrantyPackage()
|
|
7351
|
+
.then((bool)=>{
|
|
7352
|
+
console.log('bool', bool);
|
|
7353
|
+
})
|
|
7354
|
+
* @return Promise => null
|
|
7355
|
+
*/
|
|
7356
|
+
private refreshRestrictionWarrantyPackage;
|
|
7357
|
+
/**
|
|
7358
|
+
* @description: hàm này lấy về những hạn chế của gói warranty_package trong localstorage
|
|
7359
|
+
* @example
|
|
7360
|
+
* let restriction_warranty_package = this.vhQuerySales.getLocalRestrictionWarrantyPackage();
|
|
7361
|
+
* @return Object => obj ={} or null
|
|
7362
|
+
*/
|
|
7363
|
+
getLocalRestrictionWarrantyPackage(): any;
|
|
7328
7364
|
/**
|
|
7329
7365
|
* Hàm callback BÌNH LUẬN trên fanpage có id là id_fanpage
|
|
7330
7366
|
* @example:
|
|
@@ -10260,7 +10296,7 @@ export declare class VhQuerySales {
|
|
|
10260
10296
|
* @example:
|
|
10261
10297
|
* let time = new Date();
|
|
10262
10298
|
* time.setDate(time.getDate()-7);
|
|
10263
|
-
* this.vhQuerySales.getPayments({id_store:{$eq:
|
|
10299
|
+
* this.vhQuerySales.getPayments({id_store: {$eq: this.vhAuth.getUser()._id}, payment_type:{$eq:5}}, {},{},0)
|
|
10264
10300
|
.then((payments)=>{
|
|
10265
10301
|
console.log('getPayments', payments);
|
|
10266
10302
|
})
|
|
@@ -10926,7 +10962,25 @@ export declare class VhQuerySales {
|
|
|
10926
10962
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, id_product, name, barcode, unit, img, id_customer, quantity, sales_btax, sales_atax}
|
|
10927
10963
|
*/
|
|
10928
10964
|
getReportSales_Customers_byProducts(starttime: any, endtime: any, id_customer: any, IDbranch?: string): Promise<any>;
|
|
10929
|
-
|
|
10965
|
+
/**
|
|
10966
|
+
* @Usage Hàm này dùng trong phân tích số liệu từ doanh số bán hàng trên mỗi sàn TMĐT 3 THÁNG, 3 TUẦN gần nhất
|
|
10967
|
+
* @example
|
|
10968
|
+
* let endtime = new Date();
|
|
10969
|
+
let starttime = new Date('2020-07-01T05:24:00');
|
|
10970
|
+
this.vhQuerySales.getReportSales_Customers_byProducts(starttime, endtime, '9879657432', 'shopee', '7YLcm0cFKLu2KaQQ8cyv')
|
|
10971
|
+
.then((reportsales)=>{
|
|
10972
|
+
console.log('reportsales', reportsales);
|
|
10973
|
+
console.log('reportsales.docs[0]', reportsales.docs[0]);
|
|
10974
|
+
})
|
|
10975
|
+
* @param starttime
|
|
10976
|
+
* @param endtime
|
|
10977
|
+
* @param id_customer
|
|
10978
|
+
* @param id_shop
|
|
10979
|
+
* @param ecommerce: 'shopee'/'lazada'/'tiki'/'sendo'
|
|
10980
|
+
* @param IDbranch : 'all' or id_branch
|
|
10981
|
+
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, id_product, name, barcode, unit, img, id_customer, quantity, sales_btax, sales_atax}
|
|
10982
|
+
*/
|
|
10983
|
+
getReportSales_Customers_byProducts_Analytics(starttime: any, endtime: any, id_customer: string, id_shop: string, ecommerce: string, IDbranch: string): Promise<any>;
|
|
10930
10984
|
/**
|
|
10931
10985
|
* @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 3) -> Chọn TẤT CẢ hoặc MỘT khách hàng -> Chọn một khách hàng trong list hiện ra -> Chọn một sản phẩm trong list tiếp theo hiện ra
|
|
10932
10986
|
* @example:
|