@ieeesa-npm/tenants 0.1.8 → 0.2.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.
@@ -3,13 +3,14 @@ import { BreakpointObserverService, GlobalErrorHandlerService } from '@ieeesa-np
3
3
  import { AccordionInfo, Menu, PaginatorConfig, TableActions, AlignType, RadioOption, IconButton, SlideToggleOption, TableColumnSchema, AccordionDetails } from '@ieeesa-npm/presentation';
4
4
  import { Subject } from 'rxjs';
5
5
  import { TenantApplicationsService } from '../../services/tenant-applications.service';
6
- import { UserPermission } from '../../models/tenants-permission.model';
6
+ import { TenantsPermissions, UserPermission } from '../../models/tenants-permission.model';
7
7
  import { SharedService } from '@ieeesa-npm/shared';
8
8
  import { TenantsRoutesConfig } from '../../models/route-config.model';
9
9
  import { TenantBasicInfo } from '../../models/tenant.model';
10
10
  import { PageEvent } from '@angular/material/paginator';
11
11
  import { MatDialog } from '@angular/material/dialog';
12
12
  import { GetRolesAndPermissionsPayload, RolesAndPermissions } from '../../models/roles-and-permissions.model';
13
+ import { PermissionType } from '../../models/permission-type.model';
13
14
  import * as i0 from "@angular/core";
14
15
  export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
15
16
  dialog: MatDialog;
@@ -52,6 +53,8 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
52
53
  isBasicDetailsExpanded: boolean;
53
54
  editTenantScreenTexts: any;
54
55
  alignmentType: typeof AlignType;
56
+ userTenantsPermissions: TenantsPermissions[];
57
+ permissionType: typeof PermissionType;
55
58
  constructor(dialog: MatDialog, breakpointObserverService: BreakpointObserverService, tenantAppService: TenantApplicationsService, globalErrorHandlerService: GlobalErrorHandlerService, sharedService: SharedService);
56
59
  /**
57
60
  * Initializes view tenant details component.
@@ -136,6 +139,13 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
136
139
  * @memberof ViewTenantDetailsComponent
137
140
  */
138
141
  getApplicationTypes(): void;
142
+ /**
143
+ * Validates permission based access for provided feature.
144
+ * @param {PermissionType} permissionType
145
+ * @return {boolean}
146
+ * @memberof ViewTenantDetailsComponent
147
+ */
148
+ validateAccess(permissionType: PermissionType): boolean;
139
149
  /**
140
150
  * Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
141
151
  * @memberof ViewTenantDetailsComponent
@@ -19,12 +19,7 @@ export declare class TenantApplicationsService {
19
19
  private tenantPermissionsMapService;
20
20
  tenantsText: {
21
21
  "2050": string;
22
- "2051": string; /**
23
- * Gets list of roles from server using HttpService.
24
- * @param {string} appId
25
- * @return {*} {Observable<GetRolesResponse>}
26
- * @memberof TenantApplicationsService
27
- */
22
+ "2051": string;
28
23
  "2054": string;
29
24
  "3007": string;
30
25
  "3009": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/tenants",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"