ionic-vhframeworks 4.1.4 → 4.1.5
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 +37 -12
- package/package.json +1 -1
|
@@ -495,18 +495,41 @@ export declare class VhAuth {
|
|
|
495
495
|
* @return Promise => member={}
|
|
496
496
|
*/
|
|
497
497
|
signUpEndUser(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
498
|
-
private
|
|
498
|
+
private getLocalMyPermission;
|
|
499
|
+
/**
|
|
500
|
+
* Hàm này chỉ dùng cho FW, Dev không dùng nhé
|
|
501
|
+
* @returns
|
|
502
|
+
*/
|
|
499
503
|
refreshLocalMyPermission(): Promise<unknown>;
|
|
500
504
|
/**
|
|
501
505
|
* @example:
|
|
502
506
|
if(this.VhQuerySales.checkMyPermission('login_enable_login')){
|
|
503
507
|
this.login();
|
|
504
508
|
}
|
|
505
|
-
* @param
|
|
509
|
+
* @param permission_name
|
|
510
|
+
* @param message
|
|
511
|
+
* @return Boolean => true or false
|
|
512
|
+
*/
|
|
513
|
+
checkMyPermission(permission_name: any): boolean;
|
|
514
|
+
/**
|
|
515
|
+
* Hàm này chỉ trả về kết quả chính xác khi mà các permission_name có giá trị trả về là kiểu boolean
|
|
516
|
+
* @example:
|
|
517
|
+
if(this.VhQuerySales.checkLocalMyPermissionName('login_enable_login')){
|
|
518
|
+
this.login();
|
|
519
|
+
}
|
|
520
|
+
* @param permission_name
|
|
506
521
|
* @param message
|
|
507
522
|
* @return Boolean => true or false
|
|
508
523
|
*/
|
|
509
|
-
|
|
524
|
+
checkLocalMyPermissionName(permission_name: any): boolean;
|
|
525
|
+
/**
|
|
526
|
+
* Hàm này chỉ trả về kết quả khi mà permission_name mà có giá trị không phải kiểu boolean, nếu là kiểu boolean hàm sẽ không trả kết quả về
|
|
527
|
+
* @example:
|
|
528
|
+
* let mypermissionname = this.VhQuerySales.getLocalMyPermissionName('default_display_page');
|
|
529
|
+
* @param permission_name
|
|
530
|
+
* @return number/string/object
|
|
531
|
+
*/
|
|
532
|
+
getLocalMyPermissionName(permission_name: any): any;
|
|
510
533
|
/**
|
|
511
534
|
* @example:
|
|
512
535
|
this.VhQuerySales.updatePermission('2rVieBQTubQ2hjUnpwU4w7qSlD83',{login_enable_login: false})
|
|
@@ -519,15 +542,17 @@ export declare class VhAuth {
|
|
|
519
542
|
*/
|
|
520
543
|
updatePermission(id_employee: any, value: any): Promise<unknown>;
|
|
521
544
|
/**
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
console.log('
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
545
|
+
* Hàm này lấy về phân quyền của nhân viên
|
|
546
|
+
* Lưu ý không dùng hàm này cho Boss, vì Boss không bị giới hạn phân quyền
|
|
547
|
+
* @example:
|
|
548
|
+
this.vhAuth.getPermission('5fccf8b675b75a1fc84342e9')
|
|
549
|
+
.then((permission)=>{
|
|
550
|
+
console.log('permission', permission)
|
|
551
|
+
},error => {
|
|
552
|
+
console.log('error', error);
|
|
553
|
+
});
|
|
554
|
+
* @return Promise => permission = {} or null
|
|
555
|
+
*/
|
|
531
556
|
getPermission(id_employee: any): any;
|
|
532
557
|
publishObservableEventEmployees(): void;
|
|
533
558
|
private observableLocalEmployees;
|