@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.
@@ -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
- * Constructs the selected features id's.
141
- * @param {CheckboxOption[]} featureOptions
142
- * @returns {FeatureId[]}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/tenants",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
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';