@ieeesa-npm/tenants 0.2.7 → 0.2.9
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 +49 -1
- package/esm2022/lib/components/create-modify-role/create-modify-role.component.mjs +108 -69
- package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +3 -3
- package/esm2022/lib/components/tenant-basic-details/tenant-basic-details.component.mjs +3 -3
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +82 -4
- package/esm2022/lib/components/view-tenant-group-types/view-tenant-group-types.component.mjs +173 -0
- package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +3 -3
- package/esm2022/lib/models/roles-and-permissions.model.mjs +1 -1
- package/esm2022/lib/models/view-tenant-group-types.model.mjs +9 -0
- package/esm2022/lib/services/tenant-applications.service.mjs +83 -5
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ieeesa-npm-tenants.mjs +498 -83
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/components/create-modify-role/create-modify-role.component.d.ts +34 -25
- package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +37 -0
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +19 -0
- package/lib/components/view-tenant-group-types/view-tenant-group-types.component.d.ts +57 -0
- package/lib/models/roles-and-permissions.model.d.ts +6 -5
- package/lib/models/view-tenant-group-types.model.d.ts +27 -0
- package/lib/services/tenant-applications.service.d.ts +58 -9
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
-
import { AlignType, DynamicFormComponent, FormGrid, FormModel, SelectOption } from '@ieeesa-npm/presentation';
|
|
4
|
+
import { AlignType, DynamicFormComponent, FieldConfig, FormGrid, FormModel, SelectOption } from '@ieeesa-npm/presentation';
|
|
5
5
|
import { TenantApplicationsService } from '../../services/tenant-applications.service';
|
|
6
6
|
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
|
-
import {
|
|
9
|
+
import { RoleDetails, Role, CreateModifyRoleRequestPayload } from '../../models/roles-and-permissions.model';
|
|
10
10
|
import { GlobalErrorHandlerService } from '@ieeesa-npm/utility';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class CreateModifyRoleComponent implements OnInit, OnDestroy {
|
|
@@ -20,58 +20,67 @@ export declare class CreateModifyRoleComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
rightButtonLabel: any;
|
|
21
21
|
colWidth: FormGrid;
|
|
22
22
|
createRoleFormGroup: FormModel;
|
|
23
|
-
|
|
23
|
+
createModifyRoleFormGroupRef: FormGroup;
|
|
24
24
|
actionButtonAlign: AlignType;
|
|
25
25
|
dynamicFormComponent: DynamicFormComponent;
|
|
26
26
|
submitFormResponse: EventEmitter<any>;
|
|
27
27
|
formCancel: EventEmitter<any>;
|
|
28
28
|
tenantFunctionType: TenantFunctionType;
|
|
29
29
|
selectedTenantInfo: TenantBasicInfo | undefined;
|
|
30
|
-
|
|
30
|
+
createModifyRolePayload: CreateModifyRoleRequestPayload;
|
|
31
31
|
roleTypeOptions: SelectOption[];
|
|
32
|
+
selectedRoleDetails: RoleDetails;
|
|
33
|
+
selectedRole: Role;
|
|
32
34
|
constructor(tenantAppService: TenantApplicationsService, sharedService: SharedService, globalErrorHandlerService: GlobalErrorHandlerService);
|
|
33
35
|
ngOnInit(): void;
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @
|
|
37
|
+
* Constructs and returns the role type form field based on credit or edit role.
|
|
38
|
+
* @return {FieldConfig} -role type form field.
|
|
39
|
+
* @memberof CreateModifyRoleComponent
|
|
37
40
|
*/
|
|
38
|
-
|
|
41
|
+
getRoleTypeField(): FieldConfig;
|
|
39
42
|
/**
|
|
40
|
-
* Initialize the create role form group array.
|
|
41
|
-
* @memberof
|
|
43
|
+
* Initialize the create/edit role form group array.
|
|
44
|
+
* @memberof CreateModifyRoleComponent
|
|
42
45
|
*/
|
|
43
46
|
initializeCreateRoleFormGroup(): void;
|
|
44
47
|
/**
|
|
45
|
-
* Gets create role form group reference.
|
|
48
|
+
* Gets create/edit role form group reference.
|
|
46
49
|
* @param {FormGroup[]} form
|
|
47
|
-
* @memberof
|
|
50
|
+
* @memberof CreateModifyRoleComponent
|
|
48
51
|
*/
|
|
49
|
-
|
|
52
|
+
getCreateModifyRoleFormGroupRef(form: FormGroup[]): void;
|
|
50
53
|
/**
|
|
51
|
-
* Updates
|
|
54
|
+
* Updates createModifyRoleFormGroupRef on add role form change event.
|
|
52
55
|
* @param {FormGroup[]} form
|
|
53
|
-
* @memberof
|
|
56
|
+
* @memberof CreateModifyRoleComponent
|
|
54
57
|
*/
|
|
55
|
-
|
|
58
|
+
onCreateModifyRoleFormChange(form: FormGroup[]): void;
|
|
56
59
|
/**
|
|
57
60
|
* Creates a new role on form submission and the form is valid.
|
|
58
61
|
* @param {FormGroup[]} form
|
|
59
|
-
* @memberof
|
|
62
|
+
* @memberof CreateModifyRoleComponent
|
|
60
63
|
*/
|
|
61
|
-
|
|
64
|
+
onCreateModifyRoleFormSubmit(form: FormGroup[]): void;
|
|
62
65
|
/**
|
|
63
|
-
* Constructs create role payload from the form data and returns.
|
|
66
|
+
* Constructs create/edit role payload from the form data and returns.
|
|
64
67
|
* @param {*} formData
|
|
65
|
-
* @return {
|
|
66
|
-
* @memberof
|
|
68
|
+
* @return {CreateModifyRoleRequestPayload}
|
|
69
|
+
* @memberof CreateModifyRoleComponent
|
|
67
70
|
*/
|
|
68
|
-
|
|
71
|
+
getCreateModifyRolePayload(formData: any): CreateModifyRoleRequestPayload;
|
|
69
72
|
/**
|
|
70
73
|
* Post the creates new role form data to the server on form submission to create a new role.
|
|
71
|
-
*
|
|
72
|
-
* @memberof
|
|
74
|
+
* @param {CreateRoleRequestPayload} createModifyRolePayload
|
|
75
|
+
* @memberof CreateModifyRoleComponent
|
|
73
76
|
*/
|
|
74
77
|
createRole(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Post the edited role form data to server on form submission to update the selected role information.
|
|
80
|
+
* @param {CreateModifyRoleRequestPayload} createModifyRolePayload
|
|
81
|
+
* @memberof CreateModifyRoleComponent
|
|
82
|
+
*/
|
|
83
|
+
editRole(): void;
|
|
75
84
|
/**
|
|
76
85
|
* Captures the server side errors and handles it based on the custom or Http errors.
|
|
77
86
|
* @param {HttpErrorResponse} error
|
|
@@ -81,12 +90,12 @@ export declare class CreateModifyRoleComponent implements OnInit, OnDestroy {
|
|
|
81
90
|
handleErrors(error: any): void;
|
|
82
91
|
/**
|
|
83
92
|
* Emits form cancel event.
|
|
84
|
-
* @memberof
|
|
93
|
+
* @memberof CreateModifyRoleComponent
|
|
85
94
|
*/
|
|
86
95
|
onFormCancel(): void;
|
|
87
96
|
/**
|
|
88
97
|
* Implementation of ngOnDestroy lifecycle hook method to unsubscribe the open observable subscriptions.
|
|
89
|
-
* @memberof
|
|
98
|
+
* @memberof CreateModifyRoleComponent
|
|
90
99
|
*/
|
|
91
100
|
ngOnDestroy(): void;
|
|
92
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateModifyRoleComponent, never>;
|
|
@@ -157,6 +157,7 @@ export declare class TenantBasicDetailsComponent implements OnDestroy {
|
|
|
157
157
|
submission1: string;
|
|
158
158
|
submission2: string;
|
|
159
159
|
submission3: string;
|
|
160
|
+
modify: string;
|
|
160
161
|
};
|
|
161
162
|
};
|
|
162
163
|
supportText: {
|
|
@@ -287,6 +288,42 @@ export declare class TenantBasicDetailsComponent implements OnDestroy {
|
|
|
287
288
|
};
|
|
288
289
|
};
|
|
289
290
|
};
|
|
291
|
+
viewGroupTypes: {
|
|
292
|
+
actionButtonLabels: {
|
|
293
|
+
addGroupType: string;
|
|
294
|
+
};
|
|
295
|
+
actionMenuItems: {
|
|
296
|
+
id: number;
|
|
297
|
+
label: string;
|
|
298
|
+
ariaLabel: string;
|
|
299
|
+
iconURL: string;
|
|
300
|
+
toolTip: string;
|
|
301
|
+
isToolTipNeeded: boolean;
|
|
302
|
+
isDisabled: boolean;
|
|
303
|
+
}[];
|
|
304
|
+
tableColumns: {
|
|
305
|
+
heading: {
|
|
306
|
+
groupType: string;
|
|
307
|
+
rosterType: string;
|
|
308
|
+
description: string;
|
|
309
|
+
applicableRoles: string;
|
|
310
|
+
settings: string;
|
|
311
|
+
action: string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
settings: {
|
|
315
|
+
allowSubGroup: string;
|
|
316
|
+
allowRoster: string;
|
|
317
|
+
allowAlternateVoting: string;
|
|
318
|
+
hasClassification: string;
|
|
319
|
+
allowEdit: string;
|
|
320
|
+
allowDelete: string;
|
|
321
|
+
};
|
|
322
|
+
errors: {
|
|
323
|
+
"2050": string;
|
|
324
|
+
"1010": string;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
290
327
|
routeConfigPath: {
|
|
291
328
|
viewTenants: string;
|
|
292
329
|
viewTenantDetails: string;
|
|
@@ -12,6 +12,7 @@ import { PageEvent } from '@angular/material/paginator';
|
|
|
12
12
|
import { MatDialog } from '@angular/material/dialog';
|
|
13
13
|
import { GetRolesAndPermissionsPayload, RolesAndPermissions, PaginationInfo, RoleDetails } from '../../models/roles-and-permissions.model';
|
|
14
14
|
import { PermissionType } from '../../models/permission-type.model';
|
|
15
|
+
import { RoleTypeOption } from '../../models/role-type.model';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
17
18
|
dialog: MatDialog;
|
|
@@ -64,6 +65,8 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
|
64
65
|
createRoleScreenTexts: any;
|
|
65
66
|
roleMenuElement: HTMLElement;
|
|
66
67
|
selectedRoleInfo: RoleDetails;
|
|
68
|
+
isGroupTypesExpanded: boolean;
|
|
69
|
+
roleTypeOptions: RoleTypeOption[];
|
|
67
70
|
constructor(dialog: MatDialog, breakpointObserverService: BreakpointObserverService, tenantAppService: TenantApplicationsService, globalErrorHandlerService: GlobalErrorHandlerService, sharedService: SharedService);
|
|
68
71
|
/**
|
|
69
72
|
* Initializes view tenant details component.
|
|
@@ -111,7 +114,23 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
|
111
114
|
* @memberof ViewTenantDetailsComponent
|
|
112
115
|
*/
|
|
113
116
|
trackByAccordionFn(index: number, item: AccordionInfo): number;
|
|
117
|
+
/**
|
|
118
|
+
* Gets the role types and updates the form control.
|
|
119
|
+
* @memberof ViewTenantDetailsComponent
|
|
120
|
+
*/
|
|
121
|
+
getRoleTypes(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Sets the dialog options for create role modal and calls openModal method.
|
|
124
|
+
* @return -returns nothing
|
|
125
|
+
* @memberof ViewTenantDetailsComponent
|
|
126
|
+
*/
|
|
114
127
|
openCreateRoleForm(): void;
|
|
128
|
+
/**
|
|
129
|
+
* Sets the dialog options for edit role modal and calls openModal method.
|
|
130
|
+
* @return -returns nothing
|
|
131
|
+
* @memberof ViewTenantDetailsComponent
|
|
132
|
+
*/
|
|
133
|
+
openEditRoleForm(): void;
|
|
115
134
|
/**
|
|
116
135
|
* Sets the dialog options for edit tenant modal and calls openModal method.
|
|
117
136
|
* @return -returns nothing
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Menu, TableColumnSchema } from '@ieeesa-npm/presentation';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { TenantApplicationsService } from '../../services/tenant-applications.service';
|
|
5
|
+
import { SharedService } from '@ieeesa-npm/shared';
|
|
6
|
+
import { GroupTypeDetails, ViewGroupTypeResponse } from '../../models/view-tenant-group-types.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Component for viewing and managing tenant group types. Fetches the configured group types associated to the selected tenant and displays in tabular view.
|
|
10
|
+
* @export
|
|
11
|
+
* @class ViewTenantGroupTypesComponent
|
|
12
|
+
* @implements {OnInit}
|
|
13
|
+
*/
|
|
14
|
+
export declare class ViewTenantGroupTypesComponent implements OnInit, OnDestroy {
|
|
15
|
+
private tenantAppService;
|
|
16
|
+
private sharedService;
|
|
17
|
+
destroy$: Subject<boolean>;
|
|
18
|
+
constants: any;
|
|
19
|
+
columnHeading: any;
|
|
20
|
+
settings: any;
|
|
21
|
+
tableRowActions: Menu[];
|
|
22
|
+
columnSchema: TableColumnSchema[];
|
|
23
|
+
groupTypes: GroupTypeDetails[];
|
|
24
|
+
appId: string;
|
|
25
|
+
constructor(tenantAppService: TenantApplicationsService, sharedService: SharedService);
|
|
26
|
+
/**
|
|
27
|
+
* Fetches group types data from the server and initializes column schema.
|
|
28
|
+
* @memberof ViewTenantGroupTypesComponent
|
|
29
|
+
*/
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Formats raw group types data into a required format for display.
|
|
33
|
+
* @param {ViewGroupTypeResponse} groupTypeRes
|
|
34
|
+
* @return {GroupTypeDetails[]}
|
|
35
|
+
* @memberof ViewTenantGroupTypesComponent
|
|
36
|
+
*/
|
|
37
|
+
formatGroupTypesTableData(groupTypeRes: ViewGroupTypeResponse): GroupTypeDetails[];
|
|
38
|
+
/**
|
|
39
|
+
* Transforms business rule to required format in string.
|
|
40
|
+
* @param {*} rule
|
|
41
|
+
* @return {string}
|
|
42
|
+
* @memberof ViewTenantGroupTypesComponent
|
|
43
|
+
*/
|
|
44
|
+
transformBusinessRule(rule: any): string;
|
|
45
|
+
/**
|
|
46
|
+
* Initializes table column schema to display group types in tabular view.
|
|
47
|
+
* @memberof ViewTenantGroupTypesComponent
|
|
48
|
+
*/
|
|
49
|
+
initializeColumnSchema(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
52
|
+
* @memberof ViewTenantGroupTypesComponent
|
|
53
|
+
*/
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewTenantGroupTypesComponent, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewTenantGroupTypesComponent, "ieeesa-view-tenant-group-types", never, {}, {}, never, never, true, never>;
|
|
57
|
+
}
|
|
@@ -43,16 +43,17 @@ export interface GetRolesAndPermissionsResponse {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
export interface RoleInfo {
|
|
46
|
-
roleType
|
|
46
|
+
roleType?: string;
|
|
47
47
|
roleName: string;
|
|
48
|
+
roleId?: string;
|
|
48
49
|
}
|
|
49
|
-
export interface
|
|
50
|
+
export interface CreateModifyRoleInfo extends RoleInfo {
|
|
50
51
|
appId: string;
|
|
51
52
|
}
|
|
52
|
-
export interface
|
|
53
|
-
payload:
|
|
53
|
+
export interface CreateModifyRoleRequestPayload {
|
|
54
|
+
payload: CreateModifyRoleInfo;
|
|
54
55
|
}
|
|
55
|
-
export interface
|
|
56
|
+
export interface CreateModifyRoleResponse {
|
|
56
57
|
status: boolean;
|
|
57
58
|
message: string;
|
|
58
59
|
body?: string | null | {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GroupTypeConfiguration } from '@ieeesa-npm/groups';
|
|
2
|
+
import { Menu } from '@ieeesa-npm/presentation';
|
|
3
|
+
import { Role } from './roles-and-permissions.model';
|
|
4
|
+
export interface ViewGroupTypesConfiguration extends GroupTypeConfiguration {
|
|
5
|
+
roles: Role[] | null;
|
|
6
|
+
hasGroup: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ViewGroupTypeResponse {
|
|
9
|
+
status: boolean;
|
|
10
|
+
message: string;
|
|
11
|
+
body: ViewGroupTypesConfiguration[];
|
|
12
|
+
}
|
|
13
|
+
export interface GroupTypeDetails {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
rosterType: string;
|
|
17
|
+
businessRule: string;
|
|
18
|
+
roles: string;
|
|
19
|
+
hasGroup: boolean;
|
|
20
|
+
menuAction?: Menu[];
|
|
21
|
+
}
|
|
22
|
+
export declare enum GroupTypeSettings {
|
|
23
|
+
ALLOW_SUB_GROUP = "allowSubGroup",
|
|
24
|
+
ALLOW_ROSTER = "allowRoster",
|
|
25
|
+
ALLOW_ALTERNATE_VOTING = "allowAlternateVoting",
|
|
26
|
+
HAS_CLASSIFICATION = "hasClassification"
|
|
27
|
+
}
|
|
@@ -10,9 +10,10 @@ import { FeatureId, Features, GetFeaturesResponse } from '../models/features.mod
|
|
|
10
10
|
import { AppTypeConfig, GetAppTypesResponse } from '../models/app-type-config.model';
|
|
11
11
|
import { TenantPermissionsService } from './tenant-permissions.service';
|
|
12
12
|
import { TenantFunctionType } from '../models/tenant-function-type.model';
|
|
13
|
-
import {
|
|
13
|
+
import { GetRolesAndPermissionsPayload, GetRolesAndPermissionsResponse, GetRolesResponse, RoleInfo, DeleteRoleRequestPayload, DeleteRoleResponse, Role, RoleDetails, CreateModifyRoleRequestPayload, CreateModifyRoleResponse } from '../models/roles-and-permissions.model';
|
|
14
14
|
import { UpdateTenantStatusRequestPayload, UpdateTenantStatusResponse } from '../models/update-tenant-status.model';
|
|
15
15
|
import { GetRoleTypesPayload, RoleTypeConfiguration, RoleTypeOption, RoleTypeResponse } from '../models/role-type.model';
|
|
16
|
+
import { ViewGroupTypeResponse } from '../models/view-tenant-group-types.model';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
18
|
export declare class TenantApplicationsService {
|
|
18
19
|
private httpService;
|
|
@@ -46,11 +47,6 @@ export declare class TenantApplicationsService {
|
|
|
46
47
|
"2036": string;
|
|
47
48
|
"2037": string;
|
|
48
49
|
"2038": string;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the user tenants information
|
|
51
|
-
* @param {TenantBasicInfo} tenantInfo
|
|
52
|
-
* @memberof TenantApplicationsService
|
|
53
|
-
*/
|
|
54
50
|
"2039": string;
|
|
55
51
|
"2040": string;
|
|
56
52
|
"2041": string;
|
|
@@ -74,6 +70,9 @@ export declare class TenantApplicationsService {
|
|
|
74
70
|
featureList: Features[];
|
|
75
71
|
roleTypeOptions: RoleTypeOption[];
|
|
76
72
|
newlyCreatedRole: RoleInfo;
|
|
73
|
+
roleTypeOption: RoleTypeOption[];
|
|
74
|
+
selectedRoleInfo: RoleDetails;
|
|
75
|
+
roles: Role[];
|
|
77
76
|
constructor(httpService: HttpService, tenantPermissionsService: TenantPermissionsService, tenantPermissionsMapService: TenantPermissionsMapService);
|
|
78
77
|
setAppConfig(apiBaseUrl: string, userPermission: UserPermission[]): void;
|
|
79
78
|
/**
|
|
@@ -107,6 +106,42 @@ export declare class TenantApplicationsService {
|
|
|
107
106
|
* @memberof TenantApplicationsService
|
|
108
107
|
*/
|
|
109
108
|
getSelectedTenantInformation(): TenantBasicInfo | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Sets the roles informations
|
|
111
|
+
* @param {Role} roles
|
|
112
|
+
* @memberof TenantApplicationsService
|
|
113
|
+
*/
|
|
114
|
+
setRolesInfo(roles: Role[]): void;
|
|
115
|
+
/**
|
|
116
|
+
* Returns the roles information
|
|
117
|
+
* @return {Role}
|
|
118
|
+
* @memberof TenantApplicationsService
|
|
119
|
+
*/
|
|
120
|
+
getRolesInfo(): Role[] | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Sets the selected role information.
|
|
123
|
+
* @param {RoleDetails} roleInfo
|
|
124
|
+
* @memberof TenantApplicationsService
|
|
125
|
+
*/
|
|
126
|
+
setSelectedRoleInformation(roleInfo: RoleDetails): void;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the selected role information.
|
|
129
|
+
* @return {RoleDetails}
|
|
130
|
+
* @memberof TenantApplicationsService
|
|
131
|
+
*/
|
|
132
|
+
getSelectedRoleInformation(): RoleDetails | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Sets the tenant role type options.
|
|
135
|
+
* @param {RoleTypeOption} roleTypeOptions
|
|
136
|
+
* @memberof TenantApplicationsService
|
|
137
|
+
*/
|
|
138
|
+
setRoleTypeOption(roleTypeOptions: RoleTypeOption[]): void;
|
|
139
|
+
/**
|
|
140
|
+
* Returns the tenant role type options.
|
|
141
|
+
* @return {RoleTypeOption}
|
|
142
|
+
* @memberof TenantApplicationsService
|
|
143
|
+
*/
|
|
144
|
+
getRoleTypeOption(): RoleTypeOption[];
|
|
110
145
|
/**
|
|
111
146
|
* Sets the list of application type information
|
|
112
147
|
* @param {RadioOption} appTypeInfo
|
|
@@ -168,11 +203,18 @@ export declare class TenantApplicationsService {
|
|
|
168
203
|
getApplicationTypes(): Observable<GetAppTypesResponse>;
|
|
169
204
|
/**
|
|
170
205
|
* Posts create role form data to server using HttpService to create a new role.
|
|
171
|
-
* @param {
|
|
172
|
-
* @return {Observable<
|
|
206
|
+
* @param {CreateModifyRoleRequestPayload} createModifyRolePayload
|
|
207
|
+
* @return {Observable<CreateModifyRoleResponse>}
|
|
208
|
+
* @memberof TenantApplicationsService
|
|
209
|
+
*/
|
|
210
|
+
createRole(createModifyRolePayload: CreateModifyRoleRequestPayload): Observable<CreateModifyRoleResponse>;
|
|
211
|
+
/**
|
|
212
|
+
* Posts the edited role form data to server using HttpService for updating the role information.
|
|
213
|
+
* @param {CreateModifyRoleRequestPayload} createModifyRolePayload
|
|
214
|
+
* @return {Observable<CreateModifyRoleResponse>}
|
|
173
215
|
* @memberof TenantApplicationsService
|
|
174
216
|
*/
|
|
175
|
-
|
|
217
|
+
editRole(createModifyRolePayload: CreateModifyRoleRequestPayload): Observable<CreateModifyRoleResponse>;
|
|
176
218
|
/**
|
|
177
219
|
* Gets list of role types from server using HttpService.
|
|
178
220
|
* @param {GetRoleTypesPayload} payload
|
|
@@ -276,6 +318,13 @@ export declare class TenantApplicationsService {
|
|
|
276
318
|
* @memberof TenantApplicationsService
|
|
277
319
|
*/
|
|
278
320
|
deleteRole(deleteRolePayload: DeleteRoleRequestPayload): Observable<DeleteRoleResponse>;
|
|
321
|
+
/**
|
|
322
|
+
* Gets group types from server using HttpService.
|
|
323
|
+
* @param {string} appId
|
|
324
|
+
* @return {Observable<ViewGroupTypeResponse>}
|
|
325
|
+
* @memberof TenantApplicationsService
|
|
326
|
+
*/
|
|
327
|
+
getGroupTypes(appId: string): Observable<ViewGroupTypeResponse>;
|
|
279
328
|
static ɵfac: i0.ɵɵFactoryDeclaration<TenantApplicationsService, never>;
|
|
280
329
|
static ɵprov: i0.ɵɵInjectableDeclaration<TenantApplicationsService>;
|
|
281
330
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './lib/components/create-tenant-application/create-tenant-applicat
|
|
|
4
4
|
export * from './lib/tenant-applications.component';
|
|
5
5
|
export * from './lib/components/tenant-basic-details/tenant-basic-details.component';
|
|
6
6
|
export * from './lib/components/create-modify-role/create-modify-role.component';
|
|
7
|
+
export * from './lib/components/view-tenant-group-types/view-tenant-group-types.component';
|
|
7
8
|
export * from './lib/models/app-type-config.model';
|
|
8
9
|
export * from './lib/models/app-type.model';
|
|
9
10
|
export * from './lib/models/tenant.model';
|
|
@@ -18,6 +19,7 @@ export * from './lib/models/update-tenant-status.model';
|
|
|
18
19
|
export * from './lib/models/tenant-function-type.model';
|
|
19
20
|
export * from './lib/models/role-type.model';
|
|
20
21
|
export * from './lib/models/role-menu-action.model';
|
|
22
|
+
export * from './lib/models/view-tenant-group-types.model';
|
|
21
23
|
export * from './lib/services/tenant-applications.service';
|
|
22
24
|
export * from './lib/services/tenant-permissions-map.service';
|
|
23
25
|
export * from './lib/services/tenant-permissions.service';
|