ionic-vhframeworks 4.3.7 → 4.4.0

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.
@@ -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();
@@ -11479,7 +11502,7 @@ export declare class VhQuerySales {
11479
11502
  * Hàm này refresh giá trị mới nhất cho hàm getlocalPromotion(), getlocalPromotions() trong localstorage
11480
11503
  * @return Promise => null
11481
11504
  */
11482
- private refreshLocalPromotions;
11505
+ refreshLocalPromotions(date: any): any;
11483
11506
  /**
11484
11507
  * @example:
11485
11508
  * this.vhQuerySales.addPromotion({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
@@ -11567,6 +11590,14 @@ export declare class VhQuerySales {
11567
11590
  * @return Promise => array(object) = [{},{},..]
11568
11591
  */
11569
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
+ * let bill_details_display = this.vhQuerySales.changeBillDetails_toDisplay([{}, {}, {}])
11597
+ * @param bill_details
11598
+ * @return Array => array = [{},{},..]
11599
+ */
11600
+ changeBillDetails_toDisplay(bill_details: any): any[];
11570
11601
  /**
11571
11602
  * @example:
11572
11603
  * this.vhQuerySales.addPromotion_detail({name:'promition 1'})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "4.3.7",
3
+ "version": "4.4.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"