@ieeesa-npm/tenants 0.2.6 → 0.2.7

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.
@@ -12,7 +12,7 @@ import { PermissionType } from '../../models/permission-type.model';
12
12
  import { TenantsPermissions, UserPermission } from '../../models/tenants-permission.model';
13
13
  import { GetTenantsPayload } from '../../models/table-column-schema-view-tenant-list.model';
14
14
  import { MatDialog } from '@angular/material/dialog';
15
- import { TenantBasicInfo } from '../../models/tenant.model';
15
+ import { SortConfig, TenantBasicInfo } from '../../models/tenant.model';
16
16
  import { Features } from '../../models/features.model';
17
17
  import * as i0 from "@angular/core";
18
18
  export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
@@ -46,6 +46,8 @@ export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
46
46
  dialogRef: any;
47
47
  createTenantScreenTexts: any;
48
48
  defaultColumnSortDirection: boolean;
49
+ pageEvent: PageEvent;
50
+ sortConfig: SortConfig;
49
51
  constructor(dialog: MatDialog, alertService: AlertsService, breakpointObserverService: BreakpointObserverService, sharedService: SharedService, tenantApplicationsService: TenantApplicationsService, router: Router);
50
52
  /**
51
53
  * Sets the user permissions, router config path, base API URL, table column schema and gets the tenants list.
@@ -95,6 +97,11 @@ export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
95
97
  * @memberof ViewTenantsListComponent
96
98
  */
97
99
  onSortTenants(sort: Sort): void;
100
+ /**
101
+ * Constructs and returns the payload for fetching the tenants list.
102
+ * @returns GetTenantsPayload
103
+ */
104
+ getTenantsPayload(): GetTenantsPayload;
98
105
  /**
99
106
  * Returning sorting order according to column definition.
100
107
  * @param defaultColumnSortDirection
@@ -1,3 +1,4 @@
1
+ import { Sort } from '@angular/material/sort';
1
2
  import { FeatureId, Features } from './features.model';
2
3
  export interface TenantInfo {
3
4
  appId: string;
@@ -44,3 +45,7 @@ export interface TenantDetailsResponse {
44
45
  errorCodes: string[];
45
46
  };
46
47
  }
48
+ export interface SortConfig {
49
+ sort: Sort;
50
+ isSortedByAscending: boolean;
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/tenants",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"