@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.
@@ -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
- "2049": string;
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
- * Gets list of features from server using HttpService.
103
- * @return {Observable<GetFeaturesResponse>}
104
- * @memberof TenantApplicationsService
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
- * Constructs the selected features id's.
134
- * @param {boolean[]} featureSelectionValues
135
- * @returns {FeatureId[]}
136
- */
137
- getFeatureIds(featureSelectionValues: boolean[]): FeatureId[];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/tenants",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
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';