ionic-vhframeworks 4.1.6 → 4.1.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 +26 -13
- package/package.json +1 -1
|
@@ -529,6 +529,8 @@ export declare class VhAuth {
|
|
|
529
529
|
*/
|
|
530
530
|
refreshLocalMyPermission(): Promise<unknown>;
|
|
531
531
|
/**
|
|
532
|
+
* 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
|
|
533
|
+
* Hàm checkMyPermission tương đương hàm checkLocalMyPermissionName, sau này sẽ bỏ hàm checkMyPermission
|
|
532
534
|
* @example:
|
|
533
535
|
if(this.VhQuerySales.checkMyPermission('login_enable_login')){
|
|
534
536
|
this.login();
|
|
@@ -557,6 +559,17 @@ export declare class VhAuth {
|
|
|
557
559
|
* @return number/string/object
|
|
558
560
|
*/
|
|
559
561
|
getLocalMyPermissionName(permission_name: any): any;
|
|
562
|
+
/**
|
|
563
|
+
* @example:
|
|
564
|
+
this.VhQuerySales.updatePermission('2rVieBQTubQ2hjUnpwU4w7qSlD83',{login_enable_login: false, default_display_page: 'admin_display_page'})
|
|
565
|
+
.then((result)=>{
|
|
566
|
+
console.log(result);
|
|
567
|
+
})
|
|
568
|
+
* @format value = {login_enable_login:true} or value = {login_reset_password:true}
|
|
569
|
+
* @param value
|
|
570
|
+
* @return Promise Boolean => true or false
|
|
571
|
+
*/
|
|
572
|
+
updateMyPermission(value: object): Promise<unknown>;
|
|
560
573
|
/**
|
|
561
574
|
* @example:
|
|
562
575
|
this.VhQuerySales.updatePermission('2rVieBQTubQ2hjUnpwU4w7qSlD83',{login_enable_login: false})
|
|
@@ -567,7 +580,7 @@ export declare class VhAuth {
|
|
|
567
580
|
* @param value
|
|
568
581
|
* @return Promise Boolean => true or false
|
|
569
582
|
*/
|
|
570
|
-
updatePermission(id_employee:
|
|
583
|
+
updatePermission(id_employee: string, value: object): Promise<unknown>;
|
|
571
584
|
/**
|
|
572
585
|
* Hàm này lấy về phân quyền của nhân viên
|
|
573
586
|
* 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
|
|
@@ -11486,7 +11499,7 @@ export declare class VhQuerySales {
|
|
|
11486
11499
|
getLocalAppSettingNameStations(): any[];
|
|
11487
11500
|
/**
|
|
11488
11501
|
* @example:
|
|
11489
|
-
let appsetting = this.vhQuerySales.getLocalAppSettingNameStation('info_header_footer_bill');
|
|
11502
|
+
let appsetting = this.vhQuerySales.getLocalAppSettingNameStation('info_header_footer_bill'); //printer_config_selling_page
|
|
11490
11503
|
console.log(appsetting);
|
|
11491
11504
|
* @param appsetting_name
|
|
11492
11505
|
* @return object => {title:'title',name:'name', quantity: 10}
|
|
@@ -11538,17 +11551,17 @@ export declare class VhQuerySales {
|
|
|
11538
11551
|
private publishObservableEventAppSettingNameBranchs;
|
|
11539
11552
|
private observableLocalAppSettingNameBranchs;
|
|
11540
11553
|
/**
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11554
|
+
* Các hàm AppSettingNameBranchs thêm, xóa, sửa thông tin (dạng object) riêng giữa các chi nhánh, như: thông tin cửa hang
|
|
11555
|
+
* @example:
|
|
11556
|
+
* this.observableAppSettingName = this.vhQuerySales.getObservableLocalAppSettingNameBranchs().subscribe(() => {
|
|
11557
|
+
let store_info = this.vhQuerySales.getLocalAppSettingNameBranch('store_info');
|
|
11558
|
+
console.log(store_info);
|
|
11559
|
+
})
|
|
11560
|
+
ngOnDestroy(){
|
|
11561
|
+
this.observableAppSettingName.unsubscribe();
|
|
11562
|
+
}
|
|
11563
|
+
* @returns Observerble (Array) => Array(object) => array = [{},{},...]
|
|
11564
|
+
*/
|
|
11552
11565
|
getObservableLocalAppSettingNameBranchs(): Observable<unknown>;
|
|
11553
11566
|
/**
|
|
11554
11567
|
*@example:
|