ionic-vhframeworks 4.3.4 → 4.3.7
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 +42 -5
- package/package.json +1 -1
|
@@ -8994,6 +8994,9 @@ export declare class VhQuerySales {
|
|
|
8994
8994
|
* @param message
|
|
8995
8995
|
*/
|
|
8996
8996
|
sendImageToAppCare(image: string): Promise<unknown>;
|
|
8997
|
+
/**
|
|
8998
|
+
* Hàm này chạy sau hàm đăng nhập hoặc xác thực đăng nhập vào phần mềm
|
|
8999
|
+
*/
|
|
8997
9000
|
startLocalStorage(): Promise<any>;
|
|
8998
9001
|
initPurchase(): void;
|
|
8999
9002
|
private initPaymentOnAPPStore;
|
|
@@ -11450,7 +11453,7 @@ export declare class VhQuerySales {
|
|
|
11450
11453
|
}
|
|
11451
11454
|
* @returns Observerble (Array) => Array(object) => array = [{},{},...]
|
|
11452
11455
|
*/
|
|
11453
|
-
getObservableLocalPromotions
|
|
11456
|
+
private getObservableLocalPromotions;
|
|
11454
11457
|
/**
|
|
11455
11458
|
* @example:
|
|
11456
11459
|
* let promotion = this.vhQuerySales.getlocalPromotion('5fb6780ca2148e09806c5b01');
|
|
@@ -11463,17 +11466,20 @@ export declare class VhQuerySales {
|
|
|
11463
11466
|
* let promotions = this.vhQuerySales.getlocalPromotions();
|
|
11464
11467
|
* @return Array(object) => array = [{},{},...]
|
|
11465
11468
|
*/
|
|
11466
|
-
getlocalPromotions(): any;
|
|
11469
|
+
getlocalPromotions(): any[];
|
|
11467
11470
|
/**
|
|
11468
11471
|
* @example:
|
|
11469
|
-
*
|
|
11472
|
+
* let date = new Date();
|
|
11473
|
+
* this.vhQuerySales.refreshLocalPromotions(date)
|
|
11470
11474
|
.then(()=>{
|
|
11471
11475
|
do something.....
|
|
11476
|
+
}, error=>{
|
|
11477
|
+
console.log('error', error);
|
|
11472
11478
|
})
|
|
11473
11479
|
* Hàm này refresh giá trị mới nhất cho hàm getlocalPromotion(), getlocalPromotions() trong localstorage
|
|
11474
11480
|
* @return Promise => null
|
|
11475
11481
|
*/
|
|
11476
|
-
refreshLocalPromotions
|
|
11482
|
+
private refreshLocalPromotions;
|
|
11477
11483
|
/**
|
|
11478
11484
|
* @example:
|
|
11479
11485
|
* this.vhQuerySales.addPromotion({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
|
|
@@ -11529,7 +11535,38 @@ export declare class VhQuerySales {
|
|
|
11529
11535
|
})
|
|
11530
11536
|
* @return array(object) = [{},{},..]
|
|
11531
11537
|
*/
|
|
11532
|
-
getPromotions
|
|
11538
|
+
private getPromotions;
|
|
11539
|
+
/**
|
|
11540
|
+
* hàm này trả về danh sách chương trình khuyến mãi diễn ra từ thời gian fromTime đến thời gian toTime
|
|
11541
|
+
* @example:
|
|
11542
|
+
* let fromTime = new Date();
|
|
11543
|
+
* let toTime = new Date('2020-07-01T05:24:00');
|
|
11544
|
+
* this.vhQuerySales.getPromotions_fromTime_toTime(fromTime, toTime, 'all')
|
|
11545
|
+
.then((res)=>{
|
|
11546
|
+
console.log('getPromotions_fromTime_toTime', res);
|
|
11547
|
+
}, error=>{
|
|
11548
|
+
console.log('error', error);
|
|
11549
|
+
})
|
|
11550
|
+
* @param fromTime
|
|
11551
|
+
* @param toTime
|
|
11552
|
+
* @param type: 'all' or 1->8
|
|
11553
|
+
* @return Promise => array(object) = [{},{},..]
|
|
11554
|
+
*/
|
|
11555
|
+
getPromotions_fromTime_toTime(fromTime: any, toTime: any, type: any): Promise<unknown>;
|
|
11556
|
+
/**
|
|
11557
|
+
* hàm này trả về danh sách chương trình khuyến mãi diễn ra tại thời điểm tạo hóa đơn => mỗi lần chỉnh lại thời gian tạo hóa đơn phải gọi hàm này
|
|
11558
|
+
* @example:
|
|
11559
|
+
* let date = new Date();
|
|
11560
|
+
* this.vhQuerySales.getPromotions_byDate(date)
|
|
11561
|
+
.then((res)=>{
|
|
11562
|
+
console.log('getPromotions_byDate', res);
|
|
11563
|
+
}, error=>{
|
|
11564
|
+
console.log('error', error);
|
|
11565
|
+
})
|
|
11566
|
+
* @param date : thơi gian tạo hóa đơn
|
|
11567
|
+
* @return Promise => array(object) = [{},{},..]
|
|
11568
|
+
*/
|
|
11569
|
+
private getPromotions_byDate;
|
|
11533
11570
|
/**
|
|
11534
11571
|
* @example:
|
|
11535
11572
|
* this.vhQuerySales.addPromotion_detail({name:'promition 1'})
|