@ieeesa-npm/tenants 0.0.3 → 0.0.5
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 +28 -3
- package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +26 -11
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +145 -6
- package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +4 -3
- package/esm2022/lib/models/feature-permission-id.model.mjs +8 -0
- package/esm2022/lib/models/permission-type.model.mjs +2 -2
- package/esm2022/lib/models/tenants.model.mjs +1 -1
- package/esm2022/lib/services/tenant-applications.service.mjs +31 -17
- package/esm2022/lib/services/tenant-permissions-map.service.mjs +7 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ieeesa-npm-tenants.mjs +253 -53
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +58 -2
- package/lib/models/feature-permission-id.model.d.ts +4 -0
- package/lib/models/permission-type.model.d.ts +1 -1
- package/lib/models/tenants.model.d.ts +12 -0
- package/lib/services/tenant-applications.service.d.ts +19 -12
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { HttpService } from '@ieeesa-npm/utility';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { GetTenantsResponse, TenantInfo } from '../models/tenants.model';
|
|
3
|
+
import { GetTenantsResponse, TenantInfo, TenantDetailsResponse } from '../models/tenants.model';
|
|
4
4
|
import { GetTenantsPayload } from '../models/table-column-schema-view-tenant-list.model';
|
|
5
5
|
import { TenantsPermissions, UserPermission } from '../models/tenants-permission.model';
|
|
6
|
-
import { TenantPermissionsService } from './tenant-permissions.service';
|
|
7
6
|
import { PermissionType } from '../models/permission-type.model';
|
|
8
7
|
import { TenantPermissionsMapService } from './tenant-permissions-map.service';
|
|
9
8
|
import { CreateTenantRequestPayload, CreateTenantResponse, TenantBasicInfo } from '../models/tenant.model';
|
|
10
9
|
import { CheckboxOption, RadioOption } from '@ieeesa-npm/presentation';
|
|
11
10
|
import { FeatureId, Features, GetFeaturesResponse } from '../models/features.model';
|
|
12
11
|
import { AppTypeConfig, GetAppTypesResponse } from '../models/app-type-config.model';
|
|
12
|
+
import { TenantPermissionsService } from './tenant-permissions.service';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export declare class TenantApplicationsService {
|
|
15
15
|
private httpService;
|
|
16
16
|
private tenantPermissionsService;
|
|
17
17
|
private tenantPermissionsMapService;
|
|
18
18
|
tenantsText: {
|
|
19
|
-
"
|
|
19
|
+
"2027": string;
|
|
20
20
|
};
|
|
21
21
|
apiBaseUrl: string;
|
|
22
22
|
userPermission: UserPermission[];
|
|
@@ -54,6 +54,13 @@ export declare class TenantApplicationsService {
|
|
|
54
54
|
checkBoxOptions: CheckboxOption[];
|
|
55
55
|
constructor(httpService: HttpService, tenantPermissionsService: TenantPermissionsService, tenantPermissionsMapService: TenantPermissionsMapService);
|
|
56
56
|
setAppConfig(apiBaseUrl: string, userPermission: UserPermission[]): void;
|
|
57
|
+
/**
|
|
58
|
+
* Gets tenant details from server using HttpService
|
|
59
|
+
* @param {string} appId
|
|
60
|
+
* @return {Observable<TenantDetailsResponse>}
|
|
61
|
+
* @memberof TenantApplicationsService
|
|
62
|
+
*/
|
|
63
|
+
getTenantDetails(appId: string): Observable<TenantDetailsResponse>;
|
|
57
64
|
/**
|
|
58
65
|
* Sets the user tenants permissions
|
|
59
66
|
* @param {TenantsPermissions[]} TenantsPermissions
|
|
@@ -99,10 +106,10 @@ export declare class TenantApplicationsService {
|
|
|
99
106
|
*/
|
|
100
107
|
getTenantsList(payload: GetTenantsPayload): Observable<GetTenantsResponse>;
|
|
101
108
|
/**
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
109
|
+
* Gets list of features from server using HttpService.
|
|
110
|
+
* @return {Observable<GetFeaturesResponse>}
|
|
111
|
+
* @memberof TenantApplicationsService
|
|
112
|
+
*/
|
|
106
113
|
getFeatures(): Observable<GetFeaturesResponse>;
|
|
107
114
|
/**
|
|
108
115
|
* Gets list of application types from server using HttpService.
|
|
@@ -130,11 +137,11 @@ export declare class TenantApplicationsService {
|
|
|
130
137
|
*/
|
|
131
138
|
getApplicationTypeOptions(appTypeOptions: AppTypeConfig[]): RadioOption[];
|
|
132
139
|
/**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
getFeatureIds(
|
|
140
|
+
* Constructs the selected features id's.
|
|
141
|
+
* @param {CheckboxOption[]} featureOptions
|
|
142
|
+
* @returns {FeatureId[]}
|
|
143
|
+
*/
|
|
144
|
+
getFeatureIds(featureOptions: CheckboxOption[]): FeatureId[];
|
|
138
145
|
/**
|
|
139
146
|
* Sets the tenant basic information.
|
|
140
147
|
* @param {CreateTenantRequestPayload} createTenantPayload
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -17,3 +17,4 @@ export * from './lib/services/tenant-permissions-map.service';
|
|
|
17
17
|
export * from './lib/services/tenant-permissions.service';
|
|
18
18
|
export * from './lib/assets/tenant-validations';
|
|
19
19
|
export * from './lib/tenant-applications.module';
|
|
20
|
+
export * from './lib/models/feature-permission-id.model';
|