ionic-vhframeworks 4.3.6 → 4.3.9
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 +73 -3
- package/package.json +1 -1
|
@@ -381,6 +381,29 @@ export declare class VhAuth {
|
|
|
381
381
|
* @param emailAddress
|
|
382
382
|
*/
|
|
383
383
|
resetPasswordbyEmail(emailAddress: any): Promise<any>;
|
|
384
|
+
/**
|
|
385
|
+
* Hàm này dùng để đổi email của người dùng
|
|
386
|
+
* @example:
|
|
387
|
+
* this.vhAuth.updateUserEmail('5fb6780ca2148e09806c5b01', toilaai@gmail.com, 'member')
|
|
388
|
+
.then((rsp)=> {
|
|
389
|
+
if(rsp.vcode === 0){
|
|
390
|
+
//-----------your code 0-----------
|
|
391
|
+
console.log('updateUserEmail', rsp);
|
|
392
|
+
}else
|
|
393
|
+
//-----------your code 1-----------
|
|
394
|
+
}
|
|
395
|
+
},(error:any) => {
|
|
396
|
+
console.log(error);
|
|
397
|
+
})
|
|
398
|
+
* @param id_employee
|
|
399
|
+
* @param email : nhớ kiểm tra chuẩn email trước, và chuỗi trước @ có chiều dài lớn hơn bằng 6
|
|
400
|
+
* @param owner : 'boss' or 'member'
|
|
401
|
+
* @return Promise object => rsp = {vcode, message}
|
|
402
|
+
* vcode == 0: Successfully updated user
|
|
403
|
+
* vcode != 1: This email has been registered by someone else
|
|
404
|
+
* @notice : nhớ kiểm tra email đúng cú pháp và chuỗi trước @ có chiều dài lớn hơn bằng 6 thì nút "Đồng ý" mới sáng lên
|
|
405
|
+
*/
|
|
406
|
+
updateUserEmail(id_employee: string, email: string, owner: string): Promise<any>;
|
|
384
407
|
/**
|
|
385
408
|
* @example:
|
|
386
409
|
* let projectname = this.vhAuth.getProjectName();
|
|
@@ -11469,14 +11492,17 @@ export declare class VhQuerySales {
|
|
|
11469
11492
|
getlocalPromotions(): any[];
|
|
11470
11493
|
/**
|
|
11471
11494
|
* @example:
|
|
11472
|
-
*
|
|
11495
|
+
* let date = new Date();
|
|
11496
|
+
* this.vhQuerySales.refreshLocalPromotions(date)
|
|
11473
11497
|
.then(()=>{
|
|
11474
11498
|
do something.....
|
|
11499
|
+
}, error=>{
|
|
11500
|
+
console.log('error', error);
|
|
11475
11501
|
})
|
|
11476
11502
|
* Hàm này refresh giá trị mới nhất cho hàm getlocalPromotion(), getlocalPromotions() trong localstorage
|
|
11477
11503
|
* @return Promise => null
|
|
11478
11504
|
*/
|
|
11479
|
-
refreshLocalPromotions
|
|
11505
|
+
private refreshLocalPromotions;
|
|
11480
11506
|
/**
|
|
11481
11507
|
* @example:
|
|
11482
11508
|
* this.vhQuerySales.addPromotion({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
|
|
@@ -11532,7 +11558,51 @@ export declare class VhQuerySales {
|
|
|
11532
11558
|
})
|
|
11533
11559
|
* @return array(object) = [{},{},..]
|
|
11534
11560
|
*/
|
|
11535
|
-
getPromotions
|
|
11561
|
+
private getPromotions;
|
|
11562
|
+
/**
|
|
11563
|
+
* 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
|
|
11564
|
+
* @example:
|
|
11565
|
+
* let fromTime = new Date();
|
|
11566
|
+
* let toTime = new Date('2020-07-01T05:24:00');
|
|
11567
|
+
* this.vhQuerySales.getPromotions_fromTime_toTime(fromTime, toTime, 'all')
|
|
11568
|
+
.then((res)=>{
|
|
11569
|
+
console.log('getPromotions_fromTime_toTime', res);
|
|
11570
|
+
}, error=>{
|
|
11571
|
+
console.log('error', error);
|
|
11572
|
+
})
|
|
11573
|
+
* @param fromTime
|
|
11574
|
+
* @param toTime
|
|
11575
|
+
* @param type: 'all' or 1->8
|
|
11576
|
+
* @return Promise => array(object) = [{},{},..]
|
|
11577
|
+
*/
|
|
11578
|
+
getPromotions_fromTime_toTime(fromTime: any, toTime: any, type: any): Promise<unknown>;
|
|
11579
|
+
/**
|
|
11580
|
+
* 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
|
|
11581
|
+
* @example:
|
|
11582
|
+
* let date = new Date();
|
|
11583
|
+
* this.vhQuerySales.getPromotions_byDate(date)
|
|
11584
|
+
.then((res)=>{
|
|
11585
|
+
console.log('getPromotions_byDate', res);
|
|
11586
|
+
}, error=>{
|
|
11587
|
+
console.log('error', error);
|
|
11588
|
+
})
|
|
11589
|
+
* @param date : thơi gian tạo hóa đơn
|
|
11590
|
+
* @return Promise => array(object) = [{},{},..]
|
|
11591
|
+
*/
|
|
11592
|
+
private getPromotions_byDate;
|
|
11593
|
+
/**
|
|
11594
|
+
* Hàm này đổi mảng Bill_Details sang mảng Bill_Details có chương trình khuyến mãi (nếu có)
|
|
11595
|
+
* @example:
|
|
11596
|
+
* this.vhQuerySales.changeBillDetails_toDisplay([{}, {}, {}])
|
|
11597
|
+
.then((bill_details_display)=>{
|
|
11598
|
+
console.log('changeBillDetails_toDisplay', bill_details_display);
|
|
11599
|
+
},error=>{
|
|
11600
|
+
console.log('error', error);
|
|
11601
|
+
})
|
|
11602
|
+
* @param bill_details
|
|
11603
|
+
* @return Array => array = [{},{},..]
|
|
11604
|
+
*/
|
|
11605
|
+
changeBillDetails_toDisplay(bill_details: any): any[];
|
|
11536
11606
|
/**
|
|
11537
11607
|
* @example:
|
|
11538
11608
|
* this.vhQuerySales.addPromotion_detail({name:'promition 1'})
|