@ieeesa-npm/tenants 0.1.2 → 0.1.3
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 +14 -0
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +103 -12
- package/esm2022/lib/models/update-tenant-status.model.mjs +2 -0
- package/esm2022/lib/services/tenant-applications.service.mjs +20 -5
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ieeesa-npm-tenants.mjs +142 -23
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +30 -2
- package/lib/models/update-tenant-status.model.d.ts +14 -0
- package/lib/services/tenant-applications.service.d.ts +12 -4
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -10,6 +10,7 @@ import { CheckboxOption, RadioOption } from '@ieeesa-npm/presentation';
|
|
|
10
10
|
import { FeatureId, Features, GetFeaturesResponse } from '../models/features.model';
|
|
11
11
|
import { AppTypeConfig, GetAppTypesResponse } from '../models/app-type-config.model';
|
|
12
12
|
import { TenantPermissionsService } from './tenant-permissions.service';
|
|
13
|
+
import { UpdateTenantStatusRequestPayload, UpdateTenantStatusResponse } from '../models/update-tenant-status.model';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class TenantApplicationsService {
|
|
15
16
|
private httpService;
|
|
@@ -137,10 +138,10 @@ export declare class TenantApplicationsService {
|
|
|
137
138
|
*/
|
|
138
139
|
getApplicationTypeOptions(appTypeOptions: AppTypeConfig[]): RadioOption[];
|
|
139
140
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
* Constructs the selected features id's.
|
|
142
|
+
* @param {CheckboxOption[]} featureOptions
|
|
143
|
+
* @returns {FeatureId[]}
|
|
144
|
+
*/
|
|
144
145
|
getFeatureIds(featureOptions: CheckboxOption[]): FeatureId[];
|
|
145
146
|
/**
|
|
146
147
|
* Sets the tenant basic information.
|
|
@@ -151,6 +152,13 @@ export declare class TenantApplicationsService {
|
|
|
151
152
|
* Returns the tenant basic information.
|
|
152
153
|
*/
|
|
153
154
|
get getTenantBasicInfo(): TenantBasicInfo;
|
|
155
|
+
/**
|
|
156
|
+
* Sends update request to the server to update the tenant application status to active/inactive using HttpService and returns the success or failure response.
|
|
157
|
+
* @param {UpdateTenantStatusRequestPayload} updateTenantStatusPayload
|
|
158
|
+
* @return {Observable<UpdateTenantStatusResponse>}
|
|
159
|
+
* @memberof TenantApplicationsService
|
|
160
|
+
*/
|
|
161
|
+
updateTenantStatus(updateTenantStatusPayload: UpdateTenantStatusRequestPayload): Observable<UpdateTenantStatusResponse>;
|
|
154
162
|
static ɵfac: i0.ɵɵFactoryDeclaration<TenantApplicationsService, never>;
|
|
155
163
|
static ɵprov: i0.ɵɵInjectableDeclaration<TenantApplicationsService>;
|
|
156
164
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './lib/models/permission-type.model';
|
|
|
12
12
|
export * from './lib/models/tenants-permission.model';
|
|
13
13
|
export * from './lib/models/route-config.model';
|
|
14
14
|
export * from './lib/models/table-column-schema-view-tenant-list.model';
|
|
15
|
+
export * from './lib/models/update-tenant-status.model';
|
|
15
16
|
export * from './lib/services/tenant-applications.service';
|
|
16
17
|
export * from './lib/services/tenant-permissions-map.service';
|
|
17
18
|
export * from './lib/services/tenant-permissions.service';
|