ionic-vhframeworks 4.3.7 → 4.3.8

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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"