@ieeesa-npm/tenants 0.4.2 → 0.4.4
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/.eslintrc.json +31 -0
- package/ng-package.json +8 -0
- package/package.json +12 -25
- package/src/lib/assets/constants.json +454 -0
- package/src/lib/assets/tenant-validations.ts +18 -0
- package/src/lib/assets/tenants-mock.ts +1240 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.html +15 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.scss +44 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.spec.ts +574 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.ts +602 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.html +15 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.scss +83 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.spec.ts +346 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.ts +321 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.html +18 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.scss +73 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.spec.ts +775 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.ts +638 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.html +22 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.scss +79 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.spec.ts +716 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.ts +504 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.html +44 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.scss +16 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.spec.ts +115 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.ts +109 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.html +195 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.scss +163 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.spec.ts +1221 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.ts +876 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.html +10 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.scss +44 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.spec.ts +410 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.ts +219 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.html +32 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.scss +35 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.spec.ts +464 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.ts +388 -0
- package/src/lib/models/app-type-config.model.ts +14 -0
- package/src/lib/models/app-type.model.ts +5 -0
- package/src/lib/models/create-group-type-config.model.ts +18 -0
- package/src/lib/models/create-group-type.model.ts +46 -0
- package/src/lib/models/feature-permission-id.model.ts +6 -0
- package/src/lib/models/features.model.ts +15 -0
- package/src/lib/models/form-status.model.ts +5 -0
- package/src/lib/models/permission-type.model.ts +9 -0
- package/src/lib/models/role-menu-action.model.ts +5 -0
- package/src/lib/models/role-type.model.ts +34 -0
- package/src/lib/models/roles-and-permissions-table-type.model.ts +5 -0
- package/src/lib/models/roles-and-permissions.model.ts +113 -0
- package/src/lib/models/route-config.model.ts +4 -0
- package/src/lib/models/table-column-schema-view-tenant-list.model.ts +21 -0
- package/src/lib/models/tenant-function-type.model.ts +10 -0
- package/src/lib/models/tenant.model.ts +47 -0
- package/src/lib/models/tenants-permission.model.ts +9 -0
- package/src/lib/models/update-tenant-status.model.ts +12 -0
- package/src/lib/models/view-tenant-group-types.model.ts +34 -0
- package/src/lib/services/tenant-applications.service.spec.ts +1245 -0
- package/src/lib/services/tenant-applications.service.ts +798 -0
- package/src/lib/services/tenant-permissions-map.service.spec.ts +25 -0
- package/src/lib/services/tenant-permissions-map.service.ts +28 -0
- package/src/lib/services/tenant-permissions.service.spec.ts +62 -0
- package/src/lib/services/tenant-permissions.service.ts +49 -0
- package/src/lib/tenant-applications.component.html +0 -0
- package/src/lib/tenant-applications.component.scss +0 -0
- package/src/lib/tenant-applications.component.spec.ts +28 -0
- package/src/lib/tenant-applications.component.ts +12 -0
- package/src/lib/tenant-applications.module.ts +8 -0
- package/{public-api.d.ts → src/public-api.ts} +40 -30
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/ieeesa-npm-tenants.mjs +0 -5
- package/esm2022/lib/assets/constants.json +0 -390
- package/esm2022/lib/assets/tenant-validations.mjs +0 -13
- package/esm2022/lib/components/create-modify-role/create-modify-role.component.mjs +0 -280
- package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +0 -512
- package/esm2022/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.mjs +0 -391
- package/esm2022/lib/components/tenant-basic-details/tenant-basic-details.component.mjs +0 -95
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +0 -708
- package/esm2022/lib/components/view-tenant-group-types/view-tenant-group-types.component.mjs +0 -174
- package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +0 -334
- package/esm2022/lib/models/app-type-config.model.mjs +0 -2
- package/esm2022/lib/models/app-type.model.mjs +0 -7
- package/esm2022/lib/models/feature-permission-id.model.mjs +0 -8
- package/esm2022/lib/models/features.model.mjs +0 -2
- package/esm2022/lib/models/form-status.model.mjs +0 -7
- package/esm2022/lib/models/permission-type.model.mjs +0 -12
- package/esm2022/lib/models/role-menu-action.model.mjs +0 -7
- package/esm2022/lib/models/role-type.model.mjs +0 -2
- package/esm2022/lib/models/roles-and-permissions-table-type.model.mjs +0 -7
- package/esm2022/lib/models/roles-and-permissions.model.mjs +0 -2
- package/esm2022/lib/models/route-config.model.mjs +0 -2
- package/esm2022/lib/models/table-column-schema-view-tenant-list.model.mjs +0 -16
- package/esm2022/lib/models/tenant-function-type.model.mjs +0 -10
- package/esm2022/lib/models/tenant.model.mjs +0 -2
- package/esm2022/lib/models/tenants-permission.model.mjs +0 -2
- package/esm2022/lib/models/update-tenant-status.model.mjs +0 -2
- package/esm2022/lib/models/view-tenant-group-types.model.mjs +0 -9
- package/esm2022/lib/services/tenant-applications.service.mjs +0 -542
- package/esm2022/lib/services/tenant-permissions-map.service.mjs +0 -36
- package/esm2022/lib/services/tenant-permissions.service.mjs +0 -38
- package/esm2022/lib/tenant-applications.component.mjs +0 -14
- package/esm2022/lib/tenant-applications.module.mjs +0 -16
- package/esm2022/public-api.mjs +0 -34
- package/fesm2022/ieeesa-npm-tenants.mjs +0 -3565
- package/fesm2022/ieeesa-npm-tenants.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/assets/tenant-validations.d.ts +0 -11
- package/lib/components/create-modify-role/create-modify-role.component.d.ts +0 -103
- package/lib/components/create-tenant-application/create-tenant-application.component.d.ts +0 -128
- package/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.d.ts +0 -106
- package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +0 -408
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +0 -216
- package/lib/components/view-tenant-group-types/view-tenant-group-types.component.d.ts +0 -58
- package/lib/components/view-tenants-list/view-tenants-list.component.d.ts +0 -134
- package/lib/models/app-type-config.model.d.ts +0 -14
- package/lib/models/app-type.model.d.ts +0 -4
- package/lib/models/feature-permission-id.model.d.ts +0 -4
- package/lib/models/features.model.d.ts +0 -15
- package/lib/models/form-status.model.d.ts +0 -4
- package/lib/models/permission-type.model.d.ts +0 -8
- package/lib/models/role-menu-action.model.d.ts +0 -4
- package/lib/models/role-type.model.d.ts +0 -27
- package/lib/models/roles-and-permissions-table-type.model.d.ts +0 -4
- package/lib/models/roles-and-permissions.model.d.ts +0 -119
- package/lib/models/route-config.model.d.ts +0 -4
- package/lib/models/table-column-schema-view-tenant-list.model.d.ts +0 -20
- package/lib/models/tenant-function-type.model.d.ts +0 -7
- package/lib/models/tenant.model.d.ts +0 -51
- package/lib/models/tenants-permission.model.d.ts +0 -9
- package/lib/models/update-tenant-status.model.d.ts +0 -14
- package/lib/models/view-tenant-group-types.model.d.ts +0 -27
- package/lib/services/tenant-applications.service.d.ts +0 -357
- package/lib/services/tenant-permissions-map.service.d.ts +0 -13
- package/lib/services/tenant-permissions.service.d.ts +0 -22
- package/lib/tenant-applications.component.d.ts +0 -5
- package/lib/tenant-applications.module.d.ts +0 -6
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { PaginatorConfig, TableActions, TableColumnSchema } from '@ieeesa-npm/presentation';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { AlertsService, BreakpointObserverService } from '@ieeesa-npm/utility';
|
|
5
|
-
import { TenantsRoutesConfig } from '../../models/route-config.model';
|
|
6
|
-
import { SharedService } from '@ieeesa-npm/shared';
|
|
7
|
-
import { TenantApplicationsService } from '../../services/tenant-applications.service';
|
|
8
|
-
import { Router } from '@angular/router';
|
|
9
|
-
import { PageEvent } from '@angular/material/paginator';
|
|
10
|
-
import { Sort } from '@angular/material/sort';
|
|
11
|
-
import { PermissionType } from '../../models/permission-type.model';
|
|
12
|
-
import { TenantsPermissions, UserPermission } from '../../models/tenants-permission.model';
|
|
13
|
-
import { GetTenantsPayload } from '../../models/table-column-schema-view-tenant-list.model';
|
|
14
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
15
|
-
import { SortConfig, TenantBasicInfo } from '../../models/tenant.model';
|
|
16
|
-
import { Features } from '../../models/features.model';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
|
|
19
|
-
dialog: MatDialog;
|
|
20
|
-
alertService: AlertsService;
|
|
21
|
-
private breakpointObserverService;
|
|
22
|
-
private sharedService;
|
|
23
|
-
private tenantApplicationsService;
|
|
24
|
-
private router;
|
|
25
|
-
destroy$: Subject<boolean>;
|
|
26
|
-
constants: any;
|
|
27
|
-
viewTenantsConstants: any;
|
|
28
|
-
isMobileView: boolean;
|
|
29
|
-
tenantsPageInfo: {
|
|
30
|
-
tenantsTitle: string;
|
|
31
|
-
};
|
|
32
|
-
apiBaseURL: string;
|
|
33
|
-
routePaths: TenantsRoutesConfig;
|
|
34
|
-
userPermissions: UserPermission[];
|
|
35
|
-
defaultSortedColumn: string;
|
|
36
|
-
createTenant: EventEmitter<any>;
|
|
37
|
-
viewTenantsDetails: EventEmitter<TenantBasicInfo>;
|
|
38
|
-
tableData: TenantBasicInfo[];
|
|
39
|
-
columnSchema: TableColumnSchema[];
|
|
40
|
-
tableActions: TableActions;
|
|
41
|
-
tableColumns: any;
|
|
42
|
-
emptyFieldValueReplacedBy: any;
|
|
43
|
-
paginatorConfig: PaginatorConfig;
|
|
44
|
-
userTenantsPermissions: TenantsPermissions[];
|
|
45
|
-
permissionType: typeof PermissionType;
|
|
46
|
-
dialogRef: any;
|
|
47
|
-
createTenantScreenTexts: any;
|
|
48
|
-
defaultColumnSortDirection: boolean;
|
|
49
|
-
pageEvent: PageEvent;
|
|
50
|
-
sortConfig: SortConfig;
|
|
51
|
-
constructor(dialog: MatDialog, alertService: AlertsService, breakpointObserverService: BreakpointObserverService, sharedService: SharedService, tenantApplicationsService: TenantApplicationsService, router: Router);
|
|
52
|
-
/**
|
|
53
|
-
* Sets the user permissions, router config path, base API URL, table column schema and gets the tenants list.
|
|
54
|
-
* @memberof ViewTenantsListComponent
|
|
55
|
-
*/
|
|
56
|
-
ngOnInit(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Validates permission based access for provided feature.
|
|
59
|
-
* @param {PermissionType} permissionType
|
|
60
|
-
* @return {boolean}
|
|
61
|
-
* @memberof ViewTenantsListComponent
|
|
62
|
-
*/
|
|
63
|
-
validateAccess(permissionType: PermissionType): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Configures table schema to display the tenants in table view.
|
|
66
|
-
* @memberof ViewTenantsListComponent
|
|
67
|
-
*/
|
|
68
|
-
configureTableInfo(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Format the features name in to single sentence with comma separated.
|
|
71
|
-
* @memberof ViewTenantsListComponent
|
|
72
|
-
*/
|
|
73
|
-
formatFeaturesName(features: Features[]): string;
|
|
74
|
-
/**
|
|
75
|
-
* Fetching details of tenants and initialize table view
|
|
76
|
-
* @param {GetTenantsPayload} payload
|
|
77
|
-
* @memberof ViewTenantsListComponent
|
|
78
|
-
*/
|
|
79
|
-
getTenantsAndInitializeTableView(payload: GetTenantsPayload): void;
|
|
80
|
-
/**
|
|
81
|
-
* Sets the dialog options for create tenant modal and calls openModal method.
|
|
82
|
-
* @return -returns nothing
|
|
83
|
-
* @memberof ViewTenantsListComponent
|
|
84
|
-
*/
|
|
85
|
-
openCreateTenantForm(): void;
|
|
86
|
-
/**
|
|
87
|
-
* Opens modal component with received params and handles form submission success and errors.
|
|
88
|
-
* @param {*} dialogOptions
|
|
89
|
-
* @param {string} [className]
|
|
90
|
-
* @return -returns nothing
|
|
91
|
-
* @memberof ViewTenantsListComponent
|
|
92
|
-
*/
|
|
93
|
-
openModal(dialogOptions: any, className?: string): void;
|
|
94
|
-
/**
|
|
95
|
-
* Sorts the tenants by application id or title in ascending or descending.
|
|
96
|
-
* @param {Sort} sort
|
|
97
|
-
* @memberof ViewTenantsListComponent
|
|
98
|
-
*/
|
|
99
|
-
onSortTenants(sort: Sort): void;
|
|
100
|
-
/**
|
|
101
|
-
* Constructs and returns the payload for fetching the tenants list.
|
|
102
|
-
* @returns GetTenantsPayload
|
|
103
|
-
*/
|
|
104
|
-
getTenantsPayload(): GetTenantsPayload;
|
|
105
|
-
/**
|
|
106
|
-
* Returning sorting order according to column definition.
|
|
107
|
-
* @param defaultColumnSortDirection
|
|
108
|
-
* @returns SortOrderBy.ASC | SortOrderBy.DESC
|
|
109
|
-
*/
|
|
110
|
-
filterSortedOrderBy(defaultColumnSortDirection: boolean): string;
|
|
111
|
-
/**
|
|
112
|
-
* Get the the records according to pagination.
|
|
113
|
-
* @param {{
|
|
114
|
-
* pageOffset: number;
|
|
115
|
-
* pageLimit: number;
|
|
116
|
-
* }} pageEvent
|
|
117
|
-
* @memberof ViewTenantsListComponent
|
|
118
|
-
*/
|
|
119
|
-
onTablePaginationChange(pageEvent: PageEvent): void;
|
|
120
|
-
/**
|
|
121
|
-
* Navigates to view tenants detail component.
|
|
122
|
-
* @param {{tenantInfo: TenantBasicInfo}}
|
|
123
|
-
* @memberof ViewTenantsListComponent
|
|
124
|
-
*/
|
|
125
|
-
navigateToViewTenantDetails(tenantInfo: TenantBasicInfo): void;
|
|
126
|
-
/**
|
|
127
|
-
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
128
|
-
* @memberof ViewTenantsListComponent
|
|
129
|
-
* @return -returns nothing
|
|
130
|
-
*/
|
|
131
|
-
ngOnDestroy(): void;
|
|
132
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewTenantsListComponent, never>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ViewTenantsListComponent, "ieeesa-view-tenants-list", never, { "tenantsPageInfo": { "alias": "tenantsPageInfo"; "required": false; }; "apiBaseURL": { "alias": "apiBaseURL"; "required": false; }; "routePaths": { "alias": "routePaths"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; "defaultSortedColumn": { "alias": "defaultSortedColumn"; "required": false; }; }, { "createTenant": "createTenant"; "viewTenantsDetails": "viewTenantsDetails"; }, never, never, true, never>;
|
|
134
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AppType } from "./app-type.model";
|
|
2
|
-
export interface AppTypeConfig {
|
|
3
|
-
configFieldId: string;
|
|
4
|
-
configFieldValue: {
|
|
5
|
-
type: AppType;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export interface GetAppTypesResponse {
|
|
9
|
-
status: boolean;
|
|
10
|
-
message: string;
|
|
11
|
-
body: AppTypeConfig[] | null | {
|
|
12
|
-
errorCodes: string[];
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface Features {
|
|
2
|
-
featureId: string;
|
|
3
|
-
featureName: string;
|
|
4
|
-
isDefault: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface FeatureId {
|
|
7
|
-
featureId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetFeaturesResponse {
|
|
10
|
-
status: boolean;
|
|
11
|
-
message: string;
|
|
12
|
-
body: Features[] | null | {
|
|
13
|
-
errorCodes: string[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface RoleType {
|
|
2
|
-
roleTypeName: string;
|
|
3
|
-
viewOrder: number;
|
|
4
|
-
}
|
|
5
|
-
export interface RoleTypeConfiguration {
|
|
6
|
-
configFieldId: string;
|
|
7
|
-
configFieldValue: RoleType;
|
|
8
|
-
}
|
|
9
|
-
export interface RoleTypeResponse {
|
|
10
|
-
status: boolean;
|
|
11
|
-
message: string;
|
|
12
|
-
body: RoleTypeConfiguration[] | null | {
|
|
13
|
-
errorCodes: string[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface RoleTypeOption {
|
|
17
|
-
id: string | number;
|
|
18
|
-
name: string;
|
|
19
|
-
order: number;
|
|
20
|
-
}
|
|
21
|
-
export interface RoleTypePayload {
|
|
22
|
-
appId: string;
|
|
23
|
-
configFieldName: string;
|
|
24
|
-
}
|
|
25
|
-
export interface GetRoleTypesPayload {
|
|
26
|
-
payload: RoleTypePayload;
|
|
27
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
export interface RolesAndPermissions {
|
|
2
|
-
permission: string;
|
|
3
|
-
roleIdsList: string[];
|
|
4
|
-
}
|
|
5
|
-
export interface Role {
|
|
6
|
-
roleId: string;
|
|
7
|
-
roleName: string;
|
|
8
|
-
roleType: string;
|
|
9
|
-
roleTypeName: string;
|
|
10
|
-
viewOrder: number;
|
|
11
|
-
}
|
|
12
|
-
export interface GetRolesResponse {
|
|
13
|
-
status: boolean;
|
|
14
|
-
message: string;
|
|
15
|
-
body?: Role[] | null | {
|
|
16
|
-
errorCodes: string[];
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface PaginationInfo {
|
|
20
|
-
offset: number;
|
|
21
|
-
pageSize: number;
|
|
22
|
-
}
|
|
23
|
-
export interface GetRolesAndPermissionsPayload {
|
|
24
|
-
payload: PaginationInfo;
|
|
25
|
-
}
|
|
26
|
-
export interface RoleDetails {
|
|
27
|
-
roleId: string;
|
|
28
|
-
roleName: string;
|
|
29
|
-
}
|
|
30
|
-
export interface RolesAndPermissionsMapping {
|
|
31
|
-
permissionId: string;
|
|
32
|
-
permissionName: string;
|
|
33
|
-
roleList: RoleDetails[];
|
|
34
|
-
}
|
|
35
|
-
export interface GetRolesAndPermissionsResponse {
|
|
36
|
-
status: boolean;
|
|
37
|
-
message: string;
|
|
38
|
-
body: {
|
|
39
|
-
totalRecords: number;
|
|
40
|
-
rolePermissionDetails: RolesAndPermissionsMapping[] | null | {
|
|
41
|
-
errorCodes: string[];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export interface RoleInfo {
|
|
46
|
-
roleType?: string;
|
|
47
|
-
roleName: string;
|
|
48
|
-
roleId?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface CreateModifyRoleInfo extends RoleInfo {
|
|
51
|
-
appId: string;
|
|
52
|
-
}
|
|
53
|
-
export interface CreateModifyRoleRequestPayload {
|
|
54
|
-
payload: CreateModifyRoleInfo;
|
|
55
|
-
}
|
|
56
|
-
export interface CreateModifyRoleResponse {
|
|
57
|
-
status: boolean;
|
|
58
|
-
message: string;
|
|
59
|
-
body?: string | null | {
|
|
60
|
-
errorCodes: string[];
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export interface DeleteRoleRequestPayload {
|
|
64
|
-
payload: {
|
|
65
|
-
roleId: string;
|
|
66
|
-
appId: string;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export interface DeleteRoleResponse {
|
|
70
|
-
status: boolean;
|
|
71
|
-
message: string;
|
|
72
|
-
body?: string | null | {
|
|
73
|
-
errorCodes: string[];
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
export interface Permission {
|
|
77
|
-
permissionId: string;
|
|
78
|
-
permissionName: string;
|
|
79
|
-
}
|
|
80
|
-
export interface GetPermissionsResponse {
|
|
81
|
-
status: boolean;
|
|
82
|
-
message: string;
|
|
83
|
-
body?: Permission[] | null | {
|
|
84
|
-
errorCodes: string[];
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export interface RoleOrPermissionMapping {
|
|
88
|
-
roleOrPermissionName: string;
|
|
89
|
-
roleOrPermissionId: string;
|
|
90
|
-
status: boolean;
|
|
91
|
-
}
|
|
92
|
-
export interface MapRolesAndPermissions {
|
|
93
|
-
appId: string;
|
|
94
|
-
permissionId: string | null;
|
|
95
|
-
roleId: string | null;
|
|
96
|
-
}
|
|
97
|
-
export interface ModifiedRolesAndPermissionsMapping extends MapRolesAndPermissions {
|
|
98
|
-
status: boolean;
|
|
99
|
-
}
|
|
100
|
-
export interface RolePermissionMappingRequestPayload {
|
|
101
|
-
payload: MapRolesAndPermissions;
|
|
102
|
-
}
|
|
103
|
-
export interface RolePermissionMappingResponse {
|
|
104
|
-
status: boolean;
|
|
105
|
-
message: string;
|
|
106
|
-
body?: RoleDetails[] | Permission[] | {
|
|
107
|
-
errorCodes: string[];
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
export interface RolesAndPermissionsRequestPayload {
|
|
111
|
-
payload: ModifiedRolesAndPermissionsMapping[];
|
|
112
|
-
}
|
|
113
|
-
export interface RolesAndPermissionsResponse {
|
|
114
|
-
status: boolean;
|
|
115
|
-
message: string;
|
|
116
|
-
body?: string | {
|
|
117
|
-
errorCodes: string[];
|
|
118
|
-
};
|
|
119
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare enum ViewTenantsColumnSchemaDef {
|
|
2
|
-
APP_ID = "appId",
|
|
3
|
-
APP_TITLE = "appTitle",
|
|
4
|
-
APP_DESCRIPTION = "appDescription",
|
|
5
|
-
APP_HEADING = "appHeading",
|
|
6
|
-
FEATURES = "features",
|
|
7
|
-
STATUS = "status"
|
|
8
|
-
}
|
|
9
|
-
export declare enum SortOrderBy {
|
|
10
|
-
DESC = "DESC",
|
|
11
|
-
ASC = "ASC"
|
|
12
|
-
}
|
|
13
|
-
export interface GetTenantsPayload {
|
|
14
|
-
payload: {
|
|
15
|
-
offset: number;
|
|
16
|
-
pageSize: number;
|
|
17
|
-
sortedBy: string;
|
|
18
|
-
sortedOrderBy: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Sort } from '@angular/material/sort';
|
|
2
|
-
import { FeatureId, Features } from './features.model';
|
|
3
|
-
export interface TenantInfo {
|
|
4
|
-
appId: string;
|
|
5
|
-
appTitle: string;
|
|
6
|
-
appLogo?: string;
|
|
7
|
-
appHeading: string;
|
|
8
|
-
appDescription: string;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
appHelpLink?: string;
|
|
11
|
-
appType?: string;
|
|
12
|
-
appDomainUrl?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface NewTenantInfo extends TenantInfo {
|
|
15
|
-
features: FeatureId[] | Features[];
|
|
16
|
-
}
|
|
17
|
-
export interface TenantBasicInfo extends TenantInfo {
|
|
18
|
-
status?: boolean;
|
|
19
|
-
features: Features[];
|
|
20
|
-
}
|
|
21
|
-
export interface CreateTenantRequestPayload {
|
|
22
|
-
payload: NewTenantInfo;
|
|
23
|
-
}
|
|
24
|
-
export interface CreateTenantResponse {
|
|
25
|
-
status: boolean;
|
|
26
|
-
message: string;
|
|
27
|
-
body?: string | null | {
|
|
28
|
-
errorCodes: string[];
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface GetTenantsResponse {
|
|
32
|
-
status: boolean;
|
|
33
|
-
message: string;
|
|
34
|
-
body?: {
|
|
35
|
-
totalRecords: number;
|
|
36
|
-
appDetails: TenantBasicInfo[] | null | {
|
|
37
|
-
errorCodes: string[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export interface TenantDetailsResponse {
|
|
42
|
-
status: boolean;
|
|
43
|
-
message: string;
|
|
44
|
-
body?: TenantBasicInfo | {
|
|
45
|
-
errorCodes: string[];
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export interface SortConfig {
|
|
49
|
-
sort: Sort;
|
|
50
|
-
isSortedByAscending: boolean;
|
|
51
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface UpdateTenantStatusPayload {
|
|
2
|
-
appId: string;
|
|
3
|
-
status: boolean;
|
|
4
|
-
}
|
|
5
|
-
export interface UpdateTenantStatusResponse {
|
|
6
|
-
status: boolean;
|
|
7
|
-
message: string;
|
|
8
|
-
body?: string | null | {
|
|
9
|
-
errorCodes: string[];
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export interface UpdateTenantStatusRequestPayload {
|
|
13
|
-
payload: UpdateTenantStatusPayload;
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|