@ieeesa-npm/tenants 0.2.4 → 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.
- package/esm2022/lib/assets/constants.json +3 -2
- package/esm2022/lib/components/create-modify-role/create-modify-role.component.mjs +33 -8
- package/fesm2022/ieeesa-npm-tenants.mjs +31 -7
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/components/create-modify-role/create-modify-role.component.d.ts +10 -1
- package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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
|
-
"
|
|
173
|
+
"3017": string;
|
|
173
174
|
};
|
|
174
175
|
};
|
|
175
176
|
editTenant: {
|