@ieeesa-npm/tenants 0.2.5 → 0.2.6

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.
@@ -7,10 +7,12 @@ import { SharedService } from '@ieeesa-npm/shared';
7
7
  import { TenantFunctionType } from '../../models/tenant-function-type.model';
8
8
  import { TenantBasicInfo } from '../../models/tenant.model';
9
9
  import { CreateRoleRequestPayload } from '../../models/roles-and-permissions.model';
10
+ import { GlobalErrorHandlerService } from '@ieeesa-npm/utility';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class CreateModifyRoleComponent implements OnInit, OnDestroy {
12
13
  private tenantAppService;
13
14
  private sharedService;
15
+ private globalErrorHandlerService;
14
16
  destroy$: Subject<boolean>;
15
17
  constants: any;
16
18
  createRoleTexts: any;
@@ -27,7 +29,7 @@ export declare class CreateModifyRoleComponent implements OnInit, OnDestroy {
27
29
  selectedTenantInfo: TenantBasicInfo | undefined;
28
30
  createRolePayload: CreateRoleRequestPayload;
29
31
  roleTypeOptions: SelectOption[];
30
- constructor(tenantAppService: TenantApplicationsService, sharedService: SharedService);
32
+ constructor(tenantAppService: TenantApplicationsService, sharedService: SharedService, globalErrorHandlerService: GlobalErrorHandlerService);
31
33
  ngOnInit(): void;
32
34
  /**
33
35
  * Gets the role types and updates the form control.
@@ -70,6 +72,13 @@ export declare class CreateModifyRoleComponent implements OnInit, OnDestroy {
70
72
  * @memberof CreateRoleComponent
71
73
  */
72
74
  createRole(): void;
75
+ /**
76
+ * Captures the server side errors and handles it based on the custom or Http errors.
77
+ * @param {HttpErrorResponse} error
78
+ * @return -returns nothing
79
+ * @memberof CreateModifyRoleComponent
80
+ */
81
+ handleErrors(error: any): void;
73
82
  /**
74
83
  * Emits form cancel event.
75
84
  * @memberof CreateRoleComponent
@@ -164,12 +164,13 @@ export declare class TenantBasicDetailsComponent implements OnDestroy {
164
164
  roleName: string;
165
165
  };
166
166
  errors: {
167
+ "3011": string;
167
168
  "3012": string;
168
169
  "3013": string;
169
170
  "3014": string;
170
171
  "3015": string;
171
172
  "3016": string;
172
- "3011": string;
173
+ "3017": string;
173
174
  };
174
175
  };
175
176
  editTenant: {
@@ -12,7 +12,7 @@ import { PermissionType } from '../../models/permission-type.model';
12
12
  import { TenantsPermissions, UserPermission } from '../../models/tenants-permission.model';
13
13
  import { GetTenantsPayload } from '../../models/table-column-schema-view-tenant-list.model';
14
14
  import { MatDialog } from '@angular/material/dialog';
15
- import { SortConfig, TenantBasicInfo } from '../../models/tenant.model';
15
+ import { TenantBasicInfo } from '../../models/tenant.model';
16
16
  import { Features } from '../../models/features.model';
17
17
  import * as i0 from "@angular/core";
18
18
  export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
@@ -46,8 +46,6 @@ export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
46
46
  dialogRef: any;
47
47
  createTenantScreenTexts: any;
48
48
  defaultColumnSortDirection: boolean;
49
- pageEvent: PageEvent;
50
- sortConfig: SortConfig;
51
49
  constructor(dialog: MatDialog, alertService: AlertsService, breakpointObserverService: BreakpointObserverService, sharedService: SharedService, tenantApplicationsService: TenantApplicationsService, router: Router);
52
50
  /**
53
51
  * Sets the user permissions, router config path, base API URL, table column schema and gets the tenants list.
@@ -97,11 +95,6 @@ export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
97
95
  * @memberof ViewTenantsListComponent
98
96
  */
99
97
  onSortTenants(sort: Sort): void;
100
- /**
101
- * Constructs and returns the payload for fetching the tenants list.
102
- * @returns GetTenantsPayload
103
- */
104
- getTenantsPayload(): GetTenantsPayload;
105
98
  /**
106
99
  * Returning sorting order according to column definition.
107
100
  * @param defaultColumnSortDirection
@@ -1,4 +1,3 @@
1
- import { Sort } from '@angular/material/sort';
2
1
  import { FeatureId, Features } from './features.model';
3
2
  export interface TenantInfo {
4
3
  appId: string;
@@ -45,7 +44,3 @@ export interface TenantDetailsResponse {
45
44
  errorCodes: string[];
46
45
  };
47
46
  }
48
- export interface SortConfig {
49
- sort: Sort;
50
- isSortedByAscending: boolean;
51
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/tenants",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"