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.
@@ -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: any, value: any): Promise<unknown>;
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
- * 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
11542
- * @example:
11543
- * this.observableAppSettingName = this.vhQuerySales.getObservableLocalAppSettingNameBranchs().subscribe(() => {
11544
- let store_info = this.vhQuerySales.getLocalAppSettingNameBranch('store_info');
11545
- console.log(store_info);
11546
- })
11547
- ngOnDestroy(){
11548
- this.observableAppSettingName.unsubscribe();
11549
- }
11550
- * @returns Observerble (Array) => Array(object) => array = [{},{},...]
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "4.1.6",
3
+ "version": "4.1.7",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"