@ieeesa-npm/tenants 0.4.0 → 0.4.2
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 +0 -64
- package/esm2022/lib/assets/tenant-validations.mjs +1 -5
- package/esm2022/lib/components/create-modify-role/create-modify-role.component.mjs +3 -3
- package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +8 -6
- package/esm2022/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.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 +3 -27
- package/esm2022/lib/components/view-tenant-group-types/view-tenant-group-types.component.mjs +21 -41
- package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +3 -3
- package/esm2022/lib/models/tenant-function-type.model.mjs +1 -3
- package/esm2022/lib/models/view-tenant-group-types.model.mjs +1 -3
- package/esm2022/lib/services/tenant-applications.service.mjs +2 -78
- package/esm2022/public-api.mjs +1 -4
- package/fesm2022/ieeesa-npm-tenants.mjs +42 -716
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/assets/tenant-validations.d.ts +0 -4
- package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +0 -64
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +0 -7
- package/lib/components/view-tenant-group-types/view-tenant-group-types.component.d.ts +0 -5
- package/lib/models/tenant-function-type.model.d.ts +1 -3
- package/lib/models/view-tenant-group-types.model.d.ts +1 -3
- package/lib/services/tenant-applications.service.d.ts +7 -48
- package/package.json +1 -1
- package/public-api.d.ts +0 -3
- package/esm2022/lib/components/create-modify-group-type/create-modify-group-type.component.mjs +0 -477
- package/esm2022/lib/models/create-group-type-config.model.mjs +0 -22
- package/esm2022/lib/models/create-group-type.model.mjs +0 -2
- package/lib/components/create-modify-group-type/create-modify-group-type.component.d.ts +0 -129
- package/lib/models/create-group-type-config.model.d.ts +0 -16
- package/lib/models/create-group-type.model.d.ts +0 -49
|
@@ -367,70 +367,6 @@ export declare class TenantBasicDetailsComponent implements OnDestroy {
|
|
|
367
367
|
viewTenants: string;
|
|
368
368
|
viewTenantDetails: string;
|
|
369
369
|
};
|
|
370
|
-
createGroupType: {
|
|
371
|
-
heading: string;
|
|
372
|
-
label: {
|
|
373
|
-
leftButtonLabel: string;
|
|
374
|
-
rightButtonLabel: string;
|
|
375
|
-
groupType: string;
|
|
376
|
-
description: string;
|
|
377
|
-
settings: string;
|
|
378
|
-
rosterType: string;
|
|
379
|
-
appMemberLevel: string;
|
|
380
|
-
appOfficerRoles: string;
|
|
381
|
-
isRootGroup: string;
|
|
382
|
-
allowedSubGroupTypes: string;
|
|
383
|
-
ariaLabel: {
|
|
384
|
-
groupType: string;
|
|
385
|
-
description: string;
|
|
386
|
-
settings: string;
|
|
387
|
-
rosterType: string;
|
|
388
|
-
appMemberLevel: string;
|
|
389
|
-
appOfficerRoles: string;
|
|
390
|
-
isRootGroup: string;
|
|
391
|
-
allowedSubGroupTypes: string;
|
|
392
|
-
};
|
|
393
|
-
ariaDescribedById: {
|
|
394
|
-
groupType: string;
|
|
395
|
-
description: string;
|
|
396
|
-
settings: string;
|
|
397
|
-
rosterType: string;
|
|
398
|
-
appMemberLevel: string;
|
|
399
|
-
appOfficerRoles: string;
|
|
400
|
-
isRootGroup: string;
|
|
401
|
-
allowedSubGroupTypes: string;
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
message: {
|
|
405
|
-
success: {
|
|
406
|
-
submissionPart1: string;
|
|
407
|
-
submissionPart2: string;
|
|
408
|
-
};
|
|
409
|
-
error: {
|
|
410
|
-
required: string;
|
|
411
|
-
limit: {
|
|
412
|
-
groupTypeMaxChars: string;
|
|
413
|
-
descriptionMaxChars: string;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
supportText: {
|
|
418
|
-
groupType: string;
|
|
419
|
-
description: string;
|
|
420
|
-
};
|
|
421
|
-
isRootGroupOptions: {
|
|
422
|
-
yes: string;
|
|
423
|
-
no: string;
|
|
424
|
-
};
|
|
425
|
-
errors: {
|
|
426
|
-
"2066": string;
|
|
427
|
-
"2067": string;
|
|
428
|
-
"3007": string;
|
|
429
|
-
"3017": string;
|
|
430
|
-
"3018": string;
|
|
431
|
-
"3019": string;
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
370
|
};
|
|
435
371
|
basicDetailTexts: {
|
|
436
372
|
title: string;
|
|
@@ -58,7 +58,6 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
|
58
58
|
accordionDetails: typeof AccordionDetails;
|
|
59
59
|
appTypeOptions: RadioOption[];
|
|
60
60
|
isBasicDetailsExpanded: boolean;
|
|
61
|
-
createGroupTypeScreenTexts: any;
|
|
62
61
|
editTenantScreenTexts: any;
|
|
63
62
|
deleteRoleScreenTexts: any;
|
|
64
63
|
mapRolesAndPermissionsScreenTexts: any;
|
|
@@ -129,12 +128,6 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
|
129
128
|
* @memberof ViewTenantDetailsComponent
|
|
130
129
|
*/
|
|
131
130
|
openCreateRoleForm(): void;
|
|
132
|
-
/**
|
|
133
|
-
* Sets the dialog options for create group type modal and calls openModal method.
|
|
134
|
-
* @return -returns nothing
|
|
135
|
-
* @memberof ViewTenantDetailsComponent
|
|
136
|
-
*/
|
|
137
|
-
openCreateGroupTypeForm(): void;
|
|
138
131
|
/**
|
|
139
132
|
* Sets the dialog options for edit role modal and calls openModal method.
|
|
140
133
|
* @return -returns nothing
|
|
@@ -29,11 +29,6 @@ export declare class ViewTenantGroupTypesComponent implements OnInit, OnDestroy
|
|
|
29
29
|
* @memberof ViewTenantGroupTypesComponent
|
|
30
30
|
*/
|
|
31
31
|
ngOnInit(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Get group types from tenant application service.
|
|
34
|
-
* @memberof ViewTenantGroupTypesComponent
|
|
35
|
-
*/
|
|
36
|
-
getGroupTypes(): void;
|
|
37
32
|
/**
|
|
38
33
|
* Formats raw group types data into a required format for display.
|
|
39
34
|
* @param {ViewGroupTypeResponse} groupTypeRes
|
|
@@ -3,7 +3,5 @@ export declare enum TenantFunctionType {
|
|
|
3
3
|
EDIT = "EDIT",
|
|
4
4
|
CREATE_ROLE = "CREATE_ROLE",
|
|
5
5
|
EDIT_ROLE = "EDIT_ROLE",
|
|
6
|
-
MAP_PERMISSION_AND_ROLE = "MAP_PERMISSION_AND_ROLE"
|
|
7
|
-
CREATE_GROUP_TYPE = "CREATE_GROUP_TYPE",
|
|
8
|
-
EDIT_GROUP_TYPE = "EDIT_GROUP_TYPE"
|
|
6
|
+
MAP_PERMISSION_AND_ROLE = "MAP_PERMISSION_AND_ROLE"
|
|
9
7
|
}
|
|
@@ -23,7 +23,5 @@ export declare enum GroupTypeSettings {
|
|
|
23
23
|
ALLOW_SUB_GROUP = "allowSubGroup",
|
|
24
24
|
ALLOW_ROSTER = "allowRoster",
|
|
25
25
|
ALLOW_ALTERNATE_VOTING = "allowAlternateVoting",
|
|
26
|
-
HAS_CLASSIFICATION = "hasClassification"
|
|
27
|
-
ALLOW_EDIT = "allowEdit",
|
|
28
|
-
ALLOW_DELETE = "allowDelete"
|
|
26
|
+
HAS_CLASSIFICATION = "hasClassification"
|
|
29
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpService } from '@ieeesa-npm/utility';
|
|
2
|
-
import { Observable
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
3
|
import { GetTenantsPayload } from '../models/table-column-schema-view-tenant-list.model';
|
|
4
4
|
import { TenantsPermissions, UserPermission } from '../models/tenants-permission.model';
|
|
5
5
|
import { PermissionType } from '../models/permission-type.model';
|
|
@@ -14,7 +14,6 @@ import { GetRolesAndPermissionsPayload, GetRolesAndPermissionsResponse, GetRoles
|
|
|
14
14
|
import { UpdateTenantStatusRequestPayload, UpdateTenantStatusResponse } from '../models/update-tenant-status.model';
|
|
15
15
|
import { GetRoleTypesPayload, RoleTypeConfiguration, RoleTypeOption, RoleTypeResponse } from '../models/role-type.model';
|
|
16
16
|
import { ViewGroupTypeResponse } from '../models/view-tenant-group-types.model';
|
|
17
|
-
import { CreateGroupTypeRequestPayload, CreateGroupTypeResponse, CreatedOrModifiedGroupTypeInfo, GetRosterTypeOrSettingsResponse } from '../models/create-group-type.model';
|
|
18
17
|
import * as i0 from "@angular/core";
|
|
19
18
|
export declare class TenantApplicationsService {
|
|
20
19
|
private httpService;
|
|
@@ -35,6 +34,12 @@ export declare class TenantApplicationsService {
|
|
|
35
34
|
selectedTenantInfo: TenantBasicInfo | undefined;
|
|
36
35
|
userTenantsPermissions: TenantsPermissions[];
|
|
37
36
|
createTenantsText: {
|
|
37
|
+
/**
|
|
38
|
+
* Gets tenant details from server using HttpService
|
|
39
|
+
* @param {string} appId
|
|
40
|
+
* @return {Observable<TenantDetailsResponse>}
|
|
41
|
+
* @memberof TenantApplicationsService
|
|
42
|
+
*/
|
|
38
43
|
"2003": string;
|
|
39
44
|
"2026": string;
|
|
40
45
|
"2028": string;
|
|
@@ -74,9 +79,6 @@ export declare class TenantApplicationsService {
|
|
|
74
79
|
roleTypeOption: RoleTypeOption[];
|
|
75
80
|
selectedRoleInfo: RoleDetails;
|
|
76
81
|
roles: Role[];
|
|
77
|
-
groupTypes: ViewGroupTypeResponse;
|
|
78
|
-
newlyCreatedGroupType: CreatedOrModifiedGroupTypeInfo;
|
|
79
|
-
isGroupTypeAddedOrModified: Subject<boolean>;
|
|
80
82
|
constructor(httpService: HttpService, tenantPermissionsService: TenantPermissionsService, tenantPermissionsMapService: TenantPermissionsMapService);
|
|
81
83
|
setAppConfig(apiBaseUrl: string, userPermission: UserPermission[]): void;
|
|
82
84
|
/**
|
|
@@ -308,18 +310,6 @@ export declare class TenantApplicationsService {
|
|
|
308
310
|
* @return {RoleInfo} -create role information.
|
|
309
311
|
*/
|
|
310
312
|
getNewlyCreatedRoleInfo(): RoleInfo;
|
|
311
|
-
/**
|
|
312
|
-
* Stores the newly created group type information.
|
|
313
|
-
* @param {CreatedOrModifiedGroupTypeInfo} newlyCreatedGroupType
|
|
314
|
-
* @memberof TenantApplicationsService
|
|
315
|
-
*/
|
|
316
|
-
setNewlyCreatedGroupTypeInfo(newlyCreatedGroupType: CreatedOrModifiedGroupTypeInfo): void;
|
|
317
|
-
/**
|
|
318
|
-
* Returns the newly created group type information.
|
|
319
|
-
* @return {*} {CreatedOrModifiedGroupTypeInfo}
|
|
320
|
-
* @memberof TenantApplicationsService
|
|
321
|
-
*/
|
|
322
|
-
getNewlyCreatedGroupTypeInfo(): CreatedOrModifiedGroupTypeInfo;
|
|
323
313
|
/**
|
|
324
314
|
* Posts the edited tenant application form data to server using HttpService for updating the tenant information.
|
|
325
315
|
* @param {CreateTenantPayload} editTenantPayload
|
|
@@ -341,25 +331,6 @@ export declare class TenantApplicationsService {
|
|
|
341
331
|
* @memberof TenantApplicationsService
|
|
342
332
|
*/
|
|
343
333
|
getFeaturesList(features: CheckboxOption[]): Features[];
|
|
344
|
-
/**
|
|
345
|
-
* Gets roster type from server using HttpService.
|
|
346
|
-
* @return {*} {Observable<GetRosterTypeOrSettingsResponse>}
|
|
347
|
-
* @memberof TenantApplicationsService
|
|
348
|
-
*/
|
|
349
|
-
getRosterType(): Observable<GetRosterTypeOrSettingsResponse>;
|
|
350
|
-
/**
|
|
351
|
-
* Gets group type settings from server using HttpService.
|
|
352
|
-
* @return {*} {Observable<GetRosterTypeOrSettingsResponse>}
|
|
353
|
-
* @memberof TenantApplicationsService
|
|
354
|
-
*/
|
|
355
|
-
getGroupTypeSettings(): Observable<GetRosterTypeOrSettingsResponse>;
|
|
356
|
-
/**
|
|
357
|
-
* Posts the group type details to server using HttpService to create new group type.
|
|
358
|
-
* @param {CreateGroupTypeRequestPayload} createGroupTypePayload
|
|
359
|
-
* @return {*} {Observable<CreateGroupTypeResponse>}
|
|
360
|
-
* @memberof TenantApplicationsService
|
|
361
|
-
*/
|
|
362
|
-
createGroupType(createGroupTypePayload: CreateGroupTypeRequestPayload): Observable<CreateGroupTypeResponse>;
|
|
363
334
|
/**
|
|
364
335
|
* Returns sorted role list data.
|
|
365
336
|
* @param {Role[]} roleList
|
|
@@ -381,18 +352,6 @@ export declare class TenantApplicationsService {
|
|
|
381
352
|
* @memberof TenantApplicationsService
|
|
382
353
|
*/
|
|
383
354
|
getGroupTypes(appId: string): Observable<ViewGroupTypeResponse>;
|
|
384
|
-
/**
|
|
385
|
-
* Sets group type details.
|
|
386
|
-
* @param {ViewGroupTypeResponse} groupTypes
|
|
387
|
-
* @memberof TenantApplicationsService
|
|
388
|
-
*/
|
|
389
|
-
setGroupTypeDetails(groupTypes: ViewGroupTypeResponse): void;
|
|
390
|
-
/**
|
|
391
|
-
* Returns group type details.
|
|
392
|
-
* @return {ViewGroupTypeResponse}
|
|
393
|
-
* @memberof TenantApplicationsService
|
|
394
|
-
*/
|
|
395
|
-
getGroupTypeDetails(): ViewGroupTypeResponse;
|
|
396
355
|
static ɵfac: i0.ɵɵFactoryDeclaration<TenantApplicationsService, never>;
|
|
397
356
|
static ɵprov: i0.ɵɵInjectableDeclaration<TenantApplicationsService>;
|
|
398
357
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './lib/components/tenant-basic-details/tenant-basic-details.compon
|
|
|
6
6
|
export * from './lib/components/create-modify-role/create-modify-role.component';
|
|
7
7
|
export * from './lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component';
|
|
8
8
|
export * from './lib/components/view-tenant-group-types/view-tenant-group-types.component';
|
|
9
|
-
export * from './lib/components/create-modify-group-type/create-modify-group-type.component';
|
|
10
9
|
export * from './lib/models/app-type-config.model';
|
|
11
10
|
export * from './lib/models/app-type.model';
|
|
12
11
|
export * from './lib/models/tenant.model';
|
|
@@ -23,8 +22,6 @@ export * from './lib/models/role-type.model';
|
|
|
23
22
|
export * from './lib/models/role-menu-action.model';
|
|
24
23
|
export * from './lib/models/roles-and-permissions-table-type.model';
|
|
25
24
|
export * from './lib/models/view-tenant-group-types.model';
|
|
26
|
-
export * from './lib/models/create-group-type.model';
|
|
27
|
-
export * from './lib/models/create-group-type-config.model';
|
|
28
25
|
export * from './lib/services/tenant-applications.service';
|
|
29
26
|
export * from './lib/services/tenant-permissions-map.service';
|
|
30
27
|
export * from './lib/services/tenant-permissions.service';
|